diff --git a/eng/mgmt/mgmtmetadata/network_resource-manager.txt b/eng/mgmt/mgmtmetadata/network_resource-manager.txt index 7db9a5a52bf5..6ec90228f94a 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/network-july-release/specification/network/resource-manager/readme.md --csharp --version=latest --reflect-api-versions --csharp-sdks-folder=D:\Projects\azure-sdk-for-net\sdk -2019-07-29 07:27:23 UTC +cmd.exe /c autorest.cmd https://github.com/Azure/azure-rest-api-specs/blob/network-august-release/specification/network/resource-manager/readme.md --csharp --version=latest --reflect-api-versions --csharp-sdks-folder=D:\Projects\azure-sdk-for-net\sdk +2019-09-09 23:16:08 UTC Azure-rest-api-specs repository information GitHub fork: Azure -Branch: network-july-release -Commit: 3f9699ad6fe772ad4f0afa139f13b99d4e032155 +Branch: network-august-release +Commit: 580738fef4a3f18b9358127c5f68bb72fecf8e8f AutoRest information Requested version: latest Bootstrapper version: autorest@2.0.4283 diff --git a/sdk/network/Microsoft.Azure.Management.Network/AzSdk.RP.props b/sdk/network/Microsoft.Azure.Management.Network/AzSdk.RP.props index 079dbabeea43..e3df8c0d5bcb 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_2017-03-30;Network_2019-06-01; + Compute_2018-10-01;Network_2019-07-01;Network_2019-06-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 b196178a180c..0e9628c1406a 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-06-01"; + string apiVersion = "2019-07-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -353,7 +353,7 @@ internal ApplicationGatewaysOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-06-01"; + string apiVersion = "2019-07-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -531,7 +531,7 @@ internal ApplicationGatewaysOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-06-01"; + string apiVersion = "2019-07-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -808,7 +808,7 @@ internal ApplicationGatewaysOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-06-01"; + string apiVersion = "2019-07-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -979,7 +979,7 @@ internal ApplicationGatewaysOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-06-01"; + string apiVersion = "2019-07-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1150,7 +1150,7 @@ internal ApplicationGatewaysOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-06-01"; + string apiVersion = "2019-07-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1321,7 +1321,7 @@ internal ApplicationGatewaysOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-06-01"; + string apiVersion = "2019-07-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1497,7 +1497,7 @@ internal ApplicationGatewaysOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-06-01"; + string apiVersion = "2019-07-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1673,7 +1673,7 @@ internal ApplicationGatewaysOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-06-01"; + string apiVersion = "2019-07-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1856,7 +1856,7 @@ internal ApplicationGatewaysOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "predefinedPolicyName"); } - string apiVersion = "2019-06-01"; + string apiVersion = "2019-07-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -2045,7 +2045,7 @@ internal ApplicationGatewaysOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-06-01"; + string apiVersion = "2019-07-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -2232,7 +2232,7 @@ internal ApplicationGatewaysOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-06-01"; + string apiVersion = "2019-07-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -2458,7 +2458,7 @@ internal ApplicationGatewaysOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-06-01"; + string apiVersion = "2019-07-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -2656,7 +2656,7 @@ internal ApplicationGatewaysOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-06-01"; + string apiVersion = "2019-07-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -2829,7 +2829,7 @@ internal ApplicationGatewaysOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-06-01"; + string apiVersion = "2019-07-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -3010,7 +3010,7 @@ internal ApplicationGatewaysOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-06-01"; + string apiVersion = "2019-07-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -3221,7 +3221,7 @@ internal ApplicationGatewaysOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "probeRequest"); } - string apiVersion = "2019-06-01"; + string apiVersion = "2019-07-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 fd6b1efa24e4..3923882203a5 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-06-01"; + string apiVersion = "2019-07-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -347,7 +347,7 @@ internal ApplicationSecurityGroupsOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-06-01"; + string apiVersion = "2019-07-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-06-01"; + string apiVersion = "2019-07-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -719,7 +719,7 @@ internal ApplicationSecurityGroupsOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-06-01"; + string apiVersion = "2019-07-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -903,7 +903,7 @@ internal ApplicationSecurityGroupsOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-06-01"; + string apiVersion = "2019-07-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1129,7 +1129,7 @@ internal ApplicationSecurityGroupsOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-06-01"; + string apiVersion = "2019-07-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 8aecf7316190..0efd13bae2f4 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-06-01"; + string apiVersion = "2019-07-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 4bc38b6874d9..31dab594003a 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-06-01"; + string apiVersion = "2019-07-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 e9e6faab82f1..72aedd515555 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-06-01"; + string apiVersion = "2019-07-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-06-01"; + string apiVersion = "2019-07-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 39e4cf560567..55244c4b36e5 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-06-01"; + string apiVersion = "2019-07-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 45bb1e5f97ee..dc5fb551bde6 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-06-01"; + string apiVersion = "2019-07-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 80535559f843..857177eaf721 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-06-01"; + string apiVersion = "2019-07-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-06-01"; + string apiVersion = "2019-07-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-06-01"; + string apiVersion = "2019-07-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-06-01"; + string apiVersion = "2019-07-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-06-01"; + string apiVersion = "2019-07-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-06-01"; + string apiVersion = "2019-07-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 232445cd9974..3c2e1ee16bba 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-06-01"; + string apiVersion = "2019-07-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-06-01"; + string apiVersion = "2019-07-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-06-01"; + string apiVersion = "2019-07-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-06-01"; + string apiVersion = "2019-07-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-06-01"; + string apiVersion = "2019-07-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 4fb1728afa23..21241036435f 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-06-01"; + string apiVersion = "2019-07-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 681f5ac7d52e..5d13887d5619 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/ConnectionMonitorsOperations.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/ConnectionMonitorsOperations.cs @@ -301,6 +301,218 @@ internal ConnectionMonitorsOperations(NetworkManagementClient client) return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); } + /// + /// Update tags of the specified connection monitor. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the network watcher. + /// + /// + /// The name of the connection monitor. + /// + /// + /// Parameters supplied to update connection monitor tags. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task> UpdateTagsWithHttpMessagesAsync(string resourceGroupName, string networkWatcherName, string connectionMonitorName, TagsObject 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 (connectionMonitorName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "connectionMonitorName"); + } + if (parameters == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "parameters"); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + string apiVersion = "2019-06-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("connectionMonitorName", connectionMonitorName); + tracingParameters.Add("parameters", parameters); + tracingParameters.Add("apiVersion", apiVersion); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "UpdateTags", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/connectionMonitors/{connectionMonitorName}").ToString(); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{networkWatcherName}", System.Uri.EscapeDataString(networkWatcherName)); + _url = _url.Replace("{connectionMonitorName}", System.Uri.EscapeDataString(connectionMonitorName)); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + List _queryParameters = new List(); + if (apiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("PATCH"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + if(parameters != null) + { + _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(parameters, Client.SerializationSettings); + _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); + _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); + } + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new 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; + } + /// /// Stops the specified connection monitor. /// 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 3e7a48cc79de..73c38804b6c1 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/ConnectionMonitorsOperationsExtensions.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/ConnectionMonitorsOperationsExtensions.cs @@ -164,6 +164,58 @@ public static void Delete(this IConnectionMonitorsOperations operations, string (await operations.DeleteWithHttpMessagesAsync(resourceGroupName, networkWatcherName, connectionMonitorName, null, cancellationToken).ConfigureAwait(false)).Dispose(); } + /// + /// Update tags of the specified connection monitor. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the network watcher. + /// + /// + /// The name of the connection monitor. + /// + /// + /// Parameters supplied to update connection monitor tags. + /// + public static ConnectionMonitorResult UpdateTags(this IConnectionMonitorsOperations operations, string resourceGroupName, string networkWatcherName, string connectionMonitorName, TagsObject parameters) + { + return operations.UpdateTagsAsync(resourceGroupName, networkWatcherName, connectionMonitorName, parameters).GetAwaiter().GetResult(); + } + + /// + /// Update tags of the specified connection monitor. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the network watcher. + /// + /// + /// The name of the connection monitor. + /// + /// + /// Parameters supplied to update connection monitor tags. + /// + /// + /// The cancellation token. + /// + public static async Task UpdateTagsAsync(this IConnectionMonitorsOperations operations, string resourceGroupName, string networkWatcherName, string connectionMonitorName, TagsObject parameters, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.UpdateTagsWithHttpMessagesAsync(resourceGroupName, networkWatcherName, connectionMonitorName, parameters, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + /// /// Stops the specified connection monitor. /// 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 664d74ac820a..e263f055c402 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-06-01"; + string apiVersion = "2019-07-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -357,7 +357,7 @@ internal DdosCustomPoliciesOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-06-01"; + string apiVersion = "2019-07-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-06-01"; + string apiVersion = "2019-07-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -766,7 +766,7 @@ internal DdosCustomPoliciesOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-06-01"; + string apiVersion = "2019-07-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 8a21207232ec..a641492688d4 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-06-01"; + string apiVersion = "2019-07-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -346,7 +346,7 @@ internal DdosProtectionPlansOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-06-01"; + string apiVersion = "2019-07-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-06-01"; + string apiVersion = "2019-07-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -718,7 +718,7 @@ internal DdosProtectionPlansOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-06-01"; + string apiVersion = "2019-07-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-06-01"; + string apiVersion = "2019-07-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1127,7 +1127,7 @@ internal DdosProtectionPlansOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-06-01"; + string apiVersion = "2019-07-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 a0163643a282..15805a365822 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-06-01"; + string apiVersion = "2019-07-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-06-01"; + string apiVersion = "2019-07-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 ea06c014af69..c19001605c80 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-06-01"; + string apiVersion = "2019-07-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-06-01"; + string apiVersion = "2019-07-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-06-01"; + string apiVersion = "2019-07-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-06-01"; + string apiVersion = "2019-07-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 0cb019d66e94..a1de95ac8b88 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-06-01"; + string apiVersion = "2019-07-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-06-01"; + string apiVersion = "2019-07-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-06-01"; + string apiVersion = "2019-07-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-06-01"; + string apiVersion = "2019-07-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 d6acc0772758..d989bdb84e23 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-06-01"; + string apiVersion = "2019-07-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-06-01"; + string apiVersion = "2019-07-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-06-01"; + string apiVersion = "2019-07-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-06-01"; + string apiVersion = "2019-07-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 03079e4eadb7..a662d735c583 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-06-01"; + string apiVersion = "2019-07-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -448,7 +448,7 @@ internal ExpressRouteCircuitsOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-06-01"; + string apiVersion = "2019-07-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -649,7 +649,7 @@ internal ExpressRouteCircuitsOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-06-01"; + string apiVersion = "2019-07-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -838,7 +838,7 @@ internal ExpressRouteCircuitsOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-06-01"; + string apiVersion = "2019-07-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1016,7 +1016,7 @@ internal ExpressRouteCircuitsOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-06-01"; + string apiVersion = "2019-07-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1203,7 +1203,7 @@ internal ExpressRouteCircuitsOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-06-01"; + string apiVersion = "2019-07-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1387,7 +1387,7 @@ internal ExpressRouteCircuitsOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-06-01"; + string apiVersion = "2019-07-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1613,7 +1613,7 @@ internal ExpressRouteCircuitsOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-06-01"; + string apiVersion = "2019-07-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1829,7 +1829,7 @@ internal ExpressRouteCircuitsOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-06-01"; + string apiVersion = "2019-07-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -2042,7 +2042,7 @@ internal ExpressRouteCircuitsOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-06-01"; + string apiVersion = "2019-07-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -2255,7 +2255,7 @@ internal ExpressRouteCircuitsOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-06-01"; + string apiVersion = "2019-07-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 0a10280c10b5..cb3a3c88aa5e 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-06-01"; + string apiVersion = "2019-07-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-06-01"; + string apiVersion = "2019-07-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-06-01"; + string apiVersion = "2019-07-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-06-01"; + string apiVersion = "2019-07-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 88eda1bcb968..0a506cb7e0e5 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-06-01"; + string apiVersion = "2019-07-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-06-01"; + string apiVersion = "2019-07-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-06-01"; + string apiVersion = "2019-07-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-06-01"; + string apiVersion = "2019-07-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 46be45ce0a3b..695d7e39e0a9 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-06-01"; + string apiVersion = "2019-07-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-06-01"; + string apiVersion = "2019-07-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-06-01"; + string apiVersion = "2019-07-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -793,7 +793,7 @@ internal ExpressRouteCrossConnectionsOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-06-01"; + string apiVersion = "2019-07-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1001,7 +1001,7 @@ internal ExpressRouteCrossConnectionsOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-06-01"; + string apiVersion = "2019-07-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1217,7 +1217,7 @@ internal ExpressRouteCrossConnectionsOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-06-01"; + string apiVersion = "2019-07-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1430,7 +1430,7 @@ internal ExpressRouteCrossConnectionsOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-06-01"; + string apiVersion = "2019-07-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1643,7 +1643,7 @@ internal ExpressRouteCrossConnectionsOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-06-01"; + string apiVersion = "2019-07-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 e3d0c5cb9557..68952dd0f4e0 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-06-01"; + string apiVersion = "2019-07-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-06-01"; + string apiVersion = "2019-07-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-06-01"; + string apiVersion = "2019-07-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-06-01"; + string apiVersion = "2019-07-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-06-01"; + string apiVersion = "2019-07-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 dae5f36bff1d..4eefd0b681b1 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-06-01"; + string apiVersion = "2019-07-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-06-01"; + string apiVersion = "2019-07-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 8726e8a28b05..7f6b1a68b5be 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-06-01"; + string apiVersion = "2019-07-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-06-01"; + string apiVersion = "2019-07-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 1111c94ddb98..7030ef693182 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-06-01"; + string apiVersion = "2019-07-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -353,7 +353,7 @@ internal ExpressRoutePortsOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); } - string apiVersion = "2019-06-01"; + string apiVersion = "2019-07-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -531,7 +531,7 @@ internal ExpressRoutePortsOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-06-01"; + string apiVersion = "2019-07-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -718,7 +718,7 @@ internal ExpressRoutePortsOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "expressRoutePortName"); } - string apiVersion = "2019-06-01"; + string apiVersion = "2019-07-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -901,7 +901,7 @@ internal ExpressRoutePortsOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "parameters"); } - string apiVersion = "2019-06-01"; + string apiVersion = "2019-07-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1127,7 +1127,7 @@ internal ExpressRoutePortsOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "parameters"); } - string apiVersion = "2019-06-01"; + string apiVersion = "2019-07-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 8ea24194525c..4f864a718d74 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-06-01"; + string apiVersion = "2019-07-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 6732b68eba41..2e6443a35d98 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-06-01"; + string apiVersion = "2019-07-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -325,7 +325,7 @@ internal FirewallPoliciesOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "firewallPolicyParameters"); } - string apiVersion = "2019-06-01"; + string apiVersion = "2019-07-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -539,7 +539,7 @@ internal FirewallPoliciesOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-06-01"; + string apiVersion = "2019-07-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -717,7 +717,7 @@ internal FirewallPoliciesOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-06-01"; + string apiVersion = "2019-07-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -904,7 +904,7 @@ internal FirewallPoliciesOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-06-01"; + string apiVersion = "2019-07-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1087,7 +1087,7 @@ internal FirewallPoliciesOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-06-01"; + string apiVersion = "2019-07-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 65d78434763b..db2a38daba70 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-06-01"; + string apiVersion = "2019-07-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-06-01"; + string apiVersion = "2019-07-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-06-01"; + string apiVersion = "2019-07-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-06-01"; + string apiVersion = "2019-07-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/HubVirtualNetworkConnectionsOperations.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/HubVirtualNetworkConnectionsOperations.cs index 068d6361ec9c..942146d28707 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-06-01"; + string apiVersion = "2019-07-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -292,7 +292,7 @@ internal HubVirtualNetworkConnectionsOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "virtualHubName"); } - string apiVersion = "2019-06-01"; + string apiVersion = "2019-07-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/IConnectionMonitorsOperations.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/IConnectionMonitorsOperations.cs index 5f3338ead98e..f6ae52c9f1cf 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/IConnectionMonitorsOperations.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/IConnectionMonitorsOperations.cs @@ -109,6 +109,37 @@ public partial interface IConnectionMonitorsOperations /// Task DeleteWithHttpMessagesAsync(string resourceGroupName, string networkWatcherName, string connectionMonitorName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// + /// Update tags of the specified connection monitor. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the network watcher. + /// + /// + /// The name of the connection monitor. + /// + /// + /// Parameters supplied to update connection monitor tags. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> UpdateTagsWithHttpMessagesAsync(string resourceGroupName, string networkWatcherName, string connectionMonitorName, TagsObject parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// /// Stops the specified connection monitor. /// /// 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 5a9737ba4790..2800860c8e4d 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/INetworkManagementClient.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/INetworkManagementClient.cs @@ -420,6 +420,16 @@ public partial interface INetworkManagementClient : System.IDisposable /// IVirtualNetworkTapsOperations VirtualNetworkTaps { get; } + /// + /// Gets the IVirtualRoutersOperations. + /// + IVirtualRoutersOperations VirtualRouters { get; } + + /// + /// Gets the IVirtualRouterPeeringsOperations. + /// + IVirtualRouterPeeringsOperations VirtualRouterPeerings { get; } + /// /// Gets the IVirtualWansOperations. /// 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 670ce4bd785f..5e46d06a65cb 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/INetworkWatchersOperations.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/INetworkWatchersOperations.cs @@ -489,7 +489,13 @@ public partial interface INetworkWatchersOperations /// Task> ListAvailableProvidersWithHttpMessagesAsync(string resourceGroupName, string networkWatcherName, AvailableProvidersListParameters parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Get network configuration diagnostic. + /// Gets Network Configuration Diagnostic data to help customers + /// understand and debug network behavior. It provides detailed + /// information on what security rules were applied to a specified + /// traffic flow and the result of evaluating these rules. Customers + /// must provide details of a flow like source, destination, protocol, + /// etc. The API returns whether traffic was allowed or denied, the + /// rules evaluated for the specified flow and the evaluation results. /// /// /// The name of the resource group. @@ -831,7 +837,13 @@ public partial interface INetworkWatchersOperations /// Task> BeginListAvailableProvidersWithHttpMessagesAsync(string resourceGroupName, string networkWatcherName, AvailableProvidersListParameters parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Get network configuration diagnostic. + /// Gets Network Configuration Diagnostic data to help customers + /// understand and debug network behavior. It provides detailed + /// information on what security rules were applied to a specified + /// traffic flow and the result of evaluating these rules. Customers + /// must provide details of a flow like source, destination, protocol, + /// etc. The API returns whether traffic was allowed or denied, the + /// rules evaluated for the specified flow and the evaluation results. /// /// /// The name of the resource group. diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/IPrivateLinkServicesOperations.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/IPrivateLinkServicesOperations.cs index 1b9c9b86fcce..c402ee952c7a 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/IPrivateLinkServicesOperations.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/IPrivateLinkServicesOperations.cs @@ -204,7 +204,7 @@ public partial interface IPrivateLinkServicesOperations /// Task DeletePrivateEndpointConnectionWithHttpMessagesAsync(string resourceGroupName, string serviceName, string peConnectionName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Checks the subscription is visible to private link service + /// Checks whether the subscription is visible to private link service. /// /// /// The location of the domain name. @@ -229,7 +229,8 @@ public partial interface IPrivateLinkServicesOperations /// Task> CheckPrivateLinkServiceVisibilityWithHttpMessagesAsync(string location, CheckPrivateLinkServiceVisibilityRequest parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Checks the subscription is visible to private link service + /// Checks whether the subscription is visible to private link service + /// in the specified resource group. /// /// /// The location of the domain name. diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/IServiceTagsOperations.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/IServiceTagsOperations.cs index 7aa52a33381d..d6e0a0b50a27 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/IServiceTagsOperations.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/IServiceTagsOperations.cs @@ -27,7 +27,10 @@ public partial interface IServiceTagsOperations /// Gets a list of service tag information resources. /// /// - /// The location. + /// The location that will be used as a reference for version (not as a + /// filter based on location, you will get the list of service tags + /// with prefix details across all regions but limited to the cloud + /// that your subscription belongs to). /// /// /// The headers that will be added to request. diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/ISubnetsOperations.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/ISubnetsOperations.cs index 812f6515d9fe..b4d48b1613ff 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/ISubnetsOperations.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/ISubnetsOperations.cs @@ -140,6 +140,35 @@ public partial interface ISubnetsOperations /// Task PrepareNetworkPoliciesWithHttpMessagesAsync(string resourceGroupName, string virtualNetworkName, string subnetName, PrepareNetworkPoliciesRequest prepareNetworkPoliciesRequestParameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// + /// Unprepares a subnet by removing network intent policies. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the virtual network. + /// + /// + /// The name of the subnet. + /// + /// + /// Parameters supplied to unprepare subnet to remove network intent + /// policies. + /// + /// + /// 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 UnprepareNetworkPoliciesWithHttpMessagesAsync(string resourceGroupName, string virtualNetworkName, string subnetName, UnprepareNetworkPoliciesRequest unprepareNetworkPoliciesRequestParameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// /// Gets all subnets in a virtual network. /// /// @@ -250,6 +279,35 @@ public partial interface ISubnetsOperations /// Task BeginPrepareNetworkPoliciesWithHttpMessagesAsync(string resourceGroupName, string virtualNetworkName, string subnetName, PrepareNetworkPoliciesRequest prepareNetworkPoliciesRequestParameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// + /// Unprepares a subnet by removing network intent policies. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the virtual network. + /// + /// + /// The name of the subnet. + /// + /// + /// Parameters supplied to unprepare subnet to remove network intent + /// policies. + /// + /// + /// 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 BeginUnprepareNetworkPoliciesWithHttpMessagesAsync(string resourceGroupName, string virtualNetworkName, string subnetName, UnprepareNetworkPoliciesRequest unprepareNetworkPoliciesRequestParameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// /// Gets all subnets in a virtual network. /// /// diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/IVirtualRouterPeeringsOperations.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/IVirtualRouterPeeringsOperations.cs new file mode 100644 index 000000000000..221deedb1a15 --- /dev/null +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/IVirtualRouterPeeringsOperations.cs @@ -0,0 +1,247 @@ +// +// 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; + + /// + /// VirtualRouterPeeringsOperations operations. + /// + public partial interface IVirtualRouterPeeringsOperations + { + /// + /// Deletes the specified peering from a Virtual Router. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the Virtual Router. + /// + /// + /// The name of the peering. + /// + /// + /// 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 virtualRouterName, string peeringName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Gets the specified Virtual Router Peering. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the Virtual Router. + /// + /// + /// The name of the Virtual Router Peering. + /// + /// + /// 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 virtualRouterName, string peeringName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Updates a Virtual Router Peering. + /// + /// + /// The resource group name of the Virtual Router Peering. + /// + /// + /// The name of the Virtual Router. + /// + /// + /// The name of the Virtual Router Peering being updated. + /// + /// + /// Parameters supplied to update Virtual Router Peering 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> UpdateWithHttpMessagesAsync(string resourceGroupName, string virtualRouterName, string peeringName, VirtualRouterPeering parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Creates or updates the specified Virtual Router Peering. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the Virtual Router. + /// + /// + /// The name of the Virtual Router Peering. + /// + /// + /// Parameters supplied to the create or update Virtual Router Peering + /// operation. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> CreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string virtualRouterName, string peeringName, VirtualRouterPeering parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Lists all Virtual Router Peerings in a Virtual Router resource. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the Virtual Router. + /// + /// + /// 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 virtualRouterName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Deletes the specified peering from a Virtual Router. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the Virtual Router. + /// + /// + /// The name of the peering. + /// + /// + /// 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 virtualRouterName, string peeringName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Creates or updates the specified Virtual Router Peering. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the Virtual Router. + /// + /// + /// The name of the Virtual Router Peering. + /// + /// + /// Parameters supplied to the create or update Virtual Router Peering + /// operation. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> BeginCreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string virtualRouterName, string peeringName, VirtualRouterPeering parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Lists all Virtual Router Peerings in a Virtual Router resource. + /// + /// + /// 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/IVirtualRoutersOperations.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/IVirtualRoutersOperations.cs new file mode 100644 index 000000000000..f592aea98475 --- /dev/null +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/IVirtualRoutersOperations.cs @@ -0,0 +1,268 @@ +// +// 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; + + /// + /// VirtualRoutersOperations operations. + /// + public partial interface IVirtualRoutersOperations + { + /// + /// Deletes the specified Virtual Router. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the Virtual Router. + /// + /// + /// 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 virtualRouterName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Gets the specified Virtual Router. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the Virtual Router. + /// + /// + /// Expands referenced resources. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> GetWithHttpMessagesAsync(string resourceGroupName, string virtualRouterName, string expand = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Updates a Virtual Router. + /// + /// + /// The resource group name of the Virtual Router. + /// + /// + /// The name of the Virtual Router being updated. + /// + /// + /// Parameters supplied to Update Virtual Router Tags. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> UpdateWithHttpMessagesAsync(string resourceGroupName, string virtualRouterName, TagsObject parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Creates or updates the specified Virtual Router. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the Virtual Router. + /// + /// + /// Parameters supplied to the create or update Virtual Router. + /// + /// + /// 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 virtualRouterName, VirtualRouter parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Lists all Virtual Routers in a resource group. + /// + /// + /// The name of the resource group. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task>> ListByResourceGroupWithHttpMessagesAsync(string resourceGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Gets all the Virtual Routers in a subscription. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task>> ListWithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Deletes the specified Virtual Router. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the Virtual Router. + /// + /// + /// 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 virtualRouterName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Creates or updates the specified Virtual Router. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the Virtual Router. + /// + /// + /// Parameters supplied to the create or update Virtual Router. + /// + /// + /// 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 virtualRouterName, VirtualRouter parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Lists all Virtual Routers in a resource group. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task>> ListByResourceGroupNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Gets all the Virtual Routers in a subscription. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task>> ListNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + } +} diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/InboundNatRulesOperations.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/InboundNatRulesOperations.cs index a7d395b57904..57f0f96fcf19 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-06-01"; + string apiVersion = "2019-07-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-06-01"; + string apiVersion = "2019-07-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-06-01"; + string apiVersion = "2019-07-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-06-01"; + string apiVersion = "2019-07-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 dcc63594f8b1..16df81f2c8cc 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-06-01"; + string apiVersion = "2019-07-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-06-01"; + string apiVersion = "2019-07-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 7551db43b5bc..97979fb5d75e 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-06-01"; + string apiVersion = "2019-07-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-06-01"; + string apiVersion = "2019-07-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 fcc10c0f63b6..e0769be90c3d 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-06-01"; + string apiVersion = "2019-07-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-06-01"; + string apiVersion = "2019-07-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 3378b6f7ea4a..b23013d65b6e 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-06-01"; + string apiVersion = "2019-07-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 41d22a6808c1..c621956a90d3 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-06-01"; + string apiVersion = "2019-07-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-06-01"; + string apiVersion = "2019-07-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 034634a8dacb..70637389804c 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-06-01"; + string apiVersion = "2019-07-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-06-01"; + string apiVersion = "2019-07-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 1b3b83949093..2bf351b0f074 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-06-01"; + string apiVersion = "2019-07-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -354,7 +354,7 @@ internal LoadBalancersOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-06-01"; + string apiVersion = "2019-07-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-06-01"; + string apiVersion = "2019-07-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -726,7 +726,7 @@ internal LoadBalancersOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-06-01"; + string apiVersion = "2019-07-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-06-01"; + string apiVersion = "2019-07-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1135,7 +1135,7 @@ internal LoadBalancersOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-06-01"; + string apiVersion = "2019-07-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 b012ab7f3dda..798afb29fa53 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-06-01"; + string apiVersion = "2019-07-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -361,7 +361,7 @@ internal LocalNetworkGatewaysOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-06-01"; + string apiVersion = "2019-07-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -568,7 +568,7 @@ internal LocalNetworkGatewaysOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-06-01"; + string apiVersion = "2019-07-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -791,7 +791,7 @@ internal LocalNetworkGatewaysOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-06-01"; + string apiVersion = "2019-07-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-06-01"; + string apiVersion = "2019-07-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 0dcea7b70f0a..99ad879aa9c4 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 @@ -100,11 +100,11 @@ public ApplicationGateway() /// gateway resource. /// Autoscale /// Configuration. - /// Resource GUID property of the + /// The resource GUID property of the /// application gateway resource. - /// Provisioning state of the - /// application gateway resource. Possible values are: 'Updating', - /// 'Deleting', and 'Failed'. + /// The provisioning state of the + /// application gateway resource. Possible values include: 'Succeeded', + /// 'Updating', 'Deleting', 'Failed' /// Custom error configurations /// of the application gateway resource. /// A unique read-only string that changes whenever @@ -312,16 +312,16 @@ public ApplicationGateway() public ApplicationGatewayAutoscaleConfiguration AutoscaleConfiguration { get; set; } /// - /// Gets or sets resource GUID property of the application gateway + /// Gets or sets the resource GUID property of the application gateway /// resource. /// [JsonProperty(PropertyName = "properties.resourceGuid")] public string ResourceGuid { get; set; } /// - /// Gets or sets provisioning state of the application gateway - /// resource. Possible values are: 'Updating', 'Deleting', and - /// 'Failed'. + /// Gets or sets the provisioning state of the application gateway + /// resource. Possible values include: 'Succeeded', 'Updating', + /// 'Deleting', 'Failed' /// [JsonProperty(PropertyName = "properties.provisioningState")] public string ProvisioningState { get; set; } @@ -382,6 +382,16 @@ public virtual void Validate() } } } + if (RequestRoutingRules != null) + { + foreach (var element2 in RequestRoutingRules) + { + if (element2 != null) + { + element2.Validate(); + } + } + } if (WebApplicationFirewallConfiguration != null) { WebApplicationFirewallConfiguration.Validate(); diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ApplicationGatewayAuthenticationCertificate.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ApplicationGatewayAuthenticationCertificate.cs index 3b3a405fa435..9c903f6a69f4 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ApplicationGatewayAuthenticationCertificate.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ApplicationGatewayAuthenticationCertificate.cs @@ -36,9 +36,9 @@ public ApplicationGatewayAuthenticationCertificate() /// /// Resource ID. /// Certificate public data. - /// Provisioning state of the - /// authentication certificate resource. Possible values are: - /// 'Updating', 'Deleting', and 'Failed'. + /// The provisioning state of the + /// authentication certificate resource. Possible values include: + /// 'Succeeded', 'Updating', 'Deleting', 'Failed' /// Name of the authentication certificate that is /// unique within an Application Gateway. /// A unique read-only string that changes whenever @@ -67,9 +67,9 @@ public ApplicationGatewayAuthenticationCertificate() public string Data { get; set; } /// - /// Gets or sets provisioning state of the authentication certificate - /// resource. Possible values are: 'Updating', 'Deleting', and - /// 'Failed'. + /// Gets or sets the provisioning state of the authentication + /// certificate resource. Possible values include: 'Succeeded', + /// 'Updating', 'Deleting', 'Failed' /// [JsonProperty(PropertyName = "properties.provisioningState")] public string ProvisioningState { get; set; } diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ApplicationGatewayBackendAddressPool.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ApplicationGatewayBackendAddressPool.cs index b2364608ecbb..afa0f5e29a87 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ApplicationGatewayBackendAddressPool.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ApplicationGatewayBackendAddressPool.cs @@ -40,9 +40,9 @@ public ApplicationGatewayBackendAddressPool() /// Collection of references to /// IPs defined in network interfaces. /// Backend addresses. - /// Provisioning state of the backend - /// address pool resource. Possible values are: 'Updating', 'Deleting', - /// and 'Failed'. + /// The provisioning state of the + /// backend address pool resource. Possible values include: + /// 'Succeeded', 'Updating', 'Deleting', 'Failed' /// Name of the backend address pool that is unique /// within an Application Gateway. /// A unique read-only string that changes whenever @@ -79,9 +79,9 @@ public ApplicationGatewayBackendAddressPool() public IList BackendAddresses { get; set; } /// - /// Gets or sets provisioning state of the backend address pool - /// resource. Possible values are: 'Updating', 'Deleting', and - /// 'Failed'. + /// Gets or sets the provisioning state of the backend address pool + /// resource. Possible values include: 'Succeeded', 'Updating', + /// 'Deleting', 'Failed' /// [JsonProperty(PropertyName = "properties.provisioningState")] public string ProvisioningState { get; set; } diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ApplicationGatewayBackendHttpSettings.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ApplicationGatewayBackendHttpSettings.cs index 45e09781368b..4005158fe12a 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ApplicationGatewayBackendHttpSettings.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ApplicationGatewayBackendHttpSettings.cs @@ -66,9 +66,9 @@ public ApplicationGatewayBackendHttpSettings() /// Path which should be used as a prefix for all /// HTTP requests. Null means no path will be prefixed. Default value /// is null. - /// Provisioning state of the backend - /// http settings resource. Possible values are: 'Updating', - /// 'Deleting', and 'Failed'. + /// The provisioning state of the + /// backend HTTP settings resource. Possible values include: + /// 'Succeeded', 'Updating', 'Deleting', 'Failed' /// Name of the backend http settings that is unique /// within an Application Gateway. /// A unique read-only string that changes whenever @@ -191,9 +191,9 @@ public ApplicationGatewayBackendHttpSettings() public string Path { get; set; } /// - /// Gets or sets provisioning state of the backend http settings - /// resource. Possible values are: 'Updating', 'Deleting', and - /// 'Failed'. + /// Gets or sets the provisioning state of the backend HTTP settings + /// resource. Possible values include: 'Succeeded', 'Updating', + /// 'Deleting', 'Failed' /// [JsonProperty(PropertyName = "properties.provisioningState")] public string ProvisioningState { get; set; } diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ApplicationGatewayFirewallRuleSet.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ApplicationGatewayFirewallRuleSet.cs index 607fbc20be87..bb452814c529 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ApplicationGatewayFirewallRuleSet.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ApplicationGatewayFirewallRuleSet.cs @@ -48,7 +48,8 @@ public ApplicationGatewayFirewallRuleSet() /// Resource location. /// Resource tags. /// The provisioning state of the web - /// application firewall rule set. + /// application firewall rule set. Possible values include: + /// 'Succeeded', 'Updating', 'Deleting', 'Failed' public ApplicationGatewayFirewallRuleSet(string ruleSetType, string ruleSetVersion, IList ruleGroups, string id = default(string), string name = default(string), string type = default(string), string location = default(string), IDictionary tags = default(IDictionary), string provisioningState = default(string)) : base(id, name, type, location, tags) { @@ -66,7 +67,8 @@ public ApplicationGatewayFirewallRuleSet() /// /// Gets or sets the provisioning state of the web application firewall - /// rule set. + /// rule set. Possible values include: 'Succeeded', 'Updating', + /// 'Deleting', 'Failed' /// [JsonProperty(PropertyName = "properties.provisioningState")] public string ProvisioningState { 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 e733de5da881..4241bbbbe552 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 @@ -43,9 +43,9 @@ public ApplicationGatewayFrontendIPConfiguration() /// Reference of the subnet resource. /// Reference of the PublicIP /// resource. - /// Provisioning state of the public IP - /// resource. Possible values are: 'Updating', 'Deleting', and - /// 'Failed'. + /// The provisioning state of the + /// frontend IP configuration resource. Possible values include: + /// 'Succeeded', 'Updating', 'Deleting', 'Failed' /// Name of the frontend IP configuration that is /// unique within an Application Gateway. /// A unique read-only string that changes whenever @@ -97,8 +97,9 @@ public ApplicationGatewayFrontendIPConfiguration() public SubResource PublicIPAddress { get; set; } /// - /// Gets or sets provisioning state of the public IP resource. Possible - /// values are: 'Updating', 'Deleting', and 'Failed'. + /// Gets or sets the provisioning state of the frontend IP + /// configuration resource. Possible values include: 'Succeeded', + /// 'Updating', 'Deleting', 'Failed' /// [JsonProperty(PropertyName = "properties.provisioningState")] public string ProvisioningState { get; set; } diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ApplicationGatewayFrontendPort.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ApplicationGatewayFrontendPort.cs index 04001dc6baad..159131c2f595 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ApplicationGatewayFrontendPort.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ApplicationGatewayFrontendPort.cs @@ -36,9 +36,9 @@ public ApplicationGatewayFrontendPort() /// /// Resource ID. /// Frontend port. - /// Provisioning state of the frontend - /// port resource. Possible values are: 'Updating', 'Deleting', and - /// 'Failed'. + /// The provisioning state of the + /// frontend port resource. Possible values include: 'Succeeded', + /// 'Updating', 'Deleting', 'Failed' /// Name of the frontend port that is unique within /// an Application Gateway. /// A unique read-only string that changes whenever @@ -67,8 +67,9 @@ public ApplicationGatewayFrontendPort() public int? Port { get; set; } /// - /// Gets or sets provisioning state of the frontend port resource. - /// Possible values are: 'Updating', 'Deleting', and 'Failed'. + /// Gets or sets the provisioning state of the frontend port resource. + /// Possible values include: 'Succeeded', 'Updating', 'Deleting', + /// 'Failed' /// [JsonProperty(PropertyName = "properties.provisioningState")] public string ProvisioningState { get; set; } diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ApplicationGatewayHttpListener.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ApplicationGatewayHttpListener.cs index d493a786389f..1fc814824cdb 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ApplicationGatewayHttpListener.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ApplicationGatewayHttpListener.cs @@ -48,9 +48,9 @@ public ApplicationGatewayHttpListener() /// application gateway. /// Applicable only if /// protocol is https. Enables SNI for multi-hosting. - /// Provisioning state of the HTTP - /// listener resource. Possible values are: 'Updating', 'Deleting', and - /// 'Failed'. + /// The provisioning state of the HTTP + /// listener resource. Possible values include: 'Succeeded', + /// 'Updating', 'Deleting', 'Failed' /// Custom error configurations /// of the HTTP listener. /// Name of the HTTP listener that is unique within @@ -120,8 +120,9 @@ public ApplicationGatewayHttpListener() public bool? RequireServerNameIndication { get; set; } /// - /// Gets or sets provisioning state of the HTTP listener resource. - /// Possible values are: 'Updating', 'Deleting', and 'Failed'. + /// Gets or sets the provisioning state of the HTTP listener resource. + /// Possible values include: 'Succeeded', 'Updating', 'Deleting', + /// 'Failed' /// [JsonProperty(PropertyName = "properties.provisioningState")] public string ProvisioningState { 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 64e0e01410eb..a3f80e2bf02e 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 @@ -38,9 +38,9 @@ public ApplicationGatewayIPConfiguration() /// Resource ID. /// Reference of the subnet resource. A subnet /// from where application gateway gets its private address. - /// Provisioning state of the - /// application gateway subnet resource. Possible values are: - /// 'Updating', 'Deleting', and 'Failed'. + /// The provisioning state of the + /// application gateway IP configuration resource. Possible values + /// include: 'Succeeded', 'Updating', 'Deleting', 'Failed' /// Name of the IP configuration that is unique /// within an Application Gateway. /// A unique read-only string that changes whenever @@ -70,9 +70,9 @@ public ApplicationGatewayIPConfiguration() public SubResource Subnet { get; set; } /// - /// Gets or sets provisioning state of the application gateway subnet - /// resource. Possible values are: 'Updating', 'Deleting', and - /// 'Failed'. + /// Gets or sets the provisioning state of the application gateway IP + /// configuration resource. Possible values include: 'Succeeded', + /// 'Updating', 'Deleting', 'Failed' /// [JsonProperty(PropertyName = "properties.provisioningState")] public string ProvisioningState { get; set; } 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 1eea633bdd50..5f4d8b39212e 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,11 +45,11 @@ public ApplicationGatewayOnDemandProbe() /// value is false. /// Criterion for classifying a healthy probe /// response. - /// Name of backend pool of application - /// gateway to which probe request will be sent. - /// Name of backend http setting + /// Reference of backend pool of + /// application gateway to which probe request will be sent. + /// Reference of 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), string backendPoolName = default(string), string backendHttpSettingName = default(string)) + 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)) { Protocol = protocol; Host = host; @@ -57,8 +57,8 @@ public ApplicationGatewayOnDemandProbe() Timeout = timeout; PickHostNameFromBackendHttpSettings = pickHostNameFromBackendHttpSettings; Match = match; - BackendPoolName = backendPoolName; - BackendHttpSettingName = backendHttpSettingName; + BackendAddressPool = backendAddressPool; + BackendHttpSettings = backendHttpSettings; CustomInit(); } @@ -110,18 +110,18 @@ public ApplicationGatewayOnDemandProbe() public ApplicationGatewayProbeHealthResponseMatch Match { get; set; } /// - /// Gets or sets name of backend pool of application gateway to which - /// probe request will be sent. + /// Gets or sets reference of backend pool of application gateway to + /// which probe request will be sent. /// - [JsonProperty(PropertyName = "backendPoolName")] - public string BackendPoolName { get; set; } + [JsonProperty(PropertyName = "backendAddressPool")] + public SubResource BackendAddressPool { get; set; } /// - /// Gets or sets name of backend http setting of application gateway to - /// be used for test probe. + /// Gets or sets reference of backend http setting of application + /// gateway to be used for test probe. /// - [JsonProperty(PropertyName = "backendHttpSettingName")] - public string BackendHttpSettingName { get; set; } + [JsonProperty(PropertyName = "backendHttpSettings")] + public SubResource BackendHttpSettings { get; set; } } } diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ApplicationGatewayPathRule.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ApplicationGatewayPathRule.cs index 33c0cd729dd9..824afdac8d35 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ApplicationGatewayPathRule.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ApplicationGatewayPathRule.cs @@ -44,8 +44,9 @@ public ApplicationGatewayPathRule() /// of URL path map path rule. /// Rewrite rule set resource of URL path /// map path rule. - /// Path rule of URL path map resource. - /// Possible values are: 'Updating', 'Deleting', and 'Failed'. + /// The provisioning state of the path + /// rule resource. Possible values include: 'Succeeded', 'Updating', + /// 'Deleting', 'Failed' /// Name of the path rule that is unique within an /// Application Gateway. /// A unique read-only string that changes whenever @@ -105,8 +106,9 @@ public ApplicationGatewayPathRule() public SubResource RewriteRuleSet { get; set; } /// - /// Gets or sets path rule of URL path map resource. Possible values - /// are: 'Updating', 'Deleting', and 'Failed'. + /// Gets or sets the provisioning state of the path rule resource. + /// Possible values include: 'Succeeded', 'Updating', 'Deleting', + /// 'Failed' /// [JsonProperty(PropertyName = "properties.provisioningState")] public string ProvisioningState { get; set; } diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ApplicationGatewayProbe.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ApplicationGatewayProbe.cs index 55a34f253eee..3206d5ccbbf2 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ApplicationGatewayProbe.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ApplicationGatewayProbe.cs @@ -56,9 +56,9 @@ public ApplicationGatewayProbe() /// marked healthy. Default value is 0. /// Criterion for classifying a healthy probe /// response. - /// Provisioning state of the backend - /// http settings resource. Possible values are: 'Updating', - /// 'Deleting', and 'Failed'. + /// The provisioning state of the probe + /// resource. Possible values include: 'Succeeded', 'Updating', + /// 'Deleting', 'Failed' /// Custom port which will be used for probing the /// backend servers. The valid value ranges from 1 to 65535. In case /// not set, port from http settings will be used. This property is @@ -159,9 +159,8 @@ public ApplicationGatewayProbe() public ApplicationGatewayProbeHealthResponseMatch Match { get; set; } /// - /// Gets or sets provisioning state of the backend http settings - /// resource. Possible values are: 'Updating', 'Deleting', and - /// 'Failed'. + /// Gets or sets the provisioning state of the probe resource. Possible + /// values include: 'Succeeded', 'Updating', 'Deleting', 'Failed' /// [JsonProperty(PropertyName = "properties.provisioningState")] public string ProvisioningState { get; set; } diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ApplicationGatewayRequestRoutingRule.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ApplicationGatewayRequestRoutingRule.cs index aa4f551c0e30..8420169e1faf 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ApplicationGatewayRequestRoutingRule.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ApplicationGatewayRequestRoutingRule.cs @@ -37,6 +37,8 @@ public ApplicationGatewayRequestRoutingRule() /// Resource ID. /// Rule type. Possible values include: 'Basic', /// 'PathBasedRouting' + /// Priority of the request routing + /// rule. /// Backend address pool resource of /// the application gateway. /// Backend http settings resource of @@ -49,18 +51,19 @@ public ApplicationGatewayRequestRoutingRule() /// rule of the application gateway. /// Redirect configuration resource /// of the application gateway. - /// Provisioning state of the request - /// routing rule resource. Possible values are: 'Updating', 'Deleting', - /// and 'Failed'. + /// The provisioning state of the + /// request routing rule resource. Possible values include: + /// 'Succeeded', 'Updating', 'Deleting', 'Failed' /// Name of the request routing rule that is unique /// within an Application Gateway. /// A unique read-only string that changes whenever /// the resource is updated. /// Type of the resource. - public ApplicationGatewayRequestRoutingRule(string id = default(string), string ruleType = default(string), SubResource backendAddressPool = default(SubResource), SubResource backendHttpSettings = default(SubResource), SubResource httpListener = default(SubResource), SubResource urlPathMap = default(SubResource), SubResource rewriteRuleSet = default(SubResource), SubResource redirectConfiguration = default(SubResource), string provisioningState = default(string), string name = default(string), string etag = default(string), string type = default(string)) + public ApplicationGatewayRequestRoutingRule(string id = default(string), string ruleType = default(string), int? priority = default(int?), SubResource backendAddressPool = default(SubResource), SubResource backendHttpSettings = default(SubResource), SubResource httpListener = default(SubResource), SubResource urlPathMap = default(SubResource), SubResource rewriteRuleSet = default(SubResource), SubResource redirectConfiguration = default(SubResource), string provisioningState = default(string), string name = default(string), string etag = default(string), string type = default(string)) : base(id) { RuleType = ruleType; + Priority = priority; BackendAddressPool = backendAddressPool; BackendHttpSettings = backendHttpSettings; HttpListener = httpListener; @@ -86,6 +89,12 @@ public ApplicationGatewayRequestRoutingRule() [JsonProperty(PropertyName = "properties.ruleType")] public string RuleType { get; set; } + /// + /// Gets or sets priority of the request routing rule. + /// + [JsonProperty(PropertyName = "properties.priority")] + public int? Priority { get; set; } + /// /// Gets or sets backend address pool resource of the application /// gateway. @@ -127,9 +136,9 @@ public ApplicationGatewayRequestRoutingRule() public SubResource RedirectConfiguration { get; set; } /// - /// Gets or sets provisioning state of the request routing rule - /// resource. Possible values are: 'Updating', 'Deleting', and - /// 'Failed'. + /// Gets or sets the provisioning state of the request routing rule + /// resource. Possible values include: 'Succeeded', 'Updating', + /// 'Deleting', 'Failed' /// [JsonProperty(PropertyName = "properties.provisioningState")] public string ProvisioningState { get; set; } @@ -154,5 +163,22 @@ public ApplicationGatewayRequestRoutingRule() [JsonProperty(PropertyName = "type")] public string Type { get; set; } + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (Priority > 20000) + { + throw new ValidationException(ValidationRules.InclusiveMaximum, "Priority", 20000); + } + if (Priority < 1) + { + throw new ValidationException(ValidationRules.InclusiveMinimum, "Priority", 1); + } + } } } diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ApplicationGatewayRewriteRuleSet.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ApplicationGatewayRewriteRuleSet.cs index c2e526b1d4ad..09af59dbb69e 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ApplicationGatewayRewriteRuleSet.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ApplicationGatewayRewriteRuleSet.cs @@ -39,9 +39,9 @@ public ApplicationGatewayRewriteRuleSet() /// Resource ID. /// Rewrite rules in the rewrite rule /// set. - /// Provisioning state of the rewrite - /// rule set resource. Possible values are: 'Updating', 'Deleting', and - /// 'Failed'. + /// The provisioning state of the + /// rewrite rule set resource. Possible values include: 'Succeeded', + /// 'Updating', 'Deleting', 'Failed' /// Name of the rewrite rule set that is unique /// within an Application Gateway. /// A unique read-only string that changes whenever @@ -68,8 +68,9 @@ public ApplicationGatewayRewriteRuleSet() public IList RewriteRules { get; set; } /// - /// Gets provisioning state of the rewrite rule set resource. Possible - /// values are: 'Updating', 'Deleting', and 'Failed'. + /// Gets the provisioning state of the rewrite rule set resource. + /// Possible values include: 'Succeeded', 'Updating', 'Deleting', + /// 'Failed' /// [JsonProperty(PropertyName = "properties.provisioningState")] public string ProvisioningState { get; private set; } diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ApplicationGatewaySslCertificate.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ApplicationGatewaySslCertificate.cs index 89213aac898c..ee15b0d38856 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ApplicationGatewaySslCertificate.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ApplicationGatewaySslCertificate.cs @@ -45,9 +45,9 @@ public ApplicationGatewaySslCertificate() /// Secret Id of (base-64 encoded /// unencrypted pfx) 'Secret' or 'Certificate' object stored in /// KeyVault. - /// Provisioning state of the SSL - /// certificate resource Possible values are: 'Updating', 'Deleting', - /// and 'Failed'. + /// The provisioning state of the SSL + /// certificate resource. Possible values include: 'Succeeded', + /// 'Updating', 'Deleting', 'Failed' /// Name of the SSL certificate that is unique /// within an Application Gateway. /// A unique read-only string that changes whenever @@ -101,8 +101,9 @@ public ApplicationGatewaySslCertificate() public string KeyVaultSecretId { get; set; } /// - /// Gets or sets provisioning state of the SSL certificate resource - /// Possible values are: 'Updating', 'Deleting', and 'Failed'. + /// Gets or sets the provisioning state of the SSL certificate + /// resource. Possible values include: 'Succeeded', 'Updating', + /// 'Deleting', 'Failed' /// [JsonProperty(PropertyName = "properties.provisioningState")] public string ProvisioningState { get; set; } diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ApplicationGatewayTrustedRootCertificate.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ApplicationGatewayTrustedRootCertificate.cs index c64bcfa557af..acbaef8b0c8b 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ApplicationGatewayTrustedRootCertificate.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ApplicationGatewayTrustedRootCertificate.cs @@ -39,9 +39,9 @@ public ApplicationGatewayTrustedRootCertificate() /// Secret Id of (base-64 encoded /// unencrypted pfx) 'Secret' or 'Certificate' object stored in /// KeyVault. - /// Provisioning state of the trusted - /// root certificate resource. Possible values are: 'Updating', - /// 'Deleting', and 'Failed'. + /// The provisioning state of the + /// trusted root certificate resource. Possible values include: + /// 'Succeeded', 'Updating', 'Deleting', 'Failed' /// Name of the trusted root certificate that is /// unique within an Application Gateway. /// A unique read-only string that changes whenever @@ -78,9 +78,9 @@ public ApplicationGatewayTrustedRootCertificate() public string KeyVaultSecretId { get; set; } /// - /// Gets or sets provisioning state of the trusted root certificate - /// resource. Possible values are: 'Updating', 'Deleting', and - /// 'Failed'. + /// Gets or sets the provisioning state of the trusted root certificate + /// resource. Possible values include: 'Succeeded', 'Updating', + /// 'Deleting', 'Failed' /// [JsonProperty(PropertyName = "properties.provisioningState")] public string ProvisioningState { get; set; } diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ApplicationGatewayUrlPathMap.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ApplicationGatewayUrlPathMap.cs index 597e194e54ab..f47707ee6c79 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ApplicationGatewayUrlPathMap.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ApplicationGatewayUrlPathMap.cs @@ -47,9 +47,9 @@ public ApplicationGatewayUrlPathMap() /// Default redirect /// configuration resource of URL path map. /// Path rule of URL path map resource. - /// Provisioning state of the backend - /// http settings resource. Possible values are: 'Updating', - /// 'Deleting', and 'Failed'. + /// The provisioning state of the URL + /// path map resource. Possible values include: 'Succeeded', + /// 'Updating', 'Deleting', 'Failed' /// Name of the URL path map that is unique within /// an Application Gateway. /// A unique read-only string that changes whenever @@ -108,9 +108,9 @@ public ApplicationGatewayUrlPathMap() public IList PathRules { get; set; } /// - /// Gets or sets provisioning state of the backend http settings - /// resource. Possible values are: 'Updating', 'Deleting', and - /// 'Failed'. + /// Gets or sets the provisioning state of the URL path map resource. + /// Possible values include: 'Succeeded', 'Updating', 'Deleting', + /// 'Failed' /// [JsonProperty(PropertyName = "properties.provisioningState")] public string ProvisioningState { get; set; } diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ApplicationSecurityGroup.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ApplicationSecurityGroup.cs index 70a94018f855..b27baa5716a4 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ApplicationSecurityGroup.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ApplicationSecurityGroup.cs @@ -44,8 +44,8 @@ public ApplicationSecurityGroup() /// resource, even if the user changes its name or migrate the resource /// across subscriptions or resource groups. /// The provisioning state of the - /// application security group resource. Possible values are: - /// 'Succeeded', 'Updating', 'Deleting', and 'Failed'. + /// application security group resource. Possible values include: + /// 'Succeeded', 'Updating', 'Deleting', 'Failed' /// A unique read-only string that changes whenever /// the resource is updated. public ApplicationSecurityGroup(string id = default(string), string name = default(string), string type = default(string), string location = default(string), IDictionary tags = default(IDictionary), string resourceGuid = default(string), string provisioningState = default(string), string etag = default(string)) @@ -73,8 +73,8 @@ public ApplicationSecurityGroup() /// /// Gets the provisioning state of the application security group - /// resource. Possible values are: 'Succeeded', 'Updating', 'Deleting', - /// and 'Failed'. + /// resource. Possible values include: 'Succeeded', 'Updating', + /// 'Deleting', 'Failed' /// [JsonProperty(PropertyName = "properties.provisioningState")] public string ProvisioningState { get; private 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 3812c58ca3e9..0de17543c2f0 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,9 +47,9 @@ public AzureFirewall() /// collections used by Azure Firewall. /// IP configuration of the Azure /// Firewall resource. - /// The provisioning state of the - /// resource. Possible values include: 'Succeeded', 'Updating', - /// 'Deleting', 'Failed' + /// The provisioning state of the Azure + /// firewall resource. Possible values include: 'Succeeded', + /// 'Updating', 'Deleting', 'Failed' /// The operation mode for Threat /// Intelligence. Possible values include: 'Alert', 'Deny', /// 'Off' @@ -61,8 +61,8 @@ public AzureFirewall() /// AzureFirewall. /// A list of availability zones denoting where the /// resource needs to come from. - /// Gets a unique read-only string that changes - /// whenever the resource is updated. + /// 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), IList zones = default(IList), string etag = default(string)) : base(id, name, type, location, tags) { @@ -113,8 +113,9 @@ public AzureFirewall() public IList IpConfigurations { get; set; } /// - /// Gets or sets the provisioning state of the resource. Possible - /// values include: 'Succeeded', 'Updating', 'Deleting', 'Failed' + /// Gets or sets the provisioning state of the Azure firewall resource. + /// Possible values include: 'Succeeded', 'Updating', 'Deleting', + /// 'Failed' /// [JsonProperty(PropertyName = "properties.provisioningState")] public string ProvisioningState { get; set; } diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/AzureFirewallApplicationRuleCollection.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/AzureFirewallApplicationRuleCollection.cs index 94509f8e4bf2..7c258a9149f7 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/AzureFirewallApplicationRuleCollection.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/AzureFirewallApplicationRuleCollection.cs @@ -43,13 +43,13 @@ public AzureFirewallApplicationRuleCollection() /// Collection of rules used by a application rule /// collection. /// The provisioning state of the - /// resource. Possible values include: 'Succeeded', 'Updating', - /// 'Deleting', 'Failed' - /// Gets name of the resource that is unique within - /// a resource group. This name can be used to access the + /// application rule collection resource. Possible values include: + /// 'Succeeded', 'Updating', 'Deleting', 'Failed' + /// The name of the resource that is unique within + /// the Azure firewall. This name can be used to access the /// resource. - /// Gets a unique read-only string that changes - /// whenever the resource is updated. + /// A unique read-only string that changes whenever + /// the resource is updated. public AzureFirewallApplicationRuleCollection(string id = default(string), int? priority = default(int?), AzureFirewallRCAction action = default(AzureFirewallRCAction), IList rules = default(IList), string provisioningState = default(string), string name = default(string), string etag = default(string)) : base(id) { @@ -87,15 +87,16 @@ public AzureFirewallApplicationRuleCollection() public IList Rules { get; set; } /// - /// Gets or sets the provisioning state of the resource. Possible - /// values include: 'Succeeded', 'Updating', 'Deleting', 'Failed' + /// Gets or sets the provisioning state of the application rule + /// collection resource. Possible values include: 'Succeeded', + /// 'Updating', 'Deleting', 'Failed' /// [JsonProperty(PropertyName = "properties.provisioningState")] public string ProvisioningState { get; set; } /// - /// Gets name of the resource that is unique within a resource group. - /// This name can be used to access the resource. + /// Gets or sets the name of the resource that is unique within the + /// Azure firewall. This name can be used to access the resource. /// [JsonProperty(PropertyName = "name")] public string Name { get; set; } diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/AzureFirewallFqdnTag.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/AzureFirewallFqdnTag.cs index 5a611e28ef0e..822f78a349f2 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/AzureFirewallFqdnTag.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/AzureFirewallFqdnTag.cs @@ -39,11 +39,12 @@ public AzureFirewallFqdnTag() /// Resource type. /// Resource location. /// Resource tags. - /// The provisioning state of the - /// resource. + /// The provisioning state of the Azure + /// firewall FQDN tag resource. Possible values include: 'Succeeded', + /// 'Updating', 'Deleting', 'Failed' /// The name of this FQDN Tag. - /// Gets a unique read-only string that changes - /// whenever the resource is updated. + /// A unique read-only string that changes whenever + /// the resource is updated. public AzureFirewallFqdnTag(string id = default(string), string name = default(string), string type = default(string), string location = default(string), IDictionary tags = default(IDictionary), string provisioningState = default(string), string fqdnTagName = default(string), string etag = default(string)) : base(id, name, type, location, tags) { @@ -59,7 +60,9 @@ public AzureFirewallFqdnTag() partial void CustomInit(); /// - /// Gets the provisioning state of the resource. + /// Gets the provisioning state of the Azure firewall FQDN tag + /// resource. Possible values include: 'Succeeded', 'Updating', + /// 'Deleting', 'Failed' /// [JsonProperty(PropertyName = "properties.provisioningState")] public string ProvisioningState { get; private set; } 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 20f29de58b39..769ed175cf1b 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 @@ -41,9 +41,9 @@ public AzureFirewallIPConfiguration() /// resource must be named 'AzureFirewallSubnet'. /// Reference of the PublicIP resource. /// This field is a mandatory input if subnet is not null. - /// The provisioning state of the - /// resource. Possible values include: 'Succeeded', 'Updating', - /// 'Deleting', 'Failed' + /// The provisioning state of the Azure + /// firewall IP configuration resource. Possible values include: + /// 'Succeeded', 'Updating', 'Deleting', 'Failed' /// Name of the resource that is unique within a /// resource group. This name can be used to access the /// resource. @@ -88,8 +88,9 @@ public AzureFirewallIPConfiguration() public SubResource PublicIPAddress { get; set; } /// - /// Gets or sets the provisioning state of the resource. Possible - /// values include: 'Succeeded', 'Updating', 'Deleting', 'Failed' + /// Gets or sets the provisioning state of the Azure firewall IP + /// configuration resource. Possible values include: 'Succeeded', + /// 'Updating', 'Deleting', 'Failed' /// [JsonProperty(PropertyName = "properties.provisioningState")] public string ProvisioningState { get; set; } diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/AzureFirewallNatRuleCollection.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/AzureFirewallNatRuleCollection.cs index ff20081ad61b..6d8d97a442a3 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/AzureFirewallNatRuleCollection.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/AzureFirewallNatRuleCollection.cs @@ -43,14 +43,14 @@ public AzureFirewallNatRuleCollection() /// collection. /// Collection of rules used by a NAT rule /// collection. - /// The provisioning state of the - /// resource. Possible values include: 'Succeeded', 'Updating', - /// 'Deleting', 'Failed' - /// Gets name of the resource that is unique within - /// a resource group. This name can be used to access the + /// The provisioning state of the NAT + /// rule collection resource. Possible values include: 'Succeeded', + /// 'Updating', 'Deleting', 'Failed' + /// The name of the resource that is unique within + /// the Azure firewall. This name can be used to access the /// resource. - /// Gets a unique read-only string that changes - /// whenever the resource is updated. + /// A unique read-only string that changes whenever + /// the resource is updated. public AzureFirewallNatRuleCollection(string id = default(string), int? priority = default(int?), AzureFirewallNatRCAction action = default(AzureFirewallNatRCAction), IList rules = default(IList), string provisioningState = default(string), string name = default(string), string etag = default(string)) : base(id) { @@ -87,15 +87,16 @@ public AzureFirewallNatRuleCollection() public IList Rules { get; set; } /// - /// Gets or sets the provisioning state of the resource. Possible - /// values include: 'Succeeded', 'Updating', 'Deleting', 'Failed' + /// Gets or sets the provisioning state of the NAT rule collection + /// resource. Possible values include: 'Succeeded', 'Updating', + /// 'Deleting', 'Failed' /// [JsonProperty(PropertyName = "properties.provisioningState")] public string ProvisioningState { get; set; } /// - /// Gets name of the resource that is unique within a resource group. - /// This name can be used to access the resource. + /// Gets or sets the name of the resource that is unique within the + /// Azure firewall. This name can be used to access the resource. /// [JsonProperty(PropertyName = "name")] public string Name { get; set; } diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/AzureFirewallNetworkRuleCollection.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/AzureFirewallNetworkRuleCollection.cs index 3019d3530420..11727bffcc95 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/AzureFirewallNetworkRuleCollection.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/AzureFirewallNetworkRuleCollection.cs @@ -43,13 +43,13 @@ public AzureFirewallNetworkRuleCollection() /// Collection of rules used by a network rule /// collection. /// The provisioning state of the - /// resource. Possible values include: 'Succeeded', 'Updating', - /// 'Deleting', 'Failed' - /// Gets name of the resource that is unique within - /// a resource group. This name can be used to access the + /// network rule collection resource. Possible values include: + /// 'Succeeded', 'Updating', 'Deleting', 'Failed' + /// The name of the resource that is unique within + /// the Azure firewall. This name can be used to access the /// resource. - /// Gets a unique read-only string that changes - /// whenever the resource is updated. + /// A unique read-only string that changes whenever + /// the resource is updated. public AzureFirewallNetworkRuleCollection(string id = default(string), int? priority = default(int?), AzureFirewallRCAction action = default(AzureFirewallRCAction), IList rules = default(IList), string provisioningState = default(string), string name = default(string), string etag = default(string)) : base(id) { @@ -86,15 +86,16 @@ public AzureFirewallNetworkRuleCollection() public IList Rules { get; set; } /// - /// Gets or sets the provisioning state of the resource. Possible - /// values include: 'Succeeded', 'Updating', 'Deleting', 'Failed' + /// Gets or sets the provisioning state of the network rule collection + /// resource. Possible values include: 'Succeeded', 'Updating', + /// 'Deleting', 'Failed' /// [JsonProperty(PropertyName = "properties.provisioningState")] public string ProvisioningState { get; set; } /// - /// Gets name of the resource that is unique within a resource group. - /// This name can be used to access the resource. + /// Gets or sets the name of the resource that is unique within the + /// Azure firewall. This name can be used to access the resource. /// [JsonProperty(PropertyName = "name")] public string Name { get; set; } diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/BackendAddressPool.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/BackendAddressPool.cs index dd11e7a4bc89..6ad56983ecc8 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/BackendAddressPool.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/BackendAddressPool.cs @@ -35,18 +35,18 @@ public BackendAddressPool() /// Initializes a new instance of the BackendAddressPool class. /// /// Resource ID. - /// Gets collection of references - /// to IP addresses defined in network interfaces. - /// Gets load balancing rules that use - /// this backend address pool. - /// Gets outbound rules that use this - /// backend address pool. - /// Gets outbound rules that use this - /// backend address pool. - /// Get provisioning state of the - /// public IP resource. Possible values are: 'Updating', 'Deleting', - /// and 'Failed'. - /// Gets name of the resource that is unique within + /// An array of references to IP + /// addresses defined in network interfaces. + /// An array of references to load + /// balancing rules that use this backend address pool. + /// A reference to an outbound rule that + /// uses this backend address pool. + /// An array of references to outbound + /// rules that use this backend address pool. + /// The provisioning state of the + /// backend address pool resource. Possible values include: + /// 'Succeeded', 'Updating', 'Deleting', 'Failed' + /// The name of the resource that is unique within /// the set of backend address pools used by the load balancer. This /// name can be used to access the resource. /// A unique read-only string that changes whenever @@ -72,41 +72,45 @@ public BackendAddressPool() partial void CustomInit(); /// - /// Gets collection of references to IP addresses defined in network + /// Gets an array of references to IP addresses defined in network /// interfaces. /// [JsonProperty(PropertyName = "properties.backendIPConfigurations")] public IList BackendIPConfigurations { get; private set; } /// - /// Gets load balancing rules that use this backend address pool. + /// Gets an array of references to load balancing rules that use this + /// backend address pool. /// [JsonProperty(PropertyName = "properties.loadBalancingRules")] public IList LoadBalancingRules { get; private set; } /// - /// Gets outbound rules that use this backend address pool. + /// Gets a reference to an outbound rule that uses this backend address + /// pool. /// [JsonProperty(PropertyName = "properties.outboundRule")] public SubResource OutboundRule { get; private set; } /// - /// Gets outbound rules that use this backend address pool. + /// Gets an array of references to outbound rules that use this backend + /// address pool. /// [JsonProperty(PropertyName = "properties.outboundRules")] public IList OutboundRules { get; private set; } /// - /// Gets or sets get provisioning state of the public IP resource. - /// Possible values are: 'Updating', 'Deleting', and 'Failed'. + /// Gets or sets the provisioning state of the backend address pool + /// resource. Possible values include: 'Succeeded', 'Updating', + /// 'Deleting', 'Failed' /// [JsonProperty(PropertyName = "properties.provisioningState")] public string ProvisioningState { get; set; } /// - /// Gets name of the resource that is unique within the set of backend - /// address pools used by the load balancer. This name can be used to - /// access the resource. + /// Gets or sets the name of the resource that is unique within the set + /// of backend address pools used by the load balancer. This name can + /// be used to access the resource. /// [JsonProperty(PropertyName = "name")] public string Name { get; set; } diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/BastionHost.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/BastionHost.cs index 157e2af4d0a7..690cc5244991 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/BastionHost.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/BastionHost.cs @@ -44,10 +44,10 @@ public BastionHost() /// FQDN for the endpoint on which bastion host /// is accessible. /// The provisioning state of the - /// resource. Possible values include: 'Succeeded', 'Updating', - /// 'Deleting', 'Failed' - /// Gets a unique read-only string that changes - /// whenever the resource is updated. + /// bastion host resource. Possible values include: 'Succeeded', + /// 'Updating', 'Deleting', 'Failed' + /// A unique read-only string that changes whenever + /// the resource is updated. public BastionHost(string id = default(string), string name = default(string), string type = default(string), string location = default(string), IDictionary tags = default(IDictionary), IList ipConfigurations = default(IList), string dnsName = default(string), string provisioningState = default(string), string etag = default(string)) : base(id, name, type, location, tags) { @@ -77,8 +77,9 @@ public BastionHost() public string DnsName { get; set; } /// - /// Gets or sets the provisioning state of the resource. Possible - /// values include: 'Succeeded', 'Updating', 'Deleting', 'Failed' + /// Gets or sets the provisioning state of the bastion host resource. + /// Possible values include: 'Succeeded', 'Updating', 'Deleting', + /// 'Failed' /// [JsonProperty(PropertyName = "properties.provisioningState")] public string ProvisioningState { get; 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 7534bb728e8f..b1750f496634 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 @@ -37,8 +37,8 @@ public BastionHostIPConfiguration() /// resource. /// Resource ID. /// The provisioning state of the - /// resource. Possible values include: 'Succeeded', 'Updating', - /// 'Deleting', 'Failed' + /// bastion host IP configuration resource. Possible values include: + /// 'Succeeded', 'Updating', 'Deleting', 'Failed' /// Private IP allocation /// method. Possible values include: 'Static', 'Dynamic' /// Name of the resource that is unique within a @@ -78,8 +78,9 @@ public BastionHostIPConfiguration() public SubResource PublicIPAddress { get; set; } /// - /// Gets or sets the provisioning state of the resource. Possible - /// values include: 'Succeeded', 'Updating', 'Deleting', 'Failed' + /// Gets or sets the provisioning state of the bastion host IP + /// configuration resource. Possible values include: 'Succeeded', + /// 'Updating', 'Deleting', 'Failed' /// [JsonProperty(PropertyName = "properties.provisioningState")] public string ProvisioningState { get; set; } diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/BgpServiceCommunity.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/BgpServiceCommunity.cs index bbcc49c44d47..38391a0ad0fa 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/BgpServiceCommunity.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/BgpServiceCommunity.cs @@ -41,7 +41,7 @@ public BgpServiceCommunity() /// Resource tags. /// The name of the bgp community. e.g. /// Skype. - /// Get a list of bgp communities. + /// A list of bgp communities. public BgpServiceCommunity(string id = default(string), string name = default(string), string type = default(string), string location = default(string), IDictionary tags = default(IDictionary), string serviceName = default(string), IList bgpCommunities = default(IList)) : base(id, name, type, location, tags) { @@ -62,7 +62,7 @@ public BgpServiceCommunity() public string ServiceName { get; set; } /// - /// Gets or sets get a list of bgp communities. + /// Gets or sets a list of bgp communities. /// [JsonProperty(PropertyName = "properties.bgpCommunities")] public IList BgpCommunities { get; set; } diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ContainerNetworkInterface.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ContainerNetworkInterface.cs index f115333434cf..71fde3999af9 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ContainerNetworkInterface.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ContainerNetworkInterface.cs @@ -43,7 +43,8 @@ public ContainerNetworkInterface() /// Reference to the ip configuration on /// this container nic. /// The provisioning state of the - /// resource. + /// container network interface resource. Possible values include: + /// 'Succeeded', 'Updating', 'Deleting', 'Failed' /// The name of the resource. This name can be used /// to access the resource. /// Sub Resource type. @@ -89,7 +90,9 @@ public ContainerNetworkInterface() public IList IpConfigurations { get; set; } /// - /// Gets the provisioning state of the resource. + /// Gets the provisioning state of the container network interface + /// resource. Possible values include: 'Succeeded', 'Updating', + /// 'Deleting', 'Failed' /// [JsonProperty(PropertyName = "properties.provisioningState")] public string ProvisioningState { get; private set; } diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ContainerNetworkInterfaceConfiguration.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ContainerNetworkInterfaceConfiguration.cs index 3c3d1040c566..0e02ab632134 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ContainerNetworkInterfaceConfiguration.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ContainerNetworkInterfaceConfiguration.cs @@ -43,7 +43,8 @@ public ContainerNetworkInterfaceConfiguration() /// network interfaces created from this container network interface /// configuration. /// The provisioning state of the - /// resource. + /// container network interface configuration resource. Possible values + /// include: 'Succeeded', 'Updating', 'Deleting', 'Failed' /// The name of the resource. This name can be used /// to access the resource. /// Sub Resource type. @@ -81,7 +82,9 @@ public ContainerNetworkInterfaceConfiguration() public IList ContainerNetworkInterfaces { get; set; } /// - /// Gets the provisioning state of the resource. + /// Gets the provisioning state of the container network interface + /// configuration resource. Possible values include: 'Succeeded', + /// 'Updating', 'Deleting', 'Failed' /// [JsonProperty(PropertyName = "properties.provisioningState")] public string ProvisioningState { get; private set; } diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ContainerNetworkInterfaceIpConfiguration.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ContainerNetworkInterfaceIpConfiguration.cs index 89f423efeff4..09bff34b97f3 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ContainerNetworkInterfaceIpConfiguration.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ContainerNetworkInterfaceIpConfiguration.cs @@ -35,7 +35,9 @@ public ContainerNetworkInterfaceIpConfiguration() /// ContainerNetworkInterfaceIpConfiguration class. /// /// The provisioning state of the - /// resource. + /// container network interface IP configuration resource. Possible + /// values include: 'Succeeded', 'Updating', 'Deleting', + /// 'Failed' /// The name of the resource. This name can be used /// to access the resource. /// Sub Resource type. @@ -56,7 +58,9 @@ public ContainerNetworkInterfaceIpConfiguration() partial void CustomInit(); /// - /// Gets the provisioning state of the resource. + /// Gets the provisioning state of the container network interface IP + /// configuration resource. Possible values include: 'Succeeded', + /// 'Updating', 'Deleting', 'Failed' /// [JsonProperty(PropertyName = "properties.provisioningState")] public string ProvisioningState { get; private set; } diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/DdosCustomPolicy.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/DdosCustomPolicy.cs index f1894c56ce29..5ef2dfecc1be 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/DdosCustomPolicy.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/DdosCustomPolicy.cs @@ -44,8 +44,8 @@ public DdosCustomPolicy() /// if the user changes its name or migrate the resource across /// subscriptions or resource groups. /// The provisioning state of the DDoS - /// custom policy resource. Possible values are: 'Succeeded', - /// 'Updating', 'Deleting', and 'Failed'. + /// custom policy resource. Possible values include: 'Succeeded', + /// 'Updating', 'Deleting', 'Failed' /// The list of public IPs associated /// with the DDoS custom policy resource. This list is /// read-only. @@ -80,8 +80,8 @@ public DdosCustomPolicy() /// /// Gets the provisioning state of the DDoS custom policy resource. - /// Possible values are: 'Succeeded', 'Updating', 'Deleting', and - /// 'Failed'. + /// Possible values include: 'Succeeded', 'Updating', 'Deleting', + /// 'Failed' /// [JsonProperty(PropertyName = "properties.provisioningState")] public string ProvisioningState { get; private set; } diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/DdosProtectionPlan.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/DdosProtectionPlan.cs index 245a15ac8c75..8fd466981ba3 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/DdosProtectionPlan.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/DdosProtectionPlan.cs @@ -45,8 +45,8 @@ public DdosProtectionPlan() /// if the user changes its name or migrate the resource across /// subscriptions or resource groups. /// The provisioning state of the DDoS - /// protection plan resource. Possible values are: 'Succeeded', - /// 'Updating', 'Deleting', and 'Failed'. + /// protection plan resource. Possible values include: 'Succeeded', + /// 'Updating', 'Deleting', 'Failed' /// The list of virtual networks /// associated with the DDoS protection plan resource. This list is /// read-only. @@ -112,8 +112,8 @@ public DdosProtectionPlan() /// /// Gets the provisioning state of the DDoS protection plan resource. - /// Possible values are: 'Succeeded', 'Updating', 'Deleting', and - /// 'Failed'. + /// Possible values include: 'Succeeded', 'Updating', 'Deleting', + /// 'Failed' /// [JsonProperty(PropertyName = "properties.provisioningState")] public string ProvisioningState { get; private 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 50465c2fac98..8f7a16e67f07 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 @@ -40,7 +40,8 @@ public Delegation() /// Describes the actions permitted to the /// service upon delegation. /// The provisioning state of the - /// resource. + /// service delegation resource. Possible values include: 'Succeeded', + /// 'Updating', 'Deleting', 'Failed' /// The name of the resource that is unique within a /// subnet. This name can be used to access the resource. /// A unique read-only string that changes whenever @@ -76,7 +77,9 @@ public Delegation() public IList Actions { get; set; } /// - /// Gets the provisioning state of the resource. + /// Gets the provisioning state of the service delegation resource. + /// Possible values include: 'Succeeded', 'Updating', 'Deleting', + /// 'Failed' /// [JsonProperty(PropertyName = "properties.provisioningState")] public string ProvisioningState { 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 59c6ea18b94d..5bbc4e866f01 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 @@ -62,14 +62,14 @@ public ExpressRouteCircuit() /// circuit is provisioned on an ExpressRoutePort resource. /// The identifier of the circuit traffic. Outer tag /// for QinQ encapsulation. - /// Gets the provisioning state of the - /// public IP resource. Possible values are: 'Updating', 'Deleting', - /// and 'Failed'. + /// The provisioning state of the + /// express route circuit resource. Possible values include: + /// 'Succeeded', 'Updating', 'Deleting', 'Failed' /// The GatewayManager Etag. /// Flag denoting Global reach /// status. - /// Gets a unique read-only string that changes - /// whenever the resource is updated. + /// A unique read-only string that changes whenever + /// the resource is updated. public ExpressRouteCircuit(string id = default(string), string name = default(string), string type = default(string), string location = default(string), IDictionary tags = default(IDictionary), ExpressRouteCircuitSku sku = default(ExpressRouteCircuitSku), bool? allowClassicOperations = default(bool?), string circuitProvisioningState = default(string), string serviceProviderProvisioningState = default(string), IList authorizations = default(IList), IList peerings = default(IList), string serviceKey = default(string), string serviceProviderNotes = default(string), ExpressRouteCircuitServiceProviderProperties serviceProviderProperties = default(ExpressRouteCircuitServiceProviderProperties), SubResource expressRoutePort = default(SubResource), double? bandwidthInGbps = default(double?), int? stag = default(int?), string provisioningState = default(string), string gatewayManagerEtag = default(string), bool? globalReachEnabled = default(bool?), string etag = default(string)) : base(id, name, type, location, tags) { @@ -175,8 +175,9 @@ public ExpressRouteCircuit() public int? Stag { get; private set; } /// - /// Gets the provisioning state of the public IP resource. Possible - /// values are: 'Updating', 'Deleting', and 'Failed'. + /// Gets or sets the provisioning state of the express route circuit + /// resource. Possible values include: 'Succeeded', 'Updating', + /// 'Deleting', 'Failed' /// [JsonProperty(PropertyName = "properties.provisioningState")] public string ProvisioningState { get; set; } 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 0278613dcc2a..fc16c0233779 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 @@ -38,11 +38,11 @@ public ExpressRouteCircuitAuthorization() /// The authorization key. /// The authorization use status. /// Possible values include: 'Available', 'InUse' - /// Gets the provisioning state of the - /// public IP resource. Possible values are: 'Updating', 'Deleting', - /// and 'Failed'. - /// Gets name of the resource that is unique within - /// a resource group. This name can be used to access the + /// The provisioning state of the + /// authorization resource. Possible values include: 'Succeeded', + /// 'Updating', 'Deleting', 'Failed' + /// The name of the resource that is unique within a + /// resource group. This name can be used to access the /// resource. /// A unique read-only string that changes whenever /// the resource is updated. @@ -78,15 +78,16 @@ public ExpressRouteCircuitAuthorization() public string AuthorizationUseStatus { get; set; } /// - /// Gets the provisioning state of the public IP resource. Possible - /// values are: 'Updating', 'Deleting', and 'Failed'. + /// Gets or sets the provisioning state of the authorization resource. + /// Possible values include: 'Succeeded', 'Updating', 'Deleting', + /// 'Failed' /// [JsonProperty(PropertyName = "properties.provisioningState")] public string ProvisioningState { get; set; } /// - /// Gets name of the resource that is unique within a resource group. - /// This name can be used to access the resource. + /// Gets or sets the name of the resource that is unique within a + /// resource group. This name can be used to access the resource. /// [JsonProperty(PropertyName = "name")] public string Name { get; set; } 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 2016cc4b2367..c270ce9a27be 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 @@ -48,11 +48,11 @@ public ExpressRouteCircuitConnection() /// Express Route Circuit /// connection state. Possible values include: 'Connected', /// 'Connecting', 'Disconnected' - /// Provisioning state of the circuit - /// connection resource. Possible values are: 'Succeeded', 'Updating', - /// 'Deleting', and 'Failed'. - /// Gets name of the resource that is unique within - /// a resource group. This name can be used to access the + /// The provisioning state of the + /// express route circuit connection resource. Possible values include: + /// 'Succeeded', 'Updating', 'Deleting', 'Failed' + /// The name of the resource that is unique within a + /// resource group. This name can be used to access the /// resource. /// A unique read-only string that changes whenever /// the resource is updated. @@ -112,16 +112,16 @@ public ExpressRouteCircuitConnection() public string CircuitConnectionStatus { get; set; } /// - /// Gets provisioning state of the circuit connection resource. - /// Possible values are: 'Succeeded', 'Updating', 'Deleting', and - /// 'Failed'. + /// Gets the provisioning state of the express route circuit connection + /// resource. Possible values include: 'Succeeded', 'Updating', + /// 'Deleting', 'Failed' /// [JsonProperty(PropertyName = "properties.provisioningState")] public string ProvisioningState { get; private set; } /// - /// Gets name of the resource that is unique within a resource group. - /// This name can be used to access the resource. + /// Gets or sets the name of the resource that is unique within a + /// resource group. This name can be used to access the resource. /// [JsonProperty(PropertyName = "name")] public string Name { get; set; } 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 b7c6f74f6aec..d1e6a24a5dfb 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 @@ -52,13 +52,14 @@ public ExpressRouteCircuitPeering() /// The VLAN ID. /// The Microsoft peering /// configuration. - /// Gets peering stats. - /// Gets the provisioning state of the - /// public IP resource. Possible values are: 'Updating', 'Deleting', - /// and 'Failed'. + /// The peering stats of express route + /// circuit. + /// The provisioning state of the + /// express route circuit peering resource. Possible values include: + /// 'Succeeded', 'Updating', 'Deleting', 'Failed' /// The GatewayManager Etag. - /// Gets whether the provider or the - /// customer last modified the peering. + /// Who was the last to modify the + /// peering. /// The reference of the RouteFilter /// resource. /// The IPv6 peering @@ -70,8 +71,8 @@ public ExpressRouteCircuitPeering() /// The list of peered circuit /// connections associated with Azure Private Peering for this /// circuit. - /// Gets name of the resource that is unique within - /// a resource group. This name can be used to access the + /// The name of the resource that is unique within a + /// resource group. This name can be used to access the /// resource. /// A unique read-only string that changes whenever /// the resource is updated. @@ -179,14 +180,15 @@ public ExpressRouteCircuitPeering() public ExpressRouteCircuitPeeringConfig MicrosoftPeeringConfig { get; set; } /// - /// Gets peering stats. + /// Gets or sets the peering stats of express route circuit. /// [JsonProperty(PropertyName = "properties.stats")] public ExpressRouteCircuitStats Stats { get; set; } /// - /// Gets the provisioning state of the public IP resource. Possible - /// values are: 'Updating', 'Deleting', and 'Failed'. + /// Gets or sets the provisioning state of the express route circuit + /// peering resource. Possible values include: 'Succeeded', 'Updating', + /// 'Deleting', 'Failed' /// [JsonProperty(PropertyName = "properties.provisioningState")] public string ProvisioningState { get; set; } @@ -198,8 +200,7 @@ public ExpressRouteCircuitPeering() public string GatewayManagerEtag { get; set; } /// - /// Gets whether the provider or the customer last modified the - /// peering. + /// Gets or sets who was the last to modify the peering. /// [JsonProperty(PropertyName = "properties.lastModifiedBy")] public string LastModifiedBy { get; set; } @@ -237,8 +238,8 @@ public ExpressRouteCircuitPeering() public IList PeeredConnections { get; private set; } /// - /// Gets name of the resource that is unique within a resource group. - /// This name can be used to access the resource. + /// Gets or sets the name of the resource that is unique within a + /// resource group. This name can be used to access the resource. /// [JsonProperty(PropertyName = "name")] public string Name { get; set; } diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ExpressRouteCircuitStats.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ExpressRouteCircuitStats.cs index 666f369238ca..b1b3247b2760 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ExpressRouteCircuitStats.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ExpressRouteCircuitStats.cs @@ -29,10 +29,13 @@ public ExpressRouteCircuitStats() /// /// Initializes a new instance of the ExpressRouteCircuitStats class. /// - /// Gets BytesIn of the peering. - /// Gets BytesOut of the peering. - /// Gets BytesIn of the peering. - /// Gets BytesOut of the + /// The Primary BytesIn of the + /// peering. + /// The primary BytesOut of the + /// peering. + /// The secondary BytesIn of the + /// peering. + /// The secondary BytesOut of the /// peering. public ExpressRouteCircuitStats(long? primarybytesIn = default(long?), long? primarybytesOut = default(long?), long? secondarybytesIn = default(long?), long? secondarybytesOut = default(long?)) { @@ -49,25 +52,25 @@ public ExpressRouteCircuitStats() partial void CustomInit(); /// - /// Gets BytesIn of the peering. + /// Gets or sets the Primary BytesIn of the peering. /// [JsonProperty(PropertyName = "primarybytesIn")] public long? PrimarybytesIn { get; set; } /// - /// Gets BytesOut of the peering. + /// Gets or sets the primary BytesOut of the peering. /// [JsonProperty(PropertyName = "primarybytesOut")] public long? PrimarybytesOut { get; set; } /// - /// Gets BytesIn of the peering. + /// Gets or sets the secondary BytesIn of the peering. /// [JsonProperty(PropertyName = "secondarybytesIn")] public long? SecondarybytesIn { get; set; } /// - /// Gets BytesOut of the peering. + /// Gets or sets the secondary BytesOut of the peering. /// [JsonProperty(PropertyName = "secondarybytesOut")] public long? SecondarybytesOut { get; set; } diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ExpressRouteCircuitsArpTableListResult.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ExpressRouteCircuitsArpTableListResult.cs index c69942a9a043..b48a76aec112 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ExpressRouteCircuitsArpTableListResult.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ExpressRouteCircuitsArpTableListResult.cs @@ -34,7 +34,7 @@ public ExpressRouteCircuitsArpTableListResult() /// Initializes a new instance of the /// ExpressRouteCircuitsArpTableListResult class. /// - /// Gets list of the ARP table. + /// A list of the ARP tables. /// The URL to get the next set of /// results. public ExpressRouteCircuitsArpTableListResult(IList value = default(IList), string nextLink = default(string)) @@ -50,7 +50,7 @@ public ExpressRouteCircuitsArpTableListResult() partial void CustomInit(); /// - /// Gets list of the ARP table. + /// Gets or sets a list of the ARP tables. /// [JsonProperty(PropertyName = "value")] public IList Value { get; set; } diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ExpressRouteConnection.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ExpressRouteConnection.cs index adad8b155314..7b48996bb902 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ExpressRouteConnection.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ExpressRouteConnection.cs @@ -37,8 +37,8 @@ public ExpressRouteConnection() /// The name of the resource. /// Resource ID. /// The provisioning state of the - /// resource. Possible values include: 'Succeeded', 'Updating', - /// 'Deleting', 'Failed' + /// express route connection resource. Possible values include: + /// 'Succeeded', 'Updating', 'Deleting', 'Failed' /// Authorization key to establish the /// connection. /// The routing weight associated to the @@ -60,8 +60,9 @@ public ExpressRouteConnection() partial void CustomInit(); /// - /// Gets or sets the provisioning state of the resource. Possible - /// values include: 'Succeeded', 'Updating', 'Deleting', 'Failed' + /// Gets or sets the provisioning state of the express route connection + /// resource. Possible values include: 'Succeeded', 'Updating', + /// 'Deleting', 'Failed' /// [JsonProperty(PropertyName = "properties.provisioningState")] public string ProvisioningState { get; set; } diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ExpressRouteCrossConnection.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ExpressRouteCrossConnection.cs index 758aeb42e387..2c7a4f2bd3d4 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ExpressRouteCrossConnection.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ExpressRouteCrossConnection.cs @@ -57,12 +57,12 @@ public ExpressRouteCrossConnection() /// 'Deprovisioning' /// Additional read only notes set /// by the connectivity provider. - /// Gets the provisioning state of the - /// public IP resource. Possible values are: 'Updating', 'Deleting', - /// and 'Failed'. + /// The provisioning state of the + /// express route cross connection resource. Possible values include: + /// 'Succeeded', 'Updating', 'Deleting', 'Failed' /// The list of peerings. - /// Gets a unique read-only string that changes - /// whenever the resource is updated. + /// A unique read-only string that changes whenever + /// the resource is updated. public ExpressRouteCrossConnection(string id = default(string), string name = default(string), string type = default(string), string location = default(string), IDictionary tags = default(IDictionary), string primaryAzurePort = default(string), string secondaryAzurePort = default(string), int? sTag = default(int?), string peeringLocation = default(string), int? bandwidthInMbps = default(int?), ExpressRouteCircuitReference expressRouteCircuit = default(ExpressRouteCircuitReference), string serviceProviderProvisioningState = default(string), string serviceProviderNotes = default(string), string provisioningState = default(string), IList peerings = default(IList), string etag = default(string)) : base(id, name, type, location, tags) { @@ -137,8 +137,9 @@ public ExpressRouteCrossConnection() public string ServiceProviderNotes { get; set; } /// - /// Gets the provisioning state of the public IP resource. Possible - /// values are: 'Updating', 'Deleting', and 'Failed'. + /// Gets the provisioning state of the express route cross connection + /// resource. Possible values include: 'Succeeded', 'Updating', + /// 'Deleting', 'Failed' /// [JsonProperty(PropertyName = "properties.provisioningState")] public string ProvisioningState { get; private set; } diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ExpressRouteCrossConnectionPeering.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ExpressRouteCrossConnectionPeering.cs index 3e274d295a29..998dd9f97c57 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ExpressRouteCrossConnectionPeering.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ExpressRouteCrossConnectionPeering.cs @@ -52,16 +52,16 @@ public ExpressRouteCrossConnectionPeering() /// The VLAN ID. /// The Microsoft peering /// configuration. - /// Gets the provisioning state of the - /// public IP resource. Possible values are: 'Updating', 'Deleting', - /// and 'Failed'. + /// The provisioning state of the + /// express route cross connection peering resource. Possible values + /// include: 'Succeeded', 'Updating', 'Deleting', 'Failed' /// The GatewayManager Etag. - /// Gets whether the provider or the - /// customer last modified the peering. + /// Who was the last to modify the + /// peering. /// The IPv6 peering /// configuration. - /// Gets name of the resource that is unique within - /// a resource group. This name can be used to access the + /// The name of the resource that is unique within a + /// resource group. This name can be used to access the /// resource. /// A unique read-only string that changes whenever /// the resource is updated. @@ -162,8 +162,9 @@ public ExpressRouteCrossConnectionPeering() public ExpressRouteCircuitPeeringConfig MicrosoftPeeringConfig { get; set; } /// - /// Gets the provisioning state of the public IP resource. Possible - /// values are: 'Updating', 'Deleting', and 'Failed'. + /// Gets the provisioning state of the express route cross connection + /// peering resource. Possible values include: 'Succeeded', 'Updating', + /// 'Deleting', 'Failed' /// [JsonProperty(PropertyName = "properties.provisioningState")] public string ProvisioningState { get; private set; } @@ -175,8 +176,7 @@ public ExpressRouteCrossConnectionPeering() public string GatewayManagerEtag { get; set; } /// - /// Gets whether the provider or the customer last modified the - /// peering. + /// Gets or sets who was the last to modify the peering. /// [JsonProperty(PropertyName = "properties.lastModifiedBy")] public string LastModifiedBy { get; set; } @@ -188,8 +188,8 @@ public ExpressRouteCrossConnectionPeering() public Ipv6ExpressRouteCircuitPeeringConfig Ipv6PeeringConfig { get; set; } /// - /// Gets name of the resource that is unique within a resource group. - /// This name can be used to access the resource. + /// Gets or sets the name of the resource that is unique within a + /// resource group. This name can be used to access the resource. /// [JsonProperty(PropertyName = "name")] public string Name { get; set; } diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ExpressRouteGateway.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ExpressRouteGateway.cs index 8d0a8e3dd3a6..3f48c6341413 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ExpressRouteGateway.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ExpressRouteGateway.cs @@ -46,8 +46,8 @@ public ExpressRouteGateway() /// List of ExpressRoute /// connections to the ExpressRoute gateway. /// The provisioning state of the - /// resource. Possible values include: 'Succeeded', 'Updating', - /// 'Deleting', 'Failed' + /// express route gateway resource. Possible values include: + /// 'Succeeded', 'Updating', 'Deleting', 'Failed' /// A unique read-only string that changes whenever /// the resource is updated. public ExpressRouteGateway(VirtualHubId virtualHub, string id = default(string), string name = default(string), string type = default(string), string location = default(string), IDictionary tags = default(IDictionary), ExpressRouteGatewayPropertiesAutoScaleConfiguration autoScaleConfiguration = default(ExpressRouteGatewayPropertiesAutoScaleConfiguration), IList expressRouteConnections = default(IList), string provisioningState = default(string), string etag = default(string)) @@ -79,8 +79,9 @@ public ExpressRouteGateway() public IList ExpressRouteConnections { get; private set; } /// - /// Gets or sets the provisioning state of the resource. Possible - /// values include: 'Succeeded', 'Updating', 'Deleting', 'Failed' + /// Gets or sets the provisioning state of the express route gateway + /// resource. Possible values include: 'Succeeded', 'Updating', + /// 'Deleting', 'Failed' /// [JsonProperty(PropertyName = "properties.provisioningState")] public string ProvisioningState { get; set; } diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ExpressRouteLink.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ExpressRouteLink.cs index 75b9f268e5cc..a078723fbf14 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ExpressRouteLink.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ExpressRouteLink.cs @@ -48,13 +48,14 @@ public ExpressRouteLink() /// Administrative state of the physical port. /// Possible values include: 'Enabled', 'Disabled' /// The provisioning state of the - /// ExpressRouteLink resource. Possible values are: 'Succeeded', - /// 'Updating', 'Deleting', and 'Failed'. + /// express route link resource. Possible values include: 'Succeeded', + /// 'Updating', 'Deleting', 'Failed' + /// MacSec configuration. /// Name of child port resource that is unique among /// child port resources of the parent. /// A unique read-only string that changes whenever /// the resource is updated. - public ExpressRouteLink(string id = default(string), string routerName = default(string), string interfaceName = default(string), string patchPanelId = default(string), string rackId = default(string), string connectorType = default(string), string adminState = default(string), string provisioningState = default(string), string name = default(string), string etag = default(string)) + public ExpressRouteLink(string id = default(string), string routerName = default(string), string interfaceName = default(string), string patchPanelId = default(string), string rackId = default(string), string connectorType = default(string), string adminState = default(string), string provisioningState = default(string), ExpressRouteLinkMacSecConfig macSecConfig = default(ExpressRouteLinkMacSecConfig), string name = default(string), string etag = default(string)) : base(id) { RouterName = routerName; @@ -64,6 +65,7 @@ public ExpressRouteLink() ConnectorType = connectorType; AdminState = adminState; ProvisioningState = provisioningState; + MacSecConfig = macSecConfig; Name = name; Etag = etag; CustomInit(); @@ -112,13 +114,19 @@ public ExpressRouteLink() public string AdminState { get; set; } /// - /// Gets the provisioning state of the ExpressRouteLink resource. - /// Possible values are: 'Succeeded', 'Updating', 'Deleting', and - /// 'Failed'. + /// Gets the provisioning state of the express route link resource. + /// Possible values include: 'Succeeded', 'Updating', 'Deleting', + /// 'Failed' /// [JsonProperty(PropertyName = "properties.provisioningState")] public string ProvisioningState { get; private set; } + /// + /// Gets or sets macSec configuration. + /// + [JsonProperty(PropertyName = "properties.macSecConfig")] + public ExpressRouteLinkMacSecConfig MacSecConfig { get; set; } + /// /// Gets or sets name of child port resource that is unique among child /// port resources of the parent. diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ExpressRouteLinkMacSecCipher.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ExpressRouteLinkMacSecCipher.cs new file mode 100644 index 000000000000..b22508cef22e --- /dev/null +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ExpressRouteLinkMacSecCipher.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 ExpressRouteLinkMacSecCipher. + /// + public static class ExpressRouteLinkMacSecCipher + { + public const string GcmAes128 = "gcm-aes-128"; + public const string GcmAes256 = "gcm-aes-256"; + } +} diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ExpressRouteLinkMacSecConfig.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ExpressRouteLinkMacSecConfig.cs new file mode 100644 index 000000000000..8b4b8636e5e6 --- /dev/null +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ExpressRouteLinkMacSecConfig.cs @@ -0,0 +1,78 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Network.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// Definition of ExpressRouteLink Mac Security configuration. + /// + /// + /// ExpressRouteLink Mac Security Configuration. + /// + public partial class ExpressRouteLinkMacSecConfig + { + /// + /// Initializes a new instance of the ExpressRouteLinkMacSecConfig + /// class. + /// + public ExpressRouteLinkMacSecConfig() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the ExpressRouteLinkMacSecConfig + /// class. + /// + /// Keyvault Secret Identifier URL + /// containing Mac security CKN key. + /// Keyvault Secret Identifier URL + /// containing Mac security CAK key. + /// Mac security cipher. Possible values include: + /// 'gcm-aes-128', 'gcm-aes-256' + public ExpressRouteLinkMacSecConfig(string cknSecretIdentifier = default(string), string cakSecretIdentifier = default(string), string cipher = default(string)) + { + CknSecretIdentifier = cknSecretIdentifier; + CakSecretIdentifier = cakSecretIdentifier; + Cipher = cipher; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets keyvault Secret Identifier URL containing Mac security + /// CKN key. + /// + [JsonProperty(PropertyName = "cknSecretIdentifier")] + public string CknSecretIdentifier { get; set; } + + /// + /// Gets or sets keyvault Secret Identifier URL containing Mac security + /// CAK key. + /// + [JsonProperty(PropertyName = "cakSecretIdentifier")] + public string CakSecretIdentifier { get; set; } + + /// + /// Gets or sets mac security cipher. Possible values include: + /// 'gcm-aes-128', 'gcm-aes-256' + /// + [JsonProperty(PropertyName = "cipher")] + public string Cipher { get; set; } + + } +} diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ExpressRoutePort.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ExpressRoutePort.cs index 70e7c1b2085f..fa9fb092fc54 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ExpressRoutePort.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ExpressRoutePort.cs @@ -59,13 +59,15 @@ public ExpressRoutePort() /// Reference the ExpressRoute circuit(s) that /// are provisioned on this ExpressRoutePort resource. /// The provisioning state of the - /// ExpressRoutePort resource. Possible values are: 'Succeeded', - /// 'Updating', 'Deleting', and 'Failed'. + /// express route port resource. Possible values include: 'Succeeded', + /// 'Updating', 'Deleting', 'Failed' /// The resource GUID property of the - /// ExpressRoutePort resource. + /// express route port resource. /// A unique read-only string that changes whenever /// the resource is updated. - public ExpressRoutePort(string id = default(string), string name = default(string), string type = default(string), string location = default(string), IDictionary tags = default(IDictionary), string peeringLocation = default(string), int? bandwidthInGbps = default(int?), double? provisionedBandwidthInGbps = default(double?), string mtu = default(string), string encapsulation = default(string), string etherType = default(string), string allocationDate = default(string), IList links = default(IList), IList circuits = default(IList), string provisioningState = default(string), string resourceGuid = default(string), string etag = default(string)) + /// The identity of ExpressRoutePort, if + /// configured. + public ExpressRoutePort(string id = default(string), string name = default(string), string type = default(string), string location = default(string), IDictionary tags = default(IDictionary), string peeringLocation = default(string), int? bandwidthInGbps = default(int?), double? provisionedBandwidthInGbps = default(double?), string mtu = default(string), string encapsulation = default(string), string etherType = default(string), string allocationDate = default(string), IList links = default(IList), IList circuits = default(IList), string provisioningState = default(string), string resourceGuid = default(string), string etag = default(string), ManagedServiceIdentity identity = default(ManagedServiceIdentity)) : base(id, name, type, location, tags) { PeeringLocation = peeringLocation; @@ -80,6 +82,7 @@ public ExpressRoutePort() ProvisioningState = provisioningState; ResourceGuid = resourceGuid; Etag = etag; + Identity = identity; CustomInit(); } @@ -150,15 +153,15 @@ public ExpressRoutePort() public IList Circuits { get; private set; } /// - /// Gets the provisioning state of the ExpressRoutePort resource. - /// Possible values are: 'Succeeded', 'Updating', 'Deleting', and - /// 'Failed'. + /// Gets the provisioning state of the express route port resource. + /// Possible values include: 'Succeeded', 'Updating', 'Deleting', + /// 'Failed' /// [JsonProperty(PropertyName = "properties.provisioningState")] public string ProvisioningState { get; private set; } /// - /// Gets or sets the resource GUID property of the ExpressRoutePort + /// Gets or sets the resource GUID property of the express route port /// resource. /// [JsonProperty(PropertyName = "properties.resourceGuid")] @@ -171,5 +174,11 @@ public ExpressRoutePort() [JsonProperty(PropertyName = "etag")] public string Etag { get; private set; } + /// + /// Gets or sets the identity of ExpressRoutePort, if configured. + /// + [JsonProperty(PropertyName = "identity")] + public ManagedServiceIdentity Identity { get; set; } + } } diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ExpressRoutePortsLocation.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ExpressRoutePortsLocation.cs index 75e2c4af960b..d7f1164e9f06 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ExpressRoutePortsLocation.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ExpressRoutePortsLocation.cs @@ -47,8 +47,8 @@ public ExpressRoutePortsLocation() /// The inventory of available /// ExpressRoutePort bandwidths. /// The provisioning state of the - /// ExpressRoutePortLocation resource. Possible values are: - /// 'Succeeded', 'Updating', 'Deleting', and 'Failed'. + /// express route port location resource. Possible values include: + /// 'Succeeded', 'Updating', 'Deleting', 'Failed' public ExpressRoutePortsLocation(string id = default(string), string name = default(string), string type = default(string), string location = default(string), IDictionary tags = default(IDictionary), string address = default(string), string contact = default(string), IList availableBandwidths = default(IList), string provisioningState = default(string)) : base(id, name, type, location, tags) { @@ -84,9 +84,9 @@ public ExpressRoutePortsLocation() public IList AvailableBandwidths { get; set; } /// - /// Gets the provisioning state of the ExpressRoutePortLocation - /// resource. Possible values are: 'Succeeded', 'Updating', 'Deleting', - /// and 'Failed'. + /// Gets the provisioning state of the express route port location + /// resource. Possible values include: 'Succeeded', 'Updating', + /// 'Deleting', 'Failed' /// [JsonProperty(PropertyName = "properties.provisioningState")] public string ProvisioningState { get; private set; } diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ExpressRouteServiceProvider.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ExpressRouteServiceProvider.cs index b14949de72ee..442809843466 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ExpressRouteServiceProvider.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ExpressRouteServiceProvider.cs @@ -41,11 +41,12 @@ public ExpressRouteServiceProvider() /// Resource type. /// Resource location. /// Resource tags. - /// Get a list of peering - /// locations. - /// Gets bandwidths offered. - /// Gets the provisioning state of the - /// resource. + /// A list of peering locations. + /// A list of bandwidths + /// offered. + /// The provisioning state of the + /// express route service provider resource. Possible values include: + /// 'Succeeded', 'Updating', 'Deleting', 'Failed' public ExpressRouteServiceProvider(string id = default(string), string name = default(string), string type = default(string), string location = default(string), IDictionary tags = default(IDictionary), IList peeringLocations = default(IList), IList bandwidthsOffered = default(IList), string provisioningState = default(string)) : base(id, name, type, location, tags) { @@ -61,19 +62,21 @@ public ExpressRouteServiceProvider() partial void CustomInit(); /// - /// Gets or sets get a list of peering locations. + /// Gets or sets a list of peering locations. /// [JsonProperty(PropertyName = "properties.peeringLocations")] public IList PeeringLocations { get; set; } /// - /// Gets bandwidths offered. + /// Gets or sets a list of bandwidths offered. /// [JsonProperty(PropertyName = "properties.bandwidthsOffered")] public IList BandwidthsOffered { get; set; } /// - /// Gets the provisioning state of the resource. + /// Gets or sets the provisioning state of the express route service + /// provider resource. Possible values include: 'Succeeded', + /// 'Updating', 'Deleting', 'Failed' /// [JsonProperty(PropertyName = "properties.provisioningState")] public string ProvisioningState { get; set; } diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/FirewallPolicy.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/FirewallPolicy.cs index c81555375eaa..6b40ff19ed24 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/FirewallPolicy.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/FirewallPolicy.cs @@ -40,21 +40,21 @@ public FirewallPolicy() /// Resource location. /// Resource tags. /// List of references to - /// FirewallPolicyRuleGroups + /// FirewallPolicyRuleGroups. /// The provisioning state of the - /// resource. Possible values include: 'Succeeded', 'Updating', - /// 'Deleting', 'Failed' + /// firewall policy resource. Possible values include: 'Succeeded', + /// 'Updating', 'Deleting', 'Failed' /// The parent firewall policy from which /// rules are inherited. /// List of references to Azure Firewalls that - /// this Firewall Policy is associated with + /// this Firewall Policy is associated with. /// List of references to Child Firewall - /// Policies + /// Policies. /// The operation mode for Threat /// Intelligence. Possible values include: 'Alert', 'Deny', /// 'Off' - /// Gets a unique read-only string that changes - /// whenever the resource is updated. + /// A unique read-only string that changes whenever + /// the resource is updated. public FirewallPolicy(string id = default(string), string name = default(string), string type = default(string), string location = default(string), IDictionary tags = default(IDictionary), IList ruleGroups = default(IList), string provisioningState = default(string), SubResource basePolicy = default(SubResource), IList firewalls = default(IList), IList childPolicies = default(IList), string threatIntelMode = default(string), string etag = default(string)) : base(id, name, type, location, tags) { @@ -74,14 +74,15 @@ public FirewallPolicy() partial void CustomInit(); /// - /// Gets list of references to FirewallPolicyRuleGroups + /// Gets list of references to FirewallPolicyRuleGroups. /// [JsonProperty(PropertyName = "properties.ruleGroups")] public IList RuleGroups { get; private set; } /// - /// Gets or sets the provisioning state of the resource. Possible - /// values include: 'Succeeded', 'Updating', 'Deleting', 'Failed' + /// Gets or sets the provisioning state of the firewall policy + /// resource. Possible values include: 'Succeeded', 'Updating', + /// 'Deleting', 'Failed' /// [JsonProperty(PropertyName = "properties.provisioningState")] public string ProvisioningState { get; set; } @@ -95,13 +96,13 @@ public FirewallPolicy() /// /// Gets list of references to Azure Firewalls that this Firewall - /// Policy is associated with + /// Policy is associated with. /// [JsonProperty(PropertyName = "properties.firewalls")] public IList Firewalls { get; private set; } /// - /// Gets list of references to Child Firewall Policies + /// Gets list of references to Child Firewall Policies. /// [JsonProperty(PropertyName = "properties.childPolicies")] public IList ChildPolicies { get; private set; } diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/FirewallPolicyFilterRule.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/FirewallPolicyFilterRule.cs index 63f329ab53bd..d18c7f0bfcc3 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/FirewallPolicyFilterRule.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/FirewallPolicyFilterRule.cs @@ -16,7 +16,7 @@ namespace Microsoft.Azure.Management.Network.Models using System.Linq; /// - /// Firewall Policy Filter Rule + /// Firewall Policy Filter Rule. /// public partial class FirewallPolicyFilterRule : FirewallPolicyRule { @@ -31,10 +31,10 @@ public FirewallPolicyFilterRule() /// /// Initializes a new instance of the FirewallPolicyFilterRule class. /// - /// Name of the Rule + /// The name of the rule. /// Priority of the Firewall Policy Rule /// resource. - /// The action type of a Filter rule + /// The action type of a Filter rule. /// Collection of rule conditions used by /// a rule. public FirewallPolicyFilterRule(string name = default(string), int? priority = default(int?), FirewallPolicyFilterRuleAction action = default(FirewallPolicyFilterRuleAction), IList ruleConditions = default(IList)) @@ -51,7 +51,7 @@ public FirewallPolicyFilterRule() partial void CustomInit(); /// - /// Gets or sets the action type of a Filter rule + /// Gets or sets the action type of a Filter rule. /// [JsonProperty(PropertyName = "action")] public FirewallPolicyFilterRuleAction Action { get; set; } diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/FirewallPolicyNatRule.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/FirewallPolicyNatRule.cs index 7a61c07279eb..2cbdfdca2837 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/FirewallPolicyNatRule.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/FirewallPolicyNatRule.cs @@ -14,7 +14,7 @@ namespace Microsoft.Azure.Management.Network.Models using System.Linq; /// - /// Firewall Policy NAT Rule + /// Firewall Policy NAT Rule. /// public partial class FirewallPolicyNatRule : FirewallPolicyRule { @@ -29,17 +29,16 @@ public FirewallPolicyNatRule() /// /// Initializes a new instance of the FirewallPolicyNatRule class. /// - /// Name of the Rule + /// The name of the rule. /// Priority of the Firewall Policy Rule /// resource. - /// The action type of a Nat rule, SNAT or - /// DNAT + /// The action type of a Nat rule. /// The translated address for this NAT /// rule. /// The translated port for this NAT /// rule. /// The match conditions for incoming - /// traffic + /// traffic. public FirewallPolicyNatRule(string name = default(string), int? priority = default(int?), FirewallPolicyNatRuleAction action = default(FirewallPolicyNatRuleAction), string translatedAddress = default(string), string translatedPort = default(string), FirewallPolicyRuleCondition ruleCondition = default(FirewallPolicyRuleCondition)) : base(name, priority) { @@ -56,7 +55,7 @@ public FirewallPolicyNatRule() partial void CustomInit(); /// - /// Gets or sets the action type of a Nat rule, SNAT or DNAT + /// Gets or sets the action type of a Nat rule. /// [JsonProperty(PropertyName = "action")] public FirewallPolicyNatRuleAction Action { get; set; } @@ -74,7 +73,7 @@ public FirewallPolicyNatRule() public string TranslatedPort { get; set; } /// - /// Gets or sets the match conditions for incoming traffic + /// Gets or sets the match conditions for incoming traffic. /// [JsonProperty(PropertyName = "ruleCondition")] public FirewallPolicyRuleCondition RuleCondition { get; set; } diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/FirewallPolicyRule.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/FirewallPolicyRule.cs index 18a86aa74551..ac9496a79e2a 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/FirewallPolicyRule.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/FirewallPolicyRule.cs @@ -30,7 +30,7 @@ public FirewallPolicyRule() /// /// Initializes a new instance of the FirewallPolicyRule class. /// - /// Name of the Rule + /// The name of the rule. /// Priority of the Firewall Policy Rule /// resource. public FirewallPolicyRule(string name = default(string), int? priority = default(int?)) @@ -46,7 +46,7 @@ public FirewallPolicyRule() partial void CustomInit(); /// - /// Gets or sets name of the Rule + /// Gets or sets the name of the rule. /// [JsonProperty(PropertyName = "name")] public string Name { get; set; } diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/FirewallPolicyRuleGroup.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/FirewallPolicyRuleGroup.cs index 8e3c08f2c325..5851fa8af53a 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/FirewallPolicyRuleGroup.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/FirewallPolicyRuleGroup.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.Management.Network.Models using System.Linq; /// - /// Rule Group resource + /// Rule Group resource. /// [Rest.Serialization.JsonTransformation] public partial class FirewallPolicyRuleGroup : SubResource @@ -39,13 +39,13 @@ public FirewallPolicyRuleGroup() /// resource. /// Group of Firewall Policy rules. /// The provisioning state of the - /// resource. Possible values include: 'Succeeded', 'Updating', - /// 'Deleting', 'Failed' - /// Gets name of the resource that is unique within - /// a resource group. This name can be used to access the + /// firewall policy rule group resource. Possible values include: + /// 'Succeeded', 'Updating', 'Deleting', 'Failed' + /// The name of the resource that is unique within a + /// resource group. This name can be used to access the /// resource. - /// Gets a unique read-only string that changes - /// whenever the resource is updated. + /// A unique read-only string that changes whenever + /// the resource is updated. /// Rule Group type. public FirewallPolicyRuleGroup(string id = default(string), int? priority = default(int?), IList rules = default(IList), string provisioningState = default(string), string name = default(string), string etag = default(string), string type = default(string)) : base(id) @@ -77,15 +77,16 @@ public FirewallPolicyRuleGroup() public IList Rules { get; set; } /// - /// Gets or sets the provisioning state of the resource. Possible - /// values include: 'Succeeded', 'Updating', 'Deleting', 'Failed' + /// Gets or sets the provisioning state of the firewall policy rule + /// group resource. Possible values include: 'Succeeded', 'Updating', + /// 'Deleting', 'Failed' /// [JsonProperty(PropertyName = "properties.provisioningState")] public string ProvisioningState { get; set; } /// - /// Gets name of the resource that is unique within a resource group. - /// This name can be used to access the resource. + /// Gets or sets the name of the resource that is unique within a + /// resource group. This name can be used to access the resource. /// [JsonProperty(PropertyName = "name")] public string Name { get; set; } 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 8fd1e612268a..d1e086f99145 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 @@ -35,29 +35,29 @@ public FrontendIPConfiguration() /// Initializes a new instance of the FrontendIPConfiguration class. /// /// Resource ID. - /// Read only. Inbound rules URIs that - /// use this frontend IP. - /// Read only. Inbound pools URIs that - /// use this frontend IP. - /// Read only. Outbound rules URIs that use - /// this frontend IP. - /// Gets load balancing rules URIs - /// that use this frontend IP. + /// An array of references to inbound + /// rules that use this frontend IP. + /// An array of references to inbound + /// pools that use this frontend IP. + /// An array of references to outbound + /// rules that use this frontend IP. + /// An array of references to load + /// balancing rules that use this frontend IP. /// The private IP address of the IP /// configuration. /// The Private IP allocation /// method. Possible values include: 'Static', 'Dynamic' - /// It represents whether the - /// specific ipconfiguration is IPv4 or IPv6. Default is taken as IPv4. - /// Possible values include: 'IPv4', 'IPv6' + /// 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 /// resource. /// The reference of the Public IP Prefix /// resource. - /// Gets the provisioning state of the - /// public IP resource. Possible values are: 'Updating', 'Deleting', - /// and 'Failed'. + /// The provisioning state of the + /// frontend IP configuration resource. Possible values include: + /// 'Succeeded', 'Updating', 'Deleting', 'Failed' /// The name of the resource that is unique within /// the set of frontend IP configurations used by the load balancer. /// This name can be used to access the resource. @@ -93,25 +93,29 @@ public FrontendIPConfiguration() partial void CustomInit(); /// - /// Gets read only. Inbound rules URIs that use this frontend IP. + /// Gets an array of references to inbound rules that use this frontend + /// IP. /// [JsonProperty(PropertyName = "properties.inboundNatRules")] public IList InboundNatRules { get; private set; } /// - /// Gets read only. Inbound pools URIs that use this frontend IP. + /// Gets an array of references to inbound pools that use this frontend + /// IP. /// [JsonProperty(PropertyName = "properties.inboundNatPools")] public IList InboundNatPools { get; private set; } /// - /// Gets read only. Outbound rules URIs that use this frontend IP. + /// Gets an array of references to outbound rules that use this + /// frontend IP. /// [JsonProperty(PropertyName = "properties.outboundRules")] public IList OutboundRules { get; private set; } /// - /// Gets load balancing rules URIs that use this frontend IP. + /// Gets an array of references to load balancing rules that use this + /// frontend IP. /// [JsonProperty(PropertyName = "properties.loadBalancingRules")] public IList LoadBalancingRules { get; private set; } @@ -130,9 +134,8 @@ public FrontendIPConfiguration() public string PrivateIPAllocationMethod { get; set; } /// - /// Gets or sets it represents whether the specific ipconfiguration is - /// IPv4 or IPv6. Default is taken as IPv4. Possible values include: - /// 'IPv4', 'IPv6' + /// Gets or sets whether the specific ipconfiguration is IPv4 or IPv6. + /// Default is taken as IPv4. Possible values include: 'IPv4', 'IPv6' /// [JsonProperty(PropertyName = "properties.privateIPAddressVersion")] public string PrivateIPAddressVersion { get; set; } @@ -156,8 +159,9 @@ public FrontendIPConfiguration() public SubResource PublicIPPrefix { get; set; } /// - /// Gets the provisioning state of the public IP resource. Possible - /// values are: 'Updating', 'Deleting', and 'Failed'. + /// Gets or sets the provisioning state of the frontend IP + /// configuration resource. Possible values include: 'Succeeded', + /// 'Updating', 'Deleting', 'Failed' /// [JsonProperty(PropertyName = "properties.provisioningState")] public string ProvisioningState { get; set; } diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/HubVirtualNetworkConnection.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/HubVirtualNetworkConnection.cs index 128c0cf1fe72..e23df235ae3c 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/HubVirtualNetworkConnection.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/HubVirtualNetworkConnection.cs @@ -43,14 +43,14 @@ public HubVirtualNetworkConnection() /// to use Virtual Hub's gateways. /// Enable internet /// security. - /// The provisioning state of the - /// resource. Possible values include: 'Succeeded', 'Updating', - /// 'Deleting', 'Failed' + /// The provisioning state of the hub + /// virtual network connection resource. Possible values include: + /// 'Succeeded', 'Updating', 'Deleting', 'Failed' /// The name of the resource that is unique within a /// resource group. This name can be used to access the /// resource. - /// Gets a unique read-only string that changes - /// whenever the resource is updated. + /// A unique read-only string that changes whenever + /// the resource is updated. public HubVirtualNetworkConnection(string id = default(string), SubResource remoteVirtualNetwork = default(SubResource), bool? allowHubToRemoteVnetTransit = default(bool?), bool? allowRemoteVnetToUseHubVnetGateways = default(bool?), bool? enableInternetSecurity = default(bool?), string provisioningState = default(string), string name = default(string), string etag = default(string)) : base(id) { @@ -94,8 +94,9 @@ public HubVirtualNetworkConnection() public bool? EnableInternetSecurity { get; set; } /// - /// Gets or sets the provisioning state of the resource. Possible - /// values include: 'Succeeded', 'Updating', 'Deleting', 'Failed' + /// Gets or sets the provisioning state of the hub virtual network + /// connection resource. Possible values include: 'Succeeded', + /// 'Updating', 'Deleting', 'Failed' /// [JsonProperty(PropertyName = "properties.provisioningState")] public string ProvisioningState { get; set; } 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 2335b54a1ef3..82cbb442b485 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 @@ -41,9 +41,9 @@ public IPConfiguration() /// The reference of the subnet resource. /// The reference of the public IP /// resource. - /// Gets the provisioning state of the - /// public IP resource. Possible values are: 'Updating', 'Deleting', - /// and 'Failed'. + /// The provisioning state of the IP + /// configuration resource. Possible values include: 'Succeeded', + /// 'Updating', 'Deleting', 'Failed' /// The name of the resource that is unique within a /// resource group. This name can be used to access the /// resource. @@ -93,8 +93,9 @@ public IPConfiguration() public PublicIPAddress PublicIPAddress { get; set; } /// - /// Gets the provisioning state of the public IP resource. Possible - /// values are: 'Updating', 'Deleting', and 'Failed'. + /// Gets or sets the provisioning state of the IP configuration + /// resource. Possible values include: 'Succeeded', 'Updating', + /// 'Deleting', 'Failed' /// [JsonProperty(PropertyName = "properties.provisioningState")] public string ProvisioningState { 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 3c971630492d..46da86248b57 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 @@ -35,8 +35,9 @@ public IPConfigurationProfile() /// Resource ID. /// The reference of the subnet resource to create /// a container network interface ip configuration. - /// The provisioning state of the - /// resource. + /// The provisioning state of the IP + /// configuration profile resource. Possible values include: + /// 'Succeeded', 'Updating', 'Deleting', 'Failed' /// The name of the resource. This name can be used /// to access the resource. /// Sub Resource type. @@ -66,7 +67,9 @@ public IPConfigurationProfile() public Subnet Subnet { get; set; } /// - /// Gets the provisioning state of the resource. + /// Gets the provisioning state of the IP configuration profile + /// resource. Possible values include: 'Succeeded', 'Updating', + /// 'Deleting', 'Failed' /// [JsonProperty(PropertyName = "properties.provisioningState")] public string ProvisioningState { get; private set; } diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/InboundNatPool.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/InboundNatPool.cs index 7c2d80d9e1ee..b0b93935f1dc 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/InboundNatPool.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/InboundNatPool.cs @@ -60,9 +60,9 @@ public InboundNatPool() /// Receive bidirectional TCP Reset on TCP /// flow idle timeout or unexpected connection termination. This /// element is only used when the protocol is set to TCP. - /// Gets the provisioning state of the - /// PublicIP resource. Possible values are: 'Updating', 'Deleting', and - /// 'Failed'. + /// The provisioning state of the + /// inbound NAT pool resource. Possible values include: 'Succeeded', + /// 'Updating', 'Deleting', 'Failed' /// The name of the resource that is unique within /// the set of inbound NAT pools used by the load balancer. This name /// can be used to access the resource. @@ -155,8 +155,9 @@ public InboundNatPool() public bool? EnableTcpReset { get; set; } /// - /// Gets the provisioning state of the PublicIP resource. Possible - /// values are: 'Updating', 'Deleting', and 'Failed'. + /// Gets or sets the provisioning state of the inbound NAT pool + /// resource. Possible values include: 'Succeeded', 'Updating', + /// 'Deleting', 'Failed' /// [JsonProperty(PropertyName = "properties.provisioningState")] public string ProvisioningState { get; set; } diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/InboundNatRule.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/InboundNatRule.cs index c90ae64d176a..080128d4bc0d 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/InboundNatRule.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/InboundNatRule.cs @@ -59,10 +59,10 @@ public InboundNatRule() /// Receive bidirectional TCP Reset on TCP /// flow idle timeout or unexpected connection termination. This /// element is only used when the protocol is set to TCP. - /// Gets the provisioning state of the - /// public IP resource. Possible values are: 'Updating', 'Deleting', - /// and 'Failed'. - /// Gets name of the resource that is unique within + /// The provisioning state of the + /// inbound NAT rule resource. Possible values include: 'Succeeded', + /// 'Updating', 'Deleting', 'Failed' + /// The name of the resource that is unique within /// the set of inbound NAT rules used by the load balancer. This name /// can be used to access the resource. /// A unique read-only string that changes whenever @@ -154,16 +154,17 @@ public InboundNatRule() public bool? EnableTcpReset { get; set; } /// - /// Gets the provisioning state of the public IP resource. Possible - /// values are: 'Updating', 'Deleting', and 'Failed'. + /// Gets or sets the provisioning state of the inbound NAT rule + /// resource. Possible values include: 'Succeeded', 'Updating', + /// 'Deleting', 'Failed' /// [JsonProperty(PropertyName = "properties.provisioningState")] public string ProvisioningState { get; set; } /// - /// Gets name of the resource that is unique within the set of inbound - /// NAT rules used by the load balancer. This name can be used to - /// access the resource. + /// Gets or sets the name of the resource that is unique within the set + /// of inbound NAT rules used by the load balancer. This name can be + /// used to access the resource. /// [JsonProperty(PropertyName = "name")] public string Name { get; set; } diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/IpTag.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/IpTag.cs index e24ca82f6f77..cfd11534ab2c 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/IpTag.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/IpTag.cs @@ -29,10 +29,10 @@ public IpTag() /// /// Initializes a new instance of the IpTag class. /// - /// Gets or sets the ipTag type: Example + /// The IP tag type. Example: /// FirstPartyUsage. - /// Gets or sets value of the IpTag associated with - /// the public IP. Example SQL, Storage etc. + /// The value of the IP tag associated with the + /// public IP. Example: SQL. public IpTag(string ipTagType = default(string), string tag = default(string)) { IpTagType = ipTagType; @@ -46,14 +46,14 @@ public IpTag() partial void CustomInit(); /// - /// Gets or sets the ipTag type: Example FirstPartyUsage. + /// Gets or sets the IP tag type. Example: FirstPartyUsage. /// [JsonProperty(PropertyName = "ipTagType")] public string IpTagType { get; set; } /// - /// Gets or sets value of the IpTag associated with the public IP. - /// Example SQL, Storage etc. + /// Gets or sets the value of the IP tag associated with the public IP. + /// Example: SQL. /// [JsonProperty(PropertyName = "tag")] public string Tag { get; set; } diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/LoadBalancer.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/LoadBalancer.cs index 411b84c24f1b..5da12384cfca 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/LoadBalancer.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/LoadBalancer.cs @@ -68,9 +68,9 @@ public LoadBalancer() /// The outbound rules. /// The resource GUID property of the load /// balancer resource. - /// Gets the provisioning state of the - /// PublicIP resource. Possible values are: 'Updating', 'Deleting', and - /// 'Failed'. + /// The provisioning state of the load + /// balancer resource. Possible values include: 'Succeeded', + /// 'Updating', 'Deleting', 'Failed' /// A unique read-only string that changes whenever /// the resource is updated. public LoadBalancer(string id = default(string), string name = default(string), string type = default(string), string location = default(string), IDictionary tags = default(IDictionary), LoadBalancerSku sku = default(LoadBalancerSku), IList frontendIPConfigurations = default(IList), IList backendAddressPools = default(IList), IList loadBalancingRules = default(IList), IList probes = default(IList), IList inboundNatRules = default(IList), IList inboundNatPools = default(IList), IList outboundRules = default(IList), string resourceGuid = default(string), string provisioningState = default(string), string etag = default(string)) @@ -169,8 +169,9 @@ public LoadBalancer() public string ResourceGuid { get; set; } /// - /// Gets the provisioning state of the PublicIP resource. Possible - /// values are: 'Updating', 'Deleting', and 'Failed'. + /// Gets or sets the provisioning state of the load balancer resource. + /// Possible values include: 'Succeeded', 'Updating', 'Deleting', + /// 'Failed' /// [JsonProperty(PropertyName = "properties.provisioningState")] public string ProvisioningState { 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 55505bbb8c08..62c3884c7af3 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 @@ -68,9 +68,9 @@ public LoadBalancingRule() /// Configures SNAT for the VMs in /// the backend pool to use the publicIP address specified in the /// frontend of the load balancing rule. - /// Gets the provisioning state of the - /// PublicIP resource. Possible values are: 'Updating', 'Deleting', and - /// 'Failed'. + /// The provisioning state of the load + /// balancing rule resource. Possible values include: 'Succeeded', + /// 'Updating', 'Deleting', 'Failed' /// The name of the resource that is unique within /// the set of load balancing rules used by the load balancer. This /// name can be used to access the resource. @@ -189,8 +189,9 @@ public LoadBalancingRule() public bool? DisableOutboundSnat { get; set; } /// - /// Gets the provisioning state of the PublicIP resource. Possible - /// values are: 'Updating', 'Deleting', and 'Failed'. + /// Gets or sets the provisioning state of the load balancing rule + /// resource. Possible values include: 'Succeeded', 'Updating', + /// 'Deleting', 'Failed' /// [JsonProperty(PropertyName = "properties.provisioningState")] public string ProvisioningState { get; set; } diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/LocalNetworkGateway.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/LocalNetworkGateway.cs index 871296a6132c..f304746dcec6 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/LocalNetworkGateway.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/LocalNetworkGateway.cs @@ -45,11 +45,11 @@ public LocalNetworkGateway() /// gateway. /// Local network gateway's BGP speaker /// settings. - /// The resource GUID property of the - /// LocalNetworkGateway resource. - /// The provisioning state of the - /// LocalNetworkGateway resource. Possible values are: 'Updating', - /// 'Deleting', and 'Failed'. + /// The resource GUID property of the local + /// network gateway resource. + /// The provisioning state of the local + /// network gateway resource. Possible values include: 'Succeeded', + /// 'Updating', 'Deleting', 'Failed' /// A unique read-only string that changes whenever /// the resource is updated. public LocalNetworkGateway(string id = default(string), string name = default(string), string type = default(string), string location = default(string), IDictionary tags = default(IDictionary), AddressSpace localNetworkAddressSpace = default(AddressSpace), string gatewayIpAddress = default(string), BgpSettings bgpSettings = default(BgpSettings), string resourceGuid = default(string), string provisioningState = default(string), string etag = default(string)) @@ -88,15 +88,16 @@ public LocalNetworkGateway() public BgpSettings BgpSettings { get; set; } /// - /// Gets or sets the resource GUID property of the LocalNetworkGateway - /// resource. + /// Gets or sets the resource GUID property of the local network + /// gateway resource. /// [JsonProperty(PropertyName = "properties.resourceGuid")] public string ResourceGuid { get; set; } /// - /// Gets the provisioning state of the LocalNetworkGateway resource. - /// Possible values are: 'Updating', 'Deleting', and 'Failed'. + /// Gets the provisioning state of the local network gateway resource. + /// Possible values include: 'Succeeded', 'Updating', 'Deleting', + /// 'Failed' /// [JsonProperty(PropertyName = "properties.provisioningState")] public string ProvisioningState { get; private set; } diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/NatGateway.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/NatGateway.cs index 7967d6b44475..0a1b29a81f95 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/NatGateway.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/NatGateway.cs @@ -48,11 +48,11 @@ public NatGateway() /// associated with the nat gateway resource. /// An array of references to the subnets using /// this nat gateway resource. - /// The resource GUID property of the nat + /// The resource GUID property of the NAT /// gateway resource. - /// The provisioning state of the - /// NatGateway resource. Possible values are: 'Updating', 'Deleting', - /// and 'Failed'. + /// The provisioning state of the NAT + /// gateway resource. Possible values include: 'Succeeded', 'Updating', + /// 'Deleting', 'Failed' /// A list of availability zones denoting the zone /// in which Nat Gateway should be deployed. /// A unique read-only string that changes whenever @@ -111,15 +111,16 @@ public NatGateway() public IList Subnets { get; private set; } /// - /// Gets or sets the resource GUID property of the nat gateway + /// Gets or sets the resource GUID property of the NAT gateway /// resource. /// [JsonProperty(PropertyName = "properties.resourceGuid")] public string ResourceGuid { get; set; } /// - /// Gets or sets the provisioning state of the NatGateway resource. - /// Possible values are: 'Updating', 'Deleting', and 'Failed'. + /// Gets or sets the provisioning state of the NAT gateway resource. + /// Possible values include: 'Succeeded', 'Updating', 'Deleting', + /// 'Failed' /// [JsonProperty(PropertyName = "properties.provisioningState")] public string ProvisioningState { get; set; } diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/NetworkIntentPolicy.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/NetworkIntentPolicy.cs index c8603a406aa9..87020d20b0ad 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/NetworkIntentPolicy.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/NetworkIntentPolicy.cs @@ -36,8 +36,8 @@ public NetworkIntentPolicy() /// Resource type. /// Resource location. /// Resource tags. - /// Gets a unique read-only string that changes - /// whenever the resource is updated. + /// A unique read-only string that changes whenever + /// the resource is updated. public NetworkIntentPolicy(string id = default(string), string name = default(string), string type = default(string), string location = default(string), IDictionary tags = default(IDictionary), string etag = default(string)) : base(id, name, type, location, tags) { @@ -51,8 +51,8 @@ public NetworkIntentPolicy() partial void CustomInit(); /// - /// Gets a unique read-only string that changes whenever the resource - /// is updated. + /// Gets or sets a unique read-only string that changes whenever the + /// resource is updated. /// [JsonProperty(PropertyName = "etag")] public string Etag { 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 936d20ba258c..064b6cccbae5 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 @@ -53,8 +53,8 @@ public NetworkInterface() /// interface. /// The MAC address of the network /// interface. - /// Gets whether this is a primary network - /// interface on a virtual machine. + /// Whether this is a primary network interface + /// on a virtual machine. /// If the network interface /// is accelerated networking enabled. /// Indicates whether IP forwarding is @@ -64,8 +64,8 @@ public NetworkInterface() /// The resource GUID property of the /// network interface resource. /// The provisioning state of the - /// public IP resource. Possible values are: 'Updating', 'Deleting', - /// and 'Failed'. + /// network interface resource. Possible values include: 'Succeeded', + /// 'Updating', 'Deleting', 'Failed' /// A unique read-only string that changes whenever /// the resource is updated. public NetworkInterface(string id = default(string), string name = default(string), string type = default(string), string location = default(string), IDictionary tags = default(IDictionary), SubResource virtualMachine = default(SubResource), NetworkSecurityGroup networkSecurityGroup = default(NetworkSecurityGroup), PrivateEndpoint privateEndpoint = default(PrivateEndpoint), IList ipConfigurations = default(IList), IList tapConfigurations = default(IList), NetworkInterfaceDnsSettings dnsSettings = default(NetworkInterfaceDnsSettings), string macAddress = default(string), bool? primary = default(bool?), bool? enableAcceleratedNetworking = default(bool?), bool? enableIPForwarding = default(bool?), IList hostedWorkloads = default(IList), string resourceGuid = default(string), string provisioningState = default(string), string etag = default(string)) @@ -137,8 +137,8 @@ public NetworkInterface() public string MacAddress { get; set; } /// - /// Gets whether this is a primary network interface on a virtual - /// machine. + /// Gets or sets whether this is a primary network interface on a + /// virtual machine. /// [JsonProperty(PropertyName = "properties.primary")] public bool? Primary { get; set; } @@ -171,8 +171,9 @@ public NetworkInterface() public string ResourceGuid { get; set; } /// - /// Gets or sets the provisioning state of the public IP resource. - /// Possible values are: 'Updating', 'Deleting', and 'Failed'. + /// Gets or sets the provisioning state of the network interface + /// resource. Possible values include: 'Succeeded', 'Updating', + /// 'Deleting', 'Failed' /// [JsonProperty(PropertyName = "properties.provisioningState")] public string ProvisioningState { 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 ac9765ff201b..1dc4d516bf5f 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 @@ -50,20 +50,19 @@ public NetworkInterfaceIPConfiguration() /// The private IP address /// allocation method. Possible values include: 'Static', /// 'Dynamic' - /// Available from Api-Version - /// 2016-03-30 onwards, it represents whether the specific - /// ipconfiguration is IPv4 or IPv6. Default is taken as IPv4. Possible - /// values include: 'IPv4', 'IPv6' + /// Whether the specific IP + /// configuration is IPv4 or IPv6. Default is IPv4. Possible values + /// include: 'IPv4', 'IPv6' /// Subnet bound to the IP configuration. - /// Gets whether this is a primary customer - /// address on the network interface. + /// Whether this is a primary customer address on + /// the network interface. /// Public IP address bound to the IP /// configuration. /// Application security groups /// in which the IP configuration is included. /// The provisioning state of the - /// network interface IP configuration. Possible values are: - /// 'Updating', 'Deleting', and 'Failed'. + /// network interface IP configuration. Possible values include: + /// 'Succeeded', 'Updating', 'Deleting', 'Failed' /// The name of the resource that is unique within a /// resource group. This name can be used to access the /// resource. @@ -134,9 +133,8 @@ public NetworkInterfaceIPConfiguration() public string PrivateIPAllocationMethod { get; set; } /// - /// Gets or sets available from Api-Version 2016-03-30 onwards, it - /// represents whether the specific ipconfiguration is IPv4 or IPv6. - /// Default is taken as IPv4. Possible values include: 'IPv4', 'IPv6' + /// Gets or sets whether the specific IP configuration is IPv4 or IPv6. + /// Default is IPv4. Possible values include: 'IPv4', 'IPv6' /// [JsonProperty(PropertyName = "properties.privateIPAddressVersion")] public string PrivateIPAddressVersion { get; set; } @@ -148,8 +146,8 @@ public NetworkInterfaceIPConfiguration() public Subnet Subnet { get; set; } /// - /// Gets whether this is a primary customer address on the network - /// interface. + /// Gets or sets whether this is a primary customer address on the + /// network interface. /// [JsonProperty(PropertyName = "properties.primary")] public bool? Primary { get; set; } @@ -169,8 +167,8 @@ public NetworkInterfaceIPConfiguration() /// /// Gets or sets the provisioning state of the network interface IP - /// configuration. Possible values are: 'Updating', 'Deleting', and - /// 'Failed'. + /// configuration. Possible values include: 'Succeeded', 'Updating', + /// 'Deleting', 'Failed' /// [JsonProperty(PropertyName = "properties.provisioningState")] public string ProvisioningState { get; set; } 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 074467f0051a..8ecea2211418 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 @@ -38,8 +38,8 @@ public NetworkInterfaceTapConfiguration() /// The reference of the Virtual /// Network Tap resource. /// The provisioning state of the - /// network interface tap configuration. Possible values are: - /// 'Updating', 'Deleting', and 'Failed'. + /// network interface tap configuration resource. Possible values + /// include: 'Succeeded', 'Updating', 'Deleting', 'Failed' /// The name of the resource that is unique within a /// resource group. This name can be used to access the /// resource. @@ -70,8 +70,8 @@ public NetworkInterfaceTapConfiguration() /// /// Gets the provisioning state of the network interface tap - /// configuration. Possible values are: 'Updating', 'Deleting', and - /// 'Failed'. + /// configuration resource. Possible values include: 'Succeeded', + /// 'Updating', 'Deleting', 'Failed' /// [JsonProperty(PropertyName = "properties.provisioningState")] public string ProvisioningState { get; private set; } diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/NetworkProfile.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/NetworkProfile.cs index 0a18745273f8..6676b6a0f4c6 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/NetworkProfile.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/NetworkProfile.cs @@ -44,9 +44,10 @@ public NetworkProfile() /// List of chid /// container network interface configurations. /// The resource GUID property of the - /// network interface resource. + /// network profile resource. /// The provisioning state of the - /// resource. + /// network profile resource. Possible values include: 'Succeeded', + /// 'Updating', 'Deleting', 'Failed' /// A unique read-only string that changes whenever /// the resource is updated. public NetworkProfile(string id = default(string), string name = default(string), string type = default(string), string location = default(string), IDictionary tags = default(IDictionary), IList containerNetworkInterfaces = default(IList), IList containerNetworkInterfaceConfigurations = default(IList), string resourceGuid = default(string), string provisioningState = default(string), string etag = default(string)) @@ -79,13 +80,15 @@ public NetworkProfile() public IList ContainerNetworkInterfaceConfigurations { get; set; } /// - /// Gets the resource GUID property of the network interface resource. + /// Gets the resource GUID property of the network profile resource. /// [JsonProperty(PropertyName = "properties.resourceGuid")] public string ResourceGuid { get; private set; } /// - /// Gets the provisioning state of the resource. + /// Gets the provisioning state of the network profile resource. + /// Possible values include: 'Succeeded', 'Updating', 'Deleting', + /// 'Failed' /// [JsonProperty(PropertyName = "properties.provisioningState")] public string ProvisioningState { get; private set; } diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/NetworkRuleCondition.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/NetworkRuleCondition.cs index 071d1a0b4869..a1e37a2844af 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/NetworkRuleCondition.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/NetworkRuleCondition.cs @@ -16,7 +16,7 @@ namespace Microsoft.Azure.Management.Network.Models using System.Linq; /// - /// Rule condition of type network + /// Rule condition of type network. /// public partial class NetworkRuleCondition : FirewallPolicyRuleCondition { diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/NetworkSecurityGroup.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/NetworkSecurityGroup.cs index 6f5eb14ee2ec..47196a5eaf96 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/NetworkSecurityGroup.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/NetworkSecurityGroup.cs @@ -50,8 +50,8 @@ public NetworkSecurityGroup() /// The resource GUID property of the /// network security group resource. /// The provisioning state of the - /// public IP resource. Possible values are: 'Updating', 'Deleting', - /// and 'Failed'. + /// network security group resource. Possible values include: + /// 'Succeeded', 'Updating', 'Deleting', 'Failed' /// A unique read-only string that changes whenever /// the resource is updated. public NetworkSecurityGroup(string id = default(string), string name = default(string), string type = default(string), string location = default(string), IDictionary tags = default(IDictionary), IList securityRules = default(IList), IList defaultSecurityRules = default(IList), IList networkInterfaces = default(IList), IList subnets = default(IList), string resourceGuid = default(string), string provisioningState = default(string), string etag = default(string)) @@ -105,8 +105,9 @@ public NetworkSecurityGroup() public string ResourceGuid { get; set; } /// - /// Gets or sets the provisioning state of the public IP resource. - /// Possible values are: 'Updating', 'Deleting', and 'Failed'. + /// Gets or sets the provisioning state of the network security group + /// resource. Possible values include: 'Succeeded', 'Updating', + /// 'Deleting', 'Failed' /// [JsonProperty(PropertyName = "properties.provisioningState")] public string ProvisioningState { get; set; } diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/NetworkWatcher.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/NetworkWatcher.cs index a32fe530d46e..b34e1449ed58 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/NetworkWatcher.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/NetworkWatcher.cs @@ -42,8 +42,8 @@ public NetworkWatcher() /// A unique read-only string that changes whenever /// the resource is updated. /// The provisioning state of the - /// resource. Possible values include: 'Succeeded', 'Updating', - /// 'Deleting', 'Failed' + /// network watcher resource. Possible values include: 'Succeeded', + /// 'Updating', 'Deleting', 'Failed' public NetworkWatcher(string id = default(string), string name = default(string), string type = default(string), string location = default(string), IDictionary tags = default(IDictionary), string etag = default(string), string provisioningState = default(string)) : base(id, name, type, location, tags) { @@ -65,8 +65,9 @@ public NetworkWatcher() public string Etag { get; set; } /// - /// Gets or sets the provisioning state of the resource. Possible - /// values include: 'Succeeded', 'Updating', 'Deleting', 'Failed' + /// Gets or sets the provisioning state of the network watcher + /// resource. Possible values include: 'Succeeded', 'Updating', + /// 'Deleting', 'Failed' /// [JsonProperty(PropertyName = "properties.provisioningState")] public string ProvisioningState { get; set; } diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/OutboundRule.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/OutboundRule.cs index debd21d539ae..a17a7f2d67fa 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/OutboundRule.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/OutboundRule.cs @@ -44,9 +44,9 @@ public OutboundRule() /// Resource ID. /// The number of outbound ports /// to be used for NAT. - /// Gets the provisioning state of the - /// PublicIP resource. Possible values are: 'Updating', 'Deleting', and - /// 'Failed'. + /// The provisioning state of the + /// outbound rule resource. Possible values include: 'Succeeded', + /// 'Updating', 'Deleting', 'Failed' /// Receive bidirectional TCP Reset on TCP /// flow idle timeout or unexpected connection termination. This /// element is only used when the protocol is set to TCP. @@ -99,8 +99,9 @@ public OutboundRule() public SubResource BackendAddressPool { get; set; } /// - /// Gets the provisioning state of the PublicIP resource. Possible - /// values are: 'Updating', 'Deleting', and 'Failed'. + /// Gets or sets the provisioning state of the outbound rule resource. + /// Possible values include: 'Succeeded', 'Updating', 'Deleting', + /// 'Failed' /// [JsonProperty(PropertyName = "properties.provisioningState")] public string ProvisioningState { get; set; } diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/P2SVpnGateway.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/P2SVpnGateway.cs index 259cff693e38..4cf3295cf713 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/P2SVpnGateway.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/P2SVpnGateway.cs @@ -41,9 +41,9 @@ public P2SVpnGateway() /// Resource tags. /// The VirtualHub to which the gateway /// belongs. - /// The provisioning state of the - /// resource. Possible values include: 'Succeeded', 'Updating', - /// 'Deleting', 'Failed' + /// The provisioning state of the P2S + /// VPN gateway resource. Possible values include: 'Succeeded', + /// 'Updating', 'Deleting', 'Failed' /// The scale unit for this p2s vpn /// gateway. /// The @@ -57,8 +57,8 @@ public P2SVpnGateway() /// customer for P2SVpnGateway and P2S VpnClient. /// All P2S VPN clients' /// connection health status. - /// Gets a unique read-only string that changes - /// whenever the resource is updated. + /// A unique read-only string that changes whenever + /// the resource is updated. public P2SVpnGateway(string id = default(string), string name = default(string), string type = default(string), string location = default(string), IDictionary tags = default(IDictionary), SubResource virtualHub = default(SubResource), string provisioningState = default(string), int? vpnGatewayScaleUnit = default(int?), SubResource p2SVpnServerConfiguration = default(SubResource), AddressSpace vpnClientAddressPool = default(AddressSpace), AddressSpace customRoutes = default(AddressSpace), VpnClientConnectionHealth vpnClientConnectionHealth = default(VpnClientConnectionHealth), string etag = default(string)) : base(id, name, type, location, tags) { @@ -85,8 +85,9 @@ public P2SVpnGateway() public SubResource VirtualHub { get; set; } /// - /// Gets or sets the provisioning state of the resource. Possible - /// values include: 'Succeeded', 'Updating', 'Deleting', 'Failed' + /// Gets or sets the provisioning state of the P2S VPN gateway + /// resource. Possible values include: 'Succeeded', 'Updating', + /// 'Deleting', 'Failed' /// [JsonProperty(PropertyName = "properties.provisioningState")] public string ProvisioningState { get; set; } diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/P2SVpnServerConfigRadiusClientRootCertificate.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/P2SVpnServerConfigRadiusClientRootCertificate.cs index 5815c8b051dd..8a067fe6f48c 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/P2SVpnServerConfigRadiusClientRootCertificate.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/P2SVpnServerConfigRadiusClientRootCertificate.cs @@ -38,8 +38,8 @@ public P2SVpnServerConfigRadiusClientRootCertificate() /// The Radius client root certificate /// thumbprint. /// The provisioning state of the - /// Radius client root certificate resource. Possible values are: - /// 'Updating', 'Deleting', and 'Failed'. + /// radius client root certificate resource. Possible values include: + /// 'Succeeded', 'Updating', 'Deleting', 'Failed' /// The name of the resource that is unique within a /// resource group. This name can be used to access the /// resource. @@ -67,9 +67,9 @@ public P2SVpnServerConfigRadiusClientRootCertificate() public string Thumbprint { get; set; } /// - /// Gets the provisioning state of the Radius client root certificate - /// resource. Possible values are: 'Updating', 'Deleting', and - /// 'Failed'. + /// Gets the provisioning state of the radius client root certificate + /// resource. Possible values include: 'Succeeded', 'Updating', + /// 'Deleting', 'Failed' /// [JsonProperty(PropertyName = "properties.provisioningState")] public string ProvisioningState { get; private set; } diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/P2SVpnServerConfigRadiusServerRootCertificate.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/P2SVpnServerConfigRadiusServerRootCertificate.cs index e5979f374321..bbc45bba688a 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/P2SVpnServerConfigRadiusServerRootCertificate.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/P2SVpnServerConfigRadiusServerRootCertificate.cs @@ -37,8 +37,8 @@ public P2SVpnServerConfigRadiusServerRootCertificate() /// The certificate public data. /// Resource ID. /// The provisioning state of the - /// P2SVpnServerConfiguration Radius Server root certificate resource. - /// Possible values are: 'Updating', 'Deleting', and 'Failed'. + /// radius server root certificate resource. Possible values include: + /// 'Succeeded', 'Updating', 'Deleting', 'Failed' /// The name of the resource that is unique within a /// resource group. This name can be used to access the /// resource. @@ -66,9 +66,9 @@ public P2SVpnServerConfigRadiusServerRootCertificate() public string PublicCertData { get; set; } /// - /// Gets the provisioning state of the P2SVpnServerConfiguration Radius - /// Server root certificate resource. Possible values are: 'Updating', - /// 'Deleting', and 'Failed'. + /// Gets the provisioning state of the radius server root certificate + /// resource. Possible values include: 'Succeeded', 'Updating', + /// 'Deleting', 'Failed' /// [JsonProperty(PropertyName = "properties.provisioningState")] public string ProvisioningState { get; private set; } diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/P2SVpnServerConfigVpnClientRevokedCertificate.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/P2SVpnServerConfigVpnClientRevokedCertificate.cs index ea970d730531..a34398649115 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/P2SVpnServerConfigVpnClientRevokedCertificate.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/P2SVpnServerConfigVpnClientRevokedCertificate.cs @@ -38,8 +38,8 @@ public P2SVpnServerConfigVpnClientRevokedCertificate() /// The revoked VPN client certificate /// thumbprint. /// The provisioning state of the VPN - /// client revoked certificate resource. Possible values are: - /// 'Updating', 'Deleting', and 'Failed'. + /// client revoked certificate resource. Possible values include: + /// 'Succeeded', 'Updating', 'Deleting', 'Failed' /// The name of the resource that is unique within a /// resource group. This name can be used to access the /// resource. @@ -68,8 +68,8 @@ public P2SVpnServerConfigVpnClientRevokedCertificate() /// /// Gets the provisioning state of the VPN client revoked certificate - /// resource. Possible values are: 'Updating', 'Deleting', and - /// 'Failed'. + /// resource. Possible values include: 'Succeeded', 'Updating', + /// 'Deleting', 'Failed' /// [JsonProperty(PropertyName = "properties.provisioningState")] public string ProvisioningState { get; private set; } diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/P2SVpnServerConfigVpnClientRootCertificate.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/P2SVpnServerConfigVpnClientRootCertificate.cs index 97058f9e750f..0d48dac74cb6 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/P2SVpnServerConfigVpnClientRootCertificate.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/P2SVpnServerConfigVpnClientRootCertificate.cs @@ -36,9 +36,9 @@ public P2SVpnServerConfigVpnClientRootCertificate() /// /// The certificate public data. /// Resource ID. - /// The provisioning state of the - /// P2SVpnServerConfiguration VPN client root certificate resource. - /// Possible values are: 'Updating', 'Deleting', and 'Failed'. + /// The provisioning state of the VPN + /// client root certificate resource. Possible values include: + /// 'Succeeded', 'Updating', 'Deleting', 'Failed' /// The name of the resource that is unique within a /// resource group. This name can be used to access the /// resource. @@ -66,9 +66,9 @@ public P2SVpnServerConfigVpnClientRootCertificate() public string PublicCertData { get; set; } /// - /// Gets the provisioning state of the P2SVpnServerConfiguration VPN - /// client root certificate resource. Possible values are: 'Updating', - /// 'Deleting', and 'Failed'. + /// Gets the provisioning state of the VPN client root certificate + /// resource. Possible values include: 'Succeeded', 'Updating', + /// 'Deleting', 'Failed' /// [JsonProperty(PropertyName = "properties.provisioningState")] public string ProvisioningState { get; private set; } diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/P2SVpnServerConfiguration.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/P2SVpnServerConfiguration.cs index e15b91e0651b..c7bc71dc9777 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/P2SVpnServerConfiguration.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/P2SVpnServerConfiguration.cs @@ -57,9 +57,9 @@ public P2SVpnServerConfiguration() /// The radius secret property of the /// P2SVpnServerConfiguration resource for point to site client /// connection. - /// The provisioning state of the - /// P2SVpnServerConfiguration resource. Possible values are: - /// 'Updating', 'Deleting', and 'Failed'. + /// The provisioning state of the P2S + /// VPN server configuration resource. Possible values include: + /// 'Succeeded', 'Updating', 'Deleting', 'Failed' /// List of references to /// P2SVpnGateways. /// A unique @@ -68,8 +68,8 @@ public P2SVpnServerConfiguration() /// The name of the resource that is unique within a /// resource group. This name can be used to access the /// resource. - /// Gets a unique read-only string that changes - /// whenever the resource is updated. + /// A unique read-only string that changes whenever + /// the resource is updated. public P2SVpnServerConfiguration(string id = default(string), string p2SVpnServerConfigurationPropertiesName = default(string), IList vpnProtocols = default(IList), IList p2SVpnServerConfigVpnClientRootCertificates = default(IList), IList p2SVpnServerConfigVpnClientRevokedCertificates = default(IList), IList p2SVpnServerConfigRadiusServerRootCertificates = default(IList), IList p2SVpnServerConfigRadiusClientRootCertificates = default(IList), IList vpnClientIpsecPolicies = default(IList), string radiusServerAddress = default(string), string radiusServerSecret = default(string), string provisioningState = default(string), IList p2SVpnGateways = default(IList), string p2SVpnServerConfigurationPropertiesEtag = default(string), string name = default(string), string etag = default(string)) : base(id) { @@ -161,9 +161,9 @@ public P2SVpnServerConfiguration() public string RadiusServerSecret { get; set; } /// - /// Gets the provisioning state of the P2SVpnServerConfiguration - /// resource. Possible values are: 'Updating', 'Deleting', and - /// 'Failed'. + /// Gets the provisioning state of the P2S VPN server configuration + /// resource. Possible values include: 'Succeeded', 'Updating', + /// 'Deleting', 'Failed' /// [JsonProperty(PropertyName = "properties.provisioningState")] public string ProvisioningState { get; private set; } diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/PatchRouteFilter.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/PatchRouteFilter.cs index bc654b5a1a1c..4678748c0209 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/PatchRouteFilter.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/PatchRouteFilter.cs @@ -41,9 +41,9 @@ public PatchRouteFilter() /// circuit peerings. /// A collection of references to express /// route circuit ipv6 peerings. - /// The provisioning state of the - /// resource. Possible values are: 'Updating', 'Deleting', 'Succeeded' - /// and 'Failed'. + /// The provisioning state of the route + /// filter resource. Possible values include: 'Succeeded', 'Updating', + /// 'Deleting', 'Failed' /// The name of the resource that is unique within a /// resource group. This name can be used to access the /// resource. @@ -92,8 +92,8 @@ public PatchRouteFilter() public IList Ipv6Peerings { get; set; } /// - /// Gets the provisioning state of the resource. Possible values are: - /// 'Updating', 'Deleting', 'Succeeded' and 'Failed'. + /// Gets the provisioning state of the route filter resource. Possible + /// values include: 'Succeeded', 'Updating', 'Deleting', 'Failed' /// [JsonProperty(PropertyName = "properties.provisioningState")] public string ProvisioningState { get; private set; } diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/PatchRouteFilterRule.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/PatchRouteFilterRule.cs index 102325aeebba..dc7c4a6c263f 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/PatchRouteFilterRule.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/PatchRouteFilterRule.cs @@ -39,9 +39,9 @@ public PatchRouteFilterRule() /// The collection for bgp community values /// to filter on. e.g. ['12076:5010','12076:5020']. /// Resource ID. - /// The provisioning state of the - /// resource. Possible values are: 'Updating', 'Deleting', 'Succeeded' - /// and 'Failed'. + /// The provisioning state of the route + /// filter rule resource. Possible values include: 'Succeeded', + /// 'Updating', 'Deleting', 'Failed' /// The name of the resource that is unique within a /// resource group. This name can be used to access the /// resource. @@ -85,8 +85,9 @@ static PatchRouteFilterRule() public IList Communities { get; set; } /// - /// Gets the provisioning state of the resource. Possible values are: - /// 'Updating', 'Deleting', 'Succeeded' and 'Failed'. + /// Gets the provisioning state of the route filter rule resource. + /// Possible values include: 'Succeeded', 'Updating', 'Deleting', + /// 'Failed' /// [JsonProperty(PropertyName = "properties.provisioningState")] public string ProvisioningState { get; private set; } diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/PeerExpressRouteCircuitConnection.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/PeerExpressRouteCircuitConnection.cs index 0b1245a26efc..abd3ccde8850 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/PeerExpressRouteCircuitConnection.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/PeerExpressRouteCircuitConnection.cs @@ -51,11 +51,11 @@ public PeerExpressRouteCircuitConnection() /// The resource guid of the /// authorization used for the express route circuit /// connection. - /// Provisioning state of the peer - /// express route circuit connection resource. Possible values are: - /// 'Succeeded', 'Updating', 'Deleting', and 'Failed'. - /// Gets name of the resource that is unique within - /// a resource group. This name can be used to access the + /// The provisioning state of the peer + /// express route circuit connection resource. Possible values include: + /// 'Succeeded', 'Updating', 'Deleting', 'Failed' + /// The name of the resource that is unique within a + /// resource group. This name can be used to access the /// resource. /// A unique read-only string that changes whenever /// the resource is updated. @@ -124,16 +124,16 @@ public PeerExpressRouteCircuitConnection() public string AuthResourceGuid { get; set; } /// - /// Gets provisioning state of the peer express route circuit - /// connection resource. Possible values are: 'Succeeded', 'Updating', - /// 'Deleting', and 'Failed'. + /// Gets the provisioning state of the peer express route circuit + /// connection resource. Possible values include: 'Succeeded', + /// 'Updating', 'Deleting', 'Failed' /// [JsonProperty(PropertyName = "properties.provisioningState")] public string ProvisioningState { get; private set; } /// - /// Gets name of the resource that is unique within a resource group. - /// This name can be used to access the resource. + /// Gets or sets the name of the resource that is unique within a + /// resource group. This name can be used to access the resource. /// [JsonProperty(PropertyName = "name")] public string Name { get; set; } diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/PrivateEndpoint.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/PrivateEndpoint.cs index a4722b4a17ff..2bca1c266d7a 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/PrivateEndpoint.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/PrivateEndpoint.cs @@ -41,19 +41,19 @@ public PrivateEndpoint() /// Resource tags. /// The ID of the subnet from which the private IP /// will be allocated. - /// Gets an array of references to the + /// An array of references to the /// network interfaces created for this private endpoint. /// The provisioning state of the - /// private endpoint. Possible values are: 'Updating', 'Deleting', and - /// 'Failed'. + /// private endpoint resource. Possible values include: 'Succeeded', + /// 'Updating', 'Deleting', 'Failed' /// A grouping of /// information about the connection to the remote resource. /// A grouping of /// information about the connection to the remote resource. Used when /// the network admin does not have access to approve connections to /// the remote resource. - /// Gets a unique read-only string that changes - /// whenever the resource is updated. + /// A unique read-only string that changes whenever + /// the resource is updated. public PrivateEndpoint(string id = default(string), string name = default(string), string type = default(string), string location = default(string), IDictionary tags = default(IDictionary), Subnet subnet = default(Subnet), IList networkInterfaces = default(IList), string provisioningState = default(string), IList privateLinkServiceConnections = default(IList), IList manualPrivateLinkServiceConnections = default(IList), string etag = default(string)) : base(id, name, type, location, tags) { @@ -86,11 +86,12 @@ public PrivateEndpoint() public IList NetworkInterfaces { get; private set; } /// - /// Gets the provisioning state of the private endpoint. Possible - /// values are: 'Updating', 'Deleting', and 'Failed'. + /// Gets or sets the provisioning state of the private endpoint + /// resource. Possible values include: 'Succeeded', 'Updating', + /// 'Deleting', 'Failed' /// [JsonProperty(PropertyName = "properties.provisioningState")] - public string ProvisioningState { get; private set; } + public string ProvisioningState { get; set; } /// /// Gets or sets a grouping of information about the connection to the @@ -108,8 +109,8 @@ public PrivateEndpoint() public IList ManualPrivateLinkServiceConnections { get; set; } /// - /// Gets a unique read-only string that changes whenever the resource - /// is updated. + /// Gets or sets a unique read-only string that changes whenever the + /// resource is updated. /// [JsonProperty(PropertyName = "etag")] public string Etag { get; set; } diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/PrivateEndpointConnection.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/PrivateEndpointConnection.cs index 42ee94474a58..1cd5f7f4ce0c 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/PrivateEndpointConnection.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/PrivateEndpointConnection.cs @@ -38,15 +38,24 @@ public PrivateEndpointConnection() /// A collection of /// information about the state of the connection between service /// consumer and provider. + /// The provisioning state of the + /// private endpoint connection resource. Possible values include: + /// 'Succeeded', 'Updating', 'Deleting', 'Failed' /// The name of the resource that is unique within a /// resource group. This name can be used to access the /// resource. - public PrivateEndpointConnection(string id = default(string), PrivateEndpoint privateEndpoint = default(PrivateEndpoint), PrivateLinkServiceConnectionState privateLinkServiceConnectionState = default(PrivateLinkServiceConnectionState), string name = default(string)) + /// The resource type. + /// A unique read-only string that changes whenever + /// the resource is updated. + public PrivateEndpointConnection(string id = default(string), PrivateEndpoint privateEndpoint = default(PrivateEndpoint), PrivateLinkServiceConnectionState privateLinkServiceConnectionState = default(PrivateLinkServiceConnectionState), string provisioningState = default(string), string name = default(string), string type = default(string), string etag = default(string)) : base(id) { PrivateEndpoint = privateEndpoint; PrivateLinkServiceConnectionState = privateLinkServiceConnectionState; + ProvisioningState = provisioningState; Name = name; + Type = type; + Etag = etag; CustomInit(); } @@ -68,6 +77,14 @@ public PrivateEndpointConnection() [JsonProperty(PropertyName = "properties.privateLinkServiceConnectionState")] public PrivateLinkServiceConnectionState PrivateLinkServiceConnectionState { get; set; } + /// + /// Gets or sets the provisioning state of the private endpoint + /// connection resource. Possible values include: 'Succeeded', + /// 'Updating', 'Deleting', 'Failed' + /// + [JsonProperty(PropertyName = "properties.provisioningState")] + public string ProvisioningState { get; set; } + /// /// Gets or sets the name of the resource that is unique within a /// resource group. This name can be used to access the resource. @@ -75,5 +92,18 @@ public PrivateEndpointConnection() [JsonProperty(PropertyName = "name")] public string Name { get; set; } + /// + /// Gets the resource type. + /// + [JsonProperty(PropertyName = "type")] + public string Type { 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; } + } } diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/PrivateLinkService.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/PrivateLinkService.cs index a10cd7f2b052..469b183d4e51 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/PrivateLinkService.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/PrivateLinkService.cs @@ -41,13 +41,13 @@ public PrivateLinkService() /// Resource tags. /// An array of /// references to the load balancer IP configurations. - /// An array of references to the - /// private link service IP configuration. - /// Gets an array of references to the + /// An array of private link service IP + /// configurations. + /// An array of references to the /// network interfaces created for this private link service. /// The provisioning state of the - /// private link service. Possible values are: 'Updating', 'Succeeded', - /// and 'Failed'. + /// private link service resource. Possible values include: + /// 'Succeeded', 'Updating', 'Deleting', 'Failed' /// An array of list about /// connections to the private endpoint. /// The visibility list of the private link @@ -56,8 +56,8 @@ public PrivateLinkService() /// link service. /// The list of Fqdn. /// The alias of the private link service. - /// Gets a unique read-only string that changes - /// whenever the resource is updated. + /// A unique read-only string that changes whenever + /// the resource is updated. public PrivateLinkService(string id = default(string), string name = default(string), string type = default(string), string location = default(string), IDictionary tags = default(IDictionary), IList loadBalancerFrontendIpConfigurations = default(IList), IList ipConfigurations = default(IList), IList networkInterfaces = default(IList), string provisioningState = default(string), IList privateEndpointConnections = default(IList), PrivateLinkServicePropertiesVisibility visibility = default(PrivateLinkServicePropertiesVisibility), PrivateLinkServicePropertiesAutoApproval autoApproval = default(PrivateLinkServicePropertiesAutoApproval), IList fqdns = default(IList), string alias = default(string), string etag = default(string)) : base(id, name, type, location, tags) { @@ -87,8 +87,7 @@ public PrivateLinkService() public IList LoadBalancerFrontendIpConfigurations { get; set; } /// - /// Gets or sets an array of references to the private link service IP - /// configuration. + /// Gets or sets an array of private link service IP configurations. /// [JsonProperty(PropertyName = "properties.ipConfigurations")] public IList IpConfigurations { get; set; } @@ -101,11 +100,12 @@ public PrivateLinkService() public IList NetworkInterfaces { get; private set; } /// - /// Gets the provisioning state of the private link service. Possible - /// values are: 'Updating', 'Succeeded', and 'Failed'. + /// Gets or sets the provisioning state of the private link service + /// resource. Possible values include: 'Succeeded', 'Updating', + /// 'Deleting', 'Failed' /// [JsonProperty(PropertyName = "properties.provisioningState")] - public string ProvisioningState { get; private set; } + public string ProvisioningState { get; set; } /// /// Gets or sets an array of list about connections to the private @@ -139,8 +139,8 @@ public PrivateLinkService() public string Alias { get; private set; } /// - /// Gets a unique read-only string that changes whenever the resource - /// is updated. + /// Gets or sets a unique read-only string that changes whenever the + /// resource is updated. /// [JsonProperty(PropertyName = "etag")] public string Etag { get; set; } diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/PrivateLinkServiceConnection.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/PrivateLinkServiceConnection.cs index 3474fac3646b..6a608baacae1 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/PrivateLinkServiceConnection.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/PrivateLinkServiceConnection.cs @@ -37,6 +37,9 @@ public PrivateLinkServiceConnection() /// class. /// /// Resource ID. + /// The provisioning state of the + /// private link service connection resource. Possible values include: + /// 'Succeeded', 'Updating', 'Deleting', 'Failed' /// The resource id of private link /// service. /// The ID(s) of the group(s) obtained from the @@ -51,14 +54,20 @@ public PrivateLinkServiceConnection() /// The name of the resource that is unique within a /// resource group. This name can be used to access the /// resource. - public PrivateLinkServiceConnection(string id = default(string), string privateLinkServiceId = default(string), IList groupIds = default(IList), string requestMessage = default(string), PrivateLinkServiceConnectionState privateLinkServiceConnectionState = default(PrivateLinkServiceConnectionState), string name = default(string)) + /// The resource type. + /// A unique read-only string that changes whenever + /// the resource is updated. + public PrivateLinkServiceConnection(string id = default(string), string provisioningState = default(string), string privateLinkServiceId = default(string), IList groupIds = default(IList), string requestMessage = default(string), PrivateLinkServiceConnectionState privateLinkServiceConnectionState = default(PrivateLinkServiceConnectionState), string name = default(string), string type = default(string), string etag = default(string)) : base(id) { + ProvisioningState = provisioningState; PrivateLinkServiceId = privateLinkServiceId; GroupIds = groupIds; RequestMessage = requestMessage; PrivateLinkServiceConnectionState = privateLinkServiceConnectionState; Name = name; + Type = type; + Etag = etag; CustomInit(); } @@ -67,6 +76,14 @@ public PrivateLinkServiceConnection() /// partial void CustomInit(); + /// + /// Gets or sets the provisioning state of the private link service + /// connection resource. Possible values include: 'Succeeded', + /// 'Updating', 'Deleting', 'Failed' + /// + [JsonProperty(PropertyName = "properties.provisioningState")] + public string ProvisioningState { get; set; } + /// /// Gets or sets the resource id of private link service. /// @@ -101,5 +118,18 @@ public PrivateLinkServiceConnection() [JsonProperty(PropertyName = "name")] public string Name { get; set; } + /// + /// Gets the resource type. + /// + [JsonProperty(PropertyName = "type")] + public string Type { 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; } + } } diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/PrivateLinkServiceIpConfiguration.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/PrivateLinkServiceIpConfiguration.cs index ce5697893094..5d201cc70af9 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/PrivateLinkServiceIpConfiguration.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/PrivateLinkServiceIpConfiguration.cs @@ -19,7 +19,7 @@ namespace Microsoft.Azure.Management.Network.Models /// The private link service ip configuration. /// [Rest.Serialization.JsonTransformation] - public partial class PrivateLinkServiceIpConfiguration + public partial class PrivateLinkServiceIpConfiguration : SubResource { /// /// Initializes a new instance of the PrivateLinkServiceIpConfiguration @@ -34,32 +34,38 @@ public PrivateLinkServiceIpConfiguration() /// Initializes a new instance of the PrivateLinkServiceIpConfiguration /// class. /// + /// Resource ID. /// The private IP address of the IP /// configuration. /// The private IP address /// allocation method. Possible values include: 'Static', /// 'Dynamic' - /// The reference of the subnet resource. - /// The reference of the public IP - /// resource. - /// Gets the provisioning state of the - /// public IP resource. Possible values are: 'Updating', 'Deleting', - /// and 'Failed'. - /// Available from Api-Version - /// 2016-03-30 onwards, it represents whether the specific - /// ipconfiguration is IPv4 or IPv6. Default is taken as IPv4. Possible - /// values include: 'IPv4', 'IPv6' + /// The reference to the subnet resource. + /// Whether the ip configuration is primary or + /// not. + /// The provisioning state of the + /// private link service IP configuration resource. Possible values + /// include: 'Succeeded', 'Updating', 'Deleting', 'Failed' + /// Whether the specific IP + /// configuration is IPv4 or IPv6. Default is IPv4. Possible values + /// include: 'IPv4', 'IPv6' /// The name of private link service ip /// configuration. - public PrivateLinkServiceIpConfiguration(string privateIPAddress = default(string), string privateIPAllocationMethod = default(string), Subnet subnet = default(Subnet), PublicIPAddress publicIPAddress = default(PublicIPAddress), string provisioningState = default(string), string privateIPAddressVersion = default(string), string name = default(string)) + /// A unique read-only string that changes whenever + /// the resource is updated. + /// The resource type. + public PrivateLinkServiceIpConfiguration(string id = default(string), string privateIPAddress = default(string), string privateIPAllocationMethod = default(string), Subnet subnet = default(Subnet), bool? primary = default(bool?), string provisioningState = default(string), string privateIPAddressVersion = default(string), string name = default(string), string etag = default(string), string type = default(string)) + : base(id) { PrivateIPAddress = privateIPAddress; PrivateIPAllocationMethod = privateIPAllocationMethod; Subnet = subnet; - PublicIPAddress = publicIPAddress; + Primary = primary; ProvisioningState = provisioningState; PrivateIPAddressVersion = privateIPAddressVersion; Name = name; + Etag = etag; + Type = type; CustomInit(); } @@ -82,28 +88,28 @@ public PrivateLinkServiceIpConfiguration() 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 whether the ip configuration is primary or not. /// - [JsonProperty(PropertyName = "properties.publicIPAddress")] - public PublicIPAddress PublicIPAddress { get; set; } + [JsonProperty(PropertyName = "properties.primary")] + public bool? Primary { get; set; } /// - /// Gets the provisioning state of the public IP resource. Possible - /// values are: 'Updating', 'Deleting', and 'Failed'. + /// Gets or sets the provisioning state of the private link service IP + /// configuration resource. Possible values include: 'Succeeded', + /// 'Updating', 'Deleting', 'Failed' /// [JsonProperty(PropertyName = "properties.provisioningState")] public string ProvisioningState { get; set; } /// - /// Gets or sets available from Api-Version 2016-03-30 onwards, it - /// represents whether the specific ipconfiguration is IPv4 or IPv6. - /// Default is taken as IPv4. Possible values include: 'IPv4', 'IPv6' + /// Gets or sets whether the specific IP configuration is IPv4 or IPv6. + /// Default is IPv4. Possible values include: 'IPv4', 'IPv6' /// [JsonProperty(PropertyName = "properties.privateIPAddressVersion")] public string PrivateIPAddressVersion { get; set; } @@ -114,5 +120,18 @@ public PrivateLinkServiceIpConfiguration() [JsonProperty(PropertyName = "name")] public string Name { get; set; } + /// + /// Gets a unique read-only string that changes whenever the resource + /// is updated. + /// + [JsonProperty(PropertyName = "etag")] + public string Etag { get; private set; } + + /// + /// Gets the resource type. + /// + [JsonProperty(PropertyName = "type")] + public string Type { get; private set; } + } } diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/Probe.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/Probe.cs index f5b40ff69f2f..7ca743e3ba62 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/Probe.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/Probe.cs @@ -58,10 +58,10 @@ public Probe() /// The URI used for requesting health status /// from the VM. Path is required if a protocol is set to http. /// Otherwise, it is not allowed. There is no default value. - /// Gets the provisioning state of the - /// public IP resource. Possible values are: 'Updating', 'Deleting', - /// and 'Failed'. - /// Gets name of the resource that is unique within + /// The provisioning state of the probe + /// resource. Possible values include: 'Succeeded', 'Updating', + /// 'Deleting', 'Failed' + /// The name of the resource that is unique within /// the set of probes used by the load balancer. This name can be used /// to access the resource. /// A unique read-only string that changes whenever @@ -139,16 +139,16 @@ public Probe() public string RequestPath { get; set; } /// - /// Gets the provisioning state of the public IP resource. Possible - /// values are: 'Updating', 'Deleting', and 'Failed'. + /// Gets or sets the provisioning state of the probe resource. Possible + /// values include: 'Succeeded', 'Updating', 'Deleting', 'Failed' /// [JsonProperty(PropertyName = "properties.provisioningState")] public string ProvisioningState { get; set; } /// - /// Gets name of the resource that is unique within the set of probes - /// used by the load balancer. This name can be used to access the - /// resource. + /// Gets or sets the name of the resource that is unique within the set + /// of probes used by the load balancer. This name can be used to + /// access the resource. /// [JsonProperty(PropertyName = "name")] public string Name { get; set; } diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/PublicIPPrefix.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/PublicIPPrefix.cs index dd298535e8ae..4cf6497356a5 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/PublicIPPrefix.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/PublicIPPrefix.cs @@ -49,16 +49,19 @@ public PublicIPPrefix() /// The allocated Prefix. /// The list of all referenced /// PublicIPAddresses. + /// The reference to + /// load balancer frontend IP configuration associated with the public + /// IP prefix. /// The resource GUID property of the public /// IP prefix resource. /// The provisioning state of the - /// Public IP prefix resource. Possible values are: 'Updating', - /// 'Deleting', and 'Failed'. + /// public IP prefix resource. Possible values include: 'Succeeded', + /// 'Updating', 'Deleting', 'Failed' /// A unique read-only string that changes whenever /// the resource is updated. /// A list of availability zones denoting the IP /// allocated for the resource needs to come from. - public PublicIPPrefix(string id = default(string), string name = default(string), string type = default(string), string location = default(string), IDictionary tags = default(IDictionary), PublicIPPrefixSku sku = default(PublicIPPrefixSku), string publicIPAddressVersion = default(string), IList ipTags = default(IList), int? prefixLength = default(int?), string ipPrefix = default(string), IList publicIPAddresses = default(IList), string resourceGuid = default(string), string provisioningState = default(string), string etag = default(string), IList zones = default(IList)) + public PublicIPPrefix(string id = default(string), string name = default(string), string type = default(string), string location = default(string), IDictionary tags = default(IDictionary), PublicIPPrefixSku sku = default(PublicIPPrefixSku), string publicIPAddressVersion = default(string), IList ipTags = default(IList), int? prefixLength = default(int?), string ipPrefix = default(string), IList publicIPAddresses = default(IList), SubResource loadBalancerFrontendIpConfiguration = default(SubResource), string resourceGuid = default(string), string provisioningState = default(string), string etag = default(string), IList zones = default(IList)) : base(id, name, type, location, tags) { Sku = sku; @@ -67,6 +70,7 @@ public PublicIPPrefix() PrefixLength = prefixLength; IpPrefix = ipPrefix; PublicIPAddresses = publicIPAddresses; + LoadBalancerFrontendIpConfiguration = loadBalancerFrontendIpConfiguration; ResourceGuid = resourceGuid; ProvisioningState = provisioningState; Etag = etag; @@ -116,6 +120,13 @@ public PublicIPPrefix() [JsonProperty(PropertyName = "properties.publicIPAddresses")] public IList PublicIPAddresses { get; set; } + /// + /// Gets the reference to load balancer frontend IP configuration + /// associated with the public IP prefix. + /// + [JsonProperty(PropertyName = "properties.loadBalancerFrontendIpConfiguration")] + public SubResource LoadBalancerFrontendIpConfiguration { get; private set; } + /// /// Gets or sets the resource GUID property of the public IP prefix /// resource. @@ -124,9 +135,9 @@ public PublicIPPrefix() public string ResourceGuid { get; set; } /// - /// Gets or sets the provisioning state of the Public IP prefix - /// resource. Possible values are: 'Updating', 'Deleting', and - /// 'Failed'. + /// Gets or sets the provisioning state of the public IP prefix + /// resource. Possible values include: 'Succeeded', 'Updating', + /// 'Deleting', 'Failed' /// [JsonProperty(PropertyName = "properties.provisioningState")] public string ProvisioningState { get; set; } diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/PublicIpAddress.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/PublicIpAddress.cs index 7f93be7ab134..80485c6d5552 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/PublicIpAddress.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/PublicIpAddress.cs @@ -60,10 +60,10 @@ public PublicIPAddress() /// The idle timeout of the public /// IP address. /// The resource GUID property of the public - /// IP resource. + /// IP address resource. /// The provisioning state of the - /// PublicIP resource. Possible values are: 'Updating', 'Deleting', and - /// 'Failed'. + /// public IP address resource. Possible values include: 'Succeeded', + /// 'Updating', 'Deleting', 'Failed' /// A unique read-only string that changes whenever /// the resource is updated. /// A list of availability zones denoting the IP @@ -161,14 +161,16 @@ public PublicIPAddress() public int? IdleTimeoutInMinutes { get; set; } /// - /// Gets or sets the resource GUID property of the public IP resource. + /// Gets or sets the resource GUID property of the public IP address + /// resource. /// [JsonProperty(PropertyName = "properties.resourceGuid")] public string ResourceGuid { get; set; } /// - /// Gets or sets the provisioning state of the PublicIP resource. - /// Possible values are: 'Updating', 'Deleting', and 'Failed'. + /// Gets or sets the provisioning state of the public IP address + /// resource. Possible values include: 'Succeeded', 'Updating', + /// 'Deleting', 'Failed' /// [JsonProperty(PropertyName = "properties.provisioningState")] public string ProvisioningState { get; set; } diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/PublicIpAddressDnsSettings.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/PublicIpAddressDnsSettings.cs index f3f61b384f6f..bc4d47934f45 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/PublicIpAddressDnsSettings.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/PublicIpAddressDnsSettings.cs @@ -29,21 +29,20 @@ public PublicIPAddressDnsSettings() /// /// Initializes a new instance of the PublicIPAddressDnsSettings class. /// - /// Gets or sets the Domain name - /// label.The concatenation of the domain name label and the - /// regionalized DNS zone make up the fully qualified domain name - /// associated with the public IP address. If a domain name label is - /// specified, an A DNS record is created for the public IP in the - /// Microsoft Azure DNS system. - /// Gets the FQDN, Fully qualified domain name of - /// the A DNS record associated with the public IP. This is the - /// concatenation of the domainNameLabel and the regionalized DNS - /// zone. - /// Gets or Sets the Reverse FQDN. A - /// user-visible, fully qualified domain name that resolves to this - /// public IP address. If the reverseFqdn is specified, then a PTR DNS - /// record is created pointing from the IP address in the in-addr.arpa - /// domain to the reverse FQDN. + /// The domain name label. The + /// concatenation of the domain name label and the regionalized DNS + /// zone make up the fully qualified domain name associated with the + /// public IP address. If a domain name label is specified, an A DNS + /// record is created for the public IP in the Microsoft Azure DNS + /// system. + /// The Fully Qualified Domain Name of the A DNS + /// record associated with the public IP. This is the concatenation of + /// the domainNameLabel and the regionalized DNS zone. + /// The reverse FQDN. A user-visible, fully + /// qualified domain name that resolves to this public IP address. If + /// the reverseFqdn is specified, then a PTR DNS record is created + /// pointing from the IP address in the in-addr.arpa domain to the + /// reverse FQDN. public PublicIPAddressDnsSettings(string domainNameLabel = default(string), string fqdn = default(string), string reverseFqdn = default(string)) { DomainNameLabel = domainNameLabel; @@ -58,7 +57,7 @@ public PublicIPAddressDnsSettings() partial void CustomInit(); /// - /// Gets or sets the Domain name label.The concatenation of the domain + /// Gets or sets the domain name label. The concatenation of the domain /// name label and the regionalized DNS zone make up the fully /// qualified domain name associated with the public IP address. If a /// domain name label is specified, an A DNS record is created for the @@ -68,7 +67,7 @@ public PublicIPAddressDnsSettings() public string DomainNameLabel { get; set; } /// - /// Gets the FQDN, Fully qualified domain name of the A DNS record + /// Gets or sets the Fully Qualified Domain Name of the A DNS record /// associated with the public IP. This is the concatenation of the /// domainNameLabel and the regionalized DNS zone. /// @@ -76,7 +75,7 @@ public PublicIPAddressDnsSettings() public string Fqdn { get; set; } /// - /// Gets or Sets the Reverse FQDN. A user-visible, fully qualified + /// Gets or sets the reverse FQDN. A user-visible, fully qualified /// domain name that resolves to this public IP address. If the /// reverseFqdn is specified, then a PTR DNS record is created pointing /// from the IP address in the in-addr.arpa domain to the reverse FQDN. diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ResourceNavigationLink.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ResourceNavigationLink.cs index b09b432b786f..a7857be163fa 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ResourceNavigationLink.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ResourceNavigationLink.cs @@ -36,8 +36,9 @@ public ResourceNavigationLink() /// Resource type of the linked /// resource. /// Link to the external resource. - /// Provisioning state of the - /// ResourceNavigationLink resource. + /// The provisioning state of the + /// resource navigation link resource. Possible values include: + /// 'Succeeded', 'Updating', 'Deleting', 'Failed' /// Name of the resource that is unique within a /// resource group. This name can be used to access the /// resource. @@ -74,7 +75,9 @@ public ResourceNavigationLink() public string Link { get; set; } /// - /// Gets provisioning state of the ResourceNavigationLink resource. + /// Gets the provisioning state of the resource navigation link + /// resource. Possible values include: 'Succeeded', 'Updating', + /// 'Deleting', 'Failed' /// [JsonProperty(PropertyName = "properties.provisioningState")] public string ProvisioningState { get; private set; } diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/Route.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/Route.cs index 7a732ac622f9..d93e89e5d8b8 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/Route.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/Route.cs @@ -41,9 +41,9 @@ public Route() /// The IP address packets should be /// forwarded to. Next hop values are only allowed in routes where the /// next hop type is VirtualAppliance. - /// The provisioning state of the - /// resource. Possible values are: 'Updating', 'Deleting', and - /// 'Failed'. + /// The provisioning state of the route + /// resource. Possible values include: 'Succeeded', 'Updating', + /// 'Deleting', 'Failed' /// The name of the resource that is unique within a /// resource group. This name can be used to access the /// resource. @@ -89,8 +89,8 @@ public Route() public string NextHopIpAddress { get; set; } /// - /// Gets or sets the provisioning state of the resource. Possible - /// values are: 'Updating', 'Deleting', and 'Failed'. + /// Gets or sets the provisioning state of the route resource. Possible + /// values include: 'Succeeded', 'Updating', 'Deleting', 'Failed' /// [JsonProperty(PropertyName = "properties.provisioningState")] public string ProvisioningState { get; set; } diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/RouteFilter.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/RouteFilter.cs index 2552d567bb0d..0f59f7b7322c 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/RouteFilter.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/RouteFilter.cs @@ -45,11 +45,11 @@ public RouteFilter() /// circuit peerings. /// A collection of references to express /// route circuit ipv6 peerings. - /// The provisioning state of the - /// resource. Possible values are: 'Updating', 'Deleting', 'Succeeded' - /// and 'Failed'. - /// Gets a unique read-only string that changes - /// whenever the resource is updated. + /// The provisioning state of the route + /// filter resource. Possible values include: 'Succeeded', 'Updating', + /// 'Deleting', 'Failed' + /// A unique read-only string that changes whenever + /// the resource is updated. public RouteFilter(string id = default(string), string name = default(string), string type = default(string), string location = default(string), IDictionary tags = default(IDictionary), IList rules = default(IList), IList peerings = default(IList), IList ipv6Peerings = default(IList), string provisioningState = default(string), string etag = default(string)) : base(id, name, type, location, tags) { @@ -88,8 +88,8 @@ public RouteFilter() public IList Ipv6Peerings { get; set; } /// - /// Gets the provisioning state of the resource. Possible values are: - /// 'Updating', 'Deleting', 'Succeeded' and 'Failed'. + /// Gets the provisioning state of the route filter resource. Possible + /// values include: 'Succeeded', 'Updating', 'Deleting', 'Failed' /// [JsonProperty(PropertyName = "properties.provisioningState")] public string ProvisioningState { get; private set; } diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/RouteFilterRule.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/RouteFilterRule.cs index 227171b0c3a3..04c00af70e64 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/RouteFilterRule.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/RouteFilterRule.cs @@ -39,9 +39,9 @@ public RouteFilterRule() /// The collection for bgp community values /// to filter on. e.g. ['12076:5010','12076:5020']. /// Resource ID. - /// The provisioning state of the - /// resource. Possible values are: 'Updating', 'Deleting', 'Succeeded' - /// and 'Failed'. + /// The provisioning state of the route + /// filter rule resource. Possible values include: 'Succeeded', + /// 'Updating', 'Deleting', 'Failed' /// The name of the resource that is unique within a /// resource group. This name can be used to access the /// resource. @@ -87,8 +87,9 @@ static RouteFilterRule() public IList Communities { get; set; } /// - /// Gets the provisioning state of the resource. Possible values are: - /// 'Updating', 'Deleting', 'Succeeded' and 'Failed'. + /// Gets the provisioning state of the route filter rule resource. + /// Possible values include: 'Succeeded', 'Updating', 'Deleting', + /// 'Failed' /// [JsonProperty(PropertyName = "properties.provisioningState")] public string ProvisioningState { get; private set; } diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/RouteTable.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/RouteTable.cs index 88e458176fc4..934176098c10 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/RouteTable.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/RouteTable.cs @@ -43,14 +43,14 @@ public RouteTable() /// table. /// A collection of references to /// subnets. - /// Gets or sets whether to - /// disable the routes learned by BGP on that route table. True means + /// Whether to disable the + /// routes learned by BGP on that route table. True means /// disable. - /// The provisioning state of the - /// resource. Possible values are: 'Updating', 'Deleting', and - /// 'Failed'. - /// Gets a unique read-only string that changes - /// whenever the resource is updated. + /// The provisioning state of the route + /// table resource. Possible values include: 'Succeeded', 'Updating', + /// 'Deleting', 'Failed' + /// A unique read-only string that changes whenever + /// the resource is updated. public RouteTable(string id = default(string), string name = default(string), string type = default(string), string location = default(string), IDictionary tags = default(IDictionary), IList routes = default(IList), IList subnets = default(IList), bool? disableBgpRoutePropagation = default(bool?), string provisioningState = default(string), string etag = default(string)) : base(id, name, type, location, tags) { @@ -87,15 +87,16 @@ public RouteTable() public bool? DisableBgpRoutePropagation { get; set; } /// - /// Gets or sets the provisioning state of the resource. Possible - /// values are: 'Updating', 'Deleting', and 'Failed'. + /// Gets or sets the provisioning state of the route table resource. + /// Possible values include: 'Succeeded', 'Updating', 'Deleting', + /// 'Failed' /// [JsonProperty(PropertyName = "properties.provisioningState")] public string ProvisioningState { get; set; } /// - /// Gets a unique read-only string that changes whenever the resource - /// is updated. + /// Gets or sets a unique read-only string that changes whenever the + /// resource is updated. /// [JsonProperty(PropertyName = "etag")] public string Etag { get; set; } diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/SecurityRule.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/SecurityRule.cs index 7c9a36fe8f54..f0404e3cca80 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/SecurityRule.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/SecurityRule.cs @@ -75,8 +75,8 @@ public SecurityRule() /// rule in the collection. The lower the priority number, the higher /// the priority of the rule. /// The provisioning state of the - /// public IP resource. Possible values are: 'Updating', 'Deleting', - /// and 'Failed'. + /// security rule resource. Possible values include: 'Succeeded', + /// 'Updating', 'Deleting', 'Failed' /// The name of the resource that is unique within a /// resource group. This name can be used to access the /// resource. @@ -221,8 +221,9 @@ public SecurityRule() public string Direction { get; set; } /// - /// Gets or sets the provisioning state of the public IP resource. - /// Possible values are: 'Updating', 'Deleting', and 'Failed'. + /// Gets or sets the provisioning state of the security rule resource. + /// Possible values include: 'Succeeded', 'Updating', 'Deleting', + /// 'Failed' /// [JsonProperty(PropertyName = "properties.provisioningState")] public string ProvisioningState { get; set; } diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ServiceAssociationLink.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ServiceAssociationLink.cs index 0eec610bd3f2..6da27e70c495 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ServiceAssociationLink.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ServiceAssociationLink.cs @@ -38,8 +38,9 @@ public ServiceAssociationLink() /// Resource type of the linked /// resource. /// Link to the external resource. - /// Provisioning state of the - /// ServiceAssociationLink resource. + /// The provisioning state of the + /// service association link resource. Possible values include: + /// 'Succeeded', 'Updating', 'Deleting', 'Failed' /// If true, the resource can be /// deleted. /// A list of locations. @@ -81,7 +82,9 @@ public ServiceAssociationLink() public string Link { get; set; } /// - /// Gets provisioning state of the ServiceAssociationLink resource. + /// Gets the provisioning state of the service association link + /// resource. Possible values include: 'Succeeded', 'Updating', + /// 'Deleting', 'Failed' /// [JsonProperty(PropertyName = "properties.provisioningState")] public string ProvisioningState { get; private set; } diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ServiceEndpointPolicy.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ServiceEndpointPolicy.cs index af0542f09714..a65cfded903d 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ServiceEndpointPolicy.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ServiceEndpointPolicy.cs @@ -47,8 +47,8 @@ public ServiceEndpointPolicy() /// The resource GUID property of the /// service endpoint policy resource. /// The provisioning state of the - /// service endpoint policy. Possible values are: 'Updating', - /// 'Deleting', and 'Failed'. + /// service endpoint policy resource. Possible values include: + /// 'Succeeded', 'Updating', 'Deleting', 'Failed' /// A unique read-only string that changes whenever /// the resource is updated. public ServiceEndpointPolicy(string id = default(string), string name = default(string), string type = default(string), string location = default(string), IDictionary tags = default(IDictionary), IList serviceEndpointPolicyDefinitions = default(IList), IList subnets = default(IList), string resourceGuid = default(string), string provisioningState = default(string), string etag = default(string)) @@ -88,8 +88,9 @@ public ServiceEndpointPolicy() public string ResourceGuid { get; private set; } /// - /// Gets the provisioning state of the service endpoint policy. - /// Possible values are: 'Updating', 'Deleting', and 'Failed'. + /// Gets the provisioning state of the service endpoint policy + /// resource. Possible values include: 'Succeeded', 'Updating', + /// 'Deleting', 'Failed' /// [JsonProperty(PropertyName = "properties.provisioningState")] public string ProvisioningState { get; private set; } diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ServiceEndpointPolicyDefinition.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ServiceEndpointPolicyDefinition.cs index 13eb9ca568c4..1c2ba20575b9 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ServiceEndpointPolicyDefinition.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ServiceEndpointPolicyDefinition.cs @@ -42,8 +42,8 @@ public ServiceEndpointPolicyDefinition() /// Service endpoint name. /// A list of service resources. /// The provisioning state of the - /// service end point policy definition. Possible values are: - /// 'Updating', 'Deleting', and 'Failed'. + /// service endpoint policy definition resource. Possible values + /// include: 'Succeeded', 'Updating', 'Deleting', 'Failed' /// The name of the resource that is unique within a /// resource group. This name can be used to access the /// resource. @@ -85,9 +85,9 @@ public ServiceEndpointPolicyDefinition() public IList ServiceResources { get; set; } /// - /// Gets the provisioning state of the service end point policy - /// definition. Possible values are: 'Updating', 'Deleting', and - /// 'Failed'. + /// Gets the provisioning state of the service endpoint policy + /// definition resource. Possible values include: 'Succeeded', + /// 'Updating', 'Deleting', 'Failed' /// [JsonProperty(PropertyName = "properties.provisioningState")] public string ProvisioningState { get; private set; } diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ServiceEndpointPropertiesFormat.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ServiceEndpointPropertiesFormat.cs index f1878ddd53df..acc83f9a1707 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ServiceEndpointPropertiesFormat.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/ServiceEndpointPropertiesFormat.cs @@ -36,7 +36,8 @@ public ServiceEndpointPropertiesFormat() /// The type of the endpoint service. /// A list of locations. /// The provisioning state of the - /// resource. + /// service endpoint resource. Possible values include: 'Succeeded', + /// 'Updating', 'Deleting', 'Failed' public ServiceEndpointPropertiesFormat(string service = default(string), IList locations = default(IList), string provisioningState = default(string)) { Service = service; @@ -63,7 +64,9 @@ public ServiceEndpointPropertiesFormat() public IList Locations { get; set; } /// - /// Gets or sets the provisioning state of the resource. + /// Gets or sets the provisioning state of the service endpoint + /// resource. Possible values include: 'Succeeded', 'Updating', + /// 'Deleting', 'Failed' /// [JsonProperty(PropertyName = "provisioningState")] public string ProvisioningState { get; set; } 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 32dd0848cb59..a518641268f3 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 @@ -51,21 +51,22 @@ public Subnet() /// policies. /// An array of references to private /// endpoints. - /// Gets an array of references to the + /// An array of references to the /// network interface IP configurations using subnet. /// Array of IP configuration /// profiles which reference this subnet. - /// Gets an array of references - /// to the external resources using subnet. - /// Gets an array of references - /// to services injecting into this subnet. - /// Gets an array of references to the - /// delegations on the subnet. + /// An array of references to the + /// external resources using subnet. + /// An array of references to + /// services injecting into this subnet. + /// An array of references to the delegations + /// on the subnet. /// A read-only string identifying the intention /// of use for this subnet based on delegations and other user-defined /// properties. /// The provisioning state of the - /// resource. + /// subnet resource. Possible values include: 'Succeeded', 'Updating', + /// 'Deleting', 'Failed' /// Enable or Disable /// apply network policies on private end point in the subnet. /// Enable or Disable @@ -169,19 +170,22 @@ public Subnet() public IList IpConfigurationProfiles { get; private set; } /// - /// Gets an array of references to the external resources using subnet. + /// Gets or sets an array of references to the external resources using + /// subnet. /// [JsonProperty(PropertyName = "properties.resourceNavigationLinks")] public IList ResourceNavigationLinks { get; set; } /// - /// Gets an array of references to services injecting into this subnet. + /// Gets or sets an array of references to services injecting into this + /// subnet. /// [JsonProperty(PropertyName = "properties.serviceAssociationLinks")] public IList ServiceAssociationLinks { get; set; } /// - /// Gets an array of references to the delegations on the subnet. + /// Gets or sets an array of references to the delegations on the + /// subnet. /// [JsonProperty(PropertyName = "properties.delegations")] public IList Delegations { get; set; } @@ -194,7 +198,9 @@ public Subnet() public string Purpose { get; private set; } /// - /// Gets or sets the provisioning state of the resource. + /// Gets or sets the provisioning state of the subnet resource. + /// Possible values include: 'Succeeded', 'Updating', 'Deleting', + /// 'Failed' /// [JsonProperty(PropertyName = "properties.provisioningState")] public string ProvisioningState { 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 ae35f0a0e42e..9590e338eff8 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 @@ -10,7 +10,6 @@ namespace Microsoft.Azure.Management.Network.Models { - using Microsoft.Rest; using Newtonsoft.Json; using System.Linq; @@ -43,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, string workspaceRegion, string workspaceResourceId, int? trafficAnalyticsInterval = default(int?)) + public TrafficAnalyticsConfigurationProperties(bool enabled, string workspaceId = default(string), string workspaceRegion = default(string), string workspaceResourceId = default(string), int? trafficAnalyticsInterval = default(int?)) { Enabled = enabled; WorkspaceId = workspaceId; @@ -92,23 +91,12 @@ public TrafficAnalyticsConfigurationProperties() /// /// Validate the object. /// - /// + /// /// Thrown if validation fails /// public virtual void Validate() { - if (WorkspaceId == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "WorkspaceId"); - } - if (WorkspaceRegion == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "WorkspaceRegion"); - } - if (WorkspaceResourceId == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "WorkspaceResourceId"); - } + //Nothing to validate } } } diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/TrafficSelectorPolicy.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/TrafficSelectorPolicy.cs new file mode 100644 index 000000000000..1313f6db6f20 --- /dev/null +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/TrafficSelectorPolicy.cs @@ -0,0 +1,81 @@ +// +// 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; + + /// + /// An traffic selector policy for a virtual network gateway connection. + /// + public partial class TrafficSelectorPolicy + { + /// + /// Initializes a new instance of the TrafficSelectorPolicy class. + /// + public TrafficSelectorPolicy() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the TrafficSelectorPolicy class. + /// + /// A collection of local address + /// spaces in CIDR format + /// A collection of remote address + /// spaces in CIDR format + public TrafficSelectorPolicy(IList localAddressRanges, IList remoteAddressRanges) + { + LocalAddressRanges = localAddressRanges; + RemoteAddressRanges = remoteAddressRanges; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets a collection of local address spaces in CIDR format + /// + [JsonProperty(PropertyName = "localAddressRanges")] + public IList LocalAddressRanges { get; set; } + + /// + /// Gets or sets a collection of remote address spaces in CIDR format + /// + [JsonProperty(PropertyName = "remoteAddressRanges")] + public IList RemoteAddressRanges { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (LocalAddressRanges == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "LocalAddressRanges"); + } + if (RemoteAddressRanges == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "RemoteAddressRanges"); + } + } + } +} diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/UnprepareNetworkPoliciesRequest.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/UnprepareNetworkPoliciesRequest.cs new file mode 100644 index 000000000000..74af81b0c4c5 --- /dev/null +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/UnprepareNetworkPoliciesRequest.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; + + /// + /// Details of UnprepareNetworkPolicies for Subnet. + /// + public partial class UnprepareNetworkPoliciesRequest + { + /// + /// Initializes a new instance of the UnprepareNetworkPoliciesRequest + /// class. + /// + public UnprepareNetworkPoliciesRequest() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the UnprepareNetworkPoliciesRequest + /// class. + /// + /// The name of the service for which subnet + /// is being unprepared for. + public UnprepareNetworkPoliciesRequest(string serviceName = default(string)) + { + ServiceName = serviceName; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the name of the service for which subnet is being + /// unprepared for. + /// + [JsonProperty(PropertyName = "serviceName")] + public string ServiceName { get; set; } + + } +} diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/VirtualHub.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/VirtualHub.cs index 4a8d7e669c37..e89ed24917af 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/VirtualHub.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/VirtualHub.cs @@ -54,10 +54,10 @@ public VirtualHub() /// The routeTable associated with this /// virtual hub. /// The provisioning state of the - /// resource. Possible values include: 'Succeeded', 'Updating', - /// 'Deleting', 'Failed' - /// Gets a unique read-only string that changes - /// whenever the resource is updated. + /// virtual hub resource. Possible values include: 'Succeeded', + /// 'Updating', 'Deleting', 'Failed' + /// A unique read-only string that changes whenever + /// the resource is updated. public VirtualHub(string id = default(string), string name = default(string), string type = default(string), string location = default(string), IDictionary tags = default(IDictionary), SubResource virtualWan = default(SubResource), SubResource vpnGateway = default(SubResource), SubResource p2SVpnGateway = default(SubResource), SubResource expressRouteGateway = default(SubResource), IList virtualNetworkConnections = default(IList), string addressPrefix = default(string), VirtualHubRouteTable routeTable = default(VirtualHubRouteTable), string provisioningState = default(string), string etag = default(string)) : base(id, name, type, location, tags) { @@ -122,8 +122,9 @@ public VirtualHub() public VirtualHubRouteTable RouteTable { get; set; } /// - /// Gets or sets the provisioning state of the resource. Possible - /// values include: 'Succeeded', 'Updating', 'Deleting', 'Failed' + /// Gets or sets the provisioning state of the virtual hub resource. + /// Possible values include: 'Succeeded', 'Updating', 'Deleting', + /// 'Failed' /// [JsonProperty(PropertyName = "properties.provisioningState")] public string ProvisioningState { get; set; } diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/VirtualNetwork.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/VirtualNetwork.cs index a7088832da19..d253bbfaeaec 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/VirtualNetwork.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/VirtualNetwork.cs @@ -51,8 +51,8 @@ public VirtualNetwork() /// The resourceGuid property of the Virtual /// Network resource. /// The provisioning state of the - /// PublicIP resource. Possible values are: 'Updating', 'Deleting', and - /// 'Failed'. + /// virtual network resource. Possible values include: 'Succeeded', + /// 'Updating', 'Deleting', 'Failed' /// Indicates if DDoS protection is /// enabled for all the protected resources in the virtual network. It /// requires a DDoS protection plan associated with the @@ -61,8 +61,8 @@ public VirtualNetwork() /// enabled for all the subnets in the virtual network. /// The DDoS protection plan /// associated with the virtual network. - /// Gets a unique read-only string that changes - /// whenever the resource is updated. + /// A unique read-only string that changes whenever + /// the resource is updated. public VirtualNetwork(string id = default(string), string name = default(string), string type = default(string), string location = default(string), IDictionary tags = default(IDictionary), AddressSpace addressSpace = default(AddressSpace), DhcpOptions dhcpOptions = default(DhcpOptions), IList subnets = default(IList), IList virtualNetworkPeerings = default(IList), string resourceGuid = default(string), string provisioningState = default(string), bool? enableDdosProtection = default(bool?), bool? enableVmProtection = default(bool?), SubResource ddosProtectionPlan = default(SubResource), string etag = default(string)) : base(id, name, type, location, tags) { @@ -118,8 +118,9 @@ public VirtualNetwork() public string ResourceGuid { get; set; } /// - /// Gets or sets the provisioning state of the PublicIP resource. - /// Possible values are: 'Updating', 'Deleting', and 'Failed'. + /// Gets or sets the provisioning state of the virtual network + /// resource. Possible values include: 'Succeeded', 'Updating', + /// 'Deleting', 'Failed' /// [JsonProperty(PropertyName = "properties.provisioningState")] public string ProvisioningState { get; set; } @@ -147,8 +148,8 @@ public VirtualNetwork() public SubResource DdosProtectionPlan { get; set; } /// - /// Gets a unique read-only string that changes whenever the resource - /// is updated. + /// Gets or sets a unique read-only string that changes whenever the + /// resource is updated. /// [JsonProperty(PropertyName = "etag")] public string Etag { get; set; } 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 dc9a918e5fd7..8aa8fa20ca48 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 @@ -45,6 +45,10 @@ public VirtualNetworkGateway() /// Possible values include: 'Vpn', 'ExpressRoute' /// The type of this virtual network gateway. /// Possible values include: 'PolicyBased', 'RouteBased' + /// The generation for this + /// VirtualNetworkGateway. Must be None if gatewayType is not VPN. + /// Possible values include: 'None', 'Generation1', + /// 'Generation2' /// Whether BGP is enabled for this virtual /// network gateway or not. /// ActiveActive flag. @@ -64,18 +68,19 @@ public VirtualNetworkGateway() /// resource which represents the custom routes address space specified /// by the customer for virtual network gateway and VpnClient. /// The resource GUID property of the - /// VirtualNetworkGateway resource. + /// virtual network gateway resource. /// The provisioning state of the - /// VirtualNetworkGateway resource. Possible values are: 'Updating', - /// 'Deleting', and 'Failed'. - /// Gets a unique read-only string that changes - /// whenever the resource is updated. - public VirtualNetworkGateway(string id = default(string), string name = default(string), string type = default(string), string location = default(string), IDictionary tags = default(IDictionary), IList ipConfigurations = default(IList), string gatewayType = default(string), string vpnType = default(string), bool? enableBgp = default(bool?), bool? activeActive = default(bool?), SubResource gatewayDefaultSite = default(SubResource), VirtualNetworkGatewaySku sku = default(VirtualNetworkGatewaySku), VpnClientConfiguration vpnClientConfiguration = default(VpnClientConfiguration), BgpSettings bgpSettings = default(BgpSettings), AddressSpace customRoutes = default(AddressSpace), string resourceGuid = default(string), string provisioningState = default(string), string etag = default(string)) + /// virtual network gateway resource. Possible values include: + /// 'Succeeded', 'Updating', 'Deleting', 'Failed' + /// A unique read-only string that changes whenever + /// the resource is updated. + public VirtualNetworkGateway(string id = default(string), string name = default(string), string type = default(string), string location = default(string), IDictionary tags = default(IDictionary), IList ipConfigurations = default(IList), string gatewayType = default(string), string vpnType = default(string), string vpnGatewayGeneration = default(string), bool? enableBgp = default(bool?), bool? activeActive = default(bool?), SubResource gatewayDefaultSite = default(SubResource), VirtualNetworkGatewaySku sku = default(VirtualNetworkGatewaySku), VpnClientConfiguration vpnClientConfiguration = default(VpnClientConfiguration), BgpSettings bgpSettings = default(BgpSettings), AddressSpace customRoutes = default(AddressSpace), string resourceGuid = default(string), string provisioningState = default(string), string etag = default(string)) : base(id, name, type, location, tags) { IpConfigurations = ipConfigurations; GatewayType = gatewayType; VpnType = vpnType; + VpnGatewayGeneration = vpnGatewayGeneration; EnableBgp = enableBgp; ActiveActive = activeActive; GatewayDefaultSite = gatewayDefaultSite; @@ -114,6 +119,14 @@ public VirtualNetworkGateway() [JsonProperty(PropertyName = "properties.vpnType")] public string VpnType { get; set; } + /// + /// Gets or sets the generation for this VirtualNetworkGateway. Must be + /// None if gatewayType is not VPN. Possible values include: 'None', + /// 'Generation1', 'Generation2' + /// + [JsonProperty(PropertyName = "properties.vpnGatewayGeneration")] + public string VpnGatewayGeneration { get; set; } + /// /// Gets or sets whether BGP is enabled for this virtual network /// gateway or not. @@ -164,22 +177,23 @@ public VirtualNetworkGateway() public AddressSpace CustomRoutes { get; set; } /// - /// Gets or sets the resource GUID property of the - /// VirtualNetworkGateway resource. + /// Gets or sets the resource GUID property of the virtual network + /// gateway resource. /// [JsonProperty(PropertyName = "properties.resourceGuid")] public string ResourceGuid { get; set; } /// - /// Gets the provisioning state of the VirtualNetworkGateway resource. - /// Possible values are: 'Updating', 'Deleting', and 'Failed'. + /// Gets the provisioning state of the virtual network gateway + /// resource. Possible values include: 'Succeeded', 'Updating', + /// 'Deleting', 'Failed' /// [JsonProperty(PropertyName = "properties.provisioningState")] public string ProvisioningState { get; private set; } /// - /// Gets a unique read-only string that changes whenever the resource - /// is updated. + /// Gets or sets a unique read-only string that changes whenever the + /// resource is updated. /// [JsonProperty(PropertyName = "etag")] public string Etag { get; set; } diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/VirtualNetworkGatewayConnection.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/VirtualNetworkGatewayConnection.cs index a77ac2c62397..5041292a769f 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/VirtualNetworkGatewayConnection.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/VirtualNetworkGatewayConnection.cs @@ -70,16 +70,18 @@ public VirtualNetworkGatewayConnection() /// traffic selectors. /// The IPSec Policies to be considered by /// this connection. + /// The Traffic Selector Policies + /// to be considered by this connection. /// The resource GUID property of the - /// VirtualNetworkGatewayConnection resource. + /// virtual network gateway connection resource. /// The provisioning state of the - /// VirtualNetworkGatewayConnection resource. Possible values are: - /// 'Updating', 'Deleting', and 'Failed'. + /// virtual network gateway connection resource. Possible values + /// include: 'Succeeded', 'Updating', 'Deleting', 'Failed' /// Bypass ExpressRoute Gateway /// for data forwarding. - /// Gets a unique read-only string that changes - /// whenever the resource is updated. - public VirtualNetworkGatewayConnection(VirtualNetworkGateway virtualNetworkGateway1, string connectionType, string id = default(string), string name = default(string), string type = default(string), string location = default(string), IDictionary tags = default(IDictionary), string authorizationKey = default(string), VirtualNetworkGateway virtualNetworkGateway2 = default(VirtualNetworkGateway), LocalNetworkGateway localNetworkGateway2 = default(LocalNetworkGateway), string connectionProtocol = default(string), int? routingWeight = default(int?), string sharedKey = default(string), string connectionStatus = default(string), IList tunnelConnectionStatus = default(IList), long? egressBytesTransferred = default(long?), long? ingressBytesTransferred = default(long?), SubResource peer = default(SubResource), bool? enableBgp = default(bool?), bool? usePolicyBasedTrafficSelectors = default(bool?), IList ipsecPolicies = default(IList), string resourceGuid = default(string), string provisioningState = default(string), bool? expressRouteGatewayBypass = default(bool?), string etag = default(string)) + /// A unique read-only string that changes whenever + /// the resource is updated. + public VirtualNetworkGatewayConnection(VirtualNetworkGateway virtualNetworkGateway1, string connectionType, string id = default(string), string name = default(string), string type = default(string), string location = default(string), IDictionary tags = default(IDictionary), string authorizationKey = default(string), VirtualNetworkGateway virtualNetworkGateway2 = default(VirtualNetworkGateway), LocalNetworkGateway localNetworkGateway2 = default(LocalNetworkGateway), string connectionProtocol = default(string), int? routingWeight = default(int?), string sharedKey = default(string), string connectionStatus = default(string), IList tunnelConnectionStatus = default(IList), long? egressBytesTransferred = default(long?), long? ingressBytesTransferred = default(long?), SubResource peer = default(SubResource), bool? enableBgp = default(bool?), bool? usePolicyBasedTrafficSelectors = default(bool?), IList ipsecPolicies = default(IList), IList trafficSelectorPolicies = default(IList), string resourceGuid = default(string), string provisioningState = default(string), bool? expressRouteGatewayBypass = default(bool?), string etag = default(string)) : base(id, name, type, location, tags) { AuthorizationKey = authorizationKey; @@ -98,6 +100,7 @@ public VirtualNetworkGatewayConnection() EnableBgp = enableBgp; UsePolicyBasedTrafficSelectors = usePolicyBasedTrafficSelectors; IpsecPolicies = ipsecPolicies; + TrafficSelectorPolicies = trafficSelectorPolicies; ResourceGuid = resourceGuid; ProvisioningState = provisioningState; ExpressRouteGatewayBypass = expressRouteGatewayBypass; @@ -211,16 +214,23 @@ public VirtualNetworkGatewayConnection() public IList IpsecPolicies { get; set; } /// - /// Gets or sets the resource GUID property of the - /// VirtualNetworkGatewayConnection resource. + /// Gets or sets the Traffic Selector Policies to be considered by this + /// connection. + /// + [JsonProperty(PropertyName = "properties.trafficSelectorPolicies")] + public IList TrafficSelectorPolicies { get; set; } + + /// + /// Gets or sets the resource GUID property of the virtual network + /// gateway connection resource. /// [JsonProperty(PropertyName = "properties.resourceGuid")] public string ResourceGuid { get; set; } /// - /// Gets the provisioning state of the VirtualNetworkGatewayConnection - /// resource. Possible values are: 'Updating', 'Deleting', and - /// 'Failed'. + /// Gets the provisioning state of the virtual network gateway + /// connection resource. Possible values include: 'Succeeded', + /// 'Updating', 'Deleting', 'Failed' /// [JsonProperty(PropertyName = "properties.provisioningState")] public string ProvisioningState { get; private set; } @@ -232,8 +242,8 @@ public VirtualNetworkGatewayConnection() public bool? ExpressRouteGatewayBypass { get; set; } /// - /// Gets a unique read-only string that changes whenever the resource - /// is updated. + /// Gets or sets a unique read-only string that changes whenever the + /// resource is updated. /// [JsonProperty(PropertyName = "etag")] public string Etag { get; set; } @@ -264,6 +274,16 @@ public virtual void Validate() } } } + if (TrafficSelectorPolicies != null) + { + foreach (var element1 in TrafficSelectorPolicies) + { + if (element1 != null) + { + element1.Validate(); + } + } + } } } } diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/VirtualNetworkGatewayConnectionListEntity.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/VirtualNetworkGatewayConnectionListEntity.cs index 4ce99bbcda9e..f606d6b162b3 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/VirtualNetworkGatewayConnectionListEntity.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/VirtualNetworkGatewayConnectionListEntity.cs @@ -70,16 +70,18 @@ public VirtualNetworkGatewayConnectionListEntity() /// traffic selectors. /// The IPSec Policies to be considered by /// this connection. + /// The Traffic Selector Policies + /// to be considered by this connection. /// The resource GUID property of the - /// VirtualNetworkGatewayConnection resource. + /// virtual network gateway connection resource. /// The provisioning state of the - /// VirtualNetworkGatewayConnection resource. Possible values are: - /// 'Updating', 'Deleting', and 'Failed'. + /// virtual network gateway connection resource. Possible values + /// include: 'Succeeded', 'Updating', 'Deleting', 'Failed' /// Bypass ExpressRoute Gateway /// for data forwarding. - /// Gets a unique read-only string that changes - /// whenever the resource is updated. - public VirtualNetworkGatewayConnectionListEntity(VirtualNetworkConnectionGatewayReference virtualNetworkGateway1, string connectionType, string id = default(string), string name = default(string), string type = default(string), string location = default(string), IDictionary tags = default(IDictionary), string authorizationKey = default(string), VirtualNetworkConnectionGatewayReference virtualNetworkGateway2 = default(VirtualNetworkConnectionGatewayReference), VirtualNetworkConnectionGatewayReference localNetworkGateway2 = default(VirtualNetworkConnectionGatewayReference), string connectionProtocol = default(string), int? routingWeight = default(int?), string sharedKey = default(string), string connectionStatus = default(string), IList tunnelConnectionStatus = default(IList), long? egressBytesTransferred = default(long?), long? ingressBytesTransferred = default(long?), SubResource peer = default(SubResource), bool? enableBgp = default(bool?), bool? usePolicyBasedTrafficSelectors = default(bool?), IList ipsecPolicies = default(IList), string resourceGuid = default(string), string provisioningState = default(string), bool? expressRouteGatewayBypass = default(bool?), string etag = default(string)) + /// A unique read-only string that changes whenever + /// the resource is updated. + public VirtualNetworkGatewayConnectionListEntity(VirtualNetworkConnectionGatewayReference virtualNetworkGateway1, string connectionType, string id = default(string), string name = default(string), string type = default(string), string location = default(string), IDictionary tags = default(IDictionary), string authorizationKey = default(string), VirtualNetworkConnectionGatewayReference virtualNetworkGateway2 = default(VirtualNetworkConnectionGatewayReference), VirtualNetworkConnectionGatewayReference localNetworkGateway2 = default(VirtualNetworkConnectionGatewayReference), string connectionProtocol = default(string), int? routingWeight = default(int?), string sharedKey = default(string), string connectionStatus = default(string), IList tunnelConnectionStatus = default(IList), long? egressBytesTransferred = default(long?), long? ingressBytesTransferred = default(long?), SubResource peer = default(SubResource), bool? enableBgp = default(bool?), bool? usePolicyBasedTrafficSelectors = default(bool?), IList ipsecPolicies = default(IList), IList trafficSelectorPolicies = default(IList), string resourceGuid = default(string), string provisioningState = default(string), bool? expressRouteGatewayBypass = default(bool?), string etag = default(string)) : base(id, name, type, location, tags) { AuthorizationKey = authorizationKey; @@ -98,6 +100,7 @@ public VirtualNetworkGatewayConnectionListEntity() EnableBgp = enableBgp; UsePolicyBasedTrafficSelectors = usePolicyBasedTrafficSelectors; IpsecPolicies = ipsecPolicies; + TrafficSelectorPolicies = trafficSelectorPolicies; ResourceGuid = resourceGuid; ProvisioningState = provisioningState; ExpressRouteGatewayBypass = expressRouteGatewayBypass; @@ -211,16 +214,23 @@ public VirtualNetworkGatewayConnectionListEntity() public IList IpsecPolicies { get; set; } /// - /// Gets or sets the resource GUID property of the - /// VirtualNetworkGatewayConnection resource. + /// Gets or sets the Traffic Selector Policies to be considered by this + /// connection. + /// + [JsonProperty(PropertyName = "properties.trafficSelectorPolicies")] + public IList TrafficSelectorPolicies { get; set; } + + /// + /// Gets or sets the resource GUID property of the virtual network + /// gateway connection resource. /// [JsonProperty(PropertyName = "properties.resourceGuid")] public string ResourceGuid { get; set; } /// - /// Gets the provisioning state of the VirtualNetworkGatewayConnection - /// resource. Possible values are: 'Updating', 'Deleting', and - /// 'Failed'. + /// Gets the provisioning state of the virtual network gateway + /// connection resource. Possible values include: 'Succeeded', + /// 'Updating', 'Deleting', 'Failed' /// [JsonProperty(PropertyName = "properties.provisioningState")] public string ProvisioningState { get; private set; } @@ -232,8 +242,8 @@ public VirtualNetworkGatewayConnectionListEntity() public bool? ExpressRouteGatewayBypass { get; set; } /// - /// Gets a unique read-only string that changes whenever the resource - /// is updated. + /// Gets or sets a unique read-only string that changes whenever the + /// resource is updated. /// [JsonProperty(PropertyName = "etag")] public string Etag { get; set; } @@ -276,6 +286,16 @@ public virtual void Validate() } } } + if (TrafficSelectorPolicies != null) + { + foreach (var element1 in TrafficSelectorPolicies) + { + if (element1 != null) + { + element1.Validate(); + } + } + } } } } 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 70e00df18273..c8160db211ba 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 @@ -42,8 +42,8 @@ public VirtualNetworkGatewayIPConfiguration() /// The reference of the public IP /// resource. /// The provisioning state of the - /// public IP resource. Possible values are: 'Updating', 'Deleting', - /// and 'Failed'. + /// virtual network gateway IP configuration resource. Possible values + /// include: 'Succeeded', 'Updating', 'Deleting', 'Failed' /// The name of the resource that is unique within a /// resource group. This name can be used to access the /// resource. @@ -86,8 +86,9 @@ public VirtualNetworkGatewayIPConfiguration() public SubResource PublicIPAddress { get; set; } /// - /// Gets the provisioning state of the public IP resource. Possible - /// values are: 'Updating', 'Deleting', and 'Failed'. + /// Gets the provisioning state of the virtual network gateway IP + /// configuration resource. Possible values include: 'Succeeded', + /// 'Updating', 'Deleting', 'Failed' /// [JsonProperty(PropertyName = "properties.provisioningState")] public string ProvisioningState { get; private set; } diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/VirtualNetworkGatewaySku.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/VirtualNetworkGatewaySku.cs index 0cad0a73f04b..cf19a7859fc5 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/VirtualNetworkGatewaySku.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/VirtualNetworkGatewaySku.cs @@ -31,12 +31,14 @@ public VirtualNetworkGatewaySku() /// /// Gateway SKU name. Possible values include: /// 'Basic', 'HighPerformance', 'Standard', 'UltraPerformance', - /// 'VpnGw1', 'VpnGw2', 'VpnGw3', 'VpnGw1AZ', 'VpnGw2AZ', 'VpnGw3AZ', - /// 'ErGw1AZ', 'ErGw2AZ', 'ErGw3AZ' + /// 'VpnGw1', 'VpnGw2', 'VpnGw3', 'VpnGw4', 'VpnGw5', 'VpnGw1AZ', + /// 'VpnGw2AZ', 'VpnGw3AZ', 'VpnGw4AZ', 'VpnGw5AZ', 'ErGw1AZ', + /// 'ErGw2AZ', 'ErGw3AZ' /// Gateway SKU tier. Possible values include: /// 'Basic', 'HighPerformance', 'Standard', 'UltraPerformance', - /// 'VpnGw1', 'VpnGw2', 'VpnGw3', 'VpnGw1AZ', 'VpnGw2AZ', 'VpnGw3AZ', - /// 'ErGw1AZ', 'ErGw2AZ', 'ErGw3AZ' + /// 'VpnGw1', 'VpnGw2', 'VpnGw3', 'VpnGw4', 'VpnGw5', 'VpnGw1AZ', + /// 'VpnGw2AZ', 'VpnGw3AZ', 'VpnGw4AZ', 'VpnGw5AZ', 'ErGw1AZ', + /// 'ErGw2AZ', 'ErGw3AZ' /// The capacity. public VirtualNetworkGatewaySku(string name = default(string), string tier = default(string), int? capacity = default(int?)) { @@ -54,8 +56,8 @@ public VirtualNetworkGatewaySku() /// /// Gets or sets gateway SKU name. Possible values include: 'Basic', /// 'HighPerformance', 'Standard', 'UltraPerformance', 'VpnGw1', - /// 'VpnGw2', 'VpnGw3', 'VpnGw1AZ', 'VpnGw2AZ', 'VpnGw3AZ', 'ErGw1AZ', - /// 'ErGw2AZ', 'ErGw3AZ' + /// 'VpnGw2', 'VpnGw3', 'VpnGw4', 'VpnGw5', 'VpnGw1AZ', 'VpnGw2AZ', + /// 'VpnGw3AZ', 'VpnGw4AZ', 'VpnGw5AZ', 'ErGw1AZ', 'ErGw2AZ', 'ErGw3AZ' /// [JsonProperty(PropertyName = "name")] public string Name { get; set; } @@ -63,8 +65,8 @@ public VirtualNetworkGatewaySku() /// /// Gets or sets gateway SKU tier. Possible values include: 'Basic', /// 'HighPerformance', 'Standard', 'UltraPerformance', 'VpnGw1', - /// 'VpnGw2', 'VpnGw3', 'VpnGw1AZ', 'VpnGw2AZ', 'VpnGw3AZ', 'ErGw1AZ', - /// 'ErGw2AZ', 'ErGw3AZ' + /// 'VpnGw2', 'VpnGw3', 'VpnGw4', 'VpnGw5', 'VpnGw1AZ', 'VpnGw2AZ', + /// 'VpnGw3AZ', 'VpnGw4AZ', 'VpnGw5AZ', 'ErGw1AZ', 'ErGw2AZ', 'ErGw3AZ' /// [JsonProperty(PropertyName = "tier")] public string Tier { get; set; } diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/VirtualNetworkGatewaySkuName.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/VirtualNetworkGatewaySkuName.cs index 842126b7552d..18bf9088ee70 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/VirtualNetworkGatewaySkuName.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/VirtualNetworkGatewaySkuName.cs @@ -23,9 +23,13 @@ public static class VirtualNetworkGatewaySkuName public const string VpnGw1 = "VpnGw1"; public const string VpnGw2 = "VpnGw2"; public const string VpnGw3 = "VpnGw3"; + public const string VpnGw4 = "VpnGw4"; + public const string VpnGw5 = "VpnGw5"; public const string VpnGw1AZ = "VpnGw1AZ"; public const string VpnGw2AZ = "VpnGw2AZ"; public const string VpnGw3AZ = "VpnGw3AZ"; + public const string VpnGw4AZ = "VpnGw4AZ"; + public const string VpnGw5AZ = "VpnGw5AZ"; public const string ErGw1AZ = "ErGw1AZ"; public const string ErGw2AZ = "ErGw2AZ"; public const string ErGw3AZ = "ErGw3AZ"; diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/VirtualNetworkGatewaySkuTier.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/VirtualNetworkGatewaySkuTier.cs index ede5f6b7aaf7..9d353fbe6d04 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/VirtualNetworkGatewaySkuTier.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/VirtualNetworkGatewaySkuTier.cs @@ -23,9 +23,13 @@ public static class VirtualNetworkGatewaySkuTier public const string VpnGw1 = "VpnGw1"; public const string VpnGw2 = "VpnGw2"; public const string VpnGw3 = "VpnGw3"; + public const string VpnGw4 = "VpnGw4"; + public const string VpnGw5 = "VpnGw5"; public const string VpnGw1AZ = "VpnGw1AZ"; public const string VpnGw2AZ = "VpnGw2AZ"; public const string VpnGw3AZ = "VpnGw3AZ"; + public const string VpnGw4AZ = "VpnGw4AZ"; + public const string VpnGw5AZ = "VpnGw5AZ"; public const string ErGw1AZ = "ErGw1AZ"; public const string ErGw2AZ = "ErGw2AZ"; public const string ErGw3AZ = "ErGw3AZ"; 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 bf6d704e3252..f5bd102f02c0 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/VirtualNetworkPeering.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/VirtualNetworkPeering.cs @@ -58,7 +58,8 @@ public VirtualNetworkPeering() /// peering. Possible values include: 'Initiated', 'Connected', /// 'Disconnected' /// The provisioning state of the - /// resource. + /// virtual network peering resource. Possible values include: + /// 'Succeeded', 'Updating', 'Deleting', 'Failed' /// The name of the resource that is unique within a /// resource group. This name can be used to access the /// resource. @@ -142,7 +143,9 @@ public VirtualNetworkPeering() public string PeeringState { get; set; } /// - /// Gets or sets the provisioning state of the resource. + /// Gets or sets the provisioning state of the virtual network peering + /// resource. Possible values include: 'Succeeded', 'Updating', + /// 'Deleting', 'Failed' /// [JsonProperty(PropertyName = "properties.provisioningState")] public string ProvisioningState { get; set; } diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/VirtualNetworkTap.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/VirtualNetworkTap.cs index 8173ce4e9398..51ad5de4a52d 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/VirtualNetworkTap.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/VirtualNetworkTap.cs @@ -42,11 +42,11 @@ public VirtualNetworkTap() /// Specifies the list /// of resource IDs for the network interface IP configuration that /// needs to be tapped. - /// The resourceGuid property of the virtual - /// network tap. + /// The resource GUID property of the + /// virtual network tap resource. /// The provisioning state of the - /// virtual network tap. Possible values are: 'Updating', 'Deleting', - /// and 'Failed'. + /// virtual network tap resource. Possible values include: 'Succeeded', + /// 'Updating', 'Deleting', 'Failed' /// The /// reference to the private IP Address of the collector nic that will /// receive the tap. @@ -55,8 +55,8 @@ public VirtualNetworkTap() /// that will receive the tap. /// The VXLAN destination port that will /// receive the tapped traffic. - /// Gets a unique read-only string that changes - /// whenever the resource is updated. + /// A unique read-only string that changes whenever + /// the resource is updated. public VirtualNetworkTap(string id = default(string), string name = default(string), string type = default(string), string location = default(string), IDictionary tags = default(IDictionary), IList networkInterfaceTapConfigurations = default(IList), string resourceGuid = default(string), string provisioningState = default(string), NetworkInterfaceIPConfiguration destinationNetworkInterfaceIPConfiguration = default(NetworkInterfaceIPConfiguration), FrontendIPConfiguration destinationLoadBalancerFrontEndIPConfiguration = default(FrontendIPConfiguration), int? destinationPort = default(int?), string etag = default(string)) : base(id, name, type, location, tags) { @@ -83,14 +83,16 @@ public VirtualNetworkTap() public IList NetworkInterfaceTapConfigurations { get; private set; } /// - /// Gets the resourceGuid property of the virtual network tap. + /// Gets the resource GUID property of the virtual network tap + /// resource. /// [JsonProperty(PropertyName = "properties.resourceGuid")] public string ResourceGuid { get; private set; } /// - /// Gets the provisioning state of the virtual network tap. Possible - /// values are: 'Updating', 'Deleting', and 'Failed'. + /// Gets the provisioning state of the virtual network tap resource. + /// Possible values include: 'Succeeded', 'Updating', 'Deleting', + /// 'Failed' /// [JsonProperty(PropertyName = "properties.provisioningState")] public string ProvisioningState { get; private set; } @@ -117,8 +119,8 @@ public VirtualNetworkTap() public int? DestinationPort { get; set; } /// - /// Gets a unique read-only string that changes whenever the resource - /// is updated. + /// Gets or sets a unique read-only string that changes whenever the + /// resource is updated. /// [JsonProperty(PropertyName = "etag")] public string Etag { get; set; } diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/VirtualRouter.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/VirtualRouter.cs new file mode 100644 index 000000000000..a66c949827a9 --- /dev/null +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/VirtualRouter.cs @@ -0,0 +1,135 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Network.Models +{ + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// VirtualRouter Resource. + /// + [Rest.Serialization.JsonTransformation] + public partial class VirtualRouter : Resource + { + /// + /// Initializes a new instance of the VirtualRouter class. + /// + public VirtualRouter() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the VirtualRouter class. + /// + /// Resource ID. + /// Resource name. + /// Resource type. + /// Resource location. + /// Resource tags. + /// VirtualRouter ASN. + /// VirtualRouter IPs + /// The Subnet on which VirtualRouter is + /// hosted. + /// The Gateway on which VirtualRouter is + /// hosted. + /// List of references to + /// VirtualRouterPeerings + /// The provisioning state of the + /// resource. Possible values include: 'Succeeded', 'Updating', + /// 'Deleting', 'Failed' + /// Gets a unique read-only string that changes + /// whenever the resource is updated. + public VirtualRouter(string id = default(string), string name = default(string), string type = default(string), string location = default(string), IDictionary tags = default(IDictionary), long? virtualRouterAsn = default(long?), IList virtualRouterIps = default(IList), SubResource hostedSubnet = default(SubResource), SubResource hostedGateway = default(SubResource), IList peerings = default(IList), string provisioningState = default(string), string etag = default(string)) + : base(id, name, type, location, tags) + { + VirtualRouterAsn = virtualRouterAsn; + VirtualRouterIps = virtualRouterIps; + HostedSubnet = hostedSubnet; + HostedGateway = hostedGateway; + Peerings = peerings; + ProvisioningState = provisioningState; + Etag = etag; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets virtualRouter ASN. + /// + [JsonProperty(PropertyName = "properties.virtualRouterAsn")] + public long? VirtualRouterAsn { get; set; } + + /// + /// Gets or sets virtualRouter IPs + /// + [JsonProperty(PropertyName = "properties.virtualRouterIps")] + public IList VirtualRouterIps { get; set; } + + /// + /// Gets or sets the Subnet on which VirtualRouter is hosted. + /// + [JsonProperty(PropertyName = "properties.hostedSubnet")] + public SubResource HostedSubnet { get; set; } + + /// + /// Gets or sets the Gateway on which VirtualRouter is hosted. + /// + [JsonProperty(PropertyName = "properties.hostedGateway")] + public SubResource HostedGateway { get; set; } + + /// + /// Gets list of references to VirtualRouterPeerings + /// + [JsonProperty(PropertyName = "properties.peerings")] + public IList Peerings { get; private set; } + + /// + /// Gets the provisioning state of the resource. Possible values + /// include: 'Succeeded', 'Updating', 'Deleting', 'Failed' + /// + [JsonProperty(PropertyName = "properties.provisioningState")] + public string ProvisioningState { get; private set; } + + /// + /// Gets a unique read-only string that changes whenever the resource + /// is updated. + /// + [JsonProperty(PropertyName = "etag")] + public string Etag { get; private set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (VirtualRouterAsn > 4294967295) + { + throw new ValidationException(ValidationRules.InclusiveMaximum, "VirtualRouterAsn", 4294967295); + } + if (VirtualRouterAsn < 1) + { + throw new ValidationException(ValidationRules.InclusiveMinimum, "VirtualRouterAsn", 1); + } + } + } +} diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/VirtualRouterPeering.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/VirtualRouterPeering.cs new file mode 100644 index 000000000000..171c64bf06f9 --- /dev/null +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/VirtualRouterPeering.cs @@ -0,0 +1,121 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Network.Models +{ + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + using Newtonsoft.Json; + using System.Linq; + + /// + /// Virtual Router Peering resource + /// + [Rest.Serialization.JsonTransformation] + public partial class VirtualRouterPeering : SubResource + { + /// + /// Initializes a new instance of the VirtualRouterPeering class. + /// + public VirtualRouterPeering() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the VirtualRouterPeering class. + /// + /// Resource ID. + /// Peer ASN. + /// Peer IP. + /// The provisioning state of the + /// resource. Possible values include: 'Succeeded', 'Updating', + /// 'Deleting', 'Failed' + /// Gets name of the peering unique to + /// VirtualRouter. This name can be used to access the + /// resource. + /// Gets a unique read-only string that changes + /// whenever the resource is updated. + /// Peering type. + public VirtualRouterPeering(string id = default(string), long? peerAsn = default(long?), string peerIp = default(string), string provisioningState = default(string), string name = default(string), string etag = default(string), string type = default(string)) + : base(id) + { + PeerAsn = peerAsn; + PeerIp = peerIp; + ProvisioningState = provisioningState; + Name = name; + Etag = etag; + Type = type; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets peer ASN. + /// + [JsonProperty(PropertyName = "properties.peerAsn")] + public long? PeerAsn { get; set; } + + /// + /// Gets or sets peer IP. + /// + [JsonProperty(PropertyName = "properties.peerIp")] + public string PeerIp { get; set; } + + /// + /// Gets the provisioning state of the resource. Possible values + /// include: 'Succeeded', 'Updating', 'Deleting', 'Failed' + /// + [JsonProperty(PropertyName = "properties.provisioningState")] + public string ProvisioningState { get; private set; } + + /// + /// Gets name of the peering unique to VirtualRouter. This name can be + /// used to access the resource. + /// + [JsonProperty(PropertyName = "name")] + public string Name { get; set; } + + /// + /// Gets a unique read-only string that changes whenever the resource + /// is updated. + /// + [JsonProperty(PropertyName = "etag")] + public string Etag { get; private set; } + + /// + /// Gets peering type. + /// + [JsonProperty(PropertyName = "type")] + public string Type { get; private set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (PeerAsn > 4294967295) + { + throw new ValidationException(ValidationRules.InclusiveMaximum, "PeerAsn", 4294967295); + } + if (PeerAsn < 1) + { + throw new ValidationException(ValidationRules.InclusiveMinimum, "PeerAsn", 1); + } + } + } +} diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/VirtualWAN.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/VirtualWAN.cs index f741e3789638..0fcaa88ba840 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/VirtualWAN.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/VirtualWAN.cs @@ -56,10 +56,10 @@ public VirtualWAN() /// List of all /// P2SVpnServerConfigurations associated with the virtual wan. /// The provisioning state of the - /// resource. Possible values include: 'Succeeded', 'Updating', - /// 'Deleting', 'Failed' - /// Gets a unique read-only string that changes - /// whenever the resource is updated. + /// virtual WAN resource. Possible values include: 'Succeeded', + /// 'Updating', 'Deleting', 'Failed' + /// A unique read-only string that changes whenever + /// the resource is updated. public VirtualWAN(string id = default(string), string name = default(string), string type = default(string), string location = default(string), IDictionary tags = default(IDictionary), bool? disableVpnEncryption = default(bool?), IList virtualHubs = default(IList), IList vpnSites = default(IList), string securityProviderName = default(string), bool? allowBranchToBranchTraffic = default(bool?), bool? allowVnetToVnetTraffic = default(bool?), string office365LocalBreakoutCategory = default(string), IList p2SVpnServerConfigurations = default(IList), string provisioningState = default(string), string etag = default(string)) : base(id, name, type, location, tags) { @@ -132,8 +132,9 @@ public VirtualWAN() public IList P2SVpnServerConfigurations { get; set; } /// - /// Gets or sets the provisioning state of the resource. Possible - /// values include: 'Succeeded', 'Updating', 'Deleting', 'Failed' + /// Gets or sets the provisioning state of the virtual WAN resource. + /// Possible values include: 'Succeeded', 'Updating', 'Deleting', + /// 'Failed' /// [JsonProperty(PropertyName = "properties.provisioningState")] public string ProvisioningState { get; set; } diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/VpnClientRevokedCertificate.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/VpnClientRevokedCertificate.cs index c3660c30972c..8be3cb6890eb 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/VpnClientRevokedCertificate.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/VpnClientRevokedCertificate.cs @@ -38,8 +38,8 @@ public VpnClientRevokedCertificate() /// The revoked VPN client certificate /// thumbprint. /// The provisioning state of the VPN - /// client revoked certificate resource. Possible values are: - /// 'Updating', 'Deleting', and 'Failed'. + /// client revoked certificate resource. Possible values include: + /// 'Succeeded', 'Updating', 'Deleting', 'Failed' /// The name of the resource that is unique within a /// resource group. This name can be used to access the /// resource. @@ -68,8 +68,8 @@ public VpnClientRevokedCertificate() /// /// Gets the provisioning state of the VPN client revoked certificate - /// resource. Possible values are: 'Updating', 'Deleting', and - /// 'Failed'. + /// resource. Possible values include: 'Succeeded', 'Updating', + /// 'Deleting', 'Failed' /// [JsonProperty(PropertyName = "properties.provisioningState")] public string ProvisioningState { get; private set; } diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/VpnClientRootCertificate.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/VpnClientRootCertificate.cs index 9951ad9a9e3c..a58a6277742b 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/VpnClientRootCertificate.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/VpnClientRootCertificate.cs @@ -35,8 +35,8 @@ public VpnClientRootCertificate() /// The certificate public data. /// Resource ID. /// The provisioning state of the VPN - /// client root certificate resource. Possible values are: 'Updating', - /// 'Deleting', and 'Failed'. + /// client root certificate resource. Possible values include: + /// 'Succeeded', 'Updating', 'Deleting', 'Failed' /// The name of the resource that is unique within a /// resource group. This name can be used to access the /// resource. @@ -65,8 +65,8 @@ public VpnClientRootCertificate() /// /// Gets the provisioning state of the VPN client root certificate - /// resource. Possible values are: 'Updating', 'Deleting', and - /// 'Failed'. + /// resource. Possible values include: 'Succeeded', 'Updating', + /// 'Deleting', 'Failed' /// [JsonProperty(PropertyName = "properties.provisioningState")] public string ProvisioningState { get; private set; } diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/VpnConnection.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/VpnConnection.cs index 54d6010d6cf2..fee7e82faac9 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/VpnConnection.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/VpnConnection.cs @@ -61,16 +61,16 @@ public VpnConnection() /// security. /// Use local azure ip to initiate /// connection. - /// The provisioning state of the - /// resource. Possible values include: 'Succeeded', 'Updating', - /// 'Deleting', 'Failed' + /// The provisioning state of the VPN + /// connection resource. Possible values include: 'Succeeded', + /// 'Updating', 'Deleting', 'Failed' /// List of all vpn site link /// connections to the gateway. /// The name of the resource that is unique within a /// resource group. This name can be used to access the /// resource. - /// Gets a unique read-only string that changes - /// whenever the resource is updated. + /// A unique read-only string that changes whenever + /// the resource is updated. public VpnConnection(string id = default(string), SubResource remoteVpnSite = default(SubResource), int? routingWeight = default(int?), string connectionStatus = default(string), string vpnConnectionProtocolType = default(string), long? ingressBytesTransferred = default(long?), long? egressBytesTransferred = default(long?), int? connectionBandwidth = default(int?), string sharedKey = default(string), bool? enableBgp = default(bool?), bool? usePolicyBasedTrafficSelectors = default(bool?), IList ipsecPolicies = default(IList), bool? enableRateLimiting = default(bool?), bool? enableInternetSecurity = default(bool?), bool? useLocalAzureIpAddress = default(bool?), string provisioningState = default(string), IList vpnLinkConnections = default(IList), string name = default(string), string etag = default(string)) : base(id) { @@ -188,8 +188,9 @@ public VpnConnection() public bool? UseLocalAzureIpAddress { get; set; } /// - /// Gets or sets the provisioning state of the resource. Possible - /// values include: 'Succeeded', 'Updating', 'Deleting', 'Failed' + /// Gets or sets the provisioning state of the VPN connection resource. + /// Possible values include: 'Succeeded', 'Updating', 'Deleting', + /// 'Failed' /// [JsonProperty(PropertyName = "properties.provisioningState")] public string ProvisioningState { get; set; } diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/VpnGateway.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/VpnGateway.cs index 732c4c5c76e7..94125cd839ff 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/VpnGateway.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/VpnGateway.cs @@ -45,13 +45,13 @@ public VpnGateway() /// gateway. /// Local network gateway's BGP speaker /// settings. - /// The provisioning state of the - /// resource. Possible values include: 'Succeeded', 'Updating', + /// The provisioning state of the VPN + /// gateway resource. Possible values include: 'Succeeded', 'Updating', /// 'Deleting', 'Failed' /// The scale unit for this vpn /// gateway. - /// Gets a unique read-only string that changes - /// whenever the resource is updated. + /// A unique read-only string that changes whenever + /// the resource is updated. public VpnGateway(string id = default(string), string name = default(string), string type = default(string), string location = default(string), IDictionary tags = default(IDictionary), SubResource virtualHub = default(SubResource), IList connections = default(IList), BgpSettings bgpSettings = default(BgpSettings), string provisioningState = default(string), int? vpnGatewayScaleUnit = default(int?), string etag = default(string)) : base(id, name, type, location, tags) { @@ -88,8 +88,9 @@ public VpnGateway() public BgpSettings BgpSettings { get; set; } /// - /// Gets or sets the provisioning state of the resource. Possible - /// values include: 'Succeeded', 'Updating', 'Deleting', 'Failed' + /// Gets or sets the provisioning state of the VPN gateway resource. + /// Possible values include: 'Succeeded', 'Updating', 'Deleting', + /// 'Failed' /// [JsonProperty(PropertyName = "properties.provisioningState")] public string ProvisioningState { get; set; } diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/VpnGatewayGeneration.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/VpnGatewayGeneration.cs new file mode 100644 index 000000000000..41c936248d6e --- /dev/null +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/VpnGatewayGeneration.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 VpnGatewayGeneration. + /// + public static class VpnGatewayGeneration + { + public const string None = "None"; + public const string Generation1 = "Generation1"; + public const string Generation2 = "Generation2"; + } +} diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/VpnSite.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/VpnSite.cs index 9d3f7104df13..aff800679dcb 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/VpnSite.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/VpnSite.cs @@ -48,13 +48,13 @@ public VpnSite() /// The AddressSpace that contains an array /// of IP address ranges. /// The set of bgp properties. - /// The provisioning state of the - /// resource. Possible values include: 'Succeeded', 'Updating', + /// The provisioning state of the VPN + /// site resource. Possible values include: 'Succeeded', 'Updating', /// 'Deleting', 'Failed' /// IsSecuritySite flag. - /// List of all vpn site links - /// Gets a unique read-only string that changes - /// whenever the resource is updated. + /// List of all vpn site links. + /// A unique read-only string that changes whenever + /// the resource is updated. public VpnSite(string id = default(string), string name = default(string), string type = default(string), string location = default(string), IDictionary tags = default(IDictionary), SubResource virtualWan = default(SubResource), DeviceProperties deviceProperties = default(DeviceProperties), string ipAddress = default(string), string siteKey = default(string), AddressSpace addressSpace = default(AddressSpace), BgpSettings bgpProperties = default(BgpSettings), string provisioningState = default(string), bool? isSecuritySite = default(bool?), IList vpnSiteLinks = default(IList), string etag = default(string)) : base(id, name, type, location, tags) { @@ -114,8 +114,9 @@ public VpnSite() public BgpSettings BgpProperties { get; set; } /// - /// Gets or sets the provisioning state of the resource. Possible - /// values include: 'Succeeded', 'Updating', 'Deleting', 'Failed' + /// Gets or sets the provisioning state of the VPN site resource. + /// Possible values include: 'Succeeded', 'Updating', 'Deleting', + /// 'Failed' /// [JsonProperty(PropertyName = "properties.provisioningState")] public string ProvisioningState { get; set; } @@ -127,7 +128,7 @@ public VpnSite() public bool? IsSecuritySite { get; set; } /// - /// Gets or sets list of all vpn site links + /// Gets or sets list of all vpn site links. /// [JsonProperty(PropertyName = "properties.vpnSiteLinks")] public IList VpnSiteLinks { get; set; } diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/VpnSiteLink.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/VpnSiteLink.cs index 1969530412f1..0086ceae8c4c 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/VpnSiteLink.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/VpnSiteLink.cs @@ -37,11 +37,11 @@ public VpnSiteLink() /// The ip-address for the /// vpn-site-link. /// The set of bgp properties. - /// The provisioning state of the - /// resource. Possible values include: 'Succeeded', 'Updating', - /// 'Deleting', 'Failed' - /// Gets a unique read-only string that changes - /// whenever the resource is updated. + /// The provisioning state of the VPN + /// site link resource. Possible values include: 'Succeeded', + /// 'Updating', 'Deleting', 'Failed' + /// A unique read-only string that changes whenever + /// the resource is updated. /// The name of the resource that is unique within a /// resource group. This name can be used to access the /// resource. @@ -83,8 +83,9 @@ public VpnSiteLink() public VpnLinkBgpSettings BgpProperties { get; set; } /// - /// Gets or sets the provisioning state of the resource. Possible - /// values include: 'Succeeded', 'Updating', 'Deleting', 'Failed' + /// Gets or sets the provisioning state of the VPN site link resource. + /// Possible values include: 'Succeeded', 'Updating', 'Deleting', + /// 'Failed' /// [JsonProperty(PropertyName = "properties.provisioningState")] public string ProvisioningState { get; set; } diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/VpnSiteLinkConnection.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/VpnSiteLinkConnection.cs index f3ce393d7a97..4636f0863659 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/VpnSiteLinkConnection.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/VpnSiteLinkConnection.cs @@ -60,14 +60,14 @@ public VpnSiteLinkConnection() /// EnableBgp flag. /// Use local azure ip to initiate /// connection. - /// The provisioning state of the - /// resource. Possible values include: 'Succeeded', 'Updating', - /// 'Deleting', 'Failed' + /// The provisioning state of the VPN + /// site link connection resource. Possible values include: + /// 'Succeeded', 'Updating', 'Deleting', 'Failed' /// The name of the resource that is unique within a /// resource group. This name can be used to access the /// resource. - /// Gets a unique read-only string that changes - /// whenever the resource is updated. + /// A unique read-only string that changes whenever + /// the resource is updated. /// Resource type. public VpnSiteLinkConnection(string id = default(string), SubResource vpnSiteLink = default(SubResource), int? routingWeight = default(int?), string connectionStatus = default(string), string vpnConnectionProtocolType = default(string), long? ingressBytesTransferred = default(long?), long? egressBytesTransferred = default(long?), int? connectionBandwidth = default(int?), string sharedKey = default(string), bool? enableBgp = default(bool?), bool? usePolicyBasedTrafficSelectors = default(bool?), IList ipsecPolicies = default(IList), bool? enableRateLimiting = default(bool?), bool? useLocalAzureIpAddress = default(bool?), string provisioningState = default(string), string name = default(string), string etag = default(string), string type = default(string)) : base(id) @@ -179,8 +179,9 @@ public VpnSiteLinkConnection() public bool? UseLocalAzureIpAddress { get; set; } /// - /// Gets or sets the provisioning state of the resource. Possible - /// values include: 'Succeeded', 'Updating', 'Deleting', 'Failed' + /// Gets or sets the provisioning state of the VPN site link connection + /// resource. Possible values include: 'Succeeded', 'Updating', + /// 'Deleting', 'Failed' /// [JsonProperty(PropertyName = "properties.provisioningState")] public string ProvisioningState { get; set; } 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 1284a8f24dbf..3bdd5bfa02f7 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 @@ -42,10 +42,10 @@ public WebApplicationFirewallCustomRule() /// List of match conditions. /// Type of Actions. Possible values include: /// 'Allow', 'Block', 'Log' - /// Gets name of the resource that is unique within - /// a policy. This name can be used to access the resource. - /// Gets a unique read-only string that changes - /// whenever the resource is updated. + /// The name of the resource that is unique within a + /// policy. This name can be used to access the resource. + /// A unique read-only string that changes whenever + /// the resource is updated. public WebApplicationFirewallCustomRule(int priority, string ruleType, IList matchConditions, string action, string name = default(string), string etag = default(string)) { Name = name; @@ -63,8 +63,8 @@ public WebApplicationFirewallCustomRule() partial void CustomInit(); /// - /// Gets name of the resource that is unique within a policy. This name - /// can be used to access the resource. + /// Gets or sets the name of the resource that is unique within a + /// policy. This name can be used to access the resource. /// [JsonProperty(PropertyName = "name")] public string Name { 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 a1ea107b33a0..9b073be8a498 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 @@ -47,11 +47,12 @@ public WebApplicationFirewallPolicy() /// policy. /// A collection of references to /// application gateways. - /// Provisioning state of the - /// WebApplicationFirewallPolicy. + /// The provisioning state of the web + /// application firewall policy resource. Possible values include: + /// 'Succeeded', 'Updating', 'Deleting', 'Failed' /// Resource status of the policy. - /// Gets a unique read-only string that changes - /// whenever the resource is updated. + /// A unique read-only string that changes whenever + /// the resource is updated. public WebApplicationFirewallPolicy(string id = default(string), string name = default(string), string type = default(string), string location = default(string), IDictionary tags = default(IDictionary), PolicySettings policySettings = default(PolicySettings), IList customRules = default(IList), IList applicationGateways = default(IList), string provisioningState = default(string), string resourceState = default(string), string etag = default(string)) : base(id, name, type, location, tags) { @@ -88,7 +89,9 @@ public WebApplicationFirewallPolicy() public IList ApplicationGateways { get; private set; } /// - /// Gets provisioning state of the WebApplicationFirewallPolicy. + /// Gets the provisioning state of the web application firewall policy + /// resource. Possible values include: 'Succeeded', 'Updating', + /// 'Deleting', 'Failed' /// [JsonProperty(PropertyName = "properties.provisioningState")] public string ProvisioningState { get; private set; } @@ -104,8 +107,8 @@ public WebApplicationFirewallPolicy() public string ResourceState { get; private set; } /// - /// Gets a unique read-only string that changes whenever the resource - /// is updated. + /// Gets or sets a unique read-only string that changes whenever the + /// resource is updated. /// [JsonProperty(PropertyName = "etag")] public string Etag { 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 a0aef4de232a..6646156f16b4 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-06-01"; + string apiVersion = "2019-07-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-06-01"; + string apiVersion = "2019-07-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-06-01"; + string apiVersion = "2019-07-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-06-01"; + string apiVersion = "2019-07-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-06-01"; + string apiVersion = "2019-07-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-06-01"; + string apiVersion = "2019-07-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 e399f935f596..c42f9660b9de 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-06-01"; + string apiVersion = "2019-07-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-06-01"; + string apiVersion = "2019-07-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 85edfcbf58c1..2b4ac3f10640 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-06-01"; + string apiVersion = "2019-07-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 23af40772652..b56f224a1b3a 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-06-01"; + string apiVersion = "2019-07-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-06-01"; + string apiVersion = "2019-07-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-06-01"; + string apiVersion = "2019-07-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-06-01"; + string apiVersion = "2019-07-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 7d13feeee968..ab30f33b2463 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-06-01"; + string apiVersion = "2019-07-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -354,7 +354,7 @@ internal NetworkInterfacesOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-06-01"; + string apiVersion = "2019-07-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-06-01"; + string apiVersion = "2019-07-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -781,7 +781,7 @@ internal NetworkInterfacesOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2017-03-30"; + string apiVersion = "2018-10-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -977,7 +977,7 @@ internal NetworkInterfacesOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2017-03-30"; + string apiVersion = "2018-10-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1188,7 +1188,7 @@ internal NetworkInterfacesOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2017-03-30"; + string apiVersion = "2018-10-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1409,7 +1409,7 @@ internal NetworkInterfacesOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2017-03-30"; + string apiVersion = "2018-10-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1637,7 +1637,7 @@ internal NetworkInterfacesOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2017-03-30"; + string apiVersion = "2018-10-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1839,7 +1839,7 @@ internal NetworkInterfacesOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-06-01"; + string apiVersion = "2019-07-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-06-01"; + string apiVersion = "2019-07-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -2248,7 +2248,7 @@ internal NetworkInterfacesOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-06-01"; + string apiVersion = "2019-07-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -2449,7 +2449,7 @@ internal NetworkInterfacesOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-06-01"; + string apiVersion = "2019-07-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -2643,7 +2643,7 @@ internal NetworkInterfacesOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-06-01"; + string apiVersion = "2019-07-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 d2e079f690e0..7539be3d5f73 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/NetworkManagementClient.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/NetworkManagementClient.cs @@ -423,6 +423,16 @@ public partial class NetworkManagementClient : ServiceClient public virtual IVirtualNetworkTapsOperations VirtualNetworkTaps { get; private set; } + /// + /// Gets the IVirtualRoutersOperations. + /// + public virtual IVirtualRoutersOperations VirtualRouters { get; private set; } + + /// + /// Gets the IVirtualRouterPeeringsOperations. + /// + public virtual IVirtualRouterPeeringsOperations VirtualRouterPeerings { get; private set; } + /// /// Gets the IVirtualWansOperations. /// @@ -798,6 +808,8 @@ private void Initialize() VirtualNetworkGatewayConnections = new VirtualNetworkGatewayConnectionsOperations(this); LocalNetworkGateways = new LocalNetworkGatewaysOperations(this); VirtualNetworkTaps = new VirtualNetworkTapsOperations(this); + VirtualRouters = new VirtualRoutersOperations(this); + VirtualRouterPeerings = new VirtualRouterPeeringsOperations(this); VirtualWans = new VirtualWansOperations(this); VpnSites = new VpnSitesOperations(this); VpnSiteLinks = new VpnSiteLinksOperations(this); @@ -895,7 +907,7 @@ private void Initialize() { throw new ValidationException(ValidationRules.CannotBeNull, "this.SubscriptionId"); } - string apiVersion = "2019-06-01"; + string apiVersion = "2019-07-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1093,7 +1105,7 @@ private void Initialize() { throw new ValidationException(ValidationRules.CannotBeNull, "virtualWANName"); } - string apiVersion = "2019-06-01"; + string apiVersion = "2019-07-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 07cd9de43ab1..93815d3088b5 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-06-01"; + string apiVersion = "2019-07-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-06-01"; + string apiVersion = "2019-07-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-06-01"; + string apiVersion = "2019-07-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-06-01"; + string apiVersion = "2019-07-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-06-01"; + string apiVersion = "2019-07-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-06-01"; + string apiVersion = "2019-07-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 08abe7dd757b..2198de77ba06 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-06-01"; + string apiVersion = "2019-07-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -356,7 +356,7 @@ internal NetworkSecurityGroupsOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-06-01"; + string apiVersion = "2019-07-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-06-01"; + string apiVersion = "2019-07-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -728,7 +728,7 @@ internal NetworkSecurityGroupsOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-06-01"; + string apiVersion = "2019-07-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -913,7 +913,7 @@ internal NetworkSecurityGroupsOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-06-01"; + string apiVersion = "2019-07-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1139,7 +1139,7 @@ internal NetworkSecurityGroupsOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-06-01"; + string apiVersion = "2019-07-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 18cacdfb3852..b9b8b5656991 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-06-01"; + string apiVersion = "2019-07-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-06-01"; + string apiVersion = "2019-07-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-06-01"; + string apiVersion = "2019-07-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-06-01"; + string apiVersion = "2019-07-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-06-01"; + string apiVersion = "2019-07-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-06-01"; + string apiVersion = "2019-07-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1498,7 +1498,13 @@ internal NetworkWatchersOperations(NetworkManagementClient client) } /// - /// Get network configuration diagnostic. + /// Gets Network Configuration Diagnostic data to help customers understand and + /// debug network behavior. It provides detailed information on what security + /// rules were applied to a specified traffic flow and the result of evaluating + /// these rules. Customers must provide details of a flow like source, + /// destination, protocol, etc. The API returns whether traffic was allowed or + /// denied, the rules evaluated for the specified flow and the evaluation + /// results. /// /// /// The name of the resource group. @@ -1563,7 +1569,7 @@ internal NetworkWatchersOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-06-01"; + string apiVersion = "2019-07-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1746,7 +1752,7 @@ internal NetworkWatchersOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-06-01"; + string apiVersion = "2019-07-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1971,7 +1977,7 @@ internal NetworkWatchersOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-06-01"; + string apiVersion = "2019-07-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -2196,7 +2202,7 @@ internal NetworkWatchersOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-06-01"; + string apiVersion = "2019-07-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -2421,7 +2427,7 @@ internal NetworkWatchersOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-06-01"; + string apiVersion = "2019-07-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -2646,7 +2652,7 @@ internal NetworkWatchersOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-06-01"; + string apiVersion = "2019-07-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -2872,7 +2878,7 @@ internal NetworkWatchersOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-06-01"; + string apiVersion = "2019-07-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -3099,7 +3105,7 @@ internal NetworkWatchersOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-06-01"; + string apiVersion = "2019-07-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -3326,7 +3332,7 @@ internal NetworkWatchersOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-06-01"; + string apiVersion = "2019-07-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -3552,7 +3558,7 @@ internal NetworkWatchersOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-06-01"; + string apiVersion = "2019-07-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -3774,7 +3780,7 @@ internal NetworkWatchersOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-06-01"; + string apiVersion = "2019-07-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -3945,7 +3951,13 @@ internal NetworkWatchersOperations(NetworkManagementClient client) } /// - /// Get network configuration diagnostic. + /// Gets Network Configuration Diagnostic data to help customers understand and + /// debug network behavior. It provides detailed information on what security + /// rules were applied to a specified traffic flow and the result of evaluating + /// these rules. Customers must provide details of a flow like source, + /// destination, protocol, etc. The API returns whether traffic was allowed or + /// denied, the rules evaluated for the specified flow and the evaluation + /// results. /// /// /// The name of the resource group. @@ -3999,7 +4011,7 @@ internal NetworkWatchersOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-06-01"; + string apiVersion = "2019-07-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 5d4cd2020f9c..1169e6a545c4 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/NetworkWatchersOperationsExtensions.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/NetworkWatchersOperationsExtensions.cs @@ -777,7 +777,13 @@ public static AvailableProvidersList ListAvailableProviders(this INetworkWatcher } /// - /// Get network configuration diagnostic. + /// Gets Network Configuration Diagnostic data to help customers understand and + /// debug network behavior. It provides detailed information on what security + /// rules were applied to a specified traffic flow and the result of evaluating + /// these rules. Customers must provide details of a flow like source, + /// destination, protocol, etc. The API returns whether traffic was allowed or + /// denied, the rules evaluated for the specified flow and the evaluation + /// results. /// /// /// The operations group for this extension method. @@ -797,7 +803,13 @@ public static NetworkConfigurationDiagnosticResponse GetNetworkConfigurationDiag } /// - /// Get network configuration diagnostic. + /// Gets Network Configuration Diagnostic data to help customers understand and + /// debug network behavior. It provides detailed information on what security + /// rules were applied to a specified traffic flow and the result of evaluating + /// these rules. Customers must provide details of a flow like source, + /// destination, protocol, etc. The API returns whether traffic was allowed or + /// denied, the rules evaluated for the specified flow and the evaluation + /// results. /// /// /// The operations group for this extension method. @@ -1336,7 +1348,13 @@ public static AvailableProvidersList BeginListAvailableProviders(this INetworkWa } /// - /// Get network configuration diagnostic. + /// Gets Network Configuration Diagnostic data to help customers understand and + /// debug network behavior. It provides detailed information on what security + /// rules were applied to a specified traffic flow and the result of evaluating + /// these rules. Customers must provide details of a flow like source, + /// destination, protocol, etc. The API returns whether traffic was allowed or + /// denied, the rules evaluated for the specified flow and the evaluation + /// results. /// /// /// The operations group for this extension method. @@ -1356,7 +1374,13 @@ public static NetworkConfigurationDiagnosticResponse BeginGetNetworkConfiguratio } /// - /// Get network configuration diagnostic. + /// Gets Network Configuration Diagnostic data to help customers understand and + /// debug network behavior. It provides detailed information on what security + /// rules were applied to a specified traffic flow and the result of evaluating + /// these rules. Customers must provide details of a flow like source, + /// destination, protocol, etc. The API returns whether traffic was allowed or + /// denied, the rules evaluated for the specified flow and the evaluation + /// results. /// /// /// 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 4661cc56c58d..2873e29d0105 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-06-01"; + string apiVersion = "2019-07-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 3855606fc613..fef55947c819 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-06-01"; + string apiVersion = "2019-07-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -349,7 +349,7 @@ internal P2sVpnGatewaysOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); } - string apiVersion = "2019-06-01"; + string apiVersion = "2019-07-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -522,7 +522,7 @@ internal P2sVpnGatewaysOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-06-01"; + string apiVersion = "2019-07-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -765,7 +765,7 @@ internal P2sVpnGatewaysOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "p2SVpnGatewayParameters"); } - string apiVersion = "2019-06-01"; + string apiVersion = "2019-07-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -986,7 +986,7 @@ internal P2sVpnGatewaysOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "p2SVpnGatewayParameters"); } - string apiVersion = "2019-06-01"; + string apiVersion = "2019-07-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1197,7 +1197,7 @@ internal P2sVpnGatewaysOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "gatewayName"); } - string apiVersion = "2019-06-01"; + string apiVersion = "2019-07-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1377,7 +1377,7 @@ internal P2sVpnGatewaysOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-06-01"; + string apiVersion = "2019-07-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1579,7 +1579,7 @@ internal P2sVpnGatewaysOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-06-01"; + string apiVersion = "2019-07-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/P2sVpnServerConfigurationsOperations.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/P2sVpnServerConfigurationsOperations.cs index 7d6ec161d29a..9c3ee6b36567 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/P2sVpnServerConfigurationsOperations.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/P2sVpnServerConfigurationsOperations.cs @@ -101,7 +101,7 @@ internal P2sVpnServerConfigurationsOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "p2SVpnServerConfigurationName"); } - string apiVersion = "2019-06-01"; + string apiVersion = "2019-07-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -346,7 +346,7 @@ internal P2sVpnServerConfigurationsOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "virtualWanName"); } - string apiVersion = "2019-06-01"; + string apiVersion = "2019-07-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -550,7 +550,7 @@ internal P2sVpnServerConfigurationsOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "p2SVpnServerConfigurationParameters"); } - string apiVersion = "2019-06-01"; + string apiVersion = "2019-07-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -770,7 +770,7 @@ internal P2sVpnServerConfigurationsOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "p2SVpnServerConfigurationName"); } - string apiVersion = "2019-06-01"; + string apiVersion = "2019-07-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/PacketCapturesOperations.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/PacketCapturesOperations.cs index 1e347d51bfa8..600fab2c34fc 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-06-01"; + string apiVersion = "2019-07-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-06-01"; + string apiVersion = "2019-07-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-06-01"; + string apiVersion = "2019-07-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-06-01"; + string apiVersion = "2019-07-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-06-01"; + string apiVersion = "2019-07-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-06-01"; + string apiVersion = "2019-07-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 d846e4ed5a60..0f1c04503905 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-06-01"; + string apiVersion = "2019-07-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-06-01"; + string apiVersion = "2019-07-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 f70287164c63..ee5bcb819f5d 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-06-01"; + string apiVersion = "2019-07-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-06-01"; + string apiVersion = "2019-07-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-06-01"; + string apiVersion = "2019-07-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-06-01"; + string apiVersion = "2019-07-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-06-01"; + string apiVersion = "2019-07-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 b9f4945467f3..dc2623f1c701 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-06-01"; + string apiVersion = "2019-07-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-06-01"; + string apiVersion = "2019-07-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-06-01"; + string apiVersion = "2019-07-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -704,7 +704,7 @@ internal PrivateLinkServicesOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-06-01"; + string apiVersion = "2019-07-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -885,7 +885,7 @@ internal PrivateLinkServicesOperations(NetworkManagementClient client) } /// - /// Checks the subscription is visible to private link service + /// Checks whether the subscription is visible to private link service. /// /// /// The location of the domain name. @@ -928,7 +928,7 @@ internal PrivateLinkServicesOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-06-01"; + string apiVersion = "2019-07-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1084,7 +1084,8 @@ internal PrivateLinkServicesOperations(NetworkManagementClient client) } /// - /// Checks the subscription is visible to private link service + /// Checks whether the subscription is visible to private link service in the + /// specified resource group. /// /// /// The location of the domain name. @@ -1134,7 +1135,7 @@ internal PrivateLinkServicesOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-06-01"; + string apiVersion = "2019-07-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1329,7 +1330,7 @@ internal PrivateLinkServicesOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-06-01"; + string apiVersion = "2019-07-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1522,7 +1523,7 @@ internal PrivateLinkServicesOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-06-01"; + string apiVersion = "2019-07-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1713,7 +1714,7 @@ internal PrivateLinkServicesOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-06-01"; + string apiVersion = "2019-07-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1891,7 +1892,7 @@ internal PrivateLinkServicesOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-06-01"; + string apiVersion = "2019-07-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -2110,7 +2111,7 @@ internal PrivateLinkServicesOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-06-01"; + string apiVersion = "2019-07-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/PrivateLinkServicesOperationsExtensions.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/PrivateLinkServicesOperationsExtensions.cs index 587c207af002..bad1cffa7708 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/PrivateLinkServicesOperationsExtensions.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/PrivateLinkServicesOperationsExtensions.cs @@ -312,7 +312,7 @@ public static void DeletePrivateEndpointConnection(this IPrivateLinkServicesOper } /// - /// Checks the subscription is visible to private link service + /// Checks whether the subscription is visible to private link service. /// /// /// The operations group for this extension method. @@ -329,7 +329,7 @@ public static PrivateLinkServiceVisibility CheckPrivateLinkServiceVisibility(thi } /// - /// Checks the subscription is visible to private link service + /// Checks whether the subscription is visible to private link service. /// /// /// The operations group for this extension method. @@ -352,7 +352,8 @@ public static PrivateLinkServiceVisibility CheckPrivateLinkServiceVisibility(thi } /// - /// Checks the subscription is visible to private link service + /// Checks whether the subscription is visible to private link service in the + /// specified resource group. /// /// /// The operations group for this extension method. @@ -372,7 +373,8 @@ public static PrivateLinkServiceVisibility CheckPrivateLinkServiceVisibilityByRe } /// - /// Checks the subscription is visible to private link service + /// Checks whether the subscription is visible to private link service in the + /// specified resource group. /// /// /// The operations group for this extension method. 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 2ba5dac289f9..ccfce37a9219 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-06-01"; + string apiVersion = "2019-07-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -354,7 +354,7 @@ internal PublicIPPrefixesOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-06-01"; + string apiVersion = "2019-07-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-06-01"; + string apiVersion = "2019-07-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -726,7 +726,7 @@ internal PublicIPPrefixesOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-06-01"; + string apiVersion = "2019-07-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-06-01"; + string apiVersion = "2019-07-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1135,7 +1135,7 @@ internal PublicIPPrefixesOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-06-01"; + string apiVersion = "2019-07-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 c1cc2dd89e2b..b1f2880f28c3 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-06-01"; + string apiVersion = "2019-07-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -354,7 +354,7 @@ internal PublicIPAddressesOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-06-01"; + string apiVersion = "2019-07-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-06-01"; + string apiVersion = "2019-07-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -730,7 +730,7 @@ internal PublicIPAddressesOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2017-03-30"; + string apiVersion = "2018-10-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -946,7 +946,7 @@ internal PublicIPAddressesOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2017-03-30"; + string apiVersion = "2018-10-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1177,7 +1177,7 @@ internal PublicIPAddressesOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2017-03-30"; + string apiVersion = "2018-10-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1381,7 +1381,7 @@ internal PublicIPAddressesOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-06-01"; + string apiVersion = "2019-07-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-06-01"; + string apiVersion = "2019-07-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1790,7 +1790,7 @@ internal PublicIPAddressesOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-06-01"; + string apiVersion = "2019-07-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 eae3692763bf..2edaad4fd111 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-06-01"; + string apiVersion = "2019-07-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 c82872309fbc..15d0c60b0289 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-06-01"; + string apiVersion = "2019-07-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -378,7 +378,7 @@ internal RouteFilterRulesOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-06-01"; + string apiVersion = "2019-07-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -576,7 +576,7 @@ internal RouteFilterRulesOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-06-01"; + string apiVersion = "2019-07-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -772,7 +772,7 @@ internal RouteFilterRulesOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-06-01"; + string apiVersion = "2019-07-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1007,7 +1007,7 @@ internal RouteFilterRulesOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-06-01"; + string apiVersion = "2019-07-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 3599b050dfce..f3045cd14e82 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-06-01"; + string apiVersion = "2019-07-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -361,7 +361,7 @@ internal RouteFiltersOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-06-01"; + string apiVersion = "2019-07-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -539,7 +539,7 @@ internal RouteFiltersOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-06-01"; + string apiVersion = "2019-07-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -726,7 +726,7 @@ internal RouteFiltersOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-06-01"; + string apiVersion = "2019-07-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-06-01"; + string apiVersion = "2019-07-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1135,7 +1135,7 @@ internal RouteFiltersOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-06-01"; + string apiVersion = "2019-07-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 6d547bf284f0..a6d557223924 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-06-01"; + string apiVersion = "2019-07-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -361,7 +361,7 @@ internal RouteTablesOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-06-01"; + string apiVersion = "2019-07-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -539,7 +539,7 @@ internal RouteTablesOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-06-01"; + string apiVersion = "2019-07-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -726,7 +726,7 @@ internal RouteTablesOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-06-01"; + string apiVersion = "2019-07-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-06-01"; + string apiVersion = "2019-07-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1135,7 +1135,7 @@ internal RouteTablesOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-06-01"; + string apiVersion = "2019-07-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 2dbe0e8140a5..a32c1e04ab87 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-06-01"; + string apiVersion = "2019-07-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-06-01"; + string apiVersion = "2019-07-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-06-01"; + string apiVersion = "2019-07-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-06-01"; + string apiVersion = "2019-07-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 fadd92b8afbd..4311b0d1856c 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 @@ -19,94 +19,107 @@ public static IEnumerable> ApiInfo_NetworkManageme { return new Tuple[] { - new Tuple("Compute", "NetworkInterfaces", "2017-03-30"), - new Tuple("Compute", "PublicIPAddresses", "2017-03-30"), - new Tuple("Network", "ApplicationGateways", "2019-06-01"), - new Tuple("Network", "ApplicationSecurityGroups", "2019-06-01"), - new Tuple("Network", "AvailableDelegations", "2019-06-01"), - new Tuple("Network", "AvailableEndpointServices", "2019-06-01"), - new Tuple("Network", "AvailablePrivateEndpointTypes", "2019-06-01"), - new Tuple("Network", "AvailableResourceGroupDelegations", "2019-06-01"), - new Tuple("Network", "AzureFirewallFqdnTags", "2019-06-01"), - new Tuple("Network", "AzureFirewalls", "2019-06-01"), - new Tuple("Network", "BastionHosts", "2019-06-01"), - new Tuple("Network", "BgpServiceCommunities", "2019-06-01"), - new Tuple("Network", "CheckDnsNameAvailability", "2019-06-01"), + new Tuple("Compute", "NetworkInterfaces", "2018-10-01"), + new Tuple("Compute", "PublicIPAddresses", "2018-10-01"), + new Tuple("Network", "ApplicationGateways", "2019-07-01"), + new Tuple("Network", "ApplicationSecurityGroups", "2019-07-01"), + new Tuple("Network", "AvailableDelegations", "2019-07-01"), + new Tuple("Network", "AvailableEndpointServices", "2019-07-01"), + new Tuple("Network", "AvailablePrivateEndpointTypes", "2019-07-01"), + new Tuple("Network", "AvailableResourceGroupDelegations", "2019-07-01"), + new Tuple("Network", "AzureFirewallFqdnTags", "2019-07-01"), + new Tuple("Network", "AzureFirewalls", "2019-07-01"), + new Tuple("Network", "BastionHosts", "2019-07-01"), + new Tuple("Network", "BgpServiceCommunities", "2019-07-01"), + new Tuple("Network", "CheckDnsNameAvailability", "2019-07-01"), new Tuple("Network", "ConnectionMonitors", "2019-06-01"), - new Tuple("Network", "DdosCustomPolicies", "2019-06-01"), - new Tuple("Network", "DdosProtectionPlans", "2019-06-01"), - new Tuple("Network", "DefaultSecurityRules", "2019-06-01"), - new Tuple("Network", "ExpressRouteCircuitAuthorizations", "2019-06-01"), - new Tuple("Network", "ExpressRouteCircuitConnections", "2019-06-01"), - new Tuple("Network", "ExpressRouteCircuitPeerings", "2019-06-01"), - new Tuple("Network", "ExpressRouteCircuits", "2019-06-01"), - new Tuple("Network", "ExpressRouteConnections", "2019-06-01"), - new Tuple("Network", "ExpressRouteCrossConnectionPeerings", "2019-06-01"), - new Tuple("Network", "ExpressRouteCrossConnections", "2019-06-01"), - new Tuple("Network", "ExpressRouteGateways", "2019-06-01"), - new Tuple("Network", "ExpressRouteLinks", "2019-06-01"), - new Tuple("Network", "ExpressRoutePorts", "2019-06-01"), - new Tuple("Network", "ExpressRoutePortsLocations", "2019-06-01"), - new Tuple("Network", "ExpressRouteServiceProviders", "2019-06-01"), - new Tuple("Network", "FirewallPolicies", "2019-06-01"), - new Tuple("Network", "FirewallPolicyRuleGroups", "2019-06-01"), - new Tuple("Network", "HubVirtualNetworkConnections", "2019-06-01"), - new Tuple("Network", "InboundNatRules", "2019-06-01"), - new Tuple("Network", "LoadBalancerBackendAddressPools", "2019-06-01"), - new Tuple("Network", "LoadBalancerFrontendIPConfigurations", "2019-06-01"), - new Tuple("Network", "LoadBalancerLoadBalancingRules", "2019-06-01"), - new Tuple("Network", "LoadBalancerNetworkInterfaces", "2019-06-01"), - new Tuple("Network", "LoadBalancerOutboundRules", "2019-06-01"), - new Tuple("Network", "LoadBalancerProbes", "2019-06-01"), - new Tuple("Network", "LoadBalancers", "2019-06-01"), - new Tuple("Network", "LocalNetworkGateways", "2019-06-01"), - new Tuple("Network", "NatGateways", "2019-06-01"), - new Tuple("Network", "NetworkInterfaceIPConfigurations", "2019-06-01"), - new Tuple("Network", "NetworkInterfaceLoadBalancers", "2019-06-01"), - new Tuple("Network", "NetworkInterfaceTapConfigurations", "2019-06-01"), - new Tuple("Network", "NetworkInterfaces", "2019-06-01"), - new Tuple("Network", "NetworkProfiles", "2019-06-01"), - new Tuple("Network", "NetworkSecurityGroups", "2019-06-01"), - new Tuple("Network", "NetworkWatchers", "2019-06-01"), - new Tuple("Network", "Operations", "2019-06-01"), - new Tuple("Network", "P2sVpnGateways", "2019-06-01"), - new Tuple("Network", "P2sVpnServerConfigurations", "2019-06-01"), - new Tuple("Network", "PacketCaptures", "2019-06-01"), - new Tuple("Network", "PeerExpressRouteCircuitConnections", "2019-06-01"), - new Tuple("Network", "PrivateEndpoints", "2019-06-01"), - new Tuple("Network", "PrivateLinkServices", "2019-06-01"), - new Tuple("Network", "PublicIPAddresses", "2019-06-01"), - new Tuple("Network", "PublicIPPrefixes", "2019-06-01"), - new Tuple("Network", "ResourceNavigationLinks", "2019-06-01"), - new Tuple("Network", "RouteFilterRules", "2019-06-01"), - new Tuple("Network", "RouteFilters", "2019-06-01"), - new Tuple("Network", "RouteTables", "2019-06-01"), - new Tuple("Network", "Routes", "2019-06-01"), - new Tuple("Network", "SecurityRules", "2019-06-01"), - new Tuple("Network", "ServiceAssociationLinks", "2019-06-01"), - new Tuple("Network", "ServiceEndpointPolicies", "2019-06-01"), - new Tuple("Network", "ServiceEndpointPolicyDefinitions", "2019-06-01"), - new Tuple("Network", "ServiceTags", "2019-06-01"), - new Tuple("Network", "Subnets", "2019-06-01"), - new Tuple("Network", "SupportedSecurityProviders", "2019-06-01"), - new Tuple("Network", "Usages", "2019-06-01"), - new Tuple("Network", "VirtualHubs", "2019-06-01"), - new Tuple("Network", "VirtualNetworkGatewayConnections", "2019-06-01"), - new Tuple("Network", "VirtualNetworkGateways", "2019-06-01"), - new Tuple("Network", "VirtualNetworkPeerings", "2019-06-01"), - new Tuple("Network", "VirtualNetworkTaps", "2019-06-01"), - new Tuple("Network", "VirtualNetworks", "2019-06-01"), - new Tuple("Network", "VirtualWans", "2019-06-01"), - new Tuple("Network", "VpnConnections", "2019-06-01"), - new Tuple("Network", "VpnGateways", "2019-06-01"), - new Tuple("Network", "VpnLinkConnections", "2019-06-01"), - new Tuple("Network", "VpnSiteLinkConnections", "2019-06-01"), - new Tuple("Network", "VpnSiteLinks", "2019-06-01"), - new Tuple("Network", "VpnSites", "2019-06-01"), - new Tuple("Network", "VpnSitesConfiguration", "2019-06-01"), - new Tuple("Network", "WebApplicationFirewallPolicies", "2019-06-01"), + new Tuple("Network", "DdosCustomPolicies", "2019-07-01"), + new Tuple("Network", "DdosProtectionPlans", "2019-07-01"), + new Tuple("Network", "DefaultSecurityRules", "2019-07-01"), + new Tuple("Network", "ExpressRouteCircuitAuthorizations", "2019-07-01"), + new Tuple("Network", "ExpressRouteCircuitConnections", "2019-07-01"), + new Tuple("Network", "ExpressRouteCircuitPeerings", "2019-07-01"), + new Tuple("Network", "ExpressRouteCircuits", "2019-07-01"), + new Tuple("Network", "ExpressRouteConnections", "2019-07-01"), + new Tuple("Network", "ExpressRouteCrossConnectionPeerings", "2019-07-01"), + new Tuple("Network", "ExpressRouteCrossConnections", "2019-07-01"), + new Tuple("Network", "ExpressRouteGateways", "2019-07-01"), + new Tuple("Network", "ExpressRouteLinks", "2019-07-01"), + new Tuple("Network", "ExpressRoutePorts", "2019-07-01"), + new Tuple("Network", "ExpressRoutePortsLocations", "2019-07-01"), + new Tuple("Network", "ExpressRouteServiceProviders", "2019-07-01"), + new Tuple("Network", "FirewallPolicies", "2019-07-01"), + new Tuple("Network", "FirewallPolicyRuleGroups", "2019-07-01"), + new Tuple("Network", "HubVirtualNetworkConnections", "2019-07-01"), + new Tuple("Network", "InboundNatRules", "2019-07-01"), + new Tuple("Network", "LoadBalancerBackendAddressPools", "2019-07-01"), + new Tuple("Network", "LoadBalancerFrontendIPConfigurations", "2019-07-01"), + new Tuple("Network", "LoadBalancerLoadBalancingRules", "2019-07-01"), + new Tuple("Network", "LoadBalancerNetworkInterfaces", "2019-07-01"), + new Tuple("Network", "LoadBalancerOutboundRules", "2019-07-01"), + new Tuple("Network", "LoadBalancerProbes", "2019-07-01"), + new Tuple("Network", "LoadBalancers", "2019-07-01"), + new Tuple("Network", "LocalNetworkGateways", "2019-07-01"), + new Tuple("Network", "NatGateways", "2019-07-01"), + new Tuple("Network", "NetworkInterfaceIPConfigurations", "2019-07-01"), + new Tuple("Network", "NetworkInterfaceLoadBalancers", "2019-07-01"), + new Tuple("Network", "NetworkInterfaceTapConfigurations", "2019-07-01"), + new Tuple("Network", "NetworkInterfaces", "2019-07-01"), + new Tuple("Network", "NetworkProfiles", "2019-07-01"), + new Tuple("Network", "NetworkSecurityGroups", "2019-07-01"), + new Tuple("Network", "NetworkWatchers", "2019-07-01"), + new Tuple("Network", "Operations", "2019-07-01"), + new Tuple("Network", "P2sVpnGateways", "2019-07-01"), + new Tuple("Network", "P2sVpnServerConfigurations", "2019-07-01"), + new Tuple("Network", "PacketCaptures", "2019-07-01"), + new Tuple("Network", "PeerExpressRouteCircuitConnections", "2019-07-01"), + new Tuple("Network", "PrivateEndpoints", "2019-07-01"), + new Tuple("Network", "PrivateLinkServices", "2019-07-01"), + new Tuple("Network", "PublicIPAddresses", "2019-07-01"), + new Tuple("Network", "PublicIPPrefixes", "2019-07-01"), + new Tuple("Network", "ResourceNavigationLinks", "2019-07-01"), + new Tuple("Network", "RouteFilterRules", "2019-07-01"), + new Tuple("Network", "RouteFilters", "2019-07-01"), + new Tuple("Network", "RouteTables", "2019-07-01"), + new Tuple("Network", "Routes", "2019-07-01"), + new Tuple("Network", "SecurityRules", "2019-07-01"), + new Tuple("Network", "ServiceAssociationLinks", "2019-07-01"), + new Tuple("Network", "ServiceEndpointPolicies", "2019-07-01"), + new Tuple("Network", "ServiceEndpointPolicyDefinitions", "2019-07-01"), + new Tuple("Network", "ServiceTags", "2019-07-01"), + new Tuple("Network", "Subnets", "2019-07-01"), + new Tuple("Network", "SupportedSecurityProviders", "2019-07-01"), + new Tuple("Network", "Usages", "2019-07-01"), + new Tuple("Network", "VirtualHubs", "2019-07-01"), + new Tuple("Network", "VirtualNetworkGatewayConnections", "2019-07-01"), + new Tuple("Network", "VirtualNetworkGateways", "2019-07-01"), + new Tuple("Network", "VirtualNetworkPeerings", "2019-07-01"), + new Tuple("Network", "VirtualNetworkTaps", "2019-07-01"), + new Tuple("Network", "VirtualNetworks", "2019-07-01"), + new Tuple("Network", "VirtualRouterPeerings", "2019-07-01"), + new Tuple("Network", "VirtualRouters", "2019-07-01"), + new Tuple("Network", "VirtualWans", "2019-07-01"), + new Tuple("Network", "VpnConnections", "2019-07-01"), + new Tuple("Network", "VpnGateways", "2019-07-01"), + new Tuple("Network", "VpnLinkConnections", "2019-07-01"), + new Tuple("Network", "VpnSiteLinkConnections", "2019-07-01"), + new Tuple("Network", "VpnSiteLinks", "2019-07-01"), + new Tuple("Network", "VpnSites", "2019-07-01"), + new Tuple("Network", "VpnSitesConfiguration", "2019-07-01"), + new Tuple("Network", "WebApplicationFirewallPolicies", "2019-07-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/network-august-release/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 GithubForkName = "Azure"; + public static readonly String GithubBranchName = "network-august-release"; + public static readonly String GithubCommidId = "580738fef4a3f18b9358127c5f68bb72fecf8e8f"; + 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 1adc1ef24f32..42dc2735487c 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-06-01"; + string apiVersion = "2019-07-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-06-01"; + string apiVersion = "2019-07-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-06-01"; + string apiVersion = "2019-07-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-06-01"; + string apiVersion = "2019-07-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 195e79a0ef3c..22816998ea95 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-06-01"; + string apiVersion = "2019-07-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 0fb80b8d4fa5..65c8b6812b18 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-06-01"; + string apiVersion = "2019-07-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -355,7 +355,7 @@ internal ServiceEndpointPoliciesOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-06-01"; + string apiVersion = "2019-07-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-06-01"; + string apiVersion = "2019-07-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -727,7 +727,7 @@ internal ServiceEndpointPoliciesOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-06-01"; + string apiVersion = "2019-07-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -911,7 +911,7 @@ internal ServiceEndpointPoliciesOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-06-01"; + string apiVersion = "2019-07-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1137,7 +1137,7 @@ internal ServiceEndpointPoliciesOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-06-01"; + string apiVersion = "2019-07-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 fb56364fde3e..c3027aed5bb9 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-06-01"; + string apiVersion = "2019-07-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-06-01"; + string apiVersion = "2019-07-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-06-01"; + string apiVersion = "2019-07-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-06-01"; + string apiVersion = "2019-07-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 6addc5e6580d..190416eee2f9 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/ServiceTagsOperations.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/ServiceTagsOperations.cs @@ -54,7 +54,10 @@ internal ServiceTagsOperations(NetworkManagementClient client) /// Gets a list of service tag information resources. /// /// - /// The location. + /// The location that will be used as a reference for version (not as a filter + /// based on location, you will get the list of service tags with prefix + /// details across all regions but limited to the cloud that your subscription + /// belongs to). /// /// /// Headers that will be added to request. @@ -87,7 +90,7 @@ internal ServiceTagsOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-06-01"; + string apiVersion = "2019-07-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/ServiceTagsOperationsExtensions.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/ServiceTagsOperationsExtensions.cs index d575231bde96..be01db34c7b1 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/ServiceTagsOperationsExtensions.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/ServiceTagsOperationsExtensions.cs @@ -28,7 +28,10 @@ public static partial class ServiceTagsOperationsExtensions /// The operations group for this extension method. /// /// - /// The location. + /// The location that will be used as a reference for version (not as a filter + /// based on location, you will get the list of service tags with prefix + /// details across all regions but limited to the cloud that your subscription + /// belongs to). /// public static ServiceTagsListResult List(this IServiceTagsOperations operations, string location) { @@ -42,7 +45,10 @@ public static ServiceTagsListResult List(this IServiceTagsOperations operations, /// The operations group for this extension method. /// /// - /// The location. + /// The location that will be used as a reference for version (not as a filter + /// based on location, you will get the list of service tags with prefix + /// details across all regions but limited to the cloud that your subscription + /// belongs to). /// /// /// The cancellation token. 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 f4058762ffbb..ef4bcadeb2d7 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-06-01"; + string apiVersion = "2019-07-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -342,6 +342,34 @@ internal SubnetsOperations(NetworkManagementClient client) return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); } + /// + /// Unprepares a subnet by removing network intent policies. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the virtual network. + /// + /// + /// The name of the subnet. + /// + /// + /// Parameters supplied to unprepare subnet to remove network intent policies. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task UnprepareNetworkPoliciesWithHttpMessagesAsync(string resourceGroupName, string virtualNetworkName, string subnetName, UnprepareNetworkPoliciesRequest unprepareNetworkPoliciesRequestParameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send request + AzureOperationResponse _response = await BeginUnprepareNetworkPoliciesWithHttpMessagesAsync(resourceGroupName, virtualNetworkName, subnetName, unprepareNetworkPoliciesRequestParameters, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + /// /// Gets all subnets in a virtual network. /// @@ -386,7 +414,7 @@ internal SubnetsOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-06-01"; + string apiVersion = "2019-07-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -584,7 +612,7 @@ internal SubnetsOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-06-01"; + string apiVersion = "2019-07-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -776,7 +804,7 @@ internal SubnetsOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-06-01"; + string apiVersion = "2019-07-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1008,7 +1036,7 @@ internal SubnetsOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-06-01"; + string apiVersion = "2019-07-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1149,6 +1177,202 @@ internal SubnetsOperations(NetworkManagementClient client) return _result; } + /// + /// Unprepares a subnet by removing network intent policies. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the virtual network. + /// + /// + /// The name of the subnet. + /// + /// + /// Parameters supplied to unprepare subnet to remove network intent policies. + /// + /// + /// 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 BeginUnprepareNetworkPoliciesWithHttpMessagesAsync(string resourceGroupName, string virtualNetworkName, string subnetName, UnprepareNetworkPoliciesRequest unprepareNetworkPoliciesRequestParameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (virtualNetworkName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "virtualNetworkName"); + } + if (subnetName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "subnetName"); + } + if (unprepareNetworkPoliciesRequestParameters == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "unprepareNetworkPoliciesRequestParameters"); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + string apiVersion = "2019-07-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("virtualNetworkName", virtualNetworkName); + tracingParameters.Add("subnetName", subnetName); + tracingParameters.Add("unprepareNetworkPoliciesRequestParameters", unprepareNetworkPoliciesRequestParameters); + tracingParameters.Add("apiVersion", apiVersion); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "BeginUnprepareNetworkPolicies", 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/virtualNetworks/{virtualNetworkName}/subnets/{subnetName}/UnprepareNetworkPolicies").ToString(); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{virtualNetworkName}", System.Uri.EscapeDataString(virtualNetworkName)); + _url = _url.Replace("{subnetName}", System.Uri.EscapeDataString(subnetName)); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + List _queryParameters = new List(); + if (apiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("POST"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + if(unprepareNetworkPoliciesRequestParameters != null) + { + _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(unprepareNetworkPoliciesRequestParameters, 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 subnets in a virtual network. /// diff --git a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/SubnetsOperationsExtensions.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/SubnetsOperationsExtensions.cs index 63b6c096651a..6c640a409b68 100644 --- a/sdk/network/Microsoft.Azure.Management.Network/src/Generated/SubnetsOperationsExtensions.cs +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/SubnetsOperationsExtensions.cs @@ -217,6 +217,55 @@ public static void PrepareNetworkPolicies(this ISubnetsOperations operations, st (await operations.PrepareNetworkPoliciesWithHttpMessagesAsync(resourceGroupName, virtualNetworkName, subnetName, prepareNetworkPoliciesRequestParameters, null, cancellationToken).ConfigureAwait(false)).Dispose(); } + /// + /// Unprepares a subnet by removing network intent policies. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the virtual network. + /// + /// + /// The name of the subnet. + /// + /// + /// Parameters supplied to unprepare subnet to remove network intent policies. + /// + public static void UnprepareNetworkPolicies(this ISubnetsOperations operations, string resourceGroupName, string virtualNetworkName, string subnetName, UnprepareNetworkPoliciesRequest unprepareNetworkPoliciesRequestParameters) + { + operations.UnprepareNetworkPoliciesAsync(resourceGroupName, virtualNetworkName, subnetName, unprepareNetworkPoliciesRequestParameters).GetAwaiter().GetResult(); + } + + /// + /// Unprepares a subnet by removing network intent policies. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the virtual network. + /// + /// + /// The name of the subnet. + /// + /// + /// Parameters supplied to unprepare subnet to remove network intent policies. + /// + /// + /// The cancellation token. + /// + public static async Task UnprepareNetworkPoliciesAsync(this ISubnetsOperations operations, string resourceGroupName, string virtualNetworkName, string subnetName, UnprepareNetworkPoliciesRequest unprepareNetworkPoliciesRequestParameters, CancellationToken cancellationToken = default(CancellationToken)) + { + (await operations.UnprepareNetworkPoliciesWithHttpMessagesAsync(resourceGroupName, virtualNetworkName, subnetName, unprepareNetworkPoliciesRequestParameters, null, cancellationToken).ConfigureAwait(false)).Dispose(); + } + /// /// Gets all subnets in a virtual network. /// @@ -401,6 +450,55 @@ public static void BeginPrepareNetworkPolicies(this ISubnetsOperations operation (await operations.BeginPrepareNetworkPoliciesWithHttpMessagesAsync(resourceGroupName, virtualNetworkName, subnetName, prepareNetworkPoliciesRequestParameters, null, cancellationToken).ConfigureAwait(false)).Dispose(); } + /// + /// Unprepares a subnet by removing network intent policies. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the virtual network. + /// + /// + /// The name of the subnet. + /// + /// + /// Parameters supplied to unprepare subnet to remove network intent policies. + /// + public static void BeginUnprepareNetworkPolicies(this ISubnetsOperations operations, string resourceGroupName, string virtualNetworkName, string subnetName, UnprepareNetworkPoliciesRequest unprepareNetworkPoliciesRequestParameters) + { + operations.BeginUnprepareNetworkPoliciesAsync(resourceGroupName, virtualNetworkName, subnetName, unprepareNetworkPoliciesRequestParameters).GetAwaiter().GetResult(); + } + + /// + /// Unprepares a subnet by removing network intent policies. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the virtual network. + /// + /// + /// The name of the subnet. + /// + /// + /// Parameters supplied to unprepare subnet to remove network intent policies. + /// + /// + /// The cancellation token. + /// + public static async Task BeginUnprepareNetworkPoliciesAsync(this ISubnetsOperations operations, string resourceGroupName, string virtualNetworkName, string subnetName, UnprepareNetworkPoliciesRequest unprepareNetworkPoliciesRequestParameters, CancellationToken cancellationToken = default(CancellationToken)) + { + (await operations.BeginUnprepareNetworkPoliciesWithHttpMessagesAsync(resourceGroupName, virtualNetworkName, subnetName, unprepareNetworkPoliciesRequestParameters, null, cancellationToken).ConfigureAwait(false)).Dispose(); + } + /// /// Gets all subnets in a virtual network. /// 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 3fc693e76947..f8d1b3bf1d4e 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-06-01"; + string apiVersion = "2019-07-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 a78a36e27399..14663370abd2 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-06-01"; + string apiVersion = "2019-07-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -349,7 +349,7 @@ internal VirtualHubsOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); } - string apiVersion = "2019-06-01"; + string apiVersion = "2019-07-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -522,7 +522,7 @@ internal VirtualHubsOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-06-01"; + string apiVersion = "2019-07-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -715,7 +715,7 @@ internal VirtualHubsOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "virtualHubParameters"); } - string apiVersion = "2019-06-01"; + string apiVersion = "2019-07-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -936,7 +936,7 @@ internal VirtualHubsOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "virtualHubParameters"); } - string apiVersion = "2019-06-01"; + string apiVersion = "2019-07-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1147,7 +1147,7 @@ internal VirtualHubsOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "virtualHubName"); } - string apiVersion = "2019-06-01"; + string apiVersion = "2019-07-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 2a076374d44e..b80f5cb9943c 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-06-01"; + string apiVersion = "2019-07-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-06-01"; + string apiVersion = "2019-07-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-06-01"; + string apiVersion = "2019-07-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -815,7 +815,7 @@ internal VirtualNetworkGatewayConnectionsOperations(NetworkManagementClient clie { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-06-01"; + string apiVersion = "2019-07-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1031,7 +1031,7 @@ internal VirtualNetworkGatewayConnectionsOperations(NetworkManagementClient clie { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-06-01"; + string apiVersion = "2019-07-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1214,7 +1214,7 @@ internal VirtualNetworkGatewayConnectionsOperations(NetworkManagementClient clie { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-06-01"; + string apiVersion = "2019-07-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1304,7 +1304,7 @@ internal VirtualNetworkGatewayConnectionsOperations(NetworkManagementClient clie HttpStatusCode _statusCode = _httpResponse.StatusCode; cancellationToken.ThrowIfCancellationRequested(); string _responseContent = null; - if ((int)_statusCode != 200) + if ((int)_statusCode != 200 && (int)_statusCode != 202) { var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); try @@ -1430,7 +1430,7 @@ internal VirtualNetworkGatewayConnectionsOperations(NetworkManagementClient clie { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-06-01"; + string apiVersion = "2019-07-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1664,7 +1664,7 @@ internal VirtualNetworkGatewayConnectionsOperations(NetworkManagementClient clie { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-06-01"; + string apiVersion = "2019-07-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 05167bd0592a..5a74ec065ed5 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-06-01"; + string apiVersion = "2019-07-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-06-01"; + string apiVersion = "2019-07-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-06-01"; + string apiVersion = "2019-07-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-06-01"; + string apiVersion = "2019-07-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-06-01"; + string apiVersion = "2019-07-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1428,7 +1428,7 @@ internal VirtualNetworkGatewaysOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-06-01"; + string apiVersion = "2019-07-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1644,7 +1644,7 @@ internal VirtualNetworkGatewaysOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-06-01"; + string apiVersion = "2019-07-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1827,7 +1827,7 @@ internal VirtualNetworkGatewaysOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-06-01"; + string apiVersion = "2019-07-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1917,7 +1917,7 @@ internal VirtualNetworkGatewaysOperations(NetworkManagementClient client) HttpStatusCode _statusCode = _httpResponse.StatusCode; cancellationToken.ThrowIfCancellationRequested(); string _responseContent = null; - if ((int)_statusCode != 200) + if ((int)_statusCode != 200 && (int)_statusCode != 202) { var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); try @@ -2033,7 +2033,7 @@ internal VirtualNetworkGatewaysOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-06-01"; + string apiVersion = "2019-07-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -2230,7 +2230,7 @@ internal VirtualNetworkGatewaysOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-06-01"; + string apiVersion = "2019-07-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -2415,7 +2415,7 @@ internal VirtualNetworkGatewaysOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-06-01"; + string apiVersion = "2019-07-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -2625,7 +2625,7 @@ internal VirtualNetworkGatewaysOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-06-01"; + string apiVersion = "2019-07-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -2828,7 +2828,7 @@ internal VirtualNetworkGatewaysOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-06-01"; + string apiVersion = "2019-07-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -3025,7 +3025,7 @@ internal VirtualNetworkGatewaysOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-06-01"; + string apiVersion = "2019-07-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -3225,7 +3225,7 @@ internal VirtualNetworkGatewaysOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-06-01"; + string apiVersion = "2019-07-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -3427,7 +3427,7 @@ internal VirtualNetworkGatewaysOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-06-01"; + string apiVersion = "2019-07-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -3640,7 +3640,7 @@ internal VirtualNetworkGatewaysOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-06-01"; + string apiVersion = "2019-07-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -3843,7 +3843,7 @@ internal VirtualNetworkGatewaysOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-06-01"; + string apiVersion = "2019-07-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -4038,7 +4038,7 @@ internal VirtualNetworkGatewaysOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-06-01"; + string apiVersion = "2019-07-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; 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 cb13c91dacfc..de208a6e325c 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-06-01"; + string apiVersion = "2019-07-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-06-01"; + string apiVersion = "2019-07-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-06-01"; + string apiVersion = "2019-07-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-06-01"; + string apiVersion = "2019-07-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 8ab729734100..f167ae8224ab 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-06-01"; + string apiVersion = "2019-07-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -346,7 +346,7 @@ internal VirtualNetworkTapsOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-06-01"; + string apiVersion = "2019-07-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-06-01"; + string apiVersion = "2019-07-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -718,7 +718,7 @@ internal VirtualNetworkTapsOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-06-01"; + string apiVersion = "2019-07-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-06-01"; + string apiVersion = "2019-07-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1127,7 +1127,7 @@ internal VirtualNetworkTapsOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-06-01"; + string apiVersion = "2019-07-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 0be4518e4657..15bc1560f3cc 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-06-01"; + string apiVersion = "2019-07-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -354,7 +354,7 @@ internal VirtualNetworksOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-06-01"; + string apiVersion = "2019-07-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-06-01"; + string apiVersion = "2019-07-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -736,7 +736,7 @@ internal VirtualNetworksOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-06-01"; + string apiVersion = "2019-07-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -935,7 +935,7 @@ internal VirtualNetworksOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-06-01"; + string apiVersion = "2019-07-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1126,7 +1126,7 @@ internal VirtualNetworksOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-06-01"; + string apiVersion = "2019-07-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-06-01"; + string apiVersion = "2019-07-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1535,7 +1535,7 @@ internal VirtualNetworksOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-06-01"; + string apiVersion = "2019-07-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 new file mode 100644 index 000000000000..119f02f96e7c --- /dev/null +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/VirtualRouterPeeringsOperations.cs @@ -0,0 +1,1287 @@ +// +// 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; + + /// + /// VirtualRouterPeeringsOperations operations. + /// + internal partial class VirtualRouterPeeringsOperations : IServiceOperations, IVirtualRouterPeeringsOperations + { + /// + /// Initializes a new instance of the VirtualRouterPeeringsOperations class. + /// + /// + /// Reference to the service client. + /// + /// + /// Thrown when a required parameter is null + /// + internal VirtualRouterPeeringsOperations(NetworkManagementClient client) + { + if (client == null) + { + throw new System.ArgumentNullException("client"); + } + Client = client; + } + + /// + /// Gets a reference to the NetworkManagementClient + /// + public NetworkManagementClient Client { get; private set; } + + /// + /// Deletes the specified peering from a Virtual Router. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the Virtual Router. + /// + /// + /// The name of the peering. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task DeleteWithHttpMessagesAsync(string resourceGroupName, string virtualRouterName, string peeringName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send request + AzureOperationResponse _response = await BeginDeleteWithHttpMessagesAsync(resourceGroupName, virtualRouterName, peeringName, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + + /// + /// Gets the specified Virtual Router Peering. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the Virtual Router. + /// + /// + /// The name of the Virtual Router Peering. + /// + /// + /// 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 virtualRouterName, string peeringName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (virtualRouterName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "virtualRouterName"); + } + if (peeringName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "peeringName"); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + string apiVersion = "2019-07-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("virtualRouterName", virtualRouterName); + tracingParameters.Add("peeringName", peeringName); + 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/virtualRouters/{virtualRouterName}/peerings/{peeringName}").ToString(); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{virtualRouterName}", System.Uri.EscapeDataString(virtualRouterName)); + _url = _url.Replace("{peeringName}", System.Uri.EscapeDataString(peeringName)); + _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 ErrorException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + Error _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; + } + + /// + /// Updates a Virtual Router Peering. + /// + /// + /// The resource group name of the Virtual Router Peering. + /// + /// + /// The name of the Virtual Router. + /// + /// + /// The name of the Virtual Router Peering being updated. + /// + /// + /// Parameters supplied to update Virtual Router Peering 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> UpdateWithHttpMessagesAsync(string resourceGroupName, string virtualRouterName, string peeringName, VirtualRouterPeering parameters, 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 (virtualRouterName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "virtualRouterName"); + } + if (peeringName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "peeringName"); + } + if (parameters == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "parameters"); + } + string apiVersion = "2019-07-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("virtualRouterName", virtualRouterName); + tracingParameters.Add("apiVersion", apiVersion); + tracingParameters.Add("peeringName", peeringName); + tracingParameters.Add("parameters", parameters); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "Update", 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/virtualRouters/{virtualRouterName}/peerings/{peeringName}").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{virtualRouterName}", System.Uri.EscapeDataString(virtualRouterName)); + _url = _url.Replace("{peeringName}", System.Uri.EscapeDataString(peeringName)); + List _queryParameters = new List(); + if (apiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("PATCH"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + if(parameters != null) + { + _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(parameters, Client.SerializationSettings); + _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); + _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); + } + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new ErrorException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + Error _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; + } + + /// + /// Creates or updates the specified Virtual Router Peering. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the Virtual Router. + /// + /// + /// The name of the Virtual Router Peering. + /// + /// + /// Parameters supplied to the create or update Virtual Router Peering + /// operation. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task> CreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string virtualRouterName, string peeringName, VirtualRouterPeering parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send Request + AzureOperationResponse _response = await BeginCreateOrUpdateWithHttpMessagesAsync(resourceGroupName, virtualRouterName, peeringName, parameters, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPutOrPatchOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + + /// + /// Lists all Virtual Router Peerings in a Virtual Router resource. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the Virtual Router. + /// + /// + /// 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 virtualRouterName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (virtualRouterName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "virtualRouterName"); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + string apiVersion = "2019-07-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("virtualRouterName", virtualRouterName); + 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/virtualRouters/{virtualRouterName}/peerings").ToString(); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{virtualRouterName}", System.Uri.EscapeDataString(virtualRouterName)); + _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 ErrorException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + Error _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 peering from a Virtual Router. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the Virtual Router. + /// + /// + /// The name of the peering. + /// + /// + /// 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 virtualRouterName, string peeringName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (virtualRouterName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "virtualRouterName"); + } + if (peeringName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "peeringName"); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + string apiVersion = "2019-07-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("virtualRouterName", virtualRouterName); + tracingParameters.Add("peeringName", peeringName); + 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/virtualRouters/{virtualRouterName}/peerings/{peeringName}").ToString(); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{virtualRouterName}", System.Uri.EscapeDataString(virtualRouterName)); + _url = _url.Replace("{peeringName}", System.Uri.EscapeDataString(peeringName)); + _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 != 200 && (int)_statusCode != 202 && (int)_statusCode != 204) + { + var ex = new ErrorException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + Error _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; + } + + /// + /// Creates or updates the specified Virtual Router Peering. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the Virtual Router. + /// + /// + /// The name of the Virtual Router Peering. + /// + /// + /// Parameters supplied to the create or update Virtual Router Peering + /// 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> BeginCreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string virtualRouterName, string peeringName, VirtualRouterPeering parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (virtualRouterName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "virtualRouterName"); + } + if (peeringName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "peeringName"); + } + 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-07-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("virtualRouterName", virtualRouterName); + tracingParameters.Add("peeringName", peeringName); + 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/virtualRouters/{virtualRouterName}/peerings/{peeringName}").ToString(); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{virtualRouterName}", System.Uri.EscapeDataString(virtualRouterName)); + _url = _url.Replace("{peeringName}", System.Uri.EscapeDataString(peeringName)); + _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 ErrorException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + Error _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; + } + + /// + /// Lists all Virtual Router Peerings in a Virtual Router resource. + /// + /// + /// 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 ErrorException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + Error _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/VirtualRouterPeeringsOperationsExtensions.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/VirtualRouterPeeringsOperationsExtensions.cs new file mode 100644 index 000000000000..8a82cbd9f3b7 --- /dev/null +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/VirtualRouterPeeringsOperationsExtensions.cs @@ -0,0 +1,391 @@ +// +// 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 VirtualRouterPeeringsOperations. + /// + public static partial class VirtualRouterPeeringsOperationsExtensions + { + /// + /// Deletes the specified peering from a Virtual Router. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the Virtual Router. + /// + /// + /// The name of the peering. + /// + public static void Delete(this IVirtualRouterPeeringsOperations operations, string resourceGroupName, string virtualRouterName, string peeringName) + { + operations.DeleteAsync(resourceGroupName, virtualRouterName, peeringName).GetAwaiter().GetResult(); + } + + /// + /// Deletes the specified peering from a Virtual Router. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the Virtual Router. + /// + /// + /// The name of the peering. + /// + /// + /// The cancellation token. + /// + public static async Task DeleteAsync(this IVirtualRouterPeeringsOperations operations, string resourceGroupName, string virtualRouterName, string peeringName, CancellationToken cancellationToken = default(CancellationToken)) + { + (await operations.DeleteWithHttpMessagesAsync(resourceGroupName, virtualRouterName, peeringName, null, cancellationToken).ConfigureAwait(false)).Dispose(); + } + + /// + /// Gets the specified Virtual Router Peering. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the Virtual Router. + /// + /// + /// The name of the Virtual Router Peering. + /// + public static VirtualRouterPeering Get(this IVirtualRouterPeeringsOperations operations, string resourceGroupName, string virtualRouterName, string peeringName) + { + return operations.GetAsync(resourceGroupName, virtualRouterName, peeringName).GetAwaiter().GetResult(); + } + + /// + /// Gets the specified Virtual Router Peering. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the Virtual Router. + /// + /// + /// The name of the Virtual Router Peering. + /// + /// + /// The cancellation token. + /// + public static async Task GetAsync(this IVirtualRouterPeeringsOperations operations, string resourceGroupName, string virtualRouterName, string peeringName, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.GetWithHttpMessagesAsync(resourceGroupName, virtualRouterName, peeringName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Updates a Virtual Router Peering. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The resource group name of the Virtual Router Peering. + /// + /// + /// The name of the Virtual Router. + /// + /// + /// The name of the Virtual Router Peering being updated. + /// + /// + /// Parameters supplied to update Virtual Router Peering operation. + /// + public static VirtualRouterPeering Update(this IVirtualRouterPeeringsOperations operations, string resourceGroupName, string virtualRouterName, string peeringName, VirtualRouterPeering parameters) + { + return operations.UpdateAsync(resourceGroupName, virtualRouterName, peeringName, parameters).GetAwaiter().GetResult(); + } + + /// + /// Updates a Virtual Router Peering. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The resource group name of the Virtual Router Peering. + /// + /// + /// The name of the Virtual Router. + /// + /// + /// The name of the Virtual Router Peering being updated. + /// + /// + /// Parameters supplied to update Virtual Router Peering operation. + /// + /// + /// The cancellation token. + /// + public static async Task UpdateAsync(this IVirtualRouterPeeringsOperations operations, string resourceGroupName, string virtualRouterName, string peeringName, VirtualRouterPeering parameters, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.UpdateWithHttpMessagesAsync(resourceGroupName, virtualRouterName, peeringName, parameters, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Creates or updates the specified Virtual Router Peering. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the Virtual Router. + /// + /// + /// The name of the Virtual Router Peering. + /// + /// + /// Parameters supplied to the create or update Virtual Router Peering + /// operation. + /// + public static VirtualRouterPeering CreateOrUpdate(this IVirtualRouterPeeringsOperations operations, string resourceGroupName, string virtualRouterName, string peeringName, VirtualRouterPeering parameters) + { + return operations.CreateOrUpdateAsync(resourceGroupName, virtualRouterName, peeringName, parameters).GetAwaiter().GetResult(); + } + + /// + /// Creates or updates the specified Virtual Router Peering. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the Virtual Router. + /// + /// + /// The name of the Virtual Router Peering. + /// + /// + /// Parameters supplied to the create or update Virtual Router Peering + /// operation. + /// + /// + /// The cancellation token. + /// + public static async Task CreateOrUpdateAsync(this IVirtualRouterPeeringsOperations operations, string resourceGroupName, string virtualRouterName, string peeringName, VirtualRouterPeering parameters, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.CreateOrUpdateWithHttpMessagesAsync(resourceGroupName, virtualRouterName, peeringName, parameters, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Lists all Virtual Router Peerings in a Virtual Router resource. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the Virtual Router. + /// + public static IPage List(this IVirtualRouterPeeringsOperations operations, string resourceGroupName, string virtualRouterName) + { + return operations.ListAsync(resourceGroupName, virtualRouterName).GetAwaiter().GetResult(); + } + + /// + /// Lists all Virtual Router Peerings in a Virtual Router resource. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the Virtual Router. + /// + /// + /// The cancellation token. + /// + public static async Task> ListAsync(this IVirtualRouterPeeringsOperations operations, string resourceGroupName, string virtualRouterName, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListWithHttpMessagesAsync(resourceGroupName, virtualRouterName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Deletes the specified peering from a Virtual Router. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the Virtual Router. + /// + /// + /// The name of the peering. + /// + public static void BeginDelete(this IVirtualRouterPeeringsOperations operations, string resourceGroupName, string virtualRouterName, string peeringName) + { + operations.BeginDeleteAsync(resourceGroupName, virtualRouterName, peeringName).GetAwaiter().GetResult(); + } + + /// + /// Deletes the specified peering from a Virtual Router. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the Virtual Router. + /// + /// + /// The name of the peering. + /// + /// + /// The cancellation token. + /// + public static async Task BeginDeleteAsync(this IVirtualRouterPeeringsOperations operations, string resourceGroupName, string virtualRouterName, string peeringName, CancellationToken cancellationToken = default(CancellationToken)) + { + (await operations.BeginDeleteWithHttpMessagesAsync(resourceGroupName, virtualRouterName, peeringName, null, cancellationToken).ConfigureAwait(false)).Dispose(); + } + + /// + /// Creates or updates the specified Virtual Router Peering. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the Virtual Router. + /// + /// + /// The name of the Virtual Router Peering. + /// + /// + /// Parameters supplied to the create or update Virtual Router Peering + /// operation. + /// + public static VirtualRouterPeering BeginCreateOrUpdate(this IVirtualRouterPeeringsOperations operations, string resourceGroupName, string virtualRouterName, string peeringName, VirtualRouterPeering parameters) + { + return operations.BeginCreateOrUpdateAsync(resourceGroupName, virtualRouterName, peeringName, parameters).GetAwaiter().GetResult(); + } + + /// + /// Creates or updates the specified Virtual Router Peering. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the Virtual Router. + /// + /// + /// The name of the Virtual Router Peering. + /// + /// + /// Parameters supplied to the create or update Virtual Router Peering + /// operation. + /// + /// + /// The cancellation token. + /// + public static async Task BeginCreateOrUpdateAsync(this IVirtualRouterPeeringsOperations operations, string resourceGroupName, string virtualRouterName, string peeringName, VirtualRouterPeering parameters, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.BeginCreateOrUpdateWithHttpMessagesAsync(resourceGroupName, virtualRouterName, peeringName, parameters, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Lists all Virtual Router Peerings in a Virtual Router resource. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + public static IPage ListNext(this IVirtualRouterPeeringsOperations operations, string nextPageLink) + { + return operations.ListNextAsync(nextPageLink).GetAwaiter().GetResult(); + } + + /// + /// Lists all Virtual Router Peerings in a Virtual Router resource. + /// + /// + /// 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 IVirtualRouterPeeringsOperations 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/VirtualRoutersOperations.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/VirtualRoutersOperations.cs new file mode 100644 index 000000000000..462fc0a93e7d --- /dev/null +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/VirtualRoutersOperations.cs @@ -0,0 +1,1581 @@ +// +// 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; + + /// + /// VirtualRoutersOperations operations. + /// + internal partial class VirtualRoutersOperations : IServiceOperations, IVirtualRoutersOperations + { + /// + /// Initializes a new instance of the VirtualRoutersOperations class. + /// + /// + /// Reference to the service client. + /// + /// + /// Thrown when a required parameter is null + /// + internal VirtualRoutersOperations(NetworkManagementClient client) + { + if (client == null) + { + throw new System.ArgumentNullException("client"); + } + Client = client; + } + + /// + /// Gets a reference to the NetworkManagementClient + /// + public NetworkManagementClient Client { get; private set; } + + /// + /// Deletes the specified Virtual Router. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the Virtual Router. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task DeleteWithHttpMessagesAsync(string resourceGroupName, string virtualRouterName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send request + AzureOperationResponse _response = await BeginDeleteWithHttpMessagesAsync(resourceGroupName, virtualRouterName, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + + /// + /// Gets the specified Virtual Router. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the Virtual Router. + /// + /// + /// Expands referenced resources. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task> GetWithHttpMessagesAsync(string resourceGroupName, string virtualRouterName, string expand = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (virtualRouterName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "virtualRouterName"); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + string apiVersion = "2019-07-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("virtualRouterName", virtualRouterName); + tracingParameters.Add("apiVersion", apiVersion); + tracingParameters.Add("expand", expand); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "Get", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualRouters/{virtualRouterName}").ToString(); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{virtualRouterName}", System.Uri.EscapeDataString(virtualRouterName)); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + List _queryParameters = new List(); + if (apiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion))); + } + if (expand != null) + { + _queryParameters.Add(string.Format("$expand={0}", System.Uri.EscapeDataString(expand))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new ErrorException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + Error _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; + } + + /// + /// Updates a Virtual Router. + /// + /// + /// The resource group name of the Virtual Router. + /// + /// + /// The name of the Virtual Router being updated. + /// + /// + /// Parameters supplied to Update Virtual Router Tags. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task> UpdateWithHttpMessagesAsync(string resourceGroupName, string virtualRouterName, TagsObject parameters, 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 (virtualRouterName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "virtualRouterName"); + } + if (parameters == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "parameters"); + } + string apiVersion = "2019-07-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("virtualRouterName", virtualRouterName); + tracingParameters.Add("apiVersion", apiVersion); + tracingParameters.Add("parameters", parameters); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "Update", 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/virtualRouters/{virtualRouterName}").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{virtualRouterName}", System.Uri.EscapeDataString(virtualRouterName)); + List _queryParameters = new List(); + if (apiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("PATCH"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + if(parameters != null) + { + _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(parameters, Client.SerializationSettings); + _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); + _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); + } + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new ErrorException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + Error _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; + } + + /// + /// Creates or updates the specified Virtual Router. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the Virtual Router. + /// + /// + /// Parameters supplied to the create or update Virtual Router. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task> CreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string virtualRouterName, VirtualRouter parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send Request + AzureOperationResponse _response = await BeginCreateOrUpdateWithHttpMessagesAsync(resourceGroupName, virtualRouterName, parameters, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPutOrPatchOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + + /// + /// Lists all Virtual Routers in a resource group. + /// + /// + /// The name of the resource group. + /// + /// + /// 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>> ListByResourceGroupWithHttpMessagesAsync(string resourceGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + string apiVersion = "2019-07-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("apiVersion", apiVersion); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "ListByResourceGroup", 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/virtualRouters").ToString(); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _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 ErrorException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + Error _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; + } + + /// + /// Gets all the Virtual Routers in a subscription. + /// + /// + /// 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(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + string apiVersion = "2019-07-01"; + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + 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}/providers/Microsoft.Network/virtualRouters").ToString(); + _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 ErrorException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + Error _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 Virtual Router. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the Virtual Router. + /// + /// + /// 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 virtualRouterName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (virtualRouterName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "virtualRouterName"); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + string apiVersion = "2019-07-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("virtualRouterName", virtualRouterName); + 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/virtualRouters/{virtualRouterName}").ToString(); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{virtualRouterName}", System.Uri.EscapeDataString(virtualRouterName)); + _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 != 200 && (int)_statusCode != 202 && (int)_statusCode != 204) + { + var ex = new ErrorException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + Error _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; + } + + /// + /// Creates or updates the specified Virtual Router. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the Virtual Router. + /// + /// + /// Parameters supplied to the create or update Virtual Router. + /// + /// + /// 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 virtualRouterName, VirtualRouter parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (virtualRouterName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "virtualRouterName"); + } + 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-07-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("virtualRouterName", virtualRouterName); + 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/virtualRouters/{virtualRouterName}").ToString(); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{virtualRouterName}", System.Uri.EscapeDataString(virtualRouterName)); + _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 ErrorException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + Error _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; + } + + /// + /// Lists all Virtual Routers in a resource group. + /// + /// + /// 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>> ListByResourceGroupNextWithHttpMessagesAsync(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, "ListByResourceGroupNext", 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 ErrorException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + Error _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; + } + + /// + /// Gets all the Virtual Routers in a subscription. + /// + /// + /// 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 ErrorException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + Error _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/VirtualRoutersOperationsExtensions.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/VirtualRoutersOperationsExtensions.cs new file mode 100644 index 000000000000..0278a8ca61a3 --- /dev/null +++ b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/VirtualRoutersOperationsExtensions.cs @@ -0,0 +1,413 @@ +// +// 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 VirtualRoutersOperations. + /// + public static partial class VirtualRoutersOperationsExtensions + { + /// + /// Deletes the specified Virtual Router. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the Virtual Router. + /// + public static void Delete(this IVirtualRoutersOperations operations, string resourceGroupName, string virtualRouterName) + { + operations.DeleteAsync(resourceGroupName, virtualRouterName).GetAwaiter().GetResult(); + } + + /// + /// Deletes the specified Virtual Router. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the Virtual Router. + /// + /// + /// The cancellation token. + /// + public static async Task DeleteAsync(this IVirtualRoutersOperations operations, string resourceGroupName, string virtualRouterName, CancellationToken cancellationToken = default(CancellationToken)) + { + (await operations.DeleteWithHttpMessagesAsync(resourceGroupName, virtualRouterName, null, cancellationToken).ConfigureAwait(false)).Dispose(); + } + + /// + /// Gets the specified Virtual Router. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the Virtual Router. + /// + /// + /// Expands referenced resources. + /// + public static VirtualRouter Get(this IVirtualRoutersOperations operations, string resourceGroupName, string virtualRouterName, string expand = default(string)) + { + return operations.GetAsync(resourceGroupName, virtualRouterName, expand).GetAwaiter().GetResult(); + } + + /// + /// Gets the specified Virtual Router. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the Virtual Router. + /// + /// + /// Expands referenced resources. + /// + /// + /// The cancellation token. + /// + public static async Task GetAsync(this IVirtualRoutersOperations operations, string resourceGroupName, string virtualRouterName, string expand = default(string), CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.GetWithHttpMessagesAsync(resourceGroupName, virtualRouterName, expand, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Updates a Virtual Router. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The resource group name of the Virtual Router. + /// + /// + /// The name of the Virtual Router being updated. + /// + /// + /// Parameters supplied to Update Virtual Router Tags. + /// + public static VirtualRouter Update(this IVirtualRoutersOperations operations, string resourceGroupName, string virtualRouterName, TagsObject parameters) + { + return operations.UpdateAsync(resourceGroupName, virtualRouterName, parameters).GetAwaiter().GetResult(); + } + + /// + /// Updates a Virtual Router. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The resource group name of the Virtual Router. + /// + /// + /// The name of the Virtual Router being updated. + /// + /// + /// Parameters supplied to Update Virtual Router Tags. + /// + /// + /// The cancellation token. + /// + public static async Task UpdateAsync(this IVirtualRoutersOperations operations, string resourceGroupName, string virtualRouterName, TagsObject parameters, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.UpdateWithHttpMessagesAsync(resourceGroupName, virtualRouterName, parameters, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Creates or updates the specified Virtual Router. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the Virtual Router. + /// + /// + /// Parameters supplied to the create or update Virtual Router. + /// + public static VirtualRouter CreateOrUpdate(this IVirtualRoutersOperations operations, string resourceGroupName, string virtualRouterName, VirtualRouter parameters) + { + return operations.CreateOrUpdateAsync(resourceGroupName, virtualRouterName, parameters).GetAwaiter().GetResult(); + } + + /// + /// Creates or updates the specified Virtual Router. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the Virtual Router. + /// + /// + /// Parameters supplied to the create or update Virtual Router. + /// + /// + /// The cancellation token. + /// + public static async Task CreateOrUpdateAsync(this IVirtualRoutersOperations operations, string resourceGroupName, string virtualRouterName, VirtualRouter parameters, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.CreateOrUpdateWithHttpMessagesAsync(resourceGroupName, virtualRouterName, parameters, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Lists all Virtual Routers in a resource group. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. + /// + public static IPage ListByResourceGroup(this IVirtualRoutersOperations operations, string resourceGroupName) + { + return operations.ListByResourceGroupAsync(resourceGroupName).GetAwaiter().GetResult(); + } + + /// + /// Lists all Virtual Routers in a resource group. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. + /// + /// + /// The cancellation token. + /// + public static async Task> ListByResourceGroupAsync(this IVirtualRoutersOperations operations, string resourceGroupName, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListByResourceGroupWithHttpMessagesAsync(resourceGroupName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Gets all the Virtual Routers in a subscription. + /// + /// + /// The operations group for this extension method. + /// + public static IPage List(this IVirtualRoutersOperations operations) + { + return operations.ListAsync().GetAwaiter().GetResult(); + } + + /// + /// Gets all the Virtual Routers in a subscription. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The cancellation token. + /// + public static async Task> ListAsync(this IVirtualRoutersOperations operations, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListWithHttpMessagesAsync(null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Deletes the specified Virtual Router. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the Virtual Router. + /// + public static void BeginDelete(this IVirtualRoutersOperations operations, string resourceGroupName, string virtualRouterName) + { + operations.BeginDeleteAsync(resourceGroupName, virtualRouterName).GetAwaiter().GetResult(); + } + + /// + /// Deletes the specified Virtual Router. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the Virtual Router. + /// + /// + /// The cancellation token. + /// + public static async Task BeginDeleteAsync(this IVirtualRoutersOperations operations, string resourceGroupName, string virtualRouterName, CancellationToken cancellationToken = default(CancellationToken)) + { + (await operations.BeginDeleteWithHttpMessagesAsync(resourceGroupName, virtualRouterName, null, cancellationToken).ConfigureAwait(false)).Dispose(); + } + + /// + /// Creates or updates the specified Virtual Router. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the Virtual Router. + /// + /// + /// Parameters supplied to the create or update Virtual Router. + /// + public static VirtualRouter BeginCreateOrUpdate(this IVirtualRoutersOperations operations, string resourceGroupName, string virtualRouterName, VirtualRouter parameters) + { + return operations.BeginCreateOrUpdateAsync(resourceGroupName, virtualRouterName, parameters).GetAwaiter().GetResult(); + } + + /// + /// Creates or updates the specified Virtual Router. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the Virtual Router. + /// + /// + /// Parameters supplied to the create or update Virtual Router. + /// + /// + /// The cancellation token. + /// + public static async Task BeginCreateOrUpdateAsync(this IVirtualRoutersOperations operations, string resourceGroupName, string virtualRouterName, VirtualRouter parameters, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.BeginCreateOrUpdateWithHttpMessagesAsync(resourceGroupName, virtualRouterName, parameters, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Lists all Virtual Routers in a resource group. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + public static IPage ListByResourceGroupNext(this IVirtualRoutersOperations operations, string nextPageLink) + { + return operations.ListByResourceGroupNextAsync(nextPageLink).GetAwaiter().GetResult(); + } + + /// + /// Lists all Virtual Routers in a resource group. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// The cancellation token. + /// + public static async Task> ListByResourceGroupNextAsync(this IVirtualRoutersOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListByResourceGroupNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Gets all the Virtual Routers in a subscription. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + public static IPage ListNext(this IVirtualRoutersOperations operations, string nextPageLink) + { + return operations.ListNextAsync(nextPageLink).GetAwaiter().GetResult(); + } + + /// + /// Gets all the Virtual Routers in a subscription. + /// + /// + /// 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 IVirtualRoutersOperations 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/VirtualWANsOperations.cs b/sdk/network/Microsoft.Azure.Management.Network/src/Generated/VirtualWANsOperations.cs index e73ea313b2c2..b67c7988b47a 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-06-01"; + string apiVersion = "2019-07-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -349,7 +349,7 @@ internal VirtualWansOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); } - string apiVersion = "2019-06-01"; + string apiVersion = "2019-07-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -522,7 +522,7 @@ internal VirtualWansOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-06-01"; + string apiVersion = "2019-07-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -715,7 +715,7 @@ internal VirtualWansOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "wANParameters"); } - string apiVersion = "2019-06-01"; + string apiVersion = "2019-07-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -936,7 +936,7 @@ internal VirtualWansOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "wANParameters"); } - string apiVersion = "2019-06-01"; + string apiVersion = "2019-07-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1147,7 +1147,7 @@ internal VirtualWansOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "virtualWANName"); } - string apiVersion = "2019-06-01"; + string apiVersion = "2019-07-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 d5854de9c1c5..6f68f16d91e6 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-06-01"; + string apiVersion = "2019-07-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -346,7 +346,7 @@ internal VpnConnectionsOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "gatewayName"); } - string apiVersion = "2019-06-01"; + string apiVersion = "2019-07-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -550,7 +550,7 @@ internal VpnConnectionsOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "vpnConnectionParameters"); } - string apiVersion = "2019-06-01"; + string apiVersion = "2019-07-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -770,7 +770,7 @@ internal VpnConnectionsOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "connectionName"); } - string apiVersion = "2019-06-01"; + string apiVersion = "2019-07-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 3c86761d9ae6..1fdf30ed7317 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-06-01"; + string apiVersion = "2019-07-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -371,7 +371,7 @@ internal VpnGatewaysOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); } - string apiVersion = "2019-06-01"; + string apiVersion = "2019-07-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -544,7 +544,7 @@ internal VpnGatewaysOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-06-01"; + string apiVersion = "2019-07-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -737,7 +737,7 @@ internal VpnGatewaysOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "vpnGatewayParameters"); } - string apiVersion = "2019-06-01"; + string apiVersion = "2019-07-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -958,7 +958,7 @@ internal VpnGatewaysOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "vpnGatewayParameters"); } - string apiVersion = "2019-06-01"; + string apiVersion = "2019-07-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1169,7 +1169,7 @@ internal VpnGatewaysOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "gatewayName"); } - string apiVersion = "2019-06-01"; + string apiVersion = "2019-07-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1340,7 +1340,7 @@ internal VpnGatewaysOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-06-01"; + string apiVersion = "2019-07-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 3643fe2d2ad0..3564ac154178 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-06-01"; + string apiVersion = "2019-07-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 922803cc97f5..b87f0eca6a46 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-06-01"; + string apiVersion = "2019-07-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 eda0cb4cbd1f..322419577802 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-06-01"; + string apiVersion = "2019-07-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -292,7 +292,7 @@ internal VpnSiteLinksOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "vpnSiteName"); } - string apiVersion = "2019-06-01"; + string apiVersion = "2019-07-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 7d8fce4a55cb..991322b104ed 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-06-01"; + string apiVersion = "2019-07-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 852618142ed8..97cf946a87ff 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-06-01"; + string apiVersion = "2019-07-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -349,7 +349,7 @@ internal VpnSitesOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); } - string apiVersion = "2019-06-01"; + string apiVersion = "2019-07-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -522,7 +522,7 @@ internal VpnSitesOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-06-01"; + string apiVersion = "2019-07-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -715,7 +715,7 @@ internal VpnSitesOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "vpnSiteParameters"); } - string apiVersion = "2019-06-01"; + string apiVersion = "2019-07-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -936,7 +936,7 @@ internal VpnSitesOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "vpnSiteParameters"); } - string apiVersion = "2019-06-01"; + string apiVersion = "2019-07-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1147,7 +1147,7 @@ internal VpnSitesOperations(NetworkManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "vpnSiteName"); } - string apiVersion = "2019-06-01"; + string apiVersion = "2019-07-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 2df997a6e3d2..46b73df1b529 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-06-01"; + string apiVersion = "2019-07-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-06-01"; + string apiVersion = "2019-07-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-06-01"; + string apiVersion = "2019-07-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -671,7 +671,7 @@ internal WebApplicationFirewallPoliciesOperations(NetworkManagementClient client { throw new ValidationException(ValidationRules.CannotBeNull, "parameters"); } - string apiVersion = "2019-06-01"; + string apiVersion = "2019-07-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -916,7 +916,7 @@ internal WebApplicationFirewallPoliciesOperations(NetworkManagementClient client { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2019-06-01"; + string apiVersion = "2019-07-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 03577b2cd5f8..075446df4e18 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,7 +7,7 @@ Microsoft.Azure.Management.Network Provides management capabilities for Network services. Microsoft.Azure.Management.Network - 19.13.1-preview + 19.14.1-preview Microsoft Azure Network management;Network;Network management;