diff --git a/eng/mgmt/mgmtmetadata/azsadmin_resource-manager_fabric.txt b/eng/mgmt/mgmtmetadata/azsadmin_resource-manager_fabric.txt
new file mode 100644
index 000000000000..3c8a59192546
--- /dev/null
+++ b/eng/mgmt/mgmtmetadata/azsadmin_resource-manager_fabric.txt
@@ -0,0 +1,14 @@
+Installing AutoRest version: latest
+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/master/specification/azsadmin/resource-manager/fabric/readme.md --csharp --version=latest --reflect-api-versions --csharp-sdks-folder=
+2019-09-23 09:00:29 UTC
+Azure-rest-api-specs repository information
+GitHub fork: Azure
+Branch: master
+Commit: 9029f3a9c75ca983ce97511b57cfba8810f45562
+AutoRest information
+Requested version: latest
+Bootstrapper version: autorest@2.0.4283
diff --git a/sdk/azurestack/Microsoft.AzureStack.Management.Fabric.Admin/AzSdk.RP.props b/sdk/azurestack/Microsoft.AzureStack.Management.Fabric.Admin/AzSdk.RP.props
new file mode 100644
index 000000000000..896ea1ea1710
--- /dev/null
+++ b/sdk/azurestack/Microsoft.AzureStack.Management.Fabric.Admin/AzSdk.RP.props
@@ -0,0 +1,7 @@
+
+
+
+ Fabric.Admin_2016-05-01;Fabric.Admin_2019-05-01;Fabric.Admin_2018-10-01;
+ $(PackageTags);$(CommonTags);$(AzureApiTag);
+
+
\ No newline at end of file
diff --git a/sdk/azurestack/Microsoft.AzureStack.Management.Fabric.Admin/src/Generated/ApplicationOperationResultsOperations.cs b/sdk/azurestack/Microsoft.AzureStack.Management.Fabric.Admin/src/Generated/ApplicationOperationResultsOperations.cs
new file mode 100644
index 000000000000..f8423111bd21
--- /dev/null
+++ b/sdk/azurestack/Microsoft.AzureStack.Management.Fabric.Admin/src/Generated/ApplicationOperationResultsOperations.cs
@@ -0,0 +1,637 @@
+//
+// 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.AzureStack.Management.Fabric.Admin
+{
+ using Microsoft.Rest;
+ using Microsoft.Rest.Azure;
+ using Microsoft.Rest.Azure.OData;
+ 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;
+
+ ///
+ /// ApplicationOperationResultsOperations operations.
+ ///
+ internal partial class ApplicationOperationResultsOperations : IServiceOperations, IApplicationOperationResultsOperations
+ {
+ ///
+ /// Initializes a new instance of the ApplicationOperationResultsOperations class.
+ ///
+ ///
+ /// Reference to the service client.
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ internal ApplicationOperationResultsOperations(FabricAdminClient client)
+ {
+ if (client == null)
+ {
+ throw new System.ArgumentNullException("client");
+ }
+ Client = client;
+ }
+
+ ///
+ /// Gets a reference to the FabricAdminClient
+ ///
+ public FabricAdminClient Client { get; private set; }
+
+ ///
+ /// Returns the status of an application operation.
+ ///
+ ///
+ /// Name of the resource group.
+ ///
+ ///
+ /// Location of the resource.
+ ///
+ ///
+ /// Operation identifier.
+ ///
+ ///
+ /// 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 location, string operation, 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 (location == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "location");
+ }
+ if (operation == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "operation");
+ }
+ string apiVersion = "2016-05-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("location", location);
+ tracingParameters.Add("operation", operation);
+ 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.Fabric.Admin/fabricLocations/{location}/applicationOperationResults/{operation}").ToString();
+ _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId));
+ _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName));
+ _url = _url.Replace("{location}", System.Uri.EscapeDataString(location));
+ _url = _url.Replace("{operation}", System.Uri.EscapeDataString(operation));
+ 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 && (int)_statusCode != 404)
+ {
+ 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();
+ }
+ // 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;
+ }
+
+ ///
+ /// Returns a list of all application operation results at a location.
+ ///
+ ///
+ /// Name of the resource group.
+ ///
+ ///
+ /// Location of the resource.
+ ///
+ ///
+ /// OData parameters to apply to the 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>> ListWithHttpMessagesAsync(string resourceGroupName, string location, ODataQuery odataQuery = default(ODataQuery), 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 (location == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "location");
+ }
+ string apiVersion = "2016-05-01";
+ // Tracing
+ bool _shouldTrace = ServiceClientTracing.IsEnabled;
+ string _invocationId = null;
+ if (_shouldTrace)
+ {
+ _invocationId = ServiceClientTracing.NextInvocationId.ToString();
+ Dictionary tracingParameters = new Dictionary();
+ tracingParameters.Add("odataQuery", odataQuery);
+ tracingParameters.Add("resourceGroupName", resourceGroupName);
+ tracingParameters.Add("location", location);
+ 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.Fabric.Admin/fabricLocations/{location}/applicationOperationResults").ToString();
+ _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId));
+ _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName));
+ _url = _url.Replace("{location}", System.Uri.EscapeDataString(location));
+ List _queryParameters = new List();
+ if (odataQuery != null)
+ {
+ var _odataFilter = odataQuery.ToString();
+ if (!string.IsNullOrEmpty(_odataFilter))
+ {
+ _queryParameters.Add(_odataFilter);
+ }
+ }
+ 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 && (int)_statusCode != 404)
+ {
+ 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();
+ }
+ // 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;
+ }
+
+ ///
+ /// Returns a list of all application operation results at a location.
+ ///
+ ///
+ /// 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 && (int)_statusCode != 404)
+ {
+ 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();
+ }
+ // 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/azurestack/Microsoft.AzureStack.Management.Fabric.Admin/src/Generated/ApplicationOperationResultsOperationsExtensions.cs b/sdk/azurestack/Microsoft.AzureStack.Management.Fabric.Admin/src/Generated/ApplicationOperationResultsOperationsExtensions.cs
new file mode 100644
index 000000000000..7f628a1c329b
--- /dev/null
+++ b/sdk/azurestack/Microsoft.AzureStack.Management.Fabric.Admin/src/Generated/ApplicationOperationResultsOperationsExtensions.cs
@@ -0,0 +1,152 @@
+//
+// 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.AzureStack.Management.Fabric.Admin
+{
+ using Microsoft.Rest;
+ using Microsoft.Rest.Azure;
+ using Microsoft.Rest.Azure.OData;
+ using Models;
+ using System.Threading;
+ using System.Threading.Tasks;
+
+ ///
+ /// Extension methods for ApplicationOperationResultsOperations.
+ ///
+ public static partial class ApplicationOperationResultsOperationsExtensions
+ {
+ ///
+ /// Returns the status of an application operation.
+ ///
+ ///
+ /// The operations group for this extension method.
+ ///
+ ///
+ /// Name of the resource group.
+ ///
+ ///
+ /// Location of the resource.
+ ///
+ ///
+ /// Operation identifier.
+ ///
+ public static ApplicationOperationResult Get(this IApplicationOperationResultsOperations operations, string resourceGroupName, string location, string operation)
+ {
+ return operations.GetAsync(resourceGroupName, location, operation).GetAwaiter().GetResult();
+ }
+
+ ///
+ /// Returns the status of an application operation.
+ ///
+ ///
+ /// The operations group for this extension method.
+ ///
+ ///
+ /// Name of the resource group.
+ ///
+ ///
+ /// Location of the resource.
+ ///
+ ///
+ /// Operation identifier.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ public static async Task GetAsync(this IApplicationOperationResultsOperations operations, string resourceGroupName, string location, string operation, CancellationToken cancellationToken = default(CancellationToken))
+ {
+ using (var _result = await operations.GetWithHttpMessagesAsync(resourceGroupName, location, operation, null, cancellationToken).ConfigureAwait(false))
+ {
+ return _result.Body;
+ }
+ }
+
+ ///
+ /// Returns a list of all application operation results at a location.
+ ///
+ ///
+ /// The operations group for this extension method.
+ ///
+ ///
+ /// Name of the resource group.
+ ///
+ ///
+ /// Location of the resource.
+ ///
+ ///
+ /// OData parameters to apply to the operation.
+ ///
+ public static IPage List(this IApplicationOperationResultsOperations operations, string resourceGroupName, string location, ODataQuery odataQuery = default(ODataQuery))
+ {
+ return operations.ListAsync(resourceGroupName, location, odataQuery).GetAwaiter().GetResult();
+ }
+
+ ///
+ /// Returns a list of all application operation results at a location.
+ ///
+ ///
+ /// The operations group for this extension method.
+ ///
+ ///
+ /// Name of the resource group.
+ ///
+ ///
+ /// Location of the resource.
+ ///
+ ///
+ /// OData parameters to apply to the operation.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ public static async Task> ListAsync(this IApplicationOperationResultsOperations operations, string resourceGroupName, string location, ODataQuery odataQuery = default(ODataQuery), CancellationToken cancellationToken = default(CancellationToken))
+ {
+ using (var _result = await operations.ListWithHttpMessagesAsync(resourceGroupName, location, odataQuery, null, cancellationToken).ConfigureAwait(false))
+ {
+ return _result.Body;
+ }
+ }
+
+ ///
+ /// Returns a list of all application operation results at a location.
+ ///
+ ///
+ /// The operations group for this extension method.
+ ///
+ ///
+ /// The NextLink from the previous successful call to List operation.
+ ///
+ public static IPage ListNext(this IApplicationOperationResultsOperations operations, string nextPageLink)
+ {
+ return operations.ListNextAsync(nextPageLink).GetAwaiter().GetResult();
+ }
+
+ ///
+ /// Returns a list of all application operation results at a location.
+ ///
+ ///
+ /// 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 IApplicationOperationResultsOperations 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/azurestack/Microsoft.AzureStack.Management.Fabric.Admin/src/Generated/ComputeOperationResultsOperations.cs b/sdk/azurestack/Microsoft.AzureStack.Management.Fabric.Admin/src/Generated/ComputeOperationResultsOperations.cs
new file mode 100644
index 000000000000..d5874a726e58
--- /dev/null
+++ b/sdk/azurestack/Microsoft.AzureStack.Management.Fabric.Admin/src/Generated/ComputeOperationResultsOperations.cs
@@ -0,0 +1,637 @@
+//
+// 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.AzureStack.Management.Fabric.Admin
+{
+ using Microsoft.Rest;
+ using Microsoft.Rest.Azure;
+ using Microsoft.Rest.Azure.OData;
+ 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;
+
+ ///
+ /// ComputeOperationResultsOperations operations.
+ ///
+ internal partial class ComputeOperationResultsOperations : IServiceOperations, IComputeOperationResultsOperations
+ {
+ ///
+ /// Initializes a new instance of the ComputeOperationResultsOperations class.
+ ///
+ ///
+ /// Reference to the service client.
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ internal ComputeOperationResultsOperations(FabricAdminClient client)
+ {
+ if (client == null)
+ {
+ throw new System.ArgumentNullException("client");
+ }
+ Client = client;
+ }
+
+ ///
+ /// Gets a reference to the FabricAdminClient
+ ///
+ public FabricAdminClient Client { get; private set; }
+
+ ///
+ /// Returns the status of a compute operation.
+ ///
+ ///
+ /// Name of the resource group.
+ ///
+ ///
+ /// Location of the resource.
+ ///
+ ///
+ /// Operation identifier.
+ ///
+ ///
+ /// 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 location, string operation, 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 (location == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "location");
+ }
+ if (operation == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "operation");
+ }
+ string apiVersion = "2016-05-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("location", location);
+ tracingParameters.Add("operation", operation);
+ 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.Fabric.Admin/fabricLocations/{location}/computeOperationResults/{operation}").ToString();
+ _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId));
+ _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName));
+ _url = _url.Replace("{location}", System.Uri.EscapeDataString(location));
+ _url = _url.Replace("{operation}", System.Uri.EscapeDataString(operation));
+ 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 && (int)_statusCode != 404)
+ {
+ 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();
+ }
+ // 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;
+ }
+
+ ///
+ /// Returns a list of all compute operation results at a location.
+ ///
+ ///
+ /// Name of the resource group.
+ ///
+ ///
+ /// Location of the resource.
+ ///
+ ///
+ /// OData parameters to apply to the 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>> ListWithHttpMessagesAsync(string resourceGroupName, string location, ODataQuery odataQuery = default(ODataQuery), 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 (location == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "location");
+ }
+ string apiVersion = "2016-05-01";
+ // Tracing
+ bool _shouldTrace = ServiceClientTracing.IsEnabled;
+ string _invocationId = null;
+ if (_shouldTrace)
+ {
+ _invocationId = ServiceClientTracing.NextInvocationId.ToString();
+ Dictionary tracingParameters = new Dictionary();
+ tracingParameters.Add("odataQuery", odataQuery);
+ tracingParameters.Add("resourceGroupName", resourceGroupName);
+ tracingParameters.Add("location", location);
+ 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.Fabric.Admin/fabricLocations/{location}/computeOperationResults").ToString();
+ _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId));
+ _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName));
+ _url = _url.Replace("{location}", System.Uri.EscapeDataString(location));
+ List _queryParameters = new List();
+ if (odataQuery != null)
+ {
+ var _odataFilter = odataQuery.ToString();
+ if (!string.IsNullOrEmpty(_odataFilter))
+ {
+ _queryParameters.Add(_odataFilter);
+ }
+ }
+ 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 && (int)_statusCode != 404)
+ {
+ 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();
+ }
+ // 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;
+ }
+
+ ///
+ /// Returns a list of all compute operation results at a location.
+ ///
+ ///
+ /// 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 && (int)_statusCode != 404)
+ {
+ 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();
+ }
+ // 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/azurestack/Microsoft.AzureStack.Management.Fabric.Admin/src/Generated/ComputeOperationResultsOperationsExtensions.cs b/sdk/azurestack/Microsoft.AzureStack.Management.Fabric.Admin/src/Generated/ComputeOperationResultsOperationsExtensions.cs
new file mode 100644
index 000000000000..74dde037deca
--- /dev/null
+++ b/sdk/azurestack/Microsoft.AzureStack.Management.Fabric.Admin/src/Generated/ComputeOperationResultsOperationsExtensions.cs
@@ -0,0 +1,152 @@
+//
+// 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.AzureStack.Management.Fabric.Admin
+{
+ using Microsoft.Rest;
+ using Microsoft.Rest.Azure;
+ using Microsoft.Rest.Azure.OData;
+ using Models;
+ using System.Threading;
+ using System.Threading.Tasks;
+
+ ///
+ /// Extension methods for ComputeOperationResultsOperations.
+ ///
+ public static partial class ComputeOperationResultsOperationsExtensions
+ {
+ ///
+ /// Returns the status of a compute operation.
+ ///
+ ///
+ /// The operations group for this extension method.
+ ///
+ ///
+ /// Name of the resource group.
+ ///
+ ///
+ /// Location of the resource.
+ ///
+ ///
+ /// Operation identifier.
+ ///
+ public static ComputeOperationResult Get(this IComputeOperationResultsOperations operations, string resourceGroupName, string location, string operation)
+ {
+ return operations.GetAsync(resourceGroupName, location, operation).GetAwaiter().GetResult();
+ }
+
+ ///
+ /// Returns the status of a compute operation.
+ ///
+ ///
+ /// The operations group for this extension method.
+ ///
+ ///
+ /// Name of the resource group.
+ ///
+ ///
+ /// Location of the resource.
+ ///
+ ///
+ /// Operation identifier.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ public static async Task GetAsync(this IComputeOperationResultsOperations operations, string resourceGroupName, string location, string operation, CancellationToken cancellationToken = default(CancellationToken))
+ {
+ using (var _result = await operations.GetWithHttpMessagesAsync(resourceGroupName, location, operation, null, cancellationToken).ConfigureAwait(false))
+ {
+ return _result.Body;
+ }
+ }
+
+ ///
+ /// Returns a list of all compute operation results at a location.
+ ///
+ ///
+ /// The operations group for this extension method.
+ ///
+ ///
+ /// Name of the resource group.
+ ///
+ ///
+ /// Location of the resource.
+ ///
+ ///
+ /// OData parameters to apply to the operation.
+ ///
+ public static IPage List(this IComputeOperationResultsOperations operations, string resourceGroupName, string location, ODataQuery odataQuery = default(ODataQuery))
+ {
+ return operations.ListAsync(resourceGroupName, location, odataQuery).GetAwaiter().GetResult();
+ }
+
+ ///
+ /// Returns a list of all compute operation results at a location.
+ ///
+ ///
+ /// The operations group for this extension method.
+ ///
+ ///
+ /// Name of the resource group.
+ ///
+ ///
+ /// Location of the resource.
+ ///
+ ///
+ /// OData parameters to apply to the operation.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ public static async Task> ListAsync(this IComputeOperationResultsOperations operations, string resourceGroupName, string location, ODataQuery odataQuery = default(ODataQuery), CancellationToken cancellationToken = default(CancellationToken))
+ {
+ using (var _result = await operations.ListWithHttpMessagesAsync(resourceGroupName, location, odataQuery, null, cancellationToken).ConfigureAwait(false))
+ {
+ return _result.Body;
+ }
+ }
+
+ ///
+ /// Returns a list of all compute operation results at a location.
+ ///
+ ///
+ /// The operations group for this extension method.
+ ///
+ ///
+ /// The NextLink from the previous successful call to List operation.
+ ///
+ public static IPage ListNext(this IComputeOperationResultsOperations operations, string nextPageLink)
+ {
+ return operations.ListNextAsync(nextPageLink).GetAwaiter().GetResult();
+ }
+
+ ///
+ /// Returns a list of all compute operation results at a location.
+ ///
+ ///
+ /// 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 IComputeOperationResultsOperations 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/azurestack/Microsoft.AzureStack.Management.Fabric.Admin/src/Generated/StoragePoolsOperations.cs b/sdk/azurestack/Microsoft.AzureStack.Management.Fabric.Admin/src/Generated/DrivesOperations.cs
similarity index 89%
rename from sdk/azurestack/Microsoft.AzureStack.Management.Fabric.Admin/src/Generated/StoragePoolsOperations.cs
rename to sdk/azurestack/Microsoft.AzureStack.Management.Fabric.Admin/src/Generated/DrivesOperations.cs
index 9ff150f6193e..1d44924e0297 100644
--- a/sdk/azurestack/Microsoft.AzureStack.Management.Fabric.Admin/src/Generated/StoragePoolsOperations.cs
+++ b/sdk/azurestack/Microsoft.AzureStack.Management.Fabric.Admin/src/Generated/DrivesOperations.cs
@@ -24,12 +24,12 @@ namespace Microsoft.AzureStack.Management.Fabric.Admin
using System.Threading.Tasks;
///
- /// StoragePoolsOperations operations.
+ /// DrivesOperations operations.
///
- internal partial class StoragePoolsOperations : IServiceOperations, IStoragePoolsOperations
+ internal partial class DrivesOperations : IServiceOperations, IDrivesOperations
{
///
- /// Initializes a new instance of the StoragePoolsOperations class.
+ /// Initializes a new instance of the DrivesOperations class.
///
///
/// Reference to the service client.
@@ -37,7 +37,7 @@ internal partial class StoragePoolsOperations : IServiceOperations
/// Thrown when a required parameter is null
///
- internal StoragePoolsOperations(FabricAdminClient client)
+ internal DrivesOperations(FabricAdminClient client)
{
if (client == null)
{
@@ -52,7 +52,7 @@ internal StoragePoolsOperations(FabricAdminClient client)
public FabricAdminClient Client { get; private set; }
///
- /// Return the requested a storage pool.
+ /// Return the requested a storage drive.
///
///
/// Name of the resource group.
@@ -60,11 +60,14 @@ internal StoragePoolsOperations(FabricAdminClient client)
///
/// Location of the resource.
///
+ ///
+ /// Name of the scale units.
+ ///
///
/// Name of the storage system.
///
- ///
- /// Storage pool name.
+ ///
+ /// Name of the storage drive.
///
///
/// Headers that will be added to request.
@@ -87,7 +90,7 @@ internal StoragePoolsOperations(FabricAdminClient client)
///
/// A response object containing the response body and response headers.
///
- public async Task> GetWithHttpMessagesAsync(string resourceGroupName, string location, string storageSubSystem, string storagePool, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ public async Task> GetWithHttpMessagesAsync(string resourceGroupName, string location, string scaleUnit, string storageSubSystem, string drive, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
{
if (Client.SubscriptionId == null)
{
@@ -101,18 +104,19 @@ internal StoragePoolsOperations(FabricAdminClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "location");
}
- if (storageSubSystem == null)
+ if (scaleUnit == null)
{
- throw new ValidationException(ValidationRules.CannotBeNull, "storageSubSystem");
+ throw new ValidationException(ValidationRules.CannotBeNull, "scaleUnit");
}
- if (storagePool == null)
+ if (storageSubSystem == null)
{
- throw new ValidationException(ValidationRules.CannotBeNull, "storagePool");
+ throw new ValidationException(ValidationRules.CannotBeNull, "storageSubSystem");
}
- if (Client.ApiVersion == null)
+ if (drive == null)
{
- throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion");
+ throw new ValidationException(ValidationRules.CannotBeNull, "drive");
}
+ string apiVersion = "2019-05-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -122,23 +126,26 @@ internal StoragePoolsOperations(FabricAdminClient client)
Dictionary tracingParameters = new Dictionary();
tracingParameters.Add("resourceGroupName", resourceGroupName);
tracingParameters.Add("location", location);
+ tracingParameters.Add("scaleUnit", scaleUnit);
tracingParameters.Add("storageSubSystem", storageSubSystem);
- tracingParameters.Add("storagePool", storagePool);
+ tracingParameters.Add("drive", drive);
+ 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.Fabric.Admin/fabricLocations/{location}/storageSubSystems/{storageSubSystem}/storagePools/{storagePool}").ToString();
+ var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Fabric.Admin/fabricLocations/{location}/scaleUnits/{scaleUnit}/storageSubSystems/{storageSubSystem}/drives/{drive}").ToString();
_url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId));
_url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName));
_url = _url.Replace("{location}", System.Uri.EscapeDataString(location));
+ _url = _url.Replace("{scaleUnit}", System.Uri.EscapeDataString(scaleUnit));
_url = _url.Replace("{storageSubSystem}", System.Uri.EscapeDataString(storageSubSystem));
- _url = _url.Replace("{storagePool}", System.Uri.EscapeDataString(storagePool));
+ _url = _url.Replace("{drive}", System.Uri.EscapeDataString(drive));
List _queryParameters = new List();
- if (Client.ApiVersion != null)
+ if (apiVersion != null)
{
- _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion)));
+ _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion)));
}
if (_queryParameters.Count > 0)
{
@@ -233,7 +240,7 @@ internal StoragePoolsOperations(FabricAdminClient client)
throw ex;
}
// Create Result
- var _result = new AzureOperationResponse();
+ var _result = new AzureOperationResponse();
_result.Request = _httpRequest;
_result.Response = _httpResponse;
if (_httpResponse.Headers.Contains("x-ms-request-id"))
@@ -246,7 +253,7 @@ internal StoragePoolsOperations(FabricAdminClient client)
_responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
try
{
- _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings);
+ _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings);
}
catch (JsonException ex)
{
@@ -266,7 +273,7 @@ internal StoragePoolsOperations(FabricAdminClient client)
}
///
- /// Returns a list of all storage pools for a location.
+ /// Returns a list of all storage drives at a location.
///
///
/// Name of the resource group.
@@ -274,6 +281,9 @@ internal StoragePoolsOperations(FabricAdminClient client)
///
/// Location of the resource.
///
+ ///
+ /// Name of the scale units.
+ ///
///
/// Name of the storage system.
///
@@ -301,7 +311,7 @@ internal StoragePoolsOperations(FabricAdminClient client)
///
/// A response object containing the response body and response headers.
///
- public async Task>> ListWithHttpMessagesAsync(string resourceGroupName, string location, string storageSubSystem, ODataQuery odataQuery = default(ODataQuery), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ public async Task>> ListWithHttpMessagesAsync(string resourceGroupName, string location, string scaleUnit, string storageSubSystem, ODataQuery odataQuery = default(ODataQuery), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
{
if (Client.SubscriptionId == null)
{
@@ -315,14 +325,15 @@ internal StoragePoolsOperations(FabricAdminClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "location");
}
- if (storageSubSystem == null)
+ if (scaleUnit == null)
{
- throw new ValidationException(ValidationRules.CannotBeNull, "storageSubSystem");
+ throw new ValidationException(ValidationRules.CannotBeNull, "scaleUnit");
}
- if (Client.ApiVersion == null)
+ if (storageSubSystem == null)
{
- throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion");
+ throw new ValidationException(ValidationRules.CannotBeNull, "storageSubSystem");
}
+ string apiVersion = "2019-05-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -333,16 +344,19 @@ internal StoragePoolsOperations(FabricAdminClient client)
tracingParameters.Add("odataQuery", odataQuery);
tracingParameters.Add("resourceGroupName", resourceGroupName);
tracingParameters.Add("location", location);
+ tracingParameters.Add("scaleUnit", scaleUnit);
tracingParameters.Add("storageSubSystem", storageSubSystem);
+ 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.Fabric.Admin/fabricLocations/{location}/storageSubSystems/{storageSubSystem}/storagePools").ToString();
+ var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Fabric.Admin/fabricLocations/{location}/scaleUnits/{scaleUnit}/storageSubSystems/{storageSubSystem}/drives").ToString();
_url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId));
_url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName));
_url = _url.Replace("{location}", System.Uri.EscapeDataString(location));
+ _url = _url.Replace("{scaleUnit}", System.Uri.EscapeDataString(scaleUnit));
_url = _url.Replace("{storageSubSystem}", System.Uri.EscapeDataString(storageSubSystem));
List _queryParameters = new List();
if (odataQuery != null)
@@ -353,9 +367,9 @@ internal StoragePoolsOperations(FabricAdminClient client)
_queryParameters.Add(_odataFilter);
}
}
- if (Client.ApiVersion != null)
+ if (apiVersion != null)
{
- _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion)));
+ _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion)));
}
if (_queryParameters.Count > 0)
{
@@ -450,7 +464,7 @@ internal StoragePoolsOperations(FabricAdminClient client)
throw ex;
}
// Create Result
- var _result = new AzureOperationResponse>();
+ var _result = new AzureOperationResponse>();
_result.Request = _httpRequest;
_result.Response = _httpResponse;
if (_httpResponse.Headers.Contains("x-ms-request-id"))
@@ -463,7 +477,7 @@ internal StoragePoolsOperations(FabricAdminClient client)
_responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
try
{
- _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings);
+ _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings);
}
catch (JsonException ex)
{
@@ -483,7 +497,7 @@ internal StoragePoolsOperations(FabricAdminClient client)
}
///
- /// Returns a list of all storage pools for a location.
+ /// Returns a list of all storage drives at a location.
///
///
/// The NextLink from the previous successful call to List operation.
@@ -509,7 +523,7 @@ internal StoragePoolsOperations(FabricAdminClient client)
///
/// A response object containing the response body and response headers.
///
- public async Task>> ListNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ public async Task>> ListNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
{
if (nextPageLink == null)
{
@@ -623,7 +637,7 @@ internal StoragePoolsOperations(FabricAdminClient client)
throw ex;
}
// Create Result
- var _result = new AzureOperationResponse>();
+ var _result = new AzureOperationResponse>();
_result.Request = _httpRequest;
_result.Response = _httpResponse;
if (_httpResponse.Headers.Contains("x-ms-request-id"))
@@ -636,7 +650,7 @@ internal StoragePoolsOperations(FabricAdminClient client)
_responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
try
{
- _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings);
+ _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings);
}
catch (JsonException ex)
{
diff --git a/sdk/azurestack/Microsoft.AzureStack.Management.Fabric.Admin/src/Generated/StoragePoolsOperationsExtensions.cs b/sdk/azurestack/Microsoft.AzureStack.Management.Fabric.Admin/src/Generated/DrivesOperationsExtensions.cs
similarity index 65%
rename from sdk/azurestack/Microsoft.AzureStack.Management.Fabric.Admin/src/Generated/StoragePoolsOperationsExtensions.cs
rename to sdk/azurestack/Microsoft.AzureStack.Management.Fabric.Admin/src/Generated/DrivesOperationsExtensions.cs
index d481c35eee46..3b79b3270bdb 100644
--- a/sdk/azurestack/Microsoft.AzureStack.Management.Fabric.Admin/src/Generated/StoragePoolsOperationsExtensions.cs
+++ b/sdk/azurestack/Microsoft.AzureStack.Management.Fabric.Admin/src/Generated/DrivesOperationsExtensions.cs
@@ -18,12 +18,12 @@ namespace Microsoft.AzureStack.Management.Fabric.Admin
using System.Threading.Tasks;
///
- /// Extension methods for StoragePoolsOperations.
+ /// Extension methods for DrivesOperations.
///
- public static partial class StoragePoolsOperationsExtensions
+ public static partial class DrivesOperationsExtensions
{
///
- /// Return the requested a storage pool.
+ /// Return the requested a storage drive.
///
///
/// The operations group for this extension method.
@@ -34,19 +34,22 @@ public static partial class StoragePoolsOperationsExtensions
///
/// Location of the resource.
///
+ ///
+ /// Name of the scale units.
+ ///
///
/// Name of the storage system.
///
- ///
- /// Storage pool name.
+ ///
+ /// Name of the storage drive.
///
- public static StoragePool Get(this IStoragePoolsOperations operations, string resourceGroupName, string location, string storageSubSystem, string storagePool)
+ public static Drive Get(this IDrivesOperations operations, string resourceGroupName, string location, string scaleUnit, string storageSubSystem, string drive)
{
- return operations.GetAsync(resourceGroupName, location, storageSubSystem, storagePool).GetAwaiter().GetResult();
+ return operations.GetAsync(resourceGroupName, location, scaleUnit, storageSubSystem, drive).GetAwaiter().GetResult();
}
///
- /// Return the requested a storage pool.
+ /// Return the requested a storage drive.
///
///
/// The operations group for this extension method.
@@ -57,25 +60,28 @@ public static StoragePool Get(this IStoragePoolsOperations operations, string re
///
/// Location of the resource.
///
+ ///
+ /// Name of the scale units.
+ ///
///
/// Name of the storage system.
///
- ///
- /// Storage pool name.
+ ///
+ /// Name of the storage drive.
///
///
/// The cancellation token.
///
- public static async Task GetAsync(this IStoragePoolsOperations operations, string resourceGroupName, string location, string storageSubSystem, string storagePool, CancellationToken cancellationToken = default(CancellationToken))
+ public static async Task GetAsync(this IDrivesOperations operations, string resourceGroupName, string location, string scaleUnit, string storageSubSystem, string drive, CancellationToken cancellationToken = default(CancellationToken))
{
- using (var _result = await operations.GetWithHttpMessagesAsync(resourceGroupName, location, storageSubSystem, storagePool, null, cancellationToken).ConfigureAwait(false))
+ using (var _result = await operations.GetWithHttpMessagesAsync(resourceGroupName, location, scaleUnit, storageSubSystem, drive, null, cancellationToken).ConfigureAwait(false))
{
return _result.Body;
}
}
///
- /// Returns a list of all storage pools for a location.
+ /// Returns a list of all storage drives at a location.
///
///
/// The operations group for this extension method.
@@ -86,19 +92,22 @@ public static StoragePool Get(this IStoragePoolsOperations operations, string re
///
/// Location of the resource.
///
+ ///
+ /// Name of the scale units.
+ ///
///
/// Name of the storage system.
///
///
/// OData parameters to apply to the operation.
///
- public static IPage List(this IStoragePoolsOperations operations, string resourceGroupName, string location, string storageSubSystem, ODataQuery odataQuery = default(ODataQuery))
+ public static IPage List(this IDrivesOperations operations, string resourceGroupName, string location, string scaleUnit, string storageSubSystem, ODataQuery odataQuery = default(ODataQuery))
{
- return operations.ListAsync(resourceGroupName, location, storageSubSystem, odataQuery).GetAwaiter().GetResult();
+ return operations.ListAsync(resourceGroupName, location, scaleUnit, storageSubSystem, odataQuery).GetAwaiter().GetResult();
}
///
- /// Returns a list of all storage pools for a location.
+ /// Returns a list of all storage drives at a location.
///
///
/// The operations group for this extension method.
@@ -109,6 +118,9 @@ public static StoragePool Get(this IStoragePoolsOperations operations, string re
///
/// Location of the resource.
///
+ ///
+ /// Name of the scale units.
+ ///
///
/// Name of the storage system.
///
@@ -118,16 +130,16 @@ public static StoragePool Get(this IStoragePoolsOperations operations, string re
///
/// The cancellation token.
///
- public static async Task> ListAsync(this IStoragePoolsOperations operations, string resourceGroupName, string location, string storageSubSystem, ODataQuery odataQuery = default(ODataQuery), CancellationToken cancellationToken = default(CancellationToken))
+ public static async Task> ListAsync(this IDrivesOperations operations, string resourceGroupName, string location, string scaleUnit, string storageSubSystem, ODataQuery odataQuery = default(ODataQuery), CancellationToken cancellationToken = default(CancellationToken))
{
- using (var _result = await operations.ListWithHttpMessagesAsync(resourceGroupName, location, storageSubSystem, odataQuery, null, cancellationToken).ConfigureAwait(false))
+ using (var _result = await operations.ListWithHttpMessagesAsync(resourceGroupName, location, scaleUnit, storageSubSystem, odataQuery, null, cancellationToken).ConfigureAwait(false))
{
return _result.Body;
}
}
///
- /// Returns a list of all storage pools for a location.
+ /// Returns a list of all storage drives at a location.
///
///
/// The operations group for this extension method.
@@ -135,13 +147,13 @@ public static StoragePool Get(this IStoragePoolsOperations operations, string re
///
/// The NextLink from the previous successful call to List operation.
///
- public static IPage ListNext(this IStoragePoolsOperations operations, string nextPageLink)
+ public static IPage ListNext(this IDrivesOperations operations, string nextPageLink)
{
return operations.ListNextAsync(nextPageLink).GetAwaiter().GetResult();
}
///
- /// Returns a list of all storage pools for a location.
+ /// Returns a list of all storage drives at a location.
///
///
/// The operations group for this extension method.
@@ -152,7 +164,7 @@ public static IPage ListNext(this IStoragePoolsOperations operation
///
/// The cancellation token.
///
- public static async Task> ListNextAsync(this IStoragePoolsOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken))
+ public static async Task> ListNextAsync(this IDrivesOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken))
{
using (var _result = await operations.ListNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false))
{
diff --git a/sdk/azurestack/Microsoft.AzureStack.Management.Fabric.Admin/src/Generated/EdgeGatewayPoolsOperations.cs b/sdk/azurestack/Microsoft.AzureStack.Management.Fabric.Admin/src/Generated/EdgeGatewayPoolsOperations.cs
index 9e057387c868..d7b62caa71a3 100644
--- a/sdk/azurestack/Microsoft.AzureStack.Management.Fabric.Admin/src/Generated/EdgeGatewayPoolsOperations.cs
+++ b/sdk/azurestack/Microsoft.AzureStack.Management.Fabric.Admin/src/Generated/EdgeGatewayPoolsOperations.cs
@@ -102,10 +102,7 @@ internal EdgeGatewayPoolsOperations(FabricAdminClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "edgeGatewayPool");
}
- if (Client.ApiVersion == null)
- {
- throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion");
- }
+ string apiVersion = "2016-05-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -116,6 +113,7 @@ internal EdgeGatewayPoolsOperations(FabricAdminClient client)
tracingParameters.Add("resourceGroupName", resourceGroupName);
tracingParameters.Add("location", location);
tracingParameters.Add("edgeGatewayPool", edgeGatewayPool);
+ tracingParameters.Add("apiVersion", apiVersion);
tracingParameters.Add("cancellationToken", cancellationToken);
ServiceClientTracing.Enter(_invocationId, this, "Get", tracingParameters);
}
@@ -127,9 +125,9 @@ internal EdgeGatewayPoolsOperations(FabricAdminClient client)
_url = _url.Replace("{location}", System.Uri.EscapeDataString(location));
_url = _url.Replace("{edgeGatewayPool}", System.Uri.EscapeDataString(edgeGatewayPool));
List _queryParameters = new List();
- if (Client.ApiVersion != null)
+ if (apiVersion != null)
{
- _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion)));
+ _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion)));
}
if (_queryParameters.Count > 0)
{
@@ -303,10 +301,7 @@ internal EdgeGatewayPoolsOperations(FabricAdminClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "location");
}
- if (Client.ApiVersion == null)
- {
- throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion");
- }
+ string apiVersion = "2016-05-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -317,6 +312,7 @@ internal EdgeGatewayPoolsOperations(FabricAdminClient client)
tracingParameters.Add("odataQuery", odataQuery);
tracingParameters.Add("resourceGroupName", resourceGroupName);
tracingParameters.Add("location", location);
+ tracingParameters.Add("apiVersion", apiVersion);
tracingParameters.Add("cancellationToken", cancellationToken);
ServiceClientTracing.Enter(_invocationId, this, "List", tracingParameters);
}
@@ -335,9 +331,9 @@ internal EdgeGatewayPoolsOperations(FabricAdminClient client)
_queryParameters.Add(_odataFilter);
}
}
- if (Client.ApiVersion != null)
+ if (apiVersion != null)
{
- _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion)));
+ _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion)));
}
if (_queryParameters.Count > 0)
{
diff --git a/sdk/azurestack/Microsoft.AzureStack.Management.Fabric.Admin/src/Generated/EdgeGatewaysOperations.cs b/sdk/azurestack/Microsoft.AzureStack.Management.Fabric.Admin/src/Generated/EdgeGatewaysOperations.cs
index ea486d02e933..1a67f14bc3de 100644
--- a/sdk/azurestack/Microsoft.AzureStack.Management.Fabric.Admin/src/Generated/EdgeGatewaysOperations.cs
+++ b/sdk/azurestack/Microsoft.AzureStack.Management.Fabric.Admin/src/Generated/EdgeGatewaysOperations.cs
@@ -102,10 +102,7 @@ internal EdgeGatewaysOperations(FabricAdminClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "edgeGateway");
}
- if (Client.ApiVersion == null)
- {
- throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion");
- }
+ string apiVersion = "2016-05-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -116,6 +113,7 @@ internal EdgeGatewaysOperations(FabricAdminClient client)
tracingParameters.Add("resourceGroupName", resourceGroupName);
tracingParameters.Add("location", location);
tracingParameters.Add("edgeGateway", edgeGateway);
+ tracingParameters.Add("apiVersion", apiVersion);
tracingParameters.Add("cancellationToken", cancellationToken);
ServiceClientTracing.Enter(_invocationId, this, "Get", tracingParameters);
}
@@ -127,9 +125,9 @@ internal EdgeGatewaysOperations(FabricAdminClient client)
_url = _url.Replace("{location}", System.Uri.EscapeDataString(location));
_url = _url.Replace("{edgeGateway}", System.Uri.EscapeDataString(edgeGateway));
List _queryParameters = new List();
- if (Client.ApiVersion != null)
+ if (apiVersion != null)
{
- _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion)));
+ _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion)));
}
if (_queryParameters.Count > 0)
{
@@ -303,10 +301,7 @@ internal EdgeGatewaysOperations(FabricAdminClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "location");
}
- if (Client.ApiVersion == null)
- {
- throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion");
- }
+ string apiVersion = "2016-05-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -317,6 +312,7 @@ internal EdgeGatewaysOperations(FabricAdminClient client)
tracingParameters.Add("odataQuery", odataQuery);
tracingParameters.Add("resourceGroupName", resourceGroupName);
tracingParameters.Add("location", location);
+ tracingParameters.Add("apiVersion", apiVersion);
tracingParameters.Add("cancellationToken", cancellationToken);
ServiceClientTracing.Enter(_invocationId, this, "List", tracingParameters);
}
@@ -335,9 +331,9 @@ internal EdgeGatewaysOperations(FabricAdminClient client)
_queryParameters.Add(_odataFilter);
}
}
- if (Client.ApiVersion != null)
+ if (apiVersion != null)
{
- _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion)));
+ _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion)));
}
if (_queryParameters.Count > 0)
{
diff --git a/sdk/azurestack/Microsoft.AzureStack.Management.Fabric.Admin/src/Generated/FabricAdminClient.cs b/sdk/azurestack/Microsoft.AzureStack.Management.Fabric.Admin/src/Generated/FabricAdminClient.cs
index 39de30002787..4a878b23268d 100644
--- a/sdk/azurestack/Microsoft.AzureStack.Management.Fabric.Admin/src/Generated/FabricAdminClient.cs
+++ b/sdk/azurestack/Microsoft.AzureStack.Management.Fabric.Admin/src/Generated/FabricAdminClient.cs
@@ -53,11 +53,6 @@ public partial class FabricAdminClient : ServiceClient, IFabr
///
public string SubscriptionId { get; set; }
- ///
- /// Client API Version.
- ///
- public string ApiVersion { get; private set; }
-
///
/// The preferred language for the response.
///
@@ -76,6 +71,16 @@ public partial class FabricAdminClient : ServiceClient, IFabr
///
public bool? GenerateClientRequestId { get; set; }
+ ///
+ /// Gets the IApplicationOperationResultsOperations.
+ ///
+ public virtual IApplicationOperationResultsOperations ApplicationOperationResults { get; private set; }
+
+ ///
+ /// Gets the IComputeOperationResultsOperations.
+ ///
+ public virtual IComputeOperationResultsOperations ComputeOperationResults { get; private set; }
+
///
/// Gets the IFabricOperations.
///
@@ -121,21 +126,6 @@ public partial class FabricAdminClient : ServiceClient, IFabr
///
public virtual ILogicalNetworksOperations LogicalNetworks { get; private set; }
- ///
- /// Gets the IStoragePoolsOperations.
- ///
- public virtual IStoragePoolsOperations StoragePools { get; private set; }
-
- ///
- /// Gets the IStorageSystemsOperations.
- ///
- public virtual IStorageSystemsOperations StorageSystems { get; private set; }
-
- ///
- /// Gets the IVolumesOperations.
- ///
- public virtual IVolumesOperations Volumes { get; private set; }
-
///
/// Gets the ILogicalSubnetsOperations.
///
@@ -146,6 +136,11 @@ public partial class FabricAdminClient : ServiceClient, IFabr
///
public virtual IMacAddressPoolsOperations MacAddressPools { get; private set; }
+ ///
+ /// Gets the INetworkOperationResultsOperations.
+ ///
+ public virtual INetworkOperationResultsOperations NetworkOperationResults { get; private set; }
+
///
/// Gets the IScaleUnitsOperations.
///
@@ -161,6 +156,26 @@ public partial class FabricAdminClient : ServiceClient, IFabr
///
public virtual ISlbMuxInstancesOperations SlbMuxInstances { get; private set; }
+ ///
+ /// Gets the IStorageOperationResultsOperations.
+ ///
+ public virtual IStorageOperationResultsOperations StorageOperationResults { get; private set; }
+
+ ///
+ /// Gets the IStorageSubSystemsOperations.
+ ///
+ public virtual IStorageSubSystemsOperations StorageSubSystems { get; private set; }
+
+ ///
+ /// Gets the IDrivesOperations.
+ ///
+ public virtual IDrivesOperations Drives { get; private set; }
+
+ ///
+ /// Gets the IVolumesOperations.
+ ///
+ public virtual IVolumesOperations Volumes { get; private set; }
+
///
/// Initializes a new instance of the FabricAdminClient class.
///
@@ -402,6 +417,8 @@ public FabricAdminClient(System.Uri baseUri, ServiceClientCredentials credential
///
private void Initialize()
{
+ ApplicationOperationResults = new ApplicationOperationResultsOperations(this);
+ ComputeOperationResults = new ComputeOperationResultsOperations(this);
Fabric = new FabricOperations(this);
EdgeGateways = new EdgeGatewaysOperations(this);
EdgeGatewayPools = new EdgeGatewayPoolsOperations(this);
@@ -411,16 +428,17 @@ private void Initialize()
InfraRoleInstances = new InfraRoleInstancesOperations(this);
IpPools = new IpPoolsOperations(this);
LogicalNetworks = new LogicalNetworksOperations(this);
- StoragePools = new StoragePoolsOperations(this);
- StorageSystems = new StorageSystemsOperations(this);
- Volumes = new VolumesOperations(this);
LogicalSubnets = new LogicalSubnetsOperations(this);
MacAddressPools = new MacAddressPoolsOperations(this);
+ NetworkOperationResults = new NetworkOperationResultsOperations(this);
ScaleUnits = new ScaleUnitsOperations(this);
ScaleUnitNodes = new ScaleUnitNodesOperations(this);
SlbMuxInstances = new SlbMuxInstancesOperations(this);
+ StorageOperationResults = new StorageOperationResultsOperations(this);
+ StorageSubSystems = new StorageSubSystemsOperations(this);
+ Drives = new DrivesOperations(this);
+ Volumes = new VolumesOperations(this);
BaseUri = new System.Uri("https://adminmanagement.local.azurestack.external");
- ApiVersion = "2016-05-01";
AcceptLanguage = "en-US";
LongRunningOperationRetryTimeout = 30;
GenerateClientRequestId = true;
diff --git a/sdk/azurestack/Microsoft.AzureStack.Management.Fabric.Admin/src/Generated/FabricLocationsOperations.cs b/sdk/azurestack/Microsoft.AzureStack.Management.Fabric.Admin/src/Generated/FabricLocationsOperations.cs
index 29e2e841c8d2..307f2183bc39 100644
--- a/sdk/azurestack/Microsoft.AzureStack.Management.Fabric.Admin/src/Generated/FabricLocationsOperations.cs
+++ b/sdk/azurestack/Microsoft.AzureStack.Management.Fabric.Admin/src/Generated/FabricLocationsOperations.cs
@@ -95,10 +95,7 @@ internal FabricLocationsOperations(FabricAdminClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "fabricLocation");
}
- if (Client.ApiVersion == null)
- {
- throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion");
- }
+ string apiVersion = "2016-05-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -108,6 +105,7 @@ internal FabricLocationsOperations(FabricAdminClient client)
Dictionary tracingParameters = new Dictionary();
tracingParameters.Add("resourceGroupName", resourceGroupName);
tracingParameters.Add("fabricLocation", fabricLocation);
+ tracingParameters.Add("apiVersion", apiVersion);
tracingParameters.Add("cancellationToken", cancellationToken);
ServiceClientTracing.Enter(_invocationId, this, "Get", tracingParameters);
}
@@ -118,9 +116,9 @@ internal FabricLocationsOperations(FabricAdminClient client)
_url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName));
_url = _url.Replace("{fabricLocation}", System.Uri.EscapeDataString(fabricLocation));
List _queryParameters = new List();
- if (Client.ApiVersion != null)
+ if (apiVersion != null)
{
- _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion)));
+ _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion)));
}
if (_queryParameters.Count > 0)
{
@@ -287,10 +285,7 @@ internal FabricLocationsOperations(FabricAdminClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName");
}
- if (Client.ApiVersion == null)
- {
- throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion");
- }
+ string apiVersion = "2016-05-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -300,6 +295,7 @@ internal FabricLocationsOperations(FabricAdminClient client)
Dictionary tracingParameters = new Dictionary();
tracingParameters.Add("odataQuery", odataQuery);
tracingParameters.Add("resourceGroupName", resourceGroupName);
+ tracingParameters.Add("apiVersion", apiVersion);
tracingParameters.Add("cancellationToken", cancellationToken);
ServiceClientTracing.Enter(_invocationId, this, "List", tracingParameters);
}
@@ -317,9 +313,9 @@ internal FabricLocationsOperations(FabricAdminClient client)
_queryParameters.Add(_odataFilter);
}
}
- if (Client.ApiVersion != null)
+ if (apiVersion != null)
{
- _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion)));
+ _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion)));
}
if (_queryParameters.Count > 0)
{
diff --git a/sdk/azurestack/Microsoft.AzureStack.Management.Fabric.Admin/src/Generated/FabricOperations.cs b/sdk/azurestack/Microsoft.AzureStack.Management.Fabric.Admin/src/Generated/FabricOperations.cs
index 718eb5685173..a9285c97b81a 100644
--- a/sdk/azurestack/Microsoft.AzureStack.Management.Fabric.Admin/src/Generated/FabricOperations.cs
+++ b/sdk/azurestack/Microsoft.AzureStack.Management.Fabric.Admin/src/Generated/FabricOperations.cs
@@ -65,21 +65,12 @@ internal FabricOperations(FabricAdminClient client)
///
/// 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>> ListOperationsWithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
{
- if (Client.ApiVersion == null)
- {
- throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion");
- }
+ string apiVersion = "2016-05-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -87,6 +78,7 @@ internal FabricOperations(FabricAdminClient client)
{
_invocationId = ServiceClientTracing.NextInvocationId.ToString();
Dictionary tracingParameters = new Dictionary();
+ tracingParameters.Add("apiVersion", apiVersion);
tracingParameters.Add("cancellationToken", cancellationToken);
ServiceClientTracing.Enter(_invocationId, this, "ListOperations", tracingParameters);
}
@@ -94,9 +86,9 @@ internal FabricOperations(FabricAdminClient client)
var _baseUrl = Client.BaseUri.AbsoluteUri;
var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "providers/Microsoft.Fabric.Admin/operations").ToString();
List _queryParameters = new List();
- if (Client.ApiVersion != null)
+ if (apiVersion != null)
{
- _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion)));
+ _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion)));
}
if (_queryParameters.Count > 0)
{
diff --git a/sdk/azurestack/Microsoft.AzureStack.Management.Fabric.Admin/src/Generated/FileSharesOperations.cs b/sdk/azurestack/Microsoft.AzureStack.Management.Fabric.Admin/src/Generated/FileSharesOperations.cs
index 43b4c9168e9f..6dc30af039a7 100644
--- a/sdk/azurestack/Microsoft.AzureStack.Management.Fabric.Admin/src/Generated/FileSharesOperations.cs
+++ b/sdk/azurestack/Microsoft.AzureStack.Management.Fabric.Admin/src/Generated/FileSharesOperations.cs
@@ -102,10 +102,7 @@ internal FileSharesOperations(FabricAdminClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "fileShare");
}
- if (Client.ApiVersion == null)
- {
- throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion");
- }
+ string apiVersion = "2016-05-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -116,6 +113,7 @@ internal FileSharesOperations(FabricAdminClient client)
tracingParameters.Add("resourceGroupName", resourceGroupName);
tracingParameters.Add("location", location);
tracingParameters.Add("fileShare", fileShare);
+ tracingParameters.Add("apiVersion", apiVersion);
tracingParameters.Add("cancellationToken", cancellationToken);
ServiceClientTracing.Enter(_invocationId, this, "Get", tracingParameters);
}
@@ -127,9 +125,9 @@ internal FileSharesOperations(FabricAdminClient client)
_url = _url.Replace("{location}", System.Uri.EscapeDataString(location));
_url = _url.Replace("{fileShare}", System.Uri.EscapeDataString(fileShare));
List _queryParameters = new List();
- if (Client.ApiVersion != null)
+ if (apiVersion != null)
{
- _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion)));
+ _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion)));
}
if (_queryParameters.Count > 0)
{
@@ -303,10 +301,7 @@ internal FileSharesOperations(FabricAdminClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "location");
}
- if (Client.ApiVersion == null)
- {
- throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion");
- }
+ string apiVersion = "2016-05-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -317,6 +312,7 @@ internal FileSharesOperations(FabricAdminClient client)
tracingParameters.Add("odataQuery", odataQuery);
tracingParameters.Add("resourceGroupName", resourceGroupName);
tracingParameters.Add("location", location);
+ tracingParameters.Add("apiVersion", apiVersion);
tracingParameters.Add("cancellationToken", cancellationToken);
ServiceClientTracing.Enter(_invocationId, this, "List", tracingParameters);
}
@@ -335,9 +331,9 @@ internal FileSharesOperations(FabricAdminClient client)
_queryParameters.Add(_odataFilter);
}
}
- if (Client.ApiVersion != null)
+ if (apiVersion != null)
{
- _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion)));
+ _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion)));
}
if (_queryParameters.Count > 0)
{
diff --git a/sdk/azurestack/Microsoft.AzureStack.Management.Fabric.Admin/src/Generated/IApplicationOperationResultsOperations.cs b/sdk/azurestack/Microsoft.AzureStack.Management.Fabric.Admin/src/Generated/IApplicationOperationResultsOperations.cs
new file mode 100644
index 000000000000..5659317e5848
--- /dev/null
+++ b/sdk/azurestack/Microsoft.AzureStack.Management.Fabric.Admin/src/Generated/IApplicationOperationResultsOperations.cs
@@ -0,0 +1,106 @@
+//
+// 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.AzureStack.Management.Fabric.Admin
+{
+ using Microsoft.Rest;
+ using Microsoft.Rest.Azure;
+ using Microsoft.Rest.Azure.OData;
+ using Models;
+ using System.Collections;
+ using System.Collections.Generic;
+ using System.Threading;
+ using System.Threading.Tasks;
+
+ ///
+ /// ApplicationOperationResultsOperations operations.
+ ///
+ public partial interface IApplicationOperationResultsOperations
+ {
+ ///
+ /// Returns the status of an application operation.
+ ///
+ ///
+ /// Name of the resource group.
+ ///
+ ///
+ /// Location of the resource.
+ ///
+ ///
+ /// Operation identifier.
+ ///
+ ///
+ /// 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 location, string operation, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ ///
+ /// Returns a list of all application operation results at a location.
+ ///
+ ///
+ /// Name of the resource group.
+ ///
+ ///
+ /// Location of the resource.
+ ///
+ ///
+ /// OData parameters to apply to the 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>> ListWithHttpMessagesAsync(string resourceGroupName, string location, ODataQuery odataQuery = default(ODataQuery), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ ///
+ /// Returns a list of all application operation results at a location.
+ ///
+ ///
+ /// 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/azurestack/Microsoft.AzureStack.Management.Fabric.Admin/src/Generated/IComputeOperationResultsOperations.cs b/sdk/azurestack/Microsoft.AzureStack.Management.Fabric.Admin/src/Generated/IComputeOperationResultsOperations.cs
new file mode 100644
index 000000000000..0cabd89b59f3
--- /dev/null
+++ b/sdk/azurestack/Microsoft.AzureStack.Management.Fabric.Admin/src/Generated/IComputeOperationResultsOperations.cs
@@ -0,0 +1,106 @@
+//
+// 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.AzureStack.Management.Fabric.Admin
+{
+ using Microsoft.Rest;
+ using Microsoft.Rest.Azure;
+ using Microsoft.Rest.Azure.OData;
+ using Models;
+ using System.Collections;
+ using System.Collections.Generic;
+ using System.Threading;
+ using System.Threading.Tasks;
+
+ ///
+ /// ComputeOperationResultsOperations operations.
+ ///
+ public partial interface IComputeOperationResultsOperations
+ {
+ ///
+ /// Returns the status of a compute operation.
+ ///
+ ///
+ /// Name of the resource group.
+ ///
+ ///
+ /// Location of the resource.
+ ///
+ ///
+ /// Operation identifier.
+ ///
+ ///
+ /// 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 location, string operation, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ ///
+ /// Returns a list of all compute operation results at a location.
+ ///
+ ///
+ /// Name of the resource group.
+ ///
+ ///
+ /// Location of the resource.
+ ///
+ ///
+ /// OData parameters to apply to the 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>> ListWithHttpMessagesAsync(string resourceGroupName, string location, ODataQuery odataQuery = default(ODataQuery), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ ///
+ /// Returns a list of all compute operation results at a location.
+ ///
+ ///
+ /// 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/azurestack/Microsoft.AzureStack.Management.Fabric.Admin/src/Generated/IStoragePoolsOperations.cs b/sdk/azurestack/Microsoft.AzureStack.Management.Fabric.Admin/src/Generated/IDrivesOperations.cs
similarity index 74%
rename from sdk/azurestack/Microsoft.AzureStack.Management.Fabric.Admin/src/Generated/IStoragePoolsOperations.cs
rename to sdk/azurestack/Microsoft.AzureStack.Management.Fabric.Admin/src/Generated/IDrivesOperations.cs
index 4a2a0cc475c8..1b2ae6792195 100644
--- a/sdk/azurestack/Microsoft.AzureStack.Management.Fabric.Admin/src/Generated/IStoragePoolsOperations.cs
+++ b/sdk/azurestack/Microsoft.AzureStack.Management.Fabric.Admin/src/Generated/IDrivesOperations.cs
@@ -20,12 +20,12 @@ namespace Microsoft.AzureStack.Management.Fabric.Admin
using System.Threading.Tasks;
///
- /// StoragePoolsOperations operations.
+ /// DrivesOperations operations.
///
- public partial interface IStoragePoolsOperations
+ public partial interface IDrivesOperations
{
///
- /// Return the requested a storage pool.
+ /// Return the requested a storage drive.
///
///
/// Name of the resource group.
@@ -33,11 +33,14 @@ public partial interface IStoragePoolsOperations
///
/// Location of the resource.
///
+ ///
+ /// Name of the scale units.
+ ///
///
/// Name of the storage system.
///
- ///
- /// Storage pool name.
+ ///
+ /// Name of the storage drive.
///
///
/// The headers that will be added to request.
@@ -54,9 +57,9 @@ public partial interface IStoragePoolsOperations
///
/// Thrown when a required parameter is null
///
- Task> GetWithHttpMessagesAsync(string resourceGroupName, string location, string storageSubSystem, string storagePool, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ Task> GetWithHttpMessagesAsync(string resourceGroupName, string location, string scaleUnit, string storageSubSystem, string drive, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
- /// Returns a list of all storage pools for a location.
+ /// Returns a list of all storage drives at a location.
///
///
/// Name of the resource group.
@@ -64,6 +67,9 @@ public partial interface IStoragePoolsOperations
///
/// Location of the resource.
///
+ ///
+ /// Name of the scale units.
+ ///
///
/// Name of the storage system.
///
@@ -85,9 +91,9 @@ public partial interface IStoragePoolsOperations
///
/// Thrown when a required parameter is null
///
- Task>> ListWithHttpMessagesAsync(string resourceGroupName, string location, string storageSubSystem, ODataQuery odataQuery = default(ODataQuery), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ Task>> ListWithHttpMessagesAsync(string resourceGroupName, string location, string scaleUnit, string storageSubSystem, ODataQuery odataQuery = default(ODataQuery), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
- /// Returns a list of all storage pools for a location.
+ /// Returns a list of all storage drives at a location.
///
///
/// The NextLink from the previous successful call to List operation.
@@ -107,6 +113,6 @@ public partial interface IStoragePoolsOperations
///
/// Thrown when a required parameter is null
///
- Task>> ListNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ Task>> ListNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
}
}
diff --git a/sdk/azurestack/Microsoft.AzureStack.Management.Fabric.Admin/src/Generated/IFabricAdminClient.cs b/sdk/azurestack/Microsoft.AzureStack.Management.Fabric.Admin/src/Generated/IFabricAdminClient.cs
index 2397b199ba56..7ed868e4b103 100644
--- a/sdk/azurestack/Microsoft.AzureStack.Management.Fabric.Admin/src/Generated/IFabricAdminClient.cs
+++ b/sdk/azurestack/Microsoft.AzureStack.Management.Fabric.Admin/src/Generated/IFabricAdminClient.cs
@@ -47,11 +47,6 @@ public partial interface IFabricAdminClient : System.IDisposable
///
string SubscriptionId { get; set; }
- ///
- /// Client API Version.
- ///
- string ApiVersion { get; }
-
///
/// The preferred language for the response.
///
@@ -71,6 +66,16 @@ public partial interface IFabricAdminClient : System.IDisposable
bool? GenerateClientRequestId { get; set; }
+ ///
+ /// Gets the IApplicationOperationResultsOperations.
+ ///
+ IApplicationOperationResultsOperations ApplicationOperationResults { get; }
+
+ ///
+ /// Gets the IComputeOperationResultsOperations.
+ ///
+ IComputeOperationResultsOperations ComputeOperationResults { get; }
+
///
/// Gets the IFabricOperations.
///
@@ -116,21 +121,6 @@ public partial interface IFabricAdminClient : System.IDisposable
///
ILogicalNetworksOperations LogicalNetworks { get; }
- ///
- /// Gets the IStoragePoolsOperations.
- ///
- IStoragePoolsOperations StoragePools { get; }
-
- ///
- /// Gets the IStorageSystemsOperations.
- ///
- IStorageSystemsOperations StorageSystems { get; }
-
- ///
- /// Gets the IVolumesOperations.
- ///
- IVolumesOperations Volumes { get; }
-
///
/// Gets the ILogicalSubnetsOperations.
///
@@ -141,6 +131,11 @@ public partial interface IFabricAdminClient : System.IDisposable
///
IMacAddressPoolsOperations MacAddressPools { get; }
+ ///
+ /// Gets the INetworkOperationResultsOperations.
+ ///
+ INetworkOperationResultsOperations NetworkOperationResults { get; }
+
///
/// Gets the IScaleUnitsOperations.
///
@@ -156,5 +151,25 @@ public partial interface IFabricAdminClient : System.IDisposable
///
ISlbMuxInstancesOperations SlbMuxInstances { get; }
+ ///
+ /// Gets the IStorageOperationResultsOperations.
+ ///
+ IStorageOperationResultsOperations StorageOperationResults { get; }
+
+ ///
+ /// Gets the IStorageSubSystemsOperations.
+ ///
+ IStorageSubSystemsOperations StorageSubSystems { get; }
+
+ ///
+ /// Gets the IDrivesOperations.
+ ///
+ IDrivesOperations Drives { get; }
+
+ ///
+ /// Gets the IVolumesOperations.
+ ///
+ IVolumesOperations Volumes { get; }
+
}
}
diff --git a/sdk/azurestack/Microsoft.AzureStack.Management.Fabric.Admin/src/Generated/INetworkOperationResultsOperations.cs b/sdk/azurestack/Microsoft.AzureStack.Management.Fabric.Admin/src/Generated/INetworkOperationResultsOperations.cs
new file mode 100644
index 000000000000..403c955f587c
--- /dev/null
+++ b/sdk/azurestack/Microsoft.AzureStack.Management.Fabric.Admin/src/Generated/INetworkOperationResultsOperations.cs
@@ -0,0 +1,106 @@
+//
+// 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.AzureStack.Management.Fabric.Admin
+{
+ using Microsoft.Rest;
+ using Microsoft.Rest.Azure;
+ using Microsoft.Rest.Azure.OData;
+ using Models;
+ using System.Collections;
+ using System.Collections.Generic;
+ using System.Threading;
+ using System.Threading.Tasks;
+
+ ///
+ /// NetworkOperationResultsOperations operations.
+ ///
+ public partial interface INetworkOperationResultsOperations
+ {
+ ///
+ /// Returns the status of a network operation.
+ ///
+ ///
+ /// Name of the resource group.
+ ///
+ ///
+ /// Location of the resource.
+ ///
+ ///
+ /// Operation identifier.
+ ///
+ ///
+ /// 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 location, string operation, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ ///
+ /// Returns a list of all network operation results at a location.
+ ///
+ ///
+ /// Name of the resource group.
+ ///
+ ///
+ /// Location of the resource.
+ ///
+ ///
+ /// OData parameters to apply to the 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>> ListWithHttpMessagesAsync(string resourceGroupName, string location, ODataQuery odataQuery = default(ODataQuery), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ ///
+ /// Returns a list of all network operation results at a location.
+ ///
+ ///
+ /// 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/azurestack/Microsoft.AzureStack.Management.Fabric.Admin/src/Generated/IScaleUnitsOperations.cs b/sdk/azurestack/Microsoft.AzureStack.Management.Fabric.Admin/src/Generated/IScaleUnitsOperations.cs
index 14c7f2618455..9f7f88b207b5 100644
--- a/sdk/azurestack/Microsoft.AzureStack.Management.Fabric.Admin/src/Generated/IScaleUnitsOperations.cs
+++ b/sdk/azurestack/Microsoft.AzureStack.Management.Fabric.Admin/src/Generated/IScaleUnitsOperations.cs
@@ -25,7 +25,7 @@ namespace Microsoft.AzureStack.Management.Fabric.Admin
public partial interface IScaleUnitsOperations
{
///
- /// Add a new scale unit.
+ /// Scales out a scale unit.
///
///
/// Name of the resource group.
@@ -54,6 +54,34 @@ public partial interface IScaleUnitsOperations
///
Task ScaleOutWithHttpMessagesAsync(string resourceGroupName, string location, string scaleUnit, ScaleOutScaleUnitParametersList nodeList, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
+ /// Add a new scale unit.
+ ///
+ ///
+ /// Name of the resource group.
+ ///
+ ///
+ /// Location of the resource.
+ ///
+ ///
+ /// Name of the scale units.
+ ///
+ ///
+ /// A list of input data that allows for creating the new scale unit.
+ ///
+ ///
+ /// 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 CreateFromJsonWithHttpMessagesAsync(string resourceGroupName, string location, string scaleUnit, CreateFromJsonScaleUnitParametersList creationData, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ ///
/// Returns the requested scale unit.
///
///
@@ -110,7 +138,7 @@ public partial interface IScaleUnitsOperations
///
Task>> ListWithHttpMessagesAsync(string resourceGroupName, string location, ODataQuery odataQuery = default(ODataQuery), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
- /// Add a new scale unit.
+ /// Scales out a scale unit.
///
///
/// Name of the resource group.
@@ -139,6 +167,34 @@ public partial interface IScaleUnitsOperations
///
Task BeginScaleOutWithHttpMessagesAsync(string resourceGroupName, string location, string scaleUnit, ScaleOutScaleUnitParametersList nodeList, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
+ /// Add a new scale unit.
+ ///
+ ///
+ /// Name of the resource group.
+ ///
+ ///
+ /// Location of the resource.
+ ///
+ ///
+ /// Name of the scale units.
+ ///
+ ///
+ /// A list of input data that allows for creating the new scale unit.
+ ///
+ ///
+ /// 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 BeginCreateFromJsonWithHttpMessagesAsync(string resourceGroupName, string location, string scaleUnit, CreateFromJsonScaleUnitParametersList creationData, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ ///
/// Returns a list of all scale units at a location.
///
///
diff --git a/sdk/azurestack/Microsoft.AzureStack.Management.Fabric.Admin/src/Generated/IStorageOperationResultsOperations.cs b/sdk/azurestack/Microsoft.AzureStack.Management.Fabric.Admin/src/Generated/IStorageOperationResultsOperations.cs
new file mode 100644
index 000000000000..610c0923b45e
--- /dev/null
+++ b/sdk/azurestack/Microsoft.AzureStack.Management.Fabric.Admin/src/Generated/IStorageOperationResultsOperations.cs
@@ -0,0 +1,106 @@
+//
+// 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.AzureStack.Management.Fabric.Admin
+{
+ using Microsoft.Rest;
+ using Microsoft.Rest.Azure;
+ using Microsoft.Rest.Azure.OData;
+ using Models;
+ using System.Collections;
+ using System.Collections.Generic;
+ using System.Threading;
+ using System.Threading.Tasks;
+
+ ///
+ /// StorageOperationResultsOperations operations.
+ ///
+ public partial interface IStorageOperationResultsOperations
+ {
+ ///
+ /// Returns the status of a storage operation.
+ ///
+ ///
+ /// Name of the resource group.
+ ///
+ ///
+ /// Location of the resource.
+ ///
+ ///
+ /// Operation identifier.
+ ///
+ ///
+ /// 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 location, string operation, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ ///
+ /// Returns a list of all storage operation results at a location.
+ ///
+ ///
+ /// Name of the resource group.
+ ///
+ ///
+ /// Location of the resource.
+ ///
+ ///
+ /// OData parameters to apply to the 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>> ListWithHttpMessagesAsync(string resourceGroupName, string location, ODataQuery odataQuery = default(ODataQuery), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ ///
+ /// Returns a list of all storage operation results at a location.
+ ///
+ ///
+ /// 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/azurestack/Microsoft.AzureStack.Management.Fabric.Admin/src/Generated/IStorageSystemsOperations.cs b/sdk/azurestack/Microsoft.AzureStack.Management.Fabric.Admin/src/Generated/IStorageSubSystemsOperations.cs
similarity index 76%
rename from sdk/azurestack/Microsoft.AzureStack.Management.Fabric.Admin/src/Generated/IStorageSystemsOperations.cs
rename to sdk/azurestack/Microsoft.AzureStack.Management.Fabric.Admin/src/Generated/IStorageSubSystemsOperations.cs
index 2340c6060f82..3d244af7416b 100644
--- a/sdk/azurestack/Microsoft.AzureStack.Management.Fabric.Admin/src/Generated/IStorageSystemsOperations.cs
+++ b/sdk/azurestack/Microsoft.AzureStack.Management.Fabric.Admin/src/Generated/IStorageSubSystemsOperations.cs
@@ -20,9 +20,9 @@ namespace Microsoft.AzureStack.Management.Fabric.Admin
using System.Threading.Tasks;
///
- /// StorageSystemsOperations operations.
+ /// StorageSubSystemsOperations operations.
///
- public partial interface IStorageSystemsOperations
+ public partial interface IStorageSubSystemsOperations
{
///
/// Return the requested storage subsystem.
@@ -33,6 +33,9 @@ public partial interface IStorageSystemsOperations
///
/// Location of the resource.
///
+ ///
+ /// Name of the scale units.
+ ///
///
/// Name of the storage system.
///
@@ -51,7 +54,7 @@ public partial interface IStorageSystemsOperations
///
/// Thrown when a required parameter is null
///
- Task> GetWithHttpMessagesAsync(string resourceGroupName, string location, string storageSubSystem, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ Task> GetWithHttpMessagesAsync(string resourceGroupName, string location, string scaleUnit, string storageSubSystem, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
/// Returns a list of all storage subsystems for a location.
///
@@ -61,6 +64,9 @@ public partial interface IStorageSystemsOperations
///
/// Location of the resource.
///
+ ///
+ /// Name of the scale units.
+ ///
///
/// OData parameters to apply to the operation.
///
@@ -79,7 +85,7 @@ public partial interface IStorageSystemsOperations
///
/// Thrown when a required parameter is null
///
- Task>> ListWithHttpMessagesAsync(string resourceGroupName, string location, ODataQuery odataQuery = default(ODataQuery), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ Task>> ListWithHttpMessagesAsync(string resourceGroupName, string location, string scaleUnit, ODataQuery odataQuery = default(ODataQuery), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
/// Returns a list of all storage subsystems for a location.
///
@@ -101,6 +107,6 @@ public partial interface IStorageSystemsOperations
///
/// Thrown when a required parameter is null
///
- Task>> ListNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ Task>> ListNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
}
}
diff --git a/sdk/azurestack/Microsoft.AzureStack.Management.Fabric.Admin/src/Generated/IVolumesOperations.cs b/sdk/azurestack/Microsoft.AzureStack.Management.Fabric.Admin/src/Generated/IVolumesOperations.cs
index 483016454a06..5e0bd3b6ecc7 100644
--- a/sdk/azurestack/Microsoft.AzureStack.Management.Fabric.Admin/src/Generated/IVolumesOperations.cs
+++ b/sdk/azurestack/Microsoft.AzureStack.Management.Fabric.Admin/src/Generated/IVolumesOperations.cs
@@ -33,12 +33,12 @@ public partial interface IVolumesOperations
///
/// Location of the resource.
///
+ ///
+ /// Name of the scale units.
+ ///
///
/// Name of the storage system.
///
- ///
- /// Storage pool name.
- ///
///
/// Name of the storage volume.
///
@@ -57,7 +57,7 @@ public partial interface IVolumesOperations
///
/// Thrown when a required parameter is null
///
- Task> GetWithHttpMessagesAsync(string resourceGroupName, string location, string storageSubSystem, string storagePool, string volume, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ Task> GetWithHttpMessagesAsync(string resourceGroupName, string location, string scaleUnit, string storageSubSystem, string volume, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
/// Returns a list of all storage volumes at a location.
///
@@ -67,12 +67,12 @@ public partial interface IVolumesOperations
///
/// Location of the resource.
///
+ ///
+ /// Name of the scale units.
+ ///
///
/// Name of the storage system.
///
- ///
- /// Storage pool name.
- ///
///
/// OData parameters to apply to the operation.
///
@@ -91,7 +91,7 @@ public partial interface IVolumesOperations
///
/// Thrown when a required parameter is null
///
- Task>> ListWithHttpMessagesAsync(string resourceGroupName, string location, string storageSubSystem, string storagePool, ODataQuery odataQuery = default(ODataQuery), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ Task>> ListWithHttpMessagesAsync(string resourceGroupName, string location, string scaleUnit, string storageSubSystem, ODataQuery odataQuery = default(ODataQuery), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
/// Returns a list of all storage volumes at a location.
///
diff --git a/sdk/azurestack/Microsoft.AzureStack.Management.Fabric.Admin/src/Generated/InfraRoleInstancesOperations.cs b/sdk/azurestack/Microsoft.AzureStack.Management.Fabric.Admin/src/Generated/InfraRoleInstancesOperations.cs
index 9ffe19b09ef9..f594997c1b59 100644
--- a/sdk/azurestack/Microsoft.AzureStack.Management.Fabric.Admin/src/Generated/InfraRoleInstancesOperations.cs
+++ b/sdk/azurestack/Microsoft.AzureStack.Management.Fabric.Admin/src/Generated/InfraRoleInstancesOperations.cs
@@ -202,10 +202,7 @@ internal InfraRoleInstancesOperations(FabricAdminClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "infraRoleInstance");
}
- if (Client.ApiVersion == null)
- {
- throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion");
- }
+ string apiVersion = "2016-05-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -216,6 +213,7 @@ internal InfraRoleInstancesOperations(FabricAdminClient client)
tracingParameters.Add("resourceGroupName", resourceGroupName);
tracingParameters.Add("location", location);
tracingParameters.Add("infraRoleInstance", infraRoleInstance);
+ tracingParameters.Add("apiVersion", apiVersion);
tracingParameters.Add("cancellationToken", cancellationToken);
ServiceClientTracing.Enter(_invocationId, this, "Get", tracingParameters);
}
@@ -227,9 +225,9 @@ internal InfraRoleInstancesOperations(FabricAdminClient client)
_url = _url.Replace("{location}", System.Uri.EscapeDataString(location));
_url = _url.Replace("{infraRoleInstance}", System.Uri.EscapeDataString(infraRoleInstance));
List _queryParameters = new List();
- if (Client.ApiVersion != null)
+ if (apiVersion != null)
{
- _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion)));
+ _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion)));
}
if (_queryParameters.Count > 0)
{
@@ -403,10 +401,7 @@ internal InfraRoleInstancesOperations(FabricAdminClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "location");
}
- if (Client.ApiVersion == null)
- {
- throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion");
- }
+ string apiVersion = "2016-05-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -417,6 +412,7 @@ internal InfraRoleInstancesOperations(FabricAdminClient client)
tracingParameters.Add("odataQuery", odataQuery);
tracingParameters.Add("resourceGroupName", resourceGroupName);
tracingParameters.Add("location", location);
+ tracingParameters.Add("apiVersion", apiVersion);
tracingParameters.Add("cancellationToken", cancellationToken);
ServiceClientTracing.Enter(_invocationId, this, "List", tracingParameters);
}
@@ -435,9 +431,9 @@ internal InfraRoleInstancesOperations(FabricAdminClient client)
_queryParameters.Add(_odataFilter);
}
}
- if (Client.ApiVersion != null)
+ if (apiVersion != null)
{
- _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion)));
+ _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion)));
}
if (_queryParameters.Count > 0)
{
@@ -612,10 +608,7 @@ internal InfraRoleInstancesOperations(FabricAdminClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "infraRoleInstance");
}
- if (Client.ApiVersion == null)
- {
- throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion");
- }
+ string apiVersion = "2016-05-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -626,6 +619,7 @@ internal InfraRoleInstancesOperations(FabricAdminClient client)
tracingParameters.Add("resourceGroupName", resourceGroupName);
tracingParameters.Add("location", location);
tracingParameters.Add("infraRoleInstance", infraRoleInstance);
+ tracingParameters.Add("apiVersion", apiVersion);
tracingParameters.Add("cancellationToken", cancellationToken);
ServiceClientTracing.Enter(_invocationId, this, "BeginPowerOff", tracingParameters);
}
@@ -637,9 +631,9 @@ internal InfraRoleInstancesOperations(FabricAdminClient client)
_url = _url.Replace("{location}", System.Uri.EscapeDataString(location));
_url = _url.Replace("{infraRoleInstance}", System.Uri.EscapeDataString(infraRoleInstance));
List _queryParameters = new List();
- if (Client.ApiVersion != null)
+ if (apiVersion != null)
{
- _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion)));
+ _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion)));
}
if (_queryParameters.Count > 0)
{
@@ -796,10 +790,7 @@ internal InfraRoleInstancesOperations(FabricAdminClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "infraRoleInstance");
}
- if (Client.ApiVersion == null)
- {
- throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion");
- }
+ string apiVersion = "2016-05-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -810,6 +801,7 @@ internal InfraRoleInstancesOperations(FabricAdminClient client)
tracingParameters.Add("resourceGroupName", resourceGroupName);
tracingParameters.Add("location", location);
tracingParameters.Add("infraRoleInstance", infraRoleInstance);
+ tracingParameters.Add("apiVersion", apiVersion);
tracingParameters.Add("cancellationToken", cancellationToken);
ServiceClientTracing.Enter(_invocationId, this, "BeginPowerOn", tracingParameters);
}
@@ -821,9 +813,9 @@ internal InfraRoleInstancesOperations(FabricAdminClient client)
_url = _url.Replace("{location}", System.Uri.EscapeDataString(location));
_url = _url.Replace("{infraRoleInstance}", System.Uri.EscapeDataString(infraRoleInstance));
List _queryParameters = new List();
- if (Client.ApiVersion != null)
+ if (apiVersion != null)
{
- _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion)));
+ _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion)));
}
if (_queryParameters.Count > 0)
{
@@ -980,10 +972,7 @@ internal InfraRoleInstancesOperations(FabricAdminClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "infraRoleInstance");
}
- if (Client.ApiVersion == null)
- {
- throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion");
- }
+ string apiVersion = "2016-05-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -994,6 +983,7 @@ internal InfraRoleInstancesOperations(FabricAdminClient client)
tracingParameters.Add("resourceGroupName", resourceGroupName);
tracingParameters.Add("location", location);
tracingParameters.Add("infraRoleInstance", infraRoleInstance);
+ tracingParameters.Add("apiVersion", apiVersion);
tracingParameters.Add("cancellationToken", cancellationToken);
ServiceClientTracing.Enter(_invocationId, this, "BeginShutdown", tracingParameters);
}
@@ -1005,9 +995,9 @@ internal InfraRoleInstancesOperations(FabricAdminClient client)
_url = _url.Replace("{location}", System.Uri.EscapeDataString(location));
_url = _url.Replace("{infraRoleInstance}", System.Uri.EscapeDataString(infraRoleInstance));
List _queryParameters = new List();
- if (Client.ApiVersion != null)
+ if (apiVersion != null)
{
- _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion)));
+ _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion)));
}
if (_queryParameters.Count > 0)
{
@@ -1164,10 +1154,7 @@ internal InfraRoleInstancesOperations(FabricAdminClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "infraRoleInstance");
}
- if (Client.ApiVersion == null)
- {
- throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion");
- }
+ string apiVersion = "2016-05-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -1178,6 +1165,7 @@ internal InfraRoleInstancesOperations(FabricAdminClient client)
tracingParameters.Add("resourceGroupName", resourceGroupName);
tracingParameters.Add("location", location);
tracingParameters.Add("infraRoleInstance", infraRoleInstance);
+ tracingParameters.Add("apiVersion", apiVersion);
tracingParameters.Add("cancellationToken", cancellationToken);
ServiceClientTracing.Enter(_invocationId, this, "BeginReboot", tracingParameters);
}
@@ -1189,9 +1177,9 @@ internal InfraRoleInstancesOperations(FabricAdminClient client)
_url = _url.Replace("{location}", System.Uri.EscapeDataString(location));
_url = _url.Replace("{infraRoleInstance}", System.Uri.EscapeDataString(infraRoleInstance));
List