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 f2de0ff4cbe5c..5ac2a7fc34fe6 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 = "2020-07-01";
+ string apiVersion = "2020-08-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 = "2020-07-01";
+ string apiVersion = "2020-08-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 = "2020-07-01";
+ string apiVersion = "2020-08-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 = "2020-07-01";
+ string apiVersion = "2020-08-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 8a921a9ea898c..e58af2d3ee9b4 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 = "2020-07-01";
+ string apiVersion = "2020-08-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 3a2218258ea65..06876f2fafe5e 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 = "2020-07-01";
+ string apiVersion = "2020-08-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 = "2020-07-01";
+ string apiVersion = "2020-08-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 = "2020-07-01";
+ string apiVersion = "2020-08-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 = "2020-07-01";
+ string apiVersion = "2020-08-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 = "2020-07-01";
+ string apiVersion = "2020-08-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 = "2020-07-01";
+ string apiVersion = "2020-08-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 = "2020-07-01";
+ string apiVersion = "2020-08-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 = "2020-07-01";
+ string apiVersion = "2020-08-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 = "2020-07-01";
+ string apiVersion = "2020-08-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 = "2020-07-01";
+ string apiVersion = "2020-08-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 = "2020-07-01";
+ string apiVersion = "2020-08-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 = "2020-07-01";
+ string apiVersion = "2020-08-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 = "2020-07-01";
+ string apiVersion = "2020-08-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 = "2020-07-01";
+ string apiVersion = "2020-08-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 = "2020-07-01";
+ string apiVersion = "2020-08-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 = "2020-07-01";
+ string apiVersion = "2020-08-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 = "2020-07-01";
+ string apiVersion = "2020-08-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 9d5f2c5884ec5..a44ca343aa1a4 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 = "2020-07-01";
+ string apiVersion = "2020-08-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 = "2020-07-01";
+ string apiVersion = "2020-08-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 = "2020-07-01";
+ string apiVersion = "2020-08-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 = "2020-07-01";
+ string apiVersion = "2020-08-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 = "2020-07-01";
+ string apiVersion = "2020-08-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 = "2020-07-01";
+ string apiVersion = "2020-08-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 10a8ddcab67bb..93fb402327636 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 = "2020-07-01";
+ string apiVersion = "2020-08-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 e193f6569d869..8959d03d7bb5b 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 = "2020-07-01";
+ string apiVersion = "2020-08-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 be09f6e43d4f1..d3d80aa6e6777 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 = "2020-07-01";
+ string apiVersion = "2020-08-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 = "2020-07-01";
+ string apiVersion = "2020-08-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 9aec29a3b89e8..61f87ef97e9b2 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 = "2020-07-01";
+ string apiVersion = "2020-08-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 889409d30f595..14296b06e95be 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 = "2020-07-01";
+ string apiVersion = "2020-08-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 = "2020-07-01";
+ string apiVersion = "2020-08-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 6f53a14a70afc..f9f66fe5550cf 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 = "2020-07-01";
+ string apiVersion = "2020-08-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 25c5d5b98d7e3..54ba4e410e194 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 = "2020-07-01";
+ string apiVersion = "2020-08-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 = "2020-07-01";
+ string apiVersion = "2020-08-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 = "2020-07-01";
+ string apiVersion = "2020-08-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 = "2020-07-01";
+ string apiVersion = "2020-08-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 = "2020-07-01";
+ string apiVersion = "2020-08-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 = "2020-07-01";
+ string apiVersion = "2020-08-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 321dd6d8b53fc..9e2cb8e8a5676 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 = "2020-07-01";
+ string apiVersion = "2020-08-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -321,7 +321,7 @@ internal BastionHostsOperations(NetworkManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2020-07-01";
+ string apiVersion = "2020-08-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -504,7 +504,7 @@ internal BastionHostsOperations(NetworkManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2020-07-01";
+ string apiVersion = "2020-08-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -693,7 +693,7 @@ internal BastionHostsOperations(NetworkManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2020-07-01";
+ string apiVersion = "2020-08-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -876,7 +876,7 @@ internal BastionHostsOperations(NetworkManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2020-07-01";
+ string apiVersion = "2020-08-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 30a5ab4bb6c0d..ed0031045fbab 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 = "2020-07-01";
+ string apiVersion = "2020-08-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 cc873ed184620..6506cf5d63fd4 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 = "2020-07-01";
+ string apiVersion = "2020-08-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 = "2020-07-01";
+ string apiVersion = "2020-08-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 = "2020-07-01";
+ string apiVersion = "2020-08-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 = "2020-07-01";
+ string apiVersion = "2020-08-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 = "2020-07-01";
+ string apiVersion = "2020-08-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 = "2020-07-01";
+ string apiVersion = "2020-08-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 = "2020-07-01";
+ string apiVersion = "2020-08-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 = "2020-07-01";
+ string apiVersion = "2020-08-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 3f1f4a3342a06..267eb5ddb7c29 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 = "2020-07-01";
+ string apiVersion = "2020-08-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 = "2020-07-01";
+ string apiVersion = "2020-08-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 = "2020-07-01";
+ string apiVersion = "2020-08-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 = "2020-07-01";
+ string apiVersion = "2020-08-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 = "2020-07-01";
+ string apiVersion = "2020-08-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 = "2020-07-01";
+ string apiVersion = "2020-08-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 4c915a76e91bb..6634b46c17caf 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 = "2020-07-01";
+ string apiVersion = "2020-08-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 = "2020-07-01";
+ string apiVersion = "2020-08-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 = "2020-07-01";
+ string apiVersion = "2020-08-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 = "2020-07-01";
+ string apiVersion = "2020-08-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 367db1a93cdad..7ade1f12423a5 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 = "2020-07-01";
+ string apiVersion = "2020-08-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 = "2020-07-01";
+ string apiVersion = "2020-08-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 = "2020-07-01";
+ string apiVersion = "2020-08-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 = "2020-07-01";
+ string apiVersion = "2020-08-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 = "2020-07-01";
+ string apiVersion = "2020-08-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 = "2020-07-01";
+ string apiVersion = "2020-08-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 86a311e4787ee..c21cd8c23233c 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 = "2020-07-01";
+ string apiVersion = "2020-08-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 = "2020-07-01";
+ string apiVersion = "2020-08-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 ce9a0618c0ec7..dd8c97e315a14 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 = "2020-07-01";
+ string apiVersion = "2020-08-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 = "2020-07-01";
+ string apiVersion = "2020-08-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 = "2020-07-01";
+ string apiVersion = "2020-08-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 = "2020-07-01";
+ string apiVersion = "2020-08-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 = "2020-07-01";
+ string apiVersion = "2020-08-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 c6b490730551d..fea61338829e8 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 = "2020-07-01";
+ string apiVersion = "2020-08-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 = "2020-07-01";
+ string apiVersion = "2020-08-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 = "2020-07-01";
+ string apiVersion = "2020-08-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 = "2020-07-01";
+ string apiVersion = "2020-08-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 2b416329d5c70..655e7c9615ee7 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 = "2020-07-01";
+ string apiVersion = "2020-08-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 = "2020-07-01";
+ string apiVersion = "2020-08-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 = "2020-07-01";
+ string apiVersion = "2020-08-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 = "2020-07-01";
+ string apiVersion = "2020-08-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 3a8e38785c19e..93eafe1e58837 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 = "2020-07-01";
+ string apiVersion = "2020-08-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 = "2020-07-01";
+ string apiVersion = "2020-08-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 = "2020-07-01";
+ string apiVersion = "2020-08-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 = "2020-07-01";
+ string apiVersion = "2020-08-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 e2510a3c79857..dc30d5641d73c 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 = "2020-07-01";
+ string apiVersion = "2020-08-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 = "2020-07-01";
+ string apiVersion = "2020-08-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 = "2020-07-01";
+ string apiVersion = "2020-08-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 = "2020-07-01";
+ string apiVersion = "2020-08-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 = "2020-07-01";
+ string apiVersion = "2020-08-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 = "2020-07-01";
+ string apiVersion = "2020-08-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 = "2020-07-01";
+ string apiVersion = "2020-08-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 = "2020-07-01";
+ string apiVersion = "2020-08-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 = "2020-07-01";
+ string apiVersion = "2020-08-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 = "2020-07-01";
+ string apiVersion = "2020-08-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 = "2020-07-01";
+ string apiVersion = "2020-08-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 daf95f5899377..bb1a5f2474dfd 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 = "2020-07-01";
+ string apiVersion = "2020-08-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 = "2020-07-01";
+ string apiVersion = "2020-08-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 = "2020-07-01";
+ string apiVersion = "2020-08-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 = "2020-07-01";
+ string apiVersion = "2020-08-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 f2a281bcea0c1..79eda3f65d88d 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 = "2020-07-01";
+ string apiVersion = "2020-08-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 = "2020-07-01";
+ string apiVersion = "2020-08-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 = "2020-07-01";
+ string apiVersion = "2020-08-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 = "2020-07-01";
+ string apiVersion = "2020-08-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 844f4baf53045..58b9973a6aaaa 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 = "2020-07-01";
+ string apiVersion = "2020-08-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 = "2020-07-01";
+ string apiVersion = "2020-08-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 = "2020-07-01";
+ string apiVersion = "2020-08-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 = "2020-07-01";
+ string apiVersion = "2020-08-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 = "2020-07-01";
+ string apiVersion = "2020-08-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 = "2020-07-01";
+ string apiVersion = "2020-08-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 = "2020-07-01";
+ string apiVersion = "2020-08-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 = "2020-07-01";
+ string apiVersion = "2020-08-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 236f364be94d6..afdbd6fd98826 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 = "2020-07-01";
+ string apiVersion = "2020-08-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 = "2020-07-01";
+ string apiVersion = "2020-08-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -436,6 +436,31 @@ internal ExpressRouteGatewaysOperations(NetworkManagementClient client)
return await Client.GetPutOrPatchOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false);
}
+ ///
+ /// Updates express route gateway tags.
+ ///
+ ///
+ /// The resource group name of the ExpressRouteGateway.
+ ///
+ ///
+ /// The name of the gateway.
+ ///
+ ///
+ /// Parameters supplied to update a virtual wan express route gateway tags.
+ ///
+ ///
+ /// The headers that will be added to request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ public async Task> UpdateTagsWithHttpMessagesAsync(string resourceGroupName, string expressRouteGatewayName, TagsObject expressRouteGatewayParameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ {
+ // Send Request
+ AzureOperationResponse _response = await BeginUpdateTagsWithHttpMessagesAsync(resourceGroupName, expressRouteGatewayName, expressRouteGatewayParameters, customHeaders, cancellationToken).ConfigureAwait(false);
+ return await Client.GetPutOrPatchOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false);
+ }
+
///
/// Fetches the details of a ExpressRoute gateway in a resource group.
///
@@ -480,7 +505,7 @@ internal ExpressRouteGatewaysOperations(NetworkManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2020-07-01";
+ string apiVersion = "2020-08-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -709,7 +734,7 @@ internal ExpressRouteGatewaysOperations(NetworkManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2020-07-01";
+ string apiVersion = "2020-08-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -884,6 +909,214 @@ internal ExpressRouteGatewaysOperations(NetworkManagementClient client)
return _result;
}
+ ///
+ /// Updates express route gateway tags.
+ ///
+ ///
+ /// The resource group name of the ExpressRouteGateway.
+ ///
+ ///
+ /// The name of the gateway.
+ ///
+ ///
+ /// Parameters supplied to update a virtual wan express route gateway tags.
+ ///
+ ///
+ /// 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> BeginUpdateTagsWithHttpMessagesAsync(string resourceGroupName, string expressRouteGatewayName, TagsObject expressRouteGatewayParameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ {
+ if (Client.SubscriptionId == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
+ }
+ if (resourceGroupName == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName");
+ }
+ if (expressRouteGatewayName == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "expressRouteGatewayName");
+ }
+ if (expressRouteGatewayParameters == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "expressRouteGatewayParameters");
+ }
+ string apiVersion = "2020-08-01";
+ // Tracing
+ bool _shouldTrace = ServiceClientTracing.IsEnabled;
+ string _invocationId = null;
+ if (_shouldTrace)
+ {
+ _invocationId = ServiceClientTracing.NextInvocationId.ToString();
+ Dictionary tracingParameters = new Dictionary();
+ tracingParameters.Add("resourceGroupName", resourceGroupName);
+ tracingParameters.Add("expressRouteGatewayName", expressRouteGatewayName);
+ tracingParameters.Add("apiVersion", apiVersion);
+ tracingParameters.Add("expressRouteGatewayParameters", expressRouteGatewayParameters);
+ tracingParameters.Add("cancellationToken", cancellationToken);
+ ServiceClientTracing.Enter(_invocationId, this, "BeginUpdateTags", 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/expressRouteGateways/{expressRouteGatewayName}").ToString();
+ _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId));
+ _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName));
+ _url = _url.Replace("{expressRouteGatewayName}", System.Uri.EscapeDataString(expressRouteGatewayName));
+ 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("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(expressRouteGatewayParameters != null)
+ {
+ _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(expressRouteGatewayParameters, 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);
+ }
+ }
+ if (_shouldTrace)
+ {
+ ServiceClientTracing.Exit(_invocationId, _result);
+ }
+ return _result;
+ }
+
///
/// Deletes the specified ExpressRoute gateway in a resource group. An
/// ExpressRoute gateway resource can only be deleted when there are no
@@ -927,7 +1160,7 @@ internal ExpressRouteGatewaysOperations(NetworkManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2020-07-01";
+ string apiVersion = "2020-08-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/ExpressRouteGatewaysOperationsExtensions.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/ExpressRouteGatewaysOperationsExtensions.cs
index 12ff6365f5b9a..03da17428d68c 100644
--- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/ExpressRouteGatewaysOperationsExtensions.cs
+++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/ExpressRouteGatewaysOperationsExtensions.cs
@@ -129,6 +129,52 @@ public static ExpressRouteGateway CreateOrUpdate(this IExpressRouteGatewaysOpera
}
}
+ ///
+ /// Updates express route gateway tags.
+ ///
+ ///
+ /// The operations group for this extension method.
+ ///
+ ///
+ /// The resource group name of the ExpressRouteGateway.
+ ///
+ ///
+ /// The name of the gateway.
+ ///
+ ///
+ /// Parameters supplied to update a virtual wan express route gateway tags.
+ ///
+ public static ExpressRouteGateway UpdateTags(this IExpressRouteGatewaysOperations operations, string resourceGroupName, string expressRouteGatewayName, TagsObject expressRouteGatewayParameters)
+ {
+ return operations.UpdateTagsAsync(resourceGroupName, expressRouteGatewayName, expressRouteGatewayParameters).GetAwaiter().GetResult();
+ }
+
+ ///
+ /// Updates express route gateway tags.
+ ///
+ ///
+ /// The operations group for this extension method.
+ ///
+ ///
+ /// The resource group name of the ExpressRouteGateway.
+ ///
+ ///
+ /// The name of the gateway.
+ ///
+ ///
+ /// Parameters supplied to update a virtual wan express route gateway tags.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ public static async Task UpdateTagsAsync(this IExpressRouteGatewaysOperations operations, string resourceGroupName, string expressRouteGatewayName, TagsObject expressRouteGatewayParameters, CancellationToken cancellationToken = default(CancellationToken))
+ {
+ using (var _result = await operations.UpdateTagsWithHttpMessagesAsync(resourceGroupName, expressRouteGatewayName, expressRouteGatewayParameters, null, cancellationToken).ConfigureAwait(false))
+ {
+ return _result.Body;
+ }
+ }
+
///
/// Fetches the details of a ExpressRoute gateway in a resource group.
///
@@ -256,6 +302,52 @@ public static ExpressRouteGateway BeginCreateOrUpdate(this IExpressRouteGateways
}
}
+ ///
+ /// Updates express route gateway tags.
+ ///
+ ///
+ /// The operations group for this extension method.
+ ///
+ ///
+ /// The resource group name of the ExpressRouteGateway.
+ ///
+ ///
+ /// The name of the gateway.
+ ///
+ ///
+ /// Parameters supplied to update a virtual wan express route gateway tags.
+ ///
+ public static ExpressRouteGateway BeginUpdateTags(this IExpressRouteGatewaysOperations operations, string resourceGroupName, string expressRouteGatewayName, TagsObject expressRouteGatewayParameters)
+ {
+ return operations.BeginUpdateTagsAsync(resourceGroupName, expressRouteGatewayName, expressRouteGatewayParameters).GetAwaiter().GetResult();
+ }
+
+ ///
+ /// Updates express route gateway tags.
+ ///
+ ///
+ /// The operations group for this extension method.
+ ///
+ ///
+ /// The resource group name of the ExpressRouteGateway.
+ ///
+ ///
+ /// The name of the gateway.
+ ///
+ ///
+ /// Parameters supplied to update a virtual wan express route gateway tags.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ public static async Task BeginUpdateTagsAsync(this IExpressRouteGatewaysOperations operations, string resourceGroupName, string expressRouteGatewayName, TagsObject expressRouteGatewayParameters, CancellationToken cancellationToken = default(CancellationToken))
+ {
+ using (var _result = await operations.BeginUpdateTagsWithHttpMessagesAsync(resourceGroupName, expressRouteGatewayName, expressRouteGatewayParameters, null, cancellationToken).ConfigureAwait(false))
+ {
+ return _result.Body;
+ }
+ }
+
///
/// Deletes the specified ExpressRoute gateway in a resource group. An
/// ExpressRoute gateway resource can only be deleted when there are no
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 b90e5b25fd4f5..141250cbb10a0 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 = "2020-07-01";
+ string apiVersion = "2020-08-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 = "2020-07-01";
+ string apiVersion = "2020-08-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 9c606ac383d56..dc777f60a6abc 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 = "2020-07-01";
+ string apiVersion = "2020-08-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 = "2020-07-01";
+ string apiVersion = "2020-08-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 a2378c880c1c5..056650ecabe7a 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 = "2020-07-01";
+ string apiVersion = "2020-08-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 = "2020-07-01";
+ string apiVersion = "2020-08-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 = "2020-07-01";
+ string apiVersion = "2020-08-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 = "2020-07-01";
+ string apiVersion = "2020-08-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -916,7 +916,7 @@ internal ExpressRoutePortsOperations(NetworkManagementClient client)
{
request.Validate();
}
- string apiVersion = "2020-07-01";
+ string apiVersion = "2020-08-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 = "2020-07-01";
+ string apiVersion = "2020-08-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 = "2020-07-01";
+ string apiVersion = "2020-08-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 e4376e2a6e507..c6c75901da42f 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 = "2020-07-01";
+ string apiVersion = "2020-08-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 e289c6b0f447d..f6f7aa8339820 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 = "2020-07-01";
+ string apiVersion = "2020-08-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 = "2020-07-01";
+ string apiVersion = "2020-08-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 = "2020-07-01";
+ string apiVersion = "2020-08-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 = "2020-07-01";
+ string apiVersion = "2020-08-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -884,7 +884,7 @@ internal FirewallPoliciesOperations(NetworkManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2020-07-01";
+ string apiVersion = "2020-08-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
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 60f9500ede0c1..5a3edba2a3428 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 = "2020-07-01";
+ string apiVersion = "2020-08-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 = "2020-07-01";
+ string apiVersion = "2020-08-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 = "2020-07-01";
+ string apiVersion = "2020-08-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 = "2020-07-01";
+ string apiVersion = "2020-08-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 09cf8597c771b..52cb01f2e5083 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 = "2020-07-01";
+ string apiVersion = "2020-08-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 = "2020-07-01";
+ string apiVersion = "2020-08-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 = "2020-07-01";
+ string apiVersion = "2020-08-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 = "2020-07-01";
+ string apiVersion = "2020-08-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 = "2020-07-01";
+ string apiVersion = "2020-08-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 34e93a665982e..720fb2458ded9 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 = "2020-07-01";
+ string apiVersion = "2020-08-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 = "2020-07-01";
+ string apiVersion = "2020-08-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 = "2020-07-01";
+ string apiVersion = "2020-08-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 = "2020-07-01";
+ string apiVersion = "2020-08-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 649fd08180b47..26220052bdf1f 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 = "2020-07-01";
+ string apiVersion = "2020-08-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 = "2020-07-01";
+ string apiVersion = "2020-08-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 = "2020-07-01";
+ string apiVersion = "2020-08-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 = "2020-07-01";
+ string apiVersion = "2020-08-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/IExpressRouteGatewaysOperations.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/IExpressRouteGatewaysOperations.cs
index ae1fa93487cd0..4e4c295b48316 100644
--- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/IExpressRouteGatewaysOperations.cs
+++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/IExpressRouteGatewaysOperations.cs
@@ -94,6 +94,35 @@ public partial interface IExpressRouteGatewaysOperations
///
Task> CreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string expressRouteGatewayName, ExpressRouteGateway putExpressRouteGatewayParameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
+ /// Updates express route gateway tags.
+ ///
+ ///
+ /// The resource group name of the ExpressRouteGateway.
+ ///
+ ///
+ /// The name of the gateway.
+ ///
+ ///
+ /// Parameters supplied to update a virtual wan express route gateway
+ /// tags.
+ ///
+ ///
+ /// 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> UpdateTagsWithHttpMessagesAsync(string resourceGroupName, string expressRouteGatewayName, TagsObject expressRouteGatewayParameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ ///
/// Fetches the details of a ExpressRoute gateway in a resource group.
///
///
@@ -172,6 +201,35 @@ public partial interface IExpressRouteGatewaysOperations
///
Task> BeginCreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string expressRouteGatewayName, ExpressRouteGateway putExpressRouteGatewayParameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
+ /// Updates express route gateway tags.
+ ///
+ ///
+ /// The resource group name of the ExpressRouteGateway.
+ ///
+ ///
+ /// The name of the gateway.
+ ///
+ ///
+ /// Parameters supplied to update a virtual wan express route gateway
+ /// tags.
+ ///
+ ///
+ /// 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> BeginUpdateTagsWithHttpMessagesAsync(string resourceGroupName, string expressRouteGatewayName, TagsObject expressRouteGatewayParameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ ///
/// Deletes the specified ExpressRoute gateway in a resource group. An
/// ExpressRoute gateway resource can only be deleted when there are no
/// connection subresources.
diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/INatRulesOperations.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/INatRulesOperations.cs
new file mode 100644
index 0000000000000..2004e8e314282
--- /dev/null
+++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/INatRulesOperations.cs
@@ -0,0 +1,216 @@
+//
+// 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;
+
+ ///
+ /// NatRulesOperations operations.
+ ///
+ public partial interface INatRulesOperations
+ {
+ ///
+ /// Retrieves the details of a nat ruleGet.
+ ///
+ ///
+ /// The resource group name of the VpnGateway.
+ ///
+ ///
+ /// The name of the gateway.
+ ///
+ ///
+ /// The name of the nat rule.
+ ///
+ ///
+ /// 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 gatewayName, string natRuleName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ ///
+ /// Creates a nat rule to a scalable vpn gateway if it doesn't exist
+ /// else updates the existing nat rules.
+ ///
+ ///
+ /// The resource group name of the VpnGateway.
+ ///
+ ///
+ /// The name of the gateway.
+ ///
+ ///
+ /// The name of the nat rule.
+ ///
+ ///
+ /// Parameters supplied to create or Update a Nat Rule.
+ ///
+ ///
+ /// 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 gatewayName, string natRuleName, VpnGatewayNatRule natRuleParameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ ///
+ /// Deletes a nat rule.
+ ///
+ ///
+ /// The resource group name of the VpnGateway.
+ ///
+ ///
+ /// The name of the gateway.
+ ///
+ ///
+ /// The name of the nat rule.
+ ///
+ ///
+ /// 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 gatewayName, string natRuleName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ ///
+ /// Retrieves all nat rules for a particular virtual wan vpn gateway.
+ ///
+ ///
+ /// The resource group name of the VpnGateway.
+ ///
+ ///
+ /// The name of the gateway.
+ ///
+ ///
+ /// 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>> ListByVpnGatewayWithHttpMessagesAsync(string resourceGroupName, string gatewayName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ ///
+ /// Creates a nat rule to a scalable vpn gateway if it doesn't exist
+ /// else updates the existing nat rules.
+ ///
+ ///
+ /// The resource group name of the VpnGateway.
+ ///
+ ///
+ /// The name of the gateway.
+ ///
+ ///
+ /// The name of the nat rule.
+ ///
+ ///
+ /// Parameters supplied to create or Update a Nat Rule.
+ ///
+ ///
+ /// 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 gatewayName, string natRuleName, VpnGatewayNatRule natRuleParameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ ///
+ /// Deletes a nat rule.
+ ///
+ ///
+ /// The resource group name of the VpnGateway.
+ ///
+ ///
+ /// The name of the gateway.
+ ///
+ ///
+ /// The name of the nat rule.
+ ///
+ ///
+ /// 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 gatewayName, string natRuleName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ ///
+ /// Retrieves all nat rules for a particular virtual wan vpn gateway.
+ ///
+ ///
+ /// 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>> ListByVpnGatewayNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ }
+}
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 58a144ed6325d..180380243505a 100644
--- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/INetworkManagementClient.cs
+++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/INetworkManagementClient.cs
@@ -550,6 +550,11 @@ public partial interface INetworkManagementClient : System.IDisposable
///
IVpnLinkConnectionsOperations VpnLinkConnections { get; }
+ ///
+ /// Gets the INatRulesOperations.
+ ///
+ INatRulesOperations NatRules { get; }
+
///
/// Gets the IP2sVpnGatewaysOperations.
///
diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/IPublicIPAddressesOperations.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/IPublicIPAddressesOperations.cs
new file mode 100644
index 0000000000000..6c2e12563dca5
--- /dev/null
+++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/IPublicIPAddressesOperations.cs
@@ -0,0 +1,564 @@
+//
+// 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;
+
+ ///
+ /// PublicIPAddressesOperations operations.
+ ///
+ public partial interface IPublicIPAddressesOperations
+ {
+ ///
+ /// Deletes the specified public IP address.
+ ///
+ ///
+ /// The name of the resource group.
+ ///
+ ///
+ /// The name of the public IP address.
+ ///
+ ///
+ /// 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 publicIpAddressName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ ///
+ /// Gets the specified public IP address in a specified resource group.
+ ///
+ ///
+ /// The name of the resource group.
+ ///
+ ///
+ /// The name of the public IP address.
+ ///
+ ///
+ /// Expands referenced resources.
+ ///
+ ///
+ /// 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 publicIpAddressName, string expand = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ ///
+ /// Creates or updates a static or dynamic public IP address.
+ ///
+ ///
+ /// The name of the resource group.
+ ///
+ ///
+ /// The name of the public IP address.
+ ///
+ ///
+ /// Parameters supplied to the create or update public IP address
+ /// 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> CreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string publicIpAddressName, PublicIPAddress parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ ///
+ /// Updates public IP address tags.
+ ///
+ ///
+ /// The name of the resource group.
+ ///
+ ///
+ /// The name of the public IP address.
+ ///
+ ///
+ /// Parameters supplied to update public IP address tags.
+ ///
+ ///
+ /// 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> UpdateTagsWithHttpMessagesAsync(string resourceGroupName, string publicIpAddressName, TagsObject parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ ///
+ /// Gets all the public IP addresses in a subscription.
+ ///
+ ///
+ /// 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>> ListAllWithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ ///
+ /// Gets all public IP addresses in a resource group.
+ ///
+ ///
+ /// The name of the resource group.
+ ///
+ ///
+ /// 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, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ ///
+ /// Gets information about all public IP addresses on a virtual machine
+ /// scale set level.
+ ///
+ ///
+ /// The name of the resource group.
+ ///
+ ///
+ /// The name of the virtual machine scale set.
+ ///
+ ///
+ /// 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>> ListVirtualMachineScaleSetPublicIPAddressesWithHttpMessagesAsync(string resourceGroupName, string virtualMachineScaleSetName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ ///
+ /// Gets information about all public IP addresses in a virtual machine
+ /// IP configuration in a virtual machine scale set.
+ ///
+ ///
+ /// The name of the resource group.
+ ///
+ ///
+ /// The name of the virtual machine scale set.
+ ///
+ ///
+ /// The virtual machine index.
+ ///
+ ///
+ /// The network interface name.
+ ///
+ ///
+ /// The IP configuration name.
+ ///
+ ///
+ /// 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>> ListVirtualMachineScaleSetVMPublicIPAddressesWithHttpMessagesAsync(string resourceGroupName, string virtualMachineScaleSetName, string virtualmachineIndex, string networkInterfaceName, string ipConfigurationName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ ///
+ /// Get the specified public IP address in a virtual machine scale set.
+ ///
+ ///
+ /// The name of the resource group.
+ ///
+ ///
+ /// The name of the virtual machine scale set.
+ ///
+ ///
+ /// The virtual machine index.
+ ///
+ ///
+ /// The name of the network interface.
+ ///
+ ///
+ /// The name of the IP configuration.
+ ///
+ ///
+ /// The name of the public IP Address.
+ ///
+ ///
+ /// Expands referenced resources.
+ ///
+ ///
+ /// 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> GetVirtualMachineScaleSetPublicIPAddressWithHttpMessagesAsync(string resourceGroupName, string virtualMachineScaleSetName, string virtualmachineIndex, string networkInterfaceName, string ipConfigurationName, string publicIpAddressName, string expand = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ ///
+ /// Gets information about all public IP addresses on a cloud service
+ /// level.
+ ///
+ ///
+ /// The name of the resource group.
+ ///
+ ///
+ /// The name of the cloud service.
+ ///
+ ///
+ /// 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>> ListCloudServicePublicIPAddressesWithHttpMessagesAsync(string resourceGroupName, string cloudServiceName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ ///
+ /// Gets information about all public IP addresses in a role instance
+ /// IP configuration in a cloud service.
+ ///
+ ///
+ /// The name of the resource group.
+ ///
+ ///
+ /// The name of the cloud service.
+ ///
+ ///
+ /// The name of role instance
+ ///
+ ///
+ /// The network interface name.
+ ///
+ ///
+ /// The IP configuration name.
+ ///
+ ///
+ /// 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>> ListCloudServiceRoleInstancePublicIPAddressesWithHttpMessagesAsync(string resourceGroupName, string cloudServiceName, string roleInstanceName, string networkInterfaceName, string ipConfigurationName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ ///
+ /// Get the specified public IP address in a cloud service.
+ ///
+ ///
+ /// The name of the resource group.
+ ///
+ ///
+ /// The name of the cloud service.
+ ///
+ ///
+ /// The role instance name.
+ ///
+ ///
+ /// The name of the network interface.
+ ///
+ ///
+ /// The name of the IP configuration.
+ ///
+ ///
+ /// The name of the public IP Address.
+ ///
+ ///
+ /// Expands referenced resources.
+ ///
+ ///
+ /// 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> GetCloudServicePublicIPAddressWithHttpMessagesAsync(string resourceGroupName, string cloudServiceName, string roleInstanceName, string networkInterfaceName, string ipConfigurationName, string publicIpAddressName, string expand = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ ///
+ /// Deletes the specified public IP address.
+ ///
+ ///
+ /// The name of the resource group.
+ ///
+ ///
+ /// The name of the public IP address.
+ ///
+ ///
+ /// 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 publicIpAddressName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ ///
+ /// Creates or updates a static or dynamic public IP address.
+ ///
+ ///
+ /// The name of the resource group.
+ ///
+ ///
+ /// The name of the public IP address.
+ ///
+ ///
+ /// Parameters supplied to the create or update public IP address
+ /// 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> BeginCreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string publicIpAddressName, PublicIPAddress parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ ///
+ /// Gets all the public IP addresses in a subscription.
+ ///
+ ///
+ /// 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>> ListAllNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ ///
+ /// Gets all public IP addresses in a resource group.
+ ///
+ ///
+ /// 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));
+ ///
+ /// Gets information about all public IP addresses on a virtual machine
+ /// scale set level.
+ ///
+ ///
+ /// 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>> ListVirtualMachineScaleSetPublicIPAddressesNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ ///
+ /// Gets information about all public IP addresses in a virtual machine
+ /// IP configuration in a virtual machine scale set.
+ ///
+ ///
+ /// 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>> ListVirtualMachineScaleSetVMPublicIPAddressesNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ ///
+ /// Gets information about all public IP addresses on a cloud service
+ /// level.
+ ///
+ ///
+ /// 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>> ListCloudServicePublicIPAddressesNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ ///
+ /// Gets information about all public IP addresses in a role instance
+ /// IP configuration in a cloud service.
+ ///
+ ///
+ /// 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>> ListCloudServiceRoleInstancePublicIPAddressesNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ }
+}
diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/IVirtualWansOperations.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/IVirtualWansOperations.cs
new file mode 100644
index 0000000000000..dfd795aabafe9
--- /dev/null
+++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/IVirtualWansOperations.cs
@@ -0,0 +1,267 @@
+//
+// 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;
+
+ ///
+ /// VirtualWansOperations operations.
+ ///
+ public partial interface IVirtualWansOperations
+ {
+ ///
+ /// Retrieves the details of a VirtualWAN.
+ ///
+ ///
+ /// The resource group name of the VirtualWan.
+ ///
+ ///
+ /// The name of the VirtualWAN being retrieved.
+ ///
+ ///
+ /// 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 virtualWANName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ ///
+ /// Creates a VirtualWAN resource if it doesn't exist else updates the
+ /// existing VirtualWAN.
+ ///
+ ///
+ /// The resource group name of the VirtualWan.
+ ///
+ ///
+ /// The name of the VirtualWAN being created or updated.
+ ///
+ ///
+ /// Parameters supplied to create or update VirtualWAN.
+ ///
+ ///
+ /// 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 virtualWANName, VirtualWAN wANParameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ ///
+ /// Updates a VirtualWAN tags.
+ ///
+ ///
+ /// The resource group name of the VirtualWan.
+ ///
+ ///
+ /// The name of the VirtualWAN being updated.
+ ///
+ ///
+ /// Parameters supplied to Update VirtualWAN tags.
+ ///
+ ///
+ /// 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> UpdateTagsWithHttpMessagesAsync(string resourceGroupName, string virtualWANName, TagsObject wANParameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ ///
+ /// Deletes a VirtualWAN.
+ ///
+ ///
+ /// The resource group name of the VirtualWan.
+ ///
+ ///
+ /// The name of the VirtualWAN being deleted.
+ ///
+ ///
+ /// 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 virtualWANName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ ///
+ /// Lists all the VirtualWANs in a resource group.
+ ///
+ ///
+ /// The resource group name of the VirtualWan.
+ ///
+ ///
+ /// 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>> ListByResourceGroupWithHttpMessagesAsync(string resourceGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ ///
+ /// Lists all the VirtualWANs in a subscription.
+ ///
+ ///
+ /// 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(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ ///
+ /// Creates a VirtualWAN resource if it doesn't exist else updates the
+ /// existing VirtualWAN.
+ ///
+ ///
+ /// The resource group name of the VirtualWan.
+ ///
+ ///
+ /// The name of the VirtualWAN being created or updated.
+ ///
+ ///
+ /// Parameters supplied to create or update VirtualWAN.
+ ///
+ ///
+ /// 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 virtualWANName, VirtualWAN wANParameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ ///
+ /// Deletes a VirtualWAN.
+ ///
+ ///
+ /// The resource group name of the VirtualWan.
+ ///
+ ///
+ /// The name of the VirtualWAN being deleted.
+ ///
+ ///
+ /// 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 virtualWANName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ ///
+ /// Lists all the VirtualWANs in a resource group.
+ ///
+ ///
+ /// 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>> ListByResourceGroupNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ ///
+ /// Lists all the VirtualWANs in a subscription.
+ ///
+ ///
+ /// 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 c16079f3679bd..dc3979f98684d 100644
--- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/InboundNatRulesOperations.cs
+++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/InboundNatRulesOperations.cs
@@ -94,7 +94,7 @@ internal InboundNatRulesOperations(NetworkManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2020-07-01";
+ string apiVersion = "2020-08-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -323,7 +323,7 @@ internal InboundNatRulesOperations(NetworkManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2020-07-01";
+ string apiVersion = "2020-08-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -556,7 +556,7 @@ internal InboundNatRulesOperations(NetworkManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2020-07-01";
+ string apiVersion = "2020-08-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -752,7 +752,7 @@ internal InboundNatRulesOperations(NetworkManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2020-07-01";
+ string apiVersion = "2020-08-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
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 8cc0fbde27eb8..69214327d6b65 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 = "2020-07-01";
+ string apiVersion = "2020-08-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 418d9f77edc26..c726e497bcb33 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 = "2020-07-01";
+ string apiVersion = "2020-08-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 = "2020-07-01";
+ string apiVersion = "2020-08-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 = "2020-07-01";
+ string apiVersion = "2020-08-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 = "2020-07-01";
+ string apiVersion = "2020-08-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 = "2020-07-01";
+ string apiVersion = "2020-08-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 = "2020-07-01";
+ string apiVersion = "2020-08-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 af3c1cb5a6e7f..541a445b73151 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 = "2020-07-01";
+ string apiVersion = "2020-08-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 = "2020-07-01";
+ string apiVersion = "2020-08-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 = "2020-07-01";
+ string apiVersion = "2020-08-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 = "2020-07-01";
+ string apiVersion = "2020-08-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 = "2020-07-01";
+ string apiVersion = "2020-08-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 = "2020-07-01";
+ string apiVersion = "2020-08-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 8550ff2dc6a53..537c5c778b504 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 = "2020-07-01";
+ string apiVersion = "2020-08-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 = "2020-07-01";
+ string apiVersion = "2020-08-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 = "2020-07-01";
+ string apiVersion = "2020-08-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 = "2020-07-01";
+ string apiVersion = "2020-08-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 a771e8acc621e..937dd54dba76f 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 = "2020-07-01";
+ string apiVersion = "2020-08-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 = "2020-07-01";
+ string apiVersion = "2020-08-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 02f20344feedd..dec95b051e78a 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 = "2020-07-01";
+ string apiVersion = "2020-08-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 = "2020-07-01";
+ string apiVersion = "2020-08-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 e89f3b0264442..c298b860b0e63 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 = "2020-07-01";
+ string apiVersion = "2020-08-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 8f24bc7f16625..095d6196994b3 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 = "2020-07-01";
+ string apiVersion = "2020-08-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 = "2020-07-01";
+ string apiVersion = "2020-08-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 b1374acdb59bd..548e500d74574 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 = "2020-07-01";
+ string apiVersion = "2020-08-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 = "2020-07-01";
+ string apiVersion = "2020-08-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 de1b74d9daf72..56961087a2cae 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 = "2020-07-01";
+ string apiVersion = "2020-08-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 = "2020-07-01";
+ string apiVersion = "2020-08-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 = "2020-07-01";
+ string apiVersion = "2020-08-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 = "2020-07-01";
+ string apiVersion = "2020-08-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -909,7 +909,7 @@ internal LoadBalancersOperations(NetworkManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2020-07-01";
+ string apiVersion = "2020-08-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -1096,7 +1096,7 @@ internal LoadBalancersOperations(NetworkManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2020-07-01";
+ string apiVersion = "2020-08-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
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 c440b5dfa456a..fd52530956b81 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 = "2020-07-01";
+ string apiVersion = "2020-08-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 = "2020-07-01";
+ string apiVersion = "2020-08-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 = "2020-07-01";
+ string apiVersion = "2020-08-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 = "2020-07-01";
+ string apiVersion = "2020-08-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 = "2020-07-01";
+ string apiVersion = "2020-08-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 310e30ea48b3a..feca79d52be4e 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/ApplicationGatewayFrontendIPConfiguration.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ApplicationGatewayFrontendIPConfiguration.cs
new file mode 100644
index 0000000000000..122d0e45e3c34
--- /dev/null
+++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ApplicationGatewayFrontendIPConfiguration.cs
@@ -0,0 +1,138 @@
+//
+// 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.Linq;
+
+ ///
+ /// Frontend IP configuration of an application gateway.
+ ///
+ [Rest.Serialization.JsonTransformation]
+ public partial class ApplicationGatewayFrontendIPConfiguration : SubResource
+ {
+ ///
+ /// Initializes a new instance of the
+ /// ApplicationGatewayFrontendIPConfiguration class.
+ ///
+ public ApplicationGatewayFrontendIPConfiguration()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the
+ /// ApplicationGatewayFrontendIPConfiguration class.
+ ///
+ /// Resource ID.
+ /// PrivateIPAddress of the network
+ /// interface IP Configuration.
+ /// The private IP address
+ /// allocation method. Possible values include: 'Static',
+ /// 'Dynamic'
+ /// Reference to the subnet resource.
+ /// Reference to the PublicIP
+ /// resource.
+ /// Reference to the application
+ /// gateway private link configuration.
+ /// The provisioning state of the
+ /// frontend IP configuration resource. Possible values include:
+ /// 'Succeeded', 'Updating', 'Deleting', 'Failed'
+ /// Name of the frontend IP configuration that is
+ /// unique within an Application Gateway.
+ /// A unique read-only string that changes whenever
+ /// the resource is updated.
+ /// Type of the resource.
+ public ApplicationGatewayFrontendIPConfiguration(string id = default(string), string privateIPAddress = default(string), string privateIPAllocationMethod = default(string), SubResource subnet = default(SubResource), SubResource publicIPAddress = default(SubResource), SubResource privateLinkConfiguration = default(SubResource), string provisioningState = default(string), string name = default(string), string etag = default(string), string type = default(string))
+ : base(id)
+ {
+ PrivateIPAddress = privateIPAddress;
+ PrivateIPAllocationMethod = privateIPAllocationMethod;
+ Subnet = subnet;
+ PublicIPAddress = publicIPAddress;
+ PrivateLinkConfiguration = privateLinkConfiguration;
+ 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 privateIPAddress of the network interface IP
+ /// Configuration.
+ ///
+ [JsonProperty(PropertyName = "properties.privateIPAddress")]
+ public string PrivateIPAddress { get; set; }
+
+ ///
+ /// Gets or sets the private IP address allocation method. Possible
+ /// values include: 'Static', 'Dynamic'
+ ///
+ [JsonProperty(PropertyName = "properties.privateIPAllocationMethod")]
+ public string PrivateIPAllocationMethod { get; set; }
+
+ ///
+ /// Gets or sets reference to the subnet resource.
+ ///
+ [JsonProperty(PropertyName = "properties.subnet")]
+ public SubResource Subnet { get; set; }
+
+ ///
+ /// Gets or sets reference to the PublicIP resource.
+ ///
+ [JsonProperty(PropertyName = "properties.publicIPAddress")]
+ public SubResource PublicIPAddress { get; set; }
+
+ ///
+ /// Gets or sets reference to the application gateway private link
+ /// configuration.
+ ///
+ [JsonProperty(PropertyName = "properties.privateLinkConfiguration")]
+ public SubResource PrivateLinkConfiguration { get; set; }
+
+ ///
+ /// Gets the provisioning state of the frontend IP configuration
+ /// resource. Possible values include: 'Succeeded', 'Updating',
+ /// 'Deleting', 'Failed'
+ ///
+ [JsonProperty(PropertyName = "properties.provisioningState")]
+ public string ProvisioningState { get; private set; }
+
+ ///
+ /// Gets or sets name of the frontend IP configuration that is unique
+ /// within an Application Gateway.
+ ///
+ [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 type of the resource.
+ ///
+ [JsonProperty(PropertyName = "type")]
+ public string Type { get; private set; }
+
+ }
+}
diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ApplicationGatewayIPConfiguration.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ApplicationGatewayIPConfiguration.cs
new file mode 100644
index 0000000000000..857e1e1830b36
--- /dev/null
+++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ApplicationGatewayIPConfiguration.cs
@@ -0,0 +1,101 @@
+//
+// 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.Linq;
+
+ ///
+ /// IP configuration of an application gateway. Currently 1 public and 1
+ /// private IP configuration is allowed.
+ ///
+ [Rest.Serialization.JsonTransformation]
+ public partial class ApplicationGatewayIPConfiguration : SubResource
+ {
+ ///
+ /// Initializes a new instance of the ApplicationGatewayIPConfiguration
+ /// class.
+ ///
+ public ApplicationGatewayIPConfiguration()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the ApplicationGatewayIPConfiguration
+ /// class.
+ ///
+ /// Resource ID.
+ /// Reference to the subnet resource. A subnet
+ /// from where application gateway gets its private address.
+ /// The provisioning state of the
+ /// application gateway IP configuration resource. Possible values
+ /// include: 'Succeeded', 'Updating', 'Deleting', 'Failed'
+ /// Name of the IP configuration that is unique
+ /// within an Application Gateway.
+ /// A unique read-only string that changes whenever
+ /// the resource is updated.
+ /// Type of the resource.
+ public ApplicationGatewayIPConfiguration(string id = default(string), SubResource subnet = default(SubResource), string provisioningState = default(string), string name = default(string), string etag = default(string), string type = default(string))
+ : base(id)
+ {
+ Subnet = subnet;
+ 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 reference to the subnet resource. A subnet from where
+ /// application gateway gets its private address.
+ ///
+ [JsonProperty(PropertyName = "properties.subnet")]
+ public SubResource Subnet { get; set; }
+
+ ///
+ /// Gets the provisioning state of the application gateway IP
+ /// configuration resource. Possible values include: 'Succeeded',
+ /// 'Updating', 'Deleting', 'Failed'
+ ///
+ [JsonProperty(PropertyName = "properties.provisioningState")]
+ public string ProvisioningState { get; private set; }
+
+ ///
+ /// Gets or sets name of the IP configuration that is unique within an
+ /// Application Gateway.
+ ///
+ [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 type of the resource.
+ ///
+ [JsonProperty(PropertyName = "type")]
+ public string Type { get; private set; }
+
+ }
+}
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 de4d798572776..1444f590718f0 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 7b87e43a5fd05..60a8efa151e4a 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
@@ -171,16 +171,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 dad33866910ec..bd4966fd77a98 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 3bfb4fabf638e..caa6a0d598e61 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 30fea8c7ada49..6528bdb761cfe 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 278a39b679cb1..f2c9c74fdc194 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 01ffee90b3fdf..d18672edde1bf 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 cb720dc5c385e..00531f0237b25 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/AzureReachabilityReportLatencyInfo.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/AzureReachabilityReportLatencyInfo.cs
index da00b97ff30c3..a204272b613fb 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/BgpConnection.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/BgpConnection.cs
index 0a2306a862fde..9afc670cf39e6 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
@@ -116,16 +116,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 843529d859078..4add761aab2fb 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 7ae62bc4e6bb9..5e5788fc6e230 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 89593c0c49104..0caac861305b3 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 a2c4c891be633..eb4b187b87266 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 9f52940d25c4e..7d6e8ebc03e8d 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 403ef9585674e..b4ad6eaafdb19 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 afe0533ea4c78..2a49a2fa6b6ab 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 83bd49a53e0d2..b0627a3e13dbc 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 2fe276a1ca7ca..66c4afb87b256 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 fb8bdc77ff245..30b563b24bd9d 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 f6f519013db79..070ecc5f1ead5 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 9115d726b2500..00e6136a7079e 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/ExpressRouteCircuitPeering.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ExpressRouteCircuitPeering.cs
index 5a4692d55c503..207feb5c06e75 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/ExpressRouteConnection.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ExpressRouteConnection.cs
index f1262b1c56953..4798065579997 100644
--- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ExpressRouteConnection.cs
+++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ExpressRouteConnection.cs
@@ -45,10 +45,12 @@ public ExpressRouteConnection()
/// connection.
/// Enable internet
/// security.
+ /// Enable FastPath to vWan
+ /// Firewall hub.
/// The Routing Configuration
/// indicating the associated and propagated route tables on this
/// connection.
- public ExpressRouteConnection(ExpressRouteCircuitPeeringId expressRouteCircuitPeering, string name, string id = default(string), string provisioningState = default(string), string authorizationKey = default(string), int? routingWeight = default(int?), bool? enableInternetSecurity = default(bool?), RoutingConfiguration routingConfiguration = default(RoutingConfiguration))
+ public ExpressRouteConnection(ExpressRouteCircuitPeeringId expressRouteCircuitPeering, string name, string id = default(string), string provisioningState = default(string), string authorizationKey = default(string), int? routingWeight = default(int?), bool? enableInternetSecurity = default(bool?), bool? expressRouteGatewayBypass = default(bool?), RoutingConfiguration routingConfiguration = default(RoutingConfiguration))
: base(id)
{
ProvisioningState = provisioningState;
@@ -56,6 +58,7 @@ public ExpressRouteConnection()
AuthorizationKey = authorizationKey;
RoutingWeight = routingWeight;
EnableInternetSecurity = enableInternetSecurity;
+ ExpressRouteGatewayBypass = expressRouteGatewayBypass;
RoutingConfiguration = routingConfiguration;
Name = name;
CustomInit();
@@ -98,6 +101,12 @@ public ExpressRouteConnection()
[JsonProperty(PropertyName = "properties.enableInternetSecurity")]
public bool? EnableInternetSecurity { get; set; }
+ ///
+ /// Gets or sets enable FastPath to vWan Firewall hub.
+ ///
+ [JsonProperty(PropertyName = "properties.expressRouteGatewayBypass")]
+ public bool? ExpressRouteGatewayBypass { get; set; }
+
///
/// Gets or sets the Routing Configuration indicating the associated
/// and propagated route tables on this connection.
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 2246452167f19..7f0342d94b6b3 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/FirewallPolicyFilterRuleCollection.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/FirewallPolicyFilterRuleCollection.cs
index 2184add4699b3..f0a93af056342 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 5466fda21bf39..45fc27690fbb1 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 ed4b7f977df18..f56257124f717 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 2bad4a0ff8cff..cf68f4aa6b544 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 824b73fb84a31..03123f19d0faf 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 3cd122ca0f1d8..b417d38a1e8c3 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/FrontendIPConfiguration.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/FrontendIPConfiguration.cs
new file mode 100644
index 0000000000000..e3b82f1181187
--- /dev/null
+++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/FrontendIPConfiguration.cs
@@ -0,0 +1,211 @@
+//
+// 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;
+
+ ///
+ /// Frontend IP address of the load balancer.
+ ///
+ [Rest.Serialization.JsonTransformation]
+ public partial class FrontendIPConfiguration : SubResource
+ {
+ ///
+ /// Initializes a new instance of the FrontendIPConfiguration class.
+ ///
+ public FrontendIPConfiguration()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the FrontendIPConfiguration class.
+ ///
+ /// Resource ID.
+ /// An array of references to inbound
+ /// rules that use this frontend IP.
+ /// An array of references to inbound
+ /// pools that use this frontend IP.
+ /// An array of references to outbound
+ /// rules that use this frontend IP.
+ /// An array of references to load
+ /// balancing rules that use this frontend IP.
+ /// The private IP address of the IP
+ /// configuration.
+ /// The Private IP allocation
+ /// method. Possible values include: 'Static', 'Dynamic'
+ /// Whether the specific
+ /// ipconfiguration is IPv4 or IPv6. Default is taken as IPv4. Possible
+ /// values include: 'IPv4', 'IPv6'
+ /// The reference to the subnet resource.
+ /// The reference to the Public IP
+ /// resource.
+ /// The reference to the Public IP Prefix
+ /// resource.
+ /// The provisioning state of the
+ /// frontend IP configuration resource. Possible values include:
+ /// 'Succeeded', 'Updating', 'Deleting', 'Failed'
+ /// The name of the resource that is unique within
+ /// the set of frontend IP configurations used by the load balancer.
+ /// This name can be used to access the resource.
+ /// A unique read-only string that changes whenever
+ /// the resource is updated.
+ /// Type of the resource.
+ /// A list of availability zones denoting the IP
+ /// allocated for the resource needs to come from.
+ public FrontendIPConfiguration(string id = default(string), IList inboundNatRules = default(IList), IList inboundNatPools = default(IList), IList outboundRules = default(IList), IList loadBalancingRules = default(IList), string privateIPAddress = default(string), string privateIPAllocationMethod = default(string), string privateIPAddressVersion = default(string), Subnet subnet = default(Subnet), PublicIPAddress publicIPAddress = default(PublicIPAddress), SubResource publicIPPrefix = default(SubResource), string provisioningState = default(string), string name = default(string), string etag = default(string), string type = default(string), IList zones = default(IList))
+ : base(id)
+ {
+ InboundNatRules = inboundNatRules;
+ InboundNatPools = inboundNatPools;
+ OutboundRules = outboundRules;
+ LoadBalancingRules = loadBalancingRules;
+ PrivateIPAddress = privateIPAddress;
+ PrivateIPAllocationMethod = privateIPAllocationMethod;
+ PrivateIPAddressVersion = privateIPAddressVersion;
+ Subnet = subnet;
+ PublicIPAddress = publicIPAddress;
+ PublicIPPrefix = publicIPPrefix;
+ ProvisioningState = provisioningState;
+ Name = name;
+ Etag = etag;
+ Type = type;
+ Zones = zones;
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+ ///
+ /// Gets an array of references to inbound rules that use this frontend
+ /// IP.
+ ///
+ [JsonProperty(PropertyName = "properties.inboundNatRules")]
+ public IList InboundNatRules { get; private set; }
+
+ ///
+ /// Gets an array of references to inbound pools that use this frontend
+ /// IP.
+ ///
+ [JsonProperty(PropertyName = "properties.inboundNatPools")]
+ public IList InboundNatPools { get; private set; }
+
+ ///
+ /// Gets an array of references to outbound rules that use this
+ /// frontend IP.
+ ///
+ [JsonProperty(PropertyName = "properties.outboundRules")]
+ public IList OutboundRules { get; private set; }
+
+ ///
+ /// Gets an array of references to load balancing rules that use this
+ /// frontend IP.
+ ///
+ [JsonProperty(PropertyName = "properties.loadBalancingRules")]
+ public IList LoadBalancingRules { get; private set; }
+
+ ///
+ /// Gets or sets the private IP address of the IP configuration.
+ ///
+ [JsonProperty(PropertyName = "properties.privateIPAddress")]
+ public string PrivateIPAddress { get; set; }
+
+ ///
+ /// Gets or sets the Private IP allocation method. Possible values
+ /// include: 'Static', 'Dynamic'
+ ///
+ [JsonProperty(PropertyName = "properties.privateIPAllocationMethod")]
+ public string PrivateIPAllocationMethod { get; set; }
+
+ ///
+ /// Gets or sets whether the specific ipconfiguration is IPv4 or IPv6.
+ /// Default is taken as IPv4. Possible values include: 'IPv4', 'IPv6'
+ ///
+ [JsonProperty(PropertyName = "properties.privateIPAddressVersion")]
+ public string PrivateIPAddressVersion { get; set; }
+
+ ///
+ /// Gets or sets the reference to the subnet resource.
+ ///
+ [JsonProperty(PropertyName = "properties.subnet")]
+ public Subnet Subnet { get; set; }
+
+ ///
+ /// Gets or sets the reference to the Public IP resource.
+ ///
+ [JsonProperty(PropertyName = "properties.publicIPAddress")]
+ public PublicIPAddress PublicIPAddress { get; set; }
+
+ ///
+ /// Gets or sets the reference to the Public IP Prefix resource.
+ ///
+ [JsonProperty(PropertyName = "properties.publicIPPrefix")]
+ public SubResource PublicIPPrefix { get; set; }
+
+ ///
+ /// Gets the provisioning state of the frontend IP configuration
+ /// 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 the set
+ /// of frontend IP configurations used by the load balancer. 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 type of the resource.
+ ///
+ [JsonProperty(PropertyName = "type")]
+ public string Type { get; private set; }
+
+ ///
+ /// Gets or sets a list of availability zones denoting the IP allocated
+ /// for the resource needs to come from.
+ ///
+ [JsonProperty(PropertyName = "zones")]
+ public IList Zones { get; set; }
+
+ ///
+ /// Validate the object.
+ ///
+ ///
+ /// Thrown if validation fails
+ ///
+ public virtual void Validate()
+ {
+ if (PublicIPAddress != null)
+ {
+ PublicIPAddress.Validate();
+ }
+ }
+ }
+}
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 cfec5a05915ce..64218016af560 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/IPAllocationMethod.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/IPAllocationMethod.cs
new file mode 100644
index 0000000000000..9c29b92df1920
--- /dev/null
+++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/IPAllocationMethod.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 IPAllocationMethod.
+ ///
+ public static class IPAllocationMethod
+ {
+ public const string Static = "Static";
+ public const string Dynamic = "Dynamic";
+ }
+}
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 133d8fe7975e2..be9f44b217ffd 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/NatRule.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/NatRule.cs
index 8dbc9d3c938ef..8fa86e0c99355 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/NetworkInterfaceIPConfiguration.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/NetworkInterfaceIPConfiguration.cs
new file mode 100644
index 0000000000000..fc1d252e53dff
--- /dev/null
+++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/NetworkInterfaceIPConfiguration.cs
@@ -0,0 +1,233 @@
+//
+// 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;
+
+ ///
+ /// IPConfiguration in a network interface.
+ ///
+ [Rest.Serialization.JsonTransformation]
+ public partial class NetworkInterfaceIPConfiguration : SubResource
+ {
+ ///
+ /// Initializes a new instance of the NetworkInterfaceIPConfiguration
+ /// class.
+ ///
+ public NetworkInterfaceIPConfiguration()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the NetworkInterfaceIPConfiguration
+ /// class.
+ ///
+ /// Resource ID.
+ /// The reference to Virtual Network
+ /// Taps.
+ /// The reference
+ /// to ApplicationGatewayBackendAddressPool resource.
+ /// The reference to
+ /// LoadBalancerBackendAddressPool resource.
+ /// A list of references of
+ /// LoadBalancerInboundNatRules.
+ /// Private IP address of the IP
+ /// configuration.
+ /// The private IP address
+ /// allocation method. Possible values include: 'Static',
+ /// 'Dynamic'
+ /// Whether the specific IP
+ /// configuration is IPv4 or IPv6. Default is IPv4. Possible values
+ /// include: 'IPv4', 'IPv6'
+ /// Subnet bound to the IP configuration.
+ /// Whether this is a primary customer address on
+ /// the network interface.
+ /// Public IP address bound to the IP
+ /// configuration.
+ /// Application security groups
+ /// in which the IP configuration is included.
+ /// The provisioning state of the
+ /// network interface IP configuration. Possible values include:
+ /// 'Succeeded', 'Updating', 'Deleting', 'Failed'
+ /// PrivateLinkConnection
+ /// properties for the network interface.
+ /// 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.
+ public NetworkInterfaceIPConfiguration(string id = default(string), IList virtualNetworkTaps = default(IList), IList applicationGatewayBackendAddressPools = default(IList), IList loadBalancerBackendAddressPools = default(IList), IList loadBalancerInboundNatRules = default(IList), string privateIPAddress = default(string), string privateIPAllocationMethod = default(string), string privateIPAddressVersion = default(string), Subnet subnet = default(Subnet), bool? primary = default(bool?), PublicIPAddress publicIPAddress = default(PublicIPAddress), IList applicationSecurityGroups = default(IList), string provisioningState = default(string), NetworkInterfaceIPConfigurationPrivateLinkConnectionProperties privateLinkConnectionProperties = default(NetworkInterfaceIPConfigurationPrivateLinkConnectionProperties), string name = default(string), string etag = default(string))
+ : base(id)
+ {
+ VirtualNetworkTaps = virtualNetworkTaps;
+ ApplicationGatewayBackendAddressPools = applicationGatewayBackendAddressPools;
+ LoadBalancerBackendAddressPools = loadBalancerBackendAddressPools;
+ LoadBalancerInboundNatRules = loadBalancerInboundNatRules;
+ PrivateIPAddress = privateIPAddress;
+ PrivateIPAllocationMethod = privateIPAllocationMethod;
+ PrivateIPAddressVersion = privateIPAddressVersion;
+ Subnet = subnet;
+ Primary = primary;
+ PublicIPAddress = publicIPAddress;
+ ApplicationSecurityGroups = applicationSecurityGroups;
+ ProvisioningState = provisioningState;
+ PrivateLinkConnectionProperties = privateLinkConnectionProperties;
+ Name = name;
+ Etag = etag;
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+ ///
+ /// Gets or sets the reference to Virtual Network Taps.
+ ///
+ [JsonProperty(PropertyName = "properties.virtualNetworkTaps")]
+ public IList VirtualNetworkTaps { get; set; }
+
+ ///
+ /// Gets or sets the reference to ApplicationGatewayBackendAddressPool
+ /// resource.
+ ///
+ [JsonProperty(PropertyName = "properties.applicationGatewayBackendAddressPools")]
+ public IList ApplicationGatewayBackendAddressPools { get; set; }
+
+ ///
+ /// Gets or sets the reference to LoadBalancerBackendAddressPool
+ /// resource.
+ ///
+ [JsonProperty(PropertyName = "properties.loadBalancerBackendAddressPools")]
+ public IList LoadBalancerBackendAddressPools { get; set; }
+
+ ///
+ /// Gets or sets a list of references of LoadBalancerInboundNatRules.
+ ///
+ [JsonProperty(PropertyName = "properties.loadBalancerInboundNatRules")]
+ public IList LoadBalancerInboundNatRules { get; set; }
+
+ ///
+ /// Gets or sets private IP address of the IP configuration.
+ ///
+ [JsonProperty(PropertyName = "properties.privateIPAddress")]
+ public string PrivateIPAddress { get; set; }
+
+ ///
+ /// Gets or sets the private IP address allocation method. Possible
+ /// values include: 'Static', 'Dynamic'
+ ///
+ [JsonProperty(PropertyName = "properties.privateIPAllocationMethod")]
+ public string PrivateIPAllocationMethod { get; set; }
+
+ ///
+ /// Gets or sets whether the specific IP configuration is IPv4 or IPv6.
+ /// Default is IPv4. Possible values include: 'IPv4', 'IPv6'
+ ///
+ [JsonProperty(PropertyName = "properties.privateIPAddressVersion")]
+ public string PrivateIPAddressVersion { get; set; }
+
+ ///
+ /// Gets or sets subnet bound to the IP configuration.
+ ///
+ [JsonProperty(PropertyName = "properties.subnet")]
+ public Subnet Subnet { get; set; }
+
+ ///
+ /// Gets or sets whether this is a primary customer address on the
+ /// network interface.
+ ///
+ [JsonProperty(PropertyName = "properties.primary")]
+ public bool? Primary { get; set; }
+
+ ///
+ /// Gets or sets public IP address bound to the IP configuration.
+ ///
+ [JsonProperty(PropertyName = "properties.publicIPAddress")]
+ public PublicIPAddress PublicIPAddress { get; set; }
+
+ ///
+ /// Gets or sets application security groups in which the IP
+ /// configuration is included.
+ ///
+ [JsonProperty(PropertyName = "properties.applicationSecurityGroups")]
+ public IList ApplicationSecurityGroups { get; set; }
+
+ ///
+ /// Gets the provisioning state of the network interface IP
+ /// configuration. Possible values include: 'Succeeded', 'Updating',
+ /// 'Deleting', 'Failed'
+ ///
+ [JsonProperty(PropertyName = "properties.provisioningState")]
+ public string ProvisioningState { get; private set; }
+
+ ///
+ /// Gets privateLinkConnection properties for the network interface.
+ ///
+ [JsonProperty(PropertyName = "properties.privateLinkConnectionProperties")]
+ public NetworkInterfaceIPConfigurationPrivateLinkConnectionProperties PrivateLinkConnectionProperties { 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; }
+
+ ///
+ /// Validate the object.
+ ///
+ ///
+ /// Thrown if validation fails
+ ///
+ public virtual void Validate()
+ {
+ if (VirtualNetworkTaps != null)
+ {
+ foreach (var element in VirtualNetworkTaps)
+ {
+ if (element != null)
+ {
+ element.Validate();
+ }
+ }
+ }
+ if (LoadBalancerInboundNatRules != null)
+ {
+ foreach (var element1 in LoadBalancerInboundNatRules)
+ {
+ if (element1 != null)
+ {
+ element1.Validate();
+ }
+ }
+ }
+ if (PublicIPAddress != null)
+ {
+ PublicIPAddress.Validate();
+ }
+ }
+ }
+}
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 feebc1b0ae051..7a0279f4f82ea 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 40d6b8c5b9996..e56c23395ae6c 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
@@ -179,16 +179,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/PacketCapture.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/PacketCapture.cs
index 0cb6d02efca32..270be9f057ac3 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 e791803e4fad6..a8a225ae7b4b6 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 ed6a805dc78e0..cdd1a0f896be6 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 9ef8318378997..69188a8004887 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,23 +95,17 @@ public PolicySettings()
///
public virtual void Validate()
{
- if (MaxRequestBodySizeInKb != null)
+ if (MaxRequestBodySizeInKb > 128)
{
- if (MaxRequestBodySizeInKb > 128)
- {
- throw new ValidationException(ValidationRules.InclusiveMaximum, "MaxRequestBodySizeInKb", 128);
- }
- if (MaxRequestBodySizeInKb < 8)
- {
- throw new ValidationException(ValidationRules.InclusiveMinimum, "MaxRequestBodySizeInKb", 8);
- }
+ throw new ValidationException(ValidationRules.InclusiveMaximum, "MaxRequestBodySizeInKb", 128);
}
- if (FileUploadLimitInMb != null)
+ if (MaxRequestBodySizeInKb < 8)
{
- if (FileUploadLimitInMb < 0)
- {
- throw new ValidationException(ValidationRules.InclusiveMinimum, "FileUploadLimitInMb", 0);
- }
+ throw new ValidationException(ValidationRules.InclusiveMinimum, "MaxRequestBodySizeInKb", 8);
+ }
+ if (FileUploadLimitInMb < 0)
+ {
+ throw new ValidationException(ValidationRules.InclusiveMinimum, "FileUploadLimitInMb", 0);
}
}
}
diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/PublicIPAddress.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/PublicIPAddress.cs
new file mode 100644
index 0000000000000..aea875128f697
--- /dev/null
+++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/PublicIPAddress.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.Models
+{
+ using Microsoft.Rest;
+ using Microsoft.Rest.Serialization;
+ using Newtonsoft.Json;
+ using System.Collections;
+ using System.Collections.Generic;
+ using System.Linq;
+
+ ///
+ /// Public IP address resource.
+ ///
+ [Rest.Serialization.JsonTransformation]
+ public partial class PublicIPAddress : Resource
+ {
+ ///
+ /// Initializes a new instance of the PublicIPAddress class.
+ ///
+ public PublicIPAddress()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the PublicIPAddress class.
+ ///
+ /// Resource ID.
+ /// Resource name.
+ /// Resource type.
+ /// Resource location.
+ /// Resource tags.
+ /// The extended location of the public
+ /// ip address.
+ /// The public IP address SKU.
+ /// The public IP address
+ /// allocation method. Possible values include: 'Static',
+ /// 'Dynamic'
+ /// The public IP address version.
+ /// Possible values include: 'IPv4', 'IPv6'
+ /// The IP configuration associated with
+ /// the public IP address.
+ /// The FQDN of the DNS record associated
+ /// with the public IP address.
+ /// The DDoS protection custom policy
+ /// associated with the public IP address.
+ /// The list of tags associated with the public IP
+ /// address.
+ /// The IP address associated with the public
+ /// IP address resource.
+ /// The Public IP Prefix this Public IP
+ /// Address should be allocated from.
+ /// The idle timeout of the public
+ /// IP address.
+ /// The resource GUID property of the public
+ /// IP address resource.
+ /// The provisioning state of the
+ /// public IP address resource. Possible values include: 'Succeeded',
+ /// 'Updating', 'Deleting', 'Failed'
+ /// A unique read-only string that changes whenever
+ /// the resource is updated.
+ /// A list of availability zones denoting the IP
+ /// allocated for the resource needs to come from.
+ public PublicIPAddress(string id = default(string), string name = default(string), string type = default(string), string location = default(string), IDictionary tags = default(IDictionary), ExtendedLocation extendedLocation = default(ExtendedLocation), PublicIPAddressSku sku = default(PublicIPAddressSku), string publicIPAllocationMethod = default(string), string publicIPAddressVersion = default(string), IPConfiguration ipConfiguration = default(IPConfiguration), PublicIPAddressDnsSettings dnsSettings = default(PublicIPAddressDnsSettings), DdosSettings ddosSettings = default(DdosSettings), IList ipTags = default(IList), string ipAddress = default(string), SubResource publicIPPrefix = default(SubResource), int? idleTimeoutInMinutes = default(int?), string resourceGuid = default(string), string provisioningState = default(string), string etag = default(string), IList zones = default(IList))
+ : base(id, name, type, location, tags)
+ {
+ ExtendedLocation = extendedLocation;
+ Sku = sku;
+ PublicIPAllocationMethod = publicIPAllocationMethod;
+ PublicIPAddressVersion = publicIPAddressVersion;
+ IpConfiguration = ipConfiguration;
+ DnsSettings = dnsSettings;
+ DdosSettings = ddosSettings;
+ IpTags = ipTags;
+ IpAddress = ipAddress;
+ PublicIPPrefix = publicIPPrefix;
+ IdleTimeoutInMinutes = idleTimeoutInMinutes;
+ ResourceGuid = resourceGuid;
+ ProvisioningState = provisioningState;
+ Etag = etag;
+ Zones = zones;
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+ ///
+ /// Gets or sets the extended location of the public ip address.
+ ///
+ [JsonProperty(PropertyName = "extendedLocation")]
+ public ExtendedLocation ExtendedLocation { get; set; }
+
+ ///
+ /// Gets or sets the public IP address SKU.
+ ///
+ [JsonProperty(PropertyName = "sku")]
+ public PublicIPAddressSku Sku { get; set; }
+
+ ///
+ /// Gets or sets the public IP address allocation method. Possible
+ /// values include: 'Static', 'Dynamic'
+ ///
+ [JsonProperty(PropertyName = "properties.publicIPAllocationMethod")]
+ public string PublicIPAllocationMethod { get; set; }
+
+ ///
+ /// Gets or sets the public IP address version. Possible values
+ /// include: 'IPv4', 'IPv6'
+ ///
+ [JsonProperty(PropertyName = "properties.publicIPAddressVersion")]
+ public string PublicIPAddressVersion { get; set; }
+
+ ///
+ /// Gets the IP configuration associated with the public IP address.
+ ///
+ [JsonProperty(PropertyName = "properties.ipConfiguration")]
+ public IPConfiguration IpConfiguration { get; private set; }
+
+ ///
+ /// Gets or sets the FQDN of the DNS record associated with the public
+ /// IP address.
+ ///
+ [JsonProperty(PropertyName = "properties.dnsSettings")]
+ public PublicIPAddressDnsSettings DnsSettings { get; set; }
+
+ ///
+ /// Gets or sets the DDoS protection custom policy associated with the
+ /// public IP address.
+ ///
+ [JsonProperty(PropertyName = "properties.ddosSettings")]
+ public DdosSettings DdosSettings { get; set; }
+
+ ///
+ /// Gets or sets the list of tags associated with the public IP
+ /// address.
+ ///
+ [JsonProperty(PropertyName = "properties.ipTags")]
+ public IList IpTags { get; set; }
+
+ ///
+ /// Gets or sets the IP address associated with the public IP address
+ /// resource.
+ ///
+ [JsonProperty(PropertyName = "properties.ipAddress")]
+ public string IpAddress { get; set; }
+
+ ///
+ /// Gets or sets the Public IP Prefix this Public IP Address should be
+ /// allocated from.
+ ///
+ [JsonProperty(PropertyName = "properties.publicIPPrefix")]
+ public SubResource PublicIPPrefix { get; set; }
+
+ ///
+ /// Gets or sets the idle timeout of the public IP address.
+ ///
+ [JsonProperty(PropertyName = "properties.idleTimeoutInMinutes")]
+ public int? IdleTimeoutInMinutes { get; set; }
+
+ ///
+ /// Gets the resource GUID property of the public IP address resource.
+ ///
+ [JsonProperty(PropertyName = "properties.resourceGuid")]
+ public string ResourceGuid { get; private set; }
+
+ ///
+ /// Gets the provisioning state of the public IP address resource.
+ /// Possible values include: 'Succeeded', 'Updating', 'Deleting',
+ /// 'Failed'
+ ///
+ [JsonProperty(PropertyName = "properties.provisioningState")]
+ public string ProvisioningState { get; private set; }
+
+ ///
+ /// Gets a unique read-only string that changes whenever the resource
+ /// is updated.
+ ///
+ [JsonProperty(PropertyName = "etag")]
+ public string Etag { get; private set; }
+
+ ///
+ /// Gets or sets a list of availability zones denoting the IP allocated
+ /// for the resource needs to come from.
+ ///
+ [JsonProperty(PropertyName = "zones")]
+ public IList Zones { get; set; }
+
+ ///
+ /// Validate the object.
+ ///
+ ///
+ /// Thrown if validation fails
+ ///
+ public virtual void Validate()
+ {
+ if (ExtendedLocation != null)
+ {
+ ExtendedLocation.Validate();
+ }
+ if (IpConfiguration != null)
+ {
+ IpConfiguration.Validate();
+ }
+ }
+ }
+}
diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/PublicIPAddressDnsSettings.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/PublicIPAddressDnsSettings.cs
new file mode 100644
index 0000000000000..bc4d47934f459
--- /dev/null
+++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/PublicIPAddressDnsSettings.cs
@@ -0,0 +1,87 @@
+//
+// 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;
+
+ ///
+ /// Contains FQDN of the DNS record associated with the public IP address.
+ ///
+ public partial class PublicIPAddressDnsSettings
+ {
+ ///
+ /// Initializes a new instance of the PublicIPAddressDnsSettings class.
+ ///
+ public PublicIPAddressDnsSettings()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the PublicIPAddressDnsSettings class.
+ ///
+ /// The domain name label. The
+ /// concatenation of the domain name label and the regionalized DNS
+ /// zone make up the fully qualified domain name associated with the
+ /// public IP address. If a domain name label is specified, an A DNS
+ /// record is created for the public IP in the Microsoft Azure DNS
+ /// system.
+ /// The Fully Qualified Domain Name of the A DNS
+ /// record associated with the public IP. This is the concatenation of
+ /// the domainNameLabel and the regionalized DNS zone.
+ /// The reverse FQDN. A user-visible, fully
+ /// qualified domain name that resolves to this public IP address. If
+ /// the reverseFqdn is specified, then a PTR DNS record is created
+ /// pointing from the IP address in the in-addr.arpa domain to the
+ /// reverse FQDN.
+ public PublicIPAddressDnsSettings(string domainNameLabel = default(string), string fqdn = default(string), string reverseFqdn = default(string))
+ {
+ DomainNameLabel = domainNameLabel;
+ Fqdn = fqdn;
+ ReverseFqdn = reverseFqdn;
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+ ///
+ /// Gets or sets the domain name label. The concatenation of the domain
+ /// name label and the regionalized DNS zone make up the fully
+ /// qualified domain name associated with the public IP address. If a
+ /// domain name label is specified, an A DNS record is created for the
+ /// public IP in the Microsoft Azure DNS system.
+ ///
+ [JsonProperty(PropertyName = "domainNameLabel")]
+ public string DomainNameLabel { get; set; }
+
+ ///
+ /// Gets or sets the Fully Qualified Domain Name of the A DNS record
+ /// associated with the public IP. This is the concatenation of the
+ /// domainNameLabel and the regionalized DNS zone.
+ ///
+ [JsonProperty(PropertyName = "fqdn")]
+ public string Fqdn { get; set; }
+
+ ///
+ /// Gets or sets the reverse FQDN. A user-visible, fully qualified
+ /// domain name that resolves to this public IP address. If the
+ /// reverseFqdn is specified, then a PTR DNS record is created pointing
+ /// from the IP address in the in-addr.arpa domain to the reverse FQDN.
+ ///
+ [JsonProperty(PropertyName = "reverseFqdn")]
+ public string ReverseFqdn { 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 07a717e1743ce..0f7c9234b6e00 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
@@ -233,16 +233,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/VirtualNetworkGatewayIPConfiguration.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/VirtualNetworkGatewayIPConfiguration.cs
new file mode 100644
index 0000000000000..fbed5dab2cff0
--- /dev/null
+++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/VirtualNetworkGatewayIPConfiguration.cs
@@ -0,0 +1,120 @@
+//
+// 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.Linq;
+
+ ///
+ /// IP configuration for virtual network gateway.
+ ///
+ [Rest.Serialization.JsonTransformation]
+ public partial class VirtualNetworkGatewayIPConfiguration : SubResource
+ {
+ ///
+ /// Initializes a new instance of the
+ /// VirtualNetworkGatewayIPConfiguration class.
+ ///
+ public VirtualNetworkGatewayIPConfiguration()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the
+ /// VirtualNetworkGatewayIPConfiguration class.
+ ///
+ /// Resource ID.
+ /// The private IP address
+ /// allocation method. Possible values include: 'Static',
+ /// 'Dynamic'
+ /// The reference to the subnet resource.
+ /// The reference to the public IP
+ /// resource.
+ /// Private IP Address for this
+ /// gateway.
+ /// The provisioning state of the
+ /// virtual network gateway IP configuration 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.
+ public VirtualNetworkGatewayIPConfiguration(string id = default(string), string privateIPAllocationMethod = default(string), SubResource subnet = default(SubResource), SubResource publicIPAddress = default(SubResource), string privateIPAddress = default(string), string provisioningState = default(string), string name = default(string), string etag = default(string))
+ : base(id)
+ {
+ PrivateIPAllocationMethod = privateIPAllocationMethod;
+ Subnet = subnet;
+ PublicIPAddress = publicIPAddress;
+ PrivateIPAddress = privateIPAddress;
+ ProvisioningState = provisioningState;
+ Name = name;
+ Etag = etag;
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+ ///
+ /// Gets or sets the private IP address allocation method. Possible
+ /// values include: 'Static', 'Dynamic'
+ ///
+ [JsonProperty(PropertyName = "properties.privateIPAllocationMethod")]
+ public string PrivateIPAllocationMethod { get; set; }
+
+ ///
+ /// Gets or sets the reference to the subnet resource.
+ ///
+ [JsonProperty(PropertyName = "properties.subnet")]
+ public SubResource Subnet { get; set; }
+
+ ///
+ /// Gets or sets the reference to the public IP resource.
+ ///
+ [JsonProperty(PropertyName = "properties.publicIPAddress")]
+ public SubResource PublicIPAddress { get; set; }
+
+ ///
+ /// Gets private IP Address for this gateway.
+ ///
+ [JsonProperty(PropertyName = "properties.privateIPAddress")]
+ public string PrivateIPAddress { get; private set; }
+
+ ///
+ /// Gets the provisioning state of the virtual network gateway IP
+ /// configuration 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; }
+
+ }
+}
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 1f3fb9e15a6c6..68807c1c41368 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
@@ -52,21 +52,13 @@ public VirtualNetworkPeering()
/// different region (preview). See here to register for the preview
/// and learn more
/// (https://docs.microsoft.com/en-us/azure/virtual-network/virtual-network-create-peering).
- /// The reference to the address space
- /// peered with the remote virtual network.
- /// The reference to the
- /// current address space of the remote virtual network.
+ /// The reference to the remote
+ /// virtual network address space.
/// The reference to the remote
/// virtual network's Bgp Communities.
/// The status of the virtual network
/// peering. Possible values include: 'Initiated', 'Connected',
/// 'Disconnected'
- /// The peering sync status of the
- /// virtual network peering. Possible values include: 'FullySynced',
- /// 'RemoteUnsynced', 'LocalUnsynced', 'LocalAndRemoteUnsynced'
- /// Provided when user wants to
- /// sync the peering with address space on the remote virtual network
- /// after the address space is updated.
/// The provisioning state of the
/// virtual network peering resource. Possible values include:
/// 'Succeeded', 'Updating', 'Deleting', 'Failed'
@@ -75,7 +67,7 @@ public VirtualNetworkPeering()
/// resource.
/// A unique read-only string that changes whenever
/// the resource is updated.
- 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), bool? syncRemoteAddressSpace = default(bool?), string provisioningState = default(string), string name = default(string), string etag = 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), VirtualNetworkBgpCommunities remoteBgpCommunities = default(VirtualNetworkBgpCommunities), string peeringState = default(string), string provisioningState = default(string), string name = default(string), string etag = default(string))
: base(id)
{
AllowVirtualNetworkAccess = allowVirtualNetworkAccess;
@@ -84,11 +76,8 @@ public VirtualNetworkPeering()
UseRemoteGateways = useRemoteGateways;
RemoteVirtualNetwork = remoteVirtualNetwork;
RemoteAddressSpace = remoteAddressSpace;
- RemoteVirtualNetworkAddressSpace = remoteVirtualNetworkAddressSpace;
RemoteBgpCommunities = remoteBgpCommunities;
PeeringState = peeringState;
- PeeringSyncLevel = peeringSyncLevel;
- SyncRemoteAddressSpace = syncRemoteAddressSpace;
ProvisioningState = provisioningState;
Name = name;
Etag = etag;
@@ -143,19 +132,12 @@ public VirtualNetworkPeering()
public SubResource RemoteVirtualNetwork { get; set; }
///
- /// Gets or sets the reference to the address space peered with the
- /// remote virtual network.
+ /// Gets or sets the reference to the remote virtual network address
+ /// space.
///
[JsonProperty(PropertyName = "properties.remoteAddressSpace")]
public AddressSpace RemoteAddressSpace { get; set; }
- ///
- /// Gets or sets the reference to the current address space of the
- /// remote virtual network.
- ///
- [JsonProperty(PropertyName = "properties.remoteVirtualNetworkAddressSpace")]
- public AddressSpace RemoteVirtualNetworkAddressSpace { get; set; }
-
///
/// Gets or sets the reference to the remote virtual network's Bgp
/// Communities.
@@ -170,22 +152,6 @@ public VirtualNetworkPeering()
[JsonProperty(PropertyName = "properties.peeringState")]
public string PeeringState { get; set; }
- ///
- /// Gets or sets the peering sync status of the virtual network
- /// peering. Possible values include: 'FullySynced', 'RemoteUnsynced',
- /// 'LocalUnsynced', 'LocalAndRemoteUnsynced'
- ///
- [JsonProperty(PropertyName = "properties.peeringSyncLevel")]
- public string PeeringSyncLevel { get; set; }
-
- ///
- /// Gets or sets provided when user wants to sync the peering with
- /// address space on the remote virtual network after the address space
- /// is updated.
- ///
- [JsonProperty(PropertyName = "properties.syncRemoteAddressSpace")]
- public bool? SyncRemoteAddressSpace { get; set; }
-
///
/// Gets the provisioning state of the virtual network peering
/// resource. Possible values include: 'Succeeded', 'Updating',
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 e6a1b590c68a2..970f9a3fe686c 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 35a8277064c26..356b2fda93341 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/VpnGateway.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/VpnGateway.cs
index 6419f433f44d6..4cefb1131c2f4 100644
--- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/VpnGateway.cs
+++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/VpnGateway.cs
@@ -54,9 +54,11 @@ public VpnGateway()
/// gateway.
/// Enable Routing Preference
/// property for the Public IP Interface of the VpnGateway.
+ /// List of all the nat Rules associated with
+ /// the gateway.
/// A unique read-only string that changes whenever
/// the resource is updated.
- public VpnGateway(string id = default(string), string name = default(string), string type = default(string), string location = default(string), IDictionary tags = default(IDictionary), SubResource virtualHub = default(SubResource), IList connections = default(IList), BgpSettings bgpSettings = default(BgpSettings), string provisioningState = default(string), int? vpnGatewayScaleUnit = default(int?), IList ipConfigurations = default(IList), bool? isRoutingPreferenceInternet = default(bool?), string etag = default(string))
+ public VpnGateway(string id = default(string), string name = default(string), string type = default(string), string location = default(string), IDictionary tags = default(IDictionary), SubResource virtualHub = default(SubResource), IList connections = default(IList), BgpSettings bgpSettings = default(BgpSettings), string provisioningState = default(string), int? vpnGatewayScaleUnit = default(int?), IList ipConfigurations = default(IList), bool? isRoutingPreferenceInternet = default(bool?), IList natRules = default(IList), string etag = default(string))
: base(id, name, type, location, tags)
{
VirtualHub = virtualHub;
@@ -66,6 +68,7 @@ public VpnGateway()
VpnGatewayScaleUnit = vpnGatewayScaleUnit;
IpConfigurations = ipConfigurations;
IsRoutingPreferenceInternet = isRoutingPreferenceInternet;
+ NatRules = natRules;
Etag = etag;
CustomInit();
}
@@ -119,6 +122,12 @@ public VpnGateway()
[JsonProperty(PropertyName = "properties.isRoutingPreferenceInternet")]
public bool? IsRoutingPreferenceInternet { get; set; }
+ ///
+ /// Gets or sets list of all the nat Rules associated with the gateway.
+ ///
+ [JsonProperty(PropertyName = "properties.natRules")]
+ public IList NatRules { get; set; }
+
///
/// Gets a unique read-only string that changes whenever the resource
/// is updated.
diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/VpnGatewayNatRule.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/VpnGatewayNatRule.cs
new file mode 100644
index 0000000000000..b421804d414a4
--- /dev/null
+++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/VpnGatewayNatRule.cs
@@ -0,0 +1,155 @@
+//
+// 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;
+
+ ///
+ /// VpnGatewayNatRule Resource.
+ ///
+ [Rest.Serialization.JsonTransformation]
+ public partial class VpnGatewayNatRule : SubResource
+ {
+ ///
+ /// Initializes a new instance of the VpnGatewayNatRule class.
+ ///
+ public VpnGatewayNatRule()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the VpnGatewayNatRule class.
+ ///
+ /// Resource ID.
+ /// The provisioning state of the NAT
+ /// Rule resource. Possible values include: 'Succeeded', 'Updating',
+ /// 'Deleting', 'Failed'
+ /// The type of NAT rule
+ /// for VPN NAT. Possible values include: 'Static', 'Dynamic'
+ /// The Source NAT direction of a VPN NAT. Possible
+ /// values include: 'EgressSnat', 'IngressSnat'
+ /// The private IP address internal
+ /// mapping for NAT.
+ /// The private IP address external
+ /// mapping for NAT.
+ /// The IP Configuration ID this NAT
+ /// rule applies to.
+ /// List of egress
+ /// VpnSiteLinkConnections
+ /// List of ingress
+ /// VpnSiteLinkConnections.
+ /// 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 VpnGatewayNatRule(string id = default(string), string provisioningState = default(string), string vpnGatewayNatRulePropertiesType = default(string), string mode = default(string), IList internalMappings = default(IList), IList externalMappings = default(IList), string ipConfigurationId = default(string), IList egressVpnSiteLinkConnections = default(IList), IList ingressVpnSiteLinkConnections = default(IList), string name = default(string), string etag = default(string), string type = default(string))
+ : base(id)
+ {
+ ProvisioningState = provisioningState;
+ VpnGatewayNatRulePropertiesType = vpnGatewayNatRulePropertiesType;
+ Mode = mode;
+ InternalMappings = internalMappings;
+ ExternalMappings = externalMappings;
+ IpConfigurationId = ipConfigurationId;
+ EgressVpnSiteLinkConnections = egressVpnSiteLinkConnections;
+ IngressVpnSiteLinkConnections = ingressVpnSiteLinkConnections;
+ Name = name;
+ Etag = etag;
+ Type = type;
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+ ///
+ /// Gets the provisioning state of the NAT Rule resource. Possible
+ /// values include: 'Succeeded', 'Updating', 'Deleting', 'Failed'
+ ///
+ [JsonProperty(PropertyName = "properties.provisioningState")]
+ public string ProvisioningState { get; private set; }
+
+ ///
+ /// Gets or sets the type of NAT rule for VPN NAT. Possible values
+ /// include: 'Static', 'Dynamic'
+ ///
+ [JsonProperty(PropertyName = "properties.type")]
+ public string VpnGatewayNatRulePropertiesType { get; set; }
+
+ ///
+ /// Gets or sets the Source NAT direction of a VPN NAT. Possible values
+ /// include: 'EgressSnat', 'IngressSnat'
+ ///
+ [JsonProperty(PropertyName = "properties.mode")]
+ public string Mode { get; set; }
+
+ ///
+ /// Gets or sets the private IP address internal mapping for NAT.
+ ///
+ [JsonProperty(PropertyName = "properties.internalMappings")]
+ public IList InternalMappings { get; set; }
+
+ ///
+ /// Gets or sets the private IP address external mapping for NAT.
+ ///
+ [JsonProperty(PropertyName = "properties.externalMappings")]
+ public IList ExternalMappings { get; set; }
+
+ ///
+ /// Gets or sets the IP Configuration ID this NAT rule applies to.
+ ///
+ [JsonProperty(PropertyName = "properties.ipConfigurationId")]
+ public string IpConfigurationId { get; set; }
+
+ ///
+ /// Gets list of egress VpnSiteLinkConnections
+ ///
+ [JsonProperty(PropertyName = "properties.egressVpnSiteLinkConnections")]
+ public IList EgressVpnSiteLinkConnections { get; private set; }
+
+ ///
+ /// Gets list of ingress VpnSiteLinkConnections.
+ ///
+ [JsonProperty(PropertyName = "properties.ingressVpnSiteLinkConnections")]
+ public IList IngressVpnSiteLinkConnections { 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/VpnLinkConnectionMode.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/VpnLinkConnectionMode.cs
new file mode 100644
index 0000000000000..f2e10a8fc3416
--- /dev/null
+++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/VpnLinkConnectionMode.cs
@@ -0,0 +1,23 @@
+//
+// 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 VpnLinkConnectionMode.
+ ///
+ public static class VpnLinkConnectionMode
+ {
+ public const string Default = "Default";
+ public const string ResponderOnly = "ResponderOnly";
+ public const string InitiatorOnly = "InitiatorOnly";
+ }
+}
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
new file mode 100644
index 0000000000000..702dc49c38480
--- /dev/null
+++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/VpnNatRuleMapping.cs
@@ -0,0 +1,52 @@
+//
+// 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;
+
+ ///
+ /// Vpn NatRule mapping.
+ ///
+ public partial class VpnNatRuleMapping
+ {
+ ///
+ /// Initializes a new instance of the VpnNatRuleMapping class.
+ ///
+ public VpnNatRuleMapping()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the VpnNatRuleMapping class.
+ ///
+ /// Address space for Vpn NatRule
+ /// mapping.
+ public VpnNatRuleMapping(string addressSpace = default(string))
+ {
+ AddressSpace = addressSpace;
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+ ///
+ /// Gets or sets address space for Vpn NatRule mapping.
+ ///
+ [JsonProperty(PropertyName = "addressSpace")]
+ public string AddressSpace { get; set; }
+
+ }
+}
diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/VpnNatRuleMode.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/VpnNatRuleMode.cs
new file mode 100644
index 0000000000000..faa59fd6a3d53
--- /dev/null
+++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/VpnNatRuleMode.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 VpnNatRuleMode.
+ ///
+ public static class VpnNatRuleMode
+ {
+ public const string EgressSnat = "EgressSnat";
+ public const string IngressSnat = "IngressSnat";
+ }
+}
diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/VpnNatRuleType.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/VpnNatRuleType.cs
new file mode 100644
index 0000000000000..2dddca76e7783
--- /dev/null
+++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/VpnNatRuleType.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 VpnNatRuleType.
+ ///
+ public static class VpnNatRuleType
+ {
+ public const string Static = "Static";
+ public const string Dynamic = "Dynamic";
+ }
+}
diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/VpnSiteLinkConnection.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/VpnSiteLinkConnection.cs
index 32782409a31a9..715b002997ac8 100644
--- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/VpnSiteLinkConnection.cs
+++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/VpnSiteLinkConnection.cs
@@ -39,6 +39,9 @@ public VpnSiteLinkConnection()
/// link.
/// Routing weight for vpn
/// connection.
+ /// Vpn link connection mode.
+ /// Possible values include: 'Default', 'ResponderOnly',
+ /// 'InitiatorOnly'
/// The connection status. Possible
/// values include: 'Unknown', 'Connecting', 'Connected',
/// 'NotConnected'
@@ -63,17 +66,20 @@ public VpnSiteLinkConnection()
/// The provisioning state of the VPN
/// site link connection resource. Possible values include:
/// 'Succeeded', 'Updating', 'Deleting', 'Failed'
+ /// List of ingress NatRules
+ /// List of egress NatRules.
/// 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 VpnSiteLinkConnection(string id = default(string), SubResource vpnSiteLink = default(SubResource), int? routingWeight = default(int?), string connectionStatus = default(string), string vpnConnectionProtocolType = default(string), long? ingressBytesTransferred = default(long?), long? egressBytesTransferred = default(long?), int? connectionBandwidth = default(int?), string sharedKey = default(string), bool? enableBgp = default(bool?), bool? usePolicyBasedTrafficSelectors = default(bool?), IList ipsecPolicies = default(IList), bool? enableRateLimiting = default(bool?), bool? useLocalAzureIpAddress = default(bool?), string provisioningState = default(string), string name = default(string), string etag = default(string), string type = default(string))
+ public VpnSiteLinkConnection(string id = default(string), SubResource vpnSiteLink = default(SubResource), int? routingWeight = default(int?), string vpnLinkConnectionMode = default(string), string connectionStatus = default(string), string vpnConnectionProtocolType = default(string), long? ingressBytesTransferred = default(long?), long? egressBytesTransferred = default(long?), int? connectionBandwidth = default(int?), string sharedKey = default(string), bool? enableBgp = default(bool?), bool? usePolicyBasedTrafficSelectors = default(bool?), IList ipsecPolicies = default(IList), bool? enableRateLimiting = default(bool?), bool? useLocalAzureIpAddress = default(bool?), string provisioningState = default(string), IList ingressNatRules = default(IList), IList egressNatRules = default(IList), string name = default(string), string etag = default(string), string type = default(string))
: base(id)
{
VpnSiteLink = vpnSiteLink;
RoutingWeight = routingWeight;
+ VpnLinkConnectionMode = vpnLinkConnectionMode;
ConnectionStatus = connectionStatus;
VpnConnectionProtocolType = vpnConnectionProtocolType;
IngressBytesTransferred = ingressBytesTransferred;
@@ -86,6 +92,8 @@ public VpnSiteLinkConnection()
EnableRateLimiting = enableRateLimiting;
UseLocalAzureIpAddress = useLocalAzureIpAddress;
ProvisioningState = provisioningState;
+ IngressNatRules = ingressNatRules;
+ EgressNatRules = egressNatRules;
Name = name;
Etag = etag;
Type = type;
@@ -109,6 +117,13 @@ public VpnSiteLinkConnection()
[JsonProperty(PropertyName = "properties.routingWeight")]
public int? RoutingWeight { get; set; }
+ ///
+ /// Gets or sets vpn link connection mode. Possible values include:
+ /// 'Default', 'ResponderOnly', 'InitiatorOnly'
+ ///
+ [JsonProperty(PropertyName = "properties.vpnLinkConnectionMode")]
+ public string VpnLinkConnectionMode { get; set; }
+
///
/// Gets or sets the connection status. Possible values include:
/// 'Unknown', 'Connecting', 'Connected', 'NotConnected'
@@ -186,6 +201,18 @@ public VpnSiteLinkConnection()
[JsonProperty(PropertyName = "properties.provisioningState")]
public string ProvisioningState { get; private set; }
+ ///
+ /// Gets or sets list of ingress NatRules
+ ///
+ [JsonProperty(PropertyName = "properties.ingressNatRules")]
+ public IList IngressNatRules { get; set; }
+
+ ///
+ /// Gets or sets list of egress NatRules.
+ ///
+ [JsonProperty(PropertyName = "properties.egressNatRules")]
+ public IList EgressNatRules { get; 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.
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 02e1a737e2507..9d8af3e6b5046 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 = "2020-07-01";
+ string apiVersion = "2020-08-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 = "2020-07-01";
+ string apiVersion = "2020-08-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 = "2020-07-01";
+ string apiVersion = "2020-08-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 = "2020-07-01";
+ string apiVersion = "2020-08-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 = "2020-07-01";
+ string apiVersion = "2020-08-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 = "2020-07-01";
+ string apiVersion = "2020-08-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
new file mode 100644
index 0000000000000..eb77a6d47ae6f
--- /dev/null
+++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/NatRulesOperations.cs
@@ -0,0 +1,1096 @@
+//
+// 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;
+
+ ///
+ /// NatRulesOperations operations.
+ ///
+ internal partial class NatRulesOperations : IServiceOperations, INatRulesOperations
+ {
+ ///
+ /// Initializes a new instance of the NatRulesOperations class.
+ ///
+ ///
+ /// Reference to the service client.
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ internal NatRulesOperations(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 details of a nat ruleGet.
+ ///
+ ///
+ /// The resource group name of the VpnGateway.
+ ///
+ ///
+ /// The name of the gateway.
+ ///
+ ///
+ /// The name of the nat rule.
+ ///
+ ///
+ /// 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 gatewayName, string natRuleName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ {
+ if (Client.SubscriptionId == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
+ }
+ if (resourceGroupName == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName");
+ }
+ if (gatewayName == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "gatewayName");
+ }
+ if (natRuleName == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "natRuleName");
+ }
+ string apiVersion = "2020-08-01";
+ // Tracing
+ bool _shouldTrace = ServiceClientTracing.IsEnabled;
+ string _invocationId = null;
+ if (_shouldTrace)
+ {
+ _invocationId = ServiceClientTracing.NextInvocationId.ToString();
+ Dictionary tracingParameters = new Dictionary();
+ tracingParameters.Add("resourceGroupName", resourceGroupName);
+ tracingParameters.Add("gatewayName", gatewayName);
+ tracingParameters.Add("natRuleName", natRuleName);
+ tracingParameters.Add("apiVersion", apiVersion);
+ 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/vpnGateways/{gatewayName}/natRules/{natRuleName}").ToString();
+ _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId));
+ _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName));
+ _url = _url.Replace("{gatewayName}", System.Uri.EscapeDataString(gatewayName));
+ _url = _url.Replace("{natRuleName}", System.Uri.EscapeDataString(natRuleName));
+ 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("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;
+ }
+
+ ///
+ /// Creates a nat rule to a scalable vpn gateway if it doesn't exist else
+ /// updates the existing nat rules.
+ ///
+ ///
+ /// The resource group name of the VpnGateway.
+ ///
+ ///
+ /// The name of the gateway.
+ ///
+ ///
+ /// The name of the nat rule.
+ ///
+ ///
+ /// Parameters supplied to create or Update a Nat Rule.
+ ///
+ ///
+ /// The headers that will be added to request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ public async Task> CreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string gatewayName, string natRuleName, VpnGatewayNatRule natRuleParameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ {
+ // Send Request
+ AzureOperationResponse _response = await BeginCreateOrUpdateWithHttpMessagesAsync(resourceGroupName, gatewayName, natRuleName, natRuleParameters, customHeaders, cancellationToken).ConfigureAwait(false);
+ return await Client.GetPutOrPatchOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false);
+ }
+
+ ///
+ /// Deletes a nat rule.
+ ///
+ ///
+ /// The resource group name of the VpnGateway.
+ ///
+ ///
+ /// The name of the gateway.
+ ///
+ ///
+ /// The name of the nat rule.
+ ///
+ ///
+ /// The headers that will be added to request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ public async Task DeleteWithHttpMessagesAsync(string resourceGroupName, string gatewayName, string natRuleName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ {
+ // Send request
+ AzureOperationResponse _response = await BeginDeleteWithHttpMessagesAsync(resourceGroupName, gatewayName, natRuleName, customHeaders, cancellationToken).ConfigureAwait(false);
+ return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false);
+ }
+
+ ///
+ /// Retrieves all nat rules for a particular virtual wan vpn gateway.
+ ///
+ ///
+ /// The resource group name of the VpnGateway.
+ ///
+ ///
+ /// The name of the gateway.
+ ///
+ ///
+ /// 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>> ListByVpnGatewayWithHttpMessagesAsync(string resourceGroupName, string gatewayName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ {
+ if (Client.SubscriptionId == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
+ }
+ if (resourceGroupName == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName");
+ }
+ if (gatewayName == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "gatewayName");
+ }
+ string apiVersion = "2020-08-01";
+ // Tracing
+ bool _shouldTrace = ServiceClientTracing.IsEnabled;
+ string _invocationId = null;
+ if (_shouldTrace)
+ {
+ _invocationId = ServiceClientTracing.NextInvocationId.ToString();
+ Dictionary tracingParameters = new Dictionary();
+ tracingParameters.Add("resourceGroupName", resourceGroupName);
+ tracingParameters.Add("gatewayName", gatewayName);
+ tracingParameters.Add("apiVersion", apiVersion);
+ tracingParameters.Add("cancellationToken", cancellationToken);
+ ServiceClientTracing.Enter(_invocationId, this, "ListByVpnGateway", 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/vpnGateways/{gatewayName}/natRules").ToString();
+ _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId));
+ _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName));
+ _url = _url.Replace("{gatewayName}", System.Uri.EscapeDataString(gatewayName));
+ 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("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;
+ }
+
+ ///
+ /// Creates a nat rule to a scalable vpn gateway if it doesn't exist else
+ /// updates the existing nat rules.
+ ///
+ ///
+ /// The resource group name of the VpnGateway.
+ ///
+ ///
+ /// The name of the gateway.
+ ///
+ ///
+ /// The name of the nat rule.
+ ///
+ ///
+ /// Parameters supplied to create or Update a Nat Rule.
+ ///
+ ///
+ /// 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> BeginCreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string gatewayName, string natRuleName, VpnGatewayNatRule natRuleParameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ {
+ if (Client.SubscriptionId == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
+ }
+ if (resourceGroupName == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName");
+ }
+ if (gatewayName == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "gatewayName");
+ }
+ if (natRuleName == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "natRuleName");
+ }
+ if (natRuleParameters == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "natRuleParameters");
+ }
+ string apiVersion = "2020-08-01";
+ // Tracing
+ bool _shouldTrace = ServiceClientTracing.IsEnabled;
+ string _invocationId = null;
+ if (_shouldTrace)
+ {
+ _invocationId = ServiceClientTracing.NextInvocationId.ToString();
+ Dictionary tracingParameters = new Dictionary();
+ tracingParameters.Add("resourceGroupName", resourceGroupName);
+ tracingParameters.Add("gatewayName", gatewayName);
+ tracingParameters.Add("natRuleName", natRuleName);
+ tracingParameters.Add("apiVersion", apiVersion);
+ tracingParameters.Add("natRuleParameters", natRuleParameters);
+ tracingParameters.Add("cancellationToken", cancellationToken);
+ ServiceClientTracing.Enter(_invocationId, this, "BeginCreateOrUpdate", 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/vpnGateways/{gatewayName}/natRules/{natRuleName}").ToString();
+ _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId));
+ _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName));
+ _url = _url.Replace("{gatewayName}", System.Uri.EscapeDataString(gatewayName));
+ _url = _url.Replace("{natRuleName}", System.Uri.EscapeDataString(natRuleName));
+ 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("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(natRuleParameters != null)
+ {
+ _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(natRuleParameters, 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 != 201)
+ {
+ 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 == 201)
+ {
+ _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;
+ }
+
+ ///
+ /// Deletes a nat rule.
+ ///
+ ///
+ /// The resource group name of the VpnGateway.
+ ///
+ ///
+ /// The name of the gateway.
+ ///
+ ///
+ /// The name of the nat rule.
+ ///
+ ///
+ /// 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
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ ///
+ /// A response object containing the response body and response headers.
+ ///
+ public async Task BeginDeleteWithHttpMessagesAsync(string resourceGroupName, string gatewayName, string natRuleName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ {
+ if (Client.SubscriptionId == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
+ }
+ if (resourceGroupName == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName");
+ }
+ if (gatewayName == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "gatewayName");
+ }
+ if (natRuleName == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "natRuleName");
+ }
+ string apiVersion = "2020-08-01";
+ // Tracing
+ bool _shouldTrace = ServiceClientTracing.IsEnabled;
+ string _invocationId = null;
+ if (_shouldTrace)
+ {
+ _invocationId = ServiceClientTracing.NextInvocationId.ToString();
+ Dictionary tracingParameters = new Dictionary();
+ tracingParameters.Add("resourceGroupName", resourceGroupName);
+ tracingParameters.Add("gatewayName", gatewayName);
+ tracingParameters.Add("natRuleName", natRuleName);
+ tracingParameters.Add("apiVersion", apiVersion);
+ tracingParameters.Add("cancellationToken", cancellationToken);
+ ServiceClientTracing.Enter(_invocationId, this, "BeginDelete", 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/vpnGateways/{gatewayName}/natRules/{natRuleName}").ToString();
+ _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId));
+ _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName));
+ _url = _url.Replace("{gatewayName}", System.Uri.EscapeDataString(gatewayName));
+ _url = _url.Replace("{natRuleName}", System.Uri.EscapeDataString(natRuleName));
+ 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("DELETE");
+ _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 && (int)_statusCode != 202 && (int)_statusCode != 204)
+ {
+ 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();
+ }
+ if (_shouldTrace)
+ {
+ ServiceClientTracing.Exit(_invocationId, _result);
+ }
+ return _result;
+ }
+
+ ///
+ /// Retrieves all nat rules for a particular virtual wan vpn gateway.
+ ///
+ ///
+ /// The NextLink from the previous successful call to List operation.
+ ///
+ ///
+ /// 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>> ListByVpnGatewayNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ {
+ if (nextPageLink == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "nextPageLink");
+ }
+ // Tracing
+ bool _shouldTrace = ServiceClientTracing.IsEnabled;
+ string _invocationId = null;
+ if (_shouldTrace)
+ {
+ _invocationId = ServiceClientTracing.NextInvocationId.ToString();
+ Dictionary tracingParameters = new Dictionary();
+ tracingParameters.Add("nextPageLink", nextPageLink);
+ tracingParameters.Add("cancellationToken", cancellationToken);
+ ServiceClientTracing.Enter(_invocationId, this, "ListByVpnGatewayNext", tracingParameters);
+ }
+ // Construct URL
+ string _url = "{nextLink}";
+ _url = _url.Replace("{nextLink}", nextPageLink);
+ 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/NatRulesOperationsExtensions.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/NatRulesOperationsExtensions.cs
new file mode 100644
index 0000000000000..b5043f5ddffca
--- /dev/null
+++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/NatRulesOperationsExtensions.cs
@@ -0,0 +1,339 @@
+//
+// 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 NatRulesOperations.
+ ///
+ public static partial class NatRulesOperationsExtensions
+ {
+ ///
+ /// Retrieves the details of a nat ruleGet.
+ ///
+ ///
+ /// The operations group for this extension method.
+ ///
+ ///
+ /// The resource group name of the VpnGateway.
+ ///
+ ///
+ /// The name of the gateway.
+ ///
+ ///
+ /// The name of the nat rule.
+ ///
+ public static VpnGatewayNatRule Get(this INatRulesOperations operations, string resourceGroupName, string gatewayName, string natRuleName)
+ {
+ return operations.GetAsync(resourceGroupName, gatewayName, natRuleName).GetAwaiter().GetResult();
+ }
+
+ ///
+ /// Retrieves the details of a nat ruleGet.
+ ///
+ ///
+ /// The operations group for this extension method.
+ ///
+ ///
+ /// The resource group name of the VpnGateway.
+ ///
+ ///
+ /// The name of the gateway.
+ ///
+ ///
+ /// The name of the nat rule.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ public static async Task GetAsync(this INatRulesOperations operations, string resourceGroupName, string gatewayName, string natRuleName, CancellationToken cancellationToken = default(CancellationToken))
+ {
+ using (var _result = await operations.GetWithHttpMessagesAsync(resourceGroupName, gatewayName, natRuleName, null, cancellationToken).ConfigureAwait(false))
+ {
+ return _result.Body;
+ }
+ }
+
+ ///
+ /// Creates a nat rule to a scalable vpn gateway if it doesn't exist else
+ /// updates the existing nat rules.
+ ///
+ ///
+ /// The operations group for this extension method.
+ ///
+ ///
+ /// The resource group name of the VpnGateway.
+ ///
+ ///
+ /// The name of the gateway.
+ ///
+ ///
+ /// The name of the nat rule.
+ ///
+ ///
+ /// Parameters supplied to create or Update a Nat Rule.
+ ///
+ public static VpnGatewayNatRule CreateOrUpdate(this INatRulesOperations operations, string resourceGroupName, string gatewayName, string natRuleName, VpnGatewayNatRule natRuleParameters)
+ {
+ return operations.CreateOrUpdateAsync(resourceGroupName, gatewayName, natRuleName, natRuleParameters).GetAwaiter().GetResult();
+ }
+
+ ///
+ /// Creates a nat rule to a scalable vpn gateway if it doesn't exist else
+ /// updates the existing nat rules.
+ ///
+ ///
+ /// The operations group for this extension method.
+ ///
+ ///
+ /// The resource group name of the VpnGateway.
+ ///
+ ///
+ /// The name of the gateway.
+ ///
+ ///
+ /// The name of the nat rule.
+ ///
+ ///
+ /// Parameters supplied to create or Update a Nat Rule.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ public static async Task CreateOrUpdateAsync(this INatRulesOperations operations, string resourceGroupName, string gatewayName, string natRuleName, VpnGatewayNatRule natRuleParameters, CancellationToken cancellationToken = default(CancellationToken))
+ {
+ using (var _result = await operations.CreateOrUpdateWithHttpMessagesAsync(resourceGroupName, gatewayName, natRuleName, natRuleParameters, null, cancellationToken).ConfigureAwait(false))
+ {
+ return _result.Body;
+ }
+ }
+
+ ///
+ /// Deletes a nat rule.
+ ///
+ ///
+ /// The operations group for this extension method.
+ ///
+ ///
+ /// The resource group name of the VpnGateway.
+ ///
+ ///
+ /// The name of the gateway.
+ ///
+ ///
+ /// The name of the nat rule.
+ ///
+ public static void Delete(this INatRulesOperations operations, string resourceGroupName, string gatewayName, string natRuleName)
+ {
+ operations.DeleteAsync(resourceGroupName, gatewayName, natRuleName).GetAwaiter().GetResult();
+ }
+
+ ///
+ /// Deletes a nat rule.
+ ///
+ ///
+ /// The operations group for this extension method.
+ ///
+ ///
+ /// The resource group name of the VpnGateway.
+ ///
+ ///
+ /// The name of the gateway.
+ ///
+ ///
+ /// The name of the nat rule.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ public static async Task DeleteAsync(this INatRulesOperations operations, string resourceGroupName, string gatewayName, string natRuleName, CancellationToken cancellationToken = default(CancellationToken))
+ {
+ (await operations.DeleteWithHttpMessagesAsync(resourceGroupName, gatewayName, natRuleName, null, cancellationToken).ConfigureAwait(false)).Dispose();
+ }
+
+ ///
+ /// Retrieves all nat rules for a particular virtual wan vpn gateway.
+ ///
+ ///
+ /// The operations group for this extension method.
+ ///
+ ///
+ /// The resource group name of the VpnGateway.
+ ///
+ ///
+ /// The name of the gateway.
+ ///
+ public static IPage ListByVpnGateway(this INatRulesOperations operations, string resourceGroupName, string gatewayName)
+ {
+ return operations.ListByVpnGatewayAsync(resourceGroupName, gatewayName).GetAwaiter().GetResult();
+ }
+
+ ///
+ /// Retrieves all nat rules for a particular virtual wan vpn gateway.
+ ///
+ ///
+ /// The operations group for this extension method.
+ ///
+ ///
+ /// The resource group name of the VpnGateway.
+ ///
+ ///
+ /// The name of the gateway.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ public static async Task> ListByVpnGatewayAsync(this INatRulesOperations operations, string resourceGroupName, string gatewayName, CancellationToken cancellationToken = default(CancellationToken))
+ {
+ using (var _result = await operations.ListByVpnGatewayWithHttpMessagesAsync(resourceGroupName, gatewayName, null, cancellationToken).ConfigureAwait(false))
+ {
+ return _result.Body;
+ }
+ }
+
+ ///
+ /// Creates a nat rule to a scalable vpn gateway if it doesn't exist else
+ /// updates the existing nat rules.
+ ///
+ ///
+ /// The operations group for this extension method.
+ ///
+ ///
+ /// The resource group name of the VpnGateway.
+ ///
+ ///
+ /// The name of the gateway.
+ ///
+ ///
+ /// The name of the nat rule.
+ ///
+ ///
+ /// Parameters supplied to create or Update a Nat Rule.
+ ///
+ public static VpnGatewayNatRule BeginCreateOrUpdate(this INatRulesOperations operations, string resourceGroupName, string gatewayName, string natRuleName, VpnGatewayNatRule natRuleParameters)
+ {
+ return operations.BeginCreateOrUpdateAsync(resourceGroupName, gatewayName, natRuleName, natRuleParameters).GetAwaiter().GetResult();
+ }
+
+ ///
+ /// Creates a nat rule to a scalable vpn gateway if it doesn't exist else
+ /// updates the existing nat rules.
+ ///
+ ///
+ /// The operations group for this extension method.
+ ///
+ ///
+ /// The resource group name of the VpnGateway.
+ ///
+ ///
+ /// The name of the gateway.
+ ///
+ ///
+ /// The name of the nat rule.
+ ///
+ ///
+ /// Parameters supplied to create or Update a Nat Rule.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ public static async Task BeginCreateOrUpdateAsync(this INatRulesOperations operations, string resourceGroupName, string gatewayName, string natRuleName, VpnGatewayNatRule natRuleParameters, CancellationToken cancellationToken = default(CancellationToken))
+ {
+ using (var _result = await operations.BeginCreateOrUpdateWithHttpMessagesAsync(resourceGroupName, gatewayName, natRuleName, natRuleParameters, null, cancellationToken).ConfigureAwait(false))
+ {
+ return _result.Body;
+ }
+ }
+
+ ///
+ /// Deletes a nat rule.
+ ///
+ ///
+ /// The operations group for this extension method.
+ ///
+ ///
+ /// The resource group name of the VpnGateway.
+ ///
+ ///
+ /// The name of the gateway.
+ ///
+ ///
+ /// The name of the nat rule.
+ ///
+ public static void BeginDelete(this INatRulesOperations operations, string resourceGroupName, string gatewayName, string natRuleName)
+ {
+ operations.BeginDeleteAsync(resourceGroupName, gatewayName, natRuleName).GetAwaiter().GetResult();
+ }
+
+ ///
+ /// Deletes a nat rule.
+ ///
+ ///
+ /// The operations group for this extension method.
+ ///
+ ///
+ /// The resource group name of the VpnGateway.
+ ///
+ ///
+ /// The name of the gateway.
+ ///
+ ///
+ /// The name of the nat rule.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ public static async Task BeginDeleteAsync(this INatRulesOperations operations, string resourceGroupName, string gatewayName, string natRuleName, CancellationToken cancellationToken = default(CancellationToken))
+ {
+ (await operations.BeginDeleteWithHttpMessagesAsync(resourceGroupName, gatewayName, natRuleName, null, cancellationToken).ConfigureAwait(false)).Dispose();
+ }
+
+ ///
+ /// Retrieves all nat rules for a particular virtual wan vpn gateway.
+ ///
+ ///
+ /// The operations group for this extension method.
+ ///
+ ///
+ /// The NextLink from the previous successful call to List operation.
+ ///
+ public static IPage ListByVpnGatewayNext(this INatRulesOperations operations, string nextPageLink)
+ {
+ return operations.ListByVpnGatewayNextAsync(nextPageLink).GetAwaiter().GetResult();
+ }
+
+ ///
+ /// Retrieves all nat rules for a particular virtual wan vpn gateway.
+ ///
+ ///
+ /// The operations group for this extension method.
+ ///
+ ///
+ /// The NextLink from the previous successful call to List operation.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ public static async Task> ListByVpnGatewayNextAsync(this INatRulesOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken))
+ {
+ using (var _result = await operations.ListByVpnGatewayNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false))
+ {
+ return _result.Body;
+ }
+ }
+
+ }
+}
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 cf1c923dd1a94..2f02251122abf 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 = "2020-07-01";
+ string apiVersion = "2020-08-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 = "2020-07-01";
+ string apiVersion = "2020-08-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 8b55246d8ae73..b3dfef7e89c9e 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 = "2020-07-01";
+ string apiVersion = "2020-08-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 cd9f8b1f8906a..54d19be936fa0 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 = "2020-07-01";
+ string apiVersion = "2020-08-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 = "2020-07-01";
+ string apiVersion = "2020-08-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 = "2020-07-01";
+ string apiVersion = "2020-08-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -744,7 +744,7 @@ internal NetworkInterfaceTapConfigurationsOperations(NetworkManagementClient cli
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2020-07-01";
+ string apiVersion = "2020-08-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 e4847503291f7..375666e2de4d6 100644
--- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/NetworkInterfacesOperations.cs
+++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/NetworkInterfacesOperations.cs
@@ -119,7 +119,7 @@ internal NetworkInterfacesOperations(NetworkManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2020-07-01";
+ string apiVersion = "2020-08-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -350,7 +350,7 @@ internal NetworkInterfacesOperations(NetworkManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2020-07-01";
+ string apiVersion = "2020-08-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -537,7 +537,7 @@ internal NetworkInterfacesOperations(NetworkManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2020-07-01";
+ string apiVersion = "2020-08-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -720,7 +720,7 @@ internal NetworkInterfacesOperations(NetworkManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2020-07-01";
+ string apiVersion = "2020-08-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -2033,7 +2033,7 @@ internal NetworkInterfacesOperations(NetworkManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2020-07-01";
+ string apiVersion = "2020-08-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -2229,7 +2229,7 @@ internal NetworkInterfacesOperations(NetworkManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2020-07-01";
+ string apiVersion = "2020-08-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -2440,7 +2440,7 @@ internal NetworkInterfacesOperations(NetworkManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2020-07-01";
+ string apiVersion = "2020-08-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 = "2020-07-01";
+ string apiVersion = "2020-08-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -2827,7 +2827,7 @@ internal NetworkInterfacesOperations(NetworkManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2020-07-01";
+ string apiVersion = "2020-08-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -3046,7 +3046,7 @@ internal NetworkInterfacesOperations(NetworkManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2020-07-01";
+ string apiVersion = "2020-08-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -3240,7 +3240,7 @@ internal NetworkInterfacesOperations(NetworkManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2020-07-01";
+ string apiVersion = "2020-08-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 8a13d24bbacc4..a13b7b153371d 100644
--- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/NetworkManagementClient.cs
+++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/NetworkManagementClient.cs
@@ -553,6 +553,11 @@ public partial class NetworkManagementClient : ServiceClient
public virtual IVpnLinkConnectionsOperations VpnLinkConnections { get; private set; }
+ ///
+ /// Gets the INatRulesOperations.
+ ///
+ public virtual INatRulesOperations NatRules { get; private set; }
+
///
/// Gets the IP2sVpnGatewaysOperations.
///
@@ -939,6 +944,7 @@ private void Initialize()
VpnConnections = new VpnConnectionsOperations(this);
VpnSiteLinkConnections = new VpnSiteLinkConnectionsOperations(this);
VpnLinkConnections = new VpnLinkConnectionsOperations(this);
+ NatRules = new NatRulesOperations(this);
P2sVpnGateways = new P2sVpnGatewaysOperations(this);
VpnServerConfigurationsAssociatedWithVirtualWan = new VpnServerConfigurationsAssociatedWithVirtualWanOperations(this);
VirtualHubRouteTableV2s = new VirtualHubRouteTableV2sOperations(this);
@@ -1090,7 +1096,7 @@ private void Initialize()
{
throw new ValidationException(ValidationRules.CannotBeNull, "bslRequest");
}
- string apiVersion = "2020-07-01";
+ string apiVersion = "2020-08-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -1320,7 +1326,7 @@ private void Initialize()
{
throw new ValidationException(ValidationRules.CannotBeNull, "sessionIds");
}
- string apiVersion = "2020-07-01";
+ string apiVersion = "2020-08-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -1523,7 +1529,7 @@ private void Initialize()
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.SubscriptionId");
}
- string apiVersion = "2020-07-01";
+ string apiVersion = "2020-08-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -1721,7 +1727,7 @@ private void Initialize()
{
throw new ValidationException(ValidationRules.CannotBeNull, "virtualWANName");
}
- string apiVersion = "2020-07-01";
+ string apiVersion = "2020-08-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -1951,7 +1957,7 @@ private void Initialize()
{
throw new ValidationException(ValidationRules.CannotBeNull, "bslRequest");
}
- string apiVersion = "2020-07-01";
+ string apiVersion = "2020-08-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -2157,7 +2163,7 @@ private void Initialize()
{
throw new ValidationException(ValidationRules.CannotBeNull, "bslRequest");
}
- string apiVersion = "2020-07-01";
+ string apiVersion = "2020-08-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -2340,7 +2346,7 @@ private void Initialize()
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.SubscriptionId");
}
- string apiVersion = "2020-07-01";
+ string apiVersion = "2020-08-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -2545,7 +2551,7 @@ private void Initialize()
{
throw new ValidationException(ValidationRules.CannotBeNull, "vpnClientParams");
}
- string apiVersion = "2020-07-01";
+ string apiVersion = "2020-08-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/NetworkProfilesOperations.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/NetworkProfilesOperations.cs
index 0eda5f054ce36..d8f4cf2c96f7a 100644
--- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/NetworkProfilesOperations.cs
+++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/NetworkProfilesOperations.cs
@@ -119,7 +119,7 @@ internal NetworkProfilesOperations(NetworkManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2020-07-01";
+ string apiVersion = "2020-08-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -325,7 +325,7 @@ internal NetworkProfilesOperations(NetworkManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2020-07-01";
+ string apiVersion = "2020-08-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -551,7 +551,7 @@ internal NetworkProfilesOperations(NetworkManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2020-07-01";
+ string apiVersion = "2020-08-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -738,7 +738,7 @@ internal NetworkProfilesOperations(NetworkManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2020-07-01";
+ string apiVersion = "2020-08-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -921,7 +921,7 @@ internal NetworkProfilesOperations(NetworkManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2020-07-01";
+ string apiVersion = "2020-08-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -1110,7 +1110,7 @@ internal NetworkProfilesOperations(NetworkManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2020-07-01";
+ string apiVersion = "2020-08-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/NetworkSecurityGroupsOperations.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/NetworkSecurityGroupsOperations.cs
index bda997e575276..eeaaaaf32124b 100644
--- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/NetworkSecurityGroupsOperations.cs
+++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/NetworkSecurityGroupsOperations.cs
@@ -119,7 +119,7 @@ internal NetworkSecurityGroupsOperations(NetworkManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2020-07-01";
+ string apiVersion = "2020-08-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -352,7 +352,7 @@ internal NetworkSecurityGroupsOperations(NetworkManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2020-07-01";
+ string apiVersion = "2020-08-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -539,7 +539,7 @@ internal NetworkSecurityGroupsOperations(NetworkManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2020-07-01";
+ string apiVersion = "2020-08-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -722,7 +722,7 @@ internal NetworkSecurityGroupsOperations(NetworkManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2020-07-01";
+ string apiVersion = "2020-08-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -911,7 +911,7 @@ internal NetworkSecurityGroupsOperations(NetworkManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2020-07-01";
+ string apiVersion = "2020-08-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -1096,7 +1096,7 @@ internal NetworkSecurityGroupsOperations(NetworkManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2020-07-01";
+ string apiVersion = "2020-08-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/NetworkVirtualAppliancesOperations.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/NetworkVirtualAppliancesOperations.cs
index e451c69d31b24..c53052560c18a 100644
--- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/NetworkVirtualAppliancesOperations.cs
+++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/NetworkVirtualAppliancesOperations.cs
@@ -119,7 +119,7 @@ internal NetworkVirtualAppliancesOperations(NetworkManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2020-07-01";
+ string apiVersion = "2020-08-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -325,7 +325,7 @@ internal NetworkVirtualAppliancesOperations(NetworkManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "parameters");
}
- string apiVersion = "2020-07-01";
+ string apiVersion = "2020-08-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -544,7 +544,7 @@ internal NetworkVirtualAppliancesOperations(NetworkManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2020-07-01";
+ string apiVersion = "2020-08-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -722,7 +722,7 @@ internal NetworkVirtualAppliancesOperations(NetworkManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2020-07-01";
+ string apiVersion = "2020-08-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -909,7 +909,7 @@ internal NetworkVirtualAppliancesOperations(NetworkManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2020-07-01";
+ string apiVersion = "2020-08-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -1096,7 +1096,7 @@ internal NetworkVirtualAppliancesOperations(NetworkManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2020-07-01";
+ string apiVersion = "2020-08-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/NetworkWatchersOperations.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/NetworkWatchersOperations.cs
index 4edea5b6a9819..aa689a4776343 100644
--- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/NetworkWatchersOperations.cs
+++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/NetworkWatchersOperations.cs
@@ -101,7 +101,7 @@ internal NetworkWatchersOperations(NetworkManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2020-07-01";
+ string apiVersion = "2020-08-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -315,7 +315,7 @@ internal NetworkWatchersOperations(NetworkManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2020-07-01";
+ string apiVersion = "2020-08-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -533,7 +533,7 @@ internal NetworkWatchersOperations(NetworkManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2020-07-01";
+ string apiVersion = "2020-08-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -722,7 +722,7 @@ internal NetworkWatchersOperations(NetworkManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2020-07-01";
+ string apiVersion = "2020-08-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -895,7 +895,7 @@ internal NetworkWatchersOperations(NetworkManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2020-07-01";
+ string apiVersion = "2020-08-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -1087,7 +1087,7 @@ internal NetworkWatchersOperations(NetworkManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2020-07-01";
+ string apiVersion = "2020-08-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -1571,7 +1571,7 @@ internal NetworkWatchersOperations(NetworkManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2020-07-01";
+ string apiVersion = "2020-08-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -1754,7 +1754,7 @@ internal NetworkWatchersOperations(NetworkManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2020-07-01";
+ string apiVersion = "2020-08-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -1979,7 +1979,7 @@ internal NetworkWatchersOperations(NetworkManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2020-07-01";
+ string apiVersion = "2020-08-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -2204,7 +2204,7 @@ internal NetworkWatchersOperations(NetworkManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2020-07-01";
+ string apiVersion = "2020-08-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -2429,7 +2429,7 @@ internal NetworkWatchersOperations(NetworkManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2020-07-01";
+ string apiVersion = "2020-08-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -2654,7 +2654,7 @@ internal NetworkWatchersOperations(NetworkManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2020-07-01";
+ string apiVersion = "2020-08-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -2880,7 +2880,7 @@ internal NetworkWatchersOperations(NetworkManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2020-07-01";
+ string apiVersion = "2020-08-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -3107,7 +3107,7 @@ internal NetworkWatchersOperations(NetworkManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2020-07-01";
+ string apiVersion = "2020-08-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -3334,7 +3334,7 @@ internal NetworkWatchersOperations(NetworkManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2020-07-01";
+ string apiVersion = "2020-08-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -3561,7 +3561,7 @@ internal NetworkWatchersOperations(NetworkManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2020-07-01";
+ string apiVersion = "2020-08-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -3784,7 +3784,7 @@ internal NetworkWatchersOperations(NetworkManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2020-07-01";
+ string apiVersion = "2020-08-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -4015,7 +4015,7 @@ internal NetworkWatchersOperations(NetworkManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2020-07-01";
+ string apiVersion = "2020-08-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Operations.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Operations.cs
index a75114230ccdf..b09acbf9824f4 100644
--- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Operations.cs
+++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Operations.cs
@@ -70,7 +70,7 @@ internal Operations(NetworkManagementClient client)
///
public async Task>> ListWithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
{
- string apiVersion = "2020-07-01";
+ string apiVersion = "2020-08-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/P2sVpnGatewaysOperations.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/P2sVpnGatewaysOperations.cs
index 74cd488d05705..57550f0bf1b62 100644
--- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/P2sVpnGatewaysOperations.cs
+++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/P2sVpnGatewaysOperations.cs
@@ -94,7 +94,7 @@ internal P2sVpnGatewaysOperations(NetworkManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "gatewayName");
}
- string apiVersion = "2020-07-01";
+ string apiVersion = "2020-08-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -354,7 +354,7 @@ internal P2sVpnGatewaysOperations(NetworkManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName");
}
- string apiVersion = "2020-07-01";
+ string apiVersion = "2020-08-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -532,7 +532,7 @@ internal P2sVpnGatewaysOperations(NetworkManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2020-07-01";
+ string apiVersion = "2020-08-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -854,7 +854,7 @@ internal P2sVpnGatewaysOperations(NetworkManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "p2SVpnGatewayParameters");
}
- string apiVersion = "2020-07-01";
+ string apiVersion = "2020-08-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -1080,7 +1080,7 @@ internal P2sVpnGatewaysOperations(NetworkManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "p2SVpnGatewayParameters");
}
- string apiVersion = "2020-07-01";
+ string apiVersion = "2020-08-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -1278,7 +1278,7 @@ internal P2sVpnGatewaysOperations(NetworkManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "gatewayName");
}
- string apiVersion = "2020-07-01";
+ string apiVersion = "2020-08-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -1454,7 +1454,7 @@ internal P2sVpnGatewaysOperations(NetworkManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2020-07-01";
+ string apiVersion = "2020-08-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -1657,7 +1657,7 @@ internal P2sVpnGatewaysOperations(NetworkManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2020-07-01";
+ string apiVersion = "2020-08-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -1859,7 +1859,7 @@ internal P2sVpnGatewaysOperations(NetworkManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2020-07-01";
+ string apiVersion = "2020-08-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -2061,7 +2061,7 @@ internal P2sVpnGatewaysOperations(NetworkManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "request");
}
- string apiVersion = "2020-07-01";
+ string apiVersion = "2020-08-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -2267,7 +2267,7 @@ internal P2sVpnGatewaysOperations(NetworkManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "request");
}
- string apiVersion = "2020-07-01";
+ string apiVersion = "2020-08-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/PacketCapturesOperations.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/PacketCapturesOperations.cs
index 78f07a5d112c9..30fc1521aa2d4 100644
--- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/PacketCapturesOperations.cs
+++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/PacketCapturesOperations.cs
@@ -129,7 +129,7 @@ internal PacketCapturesOperations(NetworkManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2020-07-01";
+ string apiVersion = "2020-08-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -395,7 +395,7 @@ internal PacketCapturesOperations(NetworkManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2020-07-01";
+ string apiVersion = "2020-08-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -602,7 +602,7 @@ internal PacketCapturesOperations(NetworkManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2020-07-01";
+ string apiVersion = "2020-08-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -804,7 +804,7 @@ internal PacketCapturesOperations(NetworkManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2020-07-01";
+ string apiVersion = "2020-08-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -981,7 +981,7 @@ internal PacketCapturesOperations(NetworkManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2020-07-01";
+ string apiVersion = "2020-08-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -1161,7 +1161,7 @@ internal PacketCapturesOperations(NetworkManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2020-07-01";
+ string apiVersion = "2020-08-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/PeerExpressRouteCircuitConnectionsOperations.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/PeerExpressRouteCircuitConnectionsOperations.cs
index f19765b00c3c5..3839fb689d92c 100644
--- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/PeerExpressRouteCircuitConnectionsOperations.cs
+++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/PeerExpressRouteCircuitConnectionsOperations.cs
@@ -109,7 +109,7 @@ internal PeerExpressRouteCircuitConnectionsOperations(NetworkManagementClient cl
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2020-07-01";
+ string apiVersion = "2020-08-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -315,7 +315,7 @@ internal PeerExpressRouteCircuitConnectionsOperations(NetworkManagementClient cl
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2020-07-01";
+ string apiVersion = "2020-08-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/PrivateDnsZoneGroupsOperations.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/PrivateDnsZoneGroupsOperations.cs
index 0580d96d3946d..08f0af9f02a42 100644
--- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/PrivateDnsZoneGroupsOperations.cs
+++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/PrivateDnsZoneGroupsOperations.cs
@@ -127,7 +127,7 @@ internal PrivateDnsZoneGroupsOperations(NetworkManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2020-07-01";
+ string apiVersion = "2020-08-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -353,7 +353,7 @@ internal PrivateDnsZoneGroupsOperations(NetworkManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2020-07-01";
+ string apiVersion = "2020-08-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -546,7 +546,7 @@ internal PrivateDnsZoneGroupsOperations(NetworkManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2020-07-01";
+ string apiVersion = "2020-08-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -740,7 +740,7 @@ internal PrivateDnsZoneGroupsOperations(NetworkManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2020-07-01";
+ string apiVersion = "2020-08-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/PrivateEndpointsOperations.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/PrivateEndpointsOperations.cs
index cf5bd611bb5cc..111bc779ec75f 100644
--- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/PrivateEndpointsOperations.cs
+++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/PrivateEndpointsOperations.cs
@@ -119,7 +119,7 @@ internal PrivateEndpointsOperations(NetworkManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2020-07-01";
+ string apiVersion = "2020-08-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -331,7 +331,7 @@ internal PrivateEndpointsOperations(NetworkManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2020-07-01";
+ string apiVersion = "2020-08-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -504,7 +504,7 @@ internal PrivateEndpointsOperations(NetworkManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2020-07-01";
+ string apiVersion = "2020-08-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -686,7 +686,7 @@ internal PrivateEndpointsOperations(NetworkManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2020-07-01";
+ string apiVersion = "2020-08-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -864,7 +864,7 @@ internal PrivateEndpointsOperations(NetworkManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2020-07-01";
+ string apiVersion = "2020-08-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/PrivateLinkServicesOperations.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/PrivateLinkServicesOperations.cs
index 25f552c2efe4b..c594beca19ace 100644
--- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/PrivateLinkServicesOperations.cs
+++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/PrivateLinkServicesOperations.cs
@@ -119,7 +119,7 @@ internal PrivateLinkServicesOperations(NetworkManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2020-07-01";
+ string apiVersion = "2020-08-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -331,7 +331,7 @@ internal PrivateLinkServicesOperations(NetworkManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2020-07-01";
+ string apiVersion = "2020-08-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -504,7 +504,7 @@ internal PrivateLinkServicesOperations(NetworkManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2020-07-01";
+ string apiVersion = "2020-08-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -700,7 +700,7 @@ internal PrivateLinkServicesOperations(NetworkManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2020-07-01";
+ string apiVersion = "2020-08-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -911,7 +911,7 @@ internal PrivateLinkServicesOperations(NetworkManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2020-07-01";
+ string apiVersion = "2020-08-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -1135,7 +1135,7 @@ internal PrivateLinkServicesOperations(NetworkManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2020-07-01";
+ string apiVersion = "2020-08-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -1366,7 +1366,7 @@ internal PrivateLinkServicesOperations(NetworkManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2020-07-01";
+ string apiVersion = "2020-08-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -1559,7 +1559,7 @@ internal PrivateLinkServicesOperations(NetworkManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2020-07-01";
+ string apiVersion = "2020-08-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -1750,7 +1750,7 @@ internal PrivateLinkServicesOperations(NetworkManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2020-07-01";
+ string apiVersion = "2020-08-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -1928,7 +1928,7 @@ internal PrivateLinkServicesOperations(NetworkManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2020-07-01";
+ string apiVersion = "2020-08-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -2147,7 +2147,7 @@ internal PrivateLinkServicesOperations(NetworkManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2020-07-01";
+ string apiVersion = "2020-08-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -2320,7 +2320,7 @@ internal PrivateLinkServicesOperations(NetworkManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2020-07-01";
+ string apiVersion = "2020-08-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -2527,7 +2527,7 @@ internal PrivateLinkServicesOperations(NetworkManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2020-07-01";
+ string apiVersion = "2020-08-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/PublicIPAddressesOperations.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/PublicIPAddressesOperations.cs
new file mode 100644
index 0000000000000..b69b730606cd4
--- /dev/null
+++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/PublicIPAddressesOperations.cs
@@ -0,0 +1,3625 @@
+//
+// 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;
+
+ ///
+ /// PublicIPAddressesOperations operations.
+ ///
+ internal partial class PublicIPAddressesOperations : IServiceOperations, IPublicIPAddressesOperations
+ {
+ ///
+ /// Initializes a new instance of the PublicIPAddressesOperations class.
+ ///
+ ///
+ /// Reference to the service client.
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ internal PublicIPAddressesOperations(NetworkManagementClient client)
+ {
+ if (client == null)
+ {
+ throw new System.ArgumentNullException("client");
+ }
+ Client = client;
+ }
+
+ ///
+ /// Gets a reference to the NetworkManagementClient
+ ///
+ public NetworkManagementClient Client { get; private set; }
+
+ ///
+ /// Deletes the specified public IP address.
+ ///
+ ///
+ /// The name of the resource group.
+ ///
+ ///
+ /// The name of the public IP address.
+ ///
+ ///
+ /// The headers that will be added to request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ public async Task DeleteWithHttpMessagesAsync(string resourceGroupName, string publicIpAddressName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ {
+ // Send request
+ AzureOperationResponse _response = await BeginDeleteWithHttpMessagesAsync(resourceGroupName, publicIpAddressName, customHeaders, cancellationToken).ConfigureAwait(false);
+ return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false);
+ }
+
+ ///
+ /// Gets the specified public IP address in a specified resource group.
+ ///
+ ///
+ /// The name of the resource group.
+ ///
+ ///
+ /// The name of the public IP address.
+ ///
+ ///
+ /// Expands referenced resources.
+ ///
+ ///
+ /// 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 publicIpAddressName, string expand = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ {
+ if (resourceGroupName == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName");
+ }
+ if (publicIpAddressName == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "publicIpAddressName");
+ }
+ if (Client.SubscriptionId == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
+ }
+ string apiVersion = "2020-08-01";
+ // Tracing
+ bool _shouldTrace = ServiceClientTracing.IsEnabled;
+ string _invocationId = null;
+ if (_shouldTrace)
+ {
+ _invocationId = ServiceClientTracing.NextInvocationId.ToString();
+ Dictionary tracingParameters = new Dictionary();
+ tracingParameters.Add("resourceGroupName", resourceGroupName);
+ tracingParameters.Add("publicIpAddressName", publicIpAddressName);
+ tracingParameters.Add("apiVersion", apiVersion);
+ tracingParameters.Add("expand", expand);
+ 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/publicIPAddresses/{publicIpAddressName}").ToString();
+ _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName));
+ _url = _url.Replace("{publicIpAddressName}", System.Uri.EscapeDataString(publicIpAddressName));
+ _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 (expand != null)
+ {
+ _queryParameters.Add(string.Format("$expand={0}", System.Uri.EscapeDataString(expand)));
+ }
+ 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;
+ }
+
+ ///
+ /// Creates or updates a static or dynamic public IP address.
+ ///
+ ///
+ /// The name of the resource group.
+ ///
+ ///
+ /// The name of the public IP address.
+ ///
+ ///
+ /// Parameters supplied to the create or update public IP address operation.
+ ///
+ ///
+ /// The headers that will be added to request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ public async Task> CreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string publicIpAddressName, PublicIPAddress parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ {
+ // Send Request
+ AzureOperationResponse _response = await BeginCreateOrUpdateWithHttpMessagesAsync(resourceGroupName, publicIpAddressName, parameters, customHeaders, cancellationToken).ConfigureAwait(false);
+ return await Client.GetPutOrPatchOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false);
+ }
+
+ ///
+ /// Updates public IP address tags.
+ ///
+ ///
+ /// The name of the resource group.
+ ///
+ ///
+ /// The name of the public IP address.
+ ///
+ ///
+ /// Parameters supplied to update public IP address tags.
+ ///
+ ///
+ /// 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> UpdateTagsWithHttpMessagesAsync(string resourceGroupName, string publicIpAddressName, TagsObject parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ {
+ if (resourceGroupName == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName");
+ }
+ if (publicIpAddressName == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "publicIpAddressName");
+ }
+ if (parameters == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "parameters");
+ }
+ if (Client.SubscriptionId == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
+ }
+ string apiVersion = "2020-08-01";
+ // Tracing
+ bool _shouldTrace = ServiceClientTracing.IsEnabled;
+ string _invocationId = null;
+ if (_shouldTrace)
+ {
+ _invocationId = ServiceClientTracing.NextInvocationId.ToString();
+ Dictionary tracingParameters = new Dictionary();
+ tracingParameters.Add("resourceGroupName", resourceGroupName);
+ tracingParameters.Add("publicIpAddressName", publicIpAddressName);
+ tracingParameters.Add("parameters", parameters);
+ tracingParameters.Add("apiVersion", apiVersion);
+ tracingParameters.Add("cancellationToken", cancellationToken);
+ ServiceClientTracing.Enter(_invocationId, this, "UpdateTags", 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/publicIPAddresses/{publicIpAddressName}").ToString();
+ _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName));
+ _url = _url.Replace("{publicIpAddressName}", System.Uri.EscapeDataString(publicIpAddressName));
+ _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("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