forked from Azure/azure-sdk-for-net
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Api2017 08 01- Regenerating SDK to fix Network Swagger issue: both LR…
…O and Paging at the same time (Azure#3594) * SDK generated for networking version 2017-08-01 * Disabling network tests * regenerated SDK
- Loading branch information
1 parent
bf717a2
commit 5a8b476
Showing
14 changed files
with
885 additions
and
633 deletions.
There are no files selected for viewing
412 changes: 412 additions & 0 deletions
412
src/SDKs/Network/Management.Network/Generated/AvailableEndpointServicesOperations.cs
Large diffs are not rendered by default.
Oops, something went wrong.
93 changes: 93 additions & 0 deletions
93
...DKs/Network/Management.Network/Generated/AvailableEndpointServicesOperationsExtensions.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,93 @@ | ||
// 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.Azure; | ||
using Microsoft.Azure.Management; | ||
using Microsoft.Rest; | ||
using Microsoft.Rest.Azure; | ||
using Models; | ||
using System.Threading; | ||
using System.Threading.Tasks; | ||
|
||
/// <summary> | ||
/// Extension methods for AvailableEndpointServicesOperations. | ||
/// </summary> | ||
public static partial class AvailableEndpointServicesOperationsExtensions | ||
{ | ||
/// <summary> | ||
/// List what values of endpoint services are available for use. | ||
/// </summary> | ||
/// <param name='operations'> | ||
/// The operations group for this extension method. | ||
/// </param> | ||
/// <param name='location'> | ||
/// The location to check available endpoint services. | ||
/// </param> | ||
public static IPage<EndpointServiceResult> List(this IAvailableEndpointServicesOperations operations, string location) | ||
{ | ||
return operations.ListAsync(location).GetAwaiter().GetResult(); | ||
} | ||
|
||
/// <summary> | ||
/// List what values of endpoint services are available for use. | ||
/// </summary> | ||
/// <param name='operations'> | ||
/// The operations group for this extension method. | ||
/// </param> | ||
/// <param name='location'> | ||
/// The location to check available endpoint services. | ||
/// </param> | ||
/// <param name='cancellationToken'> | ||
/// The cancellation token. | ||
/// </param> | ||
public static async Task<IPage<EndpointServiceResult>> ListAsync(this IAvailableEndpointServicesOperations operations, string location, CancellationToken cancellationToken = default(CancellationToken)) | ||
{ | ||
using (var _result = await operations.ListWithHttpMessagesAsync(location, null, cancellationToken).ConfigureAwait(false)) | ||
{ | ||
return _result.Body; | ||
} | ||
} | ||
|
||
/// <summary> | ||
/// List what values of endpoint services are available for use. | ||
/// </summary> | ||
/// <param name='operations'> | ||
/// The operations group for this extension method. | ||
/// </param> | ||
/// <param name='nextPageLink'> | ||
/// The NextLink from the previous successful call to List operation. | ||
/// </param> | ||
public static IPage<EndpointServiceResult> ListNext(this IAvailableEndpointServicesOperations operations, string nextPageLink) | ||
{ | ||
return operations.ListNextAsync(nextPageLink).GetAwaiter().GetResult(); | ||
} | ||
|
||
/// <summary> | ||
/// List what values of endpoint services are available for use. | ||
/// </summary> | ||
/// <param name='operations'> | ||
/// The operations group for this extension method. | ||
/// </param> | ||
/// <param name='nextPageLink'> | ||
/// The NextLink from the previous successful call to List operation. | ||
/// </param> | ||
/// <param name='cancellationToken'> | ||
/// The cancellation token. | ||
/// </param> | ||
public static async Task<IPage<EndpointServiceResult>> ListNextAsync(this IAvailableEndpointServicesOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) | ||
{ | ||
using (var _result = await operations.ListNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) | ||
{ | ||
return _result.Body; | ||
} | ||
} | ||
|
||
} | ||
} |
71 changes: 71 additions & 0 deletions
71
src/SDKs/Network/Management.Network/Generated/IAvailableEndpointServicesOperations.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
// 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.Azure; | ||
using Microsoft.Azure.Management; | ||
using Microsoft.Rest; | ||
using Microsoft.Rest.Azure; | ||
using Models; | ||
using System.Collections; | ||
using System.Collections.Generic; | ||
using System.Threading; | ||
using System.Threading.Tasks; | ||
|
||
/// <summary> | ||
/// AvailableEndpointServicesOperations operations. | ||
/// </summary> | ||
public partial interface IAvailableEndpointServicesOperations | ||
{ | ||
/// <summary> | ||
/// List what values of endpoint services are available for use. | ||
/// </summary> | ||
/// <param name='location'> | ||
/// The location to check available endpoint services. | ||
/// </param> | ||
/// <param name='customHeaders'> | ||
/// The headers that will be added to request. | ||
/// </param> | ||
/// <param name='cancellationToken'> | ||
/// The cancellation token. | ||
/// </param> | ||
/// <exception cref="Microsoft.Rest.Azure.CloudException"> | ||
/// Thrown when the operation returned an invalid status code | ||
/// </exception> | ||
/// <exception cref="Microsoft.Rest.SerializationException"> | ||
/// Thrown when unable to deserialize the response | ||
/// </exception> | ||
/// <exception cref="Microsoft.Rest.ValidationException"> | ||
/// Thrown when a required parameter is null | ||
/// </exception> | ||
Task<AzureOperationResponse<IPage<EndpointServiceResult>>> ListWithHttpMessagesAsync(string location, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); | ||
/// <summary> | ||
/// List what values of endpoint services are available for use. | ||
/// </summary> | ||
/// <param name='nextPageLink'> | ||
/// The NextLink from the previous successful call to List operation. | ||
/// </param> | ||
/// <param name='customHeaders'> | ||
/// The headers that will be added to request. | ||
/// </param> | ||
/// <param name='cancellationToken'> | ||
/// The cancellation token. | ||
/// </param> | ||
/// <exception cref="Microsoft.Rest.Azure.CloudException"> | ||
/// Thrown when the operation returned an invalid status code | ||
/// </exception> | ||
/// <exception cref="Microsoft.Rest.SerializationException"> | ||
/// Thrown when unable to deserialize the response | ||
/// </exception> | ||
/// <exception cref="Microsoft.Rest.ValidationException"> | ||
/// Thrown when a required parameter is null | ||
/// </exception> | ||
Task<AzureOperationResponse<IPage<EndpointServiceResult>>> ListNextWithHttpMessagesAsync(string nextPageLink, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
66 changes: 66 additions & 0 deletions
66
...Ks/Network/Management.Network/Generated/Models/EffectiveNetworkSecurityGroupListResult.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
// Copyright (c) Microsoft Corporation. All rights reserved. | ||
// Licensed under the MIT License. See License.txt in the project root for | ||
// license information. | ||
// | ||
// Code generated by Microsoft (R) AutoRest Code Generator. | ||
// Changes may cause incorrect behavior and will be lost if the code is | ||
// regenerated. | ||
|
||
namespace Microsoft.Azure.Management.Network.Models | ||
{ | ||
using Microsoft.Azure; | ||
using Microsoft.Azure.Management; | ||
using Microsoft.Azure.Management.Network; | ||
using Newtonsoft.Json; | ||
using System.Collections; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
|
||
/// <summary> | ||
/// Response for list effective network security groups API service call. | ||
/// </summary> | ||
public partial class EffectiveNetworkSecurityGroupListResult | ||
{ | ||
/// <summary> | ||
/// Initializes a new instance of the | ||
/// EffectiveNetworkSecurityGroupListResult class. | ||
/// </summary> | ||
public EffectiveNetworkSecurityGroupListResult() | ||
{ | ||
CustomInit(); | ||
} | ||
|
||
/// <summary> | ||
/// Initializes a new instance of the | ||
/// EffectiveNetworkSecurityGroupListResult class. | ||
/// </summary> | ||
/// <param name="value">A list of effective network security | ||
/// groups.</param> | ||
/// <param name="nextLink">The URL to get the next set of | ||
/// results.</param> | ||
public EffectiveNetworkSecurityGroupListResult(IList<EffectiveNetworkSecurityGroup> value = default(IList<EffectiveNetworkSecurityGroup>), string nextLink = default(string)) | ||
{ | ||
Value = value; | ||
NextLink = nextLink; | ||
CustomInit(); | ||
} | ||
|
||
/// <summary> | ||
/// An initialization method that performs custom operations like setting defaults | ||
/// </summary> | ||
partial void CustomInit(); | ||
|
||
/// <summary> | ||
/// Gets or sets a list of effective network security groups. | ||
/// </summary> | ||
[JsonProperty(PropertyName = "value")] | ||
public IList<EffectiveNetworkSecurityGroup> Value { get; set; } | ||
|
||
/// <summary> | ||
/// Gets the URL to get the next set of results. | ||
/// </summary> | ||
[JsonProperty(PropertyName = "nextLink")] | ||
public string NextLink { get; private set; } | ||
|
||
} | ||
} |
Oops, something went wrong.