diff --git a/eng/mgmt/mgmtmetadata/vmware_resource-manager.txt b/eng/mgmt/mgmtmetadata/vmware_resource-manager.txt new file mode 100644 index 000000000000..6880ccf785a8 --- /dev/null +++ b/eng/mgmt/mgmtmetadata/vmware_resource-manager.txt @@ -0,0 +1,14 @@ +Installing AutoRest version: v2 +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/vmware/resource-manager/readme.md --csharp --version=v2 --reflect-api-versions --csharp-sdks-folder=C:\Users\cataggar\io\azure-sdk-for-net\sdk +2020-06-08 16:43:29 UTC +Azure-rest-api-specs repository information +GitHub fork: Azure +Branch: master +Commit: 8ba18e990a5c1a98d505018329d53272ce43f334 +AutoRest information +Requested version: v2 +Bootstrapper version: autorest@2.0.4413 diff --git a/eng/pipelines/mgmt.yml b/eng/pipelines/mgmt.yml index 55df2fbcc732..0f48cefc9b3d 100644 --- a/eng/pipelines/mgmt.yml +++ b/eng/pipelines/mgmt.yml @@ -15,6 +15,7 @@ pr: - sdk/attestation/Microsoft.Azure.Management.Attestation - sdk/authorization/Microsoft.Azure.Management.Authorization - sdk/automation/Microsoft.Azure.Management.Automation + - sdk/avs/Microsoft.Azure.Management.Avs - sdk/azurestack/Microsoft.AzureStack.Management.AzureBridge.Admin - sdk/azurestack/Microsoft.AzureStack.Management.Backup.Admin - sdk/azurestack/Microsoft.AzureStack.Management.Commerce.Admin diff --git a/sdk/avs/Microsoft.Azure.Management.Avs/AzSdk.RP.props b/sdk/avs/Microsoft.Azure.Management.Avs/AzSdk.RP.props new file mode 100644 index 000000000000..e4d31df6d958 --- /dev/null +++ b/sdk/avs/Microsoft.Azure.Management.Avs/AzSdk.RP.props @@ -0,0 +1,7 @@ + + + + AVS_2019-08-09-preview; + $(PackageTags);$(CommonTags);$(AzureApiTag); + + \ No newline at end of file diff --git a/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/AvsClient.cs b/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/AvsClient.cs new file mode 100644 index 000000000000..ae2f19697654 --- /dev/null +++ b/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/AvsClient.cs @@ -0,0 +1,376 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Avs +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Microsoft.Rest.Serialization; + using Models; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + using System.Net; + using System.Net.Http; + + /// + /// Azure VMware Solution API + /// + public partial class AvsClient : ServiceClient, IAvsClient, IAzureClient + { + /// + /// The base URI of the service. + /// + public System.Uri BaseUri { get; set; } + + /// + /// Gets or sets json serialization settings. + /// + public JsonSerializerSettings SerializationSettings { get; private set; } + + /// + /// Gets or sets json deserialization settings. + /// + public JsonSerializerSettings DeserializationSettings { get; private set; } + + /// + /// Credentials needed for the client to connect to Azure. + /// + public ServiceClientCredentials Credentials { get; private set; } + + /// + /// Unique identifier for the Azure subscription + /// + public string SubscriptionId { get; set; } + + /// + /// Version of Azure VMware Solution API to be used with the client request + /// + public string ApiVersion { get; private set; } + + /// + /// The preferred language for the response. + /// + public string AcceptLanguage { get; set; } + + /// + /// The retry timeout in seconds for Long Running Operations. Default value is + /// 30. + /// + public int? LongRunningOperationRetryTimeout { get; set; } + + /// + /// Whether a unique x-ms-client-request-id should be generated. When set to + /// true a unique x-ms-client-request-id value is generated and included in + /// each request. Default is true. + /// + public bool? GenerateClientRequestId { get; set; } + + /// + /// Gets the IOperations. + /// + public virtual IOperations Operations { get; private set; } + + /// + /// Gets the ILocationsOperations. + /// + public virtual ILocationsOperations Locations { get; private set; } + + /// + /// Gets the IPrivateCloudsOperations. + /// + public virtual IPrivateCloudsOperations PrivateClouds { get; private set; } + + /// + /// Gets the IClustersOperations. + /// + public virtual IClustersOperations Clusters { get; private set; } + + /// + /// Initializes a new instance of the AvsClient class. + /// + /// + /// HttpClient to be used + /// + /// + /// True: will dispose the provided httpClient on calling AvsClient.Dispose(). False: will not dispose provided httpClient + protected AvsClient(HttpClient httpClient, bool disposeHttpClient) : base(httpClient, disposeHttpClient) + { + Initialize(); + } + + /// + /// Initializes a new instance of the AvsClient class. + /// + /// + /// Optional. The delegating handlers to add to the http client pipeline. + /// + protected AvsClient(params DelegatingHandler[] handlers) : base(handlers) + { + Initialize(); + } + + /// + /// Initializes a new instance of the AvsClient class. + /// + /// + /// Optional. The http client handler used to handle http transport. + /// + /// + /// Optional. The delegating handlers to add to the http client pipeline. + /// + protected AvsClient(HttpClientHandler rootHandler, params DelegatingHandler[] handlers) : base(rootHandler, handlers) + { + Initialize(); + } + + /// + /// Initializes a new instance of the AvsClient class. + /// + /// + /// Optional. The base URI of the service. + /// + /// + /// Optional. The delegating handlers to add to the http client pipeline. + /// + /// + /// Thrown when a required parameter is null + /// + protected AvsClient(System.Uri baseUri, params DelegatingHandler[] handlers) : this(handlers) + { + if (baseUri == null) + { + throw new System.ArgumentNullException("baseUri"); + } + BaseUri = baseUri; + } + + /// + /// Initializes a new instance of the AvsClient class. + /// + /// + /// Optional. The base URI of the service. + /// + /// + /// Optional. The http client handler used to handle http transport. + /// + /// + /// Optional. The delegating handlers to add to the http client pipeline. + /// + /// + /// Thrown when a required parameter is null + /// + protected AvsClient(System.Uri baseUri, HttpClientHandler rootHandler, params DelegatingHandler[] handlers) : this(rootHandler, handlers) + { + if (baseUri == null) + { + throw new System.ArgumentNullException("baseUri"); + } + BaseUri = baseUri; + } + + /// + /// Initializes a new instance of the AvsClient class. + /// + /// + /// Required. Credentials needed for the client to connect to Azure. + /// + /// + /// Optional. The delegating handlers to add to the http client pipeline. + /// + /// + /// Thrown when a required parameter is null + /// + public AvsClient(ServiceClientCredentials credentials, params DelegatingHandler[] handlers) : this(handlers) + { + if (credentials == null) + { + throw new System.ArgumentNullException("credentials"); + } + Credentials = credentials; + if (Credentials != null) + { + Credentials.InitializeServiceClient(this); + } + } + + /// + /// Initializes a new instance of the AvsClient class. + /// + /// + /// Required. Credentials needed for the client to connect to Azure. + /// + /// + /// HttpClient to be used + /// + /// + /// True: will dispose the provided httpClient on calling AvsClient.Dispose(). False: will not dispose provided httpClient + /// + /// Thrown when a required parameter is null + /// + public AvsClient(ServiceClientCredentials credentials, HttpClient httpClient, bool disposeHttpClient) : this(httpClient, disposeHttpClient) + { + if (credentials == null) + { + throw new System.ArgumentNullException("credentials"); + } + Credentials = credentials; + if (Credentials != null) + { + Credentials.InitializeServiceClient(this); + } + } + + /// + /// Initializes a new instance of the AvsClient class. + /// + /// + /// Required. Credentials needed for the client to connect to Azure. + /// + /// + /// Optional. The http client handler used to handle http transport. + /// + /// + /// Optional. The delegating handlers to add to the http client pipeline. + /// + /// + /// Thrown when a required parameter is null + /// + public AvsClient(ServiceClientCredentials credentials, HttpClientHandler rootHandler, params DelegatingHandler[] handlers) : this(rootHandler, handlers) + { + if (credentials == null) + { + throw new System.ArgumentNullException("credentials"); + } + Credentials = credentials; + if (Credentials != null) + { + Credentials.InitializeServiceClient(this); + } + } + + /// + /// Initializes a new instance of the AvsClient class. + /// + /// + /// Optional. The base URI of the service. + /// + /// + /// Required. Credentials needed for the client to connect to Azure. + /// + /// + /// Optional. The delegating handlers to add to the http client pipeline. + /// + /// + /// Thrown when a required parameter is null + /// + public AvsClient(System.Uri baseUri, ServiceClientCredentials credentials, params DelegatingHandler[] handlers) : this(handlers) + { + if (baseUri == null) + { + throw new System.ArgumentNullException("baseUri"); + } + if (credentials == null) + { + throw new System.ArgumentNullException("credentials"); + } + BaseUri = baseUri; + Credentials = credentials; + if (Credentials != null) + { + Credentials.InitializeServiceClient(this); + } + } + + /// + /// Initializes a new instance of the AvsClient class. + /// + /// + /// Optional. The base URI of the service. + /// + /// + /// Required. Credentials needed for the client to connect to Azure. + /// + /// + /// Optional. The http client handler used to handle http transport. + /// + /// + /// Optional. The delegating handlers to add to the http client pipeline. + /// + /// + /// Thrown when a required parameter is null + /// + public AvsClient(System.Uri baseUri, ServiceClientCredentials credentials, HttpClientHandler rootHandler, params DelegatingHandler[] handlers) : this(rootHandler, handlers) + { + if (baseUri == null) + { + throw new System.ArgumentNullException("baseUri"); + } + if (credentials == null) + { + throw new System.ArgumentNullException("credentials"); + } + BaseUri = baseUri; + Credentials = credentials; + if (Credentials != null) + { + Credentials.InitializeServiceClient(this); + } + } + + /// + /// An optional partial-method to perform custom initialization. + /// + partial void CustomInitialize(); + /// + /// Initializes client properties. + /// + private void Initialize() + { + Operations = new Operations(this); + Locations = new LocationsOperations(this); + PrivateClouds = new PrivateCloudsOperations(this); + Clusters = new ClustersOperations(this); + BaseUri = new System.Uri("https://management.azure.com"); + ApiVersion = "2019-08-09-preview"; + AcceptLanguage = "en-US"; + LongRunningOperationRetryTimeout = 30; + GenerateClientRequestId = true; + SerializationSettings = new JsonSerializerSettings + { + Formatting = Newtonsoft.Json.Formatting.Indented, + DateFormatHandling = Newtonsoft.Json.DateFormatHandling.IsoDateFormat, + DateTimeZoneHandling = Newtonsoft.Json.DateTimeZoneHandling.Utc, + NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore, + ReferenceLoopHandling = Newtonsoft.Json.ReferenceLoopHandling.Serialize, + ContractResolver = new ReadOnlyJsonContractResolver(), + Converters = new List + { + new Iso8601TimeSpanConverter() + } + }; + DeserializationSettings = new JsonSerializerSettings + { + DateFormatHandling = Newtonsoft.Json.DateFormatHandling.IsoDateFormat, + DateTimeZoneHandling = Newtonsoft.Json.DateTimeZoneHandling.Utc, + NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore, + ReferenceLoopHandling = Newtonsoft.Json.ReferenceLoopHandling.Serialize, + ContractResolver = new ReadOnlyJsonContractResolver(), + Converters = new List + { + new Iso8601TimeSpanConverter() + } + }; + CustomInitialize(); + DeserializationSettings.Converters.Add(new CloudErrorJsonConverter()); + } + } +} diff --git a/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/ClustersOperations.cs b/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/ClustersOperations.cs new file mode 100644 index 000000000000..5b806c275f04 --- /dev/null +++ b/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/ClustersOperations.cs @@ -0,0 +1,1337 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Avs +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + 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; + + /// + /// ClustersOperations operations. + /// + internal partial class ClustersOperations : IServiceOperations, IClustersOperations + { + /// + /// Initializes a new instance of the ClustersOperations class. + /// + /// + /// Reference to the service client. + /// + /// + /// Thrown when a required parameter is null + /// + internal ClustersOperations(AvsClient client) + { + if (client == null) + { + throw new System.ArgumentNullException("client"); + } + Client = client; + } + + /// + /// Gets a reference to the AvsClient + /// + public AvsClient Client { get; private set; } + + /// + /// List clusters in a private cloud + /// + /// + /// Name of the resource group within the Azure subscription + /// + /// + /// Name of the private cloud + /// + /// + /// 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 privateCloudName, 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 (privateCloudName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "privateCloudName"); + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("privateCloudName", privateCloudName); + 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.AVS/privateClouds/{privateCloudName}/clusters").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{privateCloudName}", System.Uri.EscapeDataString(privateCloudName)); + List _queryParameters = new List(); + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.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) + { + var ex = new ApiErrorException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ApiError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + 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; + } + + /// + /// Get a cluster by name in a private cloud + /// + /// + /// Name of the resource group within the Azure subscription + /// + /// + /// Name of the private cloud + /// + /// + /// Name of the cluster in the private cloud + /// + /// + /// 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 privateCloudName, string clusterName, 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 (privateCloudName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "privateCloudName"); + } + if (clusterName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "clusterName"); + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("privateCloudName", privateCloudName); + tracingParameters.Add("clusterName", clusterName); + 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.AVS/privateClouds/{privateCloudName}/clusters/{clusterName}").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{privateCloudName}", System.Uri.EscapeDataString(privateCloudName)); + _url = _url.Replace("{clusterName}", System.Uri.EscapeDataString(clusterName)); + List _queryParameters = new List(); + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.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) + { + var ex = new ApiErrorException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ApiError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + 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; + } + + /// + /// Create or update a cluster in a private cloud + /// + /// + /// Name of the resource group within the Azure subscription + /// + /// + /// The name of the private cloud. + /// + /// + /// Name of the cluster in the private cloud + /// + /// + /// A cluster in the private cloud + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task> CreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string privateCloudName, string clusterName, Cluster cluster, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send Request + AzureOperationResponse _response = await BeginCreateOrUpdateWithHttpMessagesAsync(resourceGroupName, privateCloudName, clusterName, cluster, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPutOrPatchOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + + /// + /// Update a cluster in a private cloud + /// + /// + /// Name of the resource group within the Azure subscription + /// + /// + /// Name of the private cloud + /// + /// + /// Name of the cluster in the private cloud + /// + /// + /// A cluster in a private cloud + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task> UpdateWithHttpMessagesAsync(string resourceGroupName, string privateCloudName, string clusterName, Cluster cluster, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send Request + AzureOperationResponse _response = await BeginUpdateWithHttpMessagesAsync(resourceGroupName, privateCloudName, clusterName, cluster, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPutOrPatchOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + + /// + /// Delete a cluster in a private cloud + /// + /// + /// Name of the resource group within the Azure subscription + /// + /// + /// Name of the private cloud + /// + /// + /// Name of the cluster in the private cloud + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task DeleteWithHttpMessagesAsync(string resourceGroupName, string privateCloudName, string clusterName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send request + AzureOperationResponse _response = await BeginDeleteWithHttpMessagesAsync(resourceGroupName, privateCloudName, clusterName, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + + /// + /// Create or update a cluster in a private cloud + /// + /// + /// Name of the resource group within the Azure subscription + /// + /// + /// The name of the private cloud. + /// + /// + /// Name of the cluster in the private cloud + /// + /// + /// A cluster in the private cloud + /// + /// + /// 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> BeginCreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string privateCloudName, string clusterName, Cluster cluster, 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 (privateCloudName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "privateCloudName"); + } + if (clusterName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "clusterName"); + } + if (cluster == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "cluster"); + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("privateCloudName", privateCloudName); + tracingParameters.Add("clusterName", clusterName); + tracingParameters.Add("cluster", cluster); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "BeginCreateOrUpdate", 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.AVS/privateClouds/{privateCloudName}/clusters/{clusterName}").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{privateCloudName}", System.Uri.EscapeDataString(privateCloudName)); + _url = _url.Replace("{clusterName}", System.Uri.EscapeDataString(clusterName)); + List _queryParameters = new List(); + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.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("PUT"); + _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; + if(cluster != null) + { + _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(cluster, Client.SerializationSettings); + _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); + _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); + } + // 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 != 201) + { + var ex = new ApiErrorException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ApiError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + 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); + } + } + // Deserialize Response + if ((int)_statusCode == 201) + { + _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; + } + + /// + /// Update a cluster in a private cloud + /// + /// + /// Name of the resource group within the Azure subscription + /// + /// + /// Name of the private cloud + /// + /// + /// Name of the cluster in the private cloud + /// + /// + /// A cluster in a private cloud + /// + /// + /// 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> BeginUpdateWithHttpMessagesAsync(string resourceGroupName, string privateCloudName, string clusterName, Cluster cluster, 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 (privateCloudName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "privateCloudName"); + } + if (clusterName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "clusterName"); + } + if (cluster == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "cluster"); + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("privateCloudName", privateCloudName); + tracingParameters.Add("clusterName", clusterName); + tracingParameters.Add("cluster", cluster); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "BeginUpdate", 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.AVS/privateClouds/{privateCloudName}/clusters/{clusterName}").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{privateCloudName}", System.Uri.EscapeDataString(privateCloudName)); + _url = _url.Replace("{clusterName}", System.Uri.EscapeDataString(clusterName)); + List _queryParameters = new List(); + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.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("PATCH"); + _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; + if(cluster != null) + { + _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(cluster, Client.SerializationSettings); + _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); + _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); + } + // 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 != 201) + { + var ex = new ApiErrorException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ApiError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + 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); + } + } + // Deserialize Response + if ((int)_statusCode == 201) + { + _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; + } + + /// + /// Delete a cluster in a private cloud + /// + /// + /// Name of the resource group within the Azure subscription + /// + /// + /// Name of the private cloud + /// + /// + /// Name of the cluster in the private cloud + /// + /// + /// 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 + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task BeginDeleteWithHttpMessagesAsync(string resourceGroupName, string privateCloudName, string clusterName, 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 (privateCloudName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "privateCloudName"); + } + if (clusterName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "clusterName"); + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("privateCloudName", privateCloudName); + tracingParameters.Add("clusterName", clusterName); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "BeginDelete", 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.AVS/privateClouds/{privateCloudName}/clusters/{clusterName}").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{privateCloudName}", System.Uri.EscapeDataString(privateCloudName)); + _url = _url.Replace("{clusterName}", System.Uri.EscapeDataString(clusterName)); + List _queryParameters = new List(); + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.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("DELETE"); + _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 != 202 && (int)_statusCode != 204) + { + var ex = new ApiErrorException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ApiError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + 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(); + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// List clusters in a private cloud + /// + /// + /// 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) + { + var ex = new ApiErrorException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ApiError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + 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/avs/Microsoft.Azure.Management.Avs/src/Generated/ClustersOperationsExtensions.cs b/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/ClustersOperationsExtensions.cs new file mode 100644 index 000000000000..c035ec3d7228 --- /dev/null +++ b/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/ClustersOperationsExtensions.cs @@ -0,0 +1,439 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Avs +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using System.Threading; + using System.Threading.Tasks; + + /// + /// Extension methods for ClustersOperations. + /// + public static partial class ClustersOperationsExtensions + { + /// + /// List clusters in a private cloud + /// + /// + /// The operations group for this extension method. + /// + /// + /// Name of the resource group within the Azure subscription + /// + /// + /// Name of the private cloud + /// + public static IPage List(this IClustersOperations operations, string resourceGroupName, string privateCloudName) + { + return operations.ListAsync(resourceGroupName, privateCloudName).GetAwaiter().GetResult(); + } + + /// + /// List clusters in a private cloud + /// + /// + /// The operations group for this extension method. + /// + /// + /// Name of the resource group within the Azure subscription + /// + /// + /// Name of the private cloud + /// + /// + /// The cancellation token. + /// + public static async Task> ListAsync(this IClustersOperations operations, string resourceGroupName, string privateCloudName, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListWithHttpMessagesAsync(resourceGroupName, privateCloudName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Get a cluster by name in a private cloud + /// + /// + /// The operations group for this extension method. + /// + /// + /// Name of the resource group within the Azure subscription + /// + /// + /// Name of the private cloud + /// + /// + /// Name of the cluster in the private cloud + /// + public static Cluster Get(this IClustersOperations operations, string resourceGroupName, string privateCloudName, string clusterName) + { + return operations.GetAsync(resourceGroupName, privateCloudName, clusterName).GetAwaiter().GetResult(); + } + + /// + /// Get a cluster by name in a private cloud + /// + /// + /// The operations group for this extension method. + /// + /// + /// Name of the resource group within the Azure subscription + /// + /// + /// Name of the private cloud + /// + /// + /// Name of the cluster in the private cloud + /// + /// + /// The cancellation token. + /// + public static async Task GetAsync(this IClustersOperations operations, string resourceGroupName, string privateCloudName, string clusterName, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.GetWithHttpMessagesAsync(resourceGroupName, privateCloudName, clusterName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Create or update a cluster in a private cloud + /// + /// + /// The operations group for this extension method. + /// + /// + /// Name of the resource group within the Azure subscription + /// + /// + /// The name of the private cloud. + /// + /// + /// Name of the cluster in the private cloud + /// + /// + /// A cluster in the private cloud + /// + public static Cluster CreateOrUpdate(this IClustersOperations operations, string resourceGroupName, string privateCloudName, string clusterName, Cluster cluster) + { + return operations.CreateOrUpdateAsync(resourceGroupName, privateCloudName, clusterName, cluster).GetAwaiter().GetResult(); + } + + /// + /// Create or update a cluster in a private cloud + /// + /// + /// The operations group for this extension method. + /// + /// + /// Name of the resource group within the Azure subscription + /// + /// + /// The name of the private cloud. + /// + /// + /// Name of the cluster in the private cloud + /// + /// + /// A cluster in the private cloud + /// + /// + /// The cancellation token. + /// + public static async Task CreateOrUpdateAsync(this IClustersOperations operations, string resourceGroupName, string privateCloudName, string clusterName, Cluster cluster, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.CreateOrUpdateWithHttpMessagesAsync(resourceGroupName, privateCloudName, clusterName, cluster, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Update a cluster in a private cloud + /// + /// + /// The operations group for this extension method. + /// + /// + /// Name of the resource group within the Azure subscription + /// + /// + /// Name of the private cloud + /// + /// + /// Name of the cluster in the private cloud + /// + /// + /// A cluster in a private cloud + /// + public static Cluster Update(this IClustersOperations operations, string resourceGroupName, string privateCloudName, string clusterName, Cluster cluster) + { + return operations.UpdateAsync(resourceGroupName, privateCloudName, clusterName, cluster).GetAwaiter().GetResult(); + } + + /// + /// Update a cluster in a private cloud + /// + /// + /// The operations group for this extension method. + /// + /// + /// Name of the resource group within the Azure subscription + /// + /// + /// Name of the private cloud + /// + /// + /// Name of the cluster in the private cloud + /// + /// + /// A cluster in a private cloud + /// + /// + /// The cancellation token. + /// + public static async Task UpdateAsync(this IClustersOperations operations, string resourceGroupName, string privateCloudName, string clusterName, Cluster cluster, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.UpdateWithHttpMessagesAsync(resourceGroupName, privateCloudName, clusterName, cluster, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Delete a cluster in a private cloud + /// + /// + /// The operations group for this extension method. + /// + /// + /// Name of the resource group within the Azure subscription + /// + /// + /// Name of the private cloud + /// + /// + /// Name of the cluster in the private cloud + /// + public static void Delete(this IClustersOperations operations, string resourceGroupName, string privateCloudName, string clusterName) + { + operations.DeleteAsync(resourceGroupName, privateCloudName, clusterName).GetAwaiter().GetResult(); + } + + /// + /// Delete a cluster in a private cloud + /// + /// + /// The operations group for this extension method. + /// + /// + /// Name of the resource group within the Azure subscription + /// + /// + /// Name of the private cloud + /// + /// + /// Name of the cluster in the private cloud + /// + /// + /// The cancellation token. + /// + public static async Task DeleteAsync(this IClustersOperations operations, string resourceGroupName, string privateCloudName, string clusterName, CancellationToken cancellationToken = default(CancellationToken)) + { + (await operations.DeleteWithHttpMessagesAsync(resourceGroupName, privateCloudName, clusterName, null, cancellationToken).ConfigureAwait(false)).Dispose(); + } + + /// + /// Create or update a cluster in a private cloud + /// + /// + /// The operations group for this extension method. + /// + /// + /// Name of the resource group within the Azure subscription + /// + /// + /// The name of the private cloud. + /// + /// + /// Name of the cluster in the private cloud + /// + /// + /// A cluster in the private cloud + /// + public static Cluster BeginCreateOrUpdate(this IClustersOperations operations, string resourceGroupName, string privateCloudName, string clusterName, Cluster cluster) + { + return operations.BeginCreateOrUpdateAsync(resourceGroupName, privateCloudName, clusterName, cluster).GetAwaiter().GetResult(); + } + + /// + /// Create or update a cluster in a private cloud + /// + /// + /// The operations group for this extension method. + /// + /// + /// Name of the resource group within the Azure subscription + /// + /// + /// The name of the private cloud. + /// + /// + /// Name of the cluster in the private cloud + /// + /// + /// A cluster in the private cloud + /// + /// + /// The cancellation token. + /// + public static async Task BeginCreateOrUpdateAsync(this IClustersOperations operations, string resourceGroupName, string privateCloudName, string clusterName, Cluster cluster, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.BeginCreateOrUpdateWithHttpMessagesAsync(resourceGroupName, privateCloudName, clusterName, cluster, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Update a cluster in a private cloud + /// + /// + /// The operations group for this extension method. + /// + /// + /// Name of the resource group within the Azure subscription + /// + /// + /// Name of the private cloud + /// + /// + /// Name of the cluster in the private cloud + /// + /// + /// A cluster in a private cloud + /// + public static Cluster BeginUpdate(this IClustersOperations operations, string resourceGroupName, string privateCloudName, string clusterName, Cluster cluster) + { + return operations.BeginUpdateAsync(resourceGroupName, privateCloudName, clusterName, cluster).GetAwaiter().GetResult(); + } + + /// + /// Update a cluster in a private cloud + /// + /// + /// The operations group for this extension method. + /// + /// + /// Name of the resource group within the Azure subscription + /// + /// + /// Name of the private cloud + /// + /// + /// Name of the cluster in the private cloud + /// + /// + /// A cluster in a private cloud + /// + /// + /// The cancellation token. + /// + public static async Task BeginUpdateAsync(this IClustersOperations operations, string resourceGroupName, string privateCloudName, string clusterName, Cluster cluster, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.BeginUpdateWithHttpMessagesAsync(resourceGroupName, privateCloudName, clusterName, cluster, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Delete a cluster in a private cloud + /// + /// + /// The operations group for this extension method. + /// + /// + /// Name of the resource group within the Azure subscription + /// + /// + /// Name of the private cloud + /// + /// + /// Name of the cluster in the private cloud + /// + public static void BeginDelete(this IClustersOperations operations, string resourceGroupName, string privateCloudName, string clusterName) + { + operations.BeginDeleteAsync(resourceGroupName, privateCloudName, clusterName).GetAwaiter().GetResult(); + } + + /// + /// Delete a cluster in a private cloud + /// + /// + /// The operations group for this extension method. + /// + /// + /// Name of the resource group within the Azure subscription + /// + /// + /// Name of the private cloud + /// + /// + /// Name of the cluster in the private cloud + /// + /// + /// The cancellation token. + /// + public static async Task BeginDeleteAsync(this IClustersOperations operations, string resourceGroupName, string privateCloudName, string clusterName, CancellationToken cancellationToken = default(CancellationToken)) + { + (await operations.BeginDeleteWithHttpMessagesAsync(resourceGroupName, privateCloudName, clusterName, null, cancellationToken).ConfigureAwait(false)).Dispose(); + } + + /// + /// List clusters in a private cloud + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + public static IPage ListNext(this IClustersOperations operations, string nextPageLink) + { + return operations.ListNextAsync(nextPageLink).GetAwaiter().GetResult(); + } + + /// + /// List clusters in a private cloud + /// + /// + /// 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 IClustersOperations 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/avs/Microsoft.Azure.Management.Avs/src/Generated/IAvsClient.cs b/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/IAvsClient.cs new file mode 100644 index 000000000000..2146c8e1754a --- /dev/null +++ b/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/IAvsClient.cs @@ -0,0 +1,94 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Avs +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using Newtonsoft.Json; + + /// + /// Azure VMware Solution API + /// + public partial interface IAvsClient : System.IDisposable + { + /// + /// The base URI of the service. + /// + System.Uri BaseUri { get; set; } + + /// + /// Gets or sets json serialization settings. + /// + JsonSerializerSettings SerializationSettings { get; } + + /// + /// Gets or sets json deserialization settings. + /// + JsonSerializerSettings DeserializationSettings { get; } + + /// + /// Credentials needed for the client to connect to Azure. + /// + ServiceClientCredentials Credentials { get; } + + /// + /// Unique identifier for the Azure subscription + /// + string SubscriptionId { get; set; } + + /// + /// Version of Azure VMware Solution API to be used with the client + /// request + /// + string ApiVersion { get; } + + /// + /// The preferred language for the response. + /// + string AcceptLanguage { get; set; } + + /// + /// The retry timeout in seconds for Long Running Operations. Default + /// value is 30. + /// + int? LongRunningOperationRetryTimeout { get; set; } + + /// + /// Whether a unique x-ms-client-request-id should be generated. When + /// set to true a unique x-ms-client-request-id value is generated and + /// included in each request. Default is true. + /// + bool? GenerateClientRequestId { get; set; } + + + /// + /// Gets the IOperations. + /// + IOperations Operations { get; } + + /// + /// Gets the ILocationsOperations. + /// + ILocationsOperations Locations { get; } + + /// + /// Gets the IPrivateCloudsOperations. + /// + IPrivateCloudsOperations PrivateClouds { get; } + + /// + /// Gets the IClustersOperations. + /// + IClustersOperations Clusters { get; } + + } +} diff --git a/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/IClustersOperations.cs b/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/IClustersOperations.cs new file mode 100644 index 000000000000..650a2565cefc --- /dev/null +++ b/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/IClustersOperations.cs @@ -0,0 +1,276 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Avs +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using System.Collections; + using System.Collections.Generic; + using System.Threading; + using System.Threading.Tasks; + + /// + /// ClustersOperations operations. + /// + public partial interface IClustersOperations + { + /// + /// List clusters in a private cloud + /// + /// + /// Name of the resource group within the Azure subscription + /// + /// + /// Name of the private cloud + /// + /// + /// 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 privateCloudName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Get a cluster by name in a private cloud + /// + /// + /// Name of the resource group within the Azure subscription + /// + /// + /// Name of the private cloud + /// + /// + /// Name of the cluster in the private cloud + /// + /// + /// 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 privateCloudName, string clusterName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Create or update a cluster in a private cloud + /// + /// + /// Name of the resource group within the Azure subscription + /// + /// + /// The name of the private cloud. + /// + /// + /// Name of the cluster in the private cloud + /// + /// + /// A cluster in the private cloud + /// + /// + /// 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> CreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string privateCloudName, string clusterName, Cluster cluster, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Update a cluster in a private cloud + /// + /// + /// Name of the resource group within the Azure subscription + /// + /// + /// Name of the private cloud + /// + /// + /// Name of the cluster in the private cloud + /// + /// + /// A cluster in a private cloud + /// + /// + /// 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> UpdateWithHttpMessagesAsync(string resourceGroupName, string privateCloudName, string clusterName, Cluster cluster, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Delete a cluster in a private cloud + /// + /// + /// Name of the resource group within the Azure subscription + /// + /// + /// Name of the private cloud + /// + /// + /// Name of the cluster in the private cloud + /// + /// + /// 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 DeleteWithHttpMessagesAsync(string resourceGroupName, string privateCloudName, string clusterName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Create or update a cluster in a private cloud + /// + /// + /// Name of the resource group within the Azure subscription + /// + /// + /// The name of the private cloud. + /// + /// + /// Name of the cluster in the private cloud + /// + /// + /// A cluster in the private cloud + /// + /// + /// 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> BeginCreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string privateCloudName, string clusterName, Cluster cluster, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Update a cluster in a private cloud + /// + /// + /// Name of the resource group within the Azure subscription + /// + /// + /// Name of the private cloud + /// + /// + /// Name of the cluster in the private cloud + /// + /// + /// A cluster in a private cloud + /// + /// + /// 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> BeginUpdateWithHttpMessagesAsync(string resourceGroupName, string privateCloudName, string clusterName, Cluster cluster, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Delete a cluster in a private cloud + /// + /// + /// Name of the resource group within the Azure subscription + /// + /// + /// Name of the private cloud + /// + /// + /// Name of the cluster in the private cloud + /// + /// + /// 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 BeginDeleteWithHttpMessagesAsync(string resourceGroupName, string privateCloudName, string clusterName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// List clusters in a private cloud + /// + /// + /// 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/avs/Microsoft.Azure.Management.Avs/src/Generated/ILocationsOperations.cs b/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/ILocationsOperations.cs new file mode 100644 index 000000000000..f731158265f3 --- /dev/null +++ b/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/ILocationsOperations.cs @@ -0,0 +1,71 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Avs +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using System.Collections; + using System.Collections.Generic; + using System.Threading; + using System.Threading.Tasks; + + /// + /// LocationsOperations operations. + /// + public partial interface ILocationsOperations + { + /// + /// Return trial status for subscription by region + /// + /// + /// Azure region + /// + /// + /// 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> CheckTrialAvailabilityWithHttpMessagesAsync(string location, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Return quota for subscription by region + /// + /// + /// Azure region + /// + /// + /// 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> CheckQuotaAvailabilityWithHttpMessagesAsync(string location, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + } +} diff --git a/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/IOperations.cs b/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/IOperations.cs new file mode 100644 index 000000000000..d3a4775d0972 --- /dev/null +++ b/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/IOperations.cs @@ -0,0 +1,68 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Avs +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using System.Collections; + using System.Collections.Generic; + using System.Threading; + using System.Threading.Tasks; + + /// + /// Operations operations. + /// + public partial interface IOperations + { + /// + /// Lists all of the available operations + /// + /// + /// 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(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Lists all of the available operations + /// + /// + /// 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/avs/Microsoft.Azure.Management.Avs/src/Generated/IPrivateCloudsOperations.cs b/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/IPrivateCloudsOperations.cs new file mode 100644 index 000000000000..2d470722138a --- /dev/null +++ b/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/IPrivateCloudsOperations.cs @@ -0,0 +1,318 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Avs +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using System.Collections; + using System.Collections.Generic; + using System.Threading; + using System.Threading.Tasks; + + /// + /// PrivateCloudsOperations operations. + /// + public partial interface IPrivateCloudsOperations + { + /// + /// List private clouds in a resource group + /// + /// + /// Name of the resource group within the Azure subscription + /// + /// + /// 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, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// List private clouds in a subscription + /// + /// + /// 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>> ListInSubscriptionWithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Get a private cloud + /// + /// + /// Name of the resource group within the Azure subscription + /// + /// + /// Name of the private cloud + /// + /// + /// 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 privateCloudName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Create or update a private cloud + /// + /// + /// Name of the resource group within the Azure subscription + /// + /// + /// Name of the private cloud + /// + /// + /// The private cloud + /// + /// + /// 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> CreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string privateCloudName, PrivateCloud privateCloud, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Update a private cloud + /// + /// + /// Name of the resource group within the Azure subscription + /// + /// + /// Name of the private cloud + /// + /// + /// The private cloud + /// + /// + /// 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> UpdateWithHttpMessagesAsync(string resourceGroupName, string privateCloudName, PrivateCloud privateCloud, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Delete a private cloud + /// + /// + /// Name of the resource group within the Azure subscription + /// + /// + /// Name of the private cloud + /// + /// + /// 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 DeleteWithHttpMessagesAsync(string resourceGroupName, string privateCloudName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// List the admin credentials for the private cloud + /// + /// + /// Name of the resource group within the Azure subscription + /// + /// + /// Name of the private cloud + /// + /// + /// 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> ListAdminCredentialsWithHttpMessagesAsync(string resourceGroupName, string privateCloudName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Create or update a private cloud + /// + /// + /// Name of the resource group within the Azure subscription + /// + /// + /// Name of the private cloud + /// + /// + /// The private cloud + /// + /// + /// 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> BeginCreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string privateCloudName, PrivateCloud privateCloud, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Update a private cloud + /// + /// + /// Name of the resource group within the Azure subscription + /// + /// + /// Name of the private cloud + /// + /// + /// The private cloud + /// + /// + /// 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> BeginUpdateWithHttpMessagesAsync(string resourceGroupName, string privateCloudName, PrivateCloud privateCloud, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Delete a private cloud + /// + /// + /// Name of the resource group within the Azure subscription + /// + /// + /// Name of the private cloud + /// + /// + /// 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 BeginDeleteWithHttpMessagesAsync(string resourceGroupName, string privateCloudName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// List private clouds in a resource group + /// + /// + /// 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)); + /// + /// List private clouds in a subscription + /// + /// + /// 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>> ListInSubscriptionNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + } +} diff --git a/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/LocationsOperations.cs b/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/LocationsOperations.cs new file mode 100644 index 000000000000..8f10b1af0ef8 --- /dev/null +++ b/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/LocationsOperations.cs @@ -0,0 +1,418 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Avs +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + 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; + + /// + /// LocationsOperations operations. + /// + internal partial class LocationsOperations : IServiceOperations, ILocationsOperations + { + /// + /// Initializes a new instance of the LocationsOperations class. + /// + /// + /// Reference to the service client. + /// + /// + /// Thrown when a required parameter is null + /// + internal LocationsOperations(AvsClient client) + { + if (client == null) + { + throw new System.ArgumentNullException("client"); + } + Client = client; + } + + /// + /// Gets a reference to the AvsClient + /// + public AvsClient Client { get; private set; } + + /// + /// Return trial status for subscription by region + /// + /// + /// Azure region + /// + /// + /// 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> CheckTrialAvailabilityWithHttpMessagesAsync(string location, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (location == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "location"); + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("location", location); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "CheckTrialAvailability", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/providers/Microsoft.AVS/locations/{location}/checkTrialAvailability").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{location}", System.Uri.EscapeDataString(location)); + List _queryParameters = new List(); + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.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("POST"); + _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) + { + var ex = new ApiErrorException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ApiError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + 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; + } + + /// + /// Return quota for subscription by region + /// + /// + /// Azure region + /// + /// + /// 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> CheckQuotaAvailabilityWithHttpMessagesAsync(string location, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (location == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "location"); + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("location", location); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "CheckQuotaAvailability", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/providers/Microsoft.AVS/locations/{location}/checkQuotaAvailability").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{location}", System.Uri.EscapeDataString(location)); + List _queryParameters = new List(); + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.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("POST"); + _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) + { + var ex = new ApiErrorException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ApiError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + 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/avs/Microsoft.Azure.Management.Avs/src/Generated/LocationsOperationsExtensions.cs b/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/LocationsOperationsExtensions.cs new file mode 100644 index 000000000000..4904021c1aa1 --- /dev/null +++ b/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/LocationsOperationsExtensions.cs @@ -0,0 +1,93 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Avs +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using System.Threading; + using System.Threading.Tasks; + + /// + /// Extension methods for LocationsOperations. + /// + public static partial class LocationsOperationsExtensions + { + /// + /// Return trial status for subscription by region + /// + /// + /// The operations group for this extension method. + /// + /// + /// Azure region + /// + public static Trial CheckTrialAvailability(this ILocationsOperations operations, string location) + { + return operations.CheckTrialAvailabilityAsync(location).GetAwaiter().GetResult(); + } + + /// + /// Return trial status for subscription by region + /// + /// + /// The operations group for this extension method. + /// + /// + /// Azure region + /// + /// + /// The cancellation token. + /// + public static async Task CheckTrialAvailabilityAsync(this ILocationsOperations operations, string location, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.CheckTrialAvailabilityWithHttpMessagesAsync(location, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Return quota for subscription by region + /// + /// + /// The operations group for this extension method. + /// + /// + /// Azure region + /// + public static Quota CheckQuotaAvailability(this ILocationsOperations operations, string location) + { + return operations.CheckQuotaAvailabilityAsync(location).GetAwaiter().GetResult(); + } + + /// + /// Return quota for subscription by region + /// + /// + /// The operations group for this extension method. + /// + /// + /// Azure region + /// + /// + /// The cancellation token. + /// + public static async Task CheckQuotaAvailabilityAsync(this ILocationsOperations operations, string location, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.CheckQuotaAvailabilityWithHttpMessagesAsync(location, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + } +} diff --git a/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/Models/AdminCredentials.cs b/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/Models/AdminCredentials.cs new file mode 100644 index 000000000000..c31ba7eab139 --- /dev/null +++ b/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/Models/AdminCredentials.cs @@ -0,0 +1,75 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Avs.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// Administrative credentials for accessing vCenter and NSX-T + /// + public partial class AdminCredentials + { + /// + /// Initializes a new instance of the AdminCredentials class. + /// + public AdminCredentials() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the AdminCredentials class. + /// + /// NSX-T Manager username + /// NSX-T Manager password + /// vCenter admin username + /// vCenter admin password + public AdminCredentials(string nsxtUsername = default(string), string nsxtPassword = default(string), string vcenterUsername = default(string), string vcenterPassword = default(string)) + { + NsxtUsername = nsxtUsername; + NsxtPassword = nsxtPassword; + VcenterUsername = vcenterUsername; + VcenterPassword = vcenterPassword; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets NSX-T Manager username + /// + [JsonProperty(PropertyName = "nsxtUsername")] + public string NsxtUsername { get; private set; } + + /// + /// Gets NSX-T Manager password + /// + [JsonProperty(PropertyName = "nsxtPassword")] + public string NsxtPassword { get; private set; } + + /// + /// Gets vCenter admin username + /// + [JsonProperty(PropertyName = "vcenterUsername")] + public string VcenterUsername { get; private set; } + + /// + /// Gets vCenter admin password + /// + [JsonProperty(PropertyName = "vcenterPassword")] + public string VcenterPassword { get; private set; } + + } +} diff --git a/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/Models/ApiError.cs b/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/Models/ApiError.cs new file mode 100644 index 000000000000..fef10e8de549 --- /dev/null +++ b/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/Models/ApiError.cs @@ -0,0 +1,51 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Avs.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// API error response + /// + public partial class ApiError + { + /// + /// Initializes a new instance of the ApiError class. + /// + public ApiError() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the ApiError class. + /// + /// An error returned by the API + public ApiError(ApiErrorBase error = default(ApiErrorBase)) + { + Error = error; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets an error returned by the API + /// + [JsonProperty(PropertyName = "error")] + public ApiErrorBase Error { get; set; } + + } +} diff --git a/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/Models/ApiErrorBase.cs b/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/Models/ApiErrorBase.cs new file mode 100644 index 000000000000..4080cb9ec18c --- /dev/null +++ b/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/Models/ApiErrorBase.cs @@ -0,0 +1,59 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Avs.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// Api error. + /// + public partial class ApiErrorBase + { + /// + /// Initializes a new instance of the ApiErrorBase class. + /// + public ApiErrorBase() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the ApiErrorBase class. + /// + /// Error code + /// Error message + public ApiErrorBase(string code = default(string), string message = default(string)) + { + Code = code; + Message = message; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets error code + /// + [JsonProperty(PropertyName = "code")] + public string Code { get; set; } + + /// + /// Gets or sets error message + /// + [JsonProperty(PropertyName = "message")] + public string Message { get; set; } + + } +} diff --git a/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/Models/ApiErrorException.cs b/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/Models/ApiErrorException.cs new file mode 100644 index 000000000000..604eafc89a33 --- /dev/null +++ b/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/Models/ApiErrorException.cs @@ -0,0 +1,61 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Avs.Models +{ + using Microsoft.Rest; + + /// + /// Exception thrown for an invalid response with ApiError information. + /// + public partial class ApiErrorException : RestException + { + /// + /// Gets information about the associated HTTP request. + /// + public HttpRequestMessageWrapper Request { get; set; } + + /// + /// Gets information about the associated HTTP response. + /// + public HttpResponseMessageWrapper Response { get; set; } + + /// + /// Gets or sets the body object. + /// + public ApiError Body { get; set; } + + /// + /// Initializes a new instance of the ApiErrorException class. + /// + public ApiErrorException() + { + } + + /// + /// Initializes a new instance of the ApiErrorException class. + /// + /// The exception message. + public ApiErrorException(string message) + : this(message, null) + { + } + + /// + /// Initializes a new instance of the ApiErrorException class. + /// + /// The exception message. + /// Inner exception. + public ApiErrorException(string message, System.Exception innerException) + : base(message, innerException) + { + } + } +} diff --git a/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/Models/Circuit.cs b/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/Models/Circuit.cs new file mode 100644 index 000000000000..7bd10fe203bc --- /dev/null +++ b/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/Models/Circuit.cs @@ -0,0 +1,89 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Avs.Models +{ + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// An ExpressRoute Circuit + /// + public partial class Circuit + { + /// + /// Initializes a new instance of the Circuit class. + /// + public Circuit() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the Circuit class. + /// + /// CIDR of primary subnet + /// CIDR of secondary subnet + /// Identifier of the ExpressRoute + /// (Microsoft Colo only) + /// Authorizations for the ExpressRoute + /// (Microsoft Colo only) + /// ExpressRoute private + /// peering identifier + public Circuit(string primarySubnet = default(string), string secondarySubnet = default(string), string expressRouteID = default(string), IList authorizations = default(IList), string expressRoutePrivatePeeringID = default(string)) + { + PrimarySubnet = primarySubnet; + SecondarySubnet = secondarySubnet; + ExpressRouteID = expressRouteID; + Authorizations = authorizations; + ExpressRoutePrivatePeeringID = expressRoutePrivatePeeringID; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets CIDR of primary subnet + /// + [JsonProperty(PropertyName = "primarySubnet")] + public string PrimarySubnet { get; private set; } + + /// + /// Gets CIDR of secondary subnet + /// + [JsonProperty(PropertyName = "secondarySubnet")] + public string SecondarySubnet { get; private set; } + + /// + /// Gets identifier of the ExpressRoute (Microsoft Colo only) + /// + [JsonProperty(PropertyName = "expressRouteID")] + public string ExpressRouteID { get; private set; } + + /// + /// Gets or sets authorizations for the ExpressRoute (Microsoft Colo + /// only) + /// + [JsonProperty(PropertyName = "authorizations")] + public IList Authorizations { get; set; } + + /// + /// Gets expressRoute private peering identifier + /// + [JsonProperty(PropertyName = "expressRoutePrivatePeeringID")] + public string ExpressRoutePrivatePeeringID { get; private set; } + + } +} diff --git a/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/Models/Cluster.cs b/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/Models/Cluster.cs new file mode 100644 index 000000000000..6d902ec0a507 --- /dev/null +++ b/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/Models/Cluster.cs @@ -0,0 +1,56 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Avs.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// A cluster resource + /// + public partial class Cluster : Resource + { + /// + /// Initializes a new instance of the Cluster class. + /// + public Cluster() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the Cluster class. + /// + /// Resource ID. + /// Resource name. + /// Resource type. + /// The properties of a cluster + /// resource + public Cluster(string id = default(string), string name = default(string), string type = default(string), ClusterProperties properties = default(ClusterProperties)) + : base(id, name, type) + { + Properties = properties; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the properties of a cluster resource + /// + [JsonProperty(PropertyName = "properties")] + public ClusterProperties Properties { get; set; } + + } +} diff --git a/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/Models/ClusterProperties.cs b/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/Models/ClusterProperties.cs new file mode 100644 index 000000000000..b1c114ee8215 --- /dev/null +++ b/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/Models/ClusterProperties.cs @@ -0,0 +1,60 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Avs.Models +{ + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// The properties of a cluster + /// + public partial class ClusterProperties : DefaultClusterProperties + { + /// + /// Initializes a new instance of the ClusterProperties class. + /// + public ClusterProperties() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the ClusterProperties class. + /// + /// The identity + /// The cluster size + /// The hosts + /// The state of the cluster + /// provisioning. Possible values include: 'Succeeded', 'Failed', + /// 'Cancelled', 'Updating' + public ClusterProperties(int? clusterId = default(int?), int? clusterSize = default(int?), IList hosts = default(IList), string provisioningState = default(string)) + : base(clusterId, clusterSize, hosts) + { + ProvisioningState = provisioningState; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets the state of the cluster provisioning. Possible values + /// include: 'Succeeded', 'Failed', 'Cancelled', 'Updating' + /// + [JsonProperty(PropertyName = "provisioningState")] + public string ProvisioningState { get; private set; } + + } +} diff --git a/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/Models/ClusterProvisioningState.cs b/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/Models/ClusterProvisioningState.cs new file mode 100644 index 000000000000..9ea88b9d2339 --- /dev/null +++ b/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/Models/ClusterProvisioningState.cs @@ -0,0 +1,24 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Avs.Models +{ + + /// + /// Defines values for ClusterProvisioningState. + /// + public static class ClusterProvisioningState + { + public const string Succeeded = "Succeeded"; + public const string Failed = "Failed"; + public const string Cancelled = "Cancelled"; + public const string Updating = "Updating"; + } +} diff --git a/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/Models/DefaultClusterProperties.cs b/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/Models/DefaultClusterProperties.cs new file mode 100644 index 000000000000..9a477be0aa80 --- /dev/null +++ b/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/Models/DefaultClusterProperties.cs @@ -0,0 +1,69 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Avs.Models +{ + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// The properties of a default cluster + /// + public partial class DefaultClusterProperties + { + /// + /// Initializes a new instance of the DefaultClusterProperties class. + /// + public DefaultClusterProperties() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the DefaultClusterProperties class. + /// + /// The identity + /// The cluster size + /// The hosts + public DefaultClusterProperties(int? clusterId = default(int?), int? clusterSize = default(int?), IList hosts = default(IList)) + { + ClusterId = clusterId; + ClusterSize = clusterSize; + Hosts = hosts; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets the identity + /// + [JsonProperty(PropertyName = "clusterId")] + public int? ClusterId { get; private set; } + + /// + /// Gets or sets the cluster size + /// + [JsonProperty(PropertyName = "clusterSize")] + public int? ClusterSize { get; set; } + + /// + /// Gets the hosts + /// + [JsonProperty(PropertyName = "hosts")] + public IList Hosts { get; private set; } + + } +} diff --git a/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/Models/Endpoints.cs b/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/Models/Endpoints.cs new file mode 100644 index 000000000000..452f57ee4373 --- /dev/null +++ b/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/Models/Endpoints.cs @@ -0,0 +1,61 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Avs.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// Endpoint addresses + /// + public partial class Endpoints + { + /// + /// Initializes a new instance of the Endpoints class. + /// + public Endpoints() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the Endpoints class. + /// + /// Endpoint for the NSX-T Data Center + /// manager + /// Endpoint for Virtual Center Server + /// Appliance + public Endpoints(string nsxtManager = default(string), string vcsa = default(string)) + { + NsxtManager = nsxtManager; + Vcsa = vcsa; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets endpoint for the NSX-T Data Center manager + /// + [JsonProperty(PropertyName = "nsxtManager")] + public string NsxtManager { get; private set; } + + /// + /// Gets endpoint for Virtual Center Server Appliance + /// + [JsonProperty(PropertyName = "vcsa")] + public string Vcsa { get; private set; } + + } +} diff --git a/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/Models/ExpressRouteAuthorization.cs b/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/Models/ExpressRouteAuthorization.cs new file mode 100644 index 000000000000..add24308e259 --- /dev/null +++ b/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/Models/ExpressRouteAuthorization.cs @@ -0,0 +1,67 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Avs.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// Authorization for an ExpressRoute + /// + public partial class ExpressRouteAuthorization + { + /// + /// Initializes a new instance of the ExpressRouteAuthorization class. + /// + public ExpressRouteAuthorization() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the ExpressRouteAuthorization class. + /// + /// The name of the ExpressRoute + /// The ID of the ExpressRoute + /// The key of the ExpressRoute + public ExpressRouteAuthorization(string name = default(string), string id = default(string), string key = default(string)) + { + Name = name; + Id = id; + Key = key; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the name of the ExpressRoute + /// + [JsonProperty(PropertyName = "name")] + public string Name { get; set; } + + /// + /// Gets the ID of the ExpressRoute + /// + [JsonProperty(PropertyName = "id")] + public string Id { get; private set; } + + /// + /// Gets the key of the ExpressRoute + /// + [JsonProperty(PropertyName = "key")] + public string Key { get; private set; } + + } +} diff --git a/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/Models/IdentitySource.cs b/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/Models/IdentitySource.cs new file mode 100644 index 000000000000..1ae7cd73cd4d --- /dev/null +++ b/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/Models/IdentitySource.cs @@ -0,0 +1,132 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Avs.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// vCenter Single Sign On Identity Source + /// + public partial class IdentitySource + { + /// + /// Initializes a new instance of the IdentitySource class. + /// + public IdentitySource() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the IdentitySource class. + /// + /// The name of the identity source + /// The domain's NetBIOS name + /// The domain's dns name + /// The base distinguished name for + /// users + /// The base distinguished name for + /// groups + /// Primary server URL + /// Secondary server URL + /// Protect LDAP communication using SSL certificate + /// (LDAPS). Possible values include: 'Enabled', 'Disabled' + /// The ID of an Active Directory user with a + /// minimum of read-only access to Base DN for users and group + /// The password of the Active Directory user + /// with a minimum of read-only access to Base DN for users and + /// groups. + public IdentitySource(string name = default(string), string alias = default(string), string domain = default(string), string baseUserDN = default(string), string baseGroupDN = default(string), string primaryServer = default(string), string secondaryServer = default(string), string ssl = default(string), string username = default(string), string password = default(string)) + { + Name = name; + Alias = alias; + Domain = domain; + BaseUserDN = baseUserDN; + BaseGroupDN = baseGroupDN; + PrimaryServer = primaryServer; + SecondaryServer = secondaryServer; + Ssl = ssl; + Username = username; + Password = password; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the name of the identity source + /// + [JsonProperty(PropertyName = "name")] + public string Name { get; set; } + + /// + /// Gets or sets the domain's NetBIOS name + /// + [JsonProperty(PropertyName = "alias")] + public string Alias { get; set; } + + /// + /// Gets or sets the domain's dns name + /// + [JsonProperty(PropertyName = "domain")] + public string Domain { get; set; } + + /// + /// Gets or sets the base distinguished name for users + /// + [JsonProperty(PropertyName = "baseUserDN")] + public string BaseUserDN { get; set; } + + /// + /// Gets or sets the base distinguished name for groups + /// + [JsonProperty(PropertyName = "baseGroupDN")] + public string BaseGroupDN { get; set; } + + /// + /// Gets or sets primary server URL + /// + [JsonProperty(PropertyName = "primaryServer")] + public string PrimaryServer { get; set; } + + /// + /// Gets or sets secondary server URL + /// + [JsonProperty(PropertyName = "secondaryServer")] + public string SecondaryServer { get; set; } + + /// + /// Gets or sets protect LDAP communication using SSL certificate + /// (LDAPS). Possible values include: 'Enabled', 'Disabled' + /// + [JsonProperty(PropertyName = "ssl")] + public string Ssl { get; set; } + + /// + /// Gets or sets the ID of an Active Directory user with a minimum of + /// read-only access to Base DN for users and group + /// + [JsonProperty(PropertyName = "username")] + public string Username { get; set; } + + /// + /// Gets or sets the password of the Active Directory user with a + /// minimum of read-only access to Base DN for users and groups. + /// + [JsonProperty(PropertyName = "password")] + public string Password { get; set; } + + } +} diff --git a/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/Models/InternetEnum.cs b/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/Models/InternetEnum.cs new file mode 100644 index 000000000000..5b28963cb813 --- /dev/null +++ b/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/Models/InternetEnum.cs @@ -0,0 +1,22 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Avs.Models +{ + + /// + /// Defines values for InternetEnum. + /// + public static class InternetEnum + { + public const string Enabled = "Enabled"; + public const string Disabled = "Disabled"; + } +} diff --git a/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/Models/Operation.cs b/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/Models/Operation.cs new file mode 100644 index 000000000000..ca00e0fa0ee0 --- /dev/null +++ b/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/Models/Operation.cs @@ -0,0 +1,61 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Avs.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// A REST API operation + /// + public partial class Operation + { + /// + /// Initializes a new instance of the Operation class. + /// + public Operation() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the Operation class. + /// + /// Name of the operation being performed on this + /// object + /// Contains the localized display information + /// for this operation + public Operation(string name = default(string), OperationDisplay display = default(OperationDisplay)) + { + Name = name; + Display = display; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets name of the operation being performed on this object + /// + [JsonProperty(PropertyName = "name")] + public string Name { get; private set; } + + /// + /// Gets contains the localized display information for this operation + /// + [JsonProperty(PropertyName = "display")] + public OperationDisplay Display { get; private set; } + + } +} diff --git a/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/Models/OperationDisplay.cs b/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/Models/OperationDisplay.cs new file mode 100644 index 000000000000..7b0ad58aefc7 --- /dev/null +++ b/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/Models/OperationDisplay.cs @@ -0,0 +1,80 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Avs.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// Contains the localized display information for this operation + /// + public partial class OperationDisplay + { + /// + /// Initializes a new instance of the OperationDisplay class. + /// + public OperationDisplay() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the OperationDisplay class. + /// + /// Localized friendly form of the resource + /// provider name + /// Localized friendly form of the resource type + /// related to this operation + /// Localized friendly name for the + /// operation + /// Localized friendly description for the + /// operation + public OperationDisplay(string provider = default(string), string resource = default(string), string operation = default(string), string description = default(string)) + { + Provider = provider; + Resource = resource; + Operation = operation; + Description = description; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets localized friendly form of the resource provider name + /// + [JsonProperty(PropertyName = "provider")] + public string Provider { get; private set; } + + /// + /// Gets localized friendly form of the resource type related to this + /// operation + /// + [JsonProperty(PropertyName = "resource")] + public string Resource { get; private set; } + + /// + /// Gets localized friendly name for the operation + /// + [JsonProperty(PropertyName = "operation")] + public string Operation { get; private set; } + + /// + /// Gets localized friendly description for the operation + /// + [JsonProperty(PropertyName = "description")] + public string Description { get; private set; } + + } +} diff --git a/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/Models/Page.cs b/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/Models/Page.cs new file mode 100644 index 000000000000..b73e95c5cb93 --- /dev/null +++ b/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/Models/Page.cs @@ -0,0 +1,53 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Avs.Models +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + + /// + /// Defines a page in Azure responses. + /// + /// Type of the page content items + [JsonObject] + public class Page : IPage + { + /// + /// Gets the link to the next page. + /// + [JsonProperty("nextLink")] + public string NextPageLink { get; private set; } + + [JsonProperty("value")] + private IList Items{ get; set; } + + /// + /// Returns an enumerator that iterates through the collection. + /// + /// A an enumerator that can be used to iterate through the collection. + public IEnumerator GetEnumerator() + { + return Items == null ? System.Linq.Enumerable.Empty().GetEnumerator() : Items.GetEnumerator(); + } + + /// + /// Returns an enumerator that iterates through the collection. + /// + /// A an enumerator that can be used to iterate through the collection. + IEnumerator IEnumerable.GetEnumerator() + { + return GetEnumerator(); + } + } +} diff --git a/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/Models/PrivateCloud.cs b/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/Models/PrivateCloud.cs new file mode 100644 index 000000000000..b2087f01cdc4 --- /dev/null +++ b/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/Models/PrivateCloud.cs @@ -0,0 +1,81 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Avs.Models +{ + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// A private cloud resource + /// + public partial class PrivateCloud : TrackedResource + { + /// + /// Initializes a new instance of the PrivateCloud class. + /// + public PrivateCloud() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the PrivateCloud class. + /// + /// Resource ID. + /// Resource name. + /// Resource type. + /// Resource location + /// Resource tags + /// The private cloud SKU + /// The properties of a private cloud + /// resource + public PrivateCloud(string id = default(string), string name = default(string), string type = default(string), string location = default(string), IDictionary tags = default(IDictionary), Sku sku = default(Sku), PrivateCloudProperties properties = default(PrivateCloudProperties)) + : base(id, name, type, location, tags) + { + Sku = sku; + Properties = properties; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the private cloud SKU + /// + [JsonProperty(PropertyName = "sku")] + public Sku Sku { get; set; } + + /// + /// Gets or sets the properties of a private cloud resource + /// + [JsonProperty(PropertyName = "properties")] + public PrivateCloudProperties Properties { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (Sku != null) + { + Sku.Validate(); + } + } + } +} diff --git a/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/Models/PrivateCloudProperties.cs b/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/Models/PrivateCloudProperties.cs new file mode 100644 index 000000000000..3929d299d439 --- /dev/null +++ b/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/Models/PrivateCloudProperties.cs @@ -0,0 +1,188 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Avs.Models +{ + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// The properties of a private cloud resource + /// + public partial class PrivateCloudProperties + { + /// + /// Initializes a new instance of the PrivateCloudProperties class. + /// + public PrivateCloudProperties() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the PrivateCloudProperties class. + /// + /// The provisioning state. Possible + /// values include: 'Succeeded', 'Failed', 'Cancelled', 'Pending', + /// 'Building', 'Updating' + /// An ExpressRoute Circuit + /// The default cluster used for + /// management + /// The clusters + /// The endpoints + /// Connectivity to internet is enabled or + /// disabled. Possible values include: 'Enabled', 'Disabled' + /// vCenter Single Sign On Identity + /// Sources + /// The block of addresses should be unique + /// across VNet in your subscription as well as on-premise. Make sure + /// the CIDR format is conformed to (A.B.C.D/X) where A,B,C,D are + /// between 0 and 255, and X is between 0 and 22 + /// Network used to access vCenter + /// Server and NSX-T Manager + /// Used for virtual machine cold + /// migration, cloning, and snapshot migration + /// Used for live migration of virtual + /// machines + /// Optionally, set the vCenter admin + /// password when the private cloud is created + /// Optionally, set the NSX-T Manager + /// password when the private cloud is created + /// Thumbprint of the + /// vCenter Server SSL certificate + /// Thumbprint of the NSX-T + /// Manager SSL certificate + public PrivateCloudProperties(string provisioningState = default(string), Circuit circuit = default(Circuit), DefaultClusterProperties cluster = default(DefaultClusterProperties), IList clusters = default(IList), Endpoints endpoints = default(Endpoints), string internet = default(string), IList identitySources = default(IList), string networkBlock = default(string), string managementNetwork = default(string), string provisioningNetwork = default(string), string vmotionNetwork = default(string), string vcenterPassword = default(string), string nsxtPassword = default(string), string vcenterCertificateThumbprint = default(string), string nsxtCertificateThumbprint = default(string)) + { + ProvisioningState = provisioningState; + Circuit = circuit; + Cluster = cluster; + Clusters = clusters; + Endpoints = endpoints; + Internet = internet; + IdentitySources = identitySources; + NetworkBlock = networkBlock; + ManagementNetwork = managementNetwork; + ProvisioningNetwork = provisioningNetwork; + VmotionNetwork = vmotionNetwork; + VcenterPassword = vcenterPassword; + NsxtPassword = nsxtPassword; + VcenterCertificateThumbprint = vcenterCertificateThumbprint; + NsxtCertificateThumbprint = nsxtCertificateThumbprint; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets the provisioning state. Possible values include: 'Succeeded', + /// 'Failed', 'Cancelled', 'Pending', 'Building', 'Updating' + /// + [JsonProperty(PropertyName = "provisioningState")] + public string ProvisioningState { get; private set; } + + /// + /// Gets or sets an ExpressRoute Circuit + /// + [JsonProperty(PropertyName = "circuit")] + public Circuit Circuit { get; set; } + + /// + /// Gets or sets the default cluster used for management + /// + [JsonProperty(PropertyName = "cluster")] + public DefaultClusterProperties Cluster { get; set; } + + /// + /// Gets the clusters + /// + [JsonProperty(PropertyName = "clusters")] + public IList Clusters { get; private set; } + + /// + /// Gets the endpoints + /// + [JsonProperty(PropertyName = "endpoints")] + public Endpoints Endpoints { get; private set; } + + /// + /// Gets or sets connectivity to internet is enabled or disabled. + /// Possible values include: 'Enabled', 'Disabled' + /// + [JsonProperty(PropertyName = "internet")] + public string Internet { get; set; } + + /// + /// Gets or sets vCenter Single Sign On Identity Sources + /// + [JsonProperty(PropertyName = "identitySources")] + public IList IdentitySources { get; set; } + + /// + /// Gets or sets the block of addresses should be unique across VNet in + /// your subscription as well as on-premise. Make sure the CIDR format + /// is conformed to (A.B.C.D/X) where A,B,C,D are between 0 and 255, + /// and X is between 0 and 22 + /// + [JsonProperty(PropertyName = "networkBlock")] + public string NetworkBlock { get; set; } + + /// + /// Gets network used to access vCenter Server and NSX-T Manager + /// + [JsonProperty(PropertyName = "managementNetwork")] + public string ManagementNetwork { get; private set; } + + /// + /// Gets used for virtual machine cold migration, cloning, and snapshot + /// migration + /// + [JsonProperty(PropertyName = "provisioningNetwork")] + public string ProvisioningNetwork { get; private set; } + + /// + /// Gets used for live migration of virtual machines + /// + [JsonProperty(PropertyName = "vmotionNetwork")] + public string VmotionNetwork { get; private set; } + + /// + /// Gets or sets optionally, set the vCenter admin password when the + /// private cloud is created + /// + [JsonProperty(PropertyName = "vcenterPassword")] + public string VcenterPassword { get; set; } + + /// + /// Gets or sets optionally, set the NSX-T Manager password when the + /// private cloud is created + /// + [JsonProperty(PropertyName = "nsxtPassword")] + public string NsxtPassword { get; set; } + + /// + /// Gets thumbprint of the vCenter Server SSL certificate + /// + [JsonProperty(PropertyName = "vcenterCertificateThumbprint")] + public string VcenterCertificateThumbprint { get; private set; } + + /// + /// Gets thumbprint of the NSX-T Manager SSL certificate + /// + [JsonProperty(PropertyName = "nsxtCertificateThumbprint")] + public string NsxtCertificateThumbprint { get; private set; } + + } +} diff --git a/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/Models/PrivateCloudProvisioningState.cs b/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/Models/PrivateCloudProvisioningState.cs new file mode 100644 index 000000000000..3713294dae3b --- /dev/null +++ b/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/Models/PrivateCloudProvisioningState.cs @@ -0,0 +1,26 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Avs.Models +{ + + /// + /// Defines values for PrivateCloudProvisioningState. + /// + public static class PrivateCloudProvisioningState + { + public const string Succeeded = "Succeeded"; + public const string Failed = "Failed"; + public const string Cancelled = "Cancelled"; + public const string Pending = "Pending"; + public const string Building = "Building"; + public const string Updating = "Updating"; + } +} diff --git a/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/Models/Quota.cs b/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/Models/Quota.cs new file mode 100644 index 000000000000..0d4c5732f8e6 --- /dev/null +++ b/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/Models/Quota.cs @@ -0,0 +1,65 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Avs.Models +{ + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// Subscription quotas + /// + public partial class Quota + { + /// + /// Initializes a new instance of the Quota class. + /// + public Quota() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the Quota class. + /// + /// Remaining hosts quota by sku + /// type + /// Host quota is active for current + /// subscription. Possible values include: 'Enabled', + /// 'Disabled' + public Quota(IDictionary hostsRemaining = default(IDictionary), string quotaEnabled = default(string)) + { + HostsRemaining = hostsRemaining; + QuotaEnabled = quotaEnabled; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets remaining hosts quota by sku type + /// + [JsonProperty(PropertyName = "hostsRemaining")] + public IDictionary HostsRemaining { get; private set; } + + /// + /// Gets or sets host quota is active for current subscription. + /// Possible values include: 'Enabled', 'Disabled' + /// + [JsonProperty(PropertyName = "quotaEnabled")] + public string QuotaEnabled { get; set; } + + } +} diff --git a/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/Models/QuotaEnabled.cs b/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/Models/QuotaEnabled.cs new file mode 100644 index 000000000000..17daf74d5428 --- /dev/null +++ b/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/Models/QuotaEnabled.cs @@ -0,0 +1,22 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Avs.Models +{ + + /// + /// Defines values for QuotaEnabled. + /// + public static class QuotaEnabled + { + public const string Enabled = "Enabled"; + public const string Disabled = "Disabled"; + } +} diff --git a/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/Models/Resource.cs b/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/Models/Resource.cs new file mode 100644 index 000000000000..6cfa0a311dfb --- /dev/null +++ b/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/Models/Resource.cs @@ -0,0 +1,69 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Avs.Models +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Newtonsoft.Json; + using System.Linq; + + /// + /// The core properties of ARM resources + /// + public partial class Resource : IResource + { + /// + /// Initializes a new instance of the Resource class. + /// + public Resource() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the Resource class. + /// + /// Resource ID. + /// Resource name. + /// Resource type. + public Resource(string id = default(string), string name = default(string), string type = default(string)) + { + Id = id; + Name = name; + Type = type; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets resource ID. + /// + [JsonProperty(PropertyName = "id")] + public string Id { get; private set; } + + /// + /// Gets resource name. + /// + [JsonProperty(PropertyName = "name")] + public string Name { get; private set; } + + /// + /// Gets resource type. + /// + [JsonProperty(PropertyName = "type")] + public string Type { get; private set; } + + } +} diff --git a/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/Models/Sku.cs b/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/Models/Sku.cs new file mode 100644 index 000000000000..99481802bbd7 --- /dev/null +++ b/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/Models/Sku.cs @@ -0,0 +1,65 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Avs.Models +{ + using Microsoft.Rest; + using Newtonsoft.Json; + using System.Linq; + + /// + /// The resource model definition representing SKU + /// + public partial class Sku + { + /// + /// Initializes a new instance of the Sku class. + /// + public Sku() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the Sku class. + /// + /// The name of the SKU. + public Sku(string name) + { + Name = name; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the name of the SKU. + /// + [JsonProperty(PropertyName = "name")] + public string Name { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (Name == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "Name"); + } + } + } +} diff --git a/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/Models/SslEnum.cs b/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/Models/SslEnum.cs new file mode 100644 index 000000000000..9b9bd13fb65f --- /dev/null +++ b/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/Models/SslEnum.cs @@ -0,0 +1,22 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Avs.Models +{ + + /// + /// Defines values for SslEnum. + /// + public static class SslEnum + { + public const string Enabled = "Enabled"; + public const string Disabled = "Disabled"; + } +} diff --git a/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/Models/TrackedResource.cs b/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/Models/TrackedResource.cs new file mode 100644 index 000000000000..ceab1c9c3e56 --- /dev/null +++ b/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/Models/TrackedResource.cs @@ -0,0 +1,65 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Avs.Models +{ + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// The resource model definition for a ARM tracked top level resource + /// + public partial class TrackedResource : Resource + { + /// + /// Initializes a new instance of the TrackedResource class. + /// + public TrackedResource() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the TrackedResource class. + /// + /// Resource ID. + /// Resource name. + /// Resource type. + /// Resource location + /// Resource tags + public TrackedResource(string id = default(string), string name = default(string), string type = default(string), string location = default(string), IDictionary tags = default(IDictionary)) + : base(id, name, type) + { + Location = location; + Tags = tags; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets resource location + /// + [JsonProperty(PropertyName = "location")] + public string Location { get; set; } + + /// + /// Gets or sets resource tags + /// + [JsonProperty(PropertyName = "tags")] + public IDictionary Tags { get; set; } + + } +} diff --git a/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/Models/Trial.cs b/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/Models/Trial.cs new file mode 100644 index 000000000000..0210ca94dc46 --- /dev/null +++ b/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/Models/Trial.cs @@ -0,0 +1,62 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Avs.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// Subscription trial availability + /// + public partial class Trial + { + /// + /// Initializes a new instance of the Trial class. + /// + public Trial() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the Trial class. + /// + /// Trial status. Possible values include: + /// 'TrialAvailable', 'TrialUsed', 'TrialDisabled' + /// Number of trial hosts + /// available + public Trial(string status = default(string), int? availableHosts = default(int?)) + { + Status = status; + AvailableHosts = availableHosts; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets trial status. Possible values include: 'TrialAvailable', + /// 'TrialUsed', 'TrialDisabled' + /// + [JsonProperty(PropertyName = "status")] + public string Status { get; private set; } + + /// + /// Gets number of trial hosts available + /// + [JsonProperty(PropertyName = "availableHosts")] + public int? AvailableHosts { get; private set; } + + } +} diff --git a/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/Operations.cs b/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/Operations.cs new file mode 100644 index 000000000000..78b8cf23455d --- /dev/null +++ b/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/Operations.cs @@ -0,0 +1,390 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Avs +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + 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; + + /// + /// Operations operations. + /// + internal partial class Operations : IServiceOperations, IOperations + { + /// + /// Initializes a new instance of the Operations class. + /// + /// + /// Reference to the service client. + /// + /// + /// Thrown when a required parameter is null + /// + internal Operations(AvsClient client) + { + if (client == null) + { + throw new System.ArgumentNullException("client"); + } + Client = client; + } + + /// + /// Gets a reference to the AvsClient + /// + public AvsClient Client { get; private set; } + + /// + /// Lists all of the available operations + /// + /// + /// 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(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + 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("/") ? "" : "/")), "providers/Microsoft.AVS/operations").ToString(); + List _queryParameters = new List(); + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.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) + { + var ex = new ApiErrorException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ApiError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + 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; + } + + /// + /// Lists all of the available operations + /// + /// + /// 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) + { + var ex = new ApiErrorException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ApiError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + 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/avs/Microsoft.Azure.Management.Avs/src/Generated/OperationsExtensions.cs b/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/OperationsExtensions.cs new file mode 100644 index 000000000000..37645d1c2561 --- /dev/null +++ b/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/OperationsExtensions.cs @@ -0,0 +1,87 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Avs +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using System.Threading; + using System.Threading.Tasks; + + /// + /// Extension methods for Operations. + /// + public static partial class OperationsExtensions + { + /// + /// Lists all of the available operations + /// + /// + /// The operations group for this extension method. + /// + public static IPage List(this IOperations operations) + { + return operations.ListAsync().GetAwaiter().GetResult(); + } + + /// + /// Lists all of the available operations + /// + /// + /// The operations group for this extension method. + /// + /// + /// The cancellation token. + /// + public static async Task> ListAsync(this IOperations operations, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListWithHttpMessagesAsync(null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Lists all of the available operations + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + public static IPage ListNext(this IOperations operations, string nextPageLink) + { + return operations.ListNextAsync(nextPageLink).GetAwaiter().GetResult(); + } + + /// + /// Lists all of the available operations + /// + /// + /// 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 IOperations 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/avs/Microsoft.Azure.Management.Avs/src/Generated/PrivateCloudsOperations.cs b/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/PrivateCloudsOperations.cs new file mode 100644 index 000000000000..c4a46833b882 --- /dev/null +++ b/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/PrivateCloudsOperations.cs @@ -0,0 +1,1819 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Avs +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + 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; + + /// + /// PrivateCloudsOperations operations. + /// + internal partial class PrivateCloudsOperations : IServiceOperations, IPrivateCloudsOperations + { + /// + /// Initializes a new instance of the PrivateCloudsOperations class. + /// + /// + /// Reference to the service client. + /// + /// + /// Thrown when a required parameter is null + /// + internal PrivateCloudsOperations(AvsClient client) + { + if (client == null) + { + throw new System.ArgumentNullException("client"); + } + Client = client; + } + + /// + /// Gets a reference to the AvsClient + /// + public AvsClient Client { get; private set; } + + /// + /// List private clouds in a resource group + /// + /// + /// Name of the resource group within the Azure subscription + /// + /// + /// 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, 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 (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("resourceGroupName", resourceGroupName); + 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.AVS/privateClouds").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + List _queryParameters = new List(); + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.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) + { + var ex = new ApiErrorException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ApiError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + 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; + } + + /// + /// List private clouds in a subscription + /// + /// + /// 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>> ListInSubscriptionWithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "ListInSubscription", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/providers/Microsoft.AVS/privateClouds").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + List _queryParameters = new List(); + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.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) + { + var ex = new ApiErrorException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ApiError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + 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; + } + + /// + /// Get a private cloud + /// + /// + /// Name of the resource group within the Azure subscription + /// + /// + /// Name of the private cloud + /// + /// + /// 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 privateCloudName, 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 (privateCloudName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "privateCloudName"); + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("privateCloudName", privateCloudName); + 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.AVS/privateClouds/{privateCloudName}").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{privateCloudName}", System.Uri.EscapeDataString(privateCloudName)); + List _queryParameters = new List(); + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.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) + { + var ex = new ApiErrorException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ApiError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + 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; + } + + /// + /// Create or update a private cloud + /// + /// + /// Name of the resource group within the Azure subscription + /// + /// + /// Name of the private cloud + /// + /// + /// The private cloud + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task> CreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string privateCloudName, PrivateCloud privateCloud, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send Request + AzureOperationResponse _response = await BeginCreateOrUpdateWithHttpMessagesAsync(resourceGroupName, privateCloudName, privateCloud, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPutOrPatchOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + + /// + /// Update a private cloud + /// + /// + /// Name of the resource group within the Azure subscription + /// + /// + /// Name of the private cloud + /// + /// + /// The private cloud + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task> UpdateWithHttpMessagesAsync(string resourceGroupName, string privateCloudName, PrivateCloud privateCloud, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send Request + AzureOperationResponse _response = await BeginUpdateWithHttpMessagesAsync(resourceGroupName, privateCloudName, privateCloud, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPutOrPatchOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + + /// + /// Delete a private cloud + /// + /// + /// Name of the resource group within the Azure subscription + /// + /// + /// Name of the private cloud + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task DeleteWithHttpMessagesAsync(string resourceGroupName, string privateCloudName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send request + AzureOperationResponse _response = await BeginDeleteWithHttpMessagesAsync(resourceGroupName, privateCloudName, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + + /// + /// List the admin credentials for the private cloud + /// + /// + /// Name of the resource group within the Azure subscription + /// + /// + /// Name of the private cloud + /// + /// + /// 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> ListAdminCredentialsWithHttpMessagesAsync(string resourceGroupName, string privateCloudName, 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 (privateCloudName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "privateCloudName"); + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("privateCloudName", privateCloudName); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "ListAdminCredentials", 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.AVS/privateClouds/{privateCloudName}/listAdminCredentials").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{privateCloudName}", System.Uri.EscapeDataString(privateCloudName)); + List _queryParameters = new List(); + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.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("POST"); + _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) + { + var ex = new ApiErrorException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ApiError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + 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; + } + + /// + /// Create or update a private cloud + /// + /// + /// Name of the resource group within the Azure subscription + /// + /// + /// Name of the private cloud + /// + /// + /// The private cloud + /// + /// + /// 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> BeginCreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string privateCloudName, PrivateCloud privateCloud, 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 (privateCloudName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "privateCloudName"); + } + if (privateCloud == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "privateCloud"); + } + if (privateCloud != null) + { + privateCloud.Validate(); + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("privateCloudName", privateCloudName); + tracingParameters.Add("privateCloud", privateCloud); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "BeginCreateOrUpdate", 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.AVS/privateClouds/{privateCloudName}").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{privateCloudName}", System.Uri.EscapeDataString(privateCloudName)); + List _queryParameters = new List(); + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.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("PUT"); + _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; + if(privateCloud != null) + { + _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(privateCloud, Client.SerializationSettings); + _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); + _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); + } + // 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 != 201) + { + var ex = new ApiErrorException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ApiError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + 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); + } + } + // Deserialize Response + if ((int)_statusCode == 201) + { + _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; + } + + /// + /// Update a private cloud + /// + /// + /// Name of the resource group within the Azure subscription + /// + /// + /// Name of the private cloud + /// + /// + /// The private cloud + /// + /// + /// 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> BeginUpdateWithHttpMessagesAsync(string resourceGroupName, string privateCloudName, PrivateCloud privateCloud, 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 (privateCloudName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "privateCloudName"); + } + if (privateCloud == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "privateCloud"); + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("privateCloudName", privateCloudName); + tracingParameters.Add("privateCloud", privateCloud); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "BeginUpdate", 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.AVS/privateClouds/{privateCloudName}").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{privateCloudName}", System.Uri.EscapeDataString(privateCloudName)); + List _queryParameters = new List(); + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.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("PATCH"); + _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; + if(privateCloud != null) + { + _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(privateCloud, Client.SerializationSettings); + _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); + _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); + } + // 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 != 201) + { + var ex = new ApiErrorException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ApiError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + 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); + } + } + // Deserialize Response + if ((int)_statusCode == 201) + { + _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; + } + + /// + /// Delete a private cloud + /// + /// + /// Name of the resource group within the Azure subscription + /// + /// + /// Name of the private cloud + /// + /// + /// 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 + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task BeginDeleteWithHttpMessagesAsync(string resourceGroupName, string privateCloudName, 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 (privateCloudName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "privateCloudName"); + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("privateCloudName", privateCloudName); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "BeginDelete", 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.AVS/privateClouds/{privateCloudName}").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{privateCloudName}", System.Uri.EscapeDataString(privateCloudName)); + List _queryParameters = new List(); + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.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("DELETE"); + _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 != 202 && (int)_statusCode != 204) + { + var ex = new ApiErrorException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ApiError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + 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(); + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// List private clouds in a resource group + /// + /// + /// 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) + { + var ex = new ApiErrorException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ApiError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + 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; + } + + /// + /// List private clouds in a subscription + /// + /// + /// 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>> ListInSubscriptionNextWithHttpMessagesAsync(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, "ListInSubscriptionNext", 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) + { + var ex = new ApiErrorException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ApiError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + 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/avs/Microsoft.Azure.Management.Avs/src/Generated/PrivateCloudsOperationsExtensions.cs b/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/PrivateCloudsOperationsExtensions.cs new file mode 100644 index 000000000000..a9d029b78167 --- /dev/null +++ b/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/PrivateCloudsOperationsExtensions.cs @@ -0,0 +1,493 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Avs +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using System.Threading; + using System.Threading.Tasks; + + /// + /// Extension methods for PrivateCloudsOperations. + /// + public static partial class PrivateCloudsOperationsExtensions + { + /// + /// List private clouds in a resource group + /// + /// + /// The operations group for this extension method. + /// + /// + /// Name of the resource group within the Azure subscription + /// + public static IPage List(this IPrivateCloudsOperations operations, string resourceGroupName) + { + return operations.ListAsync(resourceGroupName).GetAwaiter().GetResult(); + } + + /// + /// List private clouds in a resource group + /// + /// + /// The operations group for this extension method. + /// + /// + /// Name of the resource group within the Azure subscription + /// + /// + /// The cancellation token. + /// + public static async Task> ListAsync(this IPrivateCloudsOperations operations, string resourceGroupName, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListWithHttpMessagesAsync(resourceGroupName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// List private clouds in a subscription + /// + /// + /// The operations group for this extension method. + /// + public static IPage ListInSubscription(this IPrivateCloudsOperations operations) + { + return operations.ListInSubscriptionAsync().GetAwaiter().GetResult(); + } + + /// + /// List private clouds in a subscription + /// + /// + /// The operations group for this extension method. + /// + /// + /// The cancellation token. + /// + public static async Task> ListInSubscriptionAsync(this IPrivateCloudsOperations operations, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListInSubscriptionWithHttpMessagesAsync(null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Get a private cloud + /// + /// + /// The operations group for this extension method. + /// + /// + /// Name of the resource group within the Azure subscription + /// + /// + /// Name of the private cloud + /// + public static PrivateCloud Get(this IPrivateCloudsOperations operations, string resourceGroupName, string privateCloudName) + { + return operations.GetAsync(resourceGroupName, privateCloudName).GetAwaiter().GetResult(); + } + + /// + /// Get a private cloud + /// + /// + /// The operations group for this extension method. + /// + /// + /// Name of the resource group within the Azure subscription + /// + /// + /// Name of the private cloud + /// + /// + /// The cancellation token. + /// + public static async Task GetAsync(this IPrivateCloudsOperations operations, string resourceGroupName, string privateCloudName, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.GetWithHttpMessagesAsync(resourceGroupName, privateCloudName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Create or update a private cloud + /// + /// + /// The operations group for this extension method. + /// + /// + /// Name of the resource group within the Azure subscription + /// + /// + /// Name of the private cloud + /// + /// + /// The private cloud + /// + public static PrivateCloud CreateOrUpdate(this IPrivateCloudsOperations operations, string resourceGroupName, string privateCloudName, PrivateCloud privateCloud) + { + return operations.CreateOrUpdateAsync(resourceGroupName, privateCloudName, privateCloud).GetAwaiter().GetResult(); + } + + /// + /// Create or update a private cloud + /// + /// + /// The operations group for this extension method. + /// + /// + /// Name of the resource group within the Azure subscription + /// + /// + /// Name of the private cloud + /// + /// + /// The private cloud + /// + /// + /// The cancellation token. + /// + public static async Task CreateOrUpdateAsync(this IPrivateCloudsOperations operations, string resourceGroupName, string privateCloudName, PrivateCloud privateCloud, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.CreateOrUpdateWithHttpMessagesAsync(resourceGroupName, privateCloudName, privateCloud, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Update a private cloud + /// + /// + /// The operations group for this extension method. + /// + /// + /// Name of the resource group within the Azure subscription + /// + /// + /// Name of the private cloud + /// + /// + /// The private cloud + /// + public static PrivateCloud Update(this IPrivateCloudsOperations operations, string resourceGroupName, string privateCloudName, PrivateCloud privateCloud) + { + return operations.UpdateAsync(resourceGroupName, privateCloudName, privateCloud).GetAwaiter().GetResult(); + } + + /// + /// Update a private cloud + /// + /// + /// The operations group for this extension method. + /// + /// + /// Name of the resource group within the Azure subscription + /// + /// + /// Name of the private cloud + /// + /// + /// The private cloud + /// + /// + /// The cancellation token. + /// + public static async Task UpdateAsync(this IPrivateCloudsOperations operations, string resourceGroupName, string privateCloudName, PrivateCloud privateCloud, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.UpdateWithHttpMessagesAsync(resourceGroupName, privateCloudName, privateCloud, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Delete a private cloud + /// + /// + /// The operations group for this extension method. + /// + /// + /// Name of the resource group within the Azure subscription + /// + /// + /// Name of the private cloud + /// + public static void Delete(this IPrivateCloudsOperations operations, string resourceGroupName, string privateCloudName) + { + operations.DeleteAsync(resourceGroupName, privateCloudName).GetAwaiter().GetResult(); + } + + /// + /// Delete a private cloud + /// + /// + /// The operations group for this extension method. + /// + /// + /// Name of the resource group within the Azure subscription + /// + /// + /// Name of the private cloud + /// + /// + /// The cancellation token. + /// + public static async Task DeleteAsync(this IPrivateCloudsOperations operations, string resourceGroupName, string privateCloudName, CancellationToken cancellationToken = default(CancellationToken)) + { + (await operations.DeleteWithHttpMessagesAsync(resourceGroupName, privateCloudName, null, cancellationToken).ConfigureAwait(false)).Dispose(); + } + + /// + /// List the admin credentials for the private cloud + /// + /// + /// The operations group for this extension method. + /// + /// + /// Name of the resource group within the Azure subscription + /// + /// + /// Name of the private cloud + /// + public static AdminCredentials ListAdminCredentials(this IPrivateCloudsOperations operations, string resourceGroupName, string privateCloudName) + { + return operations.ListAdminCredentialsAsync(resourceGroupName, privateCloudName).GetAwaiter().GetResult(); + } + + /// + /// List the admin credentials for the private cloud + /// + /// + /// The operations group for this extension method. + /// + /// + /// Name of the resource group within the Azure subscription + /// + /// + /// Name of the private cloud + /// + /// + /// The cancellation token. + /// + public static async Task ListAdminCredentialsAsync(this IPrivateCloudsOperations operations, string resourceGroupName, string privateCloudName, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListAdminCredentialsWithHttpMessagesAsync(resourceGroupName, privateCloudName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Create or update a private cloud + /// + /// + /// The operations group for this extension method. + /// + /// + /// Name of the resource group within the Azure subscription + /// + /// + /// Name of the private cloud + /// + /// + /// The private cloud + /// + public static PrivateCloud BeginCreateOrUpdate(this IPrivateCloudsOperations operations, string resourceGroupName, string privateCloudName, PrivateCloud privateCloud) + { + return operations.BeginCreateOrUpdateAsync(resourceGroupName, privateCloudName, privateCloud).GetAwaiter().GetResult(); + } + + /// + /// Create or update a private cloud + /// + /// + /// The operations group for this extension method. + /// + /// + /// Name of the resource group within the Azure subscription + /// + /// + /// Name of the private cloud + /// + /// + /// The private cloud + /// + /// + /// The cancellation token. + /// + public static async Task BeginCreateOrUpdateAsync(this IPrivateCloudsOperations operations, string resourceGroupName, string privateCloudName, PrivateCloud privateCloud, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.BeginCreateOrUpdateWithHttpMessagesAsync(resourceGroupName, privateCloudName, privateCloud, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Update a private cloud + /// + /// + /// The operations group for this extension method. + /// + /// + /// Name of the resource group within the Azure subscription + /// + /// + /// Name of the private cloud + /// + /// + /// The private cloud + /// + public static PrivateCloud BeginUpdate(this IPrivateCloudsOperations operations, string resourceGroupName, string privateCloudName, PrivateCloud privateCloud) + { + return operations.BeginUpdateAsync(resourceGroupName, privateCloudName, privateCloud).GetAwaiter().GetResult(); + } + + /// + /// Update a private cloud + /// + /// + /// The operations group for this extension method. + /// + /// + /// Name of the resource group within the Azure subscription + /// + /// + /// Name of the private cloud + /// + /// + /// The private cloud + /// + /// + /// The cancellation token. + /// + public static async Task BeginUpdateAsync(this IPrivateCloudsOperations operations, string resourceGroupName, string privateCloudName, PrivateCloud privateCloud, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.BeginUpdateWithHttpMessagesAsync(resourceGroupName, privateCloudName, privateCloud, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Delete a private cloud + /// + /// + /// The operations group for this extension method. + /// + /// + /// Name of the resource group within the Azure subscription + /// + /// + /// Name of the private cloud + /// + public static void BeginDelete(this IPrivateCloudsOperations operations, string resourceGroupName, string privateCloudName) + { + operations.BeginDeleteAsync(resourceGroupName, privateCloudName).GetAwaiter().GetResult(); + } + + /// + /// Delete a private cloud + /// + /// + /// The operations group for this extension method. + /// + /// + /// Name of the resource group within the Azure subscription + /// + /// + /// Name of the private cloud + /// + /// + /// The cancellation token. + /// + public static async Task BeginDeleteAsync(this IPrivateCloudsOperations operations, string resourceGroupName, string privateCloudName, CancellationToken cancellationToken = default(CancellationToken)) + { + (await operations.BeginDeleteWithHttpMessagesAsync(resourceGroupName, privateCloudName, null, cancellationToken).ConfigureAwait(false)).Dispose(); + } + + /// + /// List private clouds in a resource group + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + public static IPage ListNext(this IPrivateCloudsOperations operations, string nextPageLink) + { + return operations.ListNextAsync(nextPageLink).GetAwaiter().GetResult(); + } + + /// + /// List private clouds in a resource group + /// + /// + /// 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 IPrivateCloudsOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// List private clouds in a subscription + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + public static IPage ListInSubscriptionNext(this IPrivateCloudsOperations operations, string nextPageLink) + { + return operations.ListInSubscriptionNextAsync(nextPageLink).GetAwaiter().GetResult(); + } + + /// + /// List private clouds in a subscription + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// The cancellation token. + /// + public static async Task> ListInSubscriptionNextAsync(this IPrivateCloudsOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListInSubscriptionNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + } +} diff --git a/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/SdkInfo_AzureVMwareSolutionAPI.cs b/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/SdkInfo_AzureVMwareSolutionAPI.cs new file mode 100644 index 000000000000..6484feeb1757 --- /dev/null +++ b/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/SdkInfo_AzureVMwareSolutionAPI.cs @@ -0,0 +1,30 @@ + +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Avs +{ + using System; + using System.Collections.Generic; + using System.Linq; + + internal static partial class SdkInfo + { + public static IEnumerable> ApiInfo_AzureVMwareSolutionAPI + { + get + { + return new Tuple[] + { + new Tuple("AVS", "Clusters", "2019-08-09-preview"), + new Tuple("AVS", "Locations", "2019-08-09-preview"), + new Tuple("AVS", "Operations", "2019-08-09-preview"), + new Tuple("AVS", "PrivateClouds", "2019-08-09-preview"), + }.AsEnumerable(); + } + } + } +} diff --git a/sdk/avs/Microsoft.Azure.Management.Avs/src/Microsoft.Azure.Management.Avs.csproj b/sdk/avs/Microsoft.Azure.Management.Avs/src/Microsoft.Azure.Management.Avs.csproj new file mode 100644 index 000000000000..5189673d1555 --- /dev/null +++ b/sdk/avs/Microsoft.Azure.Management.Avs/src/Microsoft.Azure.Management.Avs.csproj @@ -0,0 +1,18 @@ + + + + + + + Microsoft.Azure.Management.Avs + Provides developers with libraries for Azure VMware Solution. + 1.0.0-preview.1 + Microsoft.Azure.Management.Avs + management;VMware;AVS; + $(SdkTargetFx) + + + + + + diff --git a/sdk/avs/Microsoft.Azure.Management.Avs/src/generate.ps1 b/sdk/avs/Microsoft.Azure.Management.Avs/src/generate.ps1 new file mode 100644 index 000000000000..77f7df3847bf --- /dev/null +++ b/sdk/avs/Microsoft.Azure.Management.Avs/src/generate.ps1 @@ -0,0 +1 @@ +Start-AutoRestCodeGeneration -ResourceProvider "vmware/resource-manager" -AutoRestVersion "v2" \ No newline at end of file diff --git a/sdk/avs/Microsoft.Azure.Management.Avs/tests/AvsTestBase.cs b/sdk/avs/Microsoft.Azure.Management.Avs/tests/AvsTestBase.cs new file mode 100644 index 000000000000..76e3e8b52cab --- /dev/null +++ b/sdk/avs/Microsoft.Azure.Management.Avs/tests/AvsTestBase.cs @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. + +using System; +using Microsoft.Azure.Management.Avs; +using Microsoft.Rest.ClientRuntime.Azure.TestFramework; + +namespace Avs.Tests +{ + class AvsTestBase : TestBase, IDisposable + { + public AvsClient AvsClient { get; private set; } + + public AvsTestBase(MockContext context) + { + this.AvsClient = context.GetServiceClient(); + } + + public void Dispose() + { + this.AvsClient.Dispose(); + } + } +} diff --git a/sdk/avs/Microsoft.Azure.Management.Avs/tests/AvsTests.cs b/sdk/avs/Microsoft.Azure.Management.Avs/tests/AvsTests.cs new file mode 100644 index 000000000000..a5163c6323af --- /dev/null +++ b/sdk/avs/Microsoft.Azure.Management.Avs/tests/AvsTests.cs @@ -0,0 +1,104 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. + +using System.Linq; +using Microsoft.Azure.Management.Avs; +using Microsoft.Azure.Management.Avs.Models; +using Microsoft.Azure.Management.ResourceManager; +using Microsoft.Rest.ClientRuntime.Azure.TestFramework; +using Xunit; +using ResourceGroup = Microsoft.Azure.Management.ResourceManager.Models.ResourceGroup; + +namespace Avs.Tests +{ + public class AvsTests : TestBase + { + [Fact] + public void AvsCrud() + { + using var context = MockContext.Start(this.GetType()); + string rgName = TestUtilities.GenerateName("avs-sdk-test-rg"); + string cloudName = TestUtilities.GenerateName("avs-sdk-test-cloud"); + string clusterName = TestUtilities.GenerateName("avs-sdk-test-cluster"); + string location = "centralus"; + + CreateResourceGroup(context, location, rgName); + + try + { + using var testBase = new AvsTestBase(context); + var client = testBase.AvsClient; + + var clouds = client.PrivateClouds.List(rgName); + Assert.True(clouds.Count() == 0); + + // create a private cloud + client.PrivateClouds.CreateOrUpdate(rgName, cloudName, new PrivateCloud + { + Location = location, + Sku = new Sku { Name = "av20" }, + Properties = new PrivateCloudProperties + { + Cluster = new DefaultClusterProperties + { + ClusterSize = 4, + }, + NetworkBlock = "192.168.48.0/22" + } + }); + + var clusters = client.Clusters.List(rgName, cloudName); + Assert.True(clusters.Count() == 0); + + // create a cluster + var cluster = client.Clusters.CreateOrUpdate(rgName, cloudName, clusterName, new Cluster + { + Properties = new ClusterProperties + { + ClusterSize = 3, + } + }); + + clusters = client.Clusters.List(rgName, cloudName); + Assert.True(clusters.Count() == 1); + + // delete a cluster + client.Clusters.Delete(rgName, cloudName, clusterName); + + clusters = client.Clusters.List(rgName, cloudName); + Assert.True(clusters.Count() == 0); + + clouds = client.PrivateClouds.List(rgName); + Assert.True(clouds.Count() == 1); + + // delete a private cloud + client.PrivateClouds.Delete(rgName, cloudName); + + clouds = client.PrivateClouds.List(rgName); + Assert.True(clouds.Count() == 0); + + } + finally + { + DeleteResourceGroup(context, rgName); + } + } + + private ResourceGroup CreateResourceGroup(MockContext context, string location, string rgName) + { + var client = context.GetServiceClient(); + return client.ResourceGroups.CreateOrUpdate( + rgName, + new ResourceGroup + { + Location = location + }); + } + + private void DeleteResourceGroup(MockContext context, string rgName) + { + var client = context.GetServiceClient(); + client.ResourceGroups.Delete(rgName); + } + } +} \ No newline at end of file diff --git a/sdk/avs/Microsoft.Azure.Management.Avs/tests/Microsoft.Azure.Management.Avs.Tests.csproj b/sdk/avs/Microsoft.Azure.Management.Avs/tests/Microsoft.Azure.Management.Avs.Tests.csproj new file mode 100644 index 000000000000..be6aa0e6e854 --- /dev/null +++ b/sdk/avs/Microsoft.Azure.Management.Avs/tests/Microsoft.Azure.Management.Avs.Tests.csproj @@ -0,0 +1,21 @@ + + + + Avs.Tests + AVS.Tests Class Library + Microsoft Corporation + Avs.Tests + true + true + latest + + + + + + + + PreserveNewest + + + \ No newline at end of file diff --git a/sdk/avs/Microsoft.Azure.Management.Avs/tests/SessionRecords/AvsTests/AvsCrud.json b/sdk/avs/Microsoft.Azure.Management.Avs/tests/SessionRecords/AvsTests/AvsCrud.json new file mode 100644 index 000000000000..a42aa017d3b0 --- /dev/null +++ b/sdk/avs/Microsoft.Azure.Management.Avs/tests/SessionRecords/AvsTests/AvsCrud.json @@ -0,0 +1,3044 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourcegroups/avs-sdk-test-rg6358?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmE3NWU3OWItZGQ5NS00MDI1LTlkYmYtM2E3YWU4ZGZmMmI1L3Jlc291cmNlZ3JvdXBzL2F2cy1zZGstdGVzdC1yZzYzNTg/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"location\": \"centralus\"\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "49ab941b-2bf4-4f30-9f79-5cf66e08a6f8" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.28928.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "31" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1199" + ], + "x-ms-request-id": [ + "9ff718cd-125d-4b1d-802b-e6db34e0b0ed" + ], + "x-ms-correlation-request-id": [ + "9ff718cd-125d-4b1d-802b-e6db34e0b0ed" + ], + "x-ms-routing-request-id": [ + "NORTHEUROPE:20200619T192252Z:9ff718cd-125d-4b1d-802b-e6db34e0b0ed" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 19 Jun 2020 19:22:52 GMT" + ], + "Content-Length": [ + "194" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-test-rg6358\",\r\n \"name\": \"avs-sdk-test-rg6358\",\r\n \"location\": \"centralus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-test-rg6358/providers/Microsoft.AVS/privateClouds?api-version=2019-08-09-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmE3NWU3OWItZGQ5NS00MDI1LTlkYmYtM2E3YWU4ZGZmMmI1L3Jlc291cmNlR3JvdXBzL2F2cy1zZGstdGVzdC1yZzYzNTgvcHJvdmlkZXJzL01pY3Jvc29mdC5BVlMvcHJpdmF0ZUNsb3Vkcz9hcGktdmVyc2lvbj0yMDE5LTA4LTA5LXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "36823404-a42e-4cc0-a11b-488490daf009" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.28928.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Avs.AvsClient/1.0.0.preview.1" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14985" + ], + "x-ms-request-id": [ + "bdbd4c79-f6ba-4915-9ef3-1545b191715d" + ], + "x-ms-correlation-request-id": [ + "bdbd4c79-f6ba-4915-9ef3-1545b191715d" + ], + "x-ms-routing-request-id": [ + "NORTHEUROPE:20200619T192253Z:bdbd4c79-f6ba-4915-9ef3-1545b191715d" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 19 Jun 2020 19:22:53 GMT" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "12" + ] + }, + "ResponseBody": "{\r\n \"value\": []\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-test-rg6358/providers/Microsoft.AVS/privateClouds?api-version=2019-08-09-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmE3NWU3OWItZGQ5NS00MDI1LTlkYmYtM2E3YWU4ZGZmMmI1L3Jlc291cmNlR3JvdXBzL2F2cy1zZGstdGVzdC1yZzYzNTgvcHJvdmlkZXJzL01pY3Jvc29mdC5BVlMvcHJpdmF0ZUNsb3Vkcz9hcGktdmVyc2lvbj0yMDE5LTA4LTA5LXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "3c99bc8d-02f6-496e-bafb-a601d721d049" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.28928.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Avs.AvsClient/1.0.0.preview.1" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14956" + ], + "x-ms-request-id": [ + "c07aec5e-1802-4349-aa23-89cfb17a8cec" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "nginx" + ], + "x-ms-correlation-request-id": [ + "805f1f7b-b227-4d24-843f-c02874ecfcb1" + ], + "x-ms-routing-request-id": [ + "NORTHEUROPE:20200619T192652Z:805f1f7b-b227-4d24-843f-c02874ecfcb1" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 19 Jun 2020 19:26:51 GMT" + ], + "Content-Length": [ + "1540" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"nextLink\": null,\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-test-rg6358/providers/Microsoft.AVS/privateClouds/avs-sdk-test-cloud8458\",\r\n \"location\": \"centralus\",\r\n \"name\": \"avs-sdk-test-cloud8458\",\r\n \"properties\": {\r\n \"circuit\": {\r\n \"authorizations\": [],\r\n \"expressRouteID\": \"/subscriptions/5206f269-120b-41ef-a95b-0dce7109de61/resourceGroups/tnt55-cust-mp01-mock01/providers/Microsoft.Network/expressRouteCircuits/tnt55-cust-mp01-mock01-er\",\r\n \"expressRoutePrivatePeeringID\": \"/subscriptions/5206f269-120b-41ef-a95b-0dce7109de61/resourceGroups/tnt55-cust-mp01-mock01/providers/Microsoft.Network/expressRouteCircuits/tnt55-cust-mp01-mock01-er/peerings/AzurePrivatePeering\",\r\n \"primarySubnet\": \"192.168.51.8/30\",\r\n \"secondarySubnet\": \"192.168.51.12/30\"\r\n },\r\n \"cluster\": {\r\n \"clusterID\": 1,\r\n \"clusterSize\": 4,\r\n \"hosts\": [\r\n \"gp-fakehost05.mp01.mock01.vmcp.vs.management\",\r\n \"gp-fakehost01.mp01.mock01.vmcp.vs.management\",\r\n \"gp-fakehost40.mp01.mock01.vmcp.vs.management\",\r\n \"gp-fakehost46.mp01.mock01.vmcp.vs.management\"\r\n ]\r\n },\r\n \"clusters\": [],\r\n \"endpoints\": {\r\n \"nsxtManager\": \"https://192.168.48.3/\",\r\n \"vcsa\": \"https://192.168.48.2/\"\r\n },\r\n \"identitySources\": [],\r\n \"internet\": \"Disabled\",\r\n \"managementNetwork\": \"192.168.48.0/24\",\r\n \"networkBlock\": \"192.168.48.0/22\",\r\n \"nsxtCertificateThumbprint\": \"B9A9474616752565A3FAF23E0A013ECE3DC8B8FF\",\r\n \"provisioningNetwork\": \"192.168.50.0/24\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"vcenterCertificateThumbprint\": \"BE8EA855AA13D9662A115571636B9B1925C6DB68\",\r\n \"vmotionNetwork\": \"192.168.49.0/24\"\r\n },\r\n \"sku\": {\r\n \"name\": \"av20\"\r\n },\r\n \"tags\": {},\r\n \"type\": \"Microsoft.AVS/privateClouds\"\r\n }\r\n ]\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-test-rg6358/providers/Microsoft.AVS/privateClouds?api-version=2019-08-09-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmE3NWU3OWItZGQ5NS00MDI1LTlkYmYtM2E3YWU4ZGZmMmI1L3Jlc291cmNlR3JvdXBzL2F2cy1zZGstdGVzdC1yZzYzNTgvcHJvdmlkZXJzL01pY3Jvc29mdC5BVlMvcHJpdmF0ZUNsb3Vkcz9hcGktdmVyc2lvbj0yMDE5LTA4LTA5LXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "5ac4f14d-5a00-45d2-9824-c40b513c7352" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.28928.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Avs.AvsClient/1.0.0.preview.1" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14946" + ], + "x-ms-request-id": [ + "23f84db0-1b19-4820-b7d6-c23b5d400ae9" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "nginx" + ], + "x-ms-correlation-request-id": [ + "feb16724-5e01-4448-a2a7-a54cfaca8042" + ], + "x-ms-routing-request-id": [ + "NORTHEUROPE:20200619T192822Z:feb16724-5e01-4448-a2a7-a54cfaca8042" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 19 Jun 2020 19:28:21 GMT" + ], + "Content-Length": [ + "28" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"nextLink\": null,\r\n \"value\": []\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-test-rg6358/providers/Microsoft.AVS/privateClouds/avs-sdk-test-cloud8458?api-version=2019-08-09-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmE3NWU3OWItZGQ5NS00MDI1LTlkYmYtM2E3YWU4ZGZmMmI1L3Jlc291cmNlR3JvdXBzL2F2cy1zZGstdGVzdC1yZzYzNTgvcHJvdmlkZXJzL01pY3Jvc29mdC5BVlMvcHJpdmF0ZUNsb3Vkcy9hdnMtc2RrLXRlc3QtY2xvdWQ4NDU4P2FwaS12ZXJzaW9uPTIwMTktMDgtMDktcHJldmlldw==", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"sku\": {\r\n \"name\": \"av20\"\r\n },\r\n \"properties\": {\r\n \"cluster\": {\r\n \"clusterSize\": 4\r\n },\r\n \"networkBlock\": \"192.168.48.0/22\"\r\n },\r\n \"location\": \"centralus\"\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "73568ca1-b308-4809-8b1d-f2b47d6196c7" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.28928.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Avs.AvsClient/1.0.0.preview.1" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "183" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "10" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1199" + ], + "Azure-AsyncOperation": [ + "https://api-dogfood.resources.windows-int.net/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-test-rg6358/providers/Microsoft.AVS/privateClouds/avs-sdk-test-cloud8458/operationstatuses/467adc65-b438-4f75-b1cf-f527efd4586c?api-version=2019-08-09-preview" + ], + "x-ms-request-id": [ + "6fa01931-7274-42a4-adab-334169160503" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "nginx" + ], + "x-ms-correlation-request-id": [ + "b62c2b68-9860-418c-844a-0c87214e941b" + ], + "x-ms-routing-request-id": [ + "NORTHEUROPE:20200619T192259Z:b62c2b68-9860-418c-844a-0c87214e941b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 19 Jun 2020 19:22:59 GMT" + ], + "Content-Length": [ + "852" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-test-rg6358/providers/Microsoft.AVS/privateClouds/avs-sdk-test-cloud8458\",\r\n \"location\": \"centralus\",\r\n \"name\": \"avs-sdk-test-cloud8458\",\r\n \"properties\": {\r\n \"cluster\": {\r\n \"clusterID\": 1,\r\n \"clusterSize\": 4,\r\n \"hosts\": [\r\n \"gp-fakehost05.mp01.mock01.vmcp.vs.management\",\r\n \"gp-fakehost01.mp01.mock01.vmcp.vs.management\",\r\n \"gp-fakehost40.mp01.mock01.vmcp.vs.management\",\r\n \"gp-fakehost46.mp01.mock01.vmcp.vs.management\"\r\n ]\r\n },\r\n \"clusters\": [],\r\n \"endpoints\": {\r\n \"nsxtManager\": \"https://192.168.48.3/\",\r\n \"vcsa\": \"https://192.168.48.2/\"\r\n },\r\n \"identitySources\": [],\r\n \"internet\": \"Disabled\",\r\n \"managementNetwork\": \"192.168.48.0/24\",\r\n \"networkBlock\": \"192.168.48.0/22\",\r\n \"provisioningNetwork\": \"192.168.50.0/24\",\r\n \"provisioningState\": \"Building\",\r\n \"vmotionNetwork\": \"192.168.49.0/24\"\r\n },\r\n \"sku\": {\r\n \"name\": \"av20\"\r\n },\r\n \"tags\": {},\r\n \"type\": \"Microsoft.AVS/privateClouds\"\r\n}", + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-test-rg6358/providers/Microsoft.AVS/privateClouds/avs-sdk-test-cloud8458/operationstatuses/467adc65-b438-4f75-b1cf-f527efd4586c?api-version=2019-08-09-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmE3NWU3OWItZGQ5NS00MDI1LTlkYmYtM2E3YWU4ZGZmMmI1L3Jlc291cmNlR3JvdXBzL2F2cy1zZGstdGVzdC1yZzYzNTgvcHJvdmlkZXJzL01pY3Jvc29mdC5BVlMvcHJpdmF0ZUNsb3Vkcy9hdnMtc2RrLXRlc3QtY2xvdWQ4NDU4L29wZXJhdGlvbnN0YXR1c2VzLzQ2N2FkYzY1LWI0MzgtNGY3NS1iMWNmLWY1MjdlZmQ0NTg2Yz9hcGktdmVyc2lvbj0yMDE5LTA4LTA5LXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.28928.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Avs.AvsClient/1.0.0.preview.1" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "10" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14984" + ], + "x-ms-request-id": [ + "c843d41e-d4a7-4dd5-bc54-0d77e23ca988" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "nginx" + ], + "x-ms-correlation-request-id": [ + "42405875-1c0b-4694-9fc2-c5bbf8144487" + ], + "x-ms-routing-request-id": [ + "NORTHEUROPE:20200619T192310Z:42405875-1c0b-4694-9fc2-c5bbf8144487" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 19 Jun 2020 19:23:09 GMT" + ], + "Content-Length": [ + "345" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-test-rg6358/providers/Microsoft.AVS/privateClouds/avs-sdk-test-cloud8458/operationstatuses/467adc65-b438-4f75-b1cf-f527efd4586c\",\r\n \"name\": \"467adc65-b438-4f75-b1cf-f527efd4586c\",\r\n \"percentComplete\": 5,\r\n \"startTime\": \"2020-06-19T13:22:58.810549-06:00\",\r\n \"status\": \"Building\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-test-rg6358/providers/Microsoft.AVS/privateClouds/avs-sdk-test-cloud8458/operationstatuses/467adc65-b438-4f75-b1cf-f527efd4586c?api-version=2019-08-09-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmE3NWU3OWItZGQ5NS00MDI1LTlkYmYtM2E3YWU4ZGZmMmI1L3Jlc291cmNlR3JvdXBzL2F2cy1zZGstdGVzdC1yZzYzNTgvcHJvdmlkZXJzL01pY3Jvc29mdC5BVlMvcHJpdmF0ZUNsb3Vkcy9hdnMtc2RrLXRlc3QtY2xvdWQ4NDU4L29wZXJhdGlvbnN0YXR1c2VzLzQ2N2FkYzY1LWI0MzgtNGY3NS1iMWNmLWY1MjdlZmQ0NTg2Yz9hcGktdmVyc2lvbj0yMDE5LTA4LTA5LXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.28928.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Avs.AvsClient/1.0.0.preview.1" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "10" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14983" + ], + "x-ms-request-id": [ + "6b8e6546-4358-4b86-8a23-c5229f7c80bc" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "nginx" + ], + "x-ms-correlation-request-id": [ + "4c24ba66-b28b-4afe-b438-4095ae2f4f5e" + ], + "x-ms-routing-request-id": [ + "NORTHEUROPE:20200619T192320Z:4c24ba66-b28b-4afe-b438-4095ae2f4f5e" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 19 Jun 2020 19:23:20 GMT" + ], + "Content-Length": [ + "347" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-test-rg6358/providers/Microsoft.AVS/privateClouds/avs-sdk-test-cloud8458/operationstatuses/467adc65-b438-4f75-b1cf-f527efd4586c\",\r\n \"name\": \"467adc65-b438-4f75-b1cf-f527efd4586c\",\r\n \"percentComplete\": 2.5,\r\n \"startTime\": \"2020-06-19T13:22:58.810549-06:00\",\r\n \"status\": \"Building\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-test-rg6358/providers/Microsoft.AVS/privateClouds/avs-sdk-test-cloud8458/operationstatuses/467adc65-b438-4f75-b1cf-f527efd4586c?api-version=2019-08-09-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmE3NWU3OWItZGQ5NS00MDI1LTlkYmYtM2E3YWU4ZGZmMmI1L3Jlc291cmNlR3JvdXBzL2F2cy1zZGstdGVzdC1yZzYzNTgvcHJvdmlkZXJzL01pY3Jvc29mdC5BVlMvcHJpdmF0ZUNsb3Vkcy9hdnMtc2RrLXRlc3QtY2xvdWQ4NDU4L29wZXJhdGlvbnN0YXR1c2VzLzQ2N2FkYzY1LWI0MzgtNGY3NS1iMWNmLWY1MjdlZmQ0NTg2Yz9hcGktdmVyc2lvbj0yMDE5LTA4LTA5LXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.28928.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Avs.AvsClient/1.0.0.preview.1" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "10" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14982" + ], + "x-ms-request-id": [ + "62b7ebd5-6bb5-44a2-ad61-b882bfcd85af" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "nginx" + ], + "x-ms-correlation-request-id": [ + "eb7b8013-95cb-4adc-a1d2-ae1dadb8f216" + ], + "x-ms-routing-request-id": [ + "NORTHEUROPE:20200619T192330Z:eb7b8013-95cb-4adc-a1d2-ae1dadb8f216" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 19 Jun 2020 19:23:30 GMT" + ], + "Content-Length": [ + "349" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-test-rg6358/providers/Microsoft.AVS/privateClouds/avs-sdk-test-cloud8458/operationstatuses/467adc65-b438-4f75-b1cf-f527efd4586c\",\r\n \"name\": \"467adc65-b438-4f75-b1cf-f527efd4586c\",\r\n \"percentComplete\": 88.75,\r\n \"startTime\": \"2020-06-19T13:22:58.810549-06:00\",\r\n \"status\": \"Building\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-test-rg6358/providers/Microsoft.AVS/privateClouds/avs-sdk-test-cloud8458/operationstatuses/467adc65-b438-4f75-b1cf-f527efd4586c?api-version=2019-08-09-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmE3NWU3OWItZGQ5NS00MDI1LTlkYmYtM2E3YWU4ZGZmMmI1L3Jlc291cmNlR3JvdXBzL2F2cy1zZGstdGVzdC1yZzYzNTgvcHJvdmlkZXJzL01pY3Jvc29mdC5BVlMvcHJpdmF0ZUNsb3Vkcy9hdnMtc2RrLXRlc3QtY2xvdWQ4NDU4L29wZXJhdGlvbnN0YXR1c2VzLzQ2N2FkYzY1LWI0MzgtNGY3NS1iMWNmLWY1MjdlZmQ0NTg2Yz9hcGktdmVyc2lvbj0yMDE5LTA4LTA5LXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.28928.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Avs.AvsClient/1.0.0.preview.1" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "10" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14981" + ], + "x-ms-request-id": [ + "c075f9b5-a61a-4dee-9575-58e229cdf77b" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "nginx" + ], + "x-ms-correlation-request-id": [ + "f24096a3-024f-4bb2-8ca0-addc944e97f8" + ], + "x-ms-routing-request-id": [ + "NORTHEUROPE:20200619T192341Z:f24096a3-024f-4bb2-8ca0-addc944e97f8" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 19 Jun 2020 19:23:40 GMT" + ], + "Content-Length": [ + "347" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-test-rg6358/providers/Microsoft.AVS/privateClouds/avs-sdk-test-cloud8458/operationstatuses/467adc65-b438-4f75-b1cf-f527efd4586c\",\r\n \"name\": \"467adc65-b438-4f75-b1cf-f527efd4586c\",\r\n \"percentComplete\": 100,\r\n \"startTime\": \"2020-06-19T13:22:58.810549-06:00\",\r\n \"status\": \"Building\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-test-rg6358/providers/Microsoft.AVS/privateClouds/avs-sdk-test-cloud8458/operationstatuses/467adc65-b438-4f75-b1cf-f527efd4586c?api-version=2019-08-09-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmE3NWU3OWItZGQ5NS00MDI1LTlkYmYtM2E3YWU4ZGZmMmI1L3Jlc291cmNlR3JvdXBzL2F2cy1zZGstdGVzdC1yZzYzNTgvcHJvdmlkZXJzL01pY3Jvc29mdC5BVlMvcHJpdmF0ZUNsb3Vkcy9hdnMtc2RrLXRlc3QtY2xvdWQ4NDU4L29wZXJhdGlvbnN0YXR1c2VzLzQ2N2FkYzY1LWI0MzgtNGY3NS1iMWNmLWY1MjdlZmQ0NTg2Yz9hcGktdmVyc2lvbj0yMDE5LTA4LTA5LXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.28928.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Avs.AvsClient/1.0.0.preview.1" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "10" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14980" + ], + "x-ms-request-id": [ + "20cf6c85-7a38-48d4-9860-cdce16d00005" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "nginx" + ], + "x-ms-correlation-request-id": [ + "d6e0ed46-bd5d-4607-84af-34e70caa9358" + ], + "x-ms-routing-request-id": [ + "NORTHEUROPE:20200619T192351Z:d6e0ed46-bd5d-4607-84af-34e70caa9358" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 19 Jun 2020 19:23:50 GMT" + ], + "Content-Length": [ + "347" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-test-rg6358/providers/Microsoft.AVS/privateClouds/avs-sdk-test-cloud8458/operationstatuses/467adc65-b438-4f75-b1cf-f527efd4586c\",\r\n \"name\": \"467adc65-b438-4f75-b1cf-f527efd4586c\",\r\n \"percentComplete\": 100,\r\n \"startTime\": \"2020-06-19T13:22:58.810549-06:00\",\r\n \"status\": \"Building\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-test-rg6358/providers/Microsoft.AVS/privateClouds/avs-sdk-test-cloud8458/operationstatuses/467adc65-b438-4f75-b1cf-f527efd4586c?api-version=2019-08-09-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmE3NWU3OWItZGQ5NS00MDI1LTlkYmYtM2E3YWU4ZGZmMmI1L3Jlc291cmNlR3JvdXBzL2F2cy1zZGstdGVzdC1yZzYzNTgvcHJvdmlkZXJzL01pY3Jvc29mdC5BVlMvcHJpdmF0ZUNsb3Vkcy9hdnMtc2RrLXRlc3QtY2xvdWQ4NDU4L29wZXJhdGlvbnN0YXR1c2VzLzQ2N2FkYzY1LWI0MzgtNGY3NS1iMWNmLWY1MjdlZmQ0NTg2Yz9hcGktdmVyc2lvbj0yMDE5LTA4LTA5LXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.28928.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Avs.AvsClient/1.0.0.preview.1" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "10" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14979" + ], + "x-ms-request-id": [ + "2e58e90b-a970-47b7-9fc3-a768a4161ecc" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "nginx" + ], + "x-ms-correlation-request-id": [ + "a851694a-6191-4bc1-8eba-619ba2b86a61" + ], + "x-ms-routing-request-id": [ + "NORTHEUROPE:20200619T192401Z:a851694a-6191-4bc1-8eba-619ba2b86a61" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 19 Jun 2020 19:24:01 GMT" + ], + "Content-Length": [ + "347" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-test-rg6358/providers/Microsoft.AVS/privateClouds/avs-sdk-test-cloud8458/operationstatuses/467adc65-b438-4f75-b1cf-f527efd4586c\",\r\n \"name\": \"467adc65-b438-4f75-b1cf-f527efd4586c\",\r\n \"percentComplete\": 100,\r\n \"startTime\": \"2020-06-19T13:22:58.810549-06:00\",\r\n \"status\": \"Building\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-test-rg6358/providers/Microsoft.AVS/privateClouds/avs-sdk-test-cloud8458/operationstatuses/467adc65-b438-4f75-b1cf-f527efd4586c?api-version=2019-08-09-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmE3NWU3OWItZGQ5NS00MDI1LTlkYmYtM2E3YWU4ZGZmMmI1L3Jlc291cmNlR3JvdXBzL2F2cy1zZGstdGVzdC1yZzYzNTgvcHJvdmlkZXJzL01pY3Jvc29mdC5BVlMvcHJpdmF0ZUNsb3Vkcy9hdnMtc2RrLXRlc3QtY2xvdWQ4NDU4L29wZXJhdGlvbnN0YXR1c2VzLzQ2N2FkYzY1LWI0MzgtNGY3NS1iMWNmLWY1MjdlZmQ0NTg2Yz9hcGktdmVyc2lvbj0yMDE5LTA4LTA5LXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.28928.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Avs.AvsClient/1.0.0.preview.1" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "10" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14978" + ], + "x-ms-request-id": [ + "7f994e15-1647-4b6a-ad2e-85ae164e763b" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "nginx" + ], + "x-ms-correlation-request-id": [ + "3b24d5e2-bc30-4f28-82d5-fb1459a9963c" + ], + "x-ms-routing-request-id": [ + "NORTHEUROPE:20200619T192411Z:3b24d5e2-bc30-4f28-82d5-fb1459a9963c" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 19 Jun 2020 19:24:11 GMT" + ], + "Content-Length": [ + "347" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-test-rg6358/providers/Microsoft.AVS/privateClouds/avs-sdk-test-cloud8458/operationstatuses/467adc65-b438-4f75-b1cf-f527efd4586c\",\r\n \"name\": \"467adc65-b438-4f75-b1cf-f527efd4586c\",\r\n \"percentComplete\": 100,\r\n \"startTime\": \"2020-06-19T13:22:58.810549-06:00\",\r\n \"status\": \"Building\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-test-rg6358/providers/Microsoft.AVS/privateClouds/avs-sdk-test-cloud8458/operationstatuses/467adc65-b438-4f75-b1cf-f527efd4586c?api-version=2019-08-09-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmE3NWU3OWItZGQ5NS00MDI1LTlkYmYtM2E3YWU4ZGZmMmI1L3Jlc291cmNlR3JvdXBzL2F2cy1zZGstdGVzdC1yZzYzNTgvcHJvdmlkZXJzL01pY3Jvc29mdC5BVlMvcHJpdmF0ZUNsb3Vkcy9hdnMtc2RrLXRlc3QtY2xvdWQ4NDU4L29wZXJhdGlvbnN0YXR1c2VzLzQ2N2FkYzY1LWI0MzgtNGY3NS1iMWNmLWY1MjdlZmQ0NTg2Yz9hcGktdmVyc2lvbj0yMDE5LTA4LTA5LXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.28928.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Avs.AvsClient/1.0.0.preview.1" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "10" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14977" + ], + "x-ms-request-id": [ + "b57a248a-e49c-40e8-b5fe-205a96a6f83e" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "nginx" + ], + "x-ms-correlation-request-id": [ + "25bd1f05-f25f-409d-ac84-59578828a118" + ], + "x-ms-routing-request-id": [ + "NORTHEUROPE:20200619T192422Z:25bd1f05-f25f-409d-ac84-59578828a118" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 19 Jun 2020 19:24:22 GMT" + ], + "Content-Length": [ + "347" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-test-rg6358/providers/Microsoft.AVS/privateClouds/avs-sdk-test-cloud8458/operationstatuses/467adc65-b438-4f75-b1cf-f527efd4586c\",\r\n \"name\": \"467adc65-b438-4f75-b1cf-f527efd4586c\",\r\n \"percentComplete\": 100,\r\n \"startTime\": \"2020-06-19T13:22:58.810549-06:00\",\r\n \"status\": \"Building\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-test-rg6358/providers/Microsoft.AVS/privateClouds/avs-sdk-test-cloud8458/operationstatuses/467adc65-b438-4f75-b1cf-f527efd4586c?api-version=2019-08-09-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmE3NWU3OWItZGQ5NS00MDI1LTlkYmYtM2E3YWU4ZGZmMmI1L3Jlc291cmNlR3JvdXBzL2F2cy1zZGstdGVzdC1yZzYzNTgvcHJvdmlkZXJzL01pY3Jvc29mdC5BVlMvcHJpdmF0ZUNsb3Vkcy9hdnMtc2RrLXRlc3QtY2xvdWQ4NDU4L29wZXJhdGlvbnN0YXR1c2VzLzQ2N2FkYzY1LWI0MzgtNGY3NS1iMWNmLWY1MjdlZmQ0NTg2Yz9hcGktdmVyc2lvbj0yMDE5LTA4LTA5LXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.28928.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Avs.AvsClient/1.0.0.preview.1" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "10" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14976" + ], + "x-ms-request-id": [ + "6d9f08f4-8fe8-401e-8b62-1c787bf7ee45" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "nginx" + ], + "x-ms-correlation-request-id": [ + "b9a22c53-e0a9-417f-bb16-555457373dad" + ], + "x-ms-routing-request-id": [ + "NORTHEUROPE:20200619T192432Z:b9a22c53-e0a9-417f-bb16-555457373dad" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 19 Jun 2020 19:24:32 GMT" + ], + "Content-Length": [ + "347" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-test-rg6358/providers/Microsoft.AVS/privateClouds/avs-sdk-test-cloud8458/operationstatuses/467adc65-b438-4f75-b1cf-f527efd4586c\",\r\n \"name\": \"467adc65-b438-4f75-b1cf-f527efd4586c\",\r\n \"percentComplete\": 100,\r\n \"startTime\": \"2020-06-19T13:22:58.810549-06:00\",\r\n \"status\": \"Building\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-test-rg6358/providers/Microsoft.AVS/privateClouds/avs-sdk-test-cloud8458/operationstatuses/467adc65-b438-4f75-b1cf-f527efd4586c?api-version=2019-08-09-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmE3NWU3OWItZGQ5NS00MDI1LTlkYmYtM2E3YWU4ZGZmMmI1L3Jlc291cmNlR3JvdXBzL2F2cy1zZGstdGVzdC1yZzYzNTgvcHJvdmlkZXJzL01pY3Jvc29mdC5BVlMvcHJpdmF0ZUNsb3Vkcy9hdnMtc2RrLXRlc3QtY2xvdWQ4NDU4L29wZXJhdGlvbnN0YXR1c2VzLzQ2N2FkYzY1LWI0MzgtNGY3NS1iMWNmLWY1MjdlZmQ0NTg2Yz9hcGktdmVyc2lvbj0yMDE5LTA4LTA5LXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.28928.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Avs.AvsClient/1.0.0.preview.1" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "10" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14975" + ], + "x-ms-request-id": [ + "bab170f8-3c26-4222-a452-a658f589b01a" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "nginx" + ], + "x-ms-correlation-request-id": [ + "ca411696-eec3-4dae-87bb-9c4c437bc4fb" + ], + "x-ms-routing-request-id": [ + "NORTHEUROPE:20200619T192442Z:ca411696-eec3-4dae-87bb-9c4c437bc4fb" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 19 Jun 2020 19:24:41 GMT" + ], + "Content-Length": [ + "347" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-test-rg6358/providers/Microsoft.AVS/privateClouds/avs-sdk-test-cloud8458/operationstatuses/467adc65-b438-4f75-b1cf-f527efd4586c\",\r\n \"name\": \"467adc65-b438-4f75-b1cf-f527efd4586c\",\r\n \"percentComplete\": 100,\r\n \"startTime\": \"2020-06-19T13:22:58.810549-06:00\",\r\n \"status\": \"Building\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-test-rg6358/providers/Microsoft.AVS/privateClouds/avs-sdk-test-cloud8458/operationstatuses/467adc65-b438-4f75-b1cf-f527efd4586c?api-version=2019-08-09-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmE3NWU3OWItZGQ5NS00MDI1LTlkYmYtM2E3YWU4ZGZmMmI1L3Jlc291cmNlR3JvdXBzL2F2cy1zZGstdGVzdC1yZzYzNTgvcHJvdmlkZXJzL01pY3Jvc29mdC5BVlMvcHJpdmF0ZUNsb3Vkcy9hdnMtc2RrLXRlc3QtY2xvdWQ4NDU4L29wZXJhdGlvbnN0YXR1c2VzLzQ2N2FkYzY1LWI0MzgtNGY3NS1iMWNmLWY1MjdlZmQ0NTg2Yz9hcGktdmVyc2lvbj0yMDE5LTA4LTA5LXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.28928.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Avs.AvsClient/1.0.0.preview.1" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "10" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14974" + ], + "x-ms-request-id": [ + "da1a4db0-c404-48db-a416-c1409453794a" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "nginx" + ], + "x-ms-correlation-request-id": [ + "86347ba7-81bd-4891-a8ae-82c19b561534" + ], + "x-ms-routing-request-id": [ + "NORTHEUROPE:20200619T192453Z:86347ba7-81bd-4891-a8ae-82c19b561534" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 19 Jun 2020 19:24:52 GMT" + ], + "Content-Length": [ + "347" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-test-rg6358/providers/Microsoft.AVS/privateClouds/avs-sdk-test-cloud8458/operationstatuses/467adc65-b438-4f75-b1cf-f527efd4586c\",\r\n \"name\": \"467adc65-b438-4f75-b1cf-f527efd4586c\",\r\n \"percentComplete\": 100,\r\n \"startTime\": \"2020-06-19T13:22:58.810549-06:00\",\r\n \"status\": \"Building\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-test-rg6358/providers/Microsoft.AVS/privateClouds/avs-sdk-test-cloud8458/operationstatuses/467adc65-b438-4f75-b1cf-f527efd4586c?api-version=2019-08-09-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmE3NWU3OWItZGQ5NS00MDI1LTlkYmYtM2E3YWU4ZGZmMmI1L3Jlc291cmNlR3JvdXBzL2F2cy1zZGstdGVzdC1yZzYzNTgvcHJvdmlkZXJzL01pY3Jvc29mdC5BVlMvcHJpdmF0ZUNsb3Vkcy9hdnMtc2RrLXRlc3QtY2xvdWQ4NDU4L29wZXJhdGlvbnN0YXR1c2VzLzQ2N2FkYzY1LWI0MzgtNGY3NS1iMWNmLWY1MjdlZmQ0NTg2Yz9hcGktdmVyc2lvbj0yMDE5LTA4LTA5LXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.28928.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Avs.AvsClient/1.0.0.preview.1" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14973" + ], + "x-ms-request-id": [ + "d0affbca-55be-458f-b53a-c77907ce38c2" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "nginx" + ], + "x-ms-correlation-request-id": [ + "6c3ab6de-8924-49ed-8680-53001b604e37" + ], + "x-ms-routing-request-id": [ + "NORTHEUROPE:20200619T192503Z:6c3ab6de-8924-49ed-8680-53001b604e37" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 19 Jun 2020 19:25:02 GMT" + ], + "Content-Length": [ + "1626" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"endTime\": \"2020-06-19T13:24:51.8882143-06:00\",\r\n \"id\": \"/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-test-rg6358/providers/Microsoft.AVS/privateClouds/avs-sdk-test-cloud8458/operationstatuses/467adc65-b438-4f75-b1cf-f527efd4586c\",\r\n \"name\": \"467adc65-b438-4f75-b1cf-f527efd4586c\",\r\n \"percentComplete\": 100,\r\n \"properties\": {\r\n \"circuit\": {\r\n \"authorizations\": [],\r\n \"expressRouteID\": \"/subscriptions/5206f269-120b-41ef-a95b-0dce7109de61/resourceGroups/tnt55-cust-mp01-mock01/providers/Microsoft.Network/expressRouteCircuits/tnt55-cust-mp01-mock01-er\",\r\n \"expressRoutePrivatePeeringID\": \"/subscriptions/5206f269-120b-41ef-a95b-0dce7109de61/resourceGroups/tnt55-cust-mp01-mock01/providers/Microsoft.Network/expressRouteCircuits/tnt55-cust-mp01-mock01-er/peerings/AzurePrivatePeering\",\r\n \"primarySubnet\": \"192.168.51.8/30\",\r\n \"secondarySubnet\": \"192.168.51.12/30\"\r\n },\r\n \"cluster\": {\r\n \"clusterID\": 1,\r\n \"clusterSize\": 4,\r\n \"hosts\": [\r\n \"gp-fakehost05.mp01.mock01.vmcp.vs.management\",\r\n \"gp-fakehost01.mp01.mock01.vmcp.vs.management\",\r\n \"gp-fakehost40.mp01.mock01.vmcp.vs.management\",\r\n \"gp-fakehost46.mp01.mock01.vmcp.vs.management\"\r\n ]\r\n },\r\n \"clusters\": [],\r\n \"endpoints\": {\r\n \"nsxtManager\": \"https://192.168.48.3/\",\r\n \"vcsa\": \"https://192.168.48.2/\"\r\n },\r\n \"identitySources\": [],\r\n \"internet\": \"Disabled\",\r\n \"managementNetwork\": \"192.168.48.0/24\",\r\n \"networkBlock\": \"192.168.48.0/22\",\r\n \"nsxtCertificateThumbprint\": \"B9A9474616752565A3FAF23E0A013ECE3DC8B8FF\",\r\n \"provisioningNetwork\": \"192.168.50.0/24\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"vcenterCertificateThumbprint\": \"BE8EA855AA13D9662A115571636B9B1925C6DB68\",\r\n \"vmotionNetwork\": \"192.168.49.0/24\"\r\n },\r\n \"startTime\": \"2020-06-19T13:22:58.810549-06:00\",\r\n \"status\": \"Succeeded\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-test-rg6358/providers/Microsoft.AVS/privateClouds/avs-sdk-test-cloud8458?api-version=2019-08-09-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmE3NWU3OWItZGQ5NS00MDI1LTlkYmYtM2E3YWU4ZGZmMmI1L3Jlc291cmNlR3JvdXBzL2F2cy1zZGstdGVzdC1yZzYzNTgvcHJvdmlkZXJzL01pY3Jvc29mdC5BVlMvcHJpdmF0ZUNsb3Vkcy9hdnMtc2RrLXRlc3QtY2xvdWQ4NDU4P2FwaS12ZXJzaW9uPTIwMTktMDgtMDktcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.28928.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Avs.AvsClient/1.0.0.preview.1" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14972" + ], + "x-ms-request-id": [ + "5cdd8921-5134-4f4f-8d50-ad6b6c591942" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "nginx" + ], + "x-ms-correlation-request-id": [ + "12fdfb0e-ff80-476b-bf0d-ef15f893d78d" + ], + "x-ms-routing-request-id": [ + "NORTHEUROPE:20200619T192503Z:12fdfb0e-ff80-476b-bf0d-ef15f893d78d" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 19 Jun 2020 19:25:02 GMT" + ], + "Content-Length": [ + "1512" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-test-rg6358/providers/Microsoft.AVS/privateClouds/avs-sdk-test-cloud8458\",\r\n \"location\": \"centralus\",\r\n \"name\": \"avs-sdk-test-cloud8458\",\r\n \"properties\": {\r\n \"circuit\": {\r\n \"authorizations\": [],\r\n \"expressRouteID\": \"/subscriptions/5206f269-120b-41ef-a95b-0dce7109de61/resourceGroups/tnt55-cust-mp01-mock01/providers/Microsoft.Network/expressRouteCircuits/tnt55-cust-mp01-mock01-er\",\r\n \"expressRoutePrivatePeeringID\": \"/subscriptions/5206f269-120b-41ef-a95b-0dce7109de61/resourceGroups/tnt55-cust-mp01-mock01/providers/Microsoft.Network/expressRouteCircuits/tnt55-cust-mp01-mock01-er/peerings/AzurePrivatePeering\",\r\n \"primarySubnet\": \"192.168.51.8/30\",\r\n \"secondarySubnet\": \"192.168.51.12/30\"\r\n },\r\n \"cluster\": {\r\n \"clusterID\": 1,\r\n \"clusterSize\": 4,\r\n \"hosts\": [\r\n \"gp-fakehost05.mp01.mock01.vmcp.vs.management\",\r\n \"gp-fakehost01.mp01.mock01.vmcp.vs.management\",\r\n \"gp-fakehost40.mp01.mock01.vmcp.vs.management\",\r\n \"gp-fakehost46.mp01.mock01.vmcp.vs.management\"\r\n ]\r\n },\r\n \"clusters\": [],\r\n \"endpoints\": {\r\n \"nsxtManager\": \"https://192.168.48.3/\",\r\n \"vcsa\": \"https://192.168.48.2/\"\r\n },\r\n \"identitySources\": [],\r\n \"internet\": \"Disabled\",\r\n \"managementNetwork\": \"192.168.48.0/24\",\r\n \"networkBlock\": \"192.168.48.0/22\",\r\n \"nsxtCertificateThumbprint\": \"B9A9474616752565A3FAF23E0A013ECE3DC8B8FF\",\r\n \"provisioningNetwork\": \"192.168.50.0/24\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"vcenterCertificateThumbprint\": \"BE8EA855AA13D9662A115571636B9B1925C6DB68\",\r\n \"vmotionNetwork\": \"192.168.49.0/24\"\r\n },\r\n \"sku\": {\r\n \"name\": \"av20\"\r\n },\r\n \"tags\": {},\r\n \"type\": \"Microsoft.AVS/privateClouds\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-test-rg6358/providers/Microsoft.AVS/privateClouds/avs-sdk-test-cloud8458/clusters?api-version=2019-08-09-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmE3NWU3OWItZGQ5NS00MDI1LTlkYmYtM2E3YWU4ZGZmMmI1L3Jlc291cmNlR3JvdXBzL2F2cy1zZGstdGVzdC1yZzYzNTgvcHJvdmlkZXJzL01pY3Jvc29mdC5BVlMvcHJpdmF0ZUNsb3Vkcy9hdnMtc2RrLXRlc3QtY2xvdWQ4NDU4L2NsdXN0ZXJzP2FwaS12ZXJzaW9uPTIwMTktMDgtMDktcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "b242c251-0125-45c2-8ea9-5fe8c553101a" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.28928.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Avs.AvsClient/1.0.0.preview.1" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14971" + ], + "x-ms-request-id": [ + "56114203-dea0-44c3-9d06-574757547a7c" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "nginx" + ], + "x-ms-correlation-request-id": [ + "aaf7111a-6e8a-4998-99c6-1d4fb24fec0e" + ], + "x-ms-routing-request-id": [ + "NORTHEUROPE:20200619T192504Z:aaf7111a-6e8a-4998-99c6-1d4fb24fec0e" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 19 Jun 2020 19:25:04 GMT" + ], + "Content-Length": [ + "28" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"nextLink\": null,\r\n \"value\": []\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-test-rg6358/providers/Microsoft.AVS/privateClouds/avs-sdk-test-cloud8458/clusters?api-version=2019-08-09-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmE3NWU3OWItZGQ5NS00MDI1LTlkYmYtM2E3YWU4ZGZmMmI1L3Jlc291cmNlR3JvdXBzL2F2cy1zZGstdGVzdC1yZzYzNTgvcHJvdmlkZXJzL01pY3Jvc29mdC5BVlMvcHJpdmF0ZUNsb3Vkcy9hdnMtc2RrLXRlc3QtY2xvdWQ4NDU4L2NsdXN0ZXJzP2FwaS12ZXJzaW9uPTIwMTktMDgtMDktcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "16b47fc2-a4ac-4fe9-a7a1-4489541a430c" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.28928.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Avs.AvsClient/1.0.0.preview.1" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14965" + ], + "x-ms-request-id": [ + "7467b48a-7361-47c1-bd19-334595de22c8" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "nginx" + ], + "x-ms-correlation-request-id": [ + "59b62e29-c3ec-4ed6-91d0-ea4e3a72b54d" + ], + "x-ms-routing-request-id": [ + "NORTHEUROPE:20200619T192548Z:59b62e29-c3ec-4ed6-91d0-ea4e3a72b54d" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 19 Jun 2020 19:25:48 GMT" + ], + "Content-Length": [ + "570" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"nextLink\": null,\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-test-rg6358/providers/Microsoft.AVS/privateClouds/avs-sdk-test-cloud8458/clusters/avs-sdk-test-cluster675\",\r\n \"location\": \"centralus\",\r\n \"name\": \"avs-sdk-test-cloud8458/avs-sdk-test-cluster675\",\r\n \"properties\": {\r\n \"clusterID\": 2,\r\n \"clusterSize\": 3,\r\n \"hosts\": [\r\n \"he-fakehost05.mp01.mock01.vmcp.vs.management\",\r\n \"he-fakehost07.mp01.mock01.vmcp.vs.management\",\r\n \"he-fakehost10.mp01.mock01.vmcp.vs.management\"\r\n ],\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"type\": \"Microsoft.AVS/privateClouds/clusters\"\r\n }\r\n ]\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-test-rg6358/providers/Microsoft.AVS/privateClouds/avs-sdk-test-cloud8458/clusters?api-version=2019-08-09-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmE3NWU3OWItZGQ5NS00MDI1LTlkYmYtM2E3YWU4ZGZmMmI1L3Jlc291cmNlR3JvdXBzL2F2cy1zZGstdGVzdC1yZzYzNTgvcHJvdmlkZXJzL01pY3Jvc29mdC5BVlMvcHJpdmF0ZUNsb3Vkcy9hdnMtc2RrLXRlc3QtY2xvdWQ4NDU4L2NsdXN0ZXJzP2FwaS12ZXJzaW9uPTIwMTktMDgtMDktcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "29fd19a2-b3e1-41e0-80e4-907ce581113a" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.28928.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Avs.AvsClient/1.0.0.preview.1" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14957" + ], + "x-ms-request-id": [ + "ae1a85ab-627b-4c66-af5a-d6891cd088da" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "nginx" + ], + "x-ms-correlation-request-id": [ + "f2ad6c9e-2105-4301-8a85-649322209215" + ], + "x-ms-routing-request-id": [ + "NORTHEUROPE:20200619T192651Z:f2ad6c9e-2105-4301-8a85-649322209215" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 19 Jun 2020 19:26:51 GMT" + ], + "Content-Length": [ + "28" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"nextLink\": null,\r\n \"value\": []\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-test-rg6358/providers/Microsoft.AVS/privateClouds/avs-sdk-test-cloud8458/clusters/avs-sdk-test-cluster675?api-version=2019-08-09-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmE3NWU3OWItZGQ5NS00MDI1LTlkYmYtM2E3YWU4ZGZmMmI1L3Jlc291cmNlR3JvdXBzL2F2cy1zZGstdGVzdC1yZzYzNTgvcHJvdmlkZXJzL01pY3Jvc29mdC5BVlMvcHJpdmF0ZUNsb3Vkcy9hdnMtc2RrLXRlc3QtY2xvdWQ4NDU4L2NsdXN0ZXJzL2F2cy1zZGstdGVzdC1jbHVzdGVyNjc1P2FwaS12ZXJzaW9uPTIwMTktMDgtMDktcHJldmlldw==", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"clusterSize\": 3\r\n }\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "c6af886a-3456-4b7a-a1ad-89409f6e43cc" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.28928.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Avs.AvsClient/1.0.0.preview.1" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "50" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "10" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1198" + ], + "Azure-AsyncOperation": [ + "https://api-dogfood.resources.windows-int.net/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-test-rg6358/providers/Microsoft.AVS/privateClouds/avs-sdk-test-cloud8458/clusters/avs-sdk-test-cluster675/operationstatuses/6bd618d0-dccf-40a9-8484-bbb58f13bf12?api-version=2019-08-09-preview" + ], + "x-ms-request-id": [ + "5cbd0759-0d2b-42da-9b97-26c584adeccc" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "nginx" + ], + "x-ms-correlation-request-id": [ + "ab025725-c60f-48ac-8bc4-99ddbd1219bf" + ], + "x-ms-routing-request-id": [ + "NORTHEUROPE:20200619T192506Z:ab025725-c60f-48ac-8bc4-99ddbd1219bf" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 19 Jun 2020 19:25:06 GMT" + ], + "Content-Length": [ + "541" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-test-rg6358/providers/Microsoft.AVS/privateClouds/avs-sdk-test-cloud8458/clusters/avs-sdk-test-cluster675\",\r\n \"location\": \"centralus\",\r\n \"name\": \"avs-sdk-test-cloud8458/avs-sdk-test-cluster675\",\r\n \"properties\": {\r\n \"clusterID\": 2,\r\n \"clusterSize\": 3,\r\n \"hosts\": [\r\n \"he-fakehost05.mp01.mock01.vmcp.vs.management\",\r\n \"he-fakehost07.mp01.mock01.vmcp.vs.management\",\r\n \"he-fakehost10.mp01.mock01.vmcp.vs.management\"\r\n ],\r\n \"provisioningState\": \"Building\"\r\n },\r\n \"type\": \"Microsoft.AVS/privateClouds/clusters\"\r\n}", + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-test-rg6358/providers/Microsoft.AVS/privateClouds/avs-sdk-test-cloud8458/clusters/avs-sdk-test-cluster675/operationstatuses/6bd618d0-dccf-40a9-8484-bbb58f13bf12?api-version=2019-08-09-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmE3NWU3OWItZGQ5NS00MDI1LTlkYmYtM2E3YWU4ZGZmMmI1L3Jlc291cmNlR3JvdXBzL2F2cy1zZGstdGVzdC1yZzYzNTgvcHJvdmlkZXJzL01pY3Jvc29mdC5BVlMvcHJpdmF0ZUNsb3Vkcy9hdnMtc2RrLXRlc3QtY2xvdWQ4NDU4L2NsdXN0ZXJzL2F2cy1zZGstdGVzdC1jbHVzdGVyNjc1L29wZXJhdGlvbnN0YXR1c2VzLzZiZDYxOGQwLWRjY2YtNDBhOS04NDg0LWJiYjU4ZjEzYmYxMj9hcGktdmVyc2lvbj0yMDE5LTA4LTA5LXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.28928.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Avs.AvsClient/1.0.0.preview.1" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "10" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14970" + ], + "x-ms-request-id": [ + "c19580a0-4a66-4da3-9ee3-1cf857612e04" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "nginx" + ], + "x-ms-correlation-request-id": [ + "eae0ebad-67bb-4c6f-99e0-0b73401cf986" + ], + "x-ms-routing-request-id": [ + "NORTHEUROPE:20200619T192517Z:eae0ebad-67bb-4c6f-99e0-0b73401cf986" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 19 Jun 2020 19:25:16 GMT" + ], + "Content-Length": [ + "379" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-test-rg6358/providers/Microsoft.AVS/privateClouds/avs-sdk-test-cloud8458/clusters/avs-sdk-test-cluster675/operationstatuses/6bd618d0-dccf-40a9-8484-bbb58f13bf12\",\r\n \"name\": \"6bd618d0-dccf-40a9-8484-bbb58f13bf12\",\r\n \"percentComplete\": 50,\r\n \"startTime\": \"2020-06-19T13:25:06.5661471-06:00\",\r\n \"status\": \"Building\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-test-rg6358/providers/Microsoft.AVS/privateClouds/avs-sdk-test-cloud8458/clusters/avs-sdk-test-cluster675/operationstatuses/6bd618d0-dccf-40a9-8484-bbb58f13bf12?api-version=2019-08-09-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmE3NWU3OWItZGQ5NS00MDI1LTlkYmYtM2E3YWU4ZGZmMmI1L3Jlc291cmNlR3JvdXBzL2F2cy1zZGstdGVzdC1yZzYzNTgvcHJvdmlkZXJzL01pY3Jvc29mdC5BVlMvcHJpdmF0ZUNsb3Vkcy9hdnMtc2RrLXRlc3QtY2xvdWQ4NDU4L2NsdXN0ZXJzL2F2cy1zZGstdGVzdC1jbHVzdGVyNjc1L29wZXJhdGlvbnN0YXR1c2VzLzZiZDYxOGQwLWRjY2YtNDBhOS04NDg0LWJiYjU4ZjEzYmYxMj9hcGktdmVyc2lvbj0yMDE5LTA4LTA5LXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.28928.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Avs.AvsClient/1.0.0.preview.1" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "10" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14969" + ], + "x-ms-request-id": [ + "05f8edcd-81cc-4e00-b117-f45cd59583b4" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "nginx" + ], + "x-ms-correlation-request-id": [ + "963ac495-20b5-4644-bbd0-642d964a5ffd" + ], + "x-ms-routing-request-id": [ + "NORTHEUROPE:20200619T192527Z:963ac495-20b5-4644-bbd0-642d964a5ffd" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 19 Jun 2020 19:25:27 GMT" + ], + "Content-Length": [ + "379" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-test-rg6358/providers/Microsoft.AVS/privateClouds/avs-sdk-test-cloud8458/clusters/avs-sdk-test-cluster675/operationstatuses/6bd618d0-dccf-40a9-8484-bbb58f13bf12\",\r\n \"name\": \"6bd618d0-dccf-40a9-8484-bbb58f13bf12\",\r\n \"percentComplete\": 75,\r\n \"startTime\": \"2020-06-19T13:25:06.5661471-06:00\",\r\n \"status\": \"Building\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-test-rg6358/providers/Microsoft.AVS/privateClouds/avs-sdk-test-cloud8458/clusters/avs-sdk-test-cluster675/operationstatuses/6bd618d0-dccf-40a9-8484-bbb58f13bf12?api-version=2019-08-09-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmE3NWU3OWItZGQ5NS00MDI1LTlkYmYtM2E3YWU4ZGZmMmI1L3Jlc291cmNlR3JvdXBzL2F2cy1zZGstdGVzdC1yZzYzNTgvcHJvdmlkZXJzL01pY3Jvc29mdC5BVlMvcHJpdmF0ZUNsb3Vkcy9hdnMtc2RrLXRlc3QtY2xvdWQ4NDU4L2NsdXN0ZXJzL2F2cy1zZGstdGVzdC1jbHVzdGVyNjc1L29wZXJhdGlvbnN0YXR1c2VzLzZiZDYxOGQwLWRjY2YtNDBhOS04NDg0LWJiYjU4ZjEzYmYxMj9hcGktdmVyc2lvbj0yMDE5LTA4LTA5LXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.28928.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Avs.AvsClient/1.0.0.preview.1" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "10" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14968" + ], + "x-ms-request-id": [ + "51aa57ab-07c5-430e-a481-aea1e219a77e" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "nginx" + ], + "x-ms-correlation-request-id": [ + "a31f6d27-a128-40ac-841e-6a08f9154a92" + ], + "x-ms-routing-request-id": [ + "NORTHEUROPE:20200619T192537Z:a31f6d27-a128-40ac-841e-6a08f9154a92" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 19 Jun 2020 19:25:37 GMT" + ], + "Content-Length": [ + "379" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-test-rg6358/providers/Microsoft.AVS/privateClouds/avs-sdk-test-cloud8458/clusters/avs-sdk-test-cluster675/operationstatuses/6bd618d0-dccf-40a9-8484-bbb58f13bf12\",\r\n \"name\": \"6bd618d0-dccf-40a9-8484-bbb58f13bf12\",\r\n \"percentComplete\": 75,\r\n \"startTime\": \"2020-06-19T13:25:06.5661471-06:00\",\r\n \"status\": \"Building\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-test-rg6358/providers/Microsoft.AVS/privateClouds/avs-sdk-test-cloud8458/clusters/avs-sdk-test-cluster675/operationstatuses/6bd618d0-dccf-40a9-8484-bbb58f13bf12?api-version=2019-08-09-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmE3NWU3OWItZGQ5NS00MDI1LTlkYmYtM2E3YWU4ZGZmMmI1L3Jlc291cmNlR3JvdXBzL2F2cy1zZGstdGVzdC1yZzYzNTgvcHJvdmlkZXJzL01pY3Jvc29mdC5BVlMvcHJpdmF0ZUNsb3Vkcy9hdnMtc2RrLXRlc3QtY2xvdWQ4NDU4L2NsdXN0ZXJzL2F2cy1zZGstdGVzdC1jbHVzdGVyNjc1L29wZXJhdGlvbnN0YXR1c2VzLzZiZDYxOGQwLWRjY2YtNDBhOS04NDg0LWJiYjU4ZjEzYmYxMj9hcGktdmVyc2lvbj0yMDE5LTA4LTA5LXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.28928.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Avs.AvsClient/1.0.0.preview.1" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14967" + ], + "x-ms-request-id": [ + "5a41470c-84d2-46a7-94bd-2f5ebb06550a" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "nginx" + ], + "x-ms-correlation-request-id": [ + "94a236dd-240a-4d68-a0e7-39ad129efe1e" + ], + "x-ms-routing-request-id": [ + "NORTHEUROPE:20200619T192548Z:94a236dd-240a-4d68-a0e7-39ad129efe1e" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 19 Jun 2020 19:25:47 GMT" + ], + "Content-Length": [ + "655" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"endTime\": \"2020-06-19T13:25:36.7900205-06:00\",\r\n \"id\": \"/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-test-rg6358/providers/Microsoft.AVS/privateClouds/avs-sdk-test-cloud8458/clusters/avs-sdk-test-cluster675/operationstatuses/6bd618d0-dccf-40a9-8484-bbb58f13bf12\",\r\n \"name\": \"6bd618d0-dccf-40a9-8484-bbb58f13bf12\",\r\n \"percentComplete\": 100,\r\n \"properties\": {\r\n \"clusterID\": 2,\r\n \"clusterSize\": 3,\r\n \"hosts\": [\r\n \"he-fakehost05.mp01.mock01.vmcp.vs.management\",\r\n \"he-fakehost07.mp01.mock01.vmcp.vs.management\",\r\n \"he-fakehost10.mp01.mock01.vmcp.vs.management\"\r\n ],\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"startTime\": \"2020-06-19T13:25:06.5661471-06:00\",\r\n \"status\": \"Succeeded\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-test-rg6358/providers/Microsoft.AVS/privateClouds/avs-sdk-test-cloud8458/clusters/avs-sdk-test-cluster675?api-version=2019-08-09-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmE3NWU3OWItZGQ5NS00MDI1LTlkYmYtM2E3YWU4ZGZmMmI1L3Jlc291cmNlR3JvdXBzL2F2cy1zZGstdGVzdC1yZzYzNTgvcHJvdmlkZXJzL01pY3Jvc29mdC5BVlMvcHJpdmF0ZUNsb3Vkcy9hdnMtc2RrLXRlc3QtY2xvdWQ4NDU4L2NsdXN0ZXJzL2F2cy1zZGstdGVzdC1jbHVzdGVyNjc1P2FwaS12ZXJzaW9uPTIwMTktMDgtMDktcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.28928.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Avs.AvsClient/1.0.0.preview.1" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14966" + ], + "x-ms-request-id": [ + "f3656716-0326-4883-8ae9-08e01cc66d89" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "nginx" + ], + "x-ms-correlation-request-id": [ + "b1a8f7f5-9ebe-4c55-99b1-8ea2bc9bbd7e" + ], + "x-ms-routing-request-id": [ + "NORTHEUROPE:20200619T192548Z:b1a8f7f5-9ebe-4c55-99b1-8ea2bc9bbd7e" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 19 Jun 2020 19:25:48 GMT" + ], + "Content-Length": [ + "542" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-test-rg6358/providers/Microsoft.AVS/privateClouds/avs-sdk-test-cloud8458/clusters/avs-sdk-test-cluster675\",\r\n \"location\": \"centralus\",\r\n \"name\": \"avs-sdk-test-cloud8458/avs-sdk-test-cluster675\",\r\n \"properties\": {\r\n \"clusterID\": 2,\r\n \"clusterSize\": 3,\r\n \"hosts\": [\r\n \"he-fakehost05.mp01.mock01.vmcp.vs.management\",\r\n \"he-fakehost07.mp01.mock01.vmcp.vs.management\",\r\n \"he-fakehost10.mp01.mock01.vmcp.vs.management\"\r\n ],\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"type\": \"Microsoft.AVS/privateClouds/clusters\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-test-rg6358/providers/Microsoft.AVS/privateClouds/avs-sdk-test-cloud8458/clusters/avs-sdk-test-cluster675?api-version=2019-08-09-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmE3NWU3OWItZGQ5NS00MDI1LTlkYmYtM2E3YWU4ZGZmMmI1L3Jlc291cmNlR3JvdXBzL2F2cy1zZGstdGVzdC1yZzYzNTgvcHJvdmlkZXJzL01pY3Jvc29mdC5BVlMvcHJpdmF0ZUNsb3Vkcy9hdnMtc2RrLXRlc3QtY2xvdWQ4NDU4L2NsdXN0ZXJzL2F2cy1zZGstdGVzdC1jbHVzdGVyNjc1P2FwaS12ZXJzaW9uPTIwMTktMDgtMDktcHJldmlldw==", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "4cd00598-eea9-4d55-806c-8ca95d32a8d6" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.28928.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Avs.AvsClient/1.0.0.preview.1" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://api-dogfood.resources.windows-int.net/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-test-rg6358/providers/Microsoft.AVS/privateClouds/avs-sdk-test-cloud8458/clusters/avs-sdk-test-cluster675/operationresults/3229e7fa-5128-4606-b46b-93d612520821?api-version=2019-08-09-preview" + ], + "Retry-After": [ + "10" + ], + "x-ms-ratelimit-remaining-subscription-deletes": [ + "14999" + ], + "Azure-AsyncOperation": [ + "https://api-dogfood.resources.windows-int.net/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-test-rg6358/providers/Microsoft.AVS/privateClouds/avs-sdk-test-cloud8458/clusters/avs-sdk-test-cluster675/operationstatuses/3229e7fa-5128-4606-b46b-93d612520821?api-version=2019-08-09-preview" + ], + "x-ms-request-id": [ + "aedef244-21de-45ae-9531-633ff0bf42e4" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "nginx" + ], + "x-ms-correlation-request-id": [ + "3352117b-a1df-4c7e-a038-5e0b3854c6c4" + ], + "x-ms-routing-request-id": [ + "NORTHEUROPE:20200619T192549Z:3352117b-a1df-4c7e-a038-5e0b3854c6c4" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 19 Jun 2020 19:25:49 GMT" + ], + "Content-Type": [ + "text/html" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-test-rg6358/providers/Microsoft.AVS/privateClouds/avs-sdk-test-cloud8458/clusters/avs-sdk-test-cluster675/operationstatuses/3229e7fa-5128-4606-b46b-93d612520821?api-version=2019-08-09-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmE3NWU3OWItZGQ5NS00MDI1LTlkYmYtM2E3YWU4ZGZmMmI1L3Jlc291cmNlR3JvdXBzL2F2cy1zZGstdGVzdC1yZzYzNTgvcHJvdmlkZXJzL01pY3Jvc29mdC5BVlMvcHJpdmF0ZUNsb3Vkcy9hdnMtc2RrLXRlc3QtY2xvdWQ4NDU4L2NsdXN0ZXJzL2F2cy1zZGstdGVzdC1jbHVzdGVyNjc1L29wZXJhdGlvbnN0YXR1c2VzLzMyMjllN2ZhLTUxMjgtNDYwNi1iNDZiLTkzZDYxMjUyMDgyMT9hcGktdmVyc2lvbj0yMDE5LTA4LTA5LXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.28928.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Avs.AvsClient/1.0.0.preview.1" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "10" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14964" + ], + "x-ms-request-id": [ + "10478411-30fc-490d-9828-931d4057eba1" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "nginx" + ], + "x-ms-correlation-request-id": [ + "e9cbe39b-fb8f-4d29-9166-36928ba6308d" + ], + "x-ms-routing-request-id": [ + "NORTHEUROPE:20200619T192559Z:e9cbe39b-fb8f-4d29-9166-36928ba6308d" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 19 Jun 2020 19:25:58 GMT" + ], + "Content-Length": [ + "379" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-test-rg6358/providers/Microsoft.AVS/privateClouds/avs-sdk-test-cloud8458/clusters/avs-sdk-test-cluster675/operationstatuses/3229e7fa-5128-4606-b46b-93d612520821\",\r\n \"name\": \"3229e7fa-5128-4606-b46b-93d612520821\",\r\n \"percentComplete\": 50,\r\n \"startTime\": \"2020-06-19T13:25:49.363664-06:00\",\r\n \"status\": \"Building\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-test-rg6358/providers/Microsoft.AVS/privateClouds/avs-sdk-test-cloud8458/clusters/avs-sdk-test-cluster675/operationstatuses/3229e7fa-5128-4606-b46b-93d612520821?api-version=2019-08-09-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmE3NWU3OWItZGQ5NS00MDI1LTlkYmYtM2E3YWU4ZGZmMmI1L3Jlc291cmNlR3JvdXBzL2F2cy1zZGstdGVzdC1yZzYzNTgvcHJvdmlkZXJzL01pY3Jvc29mdC5BVlMvcHJpdmF0ZUNsb3Vkcy9hdnMtc2RrLXRlc3QtY2xvdWQ4NDU4L2NsdXN0ZXJzL2F2cy1zZGstdGVzdC1jbHVzdGVyNjc1L29wZXJhdGlvbnN0YXR1c2VzLzMyMjllN2ZhLTUxMjgtNDYwNi1iNDZiLTkzZDYxMjUyMDgyMT9hcGktdmVyc2lvbj0yMDE5LTA4LTA5LXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.28928.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Avs.AvsClient/1.0.0.preview.1" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "10" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14963" + ], + "x-ms-request-id": [ + "31cebbcf-ce44-49e1-bf64-7e1a01be5481" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "nginx" + ], + "x-ms-correlation-request-id": [ + "27c45c9b-e811-4cfa-b616-be2d20313abc" + ], + "x-ms-routing-request-id": [ + "NORTHEUROPE:20200619T192610Z:27c45c9b-e811-4cfa-b616-be2d20313abc" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 19 Jun 2020 19:26:09 GMT" + ], + "Content-Length": [ + "379" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-test-rg6358/providers/Microsoft.AVS/privateClouds/avs-sdk-test-cloud8458/clusters/avs-sdk-test-cluster675/operationstatuses/3229e7fa-5128-4606-b46b-93d612520821\",\r\n \"name\": \"3229e7fa-5128-4606-b46b-93d612520821\",\r\n \"percentComplete\": 50,\r\n \"startTime\": \"2020-06-19T13:25:49.363664-06:00\",\r\n \"status\": \"Building\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-test-rg6358/providers/Microsoft.AVS/privateClouds/avs-sdk-test-cloud8458/clusters/avs-sdk-test-cluster675/operationstatuses/3229e7fa-5128-4606-b46b-93d612520821?api-version=2019-08-09-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmE3NWU3OWItZGQ5NS00MDI1LTlkYmYtM2E3YWU4ZGZmMmI1L3Jlc291cmNlR3JvdXBzL2F2cy1zZGstdGVzdC1yZzYzNTgvcHJvdmlkZXJzL01pY3Jvc29mdC5BVlMvcHJpdmF0ZUNsb3Vkcy9hdnMtc2RrLXRlc3QtY2xvdWQ4NDU4L2NsdXN0ZXJzL2F2cy1zZGstdGVzdC1jbHVzdGVyNjc1L29wZXJhdGlvbnN0YXR1c2VzLzMyMjllN2ZhLTUxMjgtNDYwNi1iNDZiLTkzZDYxMjUyMDgyMT9hcGktdmVyc2lvbj0yMDE5LTA4LTA5LXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.28928.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Avs.AvsClient/1.0.0.preview.1" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "10" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14962" + ], + "x-ms-request-id": [ + "182ac800-9b6e-445d-9224-d641b02626e2" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "nginx" + ], + "x-ms-correlation-request-id": [ + "bb012521-e0a2-456a-859f-9c20466204a1" + ], + "x-ms-routing-request-id": [ + "NORTHEUROPE:20200619T192620Z:bb012521-e0a2-456a-859f-9c20466204a1" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 19 Jun 2020 19:26:19 GMT" + ], + "Content-Length": [ + "379" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-test-rg6358/providers/Microsoft.AVS/privateClouds/avs-sdk-test-cloud8458/clusters/avs-sdk-test-cluster675/operationstatuses/3229e7fa-5128-4606-b46b-93d612520821\",\r\n \"name\": \"3229e7fa-5128-4606-b46b-93d612520821\",\r\n \"percentComplete\": 75,\r\n \"startTime\": \"2020-06-19T13:25:49.363664-06:00\",\r\n \"status\": \"Building\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-test-rg6358/providers/Microsoft.AVS/privateClouds/avs-sdk-test-cloud8458/clusters/avs-sdk-test-cluster675/operationstatuses/3229e7fa-5128-4606-b46b-93d612520821?api-version=2019-08-09-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmE3NWU3OWItZGQ5NS00MDI1LTlkYmYtM2E3YWU4ZGZmMmI1L3Jlc291cmNlR3JvdXBzL2F2cy1zZGstdGVzdC1yZzYzNTgvcHJvdmlkZXJzL01pY3Jvc29mdC5BVlMvcHJpdmF0ZUNsb3Vkcy9hdnMtc2RrLXRlc3QtY2xvdWQ4NDU4L2NsdXN0ZXJzL2F2cy1zZGstdGVzdC1jbHVzdGVyNjc1L29wZXJhdGlvbnN0YXR1c2VzLzMyMjllN2ZhLTUxMjgtNDYwNi1iNDZiLTkzZDYxMjUyMDgyMT9hcGktdmVyc2lvbj0yMDE5LTA4LTA5LXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.28928.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Avs.AvsClient/1.0.0.preview.1" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "10" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14961" + ], + "x-ms-request-id": [ + "6a1bb40d-541f-4ce8-b780-26015c575935" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "nginx" + ], + "x-ms-correlation-request-id": [ + "d9535c25-ca92-434c-83af-b46538be88cc" + ], + "x-ms-routing-request-id": [ + "NORTHEUROPE:20200619T192630Z:d9535c25-ca92-434c-83af-b46538be88cc" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 19 Jun 2020 19:26:30 GMT" + ], + "Content-Length": [ + "379" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-test-rg6358/providers/Microsoft.AVS/privateClouds/avs-sdk-test-cloud8458/clusters/avs-sdk-test-cluster675/operationstatuses/3229e7fa-5128-4606-b46b-93d612520821\",\r\n \"name\": \"3229e7fa-5128-4606-b46b-93d612520821\",\r\n \"percentComplete\": 75,\r\n \"startTime\": \"2020-06-19T13:25:49.363664-06:00\",\r\n \"status\": \"Building\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-test-rg6358/providers/Microsoft.AVS/privateClouds/avs-sdk-test-cloud8458/clusters/avs-sdk-test-cluster675/operationstatuses/3229e7fa-5128-4606-b46b-93d612520821?api-version=2019-08-09-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmE3NWU3OWItZGQ5NS00MDI1LTlkYmYtM2E3YWU4ZGZmMmI1L3Jlc291cmNlR3JvdXBzL2F2cy1zZGstdGVzdC1yZzYzNTgvcHJvdmlkZXJzL01pY3Jvc29mdC5BVlMvcHJpdmF0ZUNsb3Vkcy9hdnMtc2RrLXRlc3QtY2xvdWQ4NDU4L2NsdXN0ZXJzL2F2cy1zZGstdGVzdC1jbHVzdGVyNjc1L29wZXJhdGlvbnN0YXR1c2VzLzMyMjllN2ZhLTUxMjgtNDYwNi1iNDZiLTkzZDYxMjUyMDgyMT9hcGktdmVyc2lvbj0yMDE5LTA4LTA5LXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.28928.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Avs.AvsClient/1.0.0.preview.1" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "10" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14960" + ], + "x-ms-request-id": [ + "338e6662-d0b8-4de8-beb7-541948ffc43a" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "nginx" + ], + "x-ms-correlation-request-id": [ + "dedeb101-4b3f-41f4-958a-19c971c42ddb" + ], + "x-ms-routing-request-id": [ + "NORTHEUROPE:20200619T192640Z:dedeb101-4b3f-41f4-958a-19c971c42ddb" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 19 Jun 2020 19:26:40 GMT" + ], + "Content-Length": [ + "379" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-test-rg6358/providers/Microsoft.AVS/privateClouds/avs-sdk-test-cloud8458/clusters/avs-sdk-test-cluster675/operationstatuses/3229e7fa-5128-4606-b46b-93d612520821\",\r\n \"name\": \"3229e7fa-5128-4606-b46b-93d612520821\",\r\n \"percentComplete\": 75,\r\n \"startTime\": \"2020-06-19T13:25:49.363664-06:00\",\r\n \"status\": \"Building\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-test-rg6358/providers/Microsoft.AVS/privateClouds/avs-sdk-test-cloud8458/clusters/avs-sdk-test-cluster675/operationstatuses/3229e7fa-5128-4606-b46b-93d612520821?api-version=2019-08-09-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmE3NWU3OWItZGQ5NS00MDI1LTlkYmYtM2E3YWU4ZGZmMmI1L3Jlc291cmNlR3JvdXBzL2F2cy1zZGstdGVzdC1yZzYzNTgvcHJvdmlkZXJzL01pY3Jvc29mdC5BVlMvcHJpdmF0ZUNsb3Vkcy9hdnMtc2RrLXRlc3QtY2xvdWQ4NDU4L2NsdXN0ZXJzL2F2cy1zZGstdGVzdC1jbHVzdGVyNjc1L29wZXJhdGlvbnN0YXR1c2VzLzMyMjllN2ZhLTUxMjgtNDYwNi1iNDZiLTkzZDYxMjUyMDgyMT9hcGktdmVyc2lvbj0yMDE5LTA4LTA5LXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.28928.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Avs.AvsClient/1.0.0.preview.1" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14959" + ], + "x-ms-request-id": [ + "f60f5aeb-5673-44a0-8a8d-3861380ba533" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "nginx" + ], + "x-ms-correlation-request-id": [ + "b4eab78d-0c3c-4fb4-ba90-4751b20112c2" + ], + "x-ms-routing-request-id": [ + "NORTHEUROPE:20200619T192651Z:b4eab78d-0c3c-4fb4-ba90-4751b20112c2" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 19 Jun 2020 19:26:51 GMT" + ], + "Content-Length": [ + "427" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"endTime\": \"2020-06-19T13:26:36.799954-06:00\",\r\n \"id\": \"/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-test-rg6358/providers/Microsoft.AVS/privateClouds/avs-sdk-test-cloud8458/clusters/avs-sdk-test-cluster675/operationstatuses/3229e7fa-5128-4606-b46b-93d612520821\",\r\n \"name\": \"3229e7fa-5128-4606-b46b-93d612520821\",\r\n \"percentComplete\": 100,\r\n \"startTime\": \"2020-06-19T13:25:49.363664-06:00\",\r\n \"status\": \"Succeeded\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-test-rg6358/providers/Microsoft.AVS/privateClouds/avs-sdk-test-cloud8458/clusters/avs-sdk-test-cluster675/operationresults/3229e7fa-5128-4606-b46b-93d612520821?api-version=2019-08-09-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmE3NWU3OWItZGQ5NS00MDI1LTlkYmYtM2E3YWU4ZGZmMmI1L3Jlc291cmNlR3JvdXBzL2F2cy1zZGstdGVzdC1yZzYzNTgvcHJvdmlkZXJzL01pY3Jvc29mdC5BVlMvcHJpdmF0ZUNsb3Vkcy9hdnMtc2RrLXRlc3QtY2xvdWQ4NDU4L2NsdXN0ZXJzL2F2cy1zZGstdGVzdC1jbHVzdGVyNjc1L29wZXJhdGlvbnJlc3VsdHMvMzIyOWU3ZmEtNTEyOC00NjA2LWI0NmItOTNkNjEyNTIwODIxP2FwaS12ZXJzaW9uPTIwMTktMDgtMDktcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.28928.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Avs.AvsClient/1.0.0.preview.1" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14958" + ], + "x-ms-request-id": [ + "fb947e27-b742-4dcc-986c-f09a2db4177a" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "nginx" + ], + "x-ms-correlation-request-id": [ + "9bd33401-74b9-45e6-828f-7ae55315cfb9" + ], + "x-ms-routing-request-id": [ + "NORTHEUROPE:20200619T192651Z:9bd33401-74b9-45e6-828f-7ae55315cfb9" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 19 Jun 2020 19:26:51 GMT" + ], + "Content-Length": [ + "65" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"error\": {\r\n \"code\": \"NotFound\",\r\n \"message\": \"Resource does not exist\"\r\n }\r\n}", + "StatusCode": 404 + }, + { + "RequestUri": "/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-test-rg6358/providers/Microsoft.AVS/privateClouds/avs-sdk-test-cloud8458?api-version=2019-08-09-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmE3NWU3OWItZGQ5NS00MDI1LTlkYmYtM2E3YWU4ZGZmMmI1L3Jlc291cmNlR3JvdXBzL2F2cy1zZGstdGVzdC1yZzYzNTgvcHJvdmlkZXJzL01pY3Jvc29mdC5BVlMvcHJpdmF0ZUNsb3Vkcy9hdnMtc2RrLXRlc3QtY2xvdWQ4NDU4P2FwaS12ZXJzaW9uPTIwMTktMDgtMDktcHJldmlldw==", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "70db8f31-e2aa-4048-944e-cbbbf1d0da91" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.28928.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Avs.AvsClient/1.0.0.preview.1" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://api-dogfood.resources.windows-int.net/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-test-rg6358/providers/Microsoft.AVS/privateClouds/avs-sdk-test-cloud8458/operationresults/623e321e-e1d8-41cf-a86d-7c240ca6d1f5?api-version=2019-08-09-preview" + ], + "Retry-After": [ + "10" + ], + "x-ms-ratelimit-remaining-subscription-deletes": [ + "14998" + ], + "Azure-AsyncOperation": [ + "https://api-dogfood.resources.windows-int.net/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-test-rg6358/providers/Microsoft.AVS/privateClouds/avs-sdk-test-cloud8458/operationstatuses/623e321e-e1d8-41cf-a86d-7c240ca6d1f5?api-version=2019-08-09-preview" + ], + "x-ms-request-id": [ + "f3d823c6-79d5-4002-9bdb-b40cc8747757" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "nginx" + ], + "x-ms-correlation-request-id": [ + "6c394fa5-9f6f-4d2f-a512-e6b2c1319e72" + ], + "x-ms-routing-request-id": [ + "NORTHEUROPE:20200619T192659Z:6c394fa5-9f6f-4d2f-a512-e6b2c1319e72" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 19 Jun 2020 19:26:58 GMT" + ], + "Content-Type": [ + "text/html" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-test-rg6358/providers/Microsoft.AVS/privateClouds/avs-sdk-test-cloud8458/operationstatuses/623e321e-e1d8-41cf-a86d-7c240ca6d1f5?api-version=2019-08-09-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmE3NWU3OWItZGQ5NS00MDI1LTlkYmYtM2E3YWU4ZGZmMmI1L3Jlc291cmNlR3JvdXBzL2F2cy1zZGstdGVzdC1yZzYzNTgvcHJvdmlkZXJzL01pY3Jvc29mdC5BVlMvcHJpdmF0ZUNsb3Vkcy9hdnMtc2RrLXRlc3QtY2xvdWQ4NDU4L29wZXJhdGlvbnN0YXR1c2VzLzYyM2UzMjFlLWUxZDgtNDFjZi1hODZkLTdjMjQwY2E2ZDFmNT9hcGktdmVyc2lvbj0yMDE5LTA4LTA5LXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.28928.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Avs.AvsClient/1.0.0.preview.1" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "10" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14955" + ], + "x-ms-request-id": [ + "aeeb8c3f-c04d-4445-967d-331c75b89c96" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "nginx" + ], + "x-ms-correlation-request-id": [ + "ee84d5a5-cf26-4b40-b4e0-08ff48dc40c1" + ], + "x-ms-routing-request-id": [ + "NORTHEUROPE:20200619T192709Z:ee84d5a5-cf26-4b40-b4e0-08ff48dc40c1" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 19 Jun 2020 19:27:09 GMT" + ], + "Content-Length": [ + "345" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-test-rg6358/providers/Microsoft.AVS/privateClouds/avs-sdk-test-cloud8458/operationstatuses/623e321e-e1d8-41cf-a86d-7c240ca6d1f5\",\r\n \"name\": \"623e321e-e1d8-41cf-a86d-7c240ca6d1f5\",\r\n \"percentComplete\": 5,\r\n \"startTime\": \"2020-06-19T13:26:59.3608282-06:00\",\r\n \"status\": \"Building\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-test-rg6358/providers/Microsoft.AVS/privateClouds/avs-sdk-test-cloud8458/operationstatuses/623e321e-e1d8-41cf-a86d-7c240ca6d1f5?api-version=2019-08-09-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmE3NWU3OWItZGQ5NS00MDI1LTlkYmYtM2E3YWU4ZGZmMmI1L3Jlc291cmNlR3JvdXBzL2F2cy1zZGstdGVzdC1yZzYzNTgvcHJvdmlkZXJzL01pY3Jvc29mdC5BVlMvcHJpdmF0ZUNsb3Vkcy9hdnMtc2RrLXRlc3QtY2xvdWQ4NDU4L29wZXJhdGlvbnN0YXR1c2VzLzYyM2UzMjFlLWUxZDgtNDFjZi1hODZkLTdjMjQwY2E2ZDFmNT9hcGktdmVyc2lvbj0yMDE5LTA4LTA5LXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.28928.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Avs.AvsClient/1.0.0.preview.1" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "10" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14954" + ], + "x-ms-request-id": [ + "9d595f96-88f4-4dbd-9e98-0285e4b1581e" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "nginx" + ], + "x-ms-correlation-request-id": [ + "6f15a2b1-8ada-4814-9ce2-18f6cb2a4378" + ], + "x-ms-routing-request-id": [ + "NORTHEUROPE:20200619T192720Z:6f15a2b1-8ada-4814-9ce2-18f6cb2a4378" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 19 Jun 2020 19:27:19 GMT" + ], + "Content-Length": [ + "346" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-test-rg6358/providers/Microsoft.AVS/privateClouds/avs-sdk-test-cloud8458/operationstatuses/623e321e-e1d8-41cf-a86d-7c240ca6d1f5\",\r\n \"name\": \"623e321e-e1d8-41cf-a86d-7c240ca6d1f5\",\r\n \"percentComplete\": 25,\r\n \"startTime\": \"2020-06-19T13:26:59.3608282-06:00\",\r\n \"status\": \"Building\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-test-rg6358/providers/Microsoft.AVS/privateClouds/avs-sdk-test-cloud8458/operationstatuses/623e321e-e1d8-41cf-a86d-7c240ca6d1f5?api-version=2019-08-09-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmE3NWU3OWItZGQ5NS00MDI1LTlkYmYtM2E3YWU4ZGZmMmI1L3Jlc291cmNlR3JvdXBzL2F2cy1zZGstdGVzdC1yZzYzNTgvcHJvdmlkZXJzL01pY3Jvc29mdC5BVlMvcHJpdmF0ZUNsb3Vkcy9hdnMtc2RrLXRlc3QtY2xvdWQ4NDU4L29wZXJhdGlvbnN0YXR1c2VzLzYyM2UzMjFlLWUxZDgtNDFjZi1hODZkLTdjMjQwY2E2ZDFmNT9hcGktdmVyc2lvbj0yMDE5LTA4LTA5LXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.28928.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Avs.AvsClient/1.0.0.preview.1" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "10" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14953" + ], + "x-ms-request-id": [ + "4e3fa3b8-0e9d-4325-b5d4-14345fd78e2a" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "nginx" + ], + "x-ms-correlation-request-id": [ + "39ee163d-1482-4f59-bb1a-f10ad291aaba" + ], + "x-ms-routing-request-id": [ + "NORTHEUROPE:20200619T192730Z:39ee163d-1482-4f59-bb1a-f10ad291aaba" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 19 Jun 2020 19:27:29 GMT" + ], + "Content-Length": [ + "345" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-test-rg6358/providers/Microsoft.AVS/privateClouds/avs-sdk-test-cloud8458/operationstatuses/623e321e-e1d8-41cf-a86d-7c240ca6d1f5\",\r\n \"name\": \"623e321e-e1d8-41cf-a86d-7c240ca6d1f5\",\r\n \"percentComplete\": 5,\r\n \"startTime\": \"2020-06-19T13:26:59.3608282-06:00\",\r\n \"status\": \"Building\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-test-rg6358/providers/Microsoft.AVS/privateClouds/avs-sdk-test-cloud8458/operationstatuses/623e321e-e1d8-41cf-a86d-7c240ca6d1f5?api-version=2019-08-09-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmE3NWU3OWItZGQ5NS00MDI1LTlkYmYtM2E3YWU4ZGZmMmI1L3Jlc291cmNlR3JvdXBzL2F2cy1zZGstdGVzdC1yZzYzNTgvcHJvdmlkZXJzL01pY3Jvc29mdC5BVlMvcHJpdmF0ZUNsb3Vkcy9hdnMtc2RrLXRlc3QtY2xvdWQ4NDU4L29wZXJhdGlvbnN0YXR1c2VzLzYyM2UzMjFlLWUxZDgtNDFjZi1hODZkLTdjMjQwY2E2ZDFmNT9hcGktdmVyc2lvbj0yMDE5LTA4LTA5LXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.28928.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Avs.AvsClient/1.0.0.preview.1" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "10" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14952" + ], + "x-ms-request-id": [ + "0bfb7d38-a559-4be5-8ba9-50e54a825a77" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "nginx" + ], + "x-ms-correlation-request-id": [ + "b0470b73-8581-41a7-b624-4cd437cb4ade" + ], + "x-ms-routing-request-id": [ + "NORTHEUROPE:20200619T192740Z:b0470b73-8581-41a7-b624-4cd437cb4ade" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 19 Jun 2020 19:27:40 GMT" + ], + "Content-Length": [ + "345" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-test-rg6358/providers/Microsoft.AVS/privateClouds/avs-sdk-test-cloud8458/operationstatuses/623e321e-e1d8-41cf-a86d-7c240ca6d1f5\",\r\n \"name\": \"623e321e-e1d8-41cf-a86d-7c240ca6d1f5\",\r\n \"percentComplete\": 5,\r\n \"startTime\": \"2020-06-19T13:26:59.3608282-06:00\",\r\n \"status\": \"Building\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-test-rg6358/providers/Microsoft.AVS/privateClouds/avs-sdk-test-cloud8458/operationstatuses/623e321e-e1d8-41cf-a86d-7c240ca6d1f5?api-version=2019-08-09-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmE3NWU3OWItZGQ5NS00MDI1LTlkYmYtM2E3YWU4ZGZmMmI1L3Jlc291cmNlR3JvdXBzL2F2cy1zZGstdGVzdC1yZzYzNTgvcHJvdmlkZXJzL01pY3Jvc29mdC5BVlMvcHJpdmF0ZUNsb3Vkcy9hdnMtc2RrLXRlc3QtY2xvdWQ4NDU4L29wZXJhdGlvbnN0YXR1c2VzLzYyM2UzMjFlLWUxZDgtNDFjZi1hODZkLTdjMjQwY2E2ZDFmNT9hcGktdmVyc2lvbj0yMDE5LTA4LTA5LXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.28928.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Avs.AvsClient/1.0.0.preview.1" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "10" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14951" + ], + "x-ms-request-id": [ + "56dc7ea2-997f-4e10-b351-3149c3bc68d7" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "nginx" + ], + "x-ms-correlation-request-id": [ + "04301835-aee9-4aef-85a4-76ca8939c6a3" + ], + "x-ms-routing-request-id": [ + "NORTHEUROPE:20200619T192750Z:04301835-aee9-4aef-85a4-76ca8939c6a3" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 19 Jun 2020 19:27:50 GMT" + ], + "Content-Length": [ + "345" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-test-rg6358/providers/Microsoft.AVS/privateClouds/avs-sdk-test-cloud8458/operationstatuses/623e321e-e1d8-41cf-a86d-7c240ca6d1f5\",\r\n \"name\": \"623e321e-e1d8-41cf-a86d-7c240ca6d1f5\",\r\n \"percentComplete\": 5,\r\n \"startTime\": \"2020-06-19T13:26:59.3608282-06:00\",\r\n \"status\": \"Building\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-test-rg6358/providers/Microsoft.AVS/privateClouds/avs-sdk-test-cloud8458/operationstatuses/623e321e-e1d8-41cf-a86d-7c240ca6d1f5?api-version=2019-08-09-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmE3NWU3OWItZGQ5NS00MDI1LTlkYmYtM2E3YWU4ZGZmMmI1L3Jlc291cmNlR3JvdXBzL2F2cy1zZGstdGVzdC1yZzYzNTgvcHJvdmlkZXJzL01pY3Jvc29mdC5BVlMvcHJpdmF0ZUNsb3Vkcy9hdnMtc2RrLXRlc3QtY2xvdWQ4NDU4L29wZXJhdGlvbnN0YXR1c2VzLzYyM2UzMjFlLWUxZDgtNDFjZi1hODZkLTdjMjQwY2E2ZDFmNT9hcGktdmVyc2lvbj0yMDE5LTA4LTA5LXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.28928.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Avs.AvsClient/1.0.0.preview.1" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "10" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14950" + ], + "x-ms-request-id": [ + "17d817d1-fd7f-4a36-a85a-2e1cd9a5633b" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "nginx" + ], + "x-ms-correlation-request-id": [ + "6b97b440-2a63-438f-a6f9-640207ea530f" + ], + "x-ms-routing-request-id": [ + "NORTHEUROPE:20200619T192801Z:6b97b440-2a63-438f-a6f9-640207ea530f" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 19 Jun 2020 19:28:01 GMT" + ], + "Content-Length": [ + "346" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-test-rg6358/providers/Microsoft.AVS/privateClouds/avs-sdk-test-cloud8458/operationstatuses/623e321e-e1d8-41cf-a86d-7c240ca6d1f5\",\r\n \"name\": \"623e321e-e1d8-41cf-a86d-7c240ca6d1f5\",\r\n \"percentComplete\": 50,\r\n \"startTime\": \"2020-06-19T13:26:59.3608282-06:00\",\r\n \"status\": \"Building\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-test-rg6358/providers/Microsoft.AVS/privateClouds/avs-sdk-test-cloud8458/operationstatuses/623e321e-e1d8-41cf-a86d-7c240ca6d1f5?api-version=2019-08-09-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmE3NWU3OWItZGQ5NS00MDI1LTlkYmYtM2E3YWU4ZGZmMmI1L3Jlc291cmNlR3JvdXBzL2F2cy1zZGstdGVzdC1yZzYzNTgvcHJvdmlkZXJzL01pY3Jvc29mdC5BVlMvcHJpdmF0ZUNsb3Vkcy9hdnMtc2RrLXRlc3QtY2xvdWQ4NDU4L29wZXJhdGlvbnN0YXR1c2VzLzYyM2UzMjFlLWUxZDgtNDFjZi1hODZkLTdjMjQwY2E2ZDFmNT9hcGktdmVyc2lvbj0yMDE5LTA4LTA5LXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.28928.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Avs.AvsClient/1.0.0.preview.1" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "10" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14949" + ], + "x-ms-request-id": [ + "d8eae9d6-a898-407b-9707-64804ed8b223" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "nginx" + ], + "x-ms-correlation-request-id": [ + "81ee0500-fc69-4c98-8311-6a8f66315a67" + ], + "x-ms-routing-request-id": [ + "NORTHEUROPE:20200619T192811Z:81ee0500-fc69-4c98-8311-6a8f66315a67" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 19 Jun 2020 19:28:11 GMT" + ], + "Content-Length": [ + "346" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-test-rg6358/providers/Microsoft.AVS/privateClouds/avs-sdk-test-cloud8458/operationstatuses/623e321e-e1d8-41cf-a86d-7c240ca6d1f5\",\r\n \"name\": \"623e321e-e1d8-41cf-a86d-7c240ca6d1f5\",\r\n \"percentComplete\": 90,\r\n \"startTime\": \"2020-06-19T13:26:59.3608282-06:00\",\r\n \"status\": \"Building\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-test-rg6358/providers/Microsoft.AVS/privateClouds/avs-sdk-test-cloud8458/operationstatuses/623e321e-e1d8-41cf-a86d-7c240ca6d1f5?api-version=2019-08-09-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmE3NWU3OWItZGQ5NS00MDI1LTlkYmYtM2E3YWU4ZGZmMmI1L3Jlc291cmNlR3JvdXBzL2F2cy1zZGstdGVzdC1yZzYzNTgvcHJvdmlkZXJzL01pY3Jvc29mdC5BVlMvcHJpdmF0ZUNsb3Vkcy9hdnMtc2RrLXRlc3QtY2xvdWQ4NDU4L29wZXJhdGlvbnN0YXR1c2VzLzYyM2UzMjFlLWUxZDgtNDFjZi1hODZkLTdjMjQwY2E2ZDFmNT9hcGktdmVyc2lvbj0yMDE5LTA4LTA5LXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.28928.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Avs.AvsClient/1.0.0.preview.1" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14948" + ], + "x-ms-request-id": [ + "17becf7b-8333-48ec-812e-327d0ff386e1" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "nginx" + ], + "x-ms-correlation-request-id": [ + "f74812b3-0dc7-40d8-b6b6-10cb75e57ebd" + ], + "x-ms-routing-request-id": [ + "NORTHEUROPE:20200619T192821Z:f74812b3-0dc7-40d8-b6b6-10cb75e57ebd" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 19 Jun 2020 19:28:21 GMT" + ], + "Content-Length": [ + "394" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"endTime\": \"2020-06-19T13:28:16.7853749-06:00\",\r\n \"id\": \"/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-test-rg6358/providers/Microsoft.AVS/privateClouds/avs-sdk-test-cloud8458/operationstatuses/623e321e-e1d8-41cf-a86d-7c240ca6d1f5\",\r\n \"name\": \"623e321e-e1d8-41cf-a86d-7c240ca6d1f5\",\r\n \"percentComplete\": 100,\r\n \"startTime\": \"2020-06-19T13:26:59.3608282-06:00\",\r\n \"status\": \"Succeeded\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-test-rg6358/providers/Microsoft.AVS/privateClouds/avs-sdk-test-cloud8458/operationresults/623e321e-e1d8-41cf-a86d-7c240ca6d1f5?api-version=2019-08-09-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmE3NWU3OWItZGQ5NS00MDI1LTlkYmYtM2E3YWU4ZGZmMmI1L3Jlc291cmNlR3JvdXBzL2F2cy1zZGstdGVzdC1yZzYzNTgvcHJvdmlkZXJzL01pY3Jvc29mdC5BVlMvcHJpdmF0ZUNsb3Vkcy9hdnMtc2RrLXRlc3QtY2xvdWQ4NDU4L29wZXJhdGlvbnJlc3VsdHMvNjIzZTMyMWUtZTFkOC00MWNmLWE4NmQtN2MyNDBjYTZkMWY1P2FwaS12ZXJzaW9uPTIwMTktMDgtMDktcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.28928.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Avs.AvsClient/1.0.0.preview.1" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14947" + ], + "x-ms-request-id": [ + "e5f23ecd-cce0-4bf4-9d13-91bdcdeb5904" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "nginx" + ], + "x-ms-correlation-request-id": [ + "c6d14852-04f6-4ec2-8c63-eb39b11ce1e7" + ], + "x-ms-routing-request-id": [ + "NORTHEUROPE:20200619T192822Z:c6d14852-04f6-4ec2-8c63-eb39b11ce1e7" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 19 Jun 2020 19:28:21 GMT" + ], + "Content-Length": [ + "65" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"error\": {\r\n \"code\": \"NotFound\",\r\n \"message\": \"Resource does not exist\"\r\n }\r\n}", + "StatusCode": 404 + }, + { + "RequestUri": "/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourcegroups/avs-sdk-test-rg6358?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmE3NWU3OWItZGQ5NS00MDI1LTlkYmYtM2E3YWU4ZGZmMmI1L3Jlc291cmNlZ3JvdXBzL2F2cy1zZGstdGVzdC1yZzYzNTg/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "cb50b75f-dd96-4a9b-b0a4-9963e66e0a50" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.28928.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://api-dogfood.resources.windows-int.net/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1BVlM6MkRTREs6MkRURVNUOjJEUkc2MzU4LUNFTlRSQUxVUyIsImpvYkxvY2F0aW9uIjoiY2VudHJhbHVzIn0?api-version=2017-05-10" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-deletes": [ + "14997" + ], + "x-ms-request-id": [ + "00780d00-943c-4f80-ac89-db9ec16eb2b9" + ], + "x-ms-correlation-request-id": [ + "00780d00-943c-4f80-ac89-db9ec16eb2b9" + ], + "x-ms-routing-request-id": [ + "NORTHEUROPE:20200619T192825Z:00780d00-943c-4f80-ac89-db9ec16eb2b9" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 19 Jun 2020 19:28:24 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1BVlM6MkRTREs6MkRURVNUOjJEUkc2MzU4LUNFTlRSQUxVUyIsImpvYkxvY2F0aW9uIjoiY2VudHJhbHVzIn0?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmE3NWU3OWItZGQ5NS00MDI1LTlkYmYtM2E3YWU4ZGZmMmI1L29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFCVmxNNk1rUlRSRXM2TWtSVVJWTlVPakpFVWtjMk16VTRMVU5GVGxSU1FVeFZVeUlzSW1wdllreHZZMkYwYVc5dUlqb2lZMlZ1ZEhKaGJIVnpJbjA/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.28928.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://api-dogfood.resources.windows-int.net/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1BVlM6MkRTREs6MkRURVNUOjJEUkc2MzU4LUNFTlRSQUxVUyIsImpvYkxvY2F0aW9uIjoiY2VudHJhbHVzIn0?api-version=2017-05-10" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14945" + ], + "x-ms-request-id": [ + "21378d4a-2d44-4d23-a446-1a18d71f07bb" + ], + "x-ms-correlation-request-id": [ + "21378d4a-2d44-4d23-a446-1a18d71f07bb" + ], + "x-ms-routing-request-id": [ + "NORTHEUROPE:20200619T192840Z:21378d4a-2d44-4d23-a446-1a18d71f07bb" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 19 Jun 2020 19:28:40 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1BVlM6MkRTREs6MkRURVNUOjJEUkc2MzU4LUNFTlRSQUxVUyIsImpvYkxvY2F0aW9uIjoiY2VudHJhbHVzIn0?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmE3NWU3OWItZGQ5NS00MDI1LTlkYmYtM2E3YWU4ZGZmMmI1L29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFCVmxNNk1rUlRSRXM2TWtSVVJWTlVPakpFVWtjMk16VTRMVU5GVGxSU1FVeFZVeUlzSW1wdllreHZZMkYwYVc5dUlqb2lZMlZ1ZEhKaGJIVnpJbjA/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.28928.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://api-dogfood.resources.windows-int.net/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1BVlM6MkRTREs6MkRURVNUOjJEUkc2MzU4LUNFTlRSQUxVUyIsImpvYkxvY2F0aW9uIjoiY2VudHJhbHVzIn0?api-version=2017-05-10" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14944" + ], + "x-ms-request-id": [ + "9c5005b5-626c-4deb-aefd-965f2e5cd1eb" + ], + "x-ms-correlation-request-id": [ + "9c5005b5-626c-4deb-aefd-965f2e5cd1eb" + ], + "x-ms-routing-request-id": [ + "NORTHEUROPE:20200619T192855Z:9c5005b5-626c-4deb-aefd-965f2e5cd1eb" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 19 Jun 2020 19:28:55 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1BVlM6MkRTREs6MkRURVNUOjJEUkc2MzU4LUNFTlRSQUxVUyIsImpvYkxvY2F0aW9uIjoiY2VudHJhbHVzIn0?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmE3NWU3OWItZGQ5NS00MDI1LTlkYmYtM2E3YWU4ZGZmMmI1L29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFCVmxNNk1rUlRSRXM2TWtSVVJWTlVPakpFVWtjMk16VTRMVU5GVGxSU1FVeFZVeUlzSW1wdllreHZZMkYwYVc5dUlqb2lZMlZ1ZEhKaGJIVnpJbjA/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.28928.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14943" + ], + "x-ms-request-id": [ + "eadfbb0c-d4e5-4e14-92fc-f5e5c138c99e" + ], + "x-ms-correlation-request-id": [ + "eadfbb0c-d4e5-4e14-92fc-f5e5c138c99e" + ], + "x-ms-routing-request-id": [ + "NORTHEUROPE:20200619T192911Z:eadfbb0c-d4e5-4e14-92fc-f5e5c138c99e" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 19 Jun 2020 19:29:11 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1BVlM6MkRTREs6MkRURVNUOjJEUkc2MzU4LUNFTlRSQUxVUyIsImpvYkxvY2F0aW9uIjoiY2VudHJhbHVzIn0?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmE3NWU3OWItZGQ5NS00MDI1LTlkYmYtM2E3YWU4ZGZmMmI1L29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFCVmxNNk1rUlRSRXM2TWtSVVJWTlVPakpFVWtjMk16VTRMVU5GVGxSU1FVeFZVeUlzSW1wdllreHZZMkYwYVc5dUlqb2lZMlZ1ZEhKaGJIVnpJbjA/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.28928.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14942" + ], + "x-ms-request-id": [ + "ff65cfcd-02ed-4e65-92a2-862363019f46" + ], + "x-ms-correlation-request-id": [ + "ff65cfcd-02ed-4e65-92a2-862363019f46" + ], + "x-ms-routing-request-id": [ + "NORTHEUROPE:20200619T192911Z:ff65cfcd-02ed-4e65-92a2-862363019f46" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 19 Jun 2020 19:29:11 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 200 + } + ], + "Names": { + "AvsCrud": [ + "avs-sdk-test-rg6358", + "avs-sdk-test-cloud8458", + "avs-sdk-test-cluster675" + ] + }, + "Variables": { + "SubscriptionId": "ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5" + } +} \ No newline at end of file