diff --git a/eng/mgmt/mgmtmetadata/network_resource-manager.txt b/eng/mgmt/mgmtmetadata/network_resource-manager.txt
index 49398feb9f63..2b3337cf7a32 100644
--- a/eng/mgmt/mgmtmetadata/network_resource-manager.txt
+++ b/eng/mgmt/mgmtmetadata/network_resource-manager.txt
@@ -5,11 +5,11 @@ Generating CSharp code
Executing AutoRest command
cmd.exe /c autorest.cmd https://github.com/Azure/azure-rest-api-specs/blob/main/specification/network/resource-manager/readme.md --csharp --version=v2 --reflect-api-versions --use:@microsoft.azure/autorest.csharp@2.3.90 --csharp.output-folder=C:\Projects\generator\azure-sdk-for-net\sdk\network\Microsoft.Azure.Management.Network\src\Generated
Autorest CSharp Version: 2.3.90
-2021-08-30 00:47:36 UTC
+2021-10-25 03:37:36 UTC
Azure-rest-api-specs repository information
GitHub fork: Azure
Branch: main
-Commit: cf675c2dcf645a7b79ff0894b2cc9cb43d35a397
+Commit: b2f2423182b461f9b556ff68e9db7e93085eda7f
AutoRest information
Requested version: v2
Bootstrapper version: autorest@2.0.4413
diff --git a/sdk/network/Microsoft.Azure.Management.Network/AzSdk.RP.props b/sdk/network/Microsoft.Azure.Management.Network/AzSdk.RP.props
index 2507e81222e9..66e1a4797b57 100644
--- a/sdk/network/Microsoft.Azure.Management.Network/AzSdk.RP.props
+++ b/sdk/network/Microsoft.Azure.Management.Network/AzSdk.RP.props
@@ -1,7 +1,7 @@
- Compute_2018-10-01;Network_2021-03-01;
+ Compute_2018-10-01;Network_2021-05-01;
$(PackageTags);$(CommonTags);$(AzureApiTag);
\ No newline at end of file
diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/ApplicationGatewayPrivateEndpointConnectionsOperations.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/ApplicationGatewayPrivateEndpointConnectionsOperations.cs
index 8f5044bbe40c..99ec7cdb48c0 100644
--- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/ApplicationGatewayPrivateEndpointConnectionsOperations.cs
+++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/ApplicationGatewayPrivateEndpointConnectionsOperations.cs
@@ -155,7 +155,7 @@ internal ApplicationGatewayPrivateEndpointConnectionsOperations(NetworkManagemen
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2021-03-01";
+ string apiVersion = "2021-05-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -351,7 +351,7 @@ internal ApplicationGatewayPrivateEndpointConnectionsOperations(NetworkManagemen
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2021-03-01";
+ string apiVersion = "2021-05-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -549,7 +549,7 @@ internal ApplicationGatewayPrivateEndpointConnectionsOperations(NetworkManagemen
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2021-03-01";
+ string apiVersion = "2021-05-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -742,7 +742,7 @@ internal ApplicationGatewayPrivateEndpointConnectionsOperations(NetworkManagemen
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2021-03-01";
+ string apiVersion = "2021-05-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/ApplicationGatewayPrivateLinkResourcesOperations.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/ApplicationGatewayPrivateLinkResourcesOperations.cs
index 586ff4a7ba8d..281daa169b99 100644
--- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/ApplicationGatewayPrivateLinkResourcesOperations.cs
+++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/ApplicationGatewayPrivateLinkResourcesOperations.cs
@@ -94,7 +94,7 @@ internal ApplicationGatewayPrivateLinkResourcesOperations(NetworkManagementClien
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2021-03-01";
+ string apiVersion = "2021-05-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/ApplicationGatewaysOperations.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/ApplicationGatewaysOperations.cs
index 8cd2d587452a..6702f5b7c8a1 100644
--- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/ApplicationGatewaysOperations.cs
+++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/ApplicationGatewaysOperations.cs
@@ -116,7 +116,7 @@ internal ApplicationGatewaysOperations(NetworkManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2021-03-01";
+ string apiVersion = "2021-05-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -342,7 +342,7 @@ internal ApplicationGatewaysOperations(NetworkManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2021-03-01";
+ string apiVersion = "2021-05-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -536,7 +536,7 @@ internal ApplicationGatewaysOperations(NetworkManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2021-03-01";
+ string apiVersion = "2021-05-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -714,7 +714,7 @@ internal ApplicationGatewaysOperations(NetworkManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2021-03-01";
+ string apiVersion = "2021-05-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -991,7 +991,7 @@ internal ApplicationGatewaysOperations(NetworkManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2021-03-01";
+ string apiVersion = "2021-05-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -1162,7 +1162,7 @@ internal ApplicationGatewaysOperations(NetworkManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2021-03-01";
+ string apiVersion = "2021-05-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -1333,7 +1333,7 @@ internal ApplicationGatewaysOperations(NetworkManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2021-03-01";
+ string apiVersion = "2021-05-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -1504,7 +1504,7 @@ internal ApplicationGatewaysOperations(NetworkManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2021-03-01";
+ string apiVersion = "2021-05-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -1680,7 +1680,7 @@ internal ApplicationGatewaysOperations(NetworkManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2021-03-01";
+ string apiVersion = "2021-05-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -1856,7 +1856,7 @@ internal ApplicationGatewaysOperations(NetworkManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2021-03-01";
+ string apiVersion = "2021-05-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -2039,7 +2039,7 @@ internal ApplicationGatewaysOperations(NetworkManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "predefinedPolicyName");
}
- string apiVersion = "2021-03-01";
+ string apiVersion = "2021-05-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -2228,7 +2228,7 @@ internal ApplicationGatewaysOperations(NetworkManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2021-03-01";
+ string apiVersion = "2021-05-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -2415,7 +2415,7 @@ internal ApplicationGatewaysOperations(NetworkManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2021-03-01";
+ string apiVersion = "2021-05-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -2631,7 +2631,7 @@ internal ApplicationGatewaysOperations(NetworkManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2021-03-01";
+ string apiVersion = "2021-05-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -2804,7 +2804,7 @@ internal ApplicationGatewaysOperations(NetworkManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2021-03-01";
+ string apiVersion = "2021-05-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -2985,7 +2985,7 @@ internal ApplicationGatewaysOperations(NetworkManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2021-03-01";
+ string apiVersion = "2021-05-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -3196,7 +3196,7 @@ internal ApplicationGatewaysOperations(NetworkManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "probeRequest");
}
- string apiVersion = "2021-03-01";
+ string apiVersion = "2021-05-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/ApplicationSecurityGroupsOperations.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/ApplicationSecurityGroupsOperations.cs
index 5af2cb428750..38cc7a03f5a9 100644
--- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/ApplicationSecurityGroupsOperations.cs
+++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/ApplicationSecurityGroupsOperations.cs
@@ -116,7 +116,7 @@ internal ApplicationSecurityGroupsOperations(NetworkManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2021-03-01";
+ string apiVersion = "2021-05-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -343,7 +343,7 @@ internal ApplicationSecurityGroupsOperations(NetworkManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2021-03-01";
+ string apiVersion = "2021-05-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -530,7 +530,7 @@ internal ApplicationSecurityGroupsOperations(NetworkManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2021-03-01";
+ string apiVersion = "2021-05-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -713,7 +713,7 @@ internal ApplicationSecurityGroupsOperations(NetworkManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2021-03-01";
+ string apiVersion = "2021-05-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -902,7 +902,7 @@ internal ApplicationSecurityGroupsOperations(NetworkManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2021-03-01";
+ string apiVersion = "2021-05-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -1086,7 +1086,7 @@ internal ApplicationSecurityGroupsOperations(NetworkManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2021-03-01";
+ string apiVersion = "2021-05-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/AvailableDelegationsOperations.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/AvailableDelegationsOperations.cs
index d0981f5bb58e..42e971a07f1a 100644
--- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/AvailableDelegationsOperations.cs
+++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/AvailableDelegationsOperations.cs
@@ -88,7 +88,7 @@ internal AvailableDelegationsOperations(NetworkManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2021-03-01";
+ string apiVersion = "2021-05-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/AvailableEndpointServicesOperations.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/AvailableEndpointServicesOperations.cs
index 3e98585f1779..319cc41c7479 100644
--- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/AvailableEndpointServicesOperations.cs
+++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/AvailableEndpointServicesOperations.cs
@@ -87,7 +87,7 @@ internal AvailableEndpointServicesOperations(NetworkManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2021-03-01";
+ string apiVersion = "2021-05-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/AvailablePrivateEndpointTypesOperations.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/AvailablePrivateEndpointTypesOperations.cs
index 4be400c04075..1985cc3e9c88 100644
--- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/AvailablePrivateEndpointTypesOperations.cs
+++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/AvailablePrivateEndpointTypesOperations.cs
@@ -88,7 +88,7 @@ internal AvailablePrivateEndpointTypesOperations(NetworkManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2021-03-01";
+ string apiVersion = "2021-05-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -281,7 +281,7 @@ internal AvailablePrivateEndpointTypesOperations(NetworkManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2021-03-01";
+ string apiVersion = "2021-05-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/AvailableResourceGroupDelegationsOperations.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/AvailableResourceGroupDelegationsOperations.cs
index 3b495c307fa6..507f2bbd62f7 100644
--- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/AvailableResourceGroupDelegationsOperations.cs
+++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/AvailableResourceGroupDelegationsOperations.cs
@@ -95,7 +95,7 @@ internal AvailableResourceGroupDelegationsOperations(NetworkManagementClient cli
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2021-03-01";
+ string apiVersion = "2021-05-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/AvailableServiceAliasesOperations.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/AvailableServiceAliasesOperations.cs
index 7d7385150cd0..5542851f36ba 100644
--- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/AvailableServiceAliasesOperations.cs
+++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/AvailableServiceAliasesOperations.cs
@@ -87,7 +87,7 @@ internal AvailableServiceAliasesOperations(NetworkManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2021-03-01";
+ string apiVersion = "2021-05-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -279,7 +279,7 @@ internal AvailableServiceAliasesOperations(NetworkManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2021-03-01";
+ string apiVersion = "2021-05-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/AzureFirewallFqdnTagsOperations.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/AzureFirewallFqdnTagsOperations.cs
index 06f14d14f46b..2ad2aac32311 100644
--- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/AzureFirewallFqdnTagsOperations.cs
+++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/AzureFirewallFqdnTagsOperations.cs
@@ -80,7 +80,7 @@ internal AzureFirewallFqdnTagsOperations(NetworkManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2021-03-01";
+ string apiVersion = "2021-05-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/AzureFirewallsOperations.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/AzureFirewallsOperations.cs
index f00f3a7a00aa..a585a95bc8fa 100644
--- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/AzureFirewallsOperations.cs
+++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/AzureFirewallsOperations.cs
@@ -116,7 +116,7 @@ internal AzureFirewallsOperations(NetworkManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2021-03-01";
+ string apiVersion = "2021-05-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -353,7 +353,7 @@ internal AzureFirewallsOperations(NetworkManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2021-03-01";
+ string apiVersion = "2021-05-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -531,7 +531,7 @@ internal AzureFirewallsOperations(NetworkManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2021-03-01";
+ string apiVersion = "2021-05-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -718,7 +718,7 @@ internal AzureFirewallsOperations(NetworkManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2021-03-01";
+ string apiVersion = "2021-05-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -912,7 +912,7 @@ internal AzureFirewallsOperations(NetworkManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2021-03-01";
+ string apiVersion = "2021-05-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -1138,7 +1138,7 @@ internal AzureFirewallsOperations(NetworkManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2021-03-01";
+ string apiVersion = "2021-05-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/BastionHostsOperations.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/BastionHostsOperations.cs
index 32c92d5abfa3..8afbdce51fa9 100644
--- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/BastionHostsOperations.cs
+++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/BastionHostsOperations.cs
@@ -116,7 +116,7 @@ internal BastionHostsOperations(NetworkManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2021-03-01";
+ string apiVersion = "2021-05-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -346,7 +346,7 @@ internal BastionHostsOperations(NetworkManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2021-03-01";
+ string apiVersion = "2021-05-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -529,7 +529,7 @@ internal BastionHostsOperations(NetworkManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2021-03-01";
+ string apiVersion = "2021-05-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -718,7 +718,7 @@ internal BastionHostsOperations(NetworkManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2021-03-01";
+ string apiVersion = "2021-05-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -905,7 +905,7 @@ internal BastionHostsOperations(NetworkManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2021-03-01";
+ string apiVersion = "2021-05-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -1131,7 +1131,7 @@ internal BastionHostsOperations(NetworkManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "parameters");
}
- string apiVersion = "2021-03-01";
+ string apiVersion = "2021-05-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/BgpServiceCommunitiesOperations.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/BgpServiceCommunitiesOperations.cs
index 9609c91ec2f7..636e18fa8f3d 100644
--- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/BgpServiceCommunitiesOperations.cs
+++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/BgpServiceCommunitiesOperations.cs
@@ -80,7 +80,7 @@ internal BgpServiceCommunitiesOperations(NetworkManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2021-03-01";
+ string apiVersion = "2021-05-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/ConnectionMonitorsOperations.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/ConnectionMonitorsOperations.cs
index f8c8c6dacb05..c917ef49f1bd 100644
--- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/ConnectionMonitorsOperations.cs
+++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/ConnectionMonitorsOperations.cs
@@ -133,7 +133,7 @@ internal ConnectionMonitorsOperations(NetworkManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2021-03-01";
+ string apiVersion = "2021-05-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -363,7 +363,7 @@ internal ConnectionMonitorsOperations(NetworkManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2021-03-01";
+ string apiVersion = "2021-05-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -636,7 +636,7 @@ internal ConnectionMonitorsOperations(NetworkManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2021-03-01";
+ string apiVersion = "2021-05-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -847,7 +847,7 @@ internal ConnectionMonitorsOperations(NetworkManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2021-03-01";
+ string apiVersion = "2021-05-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -1072,7 +1072,7 @@ internal ConnectionMonitorsOperations(NetworkManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2021-03-01";
+ string apiVersion = "2021-05-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -1249,7 +1249,7 @@ internal ConnectionMonitorsOperations(NetworkManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2021-03-01";
+ string apiVersion = "2021-05-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -1426,7 +1426,7 @@ internal ConnectionMonitorsOperations(NetworkManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2021-03-01";
+ string apiVersion = "2021-05-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -1606,7 +1606,7 @@ internal ConnectionMonitorsOperations(NetworkManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2021-03-01";
+ string apiVersion = "2021-05-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/CustomIPPrefixesOperations.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/CustomIPPrefixesOperations.cs
index 18ddc94af696..1fd61a5b585d 100644
--- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/CustomIPPrefixesOperations.cs
+++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/CustomIPPrefixesOperations.cs
@@ -119,7 +119,7 @@ internal CustomIPPrefixesOperations(NetworkManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2021-03-01";
+ string apiVersion = "2021-05-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -350,7 +350,7 @@ internal CustomIPPrefixesOperations(NetworkManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2021-03-01";
+ string apiVersion = "2021-05-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -537,7 +537,7 @@ internal CustomIPPrefixesOperations(NetworkManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2021-03-01";
+ string apiVersion = "2021-05-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -720,7 +720,7 @@ internal CustomIPPrefixesOperations(NetworkManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2021-03-01";
+ string apiVersion = "2021-05-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -909,7 +909,7 @@ internal CustomIPPrefixesOperations(NetworkManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2021-03-01";
+ string apiVersion = "2021-05-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -1092,7 +1092,7 @@ internal CustomIPPrefixesOperations(NetworkManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2021-03-01";
+ string apiVersion = "2021-05-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/DdosCustomPoliciesOperations.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/DdosCustomPoliciesOperations.cs
index a182c05314f9..46d55158cc78 100644
--- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/DdosCustomPoliciesOperations.cs
+++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/DdosCustomPoliciesOperations.cs
@@ -116,7 +116,7 @@ internal DdosCustomPoliciesOperations(NetworkManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2021-03-01";
+ string apiVersion = "2021-05-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -342,7 +342,7 @@ internal DdosCustomPoliciesOperations(NetworkManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2021-03-01";
+ string apiVersion = "2021-05-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -540,7 +540,7 @@ internal DdosCustomPoliciesOperations(NetworkManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2021-03-01";
+ string apiVersion = "2021-05-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -723,7 +723,7 @@ internal DdosCustomPoliciesOperations(NetworkManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2021-03-01";
+ string apiVersion = "2021-05-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/DdosProtectionPlansOperations.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/DdosProtectionPlansOperations.cs
index ddc45825cd96..d79fcaed9022 100644
--- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/DdosProtectionPlansOperations.cs
+++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/DdosProtectionPlansOperations.cs
@@ -116,7 +116,7 @@ internal DdosProtectionPlansOperations(NetworkManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2021-03-01";
+ string apiVersion = "2021-05-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -342,7 +342,7 @@ internal DdosProtectionPlansOperations(NetworkManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2021-03-01";
+ string apiVersion = "2021-05-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -529,7 +529,7 @@ internal DdosProtectionPlansOperations(NetworkManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2021-03-01";
+ string apiVersion = "2021-05-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -712,7 +712,7 @@ internal DdosProtectionPlansOperations(NetworkManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2021-03-01";
+ string apiVersion = "2021-05-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -901,7 +901,7 @@ internal DdosProtectionPlansOperations(NetworkManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2021-03-01";
+ string apiVersion = "2021-05-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -1084,7 +1084,7 @@ internal DdosProtectionPlansOperations(NetworkManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2021-03-01";
+ string apiVersion = "2021-05-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/DefaultSecurityRulesOperations.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/DefaultSecurityRulesOperations.cs
index 43f769b3b7d5..b79cd4902eb5 100644
--- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/DefaultSecurityRulesOperations.cs
+++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/DefaultSecurityRulesOperations.cs
@@ -94,7 +94,7 @@ internal DefaultSecurityRulesOperations(NetworkManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2021-03-01";
+ string apiVersion = "2021-05-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -295,7 +295,7 @@ internal DefaultSecurityRulesOperations(NetworkManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2021-03-01";
+ string apiVersion = "2021-05-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/DscpConfigurationOperations.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/DscpConfigurationOperations.cs
index 04435a20f748..5cdbfdb6f842 100644
--- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/DscpConfigurationOperations.cs
+++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/DscpConfigurationOperations.cs
@@ -141,7 +141,7 @@ internal DscpConfigurationOperations(NetworkManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2021-03-01";
+ string apiVersion = "2021-05-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -328,7 +328,7 @@ internal DscpConfigurationOperations(NetworkManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2021-03-01";
+ string apiVersion = "2021-05-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -506,7 +506,7 @@ internal DscpConfigurationOperations(NetworkManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2021-03-01";
+ string apiVersion = "2021-05-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -703,7 +703,7 @@ internal DscpConfigurationOperations(NetworkManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2021-03-01";
+ string apiVersion = "2021-05-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -919,7 +919,7 @@ internal DscpConfigurationOperations(NetworkManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2021-03-01";
+ string apiVersion = "2021-05-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/ExpressRouteCircuitAuthorizationsOperations.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/ExpressRouteCircuitAuthorizationsOperations.cs
index f99995441b4c..786a90cd40f0 100644
--- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/ExpressRouteCircuitAuthorizationsOperations.cs
+++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/ExpressRouteCircuitAuthorizationsOperations.cs
@@ -127,7 +127,7 @@ internal ExpressRouteCircuitAuthorizationsOperations(NetworkManagementClient cli
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2021-03-01";
+ string apiVersion = "2021-05-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -352,7 +352,7 @@ internal ExpressRouteCircuitAuthorizationsOperations(NetworkManagementClient cli
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2021-03-01";
+ string apiVersion = "2021-05-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -551,7 +551,7 @@ internal ExpressRouteCircuitAuthorizationsOperations(NetworkManagementClient cli
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2021-03-01";
+ string apiVersion = "2021-05-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -744,7 +744,7 @@ internal ExpressRouteCircuitAuthorizationsOperations(NetworkManagementClient cli
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2021-03-01";
+ string apiVersion = "2021-05-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/ExpressRouteCircuitConnectionsOperations.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/ExpressRouteCircuitConnectionsOperations.cs
index a846a08eca64..0c5358f2edae 100644
--- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/ExpressRouteCircuitConnectionsOperations.cs
+++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/ExpressRouteCircuitConnectionsOperations.cs
@@ -138,7 +138,7 @@ internal ExpressRouteCircuitConnectionsOperations(NetworkManagementClient client
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2021-03-01";
+ string apiVersion = "2021-05-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -377,7 +377,7 @@ internal ExpressRouteCircuitConnectionsOperations(NetworkManagementClient client
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2021-03-01";
+ string apiVersion = "2021-05-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -585,7 +585,7 @@ internal ExpressRouteCircuitConnectionsOperations(NetworkManagementClient client
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2021-03-01";
+ string apiVersion = "2021-05-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -788,7 +788,7 @@ internal ExpressRouteCircuitConnectionsOperations(NetworkManagementClient client
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2021-03-01";
+ string apiVersion = "2021-05-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/ExpressRouteCircuitPeeringsOperations.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/ExpressRouteCircuitPeeringsOperations.cs
index 09985b56e196..3d97ff59f7bd 100644
--- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/ExpressRouteCircuitPeeringsOperations.cs
+++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/ExpressRouteCircuitPeeringsOperations.cs
@@ -126,7 +126,7 @@ internal ExpressRouteCircuitPeeringsOperations(NetworkManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2021-03-01";
+ string apiVersion = "2021-05-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -351,7 +351,7 @@ internal ExpressRouteCircuitPeeringsOperations(NetworkManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2021-03-01";
+ string apiVersion = "2021-05-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -549,7 +549,7 @@ internal ExpressRouteCircuitPeeringsOperations(NetworkManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2021-03-01";
+ string apiVersion = "2021-05-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -746,7 +746,7 @@ internal ExpressRouteCircuitPeeringsOperations(NetworkManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2021-03-01";
+ string apiVersion = "2021-05-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/ExpressRouteCircuitsOperations.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/ExpressRouteCircuitsOperations.cs
index f33bfb9fe03e..aacb9f1ff23b 100644
--- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/ExpressRouteCircuitsOperations.cs
+++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/ExpressRouteCircuitsOperations.cs
@@ -116,7 +116,7 @@ internal ExpressRouteCircuitsOperations(NetworkManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2021-03-01";
+ string apiVersion = "2021-05-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -343,7 +343,7 @@ internal ExpressRouteCircuitsOperations(NetworkManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2021-03-01";
+ string apiVersion = "2021-05-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -631,7 +631,7 @@ internal ExpressRouteCircuitsOperations(NetworkManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2021-03-01";
+ string apiVersion = "2021-05-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -832,7 +832,7 @@ internal ExpressRouteCircuitsOperations(NetworkManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2021-03-01";
+ string apiVersion = "2021-05-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -1021,7 +1021,7 @@ internal ExpressRouteCircuitsOperations(NetworkManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2021-03-01";
+ string apiVersion = "2021-05-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -1199,7 +1199,7 @@ internal ExpressRouteCircuitsOperations(NetworkManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2021-03-01";
+ string apiVersion = "2021-05-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -1386,7 +1386,7 @@ internal ExpressRouteCircuitsOperations(NetworkManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2021-03-01";
+ string apiVersion = "2021-05-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -1570,7 +1570,7 @@ internal ExpressRouteCircuitsOperations(NetworkManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2021-03-01";
+ string apiVersion = "2021-05-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -1804,7 +1804,7 @@ internal ExpressRouteCircuitsOperations(NetworkManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2021-03-01";
+ string apiVersion = "2021-05-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -2017,7 +2017,7 @@ internal ExpressRouteCircuitsOperations(NetworkManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2021-03-01";
+ string apiVersion = "2021-05-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -2230,7 +2230,7 @@ internal ExpressRouteCircuitsOperations(NetworkManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2021-03-01";
+ string apiVersion = "2021-05-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/ExpressRouteConnectionsOperations.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/ExpressRouteConnectionsOperations.cs
index 30f4e3953dc7..822b27345967 100644
--- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/ExpressRouteConnectionsOperations.cs
+++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/ExpressRouteConnectionsOperations.cs
@@ -130,7 +130,7 @@ internal ExpressRouteConnectionsOperations(NetworkManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2021-03-01";
+ string apiVersion = "2021-05-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -351,7 +351,7 @@ internal ExpressRouteConnectionsOperations(NetworkManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2021-03-01";
+ string apiVersion = "2021-05-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -564,7 +564,7 @@ internal ExpressRouteConnectionsOperations(NetworkManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2021-03-01";
+ string apiVersion = "2021-05-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -789,7 +789,7 @@ internal ExpressRouteConnectionsOperations(NetworkManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2021-03-01";
+ string apiVersion = "2021-05-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/ExpressRouteCrossConnectionPeeringsOperations.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/ExpressRouteCrossConnectionPeeringsOperations.cs
index 524145ab5c54..ea8065f5762e 100644
--- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/ExpressRouteCrossConnectionPeeringsOperations.cs
+++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/ExpressRouteCrossConnectionPeeringsOperations.cs
@@ -94,7 +94,7 @@ internal ExpressRouteCrossConnectionPeeringsOperations(NetworkManagementClient c
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2021-03-01";
+ string apiVersion = "2021-05-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -320,7 +320,7 @@ internal ExpressRouteCrossConnectionPeeringsOperations(NetworkManagementClient c
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2021-03-01";
+ string apiVersion = "2021-05-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -549,7 +549,7 @@ internal ExpressRouteCrossConnectionPeeringsOperations(NetworkManagementClient c
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2021-03-01";
+ string apiVersion = "2021-05-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -746,7 +746,7 @@ internal ExpressRouteCrossConnectionPeeringsOperations(NetworkManagementClient c
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2021-03-01";
+ string apiVersion = "2021-05-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/ExpressRouteCrossConnectionsOperations.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/ExpressRouteCrossConnectionsOperations.cs
index 2bf72f39801d..270c7c2b7692 100644
--- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/ExpressRouteCrossConnectionsOperations.cs
+++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/ExpressRouteCrossConnectionsOperations.cs
@@ -80,7 +80,7 @@ internal ExpressRouteCrossConnectionsOperations(NetworkManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2021-03-01";
+ string apiVersion = "2021-05-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -263,7 +263,7 @@ internal ExpressRouteCrossConnectionsOperations(NetworkManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2021-03-01";
+ string apiVersion = "2021-05-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -455,7 +455,7 @@ internal ExpressRouteCrossConnectionsOperations(NetworkManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2021-03-01";
+ string apiVersion = "2021-05-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -681,7 +681,7 @@ internal ExpressRouteCrossConnectionsOperations(NetworkManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2021-03-01";
+ string apiVersion = "2021-05-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -976,7 +976,7 @@ internal ExpressRouteCrossConnectionsOperations(NetworkManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2021-03-01";
+ string apiVersion = "2021-05-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -1192,7 +1192,7 @@ internal ExpressRouteCrossConnectionsOperations(NetworkManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2021-03-01";
+ string apiVersion = "2021-05-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -1405,7 +1405,7 @@ internal ExpressRouteCrossConnectionsOperations(NetworkManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2021-03-01";
+ string apiVersion = "2021-05-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -1618,7 +1618,7 @@ internal ExpressRouteCrossConnectionsOperations(NetworkManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2021-03-01";
+ string apiVersion = "2021-05-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/ExpressRouteGatewaysOperations.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/ExpressRouteGatewaysOperations.cs
index 4bb638d95a5e..4e851f4155a5 100644
--- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/ExpressRouteGatewaysOperations.cs
+++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/ExpressRouteGatewaysOperations.cs
@@ -80,7 +80,7 @@ internal ExpressRouteGatewaysOperations(NetworkManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2021-03-01";
+ string apiVersion = "2021-05-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -263,7 +263,7 @@ internal ExpressRouteGatewaysOperations(NetworkManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2021-03-01";
+ string apiVersion = "2021-05-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -505,7 +505,7 @@ internal ExpressRouteGatewaysOperations(NetworkManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2021-03-01";
+ string apiVersion = "2021-05-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -734,7 +734,7 @@ internal ExpressRouteGatewaysOperations(NetworkManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2021-03-01";
+ string apiVersion = "2021-05-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -960,7 +960,7 @@ internal ExpressRouteGatewaysOperations(NetworkManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "expressRouteGatewayParameters");
}
- string apiVersion = "2021-03-01";
+ string apiVersion = "2021-05-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -1160,7 +1160,7 @@ internal ExpressRouteGatewaysOperations(NetworkManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2021-03-01";
+ string apiVersion = "2021-05-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/ExpressRouteLinksOperations.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/ExpressRouteLinksOperations.cs
index 491377eb2275..8c0094adebc9 100644
--- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/ExpressRouteLinksOperations.cs
+++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/ExpressRouteLinksOperations.cs
@@ -101,7 +101,7 @@ internal ExpressRouteLinksOperations(NetworkManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "linkName");
}
- string apiVersion = "2021-03-01";
+ string apiVersion = "2021-05-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -298,7 +298,7 @@ internal ExpressRouteLinksOperations(NetworkManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "expressRoutePortName");
}
- string apiVersion = "2021-03-01";
+ string apiVersion = "2021-05-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/ExpressRoutePortsLocationsOperations.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/ExpressRoutePortsLocationsOperations.cs
index 81d88fcfc231..38b3499f38a5 100644
--- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/ExpressRoutePortsLocationsOperations.cs
+++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/ExpressRoutePortsLocationsOperations.cs
@@ -82,7 +82,7 @@ internal ExpressRoutePortsLocationsOperations(NetworkManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2021-03-01";
+ string apiVersion = "2021-05-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -266,7 +266,7 @@ internal ExpressRoutePortsLocationsOperations(NetworkManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "locationName");
}
- string apiVersion = "2021-03-01";
+ string apiVersion = "2021-05-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/ExpressRoutePortsOperations.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/ExpressRoutePortsOperations.cs
index e9cf3ef5d7c0..15347d0d229c 100644
--- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/ExpressRoutePortsOperations.cs
+++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/ExpressRoutePortsOperations.cs
@@ -116,7 +116,7 @@ internal ExpressRoutePortsOperations(NetworkManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "expressRoutePortName");
}
- string apiVersion = "2021-03-01";
+ string apiVersion = "2021-05-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -342,7 +342,7 @@ internal ExpressRoutePortsOperations(NetworkManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "parameters");
}
- string apiVersion = "2021-03-01";
+ string apiVersion = "2021-05-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -536,7 +536,7 @@ internal ExpressRoutePortsOperations(NetworkManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName");
}
- string apiVersion = "2021-03-01";
+ string apiVersion = "2021-05-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -714,7 +714,7 @@ internal ExpressRoutePortsOperations(NetworkManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2021-03-01";
+ string apiVersion = "2021-05-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -916,7 +916,7 @@ internal ExpressRoutePortsOperations(NetworkManagementClient client)
{
request.Validate();
}
- string apiVersion = "2021-03-01";
+ string apiVersion = "2021-05-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -1114,7 +1114,7 @@ internal ExpressRoutePortsOperations(NetworkManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "expressRoutePortName");
}
- string apiVersion = "2021-03-01";
+ string apiVersion = "2021-05-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -1297,7 +1297,7 @@ internal ExpressRoutePortsOperations(NetworkManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "parameters");
}
- string apiVersion = "2021-03-01";
+ string apiVersion = "2021-05-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/ExpressRouteServiceProvidersOperations.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/ExpressRouteServiceProvidersOperations.cs
index 3a7f40c535fe..d4dbb2c99561 100644
--- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/ExpressRouteServiceProvidersOperations.cs
+++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/ExpressRouteServiceProvidersOperations.cs
@@ -80,7 +80,7 @@ internal ExpressRouteServiceProvidersOperations(NetworkManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2021-03-01";
+ string apiVersion = "2021-05-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/FirewallPoliciesOperations.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/FirewallPoliciesOperations.cs
index 2a4df3c4698a..18ccdc14d5db 100644
--- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/FirewallPoliciesOperations.cs
+++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/FirewallPoliciesOperations.cs
@@ -119,7 +119,7 @@ internal FirewallPoliciesOperations(NetworkManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2021-03-01";
+ string apiVersion = "2021-05-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -336,7 +336,7 @@ internal FirewallPoliciesOperations(NetworkManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2021-03-01";
+ string apiVersion = "2021-05-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -514,7 +514,7 @@ internal FirewallPoliciesOperations(NetworkManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2021-03-01";
+ string apiVersion = "2021-05-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -701,7 +701,7 @@ internal FirewallPoliciesOperations(NetworkManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2021-03-01";
+ string apiVersion = "2021-05-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -888,7 +888,7 @@ internal FirewallPoliciesOperations(NetworkManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2021-03-01";
+ string apiVersion = "2021-05-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/FirewallPolicyIdpsSignaturesFilterValuesOperations.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/FirewallPolicyIdpsSignaturesFilterValuesOperations.cs
new file mode 100644
index 000000000000..9c40e133c652
--- /dev/null
+++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/FirewallPolicyIdpsSignaturesFilterValuesOperations.cs
@@ -0,0 +1,255 @@
+//
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License. See License.txt in the project root for
+// license information.
+//
+// Code generated by Microsoft (R) AutoRest Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is
+// regenerated.
+//
+
+namespace Microsoft.Azure.Management.Network
+{
+ using Microsoft.Rest;
+ using Microsoft.Rest.Azure;
+ using Models;
+ using Newtonsoft.Json;
+ using System.Collections;
+ using System.Collections.Generic;
+ using System.Linq;
+ using System.Net;
+ using System.Net.Http;
+ using System.Threading;
+ using System.Threading.Tasks;
+
+ ///
+ /// FirewallPolicyIdpsSignaturesFilterValuesOperations operations.
+ ///
+ internal partial class FirewallPolicyIdpsSignaturesFilterValuesOperations : IServiceOperations, IFirewallPolicyIdpsSignaturesFilterValuesOperations
+ {
+ ///
+ /// Initializes a new instance of the FirewallPolicyIdpsSignaturesFilterValuesOperations class.
+ ///
+ ///
+ /// Reference to the service client.
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ internal FirewallPolicyIdpsSignaturesFilterValuesOperations(NetworkManagementClient client)
+ {
+ if (client == null)
+ {
+ throw new System.ArgumentNullException("client");
+ }
+ Client = client;
+ }
+
+ ///
+ /// Gets a reference to the NetworkManagementClient
+ ///
+ public NetworkManagementClient Client { get; private set; }
+
+ ///
+ /// Retrieves the current filter values for the signatures overrides
+ ///
+ ///
+ ///
+ ///
+ /// The name of the resource group.
+ ///
+ ///
+ /// The name of the Firewall Policy.
+ ///
+ ///
+ /// Headers that will be added to request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ ///
+ /// Thrown when the operation returned an invalid status code
+ ///
+ ///
+ /// Thrown when unable to deserialize the response
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ ///
+ /// A response object containing the response body and response headers.
+ ///
+ public async Task> ListWithHttpMessagesAsync(SignatureOverridesFilterValuesQuery parameters, string resourceGroupName, string firewallPolicyName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ {
+ if (parameters == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "parameters");
+ }
+ if (resourceGroupName == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName");
+ }
+ if (firewallPolicyName == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "firewallPolicyName");
+ }
+ if (Client.SubscriptionId == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
+ }
+ // Tracing
+ bool _shouldTrace = ServiceClientTracing.IsEnabled;
+ string _invocationId = null;
+ if (_shouldTrace)
+ {
+ _invocationId = ServiceClientTracing.NextInvocationId.ToString();
+ Dictionary tracingParameters = new Dictionary();
+ tracingParameters.Add("parameters", parameters);
+ tracingParameters.Add("resourceGroupName", resourceGroupName);
+ tracingParameters.Add("firewallPolicyName", firewallPolicyName);
+ tracingParameters.Add("cancellationToken", cancellationToken);
+ ServiceClientTracing.Enter(_invocationId, this, "List", tracingParameters);
+ }
+ // Construct URL
+ var _baseUrl = Client.BaseUri.AbsoluteUri;
+ var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/firewallPolicies/{firewallPolicyName}/listIdpsFilterOptions").ToString();
+ _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName));
+ _url = _url.Replace("{firewallPolicyName}", System.Uri.EscapeDataString(firewallPolicyName));
+ _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId));
+ List _queryParameters = new List();
+ if (_queryParameters.Count > 0)
+ {
+ _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters);
+ }
+ // Create HTTP transport objects
+ var _httpRequest = new HttpRequestMessage();
+ HttpResponseMessage _httpResponse = null;
+ _httpRequest.Method = new HttpMethod("POST");
+ _httpRequest.RequestUri = new System.Uri(_url);
+ // Set Headers
+ if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value)
+ {
+ _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString());
+ }
+ if (Client.AcceptLanguage != null)
+ {
+ if (_httpRequest.Headers.Contains("accept-language"))
+ {
+ _httpRequest.Headers.Remove("accept-language");
+ }
+ _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage);
+ }
+
+
+ if (customHeaders != null)
+ {
+ foreach(var _header in customHeaders)
+ {
+ if (_httpRequest.Headers.Contains(_header.Key))
+ {
+ _httpRequest.Headers.Remove(_header.Key);
+ }
+ _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value);
+ }
+ }
+
+ // Serialize Request
+ string _requestContent = null;
+ if(parameters != null)
+ {
+ _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(parameters, Client.SerializationSettings);
+ _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8);
+ _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8");
+ }
+ // Set Credentials
+ if (Client.Credentials != null)
+ {
+ cancellationToken.ThrowIfCancellationRequested();
+ await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false);
+ }
+ // Send Request
+ if (_shouldTrace)
+ {
+ ServiceClientTracing.SendRequest(_invocationId, _httpRequest);
+ }
+ cancellationToken.ThrowIfCancellationRequested();
+ _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false);
+ if (_shouldTrace)
+ {
+ ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse);
+ }
+ HttpStatusCode _statusCode = _httpResponse.StatusCode;
+ cancellationToken.ThrowIfCancellationRequested();
+ string _responseContent = null;
+ if ((int)_statusCode != 200)
+ {
+ var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode));
+ try
+ {
+ _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
+ CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings);
+ if (_errorBody != null)
+ {
+ ex = new CloudException(_errorBody.Message);
+ ex.Body = _errorBody;
+ }
+ }
+ catch (JsonException)
+ {
+ // Ignore the exception
+ }
+ ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent);
+ ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent);
+ if (_httpResponse.Headers.Contains("x-ms-request-id"))
+ {
+ ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault();
+ }
+ if (_shouldTrace)
+ {
+ ServiceClientTracing.Error(_invocationId, ex);
+ }
+ _httpRequest.Dispose();
+ if (_httpResponse != null)
+ {
+ _httpResponse.Dispose();
+ }
+ throw ex;
+ }
+ // Create Result
+ var _result = new AzureOperationResponse();
+ _result.Request = _httpRequest;
+ _result.Response = _httpResponse;
+ if (_httpResponse.Headers.Contains("x-ms-request-id"))
+ {
+ _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault();
+ }
+ // Deserialize Response
+ if ((int)_statusCode == 200)
+ {
+ _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
+ try
+ {
+ _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings);
+ }
+ catch (JsonException ex)
+ {
+ _httpRequest.Dispose();
+ if (_httpResponse != null)
+ {
+ _httpResponse.Dispose();
+ }
+ throw new SerializationException("Unable to deserialize the response.", _responseContent, ex);
+ }
+ }
+ if (_shouldTrace)
+ {
+ ServiceClientTracing.Exit(_invocationId, _result);
+ }
+ return _result;
+ }
+
+ }
+}
diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/FirewallPolicyIdpsSignaturesFilterValuesOperationsExtensions.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/FirewallPolicyIdpsSignaturesFilterValuesOperationsExtensions.cs
new file mode 100644
index 000000000000..20b84acd01ae
--- /dev/null
+++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/FirewallPolicyIdpsSignaturesFilterValuesOperationsExtensions.cs
@@ -0,0 +1,69 @@
+//
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License. See License.txt in the project root for
+// license information.
+//
+// Code generated by Microsoft (R) AutoRest Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is
+// regenerated.
+//
+
+namespace Microsoft.Azure.Management.Network
+{
+ using Microsoft.Rest;
+ using Microsoft.Rest.Azure;
+ using Models;
+ using System.Threading;
+ using System.Threading.Tasks;
+
+ ///
+ /// Extension methods for FirewallPolicyIdpsSignaturesFilterValuesOperations.
+ ///
+ public static partial class FirewallPolicyIdpsSignaturesFilterValuesOperationsExtensions
+ {
+ ///
+ /// Retrieves the current filter values for the signatures overrides
+ ///
+ ///
+ /// The operations group for this extension method.
+ ///
+ ///
+ ///
+ ///
+ /// The name of the resource group.
+ ///
+ ///
+ /// The name of the Firewall Policy.
+ ///
+ public static SignatureOverridesFilterValuesResponse List(this IFirewallPolicyIdpsSignaturesFilterValuesOperations operations, SignatureOverridesFilterValuesQuery parameters, string resourceGroupName, string firewallPolicyName)
+ {
+ return operations.ListAsync(parameters, resourceGroupName, firewallPolicyName).GetAwaiter().GetResult();
+ }
+
+ ///
+ /// Retrieves the current filter values for the signatures overrides
+ ///
+ ///
+ /// The operations group for this extension method.
+ ///
+ ///
+ ///
+ ///
+ /// The name of the resource group.
+ ///
+ ///
+ /// The name of the Firewall Policy.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ public static async Task ListAsync(this IFirewallPolicyIdpsSignaturesFilterValuesOperations operations, SignatureOverridesFilterValuesQuery parameters, string resourceGroupName, string firewallPolicyName, CancellationToken cancellationToken = default(CancellationToken))
+ {
+ using (var _result = await operations.ListWithHttpMessagesAsync(parameters, resourceGroupName, firewallPolicyName, null, cancellationToken).ConfigureAwait(false))
+ {
+ return _result.Body;
+ }
+ }
+
+ }
+}
diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/FirewallPolicyIdpsSignaturesOperations.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/FirewallPolicyIdpsSignaturesOperations.cs
new file mode 100644
index 000000000000..1079e4c754d8
--- /dev/null
+++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/FirewallPolicyIdpsSignaturesOperations.cs
@@ -0,0 +1,259 @@
+//
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License. See License.txt in the project root for
+// license information.
+//
+// Code generated by Microsoft (R) AutoRest Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is
+// regenerated.
+//
+
+namespace Microsoft.Azure.Management.Network
+{
+ using Microsoft.Rest;
+ using Microsoft.Rest.Azure;
+ using Models;
+ using Newtonsoft.Json;
+ using System.Collections;
+ using System.Collections.Generic;
+ using System.Linq;
+ using System.Net;
+ using System.Net.Http;
+ using System.Threading;
+ using System.Threading.Tasks;
+
+ ///
+ /// FirewallPolicyIdpsSignaturesOperations operations.
+ ///
+ internal partial class FirewallPolicyIdpsSignaturesOperations : IServiceOperations, IFirewallPolicyIdpsSignaturesOperations
+ {
+ ///
+ /// Initializes a new instance of the FirewallPolicyIdpsSignaturesOperations class.
+ ///
+ ///
+ /// Reference to the service client.
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ internal FirewallPolicyIdpsSignaturesOperations(NetworkManagementClient client)
+ {
+ if (client == null)
+ {
+ throw new System.ArgumentNullException("client");
+ }
+ Client = client;
+ }
+
+ ///
+ /// Gets a reference to the NetworkManagementClient
+ ///
+ public NetworkManagementClient Client { get; private set; }
+
+ ///
+ /// Retrieves the current status of IDPS signatures for the relevant policy
+ ///
+ ///
+ /// The name of the resource group.
+ ///
+ ///
+ /// The name of the Firewall Policy.
+ ///
+ ///
+ ///
+ ///
+ /// Headers that will be added to request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ ///
+ /// Thrown when the operation returned an invalid status code
+ ///
+ ///
+ /// Thrown when unable to deserialize the response
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ ///
+ /// A response object containing the response body and response headers.
+ ///
+ public async Task> ListWithHttpMessagesAsync(string resourceGroupName, string firewallPolicyName, IDPSQueryObject parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ {
+ if (resourceGroupName == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName");
+ }
+ if (firewallPolicyName == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "firewallPolicyName");
+ }
+ if (Client.SubscriptionId == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
+ }
+ if (parameters == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "parameters");
+ }
+ if (parameters != null)
+ {
+ parameters.Validate();
+ }
+ // Tracing
+ bool _shouldTrace = ServiceClientTracing.IsEnabled;
+ string _invocationId = null;
+ if (_shouldTrace)
+ {
+ _invocationId = ServiceClientTracing.NextInvocationId.ToString();
+ Dictionary tracingParameters = new Dictionary();
+ tracingParameters.Add("resourceGroupName", resourceGroupName);
+ tracingParameters.Add("firewallPolicyName", firewallPolicyName);
+ tracingParameters.Add("parameters", parameters);
+ tracingParameters.Add("cancellationToken", cancellationToken);
+ ServiceClientTracing.Enter(_invocationId, this, "List", tracingParameters);
+ }
+ // Construct URL
+ var _baseUrl = Client.BaseUri.AbsoluteUri;
+ var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/firewallPolicies/{firewallPolicyName}/listIdpsSignatures").ToString();
+ _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName));
+ _url = _url.Replace("{firewallPolicyName}", System.Uri.EscapeDataString(firewallPolicyName));
+ _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId));
+ List _queryParameters = new List();
+ if (_queryParameters.Count > 0)
+ {
+ _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters);
+ }
+ // Create HTTP transport objects
+ var _httpRequest = new HttpRequestMessage();
+ HttpResponseMessage _httpResponse = null;
+ _httpRequest.Method = new HttpMethod("POST");
+ _httpRequest.RequestUri = new System.Uri(_url);
+ // Set Headers
+ if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value)
+ {
+ _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString());
+ }
+ if (Client.AcceptLanguage != null)
+ {
+ if (_httpRequest.Headers.Contains("accept-language"))
+ {
+ _httpRequest.Headers.Remove("accept-language");
+ }
+ _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage);
+ }
+
+
+ if (customHeaders != null)
+ {
+ foreach(var _header in customHeaders)
+ {
+ if (_httpRequest.Headers.Contains(_header.Key))
+ {
+ _httpRequest.Headers.Remove(_header.Key);
+ }
+ _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value);
+ }
+ }
+
+ // Serialize Request
+ string _requestContent = null;
+ if(parameters != null)
+ {
+ _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(parameters, Client.SerializationSettings);
+ _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8);
+ _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8");
+ }
+ // Set Credentials
+ if (Client.Credentials != null)
+ {
+ cancellationToken.ThrowIfCancellationRequested();
+ await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false);
+ }
+ // Send Request
+ if (_shouldTrace)
+ {
+ ServiceClientTracing.SendRequest(_invocationId, _httpRequest);
+ }
+ cancellationToken.ThrowIfCancellationRequested();
+ _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false);
+ if (_shouldTrace)
+ {
+ ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse);
+ }
+ HttpStatusCode _statusCode = _httpResponse.StatusCode;
+ cancellationToken.ThrowIfCancellationRequested();
+ string _responseContent = null;
+ if ((int)_statusCode != 200)
+ {
+ var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode));
+ try
+ {
+ _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
+ CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings);
+ if (_errorBody != null)
+ {
+ ex = new CloudException(_errorBody.Message);
+ ex.Body = _errorBody;
+ }
+ }
+ catch (JsonException)
+ {
+ // Ignore the exception
+ }
+ ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent);
+ ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent);
+ if (_httpResponse.Headers.Contains("x-ms-request-id"))
+ {
+ ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault();
+ }
+ if (_shouldTrace)
+ {
+ ServiceClientTracing.Error(_invocationId, ex);
+ }
+ _httpRequest.Dispose();
+ if (_httpResponse != null)
+ {
+ _httpResponse.Dispose();
+ }
+ throw ex;
+ }
+ // Create Result
+ var _result = new AzureOperationResponse();
+ _result.Request = _httpRequest;
+ _result.Response = _httpResponse;
+ if (_httpResponse.Headers.Contains("x-ms-request-id"))
+ {
+ _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault();
+ }
+ // Deserialize Response
+ if ((int)_statusCode == 200)
+ {
+ _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
+ try
+ {
+ _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings);
+ }
+ catch (JsonException ex)
+ {
+ _httpRequest.Dispose();
+ if (_httpResponse != null)
+ {
+ _httpResponse.Dispose();
+ }
+ throw new SerializationException("Unable to deserialize the response.", _responseContent, ex);
+ }
+ }
+ if (_shouldTrace)
+ {
+ ServiceClientTracing.Exit(_invocationId, _result);
+ }
+ return _result;
+ }
+
+ }
+}
diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/FirewallPolicyIdpsSignaturesOperationsExtensions.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/FirewallPolicyIdpsSignaturesOperationsExtensions.cs
new file mode 100644
index 000000000000..368ac1e2a861
--- /dev/null
+++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/FirewallPolicyIdpsSignaturesOperationsExtensions.cs
@@ -0,0 +1,69 @@
+//
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License. See License.txt in the project root for
+// license information.
+//
+// Code generated by Microsoft (R) AutoRest Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is
+// regenerated.
+//
+
+namespace Microsoft.Azure.Management.Network
+{
+ using Microsoft.Rest;
+ using Microsoft.Rest.Azure;
+ using Models;
+ using System.Threading;
+ using System.Threading.Tasks;
+
+ ///
+ /// Extension methods for FirewallPolicyIdpsSignaturesOperations.
+ ///
+ public static partial class FirewallPolicyIdpsSignaturesOperationsExtensions
+ {
+ ///
+ /// Retrieves the current status of IDPS signatures for the relevant policy
+ ///
+ ///
+ /// The operations group for this extension method.
+ ///
+ ///
+ /// The name of the resource group.
+ ///
+ ///
+ /// The name of the Firewall Policy.
+ ///
+ ///
+ ///
+ public static QueryResults List(this IFirewallPolicyIdpsSignaturesOperations operations, string resourceGroupName, string firewallPolicyName, IDPSQueryObject parameters)
+ {
+ return operations.ListAsync(resourceGroupName, firewallPolicyName, parameters).GetAwaiter().GetResult();
+ }
+
+ ///
+ /// Retrieves the current status of IDPS signatures for the relevant policy
+ ///
+ ///
+ /// The operations group for this extension method.
+ ///
+ ///
+ /// The name of the resource group.
+ ///
+ ///
+ /// The name of the Firewall Policy.
+ ///
+ ///
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ public static async Task ListAsync(this IFirewallPolicyIdpsSignaturesOperations operations, string resourceGroupName, string firewallPolicyName, IDPSQueryObject parameters, CancellationToken cancellationToken = default(CancellationToken))
+ {
+ using (var _result = await operations.ListWithHttpMessagesAsync(resourceGroupName, firewallPolicyName, parameters, null, cancellationToken).ConfigureAwait(false))
+ {
+ return _result.Body;
+ }
+ }
+
+ }
+}
diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/FirewallPolicyIdpsSignaturesOverridesOperations.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/FirewallPolicyIdpsSignaturesOverridesOperations.cs
new file mode 100644
index 000000000000..1e5c582ce038
--- /dev/null
+++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/FirewallPolicyIdpsSignaturesOverridesOperations.cs
@@ -0,0 +1,835 @@
+//
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License. See License.txt in the project root for
+// license information.
+//
+// Code generated by Microsoft (R) AutoRest Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is
+// regenerated.
+//
+
+namespace Microsoft.Azure.Management.Network
+{
+ using Microsoft.Rest;
+ using Microsoft.Rest.Azure;
+ using Models;
+ using Newtonsoft.Json;
+ using System.Collections;
+ using System.Collections.Generic;
+ using System.Linq;
+ using System.Net;
+ using System.Net.Http;
+ using System.Threading;
+ using System.Threading.Tasks;
+
+ ///
+ /// FirewallPolicyIdpsSignaturesOverridesOperations operations.
+ ///
+ internal partial class FirewallPolicyIdpsSignaturesOverridesOperations : IServiceOperations, IFirewallPolicyIdpsSignaturesOverridesOperations
+ {
+ ///
+ /// Initializes a new instance of the FirewallPolicyIdpsSignaturesOverridesOperations class.
+ ///
+ ///
+ /// Reference to the service client.
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ internal FirewallPolicyIdpsSignaturesOverridesOperations(NetworkManagementClient client)
+ {
+ if (client == null)
+ {
+ throw new System.ArgumentNullException("client");
+ }
+ Client = client;
+ }
+
+ ///
+ /// Gets a reference to the NetworkManagementClient
+ ///
+ public NetworkManagementClient Client { get; private set; }
+
+ ///
+ /// Will update the status of policy's signature overrides for IDPS
+ ///
+ ///
+ /// Will contain all properties of the object to put
+ ///
+ ///
+ /// The name of the resource group.
+ ///
+ ///
+ /// The name of the Firewall Policy.
+ ///
+ ///
+ /// Headers that will be added to request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ ///
+ /// Thrown when the operation returned an invalid status code
+ ///
+ ///
+ /// Thrown when unable to deserialize the response
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ ///
+ /// A response object containing the response body and response headers.
+ ///
+ public async Task> PatchWithHttpMessagesAsync(SignaturesOverrides parameters, string resourceGroupName, string firewallPolicyName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ {
+ if (parameters == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "parameters");
+ }
+ if (resourceGroupName == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName");
+ }
+ if (firewallPolicyName == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "firewallPolicyName");
+ }
+ if (Client.SubscriptionId == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
+ }
+ // Tracing
+ bool _shouldTrace = ServiceClientTracing.IsEnabled;
+ string _invocationId = null;
+ if (_shouldTrace)
+ {
+ _invocationId = ServiceClientTracing.NextInvocationId.ToString();
+ Dictionary tracingParameters = new Dictionary();
+ tracingParameters.Add("parameters", parameters);
+ tracingParameters.Add("resourceGroupName", resourceGroupName);
+ tracingParameters.Add("firewallPolicyName", firewallPolicyName);
+ tracingParameters.Add("cancellationToken", cancellationToken);
+ ServiceClientTracing.Enter(_invocationId, this, "Patch", tracingParameters);
+ }
+ // Construct URL
+ var _baseUrl = Client.BaseUri.AbsoluteUri;
+ var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/firewallPolicies/{firewallPolicyName}/signatureOverrides/default").ToString();
+ _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName));
+ _url = _url.Replace("{firewallPolicyName}", System.Uri.EscapeDataString(firewallPolicyName));
+ _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId));
+ List _queryParameters = new List();
+ if (_queryParameters.Count > 0)
+ {
+ _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters);
+ }
+ // Create HTTP transport objects
+ var _httpRequest = new HttpRequestMessage();
+ HttpResponseMessage _httpResponse = null;
+ _httpRequest.Method = new HttpMethod("PATCH");
+ _httpRequest.RequestUri = new System.Uri(_url);
+ // Set Headers
+ if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value)
+ {
+ _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString());
+ }
+ if (Client.AcceptLanguage != null)
+ {
+ if (_httpRequest.Headers.Contains("accept-language"))
+ {
+ _httpRequest.Headers.Remove("accept-language");
+ }
+ _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage);
+ }
+
+
+ if (customHeaders != null)
+ {
+ foreach(var _header in customHeaders)
+ {
+ if (_httpRequest.Headers.Contains(_header.Key))
+ {
+ _httpRequest.Headers.Remove(_header.Key);
+ }
+ _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value);
+ }
+ }
+
+ // Serialize Request
+ string _requestContent = null;
+ if(parameters != null)
+ {
+ _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(parameters, Client.SerializationSettings);
+ _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8);
+ _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8");
+ }
+ // Set Credentials
+ if (Client.Credentials != null)
+ {
+ cancellationToken.ThrowIfCancellationRequested();
+ await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false);
+ }
+ // Send Request
+ if (_shouldTrace)
+ {
+ ServiceClientTracing.SendRequest(_invocationId, _httpRequest);
+ }
+ cancellationToken.ThrowIfCancellationRequested();
+ _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false);
+ if (_shouldTrace)
+ {
+ ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse);
+ }
+ HttpStatusCode _statusCode = _httpResponse.StatusCode;
+ cancellationToken.ThrowIfCancellationRequested();
+ string _responseContent = null;
+ if ((int)_statusCode != 200)
+ {
+ var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode));
+ try
+ {
+ _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
+ CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings);
+ if (_errorBody != null)
+ {
+ ex = new CloudException(_errorBody.Message);
+ ex.Body = _errorBody;
+ }
+ }
+ catch (JsonException)
+ {
+ // Ignore the exception
+ }
+ ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent);
+ ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent);
+ if (_httpResponse.Headers.Contains("x-ms-request-id"))
+ {
+ ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault();
+ }
+ if (_shouldTrace)
+ {
+ ServiceClientTracing.Error(_invocationId, ex);
+ }
+ _httpRequest.Dispose();
+ if (_httpResponse != null)
+ {
+ _httpResponse.Dispose();
+ }
+ throw ex;
+ }
+ // Create Result
+ var _result = new AzureOperationResponse();
+ _result.Request = _httpRequest;
+ _result.Response = _httpResponse;
+ if (_httpResponse.Headers.Contains("x-ms-request-id"))
+ {
+ _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault();
+ }
+ // Deserialize Response
+ if ((int)_statusCode == 200)
+ {
+ _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
+ try
+ {
+ _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings);
+ }
+ catch (JsonException ex)
+ {
+ _httpRequest.Dispose();
+ if (_httpResponse != null)
+ {
+ _httpResponse.Dispose();
+ }
+ throw new SerializationException("Unable to deserialize the response.", _responseContent, ex);
+ }
+ }
+ if (_shouldTrace)
+ {
+ ServiceClientTracing.Exit(_invocationId, _result);
+ }
+ return _result;
+ }
+
+ ///
+ /// Will override/create a new signature overrides for the policy's IDPS
+ ///
+ ///
+ /// Will contain all properties of the object to put
+ ///
+ ///
+ /// The name of the resource group.
+ ///
+ ///
+ /// The name of the Firewall Policy.
+ ///
+ ///
+ /// Headers that will be added to request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ ///
+ /// Thrown when the operation returned an invalid status code
+ ///
+ ///
+ /// Thrown when unable to deserialize the response
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ ///
+ /// A response object containing the response body and response headers.
+ ///
+ public async Task> PutWithHttpMessagesAsync(SignaturesOverrides parameters, string resourceGroupName, string firewallPolicyName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ {
+ if (parameters == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "parameters");
+ }
+ if (resourceGroupName == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName");
+ }
+ if (firewallPolicyName == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "firewallPolicyName");
+ }
+ if (Client.SubscriptionId == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
+ }
+ // Tracing
+ bool _shouldTrace = ServiceClientTracing.IsEnabled;
+ string _invocationId = null;
+ if (_shouldTrace)
+ {
+ _invocationId = ServiceClientTracing.NextInvocationId.ToString();
+ Dictionary tracingParameters = new Dictionary();
+ tracingParameters.Add("parameters", parameters);
+ tracingParameters.Add("resourceGroupName", resourceGroupName);
+ tracingParameters.Add("firewallPolicyName", firewallPolicyName);
+ tracingParameters.Add("cancellationToken", cancellationToken);
+ ServiceClientTracing.Enter(_invocationId, this, "Put", tracingParameters);
+ }
+ // Construct URL
+ var _baseUrl = Client.BaseUri.AbsoluteUri;
+ var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/firewallPolicies/{firewallPolicyName}/signatureOverrides/default").ToString();
+ _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName));
+ _url = _url.Replace("{firewallPolicyName}", System.Uri.EscapeDataString(firewallPolicyName));
+ _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId));
+ List _queryParameters = new List();
+ if (_queryParameters.Count > 0)
+ {
+ _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters);
+ }
+ // Create HTTP transport objects
+ var _httpRequest = new HttpRequestMessage();
+ HttpResponseMessage _httpResponse = null;
+ _httpRequest.Method = new HttpMethod("PUT");
+ _httpRequest.RequestUri = new System.Uri(_url);
+ // Set Headers
+ if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value)
+ {
+ _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString());
+ }
+ if (Client.AcceptLanguage != null)
+ {
+ if (_httpRequest.Headers.Contains("accept-language"))
+ {
+ _httpRequest.Headers.Remove("accept-language");
+ }
+ _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage);
+ }
+
+
+ if (customHeaders != null)
+ {
+ foreach(var _header in customHeaders)
+ {
+ if (_httpRequest.Headers.Contains(_header.Key))
+ {
+ _httpRequest.Headers.Remove(_header.Key);
+ }
+ _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value);
+ }
+ }
+
+ // Serialize Request
+ string _requestContent = null;
+ if(parameters != null)
+ {
+ _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(parameters, Client.SerializationSettings);
+ _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8);
+ _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8");
+ }
+ // Set Credentials
+ if (Client.Credentials != null)
+ {
+ cancellationToken.ThrowIfCancellationRequested();
+ await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false);
+ }
+ // Send Request
+ if (_shouldTrace)
+ {
+ ServiceClientTracing.SendRequest(_invocationId, _httpRequest);
+ }
+ cancellationToken.ThrowIfCancellationRequested();
+ _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false);
+ if (_shouldTrace)
+ {
+ ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse);
+ }
+ HttpStatusCode _statusCode = _httpResponse.StatusCode;
+ cancellationToken.ThrowIfCancellationRequested();
+ string _responseContent = null;
+ if ((int)_statusCode != 200)
+ {
+ var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode));
+ try
+ {
+ _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
+ CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings);
+ if (_errorBody != null)
+ {
+ ex = new CloudException(_errorBody.Message);
+ ex.Body = _errorBody;
+ }
+ }
+ catch (JsonException)
+ {
+ // Ignore the exception
+ }
+ ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent);
+ ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent);
+ if (_httpResponse.Headers.Contains("x-ms-request-id"))
+ {
+ ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault();
+ }
+ if (_shouldTrace)
+ {
+ ServiceClientTracing.Error(_invocationId, ex);
+ }
+ _httpRequest.Dispose();
+ if (_httpResponse != null)
+ {
+ _httpResponse.Dispose();
+ }
+ throw ex;
+ }
+ // Create Result
+ var _result = new AzureOperationResponse();
+ _result.Request = _httpRequest;
+ _result.Response = _httpResponse;
+ if (_httpResponse.Headers.Contains("x-ms-request-id"))
+ {
+ _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault();
+ }
+ // Deserialize Response
+ if ((int)_statusCode == 200)
+ {
+ _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
+ try
+ {
+ _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings);
+ }
+ catch (JsonException ex)
+ {
+ _httpRequest.Dispose();
+ if (_httpResponse != null)
+ {
+ _httpResponse.Dispose();
+ }
+ throw new SerializationException("Unable to deserialize the response.", _responseContent, ex);
+ }
+ }
+ if (_shouldTrace)
+ {
+ ServiceClientTracing.Exit(_invocationId, _result);
+ }
+ return _result;
+ }
+
+ ///
+ /// Returns all signatures overrides for a specific policy.
+ ///
+ ///
+ /// The name of the resource group.
+ ///
+ ///
+ /// The name of the Firewall Policy.
+ ///
+ ///
+ /// Headers that will be added to request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ ///
+ /// Thrown when the operation returned an invalid status code
+ ///
+ ///
+ /// Thrown when unable to deserialize the response
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ ///
+ /// A response object containing the response body and response headers.
+ ///
+ public async Task> GetWithHttpMessagesAsync(string resourceGroupName, string firewallPolicyName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ {
+ if (resourceGroupName == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName");
+ }
+ if (firewallPolicyName == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "firewallPolicyName");
+ }
+ if (Client.SubscriptionId == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
+ }
+ // Tracing
+ bool _shouldTrace = ServiceClientTracing.IsEnabled;
+ string _invocationId = null;
+ if (_shouldTrace)
+ {
+ _invocationId = ServiceClientTracing.NextInvocationId.ToString();
+ Dictionary tracingParameters = new Dictionary();
+ tracingParameters.Add("resourceGroupName", resourceGroupName);
+ tracingParameters.Add("firewallPolicyName", firewallPolicyName);
+ tracingParameters.Add("cancellationToken", cancellationToken);
+ ServiceClientTracing.Enter(_invocationId, this, "Get", tracingParameters);
+ }
+ // Construct URL
+ var _baseUrl = Client.BaseUri.AbsoluteUri;
+ var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/firewallPolicies/{firewallPolicyName}/signatureOverrides/default").ToString();
+ _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName));
+ _url = _url.Replace("{firewallPolicyName}", System.Uri.EscapeDataString(firewallPolicyName));
+ _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId));
+ List _queryParameters = new List();
+ if (_queryParameters.Count > 0)
+ {
+ _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters);
+ }
+ // Create HTTP transport objects
+ var _httpRequest = new HttpRequestMessage();
+ HttpResponseMessage _httpResponse = null;
+ _httpRequest.Method = new HttpMethod("GET");
+ _httpRequest.RequestUri = new System.Uri(_url);
+ // Set Headers
+ if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value)
+ {
+ _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString());
+ }
+ if (Client.AcceptLanguage != null)
+ {
+ if (_httpRequest.Headers.Contains("accept-language"))
+ {
+ _httpRequest.Headers.Remove("accept-language");
+ }
+ _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage);
+ }
+
+
+ if (customHeaders != null)
+ {
+ foreach(var _header in customHeaders)
+ {
+ if (_httpRequest.Headers.Contains(_header.Key))
+ {
+ _httpRequest.Headers.Remove(_header.Key);
+ }
+ _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value);
+ }
+ }
+
+ // Serialize Request
+ string _requestContent = null;
+ // Set Credentials
+ if (Client.Credentials != null)
+ {
+ cancellationToken.ThrowIfCancellationRequested();
+ await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false);
+ }
+ // Send Request
+ if (_shouldTrace)
+ {
+ ServiceClientTracing.SendRequest(_invocationId, _httpRequest);
+ }
+ cancellationToken.ThrowIfCancellationRequested();
+ _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false);
+ if (_shouldTrace)
+ {
+ ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse);
+ }
+ HttpStatusCode _statusCode = _httpResponse.StatusCode;
+ cancellationToken.ThrowIfCancellationRequested();
+ string _responseContent = null;
+ if ((int)_statusCode != 200)
+ {
+ var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode));
+ try
+ {
+ _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
+ CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings);
+ if (_errorBody != null)
+ {
+ ex = new CloudException(_errorBody.Message);
+ ex.Body = _errorBody;
+ }
+ }
+ catch (JsonException)
+ {
+ // Ignore the exception
+ }
+ ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent);
+ ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent);
+ if (_httpResponse.Headers.Contains("x-ms-request-id"))
+ {
+ ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault();
+ }
+ if (_shouldTrace)
+ {
+ ServiceClientTracing.Error(_invocationId, ex);
+ }
+ _httpRequest.Dispose();
+ if (_httpResponse != null)
+ {
+ _httpResponse.Dispose();
+ }
+ throw ex;
+ }
+ // Create Result
+ var _result = new AzureOperationResponse();
+ _result.Request = _httpRequest;
+ _result.Response = _httpResponse;
+ if (_httpResponse.Headers.Contains("x-ms-request-id"))
+ {
+ _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault();
+ }
+ // Deserialize Response
+ if ((int)_statusCode == 200)
+ {
+ _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
+ try
+ {
+ _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings);
+ }
+ catch (JsonException ex)
+ {
+ _httpRequest.Dispose();
+ if (_httpResponse != null)
+ {
+ _httpResponse.Dispose();
+ }
+ throw new SerializationException("Unable to deserialize the response.", _responseContent, ex);
+ }
+ }
+ if (_shouldTrace)
+ {
+ ServiceClientTracing.Exit(_invocationId, _result);
+ }
+ return _result;
+ }
+
+ ///
+ /// Returns all signatures overrides objects for a specific policy as a list
+ /// containing a single value.
+ ///
+ ///
+ /// The name of the resource group.
+ ///
+ ///
+ /// The name of the Firewall Policy.
+ ///
+ ///
+ /// Headers that will be added to request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ ///
+ /// Thrown when the operation returned an invalid status code
+ ///
+ ///
+ /// Thrown when unable to deserialize the response
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ ///
+ /// A response object containing the response body and response headers.
+ ///
+ public async Task> ListWithHttpMessagesAsync(string resourceGroupName, string firewallPolicyName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ {
+ if (resourceGroupName == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName");
+ }
+ if (firewallPolicyName == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "firewallPolicyName");
+ }
+ if (Client.SubscriptionId == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
+ }
+ // Tracing
+ bool _shouldTrace = ServiceClientTracing.IsEnabled;
+ string _invocationId = null;
+ if (_shouldTrace)
+ {
+ _invocationId = ServiceClientTracing.NextInvocationId.ToString();
+ Dictionary tracingParameters = new Dictionary();
+ tracingParameters.Add("resourceGroupName", resourceGroupName);
+ tracingParameters.Add("firewallPolicyName", firewallPolicyName);
+ tracingParameters.Add("cancellationToken", cancellationToken);
+ ServiceClientTracing.Enter(_invocationId, this, "List", tracingParameters);
+ }
+ // Construct URL
+ var _baseUrl = Client.BaseUri.AbsoluteUri;
+ var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/firewallPolicies/{firewallPolicyName}/signatureOverrides").ToString();
+ _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName));
+ _url = _url.Replace("{firewallPolicyName}", System.Uri.EscapeDataString(firewallPolicyName));
+ _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId));
+ List _queryParameters = new List();
+ if (_queryParameters.Count > 0)
+ {
+ _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters);
+ }
+ // Create HTTP transport objects
+ var _httpRequest = new HttpRequestMessage();
+ HttpResponseMessage _httpResponse = null;
+ _httpRequest.Method = new HttpMethod("GET");
+ _httpRequest.RequestUri = new System.Uri(_url);
+ // Set Headers
+ if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value)
+ {
+ _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString());
+ }
+ if (Client.AcceptLanguage != null)
+ {
+ if (_httpRequest.Headers.Contains("accept-language"))
+ {
+ _httpRequest.Headers.Remove("accept-language");
+ }
+ _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage);
+ }
+
+
+ if (customHeaders != null)
+ {
+ foreach(var _header in customHeaders)
+ {
+ if (_httpRequest.Headers.Contains(_header.Key))
+ {
+ _httpRequest.Headers.Remove(_header.Key);
+ }
+ _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value);
+ }
+ }
+
+ // Serialize Request
+ string _requestContent = null;
+ // Set Credentials
+ if (Client.Credentials != null)
+ {
+ cancellationToken.ThrowIfCancellationRequested();
+ await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false);
+ }
+ // Send Request
+ if (_shouldTrace)
+ {
+ ServiceClientTracing.SendRequest(_invocationId, _httpRequest);
+ }
+ cancellationToken.ThrowIfCancellationRequested();
+ _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false);
+ if (_shouldTrace)
+ {
+ ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse);
+ }
+ HttpStatusCode _statusCode = _httpResponse.StatusCode;
+ cancellationToken.ThrowIfCancellationRequested();
+ string _responseContent = null;
+ if ((int)_statusCode != 200)
+ {
+ var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode));
+ try
+ {
+ _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
+ CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings);
+ if (_errorBody != null)
+ {
+ ex = new CloudException(_errorBody.Message);
+ ex.Body = _errorBody;
+ }
+ }
+ catch (JsonException)
+ {
+ // Ignore the exception
+ }
+ ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent);
+ ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent);
+ if (_httpResponse.Headers.Contains("x-ms-request-id"))
+ {
+ ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault();
+ }
+ if (_shouldTrace)
+ {
+ ServiceClientTracing.Error(_invocationId, ex);
+ }
+ _httpRequest.Dispose();
+ if (_httpResponse != null)
+ {
+ _httpResponse.Dispose();
+ }
+ throw ex;
+ }
+ // Create Result
+ var _result = new AzureOperationResponse();
+ _result.Request = _httpRequest;
+ _result.Response = _httpResponse;
+ if (_httpResponse.Headers.Contains("x-ms-request-id"))
+ {
+ _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault();
+ }
+ // Deserialize Response
+ if ((int)_statusCode == 200)
+ {
+ _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
+ try
+ {
+ _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings);
+ }
+ catch (JsonException ex)
+ {
+ _httpRequest.Dispose();
+ if (_httpResponse != null)
+ {
+ _httpResponse.Dispose();
+ }
+ throw new SerializationException("Unable to deserialize the response.", _responseContent, ex);
+ }
+ }
+ if (_shouldTrace)
+ {
+ ServiceClientTracing.Exit(_invocationId, _result);
+ }
+ return _result;
+ }
+
+ }
+}
diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/FirewallPolicyIdpsSignaturesOverridesOperationsExtensions.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/FirewallPolicyIdpsSignaturesOverridesOperationsExtensions.cs
new file mode 100644
index 000000000000..86450312d04a
--- /dev/null
+++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/FirewallPolicyIdpsSignaturesOverridesOperationsExtensions.cs
@@ -0,0 +1,199 @@
+//
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License. See License.txt in the project root for
+// license information.
+//
+// Code generated by Microsoft (R) AutoRest Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is
+// regenerated.
+//
+
+namespace Microsoft.Azure.Management.Network
+{
+ using Microsoft.Rest;
+ using Microsoft.Rest.Azure;
+ using Models;
+ using System.Threading;
+ using System.Threading.Tasks;
+
+ ///
+ /// Extension methods for FirewallPolicyIdpsSignaturesOverridesOperations.
+ ///
+ public static partial class FirewallPolicyIdpsSignaturesOverridesOperationsExtensions
+ {
+ ///
+ /// Will update the status of policy's signature overrides for IDPS
+ ///
+ ///
+ /// The operations group for this extension method.
+ ///
+ ///
+ /// Will contain all properties of the object to put
+ ///
+ ///
+ /// The name of the resource group.
+ ///
+ ///
+ /// The name of the Firewall Policy.
+ ///
+ public static SignaturesOverrides Patch(this IFirewallPolicyIdpsSignaturesOverridesOperations operations, SignaturesOverrides parameters, string resourceGroupName, string firewallPolicyName)
+ {
+ return operations.PatchAsync(parameters, resourceGroupName, firewallPolicyName).GetAwaiter().GetResult();
+ }
+
+ ///
+ /// Will update the status of policy's signature overrides for IDPS
+ ///
+ ///
+ /// The operations group for this extension method.
+ ///
+ ///
+ /// Will contain all properties of the object to put
+ ///
+ ///
+ /// The name of the resource group.
+ ///
+ ///
+ /// The name of the Firewall Policy.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ public static async Task PatchAsync(this IFirewallPolicyIdpsSignaturesOverridesOperations operations, SignaturesOverrides parameters, string resourceGroupName, string firewallPolicyName, CancellationToken cancellationToken = default(CancellationToken))
+ {
+ using (var _result = await operations.PatchWithHttpMessagesAsync(parameters, resourceGroupName, firewallPolicyName, null, cancellationToken).ConfigureAwait(false))
+ {
+ return _result.Body;
+ }
+ }
+
+ ///
+ /// Will override/create a new signature overrides for the policy's IDPS
+ ///
+ ///
+ /// The operations group for this extension method.
+ ///
+ ///
+ /// Will contain all properties of the object to put
+ ///
+ ///
+ /// The name of the resource group.
+ ///
+ ///
+ /// The name of the Firewall Policy.
+ ///
+ public static SignaturesOverrides Put(this IFirewallPolicyIdpsSignaturesOverridesOperations operations, SignaturesOverrides parameters, string resourceGroupName, string firewallPolicyName)
+ {
+ return operations.PutAsync(parameters, resourceGroupName, firewallPolicyName).GetAwaiter().GetResult();
+ }
+
+ ///
+ /// Will override/create a new signature overrides for the policy's IDPS
+ ///
+ ///
+ /// The operations group for this extension method.
+ ///
+ ///
+ /// Will contain all properties of the object to put
+ ///
+ ///
+ /// The name of the resource group.
+ ///
+ ///
+ /// The name of the Firewall Policy.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ public static async Task PutAsync(this IFirewallPolicyIdpsSignaturesOverridesOperations operations, SignaturesOverrides parameters, string resourceGroupName, string firewallPolicyName, CancellationToken cancellationToken = default(CancellationToken))
+ {
+ using (var _result = await operations.PutWithHttpMessagesAsync(parameters, resourceGroupName, firewallPolicyName, null, cancellationToken).ConfigureAwait(false))
+ {
+ return _result.Body;
+ }
+ }
+
+ ///
+ /// Returns all signatures overrides for a specific policy.
+ ///
+ ///
+ /// The operations group for this extension method.
+ ///
+ ///
+ /// The name of the resource group.
+ ///
+ ///
+ /// The name of the Firewall Policy.
+ ///
+ public static SignaturesOverrides Get(this IFirewallPolicyIdpsSignaturesOverridesOperations operations, string resourceGroupName, string firewallPolicyName)
+ {
+ return operations.GetAsync(resourceGroupName, firewallPolicyName).GetAwaiter().GetResult();
+ }
+
+ ///
+ /// Returns all signatures overrides for a specific policy.
+ ///
+ ///
+ /// The operations group for this extension method.
+ ///
+ ///
+ /// The name of the resource group.
+ ///
+ ///
+ /// The name of the Firewall Policy.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ public static async Task GetAsync(this IFirewallPolicyIdpsSignaturesOverridesOperations operations, string resourceGroupName, string firewallPolicyName, CancellationToken cancellationToken = default(CancellationToken))
+ {
+ using (var _result = await operations.GetWithHttpMessagesAsync(resourceGroupName, firewallPolicyName, null, cancellationToken).ConfigureAwait(false))
+ {
+ return _result.Body;
+ }
+ }
+
+ ///
+ /// Returns all signatures overrides objects for a specific policy as a list
+ /// containing a single value.
+ ///
+ ///
+ /// The operations group for this extension method.
+ ///
+ ///
+ /// The name of the resource group.
+ ///
+ ///
+ /// The name of the Firewall Policy.
+ ///
+ public static SignaturesOverridesList List(this IFirewallPolicyIdpsSignaturesOverridesOperations operations, string resourceGroupName, string firewallPolicyName)
+ {
+ return operations.ListAsync(resourceGroupName, firewallPolicyName).GetAwaiter().GetResult();
+ }
+
+ ///
+ /// Returns all signatures overrides objects for a specific policy as a list
+ /// containing a single value.
+ ///
+ ///
+ /// The operations group for this extension method.
+ ///
+ ///
+ /// The name of the resource group.
+ ///
+ ///
+ /// The name of the Firewall Policy.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ public static async Task ListAsync(this IFirewallPolicyIdpsSignaturesOverridesOperations operations, string resourceGroupName, string firewallPolicyName, CancellationToken cancellationToken = default(CancellationToken))
+ {
+ using (var _result = await operations.ListWithHttpMessagesAsync(resourceGroupName, firewallPolicyName, null, cancellationToken).ConfigureAwait(false))
+ {
+ return _result.Body;
+ }
+ }
+
+ }
+}
diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/FirewallPolicyRuleCollectionGroupsOperations.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/FirewallPolicyRuleCollectionGroupsOperations.cs
index 0453aa93d725..cc8ea7dea28d 100644
--- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/FirewallPolicyRuleCollectionGroupsOperations.cs
+++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/FirewallPolicyRuleCollectionGroupsOperations.cs
@@ -126,7 +126,7 @@ internal FirewallPolicyRuleCollectionGroupsOperations(NetworkManagementClient cl
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2021-03-01";
+ string apiVersion = "2021-05-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -351,7 +351,7 @@ internal FirewallPolicyRuleCollectionGroupsOperations(NetworkManagementClient cl
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2021-03-01";
+ string apiVersion = "2021-05-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -549,7 +549,7 @@ internal FirewallPolicyRuleCollectionGroupsOperations(NetworkManagementClient cl
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2021-03-01";
+ string apiVersion = "2021-05-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -746,7 +746,7 @@ internal FirewallPolicyRuleCollectionGroupsOperations(NetworkManagementClient cl
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2021-03-01";
+ string apiVersion = "2021-05-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/FlowLogsOperations.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/FlowLogsOperations.cs
index 542951727b92..1001315f31fa 100644
--- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/FlowLogsOperations.cs
+++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/FlowLogsOperations.cs
@@ -136,7 +136,7 @@ internal FlowLogsOperations(NetworkManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2021-03-01";
+ string apiVersion = "2021-05-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -341,7 +341,7 @@ internal FlowLogsOperations(NetworkManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2021-03-01";
+ string apiVersion = "2021-05-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -557,7 +557,7 @@ internal FlowLogsOperations(NetworkManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2021-03-01";
+ string apiVersion = "2021-05-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -764,7 +764,7 @@ internal FlowLogsOperations(NetworkManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2021-03-01";
+ string apiVersion = "2021-05-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -984,7 +984,7 @@ internal FlowLogsOperations(NetworkManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2021-03-01";
+ string apiVersion = "2021-05-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/HubRouteTablesOperations.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/HubRouteTablesOperations.cs
index b9208e25df5b..0dcc024955a1 100644
--- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/HubRouteTablesOperations.cs
+++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/HubRouteTablesOperations.cs
@@ -130,7 +130,7 @@ internal HubRouteTablesOperations(NetworkManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "routeTableName");
}
- string apiVersion = "2021-03-01";
+ string apiVersion = "2021-05-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -351,7 +351,7 @@ internal HubRouteTablesOperations(NetworkManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "virtualHubName");
}
- string apiVersion = "2021-03-01";
+ string apiVersion = "2021-05-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -560,7 +560,7 @@ internal HubRouteTablesOperations(NetworkManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "routeTableParameters");
}
- string apiVersion = "2021-03-01";
+ string apiVersion = "2021-05-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -785,7 +785,7 @@ internal HubRouteTablesOperations(NetworkManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "routeTableName");
}
- string apiVersion = "2021-03-01";
+ string apiVersion = "2021-05-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/HubVirtualNetworkConnectionsOperations.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/HubVirtualNetworkConnectionsOperations.cs
index 5105180c4c45..e0f798fb448c 100644
--- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/HubVirtualNetworkConnectionsOperations.cs
+++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/HubVirtualNetworkConnectionsOperations.cs
@@ -155,7 +155,7 @@ internal HubVirtualNetworkConnectionsOperations(NetworkManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "connectionName");
}
- string apiVersion = "2021-03-01";
+ string apiVersion = "2021-05-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -351,7 +351,7 @@ internal HubVirtualNetworkConnectionsOperations(NetworkManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "virtualHubName");
}
- string apiVersion = "2021-03-01";
+ string apiVersion = "2021-05-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -560,7 +560,7 @@ internal HubVirtualNetworkConnectionsOperations(NetworkManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "hubVirtualNetworkConnectionParameters");
}
- string apiVersion = "2021-03-01";
+ string apiVersion = "2021-05-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -785,7 +785,7 @@ internal HubVirtualNetworkConnectionsOperations(NetworkManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "connectionName");
}
- string apiVersion = "2021-03-01";
+ string apiVersion = "2021-05-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/IFirewallPolicyIdpsSignaturesFilterValuesOperations.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/IFirewallPolicyIdpsSignaturesFilterValuesOperations.cs
new file mode 100644
index 000000000000..8d907f2f8689
--- /dev/null
+++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/IFirewallPolicyIdpsSignaturesFilterValuesOperations.cs
@@ -0,0 +1,54 @@
+//
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License. See License.txt in the project root for
+// license information.
+//
+// Code generated by Microsoft (R) AutoRest Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is
+// regenerated.
+//
+
+namespace Microsoft.Azure.Management.Network
+{
+ using Microsoft.Rest;
+ using Microsoft.Rest.Azure;
+ using Models;
+ using System.Collections;
+ using System.Collections.Generic;
+ using System.Threading;
+ using System.Threading.Tasks;
+
+ ///
+ /// FirewallPolicyIdpsSignaturesFilterValuesOperations operations.
+ ///
+ public partial interface IFirewallPolicyIdpsSignaturesFilterValuesOperations
+ {
+ ///
+ /// Retrieves the current filter values for the signatures overrides
+ ///
+ ///
+ ///
+ ///
+ /// The name of the resource group.
+ ///
+ ///
+ /// The name of the Firewall Policy.
+ ///
+ ///
+ /// The headers that will be added to request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ ///
+ /// Thrown when the operation returned an invalid status code
+ ///
+ ///
+ /// Thrown when unable to deserialize the response
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ Task> ListWithHttpMessagesAsync(SignatureOverridesFilterValuesQuery parameters, string resourceGroupName, string firewallPolicyName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ }
+}
diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/IFirewallPolicyIdpsSignaturesOperations.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/IFirewallPolicyIdpsSignaturesOperations.cs
new file mode 100644
index 000000000000..9e1337172959
--- /dev/null
+++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/IFirewallPolicyIdpsSignaturesOperations.cs
@@ -0,0 +1,55 @@
+//
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License. See License.txt in the project root for
+// license information.
+//
+// Code generated by Microsoft (R) AutoRest Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is
+// regenerated.
+//
+
+namespace Microsoft.Azure.Management.Network
+{
+ using Microsoft.Rest;
+ using Microsoft.Rest.Azure;
+ using Models;
+ using System.Collections;
+ using System.Collections.Generic;
+ using System.Threading;
+ using System.Threading.Tasks;
+
+ ///
+ /// FirewallPolicyIdpsSignaturesOperations operations.
+ ///
+ public partial interface IFirewallPolicyIdpsSignaturesOperations
+ {
+ ///
+ /// Retrieves the current status of IDPS signatures for the relevant
+ /// policy
+ ///
+ ///
+ /// The name of the resource group.
+ ///
+ ///
+ /// The name of the Firewall Policy.
+ ///
+ ///
+ ///
+ ///
+ /// The headers that will be added to request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ ///
+ /// Thrown when the operation returned an invalid status code
+ ///
+ ///
+ /// Thrown when unable to deserialize the response
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ Task> ListWithHttpMessagesAsync(string resourceGroupName, string firewallPolicyName, IDPSQueryObject parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ }
+}
diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/IFirewallPolicyIdpsSignaturesOverridesOperations.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/IFirewallPolicyIdpsSignaturesOverridesOperations.cs
new file mode 100644
index 000000000000..98de42c51bfb
--- /dev/null
+++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/IFirewallPolicyIdpsSignaturesOverridesOperations.cs
@@ -0,0 +1,135 @@
+//
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License. See License.txt in the project root for
+// license information.
+//
+// Code generated by Microsoft (R) AutoRest Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is
+// regenerated.
+//
+
+namespace Microsoft.Azure.Management.Network
+{
+ using Microsoft.Rest;
+ using Microsoft.Rest.Azure;
+ using Models;
+ using System.Collections;
+ using System.Collections.Generic;
+ using System.Threading;
+ using System.Threading.Tasks;
+
+ ///
+ /// FirewallPolicyIdpsSignaturesOverridesOperations operations.
+ ///
+ public partial interface IFirewallPolicyIdpsSignaturesOverridesOperations
+ {
+ ///
+ /// Will update the status of policy's signature overrides for IDPS
+ ///
+ ///
+ /// Will contain all properties of the object to put
+ ///
+ ///
+ /// The name of the resource group.
+ ///
+ ///
+ /// The name of the Firewall Policy.
+ ///
+ ///
+ /// The headers that will be added to request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ ///
+ /// Thrown when the operation returned an invalid status code
+ ///
+ ///
+ /// Thrown when unable to deserialize the response
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ Task> PatchWithHttpMessagesAsync(SignaturesOverrides parameters, string resourceGroupName, string firewallPolicyName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ ///
+ /// Will override/create a new signature overrides for the policy's
+ /// IDPS
+ ///
+ ///
+ /// Will contain all properties of the object to put
+ ///
+ ///
+ /// The name of the resource group.
+ ///
+ ///
+ /// The name of the Firewall Policy.
+ ///
+ ///
+ /// The headers that will be added to request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ ///
+ /// Thrown when the operation returned an invalid status code
+ ///
+ ///
+ /// Thrown when unable to deserialize the response
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ Task> PutWithHttpMessagesAsync(SignaturesOverrides parameters, string resourceGroupName, string firewallPolicyName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ ///
+ /// Returns all signatures overrides for a specific policy.
+ ///
+ ///
+ /// The name of the resource group.
+ ///
+ ///
+ /// The name of the Firewall Policy.
+ ///
+ ///
+ /// The headers that will be added to request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ ///
+ /// Thrown when the operation returned an invalid status code
+ ///
+ ///
+ /// Thrown when unable to deserialize the response
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ Task> GetWithHttpMessagesAsync(string resourceGroupName, string firewallPolicyName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ ///
+ /// Returns all signatures overrides objects for a specific policy as a
+ /// list containing a single value.
+ ///
+ ///
+ /// The name of the resource group.
+ ///
+ ///
+ /// The name of the Firewall Policy.
+ ///
+ ///
+ /// The headers that will be added to request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ ///
+ /// Thrown when the operation returned an invalid status code
+ ///
+ ///
+ /// Thrown when unable to deserialize the response
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ Task> ListWithHttpMessagesAsync(string resourceGroupName, string firewallPolicyName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ }
+}
diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/IInboundNatRulesOperations.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/IInboundNatRulesOperations.cs
index ed60fd2e3f95..52e4fb97a766 100644
--- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/IInboundNatRulesOperations.cs
+++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/IInboundNatRulesOperations.cs
@@ -24,7 +24,7 @@ namespace Microsoft.Azure.Management.Network
public partial interface IInboundNatRulesOperations
{
///
- /// Gets all the inbound nat rules in a load balancer.
+ /// Gets all the inbound NAT rules in a load balancer.
///
///
/// The name of the resource group.
@@ -49,7 +49,7 @@ public partial interface IInboundNatRulesOperations
///
Task>> ListWithHttpMessagesAsync(string resourceGroupName, string loadBalancerName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
- /// Deletes the specified load balancer inbound nat rule.
+ /// Deletes the specified load balancer inbound NAT rule.
///
///
/// The name of the resource group.
@@ -58,7 +58,7 @@ public partial interface IInboundNatRulesOperations
/// The name of the load balancer.
///
///
- /// The name of the inbound nat rule.
+ /// The name of the inbound NAT rule.
///
///
/// The headers that will be added to request.
@@ -74,7 +74,7 @@ public partial interface IInboundNatRulesOperations
///
Task DeleteWithHttpMessagesAsync(string resourceGroupName, string loadBalancerName, string inboundNatRuleName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
- /// Gets the specified load balancer inbound nat rule.
+ /// Gets the specified load balancer inbound NAT rule.
///
///
/// The name of the resource group.
@@ -83,7 +83,7 @@ public partial interface IInboundNatRulesOperations
/// The name of the load balancer.
///
///
- /// The name of the inbound nat rule.
+ /// The name of the inbound NAT rule.
///
///
/// Expands referenced resources.
@@ -105,7 +105,7 @@ public partial interface IInboundNatRulesOperations
///
Task> GetWithHttpMessagesAsync(string resourceGroupName, string loadBalancerName, string inboundNatRuleName, string expand = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
- /// Creates or updates a load balancer inbound nat rule.
+ /// Creates or updates a load balancer inbound NAT rule.
///
///
/// The name of the resource group.
@@ -114,10 +114,10 @@ public partial interface IInboundNatRulesOperations
/// The name of the load balancer.
///
///
- /// The name of the inbound nat rule.
+ /// The name of the inbound NAT rule.
///
///
- /// Parameters supplied to the create or update inbound nat rule
+ /// Parameters supplied to the create or update inbound NAT rule
/// operation.
///
///
@@ -137,7 +137,7 @@ public partial interface IInboundNatRulesOperations
///
Task> CreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string loadBalancerName, string inboundNatRuleName, InboundNatRule inboundNatRuleParameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
- /// Deletes the specified load balancer inbound nat rule.
+ /// Deletes the specified load balancer inbound NAT rule.
///
///
/// The name of the resource group.
@@ -146,7 +146,7 @@ public partial interface IInboundNatRulesOperations
/// The name of the load balancer.
///
///
- /// The name of the inbound nat rule.
+ /// The name of the inbound NAT rule.
///
///
/// The headers that will be added to request.
@@ -162,7 +162,7 @@ public partial interface IInboundNatRulesOperations
///
Task BeginDeleteWithHttpMessagesAsync(string resourceGroupName, string loadBalancerName, string inboundNatRuleName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
- /// Creates or updates a load balancer inbound nat rule.
+ /// Creates or updates a load balancer inbound NAT rule.
///
///
/// The name of the resource group.
@@ -171,10 +171,10 @@ public partial interface IInboundNatRulesOperations
/// The name of the load balancer.
///
///
- /// The name of the inbound nat rule.
+ /// The name of the inbound NAT rule.
///
///
- /// Parameters supplied to the create or update inbound nat rule
+ /// Parameters supplied to the create or update inbound NAT rule
/// operation.
///
///
@@ -194,7 +194,7 @@ public partial interface IInboundNatRulesOperations
///
Task> BeginCreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string loadBalancerName, string inboundNatRuleName, InboundNatRule inboundNatRuleParameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
- /// Gets all the inbound nat rules in a load balancer.
+ /// Gets all the inbound NAT rules in a load balancer.
///
///
/// The NextLink from the previous successful call to List operation.
diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/ILoadBalancersOperations.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/ILoadBalancersOperations.cs
index 4c3e80785eb5..b04a893103e8 100644
--- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/ILoadBalancersOperations.cs
+++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/ILoadBalancersOperations.cs
@@ -194,6 +194,37 @@ public partial interface ILoadBalancersOperations
///
Task SwapPublicIpAddressesWithHttpMessagesAsync(string location, LoadBalancerVipSwapRequest parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
+ /// List of inbound NAT rule port mappings.
+ ///
+ ///
+ /// The name of the resource group.
+ ///
+ ///
+ /// The name of the load balancer.
+ ///
+ ///
+ /// The name of the load balancer backend address pool.
+ ///
+ ///
+ /// Query inbound NAT rule port mapping request.
+ ///
+ ///
+ /// The headers that will be added to request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ ///
+ /// Thrown when the operation returned an invalid status code
+ ///
+ ///
+ /// Thrown when unable to deserialize the response
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ Task> ListInboundNatRulePortMappingsWithHttpMessagesAsync(string groupName, string loadBalancerName, string backendPoolName, QueryInboundNatRulePortMappingRequest parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ ///
/// Deletes the specified load balancer.
///
///
@@ -267,6 +298,37 @@ public partial interface ILoadBalancersOperations
///
Task BeginSwapPublicIpAddressesWithHttpMessagesAsync(string location, LoadBalancerVipSwapRequest parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
+ /// List of inbound NAT rule port mappings.
+ ///
+ ///
+ /// The name of the resource group.
+ ///
+ ///
+ /// The name of the load balancer.
+ ///
+ ///
+ /// The name of the load balancer backend address pool.
+ ///
+ ///
+ /// Query inbound NAT rule port mapping request.
+ ///
+ ///
+ /// The headers that will be added to request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ ///
+ /// Thrown when the operation returned an invalid status code
+ ///
+ ///
+ /// Thrown when unable to deserialize the response
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ Task> BeginListInboundNatRulePortMappingsWithHttpMessagesAsync(string groupName, string loadBalancerName, string backendPoolName, QueryInboundNatRulePortMappingRequest parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ ///
/// Gets all the load balancers in a subscription.
///
///
diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/INetworkManagementClient.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/INetworkManagementClient.cs
index 0c3fed7f1a0d..6451cadd6ccd 100644
--- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/INetworkManagementClient.cs
+++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/INetworkManagementClient.cs
@@ -230,6 +230,21 @@ public partial interface INetworkManagementClient : System.IDisposable
///
IFirewallPolicyRuleCollectionGroupsOperations FirewallPolicyRuleCollectionGroups { get; }
+ ///
+ /// Gets the IFirewallPolicyIdpsSignaturesOperations.
+ ///
+ IFirewallPolicyIdpsSignaturesOperations FirewallPolicyIdpsSignatures { get; }
+
+ ///
+ /// Gets the IFirewallPolicyIdpsSignaturesOverridesOperations.
+ ///
+ IFirewallPolicyIdpsSignaturesOverridesOperations FirewallPolicyIdpsSignaturesOverrides { get; }
+
+ ///
+ /// Gets the IFirewallPolicyIdpsSignaturesFilterValuesOperations.
+ ///
+ IFirewallPolicyIdpsSignaturesFilterValuesOperations FirewallPolicyIdpsSignaturesFilterValues { get; }
+
///
/// Gets the IIpAllocationsOperations.
///
@@ -610,6 +625,11 @@ public partial interface INetworkManagementClient : System.IDisposable
///
IHubRouteTablesOperations HubRouteTables { get; }
+ ///
+ /// Gets the IRoutingIntentOperations.
+ ///
+ IRoutingIntentOperations RoutingIntent { get; }
+
///
/// Gets the IWebApplicationFirewallPoliciesOperations.
///
diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/IRoutingIntentOperations.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/IRoutingIntentOperations.cs
new file mode 100644
index 000000000000..4ccdd2039bfa
--- /dev/null
+++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/IRoutingIntentOperations.cs
@@ -0,0 +1,218 @@
+//
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License. See License.txt in the project root for
+// license information.
+//
+// Code generated by Microsoft (R) AutoRest Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is
+// regenerated.
+//
+
+namespace Microsoft.Azure.Management.Network
+{
+ using Microsoft.Rest;
+ using Microsoft.Rest.Azure;
+ using Models;
+ using System.Collections;
+ using System.Collections.Generic;
+ using System.Threading;
+ using System.Threading.Tasks;
+
+ ///
+ /// RoutingIntentOperations operations.
+ ///
+ public partial interface IRoutingIntentOperations
+ {
+ ///
+ /// Creates a RoutingIntent resource if it doesn't exist else updates
+ /// the existing RoutingIntent.
+ ///
+ ///
+ /// The resource group name of the RoutingIntent.
+ ///
+ ///
+ /// The name of the VirtualHub.
+ ///
+ ///
+ /// The name of the per VirtualHub singleton Routing Intent resource.
+ ///
+ ///
+ /// Parameters supplied to create or update RoutingIntent.
+ ///
+ ///
+ /// The headers that will be added to request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ ///
+ /// Thrown when the operation returned an invalid status code
+ ///
+ ///
+ /// Thrown when unable to deserialize the response
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ Task> CreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string virtualHubName, string routingIntentName, RoutingIntent routingIntentParameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ ///
+ /// Retrieves the details of a RoutingIntent.
+ ///
+ ///
+ /// The resource group name of the RoutingIntent.
+ ///
+ ///
+ /// The name of the VirtualHub.
+ ///
+ ///
+ /// The name of the RoutingIntent.
+ ///
+ ///
+ /// The headers that will be added to request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ ///
+ /// Thrown when the operation returned an invalid status code
+ ///
+ ///
+ /// Thrown when unable to deserialize the response
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ Task> GetWithHttpMessagesAsync(string resourceGroupName, string virtualHubName, string routingIntentName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ ///
+ /// Deletes a RoutingIntent.
+ ///
+ ///
+ /// The resource group name of the RoutingIntent.
+ ///
+ ///
+ /// The name of the VirtualHub.
+ ///
+ ///
+ /// The name of the RoutingIntent.
+ ///
+ ///
+ /// The headers that will be added to request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ ///
+ /// Thrown when the operation returned an invalid status code
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ Task DeleteWithHttpMessagesAsync(string resourceGroupName, string virtualHubName, string routingIntentName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ ///
+ /// Retrieves the details of all RoutingIntent child resources of the
+ /// VirtualHub.
+ ///
+ ///
+ /// The resource group name of the VirtualHub.
+ ///
+ ///
+ /// The name of the VirtualHub.
+ ///
+ ///
+ /// The headers that will be added to request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ ///
+ /// Thrown when the operation returned an invalid status code
+ ///
+ ///
+ /// Thrown when unable to deserialize the response
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ Task>> ListWithHttpMessagesAsync(string resourceGroupName, string virtualHubName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ ///
+ /// Creates a RoutingIntent resource if it doesn't exist else updates
+ /// the existing RoutingIntent.
+ ///
+ ///
+ /// The resource group name of the RoutingIntent.
+ ///
+ ///
+ /// The name of the VirtualHub.
+ ///
+ ///
+ /// The name of the per VirtualHub singleton Routing Intent resource.
+ ///
+ ///
+ /// Parameters supplied to create or update RoutingIntent.
+ ///
+ ///
+ /// The headers that will be added to request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ ///
+ /// Thrown when the operation returned an invalid status code
+ ///
+ ///
+ /// Thrown when unable to deserialize the response
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ Task> BeginCreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string virtualHubName, string routingIntentName, RoutingIntent routingIntentParameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ ///
+ /// Deletes a RoutingIntent.
+ ///
+ ///
+ /// The resource group name of the RoutingIntent.
+ ///
+ ///
+ /// The name of the VirtualHub.
+ ///
+ ///
+ /// The name of the RoutingIntent.
+ ///
+ ///
+ /// The headers that will be added to request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ ///
+ /// Thrown when the operation returned an invalid status code
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ Task BeginDeleteWithHttpMessagesAsync(string resourceGroupName, string virtualHubName, string routingIntentName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ ///
+ /// Retrieves the details of all RoutingIntent child resources of the
+ /// VirtualHub.
+ ///
+ ///
+ /// The NextLink from the previous successful call to List operation.
+ ///
+ ///
+ /// The headers that will be added to request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ ///
+ /// Thrown when the operation returned an invalid status code
+ ///
+ ///
+ /// Thrown when unable to deserialize the response
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ Task>> ListNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ }
+}
diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/InboundNatRulesOperations.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/InboundNatRulesOperations.cs
index 14e2b402943b..e8d20d7340e5 100644
--- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/InboundNatRulesOperations.cs
+++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/InboundNatRulesOperations.cs
@@ -51,7 +51,7 @@ internal InboundNatRulesOperations(NetworkManagementClient client)
public NetworkManagementClient Client { get; private set; }
///
- /// Gets all the inbound nat rules in a load balancer.
+ /// Gets all the inbound NAT rules in a load balancer.
///
///
/// The name of the resource group.
@@ -94,7 +94,7 @@ internal InboundNatRulesOperations(NetworkManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2021-03-01";
+ string apiVersion = "2021-05-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -245,7 +245,7 @@ internal InboundNatRulesOperations(NetworkManagementClient client)
}
///
- /// Deletes the specified load balancer inbound nat rule.
+ /// Deletes the specified load balancer inbound NAT rule.
///
///
/// The name of the resource group.
@@ -254,7 +254,7 @@ internal InboundNatRulesOperations(NetworkManagementClient client)
/// The name of the load balancer.
///
///
- /// The name of the inbound nat rule.
+ /// The name of the inbound NAT rule.
///
///
/// The headers that will be added to request.
@@ -270,7 +270,7 @@ internal InboundNatRulesOperations(NetworkManagementClient client)
}
///
- /// Gets the specified load balancer inbound nat rule.
+ /// Gets the specified load balancer inbound NAT rule.
///
///
/// The name of the resource group.
@@ -279,7 +279,7 @@ internal InboundNatRulesOperations(NetworkManagementClient client)
/// The name of the load balancer.
///
///
- /// The name of the inbound nat rule.
+ /// The name of the inbound NAT rule.
///
///
/// Expands referenced resources.
@@ -323,7 +323,7 @@ internal InboundNatRulesOperations(NetworkManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2021-03-01";
+ string apiVersion = "2021-05-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -481,7 +481,7 @@ internal InboundNatRulesOperations(NetworkManagementClient client)
}
///
- /// Creates or updates a load balancer inbound nat rule.
+ /// Creates or updates a load balancer inbound NAT rule.
///
///
/// The name of the resource group.
@@ -490,10 +490,10 @@ internal InboundNatRulesOperations(NetworkManagementClient client)
/// The name of the load balancer.
///
///
- /// The name of the inbound nat rule.
+ /// The name of the inbound NAT rule.
///
///
- /// Parameters supplied to the create or update inbound nat rule operation.
+ /// Parameters supplied to the create or update inbound NAT rule operation.
///
///
/// The headers that will be added to request.
@@ -509,7 +509,7 @@ internal InboundNatRulesOperations(NetworkManagementClient client)
}
///
- /// Deletes the specified load balancer inbound nat rule.
+ /// Deletes the specified load balancer inbound NAT rule.
///
///
/// The name of the resource group.
@@ -518,7 +518,7 @@ internal InboundNatRulesOperations(NetworkManagementClient client)
/// The name of the load balancer.
///
///
- /// The name of the inbound nat rule.
+ /// The name of the inbound NAT rule.
///
///
/// Headers that will be added to request.
@@ -556,7 +556,7 @@ internal InboundNatRulesOperations(NetworkManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2021-03-01";
+ string apiVersion = "2021-05-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -691,7 +691,7 @@ internal InboundNatRulesOperations(NetworkManagementClient client)
}
///
- /// Creates or updates a load balancer inbound nat rule.
+ /// Creates or updates a load balancer inbound NAT rule.
///
///
/// The name of the resource group.
@@ -700,10 +700,10 @@ internal InboundNatRulesOperations(NetworkManagementClient client)
/// The name of the load balancer.
///
///
- /// The name of the inbound nat rule.
+ /// The name of the inbound NAT rule.
///
///
- /// Parameters supplied to the create or update inbound nat rule operation.
+ /// Parameters supplied to the create or update inbound NAT rule operation.
///
///
/// Headers that will be added to request.
@@ -748,7 +748,7 @@ internal InboundNatRulesOperations(NetworkManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2021-03-01";
+ string apiVersion = "2021-05-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -926,7 +926,7 @@ internal InboundNatRulesOperations(NetworkManagementClient client)
}
///
- /// Gets all the inbound nat rules in a load balancer.
+ /// Gets all the inbound NAT rules in a load balancer.
///
///
/// The NextLink from the previous successful call to List operation.
diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/InboundNatRulesOperationsExtensions.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/InboundNatRulesOperationsExtensions.cs
index dac8215a2913..ce57987bf53c 100644
--- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/InboundNatRulesOperationsExtensions.cs
+++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/InboundNatRulesOperationsExtensions.cs
@@ -22,7 +22,7 @@ namespace Microsoft.Azure.Management.Network
public static partial class InboundNatRulesOperationsExtensions
{
///
- /// Gets all the inbound nat rules in a load balancer.
+ /// Gets all the inbound NAT rules in a load balancer.
///
///
/// The operations group for this extension method.
@@ -39,7 +39,7 @@ public static IPage List(this IInboundNatRulesOperations operati
}
///
- /// Gets all the inbound nat rules in a load balancer.
+ /// Gets all the inbound NAT rules in a load balancer.
///
///
/// The operations group for this extension method.
@@ -62,7 +62,7 @@ public static IPage List(this IInboundNatRulesOperations operati
}
///
- /// Deletes the specified load balancer inbound nat rule.
+ /// Deletes the specified load balancer inbound NAT rule.
///
///
/// The operations group for this extension method.
@@ -74,7 +74,7 @@ public static IPage List(this IInboundNatRulesOperations operati
/// The name of the load balancer.
///
///
- /// The name of the inbound nat rule.
+ /// The name of the inbound NAT rule.
///
public static void Delete(this IInboundNatRulesOperations operations, string resourceGroupName, string loadBalancerName, string inboundNatRuleName)
{
@@ -82,7 +82,7 @@ public static void Delete(this IInboundNatRulesOperations operations, string res
}
///
- /// Deletes the specified load balancer inbound nat rule.
+ /// Deletes the specified load balancer inbound NAT rule.
///
///
/// The operations group for this extension method.
@@ -94,7 +94,7 @@ public static void Delete(this IInboundNatRulesOperations operations, string res
/// The name of the load balancer.
///
///
- /// The name of the inbound nat rule.
+ /// The name of the inbound NAT rule.
///
///
/// The cancellation token.
@@ -105,7 +105,7 @@ public static void Delete(this IInboundNatRulesOperations operations, string res
}
///
- /// Gets the specified load balancer inbound nat rule.
+ /// Gets the specified load balancer inbound NAT rule.
///
///
/// The operations group for this extension method.
@@ -117,7 +117,7 @@ public static void Delete(this IInboundNatRulesOperations operations, string res
/// The name of the load balancer.
///
///
- /// The name of the inbound nat rule.
+ /// The name of the inbound NAT rule.
///
///
/// Expands referenced resources.
@@ -128,7 +128,7 @@ public static void Delete(this IInboundNatRulesOperations operations, string res
}
///
- /// Gets the specified load balancer inbound nat rule.
+ /// Gets the specified load balancer inbound NAT rule.
///
///
/// The operations group for this extension method.
@@ -140,7 +140,7 @@ public static void Delete(this IInboundNatRulesOperations operations, string res
/// The name of the load balancer.
///
///
- /// The name of the inbound nat rule.
+ /// The name of the inbound NAT rule.
///
///
/// Expands referenced resources.
@@ -157,7 +157,7 @@ public static void Delete(this IInboundNatRulesOperations operations, string res
}
///
- /// Creates or updates a load balancer inbound nat rule.
+ /// Creates or updates a load balancer inbound NAT rule.
///
///
/// The operations group for this extension method.
@@ -169,10 +169,10 @@ public static void Delete(this IInboundNatRulesOperations operations, string res
/// The name of the load balancer.
///
///
- /// The name of the inbound nat rule.
+ /// The name of the inbound NAT rule.
///
///
- /// Parameters supplied to the create or update inbound nat rule operation.
+ /// Parameters supplied to the create or update inbound NAT rule operation.
///
public static InboundNatRule CreateOrUpdate(this IInboundNatRulesOperations operations, string resourceGroupName, string loadBalancerName, string inboundNatRuleName, InboundNatRule inboundNatRuleParameters)
{
@@ -180,7 +180,7 @@ public static InboundNatRule CreateOrUpdate(this IInboundNatRulesOperations oper
}
///
- /// Creates or updates a load balancer inbound nat rule.
+ /// Creates or updates a load balancer inbound NAT rule.
///
///
/// The operations group for this extension method.
@@ -192,10 +192,10 @@ public static InboundNatRule CreateOrUpdate(this IInboundNatRulesOperations oper
/// The name of the load balancer.
///
///
- /// The name of the inbound nat rule.
+ /// The name of the inbound NAT rule.
///
///
- /// Parameters supplied to the create or update inbound nat rule operation.
+ /// Parameters supplied to the create or update inbound NAT rule operation.
///
///
/// The cancellation token.
@@ -209,7 +209,7 @@ public static InboundNatRule CreateOrUpdate(this IInboundNatRulesOperations oper
}
///
- /// Deletes the specified load balancer inbound nat rule.
+ /// Deletes the specified load balancer inbound NAT rule.
///
///
/// The operations group for this extension method.
@@ -221,7 +221,7 @@ public static InboundNatRule CreateOrUpdate(this IInboundNatRulesOperations oper
/// The name of the load balancer.
///
///
- /// The name of the inbound nat rule.
+ /// The name of the inbound NAT rule.
///
public static void BeginDelete(this IInboundNatRulesOperations operations, string resourceGroupName, string loadBalancerName, string inboundNatRuleName)
{
@@ -229,7 +229,7 @@ public static void BeginDelete(this IInboundNatRulesOperations operations, strin
}
///
- /// Deletes the specified load balancer inbound nat rule.
+ /// Deletes the specified load balancer inbound NAT rule.
///
///
/// The operations group for this extension method.
@@ -241,7 +241,7 @@ public static void BeginDelete(this IInboundNatRulesOperations operations, strin
/// The name of the load balancer.
///
///
- /// The name of the inbound nat rule.
+ /// The name of the inbound NAT rule.
///
///
/// The cancellation token.
@@ -252,7 +252,7 @@ public static void BeginDelete(this IInboundNatRulesOperations operations, strin
}
///
- /// Creates or updates a load balancer inbound nat rule.
+ /// Creates or updates a load balancer inbound NAT rule.
///
///
/// The operations group for this extension method.
@@ -264,10 +264,10 @@ public static void BeginDelete(this IInboundNatRulesOperations operations, strin
/// The name of the load balancer.
///
///
- /// The name of the inbound nat rule.
+ /// The name of the inbound NAT rule.
///
///
- /// Parameters supplied to the create or update inbound nat rule operation.
+ /// Parameters supplied to the create or update inbound NAT rule operation.
///
public static InboundNatRule BeginCreateOrUpdate(this IInboundNatRulesOperations operations, string resourceGroupName, string loadBalancerName, string inboundNatRuleName, InboundNatRule inboundNatRuleParameters)
{
@@ -275,7 +275,7 @@ public static InboundNatRule BeginCreateOrUpdate(this IInboundNatRulesOperations
}
///
- /// Creates or updates a load balancer inbound nat rule.
+ /// Creates or updates a load balancer inbound NAT rule.
///
///
/// The operations group for this extension method.
@@ -287,10 +287,10 @@ public static InboundNatRule BeginCreateOrUpdate(this IInboundNatRulesOperations
/// The name of the load balancer.
///
///
- /// The name of the inbound nat rule.
+ /// The name of the inbound NAT rule.
///
///
- /// Parameters supplied to the create or update inbound nat rule operation.
+ /// Parameters supplied to the create or update inbound NAT rule operation.
///
///
/// The cancellation token.
@@ -304,7 +304,7 @@ public static InboundNatRule BeginCreateOrUpdate(this IInboundNatRulesOperations
}
///
- /// Gets all the inbound nat rules in a load balancer.
+ /// Gets all the inbound NAT rules in a load balancer.
///
///
/// The operations group for this extension method.
@@ -318,7 +318,7 @@ public static IPage ListNext(this IInboundNatRulesOperations ope
}
///
- /// Gets all the inbound nat rules in a load balancer.
+ /// Gets all the inbound NAT rules in a load balancer.
///
///
/// The operations group for this extension method.
diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/InboundSecurityRuleOperations.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/InboundSecurityRuleOperations.cs
index 015356a2ccf8..eb860931952e 100644
--- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/InboundSecurityRuleOperations.cs
+++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/InboundSecurityRuleOperations.cs
@@ -140,7 +140,7 @@ internal InboundSecurityRuleOperations(NetworkManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2021-03-01";
+ string apiVersion = "2021-05-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/IpAllocationsOperations.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/IpAllocationsOperations.cs
index 191fc669a490..a686dba3d7ee 100644
--- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/IpAllocationsOperations.cs
+++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/IpAllocationsOperations.cs
@@ -119,7 +119,7 @@ internal IpAllocationsOperations(NetworkManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2021-03-01";
+ string apiVersion = "2021-05-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -350,7 +350,7 @@ internal IpAllocationsOperations(NetworkManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2021-03-01";
+ string apiVersion = "2021-05-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -537,7 +537,7 @@ internal IpAllocationsOperations(NetworkManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2021-03-01";
+ string apiVersion = "2021-05-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -720,7 +720,7 @@ internal IpAllocationsOperations(NetworkManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2021-03-01";
+ string apiVersion = "2021-05-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -909,7 +909,7 @@ internal IpAllocationsOperations(NetworkManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2021-03-01";
+ string apiVersion = "2021-05-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -1092,7 +1092,7 @@ internal IpAllocationsOperations(NetworkManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2021-03-01";
+ string apiVersion = "2021-05-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/IpGroupsOperations.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/IpGroupsOperations.cs
index c9215957df95..d5411615768e 100644
--- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/IpGroupsOperations.cs
+++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/IpGroupsOperations.cs
@@ -98,7 +98,7 @@ internal IpGroupsOperations(NetworkManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2021-03-01";
+ string apiVersion = "2021-05-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -324,7 +324,7 @@ internal IpGroupsOperations(NetworkManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2021-03-01";
+ string apiVersion = "2021-05-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -535,7 +535,7 @@ internal IpGroupsOperations(NetworkManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2021-03-01";
+ string apiVersion = "2021-05-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -708,7 +708,7 @@ internal IpGroupsOperations(NetworkManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2021-03-01";
+ string apiVersion = "2021-05-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -900,7 +900,7 @@ internal IpGroupsOperations(NetworkManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2021-03-01";
+ string apiVersion = "2021-05-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -1111,7 +1111,7 @@ internal IpGroupsOperations(NetworkManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2021-03-01";
+ string apiVersion = "2021-05-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/LoadBalancerBackendAddressPoolsOperations.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/LoadBalancerBackendAddressPoolsOperations.cs
index a78cfc664ae8..81bc981ae04a 100644
--- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/LoadBalancerBackendAddressPoolsOperations.cs
+++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/LoadBalancerBackendAddressPoolsOperations.cs
@@ -94,7 +94,7 @@ internal LoadBalancerBackendAddressPoolsOperations(NetworkManagementClient clien
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2021-03-01";
+ string apiVersion = "2021-05-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -295,7 +295,7 @@ internal LoadBalancerBackendAddressPoolsOperations(NetworkManagementClient clien
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2021-03-01";
+ string apiVersion = "2021-05-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -560,7 +560,7 @@ internal LoadBalancerBackendAddressPoolsOperations(NetworkManagementClient clien
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2021-03-01";
+ string apiVersion = "2021-05-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -785,7 +785,7 @@ internal LoadBalancerBackendAddressPoolsOperations(NetworkManagementClient clien
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2021-03-01";
+ string apiVersion = "2021-05-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/LoadBalancerFrontendIPConfigurationsOperations.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/LoadBalancerFrontendIPConfigurationsOperations.cs
index d1fa4973fdb0..fd407847c7ed 100644
--- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/LoadBalancerFrontendIPConfigurationsOperations.cs
+++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/LoadBalancerFrontendIPConfigurationsOperations.cs
@@ -94,7 +94,7 @@ internal LoadBalancerFrontendIPConfigurationsOperations(NetworkManagementClient
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2021-03-01";
+ string apiVersion = "2021-05-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -295,7 +295,7 @@ internal LoadBalancerFrontendIPConfigurationsOperations(NetworkManagementClient
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2021-03-01";
+ string apiVersion = "2021-05-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/LoadBalancerLoadBalancingRulesOperations.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/LoadBalancerLoadBalancingRulesOperations.cs
index 6824046e86fd..f04f8e73cd94 100644
--- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/LoadBalancerLoadBalancingRulesOperations.cs
+++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/LoadBalancerLoadBalancingRulesOperations.cs
@@ -94,7 +94,7 @@ internal LoadBalancerLoadBalancingRulesOperations(NetworkManagementClient client
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2021-03-01";
+ string apiVersion = "2021-05-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -295,7 +295,7 @@ internal LoadBalancerLoadBalancingRulesOperations(NetworkManagementClient client
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2021-03-01";
+ string apiVersion = "2021-05-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/LoadBalancerNetworkInterfacesOperations.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/LoadBalancerNetworkInterfacesOperations.cs
index 8b162a9e1326..ebcdaf9a80f2 100644
--- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/LoadBalancerNetworkInterfacesOperations.cs
+++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/LoadBalancerNetworkInterfacesOperations.cs
@@ -94,7 +94,7 @@ internal LoadBalancerNetworkInterfacesOperations(NetworkManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2021-03-01";
+ string apiVersion = "2021-05-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/LoadBalancerOutboundRulesOperations.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/LoadBalancerOutboundRulesOperations.cs
index b02c5cab6866..d6e44e54fa63 100644
--- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/LoadBalancerOutboundRulesOperations.cs
+++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/LoadBalancerOutboundRulesOperations.cs
@@ -94,7 +94,7 @@ internal LoadBalancerOutboundRulesOperations(NetworkManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2021-03-01";
+ string apiVersion = "2021-05-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -295,7 +295,7 @@ internal LoadBalancerOutboundRulesOperations(NetworkManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2021-03-01";
+ string apiVersion = "2021-05-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/LoadBalancerProbesOperations.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/LoadBalancerProbesOperations.cs
index e82eddf3e479..7c2a3c84319d 100644
--- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/LoadBalancerProbesOperations.cs
+++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/LoadBalancerProbesOperations.cs
@@ -94,7 +94,7 @@ internal LoadBalancerProbesOperations(NetworkManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2021-03-01";
+ string apiVersion = "2021-05-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -295,7 +295,7 @@ internal LoadBalancerProbesOperations(NetworkManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2021-03-01";
+ string apiVersion = "2021-05-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/LoadBalancersOperations.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/LoadBalancersOperations.cs
index 260b9f57b243..276a4e172298 100644
--- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/LoadBalancersOperations.cs
+++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/LoadBalancersOperations.cs
@@ -119,7 +119,7 @@ internal LoadBalancersOperations(NetworkManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2021-03-01";
+ string apiVersion = "2021-05-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -350,7 +350,7 @@ internal LoadBalancersOperations(NetworkManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2021-03-01";
+ string apiVersion = "2021-05-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -537,7 +537,7 @@ internal LoadBalancersOperations(NetworkManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2021-03-01";
+ string apiVersion = "2021-05-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -720,7 +720,7 @@ internal LoadBalancersOperations(NetworkManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2021-03-01";
+ string apiVersion = "2021-05-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -890,6 +890,34 @@ internal LoadBalancersOperations(NetworkManagementClient client)
return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false);
}
+ ///
+ /// List of inbound NAT rule port mappings.
+ ///
+ ///
+ /// The name of the resource group.
+ ///
+ ///
+ /// The name of the load balancer.
+ ///
+ ///
+ /// The name of the load balancer backend address pool.
+ ///
+ ///
+ /// Query inbound NAT rule port mapping request.
+ ///
+ ///
+ /// The headers that will be added to request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ public async Task> ListInboundNatRulePortMappingsWithHttpMessagesAsync(string groupName, string loadBalancerName, string backendPoolName, QueryInboundNatRulePortMappingRequest parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ {
+ // Send request
+ AzureOperationResponse _response = await BeginListInboundNatRulePortMappingsWithHttpMessagesAsync(groupName, loadBalancerName, backendPoolName, parameters, customHeaders, cancellationToken).ConfigureAwait(false);
+ return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false);
+ }
+
///
/// Deletes the specified load balancer.
///
@@ -931,7 +959,7 @@ internal LoadBalancersOperations(NetworkManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2021-03-01";
+ string apiVersion = "2021-05-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -1114,7 +1142,7 @@ internal LoadBalancersOperations(NetworkManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2021-03-01";
+ string apiVersion = "2021-05-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -1330,7 +1358,7 @@ internal LoadBalancersOperations(NetworkManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2021-03-01";
+ string apiVersion = "2021-05-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -1467,6 +1495,241 @@ internal LoadBalancersOperations(NetworkManagementClient client)
return _result;
}
+ ///
+ /// List of inbound NAT rule port mappings.
+ ///
+ ///
+ /// The name of the resource group.
+ ///
+ ///
+ /// The name of the load balancer.
+ ///
+ ///
+ /// The name of the load balancer backend address pool.
+ ///
+ ///
+ /// Query inbound NAT rule port mapping request.
+ ///
+ ///
+ /// Headers that will be added to request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ ///
+ /// Thrown when the operation returned an invalid status code
+ ///
+ ///
+ /// Thrown when unable to deserialize the response
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ ///
+ /// A response object containing the response body and response headers.
+ ///
+ public async Task> BeginListInboundNatRulePortMappingsWithHttpMessagesAsync(string groupName, string loadBalancerName, string backendPoolName, QueryInboundNatRulePortMappingRequest parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ {
+ if (groupName == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "groupName");
+ }
+ if (loadBalancerName == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "loadBalancerName");
+ }
+ if (backendPoolName == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "backendPoolName");
+ }
+ if (parameters == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "parameters");
+ }
+ if (Client.SubscriptionId == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
+ }
+ string apiVersion = "2021-05-01";
+ // Tracing
+ bool _shouldTrace = ServiceClientTracing.IsEnabled;
+ string _invocationId = null;
+ if (_shouldTrace)
+ {
+ _invocationId = ServiceClientTracing.NextInvocationId.ToString();
+ Dictionary tracingParameters = new Dictionary();
+ tracingParameters.Add("groupName", groupName);
+ tracingParameters.Add("loadBalancerName", loadBalancerName);
+ tracingParameters.Add("backendPoolName", backendPoolName);
+ tracingParameters.Add("parameters", parameters);
+ tracingParameters.Add("apiVersion", apiVersion);
+ tracingParameters.Add("cancellationToken", cancellationToken);
+ ServiceClientTracing.Enter(_invocationId, this, "BeginListInboundNatRulePortMappings", tracingParameters);
+ }
+ // Construct URL
+ var _baseUrl = Client.BaseUri.AbsoluteUri;
+ var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}/backendAddressPools/{backendPoolName}/queryInboundNatRulePortMapping").ToString();
+ _url = _url.Replace("{groupName}", System.Uri.EscapeDataString(groupName));
+ _url = _url.Replace("{loadBalancerName}", System.Uri.EscapeDataString(loadBalancerName));
+ _url = _url.Replace("{backendPoolName}", System.Uri.EscapeDataString(backendPoolName));
+ _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId));
+ List _queryParameters = new List();
+ if (apiVersion != null)
+ {
+ _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion)));
+ }
+ if (_queryParameters.Count > 0)
+ {
+ _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters);
+ }
+ // Create HTTP transport objects
+ var _httpRequest = new HttpRequestMessage();
+ HttpResponseMessage _httpResponse = null;
+ _httpRequest.Method = new HttpMethod("POST");
+ _httpRequest.RequestUri = new System.Uri(_url);
+ // Set Headers
+ if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value)
+ {
+ _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString());
+ }
+ if (Client.AcceptLanguage != null)
+ {
+ if (_httpRequest.Headers.Contains("accept-language"))
+ {
+ _httpRequest.Headers.Remove("accept-language");
+ }
+ _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage);
+ }
+
+
+ if (customHeaders != null)
+ {
+ foreach(var _header in customHeaders)
+ {
+ if (_httpRequest.Headers.Contains(_header.Key))
+ {
+ _httpRequest.Headers.Remove(_header.Key);
+ }
+ _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value);
+ }
+ }
+
+ // Serialize Request
+ string _requestContent = null;
+ if(parameters != null)
+ {
+ _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(parameters, Client.SerializationSettings);
+ _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8);
+ _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8");
+ }
+ // Set Credentials
+ if (Client.Credentials != null)
+ {
+ cancellationToken.ThrowIfCancellationRequested();
+ await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false);
+ }
+ // Send Request
+ if (_shouldTrace)
+ {
+ ServiceClientTracing.SendRequest(_invocationId, _httpRequest);
+ }
+ cancellationToken.ThrowIfCancellationRequested();
+ _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false);
+ if (_shouldTrace)
+ {
+ ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse);
+ }
+ HttpStatusCode _statusCode = _httpResponse.StatusCode;
+ cancellationToken.ThrowIfCancellationRequested();
+ string _responseContent = null;
+ if ((int)_statusCode != 200 && (int)_statusCode != 202)
+ {
+ var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode));
+ try
+ {
+ _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
+ CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings);
+ if (_errorBody != null)
+ {
+ ex = new CloudException(_errorBody.Message);
+ ex.Body = _errorBody;
+ }
+ }
+ catch (JsonException)
+ {
+ // Ignore the exception
+ }
+ ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent);
+ ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent);
+ if (_httpResponse.Headers.Contains("x-ms-request-id"))
+ {
+ ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault();
+ }
+ if (_shouldTrace)
+ {
+ ServiceClientTracing.Error(_invocationId, ex);
+ }
+ _httpRequest.Dispose();
+ if (_httpResponse != null)
+ {
+ _httpResponse.Dispose();
+ }
+ throw ex;
+ }
+ // Create Result
+ var _result = new AzureOperationResponse();
+ _result.Request = _httpRequest;
+ _result.Response = _httpResponse;
+ if (_httpResponse.Headers.Contains("x-ms-request-id"))
+ {
+ _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault();
+ }
+ // Deserialize Response
+ if ((int)_statusCode == 200)
+ {
+ _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
+ try
+ {
+ _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings);
+ }
+ catch (JsonException ex)
+ {
+ _httpRequest.Dispose();
+ if (_httpResponse != null)
+ {
+ _httpResponse.Dispose();
+ }
+ throw new SerializationException("Unable to deserialize the response.", _responseContent, ex);
+ }
+ }
+ // Deserialize Response
+ if ((int)_statusCode == 202)
+ {
+ _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
+ try
+ {
+ _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings);
+ }
+ catch (JsonException ex)
+ {
+ _httpRequest.Dispose();
+ if (_httpResponse != null)
+ {
+ _httpResponse.Dispose();
+ }
+ throw new SerializationException("Unable to deserialize the response.", _responseContent, ex);
+ }
+ }
+ if (_shouldTrace)
+ {
+ ServiceClientTracing.Exit(_invocationId, _result);
+ }
+ return _result;
+ }
+
///
/// Gets all the load balancers in a subscription.
///
diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/LoadBalancersOperationsExtensions.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/LoadBalancersOperationsExtensions.cs
index 362dbdb0106b..2c4197f4dece 100644
--- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/LoadBalancersOperationsExtensions.cs
+++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/LoadBalancersOperationsExtensions.cs
@@ -295,6 +295,58 @@ public static void SwapPublicIpAddresses(this ILoadBalancersOperations operation
(await operations.SwapPublicIpAddressesWithHttpMessagesAsync(location, parameters, null, cancellationToken).ConfigureAwait(false)).Dispose();
}
+ ///
+ /// List of inbound NAT rule port mappings.
+ ///
+ ///
+ /// The operations group for this extension method.
+ ///
+ ///
+ /// The name of the resource group.
+ ///
+ ///
+ /// The name of the load balancer.
+ ///
+ ///
+ /// The name of the load balancer backend address pool.
+ ///
+ ///
+ /// Query inbound NAT rule port mapping request.
+ ///
+ public static BackendAddressInboundNatRulePortMappings ListInboundNatRulePortMappings(this ILoadBalancersOperations operations, string groupName, string loadBalancerName, string backendPoolName, QueryInboundNatRulePortMappingRequest parameters)
+ {
+ return operations.ListInboundNatRulePortMappingsAsync(groupName, loadBalancerName, backendPoolName, parameters).GetAwaiter().GetResult();
+ }
+
+ ///
+ /// List of inbound NAT rule port mappings.
+ ///
+ ///
+ /// The operations group for this extension method.
+ ///
+ ///
+ /// The name of the resource group.
+ ///
+ ///
+ /// The name of the load balancer.
+ ///
+ ///
+ /// The name of the load balancer backend address pool.
+ ///
+ ///
+ /// Query inbound NAT rule port mapping request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ public static async Task ListInboundNatRulePortMappingsAsync(this ILoadBalancersOperations operations, string groupName, string loadBalancerName, string backendPoolName, QueryInboundNatRulePortMappingRequest parameters, CancellationToken cancellationToken = default(CancellationToken))
+ {
+ using (var _result = await operations.ListInboundNatRulePortMappingsWithHttpMessagesAsync(groupName, loadBalancerName, backendPoolName, parameters, null, cancellationToken).ConfigureAwait(false))
+ {
+ return _result.Body;
+ }
+ }
+
///
/// Deletes the specified load balancer.
///
@@ -415,6 +467,58 @@ public static void BeginSwapPublicIpAddresses(this ILoadBalancersOperations oper
(await operations.BeginSwapPublicIpAddressesWithHttpMessagesAsync(location, parameters, null, cancellationToken).ConfigureAwait(false)).Dispose();
}
+ ///
+ /// List of inbound NAT rule port mappings.
+ ///
+ ///
+ /// The operations group for this extension method.
+ ///
+ ///
+ /// The name of the resource group.
+ ///
+ ///
+ /// The name of the load balancer.
+ ///
+ ///
+ /// The name of the load balancer backend address pool.
+ ///
+ ///
+ /// Query inbound NAT rule port mapping request.
+ ///
+ public static BackendAddressInboundNatRulePortMappings BeginListInboundNatRulePortMappings(this ILoadBalancersOperations operations, string groupName, string loadBalancerName, string backendPoolName, QueryInboundNatRulePortMappingRequest parameters)
+ {
+ return operations.BeginListInboundNatRulePortMappingsAsync(groupName, loadBalancerName, backendPoolName, parameters).GetAwaiter().GetResult();
+ }
+
+ ///
+ /// List of inbound NAT rule port mappings.
+ ///
+ ///
+ /// The operations group for this extension method.
+ ///
+ ///
+ /// The name of the resource group.
+ ///
+ ///
+ /// The name of the load balancer.
+ ///
+ ///
+ /// The name of the load balancer backend address pool.
+ ///
+ ///
+ /// Query inbound NAT rule port mapping request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ public static async Task BeginListInboundNatRulePortMappingsAsync(this ILoadBalancersOperations operations, string groupName, string loadBalancerName, string backendPoolName, QueryInboundNatRulePortMappingRequest parameters, CancellationToken cancellationToken = default(CancellationToken))
+ {
+ using (var _result = await operations.BeginListInboundNatRulePortMappingsWithHttpMessagesAsync(groupName, loadBalancerName, backendPoolName, parameters, null, cancellationToken).ConfigureAwait(false))
+ {
+ return _result.Body;
+ }
+ }
+
///
/// Gets all the load balancers in a subscription.
///
diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/LocalNetworkGatewaysOperations.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/LocalNetworkGatewaysOperations.cs
index 8a6923b0559c..721b8afe92ca 100644
--- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/LocalNetworkGatewaysOperations.cs
+++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/LocalNetworkGatewaysOperations.cs
@@ -127,7 +127,7 @@ internal LocalNetworkGatewaysOperations(NetworkManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2021-03-01";
+ string apiVersion = "2021-05-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -357,7 +357,7 @@ internal LocalNetworkGatewaysOperations(NetworkManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2021-03-01";
+ string apiVersion = "2021-05-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -551,7 +551,7 @@ internal LocalNetworkGatewaysOperations(NetworkManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2021-03-01";
+ string apiVersion = "2021-05-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -762,7 +762,7 @@ internal LocalNetworkGatewaysOperations(NetworkManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2021-03-01";
+ string apiVersion = "2021-05-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -985,7 +985,7 @@ internal LocalNetworkGatewaysOperations(NetworkManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2021-03-01";
+ string apiVersion = "2021-05-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ApplicationGatewayAutoscaleConfiguration.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ApplicationGatewayAutoscaleConfiguration.cs
index 310e30ea48b3..feca79d52be4 100644
--- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ApplicationGatewayAutoscaleConfiguration.cs
+++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ApplicationGatewayAutoscaleConfiguration.cs
@@ -72,12 +72,9 @@ public virtual void Validate()
{
throw new ValidationException(ValidationRules.InclusiveMinimum, "MinCapacity", 0);
}
- if (MaxCapacity != null)
+ if (MaxCapacity < 2)
{
- if (MaxCapacity < 2)
- {
- throw new ValidationException(ValidationRules.InclusiveMinimum, "MaxCapacity", 2);
- }
+ throw new ValidationException(ValidationRules.InclusiveMinimum, "MaxCapacity", 2);
}
}
}
diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ApplicationGatewayLoadDistributionTarget.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ApplicationGatewayLoadDistributionTarget.cs
index 8ddb867b2931..fba64610be6e 100644
--- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ApplicationGatewayLoadDistributionTarget.cs
+++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ApplicationGatewayLoadDistributionTarget.cs
@@ -101,16 +101,13 @@ public ApplicationGatewayLoadDistributionTarget()
///
public virtual void Validate()
{
- if (WeightPerServer != null)
+ if (WeightPerServer > 100)
{
- if (WeightPerServer > 100)
- {
- throw new ValidationException(ValidationRules.InclusiveMaximum, "WeightPerServer", 100);
- }
- if (WeightPerServer < 1)
- {
- throw new ValidationException(ValidationRules.InclusiveMinimum, "WeightPerServer", 1);
- }
+ throw new ValidationException(ValidationRules.InclusiveMaximum, "WeightPerServer", 100);
+ }
+ if (WeightPerServer < 1)
+ {
+ throw new ValidationException(ValidationRules.InclusiveMinimum, "WeightPerServer", 1);
}
}
}
diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ApplicationGatewayProbe.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ApplicationGatewayProbe.cs
index de4d79857277..1444f590718f 100644
--- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ApplicationGatewayProbe.cs
+++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ApplicationGatewayProbe.cs
@@ -202,16 +202,13 @@ public ApplicationGatewayProbe()
///
public virtual void Validate()
{
- if (Port != null)
+ if (Port > 65535)
{
- if (Port > 65535)
- {
- throw new ValidationException(ValidationRules.InclusiveMaximum, "Port", 65535);
- }
- if (Port < 1)
- {
- throw new ValidationException(ValidationRules.InclusiveMinimum, "Port", 1);
- }
+ throw new ValidationException(ValidationRules.InclusiveMaximum, "Port", 65535);
+ }
+ if (Port < 1)
+ {
+ throw new ValidationException(ValidationRules.InclusiveMinimum, "Port", 1);
}
}
}
diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ApplicationGatewayRequestRoutingRule.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ApplicationGatewayRequestRoutingRule.cs
index 3d12aaebb9d9..3f073eb3bdab 100644
--- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ApplicationGatewayRequestRoutingRule.cs
+++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ApplicationGatewayRequestRoutingRule.cs
@@ -181,16 +181,13 @@ public ApplicationGatewayRequestRoutingRule()
///
public virtual void Validate()
{
- if (Priority != null)
+ if (Priority > 20000)
{
- if (Priority > 20000)
- {
- throw new ValidationException(ValidationRules.InclusiveMaximum, "Priority", 20000);
- }
- if (Priority < 1)
- {
- throw new ValidationException(ValidationRules.InclusiveMinimum, "Priority", 1);
- }
+ throw new ValidationException(ValidationRules.InclusiveMaximum, "Priority", 20000);
+ }
+ if (Priority < 1)
+ {
+ throw new ValidationException(ValidationRules.InclusiveMinimum, "Priority", 1);
}
}
}
diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ApplicationGatewayWebApplicationFirewallConfiguration.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ApplicationGatewayWebApplicationFirewallConfiguration.cs
index dad33866910e..bd4966fd77a9 100644
--- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ApplicationGatewayWebApplicationFirewallConfiguration.cs
+++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ApplicationGatewayWebApplicationFirewallConfiguration.cs
@@ -165,34 +165,25 @@ public virtual void Validate()
}
}
}
- if (MaxRequestBodySize != null)
+ if (MaxRequestBodySize > 128)
{
- if (MaxRequestBodySize > 128)
- {
- throw new ValidationException(ValidationRules.InclusiveMaximum, "MaxRequestBodySize", 128);
- }
- if (MaxRequestBodySize < 8)
- {
- throw new ValidationException(ValidationRules.InclusiveMinimum, "MaxRequestBodySize", 8);
- }
+ throw new ValidationException(ValidationRules.InclusiveMaximum, "MaxRequestBodySize", 128);
}
- if (MaxRequestBodySizeInKb != null)
+ if (MaxRequestBodySize < 8)
{
- if (MaxRequestBodySizeInKb > 128)
- {
- throw new ValidationException(ValidationRules.InclusiveMaximum, "MaxRequestBodySizeInKb", 128);
- }
- if (MaxRequestBodySizeInKb < 8)
- {
- throw new ValidationException(ValidationRules.InclusiveMinimum, "MaxRequestBodySizeInKb", 8);
- }
+ throw new ValidationException(ValidationRules.InclusiveMinimum, "MaxRequestBodySize", 8);
}
- if (FileUploadLimitInMb != null)
+ if (MaxRequestBodySizeInKb > 128)
{
- if (FileUploadLimitInMb < 0)
- {
- throw new ValidationException(ValidationRules.InclusiveMinimum, "FileUploadLimitInMb", 0);
- }
+ throw new ValidationException(ValidationRules.InclusiveMaximum, "MaxRequestBodySizeInKb", 128);
+ }
+ if (MaxRequestBodySizeInKb < 8)
+ {
+ throw new ValidationException(ValidationRules.InclusiveMinimum, "MaxRequestBodySizeInKb", 8);
+ }
+ if (FileUploadLimitInMb < 0)
+ {
+ throw new ValidationException(ValidationRules.InclusiveMinimum, "FileUploadLimitInMb", 0);
}
if (Exclusions != null)
{
diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ApplicationRule.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ApplicationRule.cs
index 3bfb4fabf638..caa6a0d598e6 100644
--- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ApplicationRule.cs
+++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ApplicationRule.cs
@@ -18,7 +18,6 @@ namespace Microsoft.Azure.Management.Network.Models
///
/// Rule of type application.
///
- [Newtonsoft.Json.JsonObject("ApplicationRule")]
public partial class ApplicationRule : FirewallPolicyRule
{
///
diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/AzureFirewallApplicationRuleCollection.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/AzureFirewallApplicationRuleCollection.cs
index 30fea8c7ada4..6528bdb761cf 100644
--- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/AzureFirewallApplicationRuleCollection.cs
+++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/AzureFirewallApplicationRuleCollection.cs
@@ -116,16 +116,13 @@ public AzureFirewallApplicationRuleCollection()
///
public virtual void Validate()
{
- if (Priority != null)
+ if (Priority > 65000)
{
- if (Priority > 65000)
- {
- throw new ValidationException(ValidationRules.InclusiveMaximum, "Priority", 65000);
- }
- if (Priority < 100)
- {
- throw new ValidationException(ValidationRules.InclusiveMinimum, "Priority", 100);
- }
+ throw new ValidationException(ValidationRules.InclusiveMaximum, "Priority", 65000);
+ }
+ if (Priority < 100)
+ {
+ throw new ValidationException(ValidationRules.InclusiveMinimum, "Priority", 100);
}
}
}
diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/AzureFirewallApplicationRuleProtocol.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/AzureFirewallApplicationRuleProtocol.cs
index 278a39b679cb..f2c9c74fdc19 100644
--- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/AzureFirewallApplicationRuleProtocol.cs
+++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/AzureFirewallApplicationRuleProtocol.cs
@@ -70,16 +70,13 @@ public AzureFirewallApplicationRuleProtocol()
///
public virtual void Validate()
{
- if (Port != null)
+ if (Port > 64000)
{
- if (Port > 64000)
- {
- throw new ValidationException(ValidationRules.InclusiveMaximum, "Port", 64000);
- }
- if (Port < 0)
- {
- throw new ValidationException(ValidationRules.InclusiveMinimum, "Port", 0);
- }
+ throw new ValidationException(ValidationRules.InclusiveMaximum, "Port", 64000);
+ }
+ if (Port < 0)
+ {
+ throw new ValidationException(ValidationRules.InclusiveMinimum, "Port", 0);
}
}
}
diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/AzureFirewallNatRuleCollection.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/AzureFirewallNatRuleCollection.cs
index 01ffee90b3fd..d18672edde1b 100644
--- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/AzureFirewallNatRuleCollection.cs
+++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/AzureFirewallNatRuleCollection.cs
@@ -116,16 +116,13 @@ public AzureFirewallNatRuleCollection()
///
public virtual void Validate()
{
- if (Priority != null)
+ if (Priority > 65000)
{
- if (Priority > 65000)
- {
- throw new ValidationException(ValidationRules.InclusiveMaximum, "Priority", 65000);
- }
- if (Priority < 100)
- {
- throw new ValidationException(ValidationRules.InclusiveMinimum, "Priority", 100);
- }
+ throw new ValidationException(ValidationRules.InclusiveMaximum, "Priority", 65000);
+ }
+ if (Priority < 100)
+ {
+ throw new ValidationException(ValidationRules.InclusiveMinimum, "Priority", 100);
}
}
}
diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/AzureFirewallNetworkRuleCollection.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/AzureFirewallNetworkRuleCollection.cs
index cb720dc5c385..00531f0237b2 100644
--- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/AzureFirewallNetworkRuleCollection.cs
+++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/AzureFirewallNetworkRuleCollection.cs
@@ -115,16 +115,13 @@ public AzureFirewallNetworkRuleCollection()
///
public virtual void Validate()
{
- if (Priority != null)
+ if (Priority > 65000)
{
- if (Priority > 65000)
- {
- throw new ValidationException(ValidationRules.InclusiveMaximum, "Priority", 65000);
- }
- if (Priority < 100)
- {
- throw new ValidationException(ValidationRules.InclusiveMinimum, "Priority", 100);
- }
+ throw new ValidationException(ValidationRules.InclusiveMaximum, "Priority", 65000);
+ }
+ if (Priority < 100)
+ {
+ throw new ValidationException(ValidationRules.InclusiveMinimum, "Priority", 100);
}
}
}
diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/AzureFirewallSku.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/AzureFirewallSku.cs
index 1d7ffd66afbe..5d76f2608be0 100644
--- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/AzureFirewallSku.cs
+++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/AzureFirewallSku.cs
@@ -32,7 +32,7 @@ public AzureFirewallSku()
/// Name of an Azure Firewall SKU. Possible values
/// include: 'AZFW_VNet', 'AZFW_Hub'
/// Tier of an Azure Firewall. Possible values
- /// include: 'Standard', 'Premium'
+ /// include: 'Standard', 'Premium', 'Basic'
public AzureFirewallSku(string name = default(string), string tier = default(string))
{
Name = name;
@@ -54,7 +54,7 @@ public AzureFirewallSku()
///
/// Gets or sets tier of an Azure Firewall. Possible values include:
- /// 'Standard', 'Premium'
+ /// 'Standard', 'Premium', 'Basic'
///
[JsonProperty(PropertyName = "tier")]
public string Tier { get; set; }
diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/AzureFirewallSkuTier.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/AzureFirewallSkuTier.cs
index dc652fca3915..d1cd7fcdedff 100644
--- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/AzureFirewallSkuTier.cs
+++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/AzureFirewallSkuTier.cs
@@ -18,5 +18,6 @@ public static class AzureFirewallSkuTier
{
public const string Standard = "Standard";
public const string Premium = "Premium";
+ public const string Basic = "Basic";
}
}
diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/AzureReachabilityReportLatencyInfo.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/AzureReachabilityReportLatencyInfo.cs
index da00b97ff30c..a204272b613f 100644
--- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/AzureReachabilityReportLatencyInfo.cs
+++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/AzureReachabilityReportLatencyInfo.cs
@@ -68,16 +68,13 @@ public AzureReachabilityReportLatencyInfo()
///
public virtual void Validate()
{
- if (Score != null)
+ if (Score > 100)
{
- if (Score > 100)
- {
- throw new ValidationException(ValidationRules.InclusiveMaximum, "Score", 100);
- }
- if (Score < 1)
- {
- throw new ValidationException(ValidationRules.InclusiveMinimum, "Score", 1);
- }
+ throw new ValidationException(ValidationRules.InclusiveMaximum, "Score", 100);
+ }
+ if (Score < 1)
+ {
+ throw new ValidationException(ValidationRules.InclusiveMinimum, "Score", 1);
}
}
}
diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/BackendAddressInboundNatRulePortMappings.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/BackendAddressInboundNatRulePortMappings.cs
new file mode 100644
index 000000000000..118c44fbd125
--- /dev/null
+++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/BackendAddressInboundNatRulePortMappings.cs
@@ -0,0 +1,56 @@
+//
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License. See License.txt in the project root for
+// license information.
+//
+// Code generated by Microsoft (R) AutoRest Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is
+// regenerated.
+//
+
+namespace Microsoft.Azure.Management.Network.Models
+{
+ using Newtonsoft.Json;
+ using System.Collections;
+ using System.Collections.Generic;
+ using System.Linq;
+
+ ///
+ /// The response for a QueryInboundNatRulePortMapping API.
+ ///
+ public partial class BackendAddressInboundNatRulePortMappings
+ {
+ ///
+ /// Initializes a new instance of the
+ /// BackendAddressInboundNatRulePortMappings class.
+ ///
+ public BackendAddressInboundNatRulePortMappings()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the
+ /// BackendAddressInboundNatRulePortMappings class.
+ ///
+ /// Collection of inbound NAT
+ /// rule port mappings.
+ public BackendAddressInboundNatRulePortMappings(IList inboundNatRulePortMappings = default(IList))
+ {
+ InboundNatRulePortMappings = inboundNatRulePortMappings;
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+ ///
+ /// Gets or sets collection of inbound NAT rule port mappings.
+ ///
+ [JsonProperty(PropertyName = "inboundNatRulePortMappings")]
+ public IList InboundNatRulePortMappings { get; set; }
+
+ }
+}
diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/BackendAddressPool.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/BackendAddressPool.cs
index 0cb46bba66e0..a702d547bf1d 100644
--- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/BackendAddressPool.cs
+++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/BackendAddressPool.cs
@@ -49,6 +49,8 @@ public BackendAddressPool()
/// uses this backend address pool.
/// An array of references to outbound
/// rules that use this backend address pool.
+ /// An array of references to inbound NAT
+ /// rules that use this backend address pool.
/// The provisioning state of the
/// backend address pool resource. Possible values include:
/// 'Succeeded', 'Updating', 'Deleting', 'Failed'
@@ -58,7 +60,7 @@ public BackendAddressPool()
/// A unique read-only string that changes whenever
/// the resource is updated.
/// Type of the resource.
- public BackendAddressPool(string id = default(string), string location = default(string), IList tunnelInterfaces = default(IList), IList loadBalancerBackendAddresses = default(IList), IList backendIPConfigurations = default(IList), IList loadBalancingRules = default(IList), SubResource outboundRule = default(SubResource), IList outboundRules = default(IList), string provisioningState = default(string), string name = default(string), string etag = default(string), string type = default(string))
+ public BackendAddressPool(string id = default(string), string location = default(string), IList tunnelInterfaces = default(IList), IList loadBalancerBackendAddresses = default(IList), IList backendIPConfigurations = default(IList), IList loadBalancingRules = default(IList), SubResource outboundRule = default(SubResource), IList outboundRules = default(IList), IList inboundNatRules = default(IList), string provisioningState = default(string), string name = default(string), string etag = default(string), string type = default(string))
: base(id)
{
Location = location;
@@ -68,6 +70,7 @@ public BackendAddressPool()
LoadBalancingRules = loadBalancingRules;
OutboundRule = outboundRule;
OutboundRules = outboundRules;
+ InboundNatRules = inboundNatRules;
ProvisioningState = provisioningState;
Name = name;
Etag = etag;
@@ -126,6 +129,13 @@ public BackendAddressPool()
[JsonProperty(PropertyName = "properties.outboundRules")]
public IList OutboundRules { get; private set; }
+ ///
+ /// Gets an array of references to inbound NAT rules that use this
+ /// backend address pool.
+ ///
+ [JsonProperty(PropertyName = "properties.inboundNatRules")]
+ public IList InboundNatRules { get; private set; }
+
///
/// Gets the provisioning state of the backend address pool resource.
/// Possible values include: 'Succeeded', 'Updating', 'Deleting',
diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/BastionHost.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/BastionHost.cs
index abb537163021..fdb1f396faeb 100644
--- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/BastionHost.cs
+++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/BastionHost.cs
@@ -175,16 +175,13 @@ public virtual void Validate()
}
}
}
- if (ScaleUnits != null)
+ if (ScaleUnits > 50)
{
- if (ScaleUnits > 50)
- {
- throw new ValidationException(ValidationRules.InclusiveMaximum, "ScaleUnits", 50);
- }
- if (ScaleUnits < 2)
- {
- throw new ValidationException(ValidationRules.InclusiveMinimum, "ScaleUnits", 2);
- }
+ throw new ValidationException(ValidationRules.InclusiveMaximum, "ScaleUnits", 50);
+ }
+ if (ScaleUnits < 2)
+ {
+ throw new ValidationException(ValidationRules.InclusiveMinimum, "ScaleUnits", 2);
}
}
}
diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/BgpConnection.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/BgpConnection.cs
index 35fd140862ac..fbcc04667aeb 100644
--- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/BgpConnection.cs
+++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/BgpConnection.cs
@@ -126,16 +126,13 @@ public BgpConnection()
///
public virtual void Validate()
{
- if (PeerAsn != null)
+ if (PeerAsn > 4294967295)
{
- if (PeerAsn > 4294967295)
- {
- throw new ValidationException(ValidationRules.InclusiveMaximum, "PeerAsn", 4294967295);
- }
- if (PeerAsn < 0)
- {
- throw new ValidationException(ValidationRules.InclusiveMinimum, "PeerAsn", 0);
- }
+ throw new ValidationException(ValidationRules.InclusiveMaximum, "PeerAsn", 4294967295);
+ }
+ if (PeerAsn < 0)
+ {
+ throw new ValidationException(ValidationRules.InclusiveMinimum, "PeerAsn", 0);
}
}
}
diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/BgpPeerStatus.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/BgpPeerStatus.cs
index 843529d85907..4add761aab2f 100644
--- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/BgpPeerStatus.cs
+++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/BgpPeerStatus.cs
@@ -119,16 +119,13 @@ public BgpPeerStatus()
///
public virtual void Validate()
{
- if (Asn != null)
+ if (Asn > 4294967295)
{
- if (Asn > 4294967295)
- {
- throw new ValidationException(ValidationRules.InclusiveMaximum, "Asn", 4294967295);
- }
- if (Asn < 0)
- {
- throw new ValidationException(ValidationRules.InclusiveMinimum, "Asn", 0);
- }
+ throw new ValidationException(ValidationRules.InclusiveMaximum, "Asn", 4294967295);
+ }
+ if (Asn < 0)
+ {
+ throw new ValidationException(ValidationRules.InclusiveMinimum, "Asn", 0);
}
}
}
diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/BgpSettings.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/BgpSettings.cs
index 7ae62bc4e6bb..5e5788fc6e23 100644
--- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/BgpSettings.cs
+++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/BgpSettings.cs
@@ -88,16 +88,13 @@ public BgpSettings()
///
public virtual void Validate()
{
- if (Asn != null)
+ if (Asn > 4294967295)
{
- if (Asn > 4294967295)
- {
- throw new ValidationException(ValidationRules.InclusiveMaximum, "Asn", 4294967295);
- }
- if (Asn < 0)
- {
- throw new ValidationException(ValidationRules.InclusiveMinimum, "Asn", 0);
- }
+ throw new ValidationException(ValidationRules.InclusiveMaximum, "Asn", 4294967295);
+ }
+ if (Asn < 0)
+ {
+ throw new ValidationException(ValidationRules.InclusiveMinimum, "Asn", 0);
}
}
}
diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ConnectionMonitor.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ConnectionMonitor.cs
index 89593c0c4910..0caac861305b 100644
--- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ConnectionMonitor.cs
+++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ConnectionMonitor.cs
@@ -158,16 +158,13 @@ public virtual void Validate()
{
Destination.Validate();
}
- if (MonitoringIntervalInSeconds != null)
+ if (MonitoringIntervalInSeconds > 1800)
{
- if (MonitoringIntervalInSeconds > 1800)
- {
- throw new ValidationException(ValidationRules.InclusiveMaximum, "MonitoringIntervalInSeconds", 1800);
- }
- if (MonitoringIntervalInSeconds < 30)
- {
- throw new ValidationException(ValidationRules.InclusiveMinimum, "MonitoringIntervalInSeconds", 30);
- }
+ throw new ValidationException(ValidationRules.InclusiveMaximum, "MonitoringIntervalInSeconds", 1800);
+ }
+ if (MonitoringIntervalInSeconds < 30)
+ {
+ throw new ValidationException(ValidationRules.InclusiveMinimum, "MonitoringIntervalInSeconds", 30);
}
if (Endpoints != null)
{
diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ConnectionMonitorDestination.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ConnectionMonitorDestination.cs
index a2c4c891be63..eb4b187b8726 100644
--- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ConnectionMonitorDestination.cs
+++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ConnectionMonitorDestination.cs
@@ -79,16 +79,13 @@ public ConnectionMonitorDestination()
///
public virtual void Validate()
{
- if (Port != null)
+ if (Port > 65535)
{
- if (Port > 65535)
- {
- throw new ValidationException(ValidationRules.InclusiveMaximum, "Port", 65535);
- }
- if (Port < 0)
- {
- throw new ValidationException(ValidationRules.InclusiveMinimum, "Port", 0);
- }
+ throw new ValidationException(ValidationRules.InclusiveMaximum, "Port", 65535);
+ }
+ if (Port < 0)
+ {
+ throw new ValidationException(ValidationRules.InclusiveMinimum, "Port", 0);
}
}
}
diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ConnectionMonitorHttpConfiguration.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ConnectionMonitorHttpConfiguration.cs
index 9f52940d25c4..7d6e8ebc03e8 100644
--- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ConnectionMonitorHttpConfiguration.cs
+++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ConnectionMonitorHttpConfiguration.cs
@@ -110,16 +110,13 @@ public ConnectionMonitorHttpConfiguration()
///
public virtual void Validate()
{
- if (Port != null)
+ if (Port > 65535)
{
- if (Port > 65535)
- {
- throw new ValidationException(ValidationRules.InclusiveMaximum, "Port", 65535);
- }
- if (Port < 0)
- {
- throw new ValidationException(ValidationRules.InclusiveMinimum, "Port", 0);
- }
+ throw new ValidationException(ValidationRules.InclusiveMaximum, "Port", 65535);
+ }
+ if (Port < 0)
+ {
+ throw new ValidationException(ValidationRules.InclusiveMinimum, "Port", 0);
}
}
}
diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ConnectionMonitorParameters.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ConnectionMonitorParameters.cs
index 403ef9585674..b4ad6eaafdb1 100644
--- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ConnectionMonitorParameters.cs
+++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ConnectionMonitorParameters.cs
@@ -142,16 +142,13 @@ public virtual void Validate()
{
Destination.Validate();
}
- if (MonitoringIntervalInSeconds != null)
+ if (MonitoringIntervalInSeconds > 1800)
{
- if (MonitoringIntervalInSeconds > 1800)
- {
- throw new ValidationException(ValidationRules.InclusiveMaximum, "MonitoringIntervalInSeconds", 1800);
- }
- if (MonitoringIntervalInSeconds < 30)
- {
- throw new ValidationException(ValidationRules.InclusiveMinimum, "MonitoringIntervalInSeconds", 30);
- }
+ throw new ValidationException(ValidationRules.InclusiveMaximum, "MonitoringIntervalInSeconds", 1800);
+ }
+ if (MonitoringIntervalInSeconds < 30)
+ {
+ throw new ValidationException(ValidationRules.InclusiveMinimum, "MonitoringIntervalInSeconds", 30);
}
if (Endpoints != null)
{
diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ConnectionMonitorResult.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ConnectionMonitorResult.cs
index afe0533ea4c7..2a49a2fa6b6a 100644
--- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ConnectionMonitorResult.cs
+++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ConnectionMonitorResult.cs
@@ -233,16 +233,13 @@ public virtual void Validate()
{
Destination.Validate();
}
- if (MonitoringIntervalInSeconds != null)
+ if (MonitoringIntervalInSeconds > 1800)
{
- if (MonitoringIntervalInSeconds > 1800)
- {
- throw new ValidationException(ValidationRules.InclusiveMaximum, "MonitoringIntervalInSeconds", 1800);
- }
- if (MonitoringIntervalInSeconds < 30)
- {
- throw new ValidationException(ValidationRules.InclusiveMinimum, "MonitoringIntervalInSeconds", 30);
- }
+ throw new ValidationException(ValidationRules.InclusiveMaximum, "MonitoringIntervalInSeconds", 1800);
+ }
+ if (MonitoringIntervalInSeconds < 30)
+ {
+ throw new ValidationException(ValidationRules.InclusiveMinimum, "MonitoringIntervalInSeconds", 30);
}
if (Endpoints != null)
{
diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ConnectionMonitorSource.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ConnectionMonitorSource.cs
index 83bd49a53e0d..b0627a3e13db 100644
--- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ConnectionMonitorSource.cs
+++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ConnectionMonitorSource.cs
@@ -71,16 +71,13 @@ public virtual void Validate()
{
throw new ValidationException(ValidationRules.CannotBeNull, "ResourceId");
}
- if (Port != null)
+ if (Port > 65535)
{
- if (Port > 65535)
- {
- throw new ValidationException(ValidationRules.InclusiveMaximum, "Port", 65535);
- }
- if (Port < 0)
- {
- throw new ValidationException(ValidationRules.InclusiveMinimum, "Port", 0);
- }
+ throw new ValidationException(ValidationRules.InclusiveMaximum, "Port", 65535);
+ }
+ if (Port < 0)
+ {
+ throw new ValidationException(ValidationRules.InclusiveMinimum, "Port", 0);
}
}
}
diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ConnectionMonitorTcpConfiguration.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ConnectionMonitorTcpConfiguration.cs
index 2fe276a1ca7c..66c4afb87b25 100644
--- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ConnectionMonitorTcpConfiguration.cs
+++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ConnectionMonitorTcpConfiguration.cs
@@ -78,16 +78,13 @@ public ConnectionMonitorTcpConfiguration()
///
public virtual void Validate()
{
- if (Port != null)
+ if (Port > 65535)
{
- if (Port > 65535)
- {
- throw new ValidationException(ValidationRules.InclusiveMaximum, "Port", 65535);
- }
- if (Port < 0)
- {
- throw new ValidationException(ValidationRules.InclusiveMinimum, "Port", 0);
- }
+ throw new ValidationException(ValidationRules.InclusiveMaximum, "Port", 65535);
+ }
+ if (Port < 0)
+ {
+ throw new ValidationException(ValidationRules.InclusiveMinimum, "Port", 0);
}
}
}
diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ConnectionStateSnapshot.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ConnectionStateSnapshot.cs
index fb8bdc77ff24..30b563b24bd9 100644
--- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ConnectionStateSnapshot.cs
+++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ConnectionStateSnapshot.cs
@@ -138,60 +138,45 @@ public ConnectionStateSnapshot()
///
public virtual void Validate()
{
- if (AvgLatencyInMs != null)
+ if (AvgLatencyInMs > 4294967295)
{
- if (AvgLatencyInMs > 4294967295)
- {
- throw new ValidationException(ValidationRules.InclusiveMaximum, "AvgLatencyInMs", 4294967295);
- }
- if (AvgLatencyInMs < 0)
- {
- throw new ValidationException(ValidationRules.InclusiveMinimum, "AvgLatencyInMs", 0);
- }
+ throw new ValidationException(ValidationRules.InclusiveMaximum, "AvgLatencyInMs", 4294967295);
}
- if (MinLatencyInMs != null)
+ if (AvgLatencyInMs < 0)
{
- if (MinLatencyInMs > 4294967295)
- {
- throw new ValidationException(ValidationRules.InclusiveMaximum, "MinLatencyInMs", 4294967295);
- }
- if (MinLatencyInMs < 0)
- {
- throw new ValidationException(ValidationRules.InclusiveMinimum, "MinLatencyInMs", 0);
- }
+ throw new ValidationException(ValidationRules.InclusiveMinimum, "AvgLatencyInMs", 0);
}
- if (MaxLatencyInMs != null)
+ if (MinLatencyInMs > 4294967295)
{
- if (MaxLatencyInMs > 4294967295)
- {
- throw new ValidationException(ValidationRules.InclusiveMaximum, "MaxLatencyInMs", 4294967295);
- }
- if (MaxLatencyInMs < 0)
- {
- throw new ValidationException(ValidationRules.InclusiveMinimum, "MaxLatencyInMs", 0);
- }
+ throw new ValidationException(ValidationRules.InclusiveMaximum, "MinLatencyInMs", 4294967295);
}
- if (ProbesSent != null)
+ if (MinLatencyInMs < 0)
{
- if (ProbesSent > 4294967295)
- {
- throw new ValidationException(ValidationRules.InclusiveMaximum, "ProbesSent", 4294967295);
- }
- if (ProbesSent < 0)
- {
- throw new ValidationException(ValidationRules.InclusiveMinimum, "ProbesSent", 0);
- }
+ throw new ValidationException(ValidationRules.InclusiveMinimum, "MinLatencyInMs", 0);
}
- if (ProbesFailed != null)
+ if (MaxLatencyInMs > 4294967295)
{
- if (ProbesFailed > 4294967295)
- {
- throw new ValidationException(ValidationRules.InclusiveMaximum, "ProbesFailed", 4294967295);
- }
- if (ProbesFailed < 0)
- {
- throw new ValidationException(ValidationRules.InclusiveMinimum, "ProbesFailed", 0);
- }
+ throw new ValidationException(ValidationRules.InclusiveMaximum, "MaxLatencyInMs", 4294967295);
+ }
+ if (MaxLatencyInMs < 0)
+ {
+ throw new ValidationException(ValidationRules.InclusiveMinimum, "MaxLatencyInMs", 0);
+ }
+ if (ProbesSent > 4294967295)
+ {
+ throw new ValidationException(ValidationRules.InclusiveMaximum, "ProbesSent", 4294967295);
+ }
+ if (ProbesSent < 0)
+ {
+ throw new ValidationException(ValidationRules.InclusiveMinimum, "ProbesSent", 0);
+ }
+ if (ProbesFailed > 4294967295)
+ {
+ throw new ValidationException(ValidationRules.InclusiveMaximum, "ProbesFailed", 4294967295);
+ }
+ if (ProbesFailed < 0)
+ {
+ throw new ValidationException(ValidationRules.InclusiveMinimum, "ProbesFailed", 0);
}
}
}
diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ConnectivityDestination.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ConnectivityDestination.cs
index f6f519013db7..070ecc5f1ead 100644
--- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ConnectivityDestination.cs
+++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ConnectivityDestination.cs
@@ -77,16 +77,13 @@ public ConnectivityDestination()
///
public virtual void Validate()
{
- if (Port != null)
+ if (Port > 65535)
{
- if (Port > 65535)
- {
- throw new ValidationException(ValidationRules.InclusiveMaximum, "Port", 65535);
- }
- if (Port < 0)
- {
- throw new ValidationException(ValidationRules.InclusiveMinimum, "Port", 0);
- }
+ throw new ValidationException(ValidationRules.InclusiveMaximum, "Port", 65535);
+ }
+ if (Port < 0)
+ {
+ throw new ValidationException(ValidationRules.InclusiveMinimum, "Port", 0);
}
}
}
diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ConnectivitySource.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ConnectivitySource.cs
index 9115d726b250..00e6136a7079 100644
--- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ConnectivitySource.cs
+++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ConnectivitySource.cs
@@ -72,16 +72,13 @@ public virtual void Validate()
{
throw new ValidationException(ValidationRules.CannotBeNull, "ResourceId");
}
- if (Port != null)
+ if (Port > 65535)
{
- if (Port > 65535)
- {
- throw new ValidationException(ValidationRules.InclusiveMaximum, "Port", 65535);
- }
- if (Port < 0)
- {
- throw new ValidationException(ValidationRules.InclusiveMinimum, "Port", 0);
- }
+ throw new ValidationException(ValidationRules.InclusiveMaximum, "Port", 65535);
+ }
+ if (Port < 0)
+ {
+ throw new ValidationException(ValidationRules.InclusiveMinimum, "Port", 0);
}
}
}
diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/CustomIpPrefix.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/CustomIpPrefix.cs
index 42337c4a1237..9d76ca3dd9f2 100644
--- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/CustomIpPrefix.cs
+++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/CustomIpPrefix.cs
@@ -68,7 +68,7 @@ public CustomIpPrefix()
/// the resource is updated.
/// A list of availability zones denoting the IP
/// allocated for the resource needs to come from.
- public CustomIpPrefix(string id = default(string), string name = default(string), string type = default(string), string location = default(string), IDictionary tags = default(IDictionary), ExtendedLocation extendedLocation = default(ExtendedLocation), string cidr = default(string), string signedMessage = default(string), string authorizationMessage = default(string), CustomIpPrefix customIpPrefixParent = default(CustomIpPrefix), IList childCustomIpPrefixes = default(IList), string commissionedState = default(string), IList publicIpPrefixes = default(IList), string resourceGuid = default(string), string failedReason = default(string), string provisioningState = default(string), string etag = default(string), IList zones = default(IList))
+ public CustomIpPrefix(string id = default(string), string name = default(string), string type = default(string), string location = default(string), IDictionary tags = default(IDictionary), ExtendedLocation extendedLocation = default(ExtendedLocation), string cidr = default(string), string signedMessage = default(string), string authorizationMessage = default(string), SubResource customIpPrefixParent = default(SubResource), IList childCustomIpPrefixes = default(IList), string commissionedState = default(string), IList publicIpPrefixes = default(IList), string resourceGuid = default(string), string failedReason = default(string), string provisioningState = default(string), string etag = default(string), IList zones = default(IList))
: base(id, name, type, location, tags)
{
ExtendedLocation = extendedLocation;
@@ -121,13 +121,13 @@ public CustomIpPrefix()
/// Gets or sets the Parent CustomIpPrefix for IPv6 /64 CustomIpPrefix.
///
[JsonProperty(PropertyName = "properties.customIpPrefixParent")]
- public CustomIpPrefix CustomIpPrefixParent { get; set; }
+ public SubResource CustomIpPrefixParent { get; set; }
///
/// Gets the list of all Children for IPv6 /48 CustomIpPrefix.
///
[JsonProperty(PropertyName = "properties.childCustomIpPrefixes")]
- public IList ChildCustomIpPrefixes { get; private set; }
+ public IList ChildCustomIpPrefixes { get; private set; }
///
/// Gets or sets the commissioned state of the Custom IP Prefix.
diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ExclusionManagedRule.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ExclusionManagedRule.cs
new file mode 100644
index 000000000000..44c785ebe94d
--- /dev/null
+++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ExclusionManagedRule.cs
@@ -0,0 +1,65 @@
+//
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License. See License.txt in the project root for
+// license information.
+//
+// Code generated by Microsoft (R) AutoRest Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is
+// regenerated.
+//
+
+namespace Microsoft.Azure.Management.Network.Models
+{
+ using Microsoft.Rest;
+ using Newtonsoft.Json;
+ using System.Linq;
+
+ ///
+ /// Defines a managed rule to use for exclusion.
+ ///
+ public partial class ExclusionManagedRule
+ {
+ ///
+ /// Initializes a new instance of the ExclusionManagedRule class.
+ ///
+ public ExclusionManagedRule()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the ExclusionManagedRule class.
+ ///
+ /// Identifier for the managed rule.
+ public ExclusionManagedRule(string ruleId)
+ {
+ RuleId = ruleId;
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+ ///
+ /// Gets or sets identifier for the managed rule.
+ ///
+ [JsonProperty(PropertyName = "ruleId")]
+ public string RuleId { get; set; }
+
+ ///
+ /// Validate the object.
+ ///
+ ///
+ /// Thrown if validation fails
+ ///
+ public virtual void Validate()
+ {
+ if (RuleId == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "RuleId");
+ }
+ }
+ }
+}
diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ExclusionManagedRuleGroup.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ExclusionManagedRuleGroup.cs
new file mode 100644
index 000000000000..7155f79dfb6a
--- /dev/null
+++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ExclusionManagedRuleGroup.cs
@@ -0,0 +1,88 @@
+//
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License. See License.txt in the project root for
+// license information.
+//
+// Code generated by Microsoft (R) AutoRest Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is
+// regenerated.
+//
+
+namespace Microsoft.Azure.Management.Network.Models
+{
+ using Microsoft.Rest;
+ using Newtonsoft.Json;
+ using System.Collections;
+ using System.Collections.Generic;
+ using System.Linq;
+
+ ///
+ /// Defines a managed rule group to use for exclusion.
+ ///
+ public partial class ExclusionManagedRuleGroup
+ {
+ ///
+ /// Initializes a new instance of the ExclusionManagedRuleGroup class.
+ ///
+ public ExclusionManagedRuleGroup()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the ExclusionManagedRuleGroup class.
+ ///
+ /// The managed rule group for
+ /// exclusion.
+ /// List of rules that will be excluded. If none
+ /// specified, all rules in the group will be excluded.
+ public ExclusionManagedRuleGroup(string ruleGroupName, IList rules = default(IList))
+ {
+ RuleGroupName = ruleGroupName;
+ Rules = rules;
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+ ///
+ /// Gets or sets the managed rule group for exclusion.
+ ///
+ [JsonProperty(PropertyName = "ruleGroupName")]
+ public string RuleGroupName { get; set; }
+
+ ///
+ /// Gets or sets list of rules that will be excluded. If none
+ /// specified, all rules in the group will be excluded.
+ ///
+ [JsonProperty(PropertyName = "rules")]
+ public IList Rules { get; set; }
+
+ ///
+ /// Validate the object.
+ ///
+ ///
+ /// Thrown if validation fails
+ ///
+ public virtual void Validate()
+ {
+ if (RuleGroupName == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "RuleGroupName");
+ }
+ if (Rules != null)
+ {
+ foreach (var element in Rules)
+ {
+ if (element != null)
+ {
+ element.Validate();
+ }
+ }
+ }
+ }
+ }
+}
diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ExclusionManagedRuleSet.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ExclusionManagedRuleSet.cs
new file mode 100644
index 000000000000..827a42b1b747
--- /dev/null
+++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ExclusionManagedRuleSet.cs
@@ -0,0 +1,99 @@
+//
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License. See License.txt in the project root for
+// license information.
+//
+// Code generated by Microsoft (R) AutoRest Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is
+// regenerated.
+//
+
+namespace Microsoft.Azure.Management.Network.Models
+{
+ using Microsoft.Rest;
+ using Newtonsoft.Json;
+ using System.Collections;
+ using System.Collections.Generic;
+ using System.Linq;
+
+ ///
+ /// Defines a managed rule set for Exclusions.
+ ///
+ public partial class ExclusionManagedRuleSet
+ {
+ ///
+ /// Initializes a new instance of the ExclusionManagedRuleSet class.
+ ///
+ public ExclusionManagedRuleSet()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the ExclusionManagedRuleSet class.
+ ///
+ /// Defines the rule set type to use.
+ /// Defines the version of the rule set to
+ /// use.
+ /// Defines the rule groups to apply to the
+ /// rule set.
+ public ExclusionManagedRuleSet(string ruleSetType, string ruleSetVersion, IList ruleGroups = default(IList))
+ {
+ RuleSetType = ruleSetType;
+ RuleSetVersion = ruleSetVersion;
+ RuleGroups = ruleGroups;
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+ ///
+ /// Gets or sets defines the rule set type to use.
+ ///
+ [JsonProperty(PropertyName = "ruleSetType")]
+ public string RuleSetType { get; set; }
+
+ ///
+ /// Gets or sets defines the version of the rule set to use.
+ ///
+ [JsonProperty(PropertyName = "ruleSetVersion")]
+ public string RuleSetVersion { get; set; }
+
+ ///
+ /// Gets or sets defines the rule groups to apply to the rule set.
+ ///
+ [JsonProperty(PropertyName = "ruleGroups")]
+ public IList RuleGroups { get; set; }
+
+ ///
+ /// Validate the object.
+ ///
+ ///
+ /// Thrown if validation fails
+ ///
+ public virtual void Validate()
+ {
+ if (RuleSetType == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "RuleSetType");
+ }
+ if (RuleSetVersion == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "RuleSetVersion");
+ }
+ if (RuleGroups != null)
+ {
+ foreach (var element in RuleGroups)
+ {
+ if (element != null)
+ {
+ element.Validate();
+ }
+ }
+ }
+ }
+ }
+}
diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ExplicitProxySettings.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ExplicitProxySettings.cs
index 9435d58b46ce..e764328c3b6a 100644
--- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ExplicitProxySettings.cs
+++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ExplicitProxySettings.cs
@@ -94,38 +94,29 @@ public ExplicitProxySettings()
///
public virtual void Validate()
{
- if (HttpPort != null)
+ if (HttpPort > 64000)
{
- if (HttpPort > 64000)
- {
- throw new ValidationException(ValidationRules.InclusiveMaximum, "HttpPort", 64000);
- }
- if (HttpPort < 0)
- {
- throw new ValidationException(ValidationRules.InclusiveMinimum, "HttpPort", 0);
- }
+ throw new ValidationException(ValidationRules.InclusiveMaximum, "HttpPort", 64000);
}
- if (HttpsPort != null)
+ if (HttpPort < 0)
{
- if (HttpsPort > 64000)
- {
- throw new ValidationException(ValidationRules.InclusiveMaximum, "HttpsPort", 64000);
- }
- if (HttpsPort < 0)
- {
- throw new ValidationException(ValidationRules.InclusiveMinimum, "HttpsPort", 0);
- }
+ throw new ValidationException(ValidationRules.InclusiveMinimum, "HttpPort", 0);
}
- if (PacFilePort != null)
+ if (HttpsPort > 64000)
{
- if (PacFilePort > 64000)
- {
- throw new ValidationException(ValidationRules.InclusiveMaximum, "PacFilePort", 64000);
- }
- if (PacFilePort < 0)
- {
- throw new ValidationException(ValidationRules.InclusiveMinimum, "PacFilePort", 0);
- }
+ throw new ValidationException(ValidationRules.InclusiveMaximum, "HttpsPort", 64000);
+ }
+ if (HttpsPort < 0)
+ {
+ throw new ValidationException(ValidationRules.InclusiveMinimum, "HttpsPort", 0);
+ }
+ if (PacFilePort > 64000)
+ {
+ throw new ValidationException(ValidationRules.InclusiveMaximum, "PacFilePort", 64000);
+ }
+ if (PacFilePort < 0)
+ {
+ throw new ValidationException(ValidationRules.InclusiveMinimum, "PacFilePort", 0);
}
}
}
diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ExpressRouteCircuitPeering.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ExpressRouteCircuitPeering.cs
index 5a4692d55c50..207feb5c06e7 100644
--- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ExpressRouteCircuitPeering.cs
+++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ExpressRouteCircuitPeering.cs
@@ -265,16 +265,13 @@ public ExpressRouteCircuitPeering()
///
public virtual void Validate()
{
- if (PeerASN != null)
+ if (PeerASN > 4294967295)
{
- if (PeerASN > 4294967295)
- {
- throw new ValidationException(ValidationRules.InclusiveMaximum, "PeerASN", 4294967295);
- }
- if (PeerASN < 1)
- {
- throw new ValidationException(ValidationRules.InclusiveMinimum, "PeerASN", 1);
- }
+ throw new ValidationException(ValidationRules.InclusiveMaximum, "PeerASN", 4294967295);
+ }
+ if (PeerASN < 1)
+ {
+ throw new ValidationException(ValidationRules.InclusiveMinimum, "PeerASN", 1);
}
}
}
diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ExpressRouteCrossConnectionPeering.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ExpressRouteCrossConnectionPeering.cs
index 2246452167f1..7f0342d94b6b 100644
--- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ExpressRouteCrossConnectionPeering.cs
+++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ExpressRouteCrossConnectionPeering.cs
@@ -209,16 +209,13 @@ public ExpressRouteCrossConnectionPeering()
///
public virtual void Validate()
{
- if (PeerASN != null)
+ if (PeerASN > 4294967295)
{
- if (PeerASN > 4294967295)
- {
- throw new ValidationException(ValidationRules.InclusiveMaximum, "PeerASN", 4294967295);
- }
- if (PeerASN < 1)
- {
- throw new ValidationException(ValidationRules.InclusiveMinimum, "PeerASN", 1);
- }
+ throw new ValidationException(ValidationRules.InclusiveMaximum, "PeerASN", 4294967295);
+ }
+ if (PeerASN < 1)
+ {
+ throw new ValidationException(ValidationRules.InclusiveMinimum, "PeerASN", 1);
}
}
}
diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/FilterItems.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/FilterItems.cs
new file mode 100644
index 000000000000..43dcbe2eb09a
--- /dev/null
+++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/FilterItems.cs
@@ -0,0 +1,63 @@
+//
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License. See License.txt in the project root for
+// license information.
+//
+// Code generated by Microsoft (R) AutoRest Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is
+// regenerated.
+//
+
+namespace Microsoft.Azure.Management.Network.Models
+{
+ using Newtonsoft.Json;
+ using System.Collections;
+ using System.Collections.Generic;
+ using System.Linq;
+
+ ///
+ /// Will contain the filter name and values to operate on
+ ///
+ public partial class FilterItems
+ {
+ ///
+ /// Initializes a new instance of the FilterItems class.
+ ///
+ public FilterItems()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the FilterItems class.
+ ///
+ /// The name of the field we would like to
+ /// filter
+ /// List of values to filter the current field
+ /// by
+ public FilterItems(string field = default(string), IList values = default(IList))
+ {
+ Field = field;
+ Values = values;
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+ ///
+ /// Gets or sets the name of the field we would like to filter
+ ///
+ [JsonProperty(PropertyName = "field")]
+ public string Field { get; set; }
+
+ ///
+ /// Gets or sets list of values to filter the current field by
+ ///
+ [JsonProperty(PropertyName = "values")]
+ public IList Values { get; set; }
+
+ }
+}
diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/FirewallPolicyFilterRuleCollection.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/FirewallPolicyFilterRuleCollection.cs
index 2184add4699b..f0a93af05634 100644
--- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/FirewallPolicyFilterRuleCollection.cs
+++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/FirewallPolicyFilterRuleCollection.cs
@@ -18,7 +18,6 @@ namespace Microsoft.Azure.Management.Network.Models
///
/// Firewall Policy Filter Rule Collection.
///
- [Newtonsoft.Json.JsonObject("FirewallPolicyFilterRuleCollection")]
public partial class FirewallPolicyFilterRuleCollection : FirewallPolicyRuleCollection
{
///
diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/FirewallPolicyNatRuleCollection.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/FirewallPolicyNatRuleCollection.cs
index 5466fda21bf3..45fc27690fbb 100644
--- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/FirewallPolicyNatRuleCollection.cs
+++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/FirewallPolicyNatRuleCollection.cs
@@ -18,7 +18,6 @@ namespace Microsoft.Azure.Management.Network.Models
///
/// Firewall Policy NAT Rule Collection.
///
- [Newtonsoft.Json.JsonObject("FirewallPolicyNatRuleCollection")]
public partial class FirewallPolicyNatRuleCollection : FirewallPolicyRuleCollection
{
///
diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/FirewallPolicyRule.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/FirewallPolicyRule.cs
index ed4b7f977df1..f56257124f71 100644
--- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/FirewallPolicyRule.cs
+++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/FirewallPolicyRule.cs
@@ -16,7 +16,6 @@ namespace Microsoft.Azure.Management.Network.Models
///
/// Properties of a rule.
///
- [Newtonsoft.Json.JsonObject("FirewallPolicyRule")]
public partial class FirewallPolicyRule
{
///
diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/FirewallPolicyRuleApplicationProtocol.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/FirewallPolicyRuleApplicationProtocol.cs
index 2bad4a0ff8cf..cf68f4aa6b54 100644
--- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/FirewallPolicyRuleApplicationProtocol.cs
+++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/FirewallPolicyRuleApplicationProtocol.cs
@@ -70,16 +70,13 @@ public FirewallPolicyRuleApplicationProtocol()
///
public virtual void Validate()
{
- if (Port != null)
+ if (Port > 64000)
{
- if (Port > 64000)
- {
- throw new ValidationException(ValidationRules.InclusiveMaximum, "Port", 64000);
- }
- if (Port < 0)
- {
- throw new ValidationException(ValidationRules.InclusiveMinimum, "Port", 0);
- }
+ throw new ValidationException(ValidationRules.InclusiveMaximum, "Port", 64000);
+ }
+ if (Port < 0)
+ {
+ throw new ValidationException(ValidationRules.InclusiveMinimum, "Port", 0);
}
}
}
diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/FirewallPolicyRuleCollection.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/FirewallPolicyRuleCollection.cs
index 824b73fb84a3..03123f19d0fa 100644
--- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/FirewallPolicyRuleCollection.cs
+++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/FirewallPolicyRuleCollection.cs
@@ -17,7 +17,6 @@ namespace Microsoft.Azure.Management.Network.Models
///
/// Properties of the rule collection.
///
- [Newtonsoft.Json.JsonObject("FirewallPolicyRuleCollection")]
public partial class FirewallPolicyRuleCollection
{
///
@@ -69,16 +68,13 @@ public FirewallPolicyRuleCollection()
///
public virtual void Validate()
{
- if (Priority != null)
+ if (Priority > 65000)
{
- if (Priority > 65000)
- {
- throw new ValidationException(ValidationRules.InclusiveMaximum, "Priority", 65000);
- }
- if (Priority < 100)
- {
- throw new ValidationException(ValidationRules.InclusiveMinimum, "Priority", 100);
- }
+ throw new ValidationException(ValidationRules.InclusiveMaximum, "Priority", 65000);
+ }
+ if (Priority < 100)
+ {
+ throw new ValidationException(ValidationRules.InclusiveMinimum, "Priority", 100);
}
}
}
diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/FirewallPolicyRuleCollectionGroup.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/FirewallPolicyRuleCollectionGroup.cs
index 3cd122ca0f1d..b417d38a1e8c 100644
--- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/FirewallPolicyRuleCollectionGroup.cs
+++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/FirewallPolicyRuleCollectionGroup.cs
@@ -116,16 +116,13 @@ public FirewallPolicyRuleCollectionGroup()
///
public virtual void Validate()
{
- if (Priority != null)
+ if (Priority > 65000)
{
- if (Priority > 65000)
- {
- throw new ValidationException(ValidationRules.InclusiveMaximum, "Priority", 65000);
- }
- if (Priority < 100)
- {
- throw new ValidationException(ValidationRules.InclusiveMinimum, "Priority", 100);
- }
+ throw new ValidationException(ValidationRules.InclusiveMaximum, "Priority", 65000);
+ }
+ if (Priority < 100)
+ {
+ throw new ValidationException(ValidationRules.InclusiveMinimum, "Priority", 100);
}
if (RuleCollections != null)
{
diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/FirewallPolicySku.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/FirewallPolicySku.cs
index 902de3099afb..87e5d50a7aa9 100644
--- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/FirewallPolicySku.cs
+++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/FirewallPolicySku.cs
@@ -30,7 +30,7 @@ public FirewallPolicySku()
/// Initializes a new instance of the FirewallPolicySku class.
///
/// Tier of Firewall Policy. Possible values
- /// include: 'Standard', 'Premium'
+ /// include: 'Standard', 'Premium', 'Basic'
public FirewallPolicySku(string tier = default(string))
{
Tier = tier;
@@ -44,7 +44,7 @@ public FirewallPolicySku()
///
/// Gets or sets tier of Firewall Policy. Possible values include:
- /// 'Standard', 'Premium'
+ /// 'Standard', 'Premium', 'Basic'
///
[JsonProperty(PropertyName = "tier")]
public string Tier { get; set; }
diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/FirewallPolicySkuTier.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/FirewallPolicySkuTier.cs
index 0feed0f034e5..2ef56270ca30 100644
--- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/FirewallPolicySkuTier.cs
+++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/FirewallPolicySkuTier.cs
@@ -18,5 +18,6 @@ public static class FirewallPolicySkuTier
{
public const string Standard = "Standard";
public const string Premium = "Premium";
+ public const string Basic = "Basic";
}
}
diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/HopLink.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/HopLink.cs
index cfec5a05915c..64218016af56 100644
--- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/HopLink.cs
+++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/HopLink.cs
@@ -119,38 +119,29 @@ public HopLink()
///
public virtual void Validate()
{
- if (RoundTripTimeMin != null)
+ if (RoundTripTimeMin > 4294967295)
{
- if (RoundTripTimeMin > 4294967295)
- {
- throw new ValidationException(ValidationRules.InclusiveMaximum, "RoundTripTimeMin", 4294967295);
- }
- if (RoundTripTimeMin < 0)
- {
- throw new ValidationException(ValidationRules.InclusiveMinimum, "RoundTripTimeMin", 0);
- }
+ throw new ValidationException(ValidationRules.InclusiveMaximum, "RoundTripTimeMin", 4294967295);
}
- if (RoundTripTimeAvg != null)
+ if (RoundTripTimeMin < 0)
{
- if (RoundTripTimeAvg > 4294967295)
- {
- throw new ValidationException(ValidationRules.InclusiveMaximum, "RoundTripTimeAvg", 4294967295);
- }
- if (RoundTripTimeAvg < 0)
- {
- throw new ValidationException(ValidationRules.InclusiveMinimum, "RoundTripTimeAvg", 0);
- }
+ throw new ValidationException(ValidationRules.InclusiveMinimum, "RoundTripTimeMin", 0);
}
- if (RoundTripTimeMax != null)
+ if (RoundTripTimeAvg > 4294967295)
{
- if (RoundTripTimeMax > 4294967295)
- {
- throw new ValidationException(ValidationRules.InclusiveMaximum, "RoundTripTimeMax", 4294967295);
- }
- if (RoundTripTimeMax < 0)
- {
- throw new ValidationException(ValidationRules.InclusiveMinimum, "RoundTripTimeMax", 0);
- }
+ throw new ValidationException(ValidationRules.InclusiveMaximum, "RoundTripTimeAvg", 4294967295);
+ }
+ if (RoundTripTimeAvg < 0)
+ {
+ throw new ValidationException(ValidationRules.InclusiveMinimum, "RoundTripTimeAvg", 0);
+ }
+ if (RoundTripTimeMax > 4294967295)
+ {
+ throw new ValidationException(ValidationRules.InclusiveMaximum, "RoundTripTimeMax", 4294967295);
+ }
+ if (RoundTripTimeMax < 0)
+ {
+ throw new ValidationException(ValidationRules.InclusiveMinimum, "RoundTripTimeMax", 0);
}
}
}
diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/IDPSQueryObject.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/IDPSQueryObject.cs
new file mode 100644
index 000000000000..937ec0377113
--- /dev/null
+++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/IDPSQueryObject.cs
@@ -0,0 +1,105 @@
+//
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License. See License.txt in the project root for
+// license information.
+//
+// Code generated by Microsoft (R) AutoRest Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is
+// regenerated.
+//
+
+namespace Microsoft.Azure.Management.Network.Models
+{
+ using Microsoft.Rest;
+ using Newtonsoft.Json;
+ using System.Collections;
+ using System.Collections.Generic;
+ using System.Linq;
+
+ ///
+ /// Will describe the query to run against the IDPS signatures DB
+ ///
+ public partial class IDPSQueryObject
+ {
+ ///
+ /// Initializes a new instance of the IDPSQueryObject class.
+ ///
+ public IDPSQueryObject()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the IDPSQueryObject class.
+ ///
+ /// Contain all filters names and values
+ /// Search term in all columns
+ /// Column to sort response by
+ /// The number of the results to return in
+ /// each page
+ /// The number of records matching the filter to
+ /// skip
+ public IDPSQueryObject(IList filters = default(IList), string search = default(string), OrderBy orderBy = default(OrderBy), int? resultsPerPage = default(int?), int? skip = default(int?))
+ {
+ Filters = filters;
+ Search = search;
+ OrderBy = orderBy;
+ ResultsPerPage = resultsPerPage;
+ Skip = skip;
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+ ///
+ /// Gets or sets contain all filters names and values
+ ///
+ [JsonProperty(PropertyName = "filters")]
+ public IList Filters { get; set; }
+
+ ///
+ /// Gets or sets search term in all columns
+ ///
+ [JsonProperty(PropertyName = "search")]
+ public string Search { get; set; }
+
+ ///
+ /// Gets or sets column to sort response by
+ ///
+ [JsonProperty(PropertyName = "orderBy")]
+ public OrderBy OrderBy { get; set; }
+
+ ///
+ /// Gets or sets the number of the results to return in each page
+ ///
+ [JsonProperty(PropertyName = "resultsPerPage")]
+ public int? ResultsPerPage { get; set; }
+
+ ///
+ /// Gets or sets the number of records matching the filter to skip
+ ///
+ [JsonProperty(PropertyName = "skip")]
+ public int? Skip { get; set; }
+
+ ///
+ /// Validate the object.
+ ///
+ ///
+ /// Thrown if validation fails
+ ///
+ public virtual void Validate()
+ {
+ if (ResultsPerPage > 1000)
+ {
+ throw new ValidationException(ValidationRules.InclusiveMaximum, "ResultsPerPage", 1000);
+ }
+ if (ResultsPerPage < 1)
+ {
+ throw new ValidationException(ValidationRules.InclusiveMinimum, "ResultsPerPage", 1);
+ }
+ }
+ }
+}
diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/InboundNatRulePortMapping.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/InboundNatRulePortMapping.cs
new file mode 100644
index 000000000000..a0eb775fd6ba
--- /dev/null
+++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/InboundNatRulePortMapping.cs
@@ -0,0 +1,78 @@
+//
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License. See License.txt in the project root for
+// license information.
+//
+// Code generated by Microsoft (R) AutoRest Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is
+// regenerated.
+//
+
+namespace Microsoft.Azure.Management.Network.Models
+{
+ using Newtonsoft.Json;
+ using System.Linq;
+
+ ///
+ /// Individual port mappings for inbound NAT rule created for backend pool.
+ ///
+ public partial class InboundNatRulePortMapping
+ {
+ ///
+ /// Initializes a new instance of the InboundNatRulePortMapping class.
+ ///
+ public InboundNatRulePortMapping()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the InboundNatRulePortMapping class.
+ ///
+ /// Name of inbound NAT rule.
+ /// The reference to the transport protocol used
+ /// by the inbound NAT rule. Possible values include: 'Udp', 'Tcp',
+ /// 'All'
+ /// Frontend port.
+ /// Backend port.
+ public InboundNatRulePortMapping(string inboundNatRuleName = default(string), string protocol = default(string), int? frontendPort = default(int?), int? backendPort = default(int?))
+ {
+ InboundNatRuleName = inboundNatRuleName;
+ Protocol = protocol;
+ FrontendPort = frontendPort;
+ BackendPort = backendPort;
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+ ///
+ /// Gets name of inbound NAT rule.
+ ///
+ [JsonProperty(PropertyName = "inboundNatRuleName")]
+ public string InboundNatRuleName { get; private set; }
+
+ ///
+ /// Gets the reference to the transport protocol used by the inbound
+ /// NAT rule. Possible values include: 'Udp', 'Tcp', 'All'
+ ///
+ [JsonProperty(PropertyName = "protocol")]
+ public string Protocol { get; private set; }
+
+ ///
+ /// Gets frontend port.
+ ///
+ [JsonProperty(PropertyName = "frontendPort")]
+ public int? FrontendPort { get; private set; }
+
+ ///
+ /// Gets backend port.
+ ///
+ [JsonProperty(PropertyName = "backendPort")]
+ public int? BackendPort { get; private set; }
+
+ }
+}
diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/InboundSecurityRules.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/InboundSecurityRules.cs
index 133d8fe7975e..be9f44b217ff 100644
--- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/InboundSecurityRules.cs
+++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/InboundSecurityRules.cs
@@ -78,16 +78,13 @@ public InboundSecurityRules()
///
public virtual void Validate()
{
- if (DestinationPortRange != null)
+ if (DestinationPortRange > 65535)
{
- if (DestinationPortRange > 65535)
- {
- throw new ValidationException(ValidationRules.InclusiveMaximum, "DestinationPortRange", 65535);
- }
- if (DestinationPortRange < 0)
- {
- throw new ValidationException(ValidationRules.InclusiveMinimum, "DestinationPortRange", 0);
- }
+ throw new ValidationException(ValidationRules.InclusiveMaximum, "DestinationPortRange", 65535);
+ }
+ if (DestinationPortRange < 0)
+ {
+ throw new ValidationException(ValidationRules.InclusiveMinimum, "DestinationPortRange", 0);
}
}
}
diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/LoadBalancer.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/LoadBalancer.cs
index 17b7fe0ef374..065e14de579b 100644
--- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/LoadBalancer.cs
+++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/LoadBalancer.cs
@@ -62,7 +62,7 @@ public LoadBalancer()
/// balancer. Inbound NAT rules are created automatically for each NIC
/// associated with the Load Balancer using an external port from this
/// range. Defining an Inbound NAT pool on your Load Balancer is
- /// mutually exclusive with defining inbound Nat rules. Inbound NAT
+ /// mutually exclusive with defining inbound NAT rules. Inbound NAT
/// pools are referenced from virtual machine scale sets. NICs that are
/// associated with individual virtual machines cannot reference an
/// inbound NAT pool. They have to reference individual inbound NAT
@@ -155,7 +155,7 @@ public LoadBalancer()
/// Inbound NAT rules are created automatically for each NIC associated
/// with the Load Balancer using an external port from this range.
/// Defining an Inbound NAT pool on your Load Balancer is mutually
- /// exclusive with defining inbound Nat rules. Inbound NAT pools are
+ /// exclusive with defining inbound NAT rules. Inbound NAT pools are
/// referenced from virtual machine scale sets. NICs that are
/// associated with individual virtual machines cannot reference an
/// inbound NAT pool. They have to reference individual inbound NAT
diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/LoadBalancerBackendAddress.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/LoadBalancerBackendAddress.cs
index 4fa12f70393c..17aeb50f5be4 100644
--- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/LoadBalancerBackendAddress.cs
+++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/LoadBalancerBackendAddress.cs
@@ -13,6 +13,8 @@ namespace Microsoft.Azure.Management.Network.Models
using Microsoft.Rest;
using Microsoft.Rest.Serialization;
using Newtonsoft.Json;
+ using System.Collections;
+ using System.Collections.Generic;
using System.Linq;
///
@@ -42,14 +44,17 @@ public LoadBalancerBackendAddress()
/// Reference to the
/// frontend ip address configuration defined in regional
/// loadbalancer.
+ /// Collection of inbound NAT
+ /// rule port mappings.
/// Name of the backend address.
- public LoadBalancerBackendAddress(SubResource virtualNetwork = default(SubResource), SubResource subnet = default(SubResource), string ipAddress = default(string), SubResource networkInterfaceIPConfiguration = default(SubResource), SubResource loadBalancerFrontendIPConfiguration = default(SubResource), string name = default(string))
+ public LoadBalancerBackendAddress(SubResource virtualNetwork = default(SubResource), SubResource subnet = default(SubResource), string ipAddress = default(string), SubResource networkInterfaceIPConfiguration = default(SubResource), SubResource loadBalancerFrontendIPConfiguration = default(SubResource), IList inboundNatRulesPortMapping = default(IList), string name = default(string))
{
VirtualNetwork = virtualNetwork;
Subnet = subnet;
IpAddress = ipAddress;
NetworkInterfaceIPConfiguration = networkInterfaceIPConfiguration;
LoadBalancerFrontendIPConfiguration = loadBalancerFrontendIPConfiguration;
+ InboundNatRulesPortMapping = inboundNatRulesPortMapping;
Name = name;
CustomInit();
}
@@ -91,6 +96,12 @@ public LoadBalancerBackendAddress()
[JsonProperty(PropertyName = "properties.loadBalancerFrontendIPConfiguration")]
public SubResource LoadBalancerFrontendIPConfiguration { get; set; }
+ ///
+ /// Gets collection of inbound NAT rule port mappings.
+ ///
+ [JsonProperty(PropertyName = "properties.inboundNatRulesPortMapping")]
+ public IList InboundNatRulesPortMapping { get; private set; }
+
///
/// Gets or sets name of the backend address.
///
diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/NatRule.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/NatRule.cs
index 8dbc9d3c938e..8fa86e0c9935 100644
--- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/NatRule.cs
+++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/NatRule.cs
@@ -18,7 +18,6 @@ namespace Microsoft.Azure.Management.Network.Models
///
/// Rule of type nat.
///
- [Newtonsoft.Json.JsonObject("NatRule")]
public partial class NatRule : FirewallPolicyRule
{
///
diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/NatRulePortMapping.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/NatRulePortMapping.cs
new file mode 100644
index 000000000000..99d3268d82bb
--- /dev/null
+++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/NatRulePortMapping.cs
@@ -0,0 +1,67 @@
+//
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License. See License.txt in the project root for
+// license information.
+//
+// Code generated by Microsoft (R) AutoRest Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is
+// regenerated.
+//
+
+namespace Microsoft.Azure.Management.Network.Models
+{
+ using Newtonsoft.Json;
+ using System.Linq;
+
+ ///
+ /// Individual port mappings for inbound NAT rule created for backend pool.
+ ///
+ public partial class NatRulePortMapping
+ {
+ ///
+ /// Initializes a new instance of the NatRulePortMapping class.
+ ///
+ public NatRulePortMapping()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the NatRulePortMapping class.
+ ///
+ /// Name of inbound NAT rule.
+ /// Frontend port.
+ /// Backend port.
+ public NatRulePortMapping(string inboundNatRuleName = default(string), int? frontendPort = default(int?), int? backendPort = default(int?))
+ {
+ InboundNatRuleName = inboundNatRuleName;
+ FrontendPort = frontendPort;
+ BackendPort = backendPort;
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+ ///
+ /// Gets or sets name of inbound NAT rule.
+ ///
+ [JsonProperty(PropertyName = "inboundNatRuleName")]
+ public string InboundNatRuleName { get; set; }
+
+ ///
+ /// Gets or sets frontend port.
+ ///
+ [JsonProperty(PropertyName = "frontendPort")]
+ public int? FrontendPort { get; set; }
+
+ ///
+ /// Gets or sets backend port.
+ ///
+ [JsonProperty(PropertyName = "backendPort")]
+ public int? BackendPort { get; set; }
+
+ }
+}
diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/NetworkInterface.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/NetworkInterface.cs
index e9a8ebc700fb..29cb8c9198f6 100644
--- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/NetworkInterface.cs
+++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/NetworkInterface.cs
@@ -57,6 +57,8 @@ public NetworkInterface()
/// interface.
/// Whether this is a primary network interface
/// on a virtual machine.
+ /// Whether the virtual machine
+ /// this nic is attached to supports encryption.
/// If the network interface
/// is accelerated networking enabled.
/// Indicates whether IP forwarding is
@@ -81,7 +83,7 @@ public NetworkInterface()
/// 'Abort', 'Committed'
/// A unique read-only string that changes whenever
/// the resource is updated.
- public NetworkInterface(string id = default(string), string name = default(string), string type = default(string), string location = default(string), IDictionary tags = default(IDictionary), ExtendedLocation extendedLocation = default(ExtendedLocation), SubResource virtualMachine = default(SubResource), NetworkSecurityGroup networkSecurityGroup = default(NetworkSecurityGroup), PrivateEndpoint privateEndpoint = default(PrivateEndpoint), IList ipConfigurations = default(IList), IList tapConfigurations = default(IList), NetworkInterfaceDnsSettings dnsSettings = default(NetworkInterfaceDnsSettings), string macAddress = default(string), bool? primary = default(bool?), bool? enableAcceleratedNetworking = default(bool?), bool? enableIPForwarding = default(bool?), IList hostedWorkloads = default(IList), SubResource dscpConfiguration = default(SubResource), string resourceGuid = default(string), string provisioningState = default(string), string workloadType = default(string), string nicType = default(string), PrivateLinkService privateLinkService = default(PrivateLinkService), string migrationPhase = default(string), string etag = default(string))
+ public NetworkInterface(string id = default(string), string name = default(string), string type = default(string), string location = default(string), IDictionary tags = default(IDictionary), ExtendedLocation extendedLocation = default(ExtendedLocation), SubResource virtualMachine = default(SubResource), NetworkSecurityGroup networkSecurityGroup = default(NetworkSecurityGroup), PrivateEndpoint privateEndpoint = default(PrivateEndpoint), IList ipConfigurations = default(IList), IList tapConfigurations = default(IList), NetworkInterfaceDnsSettings dnsSettings = default(NetworkInterfaceDnsSettings), string macAddress = default(string), bool? primary = default(bool?), bool? vnetEncryptionSupported = default(bool?), bool? enableAcceleratedNetworking = default(bool?), bool? enableIPForwarding = default(bool?), IList hostedWorkloads = default(IList), SubResource dscpConfiguration = default(SubResource), string resourceGuid = default(string), string provisioningState = default(string), string workloadType = default(string), string nicType = default(string), PrivateLinkService privateLinkService = default(PrivateLinkService), string migrationPhase = default(string), string etag = default(string))
: base(id, name, type, location, tags)
{
ExtendedLocation = extendedLocation;
@@ -93,6 +95,7 @@ public NetworkInterface()
DnsSettings = dnsSettings;
MacAddress = macAddress;
Primary = primary;
+ VnetEncryptionSupported = vnetEncryptionSupported;
EnableAcceleratedNetworking = enableAcceleratedNetworking;
EnableIPForwarding = enableIPForwarding;
HostedWorkloads = hostedWorkloads;
@@ -168,6 +171,13 @@ public NetworkInterface()
[JsonProperty(PropertyName = "properties.primary")]
public bool? Primary { get; private set; }
+ ///
+ /// Gets whether the virtual machine this nic is attached to supports
+ /// encryption.
+ ///
+ [JsonProperty(PropertyName = "properties.vnetEncryptionSupported")]
+ public bool? VnetEncryptionSupported { get; private set; }
+
///
/// Gets or sets if the network interface is accelerated networking
/// enabled.
diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/NetworkRule.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/NetworkRule.cs
index feebc1b0ae05..7a0279f4f82e 100644
--- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/NetworkRule.cs
+++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/NetworkRule.cs
@@ -18,7 +18,6 @@ namespace Microsoft.Azure.Management.Network.Models
///
/// Rule of type network.
///
- [Newtonsoft.Json.JsonObject("NetworkRule")]
public partial class NetworkRule : FirewallPolicyRule
{
///
diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/NetworkVirtualAppliance.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/NetworkVirtualAppliance.cs
index 35972f2b397d..bda261502f6c 100644
--- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/NetworkVirtualAppliance.cs
+++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/NetworkVirtualAppliance.cs
@@ -187,16 +187,13 @@ public NetworkVirtualAppliance()
///
public virtual void Validate()
{
- if (VirtualApplianceAsn != null)
+ if (VirtualApplianceAsn > 4294967295)
{
- if (VirtualApplianceAsn > 4294967295)
- {
- throw new ValidationException(ValidationRules.InclusiveMaximum, "VirtualApplianceAsn", 4294967295);
- }
- if (VirtualApplianceAsn < 0)
- {
- throw new ValidationException(ValidationRules.InclusiveMinimum, "VirtualApplianceAsn", 0);
- }
+ throw new ValidationException(ValidationRules.InclusiveMaximum, "VirtualApplianceAsn", 4294967295);
+ }
+ if (VirtualApplianceAsn < 0)
+ {
+ throw new ValidationException(ValidationRules.InclusiveMinimum, "VirtualApplianceAsn", 0);
}
}
}
diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/OrderBy.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/OrderBy.cs
new file mode 100644
index 000000000000..6c210bf4ac42
--- /dev/null
+++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/OrderBy.cs
@@ -0,0 +1,63 @@
+//
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License. See License.txt in the project root for
+// license information.
+//
+// Code generated by Microsoft (R) AutoRest Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is
+// regenerated.
+//
+
+namespace Microsoft.Azure.Management.Network.Models
+{
+ using Newtonsoft.Json;
+ using System.Linq;
+
+ ///
+ /// Describes a column to sort
+ ///
+ public partial class OrderBy
+ {
+ ///
+ /// Initializes a new instance of the OrderBy class.
+ ///
+ public OrderBy()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the OrderBy class.
+ ///
+ /// Describes the actual column name to sort
+ /// by
+ /// Describes if results should be in
+ /// ascending/descending order. Possible values include: 'Ascending',
+ /// 'Descending'
+ public OrderBy(string field = default(string), string order = default(string))
+ {
+ Field = field;
+ Order = order;
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+ ///
+ /// Gets or sets describes the actual column name to sort by
+ ///
+ [JsonProperty(PropertyName = "field")]
+ public string Field { get; set; }
+
+ ///
+ /// Gets or sets describes if results should be in ascending/descending
+ /// order. Possible values include: 'Ascending', 'Descending'
+ ///
+ [JsonProperty(PropertyName = "order")]
+ public string Order { get; set; }
+
+ }
+}
diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/OwaspCrsExclusionEntry.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/OwaspCrsExclusionEntry.cs
index 8a1e4415a02e..16f31f9e79c6 100644
--- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/OwaspCrsExclusionEntry.cs
+++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/OwaspCrsExclusionEntry.cs
@@ -12,6 +12,8 @@ namespace Microsoft.Azure.Management.Network.Models
{
using Microsoft.Rest;
using Newtonsoft.Json;
+ using System.Collections;
+ using System.Collections.Generic;
using System.Linq;
///
@@ -32,7 +34,9 @@ public OwaspCrsExclusionEntry()
///
/// The variable to be excluded. Possible
/// values include: 'RequestHeaderNames', 'RequestCookieNames',
- /// 'RequestArgNames'
+ /// 'RequestArgNames', 'RequestHeaderKeys', 'RequestHeaderValues',
+ /// 'RequestCookieKeys', 'RequestCookieValues', 'RequestArgKeys',
+ /// 'RequestArgValues'
/// When matchVariable is a
/// collection, operate on the selector to specify which elements in
/// the collection this exclusion applies to. Possible values include:
@@ -40,11 +44,14 @@ public OwaspCrsExclusionEntry()
/// When matchVariable is a collection, operator
/// used to specify which elements in the collection this exclusion
/// applies to.
- public OwaspCrsExclusionEntry(string matchVariable, string selectorMatchOperator, string selector)
+ /// The managed rule sets that
+ /// are associated with the exclusion.
+ public OwaspCrsExclusionEntry(string matchVariable, string selectorMatchOperator, string selector, IList exclusionManagedRuleSets = default(IList))
{
MatchVariable = matchVariable;
SelectorMatchOperator = selectorMatchOperator;
Selector = selector;
+ ExclusionManagedRuleSets = exclusionManagedRuleSets;
CustomInit();
}
@@ -55,7 +62,9 @@ public OwaspCrsExclusionEntry(string matchVariable, string selectorMatchOperator
///
/// Gets or sets the variable to be excluded. Possible values include:
- /// 'RequestHeaderNames', 'RequestCookieNames', 'RequestArgNames'
+ /// 'RequestHeaderNames', 'RequestCookieNames', 'RequestArgNames',
+ /// 'RequestHeaderKeys', 'RequestHeaderValues', 'RequestCookieKeys',
+ /// 'RequestCookieValues', 'RequestArgKeys', 'RequestArgValues'
///
[JsonProperty(PropertyName = "matchVariable")]
public string MatchVariable { get; set; }
@@ -76,6 +85,13 @@ public OwaspCrsExclusionEntry(string matchVariable, string selectorMatchOperator
[JsonProperty(PropertyName = "selector")]
public string Selector { get; set; }
+ ///
+ /// Gets or sets the managed rule sets that are associated with the
+ /// exclusion.
+ ///
+ [JsonProperty(PropertyName = "exclusionManagedRuleSets")]
+ public IList ExclusionManagedRuleSets { get; set; }
+
///
/// Validate the object.
///
@@ -96,6 +112,16 @@ public virtual void Validate()
{
throw new ValidationException(ValidationRules.CannotBeNull, "Selector");
}
+ if (ExclusionManagedRuleSets != null)
+ {
+ foreach (var element in ExclusionManagedRuleSets)
+ {
+ if (element != null)
+ {
+ element.Validate();
+ }
+ }
+ }
}
}
}
diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/OwaspCrsExclusionEntryMatchVariable.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/OwaspCrsExclusionEntryMatchVariable.cs
index 683d19bafe03..b5043e20d2bc 100644
--- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/OwaspCrsExclusionEntryMatchVariable.cs
+++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/OwaspCrsExclusionEntryMatchVariable.cs
@@ -19,5 +19,11 @@ public static class OwaspCrsExclusionEntryMatchVariable
public const string RequestHeaderNames = "RequestHeaderNames";
public const string RequestCookieNames = "RequestCookieNames";
public const string RequestArgNames = "RequestArgNames";
+ public const string RequestHeaderKeys = "RequestHeaderKeys";
+ public const string RequestHeaderValues = "RequestHeaderValues";
+ public const string RequestCookieKeys = "RequestCookieKeys";
+ public const string RequestCookieValues = "RequestCookieValues";
+ public const string RequestArgKeys = "RequestArgKeys";
+ public const string RequestArgValues = "RequestArgValues";
}
}
diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/PacketCapture.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/PacketCapture.cs
index 0cb6d02efca3..270be9f057ac 100644
--- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/PacketCapture.cs
+++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/PacketCapture.cs
@@ -115,38 +115,29 @@ public virtual void Validate()
{
throw new ValidationException(ValidationRules.CannotBeNull, "StorageLocation");
}
- if (BytesToCapturePerPacket != null)
+ if (BytesToCapturePerPacket > 4294967295)
{
- if (BytesToCapturePerPacket > 4294967295)
- {
- throw new ValidationException(ValidationRules.InclusiveMaximum, "BytesToCapturePerPacket", 4294967295);
- }
- if (BytesToCapturePerPacket < 0)
- {
- throw new ValidationException(ValidationRules.InclusiveMinimum, "BytesToCapturePerPacket", 0);
- }
+ throw new ValidationException(ValidationRules.InclusiveMaximum, "BytesToCapturePerPacket", 4294967295);
}
- if (TotalBytesPerSession != null)
+ if (BytesToCapturePerPacket < 0)
{
- if (TotalBytesPerSession > 4294967295)
- {
- throw new ValidationException(ValidationRules.InclusiveMaximum, "TotalBytesPerSession", 4294967295);
- }
- if (TotalBytesPerSession < 0)
- {
- throw new ValidationException(ValidationRules.InclusiveMinimum, "TotalBytesPerSession", 0);
- }
+ throw new ValidationException(ValidationRules.InclusiveMinimum, "BytesToCapturePerPacket", 0);
}
- if (TimeLimitInSeconds != null)
+ if (TotalBytesPerSession > 4294967295)
{
- if (TimeLimitInSeconds > 18000)
- {
- throw new ValidationException(ValidationRules.InclusiveMaximum, "TimeLimitInSeconds", 18000);
- }
- if (TimeLimitInSeconds < 0)
- {
- throw new ValidationException(ValidationRules.InclusiveMinimum, "TimeLimitInSeconds", 0);
- }
+ throw new ValidationException(ValidationRules.InclusiveMaximum, "TotalBytesPerSession", 4294967295);
+ }
+ if (TotalBytesPerSession < 0)
+ {
+ throw new ValidationException(ValidationRules.InclusiveMinimum, "TotalBytesPerSession", 0);
+ }
+ if (TimeLimitInSeconds > 18000)
+ {
+ throw new ValidationException(ValidationRules.InclusiveMaximum, "TimeLimitInSeconds", 18000);
+ }
+ if (TimeLimitInSeconds < 0)
+ {
+ throw new ValidationException(ValidationRules.InclusiveMinimum, "TimeLimitInSeconds", 0);
}
}
}
diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/PacketCaptureParameters.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/PacketCaptureParameters.cs
index e791803e4fad..a8a225ae7b4b 100644
--- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/PacketCaptureParameters.cs
+++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/PacketCaptureParameters.cs
@@ -113,38 +113,29 @@ public virtual void Validate()
{
throw new ValidationException(ValidationRules.CannotBeNull, "StorageLocation");
}
- if (BytesToCapturePerPacket != null)
+ if (BytesToCapturePerPacket > 4294967295)
{
- if (BytesToCapturePerPacket > 4294967295)
- {
- throw new ValidationException(ValidationRules.InclusiveMaximum, "BytesToCapturePerPacket", 4294967295);
- }
- if (BytesToCapturePerPacket < 0)
- {
- throw new ValidationException(ValidationRules.InclusiveMinimum, "BytesToCapturePerPacket", 0);
- }
+ throw new ValidationException(ValidationRules.InclusiveMaximum, "BytesToCapturePerPacket", 4294967295);
}
- if (TotalBytesPerSession != null)
+ if (BytesToCapturePerPacket < 0)
{
- if (TotalBytesPerSession > 4294967295)
- {
- throw new ValidationException(ValidationRules.InclusiveMaximum, "TotalBytesPerSession", 4294967295);
- }
- if (TotalBytesPerSession < 0)
- {
- throw new ValidationException(ValidationRules.InclusiveMinimum, "TotalBytesPerSession", 0);
- }
+ throw new ValidationException(ValidationRules.InclusiveMinimum, "BytesToCapturePerPacket", 0);
}
- if (TimeLimitInSeconds != null)
+ if (TotalBytesPerSession > 4294967295)
{
- if (TimeLimitInSeconds > 18000)
- {
- throw new ValidationException(ValidationRules.InclusiveMaximum, "TimeLimitInSeconds", 18000);
- }
- if (TimeLimitInSeconds < 0)
- {
- throw new ValidationException(ValidationRules.InclusiveMinimum, "TimeLimitInSeconds", 0);
- }
+ throw new ValidationException(ValidationRules.InclusiveMaximum, "TotalBytesPerSession", 4294967295);
+ }
+ if (TotalBytesPerSession < 0)
+ {
+ throw new ValidationException(ValidationRules.InclusiveMinimum, "TotalBytesPerSession", 0);
+ }
+ if (TimeLimitInSeconds > 18000)
+ {
+ throw new ValidationException(ValidationRules.InclusiveMaximum, "TimeLimitInSeconds", 18000);
+ }
+ if (TimeLimitInSeconds < 0)
+ {
+ throw new ValidationException(ValidationRules.InclusiveMinimum, "TimeLimitInSeconds", 0);
}
}
}
diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/PacketCaptureResult.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/PacketCaptureResult.cs
index ed6a805dc78e..cdd1a0f896be 100644
--- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/PacketCaptureResult.cs
+++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/PacketCaptureResult.cs
@@ -152,38 +152,29 @@ public virtual void Validate()
{
throw new ValidationException(ValidationRules.CannotBeNull, "StorageLocation");
}
- if (BytesToCapturePerPacket != null)
+ if (BytesToCapturePerPacket > 4294967295)
{
- if (BytesToCapturePerPacket > 4294967295)
- {
- throw new ValidationException(ValidationRules.InclusiveMaximum, "BytesToCapturePerPacket", 4294967295);
- }
- if (BytesToCapturePerPacket < 0)
- {
- throw new ValidationException(ValidationRules.InclusiveMinimum, "BytesToCapturePerPacket", 0);
- }
+ throw new ValidationException(ValidationRules.InclusiveMaximum, "BytesToCapturePerPacket", 4294967295);
}
- if (TotalBytesPerSession != null)
+ if (BytesToCapturePerPacket < 0)
{
- if (TotalBytesPerSession > 4294967295)
- {
- throw new ValidationException(ValidationRules.InclusiveMaximum, "TotalBytesPerSession", 4294967295);
- }
- if (TotalBytesPerSession < 0)
- {
- throw new ValidationException(ValidationRules.InclusiveMinimum, "TotalBytesPerSession", 0);
- }
+ throw new ValidationException(ValidationRules.InclusiveMinimum, "BytesToCapturePerPacket", 0);
}
- if (TimeLimitInSeconds != null)
+ if (TotalBytesPerSession > 4294967295)
{
- if (TimeLimitInSeconds > 18000)
- {
- throw new ValidationException(ValidationRules.InclusiveMaximum, "TimeLimitInSeconds", 18000);
- }
- if (TimeLimitInSeconds < 0)
- {
- throw new ValidationException(ValidationRules.InclusiveMinimum, "TimeLimitInSeconds", 0);
- }
+ throw new ValidationException(ValidationRules.InclusiveMaximum, "TotalBytesPerSession", 4294967295);
+ }
+ if (TotalBytesPerSession < 0)
+ {
+ throw new ValidationException(ValidationRules.InclusiveMinimum, "TotalBytesPerSession", 0);
+ }
+ if (TimeLimitInSeconds > 18000)
+ {
+ throw new ValidationException(ValidationRules.InclusiveMaximum, "TimeLimitInSeconds", 18000);
+ }
+ if (TimeLimitInSeconds < 0)
+ {
+ throw new ValidationException(ValidationRules.InclusiveMinimum, "TimeLimitInSeconds", 0);
}
}
}
diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/PolicySettings.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/PolicySettings.cs
index 1e003d19090e..15ebdf469c64 100644
--- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/PolicySettings.cs
+++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/PolicySettings.cs
@@ -95,19 +95,13 @@ public PolicySettings()
///
public virtual void Validate()
{
- if (MaxRequestBodySizeInKb != null)
+ if (MaxRequestBodySizeInKb < 8)
{
- if (MaxRequestBodySizeInKb < 8)
- {
- throw new ValidationException(ValidationRules.InclusiveMinimum, "MaxRequestBodySizeInKb", 8);
- }
+ throw new ValidationException(ValidationRules.InclusiveMinimum, "MaxRequestBodySizeInKb", 8);
}
- if (FileUploadLimitInMb != null)
+ if (FileUploadLimitInMb < 0)
{
- if (FileUploadLimitInMb < 0)
- {
- throw new ValidationException(ValidationRules.InclusiveMinimum, "FileUploadLimitInMb", 0);
- }
+ throw new ValidationException(ValidationRules.InclusiveMinimum, "FileUploadLimitInMb", 0);
}
}
}
diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/QueryInboundNatRulePortMappingRequest.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/QueryInboundNatRulePortMappingRequest.cs
new file mode 100644
index 000000000000..39a849ea3c5d
--- /dev/null
+++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/QueryInboundNatRulePortMappingRequest.cs
@@ -0,0 +1,65 @@
+//
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License. See License.txt in the project root for
+// license information.
+//
+// Code generated by Microsoft (R) AutoRest Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is
+// regenerated.
+//
+
+namespace Microsoft.Azure.Management.Network.Models
+{
+ using Newtonsoft.Json;
+ using System.Linq;
+
+ ///
+ /// The request for a QueryInboundNatRulePortMapping API. Either
+ /// IpConfiguration or IpAddress should be set
+ ///
+ public partial class QueryInboundNatRulePortMappingRequest
+ {
+ ///
+ /// Initializes a new instance of the
+ /// QueryInboundNatRulePortMappingRequest class.
+ ///
+ public QueryInboundNatRulePortMappingRequest()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the
+ /// QueryInboundNatRulePortMappingRequest class.
+ ///
+ /// NetworkInterfaceIPConfiguration set
+ /// in load balancer backend address.
+ /// IP address set in load balancer backend
+ /// address.
+ public QueryInboundNatRulePortMappingRequest(SubResource ipConfiguration = default(SubResource), string ipAddress = default(string))
+ {
+ IpConfiguration = ipConfiguration;
+ IpAddress = ipAddress;
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+ ///
+ /// Gets or sets networkInterfaceIPConfiguration set in load balancer
+ /// backend address.
+ ///
+ [JsonProperty(PropertyName = "ipConfiguration")]
+ public SubResource IpConfiguration { get; set; }
+
+ ///
+ /// Gets or sets IP address set in load balancer backend address.
+ ///
+ [JsonProperty(PropertyName = "ipAddress")]
+ public string IpAddress { get; set; }
+
+ }
+}
diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/QueryResults.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/QueryResults.cs
new file mode 100644
index 000000000000..9e253e3072f8
--- /dev/null
+++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/QueryResults.cs
@@ -0,0 +1,63 @@
+//
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License. See License.txt in the project root for
+// license information.
+//
+// Code generated by Microsoft (R) AutoRest Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is
+// regenerated.
+//
+
+namespace Microsoft.Azure.Management.Network.Models
+{
+ using Newtonsoft.Json;
+ using System.Collections;
+ using System.Collections.Generic;
+ using System.Linq;
+
+ ///
+ /// Query result
+ ///
+ public partial class QueryResults
+ {
+ ///
+ /// Initializes a new instance of the QueryResults class.
+ ///
+ public QueryResults()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the QueryResults class.
+ ///
+ /// Number of total records matching
+ /// the query.
+ /// Array containing the results of the
+ /// query
+ public QueryResults(long? matchingRecordsCount = default(long?), IList signatures = default(IList))
+ {
+ MatchingRecordsCount = matchingRecordsCount;
+ Signatures = signatures;
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+ ///
+ /// Gets or sets number of total records matching the query.
+ ///
+ [JsonProperty(PropertyName = "matchingRecordsCount")]
+ public long? MatchingRecordsCount { get; set; }
+
+ ///
+ /// Gets or sets array containing the results of the query
+ ///
+ [JsonProperty(PropertyName = "signatures")]
+ public IList Signatures { get; set; }
+
+ }
+}
diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/RoutingIntent.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/RoutingIntent.cs
new file mode 100644
index 000000000000..d2fc20ccf3ac
--- /dev/null
+++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/RoutingIntent.cs
@@ -0,0 +1,98 @@
+//
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License. See License.txt in the project root for
+// license information.
+//
+// Code generated by Microsoft (R) AutoRest Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is
+// regenerated.
+//
+
+namespace Microsoft.Azure.Management.Network.Models
+{
+ using Microsoft.Rest;
+ using Microsoft.Rest.Serialization;
+ using Newtonsoft.Json;
+ using System.Collections;
+ using System.Collections.Generic;
+ using System.Linq;
+
+ ///
+ /// The routing intent child resource of a Virtual hub.
+ ///
+ [Rest.Serialization.JsonTransformation]
+ public partial class RoutingIntent : SubResource
+ {
+ ///
+ /// Initializes a new instance of the RoutingIntent class.
+ ///
+ public RoutingIntent()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the RoutingIntent class.
+ ///
+ /// Resource ID.
+ /// List of routing policies.
+ /// The provisioning state of the
+ /// RoutingIntent resource. Possible values include: 'Succeeded',
+ /// 'Updating', 'Deleting', 'Failed'
+ /// The name of the resource that is unique within a
+ /// resource group. This name can be used to access the
+ /// resource.
+ /// A unique read-only string that changes whenever
+ /// the resource is updated.
+ /// Resource type.
+ public RoutingIntent(string id = default(string), IList routingPolicies = default(IList), string provisioningState = default(string), string name = default(string), string etag = default(string), string type = default(string))
+ : base(id)
+ {
+ RoutingPolicies = routingPolicies;
+ ProvisioningState = provisioningState;
+ Name = name;
+ Etag = etag;
+ Type = type;
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+ ///
+ /// Gets or sets list of routing policies.
+ ///
+ [JsonProperty(PropertyName = "properties.routingPolicies")]
+ public IList RoutingPolicies { get; set; }
+
+ ///
+ /// Gets the provisioning state of the RoutingIntent resource. Possible
+ /// values include: 'Succeeded', 'Updating', 'Deleting', 'Failed'
+ ///
+ [JsonProperty(PropertyName = "properties.provisioningState")]
+ public string ProvisioningState { get; private set; }
+
+ ///
+ /// Gets or sets the name of the resource that is unique within a
+ /// resource group. This name can be used to access the resource.
+ ///
+ [JsonProperty(PropertyName = "name")]
+ public string Name { get; set; }
+
+ ///
+ /// Gets a unique read-only string that changes whenever the resource
+ /// is updated.
+ ///
+ [JsonProperty(PropertyName = "etag")]
+ public string Etag { get; private set; }
+
+ ///
+ /// Gets resource type.
+ ///
+ [JsonProperty(PropertyName = "type")]
+ public string Type { get; private set; }
+
+ }
+}
diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/RoutingPolicy.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/RoutingPolicy.cs
new file mode 100644
index 000000000000..e6842bd8f2ab
--- /dev/null
+++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/RoutingPolicy.cs
@@ -0,0 +1,96 @@
+//
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License. See License.txt in the project root for
+// license information.
+//
+// Code generated by Microsoft (R) AutoRest Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is
+// regenerated.
+//
+
+namespace Microsoft.Azure.Management.Network.Models
+{
+ using Microsoft.Rest;
+ using Newtonsoft.Json;
+ using System.Collections;
+ using System.Collections.Generic;
+ using System.Linq;
+
+ ///
+ /// The routing policy object used in a RoutingIntent resource.
+ ///
+ public partial class RoutingPolicy
+ {
+ ///
+ /// Initializes a new instance of the RoutingPolicy class.
+ ///
+ public RoutingPolicy()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the RoutingPolicy class.
+ ///
+ /// The unique name for the routing policy.
+ /// List of all destinations which this
+ /// routing policy is applicable to (for example: Internet,
+ /// PrivateTraffic).
+ /// The next hop resource id on which this
+ /// routing policy is applicable to.
+ public RoutingPolicy(string name, IList destinations, string nextHop)
+ {
+ Name = name;
+ Destinations = destinations;
+ NextHop = nextHop;
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+ ///
+ /// Gets or sets the unique name for the routing policy.
+ ///
+ [JsonProperty(PropertyName = "name")]
+ public string Name { get; set; }
+
+ ///
+ /// Gets or sets list of all destinations which this routing policy is
+ /// applicable to (for example: Internet, PrivateTraffic).
+ ///
+ [JsonProperty(PropertyName = "destinations")]
+ public IList Destinations { get; set; }
+
+ ///
+ /// Gets or sets the next hop resource id on which this routing policy
+ /// is applicable to.
+ ///
+ [JsonProperty(PropertyName = "nextHop")]
+ public string NextHop { get; set; }
+
+ ///
+ /// Validate the object.
+ ///
+ ///
+ /// Thrown if validation fails
+ ///
+ public virtual void Validate()
+ {
+ if (Name == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "Name");
+ }
+ if (Destinations == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "Destinations");
+ }
+ if (NextHop == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "NextHop");
+ }
+ }
+ }
+}
diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/SignatureOverridesFilterValuesQuery.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/SignatureOverridesFilterValuesQuery.cs
new file mode 100644
index 000000000000..54c3cead7024
--- /dev/null
+++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/SignatureOverridesFilterValuesQuery.cs
@@ -0,0 +1,55 @@
+//
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License. See License.txt in the project root for
+// license information.
+//
+// Code generated by Microsoft (R) AutoRest Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is
+// regenerated.
+//
+
+namespace Microsoft.Azure.Management.Network.Models
+{
+ using Newtonsoft.Json;
+ using System.Linq;
+
+ ///
+ /// Describes the filter values possibles for a given column
+ ///
+ public partial class SignatureOverridesFilterValuesQuery
+ {
+ ///
+ /// Initializes a new instance of the
+ /// SignatureOverridesFilterValuesQuery class.
+ ///
+ public SignatureOverridesFilterValuesQuery()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the
+ /// SignatureOverridesFilterValuesQuery class.
+ ///
+ /// Describes the name of the column which
+ /// values will be returned
+ public SignatureOverridesFilterValuesQuery(string filterName = default(string))
+ {
+ FilterName = filterName;
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+ ///
+ /// Gets or sets describes the name of the column which values will be
+ /// returned
+ ///
+ [JsonProperty(PropertyName = "filterName")]
+ public string FilterName { get; set; }
+
+ }
+}
diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/SignatureOverridesFilterValuesResponse.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/SignatureOverridesFilterValuesResponse.cs
new file mode 100644
index 000000000000..9cfcddb39b09
--- /dev/null
+++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/SignatureOverridesFilterValuesResponse.cs
@@ -0,0 +1,55 @@
+//
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License. See License.txt in the project root for
+// license information.
+//
+// Code generated by Microsoft (R) AutoRest Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is
+// regenerated.
+//
+
+namespace Microsoft.Azure.Management.Network.Models
+{
+ using Newtonsoft.Json;
+ using System.Collections;
+ using System.Collections.Generic;
+ using System.Linq;
+
+ ///
+ /// Describes the list of all possible values for a specific filter value
+ ///
+ public partial class SignatureOverridesFilterValuesResponse
+ {
+ ///
+ /// Initializes a new instance of the
+ /// SignatureOverridesFilterValuesResponse class.
+ ///
+ public SignatureOverridesFilterValuesResponse()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the
+ /// SignatureOverridesFilterValuesResponse class.
+ ///
+ /// Describes the possible values
+ public SignatureOverridesFilterValuesResponse(IList filterValues = default(IList))
+ {
+ FilterValues = filterValues;
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+ ///
+ /// Gets or sets describes the possible values
+ ///
+ [JsonProperty(PropertyName = "filterValues")]
+ public IList FilterValues { get; set; }
+
+ }
+}
diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/SignaturesOverrides.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/SignaturesOverrides.cs
new file mode 100644
index 000000000000..6cb29e57bf08
--- /dev/null
+++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/SignaturesOverrides.cs
@@ -0,0 +1,84 @@
+//
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License. See License.txt in the project root for
+// license information.
+//
+// Code generated by Microsoft (R) AutoRest Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is
+// regenerated.
+//
+
+namespace Microsoft.Azure.Management.Network.Models
+{
+ using Microsoft.Rest;
+ using Microsoft.Rest.Azure;
+ using Newtonsoft.Json;
+ using System.Linq;
+
+ ///
+ /// Contains all specific policy signatures overrides for the IDPS
+ ///
+ public partial class SignaturesOverrides : IResource
+ {
+ ///
+ /// Initializes a new instance of the SignaturesOverrides class.
+ ///
+ public SignaturesOverrides()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the SignaturesOverrides class.
+ ///
+ /// Contains the name of the resource
+ /// (default)
+ /// Will contain the resource id of the signature
+ /// override resource
+ /// Will contain the type of the resource:
+ /// Microsoft.Network/firewallPolicies/intrusionDetectionSignaturesOverrides
+ /// Will contain the properties of the
+ /// resource (the actual signature overrides)
+ public SignaturesOverrides(string name = default(string), string id = default(string), string type = default(string), SignaturesOverridesProperties properties = default(SignaturesOverridesProperties))
+ {
+ Name = name;
+ Id = id;
+ Type = type;
+ Properties = properties;
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+ ///
+ /// Gets or sets contains the name of the resource (default)
+ ///
+ [JsonProperty(PropertyName = "name")]
+ public string Name { get; set; }
+
+ ///
+ /// Gets or sets will contain the resource id of the signature override
+ /// resource
+ ///
+ [JsonProperty(PropertyName = "id")]
+ public string Id { get; set; }
+
+ ///
+ /// Gets or sets will contain the type of the resource:
+ /// Microsoft.Network/firewallPolicies/intrusionDetectionSignaturesOverrides
+ ///
+ [JsonProperty(PropertyName = "type")]
+ public string Type { get; set; }
+
+ ///
+ /// Gets or sets will contain the properties of the resource (the
+ /// actual signature overrides)
+ ///
+ [JsonProperty(PropertyName = "properties")]
+ public SignaturesOverridesProperties Properties { get; set; }
+
+ }
+}
diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/SignaturesOverridesList.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/SignaturesOverridesList.cs
new file mode 100644
index 000000000000..25fd36589800
--- /dev/null
+++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/SignaturesOverridesList.cs
@@ -0,0 +1,55 @@
+//
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License. See License.txt in the project root for
+// license information.
+//
+// Code generated by Microsoft (R) AutoRest Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is
+// regenerated.
+//
+
+namespace Microsoft.Azure.Management.Network.Models
+{
+ using Newtonsoft.Json;
+ using System.Collections;
+ using System.Collections.Generic;
+ using System.Linq;
+
+ ///
+ /// Describes an object containing an array with a single item
+ ///
+ public partial class SignaturesOverridesList
+ {
+ ///
+ /// Initializes a new instance of the SignaturesOverridesList class.
+ ///
+ public SignaturesOverridesList()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the SignaturesOverridesList class.
+ ///
+ /// Describes a list consisting exactly one item
+ /// describing the policy's signature override status
+ public SignaturesOverridesList(IList value = default(IList))
+ {
+ Value = value;
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+ ///
+ /// Gets or sets describes a list consisting exactly one item
+ /// describing the policy's signature override status
+ ///
+ [JsonProperty(PropertyName = "value")]
+ public IList Value { get; set; }
+
+ }
+}
diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/SignaturesOverridesProperties.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/SignaturesOverridesProperties.cs
new file mode 100644
index 000000000000..73a8154572dd
--- /dev/null
+++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/SignaturesOverridesProperties.cs
@@ -0,0 +1,54 @@
+//
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License. See License.txt in the project root for
+// license information.
+//
+// Code generated by Microsoft (R) AutoRest Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is
+// regenerated.
+//
+
+namespace Microsoft.Azure.Management.Network.Models
+{
+ using Newtonsoft.Json;
+ using System.Collections;
+ using System.Collections.Generic;
+ using System.Linq;
+
+ ///
+ /// Will contain the properties of the resource (the actual signature
+ /// overrides)
+ ///
+ public partial class SignaturesOverridesProperties
+ {
+ ///
+ /// Initializes a new instance of the SignaturesOverridesProperties
+ /// class.
+ ///
+ public SignaturesOverridesProperties()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the SignaturesOverridesProperties
+ /// class.
+ ///
+ public SignaturesOverridesProperties(IDictionary signatures = default(IDictionary))
+ {
+ Signatures = signatures;
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+ ///
+ ///
+ [JsonProperty(PropertyName = "signatures")]
+ public IDictionary Signatures { get; set; }
+
+ }
+}
diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/SingleQueryResult.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/SingleQueryResult.cs
new file mode 100644
index 000000000000..63d7c6c21003
--- /dev/null
+++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/SingleQueryResult.cs
@@ -0,0 +1,149 @@
+//
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License. See License.txt in the project root for
+// license information.
+//
+// Code generated by Microsoft (R) AutoRest Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is
+// regenerated.
+//
+
+namespace Microsoft.Azure.Management.Network.Models
+{
+ using Newtonsoft.Json;
+ using System.Collections;
+ using System.Collections.Generic;
+ using System.Linq;
+
+ public partial class SingleQueryResult
+ {
+ ///
+ /// Initializes a new instance of the SingleQueryResult class.
+ ///
+ public SingleQueryResult()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the SingleQueryResult class.
+ ///
+ /// The ID of the signature
+ /// The current mode enforced, 0 - Disabled, 1 -
+ /// Alert, 2 -Deny
+ /// Describes the severity of signature: 1 -
+ /// Low, 2 - Medium, 3 - High
+ /// Describes in which direction signature is
+ /// being enforced: 0 - Inbound, 1 - OutBound, 2 -
+ /// Bidirectional
+ /// Describes the groups the signature belongs
+ /// to
+ /// Describes what is the signature
+ /// enforces
+ /// Describes the protocol the signatures is
+ /// being enforced in
+ /// Describes the list of source ports
+ /// related to this signature
+ /// Describes the list of destination
+ /// ports related to this signature
+ /// Describes the last updated time of the
+ /// signature (provided from 3rd party vendor)
+ /// Describes if this override
+ /// is inherited from base policy or not
+ public SingleQueryResult(int? signatureId = default(int?), int? mode = default(int?), int? severity = default(int?), int? direction = default(int?), string group = default(string), string description = default(string), string protocol = default(string), IList sourcePorts = default(IList), IList destinationPorts = default(IList), string lastUpdated = default(string), bool? inheritedFromParentPolicy = default(bool?))
+ {
+ SignatureId = signatureId;
+ Mode = mode;
+ Severity = severity;
+ Direction = direction;
+ Group = group;
+ Description = description;
+ Protocol = protocol;
+ SourcePorts = sourcePorts;
+ DestinationPorts = destinationPorts;
+ LastUpdated = lastUpdated;
+ InheritedFromParentPolicy = inheritedFromParentPolicy;
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+ ///
+ /// Gets or sets the ID of the signature
+ ///
+ [JsonProperty(PropertyName = "signatureId")]
+ public int? SignatureId { get; set; }
+
+ ///
+ /// Gets or sets the current mode enforced, 0 - Disabled, 1 - Alert, 2
+ /// -Deny
+ ///
+ [JsonProperty(PropertyName = "mode")]
+ public int? Mode { get; set; }
+
+ ///
+ /// Gets or sets describes the severity of signature: 1 - Low, 2 -
+ /// Medium, 3 - High
+ ///
+ [JsonProperty(PropertyName = "severity")]
+ public int? Severity { get; set; }
+
+ ///
+ /// Gets or sets describes in which direction signature is being
+ /// enforced: 0 - Inbound, 1 - OutBound, 2 - Bidirectional
+ ///
+ [JsonProperty(PropertyName = "direction")]
+ public int? Direction { get; set; }
+
+ ///
+ /// Gets or sets describes the groups the signature belongs to
+ ///
+ [JsonProperty(PropertyName = "group")]
+ public string Group { get; set; }
+
+ ///
+ /// Gets or sets describes what is the signature enforces
+ ///
+ [JsonProperty(PropertyName = "description")]
+ public string Description { get; set; }
+
+ ///
+ /// Gets or sets describes the protocol the signatures is being
+ /// enforced in
+ ///
+ [JsonProperty(PropertyName = "protocol")]
+ public string Protocol { get; set; }
+
+ ///
+ /// Gets or sets describes the list of source ports related to this
+ /// signature
+ ///
+ [JsonProperty(PropertyName = "sourcePorts")]
+ public IList SourcePorts { get; set; }
+
+ ///
+ /// Gets or sets describes the list of destination ports related to
+ /// this signature
+ ///
+ [JsonProperty(PropertyName = "destinationPorts")]
+ public IList DestinationPorts { get; set; }
+
+ ///
+ /// Gets or sets describes the last updated time of the signature
+ /// (provided from 3rd party vendor)
+ ///
+ [JsonProperty(PropertyName = "lastUpdated")]
+ public string LastUpdated { get; set; }
+
+ ///
+ /// Gets or sets describes if this override is inherited from base
+ /// policy or not
+ ///
+ [JsonProperty(PropertyName = "inheritedFromParentPolicy")]
+ public bool? InheritedFromParentPolicy { get; set; }
+
+ }
+}
diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/VirtualHub.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/VirtualHub.cs
index d1746404da5f..99c728642f4d 100644
--- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/VirtualHub.cs
+++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/VirtualHub.cs
@@ -254,16 +254,13 @@ public VirtualHub()
///
public virtual void Validate()
{
- if (VirtualRouterAsn != null)
+ if (VirtualRouterAsn > 4294967295)
{
- if (VirtualRouterAsn > 4294967295)
- {
- throw new ValidationException(ValidationRules.InclusiveMaximum, "VirtualRouterAsn", 4294967295);
- }
- if (VirtualRouterAsn < 0)
- {
- throw new ValidationException(ValidationRules.InclusiveMinimum, "VirtualRouterAsn", 0);
- }
+ throw new ValidationException(ValidationRules.InclusiveMaximum, "VirtualRouterAsn", 4294967295);
+ }
+ if (VirtualRouterAsn < 0)
+ {
+ throw new ValidationException(ValidationRules.InclusiveMinimum, "VirtualRouterAsn", 0);
}
}
}
diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/VirtualNetwork.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/VirtualNetwork.cs
index 6b7af986bcc5..474a9264e072 100644
--- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/VirtualNetwork.cs
+++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/VirtualNetwork.cs
@@ -67,11 +67,14 @@ public VirtualNetwork()
/// associated with the virtual network.
/// Bgp Communities sent over ExpressRoute
/// with each route corresponding to a prefix in this VNET.
+ /// Indicates if encryption is enabled on
+ /// virtual network and if VM without encryption is allowed in
+ /// encrypted VNet.
/// Array of IpAllocation which reference
/// this VNET.
/// A unique read-only string that changes whenever
/// the resource is updated.
- public VirtualNetwork(string id = default(string), string name = default(string), string type = default(string), string location = default(string), IDictionary tags = default(IDictionary), ExtendedLocation extendedLocation = default(ExtendedLocation), AddressSpace addressSpace = default(AddressSpace), DhcpOptions dhcpOptions = default(DhcpOptions), int? flowTimeoutInMinutes = default(int?), IList subnets = default(IList), IList virtualNetworkPeerings = default(IList), string resourceGuid = default(string), string provisioningState = default(string), bool? enableDdosProtection = default(bool?), bool? enableVmProtection = default(bool?), SubResource ddosProtectionPlan = default(SubResource), VirtualNetworkBgpCommunities bgpCommunities = default(VirtualNetworkBgpCommunities), IList ipAllocations = default(IList), string etag = default(string))
+ public VirtualNetwork(string id = default(string), string name = default(string), string type = default(string), string location = default(string), IDictionary tags = default(IDictionary), ExtendedLocation extendedLocation = default(ExtendedLocation), AddressSpace addressSpace = default(AddressSpace), DhcpOptions dhcpOptions = default(DhcpOptions), int? flowTimeoutInMinutes = default(int?), IList subnets = default(IList), IList virtualNetworkPeerings = default(IList), string resourceGuid = default(string), string provisioningState = default(string), bool? enableDdosProtection = default(bool?), bool? enableVmProtection = default(bool?), SubResource ddosProtectionPlan = default(SubResource), VirtualNetworkBgpCommunities bgpCommunities = default(VirtualNetworkBgpCommunities), VirtualNetworkEncryption encryption = default(VirtualNetworkEncryption), IList ipAllocations = default(IList), string etag = default(string))
: base(id, name, type, location, tags)
{
ExtendedLocation = extendedLocation;
@@ -86,6 +89,7 @@ public VirtualNetwork()
EnableVmProtection = enableVmProtection;
DdosProtectionPlan = ddosProtectionPlan;
BgpCommunities = bgpCommunities;
+ Encryption = encryption;
IpAllocations = ipAllocations;
Etag = etag;
CustomInit();
@@ -178,6 +182,13 @@ public VirtualNetwork()
[JsonProperty(PropertyName = "properties.bgpCommunities")]
public VirtualNetworkBgpCommunities BgpCommunities { get; set; }
+ ///
+ /// Gets or sets indicates if encryption is enabled on virtual network
+ /// and if VM without encryption is allowed in encrypted VNet.
+ ///
+ [JsonProperty(PropertyName = "properties.encryption")]
+ public VirtualNetworkEncryption Encryption { get; set; }
+
///
/// Gets or sets array of IpAllocation which reference this VNET.
///
@@ -213,6 +224,10 @@ public virtual void Validate()
{
BgpCommunities.Validate();
}
+ if (Encryption != null)
+ {
+ Encryption.Validate();
+ }
}
}
}
diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/VirtualNetworkEncryption.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/VirtualNetworkEncryption.cs
new file mode 100644
index 000000000000..3fcd89f98c9c
--- /dev/null
+++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/VirtualNetworkEncryption.cs
@@ -0,0 +1,75 @@
+//
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License. See License.txt in the project root for
+// license information.
+//
+// Code generated by Microsoft (R) AutoRest Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is
+// regenerated.
+//
+
+namespace Microsoft.Azure.Management.Network.Models
+{
+ using Newtonsoft.Json;
+ using System.Linq;
+
+ ///
+ /// Indicates if encryption is enabled on virtual network and if VM without
+ /// encryption is allowed in encrypted VNet.
+ ///
+ public partial class VirtualNetworkEncryption
+ {
+ ///
+ /// Initializes a new instance of the VirtualNetworkEncryption class.
+ ///
+ public VirtualNetworkEncryption()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the VirtualNetworkEncryption class.
+ ///
+ /// Indicates if encryption is enabled on the
+ /// virtual network.
+ /// If the encrypted VNet allows VM that does
+ /// not support encryption. Possible values include: 'DropUnencrypted',
+ /// 'AllowUnencrypted'
+ public VirtualNetworkEncryption(bool enabled, string enforcement = default(string))
+ {
+ Enabled = enabled;
+ Enforcement = enforcement;
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+ ///
+ /// Gets or sets indicates if encryption is enabled on the virtual
+ /// network.
+ ///
+ [JsonProperty(PropertyName = "enabled")]
+ public bool Enabled { get; set; }
+
+ ///
+ /// Gets or sets if the encrypted VNet allows VM that does not support
+ /// encryption. Possible values include: 'DropUnencrypted',
+ /// 'AllowUnencrypted'
+ ///
+ [JsonProperty(PropertyName = "enforcement")]
+ public string Enforcement { get; set; }
+
+ ///
+ /// Validate the object.
+ ///
+ ///
+ /// Thrown if validation fails
+ ///
+ public virtual void Validate()
+ {
+ }
+ }
+}
diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/VirtualNetworkEncryptionEnforcement.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/VirtualNetworkEncryptionEnforcement.cs
new file mode 100644
index 000000000000..b6b87e102a89
--- /dev/null
+++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/VirtualNetworkEncryptionEnforcement.cs
@@ -0,0 +1,22 @@
+//
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License. See License.txt in the project root for
+// license information.
+//
+// Code generated by Microsoft (R) AutoRest Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is
+// regenerated.
+//
+
+namespace Microsoft.Azure.Management.Network.Models
+{
+
+ ///
+ /// Defines values for VirtualNetworkEncryptionEnforcement.
+ ///
+ public static class VirtualNetworkEncryptionEnforcement
+ {
+ public const string DropUnencrypted = "DropUnencrypted";
+ public const string AllowUnencrypted = "AllowUnencrypted";
+ }
+}
diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/VirtualNetworkGateway.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/VirtualNetworkGateway.cs
index 7d4dc21f492c..00ed5119be7b 100644
--- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/VirtualNetworkGateway.cs
+++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/VirtualNetworkGateway.cs
@@ -55,6 +55,9 @@ public VirtualNetworkGateway()
/// Whether private IP needs to be
/// enabled on this gateway for connections or not.
/// ActiveActive flag.
+ /// disableIPSecReplayProtection
+ /// flag.
/// The reference to the
/// LocalNetworkGateway resource which represents local network site
/// having default routes. Assign Null value in case of removing
@@ -91,7 +94,7 @@ public VirtualNetworkGateway()
/// virtual network gateway.
/// A unique read-only string that changes whenever
/// the resource is updated.
- public VirtualNetworkGateway(string id = default(string), string name = default(string), string type = default(string), string location = default(string), IDictionary tags = default(IDictionary), IList ipConfigurations = default(IList), string gatewayType = default(string), string vpnType = default(string), string vpnGatewayGeneration = default(string), bool? enableBgp = default(bool?), bool? enablePrivateIpAddress = default(bool?), bool? activeActive = default(bool?), SubResource gatewayDefaultSite = default(SubResource), VirtualNetworkGatewaySku sku = default(VirtualNetworkGatewaySku), VpnClientConfiguration vpnClientConfiguration = default(VpnClientConfiguration), BgpSettings bgpSettings = default(BgpSettings), AddressSpace customRoutes = default(AddressSpace), string resourceGuid = default(string), string provisioningState = default(string), bool? enableDnsForwarding = default(bool?), string inboundDnsForwardingEndpoint = default(string), string vNetExtendedLocationResourceId = default(string), IList natRules = default(IList), bool? enableBgpRouteTranslationForNat = default(bool?), ExtendedLocation extendedLocation = default(ExtendedLocation), string etag = default(string))
+ public VirtualNetworkGateway(string id = default(string), string name = default(string), string type = default(string), string location = default(string), IDictionary tags = default(IDictionary), IList ipConfigurations = default(IList), string gatewayType = default(string), string vpnType = default(string), string vpnGatewayGeneration = default(string), bool? enableBgp = default(bool?), bool? enablePrivateIpAddress = default(bool?), bool? activeActive = default(bool?), bool? disableIPSecReplayProtection = default(bool?), SubResource gatewayDefaultSite = default(SubResource), VirtualNetworkGatewaySku sku = default(VirtualNetworkGatewaySku), VpnClientConfiguration vpnClientConfiguration = default(VpnClientConfiguration), BgpSettings bgpSettings = default(BgpSettings), AddressSpace customRoutes = default(AddressSpace), string resourceGuid = default(string), string provisioningState = default(string), bool? enableDnsForwarding = default(bool?), string inboundDnsForwardingEndpoint = default(string), string vNetExtendedLocationResourceId = default(string), IList natRules = default(IList), bool? enableBgpRouteTranslationForNat = default(bool?), ExtendedLocation extendedLocation = default(ExtendedLocation), string etag = default(string))
: base(id, name, type, location, tags)
{
IpConfigurations = ipConfigurations;
@@ -101,6 +104,7 @@ public VirtualNetworkGateway()
EnableBgp = enableBgp;
EnablePrivateIpAddress = enablePrivateIpAddress;
ActiveActive = activeActive;
+ DisableIPSecReplayProtection = disableIPSecReplayProtection;
GatewayDefaultSite = gatewayDefaultSite;
Sku = sku;
VpnClientConfiguration = vpnClientConfiguration;
@@ -171,6 +175,12 @@ public VirtualNetworkGateway()
[JsonProperty(PropertyName = "properties.activeActive")]
public bool? ActiveActive { get; set; }
+ ///
+ /// Gets or sets disableIPSecReplayProtection flag.
+ ///
+ [JsonProperty(PropertyName = "properties.disableIPSecReplayProtection")]
+ public bool? DisableIPSecReplayProtection { get; set; }
+
///
/// Gets or sets the reference to the LocalNetworkGateway resource
/// which represents local network site having default routes. Assign
diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/VirtualNetworkPeering.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/VirtualNetworkPeering.cs
index 23b92cca42f4..8d387c34da1a 100644
--- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/VirtualNetworkPeering.cs
+++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/VirtualNetworkPeering.cs
@@ -58,6 +58,8 @@ public VirtualNetworkPeering()
/// current address space of the remote virtual network.
/// The reference to the remote
/// virtual network's Bgp Communities.
+ /// The reference to the
+ /// remote virtual network's encryption
/// The status of the virtual network
/// peering. Possible values include: 'Initiated', 'Connected',
/// 'Disconnected'
@@ -78,7 +80,7 @@ public VirtualNetworkPeering()
/// A unique read-only string that changes whenever
/// the resource is updated.
/// Resource type.
- public VirtualNetworkPeering(string id = default(string), bool? allowVirtualNetworkAccess = default(bool?), bool? allowForwardedTraffic = default(bool?), bool? allowGatewayTransit = default(bool?), bool? useRemoteGateways = default(bool?), SubResource remoteVirtualNetwork = default(SubResource), AddressSpace remoteAddressSpace = default(AddressSpace), AddressSpace remoteVirtualNetworkAddressSpace = default(AddressSpace), VirtualNetworkBgpCommunities remoteBgpCommunities = default(VirtualNetworkBgpCommunities), string peeringState = default(string), string peeringSyncLevel = default(string), string provisioningState = default(string), bool? doNotVerifyRemoteGateways = default(bool?), string resourceGuid = default(string), string name = default(string), string etag = default(string), string type = default(string))
+ public VirtualNetworkPeering(string id = default(string), bool? allowVirtualNetworkAccess = default(bool?), bool? allowForwardedTraffic = default(bool?), bool? allowGatewayTransit = default(bool?), bool? useRemoteGateways = default(bool?), SubResource remoteVirtualNetwork = default(SubResource), AddressSpace remoteAddressSpace = default(AddressSpace), AddressSpace remoteVirtualNetworkAddressSpace = default(AddressSpace), VirtualNetworkBgpCommunities remoteBgpCommunities = default(VirtualNetworkBgpCommunities), VirtualNetworkEncryption remoteVirtualNetworkEncryption = default(VirtualNetworkEncryption), string peeringState = default(string), string peeringSyncLevel = default(string), string provisioningState = default(string), bool? doNotVerifyRemoteGateways = default(bool?), string resourceGuid = default(string), string name = default(string), string etag = default(string), string type = default(string))
: base(id)
{
AllowVirtualNetworkAccess = allowVirtualNetworkAccess;
@@ -89,6 +91,7 @@ public VirtualNetworkPeering()
RemoteAddressSpace = remoteAddressSpace;
RemoteVirtualNetworkAddressSpace = remoteVirtualNetworkAddressSpace;
RemoteBgpCommunities = remoteBgpCommunities;
+ RemoteVirtualNetworkEncryption = remoteVirtualNetworkEncryption;
PeeringState = peeringState;
PeeringSyncLevel = peeringSyncLevel;
ProvisioningState = provisioningState;
@@ -168,6 +171,12 @@ public VirtualNetworkPeering()
[JsonProperty(PropertyName = "properties.remoteBgpCommunities")]
public VirtualNetworkBgpCommunities RemoteBgpCommunities { get; set; }
+ ///
+ /// Gets the reference to the remote virtual network's encryption
+ ///
+ [JsonProperty(PropertyName = "properties.remoteVirtualNetworkEncryption")]
+ public VirtualNetworkEncryption RemoteVirtualNetworkEncryption { get; private set; }
+
///
/// Gets or sets the status of the virtual network peering. Possible
/// values include: 'Initiated', 'Connected', 'Disconnected'
@@ -237,6 +246,10 @@ public virtual void Validate()
{
RemoteBgpCommunities.Validate();
}
+ if (RemoteVirtualNetworkEncryption != null)
+ {
+ RemoteVirtualNetworkEncryption.Validate();
+ }
}
}
}
diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/VirtualRouter.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/VirtualRouter.cs
index e6a1b590c68a..970f9a3fe686 100644
--- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/VirtualRouter.cs
+++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/VirtualRouter.cs
@@ -122,16 +122,13 @@ public VirtualRouter()
///
public virtual void Validate()
{
- if (VirtualRouterAsn != null)
+ if (VirtualRouterAsn > 4294967295)
{
- if (VirtualRouterAsn > 4294967295)
- {
- throw new ValidationException(ValidationRules.InclusiveMaximum, "VirtualRouterAsn", 4294967295);
- }
- if (VirtualRouterAsn < 0)
- {
- throw new ValidationException(ValidationRules.InclusiveMinimum, "VirtualRouterAsn", 0);
- }
+ throw new ValidationException(ValidationRules.InclusiveMaximum, "VirtualRouterAsn", 4294967295);
+ }
+ if (VirtualRouterAsn < 0)
+ {
+ throw new ValidationException(ValidationRules.InclusiveMinimum, "VirtualRouterAsn", 0);
}
}
}
diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/VirtualRouterPeering.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/VirtualRouterPeering.cs
index 35a8277064c2..356b2fda9334 100644
--- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/VirtualRouterPeering.cs
+++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/VirtualRouterPeering.cs
@@ -107,16 +107,13 @@ public VirtualRouterPeering()
///
public virtual void Validate()
{
- if (PeerAsn != null)
+ if (PeerAsn > 4294967295)
{
- if (PeerAsn > 4294967295)
- {
- throw new ValidationException(ValidationRules.InclusiveMaximum, "PeerAsn", 4294967295);
- }
- if (PeerAsn < 0)
- {
- throw new ValidationException(ValidationRules.InclusiveMinimum, "PeerAsn", 0);
- }
+ throw new ValidationException(ValidationRules.InclusiveMaximum, "PeerAsn", 4294967295);
+ }
+ if (PeerAsn < 0)
+ {
+ throw new ValidationException(ValidationRules.InclusiveMinimum, "PeerAsn", 0);
}
}
}
diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/VpnNatRuleMapping.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/VpnNatRuleMapping.cs
index 702dc49c3848..b98593e6408a 100644
--- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/VpnNatRuleMapping.cs
+++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/VpnNatRuleMapping.cs
@@ -31,9 +31,11 @@ public VpnNatRuleMapping()
///
/// Address space for Vpn NatRule
/// mapping.
- public VpnNatRuleMapping(string addressSpace = default(string))
+ /// Port range for Vpn NatRule mapping.
+ public VpnNatRuleMapping(string addressSpace = default(string), string portRange = default(string))
{
AddressSpace = addressSpace;
+ PortRange = portRange;
CustomInit();
}
@@ -48,5 +50,11 @@ public VpnNatRuleMapping()
[JsonProperty(PropertyName = "addressSpace")]
public string AddressSpace { get; set; }
+ ///
+ /// Gets or sets port range for Vpn NatRule mapping.
+ ///
+ [JsonProperty(PropertyName = "portRange")]
+ public string PortRange { get; set; }
+
}
}
diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/NatGatewaysOperations.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/NatGatewaysOperations.cs
index dc59a2584d46..02d1a6b1b715 100644
--- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/NatGatewaysOperations.cs
+++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/NatGatewaysOperations.cs
@@ -119,7 +119,7 @@ internal NatGatewaysOperations(NetworkManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2021-03-01";
+ string apiVersion = "2021-05-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -350,7 +350,7 @@ internal NatGatewaysOperations(NetworkManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2021-03-01";
+ string apiVersion = "2021-05-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -537,7 +537,7 @@ internal NatGatewaysOperations(NetworkManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2021-03-01";
+ string apiVersion = "2021-05-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -720,7 +720,7 @@ internal NatGatewaysOperations(NetworkManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2021-03-01";
+ string apiVersion = "2021-05-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -909,7 +909,7 @@ internal NatGatewaysOperations(NetworkManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2021-03-01";
+ string apiVersion = "2021-05-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -1092,7 +1092,7 @@ internal NatGatewaysOperations(NetworkManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2021-03-01";
+ string apiVersion = "2021-05-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/NatRulesOperations.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/NatRulesOperations.cs
index 04eb1e81c588..b486701b67a5 100644
--- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/NatRulesOperations.cs
+++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/NatRulesOperations.cs
@@ -101,7 +101,7 @@ internal NatRulesOperations(NetworkManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "natRuleName");
}
- string apiVersion = "2021-03-01";
+ string apiVersion = "2021-05-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -351,7 +351,7 @@ internal NatRulesOperations(NetworkManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "gatewayName");
}
- string apiVersion = "2021-03-01";
+ string apiVersion = "2021-05-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -560,7 +560,7 @@ internal NatRulesOperations(NetworkManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "natRuleParameters");
}
- string apiVersion = "2021-03-01";
+ string apiVersion = "2021-05-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -785,7 +785,7 @@ internal NatRulesOperations(NetworkManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "natRuleName");
}
- string apiVersion = "2021-03-01";
+ string apiVersion = "2021-05-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/NetworkInterfaceIPConfigurationsOperations.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/NetworkInterfaceIPConfigurationsOperations.cs
index d88a3b45390c..b16eb9bc25f0 100644
--- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/NetworkInterfaceIPConfigurationsOperations.cs
+++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/NetworkInterfaceIPConfigurationsOperations.cs
@@ -94,7 +94,7 @@ internal NetworkInterfaceIPConfigurationsOperations(NetworkManagementClient clie
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2021-03-01";
+ string apiVersion = "2021-05-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -295,7 +295,7 @@ internal NetworkInterfaceIPConfigurationsOperations(NetworkManagementClient clie
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2021-03-01";
+ string apiVersion = "2021-05-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/NetworkInterfaceLoadBalancersOperations.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/NetworkInterfaceLoadBalancersOperations.cs
index 0314d00e8fef..3d6524bafc76 100644
--- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/NetworkInterfaceLoadBalancersOperations.cs
+++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/NetworkInterfaceLoadBalancersOperations.cs
@@ -94,7 +94,7 @@ internal NetworkInterfaceLoadBalancersOperations(NetworkManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2021-03-01";
+ string apiVersion = "2021-05-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/NetworkInterfaceTapConfigurationsOperations.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/NetworkInterfaceTapConfigurationsOperations.cs
index e499e0541924..c6218fce8a97 100644
--- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/NetworkInterfaceTapConfigurationsOperations.cs
+++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/NetworkInterfaceTapConfigurationsOperations.cs
@@ -126,7 +126,7 @@ internal NetworkInterfaceTapConfigurationsOperations(NetworkManagementClient cli
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2021-03-01";
+ string apiVersion = "2021-05-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -350,7 +350,7 @@ internal NetworkInterfaceTapConfigurationsOperations(NetworkManagementClient cli
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2021-03-01";
+ string apiVersion = "2021-05-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -548,7 +548,7 @@ internal NetworkInterfaceTapConfigurationsOperations(NetworkManagementClient cli
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2021-03-01";
+ string apiVersion = "2021-05-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -740,7 +740,7 @@ internal NetworkInterfaceTapConfigurationsOperations(NetworkManagementClient cli
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2021-03-01";
+ string apiVersion = "2021-05-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/NetworkInterfacesOperations.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/NetworkInterfacesOperations.cs
index 4da8c0dd9abf..ff9c856a1108 100644
--- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/NetworkInterfacesOperations.cs
+++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/NetworkInterfacesOperations.cs
@@ -102,7 +102,7 @@ internal NetworkInterfacesOperations(NetworkManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2021-03-01";
+ string apiVersion = "2021-05-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -298,7 +298,7 @@ internal NetworkInterfacesOperations(NetworkManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2021-03-01";
+ string apiVersion = "2021-05-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -509,7 +509,7 @@ internal NetworkInterfacesOperations(NetworkManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2021-03-01";
+ string apiVersion = "2021-05-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -737,7 +737,7 @@ internal NetworkInterfacesOperations(NetworkManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2021-03-01";
+ string apiVersion = "2021-05-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -968,7 +968,7 @@ internal NetworkInterfacesOperations(NetworkManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2021-03-01";
+ string apiVersion = "2021-05-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -1155,7 +1155,7 @@ internal NetworkInterfacesOperations(NetworkManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2021-03-01";
+ string apiVersion = "2021-05-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -1338,7 +1338,7 @@ internal NetworkInterfacesOperations(NetworkManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2021-03-01";
+ string apiVersion = "2021-05-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -2640,7 +2640,7 @@ internal NetworkInterfacesOperations(NetworkManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2021-03-01";
+ string apiVersion = "2021-05-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -2823,7 +2823,7 @@ internal NetworkInterfacesOperations(NetworkManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2021-03-01";
+ string apiVersion = "2021-05-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -3042,7 +3042,7 @@ internal NetworkInterfacesOperations(NetworkManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2021-03-01";
+ string apiVersion = "2021-05-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -3236,7 +3236,7 @@ internal NetworkInterfacesOperations(NetworkManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2021-03-01";
+ string apiVersion = "2021-05-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/NetworkManagementClient.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/NetworkManagementClient.cs
index 3f71e49a14ac..e3d2a254db4f 100644
--- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/NetworkManagementClient.cs
+++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/NetworkManagementClient.cs
@@ -233,6 +233,21 @@ public partial class NetworkManagementClient : ServiceClient
public virtual IFirewallPolicyRuleCollectionGroupsOperations FirewallPolicyRuleCollectionGroups { get; private set; }
+ ///
+ /// Gets the IFirewallPolicyIdpsSignaturesOperations.
+ ///
+ public virtual IFirewallPolicyIdpsSignaturesOperations FirewallPolicyIdpsSignatures { get; private set; }
+
+ ///
+ /// Gets the IFirewallPolicyIdpsSignaturesOverridesOperations.
+ ///
+ public virtual IFirewallPolicyIdpsSignaturesOverridesOperations FirewallPolicyIdpsSignaturesOverrides { get; private set; }
+
+ ///
+ /// Gets the IFirewallPolicyIdpsSignaturesFilterValuesOperations.
+ ///
+ public virtual IFirewallPolicyIdpsSignaturesFilterValuesOperations FirewallPolicyIdpsSignaturesFilterValues { get; private set; }
+
///
/// Gets the IIpAllocationsOperations.
///
@@ -613,6 +628,11 @@ public partial class NetworkManagementClient : ServiceClient
public virtual IHubRouteTablesOperations HubRouteTables { get; private set; }
+ ///