diff --git a/eng/mgmt/mgmtmetadata/network_resource-manager.txt b/eng/mgmt/mgmtmetadata/network_resource-manager.txt index 9f7e8fa016664..80788bd384feb 100644 --- a/eng/mgmt/mgmtmetadata/network_resource-manager.txt +++ b/eng/mgmt/mgmtmetadata/network_resource-manager.txt @@ -3,12 +3,12 @@ AutoRest installed successfully. Commencing code generation Generating CSharp code Executing AutoRest command -cmd.exe /c autorest.cmd https://github.com/Azure/azure-rest-api-specs/blob/master/specification/network/resource-manager/readme.md --csharp --version=latest --reflect-api-versions --csharp-sdks-folder=D:\Projects\azure-sdk-for-net\sdk -2019-11-04 19:52:56 UTC +cmd.exe /c autorest.cmd https://github.com/Azure/azure-rest-api-specs/blob/master/specification/network/resource-manager/readme.md --csharp --version=latest --reflect-api-versions --csharp-sdks-folder=C:\git\azure-sdk-for-net\sdk +2020-01-15 12:40:21 UTC Azure-rest-api-specs repository information GitHub fork: Azure Branch: master -Commit: 3653ff62fdbfaa8c9ce85f05abe8048f3ff96214 +Commit: 5f997529a6ea1a8c16715ea51bb15dd2d1dca0e7 AutoRest information Requested version: latest -Bootstrapper version: autorest@2.0.4283 +Bootstrapper version: autorest@2.0.4407 diff --git a/sdk/network/Microsoft.Azure.Management.Network/AzSdk.RP.props b/sdk/network/Microsoft.Azure.Management.Network/AzSdk.RP.props index ce3027020531b..f7288c0c711e7 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/AzSdk.RP.props +++ b/sdk/network/Microsoft.Azure.Management.Network/AzSdk.RP.props @@ -1,7 +1,7 @@ - Compute_2018-10-01;Network_2019-09-01;Network_2019-06-01; + Compute_2018-10-01;Network_2019-11-01; $(PackageTags);$(CommonTags);$(AzureApiTag); \ No newline at end of file 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 543853a810c91..d0a1107d6bf27 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 = "2019-09-01"; + string apiVersion = "2019-11-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 = "2019-09-01"; + string apiVersion = "2019-11-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 = "2019-09-01"; + string apiVersion = "2019-11-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 = "2019-09-01"; + string apiVersion = "2019-11-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 = "2019-09-01"; + string apiVersion = "2019-11-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 = "2019-09-01"; + string apiVersion = "2019-11-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 = "2019-09-01"; + string apiVersion = "2019-11-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 = "2019-09-01"; + string apiVersion = "2019-11-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 = "2019-09-01"; + string apiVersion = "2019-11-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 = "2019-09-01"; + string apiVersion = "2019-11-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 = "2019-09-01"; + string apiVersion = "2019-11-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 = "2019-09-01"; + string apiVersion = "2019-11-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 = "2019-09-01"; + string apiVersion = "2019-11-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 = "2019-09-01"; + string apiVersion = "2019-11-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 = "2019-09-01"; + string apiVersion = "2019-11-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 = "2019-09-01"; + string apiVersion = "2019-11-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 = "2019-09-01"; + string apiVersion = "2019-11-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 a63868b64b928..8c52117c0b092 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 = "2019-09-01"; + string apiVersion = "2019-11-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 = "2019-09-01"; + string apiVersion = "2019-11-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 = "2019-09-01"; + string apiVersion = "2019-11-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 = "2019-09-01"; + string apiVersion = "2019-11-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 = "2019-09-01"; + string apiVersion = "2019-11-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 = "2019-09-01"; + string apiVersion = "2019-11-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 27896e5db370a..4be098b2a2846 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 = "2019-09-01"; + string apiVersion = "2019-11-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 6a732bb8f7a7c..d21cc26b3bf2c 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 = "2019-09-01"; + string apiVersion = "2019-11-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 462a1337d6180..04ad44cb72dc0 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 = "2019-09-01"; + string apiVersion = "2019-11-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 = "2019-09-01"; + string apiVersion = "2019-11-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 9944ff4f692db..81dafdf0605a2 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 = "2019-09-01"; + string apiVersion = "2019-11-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 7701d0003946b..b1f7f57fa3b07 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 = "2019-09-01"; + string apiVersion = "2019-11-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 = "2019-09-01"; + string apiVersion = "2019-11-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 2557326a93cb7..24bee29cedd39 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 = "2019-09-01"; + string apiVersion = "2019-11-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 5b10eafd31bff..6f3ec134ee021 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 = "2019-09-01"; + string apiVersion = "2019-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -342,7 +342,7 @@ internal AzureFirewallsOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-09-01"; + string apiVersion = "2019-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -536,7 +536,7 @@ internal AzureFirewallsOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-09-01"; + string apiVersion = "2019-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -714,7 +714,7 @@ internal AzureFirewallsOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-09-01"; + string apiVersion = "2019-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -901,7 +901,7 @@ internal AzureFirewallsOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-09-01"; + string apiVersion = "2019-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1084,7 +1084,7 @@ internal AzureFirewallsOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-09-01"; + string apiVersion = "2019-11-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 998866f38e22e..217896a4c2c38 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 = "2019-09-01"; + string apiVersion = "2019-11-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 = "2019-09-01"; + string apiVersion = "2019-11-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 = "2019-09-01"; + string apiVersion = "2019-11-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 = "2019-09-01"; + string apiVersion = "2019-11-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 = "2019-09-01"; + string apiVersion = "2019-11-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 1c227057bc3d3..3f1de4e464f37 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 = "2019-09-01"; + string apiVersion = "2019-11-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 5d13887d5619d..0fd24df10d2c4 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/ConnectionMonitorsOperations.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/ConnectionMonitorsOperations.cs @@ -129,7 +129,7 @@ internal ConnectionMonitorsOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-06-01"; + string apiVersion = "2019-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -359,7 +359,7 @@ internal ConnectionMonitorsOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-06-01"; + string apiVersion = "2019-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -632,7 +632,7 @@ internal ConnectionMonitorsOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-06-01"; + string apiVersion = "2019-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -839,7 +839,7 @@ internal ConnectionMonitorsOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-06-01"; + string apiVersion = "2019-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1059,7 +1059,7 @@ internal ConnectionMonitorsOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-06-01"; + string apiVersion = "2019-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1236,7 +1236,7 @@ internal ConnectionMonitorsOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-06-01"; + string apiVersion = "2019-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1413,7 +1413,7 @@ internal ConnectionMonitorsOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-06-01"; + string apiVersion = "2019-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1593,7 +1593,7 @@ internal ConnectionMonitorsOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-06-01"; + string apiVersion = "2019-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/ConnectionMonitorsOperationsExtensions.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/ConnectionMonitorsOperationsExtensions.cs index 0d7f78f0677cc..73c38804b6c1e 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/ConnectionMonitorsOperationsExtensions.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/ConnectionMonitorsOperationsExtensions.cs @@ -23,25 +23,25 @@ namespace Microsoft.Azure.Management.Network /// public static partial class ConnectionMonitorsOperationsExtensions { - /// - /// Create or update a connection monitor. - /// - /// - /// The operations group for this extension method. - /// - /// - /// The name of the resource group containing Network Watcher. - /// - /// - /// The name of the Network Watcher resource. - /// - /// - /// The name of the connection monitor. - /// - /// - /// Parameters that define the operation to create a connection monitor. - /// - public static ConnectionMonitorResult CreateOrUpdate(this IConnectionMonitorsOperations operations, string resourceGroupName, string networkWatcherName, string connectionMonitorName, ConnectionMonitor parameters) + /// + /// Create or update a connection monitor. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group containing Network Watcher. + /// + /// + /// The name of the Network Watcher resource. + /// + /// + /// The name of the connection monitor. + /// + /// + /// Parameters that define the operation to create a connection monitor. + /// + public static ConnectionMonitorResult CreateOrUpdate(this IConnectionMonitorsOperations operations, string resourceGroupName, string networkWatcherName, string connectionMonitorName, ConnectionMonitor parameters) { return operations.CreateOrUpdateAsync(resourceGroupName, networkWatcherName, connectionMonitorName, parameters).GetAwaiter().GetResult(); } 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 c9f24d72ba2ed..d4c93b33e138f 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 = "2019-09-01"; + string apiVersion = "2019-11-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 = "2019-09-01"; + string apiVersion = "2019-11-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 = "2019-09-01"; + string apiVersion = "2019-11-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 = "2019-09-01"; + string apiVersion = "2019-11-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 27ae321fb8da9..908e90fc046f9 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 = "2019-09-01"; + string apiVersion = "2019-11-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 = "2019-09-01"; + string apiVersion = "2019-11-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 = "2019-09-01"; + string apiVersion = "2019-11-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 = "2019-09-01"; + string apiVersion = "2019-11-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 = "2019-09-01"; + string apiVersion = "2019-11-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 = "2019-09-01"; + string apiVersion = "2019-11-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 d76e2cbacc1f1..ea6b26a89ffdd 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 = "2019-09-01"; + string apiVersion = "2019-11-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 = "2019-09-01"; + string apiVersion = "2019-11-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 d2c64923ec39b..a2867ad86cd39 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 = "2019-09-01"; + string apiVersion = "2019-11-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 = "2019-09-01"; + string apiVersion = "2019-11-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 = "2019-09-01"; + string apiVersion = "2019-11-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 = "2019-09-01"; + string apiVersion = "2019-11-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 bd0c97a1117b8..80be08306f68d 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 = "2019-09-01"; + string apiVersion = "2019-11-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 = "2019-09-01"; + string apiVersion = "2019-11-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 = "2019-09-01"; + string apiVersion = "2019-11-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 = "2019-09-01"; + string apiVersion = "2019-11-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 c32473655e012..beff0aebde5a6 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 = "2019-09-01"; + string apiVersion = "2019-11-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 = "2019-09-01"; + string apiVersion = "2019-11-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 = "2019-09-01"; + string apiVersion = "2019-11-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 = "2019-09-01"; + string apiVersion = "2019-11-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 1083340074010..0041f2b80f1ef 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 = "2019-09-01"; + string apiVersion = "2019-11-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 = "2019-09-01"; + string apiVersion = "2019-11-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 = "2019-09-01"; + string apiVersion = "2019-11-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 = "2019-09-01"; + string apiVersion = "2019-11-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 = "2019-09-01"; + string apiVersion = "2019-11-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 = "2019-09-01"; + string apiVersion = "2019-11-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 = "2019-09-01"; + string apiVersion = "2019-11-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 = "2019-09-01"; + string apiVersion = "2019-11-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 = "2019-09-01"; + string apiVersion = "2019-11-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 = "2019-09-01"; + string apiVersion = "2019-11-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 = "2019-09-01"; + string apiVersion = "2019-11-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 1e3a5556d77fb..ba06d4b6731aa 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 = "2019-09-01"; + string apiVersion = "2019-11-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 = "2019-09-01"; + string apiVersion = "2019-11-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 = "2019-09-01"; + string apiVersion = "2019-11-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 = "2019-09-01"; + string apiVersion = "2019-11-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 1b944300c223f..6e0b3e27cfa68 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 = "2019-09-01"; + string apiVersion = "2019-11-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 = "2019-09-01"; + string apiVersion = "2019-11-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 = "2019-09-01"; + string apiVersion = "2019-11-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 = "2019-09-01"; + string apiVersion = "2019-11-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 369f49375b045..f4ab2a62a5f2b 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 = "2019-09-01"; + string apiVersion = "2019-11-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 = "2019-09-01"; + string apiVersion = "2019-11-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 = "2019-09-01"; + string apiVersion = "2019-11-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 = "2019-09-01"; + string apiVersion = "2019-11-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 = "2019-09-01"; + string apiVersion = "2019-11-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 = "2019-09-01"; + string apiVersion = "2019-11-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 = "2019-09-01"; + string apiVersion = "2019-11-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 = "2019-09-01"; + string apiVersion = "2019-11-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 3703ac2a895a9..fe0b384756a88 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 = "2019-09-01"; + string apiVersion = "2019-11-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 = "2019-09-01"; + string apiVersion = "2019-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -480,7 +480,7 @@ internal ExpressRouteGatewaysOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-09-01"; + string apiVersion = "2019-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -709,7 +709,7 @@ internal ExpressRouteGatewaysOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-09-01"; + string apiVersion = "2019-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -927,7 +927,7 @@ internal ExpressRouteGatewaysOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-09-01"; + string apiVersion = "2019-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/ExpressRouteLinksOperations.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/ExpressRouteLinksOperations.cs index eb8b1f2e652dd..bbabfe03a1f3d 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 = "2019-09-01"; + string apiVersion = "2019-11-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 = "2019-09-01"; + string apiVersion = "2019-11-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 3a003e2efb56a..9ea53c22c72fe 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 = "2019-09-01"; + string apiVersion = "2019-11-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 = "2019-09-01"; + string apiVersion = "2019-11-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 b4112f721775d..b40ce34a00171 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 = "2019-09-01"; + string apiVersion = "2019-11-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 = "2019-09-01"; + string apiVersion = "2019-11-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 = "2019-09-01"; + string apiVersion = "2019-11-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 = "2019-09-01"; + string apiVersion = "2019-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -901,7 +901,7 @@ internal ExpressRoutePortsOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "expressRoutePortName"); } - string apiVersion = "2019-09-01"; + string apiVersion = "2019-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1084,7 +1084,7 @@ internal ExpressRoutePortsOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "parameters"); } - string apiVersion = "2019-09-01"; + string apiVersion = "2019-11-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 e6b999a3771a1..7ec08e9a42c69 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 = "2019-09-01"; + string apiVersion = "2019-11-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 1fb4037d4610c..cb73f2a7360a2 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 = "2019-09-01"; + string apiVersion = "2019-11-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 = "2019-09-01"; + string apiVersion = "2019-11-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 = "2019-09-01"; + string apiVersion = "2019-11-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 = "2019-09-01"; + string apiVersion = "2019-11-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 = "2019-09-01"; + string apiVersion = "2019-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/FirewallPolicyRuleGroupsOperations.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/FirewallPolicyRuleGroupsOperations.cs index 1728ff80a8192..b9aaafdb03db2 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/FirewallPolicyRuleGroupsOperations.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/FirewallPolicyRuleGroupsOperations.cs @@ -126,7 +126,7 @@ internal FirewallPolicyRuleGroupsOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-09-01"; + string apiVersion = "2019-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -351,7 +351,7 @@ internal FirewallPolicyRuleGroupsOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-09-01"; + string apiVersion = "2019-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -549,7 +549,7 @@ internal FirewallPolicyRuleGroupsOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-09-01"; + string apiVersion = "2019-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -746,7 +746,7 @@ internal FirewallPolicyRuleGroupsOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-09-01"; + string apiVersion = "2019-11-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 new file mode 100644 index 0000000000000..4f3c03967f9da --- /dev/null +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/FlowLogsOperations.cs @@ -0,0 +1,1073 @@ +// +// 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; + + /// + /// FlowLogsOperations operations. + /// + internal partial class FlowLogsOperations : IServiceOperations, IFlowLogsOperations + { + /// + /// Initializes a new instance of the FlowLogsOperations class. + /// + /// + /// Reference to the service client. + /// + /// + /// Thrown when a required parameter is null + /// + internal FlowLogsOperations(NetworkManagementClient client) + { + if (client == null) + { + throw new System.ArgumentNullException("client"); + } + Client = client; + } + + /// + /// Gets a reference to the NetworkManagementClient + /// + public NetworkManagementClient Client { get; private set; } + + /// + /// Create or update a flow log for the specified network security group. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the network watcher. + /// + /// + /// The name of the flow log. + /// + /// + /// Parameters that define the create or update flow log resource. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task> CreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string networkWatcherName, string flowLogName, FlowLog parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send Request + AzureOperationResponse _response = await BeginCreateOrUpdateWithHttpMessagesAsync(resourceGroupName, networkWatcherName, flowLogName, parameters, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPutOrPatchOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + + /// + /// Gets a flow log resource by name. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the network watcher. + /// + /// + /// The name of the flow log resource. + /// + /// + /// 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 networkWatcherName, string flowLogName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (networkWatcherName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "networkWatcherName"); + } + if (flowLogName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "flowLogName"); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + string apiVersion = "2019-11-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("networkWatcherName", networkWatcherName); + tracingParameters.Add("flowLogName", flowLogName); + 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/networkWatchers/{networkWatcherName}/flowLogs/{flowLogName}").ToString(); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{networkWatcherName}", System.Uri.EscapeDataString(networkWatcherName)); + _url = _url.Replace("{flowLogName}", System.Uri.EscapeDataString(flowLogName)); + _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("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 ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + 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 flow log resource. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the network watcher. + /// + /// + /// The name of the flow log resource. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task DeleteWithHttpMessagesAsync(string resourceGroupName, string networkWatcherName, string flowLogName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send request + AzureOperationResponse _response = await BeginDeleteWithHttpMessagesAsync(resourceGroupName, networkWatcherName, flowLogName, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + + /// + /// Lists all flow log resources for the specified Network Watcher. + /// + /// + /// The name of the resource group containing Network Watcher. + /// + /// + /// The name of the Network Watcher resource. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task>> ListWithHttpMessagesAsync(string resourceGroupName, string networkWatcherName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (networkWatcherName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "networkWatcherName"); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + string apiVersion = "2019-11-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("networkWatcherName", networkWatcherName); + tracingParameters.Add("apiVersion", apiVersion); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "List", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/flowLogs").ToString(); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{networkWatcherName}", System.Uri.EscapeDataString(networkWatcherName)); + _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("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 ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + 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; + } + + /// + /// Create or update a flow log for the specified network security group. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the network watcher. + /// + /// + /// The name of the flow log. + /// + /// + /// Parameters that define the create or update flow log resource. + /// + /// + /// 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 networkWatcherName, string flowLogName, FlowLog parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (networkWatcherName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "networkWatcherName"); + } + if (flowLogName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "flowLogName"); + } + if (parameters == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "parameters"); + } + if (parameters != null) + { + parameters.Validate(); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + string apiVersion = "2019-11-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("networkWatcherName", networkWatcherName); + tracingParameters.Add("flowLogName", flowLogName); + tracingParameters.Add("parameters", parameters); + tracingParameters.Add("apiVersion", apiVersion); + 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/networkWatchers/{networkWatcherName}/flowLogs/{flowLogName}").ToString(); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{networkWatcherName}", System.Uri.EscapeDataString(networkWatcherName)); + _url = _url.Replace("{flowLogName}", System.Uri.EscapeDataString(flowLogName)); + _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("PUT"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + if(parameters != null) + { + _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(parameters, Client.SerializationSettings); + _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); + _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); + } + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200 && (int)_statusCode != 201) + { + var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + 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 the specified flow log resource. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the network watcher. + /// + /// + /// The name of the flow log resource. + /// + /// + /// 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 networkWatcherName, string flowLogName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (networkWatcherName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "networkWatcherName"); + } + if (flowLogName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "flowLogName"); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + string apiVersion = "2019-11-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("networkWatcherName", networkWatcherName); + tracingParameters.Add("flowLogName", flowLogName); + 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/networkWatchers/{networkWatcherName}/flowLogs/{flowLogName}").ToString(); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{networkWatcherName}", System.Uri.EscapeDataString(networkWatcherName)); + _url = _url.Replace("{flowLogName}", System.Uri.EscapeDataString(flowLogName)); + _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("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 != 202 && (int)_statusCode != 204) + { + var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + 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; + } + + /// + /// Lists all flow log resources for the specified Network Watcher. + /// + /// + /// 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>> ListNextWithHttpMessagesAsync(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, "ListNext", 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 ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + 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/FlowLogsOperationsExtensions.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/FlowLogsOperationsExtensions.cs new file mode 100644 index 0000000000000..7fcf020320571 --- /dev/null +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/FlowLogsOperationsExtensions.cs @@ -0,0 +1,335 @@ +// +// 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 FlowLogsOperations. + /// + public static partial class FlowLogsOperationsExtensions + { + /// + /// Create or update a flow log for the specified network security group. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the network watcher. + /// + /// + /// The name of the flow log. + /// + /// + /// Parameters that define the create or update flow log resource. + /// + public static FlowLog CreateOrUpdate(this IFlowLogsOperations operations, string resourceGroupName, string networkWatcherName, string flowLogName, FlowLog parameters) + { + return operations.CreateOrUpdateAsync(resourceGroupName, networkWatcherName, flowLogName, parameters).GetAwaiter().GetResult(); + } + + /// + /// Create or update a flow log for the specified network security group. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the network watcher. + /// + /// + /// The name of the flow log. + /// + /// + /// Parameters that define the create or update flow log resource. + /// + /// + /// The cancellation token. + /// + public static async Task CreateOrUpdateAsync(this IFlowLogsOperations operations, string resourceGroupName, string networkWatcherName, string flowLogName, FlowLog parameters, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.CreateOrUpdateWithHttpMessagesAsync(resourceGroupName, networkWatcherName, flowLogName, parameters, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Gets a flow log resource by name. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the network watcher. + /// + /// + /// The name of the flow log resource. + /// + public static FlowLog Get(this IFlowLogsOperations operations, string resourceGroupName, string networkWatcherName, string flowLogName) + { + return operations.GetAsync(resourceGroupName, networkWatcherName, flowLogName).GetAwaiter().GetResult(); + } + + /// + /// Gets a flow log resource by name. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the network watcher. + /// + /// + /// The name of the flow log resource. + /// + /// + /// The cancellation token. + /// + public static async Task GetAsync(this IFlowLogsOperations operations, string resourceGroupName, string networkWatcherName, string flowLogName, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.GetWithHttpMessagesAsync(resourceGroupName, networkWatcherName, flowLogName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Deletes the specified flow log resource. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the network watcher. + /// + /// + /// The name of the flow log resource. + /// + public static void Delete(this IFlowLogsOperations operations, string resourceGroupName, string networkWatcherName, string flowLogName) + { + operations.DeleteAsync(resourceGroupName, networkWatcherName, flowLogName).GetAwaiter().GetResult(); + } + + /// + /// Deletes the specified flow log resource. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the network watcher. + /// + /// + /// The name of the flow log resource. + /// + /// + /// The cancellation token. + /// + public static async Task DeleteAsync(this IFlowLogsOperations operations, string resourceGroupName, string networkWatcherName, string flowLogName, CancellationToken cancellationToken = default(CancellationToken)) + { + (await operations.DeleteWithHttpMessagesAsync(resourceGroupName, networkWatcherName, flowLogName, null, cancellationToken).ConfigureAwait(false)).Dispose(); + } + + /// + /// Lists all flow log resources for the specified Network Watcher. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group containing Network Watcher. + /// + /// + /// The name of the Network Watcher resource. + /// + public static IPage List(this IFlowLogsOperations operations, string resourceGroupName, string networkWatcherName) + { + return operations.ListAsync(resourceGroupName, networkWatcherName).GetAwaiter().GetResult(); + } + + /// + /// Lists all flow log resources for the specified Network Watcher. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group containing Network Watcher. + /// + /// + /// The name of the Network Watcher resource. + /// + /// + /// The cancellation token. + /// + public static async Task> ListAsync(this IFlowLogsOperations operations, string resourceGroupName, string networkWatcherName, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListWithHttpMessagesAsync(resourceGroupName, networkWatcherName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Create or update a flow log for the specified network security group. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the network watcher. + /// + /// + /// The name of the flow log. + /// + /// + /// Parameters that define the create or update flow log resource. + /// + public static FlowLog BeginCreateOrUpdate(this IFlowLogsOperations operations, string resourceGroupName, string networkWatcherName, string flowLogName, FlowLog parameters) + { + return operations.BeginCreateOrUpdateAsync(resourceGroupName, networkWatcherName, flowLogName, parameters).GetAwaiter().GetResult(); + } + + /// + /// Create or update a flow log for the specified network security group. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the network watcher. + /// + /// + /// The name of the flow log. + /// + /// + /// Parameters that define the create or update flow log resource. + /// + /// + /// The cancellation token. + /// + public static async Task BeginCreateOrUpdateAsync(this IFlowLogsOperations operations, string resourceGroupName, string networkWatcherName, string flowLogName, FlowLog parameters, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.BeginCreateOrUpdateWithHttpMessagesAsync(resourceGroupName, networkWatcherName, flowLogName, parameters, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Deletes the specified flow log resource. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the network watcher. + /// + /// + /// The name of the flow log resource. + /// + public static void BeginDelete(this IFlowLogsOperations operations, string resourceGroupName, string networkWatcherName, string flowLogName) + { + operations.BeginDeleteAsync(resourceGroupName, networkWatcherName, flowLogName).GetAwaiter().GetResult(); + } + + /// + /// Deletes the specified flow log resource. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the network watcher. + /// + /// + /// The name of the flow log resource. + /// + /// + /// The cancellation token. + /// + public static async Task BeginDeleteAsync(this IFlowLogsOperations operations, string resourceGroupName, string networkWatcherName, string flowLogName, CancellationToken cancellationToken = default(CancellationToken)) + { + (await operations.BeginDeleteWithHttpMessagesAsync(resourceGroupName, networkWatcherName, flowLogName, null, cancellationToken).ConfigureAwait(false)).Dispose(); + } + + /// + /// Lists all flow log resources for the specified Network Watcher. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + public static IPage ListNext(this IFlowLogsOperations operations, string nextPageLink) + { + return operations.ListNextAsync(nextPageLink).GetAwaiter().GetResult(); + } + + /// + /// Lists all flow log resources for the specified Network Watcher. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// The cancellation token. + /// + public static async Task> ListNextAsync(this IFlowLogsOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + } +} 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 90667fa02904a..07470a6072319 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/HubVirtualNetworkConnectionsOperations.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/HubVirtualNetworkConnectionsOperations.cs @@ -101,7 +101,7 @@ internal HubVirtualNetworkConnectionsOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "connectionName"); } - string apiVersion = "2019-09-01"; + string apiVersion = "2019-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -297,7 +297,7 @@ internal HubVirtualNetworkConnectionsOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "virtualHubName"); } - string apiVersion = "2019-09-01"; + string apiVersion = "2019-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/IFlowLogsOperations.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/IFlowLogsOperations.cs new file mode 100644 index 0000000000000..a12c822bdb07b --- /dev/null +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/IFlowLogsOperations.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; + + /// + /// FlowLogsOperations operations. + /// + public partial interface IFlowLogsOperations + { + /// + /// Create or update a flow log for the specified network security + /// group. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the network watcher. + /// + /// + /// The name of the flow log. + /// + /// + /// Parameters that define the create or update flow log resource. + /// + /// + /// 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 networkWatcherName, string flowLogName, FlowLog parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Gets a flow log resource by name. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the network watcher. + /// + /// + /// The name of the flow log resource. + /// + /// + /// 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 networkWatcherName, string flowLogName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Deletes the specified flow log resource. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the network watcher. + /// + /// + /// The name of the flow log resource. + /// + /// + /// 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 networkWatcherName, string flowLogName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Lists all flow log resources for the specified Network Watcher. + /// + /// + /// The name of the resource group containing Network Watcher. + /// + /// + /// The name of the Network Watcher resource. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task>> ListWithHttpMessagesAsync(string resourceGroupName, string networkWatcherName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Create or update a flow log for the specified network security + /// group. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the network watcher. + /// + /// + /// The name of the flow log. + /// + /// + /// Parameters that define the create or update flow log resource. + /// + /// + /// 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 networkWatcherName, string flowLogName, FlowLog parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Deletes the specified flow log resource. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the network watcher. + /// + /// + /// The name of the flow log resource. + /// + /// + /// 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 networkWatcherName, string flowLogName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Lists all flow log resources for the specified Network Watcher. + /// + /// + /// 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/INetworkManagementClient.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/INetworkManagementClient.cs index 3665edb5fbb30..7a3a331b9cfdb 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/INetworkManagementClient.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/INetworkManagementClient.cs @@ -310,6 +310,11 @@ public partial interface INetworkManagementClient : System.IDisposable /// IConnectionMonitorsOperations ConnectionMonitors { get; } + /// + /// Gets the IFlowLogsOperations. + /// + IFlowLogsOperations FlowLogs { get; } + /// /// Gets the IOperations. /// diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/INetworkWatchersOperations.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/INetworkWatchersOperations.cs index 5e46d06a65cb9..ed2bbb3ac83f9 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/INetworkWatchersOperations.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/INetworkWatchersOperations.cs @@ -431,8 +431,9 @@ public partial interface INetworkWatchersOperations /// Task> CheckConnectivityWithHttpMessagesAsync(string resourceGroupName, string networkWatcherName, ConnectivityParameters parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Gets the relative latency score for internet service providers from - /// a specified location to Azure regions. + /// NOTE: This feature is currently in preview and still being tested + /// for stability. Gets the relative latency score for internet service + /// providers from a specified location to Azure regions. /// /// /// The name of the network watcher resource group. @@ -460,8 +461,9 @@ public partial interface INetworkWatchersOperations /// Task> GetAzureReachabilityReportWithHttpMessagesAsync(string resourceGroupName, string networkWatcherName, AzureReachabilityReportParameters parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Lists all available internet service providers for a specified - /// Azure region. + /// NOTE: This feature is currently in preview and still being tested + /// for stability. Lists all available internet service providers for a + /// specified Azure region. /// /// /// The name of the network watcher resource group. @@ -779,8 +781,9 @@ public partial interface INetworkWatchersOperations /// Task> BeginCheckConnectivityWithHttpMessagesAsync(string resourceGroupName, string networkWatcherName, ConnectivityParameters parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Gets the relative latency score for internet service providers from - /// a specified location to Azure regions. + /// NOTE: This feature is currently in preview and still being tested + /// for stability. Gets the relative latency score for internet service + /// providers from a specified location to Azure regions. /// /// /// The name of the network watcher resource group. @@ -808,8 +811,9 @@ public partial interface INetworkWatchersOperations /// Task> BeginGetAzureReachabilityReportWithHttpMessagesAsync(string resourceGroupName, string networkWatcherName, AzureReachabilityReportParameters parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Lists all available internet service providers for a specified - /// Azure region. + /// NOTE: This feature is currently in preview and still being tested + /// for stability. Lists all available internet service providers for a + /// specified Azure region. /// /// /// The name of the network watcher resource group. diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/IP2sVpnGatewaysOperations.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/IP2sVpnGatewaysOperations.cs index 0b65f4a399863..d61bbf1e4b48c 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/IP2sVpnGatewaysOperations.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/IP2sVpnGatewaysOperations.cs @@ -256,6 +256,32 @@ public partial interface IP2sVpnGatewaysOperations /// Task> GetP2sVpnConnectionHealthDetailedWithHttpMessagesAsync(string resourceGroupName, string gatewayName, P2SVpnConnectionHealthRequest request, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// + /// Disconnect P2S vpn connections of the virtual wan P2SVpnGateway in + /// the specified resource group. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the P2S Vpn Gateway. + /// + /// + /// The parameters are supplied to disconnect p2s vpn connections. + /// + /// + /// 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 DisconnectP2sVpnConnectionsWithHttpMessagesAsync(string resourceGroupName, string p2sVpnGatewayName, P2SVpnConnectionRequest request, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// /// Creates a virtual wan p2s vpn gateway if it doesn't exist else /// updates the existing gateway. /// @@ -394,6 +420,32 @@ public partial interface IP2sVpnGatewaysOperations /// Task> BeginGetP2sVpnConnectionHealthDetailedWithHttpMessagesAsync(string resourceGroupName, string gatewayName, P2SVpnConnectionHealthRequest request, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// + /// Disconnect P2S vpn connections of the virtual wan P2SVpnGateway in + /// the specified resource group. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the P2S Vpn Gateway. + /// + /// + /// The parameters are supplied to disconnect p2s vpn connections. + /// + /// + /// 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 BeginDisconnectP2sVpnConnectionsWithHttpMessagesAsync(string resourceGroupName, string p2sVpnGatewayName, P2SVpnConnectionRequest request, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// /// Lists all the P2SVpnGateways in a resource group. /// /// diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/IVirtualNetworkGatewaysOperations.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/IVirtualNetworkGatewaysOperations.cs index 3b6b47ae0aaa3..8e743c5024e22 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/IVirtualNetworkGatewaysOperations.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/IVirtualNetworkGatewaysOperations.cs @@ -602,6 +602,32 @@ public partial interface IVirtualNetworkGatewaysOperations /// Task> GetVpnclientConnectionHealthWithHttpMessagesAsync(string resourceGroupName, string virtualNetworkGatewayName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// + /// Disconnect vpn connections of virtual network gateway in the + /// specified resource group. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the virtual network gateway. + /// + /// + /// The parameters are supplied to disconnect vpn connections. + /// + /// + /// 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 DisconnectVirtualNetworkGatewayVpnConnectionsWithHttpMessagesAsync(string resourceGroupName, string virtualNetworkGatewayName, P2SVpnConnectionRequest request, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// /// Creates or updates a virtual network gateway in the specified /// resource group. /// @@ -1053,6 +1079,32 @@ public partial interface IVirtualNetworkGatewaysOperations /// Task> BeginGetVpnclientConnectionHealthWithHttpMessagesAsync(string resourceGroupName, string virtualNetworkGatewayName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// + /// Disconnect vpn connections of virtual network gateway in the + /// specified resource group. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the virtual network gateway. + /// + /// + /// The parameters are supplied to disconnect vpn connections. + /// + /// + /// 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 BeginDisconnectVirtualNetworkGatewayVpnConnectionsWithHttpMessagesAsync(string resourceGroupName, string virtualNetworkGatewayName, P2SVpnConnectionRequest request, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// /// Gets all virtual network gateways by resource group. /// /// 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 8c7cff0efc6ae..0346a2b568a41 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 = "2019-09-01"; + string apiVersion = "2019-11-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 = "2019-09-01"; + string apiVersion = "2019-11-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 = "2019-09-01"; + string apiVersion = "2019-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -748,7 +748,7 @@ internal InboundNatRulesOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-09-01"; + string apiVersion = "2019-11-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 2fcb504429bbc..7c0c1d40b474a 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 = "2019-09-01"; + string apiVersion = "2019-11-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 = "2019-09-01"; + string apiVersion = "2019-11-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 = "2019-09-01"; + string apiVersion = "2019-11-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 = "2019-09-01"; + string apiVersion = "2019-11-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 = "2019-09-01"; + string apiVersion = "2019-11-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 = "2019-09-01"; + string apiVersion = "2019-11-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 cbe1c4d934a9d..2a5fedde3f317 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 = "2019-09-01"; + string apiVersion = "2019-11-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 = "2019-09-01"; + string apiVersion = "2019-11-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 078c7f3dcf36f..5bd17e084d13f 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 = "2019-09-01"; + string apiVersion = "2019-11-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 = "2019-09-01"; + string apiVersion = "2019-11-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 e3db25c66882c..e08398d75fc8a 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 = "2019-09-01"; + string apiVersion = "2019-11-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 = "2019-09-01"; + string apiVersion = "2019-11-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 35cca75465d23..48c53ed8dfecf 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 = "2019-09-01"; + string apiVersion = "2019-11-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 1e468530ef67a..b22e19c80586c 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 = "2019-09-01"; + string apiVersion = "2019-11-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 = "2019-09-01"; + string apiVersion = "2019-11-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 170e120385ccd..c387c550d93cc 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 = "2019-09-01"; + string apiVersion = "2019-11-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 = "2019-09-01"; + string apiVersion = "2019-11-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 c3860c382a0b7..a169a04018e13 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 = "2019-09-01"; + string apiVersion = "2019-11-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 = "2019-09-01"; + string apiVersion = "2019-11-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 = "2019-09-01"; + string apiVersion = "2019-11-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 = "2019-09-01"; + string apiVersion = "2019-11-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 = "2019-09-01"; + string apiVersion = "2019-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1092,7 +1092,7 @@ internal LoadBalancersOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-09-01"; + string apiVersion = "2019-11-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 d897e7de2f0c5..7d82331ef6395 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 = "2019-09-01"; + string apiVersion = "2019-11-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 = "2019-09-01"; + string apiVersion = "2019-11-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 = "2019-09-01"; + string apiVersion = "2019-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -758,7 +758,7 @@ internal LocalNetworkGatewaysOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-09-01"; + string apiVersion = "2019-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -981,7 +981,7 @@ internal LocalNetworkGatewaysOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-09-01"; + string apiVersion = "2019-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ApplicationGateway.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ApplicationGateway.cs index d2a6226507244..596452e30f3a8 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ApplicationGateway.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ApplicationGateway.cs @@ -92,7 +92,7 @@ public ApplicationGateway() /// limits](https://docs.microsoft.com/azure/azure-subscription-service-limits#application-gateway-limits). /// Web application /// firewall configuration. - /// Reference of the FirewallPolicy + /// Reference to the FirewallPolicy /// resource. /// Whether HTTP2 is enabled on the /// application gateway resource. @@ -286,7 +286,7 @@ public ApplicationGateway() public ApplicationGatewayWebApplicationFirewallConfiguration WebApplicationFirewallConfiguration { get; set; } /// - /// Gets or sets reference of the FirewallPolicy resource. + /// Gets or sets reference to the FirewallPolicy resource. /// [JsonProperty(PropertyName = "properties.firewallPolicy")] public SubResource FirewallPolicy { get; set; } diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ApplicationGatewayBackendHealthHttpSettings.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ApplicationGatewayBackendHealthHttpSettings.cs index 67a3cd08892c4..f031eeef3a705 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ApplicationGatewayBackendHealthHttpSettings.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ApplicationGatewayBackendHealthHttpSettings.cs @@ -33,7 +33,7 @@ public ApplicationGatewayBackendHealthHttpSettings() /// Initializes a new instance of the /// ApplicationGatewayBackendHealthHttpSettings class. /// - /// Reference of an + /// Reference to an /// ApplicationGatewayBackendHttpSettings resource. /// List of ApplicationGatewayBackendHealthServer /// resources. @@ -50,7 +50,7 @@ public ApplicationGatewayBackendHealthHttpSettings() partial void CustomInit(); /// - /// Gets or sets reference of an ApplicationGatewayBackendHttpSettings + /// Gets or sets reference to an ApplicationGatewayBackendHttpSettings /// resource. /// [JsonProperty(PropertyName = "backendHttpSettings")] diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ApplicationGatewayBackendHealthOnDemand.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ApplicationGatewayBackendHealthOnDemand.cs index 5183b263b00c2..7796c18796505 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ApplicationGatewayBackendHealthOnDemand.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ApplicationGatewayBackendHealthOnDemand.cs @@ -31,7 +31,7 @@ public ApplicationGatewayBackendHealthOnDemand() /// Initializes a new instance of the /// ApplicationGatewayBackendHealthOnDemand class. /// - /// Reference of an + /// Reference to an /// ApplicationGatewayBackendAddressPool resource. /// Application gateway /// BackendHealthHttp settings. @@ -48,7 +48,7 @@ public ApplicationGatewayBackendHealthOnDemand() partial void CustomInit(); /// - /// Gets or sets reference of an ApplicationGatewayBackendAddressPool + /// Gets or sets reference to an ApplicationGatewayBackendAddressPool /// resource. /// [JsonProperty(PropertyName = "backendAddressPool")] diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ApplicationGatewayBackendHealthPool.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ApplicationGatewayBackendHealthPool.cs index c80bf12467715..ac5c7bd1f7614 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ApplicationGatewayBackendHealthPool.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ApplicationGatewayBackendHealthPool.cs @@ -33,7 +33,7 @@ public ApplicationGatewayBackendHealthPool() /// Initializes a new instance of the /// ApplicationGatewayBackendHealthPool class. /// - /// Reference of an + /// Reference to an /// ApplicationGatewayBackendAddressPool resource. /// List of /// ApplicationGatewayBackendHealthHttpSettings resources. @@ -50,7 +50,7 @@ public ApplicationGatewayBackendHealthPool() partial void CustomInit(); /// - /// Gets or sets reference of an ApplicationGatewayBackendAddressPool + /// Gets or sets reference to an ApplicationGatewayBackendAddressPool /// resource. /// [JsonProperty(PropertyName = "backendAddressPool")] diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ApplicationGatewayBackendHealthServer.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ApplicationGatewayBackendHealthServer.cs index 6b913fd78785f..46b8ad150f468 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ApplicationGatewayBackendHealthServer.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ApplicationGatewayBackendHealthServer.cs @@ -32,7 +32,7 @@ public ApplicationGatewayBackendHealthServer() /// ApplicationGatewayBackendHealthServer class. /// /// IP address or FQDN of backend server. - /// Reference of IP configuration of + /// Reference to IP configuration of /// backend server. /// Health of backend server. Possible values /// include: 'Unknown', 'Up', 'Down', 'Partial', 'Draining' @@ -58,7 +58,7 @@ public ApplicationGatewayBackendHealthServer() public string Address { get; set; } /// - /// Gets or sets reference of IP configuration of backend server. + /// Gets or sets reference to IP configuration of backend server. /// [JsonProperty(PropertyName = "ipConfiguration")] public NetworkInterfaceIPConfiguration IpConfiguration { get; set; } 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 index f791cdb718b2c..94308f4c23afc 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ApplicationGatewayFrontendIpConfiguration.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ApplicationGatewayFrontendIpConfiguration.cs @@ -40,8 +40,8 @@ public ApplicationGatewayFrontendIPConfiguration() /// The private IP address /// allocation method. Possible values include: 'Static', /// 'Dynamic' - /// Reference of the subnet resource. - /// Reference of the PublicIP + /// Reference to the subnet resource. + /// Reference to the PublicIP /// resource. /// The provisioning state of the /// frontend IP configuration resource. Possible values include: @@ -85,13 +85,13 @@ public ApplicationGatewayFrontendIPConfiguration() public string PrivateIPAllocationMethod { get; set; } /// - /// Gets or sets reference of the subnet resource. + /// Gets or sets reference to the subnet resource. /// [JsonProperty(PropertyName = "properties.subnet")] public SubResource Subnet { get; set; } /// - /// Gets or sets reference of the PublicIP resource. + /// Gets or sets reference to the PublicIP resource. /// [JsonProperty(PropertyName = "properties.publicIPAddress")] public SubResource PublicIPAddress { get; 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 index 8318ffd7dee3e..857e1e1830b36 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ApplicationGatewayIpConfiguration.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ApplicationGatewayIpConfiguration.cs @@ -36,7 +36,7 @@ public ApplicationGatewayIPConfiguration() /// class. /// /// Resource ID. - /// Reference of the subnet resource. A subnet + /// 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 @@ -63,7 +63,7 @@ public ApplicationGatewayIPConfiguration() partial void CustomInit(); /// - /// Gets or sets reference of the subnet resource. A subnet from where + /// Gets or sets reference to the subnet resource. A subnet from where /// application gateway gets its private address. /// [JsonProperty(PropertyName = "properties.subnet")] diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ApplicationGatewayOnDemandProbe.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ApplicationGatewayOnDemandProbe.cs index 5f4d8b39212e0..f11b878f8b020 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ApplicationGatewayOnDemandProbe.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ApplicationGatewayOnDemandProbe.cs @@ -45,9 +45,9 @@ public ApplicationGatewayOnDemandProbe() /// value is false. /// Criterion for classifying a healthy probe /// response. - /// Reference of backend pool of + /// Reference to backend pool of /// application gateway to which probe request will be sent. - /// Reference of backend http setting + /// Reference to backend http setting /// of application gateway to be used for test probe. public ApplicationGatewayOnDemandProbe(string protocol = default(string), string host = default(string), string path = default(string), int? timeout = default(int?), bool? pickHostNameFromBackendHttpSettings = default(bool?), ApplicationGatewayProbeHealthResponseMatch match = default(ApplicationGatewayProbeHealthResponseMatch), SubResource backendAddressPool = default(SubResource), SubResource backendHttpSettings = default(SubResource)) { @@ -110,14 +110,14 @@ public ApplicationGatewayOnDemandProbe() public ApplicationGatewayProbeHealthResponseMatch Match { get; set; } /// - /// Gets or sets reference of backend pool of application gateway to + /// Gets or sets reference to backend pool of application gateway to /// which probe request will be sent. /// [JsonProperty(PropertyName = "backendAddressPool")] public SubResource BackendAddressPool { get; set; } /// - /// Gets or sets reference of backend http setting of application + /// Gets or sets reference to backend http setting of application /// gateway to be used for test probe. /// [JsonProperty(PropertyName = "backendHttpSettings")] diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ApplicationGatewayRewriteRuleActionSet.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ApplicationGatewayRewriteRuleActionSet.cs index be860501a0d42..f06fa95e1c89b 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ApplicationGatewayRewriteRuleActionSet.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ApplicationGatewayRewriteRuleActionSet.cs @@ -37,10 +37,13 @@ public ApplicationGatewayRewriteRuleActionSet() /// the Action Set. /// Response Header Actions /// in the Action Set. - public ApplicationGatewayRewriteRuleActionSet(IList requestHeaderConfigurations = default(IList), IList responseHeaderConfigurations = default(IList)) + /// Url Configuration Action in the + /// Action Set. + public ApplicationGatewayRewriteRuleActionSet(IList requestHeaderConfigurations = default(IList), IList responseHeaderConfigurations = default(IList), ApplicationGatewayUrlConfiguration urlConfiguration = default(ApplicationGatewayUrlConfiguration)) { RequestHeaderConfigurations = requestHeaderConfigurations; ResponseHeaderConfigurations = responseHeaderConfigurations; + UrlConfiguration = urlConfiguration; CustomInit(); } @@ -61,5 +64,11 @@ public ApplicationGatewayRewriteRuleActionSet() [JsonProperty(PropertyName = "responseHeaderConfigurations")] public IList ResponseHeaderConfigurations { get; set; } + /// + /// Gets or sets url Configuration Action in the Action Set. + /// + [JsonProperty(PropertyName = "urlConfiguration")] + public ApplicationGatewayUrlConfiguration UrlConfiguration { get; set; } + } } diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ApplicationGatewayUrlConfiguration.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ApplicationGatewayUrlConfiguration.cs new file mode 100644 index 0000000000000..0ec0b38fd3c00 --- /dev/null +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ApplicationGatewayUrlConfiguration.cs @@ -0,0 +1,79 @@ +// +// 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; + + /// + /// Url configuration of the Actions set in Application Gateway. + /// + public partial class ApplicationGatewayUrlConfiguration + { + /// + /// Initializes a new instance of the + /// ApplicationGatewayUrlConfiguration class. + /// + public ApplicationGatewayUrlConfiguration() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the + /// ApplicationGatewayUrlConfiguration class. + /// + /// Url path which user has provided for url + /// rewrite. Null means no path will be updated. Default value is + /// null. + /// Query string which user has + /// provided for url rewrite. Null means no query string will be + /// updated. Default value is null. + /// If set as true, it will re-evaluate the url + /// path map provided in path based request routing rules using + /// modified path. Default value is false. + public ApplicationGatewayUrlConfiguration(string modifiedPath = default(string), string modifiedQueryString = default(string), bool? reroute = default(bool?)) + { + ModifiedPath = modifiedPath; + ModifiedQueryString = modifiedQueryString; + Reroute = reroute; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets url path which user has provided for url rewrite. Null + /// means no path will be updated. Default value is null. + /// + [JsonProperty(PropertyName = "modifiedPath")] + public string ModifiedPath { get; set; } + + /// + /// Gets or sets query string which user has provided for url rewrite. + /// Null means no query string will be updated. Default value is null. + /// + [JsonProperty(PropertyName = "modifiedQueryString")] + public string ModifiedQueryString { get; set; } + + /// + /// Gets or sets if set as true, it will re-evaluate the url path map + /// provided in path based request routing rules using modified path. + /// Default value is false. + /// + [JsonProperty(PropertyName = "reroute")] + public bool? Reroute { get; set; } + + } +} diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/AvailableDelegation.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/AvailableDelegation.cs index 15ebc97910716..b8129a37a19f5 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/AvailableDelegation.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/AvailableDelegation.cs @@ -39,8 +39,8 @@ public AvailableDelegation() /// Resource type. /// The name of the service and /// resource. - /// Describes the actions permitted to the - /// service upon delegation. + /// The actions permitted to the service upon + /// delegation. public AvailableDelegation(string name = default(string), string id = default(string), string type = default(string), string serviceName = default(string), IList actions = default(IList)) { Name = name; @@ -82,8 +82,7 @@ public AvailableDelegation() public string ServiceName { get; set; } /// - /// Gets or sets describes the actions permitted to the service upon - /// delegation. + /// Gets or sets the actions permitted to the service upon delegation. /// [JsonProperty(PropertyName = "actions")] public IList Actions { get; set; } diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/AzureFirewall.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/AzureFirewall.cs index a616b3c2aab81..f08475ffb0b25 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/AzureFirewall.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/AzureFirewall.cs @@ -47,6 +47,8 @@ public AzureFirewall() /// collections used by Azure Firewall. /// IP configuration of the Azure /// Firewall resource. + /// IP configuration of the + /// Azure Firewall used for management traffic. /// The provisioning state of the Azure /// firewall resource. Possible values include: 'Succeeded', /// 'Updating', 'Deleting', 'Failed' @@ -59,6 +61,8 @@ public AzureFirewall() /// this azure firewall. /// IP addresses associated with /// AzureFirewall. + /// IpGroups associated with + /// AzureFirewall. /// The Azure Firewall Resource SKU. /// The additional properties used /// to further config this azure firewall. @@ -66,18 +70,20 @@ public AzureFirewall() /// resource needs to come from. /// A unique read-only string that changes whenever /// the resource is updated. - public AzureFirewall(string id = default(string), string name = default(string), string type = default(string), string location = default(string), IDictionary tags = default(IDictionary), IList applicationRuleCollections = default(IList), IList natRuleCollections = default(IList), IList networkRuleCollections = default(IList), IList ipConfigurations = default(IList), string provisioningState = default(string), string threatIntelMode = default(string), SubResource virtualHub = default(SubResource), SubResource firewallPolicy = default(SubResource), HubIPAddresses hubIpAddresses = default(HubIPAddresses), AzureFirewallSku sku = default(AzureFirewallSku), IDictionary additionalProperties = default(IDictionary), IList zones = default(IList), string etag = default(string)) + public AzureFirewall(string id = default(string), string name = default(string), string type = default(string), string location = default(string), IDictionary tags = default(IDictionary), IList applicationRuleCollections = default(IList), IList natRuleCollections = default(IList), IList networkRuleCollections = default(IList), IList ipConfigurations = default(IList), AzureFirewallIPConfiguration managementIpConfiguration = default(AzureFirewallIPConfiguration), string provisioningState = default(string), string threatIntelMode = default(string), SubResource virtualHub = default(SubResource), SubResource firewallPolicy = default(SubResource), HubIPAddresses hubIpAddresses = default(HubIPAddresses), IList ipGroups = default(IList), AzureFirewallSku sku = default(AzureFirewallSku), IDictionary additionalProperties = default(IDictionary), IList zones = default(IList), string etag = default(string)) : base(id, name, type, location, tags) { ApplicationRuleCollections = applicationRuleCollections; NatRuleCollections = natRuleCollections; NetworkRuleCollections = networkRuleCollections; IpConfigurations = ipConfigurations; + ManagementIpConfiguration = managementIpConfiguration; ProvisioningState = provisioningState; ThreatIntelMode = threatIntelMode; VirtualHub = virtualHub; FirewallPolicy = firewallPolicy; HubIpAddresses = hubIpAddresses; + IpGroups = ipGroups; Sku = sku; AdditionalProperties = additionalProperties; Zones = zones; @@ -117,6 +123,13 @@ public AzureFirewall() [JsonProperty(PropertyName = "properties.ipConfigurations")] public IList IpConfigurations { get; set; } + /// + /// Gets or sets IP configuration of the Azure Firewall used for + /// management traffic. + /// + [JsonProperty(PropertyName = "properties.managementIpConfiguration")] + public AzureFirewallIPConfiguration ManagementIpConfiguration { get; set; } + /// /// Gets the provisioning state of the Azure firewall resource. /// Possible values include: 'Succeeded', 'Updating', 'Deleting', @@ -151,6 +164,12 @@ public AzureFirewall() [JsonProperty(PropertyName = "properties.hubIpAddresses")] public HubIPAddresses HubIpAddresses { get; private set; } + /// + /// Gets ipGroups associated with AzureFirewall. + /// + [JsonProperty(PropertyName = "properties.ipGroups")] + public IList IpGroups { get; private set; } + /// /// Gets or sets the Azure Firewall Resource SKU. /// diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/AzureFirewallIPConfiguration.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/AzureFirewallIPConfiguration.cs index 9bca126f1a8b7..e3ab290cc0ce5 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/AzureFirewallIPConfiguration.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/AzureFirewallIPConfiguration.cs @@ -37,9 +37,10 @@ public AzureFirewallIPConfiguration() /// Resource ID. /// The Firewall Internal Load Balancer /// IP to be used as the next hop in User Defined Routes. - /// Reference of the subnet resource. This - /// resource must be named 'AzureFirewallSubnet'. - /// Reference of the PublicIP resource. + /// Reference to the subnet resource. This + /// resource must be named 'AzureFirewallSubnet' or + /// 'AzureFirewallManagementSubnet'. + /// Reference to the PublicIP resource. /// This field is a mandatory input if subnet is not null. /// The provisioning state of the Azure /// firewall IP configuration resource. Possible values include: @@ -49,7 +50,8 @@ public AzureFirewallIPConfiguration() /// resource. /// A unique read-only string that changes whenever /// the resource is updated. - public AzureFirewallIPConfiguration(string id = default(string), string privateIPAddress = default(string), SubResource subnet = default(SubResource), SubResource publicIPAddress = default(SubResource), string provisioningState = default(string), string name = default(string), string etag = default(string)) + /// Type of the resource. + public AzureFirewallIPConfiguration(string id = default(string), string privateIPAddress = default(string), SubResource subnet = default(SubResource), SubResource publicIPAddress = default(SubResource), string provisioningState = default(string), string name = default(string), string etag = default(string), string type = default(string)) : base(id) { PrivateIPAddress = privateIPAddress; @@ -58,6 +60,7 @@ public AzureFirewallIPConfiguration() ProvisioningState = provisioningState; Name = name; Etag = etag; + Type = type; CustomInit(); } @@ -74,14 +77,14 @@ public AzureFirewallIPConfiguration() public string PrivateIPAddress { get; private set; } /// - /// Gets or sets reference of the subnet resource. This resource must - /// be named 'AzureFirewallSubnet'. + /// Gets or sets reference to the subnet resource. This resource must + /// be named 'AzureFirewallSubnet' or 'AzureFirewallManagementSubnet'. /// [JsonProperty(PropertyName = "properties.subnet")] public SubResource Subnet { get; set; } /// - /// Gets or sets reference of the PublicIP resource. This field is a + /// Gets or sets reference to the PublicIP resource. This field is a /// mandatory input if subnet is not null. /// [JsonProperty(PropertyName = "properties.publicIPAddress")] @@ -109,5 +112,11 @@ public AzureFirewallIPConfiguration() [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/AzureFirewallIpGroups.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/AzureFirewallIpGroups.cs new file mode 100644 index 0000000000000..139783664cf34 --- /dev/null +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/AzureFirewallIpGroups.cs @@ -0,0 +1,59 @@ +// +// 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; + + /// + /// IpGroups associated with azure firewall. + /// + public partial class AzureFirewallIpGroups + { + /// + /// Initializes a new instance of the AzureFirewallIpGroups class. + /// + public AzureFirewallIpGroups() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the AzureFirewallIpGroups class. + /// + /// Resource ID. + /// The iteration number. + public AzureFirewallIpGroups(string id = default(string), string changeNumber = default(string)) + { + Id = id; + ChangeNumber = changeNumber; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets resource ID. + /// + [JsonProperty(PropertyName = "id")] + public string Id { get; private set; } + + /// + /// Gets the iteration number. + /// + [JsonProperty(PropertyName = "changeNumber")] + public string ChangeNumber { get; private set; } + + } +} diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/BastionHostIPConfiguration.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/BastionHostIPConfiguration.cs index 0bd55c666c8fc..ee774eb705b5c 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/BastionHostIPConfiguration.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/BastionHostIPConfiguration.cs @@ -32,8 +32,8 @@ public BastionHostIPConfiguration() /// /// Initializes a new instance of the BastionHostIPConfiguration class. /// - /// Reference of the subnet resource. - /// Reference of the PublicIP + /// Reference to the subnet resource. + /// Reference to the PublicIP /// resource. /// Resource ID. /// The provisioning state of the @@ -66,13 +66,13 @@ public BastionHostIPConfiguration() partial void CustomInit(); /// - /// Gets or sets reference of the subnet resource. + /// Gets or sets reference to the subnet resource. /// [JsonProperty(PropertyName = "properties.subnet")] public SubResource Subnet { get; set; } /// - /// Gets or sets reference of the PublicIP resource. + /// Gets or sets reference to the PublicIP resource. /// [JsonProperty(PropertyName = "properties.publicIPAddress")] public SubResource PublicIPAddress { get; set; } 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 fe3073d640c5f..af3a8a15eea9a 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 @@ -34,17 +34,26 @@ public ConnectionMonitor() /// /// Initializes a new instance of the ConnectionMonitor class. /// + /// Connection monitor location. + /// Connection monitor tags. /// Describes the source of connection /// monitor. /// Describes the destination of connection /// monitor. - /// Connection monitor location. - /// Connection monitor tags. /// Determines if the connection monitor will /// start automatically once created. /// Monitoring interval in /// seconds. - public ConnectionMonitor(ConnectionMonitorSource source, ConnectionMonitorDestination destination, string location = default(string), IDictionary tags = default(IDictionary), bool? autoStart = default(bool?), int? monitoringIntervalInSeconds = default(int?)) + /// List of connection monitor + /// endpoints. + /// List of connection monitor test + /// configurations. + /// List of connection monitor test + /// groups. + /// List of connection monitor outputs. + /// Optional notes to be associated with the + /// connection monitor. + public ConnectionMonitor(string location = default(string), IDictionary tags = default(IDictionary), ConnectionMonitorSource source = default(ConnectionMonitorSource), ConnectionMonitorDestination destination = default(ConnectionMonitorDestination), bool? autoStart = default(bool?), int? monitoringIntervalInSeconds = default(int?), IList endpoints = default(IList), IList testConfigurations = default(IList), IList testGroups = default(IList), IList outputs = default(IList), string notes = default(string)) { Location = location; Tags = tags; @@ -52,6 +61,11 @@ public ConnectionMonitor() Destination = destination; AutoStart = autoStart; MonitoringIntervalInSeconds = monitoringIntervalInSeconds; + Endpoints = endpoints; + TestConfigurations = testConfigurations; + TestGroups = testGroups; + Outputs = outputs; + Notes = notes; CustomInit(); } @@ -97,6 +111,37 @@ public ConnectionMonitor() [JsonProperty(PropertyName = "properties.monitoringIntervalInSeconds")] public int? MonitoringIntervalInSeconds { get; set; } + /// + /// Gets or sets list of connection monitor endpoints. + /// + [JsonProperty(PropertyName = "properties.endpoints")] + public IList Endpoints { get; set; } + + /// + /// Gets or sets list of connection monitor test configurations. + /// + [JsonProperty(PropertyName = "properties.testConfigurations")] + public IList TestConfigurations { get; set; } + + /// + /// Gets or sets list of connection monitor test groups. + /// + [JsonProperty(PropertyName = "properties.testGroups")] + public IList TestGroups { get; set; } + + /// + /// Gets or sets list of connection monitor outputs. + /// + [JsonProperty(PropertyName = "properties.outputs")] + public IList Outputs { get; set; } + + /// + /// Gets or sets optional notes to be associated with the connection + /// monitor. + /// + [JsonProperty(PropertyName = "properties.notes")] + public string Notes { get; set; } + /// /// Validate the object. /// @@ -105,17 +150,39 @@ public ConnectionMonitor() /// public virtual void Validate() { - if (Source == null) + if (Source != null) { - throw new ValidationException(ValidationRules.CannotBeNull, "Source"); + Source.Validate(); } - if (Destination == null) + if (Endpoints != null) { - throw new ValidationException(ValidationRules.CannotBeNull, "Destination"); + foreach (var element in Endpoints) + { + if (element != null) + { + element.Validate(); + } + } } - if (Source != null) + if (TestConfigurations != null) { - Source.Validate(); + foreach (var element1 in TestConfigurations) + { + if (element1 != null) + { + element1.Validate(); + } + } + } + if (TestGroups != null) + { + foreach (var element2 in TestGroups) + { + if (element2 != null) + { + element2.Validate(); + } + } } } } diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ConnectionMonitorEndpoint.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ConnectionMonitorEndpoint.cs new file mode 100644 index 0000000000000..295357bb33ce1 --- /dev/null +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ConnectionMonitorEndpoint.cs @@ -0,0 +1,94 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Network.Models +{ + using Microsoft.Rest; + using Newtonsoft.Json; + using System.Linq; + + /// + /// Describes the connection monitor endpoint. + /// + public partial class ConnectionMonitorEndpoint + { + /// + /// Initializes a new instance of the ConnectionMonitorEndpoint class. + /// + public ConnectionMonitorEndpoint() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the ConnectionMonitorEndpoint class. + /// + /// The name of the connection monitor + /// endpoint. + /// Resource ID of the connection monitor + /// endpoint. + /// Address of the connection monitor endpoint + /// (IP or domain name). + /// Filter for sub-items within the + /// endpoint. + public ConnectionMonitorEndpoint(string name, string resourceId = default(string), string address = default(string), ConnectionMonitorEndpointFilter filter = default(ConnectionMonitorEndpointFilter)) + { + Name = name; + ResourceId = resourceId; + Address = address; + Filter = filter; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the name of the connection monitor endpoint. + /// + [JsonProperty(PropertyName = "name")] + public string Name { get; set; } + + /// + /// Gets or sets resource ID of the connection monitor endpoint. + /// + [JsonProperty(PropertyName = "resourceId")] + public string ResourceId { get; set; } + + /// + /// Gets or sets address of the connection monitor endpoint (IP or + /// domain name). + /// + [JsonProperty(PropertyName = "address")] + public string Address { get; set; } + + /// + /// Gets or sets filter for sub-items within the endpoint. + /// + [JsonProperty(PropertyName = "filter")] + public ConnectionMonitorEndpointFilter Filter { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (Name == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "Name"); + } + } + } +} diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ConnectionMonitorEndpointFilter.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ConnectionMonitorEndpointFilter.cs new file mode 100644 index 0000000000000..7568f85295dd2 --- /dev/null +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ConnectionMonitorEndpointFilter.cs @@ -0,0 +1,66 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Network.Models +{ + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// Describes the connection monitor endpoint filter. + /// + public partial class ConnectionMonitorEndpointFilter + { + /// + /// Initializes a new instance of the ConnectionMonitorEndpointFilter + /// class. + /// + public ConnectionMonitorEndpointFilter() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the ConnectionMonitorEndpointFilter + /// class. + /// + /// The behavior of the endpoint filter. Currently + /// only 'Include' is supported. Possible values include: + /// 'Include' + /// List of items in the filter. + public ConnectionMonitorEndpointFilter(string type = default(string), IList items = default(IList)) + { + Type = type; + Items = items; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the behavior of the endpoint filter. Currently only + /// 'Include' is supported. Possible values include: 'Include' + /// + [JsonProperty(PropertyName = "type")] + public string Type { get; set; } + + /// + /// Gets or sets list of items in the filter. + /// + [JsonProperty(PropertyName = "items")] + public IList Items { get; set; } + + } +} diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ConnectionMonitorEndpointFilterItem.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ConnectionMonitorEndpointFilterItem.cs new file mode 100644 index 0000000000000..921690dd0a46b --- /dev/null +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ConnectionMonitorEndpointFilterItem.cs @@ -0,0 +1,65 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Network.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// Describes the connection monitor endpoint filter item. + /// + public partial class ConnectionMonitorEndpointFilterItem + { + /// + /// Initializes a new instance of the + /// ConnectionMonitorEndpointFilterItem class. + /// + public ConnectionMonitorEndpointFilterItem() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the + /// ConnectionMonitorEndpointFilterItem class. + /// + /// The type of item included in the filter. + /// Currently only 'AgentAddress' is supported. Possible values + /// include: 'AgentAddress' + /// The address of the filter item. + public ConnectionMonitorEndpointFilterItem(string type = default(string), string address = default(string)) + { + Type = type; + Address = address; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the type of item included in the filter. Currently + /// only 'AgentAddress' is supported. Possible values include: + /// 'AgentAddress' + /// + [JsonProperty(PropertyName = "type")] + public string Type { get; set; } + + /// + /// Gets or sets the address of the filter item. + /// + [JsonProperty(PropertyName = "address")] + public string Address { get; set; } + + } +} diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ConnectionMonitorEndpointFilterItemType.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ConnectionMonitorEndpointFilterItemType.cs new file mode 100644 index 0000000000000..0e5c6175435ce --- /dev/null +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ConnectionMonitorEndpointFilterItemType.cs @@ -0,0 +1,21 @@ +// +// 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 ConnectionMonitorEndpointFilterItemType. + /// + public static class ConnectionMonitorEndpointFilterItemType + { + public const string AgentAddress = "AgentAddress"; + } +} diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ConnectionMonitorEndpointFilterType.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ConnectionMonitorEndpointFilterType.cs new file mode 100644 index 0000000000000..b7faa109bae00 --- /dev/null +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ConnectionMonitorEndpointFilterType.cs @@ -0,0 +1,21 @@ +// +// 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 ConnectionMonitorEndpointFilterType. + /// + public static class ConnectionMonitorEndpointFilterType + { + public const string Include = "Include"; + } +} 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 new file mode 100644 index 0000000000000..913a5fb211138 --- /dev/null +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ConnectionMonitorHttpConfiguration.cs @@ -0,0 +1,105 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Network.Models +{ + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// Describes the HTTP configuration. + /// + public partial class ConnectionMonitorHttpConfiguration + { + /// + /// Initializes a new instance of the + /// ConnectionMonitorHttpConfiguration class. + /// + public ConnectionMonitorHttpConfiguration() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the + /// ConnectionMonitorHttpConfiguration class. + /// + /// The port to connect to. + /// The HTTP method to use. Possible values + /// include: 'Get', 'Post' + /// The path component of the URI. For instance, + /// "/dir1/dir2". + /// The HTTP headers to transmit with the + /// request. + /// HTTP status codes to consider + /// successful. For instance, "2xx,301-304,418". + /// Value indicating whether HTTPS is + /// preferred over HTTP in cases where the choice is not + /// explicit. + public ConnectionMonitorHttpConfiguration(int? port = default(int?), string method = default(string), string path = default(string), IList requestHeaders = default(IList), IList validStatusCodeRanges = default(IList), bool? preferHTTPS = default(bool?)) + { + Port = port; + Method = method; + Path = path; + RequestHeaders = requestHeaders; + ValidStatusCodeRanges = validStatusCodeRanges; + PreferHTTPS = preferHTTPS; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the port to connect to. + /// + [JsonProperty(PropertyName = "port")] + public int? Port { get; set; } + + /// + /// Gets or sets the HTTP method to use. Possible values include: + /// 'Get', 'Post' + /// + [JsonProperty(PropertyName = "method")] + public string Method { get; set; } + + /// + /// Gets or sets the path component of the URI. For instance, + /// "/dir1/dir2". + /// + [JsonProperty(PropertyName = "path")] + public string Path { get; set; } + + /// + /// Gets or sets the HTTP headers to transmit with the request. + /// + [JsonProperty(PropertyName = "requestHeaders")] + public IList RequestHeaders { get; set; } + + /// + /// Gets or sets HTTP status codes to consider successful. For + /// instance, "2xx,301-304,418". + /// + [JsonProperty(PropertyName = "validStatusCodeRanges")] + public IList ValidStatusCodeRanges { get; set; } + + /// + /// Gets or sets value indicating whether HTTPS is preferred over HTTP + /// in cases where the choice is not explicit. + /// + [JsonProperty(PropertyName = "preferHTTPS")] + public bool? PreferHTTPS { get; set; } + + } +} diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ConnectionMonitorIcmpConfiguration.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ConnectionMonitorIcmpConfiguration.cs new file mode 100644 index 0000000000000..be968f378873a --- /dev/null +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ConnectionMonitorIcmpConfiguration.cs @@ -0,0 +1,55 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Network.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// Describes the ICMP configuration. + /// + public partial class ConnectionMonitorIcmpConfiguration + { + /// + /// Initializes a new instance of the + /// ConnectionMonitorIcmpConfiguration class. + /// + public ConnectionMonitorIcmpConfiguration() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the + /// ConnectionMonitorIcmpConfiguration class. + /// + /// Value indicating whether path + /// evaluation with trace route should be disabled. + public ConnectionMonitorIcmpConfiguration(bool? disableTraceRoute = default(bool?)) + { + DisableTraceRoute = disableTraceRoute; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets value indicating whether path evaluation with trace + /// route should be disabled. + /// + [JsonProperty(PropertyName = "disableTraceRoute")] + public bool? DisableTraceRoute { get; set; } + + } +} diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ConnectionMonitorOutput.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ConnectionMonitorOutput.cs new file mode 100644 index 0000000000000..2540a0168f34e --- /dev/null +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ConnectionMonitorOutput.cs @@ -0,0 +1,64 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Network.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// Describes a connection monitor output destination. + /// + public partial class ConnectionMonitorOutput + { + /// + /// Initializes a new instance of the ConnectionMonitorOutput class. + /// + public ConnectionMonitorOutput() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the ConnectionMonitorOutput class. + /// + /// Connection monitor output destination type. + /// Currently, only "Workspace" is supported. Possible values include: + /// 'Workspace' + /// Describes the settings for + /// producing output into a log analytics workspace. + public ConnectionMonitorOutput(string type = default(string), ConnectionMonitorWorkspaceSettings workspaceSettings = default(ConnectionMonitorWorkspaceSettings)) + { + Type = type; + WorkspaceSettings = workspaceSettings; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets connection monitor output destination type. Currently, + /// only "Workspace" is supported. Possible values include: 'Workspace' + /// + [JsonProperty(PropertyName = "type")] + public string Type { get; set; } + + /// + /// Gets or sets describes the settings for producing output into a log + /// analytics workspace. + /// + [JsonProperty(PropertyName = "workspaceSettings")] + public ConnectionMonitorWorkspaceSettings WorkspaceSettings { get; set; } + + } +} 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 da4190ff00a7c..b4920d0f37894 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 @@ -10,8 +10,9 @@ namespace Microsoft.Azure.Management.Network.Models { - using Microsoft.Rest; using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; using System.Linq; /// @@ -40,12 +41,26 @@ public ConnectionMonitorParameters() /// start automatically once created. /// Monitoring interval in /// seconds. - public ConnectionMonitorParameters(ConnectionMonitorSource source, ConnectionMonitorDestination destination, bool? autoStart = default(bool?), int? monitoringIntervalInSeconds = default(int?)) + /// List of connection monitor + /// endpoints. + /// List of connection monitor test + /// configurations. + /// List of connection monitor test + /// groups. + /// List of connection monitor outputs. + /// Optional notes to be associated with the + /// connection monitor. + public ConnectionMonitorParameters(ConnectionMonitorSource source = default(ConnectionMonitorSource), ConnectionMonitorDestination destination = default(ConnectionMonitorDestination), bool? autoStart = default(bool?), int? monitoringIntervalInSeconds = default(int?), IList endpoints = default(IList), IList testConfigurations = default(IList), IList testGroups = default(IList), IList outputs = default(IList), string notes = default(string)) { Source = source; Destination = destination; AutoStart = autoStart; MonitoringIntervalInSeconds = monitoringIntervalInSeconds; + Endpoints = endpoints; + TestConfigurations = testConfigurations; + TestGroups = testGroups; + Outputs = outputs; + Notes = notes; CustomInit(); } @@ -79,25 +94,78 @@ public ConnectionMonitorParameters() [JsonProperty(PropertyName = "monitoringIntervalInSeconds")] public int? MonitoringIntervalInSeconds { get; set; } + /// + /// Gets or sets list of connection monitor endpoints. + /// + [JsonProperty(PropertyName = "endpoints")] + public IList Endpoints { get; set; } + + /// + /// Gets or sets list of connection monitor test configurations. + /// + [JsonProperty(PropertyName = "testConfigurations")] + public IList TestConfigurations { get; set; } + + /// + /// Gets or sets list of connection monitor test groups. + /// + [JsonProperty(PropertyName = "testGroups")] + public IList TestGroups { get; set; } + + /// + /// Gets or sets list of connection monitor outputs. + /// + [JsonProperty(PropertyName = "outputs")] + public IList Outputs { get; set; } + + /// + /// Gets or sets optional notes to be associated with the connection + /// monitor. + /// + [JsonProperty(PropertyName = "notes")] + public string Notes { get; set; } + /// /// Validate the object. /// - /// + /// /// Thrown if validation fails /// public virtual void Validate() { - if (Source == null) + if (Source != null) { - throw new ValidationException(ValidationRules.CannotBeNull, "Source"); + Source.Validate(); } - if (Destination == null) + if (Endpoints != null) { - throw new ValidationException(ValidationRules.CannotBeNull, "Destination"); + foreach (var element in Endpoints) + { + if (element != null) + { + element.Validate(); + } + } } - if (Source != null) + if (TestConfigurations != null) { - Source.Validate(); + foreach (var element1 in TestConfigurations) + { + if (element1 != null) + { + element1.Validate(); + } + } + } + if (TestGroups != null) + { + foreach (var element2 in TestGroups) + { + if (element2 != null) + { + element2.Validate(); + } + } } } } 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 8626fcf1ce30d..cd70e6e802664 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 @@ -35,10 +35,6 @@ public ConnectionMonitorResult() /// /// Initializes a new instance of the ConnectionMonitorResult class. /// - /// Describes the source of connection - /// monitor. - /// Describes the destination of connection - /// monitor. /// Name of the connection monitor. /// ID of the connection monitor. /// A unique read-only string that changes whenever @@ -46,10 +42,23 @@ public ConnectionMonitorResult() /// Connection monitor type. /// Connection monitor location. /// Connection monitor tags. + /// Describes the source of connection + /// monitor. + /// Describes the destination of connection + /// monitor. /// Determines if the connection monitor will /// start automatically once created. /// Monitoring interval in /// seconds. + /// List of connection monitor + /// endpoints. + /// List of connection monitor test + /// configurations. + /// List of connection monitor test + /// groups. + /// List of connection monitor outputs. + /// Optional notes to be associated with the + /// connection monitor. /// The provisioning state of the /// connection monitor. Possible values include: 'Succeeded', /// 'Updating', 'Deleting', 'Failed' @@ -57,7 +66,10 @@ public ConnectionMonitorResult() /// monitor was started. /// The monitoring status of the /// connection monitor. - public ConnectionMonitorResult(ConnectionMonitorSource source, ConnectionMonitorDestination destination, string name = default(string), string id = default(string), string etag = default(string), string type = default(string), string location = default(string), IDictionary tags = default(IDictionary), bool? autoStart = default(bool?), int? monitoringIntervalInSeconds = default(int?), string provisioningState = default(string), System.DateTime? startTime = default(System.DateTime?), string monitoringStatus = default(string)) + /// Type of connection monitor. + /// Possible values include: 'MultiEndpoint', + /// 'SingleSourceDestination' + public ConnectionMonitorResult(string name = default(string), string id = default(string), string etag = default(string), string type = default(string), string location = default(string), IDictionary tags = default(IDictionary), ConnectionMonitorSource source = default(ConnectionMonitorSource), ConnectionMonitorDestination destination = default(ConnectionMonitorDestination), bool? autoStart = default(bool?), int? monitoringIntervalInSeconds = default(int?), IList endpoints = default(IList), IList testConfigurations = default(IList), IList testGroups = default(IList), IList outputs = default(IList), string notes = default(string), string provisioningState = default(string), System.DateTime? startTime = default(System.DateTime?), string monitoringStatus = default(string), string connectionMonitorType = default(string)) { Name = name; Id = id; @@ -69,9 +81,15 @@ public ConnectionMonitorResult() Destination = destination; AutoStart = autoStart; MonitoringIntervalInSeconds = monitoringIntervalInSeconds; + Endpoints = endpoints; + TestConfigurations = testConfigurations; + TestGroups = testGroups; + Outputs = outputs; + Notes = notes; ProvisioningState = provisioningState; StartTime = startTime; MonitoringStatus = monitoringStatus; + ConnectionMonitorType = connectionMonitorType; CustomInit(); } @@ -93,11 +111,11 @@ public ConnectionMonitorResult() public string Id { get; private set; } /// - /// Gets or sets a unique read-only string that changes whenever the - /// resource is updated. + /// Gets a unique read-only string that changes whenever the resource + /// is updated. /// [JsonProperty(PropertyName = "etag")] - public string Etag { get; set; } + public string Etag { get; private set; } /// /// Gets connection monitor type. @@ -143,25 +161,61 @@ public ConnectionMonitorResult() public int? MonitoringIntervalInSeconds { get; set; } /// - /// Gets or sets the provisioning state of the connection monitor. - /// Possible values include: 'Succeeded', 'Updating', 'Deleting', - /// 'Failed' + /// Gets or sets list of connection monitor endpoints. + /// + [JsonProperty(PropertyName = "properties.endpoints")] + public IList Endpoints { get; set; } + + /// + /// Gets or sets list of connection monitor test configurations. + /// + [JsonProperty(PropertyName = "properties.testConfigurations")] + public IList TestConfigurations { get; set; } + + /// + /// Gets or sets list of connection monitor test groups. + /// + [JsonProperty(PropertyName = "properties.testGroups")] + public IList TestGroups { get; set; } + + /// + /// Gets or sets list of connection monitor outputs. + /// + [JsonProperty(PropertyName = "properties.outputs")] + public IList Outputs { get; set; } + + /// + /// Gets or sets optional notes to be associated with the connection + /// monitor. + /// + [JsonProperty(PropertyName = "properties.notes")] + public string Notes { get; set; } + + /// + /// Gets the provisioning state of the connection monitor. Possible + /// values include: 'Succeeded', 'Updating', 'Deleting', 'Failed' /// [JsonProperty(PropertyName = "properties.provisioningState")] - public string ProvisioningState { get; set; } + public string ProvisioningState { get; private set; } /// - /// Gets or sets the date and time when the connection monitor was - /// started. + /// Gets the date and time when the connection monitor was started. /// [JsonProperty(PropertyName = "properties.startTime")] - public System.DateTime? StartTime { get; set; } + public System.DateTime? StartTime { get; private set; } /// - /// Gets or sets the monitoring status of the connection monitor. + /// Gets the monitoring status of the connection monitor. /// [JsonProperty(PropertyName = "properties.monitoringStatus")] - public string MonitoringStatus { get; set; } + public string MonitoringStatus { get; private set; } + + /// + /// Gets type of connection monitor. Possible values include: + /// 'MultiEndpoint', 'SingleSourceDestination' + /// + [JsonProperty(PropertyName = "properties.connectionMonitorType")] + public string ConnectionMonitorType { get; private set; } /// /// Validate the object. @@ -171,17 +225,39 @@ public ConnectionMonitorResult() /// public virtual void Validate() { - if (Source == null) + if (Source != null) + { + Source.Validate(); + } + if (Endpoints != null) { - throw new ValidationException(ValidationRules.CannotBeNull, "Source"); + foreach (var element in Endpoints) + { + if (element != null) + { + element.Validate(); + } + } } - if (Destination == null) + if (TestConfigurations != null) { - throw new ValidationException(ValidationRules.CannotBeNull, "Destination"); + foreach (var element1 in TestConfigurations) + { + if (element1 != null) + { + element1.Validate(); + } + } } - if (Source != null) + if (TestGroups != null) { - Source.Validate(); + foreach (var element2 in TestGroups) + { + if (element2 != null) + { + element2.Validate(); + } + } } } } diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ConnectionMonitorSuccessThreshold.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ConnectionMonitorSuccessThreshold.cs new file mode 100644 index 0000000000000..587c2a2f72932 --- /dev/null +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ConnectionMonitorSuccessThreshold.cs @@ -0,0 +1,66 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Network.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// Describes the threshold for declaring a test successful. + /// + public partial class ConnectionMonitorSuccessThreshold + { + /// + /// Initializes a new instance of the ConnectionMonitorSuccessThreshold + /// class. + /// + public ConnectionMonitorSuccessThreshold() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the ConnectionMonitorSuccessThreshold + /// class. + /// + /// The maximum percentage of failed + /// checks permitted for a test to evaluate as successful. + /// The maximum round-trip time in + /// milliseconds permitted for a test to evaluate as + /// successful. + public ConnectionMonitorSuccessThreshold(int? checksFailedPercent = default(int?), int? roundTripTimeMs = default(int?)) + { + ChecksFailedPercent = checksFailedPercent; + RoundTripTimeMs = roundTripTimeMs; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the maximum percentage of failed checks permitted for + /// a test to evaluate as successful. + /// + [JsonProperty(PropertyName = "checksFailedPercent")] + public int? ChecksFailedPercent { get; set; } + + /// + /// Gets or sets the maximum round-trip time in milliseconds permitted + /// for a test to evaluate as successful. + /// + [JsonProperty(PropertyName = "roundTripTimeMs")] + public int? RoundTripTimeMs { get; set; } + + } +} 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 new file mode 100644 index 0000000000000..aacca86413377 --- /dev/null +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ConnectionMonitorTcpConfiguration.cs @@ -0,0 +1,63 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Network.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// Describes the TCP configuration. + /// + public partial class ConnectionMonitorTcpConfiguration + { + /// + /// Initializes a new instance of the ConnectionMonitorTcpConfiguration + /// class. + /// + public ConnectionMonitorTcpConfiguration() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the ConnectionMonitorTcpConfiguration + /// class. + /// + /// The port to connect to. + /// Value indicating whether path + /// evaluation with trace route should be disabled. + public ConnectionMonitorTcpConfiguration(int? port = default(int?), bool? disableTraceRoute = default(bool?)) + { + Port = port; + DisableTraceRoute = disableTraceRoute; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the port to connect to. + /// + [JsonProperty(PropertyName = "port")] + public int? Port { get; set; } + + /// + /// Gets or sets value indicating whether path evaluation with trace + /// route should be disabled. + /// + [JsonProperty(PropertyName = "disableTraceRoute")] + public bool? DisableTraceRoute { get; set; } + + } +} diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ConnectionMonitorTestConfiguration.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ConnectionMonitorTestConfiguration.cs new file mode 100644 index 0000000000000..ed5d627a67d13 --- /dev/null +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ConnectionMonitorTestConfiguration.cs @@ -0,0 +1,144 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Network.Models +{ + using Microsoft.Rest; + using Newtonsoft.Json; + using System.Linq; + + /// + /// Describes a connection monitor test configuration. + /// + public partial class ConnectionMonitorTestConfiguration + { + /// + /// Initializes a new instance of the + /// ConnectionMonitorTestConfiguration class. + /// + public ConnectionMonitorTestConfiguration() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the + /// ConnectionMonitorTestConfiguration class. + /// + /// The name of the connection monitor test + /// configuration. + /// The protocol to use in test evaluation. + /// Possible values include: 'Tcp', 'Http', 'Icmp' + /// The frequency of test evaluation, in + /// seconds. + /// The preferred IP version to use in + /// test evaluation. The connection monitor may choose to use a + /// different version depending on other parameters. Possible values + /// include: 'IPv4', 'IPv6' + /// The parameters used to perform test + /// evaluation over HTTP. + /// The parameters used to perform test + /// evaluation over TCP. + /// The parameters used to perform test + /// evaluation over ICMP. + /// The threshold for declaring a test + /// successful. + public ConnectionMonitorTestConfiguration(string name, string protocol, int? testFrequencySec = default(int?), string preferredIPVersion = default(string), ConnectionMonitorHttpConfiguration httpConfiguration = default(ConnectionMonitorHttpConfiguration), ConnectionMonitorTcpConfiguration tcpConfiguration = default(ConnectionMonitorTcpConfiguration), ConnectionMonitorIcmpConfiguration icmpConfiguration = default(ConnectionMonitorIcmpConfiguration), ConnectionMonitorSuccessThreshold successThreshold = default(ConnectionMonitorSuccessThreshold)) + { + Name = name; + TestFrequencySec = testFrequencySec; + Protocol = protocol; + PreferredIPVersion = preferredIPVersion; + HttpConfiguration = httpConfiguration; + TcpConfiguration = tcpConfiguration; + IcmpConfiguration = icmpConfiguration; + SuccessThreshold = successThreshold; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the name of the connection monitor test configuration. + /// + [JsonProperty(PropertyName = "name")] + public string Name { get; set; } + + /// + /// Gets or sets the frequency of test evaluation, in seconds. + /// + [JsonProperty(PropertyName = "testFrequencySec")] + public int? TestFrequencySec { get; set; } + + /// + /// Gets or sets the protocol to use in test evaluation. Possible + /// values include: 'Tcp', 'Http', 'Icmp' + /// + [JsonProperty(PropertyName = "protocol")] + public string Protocol { get; set; } + + /// + /// Gets or sets the preferred IP version to use in test evaluation. + /// The connection monitor may choose to use a different version + /// depending on other parameters. Possible values include: 'IPv4', + /// 'IPv6' + /// + [JsonProperty(PropertyName = "preferredIPVersion")] + public string PreferredIPVersion { get; set; } + + /// + /// Gets or sets the parameters used to perform test evaluation over + /// HTTP. + /// + [JsonProperty(PropertyName = "httpConfiguration")] + public ConnectionMonitorHttpConfiguration HttpConfiguration { get; set; } + + /// + /// Gets or sets the parameters used to perform test evaluation over + /// TCP. + /// + [JsonProperty(PropertyName = "tcpConfiguration")] + public ConnectionMonitorTcpConfiguration TcpConfiguration { get; set; } + + /// + /// Gets or sets the parameters used to perform test evaluation over + /// ICMP. + /// + [JsonProperty(PropertyName = "icmpConfiguration")] + public ConnectionMonitorIcmpConfiguration IcmpConfiguration { get; set; } + + /// + /// Gets or sets the threshold for declaring a test successful. + /// + [JsonProperty(PropertyName = "successThreshold")] + public ConnectionMonitorSuccessThreshold SuccessThreshold { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (Name == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "Name"); + } + if (Protocol == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "Protocol"); + } + } + } +} diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ConnectionMonitorTestConfigurationProtocol.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ConnectionMonitorTestConfigurationProtocol.cs new file mode 100644 index 0000000000000..e932e55cfd02b --- /dev/null +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ConnectionMonitorTestConfigurationProtocol.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 ConnectionMonitorTestConfigurationProtocol. + /// + public static class ConnectionMonitorTestConfigurationProtocol + { + public const string Tcp = "Tcp"; + public const string Http = "Http"; + public const string Icmp = "Icmp"; + } +} diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ConnectionMonitorTestGroup.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ConnectionMonitorTestGroup.cs new file mode 100644 index 0000000000000..7665e1cc42751 --- /dev/null +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ConnectionMonitorTestGroup.cs @@ -0,0 +1,115 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Network.Models +{ + using Microsoft.Rest; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// Describes the connection monitor test group. + /// + public partial class ConnectionMonitorTestGroup + { + /// + /// Initializes a new instance of the ConnectionMonitorTestGroup class. + /// + public ConnectionMonitorTestGroup() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the ConnectionMonitorTestGroup class. + /// + /// The name of the connection monitor test + /// group. + /// List of test configuration + /// names. + /// List of source endpoint names. + /// List of destination endpoint + /// names. + /// Value indicating whether test group is + /// disabled. + public ConnectionMonitorTestGroup(string name, IList testConfigurations, IList sources, IList destinations, bool? disable = default(bool?)) + { + Name = name; + Disable = disable; + TestConfigurations = testConfigurations; + Sources = sources; + Destinations = destinations; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the name of the connection monitor test group. + /// + [JsonProperty(PropertyName = "name")] + public string Name { get; set; } + + /// + /// Gets or sets value indicating whether test group is disabled. + /// + [JsonProperty(PropertyName = "disable")] + public bool? Disable { get; set; } + + /// + /// Gets or sets list of test configuration names. + /// + [JsonProperty(PropertyName = "testConfigurations")] + public IList TestConfigurations { get; set; } + + /// + /// Gets or sets list of source endpoint names. + /// + [JsonProperty(PropertyName = "sources")] + public IList Sources { get; set; } + + /// + /// Gets or sets list of destination endpoint names. + /// + [JsonProperty(PropertyName = "destinations")] + public IList Destinations { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (Name == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "Name"); + } + if (TestConfigurations == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "TestConfigurations"); + } + if (Sources == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "Sources"); + } + if (Destinations == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "Destinations"); + } + } + } +} diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ConnectionMonitorType.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ConnectionMonitorType.cs new file mode 100644 index 0000000000000..61ac41f948211 --- /dev/null +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ConnectionMonitorType.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 ConnectionMonitorType. + /// + public static class ConnectionMonitorType + { + public const string MultiEndpoint = "MultiEndpoint"; + public const string SingleSourceDestination = "SingleSourceDestination"; + } +} diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ConnectionMonitorWorkspaceSettings.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ConnectionMonitorWorkspaceSettings.cs new file mode 100644 index 0000000000000..460f4e67b2845 --- /dev/null +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ConnectionMonitorWorkspaceSettings.cs @@ -0,0 +1,55 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Network.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// Describes the settings for producing output into a log analytics + /// workspace. + /// + public partial class ConnectionMonitorWorkspaceSettings + { + /// + /// Initializes a new instance of the + /// ConnectionMonitorWorkspaceSettings class. + /// + public ConnectionMonitorWorkspaceSettings() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the + /// ConnectionMonitorWorkspaceSettings class. + /// + /// Log analytics workspace resource + /// ID. + public ConnectionMonitorWorkspaceSettings(string workspaceResourceId = default(string)) + { + WorkspaceResourceId = workspaceResourceId; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets log analytics workspace resource ID. + /// + [JsonProperty(PropertyName = "workspaceResourceId")] + public string WorkspaceResourceId { get; set; } + + } +} diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ConnectivityParameters.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ConnectivityParameters.cs index 6b46910c19459..4f4a290f61d9f 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ConnectivityParameters.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ConnectivityParameters.cs @@ -30,20 +30,21 @@ public ConnectivityParameters() /// /// Initializes a new instance of the ConnectivityParameters class. /// - /// Describes the source of the - /// connection. - /// Describes the destination of - /// connection. + /// The source of the connection. + /// The destination of connection. /// Network protocol. Possible values include: /// 'Tcp', 'Http', 'Https', 'Icmp' /// Configuration of the /// protocol. - public ConnectivityParameters(ConnectivitySource source, ConnectivityDestination destination, string protocol = default(string), ProtocolConfiguration protocolConfiguration = default(ProtocolConfiguration)) + /// Preferred IP version of the + /// connection. Possible values include: 'IPv4', 'IPv6' + public ConnectivityParameters(ConnectivitySource source, ConnectivityDestination destination, string protocol = default(string), ProtocolConfiguration protocolConfiguration = default(ProtocolConfiguration), string preferredIPVersion = default(string)) { Source = source; Destination = destination; Protocol = protocol; ProtocolConfiguration = protocolConfiguration; + PreferredIPVersion = preferredIPVersion; CustomInit(); } @@ -53,13 +54,13 @@ public ConnectivityParameters() partial void CustomInit(); /// - /// Gets or sets describes the source of the connection. + /// Gets or sets the source of the connection. /// [JsonProperty(PropertyName = "source")] public ConnectivitySource Source { get; set; } /// - /// Gets or sets describes the destination of connection. + /// Gets or sets the destination of connection. /// [JsonProperty(PropertyName = "destination")] public ConnectivityDestination Destination { get; set; } @@ -77,6 +78,13 @@ public ConnectivityParameters() [JsonProperty(PropertyName = "protocolConfiguration")] public ProtocolConfiguration ProtocolConfiguration { get; set; } + /// + /// Gets or sets preferred IP version of the connection. Possible + /// values include: 'IPv4', 'IPv6' + /// + [JsonProperty(PropertyName = "preferredIPVersion")] + public string PreferredIPVersion { get; set; } + /// /// Validate the object. /// diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/DdosSettings.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/DdosSettings.cs index c76dc1eafd828..13be884aa8ffb 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/DdosSettings.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/DdosSettings.cs @@ -35,10 +35,13 @@ public DdosSettings() /// customizability of the public IP. Only standard coverage will have /// the ability to be customized. Possible values include: 'Basic', /// 'Standard' - public DdosSettings(SubResource ddosCustomPolicy = default(SubResource), string protectionCoverage = default(string)) + /// Enables DDoS protection on the public + /// IP. + public DdosSettings(SubResource ddosCustomPolicy = default(SubResource), string protectionCoverage = default(string), bool? protectedIP = default(bool?)) { DdosCustomPolicy = ddosCustomPolicy; ProtectionCoverage = protectionCoverage; + ProtectedIP = protectedIP; CustomInit(); } @@ -61,5 +64,11 @@ public DdosSettings() [JsonProperty(PropertyName = "protectionCoverage")] public string ProtectionCoverage { get; set; } + /// + /// Gets or sets enables DDoS protection on the public IP. + /// + [JsonProperty(PropertyName = "protectedIP")] + public bool? ProtectedIP { get; set; } + } } diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/Delegation.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/Delegation.cs index f9864a2eada53..582412da8826a 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/Delegation.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/Delegation.cs @@ -37,8 +37,8 @@ public Delegation() /// Resource ID. /// The name of the service to whom the /// subnet should be delegated (e.g. Microsoft.Sql/servers). - /// Describes the actions permitted to the - /// service upon delegation. + /// The actions permitted to the service upon + /// delegation. /// The provisioning state of the /// service delegation resource. Possible values include: 'Succeeded', /// 'Updating', 'Deleting', 'Failed' @@ -70,8 +70,7 @@ public Delegation() public string ServiceName { get; set; } /// - /// Gets describes the actions permitted to the service upon - /// delegation. + /// Gets the actions permitted to the service upon delegation. /// [JsonProperty(PropertyName = "properties.actions")] public IList Actions { get; private set; } diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ExpressRouteCircuit.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ExpressRouteCircuit.cs index 9fb1c90c39466..fa614de179af7 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ExpressRouteCircuit.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ExpressRouteCircuit.cs @@ -110,18 +110,18 @@ public ExpressRouteCircuit() public bool? AllowClassicOperations { get; set; } /// - /// Gets the CircuitProvisioningState state of the resource. + /// Gets or sets the CircuitProvisioningState state of the resource. /// [JsonProperty(PropertyName = "properties.circuitProvisioningState")] - public string CircuitProvisioningState { get; private set; } + public string CircuitProvisioningState { get; set; } /// - /// Gets the ServiceProviderProvisioningState state of the resource. - /// Possible values include: 'NotProvisioned', 'Provisioning', - /// 'Provisioned', 'Deprovisioning' + /// Gets or sets the ServiceProviderProvisioningState state of the + /// resource. Possible values include: 'NotProvisioned', + /// 'Provisioning', 'Provisioned', 'Deprovisioning' /// [JsonProperty(PropertyName = "properties.serviceProviderProvisioningState")] - public string ServiceProviderProvisioningState { get; private set; } + public string ServiceProviderProvisioningState { get; set; } /// /// Gets or sets the list of authorizations. @@ -136,10 +136,10 @@ public ExpressRouteCircuit() public IList Peerings { get; set; } /// - /// Gets the ServiceKey. + /// Gets or sets the ServiceKey. /// [JsonProperty(PropertyName = "properties.serviceKey")] - public string ServiceKey { get; private set; } + public string ServiceKey { get; set; } /// /// Gets or sets the ServiceProviderNotes. @@ -189,10 +189,10 @@ public ExpressRouteCircuit() public string GatewayManagerEtag { get; set; } /// - /// Gets flag denoting Global reach status. + /// Gets or sets flag denoting Global reach status. /// [JsonProperty(PropertyName = "properties.globalReachEnabled")] - public bool? GlobalReachEnabled { get; private set; } + public bool? GlobalReachEnabled { get; set; } /// /// Gets a unique read-only string that changes whenever the resource diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ExpressRouteCircuitAuthorization.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ExpressRouteCircuitAuthorization.cs index 6b9ac7eb117f5..ceeeee2051389 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ExpressRouteCircuitAuthorization.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ExpressRouteCircuitAuthorization.cs @@ -65,17 +65,17 @@ public ExpressRouteCircuitAuthorization() partial void CustomInit(); /// - /// Gets the authorization key. + /// Gets or sets the authorization key. /// [JsonProperty(PropertyName = "properties.authorizationKey")] - public string AuthorizationKey { get; private set; } + public string AuthorizationKey { get; set; } /// - /// Gets the authorization use status. Possible values include: + /// Gets or sets the authorization use status. Possible values include: /// 'Available', 'InUse' /// [JsonProperty(PropertyName = "properties.authorizationUseStatus")] - public string AuthorizationUseStatus { get; private set; } + public string AuthorizationUseStatus { get; set; } /// /// Gets the provisioning state of the authorization resource. Possible diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ExpressRouteCircuitConnection.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ExpressRouteCircuitConnection.cs index 90f2ac0ef09bc..c270ce9a27be5 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ExpressRouteCircuitConnection.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ExpressRouteCircuitConnection.cs @@ -105,11 +105,11 @@ public ExpressRouteCircuitConnection() public string AuthorizationKey { get; set; } /// - /// Gets express Route Circuit connection state. Possible values - /// include: 'Connected', 'Connecting', 'Disconnected' + /// Gets or sets express Route Circuit connection state. Possible + /// values include: 'Connected', 'Connecting', 'Disconnected' /// [JsonProperty(PropertyName = "properties.circuitConnectionStatus")] - public string CircuitConnectionStatus { get; private set; } + public string CircuitConnectionStatus { get; set; } /// /// Gets the provisioning state of the express route circuit connection 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 21c2b61a90312..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 @@ -60,7 +60,7 @@ public ExpressRouteCircuitPeering() /// The GatewayManager Etag. /// Who was the last to modify the /// peering. - /// The reference of the RouteFilter + /// The reference to the RouteFilter /// resource. /// The IPv6 peering /// configuration. @@ -126,10 +126,10 @@ public ExpressRouteCircuitPeering() public string State { get; set; } /// - /// Gets the Azure ASN. + /// Gets or sets the Azure ASN. /// [JsonProperty(PropertyName = "properties.azureASN")] - public int? AzureASN { get; private set; } + public int? AzureASN { get; set; } /// /// Gets or sets the peer ASN. @@ -150,16 +150,16 @@ public ExpressRouteCircuitPeering() public string SecondaryPeerAddressPrefix { get; set; } /// - /// Gets the primary port. + /// Gets or sets the primary port. /// [JsonProperty(PropertyName = "properties.primaryAzurePort")] - public string PrimaryAzurePort { get; private set; } + public string PrimaryAzurePort { get; set; } /// - /// Gets the secondary port. + /// Gets or sets the secondary port. /// [JsonProperty(PropertyName = "properties.secondaryAzurePort")] - public string SecondaryAzurePort { get; private set; } + public string SecondaryAzurePort { get; set; } /// /// Gets or sets the shared key. @@ -206,7 +206,7 @@ public ExpressRouteCircuitPeering() public string LastModifiedBy { get; private set; } /// - /// Gets or sets the reference of the RouteFilter resource. + /// Gets or sets the reference to the RouteFilter resource. /// [JsonProperty(PropertyName = "properties.routeFilter")] public SubResource RouteFilter { get; set; } @@ -224,11 +224,11 @@ public ExpressRouteCircuitPeering() public ExpressRouteConnectionId ExpressRouteConnection { get; set; } /// - /// Gets the list of circuit connections associated with Azure Private - /// Peering for this circuit. + /// Gets or sets the list of circuit connections associated with Azure + /// Private Peering for this circuit. /// [JsonProperty(PropertyName = "properties.connections")] - public IList Connections { get; private set; } + public IList Connections { get; set; } /// /// Gets the list of peered circuit connections associated with Azure diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ExpressRouteCircuitPeeringConfig.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ExpressRouteCircuitPeeringConfig.cs index 63f1931a2ae7b..b75c407d7985b 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ExpressRouteCircuitPeeringConfig.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ExpressRouteCircuitPeeringConfig.cs @@ -33,7 +33,7 @@ public ExpressRouteCircuitPeeringConfig() /// Initializes a new instance of the ExpressRouteCircuitPeeringConfig /// class. /// - /// The reference of + /// The reference to /// AdvertisedPublicPrefixes. /// The communities of bgp peering. /// Specified for microsoft peering. @@ -62,7 +62,7 @@ public ExpressRouteCircuitPeeringConfig() partial void CustomInit(); /// - /// Gets or sets the reference of AdvertisedPublicPrefixes. + /// Gets or sets the reference to AdvertisedPublicPrefixes. /// [JsonProperty(PropertyName = "advertisedPublicPrefixes")] public IList AdvertisedPublicPrefixes { get; set; } diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/FlowLog.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/FlowLog.cs new file mode 100644 index 0000000000000..fe3b92106b7b3 --- /dev/null +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/FlowLog.cs @@ -0,0 +1,159 @@ +// +// 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; + + /// + /// A flow log resource. + /// + [Rest.Serialization.JsonTransformation] + public partial class FlowLog : Resource + { + /// + /// Initializes a new instance of the FlowLog class. + /// + public FlowLog() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the FlowLog class. + /// + /// ID of network security group to + /// which flow log will be applied. + /// ID of the storage account which is used to + /// store the flow log. + /// Resource ID. + /// Resource name. + /// Resource type. + /// Resource location. + /// Resource tags. + /// Guid of network security group to + /// which flow log will be applied. + /// Flag to enable/disable flow logging. + /// Parameters that define the retention + /// policy for flow log. + /// Parameters that define the flow log + /// format. + /// Parameters that define the + /// configuration of traffic analytics. + /// The provisioning state of the flow + /// log. Possible values include: 'Succeeded', 'Updating', 'Deleting', + /// 'Failed' + /// A unique read-only string that changes whenever + /// the resource is updated. + public FlowLog(string targetResourceId, string storageId, string id = default(string), string name = default(string), string type = default(string), string location = default(string), IDictionary tags = default(IDictionary), string targetResourceGuid = default(string), bool? enabled = default(bool?), RetentionPolicyParameters retentionPolicy = default(RetentionPolicyParameters), FlowLogFormatParameters format = default(FlowLogFormatParameters), TrafficAnalyticsProperties flowAnalyticsConfiguration = default(TrafficAnalyticsProperties), string provisioningState = default(string), string etag = default(string)) + : base(id, name, type, location, tags) + { + TargetResourceId = targetResourceId; + TargetResourceGuid = targetResourceGuid; + StorageId = storageId; + Enabled = enabled; + RetentionPolicy = retentionPolicy; + Format = format; + FlowAnalyticsConfiguration = flowAnalyticsConfiguration; + ProvisioningState = provisioningState; + Etag = etag; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets ID of network security group to which flow log will be + /// applied. + /// + [JsonProperty(PropertyName = "properties.targetResourceId")] + public string TargetResourceId { get; set; } + + /// + /// Gets guid of network security group to which flow log will be + /// applied. + /// + [JsonProperty(PropertyName = "properties.targetResourceGuid")] + public string TargetResourceGuid { get; private set; } + + /// + /// Gets or sets ID of the storage account which is used to store the + /// flow log. + /// + [JsonProperty(PropertyName = "properties.storageId")] + public string StorageId { get; set; } + + /// + /// Gets or sets flag to enable/disable flow logging. + /// + [JsonProperty(PropertyName = "properties.enabled")] + public bool? Enabled { get; set; } + + /// + /// Gets or sets parameters that define the retention policy for flow + /// log. + /// + [JsonProperty(PropertyName = "properties.retentionPolicy")] + public RetentionPolicyParameters RetentionPolicy { get; set; } + + /// + /// Gets or sets parameters that define the flow log format. + /// + [JsonProperty(PropertyName = "properties.format")] + public FlowLogFormatParameters Format { get; set; } + + /// + /// Gets or sets parameters that define the configuration of traffic + /// analytics. + /// + [JsonProperty(PropertyName = "properties.flowAnalyticsConfiguration")] + public TrafficAnalyticsProperties FlowAnalyticsConfiguration { get; set; } + + /// + /// Gets the provisioning state of the flow log. 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; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (TargetResourceId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "TargetResourceId"); + } + if (StorageId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "StorageId"); + } + } + } +} diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/FlowLogInformation.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/FlowLogInformation.cs index ac43b72d4c188..1605774c944ab 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/FlowLogInformation.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/FlowLogInformation.cs @@ -116,10 +116,6 @@ public virtual void Validate() { throw new ValidationException(ValidationRules.CannotBeNull, "StorageId"); } - if (FlowAnalyticsConfiguration != null) - { - FlowAnalyticsConfiguration.Validate(); - } } } } 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 index e9cf2e65296e2..e55c34709dc66 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/FrontendIpConfiguration.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/FrontendIpConfiguration.cs @@ -50,10 +50,10 @@ public FrontendIPConfiguration() /// Whether the specific /// ipconfiguration is IPv4 or IPv6. Default is taken as IPv4. Possible /// values include: 'IPv4', 'IPv6' - /// The reference of the subnet resource. - /// The reference of the Public IP + /// The reference to the subnet resource. + /// The reference to the Public IP /// resource. - /// The reference of the Public IP Prefix + /// The reference to the Public IP Prefix /// resource. /// The provisioning state of the /// frontend IP configuration resource. Possible values include: @@ -141,19 +141,19 @@ public FrontendIPConfiguration() public string PrivateIPAddressVersion { get; set; } /// - /// Gets or sets the reference of the subnet resource. + /// Gets or sets the reference to the subnet resource. /// [JsonProperty(PropertyName = "properties.subnet")] public Subnet Subnet { get; set; } /// - /// Gets or sets the reference of the Public IP resource. + /// Gets or sets the reference to the Public IP resource. /// [JsonProperty(PropertyName = "properties.publicIPAddress")] public PublicIPAddress PublicIPAddress { get; set; } /// - /// Gets or sets the reference of the Public IP Prefix resource. + /// Gets or sets the reference to the Public IP Prefix resource. /// [JsonProperty(PropertyName = "properties.publicIPPrefix")] public SubResource PublicIPPrefix { get; set; } diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/HTTPConfigurationMethod.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/HTTPConfigurationMethod.cs new file mode 100644 index 0000000000000..7613d51f586eb --- /dev/null +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/HTTPConfigurationMethod.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 HTTPConfigurationMethod. + /// + public static class HTTPConfigurationMethod + { + public const string Get = "Get"; + public const string Post = "Post"; + } +} diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/HTTPHeader.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/HTTPHeader.cs index fcfe02e2f577e..9fa58986ba05f 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/HTTPHeader.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/HTTPHeader.cs @@ -14,7 +14,7 @@ namespace Microsoft.Azure.Management.Network.Models using System.Linq; /// - /// Describes the HTTP header. + /// The HTTP header. /// public partial class HTTPHeader { diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/IPConfiguration.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/IPConfiguration.cs index 84bbf046af8d4..7141647772af8 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/IPConfiguration.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/IPConfiguration.cs @@ -38,8 +38,8 @@ public IPConfiguration() /// The private IP address /// allocation method. Possible values include: 'Static', /// 'Dynamic' - /// The reference of the subnet resource. - /// The reference of the public IP + /// The reference to the subnet resource. + /// The reference to the public IP /// resource. /// The provisioning state of the IP /// configuration resource. Possible values include: 'Succeeded', @@ -81,13 +81,13 @@ public IPConfiguration() public string PrivateIPAllocationMethod { get; set; } /// - /// Gets or sets the reference of the subnet resource. + /// Gets or sets the reference to the subnet resource. /// [JsonProperty(PropertyName = "properties.subnet")] public Subnet Subnet { get; set; } /// - /// Gets or sets the reference of the public IP resource. + /// Gets or sets the reference to the public IP resource. /// [JsonProperty(PropertyName = "properties.publicIPAddress")] public PublicIPAddress PublicIPAddress { get; set; } diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/IPConfigurationProfile.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/IPConfigurationProfile.cs index 4589dc88ea195..775e2edd57354 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/IPConfigurationProfile.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/IPConfigurationProfile.cs @@ -33,7 +33,7 @@ public IPConfigurationProfile() /// Initializes a new instance of the IPConfigurationProfile class. /// /// Resource ID. - /// The reference of the subnet resource to create + /// The reference to the subnet resource to create /// a container network interface ip configuration. /// The provisioning state of the IP /// configuration profile resource. Possible values include: @@ -60,7 +60,7 @@ public IPConfigurationProfile() partial void CustomInit(); /// - /// Gets or sets the reference of the subnet resource to create a + /// Gets or sets the reference to the subnet resource to create a /// container network interface ip configuration. /// [JsonProperty(PropertyName = "properties.subnet")] diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/Ipv6ExpressRouteCircuitPeeringConfig.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/Ipv6ExpressRouteCircuitPeeringConfig.cs index 4c3509e3d8224..8e332cad1db2d 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/Ipv6ExpressRouteCircuitPeeringConfig.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/Ipv6ExpressRouteCircuitPeeringConfig.cs @@ -37,7 +37,7 @@ public Ipv6ExpressRouteCircuitPeeringConfig() /// prefix. /// The Microsoft peering /// configuration. - /// The reference of the RouteFilter + /// The reference to the RouteFilter /// resource. /// The state of peering. Possible values include: /// 'Disabled', 'Enabled' @@ -75,7 +75,7 @@ public Ipv6ExpressRouteCircuitPeeringConfig() public ExpressRouteCircuitPeeringConfig MicrosoftPeeringConfig { get; set; } /// - /// Gets or sets the reference of the RouteFilter resource. + /// Gets or sets the reference to the RouteFilter resource. /// [JsonProperty(PropertyName = "routeFilter")] public SubResource RouteFilter { get; set; } diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/LoadBalancingRule.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/LoadBalancingRule.cs index 031f68778c5dd..ba4e7129fca18 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/LoadBalancingRule.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/LoadBalancingRule.cs @@ -45,7 +45,7 @@ public LoadBalancingRule() /// A reference to a pool of DIPs. /// Inbound traffic is randomly load balanced across IPs in the backend /// IPs. - /// The reference of the load balancer probe used + /// The reference to the load balancer probe used /// by the load balancing rule. /// The load distribution policy for /// this rule. Possible values include: 'Default', 'SourceIP', @@ -117,7 +117,7 @@ public LoadBalancingRule() public SubResource BackendAddressPool { get; set; } /// - /// Gets or sets the reference of the load balancer probe used by the + /// Gets or sets the reference to the load balancer probe used by the /// load balancing rule. /// [JsonProperty(PropertyName = "properties.probe")] diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ManagedRuleGroupOverride.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ManagedRuleGroupOverride.cs index e0dfd2423032e..567730e5ab226 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ManagedRuleGroupOverride.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ManagedRuleGroupOverride.cs @@ -32,7 +32,7 @@ public ManagedRuleGroupOverride() /// /// Initializes a new instance of the ManagedRuleGroupOverride class. /// - /// Describes the managed rule group to + /// The managed rule group to /// override. /// List of rules that will be disabled. If none /// specified, all rules in the group will be disabled. @@ -49,7 +49,7 @@ public ManagedRuleGroupOverride() partial void CustomInit(); /// - /// Gets or sets describes the managed rule group to override. + /// Gets or sets the managed rule group to override. /// [JsonProperty(PropertyName = "ruleGroupName")] public string RuleGroupName { get; set; } diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ManagedRuleOverride.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ManagedRuleOverride.cs index 069fd0efd6278..179730940bad0 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ManagedRuleOverride.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ManagedRuleOverride.cs @@ -31,8 +31,8 @@ public ManagedRuleOverride() /// Initializes a new instance of the ManagedRuleOverride class. /// /// Identifier for the managed rule. - /// Describes the state of the managed rule. - /// Defaults to Disabled if not specified. Possible values include: + /// The state of the managed rule. Defaults to + /// Disabled if not specified. Possible values include: /// 'Disabled' public ManagedRuleOverride(string ruleId, string state = default(string)) { @@ -53,8 +53,8 @@ public ManagedRuleOverride() public string RuleId { get; set; } /// - /// Gets or sets describes the state of the managed rule. Defaults to - /// Disabled if not specified. Possible values include: 'Disabled' + /// Gets or sets the state of the managed rule. Defaults to Disabled if + /// not specified. Possible values include: 'Disabled' /// [JsonProperty(PropertyName = "state")] public string State { get; set; } diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ManagedRulesDefinition.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ManagedRulesDefinition.cs index b555a61096e74..434e935a2a470 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ManagedRulesDefinition.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ManagedRulesDefinition.cs @@ -32,10 +32,10 @@ public ManagedRulesDefinition() /// /// Initializes a new instance of the ManagedRulesDefinition class. /// - /// Describes the ruleSets that are + /// The managed rule sets that are /// associated with the policy. - /// Describes the Exclusions that are applied - /// on the policy. + /// The Exclusions that are applied on the + /// policy. public ManagedRulesDefinition(IList managedRuleSets, IList exclusions = default(IList)) { Exclusions = exclusions; @@ -49,14 +49,13 @@ public ManagedRulesDefinition() partial void CustomInit(); /// - /// Gets or sets describes the Exclusions that are applied on the - /// policy. + /// Gets or sets the Exclusions that are applied on the policy. /// [JsonProperty(PropertyName = "exclusions")] public IList Exclusions { get; set; } /// - /// Gets or sets describes the ruleSets that are associated with the + /// Gets or sets the managed rule sets that are associated with the /// policy. /// [JsonProperty(PropertyName = "managedRuleSets")] diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/MatchCondition.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/MatchCondition.cs index a241d79754273..fddaf2c3c02ba 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/MatchCondition.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/MatchCondition.cs @@ -33,13 +33,13 @@ public MatchCondition() /// Initializes a new instance of the MatchCondition class. /// /// List of match variables. - /// Describes operator to be matched. - /// Possible values include: 'IPMatch', 'Equal', 'Contains', - /// 'LessThan', 'GreaterThan', 'LessThanOrEqual', 'GreaterThanOrEqual', + /// The operator to be matched. Possible + /// values include: 'IPMatch', 'Equal', 'Contains', 'LessThan', + /// 'GreaterThan', 'LessThanOrEqual', 'GreaterThanOrEqual', /// 'BeginsWith', 'EndsWith', 'Regex', 'GeoMatch' /// Match value. - /// Describes if this is negate - /// condition or not. + /// Whether this is negate condition or + /// not. /// List of transforms. public MatchCondition(IList matchVariables, string operatorProperty, IList matchValues, bool? negationConditon = default(bool?), IList transforms = default(IList)) { @@ -63,8 +63,8 @@ public MatchCondition() public IList MatchVariables { get; set; } /// - /// Gets or sets describes operator to be matched. Possible values - /// include: 'IPMatch', 'Equal', 'Contains', 'LessThan', 'GreaterThan', + /// Gets or sets the operator to be matched. Possible values include: + /// 'IPMatch', 'Equal', 'Contains', 'LessThan', 'GreaterThan', /// 'LessThanOrEqual', 'GreaterThanOrEqual', 'BeginsWith', 'EndsWith', /// 'Regex', 'GeoMatch' /// @@ -72,7 +72,7 @@ public MatchCondition() public string OperatorProperty { get; set; } /// - /// Gets or sets describes if this is negate condition or not. + /// Gets or sets whether this is negate condition or not. /// [JsonProperty(PropertyName = "negationConditon")] public bool? NegationConditon { get; set; } diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/MatchVariable.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/MatchVariable.cs index dc8ef2b9d9521..9a72bef650cc6 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/MatchVariable.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/MatchVariable.cs @@ -34,8 +34,7 @@ public MatchVariable() /// 'RemoteAddr', 'RequestMethod', 'QueryString', 'PostArgs', /// 'RequestUri', 'RequestHeaders', 'RequestBody', /// 'RequestCookies' - /// Describes field of the matchVariable - /// collection. + /// The selector of match variable. public MatchVariable(string variableName, string selector = default(string)) { VariableName = variableName; @@ -57,7 +56,7 @@ public MatchVariable() public string VariableName { get; set; } /// - /// Gets or sets describes field of the matchVariable collection. + /// Gets or sets the selector of match variable. /// [JsonProperty(PropertyName = "selector")] public string Selector { get; set; } diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/NetworkInterface.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/NetworkInterface.cs index e8427c6782b3c..dea89967e1294 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/NetworkInterface.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/NetworkInterface.cs @@ -39,9 +39,9 @@ public NetworkInterface() /// Resource type. /// Resource location. /// Resource tags. - /// The reference of a virtual + /// The reference to a virtual /// machine. - /// The reference of the + /// The reference to the /// NetworkSecurityGroup resource. /// A reference to the private endpoint /// to which the network interface is linked. @@ -94,13 +94,13 @@ public NetworkInterface() partial void CustomInit(); /// - /// Gets the reference of a virtual machine. + /// Gets the reference to a virtual machine. /// [JsonProperty(PropertyName = "properties.virtualMachine")] public SubResource VirtualMachine { get; private set; } /// - /// Gets or sets the reference of the NetworkSecurityGroup resource. + /// Gets or sets the reference to the NetworkSecurityGroup resource. /// [JsonProperty(PropertyName = "properties.networkSecurityGroup")] public NetworkSecurityGroup NetworkSecurityGroup { get; set; } 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 index b0ec3c918635e..13e6c1032ee37 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/NetworkInterfaceIpConfiguration.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/NetworkInterfaceIpConfiguration.cs @@ -40,8 +40,8 @@ public NetworkInterfaceIPConfiguration() /// The reference to Virtual Network /// Taps. /// The reference - /// of ApplicationGatewayBackendAddressPool resource. - /// The reference of + /// to ApplicationGatewayBackendAddressPool resource. + /// The reference to /// LoadBalancerBackendAddressPool resource. /// A list of references of /// LoadBalancerInboundNatRules. @@ -103,14 +103,14 @@ public NetworkInterfaceIPConfiguration() public IList VirtualNetworkTaps { get; set; } /// - /// Gets or sets the reference of ApplicationGatewayBackendAddressPool + /// Gets or sets the reference to ApplicationGatewayBackendAddressPool /// resource. /// [JsonProperty(PropertyName = "properties.applicationGatewayBackendAddressPools")] public IList ApplicationGatewayBackendAddressPools { get; set; } /// - /// Gets or sets the reference of LoadBalancerBackendAddressPool + /// Gets or sets the reference to LoadBalancerBackendAddressPool /// resource. /// [JsonProperty(PropertyName = "properties.loadBalancerBackendAddressPools")] diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/NetworkInterfaceTapConfiguration.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/NetworkInterfaceTapConfiguration.cs index 5f7c0b2ca35f7..7be020d7ccf32 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/NetworkInterfaceTapConfiguration.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/NetworkInterfaceTapConfiguration.cs @@ -35,7 +35,7 @@ public NetworkInterfaceTapConfiguration() /// class. /// /// Resource ID. - /// The reference of the Virtual + /// The reference to the Virtual /// Network Tap resource. /// The provisioning state of the /// network interface tap configuration resource. Possible values @@ -63,7 +63,7 @@ public NetworkInterfaceTapConfiguration() partial void CustomInit(); /// - /// Gets or sets the reference of the Virtual Network Tap resource. + /// Gets or sets the reference to the Virtual Network Tap resource. /// [JsonProperty(PropertyName = "properties.virtualNetworkTap")] public VirtualNetworkTap VirtualNetworkTap { get; set; } diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/OutputType.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/OutputType.cs new file mode 100644 index 0000000000000..c6a03895479e5 --- /dev/null +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/OutputType.cs @@ -0,0 +1,21 @@ +// +// 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 OutputType. + /// + public static class OutputType + { + public const string Workspace = "Workspace"; + } +} diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/P2SConnectionConfiguration.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/P2SConnectionConfiguration.cs index 18759bb554247..8959674797f51 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/P2SConnectionConfiguration.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/P2SConnectionConfiguration.cs @@ -33,7 +33,7 @@ public P2SConnectionConfiguration() /// Initializes a new instance of the P2SConnectionConfiguration class. /// /// Resource ID. - /// The reference of the address + /// The reference to the address /// space resource which represents Address space for P2S /// VpnClient. /// The provisioning state of the @@ -60,7 +60,7 @@ public P2SConnectionConfiguration() partial void CustomInit(); /// - /// Gets or sets the reference of the address space resource which + /// Gets or sets the reference to the address space resource which /// represents Address space for P2S VpnClient. /// [JsonProperty(PropertyName = "properties.vpnClientAddressPool")] diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/P2SVpnConnectionRequest.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/P2SVpnConnectionRequest.cs new file mode 100644 index 0000000000000..d99f981b5fcf9 --- /dev/null +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/P2SVpnConnectionRequest.cs @@ -0,0 +1,54 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Network.Models +{ + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// List of p2s vpn connections to be disconnected. + /// + public partial class P2SVpnConnectionRequest + { + /// + /// Initializes a new instance of the P2SVpnConnectionRequest class. + /// + public P2SVpnConnectionRequest() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the P2SVpnConnectionRequest class. + /// + /// List of p2s vpn connection + /// Ids. + public P2SVpnConnectionRequest(IList vpnConnectionIds = default(IList)) + { + VpnConnectionIds = vpnConnectionIds; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets list of p2s vpn connection Ids. + /// + [JsonProperty(PropertyName = "vpnConnectionIds")] + public IList VpnConnectionIds { get; set; } + + } +} 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 54a09d8141811..915f8514424a9 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 @@ -36,8 +36,8 @@ public PacketCapture() /// /// The ID of the targeted resource, only VM is /// currently supported. - /// Describes the storage location for a - /// packet capture session. + /// The storage location for a packet + /// capture session. /// Number of bytes captured per /// packet, the remaining bytes are truncated. /// Maximum size of the capture @@ -88,8 +88,7 @@ public PacketCapture() public int? TimeLimitInSeconds { get; set; } /// - /// Gets or sets describes the storage location for a packet capture - /// session. + /// Gets or sets the storage location for a packet capture session. /// [JsonProperty(PropertyName = "properties.storageLocation")] public PacketCaptureStorageLocation StorageLocation { get; set; } 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 55e56261dbf1c..4869cc83c0982 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 @@ -34,8 +34,8 @@ public PacketCaptureParameters() /// /// The ID of the targeted resource, only VM is /// currently supported. - /// Describes the storage location for a - /// packet capture session. + /// The storage location for a packet + /// capture session. /// Number of bytes captured per /// packet, the remaining bytes are truncated. /// Maximum size of the capture @@ -86,8 +86,7 @@ public PacketCaptureParameters() public int? TimeLimitInSeconds { get; set; } /// - /// Gets or sets describes the storage location for a packet capture - /// session. + /// Gets or sets the storage location for a packet capture session. /// [JsonProperty(PropertyName = "storageLocation")] public PacketCaptureStorageLocation StorageLocation { get; set; } 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 7ea2d2261735f..7aa6a53e290ed 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 @@ -36,8 +36,8 @@ public PacketCaptureResult() /// /// The ID of the targeted resource, only VM is /// currently supported. - /// Describes the storage location for a - /// packet capture session. + /// The storage location for a packet + /// capture session. /// Name of the packet capture session. /// ID of the packet capture operation. /// A unique read-only string that changes whenever @@ -118,8 +118,7 @@ public PacketCaptureResult() public int? TimeLimitInSeconds { get; set; } /// - /// Gets or sets describes the storage location for a packet capture - /// session. + /// Gets or sets the storage location for a packet capture session. /// [JsonProperty(PropertyName = "properties.storageLocation")] public PacketCaptureStorageLocation StorageLocation { get; set; } diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/PacketCaptureStorageLocation.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/PacketCaptureStorageLocation.cs index 49dab5d223e2f..3604622fb276e 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/PacketCaptureStorageLocation.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/PacketCaptureStorageLocation.cs @@ -14,7 +14,7 @@ namespace Microsoft.Azure.Management.Network.Models using System.Linq; /// - /// Describes the storage location for a packet capture session. + /// The storage location for a packet capture session. /// public partial class PacketCaptureStorageLocation { 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 10c69e866cdaf..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 @@ -30,11 +30,9 @@ public PolicySettings() /// /// Initializes a new instance of the PolicySettings class. /// - /// Describes if the policy is in enabled state or - /// disabled state. Possible values include: 'Disabled', - /// 'Enabled' - /// Describes if it is in detection mode or - /// prevention mode at policy level. Possible values include: + /// The state of the policy. Possible values + /// include: 'Disabled', 'Enabled' + /// The mode of the policy. Possible values include: /// 'Prevention', 'Detection' /// Whether to allow WAF to check /// request Body. @@ -58,16 +56,15 @@ public PolicySettings() partial void CustomInit(); /// - /// Gets or sets describes if the policy is in enabled state or - /// disabled state. Possible values include: 'Disabled', 'Enabled' + /// Gets or sets the state of the policy. Possible values include: + /// 'Disabled', 'Enabled' /// [JsonProperty(PropertyName = "state")] public string State { get; set; } /// - /// Gets or sets describes if it is in detection mode or prevention - /// mode at policy level. Possible values include: 'Prevention', - /// 'Detection' + /// Gets or sets the mode of the policy. Possible values include: + /// 'Prevention', 'Detection' /// [JsonProperty(PropertyName = "mode")] public string Mode { get; set; } diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/PreferredIPVersion.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/PreferredIPVersion.cs new file mode 100644 index 0000000000000..3dc6ad964af50 --- /dev/null +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/PreferredIPVersion.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 PreferredIPVersion. + /// + public static class PreferredIPVersion + { + public const string IPv4 = "IPv4"; + public const string IPv6 = "IPv6"; + } +} diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/Subnet.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/Subnet.cs index 266bc0b76b60e..f9a5405bf6f98 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/Subnet.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/Subnet.cs @@ -39,9 +39,9 @@ public Subnet() /// subnet. /// List of address prefixes for the /// subnet. - /// The reference of the + /// The reference to the /// NetworkSecurityGroup resource. - /// The reference of the RouteTable + /// The reference to the RouteTable /// resource. /// Nat gateway associated with this /// subnet. @@ -120,13 +120,13 @@ public Subnet() public IList AddressPrefixes { get; set; } /// - /// Gets or sets the reference of the NetworkSecurityGroup resource. + /// Gets or sets the reference to the NetworkSecurityGroup resource. /// [JsonProperty(PropertyName = "properties.networkSecurityGroup")] public NetworkSecurityGroup NetworkSecurityGroup { get; set; } /// - /// Gets or sets the reference of the RouteTable resource. + /// Gets or sets the reference to the RouteTable resource. /// [JsonProperty(PropertyName = "properties.routeTable")] public RouteTable RouteTable { get; set; } diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/TopologyParameters.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/TopologyParameters.cs index 531c13a20e303..e8e78851dbd17 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/TopologyParameters.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/TopologyParameters.cs @@ -31,9 +31,9 @@ public TopologyParameters() /// /// The name of the target /// resource group to perform topology on. - /// The reference of the Virtual + /// The reference to the Virtual /// Network resource. - /// The reference of the Subnet + /// The reference to the Subnet /// resource. public TopologyParameters(string targetResourceGroupName = default(string), SubResource targetVirtualNetwork = default(SubResource), SubResource targetSubnet = default(SubResource)) { @@ -56,13 +56,13 @@ public TopologyParameters() public string TargetResourceGroupName { get; set; } /// - /// Gets or sets the reference of the Virtual Network resource. + /// Gets or sets the reference to the Virtual Network resource. /// [JsonProperty(PropertyName = "targetVirtualNetwork")] public SubResource TargetVirtualNetwork { get; set; } /// - /// Gets or sets the reference of the Subnet resource. + /// Gets or sets the reference to the Subnet resource. /// [JsonProperty(PropertyName = "targetSubnet")] public SubResource TargetSubnet { get; set; } diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/TrafficAnalyticsConfigurationProperties.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/TrafficAnalyticsConfigurationProperties.cs index 9590e338eff8d..637d3584cad79 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/TrafficAnalyticsConfigurationProperties.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/TrafficAnalyticsConfigurationProperties.cs @@ -42,7 +42,7 @@ public TrafficAnalyticsConfigurationProperties() /// The interval in minutes /// which would decide how frequently TA service should do flow /// analytics. - public TrafficAnalyticsConfigurationProperties(bool enabled, string workspaceId = default(string), string workspaceRegion = default(string), string workspaceResourceId = default(string), int? trafficAnalyticsInterval = default(int?)) + public TrafficAnalyticsConfigurationProperties(bool? enabled = default(bool?), string workspaceId = default(string), string workspaceRegion = default(string), string workspaceResourceId = default(string), int? trafficAnalyticsInterval = default(int?)) { Enabled = enabled; WorkspaceId = workspaceId; @@ -61,7 +61,7 @@ public TrafficAnalyticsConfigurationProperties() /// Gets or sets flag to enable/disable traffic analytics. /// [JsonProperty(PropertyName = "enabled")] - public bool Enabled { get; set; } + public bool? Enabled { get; set; } /// /// Gets or sets the resource guid of the attached workspace. @@ -88,15 +88,5 @@ public TrafficAnalyticsConfigurationProperties() [JsonProperty(PropertyName = "trafficAnalyticsInterval")] public int? TrafficAnalyticsInterval { get; set; } - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - //Nothing to validate - } } } diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/TrafficAnalyticsProperties.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/TrafficAnalyticsProperties.cs index 81710a0507af7..e011c900c8268 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/TrafficAnalyticsProperties.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/TrafficAnalyticsProperties.cs @@ -10,7 +10,6 @@ namespace Microsoft.Azure.Management.Network.Models { - using Microsoft.Rest; using Newtonsoft.Json; using System.Linq; @@ -32,7 +31,7 @@ public TrafficAnalyticsProperties() /// /// Parameters /// that define the configuration of traffic analytics. - public TrafficAnalyticsProperties(TrafficAnalyticsConfigurationProperties networkWatcherFlowAnalyticsConfiguration) + public TrafficAnalyticsProperties(TrafficAnalyticsConfigurationProperties networkWatcherFlowAnalyticsConfiguration = default(TrafficAnalyticsConfigurationProperties)) { NetworkWatcherFlowAnalyticsConfiguration = networkWatcherFlowAnalyticsConfiguration; CustomInit(); @@ -50,22 +49,5 @@ public TrafficAnalyticsProperties(TrafficAnalyticsConfigurationProperties networ [JsonProperty(PropertyName = "networkWatcherFlowAnalyticsConfiguration")] public TrafficAnalyticsConfigurationProperties NetworkWatcherFlowAnalyticsConfiguration { get; set; } - /// - /// Validate the object. - /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (NetworkWatcherFlowAnalyticsConfiguration == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "NetworkWatcherFlowAnalyticsConfiguration"); - } - if (NetworkWatcherFlowAnalyticsConfiguration != null) - { - NetworkWatcherFlowAnalyticsConfiguration.Validate(); - } - } } } diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/Usage.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/Usage.cs index 76ee7dabcf424..06aa23ed16140 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/Usage.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/Usage.cs @@ -15,7 +15,7 @@ namespace Microsoft.Azure.Management.Network.Models using System.Linq; /// - /// Describes network resource usage. + /// The network resource usage. /// public partial class Usage { diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/VirtualNetworkGateway.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/VirtualNetworkGateway.cs index 141be4baee969..81be4f143ef2f 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/VirtualNetworkGateway.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/VirtualNetworkGateway.cs @@ -52,19 +52,19 @@ public VirtualNetworkGateway() /// Whether BGP is enabled for this virtual /// network gateway or not. /// ActiveActive flag. - /// The reference of the + /// The reference to the /// LocalNetworkGateway resource which represents local network site /// having default routes. Assign Null value in case of removing /// existing default site setting. - /// The reference of the VirtualNetworkGatewaySku + /// The reference to the VirtualNetworkGatewaySku /// resource which represents the SKU selected for Virtual network /// gateway. - /// The reference of the + /// The reference to the /// VpnClientConfiguration resource which represents the P2S VpnClient /// configurations. /// Virtual network gateway's BGP speaker /// settings. - /// The reference of the address space + /// The reference to the address space /// resource which represents the custom routes address space specified /// by the customer for virtual network gateway and VpnClient. /// The resource GUID property of the @@ -147,7 +147,7 @@ public VirtualNetworkGateway() public bool? ActiveActive { get; set; } /// - /// Gets or sets the reference of the LocalNetworkGateway resource + /// Gets or sets the reference to the LocalNetworkGateway resource /// which represents local network site having default routes. Assign /// Null value in case of removing existing default site setting. /// @@ -155,14 +155,14 @@ public VirtualNetworkGateway() public SubResource GatewayDefaultSite { get; set; } /// - /// Gets or sets the reference of the VirtualNetworkGatewaySku resource + /// Gets or sets the reference to the VirtualNetworkGatewaySku resource /// which represents the SKU selected for Virtual network gateway. /// [JsonProperty(PropertyName = "properties.sku")] public VirtualNetworkGatewaySku Sku { get; set; } /// - /// Gets or sets the reference of the VpnClientConfiguration resource + /// Gets or sets the reference to the VpnClientConfiguration resource /// which represents the P2S VpnClient configurations. /// [JsonProperty(PropertyName = "properties.vpnClientConfiguration")] @@ -175,7 +175,7 @@ public VirtualNetworkGateway() public BgpSettings BgpSettings { get; set; } /// - /// Gets or sets the reference of the address space resource which + /// Gets or sets the reference to the address space resource which /// represents the custom routes address space specified by the /// customer for virtual network gateway and VpnClient. /// 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 index 7748179f02d30..2e902854fafae 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/VirtualNetworkGatewayIpConfiguration.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/VirtualNetworkGatewayIpConfiguration.cs @@ -38,8 +38,8 @@ public VirtualNetworkGatewayIPConfiguration() /// The private IP address /// allocation method. Possible values include: 'Static', /// 'Dynamic' - /// The reference of the subnet resource. - /// The reference of the public IP + /// The reference to the subnet resource. + /// The reference to the public IP /// resource. /// The provisioning state of the /// virtual network gateway IP configuration resource. Possible values @@ -74,13 +74,13 @@ public VirtualNetworkGatewayIPConfiguration() public string PrivateIPAllocationMethod { get; set; } /// - /// Gets or sets the reference of the subnet resource. + /// Gets or sets the reference to the subnet resource. /// [JsonProperty(PropertyName = "properties.subnet")] public SubResource Subnet { get; set; } /// - /// Gets or sets the reference of the public IP resource. + /// Gets or sets the reference to the public IP resource. /// [JsonProperty(PropertyName = "properties.publicIPAddress")] public SubResource PublicIPAddress { get; 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 3352ffb9be8f1..f77aa0eb5e9c9 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 @@ -47,12 +47,12 @@ public VirtualNetworkPeering() /// will use gateways of remote virtual network for transit. Only one /// peering can have this flag set to true. This flag cannot be set if /// virtual network already has a gateway. - /// The reference of the remote + /// The reference to the remote /// virtual network. The remote virtual network can be in the same or /// 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 of the remote + /// The reference to the remote /// virtual network address space. /// The status of the virtual network /// peering. Possible values include: 'Initiated', 'Connected', @@ -120,7 +120,7 @@ public VirtualNetworkPeering() public bool? UseRemoteGateways { get; set; } /// - /// Gets or sets the reference of the remote virtual network. The + /// Gets or sets the reference to the remote virtual network. The /// remote virtual network can be in the same or 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). @@ -129,7 +129,7 @@ public VirtualNetworkPeering() public SubResource RemoteVirtualNetwork { get; set; } /// - /// Gets or sets the reference of the remote virtual network address + /// Gets or sets the reference to the remote virtual network address /// space. /// [JsonProperty(PropertyName = "properties.remoteAddressSpace")] diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/VpnClientConfiguration.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/VpnClientConfiguration.cs index 8a8f3e77a1a2d..90fc2b23187a2 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/VpnClientConfiguration.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/VpnClientConfiguration.cs @@ -31,7 +31,7 @@ public VpnClientConfiguration() /// /// Initializes a new instance of the VpnClientConfiguration class. /// - /// The reference of the address + /// The reference to the address /// space resource which represents Address space for P2S /// VpnClient. /// VpnClientRootCertificate @@ -78,7 +78,7 @@ public VpnClientConfiguration() partial void CustomInit(); /// - /// Gets or sets the reference of the address space resource which + /// Gets or sets the reference to the address space resource which /// represents Address space for P2S VpnClient. /// [JsonProperty(PropertyName = "vpnClientAddressPool")] diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/WebApplicationFirewallCustomRule.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/WebApplicationFirewallCustomRule.cs index 3bdd5bfa02f78..de545296509b6 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/WebApplicationFirewallCustomRule.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/WebApplicationFirewallCustomRule.cs @@ -34,11 +34,10 @@ public WebApplicationFirewallCustomRule() /// Initializes a new instance of the WebApplicationFirewallCustomRule /// class. /// - /// Describes priority of the rule. Rules with a - /// lower value will be evaluated before rules with a higher - /// value. - /// Describes type of rule. Possible values - /// include: 'MatchRule', 'Invalid' + /// Priority of the rule. Rules with a lower + /// value will be evaluated before rules with a higher value. + /// The rule type. Possible values include: + /// 'MatchRule', 'Invalid' /// List of match conditions. /// Type of Actions. Possible values include: /// 'Allow', 'Block', 'Log' @@ -77,15 +76,15 @@ public WebApplicationFirewallCustomRule() public string Etag { get; private set; } /// - /// Gets or sets describes priority of the rule. Rules with a lower - /// value will be evaluated before rules with a higher value. + /// Gets or sets priority of the rule. Rules with a lower value will be + /// evaluated before rules with a higher value. /// [JsonProperty(PropertyName = "priority")] public int Priority { get; set; } /// - /// Gets or sets describes type of rule. Possible values include: - /// 'MatchRule', 'Invalid' + /// Gets or sets the rule type. Possible values include: 'MatchRule', + /// 'Invalid' /// [JsonProperty(PropertyName = "ruleType")] public string RuleType { get; set; } diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/WebApplicationFirewallPolicy.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/WebApplicationFirewallPolicy.cs index e6733ff542efc..be96c86f8e8e5 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/WebApplicationFirewallPolicy.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/WebApplicationFirewallPolicy.cs @@ -43,9 +43,8 @@ public WebApplicationFirewallPolicy() /// Resource type. /// Resource location. /// Resource tags. - /// Describes policySettings for - /// policy. - /// Describes custom rules inside the + /// The PolicySettings for policy. + /// The custom rules inside the /// policy. /// A collection of references to /// application gateways. @@ -80,13 +79,13 @@ public WebApplicationFirewallPolicy() partial void CustomInit(); /// - /// Gets or sets describes policySettings for policy. + /// Gets or sets the PolicySettings for policy. /// [JsonProperty(PropertyName = "properties.policySettings")] public PolicySettings PolicySettings { get; set; } /// - /// Gets or sets describes custom rules inside the policy. + /// Gets or sets the custom rules inside the policy. /// [JsonProperty(PropertyName = "properties.customRules")] public IList CustomRules { get; set; } diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/NatGatewaysOperations.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/NatGatewaysOperations.cs index bf60fcc339161..d8c9740cb8965 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 = "2019-09-01"; + string apiVersion = "2019-11-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 = "2019-09-01"; + string apiVersion = "2019-11-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 = "2019-09-01"; + string apiVersion = "2019-11-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 = "2019-09-01"; + string apiVersion = "2019-11-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 = "2019-09-01"; + string apiVersion = "2019-11-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 = "2019-09-01"; + string apiVersion = "2019-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/NetworkInterfaceIPConfigurationsOperations.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/NetworkInterfaceIPConfigurationsOperations.cs index 5a895eb657b37..df9c8d0f99d0a 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 = "2019-09-01"; + string apiVersion = "2019-11-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 = "2019-09-01"; + string apiVersion = "2019-11-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 bb7de9ad8079e..62885cc62037f 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 = "2019-09-01"; + string apiVersion = "2019-11-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 c5a83067f9134..ed71f9711c3f4 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 = "2019-09-01"; + string apiVersion = "2019-11-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 = "2019-09-01"; + string apiVersion = "2019-11-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 = "2019-09-01"; + string apiVersion = "2019-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -740,7 +740,7 @@ internal NetworkInterfaceTapConfigurationsOperations(NetworkManagementClient cli { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-09-01"; + string apiVersion = "2019-11-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 bd51b36e51cad..ac79daf49c12c 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 = "2019-09-01"; + string apiVersion = "2019-11-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 = "2019-09-01"; + string apiVersion = "2019-11-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 = "2019-09-01"; + string apiVersion = "2019-11-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 = "2019-09-01"; + string apiVersion = "2019-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -2022,7 +2022,7 @@ internal NetworkInterfacesOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-09-01"; + string apiVersion = "2019-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -2205,7 +2205,7 @@ internal NetworkInterfacesOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-09-01"; + string apiVersion = "2019-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -2424,7 +2424,7 @@ internal NetworkInterfacesOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-09-01"; + string apiVersion = "2019-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -2618,7 +2618,7 @@ internal NetworkInterfacesOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-09-01"; + string apiVersion = "2019-11-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 5f06024c5fd60..3813f3a7b322b 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/NetworkManagementClient.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/NetworkManagementClient.cs @@ -313,6 +313,11 @@ public partial class NetworkManagementClient : ServiceClient public virtual IConnectionMonitorsOperations ConnectionMonitors { get; private set; } + /// + /// Gets the IFlowLogsOperations. + /// + public virtual IFlowLogsOperations FlowLogs { get; private set; } + /// /// Gets the IOperations. /// @@ -806,6 +811,7 @@ private void Initialize() NetworkWatchers = new NetworkWatchersOperations(this); PacketCaptures = new PacketCapturesOperations(this); ConnectionMonitors = new ConnectionMonitorsOperations(this); + FlowLogs = new FlowLogsOperations(this); Operations = new Operations(this); PrivateEndpoints = new PrivateEndpointsOperations(this); AvailablePrivateEndpointTypes = new AvailablePrivateEndpointTypesOperations(this); @@ -931,7 +937,7 @@ private void Initialize() { throw new ValidationException(ValidationRules.CannotBeNull, "this.SubscriptionId"); } - string apiVersion = "2019-09-01"; + string apiVersion = "2019-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1129,7 +1135,7 @@ private void Initialize() { throw new ValidationException(ValidationRules.CannotBeNull, "virtualWANName"); } - string apiVersion = "2019-09-01"; + string apiVersion = "2019-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1363,7 +1369,7 @@ private void Initialize() { throw new ValidationException(ValidationRules.CannotBeNull, "vpnClientParams"); } - string apiVersion = "2019-09-01"; + string apiVersion = "2019-11-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 21a2057f02a40..14e57adaf5286 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 = "2019-09-01"; + string apiVersion = "2019-11-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 = "2019-09-01"; + string apiVersion = "2019-11-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 = "2019-09-01"; + string apiVersion = "2019-11-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 = "2019-09-01"; + string apiVersion = "2019-11-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 = "2019-09-01"; + string apiVersion = "2019-11-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 = "2019-09-01"; + string apiVersion = "2019-11-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 5e301fae6ed6c..5e0b39072a3a4 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 = "2019-09-01"; + string apiVersion = "2019-11-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 = "2019-09-01"; + string apiVersion = "2019-11-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 = "2019-09-01"; + string apiVersion = "2019-11-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 = "2019-09-01"; + string apiVersion = "2019-11-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 = "2019-09-01"; + string apiVersion = "2019-11-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 = "2019-09-01"; + string apiVersion = "2019-11-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 ff8b6d9f8b0ae..9fdd5cb630b4d 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 = "2019-09-01"; + string apiVersion = "2019-11-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 = "2019-09-01"; + string apiVersion = "2019-11-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 = "2019-09-01"; + string apiVersion = "2019-11-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 = "2019-09-01"; + string apiVersion = "2019-11-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 = "2019-09-01"; + string apiVersion = "2019-11-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 = "2019-09-01"; + string apiVersion = "2019-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1446,8 +1446,9 @@ internal NetworkWatchersOperations(NetworkManagementClient client) } /// - /// Gets the relative latency score for internet service providers from a - /// specified location to Azure regions. + /// NOTE: This feature is currently in preview and still being tested for + /// stability. Gets the relative latency score for internet service providers + /// from a specified location to Azure regions. /// /// /// The name of the network watcher resource group. @@ -1472,8 +1473,9 @@ internal NetworkWatchersOperations(NetworkManagementClient client) } /// - /// Lists all available internet service providers for a specified Azure - /// region. + /// NOTE: This feature is currently in preview and still being tested for + /// stability. Lists all available internet service providers for a specified + /// Azure region. /// /// /// The name of the network watcher resource group. @@ -1569,7 +1571,7 @@ internal NetworkWatchersOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-09-01"; + string apiVersion = "2019-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1752,7 +1754,7 @@ internal NetworkWatchersOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-09-01"; + string apiVersion = "2019-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1977,7 +1979,7 @@ internal NetworkWatchersOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-09-01"; + string apiVersion = "2019-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -2202,7 +2204,7 @@ internal NetworkWatchersOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-09-01"; + string apiVersion = "2019-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -2427,7 +2429,7 @@ internal NetworkWatchersOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-09-01"; + string apiVersion = "2019-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -2652,7 +2654,7 @@ internal NetworkWatchersOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-09-01"; + string apiVersion = "2019-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -2878,7 +2880,7 @@ internal NetworkWatchersOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-09-01"; + string apiVersion = "2019-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -3105,7 +3107,7 @@ internal NetworkWatchersOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-09-01"; + string apiVersion = "2019-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -3332,7 +3334,7 @@ internal NetworkWatchersOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-09-01"; + string apiVersion = "2019-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -3503,8 +3505,9 @@ internal NetworkWatchersOperations(NetworkManagementClient client) } /// - /// Gets the relative latency score for internet service providers from a - /// specified location to Azure regions. + /// NOTE: This feature is currently in preview and still being tested for + /// stability. Gets the relative latency score for internet service providers + /// from a specified location to Azure regions. /// /// /// The name of the network watcher resource group. @@ -3558,7 +3561,7 @@ internal NetworkWatchersOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-09-01"; + string apiVersion = "2019-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -3729,8 +3732,9 @@ internal NetworkWatchersOperations(NetworkManagementClient client) } /// - /// Lists all available internet service providers for a specified Azure - /// region. + /// NOTE: This feature is currently in preview and still being tested for + /// stability. Lists all available internet service providers for a specified + /// Azure region. /// /// /// The name of the network watcher resource group. @@ -3780,7 +3784,7 @@ internal NetworkWatchersOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-09-01"; + string apiVersion = "2019-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -4011,7 +4015,7 @@ internal NetworkWatchersOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-09-01"; + string apiVersion = "2019-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/NetworkWatchersOperationsExtensions.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/NetworkWatchersOperationsExtensions.cs index 1169e6a545c4b..67c6c658e4bf1 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/NetworkWatchersOperationsExtensions.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/NetworkWatchersOperationsExtensions.cs @@ -681,8 +681,9 @@ public static ConnectivityInformation CheckConnectivity(this INetworkWatchersOpe } /// - /// Gets the relative latency score for internet service providers from a - /// specified location to Azure regions. + /// NOTE: This feature is currently in preview and still being tested for + /// stability. Gets the relative latency score for internet service providers + /// from a specified location to Azure regions. /// /// /// The operations group for this extension method. @@ -702,8 +703,9 @@ public static AzureReachabilityReport GetAzureReachabilityReport(this INetworkWa } /// - /// Gets the relative latency score for internet service providers from a - /// specified location to Azure regions. + /// NOTE: This feature is currently in preview and still being tested for + /// stability. Gets the relative latency score for internet service providers + /// from a specified location to Azure regions. /// /// /// The operations group for this extension method. @@ -729,8 +731,9 @@ public static AzureReachabilityReport GetAzureReachabilityReport(this INetworkWa } /// - /// Lists all available internet service providers for a specified Azure - /// region. + /// NOTE: This feature is currently in preview and still being tested for + /// stability. Lists all available internet service providers for a specified + /// Azure region. /// /// /// The operations group for this extension method. @@ -750,8 +753,9 @@ public static AvailableProvidersList ListAvailableProviders(this INetworkWatcher } /// - /// Lists all available internet service providers for a specified Azure - /// region. + /// NOTE: This feature is currently in preview and still being tested for + /// stability. Lists all available internet service providers for a specified + /// Azure region. /// /// /// The operations group for this extension method. @@ -1252,8 +1256,9 @@ public static ConnectivityInformation BeginCheckConnectivity(this INetworkWatche } /// - /// Gets the relative latency score for internet service providers from a - /// specified location to Azure regions. + /// NOTE: This feature is currently in preview and still being tested for + /// stability. Gets the relative latency score for internet service providers + /// from a specified location to Azure regions. /// /// /// The operations group for this extension method. @@ -1273,8 +1278,9 @@ public static AzureReachabilityReport BeginGetAzureReachabilityReport(this INetw } /// - /// Gets the relative latency score for internet service providers from a - /// specified location to Azure regions. + /// NOTE: This feature is currently in preview and still being tested for + /// stability. Gets the relative latency score for internet service providers + /// from a specified location to Azure regions. /// /// /// The operations group for this extension method. @@ -1300,8 +1306,9 @@ public static AzureReachabilityReport BeginGetAzureReachabilityReport(this INetw } /// - /// Lists all available internet service providers for a specified Azure - /// region. + /// NOTE: This feature is currently in preview and still being tested for + /// stability. Lists all available internet service providers for a specified + /// Azure region. /// /// /// The operations group for this extension method. @@ -1321,8 +1328,9 @@ public static AvailableProvidersList BeginListAvailableProviders(this INetworkWa } /// - /// Lists all available internet service providers for a specified Azure - /// region. + /// NOTE: This feature is currently in preview and still being tested for + /// stability. Lists all available internet service providers for a specified + /// Azure region. /// /// /// The operations group for this extension method. 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 a9a09f0a3e752..4e58b4a6b6cc4 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 = "2019-09-01"; + string apiVersion = "2019-11-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 5cdd913369730..1c7341b0f3c0f 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 = "2019-09-01"; + string apiVersion = "2019-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -321,7 +321,7 @@ internal P2sVpnGatewaysOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "p2SVpnGatewayParameters"); } - string apiVersion = "2019-09-01"; + string apiVersion = "2019-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -537,7 +537,7 @@ internal P2sVpnGatewaysOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); } - string apiVersion = "2019-09-01"; + string apiVersion = "2019-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -715,7 +715,7 @@ internal P2sVpnGatewaysOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-09-01"; + string apiVersion = "2019-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -937,6 +937,32 @@ internal P2sVpnGatewaysOperations(NetworkManagementClient client) return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); } + /// + /// Disconnect P2S vpn connections of the virtual wan P2SVpnGateway in the + /// specified resource group. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the P2S Vpn Gateway. + /// + /// + /// The parameters are supplied to disconnect p2s vpn connections. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task DisconnectP2sVpnConnectionsWithHttpMessagesAsync(string resourceGroupName, string p2sVpnGatewayName, P2SVpnConnectionRequest request, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send request + AzureOperationResponse _response = await BeginDisconnectP2sVpnConnectionsWithHttpMessagesAsync(resourceGroupName, p2sVpnGatewayName, request, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + /// /// Creates a virtual wan p2s vpn gateway if it doesn't exist else updates the /// existing gateway. @@ -989,7 +1015,7 @@ internal P2sVpnGatewaysOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "p2SVpnGatewayParameters"); } - string apiVersion = "2019-09-01"; + string apiVersion = "2019-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1205,7 +1231,7 @@ internal P2sVpnGatewaysOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "gatewayName"); } - string apiVersion = "2019-09-01"; + string apiVersion = "2019-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1390,7 +1416,7 @@ internal P2sVpnGatewaysOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-09-01"; + string apiVersion = "2019-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1592,7 +1618,7 @@ internal P2sVpnGatewaysOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-09-01"; + string apiVersion = "2019-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1794,7 +1820,7 @@ internal P2sVpnGatewaysOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "request"); } - string apiVersion = "2019-09-01"; + string apiVersion = "2019-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1951,6 +1977,194 @@ internal P2sVpnGatewaysOperations(NetworkManagementClient client) return _result; } + /// + /// Disconnect P2S vpn connections of the virtual wan P2SVpnGateway in the + /// specified resource group. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the P2S Vpn Gateway. + /// + /// + /// The parameters are supplied to disconnect p2s vpn connections. + /// + /// + /// 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 BeginDisconnectP2sVpnConnectionsWithHttpMessagesAsync(string resourceGroupName, string p2sVpnGatewayName, P2SVpnConnectionRequest request, 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 (p2sVpnGatewayName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "p2sVpnGatewayName"); + } + if (request == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "request"); + } + string apiVersion = "2019-11-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("p2sVpnGatewayName", p2sVpnGatewayName); + tracingParameters.Add("request", request); + tracingParameters.Add("apiVersion", apiVersion); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "BeginDisconnectP2sVpnConnections", 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/p2svpnGateways/{p2sVpnGatewayName}/disconnectP2sVpnConnections").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{p2sVpnGatewayName}", System.Uri.EscapeDataString(p2sVpnGatewayName)); + List _queryParameters = new List(); + if (apiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("POST"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + if(request != null) + { + _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(request, 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(); + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + /// /// Lists all the P2SVpnGateways in a resource group. /// diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/P2sVpnGatewaysOperationsExtensions.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/P2sVpnGatewaysOperationsExtensions.cs index f28af3e469e33..44771d2222092 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/P2sVpnGatewaysOperationsExtensions.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/P2sVpnGatewaysOperationsExtensions.cs @@ -394,6 +394,51 @@ public static P2SVpnConnectionHealth GetP2sVpnConnectionHealthDetailed(this IP2s } } + /// + /// Disconnect P2S vpn connections of the virtual wan P2SVpnGateway in the + /// specified resource group. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the P2S Vpn Gateway. + /// + /// + /// The parameters are supplied to disconnect p2s vpn connections. + /// + public static void DisconnectP2sVpnConnections(this IP2sVpnGatewaysOperations operations, string resourceGroupName, string p2sVpnGatewayName, P2SVpnConnectionRequest request) + { + operations.DisconnectP2sVpnConnectionsAsync(resourceGroupName, p2sVpnGatewayName, request).GetAwaiter().GetResult(); + } + + /// + /// Disconnect P2S vpn connections of the virtual wan P2SVpnGateway in the + /// specified resource group. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the P2S Vpn Gateway. + /// + /// + /// The parameters are supplied to disconnect p2s vpn connections. + /// + /// + /// The cancellation token. + /// + public static async Task DisconnectP2sVpnConnectionsAsync(this IP2sVpnGatewaysOperations operations, string resourceGroupName, string p2sVpnGatewayName, P2SVpnConnectionRequest request, CancellationToken cancellationToken = default(CancellationToken)) + { + (await operations.DisconnectP2sVpnConnectionsWithHttpMessagesAsync(resourceGroupName, p2sVpnGatewayName, request, null, cancellationToken).ConfigureAwait(false)).Dispose(); + } + /// /// Creates a virtual wan p2s vpn gateway if it doesn't exist else updates the /// existing gateway. @@ -619,6 +664,51 @@ public static P2SVpnConnectionHealth BeginGetP2sVpnConnectionHealthDetailed(this } } + /// + /// Disconnect P2S vpn connections of the virtual wan P2SVpnGateway in the + /// specified resource group. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the P2S Vpn Gateway. + /// + /// + /// The parameters are supplied to disconnect p2s vpn connections. + /// + public static void BeginDisconnectP2sVpnConnections(this IP2sVpnGatewaysOperations operations, string resourceGroupName, string p2sVpnGatewayName, P2SVpnConnectionRequest request) + { + operations.BeginDisconnectP2sVpnConnectionsAsync(resourceGroupName, p2sVpnGatewayName, request).GetAwaiter().GetResult(); + } + + /// + /// Disconnect P2S vpn connections of the virtual wan P2SVpnGateway in the + /// specified resource group. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the P2S Vpn Gateway. + /// + /// + /// The parameters are supplied to disconnect p2s vpn connections. + /// + /// + /// The cancellation token. + /// + public static async Task BeginDisconnectP2sVpnConnectionsAsync(this IP2sVpnGatewaysOperations operations, string resourceGroupName, string p2sVpnGatewayName, P2SVpnConnectionRequest request, CancellationToken cancellationToken = default(CancellationToken)) + { + (await operations.BeginDisconnectP2sVpnConnectionsWithHttpMessagesAsync(resourceGroupName, p2sVpnGatewayName, request, null, cancellationToken).ConfigureAwait(false)).Dispose(); + } + /// /// Lists all the P2SVpnGateways in a resource group. /// 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 1fa73f482a4d3..b3366b49dd61f 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 = "2019-09-01"; + string apiVersion = "2019-11-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 = "2019-09-01"; + string apiVersion = "2019-11-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 = "2019-09-01"; + string apiVersion = "2019-11-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 = "2019-09-01"; + string apiVersion = "2019-11-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 = "2019-09-01"; + string apiVersion = "2019-11-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 = "2019-09-01"; + string apiVersion = "2019-11-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 289956cd59e14..cac011328c17f 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 = "2019-09-01"; + string apiVersion = "2019-11-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 = "2019-09-01"; + string apiVersion = "2019-11-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 372f0434fc68c..8c859338f417c 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 = "2019-09-01"; + string apiVersion = "2019-11-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 = "2019-09-01"; + string apiVersion = "2019-11-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 = "2019-09-01"; + string apiVersion = "2019-11-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 = "2019-09-01"; + string apiVersion = "2019-11-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 = "2019-09-01"; + string apiVersion = "2019-11-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 b76f0186f9697..be6a40ef0ae9d 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 = "2019-09-01"; + string apiVersion = "2019-11-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 = "2019-09-01"; + string apiVersion = "2019-11-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 = "2019-09-01"; + string apiVersion = "2019-11-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 = "2019-09-01"; + string apiVersion = "2019-11-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 = "2019-09-01"; + string apiVersion = "2019-11-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 = "2019-09-01"; + string apiVersion = "2019-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1324,7 +1324,7 @@ internal PrivateLinkServicesOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-09-01"; + string apiVersion = "2019-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1531,7 +1531,7 @@ internal PrivateLinkServicesOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-09-01"; + string apiVersion = "2019-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1726,7 +1726,7 @@ internal PrivateLinkServicesOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-09-01"; + string apiVersion = "2019-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1919,7 +1919,7 @@ internal PrivateLinkServicesOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-09-01"; + string apiVersion = "2019-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -2110,7 +2110,7 @@ internal PrivateLinkServicesOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-09-01"; + string apiVersion = "2019-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -2288,7 +2288,7 @@ internal PrivateLinkServicesOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-09-01"; + string apiVersion = "2019-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -2507,7 +2507,7 @@ internal PrivateLinkServicesOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-09-01"; + string apiVersion = "2019-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/PublicIPPrefixesOperations.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/PublicIPPrefixesOperations.cs index b986eeea39b46..4caf258f8d81e 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/PublicIPPrefixesOperations.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/PublicIPPrefixesOperations.cs @@ -119,7 +119,7 @@ internal PublicIPPrefixesOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-09-01"; + string apiVersion = "2019-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -350,7 +350,7 @@ internal PublicIPPrefixesOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-09-01"; + string apiVersion = "2019-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -537,7 +537,7 @@ internal PublicIPPrefixesOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-09-01"; + string apiVersion = "2019-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -720,7 +720,7 @@ internal PublicIPPrefixesOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-09-01"; + string apiVersion = "2019-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -909,7 +909,7 @@ internal PublicIPPrefixesOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-09-01"; + string apiVersion = "2019-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1092,7 +1092,7 @@ internal PublicIPPrefixesOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-09-01"; + string apiVersion = "2019-11-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 index 10a69b633fce9..122fc82e6e417 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/PublicIpAddressesOperations.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/PublicIpAddressesOperations.cs @@ -119,7 +119,7 @@ internal PublicIPAddressesOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-09-01"; + string apiVersion = "2019-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -350,7 +350,7 @@ internal PublicIPAddressesOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-09-01"; + string apiVersion = "2019-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -537,7 +537,7 @@ internal PublicIPAddressesOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-09-01"; + string apiVersion = "2019-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -720,7 +720,7 @@ internal PublicIPAddressesOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-09-01"; + string apiVersion = "2019-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1564,7 +1564,7 @@ internal PublicIPAddressesOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-09-01"; + string apiVersion = "2019-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1747,7 +1747,7 @@ internal PublicIPAddressesOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-09-01"; + string apiVersion = "2019-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/ResourceNavigationLinksOperations.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/ResourceNavigationLinksOperations.cs index 2dae51a4b38fa..28a83362f3cf5 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/ResourceNavigationLinksOperations.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/ResourceNavigationLinksOperations.cs @@ -101,7 +101,7 @@ internal ResourceNavigationLinksOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-09-01"; + string apiVersion = "2019-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/RouteFilterRulesOperations.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/RouteFilterRulesOperations.cs index e1756ef9d6ae4..408b1c0b8cf7b 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/RouteFilterRulesOperations.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/RouteFilterRulesOperations.cs @@ -126,7 +126,7 @@ internal RouteFilterRulesOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-09-01"; + string apiVersion = "2019-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -350,7 +350,7 @@ internal RouteFilterRulesOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-09-01"; + string apiVersion = "2019-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -548,7 +548,7 @@ internal RouteFilterRulesOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-09-01"; + string apiVersion = "2019-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -744,7 +744,7 @@ internal RouteFilterRulesOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-09-01"; + string apiVersion = "2019-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/RouteFiltersOperations.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/RouteFiltersOperations.cs index bc852b672f6ee..29ad8fb7cd2ea 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/RouteFiltersOperations.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/RouteFiltersOperations.cs @@ -119,7 +119,7 @@ internal RouteFiltersOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-09-01"; + string apiVersion = "2019-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -350,7 +350,7 @@ internal RouteFiltersOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-09-01"; + string apiVersion = "2019-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -544,7 +544,7 @@ internal RouteFiltersOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-09-01"; + string apiVersion = "2019-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -722,7 +722,7 @@ internal RouteFiltersOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-09-01"; + string apiVersion = "2019-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -909,7 +909,7 @@ internal RouteFiltersOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-09-01"; + string apiVersion = "2019-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1092,7 +1092,7 @@ internal RouteFiltersOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-09-01"; + string apiVersion = "2019-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/RouteTablesOperations.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/RouteTablesOperations.cs index bf4bc9deeba52..ec94928fea5a6 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/RouteTablesOperations.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/RouteTablesOperations.cs @@ -119,7 +119,7 @@ internal RouteTablesOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-09-01"; + string apiVersion = "2019-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -350,7 +350,7 @@ internal RouteTablesOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-09-01"; + string apiVersion = "2019-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -544,7 +544,7 @@ internal RouteTablesOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-09-01"; + string apiVersion = "2019-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -722,7 +722,7 @@ internal RouteTablesOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-09-01"; + string apiVersion = "2019-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -909,7 +909,7 @@ internal RouteTablesOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-09-01"; + string apiVersion = "2019-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1092,7 +1092,7 @@ internal RouteTablesOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-09-01"; + string apiVersion = "2019-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/RoutesOperations.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/RoutesOperations.cs index 8d0afbb944b73..6de80d0bd5064 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/RoutesOperations.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/RoutesOperations.cs @@ -126,7 +126,7 @@ internal RoutesOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-09-01"; + string apiVersion = "2019-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -350,7 +350,7 @@ internal RoutesOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-09-01"; + string apiVersion = "2019-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -548,7 +548,7 @@ internal RoutesOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-09-01"; + string apiVersion = "2019-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -744,7 +744,7 @@ internal RoutesOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-09-01"; + string apiVersion = "2019-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/SdkInfo_NetworkManagementClient.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/SdkInfo_NetworkManagementClient.cs index 067f48929c256..a5574ed921b93 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/SdkInfo_NetworkManagementClient.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/SdkInfo_NetworkManagementClient.cs @@ -21,107 +21,108 @@ public static IEnumerable> ApiInfo_NetworkManageme { new Tuple("Compute", "NetworkInterfaces", "2018-10-01"), new Tuple("Compute", "PublicIPAddresses", "2018-10-01"), - new Tuple("Network", "ApplicationGateways", "2019-09-01"), - new Tuple("Network", "ApplicationSecurityGroups", "2019-09-01"), - new Tuple("Network", "AvailableDelegations", "2019-09-01"), - new Tuple("Network", "AvailableEndpointServices", "2019-09-01"), - new Tuple("Network", "AvailablePrivateEndpointTypes", "2019-09-01"), - new Tuple("Network", "AvailableResourceGroupDelegations", "2019-09-01"), - new Tuple("Network", "AvailableServiceAliases", "2019-09-01"), - new Tuple("Network", "AzureFirewallFqdnTags", "2019-09-01"), - new Tuple("Network", "AzureFirewalls", "2019-09-01"), - new Tuple("Network", "BastionHosts", "2019-09-01"), - new Tuple("Network", "BgpServiceCommunities", "2019-09-01"), - new Tuple("Network", "CheckDnsNameAvailability", "2019-09-01"), - new Tuple("Network", "ConnectionMonitors", "2019-06-01"), - new Tuple("Network", "DdosCustomPolicies", "2019-09-01"), - new Tuple("Network", "DdosProtectionPlans", "2019-09-01"), - new Tuple("Network", "DefaultSecurityRules", "2019-09-01"), - new Tuple("Network", "ExpressRouteCircuitAuthorizations", "2019-09-01"), - new Tuple("Network", "ExpressRouteCircuitConnections", "2019-09-01"), - new Tuple("Network", "ExpressRouteCircuitPeerings", "2019-09-01"), - new Tuple("Network", "ExpressRouteCircuits", "2019-09-01"), - new Tuple("Network", "ExpressRouteConnections", "2019-09-01"), - new Tuple("Network", "ExpressRouteCrossConnectionPeerings", "2019-09-01"), - new Tuple("Network", "ExpressRouteCrossConnections", "2019-09-01"), - new Tuple("Network", "ExpressRouteGateways", "2019-09-01"), - new Tuple("Network", "ExpressRouteLinks", "2019-09-01"), - new Tuple("Network", "ExpressRoutePorts", "2019-09-01"), - new Tuple("Network", "ExpressRoutePortsLocations", "2019-09-01"), - new Tuple("Network", "ExpressRouteServiceProviders", "2019-09-01"), - new Tuple("Network", "FirewallPolicies", "2019-09-01"), - new Tuple("Network", "FirewallPolicyRuleGroups", "2019-09-01"), - new Tuple("Network", "HubVirtualNetworkConnections", "2019-09-01"), - new Tuple("Network", "InboundNatRules", "2019-09-01"), - new Tuple("Network", "IpGroups", "2019-09-01"), - new Tuple("Network", "LoadBalancerBackendAddressPools", "2019-09-01"), - new Tuple("Network", "LoadBalancerFrontendIPConfigurations", "2019-09-01"), - new Tuple("Network", "LoadBalancerLoadBalancingRules", "2019-09-01"), - new Tuple("Network", "LoadBalancerNetworkInterfaces", "2019-09-01"), - new Tuple("Network", "LoadBalancerOutboundRules", "2019-09-01"), - new Tuple("Network", "LoadBalancerProbes", "2019-09-01"), - new Tuple("Network", "LoadBalancers", "2019-09-01"), - new Tuple("Network", "LocalNetworkGateways", "2019-09-01"), - new Tuple("Network", "NatGateways", "2019-09-01"), - new Tuple("Network", "NetworkInterfaceIPConfigurations", "2019-09-01"), - new Tuple("Network", "NetworkInterfaceLoadBalancers", "2019-09-01"), - new Tuple("Network", "NetworkInterfaceTapConfigurations", "2019-09-01"), - new Tuple("Network", "NetworkInterfaces", "2019-09-01"), - new Tuple("Network", "NetworkProfiles", "2019-09-01"), - new Tuple("Network", "NetworkSecurityGroups", "2019-09-01"), - new Tuple("Network", "NetworkWatchers", "2019-09-01"), - new Tuple("Network", "Operations", "2019-09-01"), - new Tuple("Network", "P2sVpnGateways", "2019-09-01"), - new Tuple("Network", "PacketCaptures", "2019-09-01"), - new Tuple("Network", "PeerExpressRouteCircuitConnections", "2019-09-01"), - new Tuple("Network", "PrivateEndpoints", "2019-09-01"), - new Tuple("Network", "PrivateLinkServices", "2019-09-01"), - new Tuple("Network", "PublicIPAddresses", "2019-09-01"), - new Tuple("Network", "PublicIPPrefixes", "2019-09-01"), - new Tuple("Network", "ResourceNavigationLinks", "2019-09-01"), - new Tuple("Network", "RouteFilterRules", "2019-09-01"), - new Tuple("Network", "RouteFilters", "2019-09-01"), - new Tuple("Network", "RouteTables", "2019-09-01"), - new Tuple("Network", "Routes", "2019-09-01"), - new Tuple("Network", "SecurityRules", "2019-09-01"), - new Tuple("Network", "ServiceAssociationLinks", "2019-09-01"), - new Tuple("Network", "ServiceEndpointPolicies", "2019-09-01"), - new Tuple("Network", "ServiceEndpointPolicyDefinitions", "2019-09-01"), - new Tuple("Network", "ServiceTags", "2019-09-01"), - new Tuple("Network", "Subnets", "2019-09-01"), - new Tuple("Network", "SupportedSecurityProviders", "2019-09-01"), - new Tuple("Network", "Usages", "2019-09-01"), - new Tuple("Network", "VirtualHubRouteTableV2s", "2019-09-01"), - new Tuple("Network", "VirtualHubs", "2019-09-01"), - new Tuple("Network", "VirtualNetworkGatewayConnections", "2019-09-01"), - new Tuple("Network", "VirtualNetworkGateways", "2019-09-01"), - new Tuple("Network", "VirtualNetworkPeerings", "2019-09-01"), - new Tuple("Network", "VirtualNetworkTaps", "2019-09-01"), - new Tuple("Network", "VirtualNetworks", "2019-09-01"), - new Tuple("Network", "VirtualRouterPeerings", "2019-09-01"), - new Tuple("Network", "VirtualRouters", "2019-09-01"), - new Tuple("Network", "VirtualWans", "2019-09-01"), - new Tuple("Network", "VpnConnections", "2019-09-01"), - new Tuple("Network", "VpnGateways", "2019-09-01"), - new Tuple("Network", "VpnLinkConnections", "2019-09-01"), - new Tuple("Network", "VpnServerConfigurations", "2019-09-01"), - new Tuple("Network", "VpnServerConfigurationsAssociatedWithVirtualWan", "2019-09-01"), - new Tuple("Network", "VpnSiteLinkConnections", "2019-09-01"), - new Tuple("Network", "VpnSiteLinks", "2019-09-01"), - new Tuple("Network", "VpnSites", "2019-09-01"), - new Tuple("Network", "VpnSitesConfiguration", "2019-09-01"), - new Tuple("Network", "WebApplicationFirewallPolicies", "2019-09-01"), - new Tuple("Network", "generatevirtualwanvpnserverconfigurationvpnprofile", "2019-09-01"), + new Tuple("Network", "ApplicationGateways", "2019-11-01"), + new Tuple("Network", "ApplicationSecurityGroups", "2019-11-01"), + new Tuple("Network", "AvailableDelegations", "2019-11-01"), + new Tuple("Network", "AvailableEndpointServices", "2019-11-01"), + new Tuple("Network", "AvailablePrivateEndpointTypes", "2019-11-01"), + new Tuple("Network", "AvailableResourceGroupDelegations", "2019-11-01"), + new Tuple("Network", "AvailableServiceAliases", "2019-11-01"), + new Tuple("Network", "AzureFirewallFqdnTags", "2019-11-01"), + new Tuple("Network", "AzureFirewalls", "2019-11-01"), + new Tuple("Network", "BastionHosts", "2019-11-01"), + new Tuple("Network", "BgpServiceCommunities", "2019-11-01"), + new Tuple("Network", "CheckDnsNameAvailability", "2019-11-01"), + new Tuple("Network", "ConnectionMonitors", "2019-11-01"), + new Tuple("Network", "DdosCustomPolicies", "2019-11-01"), + new Tuple("Network", "DdosProtectionPlans", "2019-11-01"), + new Tuple("Network", "DefaultSecurityRules", "2019-11-01"), + new Tuple("Network", "ExpressRouteCircuitAuthorizations", "2019-11-01"), + new Tuple("Network", "ExpressRouteCircuitConnections", "2019-11-01"), + new Tuple("Network", "ExpressRouteCircuitPeerings", "2019-11-01"), + new Tuple("Network", "ExpressRouteCircuits", "2019-11-01"), + new Tuple("Network", "ExpressRouteConnections", "2019-11-01"), + new Tuple("Network", "ExpressRouteCrossConnectionPeerings", "2019-11-01"), + new Tuple("Network", "ExpressRouteCrossConnections", "2019-11-01"), + new Tuple("Network", "ExpressRouteGateways", "2019-11-01"), + new Tuple("Network", "ExpressRouteLinks", "2019-11-01"), + new Tuple("Network", "ExpressRoutePorts", "2019-11-01"), + new Tuple("Network", "ExpressRoutePortsLocations", "2019-11-01"), + new Tuple("Network", "ExpressRouteServiceProviders", "2019-11-01"), + new Tuple("Network", "FirewallPolicies", "2019-11-01"), + new Tuple("Network", "FirewallPolicyRuleGroups", "2019-11-01"), + new Tuple("Network", "FlowLogs", "2019-11-01"), + new Tuple("Network", "HubVirtualNetworkConnections", "2019-11-01"), + new Tuple("Network", "InboundNatRules", "2019-11-01"), + new Tuple("Network", "IpGroups", "2019-11-01"), + new Tuple("Network", "LoadBalancerBackendAddressPools", "2019-11-01"), + new Tuple("Network", "LoadBalancerFrontendIPConfigurations", "2019-11-01"), + new Tuple("Network", "LoadBalancerLoadBalancingRules", "2019-11-01"), + new Tuple("Network", "LoadBalancerNetworkInterfaces", "2019-11-01"), + new Tuple("Network", "LoadBalancerOutboundRules", "2019-11-01"), + new Tuple("Network", "LoadBalancerProbes", "2019-11-01"), + new Tuple("Network", "LoadBalancers", "2019-11-01"), + new Tuple("Network", "LocalNetworkGateways", "2019-11-01"), + new Tuple("Network", "NatGateways", "2019-11-01"), + new Tuple("Network", "NetworkInterfaceIPConfigurations", "2019-11-01"), + new Tuple("Network", "NetworkInterfaceLoadBalancers", "2019-11-01"), + new Tuple("Network", "NetworkInterfaceTapConfigurations", "2019-11-01"), + new Tuple("Network", "NetworkInterfaces", "2019-11-01"), + new Tuple("Network", "NetworkProfiles", "2019-11-01"), + new Tuple("Network", "NetworkSecurityGroups", "2019-11-01"), + new Tuple("Network", "NetworkWatchers", "2019-11-01"), + new Tuple("Network", "Operations", "2019-11-01"), + new Tuple("Network", "P2sVpnGateways", "2019-11-01"), + new Tuple("Network", "PacketCaptures", "2019-11-01"), + new Tuple("Network", "PeerExpressRouteCircuitConnections", "2019-11-01"), + new Tuple("Network", "PrivateEndpoints", "2019-11-01"), + new Tuple("Network", "PrivateLinkServices", "2019-11-01"), + new Tuple("Network", "PublicIPAddresses", "2019-11-01"), + new Tuple("Network", "PublicIPPrefixes", "2019-11-01"), + new Tuple("Network", "ResourceNavigationLinks", "2019-11-01"), + new Tuple("Network", "RouteFilterRules", "2019-11-01"), + new Tuple("Network", "RouteFilters", "2019-11-01"), + new Tuple("Network", "RouteTables", "2019-11-01"), + new Tuple("Network", "Routes", "2019-11-01"), + new Tuple("Network", "SecurityRules", "2019-11-01"), + new Tuple("Network", "ServiceAssociationLinks", "2019-11-01"), + new Tuple("Network", "ServiceEndpointPolicies", "2019-11-01"), + new Tuple("Network", "ServiceEndpointPolicyDefinitions", "2019-11-01"), + new Tuple("Network", "ServiceTags", "2019-11-01"), + new Tuple("Network", "Subnets", "2019-11-01"), + new Tuple("Network", "SupportedSecurityProviders", "2019-11-01"), + new Tuple("Network", "Usages", "2019-11-01"), + new Tuple("Network", "VirtualHubRouteTableV2s", "2019-11-01"), + new Tuple("Network", "VirtualHubs", "2019-11-01"), + new Tuple("Network", "VirtualNetworkGatewayConnections", "2019-11-01"), + new Tuple("Network", "VirtualNetworkGateways", "2019-11-01"), + new Tuple("Network", "VirtualNetworkPeerings", "2019-11-01"), + new Tuple("Network", "VirtualNetworkTaps", "2019-11-01"), + new Tuple("Network", "VirtualNetworks", "2019-11-01"), + new Tuple("Network", "VirtualRouterPeerings", "2019-11-01"), + new Tuple("Network", "VirtualRouters", "2019-11-01"), + new Tuple("Network", "VirtualWans", "2019-11-01"), + new Tuple("Network", "VpnConnections", "2019-11-01"), + new Tuple("Network", "VpnGateways", "2019-11-01"), + new Tuple("Network", "VpnLinkConnections", "2019-11-01"), + new Tuple("Network", "VpnServerConfigurations", "2019-11-01"), + new Tuple("Network", "VpnServerConfigurationsAssociatedWithVirtualWan", "2019-11-01"), + new Tuple("Network", "VpnSiteLinkConnections", "2019-11-01"), + new Tuple("Network", "VpnSiteLinks", "2019-11-01"), + new Tuple("Network", "VpnSites", "2019-11-01"), + new Tuple("Network", "VpnSitesConfiguration", "2019-11-01"), + new Tuple("Network", "WebApplicationFirewallPolicies", "2019-11-01"), + new Tuple("Network", "generatevirtualwanvpnserverconfigurationvpnprofile", "2019-11-01"), }.AsEnumerable(); } } // BEGIN: Code Generation Metadata Section public static readonly String AutoRestVersion = "latest"; - public static readonly String AutoRestBootStrapperVersion = "autorest@2.0.4283"; - public static readonly String AutoRestCmdExecuted = "cmd.exe /c autorest.cmd https://github.com/Azure/azure-rest-api-specs/blob/master/specification/network/resource-manager/readme.md --csharp --version=latest --reflect-api-versions --csharp-sdks-folder=D:\\Projects\\azure-sdk-for-net\\sdk"; + public static readonly String AutoRestBootStrapperVersion = "autorest@2.0.4407"; + public static readonly String AutoRestCmdExecuted = "cmd.exe /c autorest.cmd https://github.com/Azure/azure-rest-api-specs/blob/master/specification/network/resource-manager/readme.md --csharp --version=latest --reflect-api-versions --csharp-sdks-folder=C:\\git\\azure-sdk-for-net\\sdk"; public static readonly String GithubForkName = "Azure"; public static readonly String GithubBranchName = "master"; - public static readonly String GithubCommidId = "3653ff62fdbfaa8c9ce85f05abe8048f3ff96214"; + public static readonly String GithubCommidId = "5f997529a6ea1a8c16715ea51bb15dd2d1dca0e7"; public static readonly String CodeGenerationErrors = ""; public static readonly String GithubRepoName = "azure-rest-api-specs"; // END: Code Generation Metadata Section diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/SecurityRulesOperations.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/SecurityRulesOperations.cs index d7022a8d2a44a..27feb10cccb1a 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/SecurityRulesOperations.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/SecurityRulesOperations.cs @@ -126,7 +126,7 @@ internal SecurityRulesOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-09-01"; + string apiVersion = "2019-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -351,7 +351,7 @@ internal SecurityRulesOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-09-01"; + string apiVersion = "2019-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -549,7 +549,7 @@ internal SecurityRulesOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-09-01"; + string apiVersion = "2019-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -746,7 +746,7 @@ internal SecurityRulesOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-09-01"; + string apiVersion = "2019-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/ServiceAssociationLinksOperations.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/ServiceAssociationLinksOperations.cs index f52516d5402a0..c87f5ca22aa7a 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/ServiceAssociationLinksOperations.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/ServiceAssociationLinksOperations.cs @@ -101,7 +101,7 @@ internal ServiceAssociationLinksOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-09-01"; + string apiVersion = "2019-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/ServiceEndpointPoliciesOperations.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/ServiceEndpointPoliciesOperations.cs index 5986c3519ada1..953cbadb44354 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/ServiceEndpointPoliciesOperations.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/ServiceEndpointPoliciesOperations.cs @@ -119,7 +119,7 @@ internal ServiceEndpointPoliciesOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-09-01"; + string apiVersion = "2019-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -351,7 +351,7 @@ internal ServiceEndpointPoliciesOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-09-01"; + string apiVersion = "2019-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -538,7 +538,7 @@ internal ServiceEndpointPoliciesOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-09-01"; + string apiVersion = "2019-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -721,7 +721,7 @@ internal ServiceEndpointPoliciesOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-09-01"; + string apiVersion = "2019-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -910,7 +910,7 @@ internal ServiceEndpointPoliciesOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-09-01"; + string apiVersion = "2019-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1094,7 +1094,7 @@ internal ServiceEndpointPoliciesOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-09-01"; + string apiVersion = "2019-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/ServiceEndpointPolicyDefinitionsOperations.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/ServiceEndpointPolicyDefinitionsOperations.cs index 15dbbe2a7369e..4c738de3ae45d 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/ServiceEndpointPolicyDefinitionsOperations.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/ServiceEndpointPolicyDefinitionsOperations.cs @@ -127,7 +127,7 @@ internal ServiceEndpointPolicyDefinitionsOperations(NetworkManagementClient clie { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-09-01"; + string apiVersion = "2019-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -353,7 +353,7 @@ internal ServiceEndpointPolicyDefinitionsOperations(NetworkManagementClient clie { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-09-01"; + string apiVersion = "2019-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -551,7 +551,7 @@ internal ServiceEndpointPolicyDefinitionsOperations(NetworkManagementClient clie { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-09-01"; + string apiVersion = "2019-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -745,7 +745,7 @@ internal ServiceEndpointPolicyDefinitionsOperations(NetworkManagementClient clie { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-09-01"; + string apiVersion = "2019-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/ServiceTagsOperations.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/ServiceTagsOperations.cs index f03f2db3c1f28..0b1f7a122a0b6 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/ServiceTagsOperations.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/ServiceTagsOperations.cs @@ -90,7 +90,7 @@ internal ServiceTagsOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-09-01"; + string apiVersion = "2019-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/SubnetsOperations.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/SubnetsOperations.cs index fa9c266d471eb..c96efbd2029d7 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/SubnetsOperations.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/SubnetsOperations.cs @@ -129,7 +129,7 @@ internal SubnetsOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-09-01"; + string apiVersion = "2019-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -414,7 +414,7 @@ internal SubnetsOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-09-01"; + string apiVersion = "2019-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -612,7 +612,7 @@ internal SubnetsOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-09-01"; + string apiVersion = "2019-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -804,7 +804,7 @@ internal SubnetsOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-09-01"; + string apiVersion = "2019-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1036,7 +1036,7 @@ internal SubnetsOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-09-01"; + string apiVersion = "2019-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1232,7 +1232,7 @@ internal SubnetsOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-09-01"; + string apiVersion = "2019-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/UsagesOperations.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/UsagesOperations.cs index 9cbcfc1decb2a..28ed64a77aefe 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/UsagesOperations.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/UsagesOperations.cs @@ -94,7 +94,7 @@ internal UsagesOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-09-01"; + string apiVersion = "2019-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/VirtualHubRouteTableV2sOperations.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/VirtualHubRouteTableV2sOperations.cs index 965064059ada2..4c0e8d5959745 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/VirtualHubRouteTableV2sOperations.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/VirtualHubRouteTableV2sOperations.cs @@ -101,7 +101,7 @@ internal VirtualHubRouteTableV2sOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "routeTableName"); } - string apiVersion = "2019-09-01"; + string apiVersion = "2019-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -346,7 +346,7 @@ internal VirtualHubRouteTableV2sOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "virtualHubName"); } - string apiVersion = "2019-09-01"; + string apiVersion = "2019-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -555,7 +555,7 @@ internal VirtualHubRouteTableV2sOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "virtualHubRouteTableV2Parameters"); } - string apiVersion = "2019-09-01"; + string apiVersion = "2019-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -775,7 +775,7 @@ internal VirtualHubRouteTableV2sOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "routeTableName"); } - string apiVersion = "2019-09-01"; + string apiVersion = "2019-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/VirtualHubsOperations.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/VirtualHubsOperations.cs index 26d39910e6cfe..d9e68a6df2ffe 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/VirtualHubsOperations.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/VirtualHubsOperations.cs @@ -94,7 +94,7 @@ internal VirtualHubsOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "virtualHubName"); } - string apiVersion = "2019-09-01"; + string apiVersion = "2019-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -321,7 +321,7 @@ internal VirtualHubsOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "virtualHubParameters"); } - string apiVersion = "2019-09-01"; + string apiVersion = "2019-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -537,7 +537,7 @@ internal VirtualHubsOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); } - string apiVersion = "2019-09-01"; + string apiVersion = "2019-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -715,7 +715,7 @@ internal VirtualHubsOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-09-01"; + string apiVersion = "2019-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -913,7 +913,7 @@ internal VirtualHubsOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "virtualHubParameters"); } - string apiVersion = "2019-09-01"; + string apiVersion = "2019-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1129,7 +1129,7 @@ internal VirtualHubsOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "virtualHubName"); } - string apiVersion = "2019-09-01"; + string apiVersion = "2019-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/VirtualNetworkGatewayConnectionsOperations.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/VirtualNetworkGatewayConnectionsOperations.cs index 30b6e6a525d07..a7bc18e70c121 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/VirtualNetworkGatewayConnectionsOperations.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/VirtualNetworkGatewayConnectionsOperations.cs @@ -121,7 +121,7 @@ internal VirtualNetworkGatewayConnectionsOperations(NetworkManagementClient clie { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-09-01"; + string apiVersion = "2019-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -393,7 +393,7 @@ internal VirtualNetworkGatewayConnectionsOperations(NetworkManagementClient clie { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-09-01"; + string apiVersion = "2019-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -581,7 +581,7 @@ internal VirtualNetworkGatewayConnectionsOperations(NetworkManagementClient clie { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-09-01"; + string apiVersion = "2019-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -869,7 +869,7 @@ internal VirtualNetworkGatewayConnectionsOperations(NetworkManagementClient clie { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-09-01"; + string apiVersion = "2019-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1085,7 +1085,7 @@ internal VirtualNetworkGatewayConnectionsOperations(NetworkManagementClient clie { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-09-01"; + string apiVersion = "2019-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1268,7 +1268,7 @@ internal VirtualNetworkGatewayConnectionsOperations(NetworkManagementClient clie { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-09-01"; + string apiVersion = "2019-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1484,7 +1484,7 @@ internal VirtualNetworkGatewayConnectionsOperations(NetworkManagementClient clie { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-09-01"; + string apiVersion = "2019-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1718,7 +1718,7 @@ internal VirtualNetworkGatewayConnectionsOperations(NetworkManagementClient clie { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-09-01"; + string apiVersion = "2019-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1924,7 +1924,7 @@ internal VirtualNetworkGatewayConnectionsOperations(NetworkManagementClient clie { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-09-01"; + string apiVersion = "2019-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -2129,7 +2129,7 @@ internal VirtualNetworkGatewayConnectionsOperations(NetworkManagementClient clie { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-09-01"; + string apiVersion = "2019-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/VirtualNetworkGatewaysOperations.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/VirtualNetworkGatewaysOperations.cs index dba2b793ff9a7..80c947cb9576e 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/VirtualNetworkGatewaysOperations.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/VirtualNetworkGatewaysOperations.cs @@ -120,7 +120,7 @@ internal VirtualNetworkGatewaysOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-09-01"; + string apiVersion = "2019-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -354,7 +354,7 @@ internal VirtualNetworkGatewaysOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-09-01"; + string apiVersion = "2019-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -546,7 +546,7 @@ internal VirtualNetworkGatewaysOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-09-01"; + string apiVersion = "2019-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -893,7 +893,7 @@ internal VirtualNetworkGatewaysOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-09-01"; + string apiVersion = "2019-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1196,7 +1196,7 @@ internal VirtualNetworkGatewaysOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-09-01"; + string apiVersion = "2019-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1430,6 +1430,32 @@ internal VirtualNetworkGatewaysOperations(NetworkManagementClient client) return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); } + /// + /// Disconnect vpn connections of virtual network gateway in the specified + /// resource group. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the virtual network gateway. + /// + /// + /// The parameters are supplied to disconnect vpn connections. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task DisconnectVirtualNetworkGatewayVpnConnectionsWithHttpMessagesAsync(string resourceGroupName, string virtualNetworkGatewayName, P2SVpnConnectionRequest request, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send request + AzureOperationResponse _response = await BeginDisconnectVirtualNetworkGatewayVpnConnectionsWithHttpMessagesAsync(resourceGroupName, virtualNetworkGatewayName, request, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + /// /// Creates or updates a virtual network gateway in the specified resource /// group. @@ -1482,7 +1508,7 @@ internal VirtualNetworkGatewaysOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-09-01"; + string apiVersion = "2019-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1698,7 +1724,7 @@ internal VirtualNetworkGatewaysOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-09-01"; + string apiVersion = "2019-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1881,7 +1907,7 @@ internal VirtualNetworkGatewaysOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-09-01"; + string apiVersion = "2019-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -2087,7 +2113,7 @@ internal VirtualNetworkGatewaysOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-09-01"; + string apiVersion = "2019-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -2284,7 +2310,7 @@ internal VirtualNetworkGatewaysOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-09-01"; + string apiVersion = "2019-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -2469,7 +2495,7 @@ internal VirtualNetworkGatewaysOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-09-01"; + string apiVersion = "2019-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -2679,7 +2705,7 @@ internal VirtualNetworkGatewaysOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-09-01"; + string apiVersion = "2019-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -2882,7 +2908,7 @@ internal VirtualNetworkGatewaysOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-09-01"; + string apiVersion = "2019-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -3079,7 +3105,7 @@ internal VirtualNetworkGatewaysOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-09-01"; + string apiVersion = "2019-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -3279,7 +3305,7 @@ internal VirtualNetworkGatewaysOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-09-01"; + string apiVersion = "2019-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -3481,7 +3507,7 @@ internal VirtualNetworkGatewaysOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-09-01"; + string apiVersion = "2019-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -3694,7 +3720,7 @@ internal VirtualNetworkGatewaysOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-09-01"; + string apiVersion = "2019-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -3897,7 +3923,7 @@ internal VirtualNetworkGatewaysOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-09-01"; + string apiVersion = "2019-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -4096,7 +4122,7 @@ internal VirtualNetworkGatewaysOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-09-01"; + string apiVersion = "2019-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -4301,7 +4327,7 @@ internal VirtualNetworkGatewaysOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-09-01"; + string apiVersion = "2019-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -4498,7 +4524,7 @@ internal VirtualNetworkGatewaysOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-09-01"; + string apiVersion = "2019-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -4648,6 +4674,194 @@ internal VirtualNetworkGatewaysOperations(NetworkManagementClient client) return _result; } + /// + /// Disconnect vpn connections of virtual network gateway in the specified + /// resource group. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the virtual network gateway. + /// + /// + /// The parameters are supplied to disconnect vpn connections. + /// + /// + /// 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 BeginDisconnectVirtualNetworkGatewayVpnConnectionsWithHttpMessagesAsync(string resourceGroupName, string virtualNetworkGatewayName, P2SVpnConnectionRequest request, 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 (virtualNetworkGatewayName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "virtualNetworkGatewayName"); + } + if (request == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "request"); + } + string apiVersion = "2019-11-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("virtualNetworkGatewayName", virtualNetworkGatewayName); + tracingParameters.Add("request", request); + tracingParameters.Add("apiVersion", apiVersion); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "BeginDisconnectVirtualNetworkGatewayVpnConnections", 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/virtualNetworkGateways/{virtualNetworkGatewayName}/disconnectVirtualNetworkGatewayVpnConnections").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{virtualNetworkGatewayName}", System.Uri.EscapeDataString(virtualNetworkGatewayName)); + List _queryParameters = new List(); + if (apiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("POST"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + if(request != null) + { + _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(request, 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(); + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + /// /// Gets all virtual network gateways by resource group. /// diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/VirtualNetworkGatewaysOperationsExtensions.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/VirtualNetworkGatewaysOperationsExtensions.cs index 3770a6779a0b1..2ba20d825b05c 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/VirtualNetworkGatewaysOperationsExtensions.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/VirtualNetworkGatewaysOperationsExtensions.cs @@ -961,6 +961,51 @@ public static VpnClientConnectionHealthDetailListResult GetVpnclientConnectionHe } } + /// + /// Disconnect vpn connections of virtual network gateway in the specified + /// resource group. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the virtual network gateway. + /// + /// + /// The parameters are supplied to disconnect vpn connections. + /// + public static void DisconnectVirtualNetworkGatewayVpnConnections(this IVirtualNetworkGatewaysOperations operations, string resourceGroupName, string virtualNetworkGatewayName, P2SVpnConnectionRequest request) + { + operations.DisconnectVirtualNetworkGatewayVpnConnectionsAsync(resourceGroupName, virtualNetworkGatewayName, request).GetAwaiter().GetResult(); + } + + /// + /// Disconnect vpn connections of virtual network gateway in the specified + /// resource group. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the virtual network gateway. + /// + /// + /// The parameters are supplied to disconnect vpn connections. + /// + /// + /// The cancellation token. + /// + public static async Task DisconnectVirtualNetworkGatewayVpnConnectionsAsync(this IVirtualNetworkGatewaysOperations operations, string resourceGroupName, string virtualNetworkGatewayName, P2SVpnConnectionRequest request, CancellationToken cancellationToken = default(CancellationToken)) + { + (await operations.DisconnectVirtualNetworkGatewayVpnConnectionsWithHttpMessagesAsync(resourceGroupName, virtualNetworkGatewayName, request, null, cancellationToken).ConfigureAwait(false)).Dispose(); + } + /// /// Creates or updates a virtual network gateway in the specified resource /// group. @@ -1699,6 +1744,51 @@ public static VpnClientConnectionHealthDetailListResult BeginGetVpnclientConnect } } + /// + /// Disconnect vpn connections of virtual network gateway in the specified + /// resource group. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the virtual network gateway. + /// + /// + /// The parameters are supplied to disconnect vpn connections. + /// + public static void BeginDisconnectVirtualNetworkGatewayVpnConnections(this IVirtualNetworkGatewaysOperations operations, string resourceGroupName, string virtualNetworkGatewayName, P2SVpnConnectionRequest request) + { + operations.BeginDisconnectVirtualNetworkGatewayVpnConnectionsAsync(resourceGroupName, virtualNetworkGatewayName, request).GetAwaiter().GetResult(); + } + + /// + /// Disconnect vpn connections of virtual network gateway in the specified + /// resource group. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the virtual network gateway. + /// + /// + /// The parameters are supplied to disconnect vpn connections. + /// + /// + /// The cancellation token. + /// + public static async Task BeginDisconnectVirtualNetworkGatewayVpnConnectionsAsync(this IVirtualNetworkGatewaysOperations operations, string resourceGroupName, string virtualNetworkGatewayName, P2SVpnConnectionRequest request, CancellationToken cancellationToken = default(CancellationToken)) + { + (await operations.BeginDisconnectVirtualNetworkGatewayVpnConnectionsWithHttpMessagesAsync(resourceGroupName, virtualNetworkGatewayName, request, null, cancellationToken).ConfigureAwait(false)).Dispose(); + } + /// /// Gets all virtual network gateways by resource group. /// diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/VirtualNetworkPeeringsOperations.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/VirtualNetworkPeeringsOperations.cs index 950d9f8769057..e3e8b9ea0df54 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/VirtualNetworkPeeringsOperations.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/VirtualNetworkPeeringsOperations.cs @@ -126,7 +126,7 @@ internal VirtualNetworkPeeringsOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-09-01"; + string apiVersion = "2019-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -351,7 +351,7 @@ internal VirtualNetworkPeeringsOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-09-01"; + string apiVersion = "2019-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -549,7 +549,7 @@ internal VirtualNetworkPeeringsOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-09-01"; + string apiVersion = "2019-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -742,7 +742,7 @@ internal VirtualNetworkPeeringsOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-09-01"; + string apiVersion = "2019-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/VirtualNetworkTapsOperations.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/VirtualNetworkTapsOperations.cs index 81bb2b85b1f2c..605becde1d039 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/VirtualNetworkTapsOperations.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/VirtualNetworkTapsOperations.cs @@ -116,7 +116,7 @@ internal VirtualNetworkTapsOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-09-01"; + string apiVersion = "2019-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -342,7 +342,7 @@ internal VirtualNetworkTapsOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-09-01"; + string apiVersion = "2019-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -529,7 +529,7 @@ internal VirtualNetworkTapsOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-09-01"; + string apiVersion = "2019-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -712,7 +712,7 @@ internal VirtualNetworkTapsOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-09-01"; + string apiVersion = "2019-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -901,7 +901,7 @@ internal VirtualNetworkTapsOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-09-01"; + string apiVersion = "2019-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1084,7 +1084,7 @@ internal VirtualNetworkTapsOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-09-01"; + string apiVersion = "2019-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/VirtualNetworksOperations.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/VirtualNetworksOperations.cs index 764eb62cfe875..3fc58ec837558 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/VirtualNetworksOperations.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/VirtualNetworksOperations.cs @@ -119,7 +119,7 @@ internal VirtualNetworksOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-09-01"; + string apiVersion = "2019-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -350,7 +350,7 @@ internal VirtualNetworksOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-09-01"; + string apiVersion = "2019-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -537,7 +537,7 @@ internal VirtualNetworksOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-09-01"; + string apiVersion = "2019-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -720,7 +720,7 @@ internal VirtualNetworksOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-09-01"; + string apiVersion = "2019-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -919,7 +919,7 @@ internal VirtualNetworksOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-09-01"; + string apiVersion = "2019-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1118,7 +1118,7 @@ internal VirtualNetworksOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-09-01"; + string apiVersion = "2019-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1309,7 +1309,7 @@ internal VirtualNetworksOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-09-01"; + string apiVersion = "2019-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1496,7 +1496,7 @@ internal VirtualNetworksOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-09-01"; + string apiVersion = "2019-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/VirtualRouterPeeringsOperations.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/VirtualRouterPeeringsOperations.cs index 78611f3981870..336927719c0b1 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/VirtualRouterPeeringsOperations.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/VirtualRouterPeeringsOperations.cs @@ -126,7 +126,7 @@ internal VirtualRouterPeeringsOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-09-01"; + string apiVersion = "2019-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -346,7 +346,7 @@ internal VirtualRouterPeeringsOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-09-01"; + string apiVersion = "2019-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -539,7 +539,7 @@ internal VirtualRouterPeeringsOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-09-01"; + string apiVersion = "2019-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -731,7 +731,7 @@ internal VirtualRouterPeeringsOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-09-01"; + string apiVersion = "2019-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/VirtualRoutersOperations.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/VirtualRoutersOperations.cs index c196eaffb59b5..4ed718f18c745 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/VirtualRoutersOperations.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/VirtualRoutersOperations.cs @@ -119,7 +119,7 @@ internal VirtualRoutersOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-09-01"; + string apiVersion = "2019-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -331,7 +331,7 @@ internal VirtualRoutersOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-09-01"; + string apiVersion = "2019-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -504,7 +504,7 @@ internal VirtualRoutersOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-09-01"; + string apiVersion = "2019-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -686,7 +686,7 @@ internal VirtualRoutersOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-09-01"; + string apiVersion = "2019-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -868,7 +868,7 @@ internal VirtualRoutersOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-09-01"; + string apiVersion = "2019-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/VirtualWANsOperations.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/VirtualWANsOperations.cs index 0d554f78c6925..08f70fa532960 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/VirtualWANsOperations.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/VirtualWANsOperations.cs @@ -94,7 +94,7 @@ internal VirtualWansOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-09-01"; + string apiVersion = "2019-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -321,7 +321,7 @@ internal VirtualWansOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "wANParameters"); } - string apiVersion = "2019-09-01"; + string apiVersion = "2019-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -537,7 +537,7 @@ internal VirtualWansOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); } - string apiVersion = "2019-09-01"; + string apiVersion = "2019-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -715,7 +715,7 @@ internal VirtualWansOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-09-01"; + string apiVersion = "2019-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -913,7 +913,7 @@ internal VirtualWansOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "wANParameters"); } - string apiVersion = "2019-09-01"; + string apiVersion = "2019-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1129,7 +1129,7 @@ internal VirtualWansOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "virtualWANName"); } - string apiVersion = "2019-09-01"; + string apiVersion = "2019-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/VpnConnectionsOperations.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/VpnConnectionsOperations.cs index 2c4650c97f6a8..c3d25bdfb0e5b 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/VpnConnectionsOperations.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/VpnConnectionsOperations.cs @@ -101,7 +101,7 @@ internal VpnConnectionsOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "connectionName"); } - string apiVersion = "2019-09-01"; + string apiVersion = "2019-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -351,7 +351,7 @@ internal VpnConnectionsOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "gatewayName"); } - string apiVersion = "2019-09-01"; + string apiVersion = "2019-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -560,7 +560,7 @@ internal VpnConnectionsOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "vpnConnectionParameters"); } - string apiVersion = "2019-09-01"; + string apiVersion = "2019-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -785,7 +785,7 @@ internal VpnConnectionsOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "connectionName"); } - string apiVersion = "2019-09-01"; + string apiVersion = "2019-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/VpnGatewaysOperations.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/VpnGatewaysOperations.cs index bfd0e221f7318..c65d99082cb69 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/VpnGatewaysOperations.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/VpnGatewaysOperations.cs @@ -94,7 +94,7 @@ internal VpnGatewaysOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "gatewayName"); } - string apiVersion = "2019-09-01"; + string apiVersion = "2019-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -321,7 +321,7 @@ internal VpnGatewaysOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "vpnGatewayParameters"); } - string apiVersion = "2019-09-01"; + string apiVersion = "2019-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -559,7 +559,7 @@ internal VpnGatewaysOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); } - string apiVersion = "2019-09-01"; + string apiVersion = "2019-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -737,7 +737,7 @@ internal VpnGatewaysOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-09-01"; + string apiVersion = "2019-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -935,7 +935,7 @@ internal VpnGatewaysOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "vpnGatewayParameters"); } - string apiVersion = "2019-09-01"; + string apiVersion = "2019-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1151,7 +1151,7 @@ internal VpnGatewaysOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "gatewayName"); } - string apiVersion = "2019-09-01"; + string apiVersion = "2019-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1327,7 +1327,7 @@ internal VpnGatewaysOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-09-01"; + string apiVersion = "2019-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/VpnLinkConnectionsOperations.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/VpnLinkConnectionsOperations.cs index 95fcb13c8f2ba..2ded556b37d7a 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/VpnLinkConnectionsOperations.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/VpnLinkConnectionsOperations.cs @@ -102,7 +102,7 @@ internal VpnLinkConnectionsOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "connectionName"); } - string apiVersion = "2019-09-01"; + string apiVersion = "2019-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/VpnServerConfigurationsAssociatedWithVirtualWanOperations.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/VpnServerConfigurationsAssociatedWithVirtualWanOperations.cs index c969fc2474685..2908a52523bba 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/VpnServerConfigurationsAssociatedWithVirtualWanOperations.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/VpnServerConfigurationsAssociatedWithVirtualWanOperations.cs @@ -120,7 +120,7 @@ internal VpnServerConfigurationsAssociatedWithVirtualWanOperations(NetworkManage { throw new ValidationException(ValidationRules.CannotBeNull, "virtualWANName"); } - string apiVersion = "2019-09-01"; + string apiVersion = "2019-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/VpnServerConfigurationsOperations.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/VpnServerConfigurationsOperations.cs index a6e3cb5a9520d..756eb656a8371 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/VpnServerConfigurationsOperations.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/VpnServerConfigurationsOperations.cs @@ -94,7 +94,7 @@ internal VpnServerConfigurationsOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "vpnServerConfigurationName"); } - string apiVersion = "2019-09-01"; + string apiVersion = "2019-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -321,7 +321,7 @@ internal VpnServerConfigurationsOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "vpnServerConfigurationParameters"); } - string apiVersion = "2019-09-01"; + string apiVersion = "2019-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -537,7 +537,7 @@ internal VpnServerConfigurationsOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); } - string apiVersion = "2019-09-01"; + string apiVersion = "2019-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -715,7 +715,7 @@ internal VpnServerConfigurationsOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-09-01"; + string apiVersion = "2019-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -913,7 +913,7 @@ internal VpnServerConfigurationsOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "vpnServerConfigurationParameters"); } - string apiVersion = "2019-09-01"; + string apiVersion = "2019-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1129,7 +1129,7 @@ internal VpnServerConfigurationsOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "vpnServerConfigurationName"); } - string apiVersion = "2019-09-01"; + string apiVersion = "2019-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/VpnSiteLinkConnectionsOperations.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/VpnSiteLinkConnectionsOperations.cs index 0d789f6314a33..c1c73740c6aa5 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/VpnSiteLinkConnectionsOperations.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/VpnSiteLinkConnectionsOperations.cs @@ -108,7 +108,7 @@ internal VpnSiteLinkConnectionsOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "linkConnectionName"); } - string apiVersion = "2019-09-01"; + string apiVersion = "2019-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/VpnSiteLinksOperations.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/VpnSiteLinksOperations.cs index 59fa98faf4b25..13b680207fa31 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/VpnSiteLinksOperations.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/VpnSiteLinksOperations.cs @@ -101,7 +101,7 @@ internal VpnSiteLinksOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "vpnSiteLinkName"); } - string apiVersion = "2019-09-01"; + string apiVersion = "2019-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -297,7 +297,7 @@ internal VpnSiteLinksOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "vpnSiteName"); } - string apiVersion = "2019-09-01"; + string apiVersion = "2019-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/VpnSitesConfigurationOperations.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/VpnSitesConfigurationOperations.cs index 3b3a5982d2d61..1f34abd72df7c 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/VpnSitesConfigurationOperations.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/VpnSitesConfigurationOperations.cs @@ -131,7 +131,7 @@ internal VpnSitesConfigurationOperations(NetworkManagementClient client) { request.Validate(); } - string apiVersion = "2019-09-01"; + string apiVersion = "2019-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/VpnSitesOperations.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/VpnSitesOperations.cs index b8b1f456f15a6..1ab413384f12c 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/VpnSitesOperations.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/VpnSitesOperations.cs @@ -94,7 +94,7 @@ internal VpnSitesOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "vpnSiteName"); } - string apiVersion = "2019-09-01"; + string apiVersion = "2019-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -321,7 +321,7 @@ internal VpnSitesOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "vpnSiteParameters"); } - string apiVersion = "2019-09-01"; + string apiVersion = "2019-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -537,7 +537,7 @@ internal VpnSitesOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); } - string apiVersion = "2019-09-01"; + string apiVersion = "2019-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -715,7 +715,7 @@ internal VpnSitesOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-09-01"; + string apiVersion = "2019-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -913,7 +913,7 @@ internal VpnSitesOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "vpnSiteParameters"); } - string apiVersion = "2019-09-01"; + string apiVersion = "2019-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1129,7 +1129,7 @@ internal VpnSitesOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "vpnSiteName"); } - string apiVersion = "2019-09-01"; + string apiVersion = "2019-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/WebApplicationFirewallPoliciesOperations.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/WebApplicationFirewallPoliciesOperations.cs index 99f2666225c18..f6a25a1604ba0 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/WebApplicationFirewallPoliciesOperations.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/WebApplicationFirewallPoliciesOperations.cs @@ -87,7 +87,7 @@ internal WebApplicationFirewallPoliciesOperations(NetworkManagementClient client { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-09-01"; + string apiVersion = "2019-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -265,7 +265,7 @@ internal WebApplicationFirewallPoliciesOperations(NetworkManagementClient client { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-09-01"; + string apiVersion = "2019-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -462,7 +462,7 @@ internal WebApplicationFirewallPoliciesOperations(NetworkManagementClient client { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-09-01"; + string apiVersion = "2019-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -675,7 +675,7 @@ internal WebApplicationFirewallPoliciesOperations(NetworkManagementClient client { parameters.Validate(); } - string apiVersion = "2019-09-01"; + string apiVersion = "2019-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -920,7 +920,7 @@ internal WebApplicationFirewallPoliciesOperations(NetworkManagementClient client { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-09-01"; + string apiVersion = "2019-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Microsoft.Azure.Management.Network.csproj b/sdk/network/Microsoft.Azure.Management.Network/src/Microsoft.Azure.Management.Network.csproj index c0d1775b532c4..d92152afdbffc 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Microsoft.Azure.Management.Network.csproj +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Microsoft.Azure.Management.Network.csproj @@ -7,11 +7,17 @@ Microsoft.Azure.Management.Network Provides management capabilities for Network services. Microsoft.Azure.Management.Network - 19.17.1-preview + 19.18.0-preview Microsoft Azure Network management;Network;Network management; diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Properties/AssemblyInfo.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Properties/AssemblyInfo.cs index 270919b08cbac..ece60b8f6f989 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Properties/AssemblyInfo.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Properties/AssemblyInfo.cs @@ -8,7 +8,7 @@ [assembly: AssemblyDescription("Provides Microsoft Azure Network management functions for managing the Microsoft Azure Network service.")] [assembly: AssemblyVersion("19.5.0.0")] -[assembly: AssemblyFileVersion("19.17.1.0")] +[assembly: AssemblyFileVersion("19.18.0.0")] [assembly: AssemblyCompany("Microsoft")] [assembly: AssemblyProduct("Microsoft Azure .NET SDK")]