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 80fe43be2b419..ac69d12a1fb4d 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 @@ -289,6 +289,8 @@ protected AzureFirewallResource() { } public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.ResourceManager.ArmOperation GetLearnedPrefixes(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> GetLearnedPrefixesAsync(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.ArmOperation PacketCapture(Azure.WaitUntil waitUntil, Azure.ResourceManager.Network.Models.FirewallPacketCaptureContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task PacketCaptureAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.Network.Models.FirewallPacketCaptureContent content, 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; } public virtual System.Threading.Tasks.Task> RemoveTagAsync(string key, 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; } @@ -428,6 +430,7 @@ public BastionHostData() { } public string DnsName { get { throw null; } set { } } public bool? EnableFileCopy { get { throw null; } set { } } public bool? EnableIPConnect { get { throw null; } set { } } + public bool? EnableKerberos { get { throw null; } set { } } public bool? EnableShareableLink { get { throw null; } set { } } public bool? EnableTunneling { get { throw null; } set { } } public Azure.ETag? ETag { get { throw null; } } @@ -497,11 +500,11 @@ protected BgpConnectionResource() { } public virtual Azure.ResourceManager.ArmOperation Delete(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task DeleteAsync(Azure.WaitUntil waitUntil, 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 Azure.ResourceManager.ArmOperation GetAdvertisedRoutesVirtualHubBgpConnection(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetAdvertisedRoutesVirtualHubBgpConnectionAsync(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.ArmOperation>> GetAdvertisedRoutesVirtualHubBgpConnection(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task>>> GetAdvertisedRoutesVirtualHubBgpConnectionAsync(Azure.WaitUntil waitUntil, 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.ResourceManager.ArmOperation GetLearnedRoutesVirtualHubBgpConnection(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetLearnedRoutesVirtualHubBgpConnectionAsync(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.ArmOperation>> GetLearnedRoutesVirtualHubBgpConnection(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task>>> GetLearnedRoutesVirtualHubBgpConnectionAsync(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.ResourceManager.ArmOperation Update(Azure.WaitUntil waitUntil, Azure.ResourceManager.Network.BgpConnectionData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.Network.BgpConnectionData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } } @@ -2419,6 +2422,7 @@ public static partial class NetworkExtensions public static Azure.AsyncPageable GetNetworkSecurityGroupsAsync(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public static Azure.Response GetNetworkVirtualAppliance(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string networkVirtualApplianceName, string expand = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public static System.Threading.Tasks.Task> GetNetworkVirtualApplianceAsync(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string networkVirtualApplianceName, string expand = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public static Azure.ResourceManager.Network.NetworkVirtualApplianceConnectionResource GetNetworkVirtualApplianceConnectionResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } public static Azure.ResourceManager.Network.NetworkVirtualApplianceResource GetNetworkVirtualApplianceResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } public static Azure.ResourceManager.Network.NetworkVirtualApplianceCollection GetNetworkVirtualAppliances(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource) { throw null; } public static Azure.Pageable GetNetworkVirtualAppliances(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } @@ -2680,6 +2684,7 @@ public partial class NetworkInterfaceData : Azure.ResourceManager.Network.Models { public NetworkInterfaceData() { } public Azure.ResourceManager.Network.Models.NetworkInterfaceAuxiliaryMode? AuxiliaryMode { get { throw null; } set { } } + public Azure.ResourceManager.Network.Models.NetworkInterfaceAuxiliarySku? AuxiliarySku { get { throw null; } set { } } public bool? DisableTcpStateTracking { get { throw null; } set { } } public Azure.ResourceManager.Network.Models.NetworkInterfaceDnsSettings DnsSettings { get { throw null; } set { } } public Azure.Core.ResourceIdentifier DscpConfigurationId { get { throw null; } } @@ -2908,6 +2913,7 @@ public NetworkPrivateEndpointConnectionData() { } public Azure.ETag? ETag { get { throw null; } } public string LinkIdentifier { get { throw null; } } public Azure.ResourceManager.Network.PrivateEndpointData PrivateEndpoint { get { throw null; } } + public string PrivateEndpointLocation { get { throw null; } } public Azure.ResourceManager.Network.Models.NetworkProvisioningState? ProvisioningState { get { throw null; } } } public partial class NetworkPrivateEndpointConnectionResource : Azure.ResourceManager.ArmResource @@ -3037,9 +3043,50 @@ protected NetworkVirtualApplianceCollection() { } System.Collections.Generic.IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator() { throw null; } System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { throw null; } } + public partial class NetworkVirtualApplianceConnectionCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable + { + protected NetworkVirtualApplianceConnectionCollection() { } + public virtual Azure.ResourceManager.ArmOperation CreateOrUpdate(Azure.WaitUntil waitUntil, string connectionName, Azure.ResourceManager.Network.NetworkVirtualApplianceConnectionData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, string connectionName, Azure.ResourceManager.Network.NetworkVirtualApplianceConnectionData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Exists(string connectionName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> ExistsAsync(string connectionName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Get(string connectionName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Pageable GetAll(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.AsyncPageable GetAllAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(string connectionName, 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 NetworkVirtualApplianceConnectionData : Azure.ResourceManager.Network.Models.NetworkResourceData + { + public NetworkVirtualApplianceConnectionData() { } + public long? Asn { get { throw null; } set { } } + public System.Collections.Generic.IList BgpPeerAddress { get { throw null; } } + public bool? EnableInternetSecurity { get { throw null; } set { } } + public string NamePropertiesName { get { throw null; } set { } } + public Azure.ResourceManager.Network.Models.NetworkProvisioningState? ProvisioningState { get { throw null; } } + public Azure.ResourceManager.Network.Models.RoutingConfigurationNfv RoutingConfiguration { get { throw null; } set { } } + public long? TunnelIdentifier { get { throw null; } set { } } + } + public partial class NetworkVirtualApplianceConnectionResource : Azure.ResourceManager.ArmResource + { + public static readonly Azure.Core.ResourceType ResourceType; + protected NetworkVirtualApplianceConnectionResource() { } + public virtual Azure.ResourceManager.Network.NetworkVirtualApplianceConnectionData Data { get { throw null; } } + public virtual bool HasData { get { throw null; } } + public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string networkVirtualApplianceName, string connectionName) { throw null; } + public virtual Azure.ResourceManager.ArmOperation Delete(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task DeleteAsync(Azure.WaitUntil waitUntil, 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.ResourceManager.ArmOperation Update(Azure.WaitUntil waitUntil, Azure.ResourceManager.Network.NetworkVirtualApplianceConnectionData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.Network.NetworkVirtualApplianceConnectionData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + } public partial class NetworkVirtualApplianceData : Azure.ResourceManager.Network.Models.NetworkTrackedResourceData { public NetworkVirtualApplianceData() { } + public System.Collections.Generic.IList AdditionalNics { get { throw null; } } public string AddressPrefix { get { throw null; } } public System.Collections.Generic.IList BootStrapConfigurationBlobs { get { throw null; } } public string CloudInitConfiguration { get { throw null; } set { } } @@ -3054,6 +3101,7 @@ public NetworkVirtualApplianceData() { } public Azure.ResourceManager.Network.Models.NetworkProvisioningState? ProvisioningState { get { throw null; } } public string SshPublicKey { get { throw null; } set { } } public long? VirtualApplianceAsn { get { throw null; } set { } } + public System.Collections.Generic.IReadOnlyList VirtualApplianceConnections { get { throw null; } } public System.Collections.Generic.IReadOnlyList VirtualApplianceNics { get { throw null; } } public System.Collections.Generic.IReadOnlyList VirtualApplianceSites { get { throw null; } } public Azure.Core.ResourceIdentifier VirtualHubId { get { throw null; } set { } } @@ -3073,6 +3121,9 @@ protected NetworkVirtualApplianceResource() { } public virtual System.Threading.Tasks.Task DeleteAsync(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Response Get(string expand = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> GetAsync(string expand = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response GetNetworkVirtualApplianceConnection(string connectionName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetNetworkVirtualApplianceConnectionAsync(string connectionName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.Network.NetworkVirtualApplianceConnectionCollection GetNetworkVirtualApplianceConnections() { throw null; } public virtual Azure.Response GetVirtualApplianceSite(string siteName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> GetVirtualApplianceSiteAsync(string siteName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.ResourceManager.Network.VirtualApplianceSiteCollection GetVirtualApplianceSites() { throw null; } @@ -4389,8 +4440,8 @@ protected VirtualHubResource() { } public virtual Azure.Response GetBgpConnection(string connectionName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> GetBgpConnectionAsync(string connectionName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.ResourceManager.Network.BgpConnectionCollection GetBgpConnections() { throw null; } - public virtual Azure.ResourceManager.ArmOperation GetEffectiveVirtualHubRoutes(Azure.WaitUntil waitUntil, Azure.ResourceManager.Network.Models.EffectiveRoutesContent content = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task GetEffectiveVirtualHubRoutesAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.Network.Models.EffectiveRoutesContent content = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.ArmOperation GetEffectiveVirtualHubRoutes(Azure.WaitUntil waitUntil, Azure.ResourceManager.Network.Models.EffectiveRoutesContent content = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetEffectiveVirtualHubRoutesAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.Network.Models.EffectiveRoutesContent content = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Response GetHubIPConfiguration(string ipConfigName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> GetHubIPConfigurationAsync(string ipConfigName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.ResourceManager.Network.HubIPConfigurationCollection GetHubIPConfigurations() { throw null; } @@ -4400,10 +4451,10 @@ protected VirtualHubResource() { } public virtual Azure.Response GetHubVirtualNetworkConnection(string connectionName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> GetHubVirtualNetworkConnectionAsync(string connectionName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.ResourceManager.Network.HubVirtualNetworkConnectionCollection GetHubVirtualNetworkConnections() { throw null; } - public virtual Azure.ResourceManager.ArmOperation GetInboundRoutes(Azure.WaitUntil waitUntil, Azure.ResourceManager.Network.Models.VirtualHubInboundRoutesContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task GetInboundRoutesAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.Network.Models.VirtualHubInboundRoutesContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.ResourceManager.ArmOperation GetOutboundRoutes(Azure.WaitUntil waitUntil, Azure.ResourceManager.Network.Models.VirtualHubOutboundRoutesContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task GetOutboundRoutesAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.Network.Models.VirtualHubOutboundRoutesContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.ArmOperation GetInboundRoutes(Azure.WaitUntil waitUntil, Azure.ResourceManager.Network.Models.VirtualHubInboundRoutesContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetInboundRoutesAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.Network.Models.VirtualHubInboundRoutesContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.ArmOperation GetOutboundRoutes(Azure.WaitUntil waitUntil, Azure.ResourceManager.Network.Models.VirtualHubOutboundRoutesContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetOutboundRoutesAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.Network.Models.VirtualHubOutboundRoutesContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Response GetRouteMap(string routeMapName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> GetRouteMapAsync(string routeMapName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.ResourceManager.Network.RouteMapCollection GetRouteMaps() { throw null; } @@ -5790,6 +5841,24 @@ internal ApplicationGatewayFirewallManifestRuleSet() { } public static bool operator !=(Azure.ResourceManager.Network.Models.ApplicationGatewayFirewallMode left, Azure.ResourceManager.Network.Models.ApplicationGatewayFirewallMode right) { throw null; } public override string ToString() { throw null; } } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct ApplicationGatewayFirewallRateLimitDuration : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public ApplicationGatewayFirewallRateLimitDuration(string value) { throw null; } + public static Azure.ResourceManager.Network.Models.ApplicationGatewayFirewallRateLimitDuration FiveMins { get { throw null; } } + public static Azure.ResourceManager.Network.Models.ApplicationGatewayFirewallRateLimitDuration OneMin { get { throw null; } } + public bool Equals(Azure.ResourceManager.Network.Models.ApplicationGatewayFirewallRateLimitDuration 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.ApplicationGatewayFirewallRateLimitDuration left, Azure.ResourceManager.Network.Models.ApplicationGatewayFirewallRateLimitDuration right) { throw null; } + public static implicit operator Azure.ResourceManager.Network.Models.ApplicationGatewayFirewallRateLimitDuration (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.Network.Models.ApplicationGatewayFirewallRateLimitDuration left, Azure.ResourceManager.Network.Models.ApplicationGatewayFirewallRateLimitDuration right) { throw null; } + public override string ToString() { throw null; } + } public partial class ApplicationGatewayFirewallRule { public ApplicationGatewayFirewallRule(int ruleId) { } @@ -5815,6 +5884,25 @@ public ApplicationGatewayFirewallRuleSet() { } public string RuleSetVersion { get { throw null; } set { } } public System.Collections.Generic.IList Tiers { get { throw null; } } } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct ApplicationGatewayFirewallUserSessionVariable : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public ApplicationGatewayFirewallUserSessionVariable(string value) { throw null; } + public static Azure.ResourceManager.Network.Models.ApplicationGatewayFirewallUserSessionVariable ClientAddr { get { throw null; } } + public static Azure.ResourceManager.Network.Models.ApplicationGatewayFirewallUserSessionVariable GeoLocation { get { throw null; } } + public static Azure.ResourceManager.Network.Models.ApplicationGatewayFirewallUserSessionVariable None { get { throw null; } } + public bool Equals(Azure.ResourceManager.Network.Models.ApplicationGatewayFirewallUserSessionVariable 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.ApplicationGatewayFirewallUserSessionVariable left, Azure.ResourceManager.Network.Models.ApplicationGatewayFirewallUserSessionVariable right) { throw null; } + public static implicit operator Azure.ResourceManager.Network.Models.ApplicationGatewayFirewallUserSessionVariable (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.Network.Models.ApplicationGatewayFirewallUserSessionVariable left, Azure.ResourceManager.Network.Models.ApplicationGatewayFirewallUserSessionVariable right) { throw null; } + public override string ToString() { throw null; } + } public partial class ApplicationGatewayFrontendIPConfiguration : Azure.ResourceManager.Network.Models.NetworkResourceData { public ApplicationGatewayFrontendIPConfiguration() { } @@ -6458,6 +6546,7 @@ public partial class ApplicationRule : Azure.ResourceManager.Network.Models.Fire public ApplicationRule() { } public System.Collections.Generic.IList DestinationAddresses { get { throw null; } } public System.Collections.Generic.IList FqdnTags { get { throw null; } } + public System.Collections.Generic.IList HttpHeadersToInsert { get { throw null; } } public System.Collections.Generic.IList Protocols { get { throw null; } } public System.Collections.Generic.IList SourceAddresses { get { throw null; } } public System.Collections.Generic.IList SourceIPGroups { get { throw null; } } @@ -6725,6 +6814,40 @@ public AzureFirewallNetworkRuleCollectionData() { } public static bool operator !=(Azure.ResourceManager.Network.Models.AzureFirewallNetworkRuleProtocol left, Azure.ResourceManager.Network.Models.AzureFirewallNetworkRuleProtocol right) { throw null; } public override string ToString() { throw null; } } + public partial class AzureFirewallPacketCaptureFlags + { + public AzureFirewallPacketCaptureFlags() { } + public Azure.ResourceManager.Network.Models.AzureFirewallPacketCaptureFlagsType? FlagsType { get { throw null; } set { } } + } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct AzureFirewallPacketCaptureFlagsType : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public AzureFirewallPacketCaptureFlagsType(string value) { throw null; } + public static Azure.ResourceManager.Network.Models.AzureFirewallPacketCaptureFlagsType Ack { get { throw null; } } + public static Azure.ResourceManager.Network.Models.AzureFirewallPacketCaptureFlagsType Fin { get { throw null; } } + public static Azure.ResourceManager.Network.Models.AzureFirewallPacketCaptureFlagsType Push { get { throw null; } } + public static Azure.ResourceManager.Network.Models.AzureFirewallPacketCaptureFlagsType Rst { get { throw null; } } + public static Azure.ResourceManager.Network.Models.AzureFirewallPacketCaptureFlagsType Syn { get { throw null; } } + public static Azure.ResourceManager.Network.Models.AzureFirewallPacketCaptureFlagsType Urg { get { throw null; } } + public bool Equals(Azure.ResourceManager.Network.Models.AzureFirewallPacketCaptureFlagsType 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.AzureFirewallPacketCaptureFlagsType left, Azure.ResourceManager.Network.Models.AzureFirewallPacketCaptureFlagsType right) { throw null; } + public static implicit operator Azure.ResourceManager.Network.Models.AzureFirewallPacketCaptureFlagsType (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.Network.Models.AzureFirewallPacketCaptureFlagsType left, Azure.ResourceManager.Network.Models.AzureFirewallPacketCaptureFlagsType right) { throw null; } + public override string ToString() { throw null; } + } + public partial class AzureFirewallPacketCaptureRule + { + public AzureFirewallPacketCaptureRule() { } + public System.Collections.Generic.IList DestinationPorts { get { throw null; } } + public System.Collections.Generic.IList Destinations { get { throw null; } } + public System.Collections.Generic.IList Sources { get { throw null; } } + } public partial class AzureFirewallPublicIPAddress { public AzureFirewallPublicIPAddress() { } @@ -7749,6 +7872,18 @@ internal EffectiveRouteListResult() { } public string NextLink { get { throw null; } } public System.Collections.Generic.IReadOnlyList Value { get { throw null; } } } + public partial class EffectiveRouteMapRoute + { + internal EffectiveRouteMapRoute() { } + public string AsPath { get { throw null; } } + public string BgpCommunities { get { throw null; } } + public string Prefix { get { throw null; } } + } + public partial class EffectiveRouteMapRouteList + { + internal EffectiveRouteMapRouteList() { } + public System.Collections.Generic.IReadOnlyList Value { get { throw null; } } + } public partial class EffectiveRoutesContent { public EffectiveRoutesContent() { } @@ -8242,6 +8377,17 @@ public ExpressRouteServiceProviderBandwidthsOffered() { } public string OfferName { get { throw null; } set { } } public int? ValueInMbps { get { throw null; } set { } } } + public partial class FirewallPacketCaptureContent : Azure.ResourceManager.Network.Models.NetworkSubResource + { + public FirewallPacketCaptureContent() { } + public int? DurationInSeconds { get { throw null; } set { } } + public string FileName { get { throw null; } set { } } + public System.Collections.Generic.IList Filters { get { throw null; } } + public System.Collections.Generic.IList Flags { get { throw null; } } + public int? NumberOfPacketsToCapture { get { throw null; } set { } } + public Azure.ResourceManager.Network.Models.AzureFirewallNetworkRuleProtocol? Protocol { get { throw null; } set { } } + public System.Uri SasUri { get { throw null; } set { } } + } public partial class FirewallPolicyCertificateAuthority { public FirewallPolicyCertificateAuthority() { } @@ -8282,6 +8428,12 @@ public FirewallPolicyFilterRuleCollectionInfo() { } public Azure.ResourceManager.Network.Models.FirewallPolicyFilterRuleCollectionActionType? ActionType { get { throw null; } set { } } public System.Collections.Generic.IList Rules { get { throw null; } } } + public partial class FirewallPolicyHttpHeaderToInsert + { + public FirewallPolicyHttpHeaderToInsert() { } + public string HeaderName { get { throw null; } set { } } + public string HeaderValue { get { throw null; } set { } } + } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] public readonly partial struct FirewallPolicyIdpsQuerySortOrder : System.IEquatable { @@ -8657,6 +8809,16 @@ public GetVpnSitesConfigurationContent(System.Uri outputBlobSasUri) { } public static bool operator !=(Azure.ResourceManager.Network.Models.GlobalMeshSupportFlag left, Azure.ResourceManager.Network.Models.GlobalMeshSupportFlag right) { throw null; } public override string ToString() { throw null; } } + public partial class GroupByUserSession + { + public GroupByUserSession(System.Collections.Generic.IEnumerable groupByVariables) { } + public System.Collections.Generic.IList GroupByVariables { get { throw null; } } + } + public partial class GroupByVariable + { + public GroupByVariable(Azure.ResourceManager.Network.Models.ApplicationGatewayFirewallUserSessionVariable variableName) { } + public Azure.ResourceManager.Network.Models.ApplicationGatewayFirewallUserSessionVariable VariableName { get { throw null; } set { } } + } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] public readonly partial struct GroupConnectivity : System.IEquatable { @@ -9076,7 +9238,6 @@ public LoadBalancerBackendAddress() { } private readonly int _dummyPrimitive; public LoadBalancerBackendAddressAdminState(string value) { throw null; } public static Azure.ResourceManager.Network.Models.LoadBalancerBackendAddressAdminState Down { get { throw null; } } - public static Azure.ResourceManager.Network.Models.LoadBalancerBackendAddressAdminState Drain { get { throw null; } } public static Azure.ResourceManager.Network.Models.LoadBalancerBackendAddressAdminState None { get { throw null; } } public static Azure.ResourceManager.Network.Models.LoadBalancerBackendAddressAdminState Up { get { throw null; } } public bool Equals(Azure.ResourceManager.Network.Models.LoadBalancerBackendAddressAdminState other) { throw null; } @@ -9538,6 +9699,7 @@ internal NetworkInterfaceAssociation() { } private readonly object _dummy; private readonly int _dummyPrimitive; public NetworkInterfaceAuxiliaryMode(string value) { throw null; } + public static Azure.ResourceManager.Network.Models.NetworkInterfaceAuxiliaryMode AcceleratedConnections { get { throw null; } } public static Azure.ResourceManager.Network.Models.NetworkInterfaceAuxiliaryMode Floating { get { throw null; } } public static Azure.ResourceManager.Network.Models.NetworkInterfaceAuxiliaryMode MaxConnections { get { throw null; } } public static Azure.ResourceManager.Network.Models.NetworkInterfaceAuxiliaryMode None { get { throw null; } } @@ -9551,6 +9713,27 @@ internal NetworkInterfaceAssociation() { } public static bool operator !=(Azure.ResourceManager.Network.Models.NetworkInterfaceAuxiliaryMode left, Azure.ResourceManager.Network.Models.NetworkInterfaceAuxiliaryMode right) { throw null; } public override string ToString() { throw null; } } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct NetworkInterfaceAuxiliarySku : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public NetworkInterfaceAuxiliarySku(string value) { throw null; } + public static Azure.ResourceManager.Network.Models.NetworkInterfaceAuxiliarySku A1 { get { throw null; } } + public static Azure.ResourceManager.Network.Models.NetworkInterfaceAuxiliarySku A2 { get { throw null; } } + public static Azure.ResourceManager.Network.Models.NetworkInterfaceAuxiliarySku A4 { get { throw null; } } + public static Azure.ResourceManager.Network.Models.NetworkInterfaceAuxiliarySku A8 { get { throw null; } } + public static Azure.ResourceManager.Network.Models.NetworkInterfaceAuxiliarySku None { get { throw null; } } + public bool Equals(Azure.ResourceManager.Network.Models.NetworkInterfaceAuxiliarySku 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.NetworkInterfaceAuxiliarySku left, Azure.ResourceManager.Network.Models.NetworkInterfaceAuxiliarySku right) { throw null; } + public static implicit operator Azure.ResourceManager.Network.Models.NetworkInterfaceAuxiliarySku (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.Network.Models.NetworkInterfaceAuxiliarySku left, Azure.ResourceManager.Network.Models.NetworkInterfaceAuxiliarySku right) { throw null; } + public override string ToString() { throw null; } + } public partial class NetworkInterfaceDnsSettings { public NetworkInterfaceDnsSettings() { } @@ -10251,11 +10434,6 @@ internal PeerRoute() { } public string SourcePeer { get { throw null; } } public int? Weight { get { throw null; } } } - public partial class PeerRouteList - { - internal PeerRouteList() { } - public System.Collections.Generic.IReadOnlyList Value { get { throw null; } } - } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] public readonly partial struct PfsGroup : System.IEquatable { @@ -10286,12 +10464,22 @@ public partial class PolicySettings public PolicySettings() { } public string CustomBlockResponseBody { get { throw null; } set { } } public int? CustomBlockResponseStatusCode { get { throw null; } set { } } + public bool? FileUploadEnforcement { get { throw null; } set { } } public int? FileUploadLimitInMb { get { throw null; } set { } } + public Azure.ResourceManager.Network.Models.PolicySettingsLogScrubbing LogScrubbing { get { throw null; } set { } } public int? MaxRequestBodySizeInKb { get { throw null; } set { } } public Azure.ResourceManager.Network.Models.WebApplicationFirewallMode? Mode { get { throw null; } set { } } public bool? RequestBodyCheck { get { throw null; } set { } } + public bool? RequestBodyEnforcement { get { throw null; } set { } } + public int? RequestBodyInspectLimitInKB { get { throw null; } set { } } public Azure.ResourceManager.Network.Models.WebApplicationFirewallEnabledState? State { get { throw null; } set { } } } + public partial class PolicySettingsLogScrubbing + { + public PolicySettingsLogScrubbing() { } + public System.Collections.Generic.IList ScrubbingRules { get { throw null; } } + public Azure.ResourceManager.Network.Models.WebApplicationFirewallScrubbingState? State { get { throw null; } set { } } + } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] public readonly partial struct PreferredRoutingGateway : System.IEquatable { @@ -10393,6 +10581,12 @@ public PropagatedRouteTable() { } public System.Collections.Generic.IList Ids { get { throw null; } } public System.Collections.Generic.IList Labels { get { throw null; } } } + public partial class PropagatedRouteTableNfv + { + public PropagatedRouteTableNfv() { } + public System.Collections.Generic.IList Ids { get { throw null; } } + public System.Collections.Generic.IList Labels { get { throw null; } } + } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] [System.ObsoleteAttribute("This class is obsolete and will be removed in a future release", false)] public partial class ProtocolCustomSettings @@ -10432,9 +10626,17 @@ public partial class PublicIPAddressDnsSettings { public PublicIPAddressDnsSettings() { } public string DomainNameLabel { get { throw null; } set { } } + public Azure.ResourceManager.Network.Models.PublicIPAddressDnsSettingsDomainNameLabelScope? DomainNameLabelScope { get { throw null; } set { } } public string Fqdn { get { throw null; } set { } } public string ReverseFqdn { get { throw null; } set { } } } + public enum PublicIPAddressDnsSettingsDomainNameLabelScope + { + TenantReuse = 0, + SubscriptionReuse = 1, + ResourceGroupReuse = 2, + NoReuse = 3, + } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] public readonly partial struct PublicIPAddressMigrationPhase : System.IEquatable { @@ -10741,6 +10943,19 @@ public RoutingConfiguration() { } public System.Collections.Generic.IList StaticRoutes { get { throw null; } } public Azure.ResourceManager.Network.Models.VnetRoute VnetRoutes { get { throw null; } set { } } } + public partial class RoutingConfigurationNfv + { + public RoutingConfigurationNfv() { } + public System.Uri AssociatedRouteTableResourceUri { get { throw null; } set { } } + public System.Uri InboundRouteMapResourceUri { get { throw null; } set { } } + public System.Uri OutboundRouteMapResourceUri { get { throw null; } set { } } + public Azure.ResourceManager.Network.Models.PropagatedRouteTableNfv PropagatedRouteTables { get { throw null; } set { } } + } + public partial class RoutingConfigurationNfvSubResource + { + public RoutingConfigurationNfvSubResource() { } + public System.Uri ResourceUri { get { throw null; } set { } } + } public partial class RoutingPolicy { public RoutingPolicy(string name, System.Collections.Generic.IEnumerable destinations, string nextHop) { } @@ -10810,6 +11025,64 @@ public RoutingPolicy(string name, System.Collections.Generic.IEnumerable public override string ToString() { throw null; } } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct ScrubbingRuleEntryMatchOperator : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public ScrubbingRuleEntryMatchOperator(string value) { throw null; } + public static Azure.ResourceManager.Network.Models.ScrubbingRuleEntryMatchOperator EqualsAny { get { throw null; } } + public static Azure.ResourceManager.Network.Models.ScrubbingRuleEntryMatchOperator EqualsValue { get { throw null; } } + public bool Equals(Azure.ResourceManager.Network.Models.ScrubbingRuleEntryMatchOperator 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.ScrubbingRuleEntryMatchOperator left, Azure.ResourceManager.Network.Models.ScrubbingRuleEntryMatchOperator right) { throw null; } + public static implicit operator Azure.ResourceManager.Network.Models.ScrubbingRuleEntryMatchOperator (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.Network.Models.ScrubbingRuleEntryMatchOperator left, Azure.ResourceManager.Network.Models.ScrubbingRuleEntryMatchOperator right) { throw null; } + public override string ToString() { throw null; } + } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct ScrubbingRuleEntryMatchVariable : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public ScrubbingRuleEntryMatchVariable(string value) { throw null; } + public static Azure.ResourceManager.Network.Models.ScrubbingRuleEntryMatchVariable RequestArgNames { get { throw null; } } + public static Azure.ResourceManager.Network.Models.ScrubbingRuleEntryMatchVariable RequestCookieNames { get { throw null; } } + public static Azure.ResourceManager.Network.Models.ScrubbingRuleEntryMatchVariable RequestHeaderNames { get { throw null; } } + public static Azure.ResourceManager.Network.Models.ScrubbingRuleEntryMatchVariable RequestIPAddress { get { throw null; } } + public static Azure.ResourceManager.Network.Models.ScrubbingRuleEntryMatchVariable RequestJsonArgNames { get { throw null; } } + public static Azure.ResourceManager.Network.Models.ScrubbingRuleEntryMatchVariable RequestPostArgNames { get { throw null; } } + public bool Equals(Azure.ResourceManager.Network.Models.ScrubbingRuleEntryMatchVariable 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.ScrubbingRuleEntryMatchVariable left, Azure.ResourceManager.Network.Models.ScrubbingRuleEntryMatchVariable right) { throw null; } + public static implicit operator Azure.ResourceManager.Network.Models.ScrubbingRuleEntryMatchVariable (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.Network.Models.ScrubbingRuleEntryMatchVariable left, Azure.ResourceManager.Network.Models.ScrubbingRuleEntryMatchVariable right) { throw null; } + public override string ToString() { throw null; } + } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct ScrubbingRuleEntryState : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public ScrubbingRuleEntryState(string value) { throw null; } + public static Azure.ResourceManager.Network.Models.ScrubbingRuleEntryState Disabled { get { throw null; } } + public static Azure.ResourceManager.Network.Models.ScrubbingRuleEntryState Enabled { get { throw null; } } + public bool Equals(Azure.ResourceManager.Network.Models.ScrubbingRuleEntryState 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.ScrubbingRuleEntryState left, Azure.ResourceManager.Network.Models.ScrubbingRuleEntryState right) { throw null; } + public static implicit operator Azure.ResourceManager.Network.Models.ScrubbingRuleEntryState (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.Network.Models.ScrubbingRuleEntryState left, Azure.ResourceManager.Network.Models.ScrubbingRuleEntryState right) { throw null; } + public override string ToString() { throw null; } + } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] public readonly partial struct SecurityConfigurationRuleAccess : System.IEquatable { private readonly object _dummy; @@ -11248,6 +11521,12 @@ internal VerificationIPFlowResult() { } public Azure.ResourceManager.Network.Models.NetworkAccess? Access { get { throw null; } } public string RuleName { get { throw null; } } } + public partial class VirtualApplianceAdditionalNicProperties + { + public VirtualApplianceAdditionalNicProperties() { } + public bool? HasPublicIP { get { throw null; } set { } } + public string Name { get { throw null; } set { } } + } public partial class VirtualApplianceDelegationProperties { public VirtualApplianceDelegationProperties() { } @@ -11257,6 +11536,7 @@ public VirtualApplianceDelegationProperties() { } public partial class VirtualApplianceNicProperties { internal VirtualApplianceNicProperties() { } + public string InstanceName { get { throw null; } } public string Name { get { throw null; } } public string PrivateIPAddress { get { throw null; } } public string PublicIPAddress { get { throw null; } } @@ -11268,6 +11548,20 @@ public VirtualApplianceSkuProperties() { } public string MarketPlaceVersion { get { throw null; } set { } } public string Vendor { get { throw null; } set { } } } + public partial class VirtualHubEffectiveRoute + { + internal VirtualHubEffectiveRoute() { } + public System.Collections.Generic.IReadOnlyList AddressPrefixes { get { throw null; } } + public string AsPath { get { throw null; } } + public System.Collections.Generic.IReadOnlyList NextHops { get { throw null; } } + public string NextHopType { get { throw null; } } + public string RouteOrigin { get { throw null; } } + } + public partial class VirtualHubEffectiveRouteList + { + internal VirtualHubEffectiveRouteList() { } + public System.Collections.Generic.IReadOnlyList Value { get { throw null; } } + } public partial class VirtualHubInboundRoutesContent { public VirtualHubInboundRoutesContent() { } @@ -12124,9 +12418,12 @@ public partial class WebApplicationFirewallCustomRule public WebApplicationFirewallCustomRule(int priority, Azure.ResourceManager.Network.Models.WebApplicationFirewallRuleType ruleType, System.Collections.Generic.IEnumerable matchConditions, Azure.ResourceManager.Network.Models.WebApplicationFirewallAction action) { } public Azure.ResourceManager.Network.Models.WebApplicationFirewallAction Action { get { throw null; } set { } } public Azure.ETag? ETag { get { throw null; } } + public System.Collections.Generic.IList GroupByUserSession { get { throw null; } } public System.Collections.Generic.IList MatchConditions { get { throw null; } } public string Name { get { throw null; } set { } } public int Priority { get { throw null; } set { } } + public Azure.ResourceManager.Network.Models.ApplicationGatewayFirewallRateLimitDuration? RateLimitDuration { get { throw null; } set { } } + public int? RateLimitThreshold { get { throw null; } set { } } public Azure.ResourceManager.Network.Models.WebApplicationFirewallRuleType RuleType { get { throw null; } set { } } public Azure.ResourceManager.Network.Models.WebApplicationFirewallState? State { get { throw null; } set { } } } @@ -12248,6 +12545,7 @@ public WebApplicationFirewallCustomRule(int priority, Azure.ResourceManager.Netw public WebApplicationFirewallRuleType(string value) { throw null; } public static Azure.ResourceManager.Network.Models.WebApplicationFirewallRuleType Invalid { get { throw null; } } public static Azure.ResourceManager.Network.Models.WebApplicationFirewallRuleType MatchRule { get { throw null; } } + public static Azure.ResourceManager.Network.Models.WebApplicationFirewallRuleType RateLimitRule { get { throw null; } } public bool Equals(Azure.ResourceManager.Network.Models.WebApplicationFirewallRuleType other) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override bool Equals(object obj) { throw null; } @@ -12258,6 +12556,32 @@ public WebApplicationFirewallCustomRule(int priority, Azure.ResourceManager.Netw public static bool operator !=(Azure.ResourceManager.Network.Models.WebApplicationFirewallRuleType left, Azure.ResourceManager.Network.Models.WebApplicationFirewallRuleType right) { throw null; } public override string ToString() { throw null; } } + public partial class WebApplicationFirewallScrubbingRules + { + public WebApplicationFirewallScrubbingRules(Azure.ResourceManager.Network.Models.ScrubbingRuleEntryMatchVariable matchVariable, Azure.ResourceManager.Network.Models.ScrubbingRuleEntryMatchOperator selectorMatchOperator) { } + public Azure.ResourceManager.Network.Models.ScrubbingRuleEntryMatchVariable MatchVariable { get { throw null; } set { } } + public string Selector { get { throw null; } set { } } + public Azure.ResourceManager.Network.Models.ScrubbingRuleEntryMatchOperator SelectorMatchOperator { get { throw null; } set { } } + public Azure.ResourceManager.Network.Models.ScrubbingRuleEntryState? State { get { throw null; } set { } } + } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct WebApplicationFirewallScrubbingState : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public WebApplicationFirewallScrubbingState(string value) { throw null; } + public static Azure.ResourceManager.Network.Models.WebApplicationFirewallScrubbingState Disabled { get { throw null; } } + public static Azure.ResourceManager.Network.Models.WebApplicationFirewallScrubbingState Enabled { get { throw null; } } + public bool Equals(Azure.ResourceManager.Network.Models.WebApplicationFirewallScrubbingState 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.WebApplicationFirewallScrubbingState left, Azure.ResourceManager.Network.Models.WebApplicationFirewallScrubbingState right) { throw null; } + public static implicit operator Azure.ResourceManager.Network.Models.WebApplicationFirewallScrubbingState (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.Network.Models.WebApplicationFirewallScrubbingState left, Azure.ResourceManager.Network.Models.WebApplicationFirewallScrubbingState right) { throw null; } + public override string ToString() { throw null; } + } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] public readonly partial struct WebApplicationFirewallState : System.IEquatable { diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/AzureFirewallResource.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/AzureFirewallResource.cs index bf359abeee0bf..7c5c86baf7050 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/AzureFirewallResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/AzureFirewallResource.cs @@ -365,6 +365,82 @@ public virtual ArmOperation GetLearnedPrefixes(Wait } } + /// + /// Runs a packet capture on AzureFirewall. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/azureFirewalls/{azureFirewallName}/packetCapture + /// + /// + /// Operation Id + /// AzureFirewalls_PacketCapture + /// + /// + /// + /// 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. + /// Parameters supplied to run packet capture on azure firewall. + /// The cancellation token to use. + /// is null. + public virtual async Task PacketCaptureAsync(WaitUntil waitUntil, FirewallPacketCaptureContent content, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(content, nameof(content)); + + using var scope = _azureFirewallClientDiagnostics.CreateScope("AzureFirewallResource.PacketCapture"); + scope.Start(); + try + { + var response = await _azureFirewallRestClient.PacketCaptureAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, content, cancellationToken).ConfigureAwait(false); + var operation = new NetworkArmOperation(_azureFirewallClientDiagnostics, Pipeline, _azureFirewallRestClient.CreatePacketCaptureRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, content).Request, response, OperationFinalStateVia.Location); + if (waitUntil == WaitUntil.Completed) + await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Runs a packet capture on AzureFirewall. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/azureFirewalls/{azureFirewallName}/packetCapture + /// + /// + /// Operation Id + /// AzureFirewalls_PacketCapture + /// + /// + /// + /// 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. + /// Parameters supplied to run packet capture on azure firewall. + /// The cancellation token to use. + /// is null. + public virtual ArmOperation PacketCapture(WaitUntil waitUntil, FirewallPacketCaptureContent content, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(content, nameof(content)); + + using var scope = _azureFirewallClientDiagnostics.CreateScope("AzureFirewallResource.PacketCapture"); + scope.Start(); + try + { + var response = _azureFirewallRestClient.PacketCapture(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, content, cancellationToken); + var operation = new NetworkArmOperation(_azureFirewallClientDiagnostics, Pipeline, _azureFirewallRestClient.CreatePacketCaptureRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, content).Request, response, OperationFinalStateVia.Location); + if (waitUntil == WaitUntil.Completed) + operation.WaitForCompletionResponse(cancellationToken); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + /// /// Add a tag to the current resource. /// diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/BastionHostData.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/BastionHostData.cs index 43625214a5ad7..40b4815b13b0f 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/BastionHostData.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/BastionHostData.cs @@ -41,7 +41,8 @@ public BastionHostData() /// Enable/Disable IP Connect feature of the Bastion Host resource. /// Enable/Disable Shareable Link of the Bastion Host resource. /// Enable/Disable Tunneling feature of the Bastion Host resource. - internal BastionHostData(ResourceIdentifier id, string name, ResourceType? resourceType, AzureLocation? location, IDictionary tags, ETag? etag, NetworkSku sku, IList ipConfigurations, string dnsName, NetworkProvisioningState? provisioningState, int? scaleUnits, bool? disableCopyPaste, bool? enableFileCopy, bool? enableIPConnect, bool? enableShareableLink, bool? enableTunneling) : base(id, name, resourceType, location, tags) + /// Enable/Disable Kerberos feature of the Bastion Host resource. + internal BastionHostData(ResourceIdentifier id, string name, ResourceType? resourceType, AzureLocation? location, IDictionary tags, ETag? etag, NetworkSku sku, IList ipConfigurations, string dnsName, NetworkProvisioningState? provisioningState, int? scaleUnits, bool? disableCopyPaste, bool? enableFileCopy, bool? enableIPConnect, bool? enableShareableLink, bool? enableTunneling, bool? enableKerberos) : base(id, name, resourceType, location, tags) { ETag = etag; Sku = sku; @@ -54,6 +55,7 @@ internal BastionHostData(ResourceIdentifier id, string name, ResourceType? resou EnableIPConnect = enableIPConnect; EnableShareableLink = enableShareableLink; EnableTunneling = enableTunneling; + EnableKerberos = enableKerberos; } /// A unique read-only string that changes whenever the resource is updated. @@ -90,5 +92,7 @@ public BastionHostSkuName? SkuName public bool? EnableShareableLink { get; set; } /// Enable/Disable Tunneling feature of the Bastion Host resource. public bool? EnableTunneling { get; set; } + /// Enable/Disable Kerberos feature of the Bastion Host resource. + public bool? EnableKerberos { get; set; } } } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/BgpConnectionResource.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/BgpConnectionResource.cs index c2cdfa543a326..8f1ac173e2d73 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/BgpConnectionResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/BgpConnectionResource.cs @@ -6,6 +6,7 @@ #nullable disable using System; +using System.Collections.Generic; using System.Globalization; using System.Threading; using System.Threading.Tasks; @@ -315,14 +316,14 @@ public virtual ArmOperation Update(WaitUntil waitUntil, B /// /// 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 cancellation token to use. - public virtual async Task> GetLearnedRoutesVirtualHubBgpConnectionAsync(WaitUntil waitUntil, CancellationToken cancellationToken = default) + public virtual async Task>>> GetLearnedRoutesVirtualHubBgpConnectionAsync(WaitUntil waitUntil, CancellationToken cancellationToken = default) { using var scope = _bgpConnectionVirtualHubBgpConnectionsClientDiagnostics.CreateScope("BgpConnectionResource.GetLearnedRoutesVirtualHubBgpConnection"); scope.Start(); try { var response = await _bgpConnectionVirtualHubBgpConnectionsRestClient.ListLearnedRoutesAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new NetworkArmOperation(new PeerRouteListOperationSource(), _bgpConnectionVirtualHubBgpConnectionsClientDiagnostics, Pipeline, _bgpConnectionVirtualHubBgpConnectionsRestClient.CreateListLearnedRoutesRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name).Request, response, OperationFinalStateVia.Location); + var operation = new NetworkArmOperation>>(new IDictionaryOperationSource(), _bgpConnectionVirtualHubBgpConnectionsClientDiagnostics, Pipeline, _bgpConnectionVirtualHubBgpConnectionsRestClient.CreateListLearnedRoutesRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name).Request, response, OperationFinalStateVia.Location); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -349,14 +350,14 @@ public virtual async Task> GetLearnedRoutesVirtualHu /// /// 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 cancellation token to use. - public virtual ArmOperation GetLearnedRoutesVirtualHubBgpConnection(WaitUntil waitUntil, CancellationToken cancellationToken = default) + public virtual ArmOperation>> GetLearnedRoutesVirtualHubBgpConnection(WaitUntil waitUntil, CancellationToken cancellationToken = default) { using var scope = _bgpConnectionVirtualHubBgpConnectionsClientDiagnostics.CreateScope("BgpConnectionResource.GetLearnedRoutesVirtualHubBgpConnection"); scope.Start(); try { var response = _bgpConnectionVirtualHubBgpConnectionsRestClient.ListLearnedRoutes(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); - var operation = new NetworkArmOperation(new PeerRouteListOperationSource(), _bgpConnectionVirtualHubBgpConnectionsClientDiagnostics, Pipeline, _bgpConnectionVirtualHubBgpConnectionsRestClient.CreateListLearnedRoutesRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name).Request, response, OperationFinalStateVia.Location); + var operation = new NetworkArmOperation>>(new IDictionaryOperationSource(), _bgpConnectionVirtualHubBgpConnectionsClientDiagnostics, Pipeline, _bgpConnectionVirtualHubBgpConnectionsRestClient.CreateListLearnedRoutesRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name).Request, response, OperationFinalStateVia.Location); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; @@ -383,14 +384,14 @@ public virtual ArmOperation GetLearnedRoutesVirtualHubBgpConnecti /// /// 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 cancellation token to use. - public virtual async Task> GetAdvertisedRoutesVirtualHubBgpConnectionAsync(WaitUntil waitUntil, CancellationToken cancellationToken = default) + public virtual async Task>>> GetAdvertisedRoutesVirtualHubBgpConnectionAsync(WaitUntil waitUntil, CancellationToken cancellationToken = default) { using var scope = _bgpConnectionVirtualHubBgpConnectionsClientDiagnostics.CreateScope("BgpConnectionResource.GetAdvertisedRoutesVirtualHubBgpConnection"); scope.Start(); try { var response = await _bgpConnectionVirtualHubBgpConnectionsRestClient.ListAdvertisedRoutesAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new NetworkArmOperation(new PeerRouteListOperationSource(), _bgpConnectionVirtualHubBgpConnectionsClientDiagnostics, Pipeline, _bgpConnectionVirtualHubBgpConnectionsRestClient.CreateListAdvertisedRoutesRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name).Request, response, OperationFinalStateVia.Location); + var operation = new NetworkArmOperation>>(new IDictionaryOperationSource(), _bgpConnectionVirtualHubBgpConnectionsClientDiagnostics, Pipeline, _bgpConnectionVirtualHubBgpConnectionsRestClient.CreateListAdvertisedRoutesRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name).Request, response, OperationFinalStateVia.Location); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -417,14 +418,14 @@ public virtual async Task> GetAdvertisedRoutesVirtua /// /// 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 cancellation token to use. - public virtual ArmOperation GetAdvertisedRoutesVirtualHubBgpConnection(WaitUntil waitUntil, CancellationToken cancellationToken = default) + public virtual ArmOperation>> GetAdvertisedRoutesVirtualHubBgpConnection(WaitUntil waitUntil, CancellationToken cancellationToken = default) { using var scope = _bgpConnectionVirtualHubBgpConnectionsClientDiagnostics.CreateScope("BgpConnectionResource.GetAdvertisedRoutesVirtualHubBgpConnection"); scope.Start(); try { var response = _bgpConnectionVirtualHubBgpConnectionsRestClient.ListAdvertisedRoutes(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); - var operation = new NetworkArmOperation(new PeerRouteListOperationSource(), _bgpConnectionVirtualHubBgpConnectionsClientDiagnostics, Pipeline, _bgpConnectionVirtualHubBgpConnectionsRestClient.CreateListAdvertisedRoutesRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name).Request, response, OperationFinalStateVia.Location); + var operation = new NetworkArmOperation>>(new IDictionaryOperationSource(), _bgpConnectionVirtualHubBgpConnectionsClientDiagnostics, Pipeline, _bgpConnectionVirtualHubBgpConnectionsRestClient.CreateListAdvertisedRoutesRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name).Request, response, OperationFinalStateVia.Location); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; 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 7bf603fb0b0d3..6779d9556e1a5 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Extensions/NetworkExtensions.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Extensions/NetworkExtensions.cs @@ -1967,6 +1967,25 @@ public static ExpressRouteConnectionResource GetExpressRouteConnectionResource(t } #endregion + #region NetworkVirtualApplianceConnectionResource + /// + /// 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 instance the method will execute against. + /// The resource ID of the resource to get. + /// Returns a object. + public static NetworkVirtualApplianceConnectionResource GetNetworkVirtualApplianceConnectionResource(this ArmClient client, ResourceIdentifier id) + { + return client.GetResourceClient(() => + { + NetworkVirtualApplianceConnectionResource.ValidateResourceId(id); + return new NetworkVirtualApplianceConnectionResource(client, id); + } + ); + } + #endregion + #region BgpConnectionResource /// /// Gets an object representing a along with the instance operations that can be performed on it but with no data. diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/LongRunningOperation/EffectiveRouteMapRouteListOperationSource.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/LongRunningOperation/EffectiveRouteMapRouteListOperationSource.cs new file mode 100644 index 0000000000000..72838146c0c8d --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/LongRunningOperation/EffectiveRouteMapRouteListOperationSource.cs @@ -0,0 +1,31 @@ +// 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; +using Azure.Core; +using Azure.ResourceManager.Network.Models; + +namespace Azure.ResourceManager.Network +{ + internal class EffectiveRouteMapRouteListOperationSource : IOperationSource + { + EffectiveRouteMapRouteList IOperationSource.CreateResult(Response response, CancellationToken cancellationToken) + { + using var document = JsonDocument.Parse(response.ContentStream); + return EffectiveRouteMapRouteList.DeserializeEffectiveRouteMapRouteList(document.RootElement); + } + + async ValueTask IOperationSource.CreateResultAsync(Response response, CancellationToken cancellationToken) + { + using var document = await JsonDocument.ParseAsync(response.ContentStream, default, cancellationToken).ConfigureAwait(false); + return EffectiveRouteMapRouteList.DeserializeEffectiveRouteMapRouteList(document.RootElement); + } + } +} diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/LongRunningOperation/IDictionaryOperationSource.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/LongRunningOperation/IDictionaryOperationSource.cs new file mode 100644 index 0000000000000..0499c82c7834f --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/LongRunningOperation/IDictionaryOperationSource.cs @@ -0,0 +1,66 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; +using System.Text.Json; +using System.Threading; +using System.Threading.Tasks; +using Azure; +using Azure.Core; +using Azure.ResourceManager.Network.Models; + +namespace Azure.ResourceManager.Network +{ + internal class IDictionaryOperationSource : IOperationSource>> + { + IDictionary> IOperationSource>>.CreateResult(Response response, CancellationToken cancellationToken) + { + using var document = JsonDocument.Parse(response.ContentStream); + Dictionary> dictionary = new Dictionary>(); + foreach (var property in document.RootElement.EnumerateObject()) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + dictionary.Add(property.Name, null); + } + else + { + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(PeerRoute.DeserializePeerRoute(item)); + } + dictionary.Add(property.Name, array); + } + } + return dictionary; + } + + async ValueTask>> IOperationSource>>.CreateResultAsync(Response response, CancellationToken cancellationToken) + { + using var document = await JsonDocument.ParseAsync(response.ContentStream, default, cancellationToken).ConfigureAwait(false); + Dictionary> dictionary = new Dictionary>(); + foreach (var property in document.RootElement.EnumerateObject()) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + dictionary.Add(property.Name, null); + } + else + { + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(PeerRoute.DeserializePeerRoute(item)); + } + dictionary.Add(property.Name, array); + } + } + return dictionary; + } + } +} diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/LongRunningOperation/NetworkVirtualApplianceConnectionOperationSource.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/LongRunningOperation/NetworkVirtualApplianceConnectionOperationSource.cs new file mode 100644 index 0000000000000..d3414c4a395fa --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/LongRunningOperation/NetworkVirtualApplianceConnectionOperationSource.cs @@ -0,0 +1,40 @@ +// 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; +using Azure.Core; +using Azure.ResourceManager; + +namespace Azure.ResourceManager.Network +{ + internal class NetworkVirtualApplianceConnectionOperationSource : IOperationSource + { + private readonly ArmClient _client; + + internal NetworkVirtualApplianceConnectionOperationSource(ArmClient client) + { + _client = client; + } + + NetworkVirtualApplianceConnectionResource IOperationSource.CreateResult(Response response, CancellationToken cancellationToken) + { + using var document = JsonDocument.Parse(response.ContentStream); + var data = NetworkVirtualApplianceConnectionData.DeserializeNetworkVirtualApplianceConnectionData(document.RootElement); + return new NetworkVirtualApplianceConnectionResource(_client, data); + } + + async ValueTask IOperationSource.CreateResultAsync(Response response, CancellationToken cancellationToken) + { + using var document = await JsonDocument.ParseAsync(response.ContentStream, default, cancellationToken).ConfigureAwait(false); + var data = NetworkVirtualApplianceConnectionData.DeserializeNetworkVirtualApplianceConnectionData(document.RootElement); + return new NetworkVirtualApplianceConnectionResource(_client, data); + } + } +} diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/LongRunningOperation/PeerRouteListOperationSource.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/LongRunningOperation/PeerRouteListOperationSource.cs deleted file mode 100644 index 102cf86b6007f..0000000000000 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/LongRunningOperation/PeerRouteListOperationSource.cs +++ /dev/null @@ -1,31 +0,0 @@ -// 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; -using Azure.Core; -using Azure.ResourceManager.Network.Models; - -namespace Azure.ResourceManager.Network -{ - internal class PeerRouteListOperationSource : IOperationSource - { - PeerRouteList IOperationSource.CreateResult(Response response, CancellationToken cancellationToken) - { - using var document = JsonDocument.Parse(response.ContentStream); - return PeerRouteList.DeserializePeerRouteList(document.RootElement); - } - - async ValueTask IOperationSource.CreateResultAsync(Response response, CancellationToken cancellationToken) - { - using var document = await JsonDocument.ParseAsync(response.ContentStream, default, cancellationToken).ConfigureAwait(false); - return PeerRouteList.DeserializePeerRouteList(document.RootElement); - } - } -} diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/LongRunningOperation/VirtualHubEffectiveRouteListOperationSource.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/LongRunningOperation/VirtualHubEffectiveRouteListOperationSource.cs new file mode 100644 index 0000000000000..7ec48ed20b2b3 --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/LongRunningOperation/VirtualHubEffectiveRouteListOperationSource.cs @@ -0,0 +1,31 @@ +// 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; +using Azure.Core; +using Azure.ResourceManager.Network.Models; + +namespace Azure.ResourceManager.Network +{ + internal class VirtualHubEffectiveRouteListOperationSource : IOperationSource + { + VirtualHubEffectiveRouteList IOperationSource.CreateResult(Response response, CancellationToken cancellationToken) + { + using var document = JsonDocument.Parse(response.ContentStream); + return VirtualHubEffectiveRouteList.DeserializeVirtualHubEffectiveRouteList(document.RootElement); + } + + async ValueTask IOperationSource.CreateResultAsync(Response response, CancellationToken cancellationToken) + { + using var document = await JsonDocument.ParseAsync(response.ContentStream, default, cancellationToken).ConfigureAwait(false); + return VirtualHubEffectiveRouteList.DeserializeVirtualHubEffectiveRouteList(document.RootElement); + } + } +} diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ApplicationGatewayFirewallRateLimitDuration.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ApplicationGatewayFirewallRateLimitDuration.cs new file mode 100644 index 0000000000000..5ae5669b8f35f --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ApplicationGatewayFirewallRateLimitDuration.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 +{ + /// Duration over which Rate Limit policy will be applied. Applies only when ruleType is RateLimitRule. + public readonly partial struct ApplicationGatewayFirewallRateLimitDuration : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public ApplicationGatewayFirewallRateLimitDuration(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string OneMinValue = "OneMin"; + private const string FiveMinsValue = "FiveMins"; + + /// OneMin. + public static ApplicationGatewayFirewallRateLimitDuration OneMin { get; } = new ApplicationGatewayFirewallRateLimitDuration(OneMinValue); + /// FiveMins. + public static ApplicationGatewayFirewallRateLimitDuration FiveMins { get; } = new ApplicationGatewayFirewallRateLimitDuration(FiveMinsValue); + /// Determines if two values are the same. + public static bool operator ==(ApplicationGatewayFirewallRateLimitDuration left, ApplicationGatewayFirewallRateLimitDuration right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(ApplicationGatewayFirewallRateLimitDuration left, ApplicationGatewayFirewallRateLimitDuration right) => !left.Equals(right); + /// Converts a string to a . + public static implicit operator ApplicationGatewayFirewallRateLimitDuration(string value) => new ApplicationGatewayFirewallRateLimitDuration(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is ApplicationGatewayFirewallRateLimitDuration other && Equals(other); + /// + public bool Equals(ApplicationGatewayFirewallRateLimitDuration 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/ApplicationGatewayFirewallUserSessionVariable.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ApplicationGatewayFirewallUserSessionVariable.cs new file mode 100644 index 0000000000000..80548ce693c02 --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ApplicationGatewayFirewallUserSessionVariable.cs @@ -0,0 +1,54 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.ResourceManager.Network.Models +{ + /// User Session clause variable. + public readonly partial struct ApplicationGatewayFirewallUserSessionVariable : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public ApplicationGatewayFirewallUserSessionVariable(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string ClientAddrValue = "ClientAddr"; + private const string GeoLocationValue = "GeoLocation"; + private const string NoneValue = "None"; + + /// ClientAddr. + public static ApplicationGatewayFirewallUserSessionVariable ClientAddr { get; } = new ApplicationGatewayFirewallUserSessionVariable(ClientAddrValue); + /// GeoLocation. + public static ApplicationGatewayFirewallUserSessionVariable GeoLocation { get; } = new ApplicationGatewayFirewallUserSessionVariable(GeoLocationValue); + /// None. + public static ApplicationGatewayFirewallUserSessionVariable None { get; } = new ApplicationGatewayFirewallUserSessionVariable(NoneValue); + /// Determines if two values are the same. + public static bool operator ==(ApplicationGatewayFirewallUserSessionVariable left, ApplicationGatewayFirewallUserSessionVariable right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(ApplicationGatewayFirewallUserSessionVariable left, ApplicationGatewayFirewallUserSessionVariable right) => !left.Equals(right); + /// Converts a string to a . + public static implicit operator ApplicationGatewayFirewallUserSessionVariable(string value) => new ApplicationGatewayFirewallUserSessionVariable(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is ApplicationGatewayFirewallUserSessionVariable other && Equals(other); + /// + public bool Equals(ApplicationGatewayFirewallUserSessionVariable 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/ApplicationRule.Serialization.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ApplicationRule.Serialization.cs index 5c4a09ef2bf58..40f002e66cae2 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ApplicationRule.Serialization.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ApplicationRule.Serialization.cs @@ -101,6 +101,16 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) } writer.WriteEndArray(); } + if (Optional.IsCollectionDefined(HttpHeadersToInsert)) + { + writer.WritePropertyName("httpHeadersToInsert"u8); + writer.WriteStartArray(); + foreach (var item in HttpHeadersToInsert) + { + writer.WriteObjectValue(item); + } + writer.WriteEndArray(); + } if (Optional.IsDefined(Name)) { writer.WritePropertyName("name"u8); @@ -131,6 +141,7 @@ internal static ApplicationRule DeserializeApplicationRule(JsonElement element) Optional> sourceIPGroups = default; Optional terminateTLS = default; Optional> webCategories = default; + Optional> httpHeadersToInsert = default; Optional name = default; Optional description = default; FirewallPolicyRuleType ruleType = default; @@ -257,6 +268,20 @@ internal static ApplicationRule DeserializeApplicationRule(JsonElement element) webCategories = array; continue; } + if (property.NameEquals("httpHeadersToInsert"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(FirewallPolicyHttpHeaderToInsert.DeserializeFirewallPolicyHttpHeaderToInsert(item)); + } + httpHeadersToInsert = array; + continue; + } if (property.NameEquals("name"u8)) { name = property.Value.GetString(); @@ -273,7 +298,7 @@ internal static ApplicationRule DeserializeApplicationRule(JsonElement element) continue; } } - return new ApplicationRule(name.Value, description.Value, ruleType, Optional.ToList(sourceAddresses), Optional.ToList(destinationAddresses), Optional.ToList(protocols), Optional.ToList(targetFqdns), Optional.ToList(targetUrls), Optional.ToList(fqdnTags), Optional.ToList(sourceIPGroups), Optional.ToNullable(terminateTLS), Optional.ToList(webCategories)); + return new ApplicationRule(name.Value, description.Value, ruleType, Optional.ToList(sourceAddresses), Optional.ToList(destinationAddresses), Optional.ToList(protocols), Optional.ToList(targetFqdns), Optional.ToList(targetUrls), Optional.ToList(fqdnTags), Optional.ToList(sourceIPGroups), Optional.ToNullable(terminateTLS), Optional.ToList(webCategories), Optional.ToList(httpHeadersToInsert)); } } } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ApplicationRule.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ApplicationRule.cs index 19b17fe325834..10ac29f76e795 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ApplicationRule.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ApplicationRule.cs @@ -24,6 +24,7 @@ public ApplicationRule() FqdnTags = new ChangeTrackingList(); SourceIPGroups = new ChangeTrackingList(); WebCategories = new ChangeTrackingList(); + HttpHeadersToInsert = new ChangeTrackingList(); RuleType = FirewallPolicyRuleType.ApplicationRule; } @@ -40,7 +41,8 @@ public ApplicationRule() /// List of source IpGroups for this rule. /// Terminate TLS connections for this rule. /// List of destination azure web categories. - internal ApplicationRule(string name, string description, FirewallPolicyRuleType ruleType, IList sourceAddresses, IList destinationAddresses, IList protocols, IList targetFqdns, IList targetUrls, IList fqdnTags, IList sourceIPGroups, bool? terminateTLS, IList webCategories) : base(name, description, ruleType) + /// List of HTTP/S headers to insert. + internal ApplicationRule(string name, string description, FirewallPolicyRuleType ruleType, IList sourceAddresses, IList destinationAddresses, IList protocols, IList targetFqdns, IList targetUrls, IList fqdnTags, IList sourceIPGroups, bool? terminateTLS, IList webCategories, IList httpHeadersToInsert) : base(name, description, ruleType) { SourceAddresses = sourceAddresses; DestinationAddresses = destinationAddresses; @@ -51,6 +53,7 @@ internal ApplicationRule(string name, string description, FirewallPolicyRuleType SourceIPGroups = sourceIPGroups; TerminateTLS = terminateTLS; WebCategories = webCategories; + HttpHeadersToInsert = httpHeadersToInsert; RuleType = ruleType; } @@ -72,5 +75,7 @@ internal ApplicationRule(string name, string description, FirewallPolicyRuleType public bool? TerminateTLS { get; set; } /// List of destination azure web categories. public IList WebCategories { get; } + /// List of HTTP/S headers to insert. + public IList HttpHeadersToInsert { get; } } } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/AzureFirewallPacketCaptureFlags.Serialization.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/AzureFirewallPacketCaptureFlags.Serialization.cs new file mode 100644 index 0000000000000..2d0ea55d03a1d --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/AzureFirewallPacketCaptureFlags.Serialization.cs @@ -0,0 +1,48 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.Network.Models +{ + public partial class AzureFirewallPacketCaptureFlags : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (Optional.IsDefined(FlagsType)) + { + writer.WritePropertyName("type"u8); + writer.WriteStringValue(FlagsType.Value.ToString()); + } + writer.WriteEndObject(); + } + + internal static AzureFirewallPacketCaptureFlags DeserializeAzureFirewallPacketCaptureFlags(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + Optional type = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("type"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + type = new AzureFirewallPacketCaptureFlagsType(property.Value.GetString()); + continue; + } + } + return new AzureFirewallPacketCaptureFlags(Optional.ToNullable(type)); + } + } +} diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/AzureFirewallPacketCaptureFlags.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/AzureFirewallPacketCaptureFlags.cs new file mode 100644 index 0000000000000..25f0196d5815d --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/AzureFirewallPacketCaptureFlags.cs @@ -0,0 +1,28 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.ResourceManager.Network.Models +{ + /// Properties of the AzureFirewallRCAction. + public partial class AzureFirewallPacketCaptureFlags + { + /// Initializes a new instance of AzureFirewallPacketCaptureFlags. + public AzureFirewallPacketCaptureFlags() + { + } + + /// Initializes a new instance of AzureFirewallPacketCaptureFlags. + /// Flags to capture. + internal AzureFirewallPacketCaptureFlags(AzureFirewallPacketCaptureFlagsType? flagsType) + { + FlagsType = flagsType; + } + + /// Flags to capture. + public AzureFirewallPacketCaptureFlagsType? FlagsType { get; set; } + } +} diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/AzureFirewallPacketCaptureFlagsType.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/AzureFirewallPacketCaptureFlagsType.cs new file mode 100644 index 0000000000000..f37175c90eb49 --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/AzureFirewallPacketCaptureFlagsType.cs @@ -0,0 +1,63 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.ResourceManager.Network.Models +{ + /// The flags type to be captured. + public readonly partial struct AzureFirewallPacketCaptureFlagsType : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public AzureFirewallPacketCaptureFlagsType(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string FinValue = "fin"; + private const string SynValue = "syn"; + private const string RstValue = "rst"; + private const string PushValue = "push"; + private const string AckValue = "ack"; + private const string UrgValue = "urg"; + + /// fin. + public static AzureFirewallPacketCaptureFlagsType Fin { get; } = new AzureFirewallPacketCaptureFlagsType(FinValue); + /// syn. + public static AzureFirewallPacketCaptureFlagsType Syn { get; } = new AzureFirewallPacketCaptureFlagsType(SynValue); + /// rst. + public static AzureFirewallPacketCaptureFlagsType Rst { get; } = new AzureFirewallPacketCaptureFlagsType(RstValue); + /// push. + public static AzureFirewallPacketCaptureFlagsType Push { get; } = new AzureFirewallPacketCaptureFlagsType(PushValue); + /// ack. + public static AzureFirewallPacketCaptureFlagsType Ack { get; } = new AzureFirewallPacketCaptureFlagsType(AckValue); + /// urg. + public static AzureFirewallPacketCaptureFlagsType Urg { get; } = new AzureFirewallPacketCaptureFlagsType(UrgValue); + /// Determines if two values are the same. + public static bool operator ==(AzureFirewallPacketCaptureFlagsType left, AzureFirewallPacketCaptureFlagsType right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(AzureFirewallPacketCaptureFlagsType left, AzureFirewallPacketCaptureFlagsType right) => !left.Equals(right); + /// Converts a string to a . + public static implicit operator AzureFirewallPacketCaptureFlagsType(string value) => new AzureFirewallPacketCaptureFlagsType(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is AzureFirewallPacketCaptureFlagsType other && Equals(other); + /// + public bool Equals(AzureFirewallPacketCaptureFlagsType 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/AzureFirewallPacketCaptureRule.Serialization.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/AzureFirewallPacketCaptureRule.Serialization.cs new file mode 100644 index 0000000000000..84a66f3a19621 --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/AzureFirewallPacketCaptureRule.Serialization.cs @@ -0,0 +1,109 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.Network.Models +{ + public partial class AzureFirewallPacketCaptureRule : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (Optional.IsCollectionDefined(Sources)) + { + writer.WritePropertyName("sources"u8); + writer.WriteStartArray(); + foreach (var item in Sources) + { + writer.WriteStringValue(item); + } + writer.WriteEndArray(); + } + if (Optional.IsCollectionDefined(Destinations)) + { + writer.WritePropertyName("destinations"u8); + writer.WriteStartArray(); + foreach (var item in Destinations) + { + writer.WriteStringValue(item); + } + writer.WriteEndArray(); + } + if (Optional.IsCollectionDefined(DestinationPorts)) + { + writer.WritePropertyName("destinationPorts"u8); + writer.WriteStartArray(); + foreach (var item in DestinationPorts) + { + writer.WriteStringValue(item); + } + writer.WriteEndArray(); + } + writer.WriteEndObject(); + } + + internal static AzureFirewallPacketCaptureRule DeserializeAzureFirewallPacketCaptureRule(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + Optional> sources = default; + Optional> destinations = default; + Optional> destinationPorts = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("sources"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(item.GetString()); + } + sources = array; + continue; + } + if (property.NameEquals("destinations"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(item.GetString()); + } + destinations = array; + continue; + } + if (property.NameEquals("destinationPorts"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(item.GetString()); + } + destinationPorts = array; + continue; + } + } + return new AzureFirewallPacketCaptureRule(Optional.ToList(sources), Optional.ToList(destinations), Optional.ToList(destinationPorts)); + } + } +} diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/AzureFirewallPacketCaptureRule.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/AzureFirewallPacketCaptureRule.cs new file mode 100644 index 0000000000000..2092a7f1182e3 --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/AzureFirewallPacketCaptureRule.cs @@ -0,0 +1,42 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; +using Azure.Core; + +namespace Azure.ResourceManager.Network.Models +{ + /// Group of src/dest ips and ports to be captured. + public partial class AzureFirewallPacketCaptureRule + { + /// Initializes a new instance of AzureFirewallPacketCaptureRule. + public AzureFirewallPacketCaptureRule() + { + Sources = new ChangeTrackingList(); + Destinations = new ChangeTrackingList(); + DestinationPorts = new ChangeTrackingList(); + } + + /// Initializes a new instance of AzureFirewallPacketCaptureRule. + /// List of source IP addresses/subnets to be captured. + /// List of destination IP addresses/subnets to be captured. + /// List of ports to be captured. + internal AzureFirewallPacketCaptureRule(IList sources, IList destinations, IList destinationPorts) + { + Sources = sources; + Destinations = destinations; + DestinationPorts = destinationPorts; + } + + /// List of source IP addresses/subnets to be captured. + public IList Sources { get; } + /// List of destination IP addresses/subnets to be captured. + public IList Destinations { get; } + /// List of ports to be captured. + public IList DestinationPorts { get; } + } +} diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/BastionHostData.Serialization.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/BastionHostData.Serialization.cs index 91f383e276e3a..d30ab6aa50a41 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/BastionHostData.Serialization.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/BastionHostData.Serialization.cs @@ -91,6 +91,11 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WritePropertyName("enableTunneling"u8); writer.WriteBooleanValue(EnableTunneling.Value); } + if (Optional.IsDefined(EnableKerberos)) + { + writer.WritePropertyName("enableKerberos"u8); + writer.WriteBooleanValue(EnableKerberos.Value); + } writer.WriteEndObject(); writer.WriteEndObject(); } @@ -117,6 +122,7 @@ internal static BastionHostData DeserializeBastionHostData(JsonElement element) Optional enableIPConnect = default; Optional enableShareableLink = default; Optional enableTunneling = default; + Optional enableKerberos = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("etag"u8)) @@ -274,11 +280,20 @@ internal static BastionHostData DeserializeBastionHostData(JsonElement element) enableTunneling = property0.Value.GetBoolean(); continue; } + if (property0.NameEquals("enableKerberos"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + enableKerberos = property0.Value.GetBoolean(); + continue; + } } continue; } } - return new BastionHostData(id.Value, name.Value, Optional.ToNullable(type), Optional.ToNullable(location), Optional.ToDictionary(tags), Optional.ToNullable(etag), sku.Value, Optional.ToList(ipConfigurations), dnsName.Value, Optional.ToNullable(provisioningState), Optional.ToNullable(scaleUnits), Optional.ToNullable(disableCopyPaste), Optional.ToNullable(enableFileCopy), Optional.ToNullable(enableIPConnect), Optional.ToNullable(enableShareableLink), Optional.ToNullable(enableTunneling)); + return new BastionHostData(id.Value, name.Value, Optional.ToNullable(type), Optional.ToNullable(location), Optional.ToDictionary(tags), Optional.ToNullable(etag), sku.Value, Optional.ToList(ipConfigurations), dnsName.Value, Optional.ToNullable(provisioningState), Optional.ToNullable(scaleUnits), Optional.ToNullable(disableCopyPaste), Optional.ToNullable(enableFileCopy), Optional.ToNullable(enableIPConnect), Optional.ToNullable(enableShareableLink), Optional.ToNullable(enableTunneling), Optional.ToNullable(enableKerberos)); } } } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/EffectiveRouteMapRoute.Serialization.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/EffectiveRouteMapRoute.Serialization.cs new file mode 100644 index 0000000000000..caf5e897c4799 --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/EffectiveRouteMapRoute.Serialization.cs @@ -0,0 +1,45 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.Network.Models +{ + public partial class EffectiveRouteMapRoute + { + internal static EffectiveRouteMapRoute DeserializeEffectiveRouteMapRoute(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + Optional prefix = default; + Optional bgpCommunities = default; + Optional asPath = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("prefix"u8)) + { + prefix = property.Value.GetString(); + continue; + } + if (property.NameEquals("bgpCommunities"u8)) + { + bgpCommunities = property.Value.GetString(); + continue; + } + if (property.NameEquals("asPath"u8)) + { + asPath = property.Value.GetString(); + continue; + } + } + return new EffectiveRouteMapRoute(prefix.Value, bgpCommunities.Value, asPath.Value); + } + } +} diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/EffectiveRouteMapRoute.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/EffectiveRouteMapRoute.cs new file mode 100644 index 0000000000000..e5afc0b8d3f5c --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/EffectiveRouteMapRoute.cs @@ -0,0 +1,36 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.ResourceManager.Network.Models +{ + /// The effective RouteMap route configured on the connection resource. + public partial class EffectiveRouteMapRoute + { + /// Initializes a new instance of EffectiveRouteMapRoute. + internal EffectiveRouteMapRoute() + { + } + + /// Initializes a new instance of EffectiveRouteMapRoute. + /// The address prefix of the route. + /// BGP communities of the route. + /// The ASPath of this route. + internal EffectiveRouteMapRoute(string prefix, string bgpCommunities, string asPath) + { + Prefix = prefix; + BgpCommunities = bgpCommunities; + AsPath = asPath; + } + + /// The address prefix of the route. + public string Prefix { get; } + /// BGP communities of the route. + public string BgpCommunities { get; } + /// The ASPath of this route. + public string AsPath { get; } + } +} diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/PeerRouteList.Serialization.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/EffectiveRouteMapRouteList.Serialization.cs similarity index 64% rename from sdk/network/Azure.ResourceManager.Network/src/Generated/Models/PeerRouteList.Serialization.cs rename to sdk/network/Azure.ResourceManager.Network/src/Generated/Models/EffectiveRouteMapRouteList.Serialization.cs index 6e035770018ee..a0f321779ac79 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/PeerRouteList.Serialization.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/EffectiveRouteMapRouteList.Serialization.cs @@ -11,15 +11,15 @@ namespace Azure.ResourceManager.Network.Models { - public partial class PeerRouteList + public partial class EffectiveRouteMapRouteList { - internal static PeerRouteList DeserializePeerRouteList(JsonElement element) + internal static EffectiveRouteMapRouteList DeserializeEffectiveRouteMapRouteList(JsonElement element) { if (element.ValueKind == JsonValueKind.Null) { return null; } - Optional> value = default; + Optional> value = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("value"u8)) @@ -28,16 +28,16 @@ internal static PeerRouteList DeserializePeerRouteList(JsonElement element) { continue; } - List array = new List(); + List array = new List(); foreach (var item in property.Value.EnumerateArray()) { - array.Add(PeerRoute.DeserializePeerRoute(item)); + array.Add(EffectiveRouteMapRoute.DeserializeEffectiveRouteMapRoute(item)); } value = array; continue; } } - return new PeerRouteList(Optional.ToList(value)); + return new EffectiveRouteMapRouteList(Optional.ToList(value)); } } } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/EffectiveRouteMapRouteList.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/EffectiveRouteMapRouteList.cs new file mode 100644 index 0000000000000..a5f07792f2599 --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/EffectiveRouteMapRouteList.cs @@ -0,0 +1,32 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; +using Azure.Core; + +namespace Azure.ResourceManager.Network.Models +{ + /// EffectiveRouteMapRoute List. + public partial class EffectiveRouteMapRouteList + { + /// Initializes a new instance of EffectiveRouteMapRouteList. + internal EffectiveRouteMapRouteList() + { + Value = new ChangeTrackingList(); + } + + /// Initializes a new instance of EffectiveRouteMapRouteList. + /// The list of Effective RouteMap Routes configured on the connection resource. + internal EffectiveRouteMapRouteList(IReadOnlyList value) + { + Value = value; + } + + /// The list of Effective RouteMap Routes configured on the connection resource. + public IReadOnlyList Value { get; } + } +} diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/FirewallPacketCaptureContent.Serialization.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/FirewallPacketCaptureContent.Serialization.cs new file mode 100644 index 0000000000000..40b4967ff2095 --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/FirewallPacketCaptureContent.Serialization.cs @@ -0,0 +1,186 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.Network.Models +{ + public partial class FirewallPacketCaptureContent : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (Optional.IsDefined(Id)) + { + writer.WritePropertyName("id"u8); + writer.WriteStringValue(Id); + } + writer.WritePropertyName("properties"u8); + writer.WriteStartObject(); + if (Optional.IsDefined(DurationInSeconds)) + { + writer.WritePropertyName("durationInSeconds"u8); + writer.WriteNumberValue(DurationInSeconds.Value); + } + if (Optional.IsDefined(NumberOfPacketsToCapture)) + { + writer.WritePropertyName("numberOfPacketsToCapture"u8); + writer.WriteNumberValue(NumberOfPacketsToCapture.Value); + } + if (Optional.IsDefined(SasUri)) + { + writer.WritePropertyName("sasUrl"u8); + writer.WriteStringValue(SasUri.AbsoluteUri); + } + if (Optional.IsDefined(FileName)) + { + writer.WritePropertyName("fileName"u8); + writer.WriteStringValue(FileName); + } + if (Optional.IsDefined(Protocol)) + { + writer.WritePropertyName("protocol"u8); + writer.WriteStringValue(Protocol.Value.ToString()); + } + if (Optional.IsCollectionDefined(Flags)) + { + writer.WritePropertyName("flags"u8); + writer.WriteStartArray(); + foreach (var item in Flags) + { + writer.WriteObjectValue(item); + } + writer.WriteEndArray(); + } + if (Optional.IsCollectionDefined(Filters)) + { + writer.WritePropertyName("filters"u8); + writer.WriteStartArray(); + foreach (var item in Filters) + { + writer.WriteObjectValue(item); + } + writer.WriteEndArray(); + } + writer.WriteEndObject(); + writer.WriteEndObject(); + } + + internal static FirewallPacketCaptureContent DeserializeFirewallPacketCaptureContent(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + Optional id = default; + Optional durationInSeconds = default; + Optional numberOfPacketsToCapture = default; + Optional sasUrl = default; + Optional fileName = default; + Optional protocol = default; + Optional> flags = default; + Optional> filters = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("id"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + id = new ResourceIdentifier(property.Value.GetString()); + 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("durationInSeconds"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + durationInSeconds = property0.Value.GetInt32(); + continue; + } + if (property0.NameEquals("numberOfPacketsToCapture"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + numberOfPacketsToCapture = property0.Value.GetInt32(); + continue; + } + if (property0.NameEquals("sasUrl"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + sasUrl = new Uri(property0.Value.GetString()); + continue; + } + if (property0.NameEquals("fileName"u8)) + { + fileName = property0.Value.GetString(); + continue; + } + if (property0.NameEquals("protocol"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + protocol = new AzureFirewallNetworkRuleProtocol(property0.Value.GetString()); + continue; + } + if (property0.NameEquals("flags"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List array = new List(); + foreach (var item in property0.Value.EnumerateArray()) + { + array.Add(AzureFirewallPacketCaptureFlags.DeserializeAzureFirewallPacketCaptureFlags(item)); + } + flags = array; + continue; + } + if (property0.NameEquals("filters"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List array = new List(); + foreach (var item in property0.Value.EnumerateArray()) + { + array.Add(AzureFirewallPacketCaptureRule.DeserializeAzureFirewallPacketCaptureRule(item)); + } + filters = array; + continue; + } + } + continue; + } + } + return new FirewallPacketCaptureContent(id.Value, Optional.ToNullable(durationInSeconds), Optional.ToNullable(numberOfPacketsToCapture), sasUrl.Value, fileName.Value, Optional.ToNullable(protocol), Optional.ToList(flags), Optional.ToList(filters)); + } + } +} diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/FirewallPacketCaptureContent.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/FirewallPacketCaptureContent.cs new file mode 100644 index 0000000000000..ac0c0f232e507 --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/FirewallPacketCaptureContent.cs @@ -0,0 +1,59 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; +using Azure.Core; + +namespace Azure.ResourceManager.Network.Models +{ + /// Azure Firewall Packet Capture Parameters resource. + public partial class FirewallPacketCaptureContent : NetworkSubResource + { + /// Initializes a new instance of FirewallPacketCaptureContent. + public FirewallPacketCaptureContent() + { + Flags = new ChangeTrackingList(); + Filters = new ChangeTrackingList(); + } + + /// Initializes a new instance of FirewallPacketCaptureContent. + /// Resource ID. + /// Duration of packet capture in seconds. + /// Number of packets to be captured. + /// Upload capture location. + /// Name of file to be uploaded to sasURL. + /// The protocol of packets to capture. + /// The tcp-flag type to be captured. Used with protocol TCP. + /// Rules to filter packet captures. + internal FirewallPacketCaptureContent(ResourceIdentifier id, int? durationInSeconds, int? numberOfPacketsToCapture, Uri sasUri, string fileName, AzureFirewallNetworkRuleProtocol? protocol, IList flags, IList filters) : base(id) + { + DurationInSeconds = durationInSeconds; + NumberOfPacketsToCapture = numberOfPacketsToCapture; + SasUri = sasUri; + FileName = fileName; + Protocol = protocol; + Flags = flags; + Filters = filters; + } + + /// Duration of packet capture in seconds. + public int? DurationInSeconds { get; set; } + /// Number of packets to be captured. + public int? NumberOfPacketsToCapture { get; set; } + /// Upload capture location. + public Uri SasUri { get; set; } + /// Name of file to be uploaded to sasURL. + public string FileName { get; set; } + /// The protocol of packets to capture. + public AzureFirewallNetworkRuleProtocol? Protocol { get; set; } + /// The tcp-flag type to be captured. Used with protocol TCP. + public IList Flags { get; } + /// Rules to filter packet captures. + public IList Filters { get; } + } +} diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/FirewallPolicyHttpHeaderToInsert.Serialization.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/FirewallPolicyHttpHeaderToInsert.Serialization.cs new file mode 100644 index 0000000000000..fbf2fcdc65fa7 --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/FirewallPolicyHttpHeaderToInsert.Serialization.cs @@ -0,0 +1,55 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.Network.Models +{ + public partial class FirewallPolicyHttpHeaderToInsert : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (Optional.IsDefined(HeaderName)) + { + writer.WritePropertyName("headerName"u8); + writer.WriteStringValue(HeaderName); + } + if (Optional.IsDefined(HeaderValue)) + { + writer.WritePropertyName("headerValue"u8); + writer.WriteStringValue(HeaderValue); + } + writer.WriteEndObject(); + } + + internal static FirewallPolicyHttpHeaderToInsert DeserializeFirewallPolicyHttpHeaderToInsert(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + Optional headerName = default; + Optional headerValue = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("headerName"u8)) + { + headerName = property.Value.GetString(); + continue; + } + if (property.NameEquals("headerValue"u8)) + { + headerValue = property.Value.GetString(); + continue; + } + } + return new FirewallPolicyHttpHeaderToInsert(headerName.Value, headerValue.Value); + } + } +} diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/FirewallPolicyHttpHeaderToInsert.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/FirewallPolicyHttpHeaderToInsert.cs new file mode 100644 index 0000000000000..b36cbd4fd3f67 --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/FirewallPolicyHttpHeaderToInsert.cs @@ -0,0 +1,32 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.ResourceManager.Network.Models +{ + /// name and value of HTTP/S header to insert. + public partial class FirewallPolicyHttpHeaderToInsert + { + /// Initializes a new instance of FirewallPolicyHttpHeaderToInsert. + public FirewallPolicyHttpHeaderToInsert() + { + } + + /// Initializes a new instance of FirewallPolicyHttpHeaderToInsert. + /// Contains the name of the header. + /// Contains the value of the header. + internal FirewallPolicyHttpHeaderToInsert(string headerName, string headerValue) + { + HeaderName = headerName; + HeaderValue = headerValue; + } + + /// Contains the name of the header. + public string HeaderName { get; set; } + /// Contains the value of the header. + public string HeaderValue { get; set; } + } +} diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/GroupByUserSession.Serialization.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/GroupByUserSession.Serialization.cs new file mode 100644 index 0000000000000..d270ee0b0d56b --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/GroupByUserSession.Serialization.cs @@ -0,0 +1,52 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.Network.Models +{ + public partial class GroupByUserSession : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + writer.WritePropertyName("groupByVariables"u8); + writer.WriteStartArray(); + foreach (var item in GroupByVariables) + { + writer.WriteObjectValue(item); + } + writer.WriteEndArray(); + writer.WriteEndObject(); + } + + internal static GroupByUserSession DeserializeGroupByUserSession(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + IList groupByVariables = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("groupByVariables"u8)) + { + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(GroupByVariable.DeserializeGroupByVariable(item)); + } + groupByVariables = array; + continue; + } + } + return new GroupByUserSession(groupByVariables); + } + } +} diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/GroupByUserSession.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/GroupByUserSession.cs new file mode 100644 index 0000000000000..fd70a72b6ebbb --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/GroupByUserSession.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; +using System.Linq; +using Azure.Core; + +namespace Azure.ResourceManager.Network.Models +{ + /// Define user session identifier group by clauses. + public partial class GroupByUserSession + { + /// Initializes a new instance of GroupByUserSession. + /// List of group by clause variables. + /// is null. + public GroupByUserSession(IEnumerable groupByVariables) + { + Argument.AssertNotNull(groupByVariables, nameof(groupByVariables)); + + GroupByVariables = groupByVariables.ToList(); + } + + /// Initializes a new instance of GroupByUserSession. + /// List of group by clause variables. + internal GroupByUserSession(IList groupByVariables) + { + GroupByVariables = groupByVariables; + } + + /// List of group by clause variables. + public IList GroupByVariables { get; } + } +} diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/GroupByVariable.Serialization.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/GroupByVariable.Serialization.cs new file mode 100644 index 0000000000000..8a05b9013faed --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/GroupByVariable.Serialization.cs @@ -0,0 +1,41 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.Network.Models +{ + public partial class GroupByVariable : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + writer.WritePropertyName("variableName"u8); + writer.WriteStringValue(VariableName.ToString()); + writer.WriteEndObject(); + } + + internal static GroupByVariable DeserializeGroupByVariable(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + ApplicationGatewayFirewallUserSessionVariable variableName = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("variableName"u8)) + { + variableName = new ApplicationGatewayFirewallUserSessionVariable(property.Value.GetString()); + continue; + } + } + return new GroupByVariable(variableName); + } + } +} diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/GroupByVariable.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/GroupByVariable.cs new file mode 100644 index 0000000000000..c45486b44d129 --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/GroupByVariable.cs @@ -0,0 +1,23 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.ResourceManager.Network.Models +{ + /// Define user session group by clause variables. + public partial class GroupByVariable + { + /// Initializes a new instance of GroupByVariable. + /// User Session clause variable. + public GroupByVariable(ApplicationGatewayFirewallUserSessionVariable variableName) + { + VariableName = variableName; + } + + /// User Session clause variable. + public ApplicationGatewayFirewallUserSessionVariable VariableName { get; set; } + } +} diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/LoadBalancerBackendAddressAdminState.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/LoadBalancerBackendAddressAdminState.cs index 3db7121f26742..b8580c097488d 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/LoadBalancerBackendAddressAdminState.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/LoadBalancerBackendAddressAdminState.cs @@ -25,7 +25,6 @@ public LoadBalancerBackendAddressAdminState(string value) private const string NoneValue = "None"; private const string UpValue = "Up"; private const string DownValue = "Down"; - private const string DrainValue = "Drain"; /// None. public static LoadBalancerBackendAddressAdminState None { get; } = new LoadBalancerBackendAddressAdminState(NoneValue); @@ -33,8 +32,6 @@ public LoadBalancerBackendAddressAdminState(string value) public static LoadBalancerBackendAddressAdminState Up { get; } = new LoadBalancerBackendAddressAdminState(UpValue); /// Down. public static LoadBalancerBackendAddressAdminState Down { get; } = new LoadBalancerBackendAddressAdminState(DownValue); - /// Drain. - public static LoadBalancerBackendAddressAdminState Drain { get; } = new LoadBalancerBackendAddressAdminState(DrainValue); /// Determines if two values are the same. public static bool operator ==(LoadBalancerBackendAddressAdminState left, LoadBalancerBackendAddressAdminState right) => left.Equals(right); /// Determines if two values are not the same. diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/NetworkInterfaceAuxiliaryMode.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/NetworkInterfaceAuxiliaryMode.cs index 1803f307fd1e5..9030d9f4c64c0 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/NetworkInterfaceAuxiliaryMode.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/NetworkInterfaceAuxiliaryMode.cs @@ -25,6 +25,7 @@ public NetworkInterfaceAuxiliaryMode(string value) private const string NoneValue = "None"; private const string MaxConnectionsValue = "MaxConnections"; private const string FloatingValue = "Floating"; + private const string AcceleratedConnectionsValue = "AcceleratedConnections"; /// None. public static NetworkInterfaceAuxiliaryMode None { get; } = new NetworkInterfaceAuxiliaryMode(NoneValue); @@ -32,6 +33,8 @@ public NetworkInterfaceAuxiliaryMode(string value) public static NetworkInterfaceAuxiliaryMode MaxConnections { get; } = new NetworkInterfaceAuxiliaryMode(MaxConnectionsValue); /// Floating. public static NetworkInterfaceAuxiliaryMode Floating { get; } = new NetworkInterfaceAuxiliaryMode(FloatingValue); + /// AcceleratedConnections. + public static NetworkInterfaceAuxiliaryMode AcceleratedConnections { get; } = new NetworkInterfaceAuxiliaryMode(AcceleratedConnectionsValue); /// Determines if two values are the same. public static bool operator ==(NetworkInterfaceAuxiliaryMode left, NetworkInterfaceAuxiliaryMode right) => left.Equals(right); /// Determines if two values are not the same. diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/NetworkInterfaceAuxiliarySku.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/NetworkInterfaceAuxiliarySku.cs new file mode 100644 index 0000000000000..99620cac3b040 --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/NetworkInterfaceAuxiliarySku.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 +{ + /// Auxiliary sku of Network Interface resource. + public readonly partial struct NetworkInterfaceAuxiliarySku : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public NetworkInterfaceAuxiliarySku(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string NoneValue = "None"; + private const string A1Value = "A1"; + private const string A2Value = "A2"; + private const string A4Value = "A4"; + private const string A8Value = "A8"; + + /// None. + public static NetworkInterfaceAuxiliarySku None { get; } = new NetworkInterfaceAuxiliarySku(NoneValue); + /// A1. + public static NetworkInterfaceAuxiliarySku A1 { get; } = new NetworkInterfaceAuxiliarySku(A1Value); + /// A2. + public static NetworkInterfaceAuxiliarySku A2 { get; } = new NetworkInterfaceAuxiliarySku(A2Value); + /// A4. + public static NetworkInterfaceAuxiliarySku A4 { get; } = new NetworkInterfaceAuxiliarySku(A4Value); + /// A8. + public static NetworkInterfaceAuxiliarySku A8 { get; } = new NetworkInterfaceAuxiliarySku(A8Value); + /// Determines if two values are the same. + public static bool operator ==(NetworkInterfaceAuxiliarySku left, NetworkInterfaceAuxiliarySku right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(NetworkInterfaceAuxiliarySku left, NetworkInterfaceAuxiliarySku right) => !left.Equals(right); + /// Converts a string to a . + public static implicit operator NetworkInterfaceAuxiliarySku(string value) => new NetworkInterfaceAuxiliarySku(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is NetworkInterfaceAuxiliarySku other && Equals(other); + /// + public bool Equals(NetworkInterfaceAuxiliarySku 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/NetworkInterfaceData.Serialization.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/NetworkInterfaceData.Serialization.cs index 4dc51fff58a50..ba06e2a3070d1 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/NetworkInterfaceData.Serialization.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/NetworkInterfaceData.Serialization.cs @@ -108,6 +108,11 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WritePropertyName("auxiliaryMode"u8); writer.WriteStringValue(AuxiliaryMode.Value.ToString()); } + if (Optional.IsDefined(AuxiliarySku)) + { + writer.WritePropertyName("auxiliarySku"u8); + writer.WriteStringValue(AuxiliarySku.Value.ToString()); + } writer.WriteEndObject(); writer.WriteEndObject(); } @@ -146,6 +151,7 @@ internal static NetworkInterfaceData DeserializeNetworkInterfaceData(JsonElement Optional privateLinkService = default; Optional migrationPhase = default; Optional auxiliaryMode = default; + Optional auxiliarySku = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("extendedLocation"u8)) @@ -417,11 +423,20 @@ internal static NetworkInterfaceData DeserializeNetworkInterfaceData(JsonElement auxiliaryMode = new NetworkInterfaceAuxiliaryMode(property0.Value.GetString()); continue; } + if (property0.NameEquals("auxiliarySku"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + auxiliarySku = new NetworkInterfaceAuxiliarySku(property0.Value.GetString()); + continue; + } } continue; } } - return new NetworkInterfaceData(id.Value, name.Value, Optional.ToNullable(type), Optional.ToNullable(location), Optional.ToDictionary(tags), extendedLocation, Optional.ToNullable(etag), virtualMachine, networkSecurityGroup.Value, privateEndpoint.Value, Optional.ToList(ipConfigurations), Optional.ToList(tapConfigurations), dnsSettings.Value, macAddress.Value, Optional.ToNullable(primary), Optional.ToNullable(vnetEncryptionSupported), Optional.ToNullable(enableAcceleratedNetworking), Optional.ToNullable(disableTcpStateTracking), Optional.ToNullable(enableIPForwarding), Optional.ToList(hostedWorkloads), dscpConfiguration, Optional.ToNullable(resourceGuid), Optional.ToNullable(provisioningState), workloadType.Value, Optional.ToNullable(nicType), privateLinkService.Value, Optional.ToNullable(migrationPhase), Optional.ToNullable(auxiliaryMode)); + return new NetworkInterfaceData(id.Value, name.Value, Optional.ToNullable(type), Optional.ToNullable(location), Optional.ToDictionary(tags), extendedLocation, Optional.ToNullable(etag), virtualMachine, networkSecurityGroup.Value, privateEndpoint.Value, Optional.ToList(ipConfigurations), Optional.ToList(tapConfigurations), dnsSettings.Value, macAddress.Value, Optional.ToNullable(primary), Optional.ToNullable(vnetEncryptionSupported), Optional.ToNullable(enableAcceleratedNetworking), Optional.ToNullable(disableTcpStateTracking), Optional.ToNullable(enableIPForwarding), Optional.ToList(hostedWorkloads), dscpConfiguration, Optional.ToNullable(resourceGuid), Optional.ToNullable(provisioningState), workloadType.Value, Optional.ToNullable(nicType), privateLinkService.Value, Optional.ToNullable(migrationPhase), Optional.ToNullable(auxiliaryMode), Optional.ToNullable(auxiliarySku)); } } } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/NetworkPrivateEndpointConnectionData.Serialization.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/NetworkPrivateEndpointConnectionData.Serialization.cs index 6875c0c48e19d..0a38b5517579c 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/NetworkPrivateEndpointConnectionData.Serialization.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/NetworkPrivateEndpointConnectionData.Serialization.cs @@ -52,6 +52,7 @@ internal static NetworkPrivateEndpointConnectionData DeserializeNetworkPrivateEn Optional privateLinkServiceConnectionState = default; Optional provisioningState = default; Optional linkIdentifier = default; + Optional privateEndpointLocation = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("etag"u8)) @@ -127,11 +128,16 @@ internal static NetworkPrivateEndpointConnectionData DeserializeNetworkPrivateEn linkIdentifier = property0.Value.GetString(); continue; } + if (property0.NameEquals("privateEndpointLocation"u8)) + { + privateEndpointLocation = property0.Value.GetString(); + continue; + } } continue; } } - return new NetworkPrivateEndpointConnectionData(id.Value, name.Value, Optional.ToNullable(type), Optional.ToNullable(etag), privateEndpoint.Value, privateLinkServiceConnectionState.Value, Optional.ToNullable(provisioningState), linkIdentifier.Value); + return new NetworkPrivateEndpointConnectionData(id.Value, name.Value, Optional.ToNullable(type), Optional.ToNullable(etag), privateEndpoint.Value, privateLinkServiceConnectionState.Value, Optional.ToNullable(provisioningState), linkIdentifier.Value, privateEndpointLocation.Value); } } } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/NetworkVirtualApplianceConnectionData.Serialization.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/NetworkVirtualApplianceConnectionData.Serialization.cs new file mode 100644 index 0000000000000..f2bcc64cbaa3a --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/NetworkVirtualApplianceConnectionData.Serialization.cs @@ -0,0 +1,192 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; +using Azure.ResourceManager.Network.Models; + +namespace Azure.ResourceManager.Network +{ + public partial class NetworkVirtualApplianceConnectionData : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (Optional.IsDefined(Id)) + { + writer.WritePropertyName("id"u8); + writer.WriteStringValue(Id); + } + if (Optional.IsDefined(Name)) + { + writer.WritePropertyName("name"u8); + writer.WriteStringValue(Name); + } + writer.WritePropertyName("properties"u8); + writer.WriteStartObject(); + if (Optional.IsDefined(NamePropertiesName)) + { + writer.WritePropertyName("name"u8); + writer.WriteStringValue(NamePropertiesName); + } + if (Optional.IsDefined(Asn)) + { + writer.WritePropertyName("asn"u8); + writer.WriteNumberValue(Asn.Value); + } + if (Optional.IsDefined(TunnelIdentifier)) + { + writer.WritePropertyName("tunnelIdentifier"u8); + writer.WriteNumberValue(TunnelIdentifier.Value); + } + if (Optional.IsCollectionDefined(BgpPeerAddress)) + { + writer.WritePropertyName("bgpPeerAddress"u8); + writer.WriteStartArray(); + foreach (var item in BgpPeerAddress) + { + writer.WriteStringValue(item); + } + writer.WriteEndArray(); + } + if (Optional.IsDefined(EnableInternetSecurity)) + { + writer.WritePropertyName("enableInternetSecurity"u8); + writer.WriteBooleanValue(EnableInternetSecurity.Value); + } + if (Optional.IsDefined(RoutingConfiguration)) + { + writer.WritePropertyName("routingConfiguration"u8); + writer.WriteObjectValue(RoutingConfiguration); + } + writer.WriteEndObject(); + writer.WriteEndObject(); + } + + internal static NetworkVirtualApplianceConnectionData DeserializeNetworkVirtualApplianceConnectionData(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + Optional id = default; + Optional name = default; + Optional type = default; + Optional name0 = default; + Optional provisioningState = default; + Optional asn = default; + Optional tunnelIdentifier = default; + Optional> bgpPeerAddress = default; + Optional enableInternetSecurity = default; + Optional routingConfiguration = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("id"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + id = new ResourceIdentifier(property.Value.GetString()); + continue; + } + if (property.NameEquals("name"u8)) + { + name = property.Value.GetString(); + continue; + } + if (property.NameEquals("type"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + type = new ResourceType(property.Value.GetString()); + 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("name"u8)) + { + name0 = 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("asn"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + asn = property0.Value.GetInt64(); + continue; + } + if (property0.NameEquals("tunnelIdentifier"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + tunnelIdentifier = property0.Value.GetInt64(); + continue; + } + if (property0.NameEquals("bgpPeerAddress"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List array = new List(); + foreach (var item in property0.Value.EnumerateArray()) + { + array.Add(item.GetString()); + } + bgpPeerAddress = array; + continue; + } + if (property0.NameEquals("enableInternetSecurity"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + enableInternetSecurity = property0.Value.GetBoolean(); + continue; + } + if (property0.NameEquals("routingConfiguration"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + routingConfiguration = RoutingConfigurationNfv.DeserializeRoutingConfigurationNfv(property0.Value); + continue; + } + } + continue; + } + } + return new NetworkVirtualApplianceConnectionData(id.Value, name.Value, Optional.ToNullable(type), name0.Value, Optional.ToNullable(provisioningState), Optional.ToNullable(asn), Optional.ToNullable(tunnelIdentifier), Optional.ToList(bgpPeerAddress), Optional.ToNullable(enableInternetSecurity), routingConfiguration.Value); + } + } +} diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/NetworkVirtualApplianceConnectionList.Serialization.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/NetworkVirtualApplianceConnectionList.Serialization.cs new file mode 100644 index 0000000000000..a3160660cab0c --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/NetworkVirtualApplianceConnectionList.Serialization.cs @@ -0,0 +1,50 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; +using Azure.ResourceManager.Network; + +namespace Azure.ResourceManager.Network.Models +{ + internal partial class NetworkVirtualApplianceConnectionList + { + internal static NetworkVirtualApplianceConnectionList DeserializeNetworkVirtualApplianceConnectionList(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + Optional> value = default; + Optional nextLink = default; + 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(NetworkVirtualApplianceConnectionData.DeserializeNetworkVirtualApplianceConnectionData(item)); + } + value = array; + continue; + } + if (property.NameEquals("nextLink"u8)) + { + nextLink = property.Value.GetString(); + continue; + } + } + return new NetworkVirtualApplianceConnectionList(Optional.ToList(value), nextLink.Value); + } + } +} diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/NetworkVirtualApplianceConnectionList.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/NetworkVirtualApplianceConnectionList.cs new file mode 100644 index 0000000000000..d3466c90e7d8d --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/NetworkVirtualApplianceConnectionList.cs @@ -0,0 +1,37 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; +using Azure.Core; +using Azure.ResourceManager.Network; + +namespace Azure.ResourceManager.Network.Models +{ + /// NetworkVirtualApplianceConnection list. + internal partial class NetworkVirtualApplianceConnectionList + { + /// Initializes a new instance of NetworkVirtualApplianceConnectionList. + internal NetworkVirtualApplianceConnectionList() + { + Value = new ChangeTrackingList(); + } + + /// Initializes a new instance of NetworkVirtualApplianceConnectionList. + /// The list of NetworkVirtualAppliance connections. + /// URL to get the next set of results. + internal NetworkVirtualApplianceConnectionList(IReadOnlyList value, string nextLink) + { + Value = value; + NextLink = nextLink; + } + + /// The list of NetworkVirtualAppliance connections. + public IReadOnlyList Value { get; } + /// URL to get the next set of results. + public string NextLink { get; } + } +} diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/NetworkVirtualApplianceData.Serialization.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/NetworkVirtualApplianceData.Serialization.cs index af8bde634594a..7d492099e15d5 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/NetworkVirtualApplianceData.Serialization.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/NetworkVirtualApplianceData.Serialization.cs @@ -93,6 +93,16 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WritePropertyName("sshPublicKey"u8); writer.WriteStringValue(SshPublicKey); } + if (Optional.IsCollectionDefined(AdditionalNics)) + { + writer.WritePropertyName("additionalNics"u8); + writer.WriteStartArray(); + foreach (var item in AdditionalNics) + { + writer.WriteObjectValue(item); + } + writer.WriteEndArray(); + } if (Optional.IsDefined(Delegation)) { writer.WritePropertyName("delegation"u8); @@ -129,7 +139,9 @@ internal static NetworkVirtualApplianceData DeserializeNetworkVirtualApplianceDa Optional virtualApplianceAsn = default; Optional sshPublicKey = default; Optional> virtualApplianceNics = default; + Optional> additionalNics = default; Optional> virtualApplianceSites = default; + Optional> virtualApplianceConnections = default; Optional> inboundSecurityRules = default; Optional provisioningState = default; Optional deploymentType = default; @@ -294,6 +306,20 @@ internal static NetworkVirtualApplianceData DeserializeNetworkVirtualApplianceDa virtualApplianceNics = array; continue; } + if (property0.NameEquals("additionalNics"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List array = new List(); + foreach (var item in property0.Value.EnumerateArray()) + { + array.Add(VirtualApplianceAdditionalNicProperties.DeserializeVirtualApplianceAdditionalNicProperties(item)); + } + additionalNics = array; + continue; + } if (property0.NameEquals("virtualApplianceSites"u8)) { if (property0.Value.ValueKind == JsonValueKind.Null) @@ -308,6 +334,20 @@ internal static NetworkVirtualApplianceData DeserializeNetworkVirtualApplianceDa virtualApplianceSites = array; continue; } + if (property0.NameEquals("virtualApplianceConnections"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List array = new List(); + foreach (var item in property0.Value.EnumerateArray()) + { + array.Add(JsonSerializer.Deserialize(item.GetRawText())); + } + virtualApplianceConnections = array; + continue; + } if (property0.NameEquals("inboundSecurityRules"u8)) { if (property0.Value.ValueKind == JsonValueKind.Null) @@ -358,7 +398,7 @@ internal static NetworkVirtualApplianceData DeserializeNetworkVirtualApplianceDa continue; } } - return new NetworkVirtualApplianceData(id.Value, name.Value, Optional.ToNullable(type), Optional.ToNullable(location), Optional.ToDictionary(tags), identity, Optional.ToNullable(etag), nvaSku.Value, addressPrefix.Value, Optional.ToList(bootStrapConfigurationBlobs), virtualHub, Optional.ToList(cloudInitConfigurationBlobs), cloudInitConfiguration.Value, Optional.ToNullable(virtualApplianceAsn), sshPublicKey.Value, Optional.ToList(virtualApplianceNics), Optional.ToList(virtualApplianceSites), Optional.ToList(inboundSecurityRules), Optional.ToNullable(provisioningState), deploymentType.Value, delegation.Value, partnerManagedResource.Value); + return new NetworkVirtualApplianceData(id.Value, name.Value, Optional.ToNullable(type), Optional.ToNullable(location), Optional.ToDictionary(tags), identity, Optional.ToNullable(etag), nvaSku.Value, addressPrefix.Value, Optional.ToList(bootStrapConfigurationBlobs), virtualHub, Optional.ToList(cloudInitConfigurationBlobs), cloudInitConfiguration.Value, Optional.ToNullable(virtualApplianceAsn), sshPublicKey.Value, Optional.ToList(virtualApplianceNics), Optional.ToList(additionalNics), Optional.ToList(virtualApplianceSites), Optional.ToList(virtualApplianceConnections), Optional.ToList(inboundSecurityRules), Optional.ToNullable(provisioningState), deploymentType.Value, delegation.Value, partnerManagedResource.Value); } } } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/PeerRouteList.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/PeerRouteList.cs deleted file mode 100644 index 5445b4ee35b97..0000000000000 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/PeerRouteList.cs +++ /dev/null @@ -1,32 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System.Collections.Generic; -using Azure.Core; - -namespace Azure.ResourceManager.Network.Models -{ - /// List of virtual router peer routes. - public partial class PeerRouteList - { - /// Initializes a new instance of PeerRouteList. - internal PeerRouteList() - { - Value = new ChangeTrackingList(); - } - - /// Initializes a new instance of PeerRouteList. - /// List of peer routes. - internal PeerRouteList(IReadOnlyList value) - { - Value = value; - } - - /// List of peer routes. - public IReadOnlyList Value { get; } - } -} diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/PolicySettings.Serialization.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/PolicySettings.Serialization.cs index 9ef5c1f2f2c30..a1ea6a70e7dfb 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/PolicySettings.Serialization.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/PolicySettings.Serialization.cs @@ -30,11 +30,26 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WritePropertyName("requestBodyCheck"u8); writer.WriteBooleanValue(RequestBodyCheck.Value); } + if (Optional.IsDefined(RequestBodyInspectLimitInKB)) + { + writer.WritePropertyName("requestBodyInspectLimitInKB"u8); + writer.WriteNumberValue(RequestBodyInspectLimitInKB.Value); + } + if (Optional.IsDefined(RequestBodyEnforcement)) + { + writer.WritePropertyName("requestBodyEnforcement"u8); + writer.WriteBooleanValue(RequestBodyEnforcement.Value); + } if (Optional.IsDefined(MaxRequestBodySizeInKb)) { writer.WritePropertyName("maxRequestBodySizeInKb"u8); writer.WriteNumberValue(MaxRequestBodySizeInKb.Value); } + if (Optional.IsDefined(FileUploadEnforcement)) + { + writer.WritePropertyName("fileUploadEnforcement"u8); + writer.WriteBooleanValue(FileUploadEnforcement.Value); + } if (Optional.IsDefined(FileUploadLimitInMb)) { writer.WritePropertyName("fileUploadLimitInMb"u8); @@ -50,6 +65,11 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WritePropertyName("customBlockResponseBody"u8); writer.WriteStringValue(CustomBlockResponseBody); } + if (Optional.IsDefined(LogScrubbing)) + { + writer.WritePropertyName("logScrubbing"u8); + writer.WriteObjectValue(LogScrubbing); + } writer.WriteEndObject(); } @@ -62,10 +82,14 @@ internal static PolicySettings DeserializePolicySettings(JsonElement element) Optional state = default; Optional mode = default; Optional requestBodyCheck = default; + Optional requestBodyInspectLimitInKB = default; + Optional requestBodyEnforcement = default; Optional maxRequestBodySizeInKb = default; + Optional fileUploadEnforcement = default; Optional fileUploadLimitInMb = default; Optional customBlockResponseStatusCode = default; Optional customBlockResponseBody = default; + Optional logScrubbing = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("state"u8)) @@ -95,6 +119,24 @@ internal static PolicySettings DeserializePolicySettings(JsonElement element) requestBodyCheck = property.Value.GetBoolean(); continue; } + if (property.NameEquals("requestBodyInspectLimitInKB"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + requestBodyInspectLimitInKB = property.Value.GetInt32(); + continue; + } + if (property.NameEquals("requestBodyEnforcement"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + requestBodyEnforcement = property.Value.GetBoolean(); + continue; + } if (property.NameEquals("maxRequestBodySizeInKb"u8)) { if (property.Value.ValueKind == JsonValueKind.Null) @@ -104,6 +146,15 @@ internal static PolicySettings DeserializePolicySettings(JsonElement element) maxRequestBodySizeInKb = property.Value.GetInt32(); continue; } + if (property.NameEquals("fileUploadEnforcement"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + fileUploadEnforcement = property.Value.GetBoolean(); + continue; + } if (property.NameEquals("fileUploadLimitInMb"u8)) { if (property.Value.ValueKind == JsonValueKind.Null) @@ -127,8 +178,17 @@ internal static PolicySettings DeserializePolicySettings(JsonElement element) customBlockResponseBody = property.Value.GetString(); continue; } + if (property.NameEquals("logScrubbing"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + logScrubbing = PolicySettingsLogScrubbing.DeserializePolicySettingsLogScrubbing(property.Value); + continue; + } } - return new PolicySettings(Optional.ToNullable(state), Optional.ToNullable(mode), Optional.ToNullable(requestBodyCheck), Optional.ToNullable(maxRequestBodySizeInKb), Optional.ToNullable(fileUploadLimitInMb), Optional.ToNullable(customBlockResponseStatusCode), customBlockResponseBody.Value); + return new PolicySettings(Optional.ToNullable(state), Optional.ToNullable(mode), Optional.ToNullable(requestBodyCheck), Optional.ToNullable(requestBodyInspectLimitInKB), Optional.ToNullable(requestBodyEnforcement), Optional.ToNullable(maxRequestBodySizeInKb), Optional.ToNullable(fileUploadEnforcement), Optional.ToNullable(fileUploadLimitInMb), Optional.ToNullable(customBlockResponseStatusCode), customBlockResponseBody.Value, logScrubbing.Value); } } } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/PolicySettings.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/PolicySettings.cs index 4d8b6b2e305c5..b525c0724da75 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/PolicySettings.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/PolicySettings.cs @@ -19,19 +19,27 @@ public PolicySettings() /// The state of the policy. /// The mode of the policy. /// Whether to allow WAF to check request Body. + /// Max inspection limit in KB for request body inspection for WAF. + /// Whether allow WAF to enforce request body limits. /// Maximum request body size in Kb for WAF. + /// Whether allow WAF to enforce file upload limits. /// Maximum file upload size in Mb for WAF. /// If the action type is block, customer can override the response status code. /// If the action type is block, customer can override the response body. The body must be specified in base64 encoding. - internal PolicySettings(WebApplicationFirewallEnabledState? state, WebApplicationFirewallMode? mode, bool? requestBodyCheck, int? maxRequestBodySizeInKb, int? fileUploadLimitInMb, int? customBlockResponseStatusCode, string customBlockResponseBody) + /// To scrub sensitive log fields. + internal PolicySettings(WebApplicationFirewallEnabledState? state, WebApplicationFirewallMode? mode, bool? requestBodyCheck, int? requestBodyInspectLimitInKB, bool? requestBodyEnforcement, int? maxRequestBodySizeInKb, bool? fileUploadEnforcement, int? fileUploadLimitInMb, int? customBlockResponseStatusCode, string customBlockResponseBody, PolicySettingsLogScrubbing logScrubbing) { State = state; Mode = mode; RequestBodyCheck = requestBodyCheck; + RequestBodyInspectLimitInKB = requestBodyInspectLimitInKB; + RequestBodyEnforcement = requestBodyEnforcement; MaxRequestBodySizeInKb = maxRequestBodySizeInKb; + FileUploadEnforcement = fileUploadEnforcement; FileUploadLimitInMb = fileUploadLimitInMb; CustomBlockResponseStatusCode = customBlockResponseStatusCode; CustomBlockResponseBody = customBlockResponseBody; + LogScrubbing = logScrubbing; } /// The state of the policy. @@ -40,13 +48,21 @@ internal PolicySettings(WebApplicationFirewallEnabledState? state, WebApplicatio public WebApplicationFirewallMode? Mode { get; set; } /// Whether to allow WAF to check request Body. public bool? RequestBodyCheck { get; set; } + /// Max inspection limit in KB for request body inspection for WAF. + public int? RequestBodyInspectLimitInKB { get; set; } + /// Whether allow WAF to enforce request body limits. + public bool? RequestBodyEnforcement { get; set; } /// Maximum request body size in Kb for WAF. public int? MaxRequestBodySizeInKb { get; set; } + /// Whether allow WAF to enforce file upload limits. + public bool? FileUploadEnforcement { get; set; } /// Maximum file upload size in Mb for WAF. public int? FileUploadLimitInMb { get; set; } /// If the action type is block, customer can override the response status code. public int? CustomBlockResponseStatusCode { get; set; } /// If the action type is block, customer can override the response body. The body must be specified in base64 encoding. public string CustomBlockResponseBody { get; set; } + /// To scrub sensitive log fields. + public PolicySettingsLogScrubbing LogScrubbing { get; set; } } } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/PolicySettingsLogScrubbing.Serialization.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/PolicySettingsLogScrubbing.Serialization.cs new file mode 100644 index 0000000000000..c3e00a11f1641 --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/PolicySettingsLogScrubbing.Serialization.cs @@ -0,0 +1,74 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.Network.Models +{ + public partial class PolicySettingsLogScrubbing : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (Optional.IsDefined(State)) + { + writer.WritePropertyName("state"u8); + writer.WriteStringValue(State.Value.ToString()); + } + if (Optional.IsCollectionDefined(ScrubbingRules)) + { + writer.WritePropertyName("scrubbingRules"u8); + writer.WriteStartArray(); + foreach (var item in ScrubbingRules) + { + writer.WriteObjectValue(item); + } + writer.WriteEndArray(); + } + writer.WriteEndObject(); + } + + internal static PolicySettingsLogScrubbing DeserializePolicySettingsLogScrubbing(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + Optional state = default; + Optional> scrubbingRules = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("state"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + state = new WebApplicationFirewallScrubbingState(property.Value.GetString()); + continue; + } + if (property.NameEquals("scrubbingRules"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(WebApplicationFirewallScrubbingRules.DeserializeWebApplicationFirewallScrubbingRules(item)); + } + scrubbingRules = array; + continue; + } + } + return new PolicySettingsLogScrubbing(Optional.ToNullable(state), Optional.ToList(scrubbingRules)); + } + } +} diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/PolicySettingsLogScrubbing.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/PolicySettingsLogScrubbing.cs new file mode 100644 index 0000000000000..712ea7dcfa979 --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/PolicySettingsLogScrubbing.cs @@ -0,0 +1,36 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; +using Azure.Core; + +namespace Azure.ResourceManager.Network.Models +{ + /// To scrub sensitive log fields. + public partial class PolicySettingsLogScrubbing + { + /// Initializes a new instance of PolicySettingsLogScrubbing. + public PolicySettingsLogScrubbing() + { + ScrubbingRules = new ChangeTrackingList(); + } + + /// Initializes a new instance of PolicySettingsLogScrubbing. + /// State of the log scrubbing config. Default value is Enabled. + /// The rules that are applied to the logs for scrubbing. + internal PolicySettingsLogScrubbing(WebApplicationFirewallScrubbingState? state, IList scrubbingRules) + { + State = state; + ScrubbingRules = scrubbingRules; + } + + /// State of the log scrubbing config. Default value is Enabled. + public WebApplicationFirewallScrubbingState? State { get; set; } + /// The rules that are applied to the logs for scrubbing. + public IList ScrubbingRules { get; } + } +} diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/PropagatedRouteTableNfv.Serialization.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/PropagatedRouteTableNfv.Serialization.cs new file mode 100644 index 0000000000000..387e47eba54c0 --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/PropagatedRouteTableNfv.Serialization.cs @@ -0,0 +1,84 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.Network.Models +{ + public partial class PropagatedRouteTableNfv : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (Optional.IsCollectionDefined(Labels)) + { + writer.WritePropertyName("labels"u8); + writer.WriteStartArray(); + foreach (var item in Labels) + { + writer.WriteStringValue(item); + } + writer.WriteEndArray(); + } + if (Optional.IsCollectionDefined(Ids)) + { + writer.WritePropertyName("ids"u8); + writer.WriteStartArray(); + foreach (var item in Ids) + { + writer.WriteObjectValue(item); + } + writer.WriteEndArray(); + } + writer.WriteEndObject(); + } + + internal static PropagatedRouteTableNfv DeserializePropagatedRouteTableNfv(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + Optional> labels = default; + Optional> ids = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("labels"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(item.GetString()); + } + labels = array; + continue; + } + if (property.NameEquals("ids"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(RoutingConfigurationNfvSubResource.DeserializeRoutingConfigurationNfvSubResource(item)); + } + ids = array; + continue; + } + } + return new PropagatedRouteTableNfv(Optional.ToList(labels), Optional.ToList(ids)); + } + } +} diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/PropagatedRouteTableNfv.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/PropagatedRouteTableNfv.cs new file mode 100644 index 0000000000000..fac458aac3550 --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/PropagatedRouteTableNfv.cs @@ -0,0 +1,37 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; +using Azure.Core; + +namespace Azure.ResourceManager.Network.Models +{ + /// Nfv version of the list of RouteTables to advertise the routes to. + public partial class PropagatedRouteTableNfv + { + /// Initializes a new instance of PropagatedRouteTableNfv. + public PropagatedRouteTableNfv() + { + Labels = new ChangeTrackingList(); + Ids = new ChangeTrackingList(); + } + + /// Initializes a new instance of PropagatedRouteTableNfv. + /// The list of labels. + /// The list of resource ids of all the RouteTables. + internal PropagatedRouteTableNfv(IList labels, IList ids) + { + Labels = labels; + Ids = ids; + } + + /// The list of labels. + public IList Labels { get; } + /// The list of resource ids of all the RouteTables. + public IList Ids { get; } + } +} diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/PublicIPAddressDnsSettings.Serialization.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/PublicIPAddressDnsSettings.Serialization.cs index d4f7693df72ec..9e8e5f3cda941 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/PublicIPAddressDnsSettings.Serialization.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/PublicIPAddressDnsSettings.Serialization.cs @@ -20,6 +20,11 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WritePropertyName("domainNameLabel"u8); writer.WriteStringValue(DomainNameLabel); } + if (Optional.IsDefined(DomainNameLabelScope)) + { + writer.WritePropertyName("domainNameLabelScope"u8); + writer.WriteStringValue(DomainNameLabelScope.Value.ToSerialString()); + } if (Optional.IsDefined(Fqdn)) { writer.WritePropertyName("fqdn"u8); @@ -40,6 +45,7 @@ internal static PublicIPAddressDnsSettings DeserializePublicIPAddressDnsSettings return null; } Optional domainNameLabel = default; + Optional domainNameLabelScope = default; Optional fqdn = default; Optional reverseFqdn = default; foreach (var property in element.EnumerateObject()) @@ -49,6 +55,15 @@ internal static PublicIPAddressDnsSettings DeserializePublicIPAddressDnsSettings domainNameLabel = property.Value.GetString(); continue; } + if (property.NameEquals("domainNameLabelScope"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + domainNameLabelScope = property.Value.GetString().ToPublicIPAddressDnsSettingsDomainNameLabelScope(); + continue; + } if (property.NameEquals("fqdn"u8)) { fqdn = property.Value.GetString(); @@ -60,7 +75,7 @@ internal static PublicIPAddressDnsSettings DeserializePublicIPAddressDnsSettings continue; } } - return new PublicIPAddressDnsSettings(domainNameLabel.Value, fqdn.Value, reverseFqdn.Value); + return new PublicIPAddressDnsSettings(domainNameLabel.Value, Optional.ToNullable(domainNameLabelScope), fqdn.Value, reverseFqdn.Value); } } } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/PublicIPAddressDnsSettings.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/PublicIPAddressDnsSettings.cs index f6ccd6f7d9e95..c852a90146fb6 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/PublicIPAddressDnsSettings.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/PublicIPAddressDnsSettings.cs @@ -17,17 +17,21 @@ public PublicIPAddressDnsSettings() /// Initializes a new instance of PublicIPAddressDnsSettings. /// The domain name label. The concatenation of the domain name label and the regionalized DNS zone make up the fully qualified domain name associated with the public IP address. If a domain name label is specified, an A DNS record is created for the public IP in the Microsoft Azure DNS system. + /// The domain name label scope. If a domain name label and a domain name label scope are specified, an A DNS record is created for the public IP in the Microsoft Azure DNS system with a hashed value includes in FQDN. /// The Fully Qualified Domain Name of the A DNS record associated with the public IP. This is the concatenation of the domainNameLabel and the regionalized DNS zone. /// The reverse FQDN. A user-visible, fully qualified domain name that resolves to this public IP address. If the reverseFqdn is specified, then a PTR DNS record is created pointing from the IP address in the in-addr.arpa domain to the reverse FQDN. - internal PublicIPAddressDnsSettings(string domainNameLabel, string fqdn, string reverseFqdn) + internal PublicIPAddressDnsSettings(string domainNameLabel, PublicIPAddressDnsSettingsDomainNameLabelScope? domainNameLabelScope, string fqdn, string reverseFqdn) { DomainNameLabel = domainNameLabel; + DomainNameLabelScope = domainNameLabelScope; Fqdn = fqdn; ReverseFqdn = reverseFqdn; } /// The domain name label. The concatenation of the domain name label and the regionalized DNS zone make up the fully qualified domain name associated with the public IP address. If a domain name label is specified, an A DNS record is created for the public IP in the Microsoft Azure DNS system. public string DomainNameLabel { get; set; } + /// The domain name label scope. If a domain name label and a domain name label scope are specified, an A DNS record is created for the public IP in the Microsoft Azure DNS system with a hashed value includes in FQDN. + public PublicIPAddressDnsSettingsDomainNameLabelScope? DomainNameLabelScope { get; set; } /// The Fully Qualified Domain Name of the A DNS record associated with the public IP. This is the concatenation of the domainNameLabel and the regionalized DNS zone. public string Fqdn { get; set; } /// The reverse FQDN. A user-visible, fully qualified domain name that resolves to this public IP address. If the reverseFqdn is specified, then a PTR DNS record is created pointing from the IP address in the in-addr.arpa domain to the reverse FQDN. diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/PublicIPAddressDnsSettingsDomainNameLabelScope.Serialization.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/PublicIPAddressDnsSettingsDomainNameLabelScope.Serialization.cs new file mode 100644 index 0000000000000..91c0844fd24eb --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/PublicIPAddressDnsSettingsDomainNameLabelScope.Serialization.cs @@ -0,0 +1,32 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; + +namespace Azure.ResourceManager.Network.Models +{ + internal static partial class PublicIPAddressDnsSettingsDomainNameLabelScopeExtensions + { + public static string ToSerialString(this PublicIPAddressDnsSettingsDomainNameLabelScope value) => value switch + { + PublicIPAddressDnsSettingsDomainNameLabelScope.TenantReuse => "TenantReuse", + PublicIPAddressDnsSettingsDomainNameLabelScope.SubscriptionReuse => "SubscriptionReuse", + PublicIPAddressDnsSettingsDomainNameLabelScope.ResourceGroupReuse => "ResourceGroupReuse", + PublicIPAddressDnsSettingsDomainNameLabelScope.NoReuse => "NoReuse", + _ => throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown PublicIPAddressDnsSettingsDomainNameLabelScope value.") + }; + + public static PublicIPAddressDnsSettingsDomainNameLabelScope ToPublicIPAddressDnsSettingsDomainNameLabelScope(this string value) + { + if (StringComparer.OrdinalIgnoreCase.Equals(value, "TenantReuse")) return PublicIPAddressDnsSettingsDomainNameLabelScope.TenantReuse; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "SubscriptionReuse")) return PublicIPAddressDnsSettingsDomainNameLabelScope.SubscriptionReuse; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "ResourceGroupReuse")) return PublicIPAddressDnsSettingsDomainNameLabelScope.ResourceGroupReuse; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "NoReuse")) return PublicIPAddressDnsSettingsDomainNameLabelScope.NoReuse; + throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown PublicIPAddressDnsSettingsDomainNameLabelScope value."); + } + } +} diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/PublicIPAddressDnsSettingsDomainNameLabelScope.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/PublicIPAddressDnsSettingsDomainNameLabelScope.cs new file mode 100644 index 0000000000000..cac4bf782094a --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/PublicIPAddressDnsSettingsDomainNameLabelScope.cs @@ -0,0 +1,22 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.ResourceManager.Network.Models +{ + /// The domain name label scope. If a domain name label and a domain name label scope are specified, an A DNS record is created for the public IP in the Microsoft Azure DNS system with a hashed value includes in FQDN. + public enum PublicIPAddressDnsSettingsDomainNameLabelScope + { + /// TenantReuse. + TenantReuse, + /// SubscriptionReuse. + SubscriptionReuse, + /// ResourceGroupReuse. + ResourceGroupReuse, + /// NoReuse. + NoReuse + } +} diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/RoutingConfigurationNfv.Serialization.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/RoutingConfigurationNfv.Serialization.cs new file mode 100644 index 0000000000000..f5690db154286 --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/RoutingConfigurationNfv.Serialization.cs @@ -0,0 +1,93 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.Network.Models +{ + public partial class RoutingConfigurationNfv : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (Optional.IsDefined(AssociatedRouteTable)) + { + writer.WritePropertyName("associatedRouteTable"u8); + writer.WriteObjectValue(AssociatedRouteTable); + } + if (Optional.IsDefined(PropagatedRouteTables)) + { + writer.WritePropertyName("propagatedRouteTables"u8); + writer.WriteObjectValue(PropagatedRouteTables); + } + if (Optional.IsDefined(InboundRouteMap)) + { + writer.WritePropertyName("inboundRouteMap"u8); + writer.WriteObjectValue(InboundRouteMap); + } + if (Optional.IsDefined(OutboundRouteMap)) + { + writer.WritePropertyName("outboundRouteMap"u8); + writer.WriteObjectValue(OutboundRouteMap); + } + writer.WriteEndObject(); + } + + internal static RoutingConfigurationNfv DeserializeRoutingConfigurationNfv(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + Optional associatedRouteTable = default; + Optional propagatedRouteTables = default; + Optional inboundRouteMap = default; + Optional outboundRouteMap = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("associatedRouteTable"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + associatedRouteTable = RoutingConfigurationNfvSubResource.DeserializeRoutingConfigurationNfvSubResource(property.Value); + continue; + } + if (property.NameEquals("propagatedRouteTables"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + propagatedRouteTables = PropagatedRouteTableNfv.DeserializePropagatedRouteTableNfv(property.Value); + continue; + } + if (property.NameEquals("inboundRouteMap"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + inboundRouteMap = RoutingConfigurationNfvSubResource.DeserializeRoutingConfigurationNfvSubResource(property.Value); + continue; + } + if (property.NameEquals("outboundRouteMap"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + outboundRouteMap = RoutingConfigurationNfvSubResource.DeserializeRoutingConfigurationNfvSubResource(property.Value); + continue; + } + } + return new RoutingConfigurationNfv(associatedRouteTable.Value, propagatedRouteTables.Value, inboundRouteMap.Value, outboundRouteMap.Value); + } + } +} diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/RoutingConfigurationNfv.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/RoutingConfigurationNfv.cs new file mode 100644 index 0000000000000..5b838bc1941c1 --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/RoutingConfigurationNfv.cs @@ -0,0 +1,77 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; + +namespace Azure.ResourceManager.Network.Models +{ + /// NFV version of Routing Configuration indicating the associated and propagated route tables for this connection. + public partial class RoutingConfigurationNfv + { + /// Initializes a new instance of RoutingConfigurationNfv. + public RoutingConfigurationNfv() + { + } + + /// Initializes a new instance of RoutingConfigurationNfv. + /// The resource id RouteTable associated with this RoutingConfiguration. + /// The list of RouteTables to advertise the routes to. + /// The resource id of the RouteMap associated with this RoutingConfiguration for inbound learned routes. + /// The resource id of the RouteMap associated with this RoutingConfiguration for outbound advertised routes. + internal RoutingConfigurationNfv(RoutingConfigurationNfvSubResource associatedRouteTable, PropagatedRouteTableNfv propagatedRouteTables, RoutingConfigurationNfvSubResource inboundRouteMap, RoutingConfigurationNfvSubResource outboundRouteMap) + { + AssociatedRouteTable = associatedRouteTable; + PropagatedRouteTables = propagatedRouteTables; + InboundRouteMap = inboundRouteMap; + OutboundRouteMap = outboundRouteMap; + } + + /// The resource id RouteTable associated with this RoutingConfiguration. + internal RoutingConfigurationNfvSubResource AssociatedRouteTable { get; set; } + /// Resource ID. + public Uri AssociatedRouteTableResourceUri + { + get => AssociatedRouteTable is null ? default : AssociatedRouteTable.ResourceUri; + set + { + if (AssociatedRouteTable is null) + AssociatedRouteTable = new RoutingConfigurationNfvSubResource(); + AssociatedRouteTable.ResourceUri = value; + } + } + + /// The list of RouteTables to advertise the routes to. + public PropagatedRouteTableNfv PropagatedRouteTables { get; set; } + /// The resource id of the RouteMap associated with this RoutingConfiguration for inbound learned routes. + internal RoutingConfigurationNfvSubResource InboundRouteMap { get; set; } + /// Resource ID. + public Uri InboundRouteMapResourceUri + { + get => InboundRouteMap is null ? default : InboundRouteMap.ResourceUri; + set + { + if (InboundRouteMap is null) + InboundRouteMap = new RoutingConfigurationNfvSubResource(); + InboundRouteMap.ResourceUri = value; + } + } + + /// The resource id of the RouteMap associated with this RoutingConfiguration for outbound advertised routes. + internal RoutingConfigurationNfvSubResource OutboundRouteMap { get; set; } + /// Resource ID. + public Uri OutboundRouteMapResourceUri + { + get => OutboundRouteMap is null ? default : OutboundRouteMap.ResourceUri; + set + { + if (OutboundRouteMap is null) + OutboundRouteMap = new RoutingConfigurationNfvSubResource(); + OutboundRouteMap.ResourceUri = value; + } + } + } +} diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/RoutingConfigurationNfvSubResource.Serialization.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/RoutingConfigurationNfvSubResource.Serialization.cs new file mode 100644 index 0000000000000..f427966b81fd8 --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/RoutingConfigurationNfvSubResource.Serialization.cs @@ -0,0 +1,49 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.Network.Models +{ + public partial class RoutingConfigurationNfvSubResource : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (Optional.IsDefined(ResourceUri)) + { + writer.WritePropertyName("resourceUri"u8); + writer.WriteStringValue(ResourceUri.AbsoluteUri); + } + writer.WriteEndObject(); + } + + internal static RoutingConfigurationNfvSubResource DeserializeRoutingConfigurationNfvSubResource(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + Optional resourceUri = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("resourceUri"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + resourceUri = new Uri(property.Value.GetString()); + continue; + } + } + return new RoutingConfigurationNfvSubResource(resourceUri.Value); + } + } +} diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/RoutingConfigurationNfvSubResource.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/RoutingConfigurationNfvSubResource.cs new file mode 100644 index 0000000000000..f4eddde7884da --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/RoutingConfigurationNfvSubResource.cs @@ -0,0 +1,30 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; + +namespace Azure.ResourceManager.Network.Models +{ + /// Reference to RouteTableV3 associated with the connection. + public partial class RoutingConfigurationNfvSubResource + { + /// Initializes a new instance of RoutingConfigurationNfvSubResource. + public RoutingConfigurationNfvSubResource() + { + } + + /// Initializes a new instance of RoutingConfigurationNfvSubResource. + /// Resource ID. + internal RoutingConfigurationNfvSubResource(Uri resourceUri) + { + ResourceUri = resourceUri; + } + + /// Resource ID. + public Uri ResourceUri { get; set; } + } +} diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ScrubbingRuleEntryMatchOperator.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ScrubbingRuleEntryMatchOperator.cs new file mode 100644 index 0000000000000..9c4e86987311c --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ScrubbingRuleEntryMatchOperator.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 +{ + /// When matchVariable is a collection, operate on the selector to specify which elements in the collection this rule applies to. + public readonly partial struct ScrubbingRuleEntryMatchOperator : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public ScrubbingRuleEntryMatchOperator(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string EqualsValueValue = "Equals"; + private const string EqualsAnyValue = "EqualsAny"; + + /// Equals. + public static ScrubbingRuleEntryMatchOperator EqualsValue { get; } = new ScrubbingRuleEntryMatchOperator(EqualsValueValue); + /// EqualsAny. + public static ScrubbingRuleEntryMatchOperator EqualsAny { get; } = new ScrubbingRuleEntryMatchOperator(EqualsAnyValue); + /// Determines if two values are the same. + public static bool operator ==(ScrubbingRuleEntryMatchOperator left, ScrubbingRuleEntryMatchOperator right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(ScrubbingRuleEntryMatchOperator left, ScrubbingRuleEntryMatchOperator right) => !left.Equals(right); + /// Converts a string to a . + public static implicit operator ScrubbingRuleEntryMatchOperator(string value) => new ScrubbingRuleEntryMatchOperator(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is ScrubbingRuleEntryMatchOperator other && Equals(other); + /// + public bool Equals(ScrubbingRuleEntryMatchOperator 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/ScrubbingRuleEntryMatchVariable.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ScrubbingRuleEntryMatchVariable.cs new file mode 100644 index 0000000000000..89665ff16a981 --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ScrubbingRuleEntryMatchVariable.cs @@ -0,0 +1,63 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.ResourceManager.Network.Models +{ + /// The variable to be scrubbed from the logs. + public readonly partial struct ScrubbingRuleEntryMatchVariable : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public ScrubbingRuleEntryMatchVariable(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string RequestHeaderNamesValue = "RequestHeaderNames"; + private const string RequestCookieNamesValue = "RequestCookieNames"; + private const string RequestArgNamesValue = "RequestArgNames"; + private const string RequestPostArgNamesValue = "RequestPostArgNames"; + private const string RequestJsonArgNamesValue = "RequestJSONArgNames"; + private const string RequestIPAddressValue = "RequestIPAddress"; + + /// RequestHeaderNames. + public static ScrubbingRuleEntryMatchVariable RequestHeaderNames { get; } = new ScrubbingRuleEntryMatchVariable(RequestHeaderNamesValue); + /// RequestCookieNames. + public static ScrubbingRuleEntryMatchVariable RequestCookieNames { get; } = new ScrubbingRuleEntryMatchVariable(RequestCookieNamesValue); + /// RequestArgNames. + public static ScrubbingRuleEntryMatchVariable RequestArgNames { get; } = new ScrubbingRuleEntryMatchVariable(RequestArgNamesValue); + /// RequestPostArgNames. + public static ScrubbingRuleEntryMatchVariable RequestPostArgNames { get; } = new ScrubbingRuleEntryMatchVariable(RequestPostArgNamesValue); + /// RequestJSONArgNames. + public static ScrubbingRuleEntryMatchVariable RequestJsonArgNames { get; } = new ScrubbingRuleEntryMatchVariable(RequestJsonArgNamesValue); + /// RequestIPAddress. + public static ScrubbingRuleEntryMatchVariable RequestIPAddress { get; } = new ScrubbingRuleEntryMatchVariable(RequestIPAddressValue); + /// Determines if two values are the same. + public static bool operator ==(ScrubbingRuleEntryMatchVariable left, ScrubbingRuleEntryMatchVariable right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(ScrubbingRuleEntryMatchVariable left, ScrubbingRuleEntryMatchVariable right) => !left.Equals(right); + /// Converts a string to a . + public static implicit operator ScrubbingRuleEntryMatchVariable(string value) => new ScrubbingRuleEntryMatchVariable(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is ScrubbingRuleEntryMatchVariable other && Equals(other); + /// + public bool Equals(ScrubbingRuleEntryMatchVariable 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/ScrubbingRuleEntryState.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ScrubbingRuleEntryState.cs new file mode 100644 index 0000000000000..d95f74330d975 --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ScrubbingRuleEntryState.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 +{ + /// Defines the state of log scrubbing rule. Default value is Enabled. + public readonly partial struct ScrubbingRuleEntryState : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public ScrubbingRuleEntryState(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string EnabledValue = "Enabled"; + private const string DisabledValue = "Disabled"; + + /// Enabled. + public static ScrubbingRuleEntryState Enabled { get; } = new ScrubbingRuleEntryState(EnabledValue); + /// Disabled. + public static ScrubbingRuleEntryState Disabled { get; } = new ScrubbingRuleEntryState(DisabledValue); + /// Determines if two values are the same. + public static bool operator ==(ScrubbingRuleEntryState left, ScrubbingRuleEntryState right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(ScrubbingRuleEntryState left, ScrubbingRuleEntryState right) => !left.Equals(right); + /// Converts a string to a . + public static implicit operator ScrubbingRuleEntryState(string value) => new ScrubbingRuleEntryState(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is ScrubbingRuleEntryState other && Equals(other); + /// + public bool Equals(ScrubbingRuleEntryState 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/VirtualApplianceAdditionalNicProperties.Serialization.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/VirtualApplianceAdditionalNicProperties.Serialization.cs new file mode 100644 index 0000000000000..617029d803a33 --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/VirtualApplianceAdditionalNicProperties.Serialization.cs @@ -0,0 +1,59 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.Network.Models +{ + public partial class VirtualApplianceAdditionalNicProperties : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (Optional.IsDefined(Name)) + { + writer.WritePropertyName("name"u8); + writer.WriteStringValue(Name); + } + if (Optional.IsDefined(HasPublicIP)) + { + writer.WritePropertyName("hasPublicIp"u8); + writer.WriteBooleanValue(HasPublicIP.Value); + } + writer.WriteEndObject(); + } + + internal static VirtualApplianceAdditionalNicProperties DeserializeVirtualApplianceAdditionalNicProperties(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + Optional name = default; + Optional hasPublicIP = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("name"u8)) + { + name = property.Value.GetString(); + continue; + } + if (property.NameEquals("hasPublicIp"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + hasPublicIP = property.Value.GetBoolean(); + continue; + } + } + return new VirtualApplianceAdditionalNicProperties(name.Value, Optional.ToNullable(hasPublicIP)); + } + } +} diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/VirtualApplianceAdditionalNicProperties.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/VirtualApplianceAdditionalNicProperties.cs new file mode 100644 index 0000000000000..8b0439e95b7a0 --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/VirtualApplianceAdditionalNicProperties.cs @@ -0,0 +1,32 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.ResourceManager.Network.Models +{ + /// Network Virtual Appliance Additional NIC properties. + public partial class VirtualApplianceAdditionalNicProperties + { + /// Initializes a new instance of VirtualApplianceAdditionalNicProperties. + public VirtualApplianceAdditionalNicProperties() + { + } + + /// Initializes a new instance of VirtualApplianceAdditionalNicProperties. + /// Customer Name for additional nic. + /// Customer Intent for Public Ip on additional nic. + internal VirtualApplianceAdditionalNicProperties(string name, bool? hasPublicIP) + { + Name = name; + HasPublicIP = hasPublicIP; + } + + /// Customer Name for additional nic. + public string Name { get; set; } + /// Customer Intent for Public Ip on additional nic. + public bool? HasPublicIP { get; set; } + } +} diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/VirtualApplianceNicProperties.Serialization.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/VirtualApplianceNicProperties.Serialization.cs index a6968c94187a1..dc7b93b2589d9 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/VirtualApplianceNicProperties.Serialization.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/VirtualApplianceNicProperties.Serialization.cs @@ -21,6 +21,7 @@ internal static VirtualApplianceNicProperties DeserializeVirtualApplianceNicProp Optional name = default; Optional publicIPAddress = default; Optional privateIPAddress = default; + Optional instanceName = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("name"u8)) @@ -38,8 +39,13 @@ internal static VirtualApplianceNicProperties DeserializeVirtualApplianceNicProp privateIPAddress = property.Value.GetString(); continue; } + if (property.NameEquals("instanceName"u8)) + { + instanceName = property.Value.GetString(); + continue; + } } - return new VirtualApplianceNicProperties(name.Value, publicIPAddress.Value, privateIPAddress.Value); + return new VirtualApplianceNicProperties(name.Value, publicIPAddress.Value, privateIPAddress.Value, instanceName.Value); } } } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/VirtualApplianceNicProperties.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/VirtualApplianceNicProperties.cs index 3bdc592f77faa..76c4c19e68a70 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/VirtualApplianceNicProperties.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/VirtualApplianceNicProperties.cs @@ -19,11 +19,13 @@ internal VirtualApplianceNicProperties() /// NIC name. /// Public IP address. /// Private IP address. - internal VirtualApplianceNicProperties(string name, string publicIPAddress, string privateIPAddress) + /// Instance on which nic is attached. + internal VirtualApplianceNicProperties(string name, string publicIPAddress, string privateIPAddress, string instanceName) { Name = name; PublicIPAddress = publicIPAddress; PrivateIPAddress = privateIPAddress; + InstanceName = instanceName; } /// NIC name. @@ -32,5 +34,7 @@ internal VirtualApplianceNicProperties(string name, string publicIPAddress, stri public string PublicIPAddress { get; } /// Private IP address. public string PrivateIPAddress { get; } + /// Instance on which nic is attached. + public string InstanceName { get; } } } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/VirtualHubEffectiveRoute.Serialization.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/VirtualHubEffectiveRoute.Serialization.cs new file mode 100644 index 0000000000000..6f1dfec808954 --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/VirtualHubEffectiveRoute.Serialization.cs @@ -0,0 +1,76 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.Network.Models +{ + public partial class VirtualHubEffectiveRoute + { + internal static VirtualHubEffectiveRoute DeserializeVirtualHubEffectiveRoute(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + Optional> addressPrefixes = default; + Optional> nextHops = default; + Optional nextHopType = default; + Optional asPath = default; + Optional routeOrigin = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("addressPrefixes"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(item.GetString()); + } + addressPrefixes = array; + continue; + } + if (property.NameEquals("nextHops"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(item.GetString()); + } + nextHops = array; + continue; + } + if (property.NameEquals("nextHopType"u8)) + { + nextHopType = property.Value.GetString(); + continue; + } + if (property.NameEquals("asPath"u8)) + { + asPath = property.Value.GetString(); + continue; + } + if (property.NameEquals("routeOrigin"u8)) + { + routeOrigin = property.Value.GetString(); + continue; + } + } + return new VirtualHubEffectiveRoute(Optional.ToList(addressPrefixes), Optional.ToList(nextHops), nextHopType.Value, asPath.Value, routeOrigin.Value); + } + } +} diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/VirtualHubEffectiveRoute.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/VirtualHubEffectiveRoute.cs new file mode 100644 index 0000000000000..668afddbf97a2 --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/VirtualHubEffectiveRoute.cs @@ -0,0 +1,49 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; +using Azure.Core; + +namespace Azure.ResourceManager.Network.Models +{ + /// The effective route configured on the virtual hub or specified resource. + public partial class VirtualHubEffectiveRoute + { + /// Initializes a new instance of VirtualHubEffectiveRoute. + internal VirtualHubEffectiveRoute() + { + AddressPrefixes = new ChangeTrackingList(); + NextHops = new ChangeTrackingList(); + } + + /// Initializes a new instance of VirtualHubEffectiveRoute. + /// The list of address prefixes. + /// The list of next hops. + /// The type of the next hop. + /// The ASPath of this route. + /// The origin of this route. + internal VirtualHubEffectiveRoute(IReadOnlyList addressPrefixes, IReadOnlyList nextHops, string nextHopType, string asPath, string routeOrigin) + { + AddressPrefixes = addressPrefixes; + NextHops = nextHops; + NextHopType = nextHopType; + AsPath = asPath; + RouteOrigin = routeOrigin; + } + + /// The list of address prefixes. + public IReadOnlyList AddressPrefixes { get; } + /// The list of next hops. + public IReadOnlyList NextHops { get; } + /// The type of the next hop. + public string NextHopType { get; } + /// The ASPath of this route. + public string AsPath { get; } + /// The origin of this route. + public string RouteOrigin { get; } + } +} diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/VirtualHubEffectiveRouteList.Serialization.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/VirtualHubEffectiveRouteList.Serialization.cs new file mode 100644 index 0000000000000..bf9953590678d --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/VirtualHubEffectiveRouteList.Serialization.cs @@ -0,0 +1,43 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.Network.Models +{ + public partial class VirtualHubEffectiveRouteList + { + internal static VirtualHubEffectiveRouteList DeserializeVirtualHubEffectiveRouteList(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + Optional> value = default; + 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(VirtualHubEffectiveRoute.DeserializeVirtualHubEffectiveRoute(item)); + } + value = array; + continue; + } + } + return new VirtualHubEffectiveRouteList(Optional.ToList(value)); + } + } +} diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/VirtualHubEffectiveRouteList.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/VirtualHubEffectiveRouteList.cs new file mode 100644 index 0000000000000..06996c26a825f --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/VirtualHubEffectiveRouteList.cs @@ -0,0 +1,32 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; +using Azure.Core; + +namespace Azure.ResourceManager.Network.Models +{ + /// EffectiveRoutes List. + public partial class VirtualHubEffectiveRouteList + { + /// Initializes a new instance of VirtualHubEffectiveRouteList. + internal VirtualHubEffectiveRouteList() + { + Value = new ChangeTrackingList(); + } + + /// Initializes a new instance of VirtualHubEffectiveRouteList. + /// The list of effective routes configured on the virtual hub or the specified resource. + internal VirtualHubEffectiveRouteList(IReadOnlyList value) + { + Value = value; + } + + /// The list of effective routes configured on the virtual hub or the specified resource. + public IReadOnlyList Value { get; } + } +} diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/WebApplicationFirewallCustomRule.Serialization.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/WebApplicationFirewallCustomRule.Serialization.cs index fc4a06009fcad..e02692be2f5c6 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/WebApplicationFirewallCustomRule.Serialization.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/WebApplicationFirewallCustomRule.Serialization.cs @@ -29,6 +29,16 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WritePropertyName("state"u8); writer.WriteStringValue(State.Value.ToString()); } + if (Optional.IsDefined(RateLimitDuration)) + { + writer.WritePropertyName("rateLimitDuration"u8); + writer.WriteStringValue(RateLimitDuration.Value.ToString()); + } + if (Optional.IsDefined(RateLimitThreshold)) + { + writer.WritePropertyName("rateLimitThreshold"u8); + writer.WriteNumberValue(RateLimitThreshold.Value); + } writer.WritePropertyName("ruleType"u8); writer.WriteStringValue(RuleType.ToString()); writer.WritePropertyName("matchConditions"u8); @@ -38,6 +48,16 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteObjectValue(item); } writer.WriteEndArray(); + if (Optional.IsCollectionDefined(GroupByUserSession)) + { + writer.WritePropertyName("groupByUserSession"u8); + writer.WriteStartArray(); + foreach (var item in GroupByUserSession) + { + writer.WriteObjectValue(item); + } + writer.WriteEndArray(); + } writer.WritePropertyName("action"u8); writer.WriteStringValue(Action.ToString()); writer.WriteEndObject(); @@ -53,8 +73,11 @@ internal static WebApplicationFirewallCustomRule DeserializeWebApplicationFirewa Optional etag = default; int priority = default; Optional state = default; + Optional rateLimitDuration = default; + Optional rateLimitThreshold = default; WebApplicationFirewallRuleType ruleType = default; IList matchConditions = default; + Optional> groupByUserSession = default; WebApplicationFirewallAction action = default; foreach (var property in element.EnumerateObject()) { @@ -86,6 +109,24 @@ internal static WebApplicationFirewallCustomRule DeserializeWebApplicationFirewa state = new WebApplicationFirewallState(property.Value.GetString()); continue; } + if (property.NameEquals("rateLimitDuration"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + rateLimitDuration = new ApplicationGatewayFirewallRateLimitDuration(property.Value.GetString()); + continue; + } + if (property.NameEquals("rateLimitThreshold"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + rateLimitThreshold = property.Value.GetInt32(); + continue; + } if (property.NameEquals("ruleType"u8)) { ruleType = new WebApplicationFirewallRuleType(property.Value.GetString()); @@ -101,13 +142,27 @@ internal static WebApplicationFirewallCustomRule DeserializeWebApplicationFirewa matchConditions = array; continue; } + if (property.NameEquals("groupByUserSession"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(Models.GroupByUserSession.DeserializeGroupByUserSession(item)); + } + groupByUserSession = array; + continue; + } if (property.NameEquals("action"u8)) { action = new WebApplicationFirewallAction(property.Value.GetString()); continue; } } - return new WebApplicationFirewallCustomRule(name.Value, Optional.ToNullable(etag), priority, Optional.ToNullable(state), ruleType, matchConditions, action); + return new WebApplicationFirewallCustomRule(name.Value, Optional.ToNullable(etag), priority, Optional.ToNullable(state), Optional.ToNullable(rateLimitDuration), Optional.ToNullable(rateLimitThreshold), ruleType, matchConditions, Optional.ToList(groupByUserSession), action); } } } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/WebApplicationFirewallCustomRule.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/WebApplicationFirewallCustomRule.cs index 4ae60c7c41fce..ce39710ed938f 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/WebApplicationFirewallCustomRule.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/WebApplicationFirewallCustomRule.cs @@ -29,6 +29,7 @@ public WebApplicationFirewallCustomRule(int priority, WebApplicationFirewallRule Priority = priority; RuleType = ruleType; MatchConditions = matchConditions.ToList(); + GroupByUserSession = new ChangeTrackingList(); Action = action; } @@ -37,17 +38,23 @@ public WebApplicationFirewallCustomRule(int priority, WebApplicationFirewallRule /// A unique read-only string that changes whenever the resource is updated. /// Priority of the rule. Rules with a lower value will be evaluated before rules with a higher value. /// Describes if the custom rule is in enabled or disabled state. Defaults to Enabled if not specified. + /// Duration over which Rate Limit policy will be applied. Applies only when ruleType is RateLimitRule. + /// Rate Limit threshold to apply in case ruleType is RateLimitRule. Must be greater than or equal to 1. /// The rule type. /// List of match conditions. + /// List of user session identifier group by clauses. /// Type of Actions. - internal WebApplicationFirewallCustomRule(string name, ETag? etag, int priority, WebApplicationFirewallState? state, WebApplicationFirewallRuleType ruleType, IList matchConditions, WebApplicationFirewallAction action) + internal WebApplicationFirewallCustomRule(string name, ETag? etag, int priority, WebApplicationFirewallState? state, ApplicationGatewayFirewallRateLimitDuration? rateLimitDuration, int? rateLimitThreshold, WebApplicationFirewallRuleType ruleType, IList matchConditions, IList groupByUserSession, WebApplicationFirewallAction action) { Name = name; ETag = etag; Priority = priority; State = state; + RateLimitDuration = rateLimitDuration; + RateLimitThreshold = rateLimitThreshold; RuleType = ruleType; MatchConditions = matchConditions; + GroupByUserSession = groupByUserSession; Action = action; } @@ -59,10 +66,16 @@ internal WebApplicationFirewallCustomRule(string name, ETag? etag, int priority, public int Priority { get; set; } /// Describes if the custom rule is in enabled or disabled state. Defaults to Enabled if not specified. public WebApplicationFirewallState? State { get; set; } + /// Duration over which Rate Limit policy will be applied. Applies only when ruleType is RateLimitRule. + public ApplicationGatewayFirewallRateLimitDuration? RateLimitDuration { get; set; } + /// Rate Limit threshold to apply in case ruleType is RateLimitRule. Must be greater than or equal to 1. + public int? RateLimitThreshold { get; set; } /// The rule type. public WebApplicationFirewallRuleType RuleType { get; set; } /// List of match conditions. public IList MatchConditions { get; } + /// List of user session identifier group by clauses. + public IList GroupByUserSession { get; } /// Type of Actions. public WebApplicationFirewallAction Action { get; set; } } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/WebApplicationFirewallRuleType.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/WebApplicationFirewallRuleType.cs index d0ac0657bbb36..650d2dcc25f72 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/WebApplicationFirewallRuleType.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/WebApplicationFirewallRuleType.cs @@ -23,10 +23,13 @@ public WebApplicationFirewallRuleType(string value) } private const string MatchRuleValue = "MatchRule"; + private const string RateLimitRuleValue = "RateLimitRule"; private const string InvalidValue = "Invalid"; /// MatchRule. public static WebApplicationFirewallRuleType MatchRule { get; } = new WebApplicationFirewallRuleType(MatchRuleValue); + /// RateLimitRule. + public static WebApplicationFirewallRuleType RateLimitRule { get; } = new WebApplicationFirewallRuleType(RateLimitRuleValue); /// Invalid. public static WebApplicationFirewallRuleType Invalid { get; } = new WebApplicationFirewallRuleType(InvalidValue); /// Determines if two values are the same. diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/WebApplicationFirewallScrubbingRules.Serialization.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/WebApplicationFirewallScrubbingRules.Serialization.cs new file mode 100644 index 0000000000000..1bd9335873d3a --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/WebApplicationFirewallScrubbingRules.Serialization.cs @@ -0,0 +1,75 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.Network.Models +{ + public partial class WebApplicationFirewallScrubbingRules : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + writer.WritePropertyName("matchVariable"u8); + writer.WriteStringValue(MatchVariable.ToString()); + writer.WritePropertyName("selectorMatchOperator"u8); + writer.WriteStringValue(SelectorMatchOperator.ToString()); + if (Optional.IsDefined(Selector)) + { + writer.WritePropertyName("selector"u8); + writer.WriteStringValue(Selector); + } + if (Optional.IsDefined(State)) + { + writer.WritePropertyName("state"u8); + writer.WriteStringValue(State.Value.ToString()); + } + writer.WriteEndObject(); + } + + internal static WebApplicationFirewallScrubbingRules DeserializeWebApplicationFirewallScrubbingRules(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + ScrubbingRuleEntryMatchVariable matchVariable = default; + ScrubbingRuleEntryMatchOperator selectorMatchOperator = default; + Optional selector = default; + Optional state = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("matchVariable"u8)) + { + matchVariable = new ScrubbingRuleEntryMatchVariable(property.Value.GetString()); + continue; + } + if (property.NameEquals("selectorMatchOperator"u8)) + { + selectorMatchOperator = new ScrubbingRuleEntryMatchOperator(property.Value.GetString()); + continue; + } + if (property.NameEquals("selector"u8)) + { + selector = property.Value.GetString(); + continue; + } + if (property.NameEquals("state"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + state = new ScrubbingRuleEntryState(property.Value.GetString()); + continue; + } + } + return new WebApplicationFirewallScrubbingRules(matchVariable, selectorMatchOperator, selector.Value, Optional.ToNullable(state)); + } + } +} diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/WebApplicationFirewallScrubbingRules.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/WebApplicationFirewallScrubbingRules.cs new file mode 100644 index 0000000000000..551958a53ab46 --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/WebApplicationFirewallScrubbingRules.cs @@ -0,0 +1,44 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.ResourceManager.Network.Models +{ + /// Allow certain variables to be scrubbed on WAF logs. + public partial class WebApplicationFirewallScrubbingRules + { + /// Initializes a new instance of WebApplicationFirewallScrubbingRules. + /// The variable to be scrubbed from the logs. + /// When matchVariable is a collection, operate on the selector to specify which elements in the collection this rule applies to. + public WebApplicationFirewallScrubbingRules(ScrubbingRuleEntryMatchVariable matchVariable, ScrubbingRuleEntryMatchOperator selectorMatchOperator) + { + MatchVariable = matchVariable; + SelectorMatchOperator = selectorMatchOperator; + } + + /// Initializes a new instance of WebApplicationFirewallScrubbingRules. + /// The variable to be scrubbed from the logs. + /// When matchVariable is a collection, operate on the selector to specify which elements in the collection this rule applies to. + /// When matchVariable is a collection, operator used to specify which elements in the collection this rule applies to. + /// Defines the state of log scrubbing rule. Default value is Enabled. + internal WebApplicationFirewallScrubbingRules(ScrubbingRuleEntryMatchVariable matchVariable, ScrubbingRuleEntryMatchOperator selectorMatchOperator, string selector, ScrubbingRuleEntryState? state) + { + MatchVariable = matchVariable; + SelectorMatchOperator = selectorMatchOperator; + Selector = selector; + State = state; + } + + /// The variable to be scrubbed from the logs. + public ScrubbingRuleEntryMatchVariable MatchVariable { get; set; } + /// When matchVariable is a collection, operate on the selector to specify which elements in the collection this rule applies to. + public ScrubbingRuleEntryMatchOperator SelectorMatchOperator { get; set; } + /// When matchVariable is a collection, operator used to specify which elements in the collection this rule applies to. + public string Selector { get; set; } + /// Defines the state of log scrubbing rule. Default value is Enabled. + public ScrubbingRuleEntryState? State { get; set; } + } +} diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/WebApplicationFirewallScrubbingState.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/WebApplicationFirewallScrubbingState.cs new file mode 100644 index 0000000000000..8b9a019645d7e --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/WebApplicationFirewallScrubbingState.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 +{ + /// State of the log scrubbing config. Default value is Enabled. + public readonly partial struct WebApplicationFirewallScrubbingState : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public WebApplicationFirewallScrubbingState(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string DisabledValue = "Disabled"; + private const string EnabledValue = "Enabled"; + + /// Disabled. + public static WebApplicationFirewallScrubbingState Disabled { get; } = new WebApplicationFirewallScrubbingState(DisabledValue); + /// Enabled. + public static WebApplicationFirewallScrubbingState Enabled { get; } = new WebApplicationFirewallScrubbingState(EnabledValue); + /// Determines if two values are the same. + public static bool operator ==(WebApplicationFirewallScrubbingState left, WebApplicationFirewallScrubbingState right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(WebApplicationFirewallScrubbingState left, WebApplicationFirewallScrubbingState right) => !left.Equals(right); + /// Converts a string to a . + public static implicit operator WebApplicationFirewallScrubbingState(string value) => new WebApplicationFirewallScrubbingState(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is WebApplicationFirewallScrubbingState other && Equals(other); + /// + public bool Equals(WebApplicationFirewallScrubbingState 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/NetworkInterfaceData.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkInterfaceData.cs index 09cf6fa202a8b..45cedb9ceae4c 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkInterfaceData.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkInterfaceData.cs @@ -57,7 +57,8 @@ public NetworkInterfaceData() /// Privatelinkservice of the network interface resource. /// Migration phase of Network Interface resource. /// Auxiliary mode of Network Interface resource. - internal NetworkInterfaceData(ResourceIdentifier id, string name, ResourceType? resourceType, AzureLocation? location, IDictionary tags, ExtendedLocation extendedLocation, ETag? etag, WritableSubResource virtualMachine, NetworkSecurityGroupData networkSecurityGroup, PrivateEndpointData privateEndpoint, IList ipConfigurations, IReadOnlyList tapConfigurations, NetworkInterfaceDnsSettings dnsSettings, string macAddress, bool? primary, bool? vnetEncryptionSupported, bool? enableAcceleratedNetworking, bool? disableTcpStateTracking, bool? enableIPForwarding, IReadOnlyList hostedWorkloads, WritableSubResource dscpConfiguration, Guid? resourceGuid, NetworkProvisioningState? provisioningState, string workloadType, NetworkInterfaceNicType? nicType, PrivateLinkServiceData privateLinkService, NetworkInterfaceMigrationPhase? migrationPhase, NetworkInterfaceAuxiliaryMode? auxiliaryMode) : base(id, name, resourceType, location, tags) + /// Auxiliary sku of Network Interface resource. + internal NetworkInterfaceData(ResourceIdentifier id, string name, ResourceType? resourceType, AzureLocation? location, IDictionary tags, ExtendedLocation extendedLocation, ETag? etag, WritableSubResource virtualMachine, NetworkSecurityGroupData networkSecurityGroup, PrivateEndpointData privateEndpoint, IList ipConfigurations, IReadOnlyList tapConfigurations, NetworkInterfaceDnsSettings dnsSettings, string macAddress, bool? primary, bool? vnetEncryptionSupported, bool? enableAcceleratedNetworking, bool? disableTcpStateTracking, bool? enableIPForwarding, IReadOnlyList hostedWorkloads, WritableSubResource dscpConfiguration, Guid? resourceGuid, NetworkProvisioningState? provisioningState, string workloadType, NetworkInterfaceNicType? nicType, PrivateLinkServiceData privateLinkService, NetworkInterfaceMigrationPhase? migrationPhase, NetworkInterfaceAuxiliaryMode? auxiliaryMode, NetworkInterfaceAuxiliarySku? auxiliarySku) : base(id, name, resourceType, location, tags) { ExtendedLocation = extendedLocation; ETag = etag; @@ -82,6 +83,7 @@ internal NetworkInterfaceData(ResourceIdentifier id, string name, ResourceType? PrivateLinkService = privateLinkService; MigrationPhase = migrationPhase; AuxiliaryMode = auxiliaryMode; + AuxiliarySku = auxiliarySku; } /// The extended location of the network interface. @@ -142,5 +144,7 @@ public ResourceIdentifier DscpConfigurationId public NetworkInterfaceMigrationPhase? MigrationPhase { get; set; } /// Auxiliary mode of Network Interface resource. public NetworkInterfaceAuxiliaryMode? AuxiliaryMode { get; set; } + /// Auxiliary sku of Network Interface resource. + public NetworkInterfaceAuxiliarySku? AuxiliarySku { get; set; } } } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkPrivateEndpointConnectionData.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkPrivateEndpointConnectionData.cs index bfc864ceeddaa..14352ec721100 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkPrivateEndpointConnectionData.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkPrivateEndpointConnectionData.cs @@ -31,13 +31,15 @@ public NetworkPrivateEndpointConnectionData() /// A collection of information about the state of the connection between service consumer and provider. /// The provisioning state of the private endpoint connection resource. /// The consumer link id. - internal NetworkPrivateEndpointConnectionData(ResourceIdentifier id, string name, ResourceType? resourceType, ETag? etag, PrivateEndpointData privateEndpoint, NetworkPrivateLinkServiceConnectionState connectionState, NetworkProvisioningState? provisioningState, string linkIdentifier) : base(id, name, resourceType) + /// The location of the private endpoint. + internal NetworkPrivateEndpointConnectionData(ResourceIdentifier id, string name, ResourceType? resourceType, ETag? etag, PrivateEndpointData privateEndpoint, NetworkPrivateLinkServiceConnectionState connectionState, NetworkProvisioningState? provisioningState, string linkIdentifier, string privateEndpointLocation) : base(id, name, resourceType) { ETag = etag; PrivateEndpoint = privateEndpoint; ConnectionState = connectionState; ProvisioningState = provisioningState; LinkIdentifier = linkIdentifier; + PrivateEndpointLocation = privateEndpointLocation; } /// A unique read-only string that changes whenever the resource is updated. @@ -50,5 +52,7 @@ internal NetworkPrivateEndpointConnectionData(ResourceIdentifier id, string name public NetworkProvisioningState? ProvisioningState { get; } /// The consumer link id. public string LinkIdentifier { get; } + /// The location of the private endpoint. + public string PrivateEndpointLocation { get; } } } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkVirtualApplianceConnectionCollection.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkVirtualApplianceConnectionCollection.cs new file mode 100644 index 0000000000000..d96699fcbf8ed --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkVirtualApplianceConnectionCollection.cs @@ -0,0 +1,340 @@ +// 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 Azure; +using Azure.Core; +using Azure.Core.Pipeline; +using Azure.ResourceManager; + +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 GetNetworkVirtualApplianceConnections method from an instance of . + /// + public partial class NetworkVirtualApplianceConnectionCollection : ArmCollection, IEnumerable, IAsyncEnumerable + { + private readonly ClientDiagnostics _networkVirtualApplianceConnectionClientDiagnostics; + private readonly NetworkVirtualApplianceConnectionsRestOperations _networkVirtualApplianceConnectionRestClient; + + /// Initializes a new instance of the class for mocking. + protected NetworkVirtualApplianceConnectionCollection() + { + } + + /// 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 NetworkVirtualApplianceConnectionCollection(ArmClient client, ResourceIdentifier id) : base(client, id) + { + _networkVirtualApplianceConnectionClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.Network", NetworkVirtualApplianceConnectionResource.ResourceType.Namespace, Diagnostics); + TryGetApiVersion(NetworkVirtualApplianceConnectionResource.ResourceType, out string networkVirtualApplianceConnectionApiVersion); + _networkVirtualApplianceConnectionRestClient = new NetworkVirtualApplianceConnectionsRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, networkVirtualApplianceConnectionApiVersion); +#if DEBUG + ValidateResourceId(Id); +#endif + } + + internal static void ValidateResourceId(ResourceIdentifier id) + { + if (id.ResourceType != NetworkVirtualApplianceResource.ResourceType) + throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "Invalid resource type {0} expected {1}", id.ResourceType, NetworkVirtualApplianceResource.ResourceType), nameof(id)); + } + + /// + /// Creates a connection to Network Virtual Appliance, if it doesn't exist else updates the existing NVA connection' + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkVirtualAppliances/{networkVirtualApplianceName}/networkVirtualApplianceConnections/{connectionName} + /// + /// + /// Operation Id + /// NetworkVirtualApplianceConnections_CreateOrUpdate + /// + /// + /// + /// 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 NVA connection. + /// Parameters supplied in an NetworkVirtualApplianceConnection PUT operation. + /// 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 connectionName, NetworkVirtualApplianceConnectionData data, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(connectionName, nameof(connectionName)); + Argument.AssertNotNull(data, nameof(data)); + + using var scope = _networkVirtualApplianceConnectionClientDiagnostics.CreateScope("NetworkVirtualApplianceConnectionCollection.CreateOrUpdate"); + scope.Start(); + try + { + var response = await _networkVirtualApplianceConnectionRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, connectionName, data, cancellationToken).ConfigureAwait(false); + var operation = new NetworkArmOperation(new NetworkVirtualApplianceConnectionOperationSource(Client), _networkVirtualApplianceConnectionClientDiagnostics, Pipeline, _networkVirtualApplianceConnectionRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, connectionName, data).Request, response, OperationFinalStateVia.AzureAsyncOperation); + if (waitUntil == WaitUntil.Completed) + await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Creates a connection to Network Virtual Appliance, if it doesn't exist else updates the existing NVA connection' + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkVirtualAppliances/{networkVirtualApplianceName}/networkVirtualApplianceConnections/{connectionName} + /// + /// + /// Operation Id + /// NetworkVirtualApplianceConnections_CreateOrUpdate + /// + /// + /// + /// 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 NVA connection. + /// Parameters supplied in an NetworkVirtualApplianceConnection PUT operation. + /// 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 connectionName, NetworkVirtualApplianceConnectionData data, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(connectionName, nameof(connectionName)); + Argument.AssertNotNull(data, nameof(data)); + + using var scope = _networkVirtualApplianceConnectionClientDiagnostics.CreateScope("NetworkVirtualApplianceConnectionCollection.CreateOrUpdate"); + scope.Start(); + try + { + var response = _networkVirtualApplianceConnectionRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, connectionName, data, cancellationToken); + var operation = new NetworkArmOperation(new NetworkVirtualApplianceConnectionOperationSource(Client), _networkVirtualApplianceConnectionClientDiagnostics, Pipeline, _networkVirtualApplianceConnectionRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, connectionName, data).Request, response, OperationFinalStateVia.AzureAsyncOperation); + if (waitUntil == WaitUntil.Completed) + operation.WaitForCompletion(cancellationToken); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Retrieves the details of specified NVA connection. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkVirtualAppliances/{networkVirtualApplianceName}/networkVirtualApplianceConnections/{connectionName} + /// + /// + /// Operation Id + /// NetworkVirtualApplianceConnections_Get + /// + /// + /// + /// The name of the NVA connection. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + public virtual async Task> GetAsync(string connectionName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(connectionName, nameof(connectionName)); + + using var scope = _networkVirtualApplianceConnectionClientDiagnostics.CreateScope("NetworkVirtualApplianceConnectionCollection.Get"); + scope.Start(); + try + { + var response = await _networkVirtualApplianceConnectionRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, connectionName, cancellationToken).ConfigureAwait(false); + if (response.Value == null) + throw new RequestFailedException(response.GetRawResponse()); + return Response.FromValue(new NetworkVirtualApplianceConnectionResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Retrieves the details of specified NVA connection. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkVirtualAppliances/{networkVirtualApplianceName}/networkVirtualApplianceConnections/{connectionName} + /// + /// + /// Operation Id + /// NetworkVirtualApplianceConnections_Get + /// + /// + /// + /// The name of the NVA connection. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + public virtual Response Get(string connectionName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(connectionName, nameof(connectionName)); + + using var scope = _networkVirtualApplianceConnectionClientDiagnostics.CreateScope("NetworkVirtualApplianceConnectionCollection.Get"); + scope.Start(); + try + { + var response = _networkVirtualApplianceConnectionRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, connectionName, cancellationToken); + if (response.Value == null) + throw new RequestFailedException(response.GetRawResponse()); + return Response.FromValue(new NetworkVirtualApplianceConnectionResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Lists NetworkVirtualApplianceConnections under the NVA. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkVirtualAppliances/{networkVirtualApplianceName}/networkVirtualApplianceConnections + /// + /// + /// Operation Id + /// NetworkVirtualApplianceConnections_List + /// + /// + /// + /// The cancellation token to use. + /// An async collection of that may take multiple service requests to iterate over. + public virtual AsyncPageable GetAllAsync(CancellationToken cancellationToken = default) + { + HttpMessage FirstPageRequest(int? pageSizeHint) => _networkVirtualApplianceConnectionRestClient.CreateListRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _networkVirtualApplianceConnectionRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name); + return PageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => new NetworkVirtualApplianceConnectionResource(Client, NetworkVirtualApplianceConnectionData.DeserializeNetworkVirtualApplianceConnectionData(e)), _networkVirtualApplianceConnectionClientDiagnostics, Pipeline, "NetworkVirtualApplianceConnectionCollection.GetAll", "value", "nextLink", cancellationToken); + } + + /// + /// Lists NetworkVirtualApplianceConnections under the NVA. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkVirtualAppliances/{networkVirtualApplianceName}/networkVirtualApplianceConnections + /// + /// + /// Operation Id + /// NetworkVirtualApplianceConnections_List + /// + /// + /// + /// The cancellation token to use. + /// A collection of that may take multiple service requests to iterate over. + public virtual Pageable GetAll(CancellationToken cancellationToken = default) + { + HttpMessage FirstPageRequest(int? pageSizeHint) => _networkVirtualApplianceConnectionRestClient.CreateListRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _networkVirtualApplianceConnectionRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name); + return PageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new NetworkVirtualApplianceConnectionResource(Client, NetworkVirtualApplianceConnectionData.DeserializeNetworkVirtualApplianceConnectionData(e)), _networkVirtualApplianceConnectionClientDiagnostics, Pipeline, "NetworkVirtualApplianceConnectionCollection.GetAll", "value", "nextLink", cancellationToken); + } + + /// + /// Checks to see if the resource exists in azure. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkVirtualAppliances/{networkVirtualApplianceName}/networkVirtualApplianceConnections/{connectionName} + /// + /// + /// Operation Id + /// NetworkVirtualApplianceConnections_Get + /// + /// + /// + /// The name of the NVA connection. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + public virtual async Task> ExistsAsync(string connectionName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(connectionName, nameof(connectionName)); + + using var scope = _networkVirtualApplianceConnectionClientDiagnostics.CreateScope("NetworkVirtualApplianceConnectionCollection.Exists"); + scope.Start(); + try + { + var response = await _networkVirtualApplianceConnectionRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, connectionName, 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/networkVirtualAppliances/{networkVirtualApplianceName}/networkVirtualApplianceConnections/{connectionName} + /// + /// + /// Operation Id + /// NetworkVirtualApplianceConnections_Get + /// + /// + /// + /// The name of the NVA connection. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + public virtual Response Exists(string connectionName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(connectionName, nameof(connectionName)); + + using var scope = _networkVirtualApplianceConnectionClientDiagnostics.CreateScope("NetworkVirtualApplianceConnectionCollection.Exists"); + scope.Start(); + try + { + var response = _networkVirtualApplianceConnectionRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, connectionName, cancellationToken: cancellationToken); + return Response.FromValue(response.Value != null, 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/NetworkVirtualApplianceConnectionData.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkVirtualApplianceConnectionData.cs new file mode 100644 index 0000000000000..86b1e39339a7f --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkVirtualApplianceConnectionData.cs @@ -0,0 +1,63 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; +using Azure.Core; +using Azure.ResourceManager.Network.Models; + +namespace Azure.ResourceManager.Network +{ + /// + /// A class representing the NetworkVirtualApplianceConnection data model. + /// NetworkVirtualApplianceConnection resource. + /// + public partial class NetworkVirtualApplianceConnectionData : NetworkResourceData + { + /// Initializes a new instance of NetworkVirtualApplianceConnectionData. + public NetworkVirtualApplianceConnectionData() + { + BgpPeerAddress = new ChangeTrackingList(); + } + + /// Initializes a new instance of NetworkVirtualApplianceConnectionData. + /// Resource ID. + /// Resource name. + /// Resource type. + /// The name of the resource. + /// The provisioning state of the NetworkVirtualApplianceConnection resource. + /// Network Virtual Appliance ASN. + /// Unique identifier for the connection. + /// List of bgpPeerAddresses for the NVA instances. + /// Enable internet security. + /// The Routing Configuration indicating the associated and propagated route tables on this connection. + internal NetworkVirtualApplianceConnectionData(ResourceIdentifier id, string name, ResourceType? resourceType, string namePropertiesName, NetworkProvisioningState? provisioningState, long? asn, long? tunnelIdentifier, IList bgpPeerAddress, bool? enableInternetSecurity, RoutingConfigurationNfv routingConfiguration) : base(id, name, resourceType) + { + NamePropertiesName = namePropertiesName; + ProvisioningState = provisioningState; + Asn = asn; + TunnelIdentifier = tunnelIdentifier; + BgpPeerAddress = bgpPeerAddress; + EnableInternetSecurity = enableInternetSecurity; + RoutingConfiguration = routingConfiguration; + } + + /// The name of the resource. + public string NamePropertiesName { get; set; } + /// The provisioning state of the NetworkVirtualApplianceConnection resource. + public NetworkProvisioningState? ProvisioningState { get; } + /// Network Virtual Appliance ASN. + public long? Asn { get; set; } + /// Unique identifier for the connection. + public long? TunnelIdentifier { get; set; } + /// List of bgpPeerAddresses for the NVA instances. + public IList BgpPeerAddress { get; } + /// Enable internet security. + public bool? EnableInternetSecurity { get; set; } + /// The Routing Configuration indicating the associated and propagated route tables on this connection. + public RoutingConfigurationNfv RoutingConfiguration { get; set; } + } +} diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkVirtualApplianceConnectionResource.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkVirtualApplianceConnectionResource.cs new file mode 100644 index 0000000000000..aa460a6128a66 --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkVirtualApplianceConnectionResource.cs @@ -0,0 +1,297 @@ +// 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; +using Azure.Core; +using Azure.Core.Pipeline; +using Azure.ResourceManager; + +namespace Azure.ResourceManager.Network +{ + /// + /// A Class representing a NetworkVirtualApplianceConnection 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 GetNetworkVirtualApplianceConnectionResource method. + /// Otherwise you can get one from its parent resource using the GetNetworkVirtualApplianceConnection method. + /// + public partial class NetworkVirtualApplianceConnectionResource : ArmResource + { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string networkVirtualApplianceName, string connectionName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkVirtualAppliances/{networkVirtualApplianceName}/networkVirtualApplianceConnections/{connectionName}"; + return new ResourceIdentifier(resourceId); + } + + private readonly ClientDiagnostics _networkVirtualApplianceConnectionClientDiagnostics; + private readonly NetworkVirtualApplianceConnectionsRestOperations _networkVirtualApplianceConnectionRestClient; + private readonly NetworkVirtualApplianceConnectionData _data; + + /// Initializes a new instance of the class for mocking. + protected NetworkVirtualApplianceConnectionResource() + { + } + + /// Initializes a new instance of the class. + /// The client parameters to use in these operations. + /// The resource that is the target of operations. + internal NetworkVirtualApplianceConnectionResource(ArmClient client, NetworkVirtualApplianceConnectionData 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 NetworkVirtualApplianceConnectionResource(ArmClient client, ResourceIdentifier id) : base(client, id) + { + _networkVirtualApplianceConnectionClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.Network", ResourceType.Namespace, Diagnostics); + TryGetApiVersion(ResourceType, out string networkVirtualApplianceConnectionApiVersion); + _networkVirtualApplianceConnectionRestClient = new NetworkVirtualApplianceConnectionsRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, networkVirtualApplianceConnectionApiVersion); +#if DEBUG + ValidateResourceId(Id); +#endif + } + + /// Gets the resource type for the operations. + public static readonly ResourceType ResourceType = "Microsoft.Network/networkVirtualAppliances/networkVirtualApplianceConnections"; + + /// 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 NetworkVirtualApplianceConnectionData 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)); + } + + /// + /// Retrieves the details of specified NVA connection. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkVirtualAppliances/{networkVirtualApplianceName}/networkVirtualApplianceConnections/{connectionName} + /// + /// + /// Operation Id + /// NetworkVirtualApplianceConnections_Get + /// + /// + /// + /// The cancellation token to use. + public virtual async Task> GetAsync(CancellationToken cancellationToken = default) + { + using var scope = _networkVirtualApplianceConnectionClientDiagnostics.CreateScope("NetworkVirtualApplianceConnectionResource.Get"); + scope.Start(); + try + { + var response = await _networkVirtualApplianceConnectionRestClient.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 NetworkVirtualApplianceConnectionResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Retrieves the details of specified NVA connection. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkVirtualAppliances/{networkVirtualApplianceName}/networkVirtualApplianceConnections/{connectionName} + /// + /// + /// Operation Id + /// NetworkVirtualApplianceConnections_Get + /// + /// + /// + /// The cancellation token to use. + public virtual Response Get(CancellationToken cancellationToken = default) + { + using var scope = _networkVirtualApplianceConnectionClientDiagnostics.CreateScope("NetworkVirtualApplianceConnectionResource.Get"); + scope.Start(); + try + { + var response = _networkVirtualApplianceConnectionRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); + if (response.Value == null) + throw new RequestFailedException(response.GetRawResponse()); + return Response.FromValue(new NetworkVirtualApplianceConnectionResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Deletes a NVA connection. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkVirtualAppliances/{networkVirtualApplianceName}/networkVirtualApplianceConnections/{connectionName} + /// + /// + /// Operation Id + /// NetworkVirtualApplianceConnections_Delete + /// + /// + /// + /// 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 cancellation token to use. + public virtual async Task DeleteAsync(WaitUntil waitUntil, CancellationToken cancellationToken = default) + { + using var scope = _networkVirtualApplianceConnectionClientDiagnostics.CreateScope("NetworkVirtualApplianceConnectionResource.Delete"); + scope.Start(); + try + { + var response = await _networkVirtualApplianceConnectionRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); + var operation = new NetworkArmOperation(_networkVirtualApplianceConnectionClientDiagnostics, Pipeline, _networkVirtualApplianceConnectionRestClient.CreateDeleteRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name).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 NVA connection. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkVirtualAppliances/{networkVirtualApplianceName}/networkVirtualApplianceConnections/{connectionName} + /// + /// + /// Operation Id + /// NetworkVirtualApplianceConnections_Delete + /// + /// + /// + /// 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 cancellation token to use. + public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancellationToken = default) + { + using var scope = _networkVirtualApplianceConnectionClientDiagnostics.CreateScope("NetworkVirtualApplianceConnectionResource.Delete"); + scope.Start(); + try + { + var response = _networkVirtualApplianceConnectionRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); + var operation = new NetworkArmOperation(_networkVirtualApplianceConnectionClientDiagnostics, Pipeline, _networkVirtualApplianceConnectionRestClient.CreateDeleteRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name).Request, response, OperationFinalStateVia.Location); + if (waitUntil == WaitUntil.Completed) + operation.WaitForCompletionResponse(cancellationToken); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Creates a connection to Network Virtual Appliance, if it doesn't exist else updates the existing NVA connection' + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkVirtualAppliances/{networkVirtualApplianceName}/networkVirtualApplianceConnections/{connectionName} + /// + /// + /// Operation Id + /// NetworkVirtualApplianceConnections_CreateOrUpdate + /// + /// + /// + /// 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. + /// Parameters supplied in an NetworkVirtualApplianceConnection PUT operation. + /// The cancellation token to use. + /// is null. + public virtual async Task> UpdateAsync(WaitUntil waitUntil, NetworkVirtualApplianceConnectionData data, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(data, nameof(data)); + + using var scope = _networkVirtualApplianceConnectionClientDiagnostics.CreateScope("NetworkVirtualApplianceConnectionResource.Update"); + scope.Start(); + try + { + var response = await _networkVirtualApplianceConnectionRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken).ConfigureAwait(false); + var operation = new NetworkArmOperation(new NetworkVirtualApplianceConnectionOperationSource(Client), _networkVirtualApplianceConnectionClientDiagnostics, Pipeline, _networkVirtualApplianceConnectionRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data).Request, response, OperationFinalStateVia.AzureAsyncOperation); + if (waitUntil == WaitUntil.Completed) + await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Creates a connection to Network Virtual Appliance, if it doesn't exist else updates the existing NVA connection' + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkVirtualAppliances/{networkVirtualApplianceName}/networkVirtualApplianceConnections/{connectionName} + /// + /// + /// Operation Id + /// NetworkVirtualApplianceConnections_CreateOrUpdate + /// + /// + /// + /// 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. + /// Parameters supplied in an NetworkVirtualApplianceConnection PUT operation. + /// The cancellation token to use. + /// is null. + public virtual ArmOperation Update(WaitUntil waitUntil, NetworkVirtualApplianceConnectionData data, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(data, nameof(data)); + + using var scope = _networkVirtualApplianceConnectionClientDiagnostics.CreateScope("NetworkVirtualApplianceConnectionResource.Update"); + scope.Start(); + try + { + var response = _networkVirtualApplianceConnectionRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken); + var operation = new NetworkArmOperation(new NetworkVirtualApplianceConnectionOperationSource(Client), _networkVirtualApplianceConnectionClientDiagnostics, Pipeline, _networkVirtualApplianceConnectionRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data).Request, response, OperationFinalStateVia.AzureAsyncOperation); + 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/NetworkVirtualApplianceData.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkVirtualApplianceData.cs index 90ffd506a0157..17530e7eb8878 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkVirtualApplianceData.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkVirtualApplianceData.cs @@ -26,7 +26,9 @@ public NetworkVirtualApplianceData() BootStrapConfigurationBlobs = new ChangeTrackingList(); CloudInitConfigurationBlobs = new ChangeTrackingList(); VirtualApplianceNics = new ChangeTrackingList(); + AdditionalNics = new ChangeTrackingList(); VirtualApplianceSites = new ChangeTrackingList(); + VirtualApplianceConnections = new ChangeTrackingList(); InboundSecurityRules = new ChangeTrackingList(); } @@ -47,13 +49,15 @@ public NetworkVirtualApplianceData() /// VirtualAppliance ASN. Microsoft private, public and IANA reserved ASN are not supported. /// Public key for SSH login. /// List of Virtual Appliance Network Interfaces. + /// Details required for Additional Network Interface. /// List of references to VirtualApplianceSite. + /// List of references to VirtualApplianceConnections. /// List of references to InboundSecurityRules. /// The provisioning state of the resource. /// The deployment type. PartnerManaged for the SaaS NVA. /// The delegation for the Virtual Appliance. /// The delegation for the Virtual Appliance. - internal NetworkVirtualApplianceData(ResourceIdentifier id, string name, ResourceType? resourceType, AzureLocation? location, IDictionary tags, ManagedServiceIdentity identity, ETag? etag, VirtualApplianceSkuProperties nvaSku, string addressPrefix, IList bootStrapConfigurationBlobs, WritableSubResource virtualHub, IList cloudInitConfigurationBlobs, string cloudInitConfiguration, long? virtualApplianceAsn, string sshPublicKey, IReadOnlyList virtualApplianceNics, IReadOnlyList virtualApplianceSites, IReadOnlyList inboundSecurityRules, NetworkProvisioningState? provisioningState, string deploymentType, VirtualApplianceDelegationProperties delegation, PartnerManagedResourceProperties partnerManagedResource) : base(id, name, resourceType, location, tags) + internal NetworkVirtualApplianceData(ResourceIdentifier id, string name, ResourceType? resourceType, AzureLocation? location, IDictionary tags, ManagedServiceIdentity identity, ETag? etag, VirtualApplianceSkuProperties nvaSku, string addressPrefix, IList bootStrapConfigurationBlobs, WritableSubResource virtualHub, IList cloudInitConfigurationBlobs, string cloudInitConfiguration, long? virtualApplianceAsn, string sshPublicKey, IReadOnlyList virtualApplianceNics, IList additionalNics, IReadOnlyList virtualApplianceSites, IReadOnlyList virtualApplianceConnections, IReadOnlyList inboundSecurityRules, NetworkProvisioningState? provisioningState, string deploymentType, VirtualApplianceDelegationProperties delegation, PartnerManagedResourceProperties partnerManagedResource) : base(id, name, resourceType, location, tags) { Identity = identity; ETag = etag; @@ -66,7 +70,9 @@ internal NetworkVirtualApplianceData(ResourceIdentifier id, string name, Resourc VirtualApplianceAsn = virtualApplianceAsn; SshPublicKey = sshPublicKey; VirtualApplianceNics = virtualApplianceNics; + AdditionalNics = additionalNics; VirtualApplianceSites = virtualApplianceSites; + VirtualApplianceConnections = virtualApplianceConnections; InboundSecurityRules = inboundSecurityRules; ProvisioningState = provisioningState; DeploymentType = deploymentType; @@ -108,8 +114,12 @@ public ResourceIdentifier VirtualHubId public string SshPublicKey { get; set; } /// List of Virtual Appliance Network Interfaces. public IReadOnlyList VirtualApplianceNics { get; } + /// Details required for Additional Network Interface. + public IList AdditionalNics { get; } /// List of references to VirtualApplianceSite. public IReadOnlyList VirtualApplianceSites { get; } + /// List of references to VirtualApplianceConnections. + public IReadOnlyList VirtualApplianceConnections { get; } /// List of references to InboundSecurityRules. public IReadOnlyList InboundSecurityRules { get; } /// The provisioning state of the resource. diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkVirtualApplianceResource.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkVirtualApplianceResource.cs index 23db0d94a40ba..f6535deffd28b 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkVirtualApplianceResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkVirtualApplianceResource.cs @@ -146,6 +146,59 @@ public virtual Response GetVirtualApplianceSite(st return GetVirtualApplianceSites().Get(siteName, cancellationToken); } + /// Gets a collection of NetworkVirtualApplianceConnectionResources in the NetworkVirtualAppliance. + /// An object representing collection of NetworkVirtualApplianceConnectionResources and their operations over a NetworkVirtualApplianceConnectionResource. + public virtual NetworkVirtualApplianceConnectionCollection GetNetworkVirtualApplianceConnections() + { + return GetCachedClient(Client => new NetworkVirtualApplianceConnectionCollection(Client, Id)); + } + + /// + /// Retrieves the details of specified NVA connection. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkVirtualAppliances/{networkVirtualApplianceName}/networkVirtualApplianceConnections/{connectionName} + /// + /// + /// Operation Id + /// NetworkVirtualApplianceConnections_Get + /// + /// + /// + /// The name of the NVA connection. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + [ForwardsClientCalls] + public virtual async Task> GetNetworkVirtualApplianceConnectionAsync(string connectionName, CancellationToken cancellationToken = default) + { + return await GetNetworkVirtualApplianceConnections().GetAsync(connectionName, cancellationToken).ConfigureAwait(false); + } + + /// + /// Retrieves the details of specified NVA connection. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkVirtualAppliances/{networkVirtualApplianceName}/networkVirtualApplianceConnections/{connectionName} + /// + /// + /// Operation Id + /// NetworkVirtualApplianceConnections_Get + /// + /// + /// + /// The name of the NVA connection. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + [ForwardsClientCalls] + public virtual Response GetNetworkVirtualApplianceConnection(string connectionName, CancellationToken cancellationToken = default) + { + return GetNetworkVirtualApplianceConnections().Get(connectionName, cancellationToken); + } + /// /// Gets the specified Network Virtual Appliance. /// 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 fccffde8e1739..dbd074479a28c 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/AdminRuleCollectionsRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/AdminRuleCollectionsRestOperations.cs @@ -33,7 +33,7 @@ public AdminRuleCollectionsRestOperations(HttpPipeline pipeline, string applicat { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-09-01"; + _apiVersion = apiVersion ?? "2022-11-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 6a0cf9aaf0ff0..5174916653a7b 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/AdminRulesRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/AdminRulesRestOperations.cs @@ -33,7 +33,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 ?? "2022-09-01"; + _apiVersion = apiVersion ?? "2022-11-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 87fe52622a152..f3cae203efecd 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ApplicationGatewayPrivateEndpointConnectionsRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ApplicationGatewayPrivateEndpointConnectionsRestOperations.cs @@ -33,7 +33,7 @@ public ApplicationGatewayPrivateEndpointConnectionsRestOperations(HttpPipeline p { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-09-01"; + _apiVersion = apiVersion ?? "2022-11-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 d61f6f5854737..09f9aba90e676 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ApplicationGatewayPrivateLinkResourcesRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ApplicationGatewayPrivateLinkResourcesRestOperations.cs @@ -33,7 +33,7 @@ public ApplicationGatewayPrivateLinkResourcesRestOperations(HttpPipeline pipelin { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-09-01"; + _apiVersion = apiVersion ?? "2022-11-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 dee17e479bb15..4be52f137be2a 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ApplicationGatewayWafDynamicManifestsDefaultRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ApplicationGatewayWafDynamicManifestsDefaultRestOperations.cs @@ -32,7 +32,7 @@ public ApplicationGatewayWafDynamicManifestsDefaultRestOperations(HttpPipeline p { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-09-01"; + _apiVersion = apiVersion ?? "2022-11-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 386d17c4c22a3..89d8b96a82e5e 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ApplicationGatewayWafDynamicManifestsRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ApplicationGatewayWafDynamicManifestsRestOperations.cs @@ -33,7 +33,7 @@ public ApplicationGatewayWafDynamicManifestsRestOperations(HttpPipeline pipeline { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-09-01"; + _apiVersion = apiVersion ?? "2022-11-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 596d745bc5b8c..65d9bb07e1baa 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ApplicationGatewaysRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ApplicationGatewaysRestOperations.cs @@ -34,7 +34,7 @@ public ApplicationGatewaysRestOperations(HttpPipeline pipeline, string applicati { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-09-01"; + _apiVersion = apiVersion ?? "2022-11-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 63d7f599a2788..e16dcb94e0cf6 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ApplicationSecurityGroupsRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ApplicationSecurityGroupsRestOperations.cs @@ -33,7 +33,7 @@ public ApplicationSecurityGroupsRestOperations(HttpPipeline pipeline, string app { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-09-01"; + _apiVersion = apiVersion ?? "2022-11-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 fc045528cbcd8..7935ae55394ca 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/AvailableDelegationsRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/AvailableDelegationsRestOperations.cs @@ -33,7 +33,7 @@ public AvailableDelegationsRestOperations(HttpPipeline pipeline, string applicat { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-09-01"; + _apiVersion = apiVersion ?? "2022-11-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 c121c44d97e3d..479ed7c383c53 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/AvailableEndpointServicesRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/AvailableEndpointServicesRestOperations.cs @@ -33,7 +33,7 @@ public AvailableEndpointServicesRestOperations(HttpPipeline pipeline, string app { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-09-01"; + _apiVersion = apiVersion ?? "2022-11-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 fc8cfd57b3f7a..a9307af63e2db 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/AvailablePrivateEndpointTypesRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/AvailablePrivateEndpointTypesRestOperations.cs @@ -33,7 +33,7 @@ public AvailablePrivateEndpointTypesRestOperations(HttpPipeline pipeline, string { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-09-01"; + _apiVersion = apiVersion ?? "2022-11-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 a55e9e3a565c0..12ace79c9e29f 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/AvailableResourceGroupDelegationsRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/AvailableResourceGroupDelegationsRestOperations.cs @@ -33,7 +33,7 @@ public AvailableResourceGroupDelegationsRestOperations(HttpPipeline pipeline, st { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-09-01"; + _apiVersion = apiVersion ?? "2022-11-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 f47ea979d2e62..1a1ce3cee5476 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/AvailableServiceAliasesRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/AvailableServiceAliasesRestOperations.cs @@ -33,7 +33,7 @@ public AvailableServiceAliasesRestOperations(HttpPipeline pipeline, string appli { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-09-01"; + _apiVersion = apiVersion ?? "2022-11-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 40af3ee694292..7999a22ef95b5 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/AzureFirewallFqdnTagsRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/AzureFirewallFqdnTagsRestOperations.cs @@ -33,7 +33,7 @@ public AzureFirewallFqdnTagsRestOperations(HttpPipeline pipeline, string applica { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-09-01"; + _apiVersion = apiVersion ?? "2022-11-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 0e0c1918740e7..782307b09a67a 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/AzureFirewallsRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/AzureFirewallsRestOperations.cs @@ -33,7 +33,7 @@ public AzureFirewallsRestOperations(HttpPipeline pipeline, string applicationId, { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-09-01"; + _apiVersion = apiVersion ?? "2022-11-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } @@ -558,6 +558,83 @@ public Response ListLearnedPrefixes(string subscriptionId, string resourceGroupN } } + internal HttpMessage CreatePacketCaptureRequest(string subscriptionId, string resourceGroupName, string azureFirewallName, FirewallPacketCaptureContent content) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Post; + 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/azureFirewalls/", false); + uri.AppendPath(azureFirewallName, true); + uri.AppendPath("/packetCapture", false); + uri.AppendQuery("api-version", _apiVersion, true); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + request.Headers.Add("Content-Type", "application/json"); + var content0 = new Utf8JsonRequestContent(); + content0.JsonWriter.WriteObjectValue(content); + request.Content = content0; + _userAgent.Apply(message); + return message; + } + + /// Runs a packet capture on AzureFirewall. + /// 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 of the Azure Firewall. + /// Parameters supplied to run packet capture on azure firewall. + /// The cancellation token to use. + /// , , or is null. + /// , or is an empty string, and was expected to be non-empty. + public async Task PacketCaptureAsync(string subscriptionId, string resourceGroupName, string azureFirewallName, FirewallPacketCaptureContent content, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(azureFirewallName, nameof(azureFirewallName)); + Argument.AssertNotNull(content, nameof(content)); + + using var message = CreatePacketCaptureRequest(subscriptionId, resourceGroupName, azureFirewallName, content); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 202: + return message.Response; + default: + throw new RequestFailedException(message.Response); + } + } + + /// Runs a packet capture on AzureFirewall. + /// 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 of the Azure Firewall. + /// Parameters supplied to run packet capture on azure firewall. + /// The cancellation token to use. + /// , , or is null. + /// , or is an empty string, and was expected to be non-empty. + public Response PacketCapture(string subscriptionId, string resourceGroupName, string azureFirewallName, FirewallPacketCaptureContent content, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(azureFirewallName, nameof(azureFirewallName)); + Argument.AssertNotNull(content, nameof(content)); + + using var message = CreatePacketCaptureRequest(subscriptionId, resourceGroupName, azureFirewallName, content); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 202: + return message.Response; + default: + throw new RequestFailedException(message.Response); + } + } + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName) { var message = _pipeline.CreateMessage(); 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 2bb012e3a7e45..8734b3acdb433 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/BastionHostsRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/BastionHostsRestOperations.cs @@ -33,7 +33,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 ?? "2022-09-01"; + _apiVersion = apiVersion ?? "2022-11-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 4a694fc43f539..346774432aa67 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/BgpServiceCommunitiesRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/BgpServiceCommunitiesRestOperations.cs @@ -33,7 +33,7 @@ public BgpServiceCommunitiesRestOperations(HttpPipeline pipeline, string applica { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-09-01"; + _apiVersion = apiVersion ?? "2022-11-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 eb7e891ed4344..31a4493bf37d3 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ConfigurationPolicyGroupsRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ConfigurationPolicyGroupsRestOperations.cs @@ -33,7 +33,7 @@ public ConfigurationPolicyGroupsRestOperations(HttpPipeline pipeline, string app { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-09-01"; + _apiVersion = apiVersion ?? "2022-11-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 90ac69449eeda..0d3b2fab71fcb 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ConnectionMonitorsRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ConnectionMonitorsRestOperations.cs @@ -33,7 +33,7 @@ public ConnectionMonitorsRestOperations(HttpPipeline pipeline, string applicatio { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-09-01"; + _apiVersion = apiVersion ?? "2022-11-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 489ab3070182e..0be69daaa2da5 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ConnectivityConfigurationsRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ConnectivityConfigurationsRestOperations.cs @@ -33,7 +33,7 @@ public ConnectivityConfigurationsRestOperations(HttpPipeline pipeline, string ap { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-09-01"; + _apiVersion = apiVersion ?? "2022-11-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 e395ab4fb5bfe..314848fc82802 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/CustomIPPrefixesRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/CustomIPPrefixesRestOperations.cs @@ -33,7 +33,7 @@ public CustomIPPrefixesRestOperations(HttpPipeline pipeline, string applicationI { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-09-01"; + _apiVersion = apiVersion ?? "2022-11-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 6f56d0bc96d23..94c842ddeda8c 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/DdosCustomPoliciesRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/DdosCustomPoliciesRestOperations.cs @@ -33,7 +33,7 @@ public DdosCustomPoliciesRestOperations(HttpPipeline pipeline, string applicatio { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-09-01"; + _apiVersion = apiVersion ?? "2022-11-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 43bdf2b424886..ccb3d551d7aad 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/DdosProtectionPlansRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/DdosProtectionPlansRestOperations.cs @@ -33,7 +33,7 @@ public DdosProtectionPlansRestOperations(HttpPipeline pipeline, string applicati { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-09-01"; + _apiVersion = apiVersion ?? "2022-11-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 453c7eb87156c..64260e7803829 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/DefaultSecurityRulesRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/DefaultSecurityRulesRestOperations.cs @@ -33,7 +33,7 @@ public DefaultSecurityRulesRestOperations(HttpPipeline pipeline, string applicat { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-09-01"; + _apiVersion = apiVersion ?? "2022-11-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 f3e33f77c9982..3a00959244c1f 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/DscpConfigurationRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/DscpConfigurationRestOperations.cs @@ -33,7 +33,7 @@ public DscpConfigurationRestOperations(HttpPipeline pipeline, string application { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-09-01"; + _apiVersion = apiVersion ?? "2022-11-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 e9df8edfbf46c..d4fea7a4318ce 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ExpressRouteCircuitAuthorizationsRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ExpressRouteCircuitAuthorizationsRestOperations.cs @@ -33,7 +33,7 @@ public ExpressRouteCircuitAuthorizationsRestOperations(HttpPipeline pipeline, st { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-09-01"; + _apiVersion = apiVersion ?? "2022-11-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 638be6e355f4e..fd53ce2e2ab4c 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ExpressRouteCircuitConnectionsRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ExpressRouteCircuitConnectionsRestOperations.cs @@ -33,7 +33,7 @@ public ExpressRouteCircuitConnectionsRestOperations(HttpPipeline pipeline, strin { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-09-01"; + _apiVersion = apiVersion ?? "2022-11-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 4efdcd26d07a4..6c827cae432d0 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ExpressRouteCircuitPeeringsRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ExpressRouteCircuitPeeringsRestOperations.cs @@ -33,7 +33,7 @@ public ExpressRouteCircuitPeeringsRestOperations(HttpPipeline pipeline, string a { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-09-01"; + _apiVersion = apiVersion ?? "2022-11-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 becce3de6a32e..658abb794ea08 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ExpressRouteCircuitsRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ExpressRouteCircuitsRestOperations.cs @@ -33,7 +33,7 @@ public ExpressRouteCircuitsRestOperations(HttpPipeline pipeline, string applicat { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-09-01"; + _apiVersion = apiVersion ?? "2022-11-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 f0ff8cbb5b431..0492f6e4006ef 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ExpressRouteConnectionsRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ExpressRouteConnectionsRestOperations.cs @@ -33,7 +33,7 @@ public ExpressRouteConnectionsRestOperations(HttpPipeline pipeline, string appli { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-09-01"; + _apiVersion = apiVersion ?? "2022-11-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 22d6c8e5cec40..c63a59676c0c8 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ExpressRouteCrossConnectionPeeringsRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ExpressRouteCrossConnectionPeeringsRestOperations.cs @@ -33,7 +33,7 @@ public ExpressRouteCrossConnectionPeeringsRestOperations(HttpPipeline pipeline, { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-09-01"; + _apiVersion = apiVersion ?? "2022-11-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 b52ca53fd66d4..f62135f1ad645 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ExpressRouteCrossConnectionsRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ExpressRouteCrossConnectionsRestOperations.cs @@ -33,7 +33,7 @@ public ExpressRouteCrossConnectionsRestOperations(HttpPipeline pipeline, string { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-09-01"; + _apiVersion = apiVersion ?? "2022-11-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 83eca6fc4c723..9038e6830d51c 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ExpressRouteGatewaysRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ExpressRouteGatewaysRestOperations.cs @@ -33,7 +33,7 @@ public ExpressRouteGatewaysRestOperations(HttpPipeline pipeline, string applicat { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-09-01"; + _apiVersion = apiVersion ?? "2022-11-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 1bfd7bd332e66..c99adc4a1f053 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ExpressRouteLinksRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ExpressRouteLinksRestOperations.cs @@ -33,7 +33,7 @@ public ExpressRouteLinksRestOperations(HttpPipeline pipeline, string application { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-09-01"; + _apiVersion = apiVersion ?? "2022-11-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 9bc4aae1b1055..659a009bfdbbf 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ExpressRoutePortAuthorizationsRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ExpressRoutePortAuthorizationsRestOperations.cs @@ -33,7 +33,7 @@ public ExpressRoutePortAuthorizationsRestOperations(HttpPipeline pipeline, strin { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-09-01"; + _apiVersion = apiVersion ?? "2022-11-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 14d94793c5691..fbb4d50eda4e0 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ExpressRoutePortsLocationsRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ExpressRoutePortsLocationsRestOperations.cs @@ -33,7 +33,7 @@ public ExpressRoutePortsLocationsRestOperations(HttpPipeline pipeline, string ap { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-09-01"; + _apiVersion = apiVersion ?? "2022-11-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 76d03c0bf8e3a..be0367b9ee7db 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ExpressRoutePortsRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ExpressRoutePortsRestOperations.cs @@ -33,7 +33,7 @@ public ExpressRoutePortsRestOperations(HttpPipeline pipeline, string application { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-09-01"; + _apiVersion = apiVersion ?? "2022-11-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 a76fe32d7fcf8..39bc1929d6e56 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ExpressRouteProviderPortsLocationRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ExpressRouteProviderPortsLocationRestOperations.cs @@ -33,7 +33,7 @@ public ExpressRouteProviderPortsLocationRestOperations(HttpPipeline pipeline, st { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-09-01"; + _apiVersion = apiVersion ?? "2022-11-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 3c3754b1bbb49..33e9c31510b4d 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ExpressRouteServiceProvidersRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ExpressRouteServiceProvidersRestOperations.cs @@ -33,7 +33,7 @@ public ExpressRouteServiceProvidersRestOperations(HttpPipeline pipeline, string { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-09-01"; + _apiVersion = apiVersion ?? "2022-11-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 c7951bf84bda8..1b9f347a5f869 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/FirewallPoliciesRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/FirewallPoliciesRestOperations.cs @@ -33,7 +33,7 @@ public FirewallPoliciesRestOperations(HttpPipeline pipeline, string applicationI { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-09-01"; + _apiVersion = apiVersion ?? "2022-11-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 b38aa4b15cdb0..b294d0793c923 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/FirewallPolicyIdpsSignaturesFilterValuesRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/FirewallPolicyIdpsSignaturesFilterValuesRestOperations.cs @@ -33,7 +33,7 @@ public FirewallPolicyIdpsSignaturesFilterValuesRestOperations(HttpPipeline pipel { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-09-01"; + _apiVersion = apiVersion ?? "2022-11-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 e42eaaced10f9..7e57ecc9a4cf9 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/FirewallPolicyIdpsSignaturesOverridesRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/FirewallPolicyIdpsSignaturesOverridesRestOperations.cs @@ -33,7 +33,7 @@ public FirewallPolicyIdpsSignaturesOverridesRestOperations(HttpPipeline pipeline { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-09-01"; + _apiVersion = apiVersion ?? "2022-11-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 5364787d40e9a..2fb765f061f54 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/FirewallPolicyIdpsSignaturesRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/FirewallPolicyIdpsSignaturesRestOperations.cs @@ -33,7 +33,7 @@ public FirewallPolicyIdpsSignaturesRestOperations(HttpPipeline pipeline, string { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-09-01"; + _apiVersion = apiVersion ?? "2022-11-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 e86e01a6ed993..0950c4ad23976 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/FirewallPolicyRuleCollectionGroupsRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/FirewallPolicyRuleCollectionGroupsRestOperations.cs @@ -33,7 +33,7 @@ public FirewallPolicyRuleCollectionGroupsRestOperations(HttpPipeline pipeline, s { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-09-01"; + _apiVersion = apiVersion ?? "2022-11-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 efbe84a7a02a9..ed9fcb026c1a4 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/FlowLogsRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/FlowLogsRestOperations.cs @@ -33,7 +33,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 ?? "2022-09-01"; + _apiVersion = apiVersion ?? "2022-11-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 8992733d543f6..e69fbd92d9254 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/HubRouteTablesRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/HubRouteTablesRestOperations.cs @@ -33,7 +33,7 @@ public HubRouteTablesRestOperations(HttpPipeline pipeline, string applicationId, { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-09-01"; + _apiVersion = apiVersion ?? "2022-11-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 77845ca6ff94e..15aa44fdd942e 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/HubVirtualNetworkConnectionsRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/HubVirtualNetworkConnectionsRestOperations.cs @@ -33,7 +33,7 @@ public HubVirtualNetworkConnectionsRestOperations(HttpPipeline pipeline, string { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-09-01"; + _apiVersion = apiVersion ?? "2022-11-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 16533c4701053..5e87e5d7b0af0 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/InboundNatRulesRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/InboundNatRulesRestOperations.cs @@ -33,7 +33,7 @@ public InboundNatRulesRestOperations(HttpPipeline pipeline, string applicationId { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-09-01"; + _apiVersion = apiVersion ?? "2022-11-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 ab9e023d62656..f3e61f28623b9 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/InboundSecurityRuleRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/InboundSecurityRuleRestOperations.cs @@ -32,7 +32,7 @@ public InboundSecurityRuleRestOperations(HttpPipeline pipeline, string applicati { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-09-01"; + _apiVersion = apiVersion ?? "2022-11-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 6018e6eb048f8..876530d301f99 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/IpAllocationsRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/IpAllocationsRestOperations.cs @@ -33,7 +33,7 @@ public IpAllocationsRestOperations(HttpPipeline pipeline, string applicationId, { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-09-01"; + _apiVersion = apiVersion ?? "2022-11-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 6b4a4bb62fa7b..2a0e6a99e2c3b 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/IpGroupsRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/IpGroupsRestOperations.cs @@ -33,7 +33,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 ?? "2022-09-01"; + _apiVersion = apiVersion ?? "2022-11-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 38602bfb95344..eb0f4896895c5 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/LoadBalancerBackendAddressPoolsRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/LoadBalancerBackendAddressPoolsRestOperations.cs @@ -33,7 +33,7 @@ public LoadBalancerBackendAddressPoolsRestOperations(HttpPipeline pipeline, stri { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-09-01"; + _apiVersion = apiVersion ?? "2022-11-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 4301d402eee54..7b165bfebb72c 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/LoadBalancerFrontendIPConfigurationsRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/LoadBalancerFrontendIPConfigurationsRestOperations.cs @@ -33,7 +33,7 @@ public LoadBalancerFrontendIPConfigurationsRestOperations(HttpPipeline pipeline, { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-09-01"; + _apiVersion = apiVersion ?? "2022-11-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 b97e9799293ea..5997592d6905a 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/LoadBalancerLoadBalancingRulesRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/LoadBalancerLoadBalancingRulesRestOperations.cs @@ -33,7 +33,7 @@ public LoadBalancerLoadBalancingRulesRestOperations(HttpPipeline pipeline, strin { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-09-01"; + _apiVersion = apiVersion ?? "2022-11-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 d4e68133fbf56..91b81754b53bd 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/LoadBalancerNetworkInterfacesRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/LoadBalancerNetworkInterfacesRestOperations.cs @@ -33,7 +33,7 @@ public LoadBalancerNetworkInterfacesRestOperations(HttpPipeline pipeline, string { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-09-01"; + _apiVersion = apiVersion ?? "2022-11-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 339da917c2a09..6759f92ee2540 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/LoadBalancerOutboundRulesRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/LoadBalancerOutboundRulesRestOperations.cs @@ -33,7 +33,7 @@ public LoadBalancerOutboundRulesRestOperations(HttpPipeline pipeline, string app { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-09-01"; + _apiVersion = apiVersion ?? "2022-11-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 9a9a814dff909..f0d8036883eb2 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/LoadBalancerProbesRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/LoadBalancerProbesRestOperations.cs @@ -33,7 +33,7 @@ public LoadBalancerProbesRestOperations(HttpPipeline pipeline, string applicatio { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-09-01"; + _apiVersion = apiVersion ?? "2022-11-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 f742b6bbb83c4..2fe2a20e43357 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/LoadBalancersRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/LoadBalancersRestOperations.cs @@ -33,7 +33,7 @@ public LoadBalancersRestOperations(HttpPipeline pipeline, string applicationId, { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-09-01"; + _apiVersion = apiVersion ?? "2022-11-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 8eb0dacccabaa..f6e63eaee73eb 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/LocalNetworkGatewaysRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/LocalNetworkGatewaysRestOperations.cs @@ -33,7 +33,7 @@ public LocalNetworkGatewaysRestOperations(HttpPipeline pipeline, string applicat { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-09-01"; + _apiVersion = apiVersion ?? "2022-11-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 c79ccda830f68..ee4b0a0418979 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ManagementGroupNetworkManagerConnectionsRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ManagementGroupNetworkManagerConnectionsRestOperations.cs @@ -33,7 +33,7 @@ public ManagementGroupNetworkManagerConnectionsRestOperations(HttpPipeline pipel { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-09-01"; + _apiVersion = apiVersion ?? "2022-11-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 22f0bcbe120d0..8029ab3492abe 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/NatGatewaysRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/NatGatewaysRestOperations.cs @@ -33,7 +33,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 ?? "2022-09-01"; + _apiVersion = apiVersion ?? "2022-11-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 1243678af7d4c..e3217fe4eec4a 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/NatRulesRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/NatRulesRestOperations.cs @@ -33,7 +33,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 ?? "2022-09-01"; + _apiVersion = apiVersion ?? "2022-11-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 2649f59696fad..d0dc95f3be8bc 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/NetworkGroupsRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/NetworkGroupsRestOperations.cs @@ -33,7 +33,7 @@ public NetworkGroupsRestOperations(HttpPipeline pipeline, string applicationId, { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-09-01"; + _apiVersion = apiVersion ?? "2022-11-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 9352fa0478282..2cd943c279cac 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/NetworkInterfaceIPConfigurationsRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/NetworkInterfaceIPConfigurationsRestOperations.cs @@ -33,7 +33,7 @@ public NetworkInterfaceIPConfigurationsRestOperations(HttpPipeline pipeline, str { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-09-01"; + _apiVersion = apiVersion ?? "2022-11-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 333b799c5351e..ebb77a6fd0993 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/NetworkInterfaceLoadBalancersRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/NetworkInterfaceLoadBalancersRestOperations.cs @@ -33,7 +33,7 @@ public NetworkInterfaceLoadBalancersRestOperations(HttpPipeline pipeline, string { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-09-01"; + _apiVersion = apiVersion ?? "2022-11-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 4b989a578b6c3..87c14b640f952 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/NetworkInterfaceTapConfigurationsRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/NetworkInterfaceTapConfigurationsRestOperations.cs @@ -33,7 +33,7 @@ public NetworkInterfaceTapConfigurationsRestOperations(HttpPipeline pipeline, st { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-09-01"; + _apiVersion = apiVersion ?? "2022-11-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 b7e8e77ecd1fa..84c30e8d4f665 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/NetworkInterfacesRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/NetworkInterfacesRestOperations.cs @@ -33,7 +33,7 @@ public NetworkInterfacesRestOperations(HttpPipeline pipeline, string application { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-09-01"; + _apiVersion = apiVersion ?? "2022-11-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 1b5cbfd60be49..3bf65979d0eed 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/NetworkManagementRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/NetworkManagementRestOperations.cs @@ -33,7 +33,7 @@ public NetworkManagementRestOperations(HttpPipeline pipeline, string application { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-09-01"; + _apiVersion = apiVersion ?? "2022-11-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 e9b139d2021ec..86aca5eb38f26 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/NetworkManagerCommitsRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/NetworkManagerCommitsRestOperations.cs @@ -32,7 +32,7 @@ public NetworkManagerCommitsRestOperations(HttpPipeline pipeline, string applica { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-09-01"; + _apiVersion = apiVersion ?? "2022-11-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 c0359a0d0bd97..177e29d88190c 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/NetworkManagerDeploymentStatusRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/NetworkManagerDeploymentStatusRestOperations.cs @@ -33,7 +33,7 @@ public NetworkManagerDeploymentStatusRestOperations(HttpPipeline pipeline, strin { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-09-01"; + _apiVersion = apiVersion ?? "2022-11-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } 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 a8df795fd8ba0..d03c10a8c466f 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/NetworkManagersRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/NetworkManagersRestOperations.cs @@ -33,7 +33,7 @@ public NetworkManagersRestOperations(HttpPipeline pipeline, string applicationId { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-09-01"; + _apiVersion = apiVersion ?? "2022-11-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 47d98ed9a077c..8cff3e0809b5d 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/NetworkProfilesRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/NetworkProfilesRestOperations.cs @@ -33,7 +33,7 @@ public NetworkProfilesRestOperations(HttpPipeline pipeline, string applicationId { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-09-01"; + _apiVersion = apiVersion ?? "2022-11-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 ad8080d1b664d..1fb956e4d3f4b 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/NetworkSecurityGroupsRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/NetworkSecurityGroupsRestOperations.cs @@ -33,7 +33,7 @@ public NetworkSecurityGroupsRestOperations(HttpPipeline pipeline, string applica { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-09-01"; + _apiVersion = apiVersion ?? "2022-11-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 new file mode 100644 index 0000000000000..532117b05d912 --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/NetworkVirtualApplianceConnectionsRestOperations.cs @@ -0,0 +1,445 @@ +// 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; +using Azure.Core; +using Azure.Core.Pipeline; +using Azure.ResourceManager.Network.Models; + +namespace Azure.ResourceManager.Network +{ + internal partial class NetworkVirtualApplianceConnectionsRestOperations + { + private readonly TelemetryDetails _userAgent; + private readonly HttpPipeline _pipeline; + private readonly Uri _endpoint; + private readonly string _apiVersion; + + /// Initializes a new instance of NetworkVirtualApplianceConnectionsRestOperations. + /// 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 NetworkVirtualApplianceConnectionsRestOperations(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 ?? "2022-11-01"; + _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); + } + + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string networkVirtualApplianceName, string connectionName, NetworkVirtualApplianceConnectionData 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/networkVirtualAppliances/", false); + uri.AppendPath(networkVirtualApplianceName, true); + uri.AppendPath("/networkVirtualApplianceConnections/", false); + uri.AppendPath(connectionName, 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); + request.Content = content; + _userAgent.Apply(message); + return message; + } + + /// Creates a connection to Network Virtual Appliance, if it doesn't exist else updates the existing NVA connection'. + /// 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 of the Network Virtual Appliance. + /// The name of the NVA connection. + /// Parameters supplied in an NetworkVirtualApplianceConnection PUT operation. + /// 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 networkVirtualApplianceName, string connectionName, NetworkVirtualApplianceConnectionData data, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(networkVirtualApplianceName, nameof(networkVirtualApplianceName)); + Argument.AssertNotNullOrEmpty(connectionName, nameof(connectionName)); + Argument.AssertNotNull(data, nameof(data)); + + using var message = CreateCreateOrUpdateRequest(subscriptionId, resourceGroupName, networkVirtualApplianceName, connectionName, data); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + case 201: + return message.Response; + default: + throw new RequestFailedException(message.Response); + } + } + + /// Creates a connection to Network Virtual Appliance, if it doesn't exist else updates the existing NVA connection'. + /// 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 of the Network Virtual Appliance. + /// The name of the NVA connection. + /// Parameters supplied in an NetworkVirtualApplianceConnection PUT operation. + /// 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 networkVirtualApplianceName, string connectionName, NetworkVirtualApplianceConnectionData data, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(networkVirtualApplianceName, nameof(networkVirtualApplianceName)); + Argument.AssertNotNullOrEmpty(connectionName, nameof(connectionName)); + Argument.AssertNotNull(data, nameof(data)); + + using var message = CreateCreateOrUpdateRequest(subscriptionId, resourceGroupName, networkVirtualApplianceName, connectionName, data); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + case 201: + return message.Response; + default: + throw new RequestFailedException(message.Response); + } + } + + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string networkVirtualApplianceName, string connectionName) + { + 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/networkVirtualAppliances/", false); + uri.AppendPath(networkVirtualApplianceName, true); + uri.AppendPath("/networkVirtualApplianceConnections/", false); + uri.AppendPath(connectionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + _userAgent.Apply(message); + return message; + } + + /// Retrieves the details of specified NVA connection. + /// 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 of the Network Virtual Appliance. + /// The name of the NVA connection. + /// 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 networkVirtualApplianceName, string connectionName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(networkVirtualApplianceName, nameof(networkVirtualApplianceName)); + Argument.AssertNotNullOrEmpty(connectionName, nameof(connectionName)); + + using var message = CreateGetRequest(subscriptionId, resourceGroupName, networkVirtualApplianceName, connectionName); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + NetworkVirtualApplianceConnectionData value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + value = NetworkVirtualApplianceConnectionData.DeserializeNetworkVirtualApplianceConnectionData(document.RootElement); + return Response.FromValue(value, message.Response); + } + case 404: + return Response.FromValue((NetworkVirtualApplianceConnectionData)null, message.Response); + default: + throw new RequestFailedException(message.Response); + } + } + + /// Retrieves the details of specified NVA connection. + /// 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 of the Network Virtual Appliance. + /// The name of the NVA connection. + /// 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 networkVirtualApplianceName, string connectionName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(networkVirtualApplianceName, nameof(networkVirtualApplianceName)); + Argument.AssertNotNullOrEmpty(connectionName, nameof(connectionName)); + + using var message = CreateGetRequest(subscriptionId, resourceGroupName, networkVirtualApplianceName, connectionName); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + NetworkVirtualApplianceConnectionData value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + value = NetworkVirtualApplianceConnectionData.DeserializeNetworkVirtualApplianceConnectionData(document.RootElement); + return Response.FromValue(value, message.Response); + } + case 404: + return Response.FromValue((NetworkVirtualApplianceConnectionData)null, message.Response); + default: + throw new RequestFailedException(message.Response); + } + } + + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string networkVirtualApplianceName, string connectionName) + { + 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/networkVirtualAppliances/", false); + uri.AppendPath(networkVirtualApplianceName, true); + uri.AppendPath("/networkVirtualApplianceConnections/", false); + uri.AppendPath(connectionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + _userAgent.Apply(message); + return message; + } + + /// Deletes a NVA connection. + /// 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 of the Network Virtual Appliance. + /// The name of the NVA connection. + /// 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 networkVirtualApplianceName, string connectionName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(networkVirtualApplianceName, nameof(networkVirtualApplianceName)); + Argument.AssertNotNullOrEmpty(connectionName, nameof(connectionName)); + + using var message = CreateDeleteRequest(subscriptionId, resourceGroupName, networkVirtualApplianceName, connectionName); + 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 NVA connection. + /// 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 of the Network Virtual Appliance. + /// The name of the NVA connection. + /// 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 networkVirtualApplianceName, string connectionName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(networkVirtualApplianceName, nameof(networkVirtualApplianceName)); + Argument.AssertNotNullOrEmpty(connectionName, nameof(connectionName)); + + using var message = CreateDeleteRequest(subscriptionId, resourceGroupName, networkVirtualApplianceName, connectionName); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + case 202: + case 204: + return message.Response; + default: + throw new RequestFailedException(message.Response); + } + } + + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string networkVirtualApplianceName) + { + 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/networkVirtualAppliances/", false); + uri.AppendPath(networkVirtualApplianceName, true); + uri.AppendPath("/networkVirtualApplianceConnections", false); + uri.AppendQuery("api-version", _apiVersion, true); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + _userAgent.Apply(message); + return message; + } + + /// Lists NetworkVirtualApplianceConnections under the NVA. + /// 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 of the Network Virtual Appliance. + /// 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 networkVirtualApplianceName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(networkVirtualApplianceName, nameof(networkVirtualApplianceName)); + + using var message = CreateListRequest(subscriptionId, resourceGroupName, networkVirtualApplianceName); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + NetworkVirtualApplianceConnectionList value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + value = NetworkVirtualApplianceConnectionList.DeserializeNetworkVirtualApplianceConnectionList(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + /// Lists NetworkVirtualApplianceConnections under the NVA. + /// 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 of the Network Virtual Appliance. + /// 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 networkVirtualApplianceName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(networkVirtualApplianceName, nameof(networkVirtualApplianceName)); + + using var message = CreateListRequest(subscriptionId, resourceGroupName, networkVirtualApplianceName); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + NetworkVirtualApplianceConnectionList value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + value = NetworkVirtualApplianceConnectionList.DeserializeNetworkVirtualApplianceConnectionList(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string networkVirtualApplianceName) + { + 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 NetworkVirtualApplianceConnections under the NVA. + /// 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 of the Network Virtual Appliance. + /// 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 networkVirtualApplianceName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(nextLink, nameof(nextLink)); + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(networkVirtualApplianceName, nameof(networkVirtualApplianceName)); + + using var message = CreateListNextPageRequest(nextLink, subscriptionId, resourceGroupName, networkVirtualApplianceName); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + NetworkVirtualApplianceConnectionList value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + value = NetworkVirtualApplianceConnectionList.DeserializeNetworkVirtualApplianceConnectionList(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + /// Lists NetworkVirtualApplianceConnections under the NVA. + /// 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 of the Network Virtual Appliance. + /// 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 networkVirtualApplianceName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(nextLink, nameof(nextLink)); + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(networkVirtualApplianceName, nameof(networkVirtualApplianceName)); + + using var message = CreateListNextPageRequest(nextLink, subscriptionId, resourceGroupName, networkVirtualApplianceName); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + NetworkVirtualApplianceConnectionList value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + value = NetworkVirtualApplianceConnectionList.DeserializeNetworkVirtualApplianceConnectionList(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/NetworkVirtualAppliancesRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/NetworkVirtualAppliancesRestOperations.cs index 841035e861c15..a6ae3dd689982 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/NetworkVirtualAppliancesRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/NetworkVirtualAppliancesRestOperations.cs @@ -33,7 +33,7 @@ public NetworkVirtualAppliancesRestOperations(HttpPipeline pipeline, string appl { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-09-01"; + _apiVersion = apiVersion ?? "2022-11-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } 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 2a00a95b59d5c..8a632a8bee2a4 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/NetworkWatchersRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/NetworkWatchersRestOperations.cs @@ -33,7 +33,7 @@ public NetworkWatchersRestOperations(HttpPipeline pipeline, string applicationId { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-09-01"; + _apiVersion = apiVersion ?? "2022-11-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 44044f835759f..ec286360b9d19 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/P2SVpnGatewaysRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/P2SVpnGatewaysRestOperations.cs @@ -33,7 +33,7 @@ public P2SVpnGatewaysRestOperations(HttpPipeline pipeline, string applicationId, { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-09-01"; + _apiVersion = apiVersion ?? "2022-11-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 7fb1608e0d0a2..1b5a1d6a11017 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/PacketCapturesRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/PacketCapturesRestOperations.cs @@ -33,7 +33,7 @@ public PacketCapturesRestOperations(HttpPipeline pipeline, string applicationId, { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-09-01"; + _apiVersion = apiVersion ?? "2022-11-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 a55e36635df3b..a2b1f1ff6df27 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/PeerExpressRouteCircuitConnectionsRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/PeerExpressRouteCircuitConnectionsRestOperations.cs @@ -33,7 +33,7 @@ public PeerExpressRouteCircuitConnectionsRestOperations(HttpPipeline pipeline, s { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-09-01"; + _apiVersion = apiVersion ?? "2022-11-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 e59e8e237c2f4..45935979b34fb 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/PrivateDnsZoneGroupsRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/PrivateDnsZoneGroupsRestOperations.cs @@ -33,7 +33,7 @@ public PrivateDnsZoneGroupsRestOperations(HttpPipeline pipeline, string applicat { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-09-01"; + _apiVersion = apiVersion ?? "2022-11-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 f768649138e3c..578e819f6cbfc 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/PrivateEndpointsRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/PrivateEndpointsRestOperations.cs @@ -33,7 +33,7 @@ public PrivateEndpointsRestOperations(HttpPipeline pipeline, string applicationI { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-09-01"; + _apiVersion = apiVersion ?? "2022-11-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 d4ed26e734ddb..096adec2d4ef6 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/PrivateLinkServicesRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/PrivateLinkServicesRestOperations.cs @@ -33,7 +33,7 @@ public PrivateLinkServicesRestOperations(HttpPipeline pipeline, string applicati { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-09-01"; + _apiVersion = apiVersion ?? "2022-11-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 5062e9fb49a07..176c2df023287 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/PublicIPAddressesRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/PublicIPAddressesRestOperations.cs @@ -33,7 +33,7 @@ public PublicIPAddressesRestOperations(HttpPipeline pipeline, string application { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-09-01"; + _apiVersion = apiVersion ?? "2022-11-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 ffc859e78d919..faeb957332f5a 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/PublicIPPrefixesRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/PublicIPPrefixesRestOperations.cs @@ -33,7 +33,7 @@ public PublicIPPrefixesRestOperations(HttpPipeline pipeline, string applicationI { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-09-01"; + _apiVersion = apiVersion ?? "2022-11-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 f114d757f2760..c70cbe5f992be 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ResourceNavigationLinksRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ResourceNavigationLinksRestOperations.cs @@ -33,7 +33,7 @@ public ResourceNavigationLinksRestOperations(HttpPipeline pipeline, string appli { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-09-01"; + _apiVersion = apiVersion ?? "2022-11-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 869a010f3bf16..f7a8fff85072c 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/RouteFilterRulesRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/RouteFilterRulesRestOperations.cs @@ -33,7 +33,7 @@ public RouteFilterRulesRestOperations(HttpPipeline pipeline, string applicationI { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-09-01"; + _apiVersion = apiVersion ?? "2022-11-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 bdd17f7eebe70..428f8b5843a17 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/RouteFiltersRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/RouteFiltersRestOperations.cs @@ -33,7 +33,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 ?? "2022-09-01"; + _apiVersion = apiVersion ?? "2022-11-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 511d62205f837..6938b14923946 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/RouteMapsRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/RouteMapsRestOperations.cs @@ -33,7 +33,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 ?? "2022-09-01"; + _apiVersion = apiVersion ?? "2022-11-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 73f37945caeb3..6211705d9dc71 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/RouteTablesRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/RouteTablesRestOperations.cs @@ -33,7 +33,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 ?? "2022-09-01"; + _apiVersion = apiVersion ?? "2022-11-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 b99549c5f8ad2..f3dff27061f54 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/RoutesRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/RoutesRestOperations.cs @@ -33,7 +33,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 ?? "2022-09-01"; + _apiVersion = apiVersion ?? "2022-11-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 e6a0c5d8bea81..abe7a3bae7b3f 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/RoutingIntentRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/RoutingIntentRestOperations.cs @@ -33,7 +33,7 @@ public RoutingIntentRestOperations(HttpPipeline pipeline, string applicationId, { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-09-01"; + _apiVersion = apiVersion ?? "2022-11-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } 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 d59d159efc981..c377e633f1247 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ScopeConnectionsRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ScopeConnectionsRestOperations.cs @@ -33,7 +33,7 @@ public ScopeConnectionsRestOperations(HttpPipeline pipeline, string applicationI { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-09-01"; + _apiVersion = apiVersion ?? "2022-11-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 607904ca35248..9f61d8e55bb78 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/SecurityAdminConfigurationsRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/SecurityAdminConfigurationsRestOperations.cs @@ -33,7 +33,7 @@ public SecurityAdminConfigurationsRestOperations(HttpPipeline pipeline, string a { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-09-01"; + _apiVersion = apiVersion ?? "2022-11-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 040d43f66644e..869cd0d0bd83b 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/SecurityPartnerProvidersRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/SecurityPartnerProvidersRestOperations.cs @@ -33,7 +33,7 @@ public SecurityPartnerProvidersRestOperations(HttpPipeline pipeline, string appl { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-09-01"; + _apiVersion = apiVersion ?? "2022-11-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 7efdb7471571b..3f253f3053c6d 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/SecurityRulesRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/SecurityRulesRestOperations.cs @@ -33,7 +33,7 @@ public SecurityRulesRestOperations(HttpPipeline pipeline, string applicationId, { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-09-01"; + _apiVersion = apiVersion ?? "2022-11-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } 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 5390800ea68f5..847a09d458c18 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ServiceAssociationLinksRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ServiceAssociationLinksRestOperations.cs @@ -33,7 +33,7 @@ public ServiceAssociationLinksRestOperations(HttpPipeline pipeline, string appli { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-09-01"; + _apiVersion = apiVersion ?? "2022-11-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 a08decdb750a2..8a534fa10e1a8 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ServiceEndpointPoliciesRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ServiceEndpointPoliciesRestOperations.cs @@ -33,7 +33,7 @@ public ServiceEndpointPoliciesRestOperations(HttpPipeline pipeline, string appli { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-09-01"; + _apiVersion = apiVersion ?? "2022-11-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 2536e9b3d539b..06d789b24623d 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ServiceEndpointPolicyDefinitionsRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ServiceEndpointPolicyDefinitionsRestOperations.cs @@ -33,7 +33,7 @@ public ServiceEndpointPolicyDefinitionsRestOperations(HttpPipeline pipeline, str { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-09-01"; + _apiVersion = apiVersion ?? "2022-11-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 5babda83c4cd1..ec5b3d3000897 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ServiceTagInformationRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ServiceTagInformationRestOperations.cs @@ -33,7 +33,7 @@ public ServiceTagInformationRestOperations(HttpPipeline pipeline, string applica { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-09-01"; + _apiVersion = apiVersion ?? "2022-11-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 e3106f6a9b65a..dbac3d01c1e1a 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ServiceTagsRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ServiceTagsRestOperations.cs @@ -33,7 +33,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 ?? "2022-09-01"; + _apiVersion = apiVersion ?? "2022-11-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 4689a1a442cfd..6c34f8499059b 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/StaticMembersRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/StaticMembersRestOperations.cs @@ -33,7 +33,7 @@ public StaticMembersRestOperations(HttpPipeline pipeline, string applicationId, { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-09-01"; + _apiVersion = apiVersion ?? "2022-11-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 26bf7c9643b23..d1d75ab130448 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/SubnetsRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/SubnetsRestOperations.cs @@ -33,7 +33,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 ?? "2022-09-01"; + _apiVersion = apiVersion ?? "2022-11-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 4fb7e9aec1347..7f5a057567aab 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/SubscriptionNetworkManagerConnectionsRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/SubscriptionNetworkManagerConnectionsRestOperations.cs @@ -33,7 +33,7 @@ public SubscriptionNetworkManagerConnectionsRestOperations(HttpPipeline pipeline { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-09-01"; + _apiVersion = apiVersion ?? "2022-11-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 d8f95b14497bd..8a9e8dd17fe66 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/UsagesRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/UsagesRestOperations.cs @@ -33,7 +33,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 ?? "2022-09-01"; + _apiVersion = apiVersion ?? "2022-11-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 edbd94eab8bdc..8ce1b620e56da 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VipSwapRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VipSwapRestOperations.cs @@ -33,7 +33,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 ?? "2022-09-01"; + _apiVersion = apiVersion ?? "2022-11-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 efe6cb1ec3696..bcbf75d3f3c77 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualApplianceSitesRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualApplianceSitesRestOperations.cs @@ -33,7 +33,7 @@ public VirtualApplianceSitesRestOperations(HttpPipeline pipeline, string applica { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-09-01"; + _apiVersion = apiVersion ?? "2022-11-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 9bebaee0dc86f..6fcf3154cb486 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualApplianceSkusRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualApplianceSkusRestOperations.cs @@ -33,7 +33,7 @@ public VirtualApplianceSkusRestOperations(HttpPipeline pipeline, string applicat { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-09-01"; + _apiVersion = apiVersion ?? "2022-11-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 172239f135cd0..dc587be38fee6 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualHubBgpConnectionRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualHubBgpConnectionRestOperations.cs @@ -32,7 +32,7 @@ public VirtualHubBgpConnectionRestOperations(HttpPipeline pipeline, string appli { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-09-01"; + _apiVersion = apiVersion ?? "2022-11-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 cd7b354f39f3f..198d75a03b8ce 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualHubBgpConnectionsRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualHubBgpConnectionsRestOperations.cs @@ -33,7 +33,7 @@ public VirtualHubBgpConnectionsRestOperations(HttpPipeline pipeline, string appl { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-09-01"; + _apiVersion = apiVersion ?? "2022-11-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 e8a5926911aeb..62ca4b9e3042e 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualHubIpConfigurationRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualHubIpConfigurationRestOperations.cs @@ -33,7 +33,7 @@ public VirtualHubIpConfigurationRestOperations(HttpPipeline pipeline, string app { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-09-01"; + _apiVersion = apiVersion ?? "2022-11-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 d002e2647d326..dc4d8cc8f7932 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualHubRouteTableV2SRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualHubRouteTableV2SRestOperations.cs @@ -33,7 +33,7 @@ public VirtualHubRouteTableV2SRestOperations(HttpPipeline pipeline, string appli { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-09-01"; + _apiVersion = apiVersion ?? "2022-11-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 08bfeedb4b193..7736bccf37af5 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualHubsRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualHubsRestOperations.cs @@ -33,7 +33,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 ?? "2022-09-01"; + _apiVersion = apiVersion ?? "2022-11-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 309797499c9ee..233be00d0afce 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualNetworkGatewayConnectionsRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualNetworkGatewayConnectionsRestOperations.cs @@ -33,7 +33,7 @@ public VirtualNetworkGatewayConnectionsRestOperations(HttpPipeline pipeline, str { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-09-01"; + _apiVersion = apiVersion ?? "2022-11-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 0d2781f8712d0..7b085d41fb30f 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualNetworkGatewayNatRulesRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualNetworkGatewayNatRulesRestOperations.cs @@ -33,7 +33,7 @@ public VirtualNetworkGatewayNatRulesRestOperations(HttpPipeline pipeline, string { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-09-01"; + _apiVersion = apiVersion ?? "2022-11-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 d9ce22aef4125..8acddc4f29c65 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualNetworkGatewaysRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualNetworkGatewaysRestOperations.cs @@ -33,7 +33,7 @@ public VirtualNetworkGatewaysRestOperations(HttpPipeline pipeline, string applic { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-09-01"; + _apiVersion = apiVersion ?? "2022-11-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 17ff9253bbbe4..5f5ac5998cf2c 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualNetworkPeeringsRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualNetworkPeeringsRestOperations.cs @@ -33,7 +33,7 @@ public VirtualNetworkPeeringsRestOperations(HttpPipeline pipeline, string applic { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-09-01"; + _apiVersion = apiVersion ?? "2022-11-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 bb6c23e78d56b..54a353360d224 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualNetworkTapsRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualNetworkTapsRestOperations.cs @@ -33,7 +33,7 @@ public VirtualNetworkTapsRestOperations(HttpPipeline pipeline, string applicatio { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-09-01"; + _apiVersion = apiVersion ?? "2022-11-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 d516bc3424cb0..ec96beb55fbb3 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualNetworksRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualNetworksRestOperations.cs @@ -33,7 +33,7 @@ public VirtualNetworksRestOperations(HttpPipeline pipeline, string applicationId { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-09-01"; + _apiVersion = apiVersion ?? "2022-11-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 67a7fe59bd89e..581aa420ed6dc 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualRouterPeeringsRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualRouterPeeringsRestOperations.cs @@ -33,7 +33,7 @@ public VirtualRouterPeeringsRestOperations(HttpPipeline pipeline, string applica { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-09-01"; + _apiVersion = apiVersion ?? "2022-11-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 95a1368d6df29..d7f0b2f722d55 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualRoutersRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualRoutersRestOperations.cs @@ -33,7 +33,7 @@ public VirtualRoutersRestOperations(HttpPipeline pipeline, string applicationId, { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-09-01"; + _apiVersion = apiVersion ?? "2022-11-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 47cd54c4e57a4..17c26ee180ecd 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualWansRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualWansRestOperations.cs @@ -33,7 +33,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 ?? "2022-09-01"; + _apiVersion = apiVersion ?? "2022-11-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 e30454ec27477..aafcc03592fdd 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VpnConnectionsRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VpnConnectionsRestOperations.cs @@ -33,7 +33,7 @@ public VpnConnectionsRestOperations(HttpPipeline pipeline, string applicationId, { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-09-01"; + _apiVersion = apiVersion ?? "2022-11-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 ffa5e4b6cf960..2995ef515ffdd 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VpnGatewaysRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VpnGatewaysRestOperations.cs @@ -33,7 +33,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 ?? "2022-09-01"; + _apiVersion = apiVersion ?? "2022-11-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 fb7375f80b336..025fe898edbf3 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VpnLinkConnectionsRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VpnLinkConnectionsRestOperations.cs @@ -33,7 +33,7 @@ public VpnLinkConnectionsRestOperations(HttpPipeline pipeline, string applicatio { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-09-01"; + _apiVersion = apiVersion ?? "2022-11-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 0bf866397d8d7..9455fce7740b3 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VpnServerConfigurationsAssociatedWithVirtualWanRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VpnServerConfigurationsAssociatedWithVirtualWanRestOperations.cs @@ -31,7 +31,7 @@ public VpnServerConfigurationsAssociatedWithVirtualWanRestOperations(HttpPipelin { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-09-01"; + _apiVersion = apiVersion ?? "2022-11-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 88fb3db5d1b73..70e2c73375482 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VpnServerConfigurationsRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VpnServerConfigurationsRestOperations.cs @@ -33,7 +33,7 @@ public VpnServerConfigurationsRestOperations(HttpPipeline pipeline, string appli { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-09-01"; + _apiVersion = apiVersion ?? "2022-11-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 74d6907950be6..3ab30bc565a7c 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VpnSiteLinkConnectionsRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VpnSiteLinkConnectionsRestOperations.cs @@ -32,7 +32,7 @@ public VpnSiteLinkConnectionsRestOperations(HttpPipeline pipeline, string applic { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-09-01"; + _apiVersion = apiVersion ?? "2022-11-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 aa07f2d94e93d..8c7b56feddf30 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VpnSiteLinksRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VpnSiteLinksRestOperations.cs @@ -33,7 +33,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 ?? "2022-09-01"; + _apiVersion = apiVersion ?? "2022-11-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 bacc9db2dfef6..351a9325b18b3 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VpnSitesConfigurationRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VpnSitesConfigurationRestOperations.cs @@ -32,7 +32,7 @@ public VpnSitesConfigurationRestOperations(HttpPipeline pipeline, string applica { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-09-01"; + _apiVersion = apiVersion ?? "2022-11-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 2130022281dd5..acfd500adc326 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VpnSitesRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VpnSitesRestOperations.cs @@ -33,7 +33,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 ?? "2022-09-01"; + _apiVersion = apiVersion ?? "2022-11-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 459c03b8730d9..b904170b5c187 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/WebApplicationFirewallPoliciesRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/WebApplicationFirewallPoliciesRestOperations.cs @@ -33,7 +33,7 @@ public WebApplicationFirewallPoliciesRestOperations(HttpPipeline pipeline, strin { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-09-01"; + _apiVersion = apiVersion ?? "2022-11-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 df26c9ed5980d..577e837beea52 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/WebCategoriesRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/WebCategoriesRestOperations.cs @@ -33,7 +33,7 @@ public WebCategoriesRestOperations(HttpPipeline pipeline, string applicationId, { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-09-01"; + _apiVersion = apiVersion ?? "2022-11-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualHubResource.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualHubResource.cs index 4b142528a6abd..d64cfced6d9f1 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualHubResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualHubResource.cs @@ -676,16 +676,16 @@ public virtual Response Update(NetworkTagsObject virtualHubP /// 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. /// Parameters supplied to get the effective routes for a specific resource. /// The cancellation token to use. - public virtual async Task GetEffectiveVirtualHubRoutesAsync(WaitUntil waitUntil, EffectiveRoutesContent content = null, CancellationToken cancellationToken = default) + public virtual async Task> GetEffectiveVirtualHubRoutesAsync(WaitUntil waitUntil, EffectiveRoutesContent content = null, CancellationToken cancellationToken = default) { using var scope = _virtualHubClientDiagnostics.CreateScope("VirtualHubResource.GetEffectiveVirtualHubRoutes"); scope.Start(); try { var response = await _virtualHubRestClient.GetEffectiveVirtualHubRoutesAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, content, cancellationToken).ConfigureAwait(false); - var operation = new NetworkArmOperation(_virtualHubClientDiagnostics, Pipeline, _virtualHubRestClient.CreateGetEffectiveVirtualHubRoutesRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, content).Request, response, OperationFinalStateVia.Location); + var operation = new NetworkArmOperation(new VirtualHubEffectiveRouteListOperationSource(), _virtualHubClientDiagnostics, Pipeline, _virtualHubRestClient.CreateGetEffectiveVirtualHubRoutesRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, content).Request, response, OperationFinalStateVia.Location); if (waitUntil == WaitUntil.Completed) - await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); + await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; } catch (Exception e) @@ -711,16 +711,16 @@ public virtual async Task GetEffectiveVirtualHubRoutesAsync(WaitUn /// 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. /// Parameters supplied to get the effective routes for a specific resource. /// The cancellation token to use. - public virtual ArmOperation GetEffectiveVirtualHubRoutes(WaitUntil waitUntil, EffectiveRoutesContent content = null, CancellationToken cancellationToken = default) + public virtual ArmOperation GetEffectiveVirtualHubRoutes(WaitUntil waitUntil, EffectiveRoutesContent content = null, CancellationToken cancellationToken = default) { using var scope = _virtualHubClientDiagnostics.CreateScope("VirtualHubResource.GetEffectiveVirtualHubRoutes"); scope.Start(); try { var response = _virtualHubRestClient.GetEffectiveVirtualHubRoutes(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, content, cancellationToken); - var operation = new NetworkArmOperation(_virtualHubClientDiagnostics, Pipeline, _virtualHubRestClient.CreateGetEffectiveVirtualHubRoutesRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, content).Request, response, OperationFinalStateVia.Location); + var operation = new NetworkArmOperation(new VirtualHubEffectiveRouteListOperationSource(), _virtualHubClientDiagnostics, Pipeline, _virtualHubRestClient.CreateGetEffectiveVirtualHubRoutesRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, content).Request, response, OperationFinalStateVia.Location); if (waitUntil == WaitUntil.Completed) - operation.WaitForCompletionResponse(cancellationToken); + operation.WaitForCompletion(cancellationToken); return operation; } catch (Exception e) @@ -747,7 +747,7 @@ public virtual ArmOperation GetEffectiveVirtualHubRoutes(WaitUntil waitUntil, Ef /// Parameters supplied to get the inbound routes for a connection resource. /// The cancellation token to use. /// is null. - public virtual async Task GetInboundRoutesAsync(WaitUntil waitUntil, VirtualHubInboundRoutesContent content, CancellationToken cancellationToken = default) + public virtual async Task> GetInboundRoutesAsync(WaitUntil waitUntil, VirtualHubInboundRoutesContent content, CancellationToken cancellationToken = default) { Argument.AssertNotNull(content, nameof(content)); @@ -756,9 +756,9 @@ public virtual async Task GetInboundRoutesAsync(WaitUntil waitUnti try { var response = await _virtualHubRestClient.GetInboundRoutesAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, content, cancellationToken).ConfigureAwait(false); - var operation = new NetworkArmOperation(_virtualHubClientDiagnostics, Pipeline, _virtualHubRestClient.CreateGetInboundRoutesRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, content).Request, response, OperationFinalStateVia.Location); + var operation = new NetworkArmOperation(new EffectiveRouteMapRouteListOperationSource(), _virtualHubClientDiagnostics, Pipeline, _virtualHubRestClient.CreateGetInboundRoutesRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, content).Request, response, OperationFinalStateVia.Location); if (waitUntil == WaitUntil.Completed) - await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); + await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; } catch (Exception e) @@ -785,7 +785,7 @@ public virtual async Task GetInboundRoutesAsync(WaitUntil waitUnti /// Parameters supplied to get the inbound routes for a connection resource. /// The cancellation token to use. /// is null. - public virtual ArmOperation GetInboundRoutes(WaitUntil waitUntil, VirtualHubInboundRoutesContent content, CancellationToken cancellationToken = default) + public virtual ArmOperation GetInboundRoutes(WaitUntil waitUntil, VirtualHubInboundRoutesContent content, CancellationToken cancellationToken = default) { Argument.AssertNotNull(content, nameof(content)); @@ -794,9 +794,9 @@ public virtual ArmOperation GetInboundRoutes(WaitUntil waitUntil, VirtualHubInbo try { var response = _virtualHubRestClient.GetInboundRoutes(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, content, cancellationToken); - var operation = new NetworkArmOperation(_virtualHubClientDiagnostics, Pipeline, _virtualHubRestClient.CreateGetInboundRoutesRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, content).Request, response, OperationFinalStateVia.Location); + var operation = new NetworkArmOperation(new EffectiveRouteMapRouteListOperationSource(), _virtualHubClientDiagnostics, Pipeline, _virtualHubRestClient.CreateGetInboundRoutesRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, content).Request, response, OperationFinalStateVia.Location); if (waitUntil == WaitUntil.Completed) - operation.WaitForCompletionResponse(cancellationToken); + operation.WaitForCompletion(cancellationToken); return operation; } catch (Exception e) @@ -823,7 +823,7 @@ public virtual ArmOperation GetInboundRoutes(WaitUntil waitUntil, VirtualHubInbo /// Parameters supplied to get the outbound routes for a connection resource. /// The cancellation token to use. /// is null. - public virtual async Task GetOutboundRoutesAsync(WaitUntil waitUntil, VirtualHubOutboundRoutesContent content, CancellationToken cancellationToken = default) + public virtual async Task> GetOutboundRoutesAsync(WaitUntil waitUntil, VirtualHubOutboundRoutesContent content, CancellationToken cancellationToken = default) { Argument.AssertNotNull(content, nameof(content)); @@ -832,9 +832,9 @@ public virtual async Task GetOutboundRoutesAsync(WaitUntil waitUnt try { var response = await _virtualHubRestClient.GetOutboundRoutesAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, content, cancellationToken).ConfigureAwait(false); - var operation = new NetworkArmOperation(_virtualHubClientDiagnostics, Pipeline, _virtualHubRestClient.CreateGetOutboundRoutesRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, content).Request, response, OperationFinalStateVia.Location); + var operation = new NetworkArmOperation(new EffectiveRouteMapRouteListOperationSource(), _virtualHubClientDiagnostics, Pipeline, _virtualHubRestClient.CreateGetOutboundRoutesRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, content).Request, response, OperationFinalStateVia.Location); if (waitUntil == WaitUntil.Completed) - await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); + await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; } catch (Exception e) @@ -861,7 +861,7 @@ public virtual async Task GetOutboundRoutesAsync(WaitUntil waitUnt /// Parameters supplied to get the outbound routes for a connection resource. /// The cancellation token to use. /// is null. - public virtual ArmOperation GetOutboundRoutes(WaitUntil waitUntil, VirtualHubOutboundRoutesContent content, CancellationToken cancellationToken = default) + public virtual ArmOperation GetOutboundRoutes(WaitUntil waitUntil, VirtualHubOutboundRoutesContent content, CancellationToken cancellationToken = default) { Argument.AssertNotNull(content, nameof(content)); @@ -870,9 +870,9 @@ public virtual ArmOperation GetOutboundRoutes(WaitUntil waitUntil, VirtualHubOut try { var response = _virtualHubRestClient.GetOutboundRoutes(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, content, cancellationToken); - var operation = new NetworkArmOperation(_virtualHubClientDiagnostics, Pipeline, _virtualHubRestClient.CreateGetOutboundRoutesRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, content).Request, response, OperationFinalStateVia.Location); + var operation = new NetworkArmOperation(new EffectiveRouteMapRouteListOperationSource(), _virtualHubClientDiagnostics, Pipeline, _virtualHubRestClient.CreateGetOutboundRoutesRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, content).Request, response, OperationFinalStateVia.Location); if (waitUntil == WaitUntil.Completed) - operation.WaitForCompletionResponse(cancellationToken); + operation.WaitForCompletion(cancellationToken); return operation; } catch (Exception e) diff --git a/sdk/network/Azure.ResourceManager.Network/src/autorest.md b/sdk/network/Azure.ResourceManager.Network/src/autorest.md index 65ee6fe87ebc8..ef7fbe377ae15 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/autorest.md +++ b/sdk/network/Azure.ResourceManager.Network/src/autorest.md @@ -7,7 +7,7 @@ azure-arm: true generate-model-factory: false library-name: Network namespace: Azure.ResourceManager.Network -require: https://github.com/Azure/azure-rest-api-specs/blob/ae5f241249f12e87e94e184ae5430518ac061a51/specification/network/resource-manager/readme.md +require: /mnt/vss/_work/1/s/azure-rest-api-specs/specification/network/resource-manager/readme.md # tag: package-2022-09 output-folder: $(this-folder)/Generated clear-output-folder: true