Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[AutoPR Microsoft.Azure.Management.Compute] [Compute] Add missing $expand parameter to AvSet list by subscription API #165

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -840,6 +840,9 @@ internal AvailabilitySetsOperations(ComputeManagementClient client)
/// <summary>
/// Lists all availability sets in a subscription.
/// </summary>
/// <param name='expand'>
/// The expand expression to apply to the operation.
/// </param>
/// <param name='customHeaders'>
/// Headers that will be added to request.
/// </param>
Expand All @@ -861,7 +864,7 @@ internal AvailabilitySetsOperations(ComputeManagementClient client)
/// <return>
/// A response object containing the response body and response headers.
/// </return>
public async Task<AzureOperationResponse<IPage<AvailabilitySet>>> ListBySubscriptionWithHttpMessagesAsync(Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
public async Task<AzureOperationResponse<IPage<AvailabilitySet>>> ListBySubscriptionWithHttpMessagesAsync(string expand = default(string), Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
{
if (Client.SubscriptionId == null)
{
Expand All @@ -876,6 +879,7 @@ internal AvailabilitySetsOperations(ComputeManagementClient client)
_invocationId = ServiceClientTracing.NextInvocationId.ToString();
Dictionary<string, object> tracingParameters = new Dictionary<string, object>();
tracingParameters.Add("apiVersion", apiVersion);
tracingParameters.Add("expand", expand);
tracingParameters.Add("cancellationToken", cancellationToken);
ServiceClientTracing.Enter(_invocationId, this, "ListBySubscription", tracingParameters);
}
Expand All @@ -888,6 +892,10 @@ internal AvailabilitySetsOperations(ComputeManagementClient client)
{
_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);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -198,9 +198,12 @@ public static AvailabilitySet Get(this IAvailabilitySetsOperations operations, s
/// <param name='operations'>
/// The operations group for this extension method.
/// </param>
public static IPage<AvailabilitySet> ListBySubscription(this IAvailabilitySetsOperations operations)
/// <param name='expand'>
/// The expand expression to apply to the operation.
/// </param>
public static IPage<AvailabilitySet> ListBySubscription(this IAvailabilitySetsOperations operations, string expand = default(string))
{
return operations.ListBySubscriptionAsync().GetAwaiter().GetResult();
return operations.ListBySubscriptionAsync(expand).GetAwaiter().GetResult();
}

/// <summary>
Expand All @@ -209,12 +212,15 @@ public static IPage<AvailabilitySet> ListBySubscription(this IAvailabilitySetsOp
/// <param name='operations'>
/// The operations group for this extension method.
/// </param>
/// <param name='expand'>
/// The expand expression to apply to the operation.
/// </param>
/// <param name='cancellationToken'>
/// The cancellation token.
/// </param>
public static async Task<IPage<AvailabilitySet>> ListBySubscriptionAsync(this IAvailabilitySetsOperations operations, CancellationToken cancellationToken = default(CancellationToken))
public static async Task<IPage<AvailabilitySet>> ListBySubscriptionAsync(this IAvailabilitySetsOperations operations, string expand = default(string), CancellationToken cancellationToken = default(CancellationToken))
{
using (var _result = await operations.ListBySubscriptionWithHttpMessagesAsync(null, cancellationToken).ConfigureAwait(false))
using (var _result = await operations.ListBySubscriptionWithHttpMessagesAsync(expand, null, cancellationToken).ConfigureAwait(false))
{
return _result.Body;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,9 @@ public partial interface IAvailabilitySetsOperations
/// <summary>
/// Lists all availability sets in a subscription.
/// </summary>
/// <param name='expand'>
/// The expand expression to apply to the operation.
/// </param>
/// <param name='customHeaders'>
/// The headers that will be added to request.
/// </param>
Expand All @@ -144,7 +147,7 @@ public partial interface IAvailabilitySetsOperations
/// <exception cref="Microsoft.Rest.ValidationException">
/// Thrown when a required parameter is null
/// </exception>
Task<AzureOperationResponse<IPage<AvailabilitySet>>> ListBySubscriptionWithHttpMessagesAsync(Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
Task<AzureOperationResponse<IPage<AvailabilitySet>>> ListBySubscriptionWithHttpMessagesAsync(string expand = default(string), Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
/// <summary>
/// Lists all availability sets in a resource group.
/// </summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,16 +49,5 @@ public static IEnumerable<Tuple<string, string, string>> ApiInfo_ComputeManageme
}.AsEnumerable();
}
}
// BEGIN: Code Generation Metadata Section
public static readonly String AutoRestVersion = "latest";
public static readonly String AutoRestBootStrapperVersion = "autorest@2.0.4283";
public static readonly String AutoRestCmdExecuted = "cmd.exe /c autorest.cmd https://github.com/Azure/azure-rest-api-specs/blob/master/specification/compute/resource-manager/readme.md --csharp --version=latest --reflect-api-versions --csharp-sdks-folder=C:\\Users\\jopolloc\\codebase\\azure-sdk-for-net\\sdk";
public static readonly String GithubForkName = "Azure";
public static readonly String GithubBranchName = "master";
public static readonly String GithubCommidId = "86796b0f17d82b046fddbc7cce463a159774f6d6";
public static readonly String CodeGenerationErrors = "";
public static readonly String GithubRepoName = "azure-rest-api-specs";
// END: Code Generation Metadata Section
}
}

Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,10 @@ public partial interface IServiceTagsOperations
/// Gets a list of service tag information resources.
/// </summary>
/// <param name='location'>
/// 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).
/// </param>
/// <param name='customHeaders'>
/// The headers that will be added to request.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -108,16 +108,5 @@ public static IEnumerable<Tuple<string, string, string>> ApiInfo_NetworkManageme
}.AsEnumerable();
}
}
// BEGIN: Code Generation Metadata Section
public static readonly String AutoRestVersion = "latest";
public static readonly String AutoRestBootStrapperVersion = "autorest@2.0.4283";
public static readonly String AutoRestCmdExecuted = "cmd.exe /c autorest.cmd https://github.com/Azure/azure-rest-api-specs/blob/master/specification/network/resource-manager/readme.md --csharp --version=latest --reflect-api-versions --csharp-sdks-folder=D:\\Projects\\azure-sdk-for-net\\sdk";
public static readonly String GithubForkName = "Azure";
public static readonly String GithubBranchName = "master";
public static readonly String GithubCommidId = "9dacca31bc76fc9cc1f59ee62ed1ab1c8f0d61c6";
public static readonly String CodeGenerationErrors = "";
public static readonly String GithubRepoName = "azure-rest-api-specs";
// END: Code Generation Metadata Section
}
}

Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,10 @@ internal ServiceTagsOperations(NetworkManagementClient client)
/// Gets a list of service tag information resources.
/// </summary>
/// <param name='location'>
/// 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).
/// </param>
/// <param name='customHeaders'>
/// Headers that will be added to request.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,10 @@ public static partial class ServiceTagsOperationsExtensions
/// The operations group for this extension method.
/// </param>
/// <param name='location'>
/// 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).
/// </param>
public static ServiceTagsListResult List(this IServiceTagsOperations operations, string location)
{
Expand All @@ -42,7 +45,10 @@ public static ServiceTagsListResult List(this IServiceTagsOperations operations,
/// The operations group for this extension method.
/// </param>
/// <param name='location'>
/// 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).
/// </param>
/// <param name='cancellationToken'>
/// The cancellation token.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
// <auto-generated>
// 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.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
// <auto-generated>
// 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.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
// <auto-generated>
// 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.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
// <auto-generated>
// 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.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
// <auto-generated>
// 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.
Expand All @@ -16,7 +20,7 @@ namespace Microsoft.Azure.Management.Peering
using System.Threading.Tasks;

/// <summary>
/// APIs to manage Peering resources through the Azure Resource Manager.
/// Peering Client
/// </summary>
public partial interface IPeeringManagementClient : System.IDisposable
{
Expand Down Expand Up @@ -123,17 +127,19 @@ public partial interface IPeeringManagementClient : System.IDisposable
/// Checks if the peering service provider is present within 1000 miles
/// of customer's location
/// </summary>
/// <param name='checkServiceProviderAvailabilityInput'>
/// The CheckServiceProviderAvailabilityInput
/// indicating customer location and service provider.
/// <param name='peeringServiceLocation'>
/// Gets or sets the PeeringServiceLocation
/// </param>
/// <param name='peeringServiceProvider'>
/// Gets or sets the PeeringServiceProvider
/// </param>
/// <param name='customHeaders'>
/// The headers that will be added to request.
/// </param>
/// <param name='cancellationToken'>
/// The cancellation token.
/// </param>
Task<AzureOperationResponse<string>> CheckServiceProviderAvailabilityWithHttpMessagesAsync(CheckServiceProviderAvailabilityInput checkServiceProviderAvailabilityInput, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
Task<AzureOperationResponse<string>> CheckServiceProviderAvailabilityWithHttpMessagesAsync(string peeringServiceLocation = default(string), string peeringServiceProvider = default(string), Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));

}
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
// <auto-generated>
// 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.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
// <auto-generated>
// 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.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
// <auto-generated>
// 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.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
// <auto-generated>
// 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.
Expand Down Expand Up @@ -108,7 +112,7 @@ public partial interface IPeeringServicesOperations
/// The name of the peering service.
/// </param>
/// <param name='tags'>
/// The resource tags.
/// Gets or sets the tags, a dictionary of descriptors arm object
/// </param>
/// <param name='customHeaders'>
/// The headers that will be added to request.
Expand All @@ -125,7 +129,7 @@ public partial interface IPeeringServicesOperations
/// <exception cref="Microsoft.Rest.ValidationException">
/// Thrown when a required parameter is null
/// </exception>
Task<AzureOperationResponse<PeeringService>> UpdateWithHttpMessagesAsync(string resourceGroupName, string peeringServiceName, ResourceTags tags, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
Task<AzureOperationResponse<PeeringService>> UpdateWithHttpMessagesAsync(string resourceGroupName, string peeringServiceName, IDictionary<string, string> tags = default(IDictionary<string, string>), Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
/// <summary>
/// Lists all of the peering services under the given subscription and
/// resource group.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
// <auto-generated>
// 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.
Expand Down Expand Up @@ -108,7 +112,7 @@ public partial interface IPeeringsOperations
/// The name of the peering.
/// </param>
/// <param name='tags'>
/// The resource tags.
/// Gets or sets the tags, a dictionary of descriptors arm object
/// </param>
/// <param name='customHeaders'>
/// The headers that will be added to request.
Expand All @@ -125,7 +129,7 @@ public partial interface IPeeringsOperations
/// <exception cref="Microsoft.Rest.ValidationException">
/// Thrown when a required parameter is null
/// </exception>
Task<AzureOperationResponse<PeeringModel>> UpdateWithHttpMessagesAsync(string resourceGroupName, string peeringName, ResourceTags tags, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
Task<AzureOperationResponse<PeeringModel>> UpdateWithHttpMessagesAsync(string resourceGroupName, string peeringName, IDictionary<string, string> tags = default(IDictionary<string, string>), Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
/// <summary>
/// Lists all of the peerings under the given subscription and resource
/// group.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
// <auto-generated>
// 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.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
// <auto-generated>
// 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.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
// <auto-generated>
// 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.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
// <auto-generated>
// 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.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
// <auto-generated>
// 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.
Expand Down
Loading