Skip to content

Commit

Permalink
Network SDK version 2018-12-01 (Azure#5247)
Browse files Browse the repository at this point in the history
  • Loading branch information
anton-evseev authored and mentat9 committed Jun 10, 2019
1 parent f32474c commit a9a12b0
Show file tree
Hide file tree
Showing 98 changed files with 1,175 additions and 629 deletions.
2 changes: 1 addition & 1 deletion src/SDKs/Network/AzSdk.RP.props
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<!--This file and it's contents are updated at build time moving or editing might result in build failure. Take due deligence while editing this file-->
<PropertyGroup>
<AzureApiTag>Compute_2017-03-30;Network_2018-11-01;</AzureApiTag>
<AzureApiTag>Compute_2017-03-30;Network_2018-12-01;</AzureApiTag>
<PackageTags>$(PackageTags);$(CommonTags);$(AzureApiTag);</PackageTags>
</PropertyGroup>
</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ internal ApplicationGatewaysOperations(NetworkManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
string apiVersion = "2018-11-01";
string apiVersion = "2018-12-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
Expand Down Expand Up @@ -353,7 +353,7 @@ internal ApplicationGatewaysOperations(NetworkManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
string apiVersion = "2018-11-01";
string apiVersion = "2018-12-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
Expand Down Expand Up @@ -531,7 +531,7 @@ internal ApplicationGatewaysOperations(NetworkManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
string apiVersion = "2018-11-01";
string apiVersion = "2018-12-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
Expand Down Expand Up @@ -772,13 +772,13 @@ internal ApplicationGatewaysOperations(NetworkManagementClient client)
/// <return>
/// A response object containing the response body and response headers.
/// </return>
public async Task<AzureOperationResponse<ApplicationGatewayAvailableServerVariablesResult>> ListAvailableServerVariablesWithHttpMessagesAsync(Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
public async Task<AzureOperationResponse<IList<string>>> ListAvailableServerVariablesWithHttpMessagesAsync(Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
{
if (Client.SubscriptionId == null)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
string apiVersion = "2018-11-01";
string apiVersion = "2018-12-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
Expand Down Expand Up @@ -887,7 +887,7 @@ internal ApplicationGatewaysOperations(NetworkManagementClient client)
throw ex;
}
// Create Result
var _result = new AzureOperationResponse<ApplicationGatewayAvailableServerVariablesResult>();
var _result = new AzureOperationResponse<IList<string>>();
_result.Request = _httpRequest;
_result.Response = _httpResponse;
if (_httpResponse.Headers.Contains("x-ms-request-id"))
Expand All @@ -900,7 +900,7 @@ internal ApplicationGatewaysOperations(NetworkManagementClient client)
_responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
try
{
_result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject<ApplicationGatewayAvailableServerVariablesResult>(_responseContent, Client.DeserializationSettings);
_result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject<IList<string>>(_responseContent, Client.DeserializationSettings);
}
catch (JsonException ex)
{
Expand Down Expand Up @@ -943,13 +943,13 @@ internal ApplicationGatewaysOperations(NetworkManagementClient client)
/// <return>
/// A response object containing the response body and response headers.
/// </return>
public async Task<AzureOperationResponse<ApplicationGatewayAvailableRequestHeadersResult>> ListAvailableRequestHeadersWithHttpMessagesAsync(Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
public async Task<AzureOperationResponse<IList<string>>> ListAvailableRequestHeadersWithHttpMessagesAsync(Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
{
if (Client.SubscriptionId == null)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
string apiVersion = "2018-11-01";
string apiVersion = "2018-12-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
Expand Down Expand Up @@ -1058,7 +1058,7 @@ internal ApplicationGatewaysOperations(NetworkManagementClient client)
throw ex;
}
// Create Result
var _result = new AzureOperationResponse<ApplicationGatewayAvailableRequestHeadersResult>();
var _result = new AzureOperationResponse<IList<string>>();
_result.Request = _httpRequest;
_result.Response = _httpResponse;
if (_httpResponse.Headers.Contains("x-ms-request-id"))
Expand All @@ -1071,7 +1071,7 @@ internal ApplicationGatewaysOperations(NetworkManagementClient client)
_responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
try
{
_result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject<ApplicationGatewayAvailableRequestHeadersResult>(_responseContent, Client.DeserializationSettings);
_result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject<IList<string>>(_responseContent, Client.DeserializationSettings);
}
catch (JsonException ex)
{
Expand Down Expand Up @@ -1114,13 +1114,13 @@ internal ApplicationGatewaysOperations(NetworkManagementClient client)
/// <return>
/// A response object containing the response body and response headers.
/// </return>
public async Task<AzureOperationResponse<ApplicationGatewayAvailableResponseHeadersResult>> ListAvailableResponseHeadersWithHttpMessagesAsync(Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
public async Task<AzureOperationResponse<IList<string>>> ListAvailableResponseHeadersWithHttpMessagesAsync(Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
{
if (Client.SubscriptionId == null)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
string apiVersion = "2018-11-01";
string apiVersion = "2018-12-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
Expand Down Expand Up @@ -1229,7 +1229,7 @@ internal ApplicationGatewaysOperations(NetworkManagementClient client)
throw ex;
}
// Create Result
var _result = new AzureOperationResponse<ApplicationGatewayAvailableResponseHeadersResult>();
var _result = new AzureOperationResponse<IList<string>>();
_result.Request = _httpRequest;
_result.Response = _httpResponse;
if (_httpResponse.Headers.Contains("x-ms-request-id"))
Expand All @@ -1242,7 +1242,7 @@ internal ApplicationGatewaysOperations(NetworkManagementClient client)
_responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
try
{
_result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject<ApplicationGatewayAvailableResponseHeadersResult>(_responseContent, Client.DeserializationSettings);
_result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject<IList<string>>(_responseContent, Client.DeserializationSettings);
}
catch (JsonException ex)
{
Expand Down Expand Up @@ -1291,7 +1291,7 @@ internal ApplicationGatewaysOperations(NetworkManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
string apiVersion = "2018-11-01";
string apiVersion = "2018-12-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
Expand Down Expand Up @@ -1467,7 +1467,7 @@ internal ApplicationGatewaysOperations(NetworkManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
string apiVersion = "2018-11-01";
string apiVersion = "2018-12-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
Expand Down Expand Up @@ -1643,7 +1643,7 @@ internal ApplicationGatewaysOperations(NetworkManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
string apiVersion = "2018-11-01";
string apiVersion = "2018-12-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
Expand Down Expand Up @@ -1826,7 +1826,7 @@ internal ApplicationGatewaysOperations(NetworkManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "predefinedPolicyName");
}
string apiVersion = "2018-11-01";
string apiVersion = "2018-12-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
Expand Down Expand Up @@ -2015,7 +2015,7 @@ internal ApplicationGatewaysOperations(NetworkManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
string apiVersion = "2018-11-01";
string apiVersion = "2018-12-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
Expand Down Expand Up @@ -2202,7 +2202,7 @@ internal ApplicationGatewaysOperations(NetworkManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
string apiVersion = "2018-11-01";
string apiVersion = "2018-12-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
Expand Down Expand Up @@ -2428,7 +2428,7 @@ internal ApplicationGatewaysOperations(NetworkManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
string apiVersion = "2018-11-01";
string apiVersion = "2018-12-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
Expand Down Expand Up @@ -2626,7 +2626,7 @@ internal ApplicationGatewaysOperations(NetworkManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
string apiVersion = "2018-11-01";
string apiVersion = "2018-12-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
Expand Down Expand Up @@ -2799,7 +2799,7 @@ internal ApplicationGatewaysOperations(NetworkManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
string apiVersion = "2018-11-01";
string apiVersion = "2018-12-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
Expand Down Expand Up @@ -2980,7 +2980,7 @@ internal ApplicationGatewaysOperations(NetworkManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
string apiVersion = "2018-11-01";
string apiVersion = "2018-12-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ 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;

Expand Down Expand Up @@ -382,7 +384,7 @@ public static void Stop(this IApplicationGatewaysOperations operations, string r
/// <param name='operations'>
/// The operations group for this extension method.
/// </param>
public static ApplicationGatewayAvailableServerVariablesResult ListAvailableServerVariables(this IApplicationGatewaysOperations operations)
public static IList<string> ListAvailableServerVariables(this IApplicationGatewaysOperations operations)
{
return operations.ListAvailableServerVariablesAsync().GetAwaiter().GetResult();
}
Expand All @@ -396,7 +398,7 @@ public static ApplicationGatewayAvailableServerVariablesResult ListAvailableServ
/// <param name='cancellationToken'>
/// The cancellation token.
/// </param>
public static async Task<ApplicationGatewayAvailableServerVariablesResult> ListAvailableServerVariablesAsync(this IApplicationGatewaysOperations operations, CancellationToken cancellationToken = default(CancellationToken))
public static async Task<IList<string>> ListAvailableServerVariablesAsync(this IApplicationGatewaysOperations operations, CancellationToken cancellationToken = default(CancellationToken))
{
using (var _result = await operations.ListAvailableServerVariablesWithHttpMessagesAsync(null, cancellationToken).ConfigureAwait(false))
{
Expand All @@ -410,7 +412,7 @@ public static ApplicationGatewayAvailableServerVariablesResult ListAvailableServ
/// <param name='operations'>
/// The operations group for this extension method.
/// </param>
public static ApplicationGatewayAvailableRequestHeadersResult ListAvailableRequestHeaders(this IApplicationGatewaysOperations operations)
public static IList<string> ListAvailableRequestHeaders(this IApplicationGatewaysOperations operations)
{
return operations.ListAvailableRequestHeadersAsync().GetAwaiter().GetResult();
}
Expand All @@ -424,7 +426,7 @@ public static ApplicationGatewayAvailableRequestHeadersResult ListAvailableReque
/// <param name='cancellationToken'>
/// The cancellation token.
/// </param>
public static async Task<ApplicationGatewayAvailableRequestHeadersResult> ListAvailableRequestHeadersAsync(this IApplicationGatewaysOperations operations, CancellationToken cancellationToken = default(CancellationToken))
public static async Task<IList<string>> ListAvailableRequestHeadersAsync(this IApplicationGatewaysOperations operations, CancellationToken cancellationToken = default(CancellationToken))
{
using (var _result = await operations.ListAvailableRequestHeadersWithHttpMessagesAsync(null, cancellationToken).ConfigureAwait(false))
{
Expand All @@ -438,7 +440,7 @@ public static ApplicationGatewayAvailableRequestHeadersResult ListAvailableReque
/// <param name='operations'>
/// The operations group for this extension method.
/// </param>
public static ApplicationGatewayAvailableResponseHeadersResult ListAvailableResponseHeaders(this IApplicationGatewaysOperations operations)
public static IList<string> ListAvailableResponseHeaders(this IApplicationGatewaysOperations operations)
{
return operations.ListAvailableResponseHeadersAsync().GetAwaiter().GetResult();
}
Expand All @@ -452,7 +454,7 @@ public static ApplicationGatewayAvailableResponseHeadersResult ListAvailableResp
/// <param name='cancellationToken'>
/// The cancellation token.
/// </param>
public static async Task<ApplicationGatewayAvailableResponseHeadersResult> ListAvailableResponseHeadersAsync(this IApplicationGatewaysOperations operations, CancellationToken cancellationToken = default(CancellationToken))
public static async Task<IList<string>> ListAvailableResponseHeadersAsync(this IApplicationGatewaysOperations operations, CancellationToken cancellationToken = default(CancellationToken))
{
using (var _result = await operations.ListAvailableResponseHeadersWithHttpMessagesAsync(null, cancellationToken).ConfigureAwait(false))
{
Expand Down
Loading

0 comments on commit a9a12b0

Please sign in to comment.