From 97fd941f339e3409ae3adb0f6fc54c93d58d4fb4 Mon Sep 17 00:00:00 2001
From: "openapi-bot[bot]" <37845953+openapi-bot[bot]@users.noreply.github.com>
Date: Fri, 30 Aug 2019 09:04:47 +0000
Subject: [PATCH] [AutoPR Microsoft.Azure.Management.Compute] [Compute] Add
missing $expand parameter to AvSet list by subscription API (#165)
* Generated from cce264ba7c751076c58518d67e19b9e469832c0c (#136)
Update ListLegacyPeerings.json
* Generated from 92006e420d65cb70e4b93bc5850af575da4efb78 (#162)
Mark "provisioningState" as read-only
* Generated from ed6acf4e35d75fc3c1c9e617b7131e83b6f59384
Add missing $expand parameter to AvSet list by subscription API
---
.../src/Generated/AvailabilitySetsOperations.cs | 10 +++++++++-
.../AvailabilitySetsOperationsExtensions.cs | 14 ++++++++++----
.../src/Generated/IAvailabilitySetsOperations.cs | 5 ++++-
.../Generated/SdkInfo_ComputeManagementClient.cs | 11 -----------
4 files changed, 23 insertions(+), 17 deletions(-)
diff --git a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/AvailabilitySetsOperations.cs b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/AvailabilitySetsOperations.cs
index e37c477a11b8d..a4b8f9ca052f8 100644
--- a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/AvailabilitySetsOperations.cs
+++ b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/AvailabilitySetsOperations.cs
@@ -840,6 +840,9 @@ internal AvailabilitySetsOperations(ComputeManagementClient client)
///
/// Lists all availability sets in a subscription.
///
+ ///
+ /// The expand expression to apply to the operation.
+ ///
///
/// Headers that will be added to request.
///
@@ -861,7 +864,7 @@ internal AvailabilitySetsOperations(ComputeManagementClient client)
///
/// A response object containing the response body and response headers.
///
- public async Task>> ListBySubscriptionWithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ public async Task>> ListBySubscriptionWithHttpMessagesAsync(string expand = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
{
if (Client.SubscriptionId == null)
{
@@ -876,6 +879,7 @@ internal AvailabilitySetsOperations(ComputeManagementClient client)
_invocationId = ServiceClientTracing.NextInvocationId.ToString();
Dictionary tracingParameters = new Dictionary();
tracingParameters.Add("apiVersion", apiVersion);
+ tracingParameters.Add("expand", expand);
tracingParameters.Add("cancellationToken", cancellationToken);
ServiceClientTracing.Enter(_invocationId, this, "ListBySubscription", tracingParameters);
}
@@ -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);
diff --git a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/AvailabilitySetsOperationsExtensions.cs b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/AvailabilitySetsOperationsExtensions.cs
index 4b4c42ed55c4c..40f7df6e1190e 100644
--- a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/AvailabilitySetsOperationsExtensions.cs
+++ b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/AvailabilitySetsOperationsExtensions.cs
@@ -198,9 +198,12 @@ public static AvailabilitySet Get(this IAvailabilitySetsOperations operations, s
///
/// The operations group for this extension method.
///
- public static IPage ListBySubscription(this IAvailabilitySetsOperations operations)
+ ///
+ /// The expand expression to apply to the operation.
+ ///
+ public static IPage ListBySubscription(this IAvailabilitySetsOperations operations, string expand = default(string))
{
- return operations.ListBySubscriptionAsync().GetAwaiter().GetResult();
+ return operations.ListBySubscriptionAsync(expand).GetAwaiter().GetResult();
}
///
@@ -209,12 +212,15 @@ public static IPage ListBySubscription(this IAvailabilitySetsOp
///
/// The operations group for this extension method.
///
+ ///
+ /// The expand expression to apply to the operation.
+ ///
///
/// The cancellation token.
///
- public static async Task> ListBySubscriptionAsync(this IAvailabilitySetsOperations operations, CancellationToken cancellationToken = default(CancellationToken))
+ public static async Task> 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;
}
diff --git a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/IAvailabilitySetsOperations.cs b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/IAvailabilitySetsOperations.cs
index 78b836e766894..b5a178346c622 100644
--- a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/IAvailabilitySetsOperations.cs
+++ b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/IAvailabilitySetsOperations.cs
@@ -129,6 +129,9 @@ public partial interface IAvailabilitySetsOperations
///
/// Lists all availability sets in a subscription.
///
+ ///
+ /// The expand expression to apply to the operation.
+ ///
///
/// The headers that will be added to request.
///
@@ -144,7 +147,7 @@ public partial interface IAvailabilitySetsOperations
///
/// Thrown when a required parameter is null
///
- Task>> ListBySubscriptionWithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ Task>> ListBySubscriptionWithHttpMessagesAsync(string expand = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
/// Lists all availability sets in a resource group.
///
diff --git a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/SdkInfo_ComputeManagementClient.cs b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/SdkInfo_ComputeManagementClient.cs
index 1dc8da2c560ed..92e16cbf4f6d4 100644
--- a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/SdkInfo_ComputeManagementClient.cs
+++ b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/SdkInfo_ComputeManagementClient.cs
@@ -49,16 +49,5 @@ public static IEnumerable> 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
}
}
-