diff --git a/eng/mgmt/mgmtmetadata/vmware_resource-manager.txt b/eng/mgmt/mgmtmetadata/vmware_resource-manager.txt index 85d7c9e1759d..0691f5310db1 100644 --- a/eng/mgmt/mgmtmetadata/vmware_resource-manager.txt +++ b/eng/mgmt/mgmtmetadata/vmware_resource-manager.txt @@ -3,12 +3,13 @@ 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-10-29 16:21:15 UTC +cmd.exe /c autorest.cmd https://github.com/Azure/azure-rest-api-specs/blob/AVS/dotnet/specification/vmware/resource-manager/readme.md --csharp --version=v2 --reflect-api-versions --csharp-sdks-folder=C:\Users\cataggar\io\azure-sdk-for-net\sdk +Autorest CSharp Version: 2.3.82 +2021-05-27 14:12:59 UTC Azure-rest-api-specs repository information GitHub fork: Azure -Branch: master -Commit: 3faca877220bd1d20af91576946e3e6c5819ce96 +Branch: AVS/dotnet +Commit: 13dc07975e72d633349c2f0696610f7ddf25fc16 AutoRest information Requested version: v2 Bootstrapper version: autorest@2.0.4413 diff --git a/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/AddonsOperations.cs b/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/AddonsOperations.cs new file mode 100644 index 000000000000..9fe02e1aa9d6 --- /dev/null +++ b/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/AddonsOperations.cs @@ -0,0 +1,1218 @@ +// +// 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; + + /// + /// AddonsOperations operations. + /// + internal partial class AddonsOperations : IServiceOperations, IAddonsOperations + { + /// + /// Initializes a new instance of the AddonsOperations class. + /// + /// + /// Reference to the service client. + /// + /// + /// Thrown when a required parameter is null + /// + internal AddonsOperations(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 addons in a private cloud + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// 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 (Client.SubscriptionId != null) + { + if (Client.SubscriptionId.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "Client.SubscriptionId", 1); + } + } + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (resourceGroupName != null) + { + if (resourceGroupName.Length > 90) + { + throw new ValidationException(ValidationRules.MaxLength, "resourceGroupName", 90); + } + if (resourceGroupName.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); + } + if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$")) + { + throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$"); + } + } + if (privateCloudName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "privateCloudName"); + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + if (Client.ApiVersion != null) + { + if (Client.ApiVersion.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "Client.ApiVersion", 1); + } + } + // 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}/addons").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 CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse>(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Get an addon by name in a private cloud + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the private cloud + /// + /// + /// Name of the addon for 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 addonName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (Client.SubscriptionId != null) + { + if (Client.SubscriptionId.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "Client.SubscriptionId", 1); + } + } + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (resourceGroupName != null) + { + if (resourceGroupName.Length > 90) + { + throw new ValidationException(ValidationRules.MaxLength, "resourceGroupName", 90); + } + if (resourceGroupName.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); + } + if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$")) + { + throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$"); + } + } + if (privateCloudName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "privateCloudName"); + } + if (addonName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "addonName"); + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + if (Client.ApiVersion != null) + { + if (Client.ApiVersion.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "Client.ApiVersion", 1); + } + } + // 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("addonName", addonName); + 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}/addons/{addonName}").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("{addonName}", System.Uri.EscapeDataString(addonName)); + 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 CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Create or update a addon in a private cloud + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// The name of the private cloud. + /// + /// + /// Name of the addon for the private cloud + /// + /// + /// A addon in the private cloud + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task> CreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string privateCloudName, string addonName, Addon addon, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send Request + AzureOperationResponse _response = await BeginCreateOrUpdateWithHttpMessagesAsync(resourceGroupName, privateCloudName, addonName, addon, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPutOrPatchOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + + /// + /// Delete a addon in a private cloud + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the private cloud + /// + /// + /// Name of the addon for the private cloud + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task DeleteWithHttpMessagesAsync(string resourceGroupName, string privateCloudName, string addonName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send request + AzureOperationResponse _response = await BeginDeleteWithHttpMessagesAsync(resourceGroupName, privateCloudName, addonName, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + + /// + /// Create or update a addon in a private cloud + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// The name of the private cloud. + /// + /// + /// Name of the addon for the private cloud + /// + /// + /// A addon 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 addonName, Addon addon, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (Client.SubscriptionId != null) + { + if (Client.SubscriptionId.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "Client.SubscriptionId", 1); + } + } + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (resourceGroupName != null) + { + if (resourceGroupName.Length > 90) + { + throw new ValidationException(ValidationRules.MaxLength, "resourceGroupName", 90); + } + if (resourceGroupName.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); + } + if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$")) + { + throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$"); + } + } + if (privateCloudName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "privateCloudName"); + } + if (addonName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "addonName"); + } + if (addon == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "addon"); + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + if (Client.ApiVersion != null) + { + if (Client.ApiVersion.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "Client.ApiVersion", 1); + } + } + // 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("addonName", addonName); + tracingParameters.Add("addon", addon); + 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}/addons/{addonName}").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("{addonName}", System.Uri.EscapeDataString(addonName)); + 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(addon != null) + { + _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(addon, 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 CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + // 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 addon in a private cloud + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the private cloud + /// + /// + /// Name of the addon for 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 addonName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (Client.SubscriptionId != null) + { + if (Client.SubscriptionId.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "Client.SubscriptionId", 1); + } + } + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (resourceGroupName != null) + { + if (resourceGroupName.Length > 90) + { + throw new ValidationException(ValidationRules.MaxLength, "resourceGroupName", 90); + } + if (resourceGroupName.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); + } + if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$")) + { + throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$"); + } + } + if (privateCloudName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "privateCloudName"); + } + if (addonName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "addonName"); + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + if (Client.ApiVersion != null) + { + if (Client.ApiVersion.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "Client.ApiVersion", 1); + } + } + // 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("addonName", addonName); + 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}/addons/{addonName}").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("{addonName}", System.Uri.EscapeDataString(addonName)); + 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 CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// List addons 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 CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse>(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + } +} diff --git a/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/AddonsOperationsExtensions.cs b/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/AddonsOperationsExtensions.cs new file mode 100644 index 000000000000..52be9d23a4c4 --- /dev/null +++ b/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/AddonsOperationsExtensions.cs @@ -0,0 +1,335 @@ +// +// 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 AddonsOperations. + /// + public static partial class AddonsOperationsExtensions + { + /// + /// List addons in a private cloud + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the private cloud + /// + public static IPage List(this IAddonsOperations operations, string resourceGroupName, string privateCloudName) + { + return operations.ListAsync(resourceGroupName, privateCloudName).GetAwaiter().GetResult(); + } + + /// + /// List addons in a private cloud + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the private cloud + /// + /// + /// The cancellation token. + /// + public static async Task> ListAsync(this IAddonsOperations 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 an addon by name in a private cloud + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the private cloud + /// + /// + /// Name of the addon for the private cloud + /// + public static Addon Get(this IAddonsOperations operations, string resourceGroupName, string privateCloudName, string addonName) + { + return operations.GetAsync(resourceGroupName, privateCloudName, addonName).GetAwaiter().GetResult(); + } + + /// + /// Get an addon by name in a private cloud + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the private cloud + /// + /// + /// Name of the addon for the private cloud + /// + /// + /// The cancellation token. + /// + public static async Task GetAsync(this IAddonsOperations operations, string resourceGroupName, string privateCloudName, string addonName, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.GetWithHttpMessagesAsync(resourceGroupName, privateCloudName, addonName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Create or update a addon in a private cloud + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// The name of the private cloud. + /// + /// + /// Name of the addon for the private cloud + /// + /// + /// A addon in the private cloud + /// + public static Addon CreateOrUpdate(this IAddonsOperations operations, string resourceGroupName, string privateCloudName, string addonName, Addon addon) + { + return operations.CreateOrUpdateAsync(resourceGroupName, privateCloudName, addonName, addon).GetAwaiter().GetResult(); + } + + /// + /// Create or update a addon in a private cloud + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// The name of the private cloud. + /// + /// + /// Name of the addon for the private cloud + /// + /// + /// A addon in the private cloud + /// + /// + /// The cancellation token. + /// + public static async Task CreateOrUpdateAsync(this IAddonsOperations operations, string resourceGroupName, string privateCloudName, string addonName, Addon addon, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.CreateOrUpdateWithHttpMessagesAsync(resourceGroupName, privateCloudName, addonName, addon, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Delete a addon in a private cloud + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the private cloud + /// + /// + /// Name of the addon for the private cloud + /// + public static void Delete(this IAddonsOperations operations, string resourceGroupName, string privateCloudName, string addonName) + { + operations.DeleteAsync(resourceGroupName, privateCloudName, addonName).GetAwaiter().GetResult(); + } + + /// + /// Delete a addon in a private cloud + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the private cloud + /// + /// + /// Name of the addon for the private cloud + /// + /// + /// The cancellation token. + /// + public static async Task DeleteAsync(this IAddonsOperations operations, string resourceGroupName, string privateCloudName, string addonName, CancellationToken cancellationToken = default(CancellationToken)) + { + (await operations.DeleteWithHttpMessagesAsync(resourceGroupName, privateCloudName, addonName, null, cancellationToken).ConfigureAwait(false)).Dispose(); + } + + /// + /// Create or update a addon in a private cloud + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// The name of the private cloud. + /// + /// + /// Name of the addon for the private cloud + /// + /// + /// A addon in the private cloud + /// + public static Addon BeginCreateOrUpdate(this IAddonsOperations operations, string resourceGroupName, string privateCloudName, string addonName, Addon addon) + { + return operations.BeginCreateOrUpdateAsync(resourceGroupName, privateCloudName, addonName, addon).GetAwaiter().GetResult(); + } + + /// + /// Create or update a addon in a private cloud + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// The name of the private cloud. + /// + /// + /// Name of the addon for the private cloud + /// + /// + /// A addon in the private cloud + /// + /// + /// The cancellation token. + /// + public static async Task BeginCreateOrUpdateAsync(this IAddonsOperations operations, string resourceGroupName, string privateCloudName, string addonName, Addon addon, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.BeginCreateOrUpdateWithHttpMessagesAsync(resourceGroupName, privateCloudName, addonName, addon, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Delete a addon in a private cloud + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the private cloud + /// + /// + /// Name of the addon for the private cloud + /// + public static void BeginDelete(this IAddonsOperations operations, string resourceGroupName, string privateCloudName, string addonName) + { + operations.BeginDeleteAsync(resourceGroupName, privateCloudName, addonName).GetAwaiter().GetResult(); + } + + /// + /// Delete a addon in a private cloud + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the private cloud + /// + /// + /// Name of the addon for the private cloud + /// + /// + /// The cancellation token. + /// + public static async Task BeginDeleteAsync(this IAddonsOperations operations, string resourceGroupName, string privateCloudName, string addonName, CancellationToken cancellationToken = default(CancellationToken)) + { + (await operations.BeginDeleteWithHttpMessagesAsync(resourceGroupName, privateCloudName, addonName, null, cancellationToken).ConfigureAwait(false)).Dispose(); + } + + /// + /// List addons 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 IAddonsOperations operations, string nextPageLink) + { + return operations.ListNextAsync(nextPageLink).GetAwaiter().GetResult(); + } + + /// + /// List addons 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 IAddonsOperations 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/AuthorizationsOperations.cs b/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/AuthorizationsOperations.cs index a18c46d2206e..d0d133a22a86 100644 --- a/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/AuthorizationsOperations.cs +++ b/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/AuthorizationsOperations.cs @@ -521,19 +521,16 @@ internal AuthorizationsOperations(AvsClient client) /// /// Name of the ExpressRoute Circuit Authorization in the private cloud /// - /// - /// An ExpressRoute Circuit Authorization - /// /// /// The headers that will be added to request. /// /// /// The cancellation token. /// - public async Task> CreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string privateCloudName, string authorizationName, object authorization, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> CreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string privateCloudName, string authorizationName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { // Send Request - AzureOperationResponse _response = await BeginCreateOrUpdateWithHttpMessagesAsync(resourceGroupName, privateCloudName, authorizationName, authorization, customHeaders, cancellationToken).ConfigureAwait(false); + AzureOperationResponse _response = await BeginCreateOrUpdateWithHttpMessagesAsync(resourceGroupName, privateCloudName, authorizationName, customHeaders, cancellationToken).ConfigureAwait(false); return await Client.GetPutOrPatchOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); } @@ -574,9 +571,6 @@ internal AuthorizationsOperations(AvsClient client) /// /// Name of the ExpressRoute Circuit Authorization in the private cloud /// - /// - /// An ExpressRoute Circuit Authorization - /// /// /// Headers that will be added to request. /// @@ -598,7 +592,7 @@ internal AuthorizationsOperations(AvsClient client) /// /// A response object containing the response body and response headers. /// - public async Task> BeginCreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string privateCloudName, string authorizationName, object authorization, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> BeginCreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string privateCloudName, string authorizationName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (Client.SubscriptionId == null) { @@ -638,10 +632,6 @@ internal AuthorizationsOperations(AvsClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "authorizationName"); } - if (authorization == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "authorization"); - } if (Client.ApiVersion == null) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); @@ -653,6 +643,7 @@ internal AuthorizationsOperations(AvsClient client) throw new ValidationException(ValidationRules.MinLength, "Client.ApiVersion", 1); } } + ExpressRouteAuthorization authorization = new ExpressRouteAuthorization(); // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; diff --git a/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/AuthorizationsOperationsExtensions.cs b/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/AuthorizationsOperationsExtensions.cs index 13fb020ab557..396f174e4bf5 100644 --- a/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/AuthorizationsOperationsExtensions.cs +++ b/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/AuthorizationsOperationsExtensions.cs @@ -122,12 +122,9 @@ public static ExpressRouteAuthorization Get(this IAuthorizationsOperations opera /// /// Name of the ExpressRoute Circuit Authorization in the private cloud /// - /// - /// An ExpressRoute Circuit Authorization - /// - public static ExpressRouteAuthorization CreateOrUpdate(this IAuthorizationsOperations operations, string resourceGroupName, string privateCloudName, string authorizationName, object authorization) + public static ExpressRouteAuthorization CreateOrUpdate(this IAuthorizationsOperations operations, string resourceGroupName, string privateCloudName, string authorizationName) { - return operations.CreateOrUpdateAsync(resourceGroupName, privateCloudName, authorizationName, authorization).GetAwaiter().GetResult(); + return operations.CreateOrUpdateAsync(resourceGroupName, privateCloudName, authorizationName).GetAwaiter().GetResult(); } /// @@ -145,15 +142,12 @@ public static ExpressRouteAuthorization CreateOrUpdate(this IAuthorizationsOpera /// /// Name of the ExpressRoute Circuit Authorization in the private cloud /// - /// - /// An ExpressRoute Circuit Authorization - /// /// /// The cancellation token. /// - public static async Task CreateOrUpdateAsync(this IAuthorizationsOperations operations, string resourceGroupName, string privateCloudName, string authorizationName, object authorization, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task CreateOrUpdateAsync(this IAuthorizationsOperations operations, string resourceGroupName, string privateCloudName, string authorizationName, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.CreateOrUpdateWithHttpMessagesAsync(resourceGroupName, privateCloudName, authorizationName, authorization, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.CreateOrUpdateWithHttpMessagesAsync(resourceGroupName, privateCloudName, authorizationName, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -217,12 +211,9 @@ public static void Delete(this IAuthorizationsOperations operations, string reso /// /// Name of the ExpressRoute Circuit Authorization in the private cloud /// - /// - /// An ExpressRoute Circuit Authorization - /// - public static ExpressRouteAuthorization BeginCreateOrUpdate(this IAuthorizationsOperations operations, string resourceGroupName, string privateCloudName, string authorizationName, object authorization) + public static ExpressRouteAuthorization BeginCreateOrUpdate(this IAuthorizationsOperations operations, string resourceGroupName, string privateCloudName, string authorizationName) { - return operations.BeginCreateOrUpdateAsync(resourceGroupName, privateCloudName, authorizationName, authorization).GetAwaiter().GetResult(); + return operations.BeginCreateOrUpdateAsync(resourceGroupName, privateCloudName, authorizationName).GetAwaiter().GetResult(); } /// @@ -240,15 +231,12 @@ public static ExpressRouteAuthorization BeginCreateOrUpdate(this IAuthorizations /// /// Name of the ExpressRoute Circuit Authorization in the private cloud /// - /// - /// An ExpressRoute Circuit Authorization - /// /// /// The cancellation token. /// - public static async Task BeginCreateOrUpdateAsync(this IAuthorizationsOperations operations, string resourceGroupName, string privateCloudName, string authorizationName, object authorization, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task BeginCreateOrUpdateAsync(this IAuthorizationsOperations operations, string resourceGroupName, string privateCloudName, string authorizationName, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.BeginCreateOrUpdateWithHttpMessagesAsync(resourceGroupName, privateCloudName, authorizationName, authorization, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.BeginCreateOrUpdateWithHttpMessagesAsync(resourceGroupName, privateCloudName, authorizationName, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } diff --git a/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/AvsClient.cs b/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/AvsClient.cs index 13580eab77c9..9839f7f607fe 100644 --- a/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/AvsClient.cs +++ b/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/AvsClient.cs @@ -94,6 +94,11 @@ public partial class AvsClient : ServiceClient, IAvsClient, IAzureCli /// public virtual IClustersOperations Clusters { get; private set; } + /// + /// Gets the IDatastoresOperations. + /// + public virtual IDatastoresOperations Datastores { get; private set; } + /// /// Gets the IHcxEnterpriseSitesOperations. /// @@ -104,6 +109,41 @@ public partial class AvsClient : ServiceClient, IAvsClient, IAzureCli /// public virtual IAuthorizationsOperations Authorizations { get; private set; } + /// + /// Gets the IGlobalReachConnectionsOperations. + /// + public virtual IGlobalReachConnectionsOperations GlobalReachConnections { get; private set; } + + /// + /// Gets the IWorkloadNetworksOperations. + /// + public virtual IWorkloadNetworksOperations WorkloadNetworks { get; private set; } + + /// + /// Gets the ICloudLinksOperations. + /// + public virtual ICloudLinksOperations CloudLinks { get; private set; } + + /// + /// Gets the IAddonsOperations. + /// + public virtual IAddonsOperations Addons { get; private set; } + + /// + /// Gets the IScriptPackagesOperations. + /// + public virtual IScriptPackagesOperations ScriptPackages { get; private set; } + + /// + /// Gets the IScriptCmdletsOperations. + /// + public virtual IScriptCmdletsOperations ScriptCmdlets { get; private set; } + + /// + /// Gets the IScriptExecutionsOperations. + /// + public virtual IScriptExecutionsOperations ScriptExecutions { get; private set; } + /// /// Initializes a new instance of the AvsClient class. /// @@ -349,10 +389,18 @@ private void Initialize() Locations = new LocationsOperations(this); PrivateClouds = new PrivateCloudsOperations(this); Clusters = new ClustersOperations(this); + Datastores = new DatastoresOperations(this); HcxEnterpriseSites = new HcxEnterpriseSitesOperations(this); Authorizations = new AuthorizationsOperations(this); + GlobalReachConnections = new GlobalReachConnectionsOperations(this); + WorkloadNetworks = new WorkloadNetworksOperations(this); + CloudLinks = new CloudLinksOperations(this); + Addons = new AddonsOperations(this); + ScriptPackages = new ScriptPackagesOperations(this); + ScriptCmdlets = new ScriptCmdletsOperations(this); + ScriptExecutions = new ScriptExecutionsOperations(this); BaseUri = new System.Uri("https://management.azure.com"); - ApiVersion = "2020-03-20"; + ApiVersion = "2021-06-01"; AcceptLanguage = "en-US"; LongRunningOperationRetryTimeout = 30; GenerateClientRequestId = true; @@ -382,6 +430,12 @@ private void Initialize() new Iso8601TimeSpanConverter() } }; + SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter("addonType")); + DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter("addonType")); + SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter("dhcpType")); + DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter("dhcpType")); + SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter("type")); + DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter("type")); CustomInitialize(); DeserializationSettings.Converters.Add(new TransformationJsonConverter()); DeserializationSettings.Converters.Add(new CloudErrorJsonConverter()); diff --git a/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/CloudLinksOperations.cs b/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/CloudLinksOperations.cs new file mode 100644 index 000000000000..b36d8a01a70c --- /dev/null +++ b/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/CloudLinksOperations.cs @@ -0,0 +1,1218 @@ +// +// 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; + + /// + /// CloudLinksOperations operations. + /// + internal partial class CloudLinksOperations : IServiceOperations, ICloudLinksOperations + { + /// + /// Initializes a new instance of the CloudLinksOperations class. + /// + /// + /// Reference to the service client. + /// + /// + /// Thrown when a required parameter is null + /// + internal CloudLinksOperations(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 cloud link in a private cloud + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// 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 (Client.SubscriptionId != null) + { + if (Client.SubscriptionId.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "Client.SubscriptionId", 1); + } + } + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (resourceGroupName != null) + { + if (resourceGroupName.Length > 90) + { + throw new ValidationException(ValidationRules.MaxLength, "resourceGroupName", 90); + } + if (resourceGroupName.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); + } + if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$")) + { + throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$"); + } + } + if (privateCloudName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "privateCloudName"); + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + if (Client.ApiVersion != null) + { + if (Client.ApiVersion.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "Client.ApiVersion", 1); + } + } + // 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}/cloudLinks").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 CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse>(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Get an cloud link by name in a private cloud + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the private cloud + /// + /// + /// Name of the cloud link resource + /// + /// + /// 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 cloudLinkName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (Client.SubscriptionId != null) + { + if (Client.SubscriptionId.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "Client.SubscriptionId", 1); + } + } + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (resourceGroupName != null) + { + if (resourceGroupName.Length > 90) + { + throw new ValidationException(ValidationRules.MaxLength, "resourceGroupName", 90); + } + if (resourceGroupName.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); + } + if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$")) + { + throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$"); + } + } + if (privateCloudName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "privateCloudName"); + } + if (cloudLinkName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "cloudLinkName"); + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + if (Client.ApiVersion != null) + { + if (Client.ApiVersion.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "Client.ApiVersion", 1); + } + } + // 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("cloudLinkName", cloudLinkName); + 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}/cloudLinks/{cloudLinkName}").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("{cloudLinkName}", System.Uri.EscapeDataString(cloudLinkName)); + 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 CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Create or update a cloud link in a private cloud + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// The name of the private cloud. + /// + /// + /// Name of the cloud link resource + /// + /// + /// A cloud link in the private cloud + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task> CreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string privateCloudName, string cloudLinkName, CloudLink cloudLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send Request + AzureOperationResponse _response = await BeginCreateOrUpdateWithHttpMessagesAsync(resourceGroupName, privateCloudName, cloudLinkName, cloudLink, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPutOrPatchOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + + /// + /// Delete a cloud link in a private cloud + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the private cloud + /// + /// + /// Name of the cloud link resource + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task DeleteWithHttpMessagesAsync(string resourceGroupName, string privateCloudName, string cloudLinkName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send request + AzureOperationResponse _response = await BeginDeleteWithHttpMessagesAsync(resourceGroupName, privateCloudName, cloudLinkName, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + + /// + /// Create or update a cloud link in a private cloud + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// The name of the private cloud. + /// + /// + /// Name of the cloud link resource + /// + /// + /// A cloud link 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 cloudLinkName, CloudLink cloudLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (Client.SubscriptionId != null) + { + if (Client.SubscriptionId.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "Client.SubscriptionId", 1); + } + } + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (resourceGroupName != null) + { + if (resourceGroupName.Length > 90) + { + throw new ValidationException(ValidationRules.MaxLength, "resourceGroupName", 90); + } + if (resourceGroupName.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); + } + if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$")) + { + throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$"); + } + } + if (privateCloudName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "privateCloudName"); + } + if (cloudLinkName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "cloudLinkName"); + } + if (cloudLink == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "cloudLink"); + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + if (Client.ApiVersion != null) + { + if (Client.ApiVersion.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "Client.ApiVersion", 1); + } + } + // 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("cloudLinkName", cloudLinkName); + tracingParameters.Add("cloudLink", cloudLink); + 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}/cloudLinks/{cloudLinkName}").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("{cloudLinkName}", System.Uri.EscapeDataString(cloudLinkName)); + 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(cloudLink != null) + { + _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(cloudLink, 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 CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + // 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 cloud link in a private cloud + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the private cloud + /// + /// + /// Name of the cloud link resource + /// + /// + /// 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 cloudLinkName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (Client.SubscriptionId != null) + { + if (Client.SubscriptionId.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "Client.SubscriptionId", 1); + } + } + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (resourceGroupName != null) + { + if (resourceGroupName.Length > 90) + { + throw new ValidationException(ValidationRules.MaxLength, "resourceGroupName", 90); + } + if (resourceGroupName.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); + } + if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$")) + { + throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$"); + } + } + if (privateCloudName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "privateCloudName"); + } + if (cloudLinkName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "cloudLinkName"); + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + if (Client.ApiVersion != null) + { + if (Client.ApiVersion.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "Client.ApiVersion", 1); + } + } + // 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("cloudLinkName", cloudLinkName); + 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}/cloudLinks/{cloudLinkName}").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("{cloudLinkName}", System.Uri.EscapeDataString(cloudLinkName)); + 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 CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// List cloud link 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 CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse>(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + } +} diff --git a/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/CloudLinksOperationsExtensions.cs b/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/CloudLinksOperationsExtensions.cs new file mode 100644 index 000000000000..6289d908c12a --- /dev/null +++ b/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/CloudLinksOperationsExtensions.cs @@ -0,0 +1,335 @@ +// +// 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 CloudLinksOperations. + /// + public static partial class CloudLinksOperationsExtensions + { + /// + /// List cloud link in a private cloud + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the private cloud + /// + public static IPage List(this ICloudLinksOperations operations, string resourceGroupName, string privateCloudName) + { + return operations.ListAsync(resourceGroupName, privateCloudName).GetAwaiter().GetResult(); + } + + /// + /// List cloud link in a private cloud + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the private cloud + /// + /// + /// The cancellation token. + /// + public static async Task> ListAsync(this ICloudLinksOperations 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 an cloud link by name in a private cloud + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the private cloud + /// + /// + /// Name of the cloud link resource + /// + public static CloudLink Get(this ICloudLinksOperations operations, string resourceGroupName, string privateCloudName, string cloudLinkName) + { + return operations.GetAsync(resourceGroupName, privateCloudName, cloudLinkName).GetAwaiter().GetResult(); + } + + /// + /// Get an cloud link by name in a private cloud + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the private cloud + /// + /// + /// Name of the cloud link resource + /// + /// + /// The cancellation token. + /// + public static async Task GetAsync(this ICloudLinksOperations operations, string resourceGroupName, string privateCloudName, string cloudLinkName, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.GetWithHttpMessagesAsync(resourceGroupName, privateCloudName, cloudLinkName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Create or update a cloud link in a private cloud + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// The name of the private cloud. + /// + /// + /// Name of the cloud link resource + /// + /// + /// A cloud link in the private cloud + /// + public static CloudLink CreateOrUpdate(this ICloudLinksOperations operations, string resourceGroupName, string privateCloudName, string cloudLinkName, CloudLink cloudLink) + { + return operations.CreateOrUpdateAsync(resourceGroupName, privateCloudName, cloudLinkName, cloudLink).GetAwaiter().GetResult(); + } + + /// + /// Create or update a cloud link in a private cloud + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// The name of the private cloud. + /// + /// + /// Name of the cloud link resource + /// + /// + /// A cloud link in the private cloud + /// + /// + /// The cancellation token. + /// + public static async Task CreateOrUpdateAsync(this ICloudLinksOperations operations, string resourceGroupName, string privateCloudName, string cloudLinkName, CloudLink cloudLink, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.CreateOrUpdateWithHttpMessagesAsync(resourceGroupName, privateCloudName, cloudLinkName, cloudLink, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Delete a cloud link in a private cloud + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the private cloud + /// + /// + /// Name of the cloud link resource + /// + public static void Delete(this ICloudLinksOperations operations, string resourceGroupName, string privateCloudName, string cloudLinkName) + { + operations.DeleteAsync(resourceGroupName, privateCloudName, cloudLinkName).GetAwaiter().GetResult(); + } + + /// + /// Delete a cloud link in a private cloud + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the private cloud + /// + /// + /// Name of the cloud link resource + /// + /// + /// The cancellation token. + /// + public static async Task DeleteAsync(this ICloudLinksOperations operations, string resourceGroupName, string privateCloudName, string cloudLinkName, CancellationToken cancellationToken = default(CancellationToken)) + { + (await operations.DeleteWithHttpMessagesAsync(resourceGroupName, privateCloudName, cloudLinkName, null, cancellationToken).ConfigureAwait(false)).Dispose(); + } + + /// + /// Create or update a cloud link in a private cloud + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// The name of the private cloud. + /// + /// + /// Name of the cloud link resource + /// + /// + /// A cloud link in the private cloud + /// + public static CloudLink BeginCreateOrUpdate(this ICloudLinksOperations operations, string resourceGroupName, string privateCloudName, string cloudLinkName, CloudLink cloudLink) + { + return operations.BeginCreateOrUpdateAsync(resourceGroupName, privateCloudName, cloudLinkName, cloudLink).GetAwaiter().GetResult(); + } + + /// + /// Create or update a cloud link in a private cloud + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// The name of the private cloud. + /// + /// + /// Name of the cloud link resource + /// + /// + /// A cloud link in the private cloud + /// + /// + /// The cancellation token. + /// + public static async Task BeginCreateOrUpdateAsync(this ICloudLinksOperations operations, string resourceGroupName, string privateCloudName, string cloudLinkName, CloudLink cloudLink, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.BeginCreateOrUpdateWithHttpMessagesAsync(resourceGroupName, privateCloudName, cloudLinkName, cloudLink, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Delete a cloud link in a private cloud + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the private cloud + /// + /// + /// Name of the cloud link resource + /// + public static void BeginDelete(this ICloudLinksOperations operations, string resourceGroupName, string privateCloudName, string cloudLinkName) + { + operations.BeginDeleteAsync(resourceGroupName, privateCloudName, cloudLinkName).GetAwaiter().GetResult(); + } + + /// + /// Delete a cloud link in a private cloud + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the private cloud + /// + /// + /// Name of the cloud link resource + /// + /// + /// The cancellation token. + /// + public static async Task BeginDeleteAsync(this ICloudLinksOperations operations, string resourceGroupName, string privateCloudName, string cloudLinkName, CancellationToken cancellationToken = default(CancellationToken)) + { + (await operations.BeginDeleteWithHttpMessagesAsync(resourceGroupName, privateCloudName, cloudLinkName, null, cancellationToken).ConfigureAwait(false)).Dispose(); + } + + /// + /// List cloud link 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 ICloudLinksOperations operations, string nextPageLink) + { + return operations.ListNextAsync(nextPageLink).GetAwaiter().GetResult(); + } + + /// + /// List cloud link 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 ICloudLinksOperations 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/DatastoresOperations.cs b/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/DatastoresOperations.cs new file mode 100644 index 000000000000..2012faa2b8ec --- /dev/null +++ b/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/DatastoresOperations.cs @@ -0,0 +1,1264 @@ +// +// 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; + + /// + /// DatastoresOperations operations. + /// + internal partial class DatastoresOperations : IServiceOperations, IDatastoresOperations + { + /// + /// Initializes a new instance of the DatastoresOperations class. + /// + /// + /// Reference to the service client. + /// + /// + /// Thrown when a required parameter is null + /// + internal DatastoresOperations(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 datastores in a private cloud cluster + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// 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>> ListWithHttpMessagesAsync(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 (Client.SubscriptionId != null) + { + if (Client.SubscriptionId.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "Client.SubscriptionId", 1); + } + } + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (resourceGroupName != null) + { + if (resourceGroupName.Length > 90) + { + throw new ValidationException(ValidationRules.MaxLength, "resourceGroupName", 90); + } + if (resourceGroupName.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); + } + if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$")) + { + throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$"); + } + } + 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"); + } + if (Client.ApiVersion != null) + { + if (Client.ApiVersion.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "Client.ApiVersion", 1); + } + } + // 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, "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/{clusterName}/datastores").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 CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse>(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Get a datastore in a private cloud cluster + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the private cloud + /// + /// + /// Name of the cluster in the private cloud + /// + /// + /// Name of the datastore in the private cloud cluster + /// + /// + /// 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, string datastoreName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (Client.SubscriptionId != null) + { + if (Client.SubscriptionId.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "Client.SubscriptionId", 1); + } + } + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (resourceGroupName != null) + { + if (resourceGroupName.Length > 90) + { + throw new ValidationException(ValidationRules.MaxLength, "resourceGroupName", 90); + } + if (resourceGroupName.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); + } + if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$")) + { + throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$"); + } + } + if (privateCloudName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "privateCloudName"); + } + if (clusterName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "clusterName"); + } + if (datastoreName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "datastoreName"); + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + if (Client.ApiVersion != null) + { + if (Client.ApiVersion.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "Client.ApiVersion", 1); + } + } + // 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("datastoreName", datastoreName); + 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}/datastores/{datastoreName}").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)); + _url = _url.Replace("{datastoreName}", System.Uri.EscapeDataString(datastoreName)); + 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 CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Create or update a datastore in a private cloud cluster + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the private cloud + /// + /// + /// Name of the cluster in the private cloud + /// + /// + /// Name of the datastore in the private cloud cluster + /// + /// + /// A datastore in a private cloud cluster + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task> CreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string privateCloudName, string clusterName, string datastoreName, Datastore datastore, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send Request + AzureOperationResponse _response = await BeginCreateOrUpdateWithHttpMessagesAsync(resourceGroupName, privateCloudName, clusterName, datastoreName, datastore, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPutOrPatchOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + + /// + /// Delete a datastore in a private cloud cluster + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the private cloud + /// + /// + /// Name of the cluster in the private cloud + /// + /// + /// Name of the datastore in the private cloud cluster + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task DeleteWithHttpMessagesAsync(string resourceGroupName, string privateCloudName, string clusterName, string datastoreName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send request + AzureOperationResponse _response = await BeginDeleteWithHttpMessagesAsync(resourceGroupName, privateCloudName, clusterName, datastoreName, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + + /// + /// Create or update a datastore in a private cloud cluster + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the private cloud + /// + /// + /// Name of the cluster in the private cloud + /// + /// + /// Name of the datastore in the private cloud cluster + /// + /// + /// A datastore in a private cloud cluster + /// + /// + /// 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, string datastoreName, Datastore datastore, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (Client.SubscriptionId != null) + { + if (Client.SubscriptionId.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "Client.SubscriptionId", 1); + } + } + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (resourceGroupName != null) + { + if (resourceGroupName.Length > 90) + { + throw new ValidationException(ValidationRules.MaxLength, "resourceGroupName", 90); + } + if (resourceGroupName.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); + } + if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$")) + { + throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$"); + } + } + if (privateCloudName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "privateCloudName"); + } + if (clusterName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "clusterName"); + } + if (datastoreName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "datastoreName"); + } + if (datastore == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "datastore"); + } + if (datastore != null) + { + datastore.Validate(); + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + if (Client.ApiVersion != null) + { + if (Client.ApiVersion.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "Client.ApiVersion", 1); + } + } + // 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("datastoreName", datastoreName); + tracingParameters.Add("datastore", datastore); + 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}/datastores/{datastoreName}").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)); + _url = _url.Replace("{datastoreName}", System.Uri.EscapeDataString(datastoreName)); + 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(datastore != null) + { + _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(datastore, 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 CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + // 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 datastore in a private cloud cluster + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the private cloud + /// + /// + /// Name of the cluster in the private cloud + /// + /// + /// Name of the datastore in the private cloud cluster + /// + /// + /// 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, string datastoreName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (Client.SubscriptionId != null) + { + if (Client.SubscriptionId.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "Client.SubscriptionId", 1); + } + } + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (resourceGroupName != null) + { + if (resourceGroupName.Length > 90) + { + throw new ValidationException(ValidationRules.MaxLength, "resourceGroupName", 90); + } + if (resourceGroupName.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); + } + if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$")) + { + throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$"); + } + } + if (privateCloudName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "privateCloudName"); + } + if (clusterName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "clusterName"); + } + if (datastoreName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "datastoreName"); + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + if (Client.ApiVersion != null) + { + if (Client.ApiVersion.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "Client.ApiVersion", 1); + } + } + // 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("datastoreName", datastoreName); + 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}/datastores/{datastoreName}").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)); + _url = _url.Replace("{datastoreName}", System.Uri.EscapeDataString(datastoreName)); + 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 CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// List datastores in a private cloud cluster + /// + /// + /// 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 CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse>(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + } +} diff --git a/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/DatastoresOperationsExtensions.cs b/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/DatastoresOperationsExtensions.cs new file mode 100644 index 000000000000..894dd94ac3a8 --- /dev/null +++ b/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/DatastoresOperationsExtensions.cs @@ -0,0 +1,371 @@ +// +// 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 DatastoresOperations. + /// + public static partial class DatastoresOperationsExtensions + { + /// + /// List datastores in a private cloud cluster + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the private cloud + /// + /// + /// Name of the cluster in the private cloud + /// + public static IPage List(this IDatastoresOperations operations, string resourceGroupName, string privateCloudName, string clusterName) + { + return operations.ListAsync(resourceGroupName, privateCloudName, clusterName).GetAwaiter().GetResult(); + } + + /// + /// List datastores in a private cloud cluster + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the private cloud + /// + /// + /// Name of the cluster in the private cloud + /// + /// + /// The cancellation token. + /// + public static async Task> ListAsync(this IDatastoresOperations operations, string resourceGroupName, string privateCloudName, string clusterName, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListWithHttpMessagesAsync(resourceGroupName, privateCloudName, clusterName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Get a datastore in a private cloud cluster + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the private cloud + /// + /// + /// Name of the cluster in the private cloud + /// + /// + /// Name of the datastore in the private cloud cluster + /// + public static Datastore Get(this IDatastoresOperations operations, string resourceGroupName, string privateCloudName, string clusterName, string datastoreName) + { + return operations.GetAsync(resourceGroupName, privateCloudName, clusterName, datastoreName).GetAwaiter().GetResult(); + } + + /// + /// Get a datastore in a private cloud cluster + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the private cloud + /// + /// + /// Name of the cluster in the private cloud + /// + /// + /// Name of the datastore in the private cloud cluster + /// + /// + /// The cancellation token. + /// + public static async Task GetAsync(this IDatastoresOperations operations, string resourceGroupName, string privateCloudName, string clusterName, string datastoreName, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.GetWithHttpMessagesAsync(resourceGroupName, privateCloudName, clusterName, datastoreName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Create or update a datastore in a private cloud cluster + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the private cloud + /// + /// + /// Name of the cluster in the private cloud + /// + /// + /// Name of the datastore in the private cloud cluster + /// + /// + /// A datastore in a private cloud cluster + /// + public static Datastore CreateOrUpdate(this IDatastoresOperations operations, string resourceGroupName, string privateCloudName, string clusterName, string datastoreName, Datastore datastore) + { + return operations.CreateOrUpdateAsync(resourceGroupName, privateCloudName, clusterName, datastoreName, datastore).GetAwaiter().GetResult(); + } + + /// + /// Create or update a datastore in a private cloud cluster + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the private cloud + /// + /// + /// Name of the cluster in the private cloud + /// + /// + /// Name of the datastore in the private cloud cluster + /// + /// + /// A datastore in a private cloud cluster + /// + /// + /// The cancellation token. + /// + public static async Task CreateOrUpdateAsync(this IDatastoresOperations operations, string resourceGroupName, string privateCloudName, string clusterName, string datastoreName, Datastore datastore, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.CreateOrUpdateWithHttpMessagesAsync(resourceGroupName, privateCloudName, clusterName, datastoreName, datastore, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Delete a datastore in a private cloud cluster + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the private cloud + /// + /// + /// Name of the cluster in the private cloud + /// + /// + /// Name of the datastore in the private cloud cluster + /// + public static void Delete(this IDatastoresOperations operations, string resourceGroupName, string privateCloudName, string clusterName, string datastoreName) + { + operations.DeleteAsync(resourceGroupName, privateCloudName, clusterName, datastoreName).GetAwaiter().GetResult(); + } + + /// + /// Delete a datastore in a private cloud cluster + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the private cloud + /// + /// + /// Name of the cluster in the private cloud + /// + /// + /// Name of the datastore in the private cloud cluster + /// + /// + /// The cancellation token. + /// + public static async Task DeleteAsync(this IDatastoresOperations operations, string resourceGroupName, string privateCloudName, string clusterName, string datastoreName, CancellationToken cancellationToken = default(CancellationToken)) + { + (await operations.DeleteWithHttpMessagesAsync(resourceGroupName, privateCloudName, clusterName, datastoreName, null, cancellationToken).ConfigureAwait(false)).Dispose(); + } + + /// + /// Create or update a datastore in a private cloud cluster + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the private cloud + /// + /// + /// Name of the cluster in the private cloud + /// + /// + /// Name of the datastore in the private cloud cluster + /// + /// + /// A datastore in a private cloud cluster + /// + public static Datastore BeginCreateOrUpdate(this IDatastoresOperations operations, string resourceGroupName, string privateCloudName, string clusterName, string datastoreName, Datastore datastore) + { + return operations.BeginCreateOrUpdateAsync(resourceGroupName, privateCloudName, clusterName, datastoreName, datastore).GetAwaiter().GetResult(); + } + + /// + /// Create or update a datastore in a private cloud cluster + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the private cloud + /// + /// + /// Name of the cluster in the private cloud + /// + /// + /// Name of the datastore in the private cloud cluster + /// + /// + /// A datastore in a private cloud cluster + /// + /// + /// The cancellation token. + /// + public static async Task BeginCreateOrUpdateAsync(this IDatastoresOperations operations, string resourceGroupName, string privateCloudName, string clusterName, string datastoreName, Datastore datastore, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.BeginCreateOrUpdateWithHttpMessagesAsync(resourceGroupName, privateCloudName, clusterName, datastoreName, datastore, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Delete a datastore in a private cloud cluster + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the private cloud + /// + /// + /// Name of the cluster in the private cloud + /// + /// + /// Name of the datastore in the private cloud cluster + /// + public static void BeginDelete(this IDatastoresOperations operations, string resourceGroupName, string privateCloudName, string clusterName, string datastoreName) + { + operations.BeginDeleteAsync(resourceGroupName, privateCloudName, clusterName, datastoreName).GetAwaiter().GetResult(); + } + + /// + /// Delete a datastore in a private cloud cluster + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the private cloud + /// + /// + /// Name of the cluster in the private cloud + /// + /// + /// Name of the datastore in the private cloud cluster + /// + /// + /// The cancellation token. + /// + public static async Task BeginDeleteAsync(this IDatastoresOperations operations, string resourceGroupName, string privateCloudName, string clusterName, string datastoreName, CancellationToken cancellationToken = default(CancellationToken)) + { + (await operations.BeginDeleteWithHttpMessagesAsync(resourceGroupName, privateCloudName, clusterName, datastoreName, null, cancellationToken).ConfigureAwait(false)).Dispose(); + } + + /// + /// List datastores in a private cloud cluster + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + public static IPage ListNext(this IDatastoresOperations operations, string nextPageLink) + { + return operations.ListNextAsync(nextPageLink).GetAwaiter().GetResult(); + } + + /// + /// List datastores in a private cloud cluster + /// + /// + /// 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 IDatastoresOperations 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/GlobalReachConnectionsOperations.cs b/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/GlobalReachConnectionsOperations.cs new file mode 100644 index 000000000000..bf9741d4d040 --- /dev/null +++ b/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/GlobalReachConnectionsOperations.cs @@ -0,0 +1,1218 @@ +// +// 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; + + /// + /// GlobalReachConnectionsOperations operations. + /// + internal partial class GlobalReachConnectionsOperations : IServiceOperations, IGlobalReachConnectionsOperations + { + /// + /// Initializes a new instance of the GlobalReachConnectionsOperations class. + /// + /// + /// Reference to the service client. + /// + /// + /// Thrown when a required parameter is null + /// + internal GlobalReachConnectionsOperations(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 global reach connections in a private cloud + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// 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 (Client.SubscriptionId != null) + { + if (Client.SubscriptionId.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "Client.SubscriptionId", 1); + } + } + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (resourceGroupName != null) + { + if (resourceGroupName.Length > 90) + { + throw new ValidationException(ValidationRules.MaxLength, "resourceGroupName", 90); + } + if (resourceGroupName.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); + } + if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$")) + { + throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$"); + } + } + if (privateCloudName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "privateCloudName"); + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + if (Client.ApiVersion != null) + { + if (Client.ApiVersion.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "Client.ApiVersion", 1); + } + } + // 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}/globalReachConnections").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 CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse>(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Get a global reach connection by name in a private cloud + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the private cloud + /// + /// + /// Name of the global reach connection 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 globalReachConnectionName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (Client.SubscriptionId != null) + { + if (Client.SubscriptionId.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "Client.SubscriptionId", 1); + } + } + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (resourceGroupName != null) + { + if (resourceGroupName.Length > 90) + { + throw new ValidationException(ValidationRules.MaxLength, "resourceGroupName", 90); + } + if (resourceGroupName.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); + } + if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$")) + { + throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$"); + } + } + if (privateCloudName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "privateCloudName"); + } + if (globalReachConnectionName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "globalReachConnectionName"); + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + if (Client.ApiVersion != null) + { + if (Client.ApiVersion.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "Client.ApiVersion", 1); + } + } + // 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("globalReachConnectionName", globalReachConnectionName); + 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}/globalReachConnections/{globalReachConnectionName}").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("{globalReachConnectionName}", System.Uri.EscapeDataString(globalReachConnectionName)); + 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 CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Create or update a global reach connection in a private cloud + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// The name of the private cloud. + /// + /// + /// Name of the global reach connection in the private cloud + /// + /// + /// A global reach connection in the private cloud + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task> CreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string privateCloudName, string globalReachConnectionName, GlobalReachConnection globalReachConnection, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send Request + AzureOperationResponse _response = await BeginCreateOrUpdateWithHttpMessagesAsync(resourceGroupName, privateCloudName, globalReachConnectionName, globalReachConnection, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPutOrPatchOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + + /// + /// Delete a global reach connection in a private cloud + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the private cloud + /// + /// + /// Name of the global reach connection in the private cloud + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task DeleteWithHttpMessagesAsync(string resourceGroupName, string privateCloudName, string globalReachConnectionName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send request + AzureOperationResponse _response = await BeginDeleteWithHttpMessagesAsync(resourceGroupName, privateCloudName, globalReachConnectionName, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + + /// + /// Create or update a global reach connection in a private cloud + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// The name of the private cloud. + /// + /// + /// Name of the global reach connection in the private cloud + /// + /// + /// A global reach connection 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 globalReachConnectionName, GlobalReachConnection globalReachConnection, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (Client.SubscriptionId != null) + { + if (Client.SubscriptionId.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "Client.SubscriptionId", 1); + } + } + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (resourceGroupName != null) + { + if (resourceGroupName.Length > 90) + { + throw new ValidationException(ValidationRules.MaxLength, "resourceGroupName", 90); + } + if (resourceGroupName.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); + } + if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$")) + { + throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$"); + } + } + if (privateCloudName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "privateCloudName"); + } + if (globalReachConnectionName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "globalReachConnectionName"); + } + if (globalReachConnection == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "globalReachConnection"); + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + if (Client.ApiVersion != null) + { + if (Client.ApiVersion.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "Client.ApiVersion", 1); + } + } + // 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("globalReachConnectionName", globalReachConnectionName); + tracingParameters.Add("globalReachConnection", globalReachConnection); + 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}/globalReachConnections/{globalReachConnectionName}").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("{globalReachConnectionName}", System.Uri.EscapeDataString(globalReachConnectionName)); + 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(globalReachConnection != null) + { + _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(globalReachConnection, 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 CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + // 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 global reach connection in a private cloud + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the private cloud + /// + /// + /// Name of the global reach connection 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 globalReachConnectionName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (Client.SubscriptionId != null) + { + if (Client.SubscriptionId.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "Client.SubscriptionId", 1); + } + } + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (resourceGroupName != null) + { + if (resourceGroupName.Length > 90) + { + throw new ValidationException(ValidationRules.MaxLength, "resourceGroupName", 90); + } + if (resourceGroupName.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); + } + if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$")) + { + throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$"); + } + } + if (privateCloudName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "privateCloudName"); + } + if (globalReachConnectionName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "globalReachConnectionName"); + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + if (Client.ApiVersion != null) + { + if (Client.ApiVersion.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "Client.ApiVersion", 1); + } + } + // 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("globalReachConnectionName", globalReachConnectionName); + 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}/globalReachConnections/{globalReachConnectionName}").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("{globalReachConnectionName}", System.Uri.EscapeDataString(globalReachConnectionName)); + 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 CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// List global reach connections 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 CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse>(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + } +} diff --git a/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/GlobalReachConnectionsOperationsExtensions.cs b/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/GlobalReachConnectionsOperationsExtensions.cs new file mode 100644 index 000000000000..378441896ac2 --- /dev/null +++ b/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/GlobalReachConnectionsOperationsExtensions.cs @@ -0,0 +1,335 @@ +// +// 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 GlobalReachConnectionsOperations. + /// + public static partial class GlobalReachConnectionsOperationsExtensions + { + /// + /// List global reach connections in a private cloud + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the private cloud + /// + public static IPage List(this IGlobalReachConnectionsOperations operations, string resourceGroupName, string privateCloudName) + { + return operations.ListAsync(resourceGroupName, privateCloudName).GetAwaiter().GetResult(); + } + + /// + /// List global reach connections in a private cloud + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the private cloud + /// + /// + /// The cancellation token. + /// + public static async Task> ListAsync(this IGlobalReachConnectionsOperations 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 global reach connection by name in a private cloud + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the private cloud + /// + /// + /// Name of the global reach connection in the private cloud + /// + public static GlobalReachConnection Get(this IGlobalReachConnectionsOperations operations, string resourceGroupName, string privateCloudName, string globalReachConnectionName) + { + return operations.GetAsync(resourceGroupName, privateCloudName, globalReachConnectionName).GetAwaiter().GetResult(); + } + + /// + /// Get a global reach connection by name in a private cloud + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the private cloud + /// + /// + /// Name of the global reach connection in the private cloud + /// + /// + /// The cancellation token. + /// + public static async Task GetAsync(this IGlobalReachConnectionsOperations operations, string resourceGroupName, string privateCloudName, string globalReachConnectionName, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.GetWithHttpMessagesAsync(resourceGroupName, privateCloudName, globalReachConnectionName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Create or update a global reach connection in a private cloud + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// The name of the private cloud. + /// + /// + /// Name of the global reach connection in the private cloud + /// + /// + /// A global reach connection in the private cloud + /// + public static GlobalReachConnection CreateOrUpdate(this IGlobalReachConnectionsOperations operations, string resourceGroupName, string privateCloudName, string globalReachConnectionName, GlobalReachConnection globalReachConnection) + { + return operations.CreateOrUpdateAsync(resourceGroupName, privateCloudName, globalReachConnectionName, globalReachConnection).GetAwaiter().GetResult(); + } + + /// + /// Create or update a global reach connection in a private cloud + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// The name of the private cloud. + /// + /// + /// Name of the global reach connection in the private cloud + /// + /// + /// A global reach connection in the private cloud + /// + /// + /// The cancellation token. + /// + public static async Task CreateOrUpdateAsync(this IGlobalReachConnectionsOperations operations, string resourceGroupName, string privateCloudName, string globalReachConnectionName, GlobalReachConnection globalReachConnection, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.CreateOrUpdateWithHttpMessagesAsync(resourceGroupName, privateCloudName, globalReachConnectionName, globalReachConnection, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Delete a global reach connection in a private cloud + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the private cloud + /// + /// + /// Name of the global reach connection in the private cloud + /// + public static void Delete(this IGlobalReachConnectionsOperations operations, string resourceGroupName, string privateCloudName, string globalReachConnectionName) + { + operations.DeleteAsync(resourceGroupName, privateCloudName, globalReachConnectionName).GetAwaiter().GetResult(); + } + + /// + /// Delete a global reach connection in a private cloud + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the private cloud + /// + /// + /// Name of the global reach connection in the private cloud + /// + /// + /// The cancellation token. + /// + public static async Task DeleteAsync(this IGlobalReachConnectionsOperations operations, string resourceGroupName, string privateCloudName, string globalReachConnectionName, CancellationToken cancellationToken = default(CancellationToken)) + { + (await operations.DeleteWithHttpMessagesAsync(resourceGroupName, privateCloudName, globalReachConnectionName, null, cancellationToken).ConfigureAwait(false)).Dispose(); + } + + /// + /// Create or update a global reach connection in a private cloud + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// The name of the private cloud. + /// + /// + /// Name of the global reach connection in the private cloud + /// + /// + /// A global reach connection in the private cloud + /// + public static GlobalReachConnection BeginCreateOrUpdate(this IGlobalReachConnectionsOperations operations, string resourceGroupName, string privateCloudName, string globalReachConnectionName, GlobalReachConnection globalReachConnection) + { + return operations.BeginCreateOrUpdateAsync(resourceGroupName, privateCloudName, globalReachConnectionName, globalReachConnection).GetAwaiter().GetResult(); + } + + /// + /// Create or update a global reach connection in a private cloud + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// The name of the private cloud. + /// + /// + /// Name of the global reach connection in the private cloud + /// + /// + /// A global reach connection in the private cloud + /// + /// + /// The cancellation token. + /// + public static async Task BeginCreateOrUpdateAsync(this IGlobalReachConnectionsOperations operations, string resourceGroupName, string privateCloudName, string globalReachConnectionName, GlobalReachConnection globalReachConnection, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.BeginCreateOrUpdateWithHttpMessagesAsync(resourceGroupName, privateCloudName, globalReachConnectionName, globalReachConnection, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Delete a global reach connection in a private cloud + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the private cloud + /// + /// + /// Name of the global reach connection in the private cloud + /// + public static void BeginDelete(this IGlobalReachConnectionsOperations operations, string resourceGroupName, string privateCloudName, string globalReachConnectionName) + { + operations.BeginDeleteAsync(resourceGroupName, privateCloudName, globalReachConnectionName).GetAwaiter().GetResult(); + } + + /// + /// Delete a global reach connection in a private cloud + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the private cloud + /// + /// + /// Name of the global reach connection in the private cloud + /// + /// + /// The cancellation token. + /// + public static async Task BeginDeleteAsync(this IGlobalReachConnectionsOperations operations, string resourceGroupName, string privateCloudName, string globalReachConnectionName, CancellationToken cancellationToken = default(CancellationToken)) + { + (await operations.BeginDeleteWithHttpMessagesAsync(resourceGroupName, privateCloudName, globalReachConnectionName, null, cancellationToken).ConfigureAwait(false)).Dispose(); + } + + /// + /// List global reach connections 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 IGlobalReachConnectionsOperations operations, string nextPageLink) + { + return operations.ListNextAsync(nextPageLink).GetAwaiter().GetResult(); + } + + /// + /// List global reach connections 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 IGlobalReachConnectionsOperations 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/HcxEnterpriseSitesOperations.cs b/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/HcxEnterpriseSitesOperations.cs index 764b0ec84ec9..a1bd0251cd25 100644 --- a/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/HcxEnterpriseSitesOperations.cs +++ b/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/HcxEnterpriseSitesOperations.cs @@ -521,9 +521,6 @@ internal HcxEnterpriseSitesOperations(AvsClient client) /// /// Name of the HCX Enterprise Site in the private cloud /// - /// - /// The HCX Enterprise Site - /// /// /// Headers that will be added to request. /// @@ -545,7 +542,7 @@ internal HcxEnterpriseSitesOperations(AvsClient client) /// /// A response object containing the response body and response headers. /// - public async Task> CreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string privateCloudName, string hcxEnterpriseSiteName, object hcxEnterpriseSite, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> CreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string privateCloudName, string hcxEnterpriseSiteName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (Client.SubscriptionId == null) { @@ -585,10 +582,6 @@ internal HcxEnterpriseSitesOperations(AvsClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "hcxEnterpriseSiteName"); } - if (hcxEnterpriseSite == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "hcxEnterpriseSite"); - } if (Client.ApiVersion == null) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); @@ -600,6 +593,7 @@ internal HcxEnterpriseSitesOperations(AvsClient client) throw new ValidationException(ValidationRules.MinLength, "Client.ApiVersion", 1); } } + HcxEnterpriseSite hcxEnterpriseSite = new HcxEnterpriseSite(); // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; diff --git a/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/HcxEnterpriseSitesOperationsExtensions.cs b/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/HcxEnterpriseSitesOperationsExtensions.cs index c5f1f9cbcd60..8479b065feae 100644 --- a/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/HcxEnterpriseSitesOperationsExtensions.cs +++ b/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/HcxEnterpriseSitesOperationsExtensions.cs @@ -122,12 +122,9 @@ public static HcxEnterpriseSite Get(this IHcxEnterpriseSitesOperations operation /// /// Name of the HCX Enterprise Site in the private cloud /// - /// - /// The HCX Enterprise Site - /// - public static HcxEnterpriseSite CreateOrUpdate(this IHcxEnterpriseSitesOperations operations, string resourceGroupName, string privateCloudName, string hcxEnterpriseSiteName, object hcxEnterpriseSite) + public static HcxEnterpriseSite CreateOrUpdate(this IHcxEnterpriseSitesOperations operations, string resourceGroupName, string privateCloudName, string hcxEnterpriseSiteName) { - return operations.CreateOrUpdateAsync(resourceGroupName, privateCloudName, hcxEnterpriseSiteName, hcxEnterpriseSite).GetAwaiter().GetResult(); + return operations.CreateOrUpdateAsync(resourceGroupName, privateCloudName, hcxEnterpriseSiteName).GetAwaiter().GetResult(); } /// @@ -145,15 +142,12 @@ public static HcxEnterpriseSite CreateOrUpdate(this IHcxEnterpriseSitesOperation /// /// Name of the HCX Enterprise Site in the private cloud /// - /// - /// The HCX Enterprise Site - /// /// /// The cancellation token. /// - public static async Task CreateOrUpdateAsync(this IHcxEnterpriseSitesOperations operations, string resourceGroupName, string privateCloudName, string hcxEnterpriseSiteName, object hcxEnterpriseSite, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task CreateOrUpdateAsync(this IHcxEnterpriseSitesOperations operations, string resourceGroupName, string privateCloudName, string hcxEnterpriseSiteName, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.CreateOrUpdateWithHttpMessagesAsync(resourceGroupName, privateCloudName, hcxEnterpriseSiteName, hcxEnterpriseSite, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.CreateOrUpdateWithHttpMessagesAsync(resourceGroupName, privateCloudName, hcxEnterpriseSiteName, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } diff --git a/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/IAddonsOperations.cs b/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/IAddonsOperations.cs new file mode 100644 index 000000000000..33d6b9190e13 --- /dev/null +++ b/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/IAddonsOperations.cs @@ -0,0 +1,214 @@ +// +// 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; + + /// + /// AddonsOperations operations. + /// + public partial interface IAddonsOperations + { + /// + /// List addons in a private cloud + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// 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 an addon by name in a private cloud + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the private cloud + /// + /// + /// Name of the addon for 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 addonName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Create or update a addon in a private cloud + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// The name of the private cloud. + /// + /// + /// Name of the addon for the private cloud + /// + /// + /// A addon 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 addonName, Addon addon, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Delete a addon in a private cloud + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the private cloud + /// + /// + /// Name of the addon for 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 addonName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Create or update a addon in a private cloud + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// The name of the private cloud. + /// + /// + /// Name of the addon for the private cloud + /// + /// + /// A addon 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 addonName, Addon addon, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Delete a addon in a private cloud + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the private cloud + /// + /// + /// Name of the addon for 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 addonName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// List addons 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/IAuthorizationsOperations.cs b/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/IAuthorizationsOperations.cs index c193a85cc899..d47d8f9c8e17 100644 --- a/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/IAuthorizationsOperations.cs +++ b/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/IAuthorizationsOperations.cs @@ -90,9 +90,6 @@ public partial interface IAuthorizationsOperations /// /// Name of the ExpressRoute Circuit Authorization in the private cloud /// - /// - /// An ExpressRoute Circuit Authorization - /// /// /// The headers that will be added to request. /// @@ -108,7 +105,7 @@ public partial interface IAuthorizationsOperations /// /// Thrown when a required parameter is null /// - Task> CreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string privateCloudName, string authorizationName, object authorization, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> CreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string privateCloudName, string authorizationName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Delete an ExpressRoute Circuit Authorization in a private cloud /// @@ -147,9 +144,6 @@ public partial interface IAuthorizationsOperations /// /// Name of the ExpressRoute Circuit Authorization in the private cloud /// - /// - /// An ExpressRoute Circuit Authorization - /// /// /// The headers that will be added to request. /// @@ -165,7 +159,7 @@ public partial interface IAuthorizationsOperations /// /// Thrown when a required parameter is null /// - Task> BeginCreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string privateCloudName, string authorizationName, object authorization, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> BeginCreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string privateCloudName, string authorizationName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Delete an ExpressRoute Circuit Authorization in a private cloud /// diff --git a/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/IAvsClient.cs b/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/IAvsClient.cs index 9a1f08824bc6..befcd7eeea86 100644 --- a/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/IAvsClient.cs +++ b/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/IAvsClient.cs @@ -89,6 +89,11 @@ public partial interface IAvsClient : System.IDisposable /// IClustersOperations Clusters { get; } + /// + /// Gets the IDatastoresOperations. + /// + IDatastoresOperations Datastores { get; } + /// /// Gets the IHcxEnterpriseSitesOperations. /// @@ -99,5 +104,40 @@ public partial interface IAvsClient : System.IDisposable /// IAuthorizationsOperations Authorizations { get; } + /// + /// Gets the IGlobalReachConnectionsOperations. + /// + IGlobalReachConnectionsOperations GlobalReachConnections { get; } + + /// + /// Gets the IWorkloadNetworksOperations. + /// + IWorkloadNetworksOperations WorkloadNetworks { get; } + + /// + /// Gets the ICloudLinksOperations. + /// + ICloudLinksOperations CloudLinks { get; } + + /// + /// Gets the IAddonsOperations. + /// + IAddonsOperations Addons { get; } + + /// + /// Gets the IScriptPackagesOperations. + /// + IScriptPackagesOperations ScriptPackages { get; } + + /// + /// Gets the IScriptCmdletsOperations. + /// + IScriptCmdletsOperations ScriptCmdlets { get; } + + /// + /// Gets the IScriptExecutionsOperations. + /// + IScriptExecutionsOperations ScriptExecutions { get; } + } } diff --git a/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/ICloudLinksOperations.cs b/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/ICloudLinksOperations.cs new file mode 100644 index 000000000000..efd3225e758d --- /dev/null +++ b/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/ICloudLinksOperations.cs @@ -0,0 +1,214 @@ +// +// 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; + + /// + /// CloudLinksOperations operations. + /// + public partial interface ICloudLinksOperations + { + /// + /// List cloud link in a private cloud + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// 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 an cloud link by name in a private cloud + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the private cloud + /// + /// + /// Name of the cloud link resource + /// + /// + /// 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 cloudLinkName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Create or update a cloud link in a private cloud + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// The name of the private cloud. + /// + /// + /// Name of the cloud link resource + /// + /// + /// A cloud link 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 cloudLinkName, CloudLink cloudLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Delete a cloud link in a private cloud + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the private cloud + /// + /// + /// Name of the cloud link resource + /// + /// + /// 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 cloudLinkName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Create or update a cloud link in a private cloud + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// The name of the private cloud. + /// + /// + /// Name of the cloud link resource + /// + /// + /// A cloud link 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 cloudLinkName, CloudLink cloudLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Delete a cloud link in a private cloud + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the private cloud + /// + /// + /// Name of the cloud link resource + /// + /// + /// 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 cloudLinkName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// List cloud link 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/IDatastoresOperations.cs b/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/IDatastoresOperations.cs new file mode 100644 index 000000000000..eb0e4e390d7c --- /dev/null +++ b/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/IDatastoresOperations.cs @@ -0,0 +1,232 @@ +// +// 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; + + /// + /// DatastoresOperations operations. + /// + public partial interface IDatastoresOperations + { + /// + /// List datastores in a private cloud cluster + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// 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>> ListWithHttpMessagesAsync(string resourceGroupName, string privateCloudName, string clusterName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Get a datastore in a private cloud cluster + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the private cloud + /// + /// + /// Name of the cluster in the private cloud + /// + /// + /// Name of the datastore in the private cloud cluster + /// + /// + /// 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, string datastoreName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Create or update a datastore in a private cloud cluster + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the private cloud + /// + /// + /// Name of the cluster in the private cloud + /// + /// + /// Name of the datastore in the private cloud cluster + /// + /// + /// A datastore in a private cloud cluster + /// + /// + /// 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, string datastoreName, Datastore datastore, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Delete a datastore in a private cloud cluster + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the private cloud + /// + /// + /// Name of the cluster in the private cloud + /// + /// + /// Name of the datastore in the private cloud cluster + /// + /// + /// 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, string datastoreName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Create or update a datastore in a private cloud cluster + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the private cloud + /// + /// + /// Name of the cluster in the private cloud + /// + /// + /// Name of the datastore in the private cloud cluster + /// + /// + /// A datastore in a private cloud cluster + /// + /// + /// 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, string datastoreName, Datastore datastore, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Delete a datastore in a private cloud cluster + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the private cloud + /// + /// + /// Name of the cluster in the private cloud + /// + /// + /// Name of the datastore in the private cloud cluster + /// + /// + /// 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, string datastoreName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// List datastores in a private cloud cluster + /// + /// + /// 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/IGlobalReachConnectionsOperations.cs b/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/IGlobalReachConnectionsOperations.cs new file mode 100644 index 000000000000..ab9136b335ac --- /dev/null +++ b/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/IGlobalReachConnectionsOperations.cs @@ -0,0 +1,214 @@ +// +// 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; + + /// + /// GlobalReachConnectionsOperations operations. + /// + public partial interface IGlobalReachConnectionsOperations + { + /// + /// List global reach connections in a private cloud + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// 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 global reach connection by name in a private cloud + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the private cloud + /// + /// + /// Name of the global reach connection 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 globalReachConnectionName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Create or update a global reach connection in a private cloud + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// The name of the private cloud. + /// + /// + /// Name of the global reach connection in the private cloud + /// + /// + /// A global reach connection 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 globalReachConnectionName, GlobalReachConnection globalReachConnection, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Delete a global reach connection in a private cloud + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the private cloud + /// + /// + /// Name of the global reach connection 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 globalReachConnectionName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Create or update a global reach connection in a private cloud + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// The name of the private cloud. + /// + /// + /// Name of the global reach connection in the private cloud + /// + /// + /// A global reach connection 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 globalReachConnectionName, GlobalReachConnection globalReachConnection, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Delete a global reach connection in a private cloud + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the private cloud + /// + /// + /// Name of the global reach connection 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 globalReachConnectionName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// List global reach connections 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/IHcxEnterpriseSitesOperations.cs b/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/IHcxEnterpriseSitesOperations.cs index c14d2eadc49e..9a41a4eec5f3 100644 --- a/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/IHcxEnterpriseSitesOperations.cs +++ b/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/IHcxEnterpriseSitesOperations.cs @@ -88,9 +88,6 @@ public partial interface IHcxEnterpriseSitesOperations /// /// Name of the HCX Enterprise Site in the private cloud /// - /// - /// The HCX Enterprise Site - /// /// /// The headers that will be added to request. /// @@ -106,7 +103,7 @@ public partial interface IHcxEnterpriseSitesOperations /// /// Thrown when a required parameter is null /// - Task> CreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string privateCloudName, string hcxEnterpriseSiteName, object hcxEnterpriseSite, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> CreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string privateCloudName, string hcxEnterpriseSiteName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Delete an HCX Enterprise Site in a private cloud /// diff --git a/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/IPrivateCloudsOperations.cs b/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/IPrivateCloudsOperations.cs index 27cc51631820..75ef5239f773 100644 --- a/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/IPrivateCloudsOperations.cs +++ b/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/IPrivateCloudsOperations.cs @@ -168,6 +168,50 @@ public partial interface IPrivateCloudsOperations /// Task DeleteWithHttpMessagesAsync(string resourceGroupName, string privateCloudName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// + /// Rotate the vCenter password + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// 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 RotateVcenterPasswordWithHttpMessagesAsync(string resourceGroupName, string privateCloudName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Rotate the NSX-T Manager password + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// 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 RotateNsxtPasswordWithHttpMessagesAsync(string resourceGroupName, string privateCloudName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// /// List the admin credentials for the private cloud /// /// @@ -271,6 +315,50 @@ public partial interface IPrivateCloudsOperations /// Task BeginDeleteWithHttpMessagesAsync(string resourceGroupName, string privateCloudName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// + /// Rotate the vCenter password + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// 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 BeginRotateVcenterPasswordWithHttpMessagesAsync(string resourceGroupName, string privateCloudName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Rotate the NSX-T Manager password + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// 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 BeginRotateNsxtPasswordWithHttpMessagesAsync(string resourceGroupName, string privateCloudName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// /// List private clouds in a resource group /// /// diff --git a/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/IScriptCmdletsOperations.cs b/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/IScriptCmdletsOperations.cs new file mode 100644 index 000000000000..08be682b082d --- /dev/null +++ b/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/IScriptCmdletsOperations.cs @@ -0,0 +1,112 @@ +// +// 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; + + /// + /// ScriptCmdletsOperations operations. + /// + public partial interface IScriptCmdletsOperations + { + /// + /// Return script cmdlet resources available for a private cloud to + /// create a script execution resource on their Private Cloud + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the private cloud + /// + /// + /// Name of the script package 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>> ListWithHttpMessagesAsync(string resourceGroupName, string privateCloudName, string scriptPackageName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Return information about a script cmdlet resource in a specific + /// package on a private cloud + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the private cloud + /// + /// + /// Name of the script package in the private cloud + /// + /// + /// Name of the script cmdlet resource in the script package 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 scriptPackageName, string scriptCmdletName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Return script cmdlet resources available for a private cloud to + /// create a script execution resource on their 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/IScriptExecutionsOperations.cs b/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/IScriptExecutionsOperations.cs new file mode 100644 index 000000000000..15e4b2815f76 --- /dev/null +++ b/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/IScriptExecutionsOperations.cs @@ -0,0 +1,246 @@ +// +// 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; + + /// + /// ScriptExecutionsOperations operations. + /// + public partial interface IScriptExecutionsOperations + { + /// + /// Get an script execution resource by name in a private cloud + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// 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 an script execution resource by name in a private cloud + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the private cloud + /// + /// + /// Name of the user-invoked script execution resource + /// + /// + /// 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 scriptExecutionName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Create or update a script execution resource in a private cloud + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// The name of the private cloud. + /// + /// + /// Name of the user-invoked script execution resource + /// + /// + /// A script running 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 scriptExecutionName, ScriptExecution scriptExecution, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Cancel a ScriptExecution in a private cloud + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the private cloud + /// + /// + /// Name of the user-invoked script execution resource + /// + /// + /// 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 scriptExecutionName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Return the logs for a script execution resource + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the private cloud + /// + /// + /// Name of the user-invoked script execution resource + /// + /// + /// Name of the desired output stream to return. If not provided, will + /// return all. An empty array will return nothing + /// + /// + /// 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> GetExecutionLogsWithHttpMessagesAsync(string resourceGroupName, string privateCloudName, string scriptExecutionName, IList scriptOutputStreamType = default(IList), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Create or update a script execution resource in a private cloud + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// The name of the private cloud. + /// + /// + /// Name of the user-invoked script execution resource + /// + /// + /// A script running 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 scriptExecutionName, ScriptExecution scriptExecution, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Cancel a ScriptExecution in a private cloud + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the private cloud + /// + /// + /// Name of the user-invoked script execution resource + /// + /// + /// 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 scriptExecutionName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Get an script execution resource by name 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/IScriptPackagesOperations.cs b/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/IScriptPackagesOperations.cs new file mode 100644 index 000000000000..e8a9e4f0522b --- /dev/null +++ b/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/IScriptPackagesOperations.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. +// +// 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; + + /// + /// ScriptPackagesOperations operations. + /// + public partial interface IScriptPackagesOperations + { + /// + /// Return script packages available for a private cloud to run on + /// their Private Cloud + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// 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)); + /// + /// Return script package available to run on an Private Cloud + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the private cloud + /// + /// + /// Name of the script package 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 scriptPackageName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Return script packages available for a private cloud to run on + /// their 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/IWorkloadNetworksOperations.cs b/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/IWorkloadNetworksOperations.cs new file mode 100644 index 000000000000..2edbd415feac --- /dev/null +++ b/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/IWorkloadNetworksOperations.cs @@ -0,0 +1,1916 @@ +// +// 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; + + /// + /// WorkloadNetworksOperations operations. + /// + public partial interface IWorkloadNetworksOperations + { + /// + /// List of segments in a private cloud workload network. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// 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>> ListSegmentsWithHttpMessagesAsync(string resourceGroupName, string privateCloudName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Get a segment by id in a private cloud workload network. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the private cloud + /// + /// + /// NSX Segment identifier. Generally the same as the Segment's display + /// name + /// + /// + /// 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> GetSegmentWithHttpMessagesAsync(string resourceGroupName, string privateCloudName, string segmentId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Create a segment by id in a private cloud workload network. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the private cloud + /// + /// + /// NSX Segment identifier. Generally the same as the Segment's display + /// name + /// + /// + /// NSX Segment + /// + /// + /// 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> CreateSegmentsWithHttpMessagesAsync(string resourceGroupName, string privateCloudName, string segmentId, WorkloadNetworkSegment workloadNetworkSegment, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Create or update a segment by id in a private cloud workload + /// network. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the private cloud + /// + /// + /// NSX Segment identifier. Generally the same as the Segment's display + /// name + /// + /// + /// NSX Segment + /// + /// + /// 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> UpdateSegmentsWithHttpMessagesAsync(string resourceGroupName, string privateCloudName, string segmentId, WorkloadNetworkSegment workloadNetworkSegment, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Delete a segment by id in a private cloud workload network. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the private cloud + /// + /// + /// NSX Segment identifier. Generally the same as the Segment's display + /// name + /// + /// + /// 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 DeleteSegmentWithHttpMessagesAsync(string resourceGroupName, string privateCloudName, string segmentId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// List dhcp in a private cloud workload network. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// 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>> ListDhcpWithHttpMessagesAsync(string resourceGroupName, string privateCloudName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Get dhcp by id in a private cloud workload network. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// NSX DHCP identifier. Generally the same as the DHCP display name + /// + /// + /// 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> GetDhcpWithHttpMessagesAsync(string resourceGroupName, string dhcpId, string privateCloudName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Create dhcp by id in a private cloud workload network. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the private cloud + /// + /// + /// NSX DHCP identifier. Generally the same as the DHCP display name + /// + /// + /// NSX DHCP + /// + /// + /// 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> CreateDhcpWithHttpMessagesAsync(string resourceGroupName, string privateCloudName, string dhcpId, WorkloadNetworkDhcp workloadNetworkDhcp, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Create or update dhcp by id in a private cloud workload network. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the private cloud + /// + /// + /// NSX DHCP identifier. Generally the same as the DHCP display name + /// + /// + /// NSX DHCP + /// + /// + /// 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> UpdateDhcpWithHttpMessagesAsync(string resourceGroupName, string privateCloudName, string dhcpId, WorkloadNetworkDhcp workloadNetworkDhcp, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Delete dhcp by id in a private cloud workload network. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the private cloud + /// + /// + /// NSX DHCP identifier. Generally the same as the DHCP display name + /// + /// + /// 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 DeleteDhcpWithHttpMessagesAsync(string resourceGroupName, string privateCloudName, string dhcpId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// List of gateways in a private cloud workload network. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// 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>> ListGatewaysWithHttpMessagesAsync(string resourceGroupName, string privateCloudName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Get a gateway by id in a private cloud workload network. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the private cloud + /// + /// + /// NSX Gateway identifier. Generally the same as the Gateway's display + /// name + /// + /// + /// 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> GetGatewayWithHttpMessagesAsync(string resourceGroupName, string privateCloudName, string gatewayId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// List of port mirroring profiles in a private cloud workload + /// network. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// 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>> ListPortMirroringWithHttpMessagesAsync(string resourceGroupName, string privateCloudName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Get a port mirroring profile by id in a private cloud workload + /// network. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the private cloud + /// + /// + /// NSX Port Mirroring identifier. Generally the same as the Port + /// Mirroring display name + /// + /// + /// 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> GetPortMirroringWithHttpMessagesAsync(string resourceGroupName, string privateCloudName, string portMirroringId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Create a port mirroring profile by id in a private cloud workload + /// network. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the private cloud + /// + /// + /// NSX Port Mirroring identifier. Generally the same as the Port + /// Mirroring display name + /// + /// + /// NSX port mirroring + /// + /// + /// 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> CreatePortMirroringWithHttpMessagesAsync(string resourceGroupName, string privateCloudName, string portMirroringId, WorkloadNetworkPortMirroring workloadNetworkPortMirroring, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Create or update a port mirroring profile by id in a private cloud + /// workload network. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the private cloud + /// + /// + /// NSX Port Mirroring identifier. Generally the same as the Port + /// Mirroring display name + /// + /// + /// NSX port mirroring + /// + /// + /// 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> UpdatePortMirroringWithHttpMessagesAsync(string resourceGroupName, string privateCloudName, string portMirroringId, WorkloadNetworkPortMirroring workloadNetworkPortMirroring, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Delete a port mirroring profile by id in a private cloud workload + /// network. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// NSX Port Mirroring identifier. Generally the same as the Port + /// Mirroring display name + /// + /// + /// 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 DeletePortMirroringWithHttpMessagesAsync(string resourceGroupName, string portMirroringId, string privateCloudName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// List of vm groups in a private cloud workload network. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// 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>> ListVMGroupsWithHttpMessagesAsync(string resourceGroupName, string privateCloudName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Get a vm group by id in a private cloud workload network. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the private cloud + /// + /// + /// NSX VM Group identifier. Generally the same as the VM Group's + /// display name + /// + /// + /// 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> GetVMGroupWithHttpMessagesAsync(string resourceGroupName, string privateCloudName, string vmGroupId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Create a vm group by id in a private cloud workload network. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the private cloud + /// + /// + /// NSX VM Group identifier. Generally the same as the VM Group's + /// display name + /// + /// + /// NSX VM Group + /// + /// + /// 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> CreateVMGroupWithHttpMessagesAsync(string resourceGroupName, string privateCloudName, string vmGroupId, WorkloadNetworkVMGroup workloadNetworkVMGroup, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Create or update a vm group by id in a private cloud workload + /// network. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the private cloud + /// + /// + /// NSX VM Group identifier. Generally the same as the VM Group's + /// display name + /// + /// + /// NSX VM Group + /// + /// + /// 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> UpdateVMGroupWithHttpMessagesAsync(string resourceGroupName, string privateCloudName, string vmGroupId, WorkloadNetworkVMGroup workloadNetworkVMGroup, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Delete a vm group by id in a private cloud workload network. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// NSX VM Group identifier. Generally the same as the VM Group's + /// display name + /// + /// + /// 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 DeleteVMGroupWithHttpMessagesAsync(string resourceGroupName, string vmGroupId, string privateCloudName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// List of virtual machines in a private cloud workload network. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// 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>> ListVirtualMachinesWithHttpMessagesAsync(string resourceGroupName, string privateCloudName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Get a virtual machine by id in a private cloud workload network. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the private cloud + /// + /// + /// Virtual Machine identifier + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> GetVirtualMachineWithHttpMessagesAsync(string resourceGroupName, string privateCloudName, string virtualMachineId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// List of DNS services in a private cloud workload network. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// 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>> ListDnsServicesWithHttpMessagesAsync(string resourceGroupName, string privateCloudName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Get a DNS service by id in a private cloud workload network. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the private cloud + /// + /// + /// NSX DNS Service identifier. Generally the same as the DNS Service's + /// display name + /// + /// + /// 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> GetDnsServiceWithHttpMessagesAsync(string resourceGroupName, string privateCloudName, string dnsServiceId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Create a DNS service by id in a private cloud workload network. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the private cloud + /// + /// + /// NSX DNS Service identifier. Generally the same as the DNS Service's + /// display name + /// + /// + /// NSX DNS Service + /// + /// + /// 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> CreateDnsServiceWithHttpMessagesAsync(string resourceGroupName, string privateCloudName, string dnsServiceId, WorkloadNetworkDnsService workloadNetworkDnsService, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Create or update a DNS service by id in a private cloud workload + /// network. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the private cloud + /// + /// + /// NSX DNS Service identifier. Generally the same as the DNS Service's + /// display name + /// + /// + /// NSX DNS Service + /// + /// + /// 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> UpdateDnsServiceWithHttpMessagesAsync(string resourceGroupName, string privateCloudName, string dnsServiceId, WorkloadNetworkDnsService workloadNetworkDnsService, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Delete a DNS service by id in a private cloud workload network. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// NSX DNS Service identifier. Generally the same as the DNS Service's + /// display name + /// + /// + /// 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 DeleteDnsServiceWithHttpMessagesAsync(string resourceGroupName, string dnsServiceId, string privateCloudName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// List of DNS zones in a private cloud workload network. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// 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>> ListDnsZonesWithHttpMessagesAsync(string resourceGroupName, string privateCloudName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Get a DNS zone by id in a private cloud workload network. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the private cloud + /// + /// + /// NSX DNS Zone identifier. Generally the same as the DNS Zone's + /// display name + /// + /// + /// 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> GetDnsZoneWithHttpMessagesAsync(string resourceGroupName, string privateCloudName, string dnsZoneId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Create a DNS zone by id in a private cloud workload network. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the private cloud + /// + /// + /// NSX DNS Zone identifier. Generally the same as the DNS Zone's + /// display name + /// + /// + /// NSX DNS Zone + /// + /// + /// 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> CreateDnsZoneWithHttpMessagesAsync(string resourceGroupName, string privateCloudName, string dnsZoneId, WorkloadNetworkDnsZone workloadNetworkDnsZone, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Create or update a DNS zone by id in a private cloud workload + /// network. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the private cloud + /// + /// + /// NSX DNS Zone identifier. Generally the same as the DNS Zone's + /// display name + /// + /// + /// NSX DNS Zone + /// + /// + /// 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> UpdateDnsZoneWithHttpMessagesAsync(string resourceGroupName, string privateCloudName, string dnsZoneId, WorkloadNetworkDnsZone workloadNetworkDnsZone, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Delete a DNS zone by id in a private cloud workload network. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// NSX DNS Zone identifier. Generally the same as the DNS Zone's + /// display name + /// + /// + /// 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 DeleteDnsZoneWithHttpMessagesAsync(string resourceGroupName, string dnsZoneId, string privateCloudName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// List of Public IP Blocks in a private cloud workload network. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// 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>> ListPublicIPsWithHttpMessagesAsync(string resourceGroupName, string privateCloudName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Get a Public IP Block by id in a private cloud workload network. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the private cloud + /// + /// + /// NSX Public IP Block identifier. Generally the same as the Public IP + /// Block's display name + /// + /// + /// 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> GetPublicIPWithHttpMessagesAsync(string resourceGroupName, string privateCloudName, string publicIPId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Create a Public IP Block by id in a private cloud workload network. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the private cloud + /// + /// + /// NSX Public IP Block identifier. Generally the same as the Public IP + /// Block's display name + /// + /// + /// NSX Public IP Block + /// + /// + /// 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> CreatePublicIPWithHttpMessagesAsync(string resourceGroupName, string privateCloudName, string publicIPId, WorkloadNetworkPublicIP workloadNetworkPublicIP, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Delete a Public IP Block by id in a private cloud workload network. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// NSX Public IP Block identifier. Generally the same as the Public IP + /// Block's display name + /// + /// + /// 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 DeletePublicIPWithHttpMessagesAsync(string resourceGroupName, string publicIPId, string privateCloudName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Create a segment by id in a private cloud workload network. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the private cloud + /// + /// + /// NSX Segment identifier. Generally the same as the Segment's display + /// name + /// + /// + /// NSX Segment + /// + /// + /// 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> BeginCreateSegmentsWithHttpMessagesAsync(string resourceGroupName, string privateCloudName, string segmentId, WorkloadNetworkSegment workloadNetworkSegment, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Create or update a segment by id in a private cloud workload + /// network. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the private cloud + /// + /// + /// NSX Segment identifier. Generally the same as the Segment's display + /// name + /// + /// + /// NSX Segment + /// + /// + /// 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> BeginUpdateSegmentsWithHttpMessagesAsync(string resourceGroupName, string privateCloudName, string segmentId, WorkloadNetworkSegment workloadNetworkSegment, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Delete a segment by id in a private cloud workload network. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the private cloud + /// + /// + /// NSX Segment identifier. Generally the same as the Segment's display + /// name + /// + /// + /// 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 BeginDeleteSegmentWithHttpMessagesAsync(string resourceGroupName, string privateCloudName, string segmentId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Create dhcp by id in a private cloud workload network. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the private cloud + /// + /// + /// NSX DHCP identifier. Generally the same as the DHCP display name + /// + /// + /// NSX DHCP + /// + /// + /// 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> BeginCreateDhcpWithHttpMessagesAsync(string resourceGroupName, string privateCloudName, string dhcpId, WorkloadNetworkDhcp workloadNetworkDhcp, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Create or update dhcp by id in a private cloud workload network. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the private cloud + /// + /// + /// NSX DHCP identifier. Generally the same as the DHCP display name + /// + /// + /// NSX DHCP + /// + /// + /// 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> BeginUpdateDhcpWithHttpMessagesAsync(string resourceGroupName, string privateCloudName, string dhcpId, WorkloadNetworkDhcp workloadNetworkDhcp, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Delete dhcp by id in a private cloud workload network. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the private cloud + /// + /// + /// NSX DHCP identifier. Generally the same as the DHCP display name + /// + /// + /// 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 BeginDeleteDhcpWithHttpMessagesAsync(string resourceGroupName, string privateCloudName, string dhcpId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Create a port mirroring profile by id in a private cloud workload + /// network. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the private cloud + /// + /// + /// NSX Port Mirroring identifier. Generally the same as the Port + /// Mirroring display name + /// + /// + /// NSX port mirroring + /// + /// + /// 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> BeginCreatePortMirroringWithHttpMessagesAsync(string resourceGroupName, string privateCloudName, string portMirroringId, WorkloadNetworkPortMirroring workloadNetworkPortMirroring, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Create or update a port mirroring profile by id in a private cloud + /// workload network. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the private cloud + /// + /// + /// NSX Port Mirroring identifier. Generally the same as the Port + /// Mirroring display name + /// + /// + /// NSX port mirroring + /// + /// + /// 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> BeginUpdatePortMirroringWithHttpMessagesAsync(string resourceGroupName, string privateCloudName, string portMirroringId, WorkloadNetworkPortMirroring workloadNetworkPortMirroring, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Delete a port mirroring profile by id in a private cloud workload + /// network. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// NSX Port Mirroring identifier. Generally the same as the Port + /// Mirroring display name + /// + /// + /// 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 BeginDeletePortMirroringWithHttpMessagesAsync(string resourceGroupName, string portMirroringId, string privateCloudName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Create a vm group by id in a private cloud workload network. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the private cloud + /// + /// + /// NSX VM Group identifier. Generally the same as the VM Group's + /// display name + /// + /// + /// NSX VM Group + /// + /// + /// 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> BeginCreateVMGroupWithHttpMessagesAsync(string resourceGroupName, string privateCloudName, string vmGroupId, WorkloadNetworkVMGroup workloadNetworkVMGroup, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Create or update a vm group by id in a private cloud workload + /// network. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the private cloud + /// + /// + /// NSX VM Group identifier. Generally the same as the VM Group's + /// display name + /// + /// + /// NSX VM Group + /// + /// + /// 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> BeginUpdateVMGroupWithHttpMessagesAsync(string resourceGroupName, string privateCloudName, string vmGroupId, WorkloadNetworkVMGroup workloadNetworkVMGroup, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Delete a vm group by id in a private cloud workload network. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// NSX VM Group identifier. Generally the same as the VM Group's + /// display name + /// + /// + /// 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 BeginDeleteVMGroupWithHttpMessagesAsync(string resourceGroupName, string vmGroupId, string privateCloudName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Create a DNS service by id in a private cloud workload network. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the private cloud + /// + /// + /// NSX DNS Service identifier. Generally the same as the DNS Service's + /// display name + /// + /// + /// NSX DNS Service + /// + /// + /// 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> BeginCreateDnsServiceWithHttpMessagesAsync(string resourceGroupName, string privateCloudName, string dnsServiceId, WorkloadNetworkDnsService workloadNetworkDnsService, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Create or update a DNS service by id in a private cloud workload + /// network. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the private cloud + /// + /// + /// NSX DNS Service identifier. Generally the same as the DNS Service's + /// display name + /// + /// + /// NSX DNS Service + /// + /// + /// 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> BeginUpdateDnsServiceWithHttpMessagesAsync(string resourceGroupName, string privateCloudName, string dnsServiceId, WorkloadNetworkDnsService workloadNetworkDnsService, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Delete a DNS service by id in a private cloud workload network. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// NSX DNS Service identifier. Generally the same as the DNS Service's + /// display name + /// + /// + /// 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 BeginDeleteDnsServiceWithHttpMessagesAsync(string resourceGroupName, string dnsServiceId, string privateCloudName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Create a DNS zone by id in a private cloud workload network. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the private cloud + /// + /// + /// NSX DNS Zone identifier. Generally the same as the DNS Zone's + /// display name + /// + /// + /// NSX DNS Zone + /// + /// + /// 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> BeginCreateDnsZoneWithHttpMessagesAsync(string resourceGroupName, string privateCloudName, string dnsZoneId, WorkloadNetworkDnsZone workloadNetworkDnsZone, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Create or update a DNS zone by id in a private cloud workload + /// network. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the private cloud + /// + /// + /// NSX DNS Zone identifier. Generally the same as the DNS Zone's + /// display name + /// + /// + /// NSX DNS Zone + /// + /// + /// 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> BeginUpdateDnsZoneWithHttpMessagesAsync(string resourceGroupName, string privateCloudName, string dnsZoneId, WorkloadNetworkDnsZone workloadNetworkDnsZone, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Delete a DNS zone by id in a private cloud workload network. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// NSX DNS Zone identifier. Generally the same as the DNS Zone's + /// display name + /// + /// + /// 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 BeginDeleteDnsZoneWithHttpMessagesAsync(string resourceGroupName, string dnsZoneId, string privateCloudName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Create a Public IP Block by id in a private cloud workload network. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the private cloud + /// + /// + /// NSX Public IP Block identifier. Generally the same as the Public IP + /// Block's display name + /// + /// + /// NSX Public IP Block + /// + /// + /// 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> BeginCreatePublicIPWithHttpMessagesAsync(string resourceGroupName, string privateCloudName, string publicIPId, WorkloadNetworkPublicIP workloadNetworkPublicIP, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Delete a Public IP Block by id in a private cloud workload network. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// NSX Public IP Block identifier. Generally the same as the Public IP + /// Block's display name + /// + /// + /// 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 BeginDeletePublicIPWithHttpMessagesAsync(string resourceGroupName, string publicIPId, string privateCloudName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// List of segments in a private cloud workload network. + /// + /// + /// 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>> ListSegmentsNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// List dhcp in a private cloud workload network. + /// + /// + /// 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>> ListDhcpNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// List of gateways in a private cloud workload network. + /// + /// + /// 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>> ListGatewaysNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// List of port mirroring profiles in a private cloud workload + /// network. + /// + /// + /// 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>> ListPortMirroringNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// List of vm groups in a private cloud workload network. + /// + /// + /// 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>> ListVMGroupsNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// List of virtual machines in a private cloud workload network. + /// + /// + /// 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>> ListVirtualMachinesNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// List of DNS services in a private cloud workload network. + /// + /// + /// 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>> ListDnsServicesNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// List of DNS zones in a private cloud workload network. + /// + /// + /// 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>> ListDnsZonesNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// List of Public IP Blocks in a private cloud workload network. + /// + /// + /// 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>> ListPublicIPsNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + } +} diff --git a/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/Models/Addon.cs b/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/Models/Addon.cs new file mode 100644 index 000000000000..9292ce7d47df --- /dev/null +++ b/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/Models/Addon.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; + + /// + /// An addon resource + /// + public partial class Addon : Resource + { + /// + /// Initializes a new instance of the Addon class. + /// + public Addon() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the Addon class. + /// + /// Resource ID. + /// Resource name. + /// Resource type. + /// The properties of an addon + /// resource + public Addon(string id = default(string), string name = default(string), string type = default(string), AddonProperties properties = default(AddonProperties)) + : 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 an addon resource + /// + [JsonProperty(PropertyName = "properties")] + public AddonProperties Properties { get; set; } + + } +} diff --git a/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/Models/AddonHcxProperties.cs b/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/Models/AddonHcxProperties.cs new file mode 100644 index 000000000000..6925ebc72b24 --- /dev/null +++ b/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/Models/AddonHcxProperties.cs @@ -0,0 +1,72 @@ +// +// 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 properties of an HCX addon + /// + [Newtonsoft.Json.JsonObject("HCX")] + public partial class AddonHcxProperties : AddonProperties + { + /// + /// Initializes a new instance of the AddonHcxProperties class. + /// + public AddonHcxProperties() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the AddonHcxProperties class. + /// + /// The HCX offer, example VMware MaaS Cloud + /// Provider (Enterprise) + /// The state of the addon + /// provisioning. Possible values include: 'Succeeded', 'Failed', + /// 'Cancelled', 'Building', 'Deleting', 'Updating' + public AddonHcxProperties(string offer, string provisioningState = default(string)) + : base(provisioningState) + { + Offer = offer; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the HCX offer, example VMware MaaS Cloud Provider + /// (Enterprise) + /// + [JsonProperty(PropertyName = "offer")] + public string Offer { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (Offer == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "Offer"); + } + } + } +} diff --git a/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/Models/AddonProperties.cs b/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/Models/AddonProperties.cs new file mode 100644 index 000000000000..5e77708dd55f --- /dev/null +++ b/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/Models/AddonProperties.cs @@ -0,0 +1,55 @@ +// +// 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; + + /// + /// The properties of an addon + /// + public partial class AddonProperties + { + /// + /// Initializes a new instance of the AddonProperties class. + /// + public AddonProperties() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the AddonProperties class. + /// + /// The state of the addon + /// provisioning. Possible values include: 'Succeeded', 'Failed', + /// 'Cancelled', 'Building', 'Deleting', 'Updating' + public AddonProperties(string provisioningState = default(string)) + { + ProvisioningState = provisioningState; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets the state of the addon provisioning. Possible values include: + /// 'Succeeded', 'Failed', 'Cancelled', 'Building', 'Deleting', + /// 'Updating' + /// + [JsonProperty(PropertyName = "provisioningState")] + public string ProvisioningState { get; private set; } + + } +} diff --git a/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/Models/AddonProvisioningState.cs b/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/Models/AddonProvisioningState.cs new file mode 100644 index 000000000000..9aab6aecd2d4 --- /dev/null +++ b/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/Models/AddonProvisioningState.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 AddonProvisioningState. + /// + public static class AddonProvisioningState + { + public const string Succeeded = "Succeeded"; + public const string Failed = "Failed"; + public const string Cancelled = "Cancelled"; + public const string Building = "Building"; + public const string Deleting = "Deleting"; + public const string Updating = "Updating"; + } +} diff --git a/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/Models/AddonSrmProperties.cs b/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/Models/AddonSrmProperties.cs new file mode 100644 index 000000000000..72d105e4f0cc --- /dev/null +++ b/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/Models/AddonSrmProperties.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.Models +{ + using Microsoft.Rest; + using Newtonsoft.Json; + using System.Linq; + + /// + /// The properties of a Site Recovery Manager (SRM) addon + /// + [Newtonsoft.Json.JsonObject("SRM")] + public partial class AddonSrmProperties : AddonProperties + { + /// + /// Initializes a new instance of the AddonSrmProperties class. + /// + public AddonSrmProperties() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the AddonSrmProperties class. + /// + /// The Site Recovery Manager (SRM) + /// license + /// The state of the addon + /// provisioning. Possible values include: 'Succeeded', 'Failed', + /// 'Cancelled', 'Building', 'Deleting', 'Updating' + public AddonSrmProperties(string licenseKey, string provisioningState = default(string)) + : base(provisioningState) + { + LicenseKey = licenseKey; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the Site Recovery Manager (SRM) license + /// + [JsonProperty(PropertyName = "licenseKey")] + public string LicenseKey { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (LicenseKey == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "LicenseKey"); + } + } + } +} diff --git a/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/Models/AddonVrProperties.cs b/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/Models/AddonVrProperties.cs new file mode 100644 index 000000000000..dfcb5ac3fd90 --- /dev/null +++ b/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/Models/AddonVrProperties.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; + + /// + /// The properties of a vSphere Replication (VR) addon + /// + [Newtonsoft.Json.JsonObject("VR")] + public partial class AddonVrProperties : AddonProperties + { + /// + /// Initializes a new instance of the AddonVrProperties class. + /// + public AddonVrProperties() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the AddonVrProperties class. + /// + /// The vSphere Replication Server (VRS) + /// count + /// The state of the addon + /// provisioning. Possible values include: 'Succeeded', 'Failed', + /// 'Cancelled', 'Building', 'Deleting', 'Updating' + public AddonVrProperties(int vrsCount, string provisioningState = default(string)) + : base(provisioningState) + { + VrsCount = vrsCount; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the vSphere Replication Server (VRS) count + /// + [JsonProperty(PropertyName = "vrsCount")] + public int VrsCount { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + //Nothing to validate + } + } +} diff --git a/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/Models/CloudLink.cs b/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/Models/CloudLink.cs new file mode 100644 index 000000000000..d223ef852417 --- /dev/null +++ b/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/Models/CloudLink.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.Models +{ + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + using Newtonsoft.Json; + using System.Linq; + + /// + /// A cloud link resource + /// + [Rest.Serialization.JsonTransformation] + public partial class CloudLink : Resource + { + /// + /// Initializes a new instance of the CloudLink class. + /// + public CloudLink() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the CloudLink class. + /// + /// Resource ID. + /// Resource name. + /// Resource type. + /// The state of the cloud link. Possible values + /// include: 'Active', 'Building', 'Deleting', 'Failed', + /// 'Disconnected' + /// Identifier of the other private cloud + /// participating in the link. + public CloudLink(string id = default(string), string name = default(string), string type = default(string), string status = default(string), string linkedCloud = default(string)) + : base(id, name, type) + { + Status = status; + LinkedCloud = linkedCloud; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets the state of the cloud link. Possible values include: + /// 'Active', 'Building', 'Deleting', 'Failed', 'Disconnected' + /// + [JsonProperty(PropertyName = "properties.status")] + public string Status { get; private set; } + + /// + /// Gets or sets identifier of the other private cloud participating in + /// the link. + /// + [JsonProperty(PropertyName = "properties.linkedCloud")] + public string LinkedCloud { get; set; } + + } +} diff --git a/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/Models/CloudLinkStatus.cs b/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/Models/CloudLinkStatus.cs new file mode 100644 index 000000000000..ca62b15f68a6 --- /dev/null +++ b/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/Models/CloudLinkStatus.cs @@ -0,0 +1,25 @@ +// +// 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 CloudLinkStatus. + /// + public static class CloudLinkStatus + { + public const string Active = "Active"; + public const string Building = "Building"; + public const string Deleting = "Deleting"; + public const string Failed = "Failed"; + public const string Disconnected = "Disconnected"; + } +} diff --git a/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/Models/CommonClusterProperties.cs b/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/Models/CommonClusterProperties.cs new file mode 100644 index 000000000000..4a348eddc63f --- /dev/null +++ b/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/Models/CommonClusterProperties.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.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// The common properties of a cluster + /// + public partial class CommonClusterProperties + { + /// + /// Initializes a new instance of the CommonClusterProperties class. + /// + public CommonClusterProperties() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the CommonClusterProperties class. + /// + /// The cluster size + /// The state of the cluster + /// provisioning. Possible values include: 'Succeeded', 'Failed', + /// 'Cancelled', 'Deleting', 'Updating' + /// The identity + /// The hosts + public CommonClusterProperties(int? clusterSize = default(int?), string provisioningState = default(string), int? clusterId = default(int?), IList hosts = default(IList)) + { + ClusterSize = clusterSize; + ProvisioningState = provisioningState; + ClusterId = clusterId; + Hosts = hosts; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the cluster size + /// + [JsonProperty(PropertyName = "clusterSize")] + public int? ClusterSize { get; set; } + + /// + /// Gets or sets the state of the cluster provisioning. Possible values + /// include: 'Succeeded', 'Failed', 'Cancelled', 'Deleting', 'Updating' + /// + [JsonProperty(PropertyName = "provisioningState")] + public string ProvisioningState { get; set; } + + /// + /// Gets the identity + /// + [JsonProperty(PropertyName = "clusterId")] + public int? ClusterId { get; private 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/Datastore.cs b/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/Models/Datastore.cs new file mode 100644 index 000000000000..5411b1db16f9 --- /dev/null +++ b/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/Models/Datastore.cs @@ -0,0 +1,95 @@ +// +// 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.Serialization; + using Newtonsoft.Json; + using System.Linq; + + /// + /// A datastore resource + /// + [Rest.Serialization.JsonTransformation] + public partial class Datastore : Resource + { + /// + /// Initializes a new instance of the Datastore class. + /// + public Datastore() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the Datastore class. + /// + /// Resource ID. + /// Resource name. + /// Resource type. + /// The state of the datastore + /// provisioning. Possible values include: 'Succeeded', 'Failed', + /// 'Cancelled', 'Pending', 'Creating', 'Updating', 'Deleting' + /// An Azure NetApp Files volume + /// An iSCSI volume + public Datastore(string id = default(string), string name = default(string), string type = default(string), string provisioningState = default(string), NetAppVolume netAppVolume = default(NetAppVolume), DiskPoolVolume diskPoolVolume = default(DiskPoolVolume)) + : base(id, name, type) + { + ProvisioningState = provisioningState; + NetAppVolume = netAppVolume; + DiskPoolVolume = diskPoolVolume; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets the state of the datastore provisioning. Possible values + /// include: 'Succeeded', 'Failed', 'Cancelled', 'Pending', 'Creating', + /// 'Updating', 'Deleting' + /// + [JsonProperty(PropertyName = "properties.provisioningState")] + public string ProvisioningState { get; private set; } + + /// + /// Gets or sets an Azure NetApp Files volume + /// + [JsonProperty(PropertyName = "properties.netAppVolume")] + public NetAppVolume NetAppVolume { get; set; } + + /// + /// Gets or sets an iSCSI volume + /// + [JsonProperty(PropertyName = "properties.diskPoolVolume")] + public DiskPoolVolume DiskPoolVolume { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (NetAppVolume != null) + { + NetAppVolume.Validate(); + } + if (DiskPoolVolume != null) + { + DiskPoolVolume.Validate(); + } + } + } +} diff --git a/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/Models/DatastoreProvisioningState.cs b/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/Models/DatastoreProvisioningState.cs new file mode 100644 index 000000000000..6820829b58cf --- /dev/null +++ b/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/Models/DatastoreProvisioningState.cs @@ -0,0 +1,27 @@ +// +// 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 DatastoreProvisioningState. + /// + public static class DatastoreProvisioningState + { + public const string Succeeded = "Succeeded"; + public const string Failed = "Failed"; + public const string Cancelled = "Cancelled"; + public const string Pending = "Pending"; + public const string Creating = "Creating"; + public const string Updating = "Updating"; + public const string Deleting = "Deleting"; + } +} diff --git a/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/Models/DiskPoolVolume.cs b/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/Models/DiskPoolVolume.cs new file mode 100644 index 000000000000..5a509417b8eb --- /dev/null +++ b/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/Models/DiskPoolVolume.cs @@ -0,0 +1,99 @@ +// +// 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; + + /// + /// An iSCSI volume from Microsoft.StoragePool provider + /// + public partial class DiskPoolVolume + { + /// + /// Initializes a new instance of the DiskPoolVolume class. + /// + public DiskPoolVolume() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the DiskPoolVolume class. + /// + /// Azure resource ID of the iSCSI + /// target + /// Name of the LUN to be used for + /// datastore + /// Mode that describes whether the LUN has + /// to be mounted as a datastore or attached as a LUN. Possible values + /// include: 'MOUNT', 'ATTACH' + /// Device path + public DiskPoolVolume(string targetId, string lunName, string mountOption = default(string), string path = default(string)) + { + TargetId = targetId; + LunName = lunName; + MountOption = mountOption; + Path = path; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets azure resource ID of the iSCSI target + /// + [JsonProperty(PropertyName = "targetId")] + public string TargetId { get; set; } + + /// + /// Gets or sets name of the LUN to be used for datastore + /// + [JsonProperty(PropertyName = "lunName")] + public string LunName { get; set; } + + /// + /// Gets or sets mode that describes whether the LUN has to be mounted + /// as a datastore or attached as a LUN. Possible values include: + /// 'MOUNT', 'ATTACH' + /// + [JsonProperty(PropertyName = "mountOption")] + public string MountOption { get; set; } + + /// + /// Gets device path + /// + [JsonProperty(PropertyName = "path")] + public string Path { get; private set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (TargetId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "TargetId"); + } + if (LunName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "LunName"); + } + } + } +} diff --git a/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/Models/DnsServiceLogLevelEnum.cs b/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/Models/DnsServiceLogLevelEnum.cs new file mode 100644 index 000000000000..bba10d46957b --- /dev/null +++ b/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/Models/DnsServiceLogLevelEnum.cs @@ -0,0 +1,25 @@ +// +// 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 DnsServiceLogLevelEnum. + /// + public static class DnsServiceLogLevelEnum + { + public const string DEBUG = "DEBUG"; + public const string INFO = "INFO"; + public const string WARNING = "WARNING"; + public const string ERROR = "ERROR"; + public const string FATAL = "FATAL"; + } +} diff --git a/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/Models/DnsServiceStatusEnum.cs b/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/Models/DnsServiceStatusEnum.cs new file mode 100644 index 000000000000..ee1e7c60339a --- /dev/null +++ b/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/Models/DnsServiceStatusEnum.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 DnsServiceStatusEnum. + /// + public static class DnsServiceStatusEnum + { + public const string SUCCESS = "SUCCESS"; + public const string FAILURE = "FAILURE"; + } +} diff --git a/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/Models/GlobalReachConnection.cs b/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/Models/GlobalReachConnection.cs new file mode 100644 index 000000000000..1b8a42075131 --- /dev/null +++ b/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/Models/GlobalReachConnection.cs @@ -0,0 +1,105 @@ +// +// 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.Serialization; + using Newtonsoft.Json; + using System.Linq; + + /// + /// A global reach connection resource + /// + [Rest.Serialization.JsonTransformation] + public partial class GlobalReachConnection : Resource + { + /// + /// Initializes a new instance of the GlobalReachConnection class. + /// + public GlobalReachConnection() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the GlobalReachConnection class. + /// + /// Resource ID. + /// Resource name. + /// Resource type. + /// The state of the ExpressRoute + /// Circuit Authorization provisioning. Possible values include: + /// 'Succeeded', 'Failed', 'Updating' + /// The network used for global reach + /// carved out from the original network block provided for the private + /// cloud + /// Authorization key from the peer + /// express route used for the global reach connection + /// The connection status of the + /// global reach connection. Possible values include: 'Connected', + /// 'Connecting', 'Disconnected' + /// Identifier of the + /// ExpressRoute Circuit to peer with in the global reach + /// connection + public GlobalReachConnection(string id = default(string), string name = default(string), string type = default(string), string provisioningState = default(string), string addressPrefix = default(string), string authorizationKey = default(string), string circuitConnectionStatus = default(string), string peerExpressRouteCircuit = default(string)) + : base(id, name, type) + { + ProvisioningState = provisioningState; + AddressPrefix = addressPrefix; + AuthorizationKey = authorizationKey; + CircuitConnectionStatus = circuitConnectionStatus; + PeerExpressRouteCircuit = peerExpressRouteCircuit; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets the state of the ExpressRoute Circuit Authorization + /// provisioning. Possible values include: 'Succeeded', 'Failed', + /// 'Updating' + /// + [JsonProperty(PropertyName = "properties.provisioningState")] + public string ProvisioningState { get; private set; } + + /// + /// Gets the network used for global reach carved out from the original + /// network block provided for the private cloud + /// + [JsonProperty(PropertyName = "properties.addressPrefix")] + public string AddressPrefix { get; private set; } + + /// + /// Gets or sets authorization key from the peer express route used for + /// the global reach connection + /// + [JsonProperty(PropertyName = "properties.authorizationKey")] + public string AuthorizationKey { get; set; } + + /// + /// Gets the connection status of the global reach connection. Possible + /// values include: 'Connected', 'Connecting', 'Disconnected' + /// + [JsonProperty(PropertyName = "properties.circuitConnectionStatus")] + public string CircuitConnectionStatus { get; private set; } + + /// + /// Gets or sets identifier of the ExpressRoute Circuit to peer with in + /// the global reach connection + /// + [JsonProperty(PropertyName = "properties.peerExpressRouteCircuit")] + public string PeerExpressRouteCircuit { get; set; } + + } +} diff --git a/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/Models/GlobalReachConnectionProvisioningState.cs b/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/Models/GlobalReachConnectionProvisioningState.cs new file mode 100644 index 000000000000..759acff8e4c4 --- /dev/null +++ b/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/Models/GlobalReachConnectionProvisioningState.cs @@ -0,0 +1,23 @@ +// +// 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 GlobalReachConnectionProvisioningState. + /// + public static class GlobalReachConnectionProvisioningState + { + public const string Succeeded = "Succeeded"; + public const string Failed = "Failed"; + public const string Updating = "Updating"; + } +} diff --git a/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/Models/GlobalReachConnectionStatus.cs b/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/Models/GlobalReachConnectionStatus.cs new file mode 100644 index 000000000000..65e388184c8e --- /dev/null +++ b/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/Models/GlobalReachConnectionStatus.cs @@ -0,0 +1,23 @@ +// +// 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 GlobalReachConnectionStatus. + /// + public static class GlobalReachConnectionStatus + { + public const string Connected = "Connected"; + public const string Connecting = "Connecting"; + public const string Disconnected = "Disconnected"; + } +} diff --git a/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/Models/ManagementCluster.cs b/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/Models/ManagementCluster.cs index fe051ed0ed66..f02200e4a0b7 100644 --- a/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/Models/ManagementCluster.cs +++ b/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/Models/ManagementCluster.cs @@ -10,15 +10,14 @@ 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 + /// The properties of a management cluster /// - public partial class ManagementCluster : ClusterUpdateProperties + public partial class ManagementCluster : CommonClusterProperties { /// /// Initializes a new instance of the ManagementCluster class. @@ -38,11 +37,8 @@ public ManagementCluster() /// The identity /// The hosts public ManagementCluster(int? clusterSize = default(int?), string provisioningState = default(string), int? clusterId = default(int?), IList hosts = default(IList)) - : base(clusterSize) + : base(clusterSize, provisioningState, clusterId, hosts) { - ProvisioningState = provisioningState; - ClusterId = clusterId; - Hosts = hosts; CustomInit(); } @@ -51,24 +47,5 @@ public ManagementCluster() /// partial void CustomInit(); - /// - /// Gets or sets the state of the cluster provisioning. Possible values - /// include: 'Succeeded', 'Failed', 'Cancelled', 'Deleting', 'Updating' - /// - [JsonProperty(PropertyName = "provisioningState")] - public string ProvisioningState { get; set; } - - /// - /// Gets the identity - /// - [JsonProperty(PropertyName = "clusterId")] - public int? ClusterId { get; private 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/MetricDimension.cs b/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/Models/MetricDimension.cs index 56d2fed3a036..9b4fb911f175 100644 --- a/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/Models/MetricDimension.cs +++ b/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/Models/MetricDimension.cs @@ -32,10 +32,17 @@ public MetricDimension() /// Name of the dimension /// Localized friendly display name of the /// dimension - public MetricDimension(string name = default(string), string displayName = default(string)) + /// Name of the dimension as it appears in + /// MDM + /// A boolean flag indicating + /// whether this dimension should be included for the shoebox export + /// scenario + public MetricDimension(string name = default(string), string displayName = default(string), string internalName = default(string), bool? toBeExportedForShoebox = default(bool?)) { Name = name; DisplayName = displayName; + InternalName = internalName; + ToBeExportedForShoebox = toBeExportedForShoebox; CustomInit(); } @@ -56,5 +63,18 @@ public MetricDimension() [JsonProperty(PropertyName = "displayName")] public string DisplayName { get; set; } + /// + /// Gets or sets name of the dimension as it appears in MDM + /// + [JsonProperty(PropertyName = "internalName")] + public string InternalName { get; set; } + + /// + /// Gets or sets a boolean flag indicating whether this dimension + /// should be included for the shoebox export scenario + /// + [JsonProperty(PropertyName = "toBeExportedForShoebox")] + public bool? ToBeExportedForShoebox { get; set; } + } } diff --git a/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/Models/MountOptionEnum.cs b/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/Models/MountOptionEnum.cs new file mode 100644 index 000000000000..74b24c90d19e --- /dev/null +++ b/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/Models/MountOptionEnum.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 MountOptionEnum. + /// + public static class MountOptionEnum + { + public const string MOUNT = "MOUNT"; + public const string ATTACH = "ATTACH"; + } +} diff --git a/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/Models/NetAppVolume.cs b/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/Models/NetAppVolume.cs new file mode 100644 index 000000000000..4b20cc5dc9f1 --- /dev/null +++ b/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/Models/NetAppVolume.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; + + /// + /// An Azure NetApp Files volume from Microsoft.NetApp provider + /// + public partial class NetAppVolume + { + /// + /// Initializes a new instance of the NetAppVolume class. + /// + public NetAppVolume() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the NetAppVolume class. + /// + /// Azure resource ID of the NetApp volume + public NetAppVolume(string id) + { + Id = id; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets azure resource ID of the NetApp volume + /// + [JsonProperty(PropertyName = "id")] + public string Id { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (Id == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "Id"); + } + } + } +} diff --git a/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/Models/OptionalParamEnum.cs b/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/Models/OptionalParamEnum.cs new file mode 100644 index 000000000000..8fe4139538b1 --- /dev/null +++ b/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/Models/OptionalParamEnum.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 OptionalParamEnum. + /// + public static class OptionalParamEnum + { + public const string Optional = "Optional"; + public const string Required = "Required"; + } +} diff --git a/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/Models/PSCredentialExecutionParameter.cs b/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/Models/PSCredentialExecutionParameter.cs new file mode 100644 index 000000000000..e283c9350a30 --- /dev/null +++ b/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/Models/PSCredentialExecutionParameter.cs @@ -0,0 +1,74 @@ +// +// 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 powershell credential object + /// + [Newtonsoft.Json.JsonObject("Credential")] + public partial class PSCredentialExecutionParameter : ScriptExecutionParameter + { + /// + /// Initializes a new instance of the PSCredentialExecutionParameter + /// class. + /// + public PSCredentialExecutionParameter() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the PSCredentialExecutionParameter + /// class. + /// + /// The parameter name + /// username for login + /// password for login + public PSCredentialExecutionParameter(string name, string username = default(string), string password = default(string)) + : base(name) + { + Username = username; + Password = password; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets username for login + /// + [JsonProperty(PropertyName = "username")] + public string Username { get; set; } + + /// + /// Gets or sets password for login + /// + [JsonProperty(PropertyName = "password")] + public string Password { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public override void Validate() + { + base.Validate(); + } + } +} diff --git a/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/Models/PortMirroringDirectionEnum.cs b/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/Models/PortMirroringDirectionEnum.cs new file mode 100644 index 000000000000..793ccd3553c0 --- /dev/null +++ b/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/Models/PortMirroringDirectionEnum.cs @@ -0,0 +1,21 @@ +// +// 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 PortMirroringDirectionEnum. + /// + public static class PortMirroringDirectionEnum + { + public const string INGRESSEGRESSBIDIRECTIONAL = "INGRESS, EGRESS, BIDIRECTIONAL"; + } +} diff --git a/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/Models/PortMirroringStatusEnum.cs b/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/Models/PortMirroringStatusEnum.cs new file mode 100644 index 000000000000..d43685318d4b --- /dev/null +++ b/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/Models/PortMirroringStatusEnum.cs @@ -0,0 +1,21 @@ +// +// 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 PortMirroringStatusEnum. + /// + public static class PortMirroringStatusEnum + { + public const string SUCCESSFAILURE = "SUCCESS, FAILURE"; + } +} 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 index 4e5acde239e7..39319262bf54 100644 --- a/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/Models/PrivateCloud.cs +++ b/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/Models/PrivateCloud.cs @@ -69,7 +69,9 @@ public PrivateCloud() /// vCenter Server SSL certificate /// Thumbprint of the NSX-T /// Manager SSL certificate - public PrivateCloud(Sku sku, string networkBlock, string id = default(string), string name = default(string), string type = default(string), string location = default(string), IDictionary tags = default(IDictionary), ManagementCluster managementCluster = default(ManagementCluster), string internet = default(string), IList identitySources = default(IList), string provisioningState = default(string), Circuit circuit = default(Circuit), Endpoints endpoints = default(Endpoints), 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)) + /// Array of cloud link IDs from other + /// clouds that connect to this one + public PrivateCloud(Sku sku, string networkBlock, string id = default(string), string name = default(string), string type = default(string), string location = default(string), IDictionary tags = default(IDictionary), ManagementCluster managementCluster = default(ManagementCluster), string internet = default(string), IList identitySources = default(IList), string provisioningState = default(string), Circuit circuit = default(Circuit), Endpoints endpoints = default(Endpoints), 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), IList externalCloudLinks = default(IList)) : base(id, name, type, location, tags) { Sku = sku; @@ -87,6 +89,7 @@ public PrivateCloud() NsxtPassword = nsxtPassword; VcenterCertificateThumbprint = vcenterCertificateThumbprint; NsxtCertificateThumbprint = nsxtCertificateThumbprint; + ExternalCloudLinks = externalCloudLinks; CustomInit(); } @@ -194,6 +197,13 @@ public PrivateCloud() [JsonProperty(PropertyName = "properties.nsxtCertificateThumbprint")] public string NsxtCertificateThumbprint { get; private set; } + /// + /// Gets array of cloud link IDs from other clouds that connect to this + /// one + /// + [JsonProperty(PropertyName = "properties.externalCloudLinks")] + public IList ExternalCloudLinks { get; private set; } + /// /// Validate the object. /// diff --git a/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/Models/PrivateCloudUpdate.cs b/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/Models/PrivateCloudUpdate.cs index 6a3b0eb3ecea..29a781a3201a 100644 --- a/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/Models/PrivateCloudUpdate.cs +++ b/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/Models/PrivateCloudUpdate.cs @@ -34,7 +34,7 @@ public PrivateCloudUpdate() /// /// Initializes a new instance of the PrivateCloudUpdate class. /// - /// Resource tags. + /// Resource tags /// The default cluster used for /// management /// Connectivity to internet is enabled or @@ -56,7 +56,7 @@ public PrivateCloudUpdate() partial void CustomInit(); /// - /// Gets or sets resource tags. + /// 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/ProxyResource.cs b/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/Models/ProxyResource.cs new file mode 100644 index 000000000000..230969678928 --- /dev/null +++ b/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/Models/ProxyResource.cs @@ -0,0 +1,46 @@ +// +// 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 System.Linq; + + /// + /// The resource model definition for a ARM proxy resource + /// + public partial class ProxyResource : Resource + { + /// + /// Initializes a new instance of the ProxyResource class. + /// + public ProxyResource() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the ProxyResource class. + /// + /// Resource ID. + /// Resource name. + /// Resource type. + public ProxyResource(string id = default(string), string name = default(string), string type = default(string)) + : base(id, name, type) + { + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + } +} diff --git a/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/Models/ScriptCmdlet.cs b/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/Models/ScriptCmdlet.cs new file mode 100644 index 000000000000..507954d8bb52 --- /dev/null +++ b/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/Models/ScriptCmdlet.cs @@ -0,0 +1,77 @@ +// +// 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.Serialization; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// A cmdlet available for script execution + /// + [Rest.Serialization.JsonTransformation] + public partial class ScriptCmdlet : ProxyResource + { + /// + /// Initializes a new instance of the ScriptCmdlet class. + /// + public ScriptCmdlet() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the ScriptCmdlet class. + /// + /// Resource ID. + /// Resource name. + /// Resource type. + /// Description of the scripts + /// functionality + /// Recommended time limit for execution + /// Parameters the script will accept + public ScriptCmdlet(string id = default(string), string name = default(string), string type = default(string), string description = default(string), string timeout = default(string), IList parameters = default(IList)) + : base(id, name, type) + { + Description = description; + Timeout = timeout; + Parameters = parameters; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets description of the scripts functionality + /// + [JsonProperty(PropertyName = "properties.description")] + public string Description { get; private set; } + + /// + /// Gets recommended time limit for execution + /// + [JsonProperty(PropertyName = "properties.timeout")] + public string Timeout { get; private set; } + + /// + /// Gets parameters the script will accept + /// + [JsonProperty(PropertyName = "properties.parameters")] + public IList Parameters { get; private set; } + + } +} diff --git a/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/Models/ScriptExecution.cs b/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/Models/ScriptExecution.cs new file mode 100644 index 000000000000..6a1d5d68c551 --- /dev/null +++ b/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/Models/ScriptExecution.cs @@ -0,0 +1,226 @@ +// +// 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.Serialization; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// An instance of a script executed by a user - custom or AVS + /// + [Rest.Serialization.JsonTransformation] + public partial class ScriptExecution : ProxyResource + { + /// + /// Initializes a new instance of the ScriptExecution class. + /// + public ScriptExecution() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the ScriptExecution class. + /// + /// Time limit for execution + /// Resource ID. + /// Resource name. + /// Resource type. + /// A reference to the script cmdlet + /// resource if user is running a AVS script + /// Parameters the script will accept + /// Parameters that will be hidden/not + /// visible to ARM, such as passwords and credentials + /// Error message if the script was able to + /// run, but if the script itself had errors or powershell threw an + /// exception + /// Time to live for the resource. If not + /// provided, will be available for 60 days + /// Time the script execution was + /// submitted + /// Time the script execution was + /// started + /// Time the script execution was + /// finished + /// The state of the script execution + /// resource. Possible values include: 'Pending', 'Running', + /// 'Succeeded', 'Failed', 'Cancelling', 'Cancelled', + /// 'Deleting' + /// Standard output stream from the powershell + /// execution + /// User-defined dictionary. + /// Standard information out stream from the + /// powershell execution + /// Standard warning out stream from the + /// powershell execution + /// Standard error output stream from the + /// powershell execution + public ScriptExecution(string timeout, string id = default(string), string name = default(string), string type = default(string), string scriptCmdletId = default(string), IList parameters = default(IList), IList hiddenParameters = default(IList), string failureReason = default(string), string retention = default(string), System.DateTime? submittedAt = default(System.DateTime?), System.DateTime? startedAt = default(System.DateTime?), System.DateTime? finishedAt = default(System.DateTime?), string provisioningState = default(string), IList output = default(IList), IDictionary namedOutputs = default(IDictionary), IList information = default(IList), IList warnings = default(IList), IList errors = default(IList)) + : base(id, name, type) + { + ScriptCmdletId = scriptCmdletId; + Parameters = parameters; + HiddenParameters = hiddenParameters; + FailureReason = failureReason; + Timeout = timeout; + Retention = retention; + SubmittedAt = submittedAt; + StartedAt = startedAt; + FinishedAt = finishedAt; + ProvisioningState = provisioningState; + Output = output; + NamedOutputs = namedOutputs; + Information = information; + Warnings = warnings; + Errors = errors; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets a reference to the script cmdlet resource if user is + /// running a AVS script + /// + [JsonProperty(PropertyName = "properties.scriptCmdletId")] + public string ScriptCmdletId { get; set; } + + /// + /// Gets or sets parameters the script will accept + /// + [JsonProperty(PropertyName = "properties.parameters")] + public IList Parameters { get; set; } + + /// + /// Gets or sets parameters that will be hidden/not visible to ARM, + /// such as passwords and credentials + /// + [JsonProperty(PropertyName = "properties.hiddenParameters")] + public IList HiddenParameters { get; set; } + + /// + /// Gets or sets error message if the script was able to run, but if + /// the script itself had errors or powershell threw an exception + /// + [JsonProperty(PropertyName = "properties.failureReason")] + public string FailureReason { get; set; } + + /// + /// Gets or sets time limit for execution + /// + [JsonProperty(PropertyName = "properties.timeout")] + public string Timeout { get; set; } + + /// + /// Gets or sets time to live for the resource. If not provided, will + /// be available for 60 days + /// + [JsonProperty(PropertyName = "properties.retention")] + public string Retention { get; set; } + + /// + /// Gets time the script execution was submitted + /// + [JsonProperty(PropertyName = "properties.submittedAt")] + public System.DateTime? SubmittedAt { get; private set; } + + /// + /// Gets time the script execution was started + /// + [JsonProperty(PropertyName = "properties.startedAt")] + public System.DateTime? StartedAt { get; private set; } + + /// + /// Gets time the script execution was finished + /// + [JsonProperty(PropertyName = "properties.finishedAt")] + public System.DateTime? FinishedAt { get; private set; } + + /// + /// Gets the state of the script execution resource. Possible values + /// include: 'Pending', 'Running', 'Succeeded', 'Failed', 'Cancelling', + /// 'Cancelled', 'Deleting' + /// + [JsonProperty(PropertyName = "properties.provisioningState")] + public string ProvisioningState { get; private set; } + + /// + /// Gets or sets standard output stream from the powershell execution + /// + [JsonProperty(PropertyName = "properties.output")] + public IList Output { get; set; } + + /// + /// Gets or sets user-defined dictionary. + /// + [JsonProperty(PropertyName = "properties.namedOutputs")] + public IDictionary NamedOutputs { get; set; } + + /// + /// Gets standard information out stream from the powershell execution + /// + [JsonProperty(PropertyName = "properties.information")] + public IList Information { get; private set; } + + /// + /// Gets standard warning out stream from the powershell execution + /// + [JsonProperty(PropertyName = "properties.warnings")] + public IList Warnings { get; private set; } + + /// + /// Gets standard error output stream from the powershell execution + /// + [JsonProperty(PropertyName = "properties.errors")] + public IList Errors { get; private set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (Timeout == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "Timeout"); + } + if (Parameters != null) + { + foreach (var element in Parameters) + { + if (element != null) + { + element.Validate(); + } + } + } + if (HiddenParameters != null) + { + foreach (var element1 in HiddenParameters) + { + if (element1 != null) + { + element1.Validate(); + } + } + } + } + } +} diff --git a/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/Models/ScriptExecutionParameter.cs b/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/Models/ScriptExecutionParameter.cs new file mode 100644 index 000000000000..66f82d0dd071 --- /dev/null +++ b/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/Models/ScriptExecutionParameter.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 arguments passed in to the execution + /// + public partial class ScriptExecutionParameter + { + /// + /// Initializes a new instance of the ScriptExecutionParameter class. + /// + public ScriptExecutionParameter() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the ScriptExecutionParameter class. + /// + /// The parameter name + public ScriptExecutionParameter(string name) + { + Name = name; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the parameter name + /// + [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/ScriptExecutionProvisioningState.cs b/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/Models/ScriptExecutionProvisioningState.cs new file mode 100644 index 000000000000..661d81d62b3d --- /dev/null +++ b/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/Models/ScriptExecutionProvisioningState.cs @@ -0,0 +1,27 @@ +// +// 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 ScriptExecutionProvisioningState. + /// + public static class ScriptExecutionProvisioningState + { + public const string Pending = "Pending"; + public const string Running = "Running"; + public const string Succeeded = "Succeeded"; + public const string Failed = "Failed"; + public const string Cancelling = "Cancelling"; + public const string Cancelled = "Cancelled"; + public const string Deleting = "Deleting"; + } +} diff --git a/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/Models/ScriptOutputStreamType.cs b/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/Models/ScriptOutputStreamType.cs new file mode 100644 index 000000000000..aeb81fd77649 --- /dev/null +++ b/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/Models/ScriptOutputStreamType.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 ScriptOutputStreamType. + /// + public static class ScriptOutputStreamType + { + public const string Information = "Information"; + public const string Warning = "Warning"; + public const string Output = "Output"; + public const string Error = "Error"; + } +} diff --git a/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/Models/ScriptPackage.cs b/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/Models/ScriptPackage.cs new file mode 100644 index 000000000000..a4009e17cc4e --- /dev/null +++ b/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/Models/ScriptPackage.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 Microsoft.Rest; + using Microsoft.Rest.Serialization; + using Newtonsoft.Json; + using System.Linq; + + /// + /// Script Package resources available for execution + /// + [Rest.Serialization.JsonTransformation] + public partial class ScriptPackage : ProxyResource + { + /// + /// Initializes a new instance of the ScriptPackage class. + /// + public ScriptPackage() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the ScriptPackage class. + /// + /// Resource ID. + /// Resource name. + /// Resource type. + /// User friendly description of the + /// package + /// Module version + public ScriptPackage(string id = default(string), string name = default(string), string type = default(string), string description = default(string), string version = default(string)) + : base(id, name, type) + { + Description = description; + Version = version; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets user friendly description of the package + /// + [JsonProperty(PropertyName = "properties.description")] + public string Description { get; private set; } + + /// + /// Gets module version + /// + [JsonProperty(PropertyName = "properties.version")] + public string Version { get; private set; } + + } +} diff --git a/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/Models/ScriptParameter.cs b/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/Models/ScriptParameter.cs new file mode 100644 index 000000000000..3bffcd605238 --- /dev/null +++ b/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/Models/ScriptParameter.cs @@ -0,0 +1,97 @@ +// +// 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; + + /// + /// An parameter that the script will accept + /// + public partial class ScriptParameter + { + /// + /// Initializes a new instance of the ScriptParameter class. + /// + public ScriptParameter() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the ScriptParameter class. + /// + /// The type of parameter the script is expecting. + /// psCredential is a PSCredentialObject. Possible values include: + /// 'String', 'SecureString', 'Credential', 'Int', 'Bool', + /// 'Float' + /// The parameter name that the script will expect a + /// parameter value for + /// User friendly description of the + /// parameter + /// Should this parameter be visible to arm + /// and passed in the parameters argument when executing. Possible + /// values include: 'Visible', 'Hidden' + /// Is this parameter required or optional. + /// Possible values include: 'Optional', 'Required' + public ScriptParameter(string type = default(string), string name = default(string), string description = default(string), string visibility = default(string), string optional = default(string)) + { + Type = type; + Name = name; + Description = description; + Visibility = visibility; + Optional = optional; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets the type of parameter the script is expecting. psCredential is + /// a PSCredentialObject. Possible values include: 'String', + /// 'SecureString', 'Credential', 'Int', 'Bool', 'Float' + /// + [JsonProperty(PropertyName = "type")] + public string Type { get; private set; } + + /// + /// Gets or sets the parameter name that the script will expect a + /// parameter value for + /// + [JsonProperty(PropertyName = "name")] + public string Name { get; set; } + + /// + /// Gets user friendly description of the parameter + /// + [JsonProperty(PropertyName = "description")] + public string Description { get; private set; } + + /// + /// Gets should this parameter be visible to arm and passed in the + /// parameters argument when executing. Possible values include: + /// 'Visible', 'Hidden' + /// + [JsonProperty(PropertyName = "visibility")] + public string Visibility { get; private set; } + + /// + /// Gets is this parameter required or optional. Possible values + /// include: 'Optional', 'Required' + /// + [JsonProperty(PropertyName = "optional")] + public string Optional { get; private set; } + + } +} diff --git a/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/Models/ScriptParameterTypes.cs b/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/Models/ScriptParameterTypes.cs new file mode 100644 index 000000000000..6288be24c6db --- /dev/null +++ b/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/Models/ScriptParameterTypes.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 ScriptParameterTypes. + /// + public static class ScriptParameterTypes + { + public const string String = "String"; + public const string SecureString = "SecureString"; + public const string Credential = "Credential"; + public const string Int = "Int"; + public const string Bool = "Bool"; + public const string Float = "Float"; + } +} diff --git a/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/Models/ScriptSecureStringExecutionParameter.cs b/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/Models/ScriptSecureStringExecutionParameter.cs new file mode 100644 index 000000000000..eaac55e0264e --- /dev/null +++ b/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/Models/ScriptSecureStringExecutionParameter.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.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// a plain text value execution parameter + /// + [Newtonsoft.Json.JsonObject("SecureValue")] + public partial class ScriptSecureStringExecutionParameter : ScriptExecutionParameter + { + /// + /// Initializes a new instance of the + /// ScriptSecureStringExecutionParameter class. + /// + public ScriptSecureStringExecutionParameter() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the + /// ScriptSecureStringExecutionParameter class. + /// + /// The parameter name + /// A secure value for the passed parameter, + /// not to be stored in logs + public ScriptSecureStringExecutionParameter(string name, string secureValue = default(string)) + : base(name) + { + SecureValue = secureValue; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets a secure value for the passed parameter, not to be + /// stored in logs + /// + [JsonProperty(PropertyName = "secureValue")] + public string SecureValue { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public override void Validate() + { + base.Validate(); + } + } +} diff --git a/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/Models/ScriptStringExecutionParameter.cs b/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/Models/ScriptStringExecutionParameter.cs new file mode 100644 index 000000000000..f0375e464970 --- /dev/null +++ b/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/Models/ScriptStringExecutionParameter.cs @@ -0,0 +1,66 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Avs.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// a plain text value execution parameter + /// + [Newtonsoft.Json.JsonObject("Value")] + public partial class ScriptStringExecutionParameter : ScriptExecutionParameter + { + /// + /// Initializes a new instance of the ScriptStringExecutionParameter + /// class. + /// + public ScriptStringExecutionParameter() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the ScriptStringExecutionParameter + /// class. + /// + /// The parameter name + /// The value for the passed parameter + public ScriptStringExecutionParameter(string name, string value = default(string)) + : base(name) + { + Value = value; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the value for the passed parameter + /// + [JsonProperty(PropertyName = "value")] + public string Value { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public override void Validate() + { + base.Validate(); + } + } +} diff --git a/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/Models/SegmentStatusEnum.cs b/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/Models/SegmentStatusEnum.cs new file mode 100644 index 000000000000..c339d194ed25 --- /dev/null +++ b/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/Models/SegmentStatusEnum.cs @@ -0,0 +1,21 @@ +// +// 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 SegmentStatusEnum. + /// + public static class SegmentStatusEnum + { + public const string SUCCESSFAILURE = "SUCCESS, FAILURE"; + } +} diff --git a/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/Models/VMGroupStatusEnum.cs b/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/Models/VMGroupStatusEnum.cs new file mode 100644 index 000000000000..742a4b865e84 --- /dev/null +++ b/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/Models/VMGroupStatusEnum.cs @@ -0,0 +1,21 @@ +// +// 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 VMGroupStatusEnum. + /// + public static class VMGroupStatusEnum + { + public const string SUCCESSFAILURE = "SUCCESS, FAILURE"; + } +} diff --git a/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/Models/VMTypeEnum.cs b/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/Models/VMTypeEnum.cs new file mode 100644 index 000000000000..cb194cf8b75e --- /dev/null +++ b/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/Models/VMTypeEnum.cs @@ -0,0 +1,21 @@ +// +// 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 VMTypeEnum. + /// + public static class VMTypeEnum + { + public const string REGULAREDGESERVICE = "REGULAR, EDGE, SERVICE"; + } +} diff --git a/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/Models/VisibilityParameterEnum.cs b/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/Models/VisibilityParameterEnum.cs new file mode 100644 index 000000000000..c4ac4b7bdeca --- /dev/null +++ b/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/Models/VisibilityParameterEnum.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 VisibilityParameterEnum. + /// + public static class VisibilityParameterEnum + { + public const string Visible = "Visible"; + public const string Hidden = "Hidden"; + } +} diff --git a/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/Models/WorkloadNetworkDhcp.cs b/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/Models/WorkloadNetworkDhcp.cs new file mode 100644 index 000000000000..ba3f6e664ab3 --- /dev/null +++ b/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/Models/WorkloadNetworkDhcp.cs @@ -0,0 +1,55 @@ +// +// 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; + + /// + /// NSX DHCP + /// + public partial class WorkloadNetworkDhcp : ProxyResource + { + /// + /// Initializes a new instance of the WorkloadNetworkDhcp class. + /// + public WorkloadNetworkDhcp() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the WorkloadNetworkDhcp class. + /// + /// Resource ID. + /// Resource name. + /// Resource type. + /// DHCP properties. + public WorkloadNetworkDhcp(string id = default(string), string name = default(string), string type = default(string), WorkloadNetworkDhcpEntity properties = default(WorkloadNetworkDhcpEntity)) + : base(id, name, type) + { + Properties = properties; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets DHCP properties. + /// + [JsonProperty(PropertyName = "properties")] + public WorkloadNetworkDhcpEntity Properties { get; set; } + + } +} diff --git a/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/Models/WorkloadNetworkDhcpEntity.cs b/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/Models/WorkloadNetworkDhcpEntity.cs new file mode 100644 index 000000000000..01a6e98fb137 --- /dev/null +++ b/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/Models/WorkloadNetworkDhcpEntity.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; + + /// + /// Base class for WorkloadNetworkDhcpServer and WorkloadNetworkDhcpRelay + /// to inherit from + /// + public partial class WorkloadNetworkDhcpEntity + { + /// + /// Initializes a new instance of the WorkloadNetworkDhcpEntity class. + /// + public WorkloadNetworkDhcpEntity() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the WorkloadNetworkDhcpEntity class. + /// + /// Display name of the DHCP entity. + /// NSX Segments consuming DHCP. + /// The provisioning state. Possible + /// values include: 'Succeeded', 'Failed', 'Building', 'Deleting', + /// 'Updating' + /// NSX revision number. + public WorkloadNetworkDhcpEntity(string displayName = default(string), IList segments = default(IList), string provisioningState = default(string), long? revision = default(long?)) + { + DisplayName = displayName; + Segments = segments; + ProvisioningState = provisioningState; + Revision = revision; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets display name of the DHCP entity. + /// + [JsonProperty(PropertyName = "displayName")] + public string DisplayName { get; set; } + + /// + /// Gets NSX Segments consuming DHCP. + /// + [JsonProperty(PropertyName = "segments")] + public IList Segments { get; private set; } + + /// + /// Gets the provisioning state. Possible values include: 'Succeeded', + /// 'Failed', 'Building', 'Deleting', 'Updating' + /// + [JsonProperty(PropertyName = "provisioningState")] + public string ProvisioningState { get; private set; } + + /// + /// Gets or sets NSX revision number. + /// + [JsonProperty(PropertyName = "revision")] + public long? Revision { get; set; } + + } +} diff --git a/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/Models/WorkloadNetworkDhcpProvisioningState.cs b/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/Models/WorkloadNetworkDhcpProvisioningState.cs new file mode 100644 index 000000000000..e59d525f1b9d --- /dev/null +++ b/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/Models/WorkloadNetworkDhcpProvisioningState.cs @@ -0,0 +1,25 @@ +// +// 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 WorkloadNetworkDhcpProvisioningState. + /// + public static class WorkloadNetworkDhcpProvisioningState + { + public const string Succeeded = "Succeeded"; + public const string Failed = "Failed"; + public const string Building = "Building"; + public const string Deleting = "Deleting"; + public const string Updating = "Updating"; + } +} diff --git a/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/Models/WorkloadNetworkDhcpRelay.cs b/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/Models/WorkloadNetworkDhcpRelay.cs new file mode 100644 index 000000000000..474f7707bc72 --- /dev/null +++ b/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/Models/WorkloadNetworkDhcpRelay.cs @@ -0,0 +1,82 @@ +// +// 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.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// NSX DHCP Relay + /// + [Newtonsoft.Json.JsonObject("RELAY")] + public partial class WorkloadNetworkDhcpRelay : WorkloadNetworkDhcpEntity + { + /// + /// Initializes a new instance of the WorkloadNetworkDhcpRelay class. + /// + public WorkloadNetworkDhcpRelay() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the WorkloadNetworkDhcpRelay class. + /// + /// Display name of the DHCP entity. + /// NSX Segments consuming DHCP. + /// The provisioning state. Possible + /// values include: 'Succeeded', 'Failed', 'Building', 'Deleting', + /// 'Updating' + /// NSX revision number. + /// DHCP Relay Addresses. Max 3. + public WorkloadNetworkDhcpRelay(string displayName = default(string), IList segments = default(IList), string provisioningState = default(string), long? revision = default(long?), IList serverAddresses = default(IList)) + : base(displayName, segments, provisioningState, revision) + { + ServerAddresses = serverAddresses; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets DHCP Relay Addresses. Max 3. + /// + [JsonProperty(PropertyName = "serverAddresses")] + public IList ServerAddresses { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (ServerAddresses != null) + { + if (ServerAddresses.Count > 3) + { + throw new ValidationException(ValidationRules.MaxItems, "ServerAddresses", 3); + } + if (ServerAddresses.Count < 1) + { + throw new ValidationException(ValidationRules.MinItems, "ServerAddresses", 1); + } + } + } + } +} diff --git a/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/Models/WorkloadNetworkDhcpServer.cs b/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/Models/WorkloadNetworkDhcpServer.cs new file mode 100644 index 000000000000..8789ca861cdf --- /dev/null +++ b/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/Models/WorkloadNetworkDhcpServer.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; + + /// + /// NSX DHCP Server + /// + [Newtonsoft.Json.JsonObject("SERVER")] + public partial class WorkloadNetworkDhcpServer : WorkloadNetworkDhcpEntity + { + /// + /// Initializes a new instance of the WorkloadNetworkDhcpServer class. + /// + public WorkloadNetworkDhcpServer() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the WorkloadNetworkDhcpServer class. + /// + /// Display name of the DHCP entity. + /// NSX Segments consuming DHCP. + /// The provisioning state. Possible + /// values include: 'Succeeded', 'Failed', 'Building', 'Deleting', + /// 'Updating' + /// NSX revision number. + /// DHCP Server Address. + /// DHCP Server Lease Time. + public WorkloadNetworkDhcpServer(string displayName = default(string), IList segments = default(IList), string provisioningState = default(string), long? revision = default(long?), string serverAddress = default(string), long? leaseTime = default(long?)) + : base(displayName, segments, provisioningState, revision) + { + ServerAddress = serverAddress; + LeaseTime = leaseTime; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets DHCP Server Address. + /// + [JsonProperty(PropertyName = "serverAddress")] + public string ServerAddress { get; set; } + + /// + /// Gets or sets DHCP Server Lease Time. + /// + [JsonProperty(PropertyName = "leaseTime")] + public long? LeaseTime { get; set; } + + } +} diff --git a/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/Models/WorkloadNetworkDnsService.cs b/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/Models/WorkloadNetworkDnsService.cs new file mode 100644 index 000000000000..f7b72940ff46 --- /dev/null +++ b/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/Models/WorkloadNetworkDnsService.cs @@ -0,0 +1,125 @@ +// +// 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.Serialization; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// NSX DNS Service + /// + [Rest.Serialization.JsonTransformation] + public partial class WorkloadNetworkDnsService : ProxyResource + { + /// + /// Initializes a new instance of the WorkloadNetworkDnsService class. + /// + public WorkloadNetworkDnsService() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the WorkloadNetworkDnsService class. + /// + /// Resource ID. + /// Resource name. + /// Resource type. + /// Display name of the DNS Service. + /// DNS service IP of the DNS + /// Service. + /// Default DNS zone of the DNS + /// Service. + /// FQDN zones of the DNS Service. + /// DNS Service log level. Possible values + /// include: 'DEBUG', 'INFO', 'WARNING', 'ERROR', 'FATAL' + /// DNS Service status. Possible values include: + /// 'SUCCESS', 'FAILURE' + /// The provisioning state. Possible + /// values include: 'Succeeded', 'Failed', 'Building', 'Deleting', + /// 'Updating' + /// NSX revision number. + public WorkloadNetworkDnsService(string id = default(string), string name = default(string), string type = default(string), string displayName = default(string), string dnsServiceIp = default(string), string defaultDnsZone = default(string), IList fqdnZones = default(IList), string logLevel = default(string), string status = default(string), string provisioningState = default(string), long? revision = default(long?)) + : base(id, name, type) + { + DisplayName = displayName; + DnsServiceIp = dnsServiceIp; + DefaultDnsZone = defaultDnsZone; + FqdnZones = fqdnZones; + LogLevel = logLevel; + Status = status; + ProvisioningState = provisioningState; + Revision = revision; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets display name of the DNS Service. + /// + [JsonProperty(PropertyName = "properties.displayName")] + public string DisplayName { get; set; } + + /// + /// Gets or sets DNS service IP of the DNS Service. + /// + [JsonProperty(PropertyName = "properties.dnsServiceIp")] + public string DnsServiceIp { get; set; } + + /// + /// Gets or sets default DNS zone of the DNS Service. + /// + [JsonProperty(PropertyName = "properties.defaultDnsZone")] + public string DefaultDnsZone { get; set; } + + /// + /// Gets or sets FQDN zones of the DNS Service. + /// + [JsonProperty(PropertyName = "properties.fqdnZones")] + public IList FqdnZones { get; set; } + + /// + /// Gets or sets DNS Service log level. Possible values include: + /// 'DEBUG', 'INFO', 'WARNING', 'ERROR', 'FATAL' + /// + [JsonProperty(PropertyName = "properties.logLevel")] + public string LogLevel { get; set; } + + /// + /// Gets DNS Service status. Possible values include: 'SUCCESS', + /// 'FAILURE' + /// + [JsonProperty(PropertyName = "properties.status")] + public string Status { get; private set; } + + /// + /// Gets the provisioning state. Possible values include: 'Succeeded', + /// 'Failed', 'Building', 'Deleting', 'Updating' + /// + [JsonProperty(PropertyName = "properties.provisioningState")] + public string ProvisioningState { get; private set; } + + /// + /// Gets or sets NSX revision number. + /// + [JsonProperty(PropertyName = "properties.revision")] + public long? Revision { get; set; } + + } +} diff --git a/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/Models/WorkloadNetworkDnsServiceProvisioningState.cs b/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/Models/WorkloadNetworkDnsServiceProvisioningState.cs new file mode 100644 index 000000000000..ee847a80a88b --- /dev/null +++ b/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/Models/WorkloadNetworkDnsServiceProvisioningState.cs @@ -0,0 +1,25 @@ +// +// 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 WorkloadNetworkDnsServiceProvisioningState. + /// + public static class WorkloadNetworkDnsServiceProvisioningState + { + public const string Succeeded = "Succeeded"; + public const string Failed = "Failed"; + public const string Building = "Building"; + public const string Deleting = "Deleting"; + public const string Updating = "Updating"; + } +} diff --git a/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/Models/WorkloadNetworkDnsZone.cs b/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/Models/WorkloadNetworkDnsZone.cs new file mode 100644 index 000000000000..63b7d3d95dfa --- /dev/null +++ b/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/Models/WorkloadNetworkDnsZone.cs @@ -0,0 +1,113 @@ +// +// 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.Serialization; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// NSX DNS Zone + /// + [Rest.Serialization.JsonTransformation] + public partial class WorkloadNetworkDnsZone : ProxyResource + { + /// + /// Initializes a new instance of the WorkloadNetworkDnsZone class. + /// + public WorkloadNetworkDnsZone() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the WorkloadNetworkDnsZone class. + /// + /// Resource ID. + /// Resource name. + /// Resource type. + /// Display name of the DNS Zone. + /// Domain names of the DNS Zone. + /// DNS Server IP array of the DNS + /// Zone. + /// Source IP of the DNS Zone. + /// Number of DNS Services using the DNS + /// zone. + /// The provisioning state. Possible + /// values include: 'Succeeded', 'Failed', 'Building', 'Deleting', + /// 'Updating' + /// NSX revision number. + public WorkloadNetworkDnsZone(string id = default(string), string name = default(string), string type = default(string), string displayName = default(string), IList domain = default(IList), IList dnsServerIps = default(IList), string sourceIp = default(string), long? dnsServices = default(long?), string provisioningState = default(string), long? revision = default(long?)) + : base(id, name, type) + { + DisplayName = displayName; + Domain = domain; + DnsServerIps = dnsServerIps; + SourceIp = sourceIp; + DnsServices = dnsServices; + ProvisioningState = provisioningState; + Revision = revision; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets display name of the DNS Zone. + /// + [JsonProperty(PropertyName = "properties.displayName")] + public string DisplayName { get; set; } + + /// + /// Gets or sets domain names of the DNS Zone. + /// + [JsonProperty(PropertyName = "properties.domain")] + public IList Domain { get; set; } + + /// + /// Gets or sets DNS Server IP array of the DNS Zone. + /// + [JsonProperty(PropertyName = "properties.dnsServerIps")] + public IList DnsServerIps { get; set; } + + /// + /// Gets or sets source IP of the DNS Zone. + /// + [JsonProperty(PropertyName = "properties.sourceIp")] + public string SourceIp { get; set; } + + /// + /// Gets or sets number of DNS Services using the DNS zone. + /// + [JsonProperty(PropertyName = "properties.dnsServices")] + public long? DnsServices { get; set; } + + /// + /// Gets the provisioning state. Possible values include: 'Succeeded', + /// 'Failed', 'Building', 'Deleting', 'Updating' + /// + [JsonProperty(PropertyName = "properties.provisioningState")] + public string ProvisioningState { get; private set; } + + /// + /// Gets or sets NSX revision number. + /// + [JsonProperty(PropertyName = "properties.revision")] + public long? Revision { get; set; } + + } +} diff --git a/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/Models/WorkloadNetworkDnsZoneProvisioningState.cs b/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/Models/WorkloadNetworkDnsZoneProvisioningState.cs new file mode 100644 index 000000000000..ab4a5e681da0 --- /dev/null +++ b/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/Models/WorkloadNetworkDnsZoneProvisioningState.cs @@ -0,0 +1,25 @@ +// +// 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 WorkloadNetworkDnsZoneProvisioningState. + /// + public static class WorkloadNetworkDnsZoneProvisioningState + { + public const string Succeeded = "Succeeded"; + public const string Failed = "Failed"; + public const string Building = "Building"; + public const string Deleting = "Deleting"; + public const string Updating = "Updating"; + } +} diff --git a/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/Models/WorkloadNetworkGateway.cs b/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/Models/WorkloadNetworkGateway.cs new file mode 100644 index 000000000000..479d1664d446 --- /dev/null +++ b/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/Models/WorkloadNetworkGateway.cs @@ -0,0 +1,66 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Avs.Models +{ + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + using Newtonsoft.Json; + using System.Linq; + + /// + /// NSX Gateway. + /// + [Rest.Serialization.JsonTransformation] + public partial class WorkloadNetworkGateway : ProxyResource + { + /// + /// Initializes a new instance of the WorkloadNetworkGateway class. + /// + public WorkloadNetworkGateway() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the WorkloadNetworkGateway class. + /// + /// Resource ID. + /// Resource name. + /// Resource type. + /// Display name of the DHCP entity. + /// NSX Gateway Path. + public WorkloadNetworkGateway(string id = default(string), string name = default(string), string type = default(string), string displayName = default(string), string path = default(string)) + : base(id, name, type) + { + DisplayName = displayName; + Path = path; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets display name of the DHCP entity. + /// + [JsonProperty(PropertyName = "properties.displayName")] + public string DisplayName { get; set; } + + /// + /// Gets NSX Gateway Path. + /// + [JsonProperty(PropertyName = "properties.path")] + public string Path { get; private set; } + + } +} diff --git a/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/Models/WorkloadNetworkPortMirroring.cs b/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/Models/WorkloadNetworkPortMirroring.cs new file mode 100644 index 000000000000..7012b6171721 --- /dev/null +++ b/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/Models/WorkloadNetworkPortMirroring.cs @@ -0,0 +1,116 @@ +// +// 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.Serialization; + using Newtonsoft.Json; + using System.Linq; + + /// + /// NSX Port Mirroring + /// + [Rest.Serialization.JsonTransformation] + public partial class WorkloadNetworkPortMirroring : ProxyResource + { + /// + /// Initializes a new instance of the WorkloadNetworkPortMirroring + /// class. + /// + public WorkloadNetworkPortMirroring() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the WorkloadNetworkPortMirroring + /// class. + /// + /// Resource ID. + /// Resource name. + /// Resource type. + /// Display name of the port mirroring + /// profile. + /// Direction of port mirroring profile. + /// Possible values include: 'INGRESS, EGRESS, BIDIRECTIONAL' + /// Source VM Group. + /// Destination VM Group. + /// Port Mirroring Status. Possible values + /// include: 'SUCCESS, FAILURE' + /// The provisioning state. Possible + /// values include: 'Succeeded', 'Failed', 'Building', 'Deleting', + /// 'Updating' + /// NSX revision number. + public WorkloadNetworkPortMirroring(string id = default(string), string name = default(string), string type = default(string), string displayName = default(string), string direction = default(string), string source = default(string), string destination = default(string), string status = default(string), string provisioningState = default(string), long? revision = default(long?)) + : base(id, name, type) + { + DisplayName = displayName; + Direction = direction; + Source = source; + Destination = destination; + Status = status; + ProvisioningState = provisioningState; + Revision = revision; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets display name of the port mirroring profile. + /// + [JsonProperty(PropertyName = "properties.displayName")] + public string DisplayName { get; set; } + + /// + /// Gets or sets direction of port mirroring profile. Possible values + /// include: 'INGRESS, EGRESS, BIDIRECTIONAL' + /// + [JsonProperty(PropertyName = "properties.direction")] + public string Direction { get; set; } + + /// + /// Gets or sets source VM Group. + /// + [JsonProperty(PropertyName = "properties.source")] + public string Source { get; set; } + + /// + /// Gets or sets destination VM Group. + /// + [JsonProperty(PropertyName = "properties.destination")] + public string Destination { get; set; } + + /// + /// Gets port Mirroring Status. Possible values include: 'SUCCESS, + /// FAILURE' + /// + [JsonProperty(PropertyName = "properties.status")] + public string Status { get; private set; } + + /// + /// Gets the provisioning state. Possible values include: 'Succeeded', + /// 'Failed', 'Building', 'Deleting', 'Updating' + /// + [JsonProperty(PropertyName = "properties.provisioningState")] + public string ProvisioningState { get; private set; } + + /// + /// Gets or sets NSX revision number. + /// + [JsonProperty(PropertyName = "properties.revision")] + public long? Revision { get; set; } + + } +} diff --git a/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/Models/WorkloadNetworkPortMirroringProvisioningState.cs b/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/Models/WorkloadNetworkPortMirroringProvisioningState.cs new file mode 100644 index 000000000000..4375fc5b321b --- /dev/null +++ b/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/Models/WorkloadNetworkPortMirroringProvisioningState.cs @@ -0,0 +1,25 @@ +// +// 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 WorkloadNetworkPortMirroringProvisioningState. + /// + public static class WorkloadNetworkPortMirroringProvisioningState + { + public const string Succeeded = "Succeeded"; + public const string Failed = "Failed"; + public const string Building = "Building"; + public const string Deleting = "Deleting"; + public const string Updating = "Updating"; + } +} diff --git a/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/Models/WorkloadNetworkPublicIP.cs b/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/Models/WorkloadNetworkPublicIP.cs new file mode 100644 index 000000000000..423f2ddb1b3c --- /dev/null +++ b/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/Models/WorkloadNetworkPublicIP.cs @@ -0,0 +1,88 @@ +// +// 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.Serialization; + using Newtonsoft.Json; + using System.Linq; + + /// + /// NSX Public IP Block + /// + [Rest.Serialization.JsonTransformation] + public partial class WorkloadNetworkPublicIP : ProxyResource + { + /// + /// Initializes a new instance of the WorkloadNetworkPublicIP class. + /// + public WorkloadNetworkPublicIP() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the WorkloadNetworkPublicIP class. + /// + /// Resource ID. + /// Resource name. + /// Resource type. + /// Display name of the Public IP + /// Block. + /// Number of Public IPs + /// requested. + /// CIDR Block of the Public IP + /// Block. + /// The provisioning state. Possible + /// values include: 'Succeeded', 'Failed', 'Building', 'Deleting', + /// 'Updating' + public WorkloadNetworkPublicIP(string id = default(string), string name = default(string), string type = default(string), string displayName = default(string), long? numberOfPublicIPs = default(long?), string publicIPBlock = default(string), string provisioningState = default(string)) + : base(id, name, type) + { + DisplayName = displayName; + NumberOfPublicIPs = numberOfPublicIPs; + PublicIPBlock = publicIPBlock; + ProvisioningState = provisioningState; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets display name of the Public IP Block. + /// + [JsonProperty(PropertyName = "properties.displayName")] + public string DisplayName { get; set; } + + /// + /// Gets or sets number of Public IPs requested. + /// + [JsonProperty(PropertyName = "properties.numberOfPublicIPs")] + public long? NumberOfPublicIPs { get; set; } + + /// + /// Gets CIDR Block of the Public IP Block. + /// + [JsonProperty(PropertyName = "properties.publicIPBlock")] + public string PublicIPBlock { get; private set; } + + /// + /// Gets the provisioning state. Possible values include: 'Succeeded', + /// 'Failed', 'Building', 'Deleting', 'Updating' + /// + [JsonProperty(PropertyName = "properties.provisioningState")] + public string ProvisioningState { get; private set; } + + } +} diff --git a/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/Models/WorkloadNetworkPublicIPProvisioningState.cs b/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/Models/WorkloadNetworkPublicIPProvisioningState.cs new file mode 100644 index 000000000000..74e020a2d601 --- /dev/null +++ b/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/Models/WorkloadNetworkPublicIPProvisioningState.cs @@ -0,0 +1,25 @@ +// +// 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 WorkloadNetworkPublicIPProvisioningState. + /// + public static class WorkloadNetworkPublicIPProvisioningState + { + public const string Succeeded = "Succeeded"; + public const string Failed = "Failed"; + public const string Building = "Building"; + public const string Deleting = "Deleting"; + public const string Updating = "Updating"; + } +} diff --git a/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/Models/WorkloadNetworkSegment.cs b/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/Models/WorkloadNetworkSegment.cs new file mode 100644 index 000000000000..dddad4794113 --- /dev/null +++ b/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/Models/WorkloadNetworkSegment.cs @@ -0,0 +1,114 @@ +// +// 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.Serialization; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// NSX Segment + /// + [Rest.Serialization.JsonTransformation] + public partial class WorkloadNetworkSegment : ProxyResource + { + /// + /// Initializes a new instance of the WorkloadNetworkSegment class. + /// + public WorkloadNetworkSegment() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the WorkloadNetworkSegment class. + /// + /// Resource ID. + /// Resource name. + /// Resource type. + /// Display name of the segment. + /// Gateway which to connect segment + /// to. + /// Subnet which to connect segment to. + /// Port Vif which segment is associated + /// with. + /// Segment status. Possible values include: + /// 'SUCCESS, FAILURE' + /// The provisioning state. Possible + /// values include: 'Succeeded', 'Failed', 'Building', 'Deleting', + /// 'Updating' + /// NSX revision number. + public WorkloadNetworkSegment(string id = default(string), string name = default(string), string type = default(string), string displayName = default(string), string connectedGateway = default(string), WorkloadNetworkSegmentSubnet subnet = default(WorkloadNetworkSegmentSubnet), IList portVif = default(IList), string status = default(string), string provisioningState = default(string), long? revision = default(long?)) + : base(id, name, type) + { + DisplayName = displayName; + ConnectedGateway = connectedGateway; + Subnet = subnet; + PortVif = portVif; + Status = status; + ProvisioningState = provisioningState; + Revision = revision; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets display name of the segment. + /// + [JsonProperty(PropertyName = "properties.displayName")] + public string DisplayName { get; set; } + + /// + /// Gets or sets gateway which to connect segment to. + /// + [JsonProperty(PropertyName = "properties.connectedGateway")] + public string ConnectedGateway { get; set; } + + /// + /// Gets or sets subnet which to connect segment to. + /// + [JsonProperty(PropertyName = "properties.subnet")] + public WorkloadNetworkSegmentSubnet Subnet { get; set; } + + /// + /// Gets port Vif which segment is associated with. + /// + [JsonProperty(PropertyName = "properties.portVif")] + public IList PortVif { get; private set; } + + /// + /// Gets segment status. Possible values include: 'SUCCESS, FAILURE' + /// + [JsonProperty(PropertyName = "properties.status")] + public string Status { get; private set; } + + /// + /// Gets the provisioning state. Possible values include: 'Succeeded', + /// 'Failed', 'Building', 'Deleting', 'Updating' + /// + [JsonProperty(PropertyName = "properties.provisioningState")] + public string ProvisioningState { get; private set; } + + /// + /// Gets or sets NSX revision number. + /// + [JsonProperty(PropertyName = "properties.revision")] + public long? Revision { get; set; } + + } +} diff --git a/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/Models/ClusterUpdateProperties.cs b/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/Models/WorkloadNetworkSegmentPortVif.cs similarity index 56% rename from sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/Models/ClusterUpdateProperties.cs rename to sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/Models/WorkloadNetworkSegmentPortVif.cs index c55da6cf5e02..51816387b709 100644 --- a/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/Models/ClusterUpdateProperties.cs +++ b/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/Models/WorkloadNetworkSegmentPortVif.cs @@ -14,25 +14,28 @@ namespace Microsoft.Azure.Management.Avs.Models using System.Linq; /// - /// The properties of a cluster that may be updated + /// Ports and any VIF attached to segment. /// - public partial class ClusterUpdateProperties + public partial class WorkloadNetworkSegmentPortVif { /// - /// Initializes a new instance of the ClusterUpdateProperties class. + /// Initializes a new instance of the WorkloadNetworkSegmentPortVif + /// class. /// - public ClusterUpdateProperties() + public WorkloadNetworkSegmentPortVif() { CustomInit(); } /// - /// Initializes a new instance of the ClusterUpdateProperties class. + /// Initializes a new instance of the WorkloadNetworkSegmentPortVif + /// class. /// - /// The cluster size - public ClusterUpdateProperties(int? clusterSize = default(int?)) + /// Name of port or VIF attached to + /// segment. + public WorkloadNetworkSegmentPortVif(string portName = default(string)) { - ClusterSize = clusterSize; + PortName = portName; CustomInit(); } @@ -42,10 +45,10 @@ public ClusterUpdateProperties() partial void CustomInit(); /// - /// Gets or sets the cluster size + /// Gets or sets name of port or VIF attached to segment. /// - [JsonProperty(PropertyName = "clusterSize")] - public int? ClusterSize { get; set; } + [JsonProperty(PropertyName = "portName")] + public string PortName { get; set; } } } diff --git a/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/Models/WorkloadNetworkSegmentProvisioningState.cs b/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/Models/WorkloadNetworkSegmentProvisioningState.cs new file mode 100644 index 000000000000..a2940a28f10b --- /dev/null +++ b/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/Models/WorkloadNetworkSegmentProvisioningState.cs @@ -0,0 +1,25 @@ +// +// 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 WorkloadNetworkSegmentProvisioningState. + /// + public static class WorkloadNetworkSegmentProvisioningState + { + public const string Succeeded = "Succeeded"; + public const string Failed = "Failed"; + public const string Building = "Building"; + public const string Deleting = "Deleting"; + public const string Updating = "Updating"; + } +} diff --git a/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/Models/WorkloadNetworkSegmentSubnet.cs b/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/Models/WorkloadNetworkSegmentSubnet.cs new file mode 100644 index 000000000000..632ae6a681c1 --- /dev/null +++ b/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/Models/WorkloadNetworkSegmentSubnet.cs @@ -0,0 +1,63 @@ +// +// 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; + + /// + /// Subnet configuration for segment + /// + public partial class WorkloadNetworkSegmentSubnet + { + /// + /// Initializes a new instance of the WorkloadNetworkSegmentSubnet + /// class. + /// + public WorkloadNetworkSegmentSubnet() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the WorkloadNetworkSegmentSubnet + /// class. + /// + /// DHCP Range assigned for subnet. + /// Gateway address. + public WorkloadNetworkSegmentSubnet(IList dhcpRanges = default(IList), string gatewayAddress = default(string)) + { + DhcpRanges = dhcpRanges; + GatewayAddress = gatewayAddress; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets DHCP Range assigned for subnet. + /// + [JsonProperty(PropertyName = "dhcpRanges")] + public IList DhcpRanges { get; set; } + + /// + /// Gets or sets gateway address. + /// + [JsonProperty(PropertyName = "gatewayAddress")] + public string GatewayAddress { get; set; } + + } +} diff --git a/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/Models/WorkloadNetworkVMGroup.cs b/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/Models/WorkloadNetworkVMGroup.cs new file mode 100644 index 000000000000..d593cc66159f --- /dev/null +++ b/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/Models/WorkloadNetworkVMGroup.cs @@ -0,0 +1,97 @@ +// +// 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.Serialization; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// NSX VM Group + /// + [Rest.Serialization.JsonTransformation] + public partial class WorkloadNetworkVMGroup : ProxyResource + { + /// + /// Initializes a new instance of the WorkloadNetworkVMGroup class. + /// + public WorkloadNetworkVMGroup() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the WorkloadNetworkVMGroup class. + /// + /// Resource ID. + /// Resource name. + /// Resource type. + /// Display name of the VM group. + /// Virtual machine members of this + /// group. + /// VM Group status. Possible values include: + /// 'SUCCESS, FAILURE' + /// The provisioning state. Possible + /// values include: 'Succeeded', 'Failed', 'Building', 'Deleting', + /// 'Updating' + /// NSX revision number. + public WorkloadNetworkVMGroup(string id = default(string), string name = default(string), string type = default(string), string displayName = default(string), IList members = default(IList), string status = default(string), string provisioningState = default(string), long? revision = default(long?)) + : base(id, name, type) + { + DisplayName = displayName; + Members = members; + Status = status; + ProvisioningState = provisioningState; + Revision = revision; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets display name of the VM group. + /// + [JsonProperty(PropertyName = "properties.displayName")] + public string DisplayName { get; set; } + + /// + /// Gets or sets virtual machine members of this group. + /// + [JsonProperty(PropertyName = "properties.members")] + public IList Members { get; set; } + + /// + /// Gets VM Group status. Possible values include: 'SUCCESS, FAILURE' + /// + [JsonProperty(PropertyName = "properties.status")] + public string Status { get; private set; } + + /// + /// Gets the provisioning state. Possible values include: 'Succeeded', + /// 'Failed', 'Building', 'Deleting', 'Updating' + /// + [JsonProperty(PropertyName = "properties.provisioningState")] + public string ProvisioningState { get; private set; } + + /// + /// Gets or sets NSX revision number. + /// + [JsonProperty(PropertyName = "properties.revision")] + public long? Revision { get; set; } + + } +} diff --git a/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/Models/WorkloadNetworkVMGroupProvisioningState.cs b/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/Models/WorkloadNetworkVMGroupProvisioningState.cs new file mode 100644 index 000000000000..2f09a3c99922 --- /dev/null +++ b/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/Models/WorkloadNetworkVMGroupProvisioningState.cs @@ -0,0 +1,25 @@ +// +// 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 WorkloadNetworkVMGroupProvisioningState. + /// + public static class WorkloadNetworkVMGroupProvisioningState + { + public const string Succeeded = "Succeeded"; + public const string Failed = "Failed"; + public const string Building = "Building"; + public const string Deleting = "Deleting"; + public const string Updating = "Updating"; + } +} diff --git a/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/Models/WorkloadNetworkVirtualMachine.cs b/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/Models/WorkloadNetworkVirtualMachine.cs new file mode 100644 index 000000000000..5a90a70483cd --- /dev/null +++ b/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/Models/WorkloadNetworkVirtualMachine.cs @@ -0,0 +1,70 @@ +// +// 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.Serialization; + using Newtonsoft.Json; + using System.Linq; + + /// + /// NSX Virtual Machine + /// + [Rest.Serialization.JsonTransformation] + public partial class WorkloadNetworkVirtualMachine : ProxyResource + { + /// + /// Initializes a new instance of the WorkloadNetworkVirtualMachine + /// class. + /// + public WorkloadNetworkVirtualMachine() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the WorkloadNetworkVirtualMachine + /// class. + /// + /// Resource ID. + /// Resource name. + /// Resource type. + /// Display name of the VM. + /// Virtual machine type. Possible values include: + /// 'REGULAR, EDGE, SERVICE' + public WorkloadNetworkVirtualMachine(string id = default(string), string name = default(string), string type = default(string), string displayName = default(string), string vmType = default(string)) + : base(id, name, type) + { + DisplayName = displayName; + VmType = vmType; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets display name of the VM. + /// + [JsonProperty(PropertyName = "properties.displayName")] + public string DisplayName { get; set; } + + /// + /// Gets virtual machine type. Possible values include: 'REGULAR, EDGE, + /// SERVICE' + /// + [JsonProperty(PropertyName = "properties.vmType")] + public string VmType { get; private set; } + + } +} diff --git a/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/PrivateCloudsOperations.cs b/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/PrivateCloudsOperations.cs index 019a52ebce97..65900d0df5bf 100644 --- a/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/PrivateCloudsOperations.cs +++ b/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/PrivateCloudsOperations.cs @@ -755,6 +755,50 @@ internal PrivateCloudsOperations(AvsClient client) return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); } + /// + /// Rotate the vCenter password + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the private cloud + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task RotateVcenterPasswordWithHttpMessagesAsync(string resourceGroupName, string privateCloudName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send request + AzureOperationResponse _response = await BeginRotateVcenterPasswordWithHttpMessagesAsync(resourceGroupName, privateCloudName, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + + /// + /// Rotate the NSX-T Manager password + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the private cloud + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task RotateNsxtPasswordWithHttpMessagesAsync(string resourceGroupName, string privateCloudName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send request + AzureOperationResponse _response = await BeginRotateNsxtPasswordWithHttpMessagesAsync(resourceGroupName, privateCloudName, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + /// /// List the admin credentials for the private cloud /// @@ -1702,6 +1746,414 @@ internal PrivateCloudsOperations(AvsClient client) return _result; } + /// + /// Rotate the vCenter password + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// 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 BeginRotateVcenterPasswordWithHttpMessagesAsync(string resourceGroupName, string privateCloudName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (Client.SubscriptionId != null) + { + if (Client.SubscriptionId.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "Client.SubscriptionId", 1); + } + } + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (resourceGroupName != null) + { + if (resourceGroupName.Length > 90) + { + throw new ValidationException(ValidationRules.MaxLength, "resourceGroupName", 90); + } + if (resourceGroupName.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); + } + if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$")) + { + throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$"); + } + } + if (privateCloudName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "privateCloudName"); + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + if (Client.ApiVersion != null) + { + if (Client.ApiVersion.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "Client.ApiVersion", 1); + } + } + // 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, "BeginRotateVcenterPassword", 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}/rotateVcenterPassword").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 != 202 && (int)_statusCode != 204) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Rotate the NSX-T Manager password + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// 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 BeginRotateNsxtPasswordWithHttpMessagesAsync(string resourceGroupName, string privateCloudName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (Client.SubscriptionId != null) + { + if (Client.SubscriptionId.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "Client.SubscriptionId", 1); + } + } + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (resourceGroupName != null) + { + if (resourceGroupName.Length > 90) + { + throw new ValidationException(ValidationRules.MaxLength, "resourceGroupName", 90); + } + if (resourceGroupName.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); + } + if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$")) + { + throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$"); + } + } + if (privateCloudName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "privateCloudName"); + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + if (Client.ApiVersion != null) + { + if (Client.ApiVersion.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "Client.ApiVersion", 1); + } + } + // 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, "BeginRotateNsxtPassword", 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}/rotateNsxtPassword").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 != 202 && (int)_statusCode != 204) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + /// /// List private clouds in a resource group /// diff --git a/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/PrivateCloudsOperationsExtensions.cs b/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/PrivateCloudsOperationsExtensions.cs index 249de4ef896a..f925dac2d2fd 100644 --- a/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/PrivateCloudsOperationsExtensions.cs +++ b/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/PrivateCloudsOperationsExtensions.cs @@ -252,6 +252,80 @@ public static void Delete(this IPrivateCloudsOperations operations, string resou (await operations.DeleteWithHttpMessagesAsync(resourceGroupName, privateCloudName, null, cancellationToken).ConfigureAwait(false)).Dispose(); } + /// + /// Rotate the vCenter password + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the private cloud + /// + public static void RotateVcenterPassword(this IPrivateCloudsOperations operations, string resourceGroupName, string privateCloudName) + { + operations.RotateVcenterPasswordAsync(resourceGroupName, privateCloudName).GetAwaiter().GetResult(); + } + + /// + /// Rotate the vCenter password + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the private cloud + /// + /// + /// The cancellation token. + /// + public static async Task RotateVcenterPasswordAsync(this IPrivateCloudsOperations operations, string resourceGroupName, string privateCloudName, CancellationToken cancellationToken = default(CancellationToken)) + { + (await operations.RotateVcenterPasswordWithHttpMessagesAsync(resourceGroupName, privateCloudName, null, cancellationToken).ConfigureAwait(false)).Dispose(); + } + + /// + /// Rotate the NSX-T Manager password + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the private cloud + /// + public static void RotateNsxtPassword(this IPrivateCloudsOperations operations, string resourceGroupName, string privateCloudName) + { + operations.RotateNsxtPasswordAsync(resourceGroupName, privateCloudName).GetAwaiter().GetResult(); + } + + /// + /// Rotate the NSX-T Manager password + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the private cloud + /// + /// + /// The cancellation token. + /// + public static async Task RotateNsxtPasswordAsync(this IPrivateCloudsOperations operations, string resourceGroupName, string privateCloudName, CancellationToken cancellationToken = default(CancellationToken)) + { + (await operations.RotateNsxtPasswordWithHttpMessagesAsync(resourceGroupName, privateCloudName, null, cancellationToken).ConfigureAwait(false)).Dispose(); + } + /// /// List the admin credentials for the private cloud /// @@ -421,6 +495,80 @@ public static void BeginDelete(this IPrivateCloudsOperations operations, string (await operations.BeginDeleteWithHttpMessagesAsync(resourceGroupName, privateCloudName, null, cancellationToken).ConfigureAwait(false)).Dispose(); } + /// + /// Rotate the vCenter password + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the private cloud + /// + public static void BeginRotateVcenterPassword(this IPrivateCloudsOperations operations, string resourceGroupName, string privateCloudName) + { + operations.BeginRotateVcenterPasswordAsync(resourceGroupName, privateCloudName).GetAwaiter().GetResult(); + } + + /// + /// Rotate the vCenter password + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the private cloud + /// + /// + /// The cancellation token. + /// + public static async Task BeginRotateVcenterPasswordAsync(this IPrivateCloudsOperations operations, string resourceGroupName, string privateCloudName, CancellationToken cancellationToken = default(CancellationToken)) + { + (await operations.BeginRotateVcenterPasswordWithHttpMessagesAsync(resourceGroupName, privateCloudName, null, cancellationToken).ConfigureAwait(false)).Dispose(); + } + + /// + /// Rotate the NSX-T Manager password + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the private cloud + /// + public static void BeginRotateNsxtPassword(this IPrivateCloudsOperations operations, string resourceGroupName, string privateCloudName) + { + operations.BeginRotateNsxtPasswordAsync(resourceGroupName, privateCloudName).GetAwaiter().GetResult(); + } + + /// + /// Rotate the NSX-T Manager password + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the private cloud + /// + /// + /// The cancellation token. + /// + public static async Task BeginRotateNsxtPasswordAsync(this IPrivateCloudsOperations operations, string resourceGroupName, string privateCloudName, CancellationToken cancellationToken = default(CancellationToken)) + { + (await operations.BeginRotateNsxtPasswordWithHttpMessagesAsync(resourceGroupName, privateCloudName, null, cancellationToken).ConfigureAwait(false)).Dispose(); + } + /// /// List private clouds in a resource group /// diff --git a/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/ScriptCmdletsOperations.cs b/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/ScriptCmdletsOperations.cs new file mode 100644 index 000000000000..91d013eb7b13 --- /dev/null +++ b/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/ScriptCmdletsOperations.cs @@ -0,0 +1,708 @@ +// +// 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; + + /// + /// ScriptCmdletsOperations operations. + /// + internal partial class ScriptCmdletsOperations : IServiceOperations, IScriptCmdletsOperations + { + /// + /// Initializes a new instance of the ScriptCmdletsOperations class. + /// + /// + /// Reference to the service client. + /// + /// + /// Thrown when a required parameter is null + /// + internal ScriptCmdletsOperations(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 script cmdlet resources available for a private cloud to create a + /// script execution resource on their Private Cloud + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the private cloud + /// + /// + /// Name of the script package 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>> ListWithHttpMessagesAsync(string resourceGroupName, string privateCloudName, string scriptPackageName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (Client.SubscriptionId != null) + { + if (Client.SubscriptionId.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "Client.SubscriptionId", 1); + } + } + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (resourceGroupName != null) + { + if (resourceGroupName.Length > 90) + { + throw new ValidationException(ValidationRules.MaxLength, "resourceGroupName", 90); + } + if (resourceGroupName.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); + } + if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$")) + { + throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$"); + } + } + if (privateCloudName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "privateCloudName"); + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + if (Client.ApiVersion != null) + { + if (Client.ApiVersion.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "Client.ApiVersion", 1); + } + } + if (scriptPackageName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "scriptPackageName"); + } + // 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("scriptPackageName", scriptPackageName); + 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}/scriptPackages/{scriptPackageName}/scriptCmdlets").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("{scriptPackageName}", System.Uri.EscapeDataString(scriptPackageName)); + 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 CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse>(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Return information about a script cmdlet resource in a specific package on + /// a private cloud + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the private cloud + /// + /// + /// Name of the script package in the private cloud + /// + /// + /// Name of the script cmdlet resource in the script package 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 scriptPackageName, string scriptCmdletName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (Client.SubscriptionId != null) + { + if (Client.SubscriptionId.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "Client.SubscriptionId", 1); + } + } + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (resourceGroupName != null) + { + if (resourceGroupName.Length > 90) + { + throw new ValidationException(ValidationRules.MaxLength, "resourceGroupName", 90); + } + if (resourceGroupName.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); + } + if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$")) + { + throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$"); + } + } + if (privateCloudName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "privateCloudName"); + } + if (scriptPackageName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "scriptPackageName"); + } + if (scriptCmdletName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "scriptCmdletName"); + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + if (Client.ApiVersion != null) + { + if (Client.ApiVersion.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "Client.ApiVersion", 1); + } + } + // 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("scriptPackageName", scriptPackageName); + tracingParameters.Add("scriptCmdletName", scriptCmdletName); + 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}/scriptPackages/{scriptPackageName}/scriptCmdlets/{scriptCmdletName}").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("{scriptPackageName}", System.Uri.EscapeDataString(scriptPackageName)); + _url = _url.Replace("{scriptCmdletName}", System.Uri.EscapeDataString(scriptCmdletName)); + 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 CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Return script cmdlet resources available for a private cloud to create a + /// script execution resource on their 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 CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse>(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + } +} diff --git a/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/ScriptCmdletsOperationsExtensions.cs b/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/ScriptCmdletsOperationsExtensions.cs new file mode 100644 index 000000000000..1269e391bdd0 --- /dev/null +++ b/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/ScriptCmdletsOperationsExtensions.cs @@ -0,0 +1,165 @@ +// +// 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 ScriptCmdletsOperations. + /// + public static partial class ScriptCmdletsOperationsExtensions + { + /// + /// Return script cmdlet resources available for a private cloud to create a + /// script execution resource on their Private Cloud + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the private cloud + /// + /// + /// Name of the script package in the private cloud + /// + public static IPage List(this IScriptCmdletsOperations operations, string resourceGroupName, string privateCloudName, string scriptPackageName) + { + return operations.ListAsync(resourceGroupName, privateCloudName, scriptPackageName).GetAwaiter().GetResult(); + } + + /// + /// Return script cmdlet resources available for a private cloud to create a + /// script execution resource on their Private Cloud + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the private cloud + /// + /// + /// Name of the script package in the private cloud + /// + /// + /// The cancellation token. + /// + public static async Task> ListAsync(this IScriptCmdletsOperations operations, string resourceGroupName, string privateCloudName, string scriptPackageName, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListWithHttpMessagesAsync(resourceGroupName, privateCloudName, scriptPackageName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Return information about a script cmdlet resource in a specific package on + /// a private cloud + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the private cloud + /// + /// + /// Name of the script package in the private cloud + /// + /// + /// Name of the script cmdlet resource in the script package in the private + /// cloud + /// + public static ScriptCmdlet Get(this IScriptCmdletsOperations operations, string resourceGroupName, string privateCloudName, string scriptPackageName, string scriptCmdletName) + { + return operations.GetAsync(resourceGroupName, privateCloudName, scriptPackageName, scriptCmdletName).GetAwaiter().GetResult(); + } + + /// + /// Return information about a script cmdlet resource in a specific package on + /// a private cloud + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the private cloud + /// + /// + /// Name of the script package in the private cloud + /// + /// + /// Name of the script cmdlet resource in the script package in the private + /// cloud + /// + /// + /// The cancellation token. + /// + public static async Task GetAsync(this IScriptCmdletsOperations operations, string resourceGroupName, string privateCloudName, string scriptPackageName, string scriptCmdletName, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.GetWithHttpMessagesAsync(resourceGroupName, privateCloudName, scriptPackageName, scriptCmdletName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Return script cmdlet resources available for a private cloud to create a + /// script execution resource on their Private Cloud + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + public static IPage ListNext(this IScriptCmdletsOperations operations, string nextPageLink) + { + return operations.ListNextAsync(nextPageLink).GetAwaiter().GetResult(); + } + + /// + /// Return script cmdlet resources available for a private cloud to create a + /// script execution resource on their 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 IScriptCmdletsOperations 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/ScriptExecutionsOperations.cs b/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/ScriptExecutionsOperations.cs new file mode 100644 index 000000000000..543a6bd1c54d --- /dev/null +++ b/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/ScriptExecutionsOperations.cs @@ -0,0 +1,1467 @@ +// +// 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; + + /// + /// ScriptExecutionsOperations operations. + /// + internal partial class ScriptExecutionsOperations : IServiceOperations, IScriptExecutionsOperations + { + /// + /// Initializes a new instance of the ScriptExecutionsOperations class. + /// + /// + /// Reference to the service client. + /// + /// + /// Thrown when a required parameter is null + /// + internal ScriptExecutionsOperations(AvsClient client) + { + if (client == null) + { + throw new System.ArgumentNullException("client"); + } + Client = client; + } + + /// + /// Gets a reference to the AvsClient + /// + public AvsClient Client { get; private set; } + + /// + /// Get an script execution resource by name in a private cloud + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// 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 (Client.SubscriptionId != null) + { + if (Client.SubscriptionId.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "Client.SubscriptionId", 1); + } + } + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (resourceGroupName != null) + { + if (resourceGroupName.Length > 90) + { + throw new ValidationException(ValidationRules.MaxLength, "resourceGroupName", 90); + } + if (resourceGroupName.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); + } + if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$")) + { + throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$"); + } + } + if (privateCloudName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "privateCloudName"); + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + if (Client.ApiVersion != null) + { + if (Client.ApiVersion.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "Client.ApiVersion", 1); + } + } + // 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}/scriptExecutions").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 CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse>(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Get an script execution resource by name in a private cloud + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the private cloud + /// + /// + /// Name of the user-invoked script execution resource + /// + /// + /// 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 scriptExecutionName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (Client.SubscriptionId != null) + { + if (Client.SubscriptionId.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "Client.SubscriptionId", 1); + } + } + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (resourceGroupName != null) + { + if (resourceGroupName.Length > 90) + { + throw new ValidationException(ValidationRules.MaxLength, "resourceGroupName", 90); + } + if (resourceGroupName.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); + } + if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$")) + { + throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$"); + } + } + if (privateCloudName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "privateCloudName"); + } + if (scriptExecutionName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "scriptExecutionName"); + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + if (Client.ApiVersion != null) + { + if (Client.ApiVersion.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "Client.ApiVersion", 1); + } + } + // 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("scriptExecutionName", scriptExecutionName); + 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}/scriptExecutions/{scriptExecutionName}").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("{scriptExecutionName}", System.Uri.EscapeDataString(scriptExecutionName)); + 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 CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Create or update a script execution resource in a private cloud + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// The name of the private cloud. + /// + /// + /// Name of the user-invoked script execution resource + /// + /// + /// A script running in the private cloud + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task> CreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string privateCloudName, string scriptExecutionName, ScriptExecution scriptExecution, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send Request + AzureOperationResponse _response = await BeginCreateOrUpdateWithHttpMessagesAsync(resourceGroupName, privateCloudName, scriptExecutionName, scriptExecution, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPutOrPatchOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + + /// + /// Cancel a ScriptExecution in a private cloud + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the private cloud + /// + /// + /// Name of the user-invoked script execution resource + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task DeleteWithHttpMessagesAsync(string resourceGroupName, string privateCloudName, string scriptExecutionName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send request + AzureOperationResponse _response = await BeginDeleteWithHttpMessagesAsync(resourceGroupName, privateCloudName, scriptExecutionName, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + + /// + /// Return the logs for a script execution resource + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the private cloud + /// + /// + /// Name of the user-invoked script execution resource + /// + /// + /// Name of the desired output stream to return. If not provided, will return + /// all. An empty array will return nothing + /// + /// + /// 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> GetExecutionLogsWithHttpMessagesAsync(string resourceGroupName, string privateCloudName, string scriptExecutionName, IList scriptOutputStreamType = default(IList), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (Client.SubscriptionId != null) + { + if (Client.SubscriptionId.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "Client.SubscriptionId", 1); + } + } + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (resourceGroupName != null) + { + if (resourceGroupName.Length > 90) + { + throw new ValidationException(ValidationRules.MaxLength, "resourceGroupName", 90); + } + if (resourceGroupName.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); + } + if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$")) + { + throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$"); + } + } + if (privateCloudName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "privateCloudName"); + } + if (scriptExecutionName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "scriptExecutionName"); + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + if (Client.ApiVersion != null) + { + if (Client.ApiVersion.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "Client.ApiVersion", 1); + } + } + // 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("scriptExecutionName", scriptExecutionName); + tracingParameters.Add("scriptOutputStreamType", scriptOutputStreamType); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "GetExecutionLogs", 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}/scriptExecutions/{scriptExecutionName}/getExecutionLogs").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("{scriptExecutionName}", System.Uri.EscapeDataString(scriptExecutionName)); + 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; + if(scriptOutputStreamType != null) + { + _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(scriptOutputStreamType, 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) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Create or update a script execution resource in a private cloud + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// The name of the private cloud. + /// + /// + /// Name of the user-invoked script execution resource + /// + /// + /// A script running 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 scriptExecutionName, ScriptExecution scriptExecution, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (Client.SubscriptionId != null) + { + if (Client.SubscriptionId.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "Client.SubscriptionId", 1); + } + } + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (resourceGroupName != null) + { + if (resourceGroupName.Length > 90) + { + throw new ValidationException(ValidationRules.MaxLength, "resourceGroupName", 90); + } + if (resourceGroupName.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); + } + if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$")) + { + throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$"); + } + } + if (privateCloudName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "privateCloudName"); + } + if (scriptExecutionName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "scriptExecutionName"); + } + if (scriptExecution == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "scriptExecution"); + } + if (scriptExecution != null) + { + scriptExecution.Validate(); + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + if (Client.ApiVersion != null) + { + if (Client.ApiVersion.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "Client.ApiVersion", 1); + } + } + // 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("scriptExecutionName", scriptExecutionName); + tracingParameters.Add("scriptExecution", scriptExecution); + 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}/scriptExecutions/{scriptExecutionName}").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("{scriptExecutionName}", System.Uri.EscapeDataString(scriptExecutionName)); + 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(scriptExecution != null) + { + _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(scriptExecution, 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 CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + // 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; + } + + /// + /// Cancel a ScriptExecution in a private cloud + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the private cloud + /// + /// + /// Name of the user-invoked script execution resource + /// + /// + /// 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 scriptExecutionName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (Client.SubscriptionId != null) + { + if (Client.SubscriptionId.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "Client.SubscriptionId", 1); + } + } + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (resourceGroupName != null) + { + if (resourceGroupName.Length > 90) + { + throw new ValidationException(ValidationRules.MaxLength, "resourceGroupName", 90); + } + if (resourceGroupName.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); + } + if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$")) + { + throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$"); + } + } + if (privateCloudName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "privateCloudName"); + } + if (scriptExecutionName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "scriptExecutionName"); + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + if (Client.ApiVersion != null) + { + if (Client.ApiVersion.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "Client.ApiVersion", 1); + } + } + // 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("scriptExecutionName", scriptExecutionName); + 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}/scriptExecutions/{scriptExecutionName}").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("{scriptExecutionName}", System.Uri.EscapeDataString(scriptExecutionName)); + 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 CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Get an script execution resource by name 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 CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse>(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + } +} diff --git a/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/ScriptExecutionsOperationsExtensions.cs b/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/ScriptExecutionsOperationsExtensions.cs new file mode 100644 index 000000000000..e6da0ac98ad7 --- /dev/null +++ b/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/ScriptExecutionsOperationsExtensions.cs @@ -0,0 +1,391 @@ +// +// 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; + + /// + /// Extension methods for ScriptExecutionsOperations. + /// + public static partial class ScriptExecutionsOperationsExtensions + { + /// + /// Get an script execution resource by name in a private cloud + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the private cloud + /// + public static IPage List(this IScriptExecutionsOperations operations, string resourceGroupName, string privateCloudName) + { + return operations.ListAsync(resourceGroupName, privateCloudName).GetAwaiter().GetResult(); + } + + /// + /// Get an script execution resource by name in a private cloud + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the private cloud + /// + /// + /// The cancellation token. + /// + public static async Task> ListAsync(this IScriptExecutionsOperations 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 an script execution resource by name in a private cloud + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the private cloud + /// + /// + /// Name of the user-invoked script execution resource + /// + public static ScriptExecution Get(this IScriptExecutionsOperations operations, string resourceGroupName, string privateCloudName, string scriptExecutionName) + { + return operations.GetAsync(resourceGroupName, privateCloudName, scriptExecutionName).GetAwaiter().GetResult(); + } + + /// + /// Get an script execution resource by name in a private cloud + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the private cloud + /// + /// + /// Name of the user-invoked script execution resource + /// + /// + /// The cancellation token. + /// + public static async Task GetAsync(this IScriptExecutionsOperations operations, string resourceGroupName, string privateCloudName, string scriptExecutionName, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.GetWithHttpMessagesAsync(resourceGroupName, privateCloudName, scriptExecutionName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Create or update a script execution resource in a private cloud + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// The name of the private cloud. + /// + /// + /// Name of the user-invoked script execution resource + /// + /// + /// A script running in the private cloud + /// + public static ScriptExecution CreateOrUpdate(this IScriptExecutionsOperations operations, string resourceGroupName, string privateCloudName, string scriptExecutionName, ScriptExecution scriptExecution) + { + return operations.CreateOrUpdateAsync(resourceGroupName, privateCloudName, scriptExecutionName, scriptExecution).GetAwaiter().GetResult(); + } + + /// + /// Create or update a script execution resource in a private cloud + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// The name of the private cloud. + /// + /// + /// Name of the user-invoked script execution resource + /// + /// + /// A script running in the private cloud + /// + /// + /// The cancellation token. + /// + public static async Task CreateOrUpdateAsync(this IScriptExecutionsOperations operations, string resourceGroupName, string privateCloudName, string scriptExecutionName, ScriptExecution scriptExecution, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.CreateOrUpdateWithHttpMessagesAsync(resourceGroupName, privateCloudName, scriptExecutionName, scriptExecution, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Cancel a ScriptExecution in a private cloud + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the private cloud + /// + /// + /// Name of the user-invoked script execution resource + /// + public static void Delete(this IScriptExecutionsOperations operations, string resourceGroupName, string privateCloudName, string scriptExecutionName) + { + operations.DeleteAsync(resourceGroupName, privateCloudName, scriptExecutionName).GetAwaiter().GetResult(); + } + + /// + /// Cancel a ScriptExecution in a private cloud + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the private cloud + /// + /// + /// Name of the user-invoked script execution resource + /// + /// + /// The cancellation token. + /// + public static async Task DeleteAsync(this IScriptExecutionsOperations operations, string resourceGroupName, string privateCloudName, string scriptExecutionName, CancellationToken cancellationToken = default(CancellationToken)) + { + (await operations.DeleteWithHttpMessagesAsync(resourceGroupName, privateCloudName, scriptExecutionName, null, cancellationToken).ConfigureAwait(false)).Dispose(); + } + + /// + /// Return the logs for a script execution resource + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the private cloud + /// + /// + /// Name of the user-invoked script execution resource + /// + /// + /// Name of the desired output stream to return. If not provided, will return + /// all. An empty array will return nothing + /// + public static ScriptExecution GetExecutionLogs(this IScriptExecutionsOperations operations, string resourceGroupName, string privateCloudName, string scriptExecutionName, IList scriptOutputStreamType = default(IList)) + { + return operations.GetExecutionLogsAsync(resourceGroupName, privateCloudName, scriptExecutionName, scriptOutputStreamType).GetAwaiter().GetResult(); + } + + /// + /// Return the logs for a script execution resource + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the private cloud + /// + /// + /// Name of the user-invoked script execution resource + /// + /// + /// Name of the desired output stream to return. If not provided, will return + /// all. An empty array will return nothing + /// + /// + /// The cancellation token. + /// + public static async Task GetExecutionLogsAsync(this IScriptExecutionsOperations operations, string resourceGroupName, string privateCloudName, string scriptExecutionName, IList scriptOutputStreamType = default(IList), CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.GetExecutionLogsWithHttpMessagesAsync(resourceGroupName, privateCloudName, scriptExecutionName, scriptOutputStreamType, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Create or update a script execution resource in a private cloud + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// The name of the private cloud. + /// + /// + /// Name of the user-invoked script execution resource + /// + /// + /// A script running in the private cloud + /// + public static ScriptExecution BeginCreateOrUpdate(this IScriptExecutionsOperations operations, string resourceGroupName, string privateCloudName, string scriptExecutionName, ScriptExecution scriptExecution) + { + return operations.BeginCreateOrUpdateAsync(resourceGroupName, privateCloudName, scriptExecutionName, scriptExecution).GetAwaiter().GetResult(); + } + + /// + /// Create or update a script execution resource in a private cloud + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// The name of the private cloud. + /// + /// + /// Name of the user-invoked script execution resource + /// + /// + /// A script running in the private cloud + /// + /// + /// The cancellation token. + /// + public static async Task BeginCreateOrUpdateAsync(this IScriptExecutionsOperations operations, string resourceGroupName, string privateCloudName, string scriptExecutionName, ScriptExecution scriptExecution, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.BeginCreateOrUpdateWithHttpMessagesAsync(resourceGroupName, privateCloudName, scriptExecutionName, scriptExecution, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Cancel a ScriptExecution in a private cloud + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the private cloud + /// + /// + /// Name of the user-invoked script execution resource + /// + public static void BeginDelete(this IScriptExecutionsOperations operations, string resourceGroupName, string privateCloudName, string scriptExecutionName) + { + operations.BeginDeleteAsync(resourceGroupName, privateCloudName, scriptExecutionName).GetAwaiter().GetResult(); + } + + /// + /// Cancel a ScriptExecution in a private cloud + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the private cloud + /// + /// + /// Name of the user-invoked script execution resource + /// + /// + /// The cancellation token. + /// + public static async Task BeginDeleteAsync(this IScriptExecutionsOperations operations, string resourceGroupName, string privateCloudName, string scriptExecutionName, CancellationToken cancellationToken = default(CancellationToken)) + { + (await operations.BeginDeleteWithHttpMessagesAsync(resourceGroupName, privateCloudName, scriptExecutionName, null, cancellationToken).ConfigureAwait(false)).Dispose(); + } + + /// + /// Get an script execution resource by name 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 IScriptExecutionsOperations operations, string nextPageLink) + { + return operations.ListNextAsync(nextPageLink).GetAwaiter().GetResult(); + } + + /// + /// Get an script execution resource by name 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 IScriptExecutionsOperations 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/ScriptPackagesOperations.cs b/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/ScriptPackagesOperations.cs new file mode 100644 index 000000000000..21c19bfcae26 --- /dev/null +++ b/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/ScriptPackagesOperations.cs @@ -0,0 +1,688 @@ +// +// 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; + + /// + /// ScriptPackagesOperations operations. + /// + internal partial class ScriptPackagesOperations : IServiceOperations, IScriptPackagesOperations + { + /// + /// Initializes a new instance of the ScriptPackagesOperations class. + /// + /// + /// Reference to the service client. + /// + /// + /// Thrown when a required parameter is null + /// + internal ScriptPackagesOperations(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 script packages available for a private cloud to run on their + /// Private Cloud + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// 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 (Client.SubscriptionId != null) + { + if (Client.SubscriptionId.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "Client.SubscriptionId", 1); + } + } + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (resourceGroupName != null) + { + if (resourceGroupName.Length > 90) + { + throw new ValidationException(ValidationRules.MaxLength, "resourceGroupName", 90); + } + if (resourceGroupName.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); + } + if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$")) + { + throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$"); + } + } + if (privateCloudName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "privateCloudName"); + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + if (Client.ApiVersion != null) + { + if (Client.ApiVersion.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "Client.ApiVersion", 1); + } + } + // 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}/scriptPackages").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 CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse>(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Return script package available to run on an Private Cloud + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the private cloud + /// + /// + /// Name of the script package 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 scriptPackageName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (Client.SubscriptionId != null) + { + if (Client.SubscriptionId.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "Client.SubscriptionId", 1); + } + } + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (resourceGroupName != null) + { + if (resourceGroupName.Length > 90) + { + throw new ValidationException(ValidationRules.MaxLength, "resourceGroupName", 90); + } + if (resourceGroupName.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); + } + if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$")) + { + throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$"); + } + } + if (privateCloudName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "privateCloudName"); + } + if (scriptPackageName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "scriptPackageName"); + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + if (Client.ApiVersion != null) + { + if (Client.ApiVersion.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "Client.ApiVersion", 1); + } + } + // 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("scriptPackageName", scriptPackageName); + 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}/scriptPackages/{scriptPackageName}").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("{scriptPackageName}", System.Uri.EscapeDataString(scriptPackageName)); + 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 CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Return script packages available for a private cloud to run on their + /// 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 CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse>(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + } +} diff --git a/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/ScriptPackagesOperationsExtensions.cs b/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/ScriptPackagesOperationsExtensions.cs new file mode 100644 index 000000000000..f8720e7b13d3 --- /dev/null +++ b/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/ScriptPackagesOperationsExtensions.cs @@ -0,0 +1,149 @@ +// +// 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 ScriptPackagesOperations. + /// + public static partial class ScriptPackagesOperationsExtensions + { + /// + /// Return script packages available for a private cloud to run on their + /// Private Cloud + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the private cloud + /// + public static IPage List(this IScriptPackagesOperations operations, string resourceGroupName, string privateCloudName) + { + return operations.ListAsync(resourceGroupName, privateCloudName).GetAwaiter().GetResult(); + } + + /// + /// Return script packages available for a private cloud to run on their + /// Private Cloud + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the private cloud + /// + /// + /// The cancellation token. + /// + public static async Task> ListAsync(this IScriptPackagesOperations operations, string resourceGroupName, string privateCloudName, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListWithHttpMessagesAsync(resourceGroupName, privateCloudName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Return script package available to run on an Private Cloud + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the private cloud + /// + /// + /// Name of the script package in the private cloud + /// + public static ScriptPackage Get(this IScriptPackagesOperations operations, string resourceGroupName, string privateCloudName, string scriptPackageName) + { + return operations.GetAsync(resourceGroupName, privateCloudName, scriptPackageName).GetAwaiter().GetResult(); + } + + /// + /// Return script package available to run on an Private Cloud + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the private cloud + /// + /// + /// Name of the script package in the private cloud + /// + /// + /// The cancellation token. + /// + public static async Task GetAsync(this IScriptPackagesOperations operations, string resourceGroupName, string privateCloudName, string scriptPackageName, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.GetWithHttpMessagesAsync(resourceGroupName, privateCloudName, scriptPackageName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Return script packages available for a private cloud to run on their + /// Private Cloud + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + public static IPage ListNext(this IScriptPackagesOperations operations, string nextPageLink) + { + return operations.ListNextAsync(nextPageLink).GetAwaiter().GetResult(); + } + + /// + /// Return script packages available for a private cloud to run on their + /// 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 IScriptPackagesOperations 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/SdkInfo_AzureVMwareSolutionAPI.cs b/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/SdkInfo_AzureVMwareSolutionAPI.cs index 14aaa6a7a8ab..fbf7cb40fc93 100644 --- a/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/SdkInfo_AzureVMwareSolutionAPI.cs +++ b/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/SdkInfo_AzureVMwareSolutionAPI.cs @@ -19,22 +19,30 @@ public static IEnumerable> ApiInfo_AzureVMwareSolu { return new Tuple[] { - new Tuple("AVS", "Authorizations", "2020-03-20"), - new Tuple("AVS", "Clusters", "2020-03-20"), - new Tuple("AVS", "HcxEnterpriseSites", "2020-03-20"), - new Tuple("AVS", "Locations", "2020-03-20"), - new Tuple("AVS", "Operations", "2020-03-20"), - new Tuple("AVS", "PrivateClouds", "2020-03-20"), + new Tuple("AVS", "Addons", "2021-06-01"), + new Tuple("AVS", "Authorizations", "2021-06-01"), + new Tuple("AVS", "CloudLinks", "2021-06-01"), + new Tuple("AVS", "Clusters", "2021-06-01"), + new Tuple("AVS", "Datastores", "2021-06-01"), + new Tuple("AVS", "GlobalReachConnections", "2021-06-01"), + new Tuple("AVS", "HcxEnterpriseSites", "2021-06-01"), + new Tuple("AVS", "Locations", "2021-06-01"), + new Tuple("AVS", "Operations", "2021-06-01"), + new Tuple("AVS", "PrivateClouds", "2021-06-01"), + new Tuple("AVS", "ScriptCmdlets", "2021-06-01"), + new Tuple("AVS", "ScriptExecutions", "2021-06-01"), + new Tuple("AVS", "ScriptPackages", "2021-06-01"), + new Tuple("AVS", "WorkloadNetworks", "2021-06-01"), }.AsEnumerable(); } } // BEGIN: Code Generation Metadata Section public static readonly String AutoRestVersion = "v2"; public static readonly String AutoRestBootStrapperVersion = "autorest@2.0.4413"; - public static readonly String AutoRestCmdExecuted = "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"; + public static readonly String AutoRestCmdExecuted = "cmd.exe /c autorest.cmd https://github.com/Azure/azure-rest-api-specs/blob/AVS/dotnet/specification/vmware/resource-manager/readme.md --csharp --version=v2 --reflect-api-versions --csharp-sdks-folder=C:\\Users\\cataggar\\io\\azure-sdk-for-net\\sdk"; public static readonly String GithubForkName = "Azure"; - public static readonly String GithubBranchName = "master"; - public static readonly String GithubCommidId = "3faca877220bd1d20af91576946e3e6c5819ce96"; + public static readonly String GithubBranchName = "AVS/dotnet"; + public static readonly String GithubCommidId = "13dc07975e72d633349c2f0696610f7ddf25fc16"; public static readonly String CodeGenerationErrors = ""; public static readonly String GithubRepoName = "azure-rest-api-specs"; // END: Code Generation Metadata Section diff --git a/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/WorkloadNetworksOperations.cs b/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/WorkloadNetworksOperations.cs new file mode 100644 index 000000000000..603b73e5eecc --- /dev/null +++ b/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/WorkloadNetworksOperations.cs @@ -0,0 +1,11143 @@ +// +// 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; + + /// + /// WorkloadNetworksOperations operations. + /// + internal partial class WorkloadNetworksOperations : IServiceOperations, IWorkloadNetworksOperations + { + /// + /// Initializes a new instance of the WorkloadNetworksOperations class. + /// + /// + /// Reference to the service client. + /// + /// + /// Thrown when a required parameter is null + /// + internal WorkloadNetworksOperations(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 of segments in a private cloud workload network. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// 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>> ListSegmentsWithHttpMessagesAsync(string resourceGroupName, string privateCloudName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (Client.SubscriptionId != null) + { + if (Client.SubscriptionId.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "Client.SubscriptionId", 1); + } + } + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (resourceGroupName != null) + { + if (resourceGroupName.Length > 90) + { + throw new ValidationException(ValidationRules.MaxLength, "resourceGroupName", 90); + } + if (resourceGroupName.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); + } + if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$")) + { + throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$"); + } + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + if (Client.ApiVersion != null) + { + if (Client.ApiVersion.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "Client.ApiVersion", 1); + } + } + if (privateCloudName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "privateCloudName"); + } + // 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, "ListSegments", 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}/workloadNetworks/default/segments").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 CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse>(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Get a segment by id in a private cloud workload network. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the private cloud + /// + /// + /// NSX Segment identifier. Generally the same as the Segment's display name + /// + /// + /// 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> GetSegmentWithHttpMessagesAsync(string resourceGroupName, string privateCloudName, string segmentId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (Client.SubscriptionId != null) + { + if (Client.SubscriptionId.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "Client.SubscriptionId", 1); + } + } + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (resourceGroupName != null) + { + if (resourceGroupName.Length > 90) + { + throw new ValidationException(ValidationRules.MaxLength, "resourceGroupName", 90); + } + if (resourceGroupName.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); + } + if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$")) + { + throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$"); + } + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + if (Client.ApiVersion != null) + { + if (Client.ApiVersion.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "Client.ApiVersion", 1); + } + } + if (privateCloudName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "privateCloudName"); + } + if (segmentId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "segmentId"); + } + // 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("segmentId", segmentId); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "GetSegment", 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}/workloadNetworks/default/segments/{segmentId}").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("{segmentId}", System.Uri.EscapeDataString(segmentId)); + 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 CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Create a segment by id in a private cloud workload network. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the private cloud + /// + /// + /// NSX Segment identifier. Generally the same as the Segment's display name + /// + /// + /// NSX Segment + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task> CreateSegmentsWithHttpMessagesAsync(string resourceGroupName, string privateCloudName, string segmentId, WorkloadNetworkSegment workloadNetworkSegment, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send Request + AzureOperationResponse _response = await BeginCreateSegmentsWithHttpMessagesAsync(resourceGroupName, privateCloudName, segmentId, workloadNetworkSegment, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPutOrPatchOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + + /// + /// Create or update a segment by id in a private cloud workload network. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the private cloud + /// + /// + /// NSX Segment identifier. Generally the same as the Segment's display name + /// + /// + /// NSX Segment + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task> UpdateSegmentsWithHttpMessagesAsync(string resourceGroupName, string privateCloudName, string segmentId, WorkloadNetworkSegment workloadNetworkSegment, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send Request + AzureOperationResponse _response = await BeginUpdateSegmentsWithHttpMessagesAsync(resourceGroupName, privateCloudName, segmentId, workloadNetworkSegment, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPutOrPatchOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + + /// + /// Delete a segment by id in a private cloud workload network. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the private cloud + /// + /// + /// NSX Segment identifier. Generally the same as the Segment's display name + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task DeleteSegmentWithHttpMessagesAsync(string resourceGroupName, string privateCloudName, string segmentId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send request + AzureOperationResponse _response = await BeginDeleteSegmentWithHttpMessagesAsync(resourceGroupName, privateCloudName, segmentId, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + + /// + /// List dhcp in a private cloud workload network. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// 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>> ListDhcpWithHttpMessagesAsync(string resourceGroupName, string privateCloudName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (Client.SubscriptionId != null) + { + if (Client.SubscriptionId.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "Client.SubscriptionId", 1); + } + } + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (resourceGroupName != null) + { + if (resourceGroupName.Length > 90) + { + throw new ValidationException(ValidationRules.MaxLength, "resourceGroupName", 90); + } + if (resourceGroupName.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); + } + if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$")) + { + throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$"); + } + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + if (Client.ApiVersion != null) + { + if (Client.ApiVersion.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "Client.ApiVersion", 1); + } + } + if (privateCloudName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "privateCloudName"); + } + // 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, "ListDhcp", 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}/workloadNetworks/default/dhcpConfigurations").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 CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse>(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Get dhcp by id in a private cloud workload network. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// NSX DHCP identifier. Generally the same as the DHCP display name + /// + /// + /// 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> GetDhcpWithHttpMessagesAsync(string resourceGroupName, string dhcpId, string privateCloudName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (Client.SubscriptionId != null) + { + if (Client.SubscriptionId.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "Client.SubscriptionId", 1); + } + } + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (resourceGroupName != null) + { + if (resourceGroupName.Length > 90) + { + throw new ValidationException(ValidationRules.MaxLength, "resourceGroupName", 90); + } + if (resourceGroupName.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); + } + if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$")) + { + throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$"); + } + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + if (Client.ApiVersion != null) + { + if (Client.ApiVersion.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "Client.ApiVersion", 1); + } + } + if (dhcpId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "dhcpId"); + } + if (privateCloudName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "privateCloudName"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("dhcpId", dhcpId); + tracingParameters.Add("privateCloudName", privateCloudName); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "GetDhcp", 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}/workloadNetworks/default/dhcpConfigurations/{dhcpId}").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{dhcpId}", System.Uri.EscapeDataString(dhcpId)); + _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 CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Create dhcp by id in a private cloud workload network. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the private cloud + /// + /// + /// NSX DHCP identifier. Generally the same as the DHCP display name + /// + /// + /// NSX DHCP + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task> CreateDhcpWithHttpMessagesAsync(string resourceGroupName, string privateCloudName, string dhcpId, WorkloadNetworkDhcp workloadNetworkDhcp, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send Request + AzureOperationResponse _response = await BeginCreateDhcpWithHttpMessagesAsync(resourceGroupName, privateCloudName, dhcpId, workloadNetworkDhcp, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPutOrPatchOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + + /// + /// Create or update dhcp by id in a private cloud workload network. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the private cloud + /// + /// + /// NSX DHCP identifier. Generally the same as the DHCP display name + /// + /// + /// NSX DHCP + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task> UpdateDhcpWithHttpMessagesAsync(string resourceGroupName, string privateCloudName, string dhcpId, WorkloadNetworkDhcp workloadNetworkDhcp, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send Request + AzureOperationResponse _response = await BeginUpdateDhcpWithHttpMessagesAsync(resourceGroupName, privateCloudName, dhcpId, workloadNetworkDhcp, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPutOrPatchOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + + /// + /// Delete dhcp by id in a private cloud workload network. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the private cloud + /// + /// + /// NSX DHCP identifier. Generally the same as the DHCP display name + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task DeleteDhcpWithHttpMessagesAsync(string resourceGroupName, string privateCloudName, string dhcpId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send request + AzureOperationResponse _response = await BeginDeleteDhcpWithHttpMessagesAsync(resourceGroupName, privateCloudName, dhcpId, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + + /// + /// List of gateways in a private cloud workload network. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// 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>> ListGatewaysWithHttpMessagesAsync(string resourceGroupName, string privateCloudName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (Client.SubscriptionId != null) + { + if (Client.SubscriptionId.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "Client.SubscriptionId", 1); + } + } + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (resourceGroupName != null) + { + if (resourceGroupName.Length > 90) + { + throw new ValidationException(ValidationRules.MaxLength, "resourceGroupName", 90); + } + if (resourceGroupName.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); + } + if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$")) + { + throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$"); + } + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + if (Client.ApiVersion != null) + { + if (Client.ApiVersion.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "Client.ApiVersion", 1); + } + } + if (privateCloudName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "privateCloudName"); + } + // 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, "ListGateways", 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}/workloadNetworks/default/gateways").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 CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse>(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Get a gateway by id in a private cloud workload network. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the private cloud + /// + /// + /// NSX Gateway identifier. Generally the same as the Gateway's display name + /// + /// + /// 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> GetGatewayWithHttpMessagesAsync(string resourceGroupName, string privateCloudName, string gatewayId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (Client.SubscriptionId != null) + { + if (Client.SubscriptionId.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "Client.SubscriptionId", 1); + } + } + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (resourceGroupName != null) + { + if (resourceGroupName.Length > 90) + { + throw new ValidationException(ValidationRules.MaxLength, "resourceGroupName", 90); + } + if (resourceGroupName.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); + } + if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$")) + { + throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$"); + } + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + if (Client.ApiVersion != null) + { + if (Client.ApiVersion.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "Client.ApiVersion", 1); + } + } + if (privateCloudName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "privateCloudName"); + } + if (gatewayId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "gatewayId"); + } + // 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("gatewayId", gatewayId); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "GetGateway", 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}/workloadNetworks/default/gateways/{gatewayId}").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("{gatewayId}", System.Uri.EscapeDataString(gatewayId)); + 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 CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// List of port mirroring profiles in a private cloud workload network. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// 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>> ListPortMirroringWithHttpMessagesAsync(string resourceGroupName, string privateCloudName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (Client.SubscriptionId != null) + { + if (Client.SubscriptionId.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "Client.SubscriptionId", 1); + } + } + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (resourceGroupName != null) + { + if (resourceGroupName.Length > 90) + { + throw new ValidationException(ValidationRules.MaxLength, "resourceGroupName", 90); + } + if (resourceGroupName.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); + } + if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$")) + { + throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$"); + } + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + if (Client.ApiVersion != null) + { + if (Client.ApiVersion.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "Client.ApiVersion", 1); + } + } + if (privateCloudName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "privateCloudName"); + } + // 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, "ListPortMirroring", 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}/workloadNetworks/default/portMirroringProfiles").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 CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse>(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Get a port mirroring profile by id in a private cloud workload network. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the private cloud + /// + /// + /// NSX Port Mirroring identifier. Generally the same as the Port Mirroring + /// display name + /// + /// + /// 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> GetPortMirroringWithHttpMessagesAsync(string resourceGroupName, string privateCloudName, string portMirroringId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (Client.SubscriptionId != null) + { + if (Client.SubscriptionId.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "Client.SubscriptionId", 1); + } + } + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (resourceGroupName != null) + { + if (resourceGroupName.Length > 90) + { + throw new ValidationException(ValidationRules.MaxLength, "resourceGroupName", 90); + } + if (resourceGroupName.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); + } + if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$")) + { + throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$"); + } + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + if (Client.ApiVersion != null) + { + if (Client.ApiVersion.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "Client.ApiVersion", 1); + } + } + if (privateCloudName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "privateCloudName"); + } + if (portMirroringId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "portMirroringId"); + } + // 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("portMirroringId", portMirroringId); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "GetPortMirroring", 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}/workloadNetworks/default/portMirroringProfiles/{portMirroringId}").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("{portMirroringId}", System.Uri.EscapeDataString(portMirroringId)); + 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 CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Create a port mirroring profile by id in a private cloud workload network. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the private cloud + /// + /// + /// NSX Port Mirroring identifier. Generally the same as the Port Mirroring + /// display name + /// + /// + /// NSX port mirroring + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task> CreatePortMirroringWithHttpMessagesAsync(string resourceGroupName, string privateCloudName, string portMirroringId, WorkloadNetworkPortMirroring workloadNetworkPortMirroring, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send Request + AzureOperationResponse _response = await BeginCreatePortMirroringWithHttpMessagesAsync(resourceGroupName, privateCloudName, portMirroringId, workloadNetworkPortMirroring, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPutOrPatchOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + + /// + /// Create or update a port mirroring profile by id in a private cloud workload + /// network. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the private cloud + /// + /// + /// NSX Port Mirroring identifier. Generally the same as the Port Mirroring + /// display name + /// + /// + /// NSX port mirroring + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task> UpdatePortMirroringWithHttpMessagesAsync(string resourceGroupName, string privateCloudName, string portMirroringId, WorkloadNetworkPortMirroring workloadNetworkPortMirroring, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send Request + AzureOperationResponse _response = await BeginUpdatePortMirroringWithHttpMessagesAsync(resourceGroupName, privateCloudName, portMirroringId, workloadNetworkPortMirroring, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPutOrPatchOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + + /// + /// Delete a port mirroring profile by id in a private cloud workload network. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// NSX Port Mirroring identifier. Generally the same as the Port Mirroring + /// display name + /// + /// + /// Name of the private cloud + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task DeletePortMirroringWithHttpMessagesAsync(string resourceGroupName, string portMirroringId, string privateCloudName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send request + AzureOperationResponse _response = await BeginDeletePortMirroringWithHttpMessagesAsync(resourceGroupName, portMirroringId, privateCloudName, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + + /// + /// List of vm groups in a private cloud workload network. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// 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>> ListVMGroupsWithHttpMessagesAsync(string resourceGroupName, string privateCloudName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (Client.SubscriptionId != null) + { + if (Client.SubscriptionId.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "Client.SubscriptionId", 1); + } + } + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (resourceGroupName != null) + { + if (resourceGroupName.Length > 90) + { + throw new ValidationException(ValidationRules.MaxLength, "resourceGroupName", 90); + } + if (resourceGroupName.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); + } + if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$")) + { + throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$"); + } + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + if (Client.ApiVersion != null) + { + if (Client.ApiVersion.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "Client.ApiVersion", 1); + } + } + if (privateCloudName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "privateCloudName"); + } + // 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, "ListVMGroups", 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}/workloadNetworks/default/vmGroups").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 CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse>(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Get a vm group by id in a private cloud workload network. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the private cloud + /// + /// + /// NSX VM Group identifier. Generally the same as the VM Group's display name + /// + /// + /// 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> GetVMGroupWithHttpMessagesAsync(string resourceGroupName, string privateCloudName, string vmGroupId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (Client.SubscriptionId != null) + { + if (Client.SubscriptionId.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "Client.SubscriptionId", 1); + } + } + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (resourceGroupName != null) + { + if (resourceGroupName.Length > 90) + { + throw new ValidationException(ValidationRules.MaxLength, "resourceGroupName", 90); + } + if (resourceGroupName.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); + } + if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$")) + { + throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$"); + } + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + if (Client.ApiVersion != null) + { + if (Client.ApiVersion.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "Client.ApiVersion", 1); + } + } + if (privateCloudName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "privateCloudName"); + } + if (vmGroupId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "vmGroupId"); + } + // 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("vmGroupId", vmGroupId); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "GetVMGroup", 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}/workloadNetworks/default/vmGroups/{vmGroupId}").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("{vmGroupId}", System.Uri.EscapeDataString(vmGroupId)); + 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 CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Create a vm group by id in a private cloud workload network. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the private cloud + /// + /// + /// NSX VM Group identifier. Generally the same as the VM Group's display name + /// + /// + /// NSX VM Group + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task> CreateVMGroupWithHttpMessagesAsync(string resourceGroupName, string privateCloudName, string vmGroupId, WorkloadNetworkVMGroup workloadNetworkVMGroup, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send Request + AzureOperationResponse _response = await BeginCreateVMGroupWithHttpMessagesAsync(resourceGroupName, privateCloudName, vmGroupId, workloadNetworkVMGroup, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPutOrPatchOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + + /// + /// Create or update a vm group by id in a private cloud workload network. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the private cloud + /// + /// + /// NSX VM Group identifier. Generally the same as the VM Group's display name + /// + /// + /// NSX VM Group + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task> UpdateVMGroupWithHttpMessagesAsync(string resourceGroupName, string privateCloudName, string vmGroupId, WorkloadNetworkVMGroup workloadNetworkVMGroup, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send Request + AzureOperationResponse _response = await BeginUpdateVMGroupWithHttpMessagesAsync(resourceGroupName, privateCloudName, vmGroupId, workloadNetworkVMGroup, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPutOrPatchOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + + /// + /// Delete a vm group by id in a private cloud workload network. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// NSX VM Group identifier. Generally the same as the VM Group's display name + /// + /// + /// Name of the private cloud + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task DeleteVMGroupWithHttpMessagesAsync(string resourceGroupName, string vmGroupId, string privateCloudName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send request + AzureOperationResponse _response = await BeginDeleteVMGroupWithHttpMessagesAsync(resourceGroupName, vmGroupId, privateCloudName, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + + /// + /// List of virtual machines in a private cloud workload network. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// 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>> ListVirtualMachinesWithHttpMessagesAsync(string resourceGroupName, string privateCloudName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (Client.SubscriptionId != null) + { + if (Client.SubscriptionId.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "Client.SubscriptionId", 1); + } + } + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (resourceGroupName != null) + { + if (resourceGroupName.Length > 90) + { + throw new ValidationException(ValidationRules.MaxLength, "resourceGroupName", 90); + } + if (resourceGroupName.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); + } + if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$")) + { + throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$"); + } + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + if (Client.ApiVersion != null) + { + if (Client.ApiVersion.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "Client.ApiVersion", 1); + } + } + if (privateCloudName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "privateCloudName"); + } + // 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, "ListVirtualMachines", 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}/workloadNetworks/default/virtualMachines").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 CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse>(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Get a virtual machine by id in a private cloud workload network. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the private cloud + /// + /// + /// Virtual Machine identifier + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task> GetVirtualMachineWithHttpMessagesAsync(string resourceGroupName, string privateCloudName, string virtualMachineId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (Client.SubscriptionId != null) + { + if (Client.SubscriptionId.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "Client.SubscriptionId", 1); + } + } + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (resourceGroupName != null) + { + if (resourceGroupName.Length > 90) + { + throw new ValidationException(ValidationRules.MaxLength, "resourceGroupName", 90); + } + if (resourceGroupName.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); + } + if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$")) + { + throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$"); + } + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + if (Client.ApiVersion != null) + { + if (Client.ApiVersion.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "Client.ApiVersion", 1); + } + } + if (privateCloudName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "privateCloudName"); + } + if (virtualMachineId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "virtualMachineId"); + } + // 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("virtualMachineId", virtualMachineId); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "GetVirtualMachine", 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}/workloadNetworks/default/virtualMachines/{virtualMachineId}").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("{virtualMachineId}", System.Uri.EscapeDataString(virtualMachineId)); + 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 CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// List of DNS services in a private cloud workload network. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// 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>> ListDnsServicesWithHttpMessagesAsync(string resourceGroupName, string privateCloudName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (Client.SubscriptionId != null) + { + if (Client.SubscriptionId.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "Client.SubscriptionId", 1); + } + } + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (resourceGroupName != null) + { + if (resourceGroupName.Length > 90) + { + throw new ValidationException(ValidationRules.MaxLength, "resourceGroupName", 90); + } + if (resourceGroupName.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); + } + if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$")) + { + throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$"); + } + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + if (Client.ApiVersion != null) + { + if (Client.ApiVersion.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "Client.ApiVersion", 1); + } + } + if (privateCloudName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "privateCloudName"); + } + // 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, "ListDnsServices", 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}/workloadNetworks/default/dnsServices").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 CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse>(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Get a DNS service by id in a private cloud workload network. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the private cloud + /// + /// + /// NSX DNS Service identifier. Generally the same as the DNS Service's display + /// name + /// + /// + /// 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> GetDnsServiceWithHttpMessagesAsync(string resourceGroupName, string privateCloudName, string dnsServiceId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (Client.SubscriptionId != null) + { + if (Client.SubscriptionId.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "Client.SubscriptionId", 1); + } + } + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (resourceGroupName != null) + { + if (resourceGroupName.Length > 90) + { + throw new ValidationException(ValidationRules.MaxLength, "resourceGroupName", 90); + } + if (resourceGroupName.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); + } + if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$")) + { + throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$"); + } + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + if (Client.ApiVersion != null) + { + if (Client.ApiVersion.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "Client.ApiVersion", 1); + } + } + if (privateCloudName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "privateCloudName"); + } + if (dnsServiceId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "dnsServiceId"); + } + // 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("dnsServiceId", dnsServiceId); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "GetDnsService", 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}/workloadNetworks/default/dnsServices/{dnsServiceId}").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("{dnsServiceId}", System.Uri.EscapeDataString(dnsServiceId)); + 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 CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Create a DNS service by id in a private cloud workload network. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the private cloud + /// + /// + /// NSX DNS Service identifier. Generally the same as the DNS Service's display + /// name + /// + /// + /// NSX DNS Service + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task> CreateDnsServiceWithHttpMessagesAsync(string resourceGroupName, string privateCloudName, string dnsServiceId, WorkloadNetworkDnsService workloadNetworkDnsService, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send Request + AzureOperationResponse _response = await BeginCreateDnsServiceWithHttpMessagesAsync(resourceGroupName, privateCloudName, dnsServiceId, workloadNetworkDnsService, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPutOrPatchOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + + /// + /// Create or update a DNS service by id in a private cloud workload network. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the private cloud + /// + /// + /// NSX DNS Service identifier. Generally the same as the DNS Service's display + /// name + /// + /// + /// NSX DNS Service + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task> UpdateDnsServiceWithHttpMessagesAsync(string resourceGroupName, string privateCloudName, string dnsServiceId, WorkloadNetworkDnsService workloadNetworkDnsService, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send Request + AzureOperationResponse _response = await BeginUpdateDnsServiceWithHttpMessagesAsync(resourceGroupName, privateCloudName, dnsServiceId, workloadNetworkDnsService, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPutOrPatchOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + + /// + /// Delete a DNS service by id in a private cloud workload network. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// NSX DNS Service identifier. Generally the same as the DNS Service's display + /// name + /// + /// + /// Name of the private cloud + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task DeleteDnsServiceWithHttpMessagesAsync(string resourceGroupName, string dnsServiceId, string privateCloudName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send request + AzureOperationResponse _response = await BeginDeleteDnsServiceWithHttpMessagesAsync(resourceGroupName, dnsServiceId, privateCloudName, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + + /// + /// List of DNS zones in a private cloud workload network. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// 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>> ListDnsZonesWithHttpMessagesAsync(string resourceGroupName, string privateCloudName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (Client.SubscriptionId != null) + { + if (Client.SubscriptionId.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "Client.SubscriptionId", 1); + } + } + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (resourceGroupName != null) + { + if (resourceGroupName.Length > 90) + { + throw new ValidationException(ValidationRules.MaxLength, "resourceGroupName", 90); + } + if (resourceGroupName.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); + } + if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$")) + { + throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$"); + } + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + if (Client.ApiVersion != null) + { + if (Client.ApiVersion.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "Client.ApiVersion", 1); + } + } + if (privateCloudName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "privateCloudName"); + } + // 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, "ListDnsZones", 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}/workloadNetworks/default/dnsZones").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 CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse>(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Get a DNS zone by id in a private cloud workload network. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the private cloud + /// + /// + /// NSX DNS Zone identifier. Generally the same as the DNS Zone's display name + /// + /// + /// 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> GetDnsZoneWithHttpMessagesAsync(string resourceGroupName, string privateCloudName, string dnsZoneId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (Client.SubscriptionId != null) + { + if (Client.SubscriptionId.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "Client.SubscriptionId", 1); + } + } + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (resourceGroupName != null) + { + if (resourceGroupName.Length > 90) + { + throw new ValidationException(ValidationRules.MaxLength, "resourceGroupName", 90); + } + if (resourceGroupName.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); + } + if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$")) + { + throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$"); + } + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + if (Client.ApiVersion != null) + { + if (Client.ApiVersion.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "Client.ApiVersion", 1); + } + } + if (privateCloudName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "privateCloudName"); + } + if (dnsZoneId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "dnsZoneId"); + } + // 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("dnsZoneId", dnsZoneId); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "GetDnsZone", 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}/workloadNetworks/default/dnsZones/{dnsZoneId}").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("{dnsZoneId}", System.Uri.EscapeDataString(dnsZoneId)); + 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 CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Create a DNS zone by id in a private cloud workload network. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the private cloud + /// + /// + /// NSX DNS Zone identifier. Generally the same as the DNS Zone's display name + /// + /// + /// NSX DNS Zone + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task> CreateDnsZoneWithHttpMessagesAsync(string resourceGroupName, string privateCloudName, string dnsZoneId, WorkloadNetworkDnsZone workloadNetworkDnsZone, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send Request + AzureOperationResponse _response = await BeginCreateDnsZoneWithHttpMessagesAsync(resourceGroupName, privateCloudName, dnsZoneId, workloadNetworkDnsZone, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPutOrPatchOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + + /// + /// Create or update a DNS zone by id in a private cloud workload network. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the private cloud + /// + /// + /// NSX DNS Zone identifier. Generally the same as the DNS Zone's display name + /// + /// + /// NSX DNS Zone + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task> UpdateDnsZoneWithHttpMessagesAsync(string resourceGroupName, string privateCloudName, string dnsZoneId, WorkloadNetworkDnsZone workloadNetworkDnsZone, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send Request + AzureOperationResponse _response = await BeginUpdateDnsZoneWithHttpMessagesAsync(resourceGroupName, privateCloudName, dnsZoneId, workloadNetworkDnsZone, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPutOrPatchOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + + /// + /// Delete a DNS zone by id in a private cloud workload network. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// NSX DNS Zone identifier. Generally the same as the DNS Zone's display name + /// + /// + /// Name of the private cloud + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task DeleteDnsZoneWithHttpMessagesAsync(string resourceGroupName, string dnsZoneId, string privateCloudName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send request + AzureOperationResponse _response = await BeginDeleteDnsZoneWithHttpMessagesAsync(resourceGroupName, dnsZoneId, privateCloudName, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + + /// + /// List of Public IP Blocks in a private cloud workload network. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// 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>> ListPublicIPsWithHttpMessagesAsync(string resourceGroupName, string privateCloudName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (Client.SubscriptionId != null) + { + if (Client.SubscriptionId.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "Client.SubscriptionId", 1); + } + } + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (resourceGroupName != null) + { + if (resourceGroupName.Length > 90) + { + throw new ValidationException(ValidationRules.MaxLength, "resourceGroupName", 90); + } + if (resourceGroupName.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); + } + if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$")) + { + throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$"); + } + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + if (Client.ApiVersion != null) + { + if (Client.ApiVersion.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "Client.ApiVersion", 1); + } + } + if (privateCloudName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "privateCloudName"); + } + // 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, "ListPublicIPs", 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}/workloadNetworks/default/publicIPs").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 CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse>(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Get a Public IP Block by id in a private cloud workload network. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the private cloud + /// + /// + /// NSX Public IP Block identifier. Generally the same as the Public IP Block's + /// display name + /// + /// + /// 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> GetPublicIPWithHttpMessagesAsync(string resourceGroupName, string privateCloudName, string publicIPId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (Client.SubscriptionId != null) + { + if (Client.SubscriptionId.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "Client.SubscriptionId", 1); + } + } + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (resourceGroupName != null) + { + if (resourceGroupName.Length > 90) + { + throw new ValidationException(ValidationRules.MaxLength, "resourceGroupName", 90); + } + if (resourceGroupName.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); + } + if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$")) + { + throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$"); + } + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + if (Client.ApiVersion != null) + { + if (Client.ApiVersion.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "Client.ApiVersion", 1); + } + } + if (privateCloudName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "privateCloudName"); + } + if (publicIPId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "publicIPId"); + } + // 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("publicIPId", publicIPId); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "GetPublicIP", 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}/workloadNetworks/default/publicIPs/{publicIPId}").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("{publicIPId}", System.Uri.EscapeDataString(publicIPId)); + 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 CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Create a Public IP Block by id in a private cloud workload network. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the private cloud + /// + /// + /// NSX Public IP Block identifier. Generally the same as the Public IP Block's + /// display name + /// + /// + /// NSX Public IP Block + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task> CreatePublicIPWithHttpMessagesAsync(string resourceGroupName, string privateCloudName, string publicIPId, WorkloadNetworkPublicIP workloadNetworkPublicIP, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send Request + AzureOperationResponse _response = await BeginCreatePublicIPWithHttpMessagesAsync(resourceGroupName, privateCloudName, publicIPId, workloadNetworkPublicIP, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPutOrPatchOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + + /// + /// Delete a Public IP Block by id in a private cloud workload network. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// NSX Public IP Block identifier. Generally the same as the Public IP Block's + /// display name + /// + /// + /// Name of the private cloud + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task DeletePublicIPWithHttpMessagesAsync(string resourceGroupName, string publicIPId, string privateCloudName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send request + AzureOperationResponse _response = await BeginDeletePublicIPWithHttpMessagesAsync(resourceGroupName, publicIPId, privateCloudName, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + + /// + /// Create a segment by id in a private cloud workload network. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the private cloud + /// + /// + /// NSX Segment identifier. Generally the same as the Segment's display name + /// + /// + /// NSX Segment + /// + /// + /// 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> BeginCreateSegmentsWithHttpMessagesAsync(string resourceGroupName, string privateCloudName, string segmentId, WorkloadNetworkSegment workloadNetworkSegment, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (Client.SubscriptionId != null) + { + if (Client.SubscriptionId.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "Client.SubscriptionId", 1); + } + } + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (resourceGroupName != null) + { + if (resourceGroupName.Length > 90) + { + throw new ValidationException(ValidationRules.MaxLength, "resourceGroupName", 90); + } + if (resourceGroupName.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); + } + if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$")) + { + throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$"); + } + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + if (Client.ApiVersion != null) + { + if (Client.ApiVersion.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "Client.ApiVersion", 1); + } + } + if (privateCloudName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "privateCloudName"); + } + if (segmentId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "segmentId"); + } + if (workloadNetworkSegment == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "workloadNetworkSegment"); + } + // 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("segmentId", segmentId); + tracingParameters.Add("workloadNetworkSegment", workloadNetworkSegment); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "BeginCreateSegments", 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}/workloadNetworks/default/segments/{segmentId}").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("{segmentId}", System.Uri.EscapeDataString(segmentId)); + 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(workloadNetworkSegment != null) + { + _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(workloadNetworkSegment, 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 CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + // 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; + } + + /// + /// Create or update a segment by id in a private cloud workload network. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the private cloud + /// + /// + /// NSX Segment identifier. Generally the same as the Segment's display name + /// + /// + /// NSX Segment + /// + /// + /// 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> BeginUpdateSegmentsWithHttpMessagesAsync(string resourceGroupName, string privateCloudName, string segmentId, WorkloadNetworkSegment workloadNetworkSegment, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (Client.SubscriptionId != null) + { + if (Client.SubscriptionId.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "Client.SubscriptionId", 1); + } + } + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (resourceGroupName != null) + { + if (resourceGroupName.Length > 90) + { + throw new ValidationException(ValidationRules.MaxLength, "resourceGroupName", 90); + } + if (resourceGroupName.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); + } + if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$")) + { + throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$"); + } + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + if (Client.ApiVersion != null) + { + if (Client.ApiVersion.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "Client.ApiVersion", 1); + } + } + if (privateCloudName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "privateCloudName"); + } + if (segmentId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "segmentId"); + } + if (workloadNetworkSegment == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "workloadNetworkSegment"); + } + // 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("segmentId", segmentId); + tracingParameters.Add("workloadNetworkSegment", workloadNetworkSegment); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "BeginUpdateSegments", 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}/workloadNetworks/default/segments/{segmentId}").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("{segmentId}", System.Uri.EscapeDataString(segmentId)); + 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(workloadNetworkSegment != null) + { + _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(workloadNetworkSegment, 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 != 202) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Delete a segment by id in a private cloud workload network. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the private cloud + /// + /// + /// NSX Segment identifier. Generally the same as the Segment's display name + /// + /// + /// 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 BeginDeleteSegmentWithHttpMessagesAsync(string resourceGroupName, string privateCloudName, string segmentId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (Client.SubscriptionId != null) + { + if (Client.SubscriptionId.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "Client.SubscriptionId", 1); + } + } + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (resourceGroupName != null) + { + if (resourceGroupName.Length > 90) + { + throw new ValidationException(ValidationRules.MaxLength, "resourceGroupName", 90); + } + if (resourceGroupName.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); + } + if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$")) + { + throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$"); + } + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + if (Client.ApiVersion != null) + { + if (Client.ApiVersion.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "Client.ApiVersion", 1); + } + } + if (privateCloudName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "privateCloudName"); + } + if (segmentId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "segmentId"); + } + // 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("segmentId", segmentId); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "BeginDeleteSegment", 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}/workloadNetworks/default/segments/{segmentId}").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("{segmentId}", System.Uri.EscapeDataString(segmentId)); + 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 CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Create dhcp by id in a private cloud workload network. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the private cloud + /// + /// + /// NSX DHCP identifier. Generally the same as the DHCP display name + /// + /// + /// NSX DHCP + /// + /// + /// 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> BeginCreateDhcpWithHttpMessagesAsync(string resourceGroupName, string privateCloudName, string dhcpId, WorkloadNetworkDhcp workloadNetworkDhcp, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (Client.SubscriptionId != null) + { + if (Client.SubscriptionId.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "Client.SubscriptionId", 1); + } + } + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (resourceGroupName != null) + { + if (resourceGroupName.Length > 90) + { + throw new ValidationException(ValidationRules.MaxLength, "resourceGroupName", 90); + } + if (resourceGroupName.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); + } + if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$")) + { + throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$"); + } + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + if (Client.ApiVersion != null) + { + if (Client.ApiVersion.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "Client.ApiVersion", 1); + } + } + if (privateCloudName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "privateCloudName"); + } + if (dhcpId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "dhcpId"); + } + if (workloadNetworkDhcp == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "workloadNetworkDhcp"); + } + // 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("dhcpId", dhcpId); + tracingParameters.Add("workloadNetworkDhcp", workloadNetworkDhcp); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "BeginCreateDhcp", 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}/workloadNetworks/default/dhcpConfigurations/{dhcpId}").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("{dhcpId}", System.Uri.EscapeDataString(dhcpId)); + 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(workloadNetworkDhcp != null) + { + _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(workloadNetworkDhcp, 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 CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + // 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; + } + + /// + /// Create or update dhcp by id in a private cloud workload network. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the private cloud + /// + /// + /// NSX DHCP identifier. Generally the same as the DHCP display name + /// + /// + /// NSX DHCP + /// + /// + /// 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> BeginUpdateDhcpWithHttpMessagesAsync(string resourceGroupName, string privateCloudName, string dhcpId, WorkloadNetworkDhcp workloadNetworkDhcp, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (Client.SubscriptionId != null) + { + if (Client.SubscriptionId.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "Client.SubscriptionId", 1); + } + } + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (resourceGroupName != null) + { + if (resourceGroupName.Length > 90) + { + throw new ValidationException(ValidationRules.MaxLength, "resourceGroupName", 90); + } + if (resourceGroupName.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); + } + if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$")) + { + throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$"); + } + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + if (Client.ApiVersion != null) + { + if (Client.ApiVersion.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "Client.ApiVersion", 1); + } + } + if (privateCloudName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "privateCloudName"); + } + if (dhcpId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "dhcpId"); + } + if (workloadNetworkDhcp == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "workloadNetworkDhcp"); + } + // 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("dhcpId", dhcpId); + tracingParameters.Add("workloadNetworkDhcp", workloadNetworkDhcp); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "BeginUpdateDhcp", 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}/workloadNetworks/default/dhcpConfigurations/{dhcpId}").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("{dhcpId}", System.Uri.EscapeDataString(dhcpId)); + 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(workloadNetworkDhcp != null) + { + _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(workloadNetworkDhcp, 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 != 202) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Delete dhcp by id in a private cloud workload network. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the private cloud + /// + /// + /// NSX DHCP identifier. Generally the same as the DHCP display name + /// + /// + /// 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 BeginDeleteDhcpWithHttpMessagesAsync(string resourceGroupName, string privateCloudName, string dhcpId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (Client.SubscriptionId != null) + { + if (Client.SubscriptionId.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "Client.SubscriptionId", 1); + } + } + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (resourceGroupName != null) + { + if (resourceGroupName.Length > 90) + { + throw new ValidationException(ValidationRules.MaxLength, "resourceGroupName", 90); + } + if (resourceGroupName.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); + } + if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$")) + { + throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$"); + } + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + if (Client.ApiVersion != null) + { + if (Client.ApiVersion.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "Client.ApiVersion", 1); + } + } + if (privateCloudName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "privateCloudName"); + } + if (dhcpId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "dhcpId"); + } + // 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("dhcpId", dhcpId); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "BeginDeleteDhcp", 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}/workloadNetworks/default/dhcpConfigurations/{dhcpId}").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("{dhcpId}", System.Uri.EscapeDataString(dhcpId)); + 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 CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Create a port mirroring profile by id in a private cloud workload network. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the private cloud + /// + /// + /// NSX Port Mirroring identifier. Generally the same as the Port Mirroring + /// display name + /// + /// + /// NSX port mirroring + /// + /// + /// 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> BeginCreatePortMirroringWithHttpMessagesAsync(string resourceGroupName, string privateCloudName, string portMirroringId, WorkloadNetworkPortMirroring workloadNetworkPortMirroring, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (Client.SubscriptionId != null) + { + if (Client.SubscriptionId.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "Client.SubscriptionId", 1); + } + } + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (resourceGroupName != null) + { + if (resourceGroupName.Length > 90) + { + throw new ValidationException(ValidationRules.MaxLength, "resourceGroupName", 90); + } + if (resourceGroupName.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); + } + if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$")) + { + throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$"); + } + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + if (Client.ApiVersion != null) + { + if (Client.ApiVersion.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "Client.ApiVersion", 1); + } + } + if (privateCloudName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "privateCloudName"); + } + if (portMirroringId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "portMirroringId"); + } + if (workloadNetworkPortMirroring == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "workloadNetworkPortMirroring"); + } + // 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("portMirroringId", portMirroringId); + tracingParameters.Add("workloadNetworkPortMirroring", workloadNetworkPortMirroring); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "BeginCreatePortMirroring", 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}/workloadNetworks/default/portMirroringProfiles/{portMirroringId}").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("{portMirroringId}", System.Uri.EscapeDataString(portMirroringId)); + 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(workloadNetworkPortMirroring != null) + { + _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(workloadNetworkPortMirroring, 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 CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + // 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; + } + + /// + /// Create or update a port mirroring profile by id in a private cloud workload + /// network. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the private cloud + /// + /// + /// NSX Port Mirroring identifier. Generally the same as the Port Mirroring + /// display name + /// + /// + /// NSX port mirroring + /// + /// + /// 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> BeginUpdatePortMirroringWithHttpMessagesAsync(string resourceGroupName, string privateCloudName, string portMirroringId, WorkloadNetworkPortMirroring workloadNetworkPortMirroring, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (Client.SubscriptionId != null) + { + if (Client.SubscriptionId.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "Client.SubscriptionId", 1); + } + } + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (resourceGroupName != null) + { + if (resourceGroupName.Length > 90) + { + throw new ValidationException(ValidationRules.MaxLength, "resourceGroupName", 90); + } + if (resourceGroupName.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); + } + if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$")) + { + throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$"); + } + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + if (Client.ApiVersion != null) + { + if (Client.ApiVersion.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "Client.ApiVersion", 1); + } + } + if (privateCloudName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "privateCloudName"); + } + if (portMirroringId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "portMirroringId"); + } + if (workloadNetworkPortMirroring == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "workloadNetworkPortMirroring"); + } + // 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("portMirroringId", portMirroringId); + tracingParameters.Add("workloadNetworkPortMirroring", workloadNetworkPortMirroring); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "BeginUpdatePortMirroring", 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}/workloadNetworks/default/portMirroringProfiles/{portMirroringId}").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("{portMirroringId}", System.Uri.EscapeDataString(portMirroringId)); + 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(workloadNetworkPortMirroring != null) + { + _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(workloadNetworkPortMirroring, 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 != 202) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Delete a port mirroring profile by id in a private cloud workload network. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// NSX Port Mirroring identifier. Generally the same as the Port Mirroring + /// display name + /// + /// + /// 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 BeginDeletePortMirroringWithHttpMessagesAsync(string resourceGroupName, string portMirroringId, string privateCloudName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (Client.SubscriptionId != null) + { + if (Client.SubscriptionId.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "Client.SubscriptionId", 1); + } + } + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (resourceGroupName != null) + { + if (resourceGroupName.Length > 90) + { + throw new ValidationException(ValidationRules.MaxLength, "resourceGroupName", 90); + } + if (resourceGroupName.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); + } + if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$")) + { + throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$"); + } + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + if (Client.ApiVersion != null) + { + if (Client.ApiVersion.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "Client.ApiVersion", 1); + } + } + if (portMirroringId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "portMirroringId"); + } + if (privateCloudName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "privateCloudName"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("portMirroringId", portMirroringId); + tracingParameters.Add("privateCloudName", privateCloudName); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "BeginDeletePortMirroring", 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}/workloadNetworks/default/portMirroringProfiles/{portMirroringId}").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{portMirroringId}", System.Uri.EscapeDataString(portMirroringId)); + _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 CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Create a vm group by id in a private cloud workload network. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the private cloud + /// + /// + /// NSX VM Group identifier. Generally the same as the VM Group's display name + /// + /// + /// NSX VM Group + /// + /// + /// 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> BeginCreateVMGroupWithHttpMessagesAsync(string resourceGroupName, string privateCloudName, string vmGroupId, WorkloadNetworkVMGroup workloadNetworkVMGroup, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (Client.SubscriptionId != null) + { + if (Client.SubscriptionId.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "Client.SubscriptionId", 1); + } + } + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (resourceGroupName != null) + { + if (resourceGroupName.Length > 90) + { + throw new ValidationException(ValidationRules.MaxLength, "resourceGroupName", 90); + } + if (resourceGroupName.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); + } + if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$")) + { + throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$"); + } + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + if (Client.ApiVersion != null) + { + if (Client.ApiVersion.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "Client.ApiVersion", 1); + } + } + if (privateCloudName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "privateCloudName"); + } + if (vmGroupId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "vmGroupId"); + } + if (workloadNetworkVMGroup == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "workloadNetworkVMGroup"); + } + // 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("vmGroupId", vmGroupId); + tracingParameters.Add("workloadNetworkVMGroup", workloadNetworkVMGroup); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "BeginCreateVMGroup", 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}/workloadNetworks/default/vmGroups/{vmGroupId}").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("{vmGroupId}", System.Uri.EscapeDataString(vmGroupId)); + 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(workloadNetworkVMGroup != null) + { + _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(workloadNetworkVMGroup, 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 CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + // 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; + } + + /// + /// Create or update a vm group by id in a private cloud workload network. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the private cloud + /// + /// + /// NSX VM Group identifier. Generally the same as the VM Group's display name + /// + /// + /// NSX VM Group + /// + /// + /// 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> BeginUpdateVMGroupWithHttpMessagesAsync(string resourceGroupName, string privateCloudName, string vmGroupId, WorkloadNetworkVMGroup workloadNetworkVMGroup, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (Client.SubscriptionId != null) + { + if (Client.SubscriptionId.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "Client.SubscriptionId", 1); + } + } + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (resourceGroupName != null) + { + if (resourceGroupName.Length > 90) + { + throw new ValidationException(ValidationRules.MaxLength, "resourceGroupName", 90); + } + if (resourceGroupName.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); + } + if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$")) + { + throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$"); + } + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + if (Client.ApiVersion != null) + { + if (Client.ApiVersion.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "Client.ApiVersion", 1); + } + } + if (privateCloudName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "privateCloudName"); + } + if (vmGroupId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "vmGroupId"); + } + if (workloadNetworkVMGroup == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "workloadNetworkVMGroup"); + } + // 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("vmGroupId", vmGroupId); + tracingParameters.Add("workloadNetworkVMGroup", workloadNetworkVMGroup); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "BeginUpdateVMGroup", 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}/workloadNetworks/default/vmGroups/{vmGroupId}").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("{vmGroupId}", System.Uri.EscapeDataString(vmGroupId)); + 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(workloadNetworkVMGroup != null) + { + _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(workloadNetworkVMGroup, 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 != 202) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Delete a vm group by id in a private cloud workload network. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// NSX VM Group identifier. Generally the same as the VM Group's display name + /// + /// + /// 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 BeginDeleteVMGroupWithHttpMessagesAsync(string resourceGroupName, string vmGroupId, string privateCloudName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (Client.SubscriptionId != null) + { + if (Client.SubscriptionId.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "Client.SubscriptionId", 1); + } + } + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (resourceGroupName != null) + { + if (resourceGroupName.Length > 90) + { + throw new ValidationException(ValidationRules.MaxLength, "resourceGroupName", 90); + } + if (resourceGroupName.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); + } + if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$")) + { + throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$"); + } + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + if (Client.ApiVersion != null) + { + if (Client.ApiVersion.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "Client.ApiVersion", 1); + } + } + if (vmGroupId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "vmGroupId"); + } + if (privateCloudName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "privateCloudName"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("vmGroupId", vmGroupId); + tracingParameters.Add("privateCloudName", privateCloudName); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "BeginDeleteVMGroup", 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}/workloadNetworks/default/vmGroups/{vmGroupId}").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{vmGroupId}", System.Uri.EscapeDataString(vmGroupId)); + _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 CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Create a DNS service by id in a private cloud workload network. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the private cloud + /// + /// + /// NSX DNS Service identifier. Generally the same as the DNS Service's display + /// name + /// + /// + /// NSX DNS Service + /// + /// + /// 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> BeginCreateDnsServiceWithHttpMessagesAsync(string resourceGroupName, string privateCloudName, string dnsServiceId, WorkloadNetworkDnsService workloadNetworkDnsService, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (Client.SubscriptionId != null) + { + if (Client.SubscriptionId.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "Client.SubscriptionId", 1); + } + } + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (resourceGroupName != null) + { + if (resourceGroupName.Length > 90) + { + throw new ValidationException(ValidationRules.MaxLength, "resourceGroupName", 90); + } + if (resourceGroupName.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); + } + if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$")) + { + throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$"); + } + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + if (Client.ApiVersion != null) + { + if (Client.ApiVersion.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "Client.ApiVersion", 1); + } + } + if (privateCloudName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "privateCloudName"); + } + if (dnsServiceId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "dnsServiceId"); + } + if (workloadNetworkDnsService == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "workloadNetworkDnsService"); + } + // 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("dnsServiceId", dnsServiceId); + tracingParameters.Add("workloadNetworkDnsService", workloadNetworkDnsService); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "BeginCreateDnsService", 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}/workloadNetworks/default/dnsServices/{dnsServiceId}").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("{dnsServiceId}", System.Uri.EscapeDataString(dnsServiceId)); + 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(workloadNetworkDnsService != null) + { + _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(workloadNetworkDnsService, 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 CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + // 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; + } + + /// + /// Create or update a DNS service by id in a private cloud workload network. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the private cloud + /// + /// + /// NSX DNS Service identifier. Generally the same as the DNS Service's display + /// name + /// + /// + /// NSX DNS Service + /// + /// + /// 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> BeginUpdateDnsServiceWithHttpMessagesAsync(string resourceGroupName, string privateCloudName, string dnsServiceId, WorkloadNetworkDnsService workloadNetworkDnsService, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (Client.SubscriptionId != null) + { + if (Client.SubscriptionId.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "Client.SubscriptionId", 1); + } + } + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (resourceGroupName != null) + { + if (resourceGroupName.Length > 90) + { + throw new ValidationException(ValidationRules.MaxLength, "resourceGroupName", 90); + } + if (resourceGroupName.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); + } + if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$")) + { + throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$"); + } + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + if (Client.ApiVersion != null) + { + if (Client.ApiVersion.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "Client.ApiVersion", 1); + } + } + if (privateCloudName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "privateCloudName"); + } + if (dnsServiceId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "dnsServiceId"); + } + if (workloadNetworkDnsService == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "workloadNetworkDnsService"); + } + // 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("dnsServiceId", dnsServiceId); + tracingParameters.Add("workloadNetworkDnsService", workloadNetworkDnsService); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "BeginUpdateDnsService", 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}/workloadNetworks/default/dnsServices/{dnsServiceId}").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("{dnsServiceId}", System.Uri.EscapeDataString(dnsServiceId)); + 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(workloadNetworkDnsService != null) + { + _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(workloadNetworkDnsService, 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 != 202) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Delete a DNS service by id in a private cloud workload network. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// NSX DNS Service identifier. Generally the same as the DNS Service's display + /// name + /// + /// + /// 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 BeginDeleteDnsServiceWithHttpMessagesAsync(string resourceGroupName, string dnsServiceId, string privateCloudName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (Client.SubscriptionId != null) + { + if (Client.SubscriptionId.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "Client.SubscriptionId", 1); + } + } + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (resourceGroupName != null) + { + if (resourceGroupName.Length > 90) + { + throw new ValidationException(ValidationRules.MaxLength, "resourceGroupName", 90); + } + if (resourceGroupName.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); + } + if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$")) + { + throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$"); + } + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + if (Client.ApiVersion != null) + { + if (Client.ApiVersion.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "Client.ApiVersion", 1); + } + } + if (dnsServiceId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "dnsServiceId"); + } + if (privateCloudName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "privateCloudName"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("dnsServiceId", dnsServiceId); + tracingParameters.Add("privateCloudName", privateCloudName); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "BeginDeleteDnsService", 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}/workloadNetworks/default/dnsServices/{dnsServiceId}").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{dnsServiceId}", System.Uri.EscapeDataString(dnsServiceId)); + _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 CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Create a DNS zone by id in a private cloud workload network. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the private cloud + /// + /// + /// NSX DNS Zone identifier. Generally the same as the DNS Zone's display name + /// + /// + /// NSX DNS Zone + /// + /// + /// 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> BeginCreateDnsZoneWithHttpMessagesAsync(string resourceGroupName, string privateCloudName, string dnsZoneId, WorkloadNetworkDnsZone workloadNetworkDnsZone, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (Client.SubscriptionId != null) + { + if (Client.SubscriptionId.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "Client.SubscriptionId", 1); + } + } + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (resourceGroupName != null) + { + if (resourceGroupName.Length > 90) + { + throw new ValidationException(ValidationRules.MaxLength, "resourceGroupName", 90); + } + if (resourceGroupName.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); + } + if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$")) + { + throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$"); + } + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + if (Client.ApiVersion != null) + { + if (Client.ApiVersion.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "Client.ApiVersion", 1); + } + } + if (privateCloudName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "privateCloudName"); + } + if (dnsZoneId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "dnsZoneId"); + } + if (workloadNetworkDnsZone == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "workloadNetworkDnsZone"); + } + // 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("dnsZoneId", dnsZoneId); + tracingParameters.Add("workloadNetworkDnsZone", workloadNetworkDnsZone); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "BeginCreateDnsZone", 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}/workloadNetworks/default/dnsZones/{dnsZoneId}").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("{dnsZoneId}", System.Uri.EscapeDataString(dnsZoneId)); + 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(workloadNetworkDnsZone != null) + { + _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(workloadNetworkDnsZone, 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 CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + // 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; + } + + /// + /// Create or update a DNS zone by id in a private cloud workload network. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the private cloud + /// + /// + /// NSX DNS Zone identifier. Generally the same as the DNS Zone's display name + /// + /// + /// NSX DNS Zone + /// + /// + /// 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> BeginUpdateDnsZoneWithHttpMessagesAsync(string resourceGroupName, string privateCloudName, string dnsZoneId, WorkloadNetworkDnsZone workloadNetworkDnsZone, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (Client.SubscriptionId != null) + { + if (Client.SubscriptionId.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "Client.SubscriptionId", 1); + } + } + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (resourceGroupName != null) + { + if (resourceGroupName.Length > 90) + { + throw new ValidationException(ValidationRules.MaxLength, "resourceGroupName", 90); + } + if (resourceGroupName.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); + } + if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$")) + { + throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$"); + } + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + if (Client.ApiVersion != null) + { + if (Client.ApiVersion.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "Client.ApiVersion", 1); + } + } + if (privateCloudName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "privateCloudName"); + } + if (dnsZoneId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "dnsZoneId"); + } + if (workloadNetworkDnsZone == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "workloadNetworkDnsZone"); + } + // 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("dnsZoneId", dnsZoneId); + tracingParameters.Add("workloadNetworkDnsZone", workloadNetworkDnsZone); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "BeginUpdateDnsZone", 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}/workloadNetworks/default/dnsZones/{dnsZoneId}").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("{dnsZoneId}", System.Uri.EscapeDataString(dnsZoneId)); + 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(workloadNetworkDnsZone != null) + { + _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(workloadNetworkDnsZone, 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 != 202) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Delete a DNS zone by id in a private cloud workload network. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// NSX DNS Zone identifier. Generally the same as the DNS Zone's display name + /// + /// + /// 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 BeginDeleteDnsZoneWithHttpMessagesAsync(string resourceGroupName, string dnsZoneId, string privateCloudName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (Client.SubscriptionId != null) + { + if (Client.SubscriptionId.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "Client.SubscriptionId", 1); + } + } + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (resourceGroupName != null) + { + if (resourceGroupName.Length > 90) + { + throw new ValidationException(ValidationRules.MaxLength, "resourceGroupName", 90); + } + if (resourceGroupName.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); + } + if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$")) + { + throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$"); + } + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + if (Client.ApiVersion != null) + { + if (Client.ApiVersion.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "Client.ApiVersion", 1); + } + } + if (dnsZoneId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "dnsZoneId"); + } + if (privateCloudName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "privateCloudName"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("dnsZoneId", dnsZoneId); + tracingParameters.Add("privateCloudName", privateCloudName); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "BeginDeleteDnsZone", 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}/workloadNetworks/default/dnsZones/{dnsZoneId}").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{dnsZoneId}", System.Uri.EscapeDataString(dnsZoneId)); + _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 CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Create a Public IP Block by id in a private cloud workload network. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the private cloud + /// + /// + /// NSX Public IP Block identifier. Generally the same as the Public IP Block's + /// display name + /// + /// + /// NSX Public IP Block + /// + /// + /// 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> BeginCreatePublicIPWithHttpMessagesAsync(string resourceGroupName, string privateCloudName, string publicIPId, WorkloadNetworkPublicIP workloadNetworkPublicIP, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (Client.SubscriptionId != null) + { + if (Client.SubscriptionId.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "Client.SubscriptionId", 1); + } + } + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (resourceGroupName != null) + { + if (resourceGroupName.Length > 90) + { + throw new ValidationException(ValidationRules.MaxLength, "resourceGroupName", 90); + } + if (resourceGroupName.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); + } + if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$")) + { + throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$"); + } + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + if (Client.ApiVersion != null) + { + if (Client.ApiVersion.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "Client.ApiVersion", 1); + } + } + if (privateCloudName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "privateCloudName"); + } + if (publicIPId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "publicIPId"); + } + if (workloadNetworkPublicIP == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "workloadNetworkPublicIP"); + } + // 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("publicIPId", publicIPId); + tracingParameters.Add("workloadNetworkPublicIP", workloadNetworkPublicIP); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "BeginCreatePublicIP", 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}/workloadNetworks/default/publicIPs/{publicIPId}").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("{publicIPId}", System.Uri.EscapeDataString(publicIPId)); + 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(workloadNetworkPublicIP != null) + { + _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(workloadNetworkPublicIP, 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 CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + // 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 Public IP Block by id in a private cloud workload network. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// NSX Public IP Block identifier. Generally the same as the Public IP Block's + /// display name + /// + /// + /// 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 BeginDeletePublicIPWithHttpMessagesAsync(string resourceGroupName, string publicIPId, string privateCloudName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (Client.SubscriptionId != null) + { + if (Client.SubscriptionId.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "Client.SubscriptionId", 1); + } + } + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (resourceGroupName != null) + { + if (resourceGroupName.Length > 90) + { + throw new ValidationException(ValidationRules.MaxLength, "resourceGroupName", 90); + } + if (resourceGroupName.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); + } + if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$")) + { + throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$"); + } + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + if (Client.ApiVersion != null) + { + if (Client.ApiVersion.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "Client.ApiVersion", 1); + } + } + if (publicIPId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "publicIPId"); + } + if (privateCloudName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "privateCloudName"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("publicIPId", publicIPId); + tracingParameters.Add("privateCloudName", privateCloudName); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "BeginDeletePublicIP", 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}/workloadNetworks/default/publicIPs/{publicIPId}").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{publicIPId}", System.Uri.EscapeDataString(publicIPId)); + _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 CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// List of segments in a private cloud workload network. + /// + /// + /// 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>> ListSegmentsNextWithHttpMessagesAsync(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, "ListSegmentsNext", 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 CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse>(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// List dhcp in a private cloud workload network. + /// + /// + /// 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>> ListDhcpNextWithHttpMessagesAsync(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, "ListDhcpNext", 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 CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse>(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// List of gateways in a private cloud workload network. + /// + /// + /// 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>> ListGatewaysNextWithHttpMessagesAsync(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, "ListGatewaysNext", 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 CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse>(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// List of port mirroring profiles in a private cloud workload network. + /// + /// + /// 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>> ListPortMirroringNextWithHttpMessagesAsync(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, "ListPortMirroringNext", 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 CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse>(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// List of vm groups in a private cloud workload network. + /// + /// + /// 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>> ListVMGroupsNextWithHttpMessagesAsync(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, "ListVMGroupsNext", 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 CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse>(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// List of virtual machines in a private cloud workload network. + /// + /// + /// 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>> ListVirtualMachinesNextWithHttpMessagesAsync(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, "ListVirtualMachinesNext", 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 CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse>(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// List of DNS services in a private cloud workload network. + /// + /// + /// 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>> ListDnsServicesNextWithHttpMessagesAsync(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, "ListDnsServicesNext", 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 CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse>(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// List of DNS zones in a private cloud workload network. + /// + /// + /// 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>> ListDnsZonesNextWithHttpMessagesAsync(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, "ListDnsZonesNext", 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 CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse>(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// List of Public IP Blocks in a private cloud workload network. + /// + /// + /// 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>> ListPublicIPsNextWithHttpMessagesAsync(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, "ListPublicIPsNext", 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 CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse>(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + } +} diff --git a/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/WorkloadNetworksOperationsExtensions.cs b/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/WorkloadNetworksOperationsExtensions.cs new file mode 100644 index 000000000000..1c8a096ffa11 --- /dev/null +++ b/sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/WorkloadNetworksOperationsExtensions.cs @@ -0,0 +1,3101 @@ +// +// 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 WorkloadNetworksOperations. + /// + public static partial class WorkloadNetworksOperationsExtensions + { + /// + /// List of segments in a private cloud workload network. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the private cloud + /// + public static IPage ListSegments(this IWorkloadNetworksOperations operations, string resourceGroupName, string privateCloudName) + { + return operations.ListSegmentsAsync(resourceGroupName, privateCloudName).GetAwaiter().GetResult(); + } + + /// + /// List of segments in a private cloud workload network. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the private cloud + /// + /// + /// The cancellation token. + /// + public static async Task> ListSegmentsAsync(this IWorkloadNetworksOperations operations, string resourceGroupName, string privateCloudName, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListSegmentsWithHttpMessagesAsync(resourceGroupName, privateCloudName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Get a segment by id in a private cloud workload network. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the private cloud + /// + /// + /// NSX Segment identifier. Generally the same as the Segment's display name + /// + public static WorkloadNetworkSegment GetSegment(this IWorkloadNetworksOperations operations, string resourceGroupName, string privateCloudName, string segmentId) + { + return operations.GetSegmentAsync(resourceGroupName, privateCloudName, segmentId).GetAwaiter().GetResult(); + } + + /// + /// Get a segment by id in a private cloud workload network. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the private cloud + /// + /// + /// NSX Segment identifier. Generally the same as the Segment's display name + /// + /// + /// The cancellation token. + /// + public static async Task GetSegmentAsync(this IWorkloadNetworksOperations operations, string resourceGroupName, string privateCloudName, string segmentId, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.GetSegmentWithHttpMessagesAsync(resourceGroupName, privateCloudName, segmentId, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Create a segment by id in a private cloud workload network. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the private cloud + /// + /// + /// NSX Segment identifier. Generally the same as the Segment's display name + /// + /// + /// NSX Segment + /// + public static WorkloadNetworkSegment CreateSegments(this IWorkloadNetworksOperations operations, string resourceGroupName, string privateCloudName, string segmentId, WorkloadNetworkSegment workloadNetworkSegment) + { + return operations.CreateSegmentsAsync(resourceGroupName, privateCloudName, segmentId, workloadNetworkSegment).GetAwaiter().GetResult(); + } + + /// + /// Create a segment by id in a private cloud workload network. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the private cloud + /// + /// + /// NSX Segment identifier. Generally the same as the Segment's display name + /// + /// + /// NSX Segment + /// + /// + /// The cancellation token. + /// + public static async Task CreateSegmentsAsync(this IWorkloadNetworksOperations operations, string resourceGroupName, string privateCloudName, string segmentId, WorkloadNetworkSegment workloadNetworkSegment, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.CreateSegmentsWithHttpMessagesAsync(resourceGroupName, privateCloudName, segmentId, workloadNetworkSegment, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Create or update a segment by id in a private cloud workload network. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the private cloud + /// + /// + /// NSX Segment identifier. Generally the same as the Segment's display name + /// + /// + /// NSX Segment + /// + public static WorkloadNetworkSegment UpdateSegments(this IWorkloadNetworksOperations operations, string resourceGroupName, string privateCloudName, string segmentId, WorkloadNetworkSegment workloadNetworkSegment) + { + return operations.UpdateSegmentsAsync(resourceGroupName, privateCloudName, segmentId, workloadNetworkSegment).GetAwaiter().GetResult(); + } + + /// + /// Create or update a segment by id in a private cloud workload network. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the private cloud + /// + /// + /// NSX Segment identifier. Generally the same as the Segment's display name + /// + /// + /// NSX Segment + /// + /// + /// The cancellation token. + /// + public static async Task UpdateSegmentsAsync(this IWorkloadNetworksOperations operations, string resourceGroupName, string privateCloudName, string segmentId, WorkloadNetworkSegment workloadNetworkSegment, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.UpdateSegmentsWithHttpMessagesAsync(resourceGroupName, privateCloudName, segmentId, workloadNetworkSegment, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Delete a segment by id in a private cloud workload network. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the private cloud + /// + /// + /// NSX Segment identifier. Generally the same as the Segment's display name + /// + public static void DeleteSegment(this IWorkloadNetworksOperations operations, string resourceGroupName, string privateCloudName, string segmentId) + { + operations.DeleteSegmentAsync(resourceGroupName, privateCloudName, segmentId).GetAwaiter().GetResult(); + } + + /// + /// Delete a segment by id in a private cloud workload network. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the private cloud + /// + /// + /// NSX Segment identifier. Generally the same as the Segment's display name + /// + /// + /// The cancellation token. + /// + public static async Task DeleteSegmentAsync(this IWorkloadNetworksOperations operations, string resourceGroupName, string privateCloudName, string segmentId, CancellationToken cancellationToken = default(CancellationToken)) + { + (await operations.DeleteSegmentWithHttpMessagesAsync(resourceGroupName, privateCloudName, segmentId, null, cancellationToken).ConfigureAwait(false)).Dispose(); + } + + /// + /// List dhcp in a private cloud workload network. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the private cloud + /// + public static IPage ListDhcp(this IWorkloadNetworksOperations operations, string resourceGroupName, string privateCloudName) + { + return operations.ListDhcpAsync(resourceGroupName, privateCloudName).GetAwaiter().GetResult(); + } + + /// + /// List dhcp in a private cloud workload network. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the private cloud + /// + /// + /// The cancellation token. + /// + public static async Task> ListDhcpAsync(this IWorkloadNetworksOperations operations, string resourceGroupName, string privateCloudName, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListDhcpWithHttpMessagesAsync(resourceGroupName, privateCloudName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Get dhcp by id in a private cloud workload network. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// NSX DHCP identifier. Generally the same as the DHCP display name + /// + /// + /// Name of the private cloud + /// + public static WorkloadNetworkDhcp GetDhcp(this IWorkloadNetworksOperations operations, string resourceGroupName, string dhcpId, string privateCloudName) + { + return operations.GetDhcpAsync(resourceGroupName, dhcpId, privateCloudName).GetAwaiter().GetResult(); + } + + /// + /// Get dhcp by id in a private cloud workload network. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// NSX DHCP identifier. Generally the same as the DHCP display name + /// + /// + /// Name of the private cloud + /// + /// + /// The cancellation token. + /// + public static async Task GetDhcpAsync(this IWorkloadNetworksOperations operations, string resourceGroupName, string dhcpId, string privateCloudName, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.GetDhcpWithHttpMessagesAsync(resourceGroupName, dhcpId, privateCloudName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Create dhcp by id in a private cloud workload network. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the private cloud + /// + /// + /// NSX DHCP identifier. Generally the same as the DHCP display name + /// + /// + /// NSX DHCP + /// + public static WorkloadNetworkDhcp CreateDhcp(this IWorkloadNetworksOperations operations, string resourceGroupName, string privateCloudName, string dhcpId, WorkloadNetworkDhcp workloadNetworkDhcp) + { + return operations.CreateDhcpAsync(resourceGroupName, privateCloudName, dhcpId, workloadNetworkDhcp).GetAwaiter().GetResult(); + } + + /// + /// Create dhcp by id in a private cloud workload network. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the private cloud + /// + /// + /// NSX DHCP identifier. Generally the same as the DHCP display name + /// + /// + /// NSX DHCP + /// + /// + /// The cancellation token. + /// + public static async Task CreateDhcpAsync(this IWorkloadNetworksOperations operations, string resourceGroupName, string privateCloudName, string dhcpId, WorkloadNetworkDhcp workloadNetworkDhcp, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.CreateDhcpWithHttpMessagesAsync(resourceGroupName, privateCloudName, dhcpId, workloadNetworkDhcp, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Create or update dhcp by id in a private cloud workload network. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the private cloud + /// + /// + /// NSX DHCP identifier. Generally the same as the DHCP display name + /// + /// + /// NSX DHCP + /// + public static WorkloadNetworkDhcp UpdateDhcp(this IWorkloadNetworksOperations operations, string resourceGroupName, string privateCloudName, string dhcpId, WorkloadNetworkDhcp workloadNetworkDhcp) + { + return operations.UpdateDhcpAsync(resourceGroupName, privateCloudName, dhcpId, workloadNetworkDhcp).GetAwaiter().GetResult(); + } + + /// + /// Create or update dhcp by id in a private cloud workload network. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the private cloud + /// + /// + /// NSX DHCP identifier. Generally the same as the DHCP display name + /// + /// + /// NSX DHCP + /// + /// + /// The cancellation token. + /// + public static async Task UpdateDhcpAsync(this IWorkloadNetworksOperations operations, string resourceGroupName, string privateCloudName, string dhcpId, WorkloadNetworkDhcp workloadNetworkDhcp, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.UpdateDhcpWithHttpMessagesAsync(resourceGroupName, privateCloudName, dhcpId, workloadNetworkDhcp, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Delete dhcp by id in a private cloud workload network. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the private cloud + /// + /// + /// NSX DHCP identifier. Generally the same as the DHCP display name + /// + public static void DeleteDhcp(this IWorkloadNetworksOperations operations, string resourceGroupName, string privateCloudName, string dhcpId) + { + operations.DeleteDhcpAsync(resourceGroupName, privateCloudName, dhcpId).GetAwaiter().GetResult(); + } + + /// + /// Delete dhcp by id in a private cloud workload network. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the private cloud + /// + /// + /// NSX DHCP identifier. Generally the same as the DHCP display name + /// + /// + /// The cancellation token. + /// + public static async Task DeleteDhcpAsync(this IWorkloadNetworksOperations operations, string resourceGroupName, string privateCloudName, string dhcpId, CancellationToken cancellationToken = default(CancellationToken)) + { + (await operations.DeleteDhcpWithHttpMessagesAsync(resourceGroupName, privateCloudName, dhcpId, null, cancellationToken).ConfigureAwait(false)).Dispose(); + } + + /// + /// List of gateways in a private cloud workload network. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the private cloud + /// + public static IPage ListGateways(this IWorkloadNetworksOperations operations, string resourceGroupName, string privateCloudName) + { + return operations.ListGatewaysAsync(resourceGroupName, privateCloudName).GetAwaiter().GetResult(); + } + + /// + /// List of gateways in a private cloud workload network. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the private cloud + /// + /// + /// The cancellation token. + /// + public static async Task> ListGatewaysAsync(this IWorkloadNetworksOperations operations, string resourceGroupName, string privateCloudName, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListGatewaysWithHttpMessagesAsync(resourceGroupName, privateCloudName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Get a gateway by id in a private cloud workload network. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the private cloud + /// + /// + /// NSX Gateway identifier. Generally the same as the Gateway's display name + /// + public static WorkloadNetworkGateway GetGateway(this IWorkloadNetworksOperations operations, string resourceGroupName, string privateCloudName, string gatewayId) + { + return operations.GetGatewayAsync(resourceGroupName, privateCloudName, gatewayId).GetAwaiter().GetResult(); + } + + /// + /// Get a gateway by id in a private cloud workload network. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the private cloud + /// + /// + /// NSX Gateway identifier. Generally the same as the Gateway's display name + /// + /// + /// The cancellation token. + /// + public static async Task GetGatewayAsync(this IWorkloadNetworksOperations operations, string resourceGroupName, string privateCloudName, string gatewayId, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.GetGatewayWithHttpMessagesAsync(resourceGroupName, privateCloudName, gatewayId, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// List of port mirroring profiles in a private cloud workload network. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the private cloud + /// + public static IPage ListPortMirroring(this IWorkloadNetworksOperations operations, string resourceGroupName, string privateCloudName) + { + return operations.ListPortMirroringAsync(resourceGroupName, privateCloudName).GetAwaiter().GetResult(); + } + + /// + /// List of port mirroring profiles in a private cloud workload network. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the private cloud + /// + /// + /// The cancellation token. + /// + public static async Task> ListPortMirroringAsync(this IWorkloadNetworksOperations operations, string resourceGroupName, string privateCloudName, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListPortMirroringWithHttpMessagesAsync(resourceGroupName, privateCloudName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Get a port mirroring profile by id in a private cloud workload network. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the private cloud + /// + /// + /// NSX Port Mirroring identifier. Generally the same as the Port Mirroring + /// display name + /// + public static WorkloadNetworkPortMirroring GetPortMirroring(this IWorkloadNetworksOperations operations, string resourceGroupName, string privateCloudName, string portMirroringId) + { + return operations.GetPortMirroringAsync(resourceGroupName, privateCloudName, portMirroringId).GetAwaiter().GetResult(); + } + + /// + /// Get a port mirroring profile by id in a private cloud workload network. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the private cloud + /// + /// + /// NSX Port Mirroring identifier. Generally the same as the Port Mirroring + /// display name + /// + /// + /// The cancellation token. + /// + public static async Task GetPortMirroringAsync(this IWorkloadNetworksOperations operations, string resourceGroupName, string privateCloudName, string portMirroringId, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.GetPortMirroringWithHttpMessagesAsync(resourceGroupName, privateCloudName, portMirroringId, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Create a port mirroring profile by id in a private cloud workload network. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the private cloud + /// + /// + /// NSX Port Mirroring identifier. Generally the same as the Port Mirroring + /// display name + /// + /// + /// NSX port mirroring + /// + public static WorkloadNetworkPortMirroring CreatePortMirroring(this IWorkloadNetworksOperations operations, string resourceGroupName, string privateCloudName, string portMirroringId, WorkloadNetworkPortMirroring workloadNetworkPortMirroring) + { + return operations.CreatePortMirroringAsync(resourceGroupName, privateCloudName, portMirroringId, workloadNetworkPortMirroring).GetAwaiter().GetResult(); + } + + /// + /// Create a port mirroring profile by id in a private cloud workload network. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the private cloud + /// + /// + /// NSX Port Mirroring identifier. Generally the same as the Port Mirroring + /// display name + /// + /// + /// NSX port mirroring + /// + /// + /// The cancellation token. + /// + public static async Task CreatePortMirroringAsync(this IWorkloadNetworksOperations operations, string resourceGroupName, string privateCloudName, string portMirroringId, WorkloadNetworkPortMirroring workloadNetworkPortMirroring, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.CreatePortMirroringWithHttpMessagesAsync(resourceGroupName, privateCloudName, portMirroringId, workloadNetworkPortMirroring, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Create or update a port mirroring profile by id in a private cloud workload + /// network. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the private cloud + /// + /// + /// NSX Port Mirroring identifier. Generally the same as the Port Mirroring + /// display name + /// + /// + /// NSX port mirroring + /// + public static WorkloadNetworkPortMirroring UpdatePortMirroring(this IWorkloadNetworksOperations operations, string resourceGroupName, string privateCloudName, string portMirroringId, WorkloadNetworkPortMirroring workloadNetworkPortMirroring) + { + return operations.UpdatePortMirroringAsync(resourceGroupName, privateCloudName, portMirroringId, workloadNetworkPortMirroring).GetAwaiter().GetResult(); + } + + /// + /// Create or update a port mirroring profile by id in a private cloud workload + /// network. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the private cloud + /// + /// + /// NSX Port Mirroring identifier. Generally the same as the Port Mirroring + /// display name + /// + /// + /// NSX port mirroring + /// + /// + /// The cancellation token. + /// + public static async Task UpdatePortMirroringAsync(this IWorkloadNetworksOperations operations, string resourceGroupName, string privateCloudName, string portMirroringId, WorkloadNetworkPortMirroring workloadNetworkPortMirroring, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.UpdatePortMirroringWithHttpMessagesAsync(resourceGroupName, privateCloudName, portMirroringId, workloadNetworkPortMirroring, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Delete a port mirroring profile by id in a private cloud workload network. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// NSX Port Mirroring identifier. Generally the same as the Port Mirroring + /// display name + /// + /// + /// Name of the private cloud + /// + public static void DeletePortMirroring(this IWorkloadNetworksOperations operations, string resourceGroupName, string portMirroringId, string privateCloudName) + { + operations.DeletePortMirroringAsync(resourceGroupName, portMirroringId, privateCloudName).GetAwaiter().GetResult(); + } + + /// + /// Delete a port mirroring profile by id in a private cloud workload network. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// NSX Port Mirroring identifier. Generally the same as the Port Mirroring + /// display name + /// + /// + /// Name of the private cloud + /// + /// + /// The cancellation token. + /// + public static async Task DeletePortMirroringAsync(this IWorkloadNetworksOperations operations, string resourceGroupName, string portMirroringId, string privateCloudName, CancellationToken cancellationToken = default(CancellationToken)) + { + (await operations.DeletePortMirroringWithHttpMessagesAsync(resourceGroupName, portMirroringId, privateCloudName, null, cancellationToken).ConfigureAwait(false)).Dispose(); + } + + /// + /// List of vm groups in a private cloud workload network. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the private cloud + /// + public static IPage ListVMGroups(this IWorkloadNetworksOperations operations, string resourceGroupName, string privateCloudName) + { + return operations.ListVMGroupsAsync(resourceGroupName, privateCloudName).GetAwaiter().GetResult(); + } + + /// + /// List of vm groups in a private cloud workload network. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the private cloud + /// + /// + /// The cancellation token. + /// + public static async Task> ListVMGroupsAsync(this IWorkloadNetworksOperations operations, string resourceGroupName, string privateCloudName, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListVMGroupsWithHttpMessagesAsync(resourceGroupName, privateCloudName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Get a vm group by id in a private cloud workload network. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the private cloud + /// + /// + /// NSX VM Group identifier. Generally the same as the VM Group's display name + /// + public static WorkloadNetworkVMGroup GetVMGroup(this IWorkloadNetworksOperations operations, string resourceGroupName, string privateCloudName, string vmGroupId) + { + return operations.GetVMGroupAsync(resourceGroupName, privateCloudName, vmGroupId).GetAwaiter().GetResult(); + } + + /// + /// Get a vm group by id in a private cloud workload network. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the private cloud + /// + /// + /// NSX VM Group identifier. Generally the same as the VM Group's display name + /// + /// + /// The cancellation token. + /// + public static async Task GetVMGroupAsync(this IWorkloadNetworksOperations operations, string resourceGroupName, string privateCloudName, string vmGroupId, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.GetVMGroupWithHttpMessagesAsync(resourceGroupName, privateCloudName, vmGroupId, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Create a vm group by id in a private cloud workload network. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the private cloud + /// + /// + /// NSX VM Group identifier. Generally the same as the VM Group's display name + /// + /// + /// NSX VM Group + /// + public static WorkloadNetworkVMGroup CreateVMGroup(this IWorkloadNetworksOperations operations, string resourceGroupName, string privateCloudName, string vmGroupId, WorkloadNetworkVMGroup workloadNetworkVMGroup) + { + return operations.CreateVMGroupAsync(resourceGroupName, privateCloudName, vmGroupId, workloadNetworkVMGroup).GetAwaiter().GetResult(); + } + + /// + /// Create a vm group by id in a private cloud workload network. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the private cloud + /// + /// + /// NSX VM Group identifier. Generally the same as the VM Group's display name + /// + /// + /// NSX VM Group + /// + /// + /// The cancellation token. + /// + public static async Task CreateVMGroupAsync(this IWorkloadNetworksOperations operations, string resourceGroupName, string privateCloudName, string vmGroupId, WorkloadNetworkVMGroup workloadNetworkVMGroup, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.CreateVMGroupWithHttpMessagesAsync(resourceGroupName, privateCloudName, vmGroupId, workloadNetworkVMGroup, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Create or update a vm group by id in a private cloud workload network. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the private cloud + /// + /// + /// NSX VM Group identifier. Generally the same as the VM Group's display name + /// + /// + /// NSX VM Group + /// + public static WorkloadNetworkVMGroup UpdateVMGroup(this IWorkloadNetworksOperations operations, string resourceGroupName, string privateCloudName, string vmGroupId, WorkloadNetworkVMGroup workloadNetworkVMGroup) + { + return operations.UpdateVMGroupAsync(resourceGroupName, privateCloudName, vmGroupId, workloadNetworkVMGroup).GetAwaiter().GetResult(); + } + + /// + /// Create or update a vm group by id in a private cloud workload network. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the private cloud + /// + /// + /// NSX VM Group identifier. Generally the same as the VM Group's display name + /// + /// + /// NSX VM Group + /// + /// + /// The cancellation token. + /// + public static async Task UpdateVMGroupAsync(this IWorkloadNetworksOperations operations, string resourceGroupName, string privateCloudName, string vmGroupId, WorkloadNetworkVMGroup workloadNetworkVMGroup, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.UpdateVMGroupWithHttpMessagesAsync(resourceGroupName, privateCloudName, vmGroupId, workloadNetworkVMGroup, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Delete a vm group by id in a private cloud workload network. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// NSX VM Group identifier. Generally the same as the VM Group's display name + /// + /// + /// Name of the private cloud + /// + public static void DeleteVMGroup(this IWorkloadNetworksOperations operations, string resourceGroupName, string vmGroupId, string privateCloudName) + { + operations.DeleteVMGroupAsync(resourceGroupName, vmGroupId, privateCloudName).GetAwaiter().GetResult(); + } + + /// + /// Delete a vm group by id in a private cloud workload network. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// NSX VM Group identifier. Generally the same as the VM Group's display name + /// + /// + /// Name of the private cloud + /// + /// + /// The cancellation token. + /// + public static async Task DeleteVMGroupAsync(this IWorkloadNetworksOperations operations, string resourceGroupName, string vmGroupId, string privateCloudName, CancellationToken cancellationToken = default(CancellationToken)) + { + (await operations.DeleteVMGroupWithHttpMessagesAsync(resourceGroupName, vmGroupId, privateCloudName, null, cancellationToken).ConfigureAwait(false)).Dispose(); + } + + /// + /// List of virtual machines in a private cloud workload network. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the private cloud + /// + public static IPage ListVirtualMachines(this IWorkloadNetworksOperations operations, string resourceGroupName, string privateCloudName) + { + return operations.ListVirtualMachinesAsync(resourceGroupName, privateCloudName).GetAwaiter().GetResult(); + } + + /// + /// List of virtual machines in a private cloud workload network. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the private cloud + /// + /// + /// The cancellation token. + /// + public static async Task> ListVirtualMachinesAsync(this IWorkloadNetworksOperations operations, string resourceGroupName, string privateCloudName, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListVirtualMachinesWithHttpMessagesAsync(resourceGroupName, privateCloudName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Get a virtual machine by id in a private cloud workload network. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the private cloud + /// + /// + /// Virtual Machine identifier + /// + public static WorkloadNetworkVirtualMachine GetVirtualMachine(this IWorkloadNetworksOperations operations, string resourceGroupName, string privateCloudName, string virtualMachineId) + { + return operations.GetVirtualMachineAsync(resourceGroupName, privateCloudName, virtualMachineId).GetAwaiter().GetResult(); + } + + /// + /// Get a virtual machine by id in a private cloud workload network. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the private cloud + /// + /// + /// Virtual Machine identifier + /// + /// + /// The cancellation token. + /// + public static async Task GetVirtualMachineAsync(this IWorkloadNetworksOperations operations, string resourceGroupName, string privateCloudName, string virtualMachineId, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.GetVirtualMachineWithHttpMessagesAsync(resourceGroupName, privateCloudName, virtualMachineId, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// List of DNS services in a private cloud workload network. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the private cloud + /// + public static IPage ListDnsServices(this IWorkloadNetworksOperations operations, string resourceGroupName, string privateCloudName) + { + return operations.ListDnsServicesAsync(resourceGroupName, privateCloudName).GetAwaiter().GetResult(); + } + + /// + /// List of DNS services in a private cloud workload network. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the private cloud + /// + /// + /// The cancellation token. + /// + public static async Task> ListDnsServicesAsync(this IWorkloadNetworksOperations operations, string resourceGroupName, string privateCloudName, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListDnsServicesWithHttpMessagesAsync(resourceGroupName, privateCloudName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Get a DNS service by id in a private cloud workload network. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the private cloud + /// + /// + /// NSX DNS Service identifier. Generally the same as the DNS Service's display + /// name + /// + public static WorkloadNetworkDnsService GetDnsService(this IWorkloadNetworksOperations operations, string resourceGroupName, string privateCloudName, string dnsServiceId) + { + return operations.GetDnsServiceAsync(resourceGroupName, privateCloudName, dnsServiceId).GetAwaiter().GetResult(); + } + + /// + /// Get a DNS service by id in a private cloud workload network. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the private cloud + /// + /// + /// NSX DNS Service identifier. Generally the same as the DNS Service's display + /// name + /// + /// + /// The cancellation token. + /// + public static async Task GetDnsServiceAsync(this IWorkloadNetworksOperations operations, string resourceGroupName, string privateCloudName, string dnsServiceId, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.GetDnsServiceWithHttpMessagesAsync(resourceGroupName, privateCloudName, dnsServiceId, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Create a DNS service by id in a private cloud workload network. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the private cloud + /// + /// + /// NSX DNS Service identifier. Generally the same as the DNS Service's display + /// name + /// + /// + /// NSX DNS Service + /// + public static WorkloadNetworkDnsService CreateDnsService(this IWorkloadNetworksOperations operations, string resourceGroupName, string privateCloudName, string dnsServiceId, WorkloadNetworkDnsService workloadNetworkDnsService) + { + return operations.CreateDnsServiceAsync(resourceGroupName, privateCloudName, dnsServiceId, workloadNetworkDnsService).GetAwaiter().GetResult(); + } + + /// + /// Create a DNS service by id in a private cloud workload network. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the private cloud + /// + /// + /// NSX DNS Service identifier. Generally the same as the DNS Service's display + /// name + /// + /// + /// NSX DNS Service + /// + /// + /// The cancellation token. + /// + public static async Task CreateDnsServiceAsync(this IWorkloadNetworksOperations operations, string resourceGroupName, string privateCloudName, string dnsServiceId, WorkloadNetworkDnsService workloadNetworkDnsService, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.CreateDnsServiceWithHttpMessagesAsync(resourceGroupName, privateCloudName, dnsServiceId, workloadNetworkDnsService, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Create or update a DNS service by id in a private cloud workload network. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the private cloud + /// + /// + /// NSX DNS Service identifier. Generally the same as the DNS Service's display + /// name + /// + /// + /// NSX DNS Service + /// + public static WorkloadNetworkDnsService UpdateDnsService(this IWorkloadNetworksOperations operations, string resourceGroupName, string privateCloudName, string dnsServiceId, WorkloadNetworkDnsService workloadNetworkDnsService) + { + return operations.UpdateDnsServiceAsync(resourceGroupName, privateCloudName, dnsServiceId, workloadNetworkDnsService).GetAwaiter().GetResult(); + } + + /// + /// Create or update a DNS service by id in a private cloud workload network. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the private cloud + /// + /// + /// NSX DNS Service identifier. Generally the same as the DNS Service's display + /// name + /// + /// + /// NSX DNS Service + /// + /// + /// The cancellation token. + /// + public static async Task UpdateDnsServiceAsync(this IWorkloadNetworksOperations operations, string resourceGroupName, string privateCloudName, string dnsServiceId, WorkloadNetworkDnsService workloadNetworkDnsService, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.UpdateDnsServiceWithHttpMessagesAsync(resourceGroupName, privateCloudName, dnsServiceId, workloadNetworkDnsService, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Delete a DNS service by id in a private cloud workload network. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// NSX DNS Service identifier. Generally the same as the DNS Service's display + /// name + /// + /// + /// Name of the private cloud + /// + public static void DeleteDnsService(this IWorkloadNetworksOperations operations, string resourceGroupName, string dnsServiceId, string privateCloudName) + { + operations.DeleteDnsServiceAsync(resourceGroupName, dnsServiceId, privateCloudName).GetAwaiter().GetResult(); + } + + /// + /// Delete a DNS service by id in a private cloud workload network. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// NSX DNS Service identifier. Generally the same as the DNS Service's display + /// name + /// + /// + /// Name of the private cloud + /// + /// + /// The cancellation token. + /// + public static async Task DeleteDnsServiceAsync(this IWorkloadNetworksOperations operations, string resourceGroupName, string dnsServiceId, string privateCloudName, CancellationToken cancellationToken = default(CancellationToken)) + { + (await operations.DeleteDnsServiceWithHttpMessagesAsync(resourceGroupName, dnsServiceId, privateCloudName, null, cancellationToken).ConfigureAwait(false)).Dispose(); + } + + /// + /// List of DNS zones in a private cloud workload network. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the private cloud + /// + public static IPage ListDnsZones(this IWorkloadNetworksOperations operations, string resourceGroupName, string privateCloudName) + { + return operations.ListDnsZonesAsync(resourceGroupName, privateCloudName).GetAwaiter().GetResult(); + } + + /// + /// List of DNS zones in a private cloud workload network. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the private cloud + /// + /// + /// The cancellation token. + /// + public static async Task> ListDnsZonesAsync(this IWorkloadNetworksOperations operations, string resourceGroupName, string privateCloudName, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListDnsZonesWithHttpMessagesAsync(resourceGroupName, privateCloudName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Get a DNS zone by id in a private cloud workload network. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the private cloud + /// + /// + /// NSX DNS Zone identifier. Generally the same as the DNS Zone's display name + /// + public static WorkloadNetworkDnsZone GetDnsZone(this IWorkloadNetworksOperations operations, string resourceGroupName, string privateCloudName, string dnsZoneId) + { + return operations.GetDnsZoneAsync(resourceGroupName, privateCloudName, dnsZoneId).GetAwaiter().GetResult(); + } + + /// + /// Get a DNS zone by id in a private cloud workload network. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the private cloud + /// + /// + /// NSX DNS Zone identifier. Generally the same as the DNS Zone's display name + /// + /// + /// The cancellation token. + /// + public static async Task GetDnsZoneAsync(this IWorkloadNetworksOperations operations, string resourceGroupName, string privateCloudName, string dnsZoneId, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.GetDnsZoneWithHttpMessagesAsync(resourceGroupName, privateCloudName, dnsZoneId, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Create a DNS zone by id in a private cloud workload network. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the private cloud + /// + /// + /// NSX DNS Zone identifier. Generally the same as the DNS Zone's display name + /// + /// + /// NSX DNS Zone + /// + public static WorkloadNetworkDnsZone CreateDnsZone(this IWorkloadNetworksOperations operations, string resourceGroupName, string privateCloudName, string dnsZoneId, WorkloadNetworkDnsZone workloadNetworkDnsZone) + { + return operations.CreateDnsZoneAsync(resourceGroupName, privateCloudName, dnsZoneId, workloadNetworkDnsZone).GetAwaiter().GetResult(); + } + + /// + /// Create a DNS zone by id in a private cloud workload network. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the private cloud + /// + /// + /// NSX DNS Zone identifier. Generally the same as the DNS Zone's display name + /// + /// + /// NSX DNS Zone + /// + /// + /// The cancellation token. + /// + public static async Task CreateDnsZoneAsync(this IWorkloadNetworksOperations operations, string resourceGroupName, string privateCloudName, string dnsZoneId, WorkloadNetworkDnsZone workloadNetworkDnsZone, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.CreateDnsZoneWithHttpMessagesAsync(resourceGroupName, privateCloudName, dnsZoneId, workloadNetworkDnsZone, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Create or update a DNS zone by id in a private cloud workload network. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the private cloud + /// + /// + /// NSX DNS Zone identifier. Generally the same as the DNS Zone's display name + /// + /// + /// NSX DNS Zone + /// + public static WorkloadNetworkDnsZone UpdateDnsZone(this IWorkloadNetworksOperations operations, string resourceGroupName, string privateCloudName, string dnsZoneId, WorkloadNetworkDnsZone workloadNetworkDnsZone) + { + return operations.UpdateDnsZoneAsync(resourceGroupName, privateCloudName, dnsZoneId, workloadNetworkDnsZone).GetAwaiter().GetResult(); + } + + /// + /// Create or update a DNS zone by id in a private cloud workload network. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the private cloud + /// + /// + /// NSX DNS Zone identifier. Generally the same as the DNS Zone's display name + /// + /// + /// NSX DNS Zone + /// + /// + /// The cancellation token. + /// + public static async Task UpdateDnsZoneAsync(this IWorkloadNetworksOperations operations, string resourceGroupName, string privateCloudName, string dnsZoneId, WorkloadNetworkDnsZone workloadNetworkDnsZone, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.UpdateDnsZoneWithHttpMessagesAsync(resourceGroupName, privateCloudName, dnsZoneId, workloadNetworkDnsZone, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Delete a DNS zone by id in a private cloud workload network. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// NSX DNS Zone identifier. Generally the same as the DNS Zone's display name + /// + /// + /// Name of the private cloud + /// + public static void DeleteDnsZone(this IWorkloadNetworksOperations operations, string resourceGroupName, string dnsZoneId, string privateCloudName) + { + operations.DeleteDnsZoneAsync(resourceGroupName, dnsZoneId, privateCloudName).GetAwaiter().GetResult(); + } + + /// + /// Delete a DNS zone by id in a private cloud workload network. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// NSX DNS Zone identifier. Generally the same as the DNS Zone's display name + /// + /// + /// Name of the private cloud + /// + /// + /// The cancellation token. + /// + public static async Task DeleteDnsZoneAsync(this IWorkloadNetworksOperations operations, string resourceGroupName, string dnsZoneId, string privateCloudName, CancellationToken cancellationToken = default(CancellationToken)) + { + (await operations.DeleteDnsZoneWithHttpMessagesAsync(resourceGroupName, dnsZoneId, privateCloudName, null, cancellationToken).ConfigureAwait(false)).Dispose(); + } + + /// + /// List of Public IP Blocks in a private cloud workload network. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the private cloud + /// + public static IPage ListPublicIPs(this IWorkloadNetworksOperations operations, string resourceGroupName, string privateCloudName) + { + return operations.ListPublicIPsAsync(resourceGroupName, privateCloudName).GetAwaiter().GetResult(); + } + + /// + /// List of Public IP Blocks in a private cloud workload network. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the private cloud + /// + /// + /// The cancellation token. + /// + public static async Task> ListPublicIPsAsync(this IWorkloadNetworksOperations operations, string resourceGroupName, string privateCloudName, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListPublicIPsWithHttpMessagesAsync(resourceGroupName, privateCloudName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Get a Public IP Block by id in a private cloud workload network. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the private cloud + /// + /// + /// NSX Public IP Block identifier. Generally the same as the Public IP Block's + /// display name + /// + public static WorkloadNetworkPublicIP GetPublicIP(this IWorkloadNetworksOperations operations, string resourceGroupName, string privateCloudName, string publicIPId) + { + return operations.GetPublicIPAsync(resourceGroupName, privateCloudName, publicIPId).GetAwaiter().GetResult(); + } + + /// + /// Get a Public IP Block by id in a private cloud workload network. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the private cloud + /// + /// + /// NSX Public IP Block identifier. Generally the same as the Public IP Block's + /// display name + /// + /// + /// The cancellation token. + /// + public static async Task GetPublicIPAsync(this IWorkloadNetworksOperations operations, string resourceGroupName, string privateCloudName, string publicIPId, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.GetPublicIPWithHttpMessagesAsync(resourceGroupName, privateCloudName, publicIPId, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Create a Public IP Block by id in a private cloud workload network. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the private cloud + /// + /// + /// NSX Public IP Block identifier. Generally the same as the Public IP Block's + /// display name + /// + /// + /// NSX Public IP Block + /// + public static WorkloadNetworkPublicIP CreatePublicIP(this IWorkloadNetworksOperations operations, string resourceGroupName, string privateCloudName, string publicIPId, WorkloadNetworkPublicIP workloadNetworkPublicIP) + { + return operations.CreatePublicIPAsync(resourceGroupName, privateCloudName, publicIPId, workloadNetworkPublicIP).GetAwaiter().GetResult(); + } + + /// + /// Create a Public IP Block by id in a private cloud workload network. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the private cloud + /// + /// + /// NSX Public IP Block identifier. Generally the same as the Public IP Block's + /// display name + /// + /// + /// NSX Public IP Block + /// + /// + /// The cancellation token. + /// + public static async Task CreatePublicIPAsync(this IWorkloadNetworksOperations operations, string resourceGroupName, string privateCloudName, string publicIPId, WorkloadNetworkPublicIP workloadNetworkPublicIP, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.CreatePublicIPWithHttpMessagesAsync(resourceGroupName, privateCloudName, publicIPId, workloadNetworkPublicIP, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Delete a Public IP Block by id in a private cloud workload network. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// NSX Public IP Block identifier. Generally the same as the Public IP Block's + /// display name + /// + /// + /// Name of the private cloud + /// + public static void DeletePublicIP(this IWorkloadNetworksOperations operations, string resourceGroupName, string publicIPId, string privateCloudName) + { + operations.DeletePublicIPAsync(resourceGroupName, publicIPId, privateCloudName).GetAwaiter().GetResult(); + } + + /// + /// Delete a Public IP Block by id in a private cloud workload network. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// NSX Public IP Block identifier. Generally the same as the Public IP Block's + /// display name + /// + /// + /// Name of the private cloud + /// + /// + /// The cancellation token. + /// + public static async Task DeletePublicIPAsync(this IWorkloadNetworksOperations operations, string resourceGroupName, string publicIPId, string privateCloudName, CancellationToken cancellationToken = default(CancellationToken)) + { + (await operations.DeletePublicIPWithHttpMessagesAsync(resourceGroupName, publicIPId, privateCloudName, null, cancellationToken).ConfigureAwait(false)).Dispose(); + } + + /// + /// Create a segment by id in a private cloud workload network. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the private cloud + /// + /// + /// NSX Segment identifier. Generally the same as the Segment's display name + /// + /// + /// NSX Segment + /// + public static WorkloadNetworkSegment BeginCreateSegments(this IWorkloadNetworksOperations operations, string resourceGroupName, string privateCloudName, string segmentId, WorkloadNetworkSegment workloadNetworkSegment) + { + return operations.BeginCreateSegmentsAsync(resourceGroupName, privateCloudName, segmentId, workloadNetworkSegment).GetAwaiter().GetResult(); + } + + /// + /// Create a segment by id in a private cloud workload network. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the private cloud + /// + /// + /// NSX Segment identifier. Generally the same as the Segment's display name + /// + /// + /// NSX Segment + /// + /// + /// The cancellation token. + /// + public static async Task BeginCreateSegmentsAsync(this IWorkloadNetworksOperations operations, string resourceGroupName, string privateCloudName, string segmentId, WorkloadNetworkSegment workloadNetworkSegment, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.BeginCreateSegmentsWithHttpMessagesAsync(resourceGroupName, privateCloudName, segmentId, workloadNetworkSegment, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Create or update a segment by id in a private cloud workload network. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the private cloud + /// + /// + /// NSX Segment identifier. Generally the same as the Segment's display name + /// + /// + /// NSX Segment + /// + public static WorkloadNetworkSegment BeginUpdateSegments(this IWorkloadNetworksOperations operations, string resourceGroupName, string privateCloudName, string segmentId, WorkloadNetworkSegment workloadNetworkSegment) + { + return operations.BeginUpdateSegmentsAsync(resourceGroupName, privateCloudName, segmentId, workloadNetworkSegment).GetAwaiter().GetResult(); + } + + /// + /// Create or update a segment by id in a private cloud workload network. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the private cloud + /// + /// + /// NSX Segment identifier. Generally the same as the Segment's display name + /// + /// + /// NSX Segment + /// + /// + /// The cancellation token. + /// + public static async Task BeginUpdateSegmentsAsync(this IWorkloadNetworksOperations operations, string resourceGroupName, string privateCloudName, string segmentId, WorkloadNetworkSegment workloadNetworkSegment, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.BeginUpdateSegmentsWithHttpMessagesAsync(resourceGroupName, privateCloudName, segmentId, workloadNetworkSegment, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Delete a segment by id in a private cloud workload network. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the private cloud + /// + /// + /// NSX Segment identifier. Generally the same as the Segment's display name + /// + public static void BeginDeleteSegment(this IWorkloadNetworksOperations operations, string resourceGroupName, string privateCloudName, string segmentId) + { + operations.BeginDeleteSegmentAsync(resourceGroupName, privateCloudName, segmentId).GetAwaiter().GetResult(); + } + + /// + /// Delete a segment by id in a private cloud workload network. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the private cloud + /// + /// + /// NSX Segment identifier. Generally the same as the Segment's display name + /// + /// + /// The cancellation token. + /// + public static async Task BeginDeleteSegmentAsync(this IWorkloadNetworksOperations operations, string resourceGroupName, string privateCloudName, string segmentId, CancellationToken cancellationToken = default(CancellationToken)) + { + (await operations.BeginDeleteSegmentWithHttpMessagesAsync(resourceGroupName, privateCloudName, segmentId, null, cancellationToken).ConfigureAwait(false)).Dispose(); + } + + /// + /// Create dhcp by id in a private cloud workload network. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the private cloud + /// + /// + /// NSX DHCP identifier. Generally the same as the DHCP display name + /// + /// + /// NSX DHCP + /// + public static WorkloadNetworkDhcp BeginCreateDhcp(this IWorkloadNetworksOperations operations, string resourceGroupName, string privateCloudName, string dhcpId, WorkloadNetworkDhcp workloadNetworkDhcp) + { + return operations.BeginCreateDhcpAsync(resourceGroupName, privateCloudName, dhcpId, workloadNetworkDhcp).GetAwaiter().GetResult(); + } + + /// + /// Create dhcp by id in a private cloud workload network. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the private cloud + /// + /// + /// NSX DHCP identifier. Generally the same as the DHCP display name + /// + /// + /// NSX DHCP + /// + /// + /// The cancellation token. + /// + public static async Task BeginCreateDhcpAsync(this IWorkloadNetworksOperations operations, string resourceGroupName, string privateCloudName, string dhcpId, WorkloadNetworkDhcp workloadNetworkDhcp, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.BeginCreateDhcpWithHttpMessagesAsync(resourceGroupName, privateCloudName, dhcpId, workloadNetworkDhcp, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Create or update dhcp by id in a private cloud workload network. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the private cloud + /// + /// + /// NSX DHCP identifier. Generally the same as the DHCP display name + /// + /// + /// NSX DHCP + /// + public static WorkloadNetworkDhcp BeginUpdateDhcp(this IWorkloadNetworksOperations operations, string resourceGroupName, string privateCloudName, string dhcpId, WorkloadNetworkDhcp workloadNetworkDhcp) + { + return operations.BeginUpdateDhcpAsync(resourceGroupName, privateCloudName, dhcpId, workloadNetworkDhcp).GetAwaiter().GetResult(); + } + + /// + /// Create or update dhcp by id in a private cloud workload network. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the private cloud + /// + /// + /// NSX DHCP identifier. Generally the same as the DHCP display name + /// + /// + /// NSX DHCP + /// + /// + /// The cancellation token. + /// + public static async Task BeginUpdateDhcpAsync(this IWorkloadNetworksOperations operations, string resourceGroupName, string privateCloudName, string dhcpId, WorkloadNetworkDhcp workloadNetworkDhcp, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.BeginUpdateDhcpWithHttpMessagesAsync(resourceGroupName, privateCloudName, dhcpId, workloadNetworkDhcp, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Delete dhcp by id in a private cloud workload network. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the private cloud + /// + /// + /// NSX DHCP identifier. Generally the same as the DHCP display name + /// + public static void BeginDeleteDhcp(this IWorkloadNetworksOperations operations, string resourceGroupName, string privateCloudName, string dhcpId) + { + operations.BeginDeleteDhcpAsync(resourceGroupName, privateCloudName, dhcpId).GetAwaiter().GetResult(); + } + + /// + /// Delete dhcp by id in a private cloud workload network. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the private cloud + /// + /// + /// NSX DHCP identifier. Generally the same as the DHCP display name + /// + /// + /// The cancellation token. + /// + public static async Task BeginDeleteDhcpAsync(this IWorkloadNetworksOperations operations, string resourceGroupName, string privateCloudName, string dhcpId, CancellationToken cancellationToken = default(CancellationToken)) + { + (await operations.BeginDeleteDhcpWithHttpMessagesAsync(resourceGroupName, privateCloudName, dhcpId, null, cancellationToken).ConfigureAwait(false)).Dispose(); + } + + /// + /// Create a port mirroring profile by id in a private cloud workload network. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the private cloud + /// + /// + /// NSX Port Mirroring identifier. Generally the same as the Port Mirroring + /// display name + /// + /// + /// NSX port mirroring + /// + public static WorkloadNetworkPortMirroring BeginCreatePortMirroring(this IWorkloadNetworksOperations operations, string resourceGroupName, string privateCloudName, string portMirroringId, WorkloadNetworkPortMirroring workloadNetworkPortMirroring) + { + return operations.BeginCreatePortMirroringAsync(resourceGroupName, privateCloudName, portMirroringId, workloadNetworkPortMirroring).GetAwaiter().GetResult(); + } + + /// + /// Create a port mirroring profile by id in a private cloud workload network. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the private cloud + /// + /// + /// NSX Port Mirroring identifier. Generally the same as the Port Mirroring + /// display name + /// + /// + /// NSX port mirroring + /// + /// + /// The cancellation token. + /// + public static async Task BeginCreatePortMirroringAsync(this IWorkloadNetworksOperations operations, string resourceGroupName, string privateCloudName, string portMirroringId, WorkloadNetworkPortMirroring workloadNetworkPortMirroring, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.BeginCreatePortMirroringWithHttpMessagesAsync(resourceGroupName, privateCloudName, portMirroringId, workloadNetworkPortMirroring, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Create or update a port mirroring profile by id in a private cloud workload + /// network. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the private cloud + /// + /// + /// NSX Port Mirroring identifier. Generally the same as the Port Mirroring + /// display name + /// + /// + /// NSX port mirroring + /// + public static WorkloadNetworkPortMirroring BeginUpdatePortMirroring(this IWorkloadNetworksOperations operations, string resourceGroupName, string privateCloudName, string portMirroringId, WorkloadNetworkPortMirroring workloadNetworkPortMirroring) + { + return operations.BeginUpdatePortMirroringAsync(resourceGroupName, privateCloudName, portMirroringId, workloadNetworkPortMirroring).GetAwaiter().GetResult(); + } + + /// + /// Create or update a port mirroring profile by id in a private cloud workload + /// network. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the private cloud + /// + /// + /// NSX Port Mirroring identifier. Generally the same as the Port Mirroring + /// display name + /// + /// + /// NSX port mirroring + /// + /// + /// The cancellation token. + /// + public static async Task BeginUpdatePortMirroringAsync(this IWorkloadNetworksOperations operations, string resourceGroupName, string privateCloudName, string portMirroringId, WorkloadNetworkPortMirroring workloadNetworkPortMirroring, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.BeginUpdatePortMirroringWithHttpMessagesAsync(resourceGroupName, privateCloudName, portMirroringId, workloadNetworkPortMirroring, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Delete a port mirroring profile by id in a private cloud workload network. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// NSX Port Mirroring identifier. Generally the same as the Port Mirroring + /// display name + /// + /// + /// Name of the private cloud + /// + public static void BeginDeletePortMirroring(this IWorkloadNetworksOperations operations, string resourceGroupName, string portMirroringId, string privateCloudName) + { + operations.BeginDeletePortMirroringAsync(resourceGroupName, portMirroringId, privateCloudName).GetAwaiter().GetResult(); + } + + /// + /// Delete a port mirroring profile by id in a private cloud workload network. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// NSX Port Mirroring identifier. Generally the same as the Port Mirroring + /// display name + /// + /// + /// Name of the private cloud + /// + /// + /// The cancellation token. + /// + public static async Task BeginDeletePortMirroringAsync(this IWorkloadNetworksOperations operations, string resourceGroupName, string portMirroringId, string privateCloudName, CancellationToken cancellationToken = default(CancellationToken)) + { + (await operations.BeginDeletePortMirroringWithHttpMessagesAsync(resourceGroupName, portMirroringId, privateCloudName, null, cancellationToken).ConfigureAwait(false)).Dispose(); + } + + /// + /// Create a vm group by id in a private cloud workload network. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the private cloud + /// + /// + /// NSX VM Group identifier. Generally the same as the VM Group's display name + /// + /// + /// NSX VM Group + /// + public static WorkloadNetworkVMGroup BeginCreateVMGroup(this IWorkloadNetworksOperations operations, string resourceGroupName, string privateCloudName, string vmGroupId, WorkloadNetworkVMGroup workloadNetworkVMGroup) + { + return operations.BeginCreateVMGroupAsync(resourceGroupName, privateCloudName, vmGroupId, workloadNetworkVMGroup).GetAwaiter().GetResult(); + } + + /// + /// Create a vm group by id in a private cloud workload network. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the private cloud + /// + /// + /// NSX VM Group identifier. Generally the same as the VM Group's display name + /// + /// + /// NSX VM Group + /// + /// + /// The cancellation token. + /// + public static async Task BeginCreateVMGroupAsync(this IWorkloadNetworksOperations operations, string resourceGroupName, string privateCloudName, string vmGroupId, WorkloadNetworkVMGroup workloadNetworkVMGroup, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.BeginCreateVMGroupWithHttpMessagesAsync(resourceGroupName, privateCloudName, vmGroupId, workloadNetworkVMGroup, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Create or update a vm group by id in a private cloud workload network. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the private cloud + /// + /// + /// NSX VM Group identifier. Generally the same as the VM Group's display name + /// + /// + /// NSX VM Group + /// + public static WorkloadNetworkVMGroup BeginUpdateVMGroup(this IWorkloadNetworksOperations operations, string resourceGroupName, string privateCloudName, string vmGroupId, WorkloadNetworkVMGroup workloadNetworkVMGroup) + { + return operations.BeginUpdateVMGroupAsync(resourceGroupName, privateCloudName, vmGroupId, workloadNetworkVMGroup).GetAwaiter().GetResult(); + } + + /// + /// Create or update a vm group by id in a private cloud workload network. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the private cloud + /// + /// + /// NSX VM Group identifier. Generally the same as the VM Group's display name + /// + /// + /// NSX VM Group + /// + /// + /// The cancellation token. + /// + public static async Task BeginUpdateVMGroupAsync(this IWorkloadNetworksOperations operations, string resourceGroupName, string privateCloudName, string vmGroupId, WorkloadNetworkVMGroup workloadNetworkVMGroup, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.BeginUpdateVMGroupWithHttpMessagesAsync(resourceGroupName, privateCloudName, vmGroupId, workloadNetworkVMGroup, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Delete a vm group by id in a private cloud workload network. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// NSX VM Group identifier. Generally the same as the VM Group's display name + /// + /// + /// Name of the private cloud + /// + public static void BeginDeleteVMGroup(this IWorkloadNetworksOperations operations, string resourceGroupName, string vmGroupId, string privateCloudName) + { + operations.BeginDeleteVMGroupAsync(resourceGroupName, vmGroupId, privateCloudName).GetAwaiter().GetResult(); + } + + /// + /// Delete a vm group by id in a private cloud workload network. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// NSX VM Group identifier. Generally the same as the VM Group's display name + /// + /// + /// Name of the private cloud + /// + /// + /// The cancellation token. + /// + public static async Task BeginDeleteVMGroupAsync(this IWorkloadNetworksOperations operations, string resourceGroupName, string vmGroupId, string privateCloudName, CancellationToken cancellationToken = default(CancellationToken)) + { + (await operations.BeginDeleteVMGroupWithHttpMessagesAsync(resourceGroupName, vmGroupId, privateCloudName, null, cancellationToken).ConfigureAwait(false)).Dispose(); + } + + /// + /// Create a DNS service by id in a private cloud workload network. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the private cloud + /// + /// + /// NSX DNS Service identifier. Generally the same as the DNS Service's display + /// name + /// + /// + /// NSX DNS Service + /// + public static WorkloadNetworkDnsService BeginCreateDnsService(this IWorkloadNetworksOperations operations, string resourceGroupName, string privateCloudName, string dnsServiceId, WorkloadNetworkDnsService workloadNetworkDnsService) + { + return operations.BeginCreateDnsServiceAsync(resourceGroupName, privateCloudName, dnsServiceId, workloadNetworkDnsService).GetAwaiter().GetResult(); + } + + /// + /// Create a DNS service by id in a private cloud workload network. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the private cloud + /// + /// + /// NSX DNS Service identifier. Generally the same as the DNS Service's display + /// name + /// + /// + /// NSX DNS Service + /// + /// + /// The cancellation token. + /// + public static async Task BeginCreateDnsServiceAsync(this IWorkloadNetworksOperations operations, string resourceGroupName, string privateCloudName, string dnsServiceId, WorkloadNetworkDnsService workloadNetworkDnsService, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.BeginCreateDnsServiceWithHttpMessagesAsync(resourceGroupName, privateCloudName, dnsServiceId, workloadNetworkDnsService, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Create or update a DNS service by id in a private cloud workload network. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the private cloud + /// + /// + /// NSX DNS Service identifier. Generally the same as the DNS Service's display + /// name + /// + /// + /// NSX DNS Service + /// + public static WorkloadNetworkDnsService BeginUpdateDnsService(this IWorkloadNetworksOperations operations, string resourceGroupName, string privateCloudName, string dnsServiceId, WorkloadNetworkDnsService workloadNetworkDnsService) + { + return operations.BeginUpdateDnsServiceAsync(resourceGroupName, privateCloudName, dnsServiceId, workloadNetworkDnsService).GetAwaiter().GetResult(); + } + + /// + /// Create or update a DNS service by id in a private cloud workload network. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the private cloud + /// + /// + /// NSX DNS Service identifier. Generally the same as the DNS Service's display + /// name + /// + /// + /// NSX DNS Service + /// + /// + /// The cancellation token. + /// + public static async Task BeginUpdateDnsServiceAsync(this IWorkloadNetworksOperations operations, string resourceGroupName, string privateCloudName, string dnsServiceId, WorkloadNetworkDnsService workloadNetworkDnsService, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.BeginUpdateDnsServiceWithHttpMessagesAsync(resourceGroupName, privateCloudName, dnsServiceId, workloadNetworkDnsService, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Delete a DNS service by id in a private cloud workload network. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// NSX DNS Service identifier. Generally the same as the DNS Service's display + /// name + /// + /// + /// Name of the private cloud + /// + public static void BeginDeleteDnsService(this IWorkloadNetworksOperations operations, string resourceGroupName, string dnsServiceId, string privateCloudName) + { + operations.BeginDeleteDnsServiceAsync(resourceGroupName, dnsServiceId, privateCloudName).GetAwaiter().GetResult(); + } + + /// + /// Delete a DNS service by id in a private cloud workload network. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// NSX DNS Service identifier. Generally the same as the DNS Service's display + /// name + /// + /// + /// Name of the private cloud + /// + /// + /// The cancellation token. + /// + public static async Task BeginDeleteDnsServiceAsync(this IWorkloadNetworksOperations operations, string resourceGroupName, string dnsServiceId, string privateCloudName, CancellationToken cancellationToken = default(CancellationToken)) + { + (await operations.BeginDeleteDnsServiceWithHttpMessagesAsync(resourceGroupName, dnsServiceId, privateCloudName, null, cancellationToken).ConfigureAwait(false)).Dispose(); + } + + /// + /// Create a DNS zone by id in a private cloud workload network. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the private cloud + /// + /// + /// NSX DNS Zone identifier. Generally the same as the DNS Zone's display name + /// + /// + /// NSX DNS Zone + /// + public static WorkloadNetworkDnsZone BeginCreateDnsZone(this IWorkloadNetworksOperations operations, string resourceGroupName, string privateCloudName, string dnsZoneId, WorkloadNetworkDnsZone workloadNetworkDnsZone) + { + return operations.BeginCreateDnsZoneAsync(resourceGroupName, privateCloudName, dnsZoneId, workloadNetworkDnsZone).GetAwaiter().GetResult(); + } + + /// + /// Create a DNS zone by id in a private cloud workload network. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the private cloud + /// + /// + /// NSX DNS Zone identifier. Generally the same as the DNS Zone's display name + /// + /// + /// NSX DNS Zone + /// + /// + /// The cancellation token. + /// + public static async Task BeginCreateDnsZoneAsync(this IWorkloadNetworksOperations operations, string resourceGroupName, string privateCloudName, string dnsZoneId, WorkloadNetworkDnsZone workloadNetworkDnsZone, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.BeginCreateDnsZoneWithHttpMessagesAsync(resourceGroupName, privateCloudName, dnsZoneId, workloadNetworkDnsZone, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Create or update a DNS zone by id in a private cloud workload network. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the private cloud + /// + /// + /// NSX DNS Zone identifier. Generally the same as the DNS Zone's display name + /// + /// + /// NSX DNS Zone + /// + public static WorkloadNetworkDnsZone BeginUpdateDnsZone(this IWorkloadNetworksOperations operations, string resourceGroupName, string privateCloudName, string dnsZoneId, WorkloadNetworkDnsZone workloadNetworkDnsZone) + { + return operations.BeginUpdateDnsZoneAsync(resourceGroupName, privateCloudName, dnsZoneId, workloadNetworkDnsZone).GetAwaiter().GetResult(); + } + + /// + /// Create or update a DNS zone by id in a private cloud workload network. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the private cloud + /// + /// + /// NSX DNS Zone identifier. Generally the same as the DNS Zone's display name + /// + /// + /// NSX DNS Zone + /// + /// + /// The cancellation token. + /// + public static async Task BeginUpdateDnsZoneAsync(this IWorkloadNetworksOperations operations, string resourceGroupName, string privateCloudName, string dnsZoneId, WorkloadNetworkDnsZone workloadNetworkDnsZone, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.BeginUpdateDnsZoneWithHttpMessagesAsync(resourceGroupName, privateCloudName, dnsZoneId, workloadNetworkDnsZone, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Delete a DNS zone by id in a private cloud workload network. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// NSX DNS Zone identifier. Generally the same as the DNS Zone's display name + /// + /// + /// Name of the private cloud + /// + public static void BeginDeleteDnsZone(this IWorkloadNetworksOperations operations, string resourceGroupName, string dnsZoneId, string privateCloudName) + { + operations.BeginDeleteDnsZoneAsync(resourceGroupName, dnsZoneId, privateCloudName).GetAwaiter().GetResult(); + } + + /// + /// Delete a DNS zone by id in a private cloud workload network. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// NSX DNS Zone identifier. Generally the same as the DNS Zone's display name + /// + /// + /// Name of the private cloud + /// + /// + /// The cancellation token. + /// + public static async Task BeginDeleteDnsZoneAsync(this IWorkloadNetworksOperations operations, string resourceGroupName, string dnsZoneId, string privateCloudName, CancellationToken cancellationToken = default(CancellationToken)) + { + (await operations.BeginDeleteDnsZoneWithHttpMessagesAsync(resourceGroupName, dnsZoneId, privateCloudName, null, cancellationToken).ConfigureAwait(false)).Dispose(); + } + + /// + /// Create a Public IP Block by id in a private cloud workload network. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the private cloud + /// + /// + /// NSX Public IP Block identifier. Generally the same as the Public IP Block's + /// display name + /// + /// + /// NSX Public IP Block + /// + public static WorkloadNetworkPublicIP BeginCreatePublicIP(this IWorkloadNetworksOperations operations, string resourceGroupName, string privateCloudName, string publicIPId, WorkloadNetworkPublicIP workloadNetworkPublicIP) + { + return operations.BeginCreatePublicIPAsync(resourceGroupName, privateCloudName, publicIPId, workloadNetworkPublicIP).GetAwaiter().GetResult(); + } + + /// + /// Create a Public IP Block by id in a private cloud workload network. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the private cloud + /// + /// + /// NSX Public IP Block identifier. Generally the same as the Public IP Block's + /// display name + /// + /// + /// NSX Public IP Block + /// + /// + /// The cancellation token. + /// + public static async Task BeginCreatePublicIPAsync(this IWorkloadNetworksOperations operations, string resourceGroupName, string privateCloudName, string publicIPId, WorkloadNetworkPublicIP workloadNetworkPublicIP, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.BeginCreatePublicIPWithHttpMessagesAsync(resourceGroupName, privateCloudName, publicIPId, workloadNetworkPublicIP, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Delete a Public IP Block by id in a private cloud workload network. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// NSX Public IP Block identifier. Generally the same as the Public IP Block's + /// display name + /// + /// + /// Name of the private cloud + /// + public static void BeginDeletePublicIP(this IWorkloadNetworksOperations operations, string resourceGroupName, string publicIPId, string privateCloudName) + { + operations.BeginDeletePublicIPAsync(resourceGroupName, publicIPId, privateCloudName).GetAwaiter().GetResult(); + } + + /// + /// Delete a Public IP Block by id in a private cloud workload network. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// NSX Public IP Block identifier. Generally the same as the Public IP Block's + /// display name + /// + /// + /// Name of the private cloud + /// + /// + /// The cancellation token. + /// + public static async Task BeginDeletePublicIPAsync(this IWorkloadNetworksOperations operations, string resourceGroupName, string publicIPId, string privateCloudName, CancellationToken cancellationToken = default(CancellationToken)) + { + (await operations.BeginDeletePublicIPWithHttpMessagesAsync(resourceGroupName, publicIPId, privateCloudName, null, cancellationToken).ConfigureAwait(false)).Dispose(); + } + + /// + /// List of segments in a private cloud workload network. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + public static IPage ListSegmentsNext(this IWorkloadNetworksOperations operations, string nextPageLink) + { + return operations.ListSegmentsNextAsync(nextPageLink).GetAwaiter().GetResult(); + } + + /// + /// List of segments in a private cloud workload network. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// The cancellation token. + /// + public static async Task> ListSegmentsNextAsync(this IWorkloadNetworksOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListSegmentsNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// List dhcp in a private cloud workload network. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + public static IPage ListDhcpNext(this IWorkloadNetworksOperations operations, string nextPageLink) + { + return operations.ListDhcpNextAsync(nextPageLink).GetAwaiter().GetResult(); + } + + /// + /// List dhcp in a private cloud workload network. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// The cancellation token. + /// + public static async Task> ListDhcpNextAsync(this IWorkloadNetworksOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListDhcpNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// List of gateways in a private cloud workload network. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + public static IPage ListGatewaysNext(this IWorkloadNetworksOperations operations, string nextPageLink) + { + return operations.ListGatewaysNextAsync(nextPageLink).GetAwaiter().GetResult(); + } + + /// + /// List of gateways in a private cloud workload network. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// The cancellation token. + /// + public static async Task> ListGatewaysNextAsync(this IWorkloadNetworksOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListGatewaysNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// List of port mirroring profiles in a private cloud workload network. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + public static IPage ListPortMirroringNext(this IWorkloadNetworksOperations operations, string nextPageLink) + { + return operations.ListPortMirroringNextAsync(nextPageLink).GetAwaiter().GetResult(); + } + + /// + /// List of port mirroring profiles in a private cloud workload network. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// The cancellation token. + /// + public static async Task> ListPortMirroringNextAsync(this IWorkloadNetworksOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListPortMirroringNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// List of vm groups in a private cloud workload network. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + public static IPage ListVMGroupsNext(this IWorkloadNetworksOperations operations, string nextPageLink) + { + return operations.ListVMGroupsNextAsync(nextPageLink).GetAwaiter().GetResult(); + } + + /// + /// List of vm groups in a private cloud workload network. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// The cancellation token. + /// + public static async Task> ListVMGroupsNextAsync(this IWorkloadNetworksOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListVMGroupsNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// List of virtual machines in a private cloud workload network. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + public static IPage ListVirtualMachinesNext(this IWorkloadNetworksOperations operations, string nextPageLink) + { + return operations.ListVirtualMachinesNextAsync(nextPageLink).GetAwaiter().GetResult(); + } + + /// + /// List of virtual machines in a private cloud workload network. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// The cancellation token. + /// + public static async Task> ListVirtualMachinesNextAsync(this IWorkloadNetworksOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListVirtualMachinesNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// List of DNS services in a private cloud workload network. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + public static IPage ListDnsServicesNext(this IWorkloadNetworksOperations operations, string nextPageLink) + { + return operations.ListDnsServicesNextAsync(nextPageLink).GetAwaiter().GetResult(); + } + + /// + /// List of DNS services in a private cloud workload network. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// The cancellation token. + /// + public static async Task> ListDnsServicesNextAsync(this IWorkloadNetworksOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListDnsServicesNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// List of DNS zones in a private cloud workload network. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + public static IPage ListDnsZonesNext(this IWorkloadNetworksOperations operations, string nextPageLink) + { + return operations.ListDnsZonesNextAsync(nextPageLink).GetAwaiter().GetResult(); + } + + /// + /// List of DNS zones in a private cloud workload network. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// The cancellation token. + /// + public static async Task> ListDnsZonesNextAsync(this IWorkloadNetworksOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListDnsZonesNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// List of Public IP Blocks in a private cloud workload network. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + public static IPage ListPublicIPsNext(this IWorkloadNetworksOperations operations, string nextPageLink) + { + return operations.ListPublicIPsNextAsync(nextPageLink).GetAwaiter().GetResult(); + } + + /// + /// List of Public IP Blocks in a private cloud workload network. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// The cancellation token. + /// + public static async Task> ListPublicIPsNextAsync(this IWorkloadNetworksOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListPublicIPsNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + } +} 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 index 7260c198cd03..d5ba1fffb538 100644 --- 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 @@ -6,7 +6,7 @@ Microsoft.Azure.Management.Avs Provides developers with libraries for Azure VMware Solution. - 1.0.0 + 2.0.0 Microsoft.Azure.Management.Avs management;VMware;AVS; $(SdkTargetFx) diff --git a/sdk/avs/Microsoft.Azure.Management.Avs/src/Properties/AssemblyInfo.cs b/sdk/avs/Microsoft.Azure.Management.Avs/src/Properties/AssemblyInfo.cs index 5db3f092b2be..c868b6911d32 100644 --- a/sdk/avs/Microsoft.Azure.Management.Avs/src/Properties/AssemblyInfo.cs +++ b/sdk/avs/Microsoft.Azure.Management.Avs/src/Properties/AssemblyInfo.cs @@ -7,8 +7,8 @@ [assembly: AssemblyTitle("Microsoft Azure VMware Solution Library")] [assembly: AssemblyDescription("Provides management functionality for Microsoft Azure VMware Solution.")] -[assembly: AssemblyVersion("1.0.0")] -[assembly: AssemblyFileVersion("1.0.0.1")] +[assembly: AssemblyVersion("2.0.0")] +[assembly: AssemblyFileVersion("2.0.0.1")] [assembly: AssemblyConfiguration("")] [assembly: AssemblyCompany("Microsoft")] [assembly: AssemblyProduct("Microsoft Azure .NET SDK")] diff --git a/sdk/avs/Microsoft.Azure.Management.Avs/src/generate.ps1 b/sdk/avs/Microsoft.Azure.Management.Avs/src/generate.ps1 index 77f7df3847bf..69e735f78584 100644 --- a/sdk/avs/Microsoft.Azure.Management.Avs/src/generate.ps1 +++ b/sdk/avs/Microsoft.Azure.Management.Avs/src/generate.ps1 @@ -1 +1 @@ -Start-AutoRestCodeGeneration -ResourceProvider "vmware/resource-manager" -AutoRestVersion "v2" \ No newline at end of file +Start-AutoRestCodeGeneration -ResourceProvider "vmware/resource-manager" -AutoRestVersion "v2" -SpecsRepoBranch "AVS/dotnet" \ No newline at end of file diff --git a/sdk/avs/Microsoft.Azure.Management.Avs/tests/AddonsTests.cs b/sdk/avs/Microsoft.Azure.Management.Avs/tests/AddonsTests.cs new file mode 100644 index 000000000000..90a3ec50b4bb --- /dev/null +++ b/sdk/avs/Microsoft.Azure.Management.Avs/tests/AddonsTests.cs @@ -0,0 +1,70 @@ +// 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 AddonsTests : TestBase + { + const string PREFIX = "avs-sdk-addons-"; + + [Fact] + public void HcxAll() + { + using var context = MockContext.Start(this.GetType()); + string rgName = TestUtilities.GenerateName(PREFIX + "rg"); + string cloudName = TestUtilities.GenerateName(PREFIX + "cloud"); + string location = "westcentralus"; + string addonName = "hcx"; + + using var rmClient = context.GetServiceClient(); + rmClient.ResourceGroups.CreateOrUpdate(rgName, new ResourceGroup { Location = location }); + + try + { + using var avsClient = context.GetServiceClient(); + + var privateCloud = avsClient.PrivateClouds.CreateOrUpdate(rgName, cloudName, new PrivateCloud + { + Location = location, + Sku = new Sku { Name = "av20" }, + ManagementCluster = new ManagementCluster + { + ClusterSize = 3, + }, + NetworkBlock = "192.168.48.0/22" + }); + + var hcxPage = avsClient.Addons.List(rgName, cloudName); + Assert.True(hcxPage.Count() == 0); + + avsClient.Addons.CreateOrUpdate(rgName, cloudName, addonName, new Addon + { + Properties = new AddonHcxProperties + { + Offer = "VMware MaaS Cloud Provider (Enterprise)" + } + }); + + hcxPage = avsClient.Addons.List(rgName, cloudName); + Assert.True(hcxPage.Count() == 1); + + avsClient.Addons.Get(rgName, cloudName, addonName); + + avsClient.Addons.Delete(rgName, cloudName, addonName); + } + finally + { + rmClient.ResourceGroups.Delete(rgName); + } + + } + } +} \ 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 deleted file mode 100644 index 76e3e8b52cab..000000000000 --- a/sdk/avs/Microsoft.Azure.Management.Avs/tests/AvsTestBase.cs +++ /dev/null @@ -1,24 +0,0 @@ -// 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 index 80c8e4911b87..a92d4e077e07 100644 --- a/sdk/avs/Microsoft.Azure.Management.Avs/tests/AvsTests.cs +++ b/sdk/avs/Microsoft.Azure.Management.Avs/tests/AvsTests.cs @@ -13,126 +13,135 @@ namespace Avs.Tests { public class AvsTests : TestBase { + const string PREFIX = "avs-sdk-test-"; + [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 rgName = TestUtilities.GenerateName(PREFIX + "rg"); + string cloudName = TestUtilities.GenerateName(PREFIX + "cloud"); + string clusterName = TestUtilities.GenerateName(PREFIX + "cluster"); string location = "centralus"; - string hcxEnterpriseSiteName = TestUtilities.GenerateName("avs-sdk-test-hcx-site"); - string authName = TestUtilities.GenerateName("avs-sdk-test-authorization"); + string hcxEnterpriseSiteName = TestUtilities.GenerateName(PREFIX + "site"); + string authName = TestUtilities.GenerateName(PREFIX + "authorization"); - CreateResourceGroup(context, location, rgName); + using var rmClient = context.GetServiceClient(); + rmClient.ResourceGroups.CreateOrUpdate(rgName, new ResourceGroup { Location = location }); try { - using var testBase = new AvsTestBase(context); - var client = testBase.AvsClient; - - var quota = client.Locations.CheckQuotaAvailability(location); - var trial = client.Locations.CheckTrialAvailability(location); + using var avsClient = context.GetServiceClient(); + var quota = avsClient.Locations.CheckQuotaAvailability(location); + var trial = avsClient.Locations.CheckTrialAvailability(location); - var clouds = client.PrivateClouds.List(rgName); + var clouds = avsClient.PrivateClouds.List(rgName); Assert.True(clouds.Count() == 0); // create a private cloud - var privateCloud = client.PrivateClouds.CreateOrUpdate(rgName, cloudName, new PrivateCloud + var privateCloud = avsClient.PrivateClouds.CreateOrUpdate(rgName, cloudName, new PrivateCloud { Location = location, Sku = new Sku { Name = "av20" }, ManagementCluster = new ManagementCluster { - ClusterSize = 4, + ClusterSize = 3, }, NetworkBlock = "192.168.48.0/22" }); // HCX Enterprise Sites - var hcxPage = client.HcxEnterpriseSites.List(rgName, privateCloud.Name); + var hcxPage = avsClient.HcxEnterpriseSites.List(rgName, privateCloud.Name); Assert.True(hcxPage.Count() == 0); - var hcxSite = client.HcxEnterpriseSites.CreateOrUpdate(rgName, privateCloud.Name, hcxEnterpriseSiteName, new object()); + var hcxSite = avsClient.HcxEnterpriseSites.CreateOrUpdate(rgName, privateCloud.Name, hcxEnterpriseSiteName); - client.HcxEnterpriseSites.Get(rgName, privateCloud.Name, hcxSite.Name); + avsClient.HcxEnterpriseSites.Get(rgName, privateCloud.Name, hcxSite.Name); - hcxPage = client.HcxEnterpriseSites.List(rgName, privateCloud.Name); + hcxPage = avsClient.HcxEnterpriseSites.List(rgName, privateCloud.Name); Assert.True(hcxPage.Count() == 1); - client.HcxEnterpriseSites.Get(rgName, privateCloud.Name, hcxSite.Name); + avsClient.HcxEnterpriseSites.Get(rgName, privateCloud.Name, hcxSite.Name); - client.HcxEnterpriseSites.Delete(rgName, privateCloud.Name, hcxSite.Name); + avsClient.HcxEnterpriseSites.Delete(rgName, privateCloud.Name, hcxSite.Name); // ExpressRoute Authorizations - var authPage = client.Authorizations.List(rgName, privateCloud.Name); + var authPage = avsClient.Authorizations.List(rgName, privateCloud.Name); Assert.True(authPage.Count() == 0); - var auth = client.Authorizations.CreateOrUpdate(rgName, privateCloud.Name, authName, new object()); + var auth = avsClient.Authorizations.CreateOrUpdate(rgName, privateCloud.Name, authName); - client.Authorizations.Get(rgName, privateCloud.Name, auth.Name); + avsClient.Authorizations.Get(rgName, privateCloud.Name, auth.Name); - authPage = client.Authorizations.List(rgName, privateCloud.Name); + authPage = avsClient.Authorizations.List(rgName, privateCloud.Name); Assert.True(authPage.Count() == 1); - client.Authorizations.Delete(rgName, privateCloud.Name, auth.Name); + avsClient.Authorizations.Delete(rgName, privateCloud.Name, auth.Name); // Clusters - var clusters = client.Clusters.List(rgName, cloudName); + var clusters = avsClient.Clusters.List(rgName, cloudName); Assert.True(clusters.Count() == 0); // create a cluster - var cluster = client.Clusters.CreateOrUpdate(rgName, cloudName, clusterName, new Cluster + var cluster = avsClient.Clusters.CreateOrUpdate(rgName, cloudName, clusterName, new Cluster { Sku = new Sku { Name = "av20" }, ClusterSize = 3, }); - client.Clusters.Get(rgName, cloudName, cluster.Name); + avsClient.Clusters.Get(rgName, cloudName, cluster.Name); - clusters = client.Clusters.List(rgName, cloudName); + clusters = avsClient.Clusters.List(rgName, cloudName); Assert.True(clusters.Count() == 1); // delete a cluster - client.Clusters.Delete(rgName, cloudName, cluster.Name); + avsClient.Clusters.Delete(rgName, cloudName, cluster.Name); - clusters = client.Clusters.List(rgName, cloudName); + clusters = avsClient.Clusters.List(rgName, cloudName); Assert.True(clusters.Count() == 0); - clouds = client.PrivateClouds.List(rgName); + clouds = avsClient.PrivateClouds.List(rgName); Assert.True(clouds.Count() == 1); + // disabled in test environment because of bug 9868299 // delete a private cloud - client.PrivateClouds.Delete(rgName, cloudName); + // avsClient.PrivateClouds.Delete(rgName, cloudName); - clouds = client.PrivateClouds.List(rgName); - Assert.True(clouds.Count() == 0); + // clouds = avsClient.PrivateClouds.List(rgName); + // Assert.True(clouds.Count() == 0); } finally { - DeleteResourceGroup(context, rgName); + rmClient.ResourceGroups.Delete(rgName); } } - private ResourceGroup CreateResourceGroup(MockContext context, string location, string rgName) + [Fact] + public void PasswordResets() { - var client = context.GetServiceClient(); - return client.ResourceGroups.CreateOrUpdate( - rgName, - new ResourceGroup - { - Location = location - }); - } + using var context = MockContext.Start(this.GetType()); + string rgName = "aumarcel-eastus2-rg"; + string cloudName = "aumarcel-2021-05-06-hcx"; + + using var avsClient = context.GetServiceClient(); + avsClient.HttpClient.Timeout = System.Threading.Timeout.InfiniteTimeSpan; - private void DeleteResourceGroup(MockContext context, string rgName) - { - var client = context.GetServiceClient(); - client.ResourceGroups.Delete(rgName); + var credsA = avsClient.PrivateClouds.ListAdminCredentials(rgName, cloudName); + + var credsB = avsClient.PrivateClouds.ListAdminCredentials(rgName, cloudName); + Assert.Equal(credsA.NsxtPassword, credsB.NsxtPassword); + Assert.Equal(credsA.VcenterPassword, credsB.VcenterPassword); + + avsClient.PrivateClouds.RotateNsxtPassword(rgName, cloudName); + avsClient.PrivateClouds.RotateVcenterPassword(rgName, cloudName); + + var credsC = avsClient.PrivateClouds.ListAdminCredentials(rgName, cloudName); + Assert.NotEqual(credsA.NsxtPassword, credsC.NsxtPassword); + Assert.NotEqual(credsA.VcenterPassword, credsC.VcenterPassword); } } } \ No newline at end of file diff --git a/sdk/avs/Microsoft.Azure.Management.Avs/tests/CloudLinksTests.cs b/sdk/avs/Microsoft.Azure.Management.Avs/tests/CloudLinksTests.cs new file mode 100644 index 000000000000..8443f85f6c94 --- /dev/null +++ b/sdk/avs/Microsoft.Azure.Management.Avs/tests/CloudLinksTests.cs @@ -0,0 +1,39 @@ +// 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; + +namespace Avs.Tests +{ + public class CloudLinksTests : TestBase + { + + [Fact] + public void CloudLinksAll() + { + using var context = MockContext.Start(this.GetType()); + string rgName = "js-dev-testing"; + string cloudName = "cloudLinker"; + + using var avsClient = context.GetServiceClient(); + + + var globalReachName = "myLink"; + var globalReachConn = avsClient.CloudLinks.CreateOrUpdate(rgName, cloudName, globalReachName, + new CloudLink() + { + LinkedCloud = + "/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/mock-avs-fct-dogfood-conveyor-centralus/providers/Microsoft.AVS/privateClouds/fct-mock-centralus-45", + }); + + avsClient.CloudLinks.List(rgName, cloudName); + avsClient.CloudLinks.Get(rgName, cloudName, globalReachName); + avsClient.CloudLinks.Delete(rgName, cloudName, globalReachName); + } + } +} \ No newline at end of file diff --git a/sdk/avs/Microsoft.Azure.Management.Avs/tests/DatastoresTests.cs b/sdk/avs/Microsoft.Azure.Management.Avs/tests/DatastoresTests.cs new file mode 100644 index 000000000000..e85f43664b6b --- /dev/null +++ b/sdk/avs/Microsoft.Azure.Management.Avs/tests/DatastoresTests.cs @@ -0,0 +1,40 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. + +using Microsoft.Azure.Management.Avs; +using Microsoft.Azure.Management.Avs.Models; +using Microsoft.Azure.Management.ResourceManager; +using Microsoft.Rest.ClientRuntime.Azure.TestFramework; +using Xunit; + +namespace Avs.Tests +{ + public class DatastoresTests : TestBase + { + [Fact] + public void DatastoresAll() + { + using var context = MockContext.Start(this.GetType()); + string rgName = "mock-avs-fct-dogfood-conveyor-eastus"; + string cloudName = "fct-mock-eastus-15"; + string clusterName = "Cluster-1"; + + using var avsClient = context.GetServiceClient(); + + var datastoreName = "fct-mock-datastore-1"; + var datastore = avsClient.Datastores.CreateOrUpdate(rgName, cloudName, clusterName, datastoreName, new Datastore { + DiskPoolVolume = new DiskPoolVolume { + TargetId = "/subscriptions/11111111-1111-1111-1111-111111111111/resourceGroups/resourceGroupName/providers/Microsoft.StoragePool/diskPools/diskPoolName/iscsiTargets/targetName", + LunName = "mock-lun-name", + MountOption = "MOUNT" + } + }); + + avsClient.Datastores.List(rgName, cloudName, clusterName); + + avsClient.Datastores.Get(rgName, cloudName, clusterName, datastoreName); + + avsClient.Datastores.Delete(rgName, cloudName, clusterName, datastoreName); + } + } +} \ No newline at end of file diff --git a/sdk/avs/Microsoft.Azure.Management.Avs/tests/GlobalReachConnectionsTests.cs b/sdk/avs/Microsoft.Azure.Management.Avs/tests/GlobalReachConnectionsTests.cs new file mode 100644 index 000000000000..d0cac0be4848 --- /dev/null +++ b/sdk/avs/Microsoft.Azure.Management.Avs/tests/GlobalReachConnectionsTests.cs @@ -0,0 +1,40 @@ +// 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; + +namespace Avs.Tests +{ + public class GlobalReachConnectionsTests : TestBase + { + + [Fact] + public void GlobalReachConnectionsAll() + { + using var context = MockContext.Start(this.GetType()); + string rgName = "js-dev-testing"; + string cloudName = "cloudLinker"; + + using var avsClient = context.GetServiceClient(); + + + var globalReachName = "myConn"; + var globalReachConn = avsClient.GlobalReachConnections.CreateOrUpdate(rgName, cloudName, globalReachName, + new GlobalReachConnection + { + PeerExpressRouteCircuit = + "/subscriptions/12341234-1234-1234-1234-123412341234/resourceGroups/mygroup/providers/Microsoft.Network/expressRouteCircuits/mypeer", + AuthorizationKey = "01010101-0101-0101-0101-010101010101" + }); + + avsClient.GlobalReachConnections.List(rgName, cloudName); + avsClient.GlobalReachConnections.Get(rgName, cloudName, globalReachName); + avsClient.GlobalReachConnections.Delete(rgName, cloudName, globalReachName); + } + } +} \ No newline at end of file diff --git a/sdk/avs/Microsoft.Azure.Management.Avs/tests/ScriptingTests.cs b/sdk/avs/Microsoft.Azure.Management.Avs/tests/ScriptingTests.cs new file mode 100644 index 000000000000..70a814cd76fb --- /dev/null +++ b/sdk/avs/Microsoft.Azure.Management.Avs/tests/ScriptingTests.cs @@ -0,0 +1,73 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. + +using Microsoft.Azure.Management.Avs; +using Microsoft.Azure.Management.Avs.Models; +using Microsoft.Azure.Management.ResourceManager; +using Microsoft.Rest.ClientRuntime.Azure.TestFramework; +using Xunit; + +namespace Avs.Tests +{ + public class ScriptingTests : TestBase + { + [Fact] + public void ScriptPackagesAll() + { + using var context = MockContext.Start(this.GetType()); + string rgName = "anullian-rg"; + string cloudName = "anullian-southcentralus-runcommand"; + + using var avsClient = context.GetServiceClient(); + + var scriptPackage = "JSDR.Configuration@1.0.16"; + avsClient.ScriptPackages.List(rgName, cloudName); + + avsClient.ScriptPackages.Get(rgName, cloudName, scriptPackage); + + } + + [Fact] + public void ScriptCmdletsAll() + { + using var context = MockContext.Start(this.GetType()); + string rgName = "anullian-rg"; + string cloudName = "anullian-southcentralus-runcommand"; + + using var avsClient = context.GetServiceClient(); + + var scriptPackage = "JSDR.Configuration@1.0.16"; + var cmdletName = "invoke-preflightjetdrsystemcheck"; + avsClient.ScriptCmdlets.List(rgName, cloudName, scriptPackage); + + avsClient.ScriptCmdlets.Get(rgName, cloudName, scriptPackage, cmdletName); + + } + + [Fact] + public void ScriptExecutionsAll() + { + using var context = MockContext.Start(this.GetType()); + string rgName = "anullian-rg"; + string cloudName = "anullian-southcentralus-runcommand"; + string executionName = TestUtilities.GenerateName("scripting_execution"); + + using var avsClient = context.GetServiceClient(); + + ScriptExecution execution = avsClient.ScriptExecutions.CreateOrUpdate(rgName, cloudName, executionName, new ScriptExecution + { + Timeout = "PT1H", + ScriptCmdletId = "JSDR.Configuration/1.0.16/invoke-preflightjetdrsystemcheck" + }); + + avsClient.ScriptExecutions.Get(rgName, cloudName, executionName); + + string[] outputStream = { "Output"}; + avsClient.ScriptExecutions.GetExecutionLogs(rgName, cloudName, executionName, outputStream); + + avsClient.ScriptExecutions.List(rgName, cloudName); + + avsClient.ScriptExecutions.Delete(rgName, cloudName, executionName); + } + } +} diff --git a/sdk/avs/Microsoft.Azure.Management.Avs/tests/SessionRecords/AddonsTests/HcxAll.json b/sdk/avs/Microsoft.Azure.Management.Avs/tests/SessionRecords/AddonsTests/HcxAll.json new file mode 100644 index 000000000000..3725b5030a31 --- /dev/null +++ b/sdk/avs/Microsoft.Azure.Management.Avs/tests/SessionRecords/AddonsTests/HcxAll.json @@ -0,0 +1,2578 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourcegroups/avs-sdk-addons-rg2116?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmE3NWU3OWItZGQ5NS00MDI1LTlkYmYtM2E3YWU4ZGZmMmI1L3Jlc291cmNlZ3JvdXBzL2F2cy1zZGstYWRkb25zLXJnMjExNj9hcGktdmVyc2lvbj0yMDE3LTA1LTEw", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"location\": \"westcentralus\"\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "21981997-0e60-4099-a06c-fde3c96ddbc9" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.29916.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "35" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1198" + ], + "x-ms-request-id": [ + "b7e95ea7-a99c-4dd1-a56a-d7168611f798" + ], + "x-ms-correlation-request-id": [ + "b7e95ea7-a99c-4dd1-a56a-d7168611f798" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20210510T162533Z:b7e95ea7-a99c-4dd1-a56a-d7168611f798" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-MSEdge-Ref": [ + "Ref A: 8A2BB68F6360487F9A9FBE1E51A690C7 Ref B: PDX31EDGE0111 Ref C: 2021-05-10T16:25:33Z" + ], + "Date": [ + "Mon, 10 May 2021 16:25:32 GMT" + ], + "Content-Length": [ + "202" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-addons-rg2116\",\r\n \"name\": \"avs-sdk-addons-rg2116\",\r\n \"location\": \"westcentralus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-addons-rg2116/providers/Microsoft.AVS/privateClouds/avs-sdk-addons-cloud1876?api-version=2021-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmE3NWU3OWItZGQ5NS00MDI1LTlkYmYtM2E3YWU4ZGZmMmI1L3Jlc291cmNlR3JvdXBzL2F2cy1zZGstYWRkb25zLXJnMjExNi9wcm92aWRlcnMvTWljcm9zb2Z0LkFWUy9wcml2YXRlQ2xvdWRzL2F2cy1zZGstYWRkb25zLWNsb3VkMTg3Nj9hcGktdmVyc2lvbj0yMDIxLTA2LTAx", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"sku\": {\r\n \"name\": \"av20\"\r\n },\r\n \"properties\": {\r\n \"managementCluster\": {\r\n \"clusterSize\": 3\r\n },\r\n \"networkBlock\": \"192.168.48.0/22\"\r\n },\r\n \"location\": \"westcentralus\"\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "a42cffdb-5265-47eb-84e9-bff42f65f225" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.29916.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.Avs.AvsClient/1.0.0.1" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "197" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "10" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1197" + ], + "Azure-AsyncOperation": [ + "https://api-dogfood.resources.windows-int.net/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-addons-rg2116/providers/Microsoft.AVS/privateClouds/avs-sdk-addons-cloud1876/operationstatuses/d6132861-f915-45d4-a45b-503a2e60bf2d?api-version=2021-06-01" + ], + "x-ms-request-id": [ + "0c0459a8-fe26-4286-bcaa-7f2b520910c8" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-correlation-request-id": [ + "61eea0fb-3191-4c67-818d-8677d098029b" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20210510T162542Z:61eea0fb-3191-4c67-818d-8677d098029b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-MSEdge-Ref": [ + "Ref A: 83ECCB998A074BEAB4D5F4410CCFCB71 Ref B: PDX31EDGE0122 Ref C: 2021-05-10T16:25:33Z" + ], + "Date": [ + "Mon, 10 May 2021 16:25:41 GMT" + ], + "Content-Length": [ + "910" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-addons-rg2116/providers/Microsoft.AVS/privateClouds/avs-sdk-addons-cloud1876\",\r\n \"location\": \"westcentralus\",\r\n \"name\": \"avs-sdk-addons-cloud1876\",\r\n \"properties\": {\r\n \"endpoints\": {\r\n \"hcxCloudManager\": \"https://192.168.48.9/\",\r\n \"nsxtManager\": \"https://192.168.48.3/\",\r\n \"vcsa\": \"https://192.168.48.2/\"\r\n },\r\n \"externalCloudLinks\": [],\r\n \"identitySources\": [],\r\n \"internet\": \"Disabled\",\r\n \"managementCluster\": {\r\n \"clusterId\": 1,\r\n \"clusterSize\": 3,\r\n \"hosts\": [\r\n \"gp-fakehost29.mp01.mock01.vmcp.vs.management\",\r\n \"gp-fakehost28.mp01.mock01.vmcp.vs.management\",\r\n \"gp-fakehost27.mp01.mock01.vmcp.vs.management\"\r\n ],\r\n \"provisioningState\": \"Building\"\r\n },\r\n \"managementNetwork\": \"192.168.48.0/26\",\r\n \"networkBlock\": \"192.168.48.0/22\",\r\n \"provisioningNetwork\": \"192.168.50.0/25\",\r\n \"provisioningState\": \"Building\",\r\n \"vmotionNetwork\": \"192.168.49.128/25\"\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-addons-rg2116/providers/Microsoft.AVS/privateClouds/avs-sdk-addons-cloud1876/operationstatuses/d6132861-f915-45d4-a45b-503a2e60bf2d?api-version=2021-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmE3NWU3OWItZGQ5NS00MDI1LTlkYmYtM2E3YWU4ZGZmMmI1L3Jlc291cmNlR3JvdXBzL2F2cy1zZGstYWRkb25zLXJnMjExNi9wcm92aWRlcnMvTWljcm9zb2Z0LkFWUy9wcml2YXRlQ2xvdWRzL2F2cy1zZGstYWRkb25zLWNsb3VkMTg3Ni9vcGVyYXRpb25zdGF0dXNlcy9kNjEzMjg2MS1mOTE1LTQ1ZDQtYTQ1Yi01MDNhMmU2MGJmMmQ/YXBpLXZlcnNpb249MjAyMS0wNi0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.29916.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.Avs.AvsClient/1.0.0.1" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "10" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14997" + ], + "x-ms-request-id": [ + "171752ea-db75-421d-8c98-57214469c98e" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-correlation-request-id": [ + "0b000834-022a-4369-9115-88011507e0eb" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20210510T162552Z:0b000834-022a-4369-9115-88011507e0eb" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-MSEdge-Ref": [ + "Ref A: 8225DC9D762A4A08B50F006ACC5DB1C0 Ref B: PDX31EDGE0122 Ref C: 2021-05-10T16:25:52Z" + ], + "Date": [ + "Mon, 10 May 2021 16:25:52 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-addons-rg2116/providers/Microsoft.AVS/privateClouds/avs-sdk-addons-cloud1876/operationstatuses/d6132861-f915-45d4-a45b-503a2e60bf2d\",\r\n \"name\": \"d6132861-f915-45d4-a45b-503a2e60bf2d\",\r\n \"percentComplete\": 0,\r\n \"startTime\": \"2021-05-10T09:25:34.3504085-07:00\",\r\n \"status\": \"Building\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-addons-rg2116/providers/Microsoft.AVS/privateClouds/avs-sdk-addons-cloud1876/operationstatuses/d6132861-f915-45d4-a45b-503a2e60bf2d?api-version=2021-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmE3NWU3OWItZGQ5NS00MDI1LTlkYmYtM2E3YWU4ZGZmMmI1L3Jlc291cmNlR3JvdXBzL2F2cy1zZGstYWRkb25zLXJnMjExNi9wcm92aWRlcnMvTWljcm9zb2Z0LkFWUy9wcml2YXRlQ2xvdWRzL2F2cy1zZGstYWRkb25zLWNsb3VkMTg3Ni9vcGVyYXRpb25zdGF0dXNlcy9kNjEzMjg2MS1mOTE1LTQ1ZDQtYTQ1Yi01MDNhMmU2MGJmMmQ/YXBpLXZlcnNpb249MjAyMS0wNi0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.29916.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.Avs.AvsClient/1.0.0.1" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "10" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14996" + ], + "x-ms-request-id": [ + "82a26b4a-93e8-481c-aefc-05064d5d13ce" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-correlation-request-id": [ + "a9136187-fa29-4000-9920-d28971cb6e9a" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20210510T162602Z:a9136187-fa29-4000-9920-d28971cb6e9a" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-MSEdge-Ref": [ + "Ref A: CEB7254310834C9FA345B98E54D33140 Ref B: PDX31EDGE0122 Ref C: 2021-05-10T16:26:02Z" + ], + "Date": [ + "Mon, 10 May 2021 16:26:02 GMT" + ], + "Content-Length": [ + "353" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-addons-rg2116/providers/Microsoft.AVS/privateClouds/avs-sdk-addons-cloud1876/operationstatuses/d6132861-f915-45d4-a45b-503a2e60bf2d\",\r\n \"name\": \"d6132861-f915-45d4-a45b-503a2e60bf2d\",\r\n \"percentComplete\": 88.75,\r\n \"startTime\": \"2021-05-10T09:25:34.3504085-07:00\",\r\n \"status\": \"Building\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-addons-rg2116/providers/Microsoft.AVS/privateClouds/avs-sdk-addons-cloud1876/operationstatuses/d6132861-f915-45d4-a45b-503a2e60bf2d?api-version=2021-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmE3NWU3OWItZGQ5NS00MDI1LTlkYmYtM2E3YWU4ZGZmMmI1L3Jlc291cmNlR3JvdXBzL2F2cy1zZGstYWRkb25zLXJnMjExNi9wcm92aWRlcnMvTWljcm9zb2Z0LkFWUy9wcml2YXRlQ2xvdWRzL2F2cy1zZGstYWRkb25zLWNsb3VkMTg3Ni9vcGVyYXRpb25zdGF0dXNlcy9kNjEzMjg2MS1mOTE1LTQ1ZDQtYTQ1Yi01MDNhMmU2MGJmMmQ/YXBpLXZlcnNpb249MjAyMS0wNi0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.29916.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.Avs.AvsClient/1.0.0.1" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "10" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14995" + ], + "x-ms-request-id": [ + "6a6dc588-bd40-4a0f-9dfe-854a4ac63e4f" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-correlation-request-id": [ + "966f9e8c-9994-4b45-8ed3-25a98c21973f" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20210510T162613Z:966f9e8c-9994-4b45-8ed3-25a98c21973f" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-MSEdge-Ref": [ + "Ref A: 469CAD5D12E04F7493FD8C9B7FCA4F4B Ref B: PDX31EDGE0122 Ref C: 2021-05-10T16:26:12Z" + ], + "Date": [ + "Mon, 10 May 2021 16:26:12 GMT" + ], + "Content-Length": [ + "353" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-addons-rg2116/providers/Microsoft.AVS/privateClouds/avs-sdk-addons-cloud1876/operationstatuses/d6132861-f915-45d4-a45b-503a2e60bf2d\",\r\n \"name\": \"d6132861-f915-45d4-a45b-503a2e60bf2d\",\r\n \"percentComplete\": 88.75,\r\n \"startTime\": \"2021-05-10T09:25:34.3504085-07:00\",\r\n \"status\": \"Building\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-addons-rg2116/providers/Microsoft.AVS/privateClouds/avs-sdk-addons-cloud1876/operationstatuses/d6132861-f915-45d4-a45b-503a2e60bf2d?api-version=2021-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmE3NWU3OWItZGQ5NS00MDI1LTlkYmYtM2E3YWU4ZGZmMmI1L3Jlc291cmNlR3JvdXBzL2F2cy1zZGstYWRkb25zLXJnMjExNi9wcm92aWRlcnMvTWljcm9zb2Z0LkFWUy9wcml2YXRlQ2xvdWRzL2F2cy1zZGstYWRkb25zLWNsb3VkMTg3Ni9vcGVyYXRpb25zdGF0dXNlcy9kNjEzMjg2MS1mOTE1LTQ1ZDQtYTQ1Yi01MDNhMmU2MGJmMmQ/YXBpLXZlcnNpb249MjAyMS0wNi0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.29916.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.Avs.AvsClient/1.0.0.1" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "10" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14994" + ], + "x-ms-request-id": [ + "63e8e53c-caa0-4e68-956a-31e3a2752e24" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-correlation-request-id": [ + "badc7d02-4e6f-4c4d-a279-2620a7fa97be" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20210510T162623Z:badc7d02-4e6f-4c4d-a279-2620a7fa97be" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-MSEdge-Ref": [ + "Ref A: 5A1487119E5646D6B291A4A256BD88AB Ref B: PDX31EDGE0122 Ref C: 2021-05-10T16:26:23Z" + ], + "Date": [ + "Mon, 10 May 2021 16:26:23 GMT" + ], + "Content-Length": [ + "351" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-addons-rg2116/providers/Microsoft.AVS/privateClouds/avs-sdk-addons-cloud1876/operationstatuses/d6132861-f915-45d4-a45b-503a2e60bf2d\",\r\n \"name\": \"d6132861-f915-45d4-a45b-503a2e60bf2d\",\r\n \"percentComplete\": 100,\r\n \"startTime\": \"2021-05-10T09:25:34.3504085-07:00\",\r\n \"status\": \"Building\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-addons-rg2116/providers/Microsoft.AVS/privateClouds/avs-sdk-addons-cloud1876/operationstatuses/d6132861-f915-45d4-a45b-503a2e60bf2d?api-version=2021-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmE3NWU3OWItZGQ5NS00MDI1LTlkYmYtM2E3YWU4ZGZmMmI1L3Jlc291cmNlR3JvdXBzL2F2cy1zZGstYWRkb25zLXJnMjExNi9wcm92aWRlcnMvTWljcm9zb2Z0LkFWUy9wcml2YXRlQ2xvdWRzL2F2cy1zZGstYWRkb25zLWNsb3VkMTg3Ni9vcGVyYXRpb25zdGF0dXNlcy9kNjEzMjg2MS1mOTE1LTQ1ZDQtYTQ1Yi01MDNhMmU2MGJmMmQ/YXBpLXZlcnNpb249MjAyMS0wNi0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.29916.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.Avs.AvsClient/1.0.0.1" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "10" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14993" + ], + "x-ms-request-id": [ + "861be47d-a258-4298-82d1-e0f42733f382" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-correlation-request-id": [ + "5f9cc52d-36ea-401b-8914-01de0a7c665b" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20210510T162633Z:5f9cc52d-36ea-401b-8914-01de0a7c665b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-MSEdge-Ref": [ + "Ref A: 895CAB7A35054510B5841C5F186C89A0 Ref B: PDX31EDGE0122 Ref C: 2021-05-10T16:26:33Z" + ], + "Date": [ + "Mon, 10 May 2021 16:26:33 GMT" + ], + "Content-Length": [ + "351" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-addons-rg2116/providers/Microsoft.AVS/privateClouds/avs-sdk-addons-cloud1876/operationstatuses/d6132861-f915-45d4-a45b-503a2e60bf2d\",\r\n \"name\": \"d6132861-f915-45d4-a45b-503a2e60bf2d\",\r\n \"percentComplete\": 100,\r\n \"startTime\": \"2021-05-10T09:25:34.3504085-07:00\",\r\n \"status\": \"Building\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-addons-rg2116/providers/Microsoft.AVS/privateClouds/avs-sdk-addons-cloud1876/operationstatuses/d6132861-f915-45d4-a45b-503a2e60bf2d?api-version=2021-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmE3NWU3OWItZGQ5NS00MDI1LTlkYmYtM2E3YWU4ZGZmMmI1L3Jlc291cmNlR3JvdXBzL2F2cy1zZGstYWRkb25zLXJnMjExNi9wcm92aWRlcnMvTWljcm9zb2Z0LkFWUy9wcml2YXRlQ2xvdWRzL2F2cy1zZGstYWRkb25zLWNsb3VkMTg3Ni9vcGVyYXRpb25zdGF0dXNlcy9kNjEzMjg2MS1mOTE1LTQ1ZDQtYTQ1Yi01MDNhMmU2MGJmMmQ/YXBpLXZlcnNpb249MjAyMS0wNi0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.29916.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.Avs.AvsClient/1.0.0.1" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "10" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14992" + ], + "x-ms-request-id": [ + "47feb961-ce70-42eb-a164-f425354291fa" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-correlation-request-id": [ + "a31e8534-3086-4227-bf7b-43c09737579d" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20210510T162643Z:a31e8534-3086-4227-bf7b-43c09737579d" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-MSEdge-Ref": [ + "Ref A: 00A5D74CD1354BB3BF65460B38E69B13 Ref B: PDX31EDGE0122 Ref C: 2021-05-10T16:26:43Z" + ], + "Date": [ + "Mon, 10 May 2021 16:26:43 GMT" + ], + "Content-Length": [ + "351" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-addons-rg2116/providers/Microsoft.AVS/privateClouds/avs-sdk-addons-cloud1876/operationstatuses/d6132861-f915-45d4-a45b-503a2e60bf2d\",\r\n \"name\": \"d6132861-f915-45d4-a45b-503a2e60bf2d\",\r\n \"percentComplete\": 100,\r\n \"startTime\": \"2021-05-10T09:25:34.3504085-07:00\",\r\n \"status\": \"Building\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-addons-rg2116/providers/Microsoft.AVS/privateClouds/avs-sdk-addons-cloud1876/operationstatuses/d6132861-f915-45d4-a45b-503a2e60bf2d?api-version=2021-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmE3NWU3OWItZGQ5NS00MDI1LTlkYmYtM2E3YWU4ZGZmMmI1L3Jlc291cmNlR3JvdXBzL2F2cy1zZGstYWRkb25zLXJnMjExNi9wcm92aWRlcnMvTWljcm9zb2Z0LkFWUy9wcml2YXRlQ2xvdWRzL2F2cy1zZGstYWRkb25zLWNsb3VkMTg3Ni9vcGVyYXRpb25zdGF0dXNlcy9kNjEzMjg2MS1mOTE1LTQ1ZDQtYTQ1Yi01MDNhMmU2MGJmMmQ/YXBpLXZlcnNpb249MjAyMS0wNi0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.29916.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.Avs.AvsClient/1.0.0.1" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "10" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14991" + ], + "x-ms-request-id": [ + "cf2c3f6d-eccd-4691-977c-96c3dcfdc308" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-correlation-request-id": [ + "c97ca833-0a6d-4519-b037-de91d736e0b3" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20210510T162654Z:c97ca833-0a6d-4519-b037-de91d736e0b3" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-MSEdge-Ref": [ + "Ref A: BA1F972D56484FB287960AFEBDED5685 Ref B: PDX31EDGE0122 Ref C: 2021-05-10T16:26:53Z" + ], + "Date": [ + "Mon, 10 May 2021 16:26:53 GMT" + ], + "Content-Length": [ + "351" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-addons-rg2116/providers/Microsoft.AVS/privateClouds/avs-sdk-addons-cloud1876/operationstatuses/d6132861-f915-45d4-a45b-503a2e60bf2d\",\r\n \"name\": \"d6132861-f915-45d4-a45b-503a2e60bf2d\",\r\n \"percentComplete\": 100,\r\n \"startTime\": \"2021-05-10T09:25:34.3504085-07:00\",\r\n \"status\": \"Building\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-addons-rg2116/providers/Microsoft.AVS/privateClouds/avs-sdk-addons-cloud1876/operationstatuses/d6132861-f915-45d4-a45b-503a2e60bf2d?api-version=2021-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmE3NWU3OWItZGQ5NS00MDI1LTlkYmYtM2E3YWU4ZGZmMmI1L3Jlc291cmNlR3JvdXBzL2F2cy1zZGstYWRkb25zLXJnMjExNi9wcm92aWRlcnMvTWljcm9zb2Z0LkFWUy9wcml2YXRlQ2xvdWRzL2F2cy1zZGstYWRkb25zLWNsb3VkMTg3Ni9vcGVyYXRpb25zdGF0dXNlcy9kNjEzMjg2MS1mOTE1LTQ1ZDQtYTQ1Yi01MDNhMmU2MGJmMmQ/YXBpLXZlcnNpb249MjAyMS0wNi0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.29916.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.Avs.AvsClient/1.0.0.1" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "10" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14990" + ], + "x-ms-request-id": [ + "35b23e9e-06d0-4cbc-9362-454efbffa702" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-correlation-request-id": [ + "c0ee23ec-bc05-4f07-bea1-27dc5735bff1" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20210510T162704Z:c0ee23ec-bc05-4f07-bea1-27dc5735bff1" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-MSEdge-Ref": [ + "Ref A: DEB1385BCCF54672B766B75B285A954F Ref B: PDX31EDGE0122 Ref C: 2021-05-10T16:27:04Z" + ], + "Date": [ + "Mon, 10 May 2021 16:27:04 GMT" + ], + "Content-Length": [ + "351" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-addons-rg2116/providers/Microsoft.AVS/privateClouds/avs-sdk-addons-cloud1876/operationstatuses/d6132861-f915-45d4-a45b-503a2e60bf2d\",\r\n \"name\": \"d6132861-f915-45d4-a45b-503a2e60bf2d\",\r\n \"percentComplete\": 100,\r\n \"startTime\": \"2021-05-10T09:25:34.3504085-07:00\",\r\n \"status\": \"Building\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-addons-rg2116/providers/Microsoft.AVS/privateClouds/avs-sdk-addons-cloud1876/operationstatuses/d6132861-f915-45d4-a45b-503a2e60bf2d?api-version=2021-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmE3NWU3OWItZGQ5NS00MDI1LTlkYmYtM2E3YWU4ZGZmMmI1L3Jlc291cmNlR3JvdXBzL2F2cy1zZGstYWRkb25zLXJnMjExNi9wcm92aWRlcnMvTWljcm9zb2Z0LkFWUy9wcml2YXRlQ2xvdWRzL2F2cy1zZGstYWRkb25zLWNsb3VkMTg3Ni9vcGVyYXRpb25zdGF0dXNlcy9kNjEzMjg2MS1mOTE1LTQ1ZDQtYTQ1Yi01MDNhMmU2MGJmMmQ/YXBpLXZlcnNpb249MjAyMS0wNi0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.29916.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.Avs.AvsClient/1.0.0.1" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "10" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14989" + ], + "x-ms-request-id": [ + "1bcdc156-6f8e-4b43-8c0d-f7ac4e3bfcf5" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-correlation-request-id": [ + "02fb748d-c338-4c39-a16e-e554bbd210c6" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20210510T162714Z:02fb748d-c338-4c39-a16e-e554bbd210c6" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-MSEdge-Ref": [ + "Ref A: 53EBB815C8CF469EAA29388EA8C6F6E8 Ref B: PDX31EDGE0122 Ref C: 2021-05-10T16:27:14Z" + ], + "Date": [ + "Mon, 10 May 2021 16:27:14 GMT" + ], + "Content-Length": [ + "351" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-addons-rg2116/providers/Microsoft.AVS/privateClouds/avs-sdk-addons-cloud1876/operationstatuses/d6132861-f915-45d4-a45b-503a2e60bf2d\",\r\n \"name\": \"d6132861-f915-45d4-a45b-503a2e60bf2d\",\r\n \"percentComplete\": 100,\r\n \"startTime\": \"2021-05-10T09:25:34.3504085-07:00\",\r\n \"status\": \"Building\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-addons-rg2116/providers/Microsoft.AVS/privateClouds/avs-sdk-addons-cloud1876/operationstatuses/d6132861-f915-45d4-a45b-503a2e60bf2d?api-version=2021-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmE3NWU3OWItZGQ5NS00MDI1LTlkYmYtM2E3YWU4ZGZmMmI1L3Jlc291cmNlR3JvdXBzL2F2cy1zZGstYWRkb25zLXJnMjExNi9wcm92aWRlcnMvTWljcm9zb2Z0LkFWUy9wcml2YXRlQ2xvdWRzL2F2cy1zZGstYWRkb25zLWNsb3VkMTg3Ni9vcGVyYXRpb25zdGF0dXNlcy9kNjEzMjg2MS1mOTE1LTQ1ZDQtYTQ1Yi01MDNhMmU2MGJmMmQ/YXBpLXZlcnNpb249MjAyMS0wNi0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.29916.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.Avs.AvsClient/1.0.0.1" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "10" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14988" + ], + "x-ms-request-id": [ + "cb0a1e60-cfcc-4d4e-b2c6-3ba7fafd7407" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-correlation-request-id": [ + "f4bc5c37-0662-4277-a6a8-b468e134f62a" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20210510T162724Z:f4bc5c37-0662-4277-a6a8-b468e134f62a" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-MSEdge-Ref": [ + "Ref A: CD006D75935F43698B29611D97C02DCD Ref B: PDX31EDGE0122 Ref C: 2021-05-10T16:27:24Z" + ], + "Date": [ + "Mon, 10 May 2021 16:27:24 GMT" + ], + "Content-Length": [ + "351" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-addons-rg2116/providers/Microsoft.AVS/privateClouds/avs-sdk-addons-cloud1876/operationstatuses/d6132861-f915-45d4-a45b-503a2e60bf2d\",\r\n \"name\": \"d6132861-f915-45d4-a45b-503a2e60bf2d\",\r\n \"percentComplete\": 100,\r\n \"startTime\": \"2021-05-10T09:25:34.3504085-07:00\",\r\n \"status\": \"Building\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-addons-rg2116/providers/Microsoft.AVS/privateClouds/avs-sdk-addons-cloud1876/operationstatuses/d6132861-f915-45d4-a45b-503a2e60bf2d?api-version=2021-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmE3NWU3OWItZGQ5NS00MDI1LTlkYmYtM2E3YWU4ZGZmMmI1L3Jlc291cmNlR3JvdXBzL2F2cy1zZGstYWRkb25zLXJnMjExNi9wcm92aWRlcnMvTWljcm9zb2Z0LkFWUy9wcml2YXRlQ2xvdWRzL2F2cy1zZGstYWRkb25zLWNsb3VkMTg3Ni9vcGVyYXRpb25zdGF0dXNlcy9kNjEzMjg2MS1mOTE1LTQ1ZDQtYTQ1Yi01MDNhMmU2MGJmMmQ/YXBpLXZlcnNpb249MjAyMS0wNi0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.29916.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.Avs.AvsClient/1.0.0.1" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "10" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14987" + ], + "x-ms-request-id": [ + "868b25f3-20cb-42dc-b6da-c9b10ee13981" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-correlation-request-id": [ + "74c39da4-f195-4f6f-91ef-1efa1b6a265d" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20210510T162735Z:74c39da4-f195-4f6f-91ef-1efa1b6a265d" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-MSEdge-Ref": [ + "Ref A: 085938C4DAF74E51BFBDC86A91F3C7C9 Ref B: PDX31EDGE0122 Ref C: 2021-05-10T16:27:35Z" + ], + "Date": [ + "Mon, 10 May 2021 16:27:34 GMT" + ], + "Content-Length": [ + "351" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-addons-rg2116/providers/Microsoft.AVS/privateClouds/avs-sdk-addons-cloud1876/operationstatuses/d6132861-f915-45d4-a45b-503a2e60bf2d\",\r\n \"name\": \"d6132861-f915-45d4-a45b-503a2e60bf2d\",\r\n \"percentComplete\": 100,\r\n \"startTime\": \"2021-05-10T09:25:34.3504085-07:00\",\r\n \"status\": \"Building\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-addons-rg2116/providers/Microsoft.AVS/privateClouds/avs-sdk-addons-cloud1876/operationstatuses/d6132861-f915-45d4-a45b-503a2e60bf2d?api-version=2021-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmE3NWU3OWItZGQ5NS00MDI1LTlkYmYtM2E3YWU4ZGZmMmI1L3Jlc291cmNlR3JvdXBzL2F2cy1zZGstYWRkb25zLXJnMjExNi9wcm92aWRlcnMvTWljcm9zb2Z0LkFWUy9wcml2YXRlQ2xvdWRzL2F2cy1zZGstYWRkb25zLWNsb3VkMTg3Ni9vcGVyYXRpb25zdGF0dXNlcy9kNjEzMjg2MS1mOTE1LTQ1ZDQtYTQ1Yi01MDNhMmU2MGJmMmQ/YXBpLXZlcnNpb249MjAyMS0wNi0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.29916.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.Avs.AvsClient/1.0.0.1" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "10" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14986" + ], + "x-ms-request-id": [ + "ce741286-726d-4fd2-8c4e-c1540064007e" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-correlation-request-id": [ + "c9245fbf-509a-4154-afa8-e7fff27c8d35" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20210510T162745Z:c9245fbf-509a-4154-afa8-e7fff27c8d35" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-MSEdge-Ref": [ + "Ref A: 3D3755CCDF114F149DEFDAE5ADDF7C16 Ref B: PDX31EDGE0122 Ref C: 2021-05-10T16:27:45Z" + ], + "Date": [ + "Mon, 10 May 2021 16:27:44 GMT" + ], + "Content-Length": [ + "1966" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"endTime\": \"2021-05-10T09:27:34.3271332-07:00\",\r\n \"id\": \"/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-addons-rg2116/providers/Microsoft.AVS/privateClouds/avs-sdk-addons-cloud1876/operationstatuses/d6132861-f915-45d4-a45b-503a2e60bf2d\",\r\n \"name\": \"d6132861-f915-45d4-a45b-503a2e60bf2d\",\r\n \"percentComplete\": 100,\r\n \"properties\": {\r\n \"id\": \"/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-addons-rg2116/providers/Microsoft.AVS/privateClouds/avs-sdk-addons-cloud1876\",\r\n \"location\": \"westcentralus\",\r\n \"name\": \"avs-sdk-addons-cloud1876\",\r\n \"properties\": {\r\n \"circuit\": {\r\n \"expressRouteID\": \"/subscriptions/7f1fae41-7708-4fa4-89b3-f6552cad2fc1/resourceGroups/tnt50-cust-mp01-mock01/providers/Microsoft.Network/expressRouteCircuits/tnt50-cust-mp01-mock01-er\",\r\n \"expressRoutePrivatePeeringID\": \"/subscriptions/7f1fae41-7708-4fa4-89b3-f6552cad2fc1/resourceGroups/tnt50-cust-mp01-mock01/providers/Microsoft.Network/expressRouteCircuits/tnt50-cust-mp01-mock01-er/peerings/AzurePrivatePeering\",\r\n \"primarySubnet\": \"192.168.48.232/30\",\r\n \"secondarySubnet\": \"192.168.48.236/30\"\r\n },\r\n \"endpoints\": {\r\n \"hcxCloudManager\": \"https://192.168.48.9/\",\r\n \"nsxtManager\": \"https://192.168.48.3/\",\r\n \"vcsa\": \"https://192.168.48.2/\"\r\n },\r\n \"externalCloudLinks\": [],\r\n \"identitySources\": [],\r\n \"internet\": \"Disabled\",\r\n \"managementCluster\": {\r\n \"clusterId\": 1,\r\n \"clusterSize\": 3,\r\n \"hosts\": [\r\n \"gp-fakehost29.mp01.mock01.vmcp.vs.management\",\r\n \"gp-fakehost28.mp01.mock01.vmcp.vs.management\",\r\n \"gp-fakehost27.mp01.mock01.vmcp.vs.management\"\r\n ],\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"managementNetwork\": \"192.168.48.0/26\",\r\n \"networkBlock\": \"192.168.48.0/22\",\r\n \"nsxtCertificateThumbprint\": \"B9A9474616752565A3FAF23E0A013ECE3DC8B8FF\",\r\n \"provisioningNetwork\": \"192.168.50.0/25\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"vcenterCertificateThumbprint\": \"BE8EA855AA13D9662A115571636B9B1925C6DB68\",\r\n \"vmotionNetwork\": \"192.168.49.128/25\"\r\n },\r\n \"sku\": {\r\n \"name\": \"av20\"\r\n },\r\n \"tags\": {},\r\n \"type\": \"Microsoft.AVS/privateClouds\"\r\n },\r\n \"startTime\": \"2021-05-10T09:25:34.3504085-07:00\",\r\n \"status\": \"Succeeded\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-addons-rg2116/providers/Microsoft.AVS/privateClouds/avs-sdk-addons-cloud1876?api-version=2021-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmE3NWU3OWItZGQ5NS00MDI1LTlkYmYtM2E3YWU4ZGZmMmI1L3Jlc291cmNlR3JvdXBzL2F2cy1zZGstYWRkb25zLXJnMjExNi9wcm92aWRlcnMvTWljcm9zb2Z0LkFWUy9wcml2YXRlQ2xvdWRzL2F2cy1zZGstYWRkb25zLWNsb3VkMTg3Nj9hcGktdmVyc2lvbj0yMDIxLTA2LTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.29916.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.Avs.AvsClient/1.0.0.1" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14985" + ], + "x-ms-request-id": [ + "c15d510b-3b50-441c-ac16-72905be5ada2" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-correlation-request-id": [ + "161f13ce-a057-4ef4-9f22-3772daf33ae7" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20210510T162745Z:161f13ce-a057-4ef4-9f22-3772daf33ae7" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-MSEdge-Ref": [ + "Ref A: 272A5160A5FF4781909FB94E8D6195A5 Ref B: PDX31EDGE0122 Ref C: 2021-05-10T16:27:45Z" + ], + "Date": [ + "Mon, 10 May 2021 16:27:45 GMT" + ], + "Content-Length": [ + "1554" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-addons-rg2116/providers/Microsoft.AVS/privateClouds/avs-sdk-addons-cloud1876\",\r\n \"location\": \"westcentralus\",\r\n \"name\": \"avs-sdk-addons-cloud1876\",\r\n \"properties\": {\r\n \"circuit\": {\r\n \"expressRouteID\": \"/subscriptions/7f1fae41-7708-4fa4-89b3-f6552cad2fc1/resourceGroups/tnt50-cust-mp01-mock01/providers/Microsoft.Network/expressRouteCircuits/tnt50-cust-mp01-mock01-er\",\r\n \"expressRoutePrivatePeeringID\": \"/subscriptions/7f1fae41-7708-4fa4-89b3-f6552cad2fc1/resourceGroups/tnt50-cust-mp01-mock01/providers/Microsoft.Network/expressRouteCircuits/tnt50-cust-mp01-mock01-er/peerings/AzurePrivatePeering\",\r\n \"primarySubnet\": \"192.168.48.232/30\",\r\n \"secondarySubnet\": \"192.168.48.236/30\"\r\n },\r\n \"endpoints\": {\r\n \"hcxCloudManager\": \"https://192.168.48.9/\",\r\n \"nsxtManager\": \"https://192.168.48.3/\",\r\n \"vcsa\": \"https://192.168.48.2/\"\r\n },\r\n \"externalCloudLinks\": [],\r\n \"identitySources\": [],\r\n \"internet\": \"Disabled\",\r\n \"managementCluster\": {\r\n \"clusterId\": 1,\r\n \"clusterSize\": 3,\r\n \"hosts\": [\r\n \"gp-fakehost29.mp01.mock01.vmcp.vs.management\",\r\n \"gp-fakehost28.mp01.mock01.vmcp.vs.management\",\r\n \"gp-fakehost27.mp01.mock01.vmcp.vs.management\"\r\n ],\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"managementNetwork\": \"192.168.48.0/26\",\r\n \"networkBlock\": \"192.168.48.0/22\",\r\n \"nsxtCertificateThumbprint\": \"B9A9474616752565A3FAF23E0A013ECE3DC8B8FF\",\r\n \"provisioningNetwork\": \"192.168.50.0/25\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"vcenterCertificateThumbprint\": \"BE8EA855AA13D9662A115571636B9B1925C6DB68\",\r\n \"vmotionNetwork\": \"192.168.49.128/25\"\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-addons-rg2116/providers/Microsoft.AVS/privateClouds/avs-sdk-addons-cloud1876/addons?api-version=2021-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmE3NWU3OWItZGQ5NS00MDI1LTlkYmYtM2E3YWU4ZGZmMmI1L3Jlc291cmNlR3JvdXBzL2F2cy1zZGstYWRkb25zLXJnMjExNi9wcm92aWRlcnMvTWljcm9zb2Z0LkFWUy9wcml2YXRlQ2xvdWRzL2F2cy1zZGstYWRkb25zLWNsb3VkMTg3Ni9hZGRvbnM/YXBpLXZlcnNpb249MjAyMS0wNi0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "8ee7d757-c9ca-4c26-a7fd-c84507430632" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.29916.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.Avs.AvsClient/1.0.0.1" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14984" + ], + "x-ms-request-id": [ + "ff65c576-29cc-4994-b738-1b6737cc27ac" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-correlation-request-id": [ + "7713d745-8807-4550-b251-e20c05b3535c" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20210510T162745Z:7713d745-8807-4550-b251-e20c05b3535c" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-MSEdge-Ref": [ + "Ref A: 3E7149213A804F16B116D2FB51659680 Ref B: PDX31EDGE0122 Ref C: 2021-05-10T16:27:45Z" + ], + "Date": [ + "Mon, 10 May 2021 16:27:45 GMT" + ], + "Content-Length": [ + "12" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"value\": []\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-addons-rg2116/providers/Microsoft.AVS/privateClouds/avs-sdk-addons-cloud1876/addons?api-version=2021-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmE3NWU3OWItZGQ5NS00MDI1LTlkYmYtM2E3YWU4ZGZmMmI1L3Jlc291cmNlR3JvdXBzL2F2cy1zZGstYWRkb25zLXJnMjExNi9wcm92aWRlcnMvTWljcm9zb2Z0LkFWUy9wcml2YXRlQ2xvdWRzL2F2cy1zZGstYWRkb25zLWNsb3VkMTg3Ni9hZGRvbnM/YXBpLXZlcnNpb249MjAyMS0wNi0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "168ac216-2b4b-4324-9491-75cc5dcf0b9a" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.29916.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.Avs.AvsClient/1.0.0.1" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14978" + ], + "x-ms-request-id": [ + "0b9e1887-3f8d-4b31-8d83-28f3f642e6d9" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-correlation-request-id": [ + "53c82448-0780-46a5-b359-97f47f1d0927" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20210510T162828Z:53c82448-0780-46a5-b359-97f47f1d0927" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-MSEdge-Ref": [ + "Ref A: 450DD0DF1C034F76933AD618299F2775 Ref B: PDX31EDGE0122 Ref C: 2021-05-10T16:28:28Z" + ], + "Date": [ + "Mon, 10 May 2021 16:28:28 GMT" + ], + "Content-Length": [ + "355" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-addons-rg2116/providers/Microsoft.AVS/privateClouds/avs-sdk-addons-cloud1876/addons/hcx\",\r\n \"name\": \"hcx\",\r\n \"properties\": {\r\n \"addonType\": \"HCX\",\r\n \"offer\": \"VMware MaaS Cloud Provider (Enterprise)\",\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"type\": \"Microsoft.AVS/privateClouds/addons\"\r\n }\r\n ]\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-addons-rg2116/providers/Microsoft.AVS/privateClouds/avs-sdk-addons-cloud1876/addons/hcx?api-version=2021-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmE3NWU3OWItZGQ5NS00MDI1LTlkYmYtM2E3YWU4ZGZmMmI1L3Jlc291cmNlR3JvdXBzL2F2cy1zZGstYWRkb25zLXJnMjExNi9wcm92aWRlcnMvTWljcm9zb2Z0LkFWUy9wcml2YXRlQ2xvdWRzL2F2cy1zZGstYWRkb25zLWNsb3VkMTg3Ni9hZGRvbnMvaGN4P2FwaS12ZXJzaW9uPTIwMjEtMDYtMDE=", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"addonType\": \"HCX\",\r\n \"offer\": \"VMware MaaS Cloud Provider (Enterprise)\"\r\n }\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "c733e513-2bcb-4879-baeb-352dce300367" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.29916.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.Avs.AvsClient/1.0.0.1" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "109" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "10" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1196" + ], + "Azure-AsyncOperation": [ + "https://api-dogfood.resources.windows-int.net/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-addons-rg2116/providers/Microsoft.AVS/privateClouds/avs-sdk-addons-cloud1876/addons/hcx/operationstatuses/8cfbe097-1a98-4680-9a51-d60d68304360?api-version=2021-06-01" + ], + "x-ms-request-id": [ + "8917516f-1b07-4482-85c2-3d3dcf884615" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-correlation-request-id": [ + "a42b6038-b029-44ea-a7f3-32d8bdcefe7f" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20210510T162747Z:a42b6038-b029-44ea-a7f3-32d8bdcefe7f" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-MSEdge-Ref": [ + "Ref A: FDEB7C6BD7A845A8AB50C7B2352994C4 Ref B: PDX31EDGE0122 Ref C: 2021-05-10T16:27:45Z" + ], + "Date": [ + "Mon, 10 May 2021 16:27:47 GMT" + ], + "Content-Length": [ + "342" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-addons-rg2116/providers/Microsoft.AVS/privateClouds/avs-sdk-addons-cloud1876/addons/hcx\",\r\n \"name\": \"hcx\",\r\n \"properties\": {\r\n \"addonType\": \"HCX\",\r\n \"offer\": \"VMware MaaS Cloud Provider (Enterprise)\",\r\n \"provisioningState\": \"Building\"\r\n },\r\n \"type\": \"Microsoft.AVS/privateClouds/addons\"\r\n}", + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-addons-rg2116/providers/Microsoft.AVS/privateClouds/avs-sdk-addons-cloud1876/addons/hcx/operationstatuses/8cfbe097-1a98-4680-9a51-d60d68304360?api-version=2021-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmE3NWU3OWItZGQ5NS00MDI1LTlkYmYtM2E3YWU4ZGZmMmI1L3Jlc291cmNlR3JvdXBzL2F2cy1zZGstYWRkb25zLXJnMjExNi9wcm92aWRlcnMvTWljcm9zb2Z0LkFWUy9wcml2YXRlQ2xvdWRzL2F2cy1zZGstYWRkb25zLWNsb3VkMTg3Ni9hZGRvbnMvaGN4L29wZXJhdGlvbnN0YXR1c2VzLzhjZmJlMDk3LTFhOTgtNDY4MC05YTUxLWQ2MGQ2ODMwNDM2MD9hcGktdmVyc2lvbj0yMDIxLTA2LTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.29916.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.Avs.AvsClient/1.0.0.1" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "10" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14983" + ], + "x-ms-request-id": [ + "03e6ff2b-7893-432b-99c8-0af67d1dd98c" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-correlation-request-id": [ + "fc75691d-3a2a-4be3-88f0-cb13ff42a650" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20210510T162757Z:fc75691d-3a2a-4be3-88f0-cb13ff42a650" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-MSEdge-Ref": [ + "Ref A: 6365D32C9A794EFAB6788734A28161E5 Ref B: PDX31EDGE0122 Ref C: 2021-05-10T16:27:57Z" + ], + "Date": [ + "Mon, 10 May 2021 16:27:57 GMT" + ], + "Content-Length": [ + "407" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"endTime\": \"2021-05-10T09:27:40.2438639-07:00\",\r\n \"id\": \"/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-addons-rg2116/providers/Microsoft.AVS/privateClouds/avs-sdk-addons-cloud1876/addons/hcx/operationstatuses/8cfbe097-1a98-4680-9a51-d60d68304360\",\r\n \"name\": \"8cfbe097-1a98-4680-9a51-d60d68304360\",\r\n \"percentComplete\": 25,\r\n \"startTime\": \"2021-05-10T09:27:40.2438639-07:00\",\r\n \"status\": \"Building\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-addons-rg2116/providers/Microsoft.AVS/privateClouds/avs-sdk-addons-cloud1876/addons/hcx/operationstatuses/8cfbe097-1a98-4680-9a51-d60d68304360?api-version=2021-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmE3NWU3OWItZGQ5NS00MDI1LTlkYmYtM2E3YWU4ZGZmMmI1L3Jlc291cmNlR3JvdXBzL2F2cy1zZGstYWRkb25zLXJnMjExNi9wcm92aWRlcnMvTWljcm9zb2Z0LkFWUy9wcml2YXRlQ2xvdWRzL2F2cy1zZGstYWRkb25zLWNsb3VkMTg3Ni9hZGRvbnMvaGN4L29wZXJhdGlvbnN0YXR1c2VzLzhjZmJlMDk3LTFhOTgtNDY4MC05YTUxLWQ2MGQ2ODMwNDM2MD9hcGktdmVyc2lvbj0yMDIxLTA2LTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.29916.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.Avs.AvsClient/1.0.0.1" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "10" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14982" + ], + "x-ms-request-id": [ + "2f55fc7b-d856-4ba5-a4fa-9b7a720ce4bc" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-correlation-request-id": [ + "431d0a88-6a01-4be8-ac6a-19cb58ddb8d4" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20210510T162808Z:431d0a88-6a01-4be8-ac6a-19cb58ddb8d4" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-MSEdge-Ref": [ + "Ref A: E48E73A8A2A344AAAFA9666E5C469FA4 Ref B: PDX31EDGE0122 Ref C: 2021-05-10T16:28:07Z" + ], + "Date": [ + "Mon, 10 May 2021 16:28:07 GMT" + ], + "Content-Length": [ + "406" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"endTime\": \"2021-05-10T09:27:40.2438639-07:00\",\r\n \"id\": \"/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-addons-rg2116/providers/Microsoft.AVS/privateClouds/avs-sdk-addons-cloud1876/addons/hcx/operationstatuses/8cfbe097-1a98-4680-9a51-d60d68304360\",\r\n \"name\": \"8cfbe097-1a98-4680-9a51-d60d68304360\",\r\n \"percentComplete\": 0,\r\n \"startTime\": \"2021-05-10T09:27:40.2438639-07:00\",\r\n \"status\": \"Building\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-addons-rg2116/providers/Microsoft.AVS/privateClouds/avs-sdk-addons-cloud1876/addons/hcx/operationstatuses/8cfbe097-1a98-4680-9a51-d60d68304360?api-version=2021-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmE3NWU3OWItZGQ5NS00MDI1LTlkYmYtM2E3YWU4ZGZmMmI1L3Jlc291cmNlR3JvdXBzL2F2cy1zZGstYWRkb25zLXJnMjExNi9wcm92aWRlcnMvTWljcm9zb2Z0LkFWUy9wcml2YXRlQ2xvdWRzL2F2cy1zZGstYWRkb25zLWNsb3VkMTg3Ni9hZGRvbnMvaGN4L29wZXJhdGlvbnN0YXR1c2VzLzhjZmJlMDk3LTFhOTgtNDY4MC05YTUxLWQ2MGQ2ODMwNDM2MD9hcGktdmVyc2lvbj0yMDIxLTA2LTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.29916.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.Avs.AvsClient/1.0.0.1" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "10" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14981" + ], + "x-ms-request-id": [ + "4b449190-0a76-4dbd-aa37-bff002e323a0" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-correlation-request-id": [ + "9da54801-8d8b-4075-9428-e87975f4f835" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20210510T162818Z:9da54801-8d8b-4075-9428-e87975f4f835" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-MSEdge-Ref": [ + "Ref A: 8B8303D36D594663B31F7B17D881AE0E Ref B: PDX31EDGE0122 Ref C: 2021-05-10T16:28:18Z" + ], + "Date": [ + "Mon, 10 May 2021 16:28:17 GMT" + ], + "Content-Length": [ + "407" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"endTime\": \"2021-05-10T09:27:40.2438639-07:00\",\r\n \"id\": \"/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-addons-rg2116/providers/Microsoft.AVS/privateClouds/avs-sdk-addons-cloud1876/addons/hcx/operationstatuses/8cfbe097-1a98-4680-9a51-d60d68304360\",\r\n \"name\": \"8cfbe097-1a98-4680-9a51-d60d68304360\",\r\n \"percentComplete\": 50,\r\n \"startTime\": \"2021-05-10T09:27:40.2438639-07:00\",\r\n \"status\": \"Building\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-addons-rg2116/providers/Microsoft.AVS/privateClouds/avs-sdk-addons-cloud1876/addons/hcx/operationstatuses/8cfbe097-1a98-4680-9a51-d60d68304360?api-version=2021-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmE3NWU3OWItZGQ5NS00MDI1LTlkYmYtM2E3YWU4ZGZmMmI1L3Jlc291cmNlR3JvdXBzL2F2cy1zZGstYWRkb25zLXJnMjExNi9wcm92aWRlcnMvTWljcm9zb2Z0LkFWUy9wcml2YXRlQ2xvdWRzL2F2cy1zZGstYWRkb25zLWNsb3VkMTg3Ni9hZGRvbnMvaGN4L29wZXJhdGlvbnN0YXR1c2VzLzhjZmJlMDk3LTFhOTgtNDY4MC05YTUxLWQ2MGQ2ODMwNDM2MD9hcGktdmVyc2lvbj0yMDIxLTA2LTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.29916.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.Avs.AvsClient/1.0.0.1" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "10" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14980" + ], + "x-ms-request-id": [ + "1b3fc50c-e1d5-4f47-994b-7df07874c183" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-correlation-request-id": [ + "1b23017a-f65d-4eb3-9885-3d38217da361" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20210510T162828Z:1b23017a-f65d-4eb3-9885-3d38217da361" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-MSEdge-Ref": [ + "Ref A: AC291DB5610E4624B6435194A04ADB67 Ref B: PDX31EDGE0122 Ref C: 2021-05-10T16:28:28Z" + ], + "Date": [ + "Mon, 10 May 2021 16:28:27 GMT" + ], + "Content-Length": [ + "766" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"endTime\": \"2021-05-10T09:27:40.2438639-07:00\",\r\n \"id\": \"/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-addons-rg2116/providers/Microsoft.AVS/privateClouds/avs-sdk-addons-cloud1876/addons/hcx/operationstatuses/8cfbe097-1a98-4680-9a51-d60d68304360\",\r\n \"name\": \"8cfbe097-1a98-4680-9a51-d60d68304360\",\r\n \"percentComplete\": 100,\r\n \"properties\": {\r\n \"id\": \"/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-addons-rg2116/providers/Microsoft.AVS/privateClouds/avs-sdk-addons-cloud1876/addons/hcx\",\r\n \"name\": \"hcx\",\r\n \"properties\": {\r\n \"addonType\": \"HCX\",\r\n \"offer\": \"VMware MaaS Cloud Provider (Enterprise)\",\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"type\": \"Microsoft.AVS/privateClouds/addons\"\r\n },\r\n \"startTime\": \"2021-05-10T09:27:40.2438639-07:00\",\r\n \"status\": \"Succeeded\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-addons-rg2116/providers/Microsoft.AVS/privateClouds/avs-sdk-addons-cloud1876/addons/hcx?api-version=2021-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmE3NWU3OWItZGQ5NS00MDI1LTlkYmYtM2E3YWU4ZGZmMmI1L3Jlc291cmNlR3JvdXBzL2F2cy1zZGstYWRkb25zLXJnMjExNi9wcm92aWRlcnMvTWljcm9zb2Z0LkFWUy9wcml2YXRlQ2xvdWRzL2F2cy1zZGstYWRkb25zLWNsb3VkMTg3Ni9hZGRvbnMvaGN4P2FwaS12ZXJzaW9uPTIwMjEtMDYtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.29916.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.Avs.AvsClient/1.0.0.1" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14979" + ], + "x-ms-request-id": [ + "4483fde9-3e8f-4ac8-84dc-dcb10063387a" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-correlation-request-id": [ + "9160fef0-7ba4-4cd8-9fcd-192047b27734" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20210510T162828Z:9160fef0-7ba4-4cd8-9fcd-192047b27734" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-MSEdge-Ref": [ + "Ref A: 5A759D94C19E4E478124951E75E1B99D Ref B: PDX31EDGE0122 Ref C: 2021-05-10T16:28:28Z" + ], + "Date": [ + "Mon, 10 May 2021 16:28:28 GMT" + ], + "Content-Length": [ + "343" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-addons-rg2116/providers/Microsoft.AVS/privateClouds/avs-sdk-addons-cloud1876/addons/hcx\",\r\n \"name\": \"hcx\",\r\n \"properties\": {\r\n \"addonType\": \"HCX\",\r\n \"offer\": \"VMware MaaS Cloud Provider (Enterprise)\",\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"type\": \"Microsoft.AVS/privateClouds/addons\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-addons-rg2116/providers/Microsoft.AVS/privateClouds/avs-sdk-addons-cloud1876/addons/hcx?api-version=2021-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmE3NWU3OWItZGQ5NS00MDI1LTlkYmYtM2E3YWU4ZGZmMmI1L3Jlc291cmNlR3JvdXBzL2F2cy1zZGstYWRkb25zLXJnMjExNi9wcm92aWRlcnMvTWljcm9zb2Z0LkFWUy9wcml2YXRlQ2xvdWRzL2F2cy1zZGstYWRkb25zLWNsb3VkMTg3Ni9hZGRvbnMvaGN4P2FwaS12ZXJzaW9uPTIwMjEtMDYtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "0a542fd0-e7a8-4fbb-8518-f85fe90672e9" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.29916.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.Avs.AvsClient/1.0.0.1" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14977" + ], + "x-ms-request-id": [ + "1b78ad8e-4596-49bb-9ede-a3c8b49945bf" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-correlation-request-id": [ + "d8b9ac15-f811-440a-9610-dddfae527e92" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20210510T162828Z:d8b9ac15-f811-440a-9610-dddfae527e92" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-MSEdge-Ref": [ + "Ref A: 53F2C79022964B99A2677AFF09D03084 Ref B: PDX31EDGE0122 Ref C: 2021-05-10T16:28:28Z" + ], + "Date": [ + "Mon, 10 May 2021 16:28:28 GMT" + ], + "Content-Length": [ + "343" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-addons-rg2116/providers/Microsoft.AVS/privateClouds/avs-sdk-addons-cloud1876/addons/hcx\",\r\n \"name\": \"hcx\",\r\n \"properties\": {\r\n \"addonType\": \"HCX\",\r\n \"offer\": \"VMware MaaS Cloud Provider (Enterprise)\",\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"type\": \"Microsoft.AVS/privateClouds/addons\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-addons-rg2116/providers/Microsoft.AVS/privateClouds/avs-sdk-addons-cloud1876/addons/hcx?api-version=2021-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmE3NWU3OWItZGQ5NS00MDI1LTlkYmYtM2E3YWU4ZGZmMmI1L3Jlc291cmNlR3JvdXBzL2F2cy1zZGstYWRkb25zLXJnMjExNi9wcm92aWRlcnMvTWljcm9zb2Z0LkFWUy9wcml2YXRlQ2xvdWRzL2F2cy1zZGstYWRkb25zLWNsb3VkMTg3Ni9hZGRvbnMvaGN4P2FwaS12ZXJzaW9uPTIwMjEtMDYtMDE=", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "4f898650-f4e3-4e77-bccf-84ff0e595b49" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.29916.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.Avs.AvsClient/1.0.0.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-addons-rg2116/providers/Microsoft.AVS/privateClouds/avs-sdk-addons-cloud1876/addons/hcx/operationresults/2f66f682-5105-4d3d-a0d3-e10db1225dcd?api-version=2021-06-01" + ], + "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-addons-rg2116/providers/Microsoft.AVS/privateClouds/avs-sdk-addons-cloud1876/addons/hcx/operationstatuses/2f66f682-5105-4d3d-a0d3-e10db1225dcd?api-version=2021-06-01" + ], + "x-ms-request-id": [ + "2ef6f789-9b9d-4287-89f0-dd6e8d9ed624" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-correlation-request-id": [ + "1b063e7c-3bac-40cb-ade0-d81c1e7d45e1" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20210510T162829Z:1b063e7c-3bac-40cb-ade0-d81c1e7d45e1" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-MSEdge-Ref": [ + "Ref A: 8BD5A725C1AB463E9E4E7F7928A02E9A Ref B: PDX31EDGE0122 Ref C: 2021-05-10T16:28:28Z" + ], + "Date": [ + "Mon, 10 May 2021 16:28:28 GMT" + ], + "Content-Length": [ + "342" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-addons-rg2116/providers/Microsoft.AVS/privateClouds/avs-sdk-addons-cloud1876/addons/hcx\",\r\n \"name\": \"hcx\",\r\n \"properties\": {\r\n \"addonType\": \"HCX\",\r\n \"offer\": \"VMware MaaS Cloud Provider (Enterprise)\",\r\n \"provisioningState\": \"Deleting\"\r\n },\r\n \"type\": \"Microsoft.AVS/privateClouds/addons\"\r\n}", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-addons-rg2116/providers/Microsoft.AVS/privateClouds/avs-sdk-addons-cloud1876/addons/hcx/operationstatuses/2f66f682-5105-4d3d-a0d3-e10db1225dcd?api-version=2021-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmE3NWU3OWItZGQ5NS00MDI1LTlkYmYtM2E3YWU4ZGZmMmI1L3Jlc291cmNlR3JvdXBzL2F2cy1zZGstYWRkb25zLXJnMjExNi9wcm92aWRlcnMvTWljcm9zb2Z0LkFWUy9wcml2YXRlQ2xvdWRzL2F2cy1zZGstYWRkb25zLWNsb3VkMTg3Ni9hZGRvbnMvaGN4L29wZXJhdGlvbnN0YXR1c2VzLzJmNjZmNjgyLTUxMDUtNGQzZC1hMGQzLWUxMGRiMTIyNWRjZD9hcGktdmVyc2lvbj0yMDIxLTA2LTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.29916.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.Avs.AvsClient/1.0.0.1" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "10" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14976" + ], + "x-ms-request-id": [ + "b98a786b-1e82-49d3-8606-3c6fdd6ea8a3" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-correlation-request-id": [ + "09a08f23-5a44-4162-adeb-e1e428b28904" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20210510T162839Z:09a08f23-5a44-4162-adeb-e1e428b28904" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-MSEdge-Ref": [ + "Ref A: 5373417ED2D74027A793D7D84E8B6234 Ref B: PDX31EDGE0122 Ref C: 2021-05-10T16:28:39Z" + ], + "Date": [ + "Mon, 10 May 2021 16:28:38 GMT" + ], + "Content-Length": [ + "406" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"endTime\": \"2021-05-10T09:28:21.778602-07:00\",\r\n \"id\": \"/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-addons-rg2116/providers/Microsoft.AVS/privateClouds/avs-sdk-addons-cloud1876/addons/hcx/operationstatuses/2f66f682-5105-4d3d-a0d3-e10db1225dcd\",\r\n \"name\": \"2f66f682-5105-4d3d-a0d3-e10db1225dcd\",\r\n \"percentComplete\": 0,\r\n \"startTime\": \"2021-05-10T09:28:21.778602-07:00\",\r\n \"status\": \"Building\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-addons-rg2116/providers/Microsoft.AVS/privateClouds/avs-sdk-addons-cloud1876/addons/hcx/operationstatuses/2f66f682-5105-4d3d-a0d3-e10db1225dcd?api-version=2021-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmE3NWU3OWItZGQ5NS00MDI1LTlkYmYtM2E3YWU4ZGZmMmI1L3Jlc291cmNlR3JvdXBzL2F2cy1zZGstYWRkb25zLXJnMjExNi9wcm92aWRlcnMvTWljcm9zb2Z0LkFWUy9wcml2YXRlQ2xvdWRzL2F2cy1zZGstYWRkb25zLWNsb3VkMTg3Ni9hZGRvbnMvaGN4L29wZXJhdGlvbnN0YXR1c2VzLzJmNjZmNjgyLTUxMDUtNGQzZC1hMGQzLWUxMGRiMTIyNWRjZD9hcGktdmVyc2lvbj0yMDIxLTA2LTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.29916.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.Avs.AvsClient/1.0.0.1" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "10" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14975" + ], + "x-ms-request-id": [ + "b00981be-2a77-4f9b-b58f-e505db996d41" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-correlation-request-id": [ + "bc50ad8a-65a1-4851-bd1d-00cf18645140" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20210510T162849Z:bc50ad8a-65a1-4851-bd1d-00cf18645140" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-MSEdge-Ref": [ + "Ref A: C61D4C5CFCBC46A08D56AFB3624DCF5E Ref B: PDX31EDGE0122 Ref C: 2021-05-10T16:28:49Z" + ], + "Date": [ + "Mon, 10 May 2021 16:28:49 GMT" + ], + "Content-Length": [ + "407" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"endTime\": \"2021-05-10T09:28:21.778602-07:00\",\r\n \"id\": \"/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-addons-rg2116/providers/Microsoft.AVS/privateClouds/avs-sdk-addons-cloud1876/addons/hcx/operationstatuses/2f66f682-5105-4d3d-a0d3-e10db1225dcd\",\r\n \"name\": \"2f66f682-5105-4d3d-a0d3-e10db1225dcd\",\r\n \"percentComplete\": 50,\r\n \"startTime\": \"2021-05-10T09:28:21.778602-07:00\",\r\n \"status\": \"Building\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-addons-rg2116/providers/Microsoft.AVS/privateClouds/avs-sdk-addons-cloud1876/addons/hcx/operationstatuses/2f66f682-5105-4d3d-a0d3-e10db1225dcd?api-version=2021-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmE3NWU3OWItZGQ5NS00MDI1LTlkYmYtM2E3YWU4ZGZmMmI1L3Jlc291cmNlR3JvdXBzL2F2cy1zZGstYWRkb25zLXJnMjExNi9wcm92aWRlcnMvTWljcm9zb2Z0LkFWUy9wcml2YXRlQ2xvdWRzL2F2cy1zZGstYWRkb25zLWNsb3VkMTg3Ni9hZGRvbnMvaGN4L29wZXJhdGlvbnN0YXR1c2VzLzJmNjZmNjgyLTUxMDUtNGQzZC1hMGQzLWUxMGRiMTIyNWRjZD9hcGktdmVyc2lvbj0yMDIxLTA2LTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.29916.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.Avs.AvsClient/1.0.0.1" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "10" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14974" + ], + "x-ms-request-id": [ + "6a4fe981-9d35-427c-b5bd-9c30cbc8870b" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-correlation-request-id": [ + "eac467ec-198d-4664-ad3c-e77030b4e7bd" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20210510T162859Z:eac467ec-198d-4664-ad3c-e77030b4e7bd" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-MSEdge-Ref": [ + "Ref A: 5D8BC6803EC9494F89BF1E431730DEEC Ref B: PDX31EDGE0122 Ref C: 2021-05-10T16:28:59Z" + ], + "Date": [ + "Mon, 10 May 2021 16:28:59 GMT" + ], + "Content-Length": [ + "409" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"endTime\": \"2021-05-10T09:28:21.778602-07:00\",\r\n \"id\": \"/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-addons-rg2116/providers/Microsoft.AVS/privateClouds/avs-sdk-addons-cloud1876/addons/hcx/operationstatuses/2f66f682-5105-4d3d-a0d3-e10db1225dcd\",\r\n \"name\": \"2f66f682-5105-4d3d-a0d3-e10db1225dcd\",\r\n \"percentComplete\": 100,\r\n \"startTime\": \"2021-05-10T09:28:21.778602-07:00\",\r\n \"status\": \"Succeeded\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-addons-rg2116/providers/Microsoft.AVS/privateClouds/avs-sdk-addons-cloud1876/addons/hcx/operationresults/2f66f682-5105-4d3d-a0d3-e10db1225dcd?api-version=2021-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmE3NWU3OWItZGQ5NS00MDI1LTlkYmYtM2E3YWU4ZGZmMmI1L3Jlc291cmNlR3JvdXBzL2F2cy1zZGstYWRkb25zLXJnMjExNi9wcm92aWRlcnMvTWljcm9zb2Z0LkFWUy9wcml2YXRlQ2xvdWRzL2F2cy1zZGstYWRkb25zLWNsb3VkMTg3Ni9hZGRvbnMvaGN4L29wZXJhdGlvbnJlc3VsdHMvMmY2NmY2ODItNTEwNS00ZDNkLWEwZDMtZTEwZGIxMjI1ZGNkP2FwaS12ZXJzaW9uPTIwMjEtMDYtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.29916.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.Avs.AvsClient/1.0.0.1" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14973" + ], + "x-ms-request-id": [ + "26ba5b1e-aa4e-4337-bb58-52d70f30c080" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-correlation-request-id": [ + "1ba878bd-7a78-41a6-821d-333bc59c29ff" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20210510T162900Z:1ba878bd-7a78-41a6-821d-333bc59c29ff" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-MSEdge-Ref": [ + "Ref A: 2F792A30113E473381FB9D1BD30591F1 Ref B: PDX31EDGE0122 Ref C: 2021-05-10T16:28:59Z" + ], + "Date": [ + "Mon, 10 May 2021 16:28:59 GMT" + ], + "Content-Length": [ + "4" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "null", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourcegroups/avs-sdk-addons-rg2116?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmE3NWU3OWItZGQ5NS00MDI1LTlkYmYtM2E3YWU4ZGZmMmI1L3Jlc291cmNlZ3JvdXBzL2F2cy1zZGstYWRkb25zLXJnMjExNj9hcGktdmVyc2lvbj0yMDE3LTA1LTEw", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "d8756720-7760-4afc-87a3-f3f077e92e1a" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.29916.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "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/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1BVlM6MkRTREs6MkRBRERPTlM6MkRSRzIxMTYtV0VTVENFTlRSQUxVUyIsImpvYkxvY2F0aW9uIjoid2VzdGNlbnRyYWx1cyJ9?api-version=2017-05-10" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-deletes": [ + "14999" + ], + "x-ms-request-id": [ + "5fd2b9c9-a657-4ecf-9168-dc3087128137" + ], + "x-ms-correlation-request-id": [ + "5fd2b9c9-a657-4ecf-9168-dc3087128137" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20210510T162901Z:5fd2b9c9-a657-4ecf-9168-dc3087128137" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-MSEdge-Ref": [ + "Ref A: B4D486DC7DC3434FB52290F7D74427AB Ref B: PDX31EDGE0106 Ref C: 2021-05-10T16:29:00Z" + ], + "Date": [ + "Mon, 10 May 2021 16:29:00 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1BVlM6MkRTREs6MkRBRERPTlM6MkRSRzIxMTYtV0VTVENFTlRSQUxVUyIsImpvYkxvY2F0aW9uIjoid2VzdGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmE3NWU3OWItZGQ5NS00MDI1LTlkYmYtM2E3YWU4ZGZmMmI1L29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFCVmxNNk1rUlRSRXM2TWtSQlJFUlBUbE02TWtSU1J6SXhNVFl0VjBWVFZFTkZUbFJTUVV4VlV5SXNJbXB2WWt4dlkyRjBhVzl1SWpvaWQyVnpkR05sYm5SeVlXeDFjeUo5P2FwaS12ZXJzaW9uPTIwMTctMDUtMTA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.29916.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "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/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1BVlM6MkRTREs6MkRBRERPTlM6MkRSRzIxMTYtV0VTVENFTlRSQUxVUyIsImpvYkxvY2F0aW9uIjoid2VzdGNlbnRyYWx1cyJ9?api-version=2017-05-10" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14999" + ], + "x-ms-request-id": [ + "8f3dddff-d9ac-43d9-8ce6-bd1f99bfc66c" + ], + "x-ms-correlation-request-id": [ + "8f3dddff-d9ac-43d9-8ce6-bd1f99bfc66c" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20210510T162916Z:8f3dddff-d9ac-43d9-8ce6-bd1f99bfc66c" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-MSEdge-Ref": [ + "Ref A: 4BA867249C8746ACAF4B4D16BE4B9939 Ref B: PDX31EDGE0106 Ref C: 2021-05-10T16:29:16Z" + ], + "Date": [ + "Mon, 10 May 2021 16:29:16 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1BVlM6MkRTREs6MkRBRERPTlM6MkRSRzIxMTYtV0VTVENFTlRSQUxVUyIsImpvYkxvY2F0aW9uIjoid2VzdGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmE3NWU3OWItZGQ5NS00MDI1LTlkYmYtM2E3YWU4ZGZmMmI1L29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFCVmxNNk1rUlRSRXM2TWtSQlJFUlBUbE02TWtSU1J6SXhNVFl0VjBWVFZFTkZUbFJTUVV4VlV5SXNJbXB2WWt4dlkyRjBhVzl1SWpvaWQyVnpkR05sYm5SeVlXeDFjeUo5P2FwaS12ZXJzaW9uPTIwMTctMDUtMTA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.29916.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "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/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1BVlM6MkRTREs6MkRBRERPTlM6MkRSRzIxMTYtV0VTVENFTlRSQUxVUyIsImpvYkxvY2F0aW9uIjoid2VzdGNlbnRyYWx1cyJ9?api-version=2017-05-10" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14998" + ], + "x-ms-request-id": [ + "0865266e-7aff-4b06-844d-3c090872456a" + ], + "x-ms-correlation-request-id": [ + "0865266e-7aff-4b06-844d-3c090872456a" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20210510T162931Z:0865266e-7aff-4b06-844d-3c090872456a" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-MSEdge-Ref": [ + "Ref A: 8268C581EE2047A3B47E32F2532F4090 Ref B: PDX31EDGE0106 Ref C: 2021-05-10T16:29:31Z" + ], + "Date": [ + "Mon, 10 May 2021 16:29:31 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1BVlM6MkRTREs6MkRBRERPTlM6MkRSRzIxMTYtV0VTVENFTlRSQUxVUyIsImpvYkxvY2F0aW9uIjoid2VzdGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmE3NWU3OWItZGQ5NS00MDI1LTlkYmYtM2E3YWU4ZGZmMmI1L29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFCVmxNNk1rUlRSRXM2TWtSQlJFUlBUbE02TWtSU1J6SXhNVFl0VjBWVFZFTkZUbFJTUVV4VlV5SXNJbXB2WWt4dlkyRjBhVzl1SWpvaWQyVnpkR05sYm5SeVlXeDFjeUo5P2FwaS12ZXJzaW9uPTIwMTctMDUtMTA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.29916.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "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/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1BVlM6MkRTREs6MkRBRERPTlM6MkRSRzIxMTYtV0VTVENFTlRSQUxVUyIsImpvYkxvY2F0aW9uIjoid2VzdGNlbnRyYWx1cyJ9?api-version=2017-05-10" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14997" + ], + "x-ms-request-id": [ + "0daecdc9-52a6-4e9e-9172-bc4907836d06" + ], + "x-ms-correlation-request-id": [ + "0daecdc9-52a6-4e9e-9172-bc4907836d06" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20210510T162946Z:0daecdc9-52a6-4e9e-9172-bc4907836d06" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-MSEdge-Ref": [ + "Ref A: 2F04F2B59A8A461AA833A27F90C845F5 Ref B: PDX31EDGE0106 Ref C: 2021-05-10T16:29:46Z" + ], + "Date": [ + "Mon, 10 May 2021 16:29:46 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1BVlM6MkRTREs6MkRBRERPTlM6MkRSRzIxMTYtV0VTVENFTlRSQUxVUyIsImpvYkxvY2F0aW9uIjoid2VzdGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmE3NWU3OWItZGQ5NS00MDI1LTlkYmYtM2E3YWU4ZGZmMmI1L29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFCVmxNNk1rUlRSRXM2TWtSQlJFUlBUbE02TWtSU1J6SXhNVFl0VjBWVFZFTkZUbFJTUVV4VlV5SXNJbXB2WWt4dlkyRjBhVzl1SWpvaWQyVnpkR05sYm5SeVlXeDFjeUo5P2FwaS12ZXJzaW9uPTIwMTctMDUtMTA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.29916.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "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/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1BVlM6MkRTREs6MkRBRERPTlM6MkRSRzIxMTYtV0VTVENFTlRSQUxVUyIsImpvYkxvY2F0aW9uIjoid2VzdGNlbnRyYWx1cyJ9?api-version=2017-05-10" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14996" + ], + "x-ms-request-id": [ + "0a08eb55-6876-40a7-8eed-1473167a8195" + ], + "x-ms-correlation-request-id": [ + "0a08eb55-6876-40a7-8eed-1473167a8195" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20210510T163002Z:0a08eb55-6876-40a7-8eed-1473167a8195" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-MSEdge-Ref": [ + "Ref A: D05896BA7E134DA6B59DBC9A011CEB4C Ref B: PDX31EDGE0106 Ref C: 2021-05-10T16:30:02Z" + ], + "Date": [ + "Mon, 10 May 2021 16:30:01 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1BVlM6MkRTREs6MkRBRERPTlM6MkRSRzIxMTYtV0VTVENFTlRSQUxVUyIsImpvYkxvY2F0aW9uIjoid2VzdGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmE3NWU3OWItZGQ5NS00MDI1LTlkYmYtM2E3YWU4ZGZmMmI1L29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFCVmxNNk1rUlRSRXM2TWtSQlJFUlBUbE02TWtSU1J6SXhNVFl0VjBWVFZFTkZUbFJTUVV4VlV5SXNJbXB2WWt4dlkyRjBhVzl1SWpvaWQyVnpkR05sYm5SeVlXeDFjeUo5P2FwaS12ZXJzaW9uPTIwMTctMDUtMTA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.29916.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "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/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1BVlM6MkRTREs6MkRBRERPTlM6MkRSRzIxMTYtV0VTVENFTlRSQUxVUyIsImpvYkxvY2F0aW9uIjoid2VzdGNlbnRyYWx1cyJ9?api-version=2017-05-10" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14995" + ], + "x-ms-request-id": [ + "88392c16-f849-4120-8940-2ec478c7de83" + ], + "x-ms-correlation-request-id": [ + "88392c16-f849-4120-8940-2ec478c7de83" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20210510T163017Z:88392c16-f849-4120-8940-2ec478c7de83" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-MSEdge-Ref": [ + "Ref A: EB928095EACF48EFA5C944A42B8EDC19 Ref B: PDX31EDGE0106 Ref C: 2021-05-10T16:30:17Z" + ], + "Date": [ + "Mon, 10 May 2021 16:30:16 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1BVlM6MkRTREs6MkRBRERPTlM6MkRSRzIxMTYtV0VTVENFTlRSQUxVUyIsImpvYkxvY2F0aW9uIjoid2VzdGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmE3NWU3OWItZGQ5NS00MDI1LTlkYmYtM2E3YWU4ZGZmMmI1L29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFCVmxNNk1rUlRSRXM2TWtSQlJFUlBUbE02TWtSU1J6SXhNVFl0VjBWVFZFTkZUbFJTUVV4VlV5SXNJbXB2WWt4dlkyRjBhVzl1SWpvaWQyVnpkR05sYm5SeVlXeDFjeUo5P2FwaS12ZXJzaW9uPTIwMTctMDUtMTA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.29916.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "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/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1BVlM6MkRTREs6MkRBRERPTlM6MkRSRzIxMTYtV0VTVENFTlRSQUxVUyIsImpvYkxvY2F0aW9uIjoid2VzdGNlbnRyYWx1cyJ9?api-version=2017-05-10" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14994" + ], + "x-ms-request-id": [ + "4dd37b28-1577-4c26-93e1-52bd18f32170" + ], + "x-ms-correlation-request-id": [ + "4dd37b28-1577-4c26-93e1-52bd18f32170" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20210510T163032Z:4dd37b28-1577-4c26-93e1-52bd18f32170" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-MSEdge-Ref": [ + "Ref A: 0EE36B8DAE664673BB1D473FF44F8F0B Ref B: PDX31EDGE0106 Ref C: 2021-05-10T16:30:32Z" + ], + "Date": [ + "Mon, 10 May 2021 16:30:31 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1BVlM6MkRTREs6MkRBRERPTlM6MkRSRzIxMTYtV0VTVENFTlRSQUxVUyIsImpvYkxvY2F0aW9uIjoid2VzdGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmE3NWU3OWItZGQ5NS00MDI1LTlkYmYtM2E3YWU4ZGZmMmI1L29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFCVmxNNk1rUlRSRXM2TWtSQlJFUlBUbE02TWtSU1J6SXhNVFl0VjBWVFZFTkZUbFJTUVV4VlV5SXNJbXB2WWt4dlkyRjBhVzl1SWpvaWQyVnpkR05sYm5SeVlXeDFjeUo5P2FwaS12ZXJzaW9uPTIwMTctMDUtMTA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.29916.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "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/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1BVlM6MkRTREs6MkRBRERPTlM6MkRSRzIxMTYtV0VTVENFTlRSQUxVUyIsImpvYkxvY2F0aW9uIjoid2VzdGNlbnRyYWx1cyJ9?api-version=2017-05-10" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14993" + ], + "x-ms-request-id": [ + "8448497c-cf03-4f47-8d48-79e295c114a2" + ], + "x-ms-correlation-request-id": [ + "8448497c-cf03-4f47-8d48-79e295c114a2" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20210510T163047Z:8448497c-cf03-4f47-8d48-79e295c114a2" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-MSEdge-Ref": [ + "Ref A: 532655CE40DF4C7499E4FDAD4447A600 Ref B: PDX31EDGE0106 Ref C: 2021-05-10T16:30:47Z" + ], + "Date": [ + "Mon, 10 May 2021 16:30:46 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1BVlM6MkRTREs6MkRBRERPTlM6MkRSRzIxMTYtV0VTVENFTlRSQUxVUyIsImpvYkxvY2F0aW9uIjoid2VzdGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmE3NWU3OWItZGQ5NS00MDI1LTlkYmYtM2E3YWU4ZGZmMmI1L29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFCVmxNNk1rUlRSRXM2TWtSQlJFUlBUbE02TWtSU1J6SXhNVFl0VjBWVFZFTkZUbFJTUVV4VlV5SXNJbXB2WWt4dlkyRjBhVzl1SWpvaWQyVnpkR05sYm5SeVlXeDFjeUo5P2FwaS12ZXJzaW9uPTIwMTctMDUtMTA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.29916.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "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/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1BVlM6MkRTREs6MkRBRERPTlM6MkRSRzIxMTYtV0VTVENFTlRSQUxVUyIsImpvYkxvY2F0aW9uIjoid2VzdGNlbnRyYWx1cyJ9?api-version=2017-05-10" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14992" + ], + "x-ms-request-id": [ + "5aafa115-c7f7-457d-b970-c896bdba8985" + ], + "x-ms-correlation-request-id": [ + "5aafa115-c7f7-457d-b970-c896bdba8985" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20210510T163102Z:5aafa115-c7f7-457d-b970-c896bdba8985" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-MSEdge-Ref": [ + "Ref A: 60DE12620C4A49B6B39139C31AB001E1 Ref B: PDX31EDGE0106 Ref C: 2021-05-10T16:31:02Z" + ], + "Date": [ + "Mon, 10 May 2021 16:31:01 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1BVlM6MkRTREs6MkRBRERPTlM6MkRSRzIxMTYtV0VTVENFTlRSQUxVUyIsImpvYkxvY2F0aW9uIjoid2VzdGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmE3NWU3OWItZGQ5NS00MDI1LTlkYmYtM2E3YWU4ZGZmMmI1L29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFCVmxNNk1rUlRSRXM2TWtSQlJFUlBUbE02TWtSU1J6SXhNVFl0VjBWVFZFTkZUbFJTUVV4VlV5SXNJbXB2WWt4dlkyRjBhVzl1SWpvaWQyVnpkR05sYm5SeVlXeDFjeUo5P2FwaS12ZXJzaW9uPTIwMTctMDUtMTA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.29916.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "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/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1BVlM6MkRTREs6MkRBRERPTlM6MkRSRzIxMTYtV0VTVENFTlRSQUxVUyIsImpvYkxvY2F0aW9uIjoid2VzdGNlbnRyYWx1cyJ9?api-version=2017-05-10" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14991" + ], + "x-ms-request-id": [ + "a6b12eed-5cc5-4fe9-bb17-671d610f6619" + ], + "x-ms-correlation-request-id": [ + "a6b12eed-5cc5-4fe9-bb17-671d610f6619" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20210510T163117Z:a6b12eed-5cc5-4fe9-bb17-671d610f6619" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-MSEdge-Ref": [ + "Ref A: 8DB1A4D49EF04488A84AF798CF135C7F Ref B: PDX31EDGE0106 Ref C: 2021-05-10T16:31:17Z" + ], + "Date": [ + "Mon, 10 May 2021 16:31:16 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1BVlM6MkRTREs6MkRBRERPTlM6MkRSRzIxMTYtV0VTVENFTlRSQUxVUyIsImpvYkxvY2F0aW9uIjoid2VzdGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmE3NWU3OWItZGQ5NS00MDI1LTlkYmYtM2E3YWU4ZGZmMmI1L29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFCVmxNNk1rUlRSRXM2TWtSQlJFUlBUbE02TWtSU1J6SXhNVFl0VjBWVFZFTkZUbFJTUVV4VlV5SXNJbXB2WWt4dlkyRjBhVzl1SWpvaWQyVnpkR05sYm5SeVlXeDFjeUo5P2FwaS12ZXJzaW9uPTIwMTctMDUtMTA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.29916.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "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/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1BVlM6MkRTREs6MkRBRERPTlM6MkRSRzIxMTYtV0VTVENFTlRSQUxVUyIsImpvYkxvY2F0aW9uIjoid2VzdGNlbnRyYWx1cyJ9?api-version=2017-05-10" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14990" + ], + "x-ms-request-id": [ + "b9828f0f-5689-4c62-931a-66a7620347c9" + ], + "x-ms-correlation-request-id": [ + "b9828f0f-5689-4c62-931a-66a7620347c9" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20210510T163132Z:b9828f0f-5689-4c62-931a-66a7620347c9" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-MSEdge-Ref": [ + "Ref A: 60843B36F6A54CEAB88D7F5F15C26291 Ref B: PDX31EDGE0106 Ref C: 2021-05-10T16:31:32Z" + ], + "Date": [ + "Mon, 10 May 2021 16:31:31 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1BVlM6MkRTREs6MkRBRERPTlM6MkRSRzIxMTYtV0VTVENFTlRSQUxVUyIsImpvYkxvY2F0aW9uIjoid2VzdGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmE3NWU3OWItZGQ5NS00MDI1LTlkYmYtM2E3YWU4ZGZmMmI1L29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFCVmxNNk1rUlRSRXM2TWtSQlJFUlBUbE02TWtSU1J6SXhNVFl0VjBWVFZFTkZUbFJTUVV4VlV5SXNJbXB2WWt4dlkyRjBhVzl1SWpvaWQyVnpkR05sYm5SeVlXeDFjeUo5P2FwaS12ZXJzaW9uPTIwMTctMDUtMTA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.29916.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14989" + ], + "x-ms-request-id": [ + "337b2f8f-9110-4765-842a-6a54e13e68b1" + ], + "x-ms-correlation-request-id": [ + "337b2f8f-9110-4765-842a-6a54e13e68b1" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20210510T163147Z:337b2f8f-9110-4765-842a-6a54e13e68b1" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-MSEdge-Ref": [ + "Ref A: 1DCA6DDCF8E24F659B295921C0C6843D Ref B: PDX31EDGE0106 Ref C: 2021-05-10T16:31:47Z" + ], + "Date": [ + "Mon, 10 May 2021 16:31:47 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1BVlM6MkRTREs6MkRBRERPTlM6MkRSRzIxMTYtV0VTVENFTlRSQUxVUyIsImpvYkxvY2F0aW9uIjoid2VzdGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmE3NWU3OWItZGQ5NS00MDI1LTlkYmYtM2E3YWU4ZGZmMmI1L29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFCVmxNNk1rUlRSRXM2TWtSQlJFUlBUbE02TWtSU1J6SXhNVFl0VjBWVFZFTkZUbFJTUVV4VlV5SXNJbXB2WWt4dlkyRjBhVzl1SWpvaWQyVnpkR05sYm5SeVlXeDFjeUo5P2FwaS12ZXJzaW9uPTIwMTctMDUtMTA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.29916.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14988" + ], + "x-ms-request-id": [ + "fb618f7e-92fa-42a7-a12f-23ca88a14f40" + ], + "x-ms-correlation-request-id": [ + "fb618f7e-92fa-42a7-a12f-23ca88a14f40" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20210510T163147Z:fb618f7e-92fa-42a7-a12f-23ca88a14f40" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-MSEdge-Ref": [ + "Ref A: D6DB1F4A3F5C4103BFA52BAE42CD8DD1 Ref B: PDX31EDGE0106 Ref C: 2021-05-10T16:31:47Z" + ], + "Date": [ + "Mon, 10 May 2021 16:31:47 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 200 + } + ], + "Names": { + "HcxAll": [ + "avs-sdk-addons-rg2116", + "avs-sdk-addons-cloud1876" + ] + }, + "Variables": { + "SubscriptionId": "ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5" + } +} \ 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 index 2bedfdb87533..4e9916c546e0 100644 --- a/sdk/avs/Microsoft.Azure.Management.Avs/tests/SessionRecords/AvsTests/AvsCrud.json +++ b/sdk/avs/Microsoft.Azure.Management.Avs/tests/SessionRecords/AvsTests/AvsCrud.json @@ -1,19 +1,19 @@ { "Entries": [ { - "RequestUri": "/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourcegroups/avs-sdk-test-rg9020?api-version=2017-05-10", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmE3NWU3OWItZGQ5NS00MDI1LTlkYmYtM2E3YWU4ZGZmMmI1L3Jlc291cmNlZ3JvdXBzL2F2cy1zZGstdGVzdC1yZzkwMjA/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", + "RequestUri": "/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourcegroups/avs-sdk-test-rg1151?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmE3NWU3OWItZGQ5NS00MDI1LTlkYmYtM2E3YWU4ZGZmMmI1L3Jlc291cmNlZ3JvdXBzL2F2cy1zZGstdGVzdC1yZzExNTE/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", "RequestMethod": "PUT", "RequestBody": "{\r\n \"location\": \"centralus\"\r\n}", "RequestHeaders": { "x-ms-client-request-id": [ - "4c27ccfe-9c5d-46c3-bbe0-1378a21f9eab" + "e1e10c4b-cb3a-4a39-8865-925b8fccb431" ], "Accept-Language": [ "en-US" ], "User-Agent": [ - "FxVersion/4.6.29321.03", + "FxVersion/4.6.29916.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.19042.", "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0" @@ -33,16 +33,16 @@ "no-cache" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1199" + "1197" ], "x-ms-request-id": [ - "04e0021c-a3d6-4f54-9963-040b56a43218" + "7d2301d6-da2f-4172-b8cf-0af3993b36c7" ], "x-ms-correlation-request-id": [ - "04e0021c-a3d6-4f54-9963-040b56a43218" + "7d2301d6-da2f-4172-b8cf-0af3993b36c7" ], "x-ms-routing-request-id": [ - "NORTHEUROPE:20201027T175045Z:04e0021c-a3d6-4f54-9963-040b56a43218" + "CENTRALUS:20210505T194927Z:7d2301d6-da2f-4172-b8cf-0af3993b36c7" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -50,8 +50,11 @@ "X-Content-Type-Options": [ "nosniff" ], + "X-MSEdge-Ref": [ + "Ref A: CFC2ECCF9B5B493AA8AB587FCA7BDBDE Ref B: PDX31EDGE0110 Ref C: 2021-05-05T19:49:27Z" + ], "Date": [ - "Tue, 27 Oct 2020 17:50:45 GMT" + "Wed, 05 May 2021 19:49:26 GMT" ], "Content-Length": [ "194" @@ -63,26 +66,26 @@ "-1" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-test-rg9020\",\r\n \"name\": \"avs-sdk-test-rg9020\",\r\n \"location\": \"centralus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-test-rg1151\",\r\n \"name\": \"avs-sdk-test-rg1151\",\r\n \"location\": \"centralus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", "StatusCode": 201 }, { - "RequestUri": "/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/providers/Microsoft.AVS/locations/centralus/checkQuotaAvailability?api-version=2020-03-20", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmE3NWU3OWItZGQ5NS00MDI1LTlkYmYtM2E3YWU4ZGZmMmI1L3Byb3ZpZGVycy9NaWNyb3NvZnQuQVZTL2xvY2F0aW9ucy9jZW50cmFsdXMvY2hlY2tRdW90YUF2YWlsYWJpbGl0eT9hcGktdmVyc2lvbj0yMDIwLTAzLTIw", + "RequestUri": "/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/providers/Microsoft.AVS/locations/centralus/checkQuotaAvailability?api-version=2021-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmE3NWU3OWItZGQ5NS00MDI1LTlkYmYtM2E3YWU4ZGZmMmI1L3Byb3ZpZGVycy9NaWNyb3NvZnQuQVZTL2xvY2F0aW9ucy9jZW50cmFsdXMvY2hlY2tRdW90YUF2YWlsYWJpbGl0eT9hcGktdmVyc2lvbj0yMDIxLTA2LTAx", "RequestMethod": "POST", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "95dd1f6d-603c-438e-aa11-fb82da5dc362" + "bc6917f7-90a3-40b7-a60a-c5748b2408cd" ], "Accept-Language": [ "en-US" ], "User-Agent": [ - "FxVersion/4.6.29321.03", + "FxVersion/4.6.29916.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.Avs.AvsClient/1.0.0.preview.2" + "Microsoft.Azure.Management.Avs.AvsClient/1.0.0.1" ] }, "ResponseHeaders": { @@ -93,28 +96,28 @@ "no-cache" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14999" + "14958" ], "x-ms-request-id": [ - "e2fe59fd-0f9c-4b83-afa8-b772d7f6fd0a" + "e85689dc-43e1-4e8d-878c-cc89d55d2863" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "Server": [ - "nginx" - ], "x-ms-correlation-request-id": [ - "43f0a7b3-e718-42f2-b723-c47ed76b4eab" + "09a55d4e-cca6-47ea-819b-ad9fb3b5f8e3" ], "x-ms-routing-request-id": [ - "NORTHEUROPE:20201027T175047Z:43f0a7b3-e718-42f2-b723-c47ed76b4eab" + "CENTRALUS:20210505T194928Z:09a55d4e-cca6-47ea-819b-ad9fb3b5f8e3" ], "X-Content-Type-Options": [ "nosniff" ], + "X-MSEdge-Ref": [ + "Ref A: 1E549D9EE45448EB9F70A50EEA13D9E5 Ref B: PDX31EDGE0120 Ref C: 2021-05-05T19:49:27Z" + ], "Date": [ - "Tue, 27 Oct 2020 17:50:46 GMT" + "Wed, 05 May 2021 19:49:27 GMT" ], "Content-Length": [ "63" @@ -126,26 +129,26 @@ "-1" ] }, - "ResponseBody": "{\r\n \"hostsRemaining\": {\r\n \"gp\": 990,\r\n \"he\": 976\r\n },\r\n \"quotaEnabled\": \"Enabled\"\r\n}", + "ResponseBody": "{\r\n \"hostsRemaining\": {\r\n \"gp\": 980,\r\n \"he\": 980\r\n },\r\n \"quotaEnabled\": \"Enabled\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/providers/Microsoft.AVS/locations/centralus/checkTrialAvailability?api-version=2020-03-20", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmE3NWU3OWItZGQ5NS00MDI1LTlkYmYtM2E3YWU4ZGZmMmI1L3Byb3ZpZGVycy9NaWNyb3NvZnQuQVZTL2xvY2F0aW9ucy9jZW50cmFsdXMvY2hlY2tUcmlhbEF2YWlsYWJpbGl0eT9hcGktdmVyc2lvbj0yMDIwLTAzLTIw", + "RequestUri": "/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/providers/Microsoft.AVS/locations/centralus/checkTrialAvailability?api-version=2021-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmE3NWU3OWItZGQ5NS00MDI1LTlkYmYtM2E3YWU4ZGZmMmI1L3Byb3ZpZGVycy9NaWNyb3NvZnQuQVZTL2xvY2F0aW9ucy9jZW50cmFsdXMvY2hlY2tUcmlhbEF2YWlsYWJpbGl0eT9hcGktdmVyc2lvbj0yMDIxLTA2LTAx", "RequestMethod": "POST", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "e5ed7235-291d-46e7-858c-21460fd5fc60" + "ae22adf7-a56d-4db3-a85c-6e9dd46ab1fb" ], "Accept-Language": [ "en-US" ], "User-Agent": [ - "FxVersion/4.6.29321.03", + "FxVersion/4.6.29916.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.Avs.AvsClient/1.0.0.preview.2" + "Microsoft.Azure.Management.Avs.AvsClient/1.0.0.1" ] }, "ResponseHeaders": { @@ -156,28 +159,28 @@ "no-cache" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1199" + "1198" ], "x-ms-request-id": [ - "75cd4364-508c-4a26-bd3c-a156a6d0266d" + "0ef0a35c-0336-4718-8fc8-cdd63696d929" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "Server": [ - "nginx" - ], "x-ms-correlation-request-id": [ - "07b59ee0-58ae-41e0-bd81-b248b250f427" + "a73ff9b8-3f7c-4b35-bc12-dba9e33894b9" ], "x-ms-routing-request-id": [ - "NORTHEUROPE:20201027T175047Z:07b59ee0-58ae-41e0-bd81-b248b250f427" + "CENTRALUS:20210505T194928Z:a73ff9b8-3f7c-4b35-bc12-dba9e33894b9" ], "X-Content-Type-Options": [ "nosniff" ], + "X-MSEdge-Ref": [ + "Ref A: 7EF40D27D83D4D8DB076C8E71B74BD49 Ref B: PDX31EDGE0120 Ref C: 2021-05-05T19:49:28Z" + ], "Date": [ - "Tue, 27 Oct 2020 17:50:47 GMT" + "Wed, 05 May 2021 19:49:27 GMT" ], "Content-Length": [ "45" @@ -193,22 +196,22 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-test-rg9020/providers/Microsoft.AVS/privateClouds?api-version=2020-03-20", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmE3NWU3OWItZGQ5NS00MDI1LTlkYmYtM2E3YWU4ZGZmMmI1L3Jlc291cmNlR3JvdXBzL2F2cy1zZGstdGVzdC1yZzkwMjAvcHJvdmlkZXJzL01pY3Jvc29mdC5BVlMvcHJpdmF0ZUNsb3Vkcz9hcGktdmVyc2lvbj0yMDIwLTAzLTIw", + "RequestUri": "/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-test-rg1151/providers/Microsoft.AVS/privateClouds?api-version=2021-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmE3NWU3OWItZGQ5NS00MDI1LTlkYmYtM2E3YWU4ZGZmMmI1L3Jlc291cmNlR3JvdXBzL2F2cy1zZGstdGVzdC1yZzExNTEvcHJvdmlkZXJzL01pY3Jvc29mdC5BVlMvcHJpdmF0ZUNsb3Vkcz9hcGktdmVyc2lvbj0yMDIxLTA2LTAx", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "f7cce202-1b34-40a6-af31-e948358a0908" + "d0c6ae16-0c38-4946-9b30-bff23197a5f9" ], "Accept-Language": [ "en-US" ], "User-Agent": [ - "FxVersion/4.6.29321.03", + "FxVersion/4.6.29916.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.Avs.AvsClient/1.0.0.preview.2" + "Microsoft.Azure.Management.Avs.AvsClient/1.0.0.1" ] }, "ResponseHeaders": { @@ -219,16 +222,16 @@ "no-cache" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14998" + "14957" ], "x-ms-request-id": [ - "f80d7112-4081-41df-ac03-10f98c8c6416" + "6cec44ca-8a28-4e13-b7d0-fb48261ead4f" ], "x-ms-correlation-request-id": [ - "f80d7112-4081-41df-ac03-10f98c8c6416" + "6cec44ca-8a28-4e13-b7d0-fb48261ead4f" ], "x-ms-routing-request-id": [ - "NORTHEUROPE:20201027T175047Z:f80d7112-4081-41df-ac03-10f98c8c6416" + "CENTRALUS:20210505T194929Z:6cec44ca-8a28-4e13-b7d0-fb48261ead4f" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -236,74 +239,14 @@ "X-Content-Type-Options": [ "nosniff" ], - "Date": [ - "Tue, 27 Oct 2020 17:50:47 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-rg9020/providers/Microsoft.AVS/privateClouds?api-version=2020-03-20", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmE3NWU3OWItZGQ5NS00MDI1LTlkYmYtM2E3YWU4ZGZmMmI1L3Jlc291cmNlR3JvdXBzL2F2cy1zZGstdGVzdC1yZzkwMjAvcHJvdmlkZXJzL01pY3Jvc29mdC5BVlMvcHJpdmF0ZUNsb3Vkcz9hcGktdmVyc2lvbj0yMDIwLTAzLTIw", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "x-ms-client-request-id": [ - "2f584c2a-e1f3-4454-bfff-1ff343ab16ce" - ], - "Accept-Language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.29321.03", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.Avs.AvsClient/1.0.0.preview.2" - ] - }, - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "14961" - ], - "x-ms-request-id": [ - "961b1900-2dca-48f2-acac-0a202a40ce79" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "Server": [ - "nginx" - ], - "x-ms-correlation-request-id": [ - "302c553f-3823-4786-86cf-218ebeb3b2c5" - ], - "x-ms-routing-request-id": [ - "NORTHEUROPE:20201027T175453Z:302c553f-3823-4786-86cf-218ebeb3b2c5" - ], - "X-Content-Type-Options": [ - "nosniff" + "X-MSEdge-Ref": [ + "Ref A: 237AAFB0DFCD4C4F84167CB96FCCBDAB Ref B: PDX31EDGE0120 Ref C: 2021-05-05T19:49:28Z" ], "Date": [ - "Tue, 27 Oct 2020 17:54:52 GMT" + "Wed, 05 May 2021 19:49:28 GMT" ], "Content-Length": [ - "1574" + "12" ], "Content-Type": [ "application/json; charset=utf-8" @@ -312,26 +255,26 @@ "-1" ] }, - "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-test-rg9020/providers/Microsoft.AVS/privateClouds/avs-sdk-test-cloud5466\",\r\n \"location\": \"centralus\",\r\n \"name\": \"avs-sdk-test-cloud5466\",\r\n \"properties\": {\r\n \"circuit\": {\r\n \"expressRouteID\": \"/subscriptions/5206f269-120b-41ef-a95b-0dce7109de61/resourceGroups/tnt49-cust-mp01-mock01/providers/Microsoft.Network/expressRouteCircuits/tnt49-cust-mp01-mock01-er\",\r\n \"expressRoutePrivatePeeringID\": \"/subscriptions/5206f269-120b-41ef-a95b-0dce7109de61/resourceGroups/tnt49-cust-mp01-mock01/providers/Microsoft.Network/expressRouteCircuits/tnt49-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 \"endpoints\": {\r\n \"hcxCloudManager\": \"https://192.168.48.9/\",\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 \"managementCluster\": {\r\n \"clusterId\": 1,\r\n \"clusterSize\": 4,\r\n \"hosts\": [\r\n \"gp-fakehost10.mp01.mock01.vmcp.vs.management\",\r\n \"gp-fakehost35.mp01.mock01.vmcp.vs.management\",\r\n \"gp-fakehost34.mp01.mock01.vmcp.vs.management\",\r\n \"gp-fakehost36.mp01.mock01.vmcp.vs.management\"\r\n ],\r\n \"provisioningState\": \"Succeeded\"\r\n },\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}", + "ResponseBody": "{\r\n \"value\": []\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-test-rg9020/providers/Microsoft.AVS/privateClouds?api-version=2020-03-20", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmE3NWU3OWItZGQ5NS00MDI1LTlkYmYtM2E3YWU4ZGZmMmI1L3Jlc291cmNlR3JvdXBzL2F2cy1zZGstdGVzdC1yZzkwMjAvcHJvdmlkZXJzL01pY3Jvc29mdC5BVlMvcHJpdmF0ZUNsb3Vkcz9hcGktdmVyc2lvbj0yMDIwLTAzLTIw", + "RequestUri": "/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-test-rg1151/providers/Microsoft.AVS/privateClouds?api-version=2021-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmE3NWU3OWItZGQ5NS00MDI1LTlkYmYtM2E3YWU4ZGZmMmI1L3Jlc291cmNlR3JvdXBzL2F2cy1zZGstdGVzdC1yZzExNTEvcHJvdmlkZXJzL01pY3Jvc29mdC5BVlMvcHJpdmF0ZUNsb3Vkcz9hcGktdmVyc2lvbj0yMDIxLTA2LTAx", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "14b07ccb-3505-41ac-9a83-7c74e58cb0d8" + "6a7578ec-d588-4b9c-8ad3-9d70947e0579" ], "Accept-Language": [ "en-US" ], "User-Agent": [ - "FxVersion/4.6.29321.03", + "FxVersion/4.6.29916.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.Avs.AvsClient/1.0.0.preview.2" + "Microsoft.Azure.Management.Avs.AvsClient/1.0.0.1" ] }, "ResponseHeaders": { @@ -342,31 +285,31 @@ "no-cache" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14950" + "14918" ], "x-ms-request-id": [ - "32ff3d2f-90ff-4fcb-9010-70d2ea2669d5" + "ef75873e-b20f-4136-9bd7-08672665f6d8" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "Server": [ - "nginx" - ], "x-ms-correlation-request-id": [ - "a6c4ae18-cccb-417a-ba99-a338e7d2c821" + "e827bdf4-6058-4131-afcf-e566cf1a0b5e" ], "x-ms-routing-request-id": [ - "NORTHEUROPE:20201027T175627Z:a6c4ae18-cccb-417a-ba99-a338e7d2c821" + "CENTRALUS:20210505T195347Z:e827bdf4-6058-4131-afcf-e566cf1a0b5e" ], "X-Content-Type-Options": [ "nosniff" ], + "X-MSEdge-Ref": [ + "Ref A: C3F99F72C30B4D5E81641825AE662F59 Ref B: PDX31EDGE0120 Ref C: 2021-05-05T19:53:47Z" + ], "Date": [ - "Tue, 27 Oct 2020 17:56:27 GMT" + "Wed, 05 May 2021 19:53:47 GMT" ], "Content-Length": [ - "12" + "1574" ], "Content-Type": [ "application/json; charset=utf-8" @@ -375,26 +318,26 @@ "-1" ] }, - "ResponseBody": "{\r\n \"value\": []\r\n}", + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-test-rg1151/providers/Microsoft.AVS/privateClouds/avs-sdk-test-cloud3004\",\r\n \"location\": \"centralus\",\r\n \"name\": \"avs-sdk-test-cloud3004\",\r\n \"properties\": {\r\n \"circuit\": {\r\n \"expressRouteID\": \"/subscriptions/7f1fae41-7708-4fa4-89b3-f6552cad2fc1/resourceGroups/tnt34-cust-mp01-mock01/providers/Microsoft.Network/expressRouteCircuits/tnt34-cust-mp01-mock01-er\",\r\n \"expressRoutePrivatePeeringID\": \"/subscriptions/7f1fae41-7708-4fa4-89b3-f6552cad2fc1/resourceGroups/tnt34-cust-mp01-mock01/providers/Microsoft.Network/expressRouteCircuits/tnt34-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 \"endpoints\": {\r\n \"hcxCloudManager\": \"https://192.168.48.9/\",\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 \"managementCluster\": {\r\n \"clusterId\": 1,\r\n \"clusterSize\": 4,\r\n \"hosts\": [\r\n \"gp-fakehost34.mp01.mock01.vmcp.vs.management\",\r\n \"gp-fakehost19.mp01.mock01.vmcp.vs.management\",\r\n \"gp-fakehost17.mp01.mock01.vmcp.vs.management\",\r\n \"gp-fakehost24.mp01.mock01.vmcp.vs.management\"\r\n ],\r\n \"provisioningState\": \"Succeeded\"\r\n },\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-rg9020/providers/Microsoft.AVS/privateClouds/avs-sdk-test-cloud5466?api-version=2020-03-20", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmE3NWU3OWItZGQ5NS00MDI1LTlkYmYtM2E3YWU4ZGZmMmI1L3Jlc291cmNlR3JvdXBzL2F2cy1zZGstdGVzdC1yZzkwMjAvcHJvdmlkZXJzL01pY3Jvc29mdC5BVlMvcHJpdmF0ZUNsb3Vkcy9hdnMtc2RrLXRlc3QtY2xvdWQ1NDY2P2FwaS12ZXJzaW9uPTIwMjAtMDMtMjA=", + "RequestUri": "/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-test-rg1151/providers/Microsoft.AVS/privateClouds/avs-sdk-test-cloud3004?api-version=2021-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmE3NWU3OWItZGQ5NS00MDI1LTlkYmYtM2E3YWU4ZGZmMmI1L3Jlc291cmNlR3JvdXBzL2F2cy1zZGstdGVzdC1yZzExNTEvcHJvdmlkZXJzL01pY3Jvc29mdC5BVlMvcHJpdmF0ZUNsb3Vkcy9hdnMtc2RrLXRlc3QtY2xvdWQzMDA0P2FwaS12ZXJzaW9uPTIwMjEtMDYtMDE=", "RequestMethod": "PUT", "RequestBody": "{\r\n \"sku\": {\r\n \"name\": \"av20\"\r\n },\r\n \"properties\": {\r\n \"managementCluster\": {\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": [ - "70f709f0-9c99-4a97-8e1c-324f90a823fd" + "d03c5dcd-2090-414e-9940-c1d5e35b1ccb" ], "Accept-Language": [ "en-US" ], "User-Agent": [ - "FxVersion/4.6.29321.03", + "FxVersion/4.6.29916.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.Avs.AvsClient/1.0.0.preview.2" + "Microsoft.Azure.Management.Avs.AvsClient/1.0.0.1" ], "Content-Type": [ "application/json; charset=utf-8" @@ -414,31 +357,31 @@ "10" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1199" + "1195" ], "Azure-AsyncOperation": [ - "https://api-dogfood.resources.windows-int.net/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-test-rg9020/providers/Microsoft.AVS/privateClouds/avs-sdk-test-cloud5466/operationstatuses/dafda0b6-7dc5-4acf-b875-8d5122f09498?api-version=2020-03-20" + "https://api-dogfood.resources.windows-int.net/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-test-rg1151/providers/Microsoft.AVS/privateClouds/avs-sdk-test-cloud3004/operationstatuses/ff3b6e1b-32a0-4513-9740-ebb28ed809f4?api-version=2021-06-01" ], "x-ms-request-id": [ - "727190c9-bd2a-4fbe-b098-fb7377e44bdd" + "66ffeb42-1094-45ca-8929-97b212be1594" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "Server": [ - "nginx" - ], "x-ms-correlation-request-id": [ - "660d5dd9-0e08-48a5-bd9c-4d58afa54285" + "427080c2-4949-4db2-a1b6-9e33f6016f3d" ], "x-ms-routing-request-id": [ - "NORTHEUROPE:20201027T175056Z:660d5dd9-0e08-48a5-bd9c-4d58afa54285" + "CENTRALUS:20210505T194933Z:427080c2-4949-4db2-a1b6-9e33f6016f3d" ], "X-Content-Type-Options": [ "nosniff" ], + "X-MSEdge-Ref": [ + "Ref A: 54439E8F871947159179B7BE24979324 Ref B: PDX31EDGE0120 Ref C: 2021-05-05T19:49:29Z" + ], "Date": [ - "Tue, 27 Oct 2020 17:50:55 GMT" + "Wed, 05 May 2021 19:49:32 GMT" ], "Content-Length": [ "921" @@ -450,20 +393,20 @@ "-1" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-test-rg9020/providers/Microsoft.AVS/privateClouds/avs-sdk-test-cloud5466\",\r\n \"location\": \"centralus\",\r\n \"name\": \"avs-sdk-test-cloud5466\",\r\n \"properties\": {\r\n \"endpoints\": {\r\n \"hcxCloudManager\": \"https://192.168.48.9/\",\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 \"managementCluster\": {\r\n \"clusterId\": 1,\r\n \"clusterSize\": 4,\r\n \"hosts\": [\r\n \"gp-fakehost10.mp01.mock01.vmcp.vs.management\",\r\n \"gp-fakehost35.mp01.mock01.vmcp.vs.management\",\r\n \"gp-fakehost34.mp01.mock01.vmcp.vs.management\",\r\n \"gp-fakehost36.mp01.mock01.vmcp.vs.management\"\r\n ],\r\n \"provisioningState\": \"Building\"\r\n },\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}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-test-rg1151/providers/Microsoft.AVS/privateClouds/avs-sdk-test-cloud3004\",\r\n \"location\": \"centralus\",\r\n \"name\": \"avs-sdk-test-cloud3004\",\r\n \"properties\": {\r\n \"endpoints\": {\r\n \"hcxCloudManager\": \"https://192.168.48.9/\",\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 \"managementCluster\": {\r\n \"clusterId\": 1,\r\n \"clusterSize\": 4,\r\n \"hosts\": [\r\n \"gp-fakehost34.mp01.mock01.vmcp.vs.management\",\r\n \"gp-fakehost19.mp01.mock01.vmcp.vs.management\",\r\n \"gp-fakehost17.mp01.mock01.vmcp.vs.management\",\r\n \"gp-fakehost24.mp01.mock01.vmcp.vs.management\"\r\n ],\r\n \"provisioningState\": \"Building\"\r\n },\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-rg9020/providers/Microsoft.AVS/privateClouds/avs-sdk-test-cloud5466/operationstatuses/dafda0b6-7dc5-4acf-b875-8d5122f09498?api-version=2020-03-20", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmE3NWU3OWItZGQ5NS00MDI1LTlkYmYtM2E3YWU4ZGZmMmI1L3Jlc291cmNlR3JvdXBzL2F2cy1zZGstdGVzdC1yZzkwMjAvcHJvdmlkZXJzL01pY3Jvc29mdC5BVlMvcHJpdmF0ZUNsb3Vkcy9hdnMtc2RrLXRlc3QtY2xvdWQ1NDY2L29wZXJhdGlvbnN0YXR1c2VzL2RhZmRhMGI2LTdkYzUtNGFjZi1iODc1LThkNTEyMmYwOTQ5OD9hcGktdmVyc2lvbj0yMDIwLTAzLTIw", + "RequestUri": "/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-test-rg1151/providers/Microsoft.AVS/privateClouds/avs-sdk-test-cloud3004/operationstatuses/ff3b6e1b-32a0-4513-9740-ebb28ed809f4?api-version=2021-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmE3NWU3OWItZGQ5NS00MDI1LTlkYmYtM2E3YWU4ZGZmMmI1L3Jlc291cmNlR3JvdXBzL2F2cy1zZGstdGVzdC1yZzExNTEvcHJvdmlkZXJzL01pY3Jvc29mdC5BVlMvcHJpdmF0ZUNsb3Vkcy9hdnMtc2RrLXRlc3QtY2xvdWQzMDA0L29wZXJhdGlvbnN0YXR1c2VzL2ZmM2I2ZTFiLTMyYTAtNDUxMy05NzQwLWViYjI4ZWQ4MDlmND9hcGktdmVyc2lvbj0yMDIxLTA2LTAx", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/4.6.29321.03", + "FxVersion/4.6.29916.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.Avs.AvsClient/1.0.0.preview.2" + "Microsoft.Azure.Management.Avs.AvsClient/1.0.0.1" ] }, "ResponseHeaders": { @@ -477,28 +420,28 @@ "10" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14997" + "14956" ], "x-ms-request-id": [ - "e8433e16-9552-4184-9603-e47c0bbfbd34" + "22dd5473-5992-43e4-9269-33a9d1859c9f" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "Server": [ - "nginx" - ], "x-ms-correlation-request-id": [ - "895dfb6b-0a2b-4376-ba6b-c3facdd2aaa5" + "1c016188-8149-4afe-992a-7976ffeb3915" ], "x-ms-routing-request-id": [ - "NORTHEUROPE:20201027T175106Z:895dfb6b-0a2b-4376-ba6b-c3facdd2aaa5" + "CENTRALUS:20210505T194943Z:1c016188-8149-4afe-992a-7976ffeb3915" ], "X-Content-Type-Options": [ "nosniff" ], + "X-MSEdge-Ref": [ + "Ref A: 2A34EA1E3BA24FC7ADEFFCF9CDBD223E Ref B: PDX31EDGE0120 Ref C: 2021-05-05T19:49:43Z" + ], "Date": [ - "Tue, 27 Oct 2020 17:51:06 GMT" + "Wed, 05 May 2021 19:49:42 GMT" ], "Content-Length": [ "345" @@ -510,20 +453,20 @@ "-1" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-test-rg9020/providers/Microsoft.AVS/privateClouds/avs-sdk-test-cloud5466/operationstatuses/dafda0b6-7dc5-4acf-b875-8d5122f09498\",\r\n \"name\": \"dafda0b6-7dc5-4acf-b875-8d5122f09498\",\r\n \"percentComplete\": 5,\r\n \"startTime\": \"2020-10-27T11:50:55.3162298-06:00\",\r\n \"status\": \"Building\"\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-test-rg1151/providers/Microsoft.AVS/privateClouds/avs-sdk-test-cloud3004/operationstatuses/ff3b6e1b-32a0-4513-9740-ebb28ed809f4\",\r\n \"name\": \"ff3b6e1b-32a0-4513-9740-ebb28ed809f4\",\r\n \"percentComplete\": 0,\r\n \"startTime\": \"2021-05-05T12:49:40.9166048-07:00\",\r\n \"status\": \"Building\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-test-rg9020/providers/Microsoft.AVS/privateClouds/avs-sdk-test-cloud5466/operationstatuses/dafda0b6-7dc5-4acf-b875-8d5122f09498?api-version=2020-03-20", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmE3NWU3OWItZGQ5NS00MDI1LTlkYmYtM2E3YWU4ZGZmMmI1L3Jlc291cmNlR3JvdXBzL2F2cy1zZGstdGVzdC1yZzkwMjAvcHJvdmlkZXJzL01pY3Jvc29mdC5BVlMvcHJpdmF0ZUNsb3Vkcy9hdnMtc2RrLXRlc3QtY2xvdWQ1NDY2L29wZXJhdGlvbnN0YXR1c2VzL2RhZmRhMGI2LTdkYzUtNGFjZi1iODc1LThkNTEyMmYwOTQ5OD9hcGktdmVyc2lvbj0yMDIwLTAzLTIw", + "RequestUri": "/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-test-rg1151/providers/Microsoft.AVS/privateClouds/avs-sdk-test-cloud3004/operationstatuses/ff3b6e1b-32a0-4513-9740-ebb28ed809f4?api-version=2021-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmE3NWU3OWItZGQ5NS00MDI1LTlkYmYtM2E3YWU4ZGZmMmI1L3Jlc291cmNlR3JvdXBzL2F2cy1zZGstdGVzdC1yZzExNTEvcHJvdmlkZXJzL01pY3Jvc29mdC5BVlMvcHJpdmF0ZUNsb3Vkcy9hdnMtc2RrLXRlc3QtY2xvdWQzMDA0L29wZXJhdGlvbnN0YXR1c2VzL2ZmM2I2ZTFiLTMyYTAtNDUxMy05NzQwLWViYjI4ZWQ4MDlmND9hcGktdmVyc2lvbj0yMDIxLTA2LTAx", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/4.6.29321.03", + "FxVersion/4.6.29916.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.Avs.AvsClient/1.0.0.preview.2" + "Microsoft.Azure.Management.Avs.AvsClient/1.0.0.1" ] }, "ResponseHeaders": { @@ -537,31 +480,31 @@ "10" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14996" + "14955" ], "x-ms-request-id": [ - "63a1923c-98c9-4661-b028-1f2cd7e5815d" + "c1ba5b23-64bf-43e6-8bc3-6a804af17671" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "Server": [ - "nginx" - ], "x-ms-correlation-request-id": [ - "06aa1f49-f7ee-488d-b86b-298d73a9ef7c" + "ab8a4305-a419-41a3-abf6-b3dfabc683f1" ], "x-ms-routing-request-id": [ - "NORTHEUROPE:20201027T175117Z:06aa1f49-f7ee-488d-b86b-298d73a9ef7c" + "CENTRALUS:20210505T194954Z:ab8a4305-a419-41a3-abf6-b3dfabc683f1" ], "X-Content-Type-Options": [ "nosniff" ], + "X-MSEdge-Ref": [ + "Ref A: FD6A1AF9586041929AB7E1944B43265A Ref B: PDX31EDGE0120 Ref C: 2021-05-05T19:49:53Z" + ], "Date": [ - "Tue, 27 Oct 2020 17:51:16 GMT" + "Wed, 05 May 2021 19:49:53 GMT" ], "Content-Length": [ - "347" + "345" ], "Content-Type": [ "application/json; charset=utf-8" @@ -570,20 +513,20 @@ "-1" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-test-rg9020/providers/Microsoft.AVS/privateClouds/avs-sdk-test-cloud5466/operationstatuses/dafda0b6-7dc5-4acf-b875-8d5122f09498\",\r\n \"name\": \"dafda0b6-7dc5-4acf-b875-8d5122f09498\",\r\n \"percentComplete\": 2.5,\r\n \"startTime\": \"2020-10-27T11:50:55.3162298-06:00\",\r\n \"status\": \"Building\"\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-test-rg1151/providers/Microsoft.AVS/privateClouds/avs-sdk-test-cloud3004/operationstatuses/ff3b6e1b-32a0-4513-9740-ebb28ed809f4\",\r\n \"name\": \"ff3b6e1b-32a0-4513-9740-ebb28ed809f4\",\r\n \"percentComplete\": 0,\r\n \"startTime\": \"2021-05-05T12:49:40.9166048-07:00\",\r\n \"status\": \"Building\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-test-rg9020/providers/Microsoft.AVS/privateClouds/avs-sdk-test-cloud5466/operationstatuses/dafda0b6-7dc5-4acf-b875-8d5122f09498?api-version=2020-03-20", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmE3NWU3OWItZGQ5NS00MDI1LTlkYmYtM2E3YWU4ZGZmMmI1L3Jlc291cmNlR3JvdXBzL2F2cy1zZGstdGVzdC1yZzkwMjAvcHJvdmlkZXJzL01pY3Jvc29mdC5BVlMvcHJpdmF0ZUNsb3Vkcy9hdnMtc2RrLXRlc3QtY2xvdWQ1NDY2L29wZXJhdGlvbnN0YXR1c2VzL2RhZmRhMGI2LTdkYzUtNGFjZi1iODc1LThkNTEyMmYwOTQ5OD9hcGktdmVyc2lvbj0yMDIwLTAzLTIw", + "RequestUri": "/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-test-rg1151/providers/Microsoft.AVS/privateClouds/avs-sdk-test-cloud3004/operationstatuses/ff3b6e1b-32a0-4513-9740-ebb28ed809f4?api-version=2021-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmE3NWU3OWItZGQ5NS00MDI1LTlkYmYtM2E3YWU4ZGZmMmI1L3Jlc291cmNlR3JvdXBzL2F2cy1zZGstdGVzdC1yZzExNTEvcHJvdmlkZXJzL01pY3Jvc29mdC5BVlMvcHJpdmF0ZUNsb3Vkcy9hdnMtc2RrLXRlc3QtY2xvdWQzMDA0L29wZXJhdGlvbnN0YXR1c2VzL2ZmM2I2ZTFiLTMyYTAtNDUxMy05NzQwLWViYjI4ZWQ4MDlmND9hcGktdmVyc2lvbj0yMDIxLTA2LTAx", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/4.6.29321.03", + "FxVersion/4.6.29916.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.Avs.AvsClient/1.0.0.preview.2" + "Microsoft.Azure.Management.Avs.AvsClient/1.0.0.1" ] }, "ResponseHeaders": { @@ -597,28 +540,28 @@ "10" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14995" + "14954" ], "x-ms-request-id": [ - "bbf8b777-c3da-4a8b-a0bd-e12954979e4d" + "487dde84-88e2-4e5c-a863-af991b8107b3" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "Server": [ - "nginx" - ], "x-ms-correlation-request-id": [ - "bb651cd3-cebd-40c3-a539-31c6c4eea8b1" + "3b1fc655-afd5-40ca-9bae-f9f57c8151a1" ], "x-ms-routing-request-id": [ - "NORTHEUROPE:20201027T175127Z:bb651cd3-cebd-40c3-a539-31c6c4eea8b1" + "CENTRALUS:20210505T195004Z:3b1fc655-afd5-40ca-9bae-f9f57c8151a1" ], "X-Content-Type-Options": [ "nosniff" ], + "X-MSEdge-Ref": [ + "Ref A: EDB40D5678AA490AB8AB67CFEAC35D7D Ref B: PDX31EDGE0120 Ref C: 2021-05-05T19:50:04Z" + ], "Date": [ - "Tue, 27 Oct 2020 17:51:27 GMT" + "Wed, 05 May 2021 19:50:03 GMT" ], "Content-Length": [ "349" @@ -630,20 +573,20 @@ "-1" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-test-rg9020/providers/Microsoft.AVS/privateClouds/avs-sdk-test-cloud5466/operationstatuses/dafda0b6-7dc5-4acf-b875-8d5122f09498\",\r\n \"name\": \"dafda0b6-7dc5-4acf-b875-8d5122f09498\",\r\n \"percentComplete\": 88.75,\r\n \"startTime\": \"2020-10-27T11:50:55.3162298-06:00\",\r\n \"status\": \"Building\"\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-test-rg1151/providers/Microsoft.AVS/privateClouds/avs-sdk-test-cloud3004/operationstatuses/ff3b6e1b-32a0-4513-9740-ebb28ed809f4\",\r\n \"name\": \"ff3b6e1b-32a0-4513-9740-ebb28ed809f4\",\r\n \"percentComplete\": 88.75,\r\n \"startTime\": \"2021-05-05T12:49:40.9166048-07:00\",\r\n \"status\": \"Building\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-test-rg9020/providers/Microsoft.AVS/privateClouds/avs-sdk-test-cloud5466/operationstatuses/dafda0b6-7dc5-4acf-b875-8d5122f09498?api-version=2020-03-20", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmE3NWU3OWItZGQ5NS00MDI1LTlkYmYtM2E3YWU4ZGZmMmI1L3Jlc291cmNlR3JvdXBzL2F2cy1zZGstdGVzdC1yZzkwMjAvcHJvdmlkZXJzL01pY3Jvc29mdC5BVlMvcHJpdmF0ZUNsb3Vkcy9hdnMtc2RrLXRlc3QtY2xvdWQ1NDY2L29wZXJhdGlvbnN0YXR1c2VzL2RhZmRhMGI2LTdkYzUtNGFjZi1iODc1LThkNTEyMmYwOTQ5OD9hcGktdmVyc2lvbj0yMDIwLTAzLTIw", + "RequestUri": "/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-test-rg1151/providers/Microsoft.AVS/privateClouds/avs-sdk-test-cloud3004/operationstatuses/ff3b6e1b-32a0-4513-9740-ebb28ed809f4?api-version=2021-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmE3NWU3OWItZGQ5NS00MDI1LTlkYmYtM2E3YWU4ZGZmMmI1L3Jlc291cmNlR3JvdXBzL2F2cy1zZGstdGVzdC1yZzExNTEvcHJvdmlkZXJzL01pY3Jvc29mdC5BVlMvcHJpdmF0ZUNsb3Vkcy9hdnMtc2RrLXRlc3QtY2xvdWQzMDA0L29wZXJhdGlvbnN0YXR1c2VzL2ZmM2I2ZTFiLTMyYTAtNDUxMy05NzQwLWViYjI4ZWQ4MDlmND9hcGktdmVyc2lvbj0yMDIxLTA2LTAx", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/4.6.29321.03", + "FxVersion/4.6.29916.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.Avs.AvsClient/1.0.0.preview.2" + "Microsoft.Azure.Management.Avs.AvsClient/1.0.0.1" ] }, "ResponseHeaders": { @@ -657,31 +600,31 @@ "10" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14994" + "14953" ], "x-ms-request-id": [ - "672a3e37-e6c5-4fd8-9762-abf2a342e4ba" + "443c645a-b977-42a1-921f-12c5b7832395" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "Server": [ - "nginx" - ], "x-ms-correlation-request-id": [ - "737502e3-f760-48bd-8895-ec03ae61d7ae" + "86a1aff4-c7ed-4214-b6f4-0542490ec4dd" ], "x-ms-routing-request-id": [ - "NORTHEUROPE:20201027T175137Z:737502e3-f760-48bd-8895-ec03ae61d7ae" + "CENTRALUS:20210505T195014Z:86a1aff4-c7ed-4214-b6f4-0542490ec4dd" ], "X-Content-Type-Options": [ "nosniff" ], + "X-MSEdge-Ref": [ + "Ref A: 6791DD0BC4254FA5BAA1F82C67887B12 Ref B: PDX31EDGE0120 Ref C: 2021-05-05T19:50:14Z" + ], "Date": [ - "Tue, 27 Oct 2020 17:51:36 GMT" + "Wed, 05 May 2021 19:50:13 GMT" ], "Content-Length": [ - "347" + "349" ], "Content-Type": [ "application/json; charset=utf-8" @@ -690,20 +633,20 @@ "-1" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-test-rg9020/providers/Microsoft.AVS/privateClouds/avs-sdk-test-cloud5466/operationstatuses/dafda0b6-7dc5-4acf-b875-8d5122f09498\",\r\n \"name\": \"dafda0b6-7dc5-4acf-b875-8d5122f09498\",\r\n \"percentComplete\": 100,\r\n \"startTime\": \"2020-10-27T11:50:55.3162298-06:00\",\r\n \"status\": \"Building\"\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-test-rg1151/providers/Microsoft.AVS/privateClouds/avs-sdk-test-cloud3004/operationstatuses/ff3b6e1b-32a0-4513-9740-ebb28ed809f4\",\r\n \"name\": \"ff3b6e1b-32a0-4513-9740-ebb28ed809f4\",\r\n \"percentComplete\": 88.75,\r\n \"startTime\": \"2021-05-05T12:49:40.9166048-07:00\",\r\n \"status\": \"Building\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-test-rg9020/providers/Microsoft.AVS/privateClouds/avs-sdk-test-cloud5466/operationstatuses/dafda0b6-7dc5-4acf-b875-8d5122f09498?api-version=2020-03-20", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmE3NWU3OWItZGQ5NS00MDI1LTlkYmYtM2E3YWU4ZGZmMmI1L3Jlc291cmNlR3JvdXBzL2F2cy1zZGstdGVzdC1yZzkwMjAvcHJvdmlkZXJzL01pY3Jvc29mdC5BVlMvcHJpdmF0ZUNsb3Vkcy9hdnMtc2RrLXRlc3QtY2xvdWQ1NDY2L29wZXJhdGlvbnN0YXR1c2VzL2RhZmRhMGI2LTdkYzUtNGFjZi1iODc1LThkNTEyMmYwOTQ5OD9hcGktdmVyc2lvbj0yMDIwLTAzLTIw", + "RequestUri": "/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-test-rg1151/providers/Microsoft.AVS/privateClouds/avs-sdk-test-cloud3004/operationstatuses/ff3b6e1b-32a0-4513-9740-ebb28ed809f4?api-version=2021-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmE3NWU3OWItZGQ5NS00MDI1LTlkYmYtM2E3YWU4ZGZmMmI1L3Jlc291cmNlR3JvdXBzL2F2cy1zZGstdGVzdC1yZzExNTEvcHJvdmlkZXJzL01pY3Jvc29mdC5BVlMvcHJpdmF0ZUNsb3Vkcy9hdnMtc2RrLXRlc3QtY2xvdWQzMDA0L29wZXJhdGlvbnN0YXR1c2VzL2ZmM2I2ZTFiLTMyYTAtNDUxMy05NzQwLWViYjI4ZWQ4MDlmND9hcGktdmVyc2lvbj0yMDIxLTA2LTAx", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/4.6.29321.03", + "FxVersion/4.6.29916.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.Avs.AvsClient/1.0.0.preview.2" + "Microsoft.Azure.Management.Avs.AvsClient/1.0.0.1" ] }, "ResponseHeaders": { @@ -717,28 +660,28 @@ "10" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14993" + "14952" ], "x-ms-request-id": [ - "dfe9c51c-3503-4d94-bc49-3d3c86b9463e" + "7d666a87-6712-45ef-b62a-1384ce2d5e2c" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "Server": [ - "nginx" - ], "x-ms-correlation-request-id": [ - "05ba3178-8ea3-4f15-9131-2ad6e424ccfa" + "66eb34ed-3cc9-455f-b816-50311cdeb74a" ], "x-ms-routing-request-id": [ - "NORTHEUROPE:20201027T175148Z:05ba3178-8ea3-4f15-9131-2ad6e424ccfa" + "CENTRALUS:20210505T195024Z:66eb34ed-3cc9-455f-b816-50311cdeb74a" ], "X-Content-Type-Options": [ "nosniff" ], + "X-MSEdge-Ref": [ + "Ref A: 08AC316270BD4E6191CCC68C46DF9211 Ref B: PDX31EDGE0120 Ref C: 2021-05-05T19:50:24Z" + ], "Date": [ - "Tue, 27 Oct 2020 17:51:47 GMT" + "Wed, 05 May 2021 19:50:23 GMT" ], "Content-Length": [ "347" @@ -750,20 +693,20 @@ "-1" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-test-rg9020/providers/Microsoft.AVS/privateClouds/avs-sdk-test-cloud5466/operationstatuses/dafda0b6-7dc5-4acf-b875-8d5122f09498\",\r\n \"name\": \"dafda0b6-7dc5-4acf-b875-8d5122f09498\",\r\n \"percentComplete\": 100,\r\n \"startTime\": \"2020-10-27T11:50:55.3162298-06:00\",\r\n \"status\": \"Building\"\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-test-rg1151/providers/Microsoft.AVS/privateClouds/avs-sdk-test-cloud3004/operationstatuses/ff3b6e1b-32a0-4513-9740-ebb28ed809f4\",\r\n \"name\": \"ff3b6e1b-32a0-4513-9740-ebb28ed809f4\",\r\n \"percentComplete\": 100,\r\n \"startTime\": \"2021-05-05T12:49:40.9166048-07:00\",\r\n \"status\": \"Building\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-test-rg9020/providers/Microsoft.AVS/privateClouds/avs-sdk-test-cloud5466/operationstatuses/dafda0b6-7dc5-4acf-b875-8d5122f09498?api-version=2020-03-20", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmE3NWU3OWItZGQ5NS00MDI1LTlkYmYtM2E3YWU4ZGZmMmI1L3Jlc291cmNlR3JvdXBzL2F2cy1zZGstdGVzdC1yZzkwMjAvcHJvdmlkZXJzL01pY3Jvc29mdC5BVlMvcHJpdmF0ZUNsb3Vkcy9hdnMtc2RrLXRlc3QtY2xvdWQ1NDY2L29wZXJhdGlvbnN0YXR1c2VzL2RhZmRhMGI2LTdkYzUtNGFjZi1iODc1LThkNTEyMmYwOTQ5OD9hcGktdmVyc2lvbj0yMDIwLTAzLTIw", + "RequestUri": "/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-test-rg1151/providers/Microsoft.AVS/privateClouds/avs-sdk-test-cloud3004/operationstatuses/ff3b6e1b-32a0-4513-9740-ebb28ed809f4?api-version=2021-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmE3NWU3OWItZGQ5NS00MDI1LTlkYmYtM2E3YWU4ZGZmMmI1L3Jlc291cmNlR3JvdXBzL2F2cy1zZGstdGVzdC1yZzExNTEvcHJvdmlkZXJzL01pY3Jvc29mdC5BVlMvcHJpdmF0ZUNsb3Vkcy9hdnMtc2RrLXRlc3QtY2xvdWQzMDA0L29wZXJhdGlvbnN0YXR1c2VzL2ZmM2I2ZTFiLTMyYTAtNDUxMy05NzQwLWViYjI4ZWQ4MDlmND9hcGktdmVyc2lvbj0yMDIxLTA2LTAx", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/4.6.29321.03", + "FxVersion/4.6.29916.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.Avs.AvsClient/1.0.0.preview.2" + "Microsoft.Azure.Management.Avs.AvsClient/1.0.0.1" ] }, "ResponseHeaders": { @@ -777,28 +720,28 @@ "10" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14992" + "14951" ], "x-ms-request-id": [ - "57250514-a3ac-43b3-8725-2be27d0ba984" + "dde5802d-40cf-4b14-a073-7456d3fe33f8" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "Server": [ - "nginx" - ], "x-ms-correlation-request-id": [ - "9e65c333-8f17-4621-bc2c-1ec2a071267b" + "e19a919d-74e0-4127-a5df-9892e36a5ae3" ], "x-ms-routing-request-id": [ - "NORTHEUROPE:20201027T175158Z:9e65c333-8f17-4621-bc2c-1ec2a071267b" + "CENTRALUS:20210505T195034Z:e19a919d-74e0-4127-a5df-9892e36a5ae3" ], "X-Content-Type-Options": [ "nosniff" ], + "X-MSEdge-Ref": [ + "Ref A: 0815ED2C47CB41ADA3545D2080A2D8BA Ref B: PDX31EDGE0120 Ref C: 2021-05-05T19:50:34Z" + ], "Date": [ - "Tue, 27 Oct 2020 17:51:57 GMT" + "Wed, 05 May 2021 19:50:33 GMT" ], "Content-Length": [ "347" @@ -810,20 +753,20 @@ "-1" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-test-rg9020/providers/Microsoft.AVS/privateClouds/avs-sdk-test-cloud5466/operationstatuses/dafda0b6-7dc5-4acf-b875-8d5122f09498\",\r\n \"name\": \"dafda0b6-7dc5-4acf-b875-8d5122f09498\",\r\n \"percentComplete\": 100,\r\n \"startTime\": \"2020-10-27T11:50:55.3162298-06:00\",\r\n \"status\": \"Building\"\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-test-rg1151/providers/Microsoft.AVS/privateClouds/avs-sdk-test-cloud3004/operationstatuses/ff3b6e1b-32a0-4513-9740-ebb28ed809f4\",\r\n \"name\": \"ff3b6e1b-32a0-4513-9740-ebb28ed809f4\",\r\n \"percentComplete\": 100,\r\n \"startTime\": \"2021-05-05T12:49:40.9166048-07:00\",\r\n \"status\": \"Building\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-test-rg9020/providers/Microsoft.AVS/privateClouds/avs-sdk-test-cloud5466/operationstatuses/dafda0b6-7dc5-4acf-b875-8d5122f09498?api-version=2020-03-20", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmE3NWU3OWItZGQ5NS00MDI1LTlkYmYtM2E3YWU4ZGZmMmI1L3Jlc291cmNlR3JvdXBzL2F2cy1zZGstdGVzdC1yZzkwMjAvcHJvdmlkZXJzL01pY3Jvc29mdC5BVlMvcHJpdmF0ZUNsb3Vkcy9hdnMtc2RrLXRlc3QtY2xvdWQ1NDY2L29wZXJhdGlvbnN0YXR1c2VzL2RhZmRhMGI2LTdkYzUtNGFjZi1iODc1LThkNTEyMmYwOTQ5OD9hcGktdmVyc2lvbj0yMDIwLTAzLTIw", + "RequestUri": "/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-test-rg1151/providers/Microsoft.AVS/privateClouds/avs-sdk-test-cloud3004/operationstatuses/ff3b6e1b-32a0-4513-9740-ebb28ed809f4?api-version=2021-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmE3NWU3OWItZGQ5NS00MDI1LTlkYmYtM2E3YWU4ZGZmMmI1L3Jlc291cmNlR3JvdXBzL2F2cy1zZGstdGVzdC1yZzExNTEvcHJvdmlkZXJzL01pY3Jvc29mdC5BVlMvcHJpdmF0ZUNsb3Vkcy9hdnMtc2RrLXRlc3QtY2xvdWQzMDA0L29wZXJhdGlvbnN0YXR1c2VzL2ZmM2I2ZTFiLTMyYTAtNDUxMy05NzQwLWViYjI4ZWQ4MDlmND9hcGktdmVyc2lvbj0yMDIxLTA2LTAx", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/4.6.29321.03", + "FxVersion/4.6.29916.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.Avs.AvsClient/1.0.0.preview.2" + "Microsoft.Azure.Management.Avs.AvsClient/1.0.0.1" ] }, "ResponseHeaders": { @@ -837,28 +780,28 @@ "10" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14991" + "14950" ], "x-ms-request-id": [ - "c036f5a3-4edd-4926-866a-de3b36880202" + "c976c66b-5c84-43c7-ac72-91833ea7d644" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "Server": [ - "nginx" - ], "x-ms-correlation-request-id": [ - "e34a0118-fa3e-41f1-ad39-e933ffb26161" + "b27bd354-38e9-4506-acc9-87e4f88f26ca" ], "x-ms-routing-request-id": [ - "NORTHEUROPE:20201027T175208Z:e34a0118-fa3e-41f1-ad39-e933ffb26161" + "CENTRALUS:20210505T195045Z:b27bd354-38e9-4506-acc9-87e4f88f26ca" ], "X-Content-Type-Options": [ "nosniff" ], + "X-MSEdge-Ref": [ + "Ref A: AAB0679076CB4258AA15EA657FCBAA3D Ref B: PDX31EDGE0120 Ref C: 2021-05-05T19:50:44Z" + ], "Date": [ - "Tue, 27 Oct 2020 17:52:08 GMT" + "Wed, 05 May 2021 19:50:44 GMT" ], "Content-Length": [ "347" @@ -870,20 +813,20 @@ "-1" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-test-rg9020/providers/Microsoft.AVS/privateClouds/avs-sdk-test-cloud5466/operationstatuses/dafda0b6-7dc5-4acf-b875-8d5122f09498\",\r\n \"name\": \"dafda0b6-7dc5-4acf-b875-8d5122f09498\",\r\n \"percentComplete\": 100,\r\n \"startTime\": \"2020-10-27T11:50:55.3162298-06:00\",\r\n \"status\": \"Building\"\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-test-rg1151/providers/Microsoft.AVS/privateClouds/avs-sdk-test-cloud3004/operationstatuses/ff3b6e1b-32a0-4513-9740-ebb28ed809f4\",\r\n \"name\": \"ff3b6e1b-32a0-4513-9740-ebb28ed809f4\",\r\n \"percentComplete\": 100,\r\n \"startTime\": \"2021-05-05T12:49:40.9166048-07:00\",\r\n \"status\": \"Building\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-test-rg9020/providers/Microsoft.AVS/privateClouds/avs-sdk-test-cloud5466/operationstatuses/dafda0b6-7dc5-4acf-b875-8d5122f09498?api-version=2020-03-20", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmE3NWU3OWItZGQ5NS00MDI1LTlkYmYtM2E3YWU4ZGZmMmI1L3Jlc291cmNlR3JvdXBzL2F2cy1zZGstdGVzdC1yZzkwMjAvcHJvdmlkZXJzL01pY3Jvc29mdC5BVlMvcHJpdmF0ZUNsb3Vkcy9hdnMtc2RrLXRlc3QtY2xvdWQ1NDY2L29wZXJhdGlvbnN0YXR1c2VzL2RhZmRhMGI2LTdkYzUtNGFjZi1iODc1LThkNTEyMmYwOTQ5OD9hcGktdmVyc2lvbj0yMDIwLTAzLTIw", + "RequestUri": "/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-test-rg1151/providers/Microsoft.AVS/privateClouds/avs-sdk-test-cloud3004/operationstatuses/ff3b6e1b-32a0-4513-9740-ebb28ed809f4?api-version=2021-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmE3NWU3OWItZGQ5NS00MDI1LTlkYmYtM2E3YWU4ZGZmMmI1L3Jlc291cmNlR3JvdXBzL2F2cy1zZGstdGVzdC1yZzExNTEvcHJvdmlkZXJzL01pY3Jvc29mdC5BVlMvcHJpdmF0ZUNsb3Vkcy9hdnMtc2RrLXRlc3QtY2xvdWQzMDA0L29wZXJhdGlvbnN0YXR1c2VzL2ZmM2I2ZTFiLTMyYTAtNDUxMy05NzQwLWViYjI4ZWQ4MDlmND9hcGktdmVyc2lvbj0yMDIxLTA2LTAx", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/4.6.29321.03", + "FxVersion/4.6.29916.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.Avs.AvsClient/1.0.0.preview.2" + "Microsoft.Azure.Management.Avs.AvsClient/1.0.0.1" ] }, "ResponseHeaders": { @@ -897,28 +840,28 @@ "10" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14990" + "14949" ], "x-ms-request-id": [ - "30376c84-0334-4256-90c5-4858b46ec167" + "5ee97094-a078-4770-94c8-1582d09b060e" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "Server": [ - "nginx" - ], "x-ms-correlation-request-id": [ - "a163ef49-b608-4ec0-aa92-111810277c65" + "c47be21a-77d9-4fb9-b46b-123c838b9fc8" ], "x-ms-routing-request-id": [ - "NORTHEUROPE:20201027T175219Z:a163ef49-b608-4ec0-aa92-111810277c65" + "CENTRALUS:20210505T195055Z:c47be21a-77d9-4fb9-b46b-123c838b9fc8" ], "X-Content-Type-Options": [ "nosniff" ], + "X-MSEdge-Ref": [ + "Ref A: 1F6011A2802343DA820270842C243965 Ref B: PDX31EDGE0120 Ref C: 2021-05-05T19:50:55Z" + ], "Date": [ - "Tue, 27 Oct 2020 17:52:18 GMT" + "Wed, 05 May 2021 19:50:54 GMT" ], "Content-Length": [ "347" @@ -930,20 +873,20 @@ "-1" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-test-rg9020/providers/Microsoft.AVS/privateClouds/avs-sdk-test-cloud5466/operationstatuses/dafda0b6-7dc5-4acf-b875-8d5122f09498\",\r\n \"name\": \"dafda0b6-7dc5-4acf-b875-8d5122f09498\",\r\n \"percentComplete\": 100,\r\n \"startTime\": \"2020-10-27T11:50:55.3162298-06:00\",\r\n \"status\": \"Building\"\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-test-rg1151/providers/Microsoft.AVS/privateClouds/avs-sdk-test-cloud3004/operationstatuses/ff3b6e1b-32a0-4513-9740-ebb28ed809f4\",\r\n \"name\": \"ff3b6e1b-32a0-4513-9740-ebb28ed809f4\",\r\n \"percentComplete\": 100,\r\n \"startTime\": \"2021-05-05T12:49:40.9166048-07:00\",\r\n \"status\": \"Building\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-test-rg9020/providers/Microsoft.AVS/privateClouds/avs-sdk-test-cloud5466/operationstatuses/dafda0b6-7dc5-4acf-b875-8d5122f09498?api-version=2020-03-20", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmE3NWU3OWItZGQ5NS00MDI1LTlkYmYtM2E3YWU4ZGZmMmI1L3Jlc291cmNlR3JvdXBzL2F2cy1zZGstdGVzdC1yZzkwMjAvcHJvdmlkZXJzL01pY3Jvc29mdC5BVlMvcHJpdmF0ZUNsb3Vkcy9hdnMtc2RrLXRlc3QtY2xvdWQ1NDY2L29wZXJhdGlvbnN0YXR1c2VzL2RhZmRhMGI2LTdkYzUtNGFjZi1iODc1LThkNTEyMmYwOTQ5OD9hcGktdmVyc2lvbj0yMDIwLTAzLTIw", + "RequestUri": "/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-test-rg1151/providers/Microsoft.AVS/privateClouds/avs-sdk-test-cloud3004/operationstatuses/ff3b6e1b-32a0-4513-9740-ebb28ed809f4?api-version=2021-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmE3NWU3OWItZGQ5NS00MDI1LTlkYmYtM2E3YWU4ZGZmMmI1L3Jlc291cmNlR3JvdXBzL2F2cy1zZGstdGVzdC1yZzExNTEvcHJvdmlkZXJzL01pY3Jvc29mdC5BVlMvcHJpdmF0ZUNsb3Vkcy9hdnMtc2RrLXRlc3QtY2xvdWQzMDA0L29wZXJhdGlvbnN0YXR1c2VzL2ZmM2I2ZTFiLTMyYTAtNDUxMy05NzQwLWViYjI4ZWQ4MDlmND9hcGktdmVyc2lvbj0yMDIxLTA2LTAx", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/4.6.29321.03", + "FxVersion/4.6.29916.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.Avs.AvsClient/1.0.0.preview.2" + "Microsoft.Azure.Management.Avs.AvsClient/1.0.0.1" ] }, "ResponseHeaders": { @@ -957,28 +900,28 @@ "10" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14989" + "14948" ], "x-ms-request-id": [ - "40090139-b0ff-4d90-b6a5-6edc8ea4b3f9" + "2d0c3857-efb0-4f79-a1f1-2c2f562b19c5" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "Server": [ - "nginx" - ], "x-ms-correlation-request-id": [ - "048c04bd-1698-4420-979a-b6a158524d95" + "ffd8f7fd-7040-49f5-9fc0-a2cbd156d71b" ], "x-ms-routing-request-id": [ - "NORTHEUROPE:20201027T175229Z:048c04bd-1698-4420-979a-b6a158524d95" + "CENTRALUS:20210505T195105Z:ffd8f7fd-7040-49f5-9fc0-a2cbd156d71b" ], "X-Content-Type-Options": [ "nosniff" ], + "X-MSEdge-Ref": [ + "Ref A: BCCE59460D414C89A91DCB2B59A28D89 Ref B: PDX31EDGE0120 Ref C: 2021-05-05T19:51:05Z" + ], "Date": [ - "Tue, 27 Oct 2020 17:52:28 GMT" + "Wed, 05 May 2021 19:51:04 GMT" ], "Content-Length": [ "347" @@ -990,20 +933,20 @@ "-1" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-test-rg9020/providers/Microsoft.AVS/privateClouds/avs-sdk-test-cloud5466/operationstatuses/dafda0b6-7dc5-4acf-b875-8d5122f09498\",\r\n \"name\": \"dafda0b6-7dc5-4acf-b875-8d5122f09498\",\r\n \"percentComplete\": 100,\r\n \"startTime\": \"2020-10-27T11:50:55.3162298-06:00\",\r\n \"status\": \"Building\"\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-test-rg1151/providers/Microsoft.AVS/privateClouds/avs-sdk-test-cloud3004/operationstatuses/ff3b6e1b-32a0-4513-9740-ebb28ed809f4\",\r\n \"name\": \"ff3b6e1b-32a0-4513-9740-ebb28ed809f4\",\r\n \"percentComplete\": 100,\r\n \"startTime\": \"2021-05-05T12:49:40.9166048-07:00\",\r\n \"status\": \"Building\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-test-rg9020/providers/Microsoft.AVS/privateClouds/avs-sdk-test-cloud5466/operationstatuses/dafda0b6-7dc5-4acf-b875-8d5122f09498?api-version=2020-03-20", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmE3NWU3OWItZGQ5NS00MDI1LTlkYmYtM2E3YWU4ZGZmMmI1L3Jlc291cmNlR3JvdXBzL2F2cy1zZGstdGVzdC1yZzkwMjAvcHJvdmlkZXJzL01pY3Jvc29mdC5BVlMvcHJpdmF0ZUNsb3Vkcy9hdnMtc2RrLXRlc3QtY2xvdWQ1NDY2L29wZXJhdGlvbnN0YXR1c2VzL2RhZmRhMGI2LTdkYzUtNGFjZi1iODc1LThkNTEyMmYwOTQ5OD9hcGktdmVyc2lvbj0yMDIwLTAzLTIw", + "RequestUri": "/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-test-rg1151/providers/Microsoft.AVS/privateClouds/avs-sdk-test-cloud3004/operationstatuses/ff3b6e1b-32a0-4513-9740-ebb28ed809f4?api-version=2021-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmE3NWU3OWItZGQ5NS00MDI1LTlkYmYtM2E3YWU4ZGZmMmI1L3Jlc291cmNlR3JvdXBzL2F2cy1zZGstdGVzdC1yZzExNTEvcHJvdmlkZXJzL01pY3Jvc29mdC5BVlMvcHJpdmF0ZUNsb3Vkcy9hdnMtc2RrLXRlc3QtY2xvdWQzMDA0L29wZXJhdGlvbnN0YXR1c2VzL2ZmM2I2ZTFiLTMyYTAtNDUxMy05NzQwLWViYjI4ZWQ4MDlmND9hcGktdmVyc2lvbj0yMDIxLTA2LTAx", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/4.6.29321.03", + "FxVersion/4.6.29916.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.Avs.AvsClient/1.0.0.preview.2" + "Microsoft.Azure.Management.Avs.AvsClient/1.0.0.1" ] }, "ResponseHeaders": { @@ -1017,28 +960,28 @@ "10" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14988" + "14947" ], "x-ms-request-id": [ - "81c7d73f-25d9-4916-a4cc-113c76f3f4e0" + "84233e03-995d-422a-88b9-b19adb42eb3a" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "Server": [ - "nginx" - ], "x-ms-correlation-request-id": [ - "da5a1977-21ab-4626-b18a-6d4e62356f5d" + "92876e76-1a64-4bdd-91c3-25284d099e09" ], "x-ms-routing-request-id": [ - "NORTHEUROPE:20201027T175239Z:da5a1977-21ab-4626-b18a-6d4e62356f5d" + "CENTRALUS:20210505T195116Z:92876e76-1a64-4bdd-91c3-25284d099e09" ], "X-Content-Type-Options": [ "nosniff" ], + "X-MSEdge-Ref": [ + "Ref A: BD928A5FC3BE488A908682A2D5FA3706 Ref B: PDX31EDGE0120 Ref C: 2021-05-05T19:51:15Z" + ], "Date": [ - "Tue, 27 Oct 2020 17:52:39 GMT" + "Wed, 05 May 2021 19:51:15 GMT" ], "Content-Length": [ "347" @@ -1050,20 +993,20 @@ "-1" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-test-rg9020/providers/Microsoft.AVS/privateClouds/avs-sdk-test-cloud5466/operationstatuses/dafda0b6-7dc5-4acf-b875-8d5122f09498\",\r\n \"name\": \"dafda0b6-7dc5-4acf-b875-8d5122f09498\",\r\n \"percentComplete\": 100,\r\n \"startTime\": \"2020-10-27T11:50:55.3162298-06:00\",\r\n \"status\": \"Building\"\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-test-rg1151/providers/Microsoft.AVS/privateClouds/avs-sdk-test-cloud3004/operationstatuses/ff3b6e1b-32a0-4513-9740-ebb28ed809f4\",\r\n \"name\": \"ff3b6e1b-32a0-4513-9740-ebb28ed809f4\",\r\n \"percentComplete\": 100,\r\n \"startTime\": \"2021-05-05T12:49:40.9166048-07:00\",\r\n \"status\": \"Building\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-test-rg9020/providers/Microsoft.AVS/privateClouds/avs-sdk-test-cloud5466/operationstatuses/dafda0b6-7dc5-4acf-b875-8d5122f09498?api-version=2020-03-20", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmE3NWU3OWItZGQ5NS00MDI1LTlkYmYtM2E3YWU4ZGZmMmI1L3Jlc291cmNlR3JvdXBzL2F2cy1zZGstdGVzdC1yZzkwMjAvcHJvdmlkZXJzL01pY3Jvc29mdC5BVlMvcHJpdmF0ZUNsb3Vkcy9hdnMtc2RrLXRlc3QtY2xvdWQ1NDY2L29wZXJhdGlvbnN0YXR1c2VzL2RhZmRhMGI2LTdkYzUtNGFjZi1iODc1LThkNTEyMmYwOTQ5OD9hcGktdmVyc2lvbj0yMDIwLTAzLTIw", + "RequestUri": "/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-test-rg1151/providers/Microsoft.AVS/privateClouds/avs-sdk-test-cloud3004/operationstatuses/ff3b6e1b-32a0-4513-9740-ebb28ed809f4?api-version=2021-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmE3NWU3OWItZGQ5NS00MDI1LTlkYmYtM2E3YWU4ZGZmMmI1L3Jlc291cmNlR3JvdXBzL2F2cy1zZGstdGVzdC1yZzExNTEvcHJvdmlkZXJzL01pY3Jvc29mdC5BVlMvcHJpdmF0ZUNsb3Vkcy9hdnMtc2RrLXRlc3QtY2xvdWQzMDA0L29wZXJhdGlvbnN0YXR1c2VzL2ZmM2I2ZTFiLTMyYTAtNDUxMy05NzQwLWViYjI4ZWQ4MDlmND9hcGktdmVyc2lvbj0yMDIxLTA2LTAx", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/4.6.29321.03", + "FxVersion/4.6.29916.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.Avs.AvsClient/1.0.0.preview.2" + "Microsoft.Azure.Management.Avs.AvsClient/1.0.0.1" ] }, "ResponseHeaders": { @@ -1077,28 +1020,28 @@ "10" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14987" + "14946" ], "x-ms-request-id": [ - "022c7cc6-428c-487c-8814-ac9db350bb85" + "003cf123-4389-4f91-8f1a-327f9dbcfa38" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "Server": [ - "nginx" - ], "x-ms-correlation-request-id": [ - "001f7ddf-98e2-4325-b2be-a3166797f61d" + "6b9357e5-155a-4cb8-bda7-cc3ba05a4bdf" ], "x-ms-routing-request-id": [ - "NORTHEUROPE:20201027T175249Z:001f7ddf-98e2-4325-b2be-a3166797f61d" + "CENTRALUS:20210505T195126Z:6b9357e5-155a-4cb8-bda7-cc3ba05a4bdf" ], "X-Content-Type-Options": [ "nosniff" ], + "X-MSEdge-Ref": [ + "Ref A: E12BF204D2F54193AED34E5E38E84EC9 Ref B: PDX31EDGE0120 Ref C: 2021-05-05T19:51:26Z" + ], "Date": [ - "Tue, 27 Oct 2020 17:52:49 GMT" + "Wed, 05 May 2021 19:51:25 GMT" ], "Content-Length": [ "347" @@ -1110,20 +1053,20 @@ "-1" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-test-rg9020/providers/Microsoft.AVS/privateClouds/avs-sdk-test-cloud5466/operationstatuses/dafda0b6-7dc5-4acf-b875-8d5122f09498\",\r\n \"name\": \"dafda0b6-7dc5-4acf-b875-8d5122f09498\",\r\n \"percentComplete\": 100,\r\n \"startTime\": \"2020-10-27T11:50:55.3162298-06:00\",\r\n \"status\": \"Building\"\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-test-rg1151/providers/Microsoft.AVS/privateClouds/avs-sdk-test-cloud3004/operationstatuses/ff3b6e1b-32a0-4513-9740-ebb28ed809f4\",\r\n \"name\": \"ff3b6e1b-32a0-4513-9740-ebb28ed809f4\",\r\n \"percentComplete\": 100,\r\n \"startTime\": \"2021-05-05T12:49:40.9166048-07:00\",\r\n \"status\": \"Building\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-test-rg9020/providers/Microsoft.AVS/privateClouds/avs-sdk-test-cloud5466/operationstatuses/dafda0b6-7dc5-4acf-b875-8d5122f09498?api-version=2020-03-20", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmE3NWU3OWItZGQ5NS00MDI1LTlkYmYtM2E3YWU4ZGZmMmI1L3Jlc291cmNlR3JvdXBzL2F2cy1zZGstdGVzdC1yZzkwMjAvcHJvdmlkZXJzL01pY3Jvc29mdC5BVlMvcHJpdmF0ZUNsb3Vkcy9hdnMtc2RrLXRlc3QtY2xvdWQ1NDY2L29wZXJhdGlvbnN0YXR1c2VzL2RhZmRhMGI2LTdkYzUtNGFjZi1iODc1LThkNTEyMmYwOTQ5OD9hcGktdmVyc2lvbj0yMDIwLTAzLTIw", + "RequestUri": "/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-test-rg1151/providers/Microsoft.AVS/privateClouds/avs-sdk-test-cloud3004/operationstatuses/ff3b6e1b-32a0-4513-9740-ebb28ed809f4?api-version=2021-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmE3NWU3OWItZGQ5NS00MDI1LTlkYmYtM2E3YWU4ZGZmMmI1L3Jlc291cmNlR3JvdXBzL2F2cy1zZGstdGVzdC1yZzExNTEvcHJvdmlkZXJzL01pY3Jvc29mdC5BVlMvcHJpdmF0ZUNsb3Vkcy9hdnMtc2RrLXRlc3QtY2xvdWQzMDA0L29wZXJhdGlvbnN0YXR1c2VzL2ZmM2I2ZTFiLTMyYTAtNDUxMy05NzQwLWViYjI4ZWQ4MDlmND9hcGktdmVyc2lvbj0yMDIxLTA2LTAx", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/4.6.29321.03", + "FxVersion/4.6.29916.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.Avs.AvsClient/1.0.0.preview.2" + "Microsoft.Azure.Management.Avs.AvsClient/1.0.0.1" ] }, "ResponseHeaders": { @@ -1137,28 +1080,28 @@ "10" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14986" + "14945" ], "x-ms-request-id": [ - "0cda999f-c676-4587-bf36-69aec3650c90" + "78cee32a-e76d-4357-91bd-a188827051b9" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "Server": [ - "nginx" - ], "x-ms-correlation-request-id": [ - "bb83a37d-a653-4e4d-a75b-4937618ac496" + "f4ec63cb-763b-4198-bf11-53a6d1f41299" ], "x-ms-routing-request-id": [ - "NORTHEUROPE:20201027T175300Z:bb83a37d-a653-4e4d-a75b-4937618ac496" + "CENTRALUS:20210505T195136Z:f4ec63cb-763b-4198-bf11-53a6d1f41299" ], "X-Content-Type-Options": [ "nosniff" ], + "X-MSEdge-Ref": [ + "Ref A: CB4A6732DB194373B473738E0C9B84E3 Ref B: PDX31EDGE0120 Ref C: 2021-05-05T19:51:36Z" + ], "Date": [ - "Tue, 27 Oct 2020 17:52:59 GMT" + "Wed, 05 May 2021 19:51:35 GMT" ], "Content-Length": [ "1970" @@ -1170,20 +1113,20 @@ "-1" ] }, - "ResponseBody": "{\r\n \"endTime\": \"2020-10-27T11:52:49.2525336-06:00\",\r\n \"id\": \"/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-test-rg9020/providers/Microsoft.AVS/privateClouds/avs-sdk-test-cloud5466/operationstatuses/dafda0b6-7dc5-4acf-b875-8d5122f09498\",\r\n \"name\": \"dafda0b6-7dc5-4acf-b875-8d5122f09498\",\r\n \"percentComplete\": 100,\r\n \"properties\": {\r\n \"id\": \"/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-test-rg9020/providers/Microsoft.AVS/privateClouds/avs-sdk-test-cloud5466\",\r\n \"location\": \"centralus\",\r\n \"name\": \"avs-sdk-test-cloud5466\",\r\n \"properties\": {\r\n \"circuit\": {\r\n \"expressRouteID\": \"/subscriptions/5206f269-120b-41ef-a95b-0dce7109de61/resourceGroups/tnt49-cust-mp01-mock01/providers/Microsoft.Network/expressRouteCircuits/tnt49-cust-mp01-mock01-er\",\r\n \"expressRoutePrivatePeeringID\": \"/subscriptions/5206f269-120b-41ef-a95b-0dce7109de61/resourceGroups/tnt49-cust-mp01-mock01/providers/Microsoft.Network/expressRouteCircuits/tnt49-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 \"endpoints\": {\r\n \"hcxCloudManager\": \"https://192.168.48.9/\",\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 \"managementCluster\": {\r\n \"clusterId\": 1,\r\n \"clusterSize\": 4,\r\n \"hosts\": [\r\n \"gp-fakehost10.mp01.mock01.vmcp.vs.management\",\r\n \"gp-fakehost35.mp01.mock01.vmcp.vs.management\",\r\n \"gp-fakehost34.mp01.mock01.vmcp.vs.management\",\r\n \"gp-fakehost36.mp01.mock01.vmcp.vs.management\"\r\n ],\r\n \"provisioningState\": \"Succeeded\"\r\n },\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 \"startTime\": \"2020-10-27T11:50:55.3162298-06:00\",\r\n \"status\": \"Succeeded\"\r\n}", + "ResponseBody": "{\r\n \"endTime\": \"2021-05-05T12:51:27.2163199-07:00\",\r\n \"id\": \"/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-test-rg1151/providers/Microsoft.AVS/privateClouds/avs-sdk-test-cloud3004/operationstatuses/ff3b6e1b-32a0-4513-9740-ebb28ed809f4\",\r\n \"name\": \"ff3b6e1b-32a0-4513-9740-ebb28ed809f4\",\r\n \"percentComplete\": 100,\r\n \"properties\": {\r\n \"id\": \"/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-test-rg1151/providers/Microsoft.AVS/privateClouds/avs-sdk-test-cloud3004\",\r\n \"location\": \"centralus\",\r\n \"name\": \"avs-sdk-test-cloud3004\",\r\n \"properties\": {\r\n \"circuit\": {\r\n \"expressRouteID\": \"/subscriptions/7f1fae41-7708-4fa4-89b3-f6552cad2fc1/resourceGroups/tnt34-cust-mp01-mock01/providers/Microsoft.Network/expressRouteCircuits/tnt34-cust-mp01-mock01-er\",\r\n \"expressRoutePrivatePeeringID\": \"/subscriptions/7f1fae41-7708-4fa4-89b3-f6552cad2fc1/resourceGroups/tnt34-cust-mp01-mock01/providers/Microsoft.Network/expressRouteCircuits/tnt34-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 \"endpoints\": {\r\n \"hcxCloudManager\": \"https://192.168.48.9/\",\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 \"managementCluster\": {\r\n \"clusterId\": 1,\r\n \"clusterSize\": 4,\r\n \"hosts\": [\r\n \"gp-fakehost34.mp01.mock01.vmcp.vs.management\",\r\n \"gp-fakehost19.mp01.mock01.vmcp.vs.management\",\r\n \"gp-fakehost17.mp01.mock01.vmcp.vs.management\",\r\n \"gp-fakehost24.mp01.mock01.vmcp.vs.management\"\r\n ],\r\n \"provisioningState\": \"Succeeded\"\r\n },\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 \"startTime\": \"2021-05-05T12:49:40.9166048-07:00\",\r\n \"status\": \"Succeeded\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-test-rg9020/providers/Microsoft.AVS/privateClouds/avs-sdk-test-cloud5466?api-version=2020-03-20", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmE3NWU3OWItZGQ5NS00MDI1LTlkYmYtM2E3YWU4ZGZmMmI1L3Jlc291cmNlR3JvdXBzL2F2cy1zZGstdGVzdC1yZzkwMjAvcHJvdmlkZXJzL01pY3Jvc29mdC5BVlMvcHJpdmF0ZUNsb3Vkcy9hdnMtc2RrLXRlc3QtY2xvdWQ1NDY2P2FwaS12ZXJzaW9uPTIwMjAtMDMtMjA=", + "RequestUri": "/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-test-rg1151/providers/Microsoft.AVS/privateClouds/avs-sdk-test-cloud3004?api-version=2021-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmE3NWU3OWItZGQ5NS00MDI1LTlkYmYtM2E3YWU4ZGZmMmI1L3Jlc291cmNlR3JvdXBzL2F2cy1zZGstdGVzdC1yZzExNTEvcHJvdmlkZXJzL01pY3Jvc29mdC5BVlMvcHJpdmF0ZUNsb3Vkcy9hdnMtc2RrLXRlc3QtY2xvdWQzMDA0P2FwaS12ZXJzaW9uPTIwMjEtMDYtMDE=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/4.6.29321.03", + "FxVersion/4.6.29916.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.Avs.AvsClient/1.0.0.preview.2" + "Microsoft.Azure.Management.Avs.AvsClient/1.0.0.1" ] }, "ResponseHeaders": { @@ -1194,28 +1137,28 @@ "no-cache" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14985" + "14944" ], "x-ms-request-id": [ - "c2b6dd1d-4578-4b60-8f1b-303f88fee931" + "23bb0de7-2ddc-4b9c-bee9-d6a778ab8fb1" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "Server": [ - "nginx" - ], "x-ms-correlation-request-id": [ - "1c9622cf-5e7a-495a-bac1-607e9df97be8" + "0effb7aa-6786-4ac9-b0c0-1c5818fe501c" ], "x-ms-routing-request-id": [ - "NORTHEUROPE:20201027T175300Z:1c9622cf-5e7a-495a-bac1-607e9df97be8" + "CENTRALUS:20210505T195137Z:0effb7aa-6786-4ac9-b0c0-1c5818fe501c" ], "X-Content-Type-Options": [ "nosniff" ], + "X-MSEdge-Ref": [ + "Ref A: 4C7CC7CF1BBC43268861403555C75A3A Ref B: PDX31EDGE0120 Ref C: 2021-05-05T19:51:36Z" + ], "Date": [ - "Tue, 27 Oct 2020 17:52:59 GMT" + "Wed, 05 May 2021 19:51:36 GMT" ], "Content-Length": [ "1562" @@ -1227,26 +1170,26 @@ "-1" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-test-rg9020/providers/Microsoft.AVS/privateClouds/avs-sdk-test-cloud5466\",\r\n \"location\": \"centralus\",\r\n \"name\": \"avs-sdk-test-cloud5466\",\r\n \"properties\": {\r\n \"circuit\": {\r\n \"expressRouteID\": \"/subscriptions/5206f269-120b-41ef-a95b-0dce7109de61/resourceGroups/tnt49-cust-mp01-mock01/providers/Microsoft.Network/expressRouteCircuits/tnt49-cust-mp01-mock01-er\",\r\n \"expressRoutePrivatePeeringID\": \"/subscriptions/5206f269-120b-41ef-a95b-0dce7109de61/resourceGroups/tnt49-cust-mp01-mock01/providers/Microsoft.Network/expressRouteCircuits/tnt49-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 \"endpoints\": {\r\n \"hcxCloudManager\": \"https://192.168.48.9/\",\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 \"managementCluster\": {\r\n \"clusterId\": 1,\r\n \"clusterSize\": 4,\r\n \"hosts\": [\r\n \"gp-fakehost10.mp01.mock01.vmcp.vs.management\",\r\n \"gp-fakehost35.mp01.mock01.vmcp.vs.management\",\r\n \"gp-fakehost34.mp01.mock01.vmcp.vs.management\",\r\n \"gp-fakehost36.mp01.mock01.vmcp.vs.management\"\r\n ],\r\n \"provisioningState\": \"Succeeded\"\r\n },\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}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-test-rg1151/providers/Microsoft.AVS/privateClouds/avs-sdk-test-cloud3004\",\r\n \"location\": \"centralus\",\r\n \"name\": \"avs-sdk-test-cloud3004\",\r\n \"properties\": {\r\n \"circuit\": {\r\n \"expressRouteID\": \"/subscriptions/7f1fae41-7708-4fa4-89b3-f6552cad2fc1/resourceGroups/tnt34-cust-mp01-mock01/providers/Microsoft.Network/expressRouteCircuits/tnt34-cust-mp01-mock01-er\",\r\n \"expressRoutePrivatePeeringID\": \"/subscriptions/7f1fae41-7708-4fa4-89b3-f6552cad2fc1/resourceGroups/tnt34-cust-mp01-mock01/providers/Microsoft.Network/expressRouteCircuits/tnt34-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 \"endpoints\": {\r\n \"hcxCloudManager\": \"https://192.168.48.9/\",\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 \"managementCluster\": {\r\n \"clusterId\": 1,\r\n \"clusterSize\": 4,\r\n \"hosts\": [\r\n \"gp-fakehost34.mp01.mock01.vmcp.vs.management\",\r\n \"gp-fakehost19.mp01.mock01.vmcp.vs.management\",\r\n \"gp-fakehost17.mp01.mock01.vmcp.vs.management\",\r\n \"gp-fakehost24.mp01.mock01.vmcp.vs.management\"\r\n ],\r\n \"provisioningState\": \"Succeeded\"\r\n },\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-rg9020/providers/Microsoft.AVS/privateClouds/avs-sdk-test-cloud5466/hcxEnterpriseSites?api-version=2020-03-20", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmE3NWU3OWItZGQ5NS00MDI1LTlkYmYtM2E3YWU4ZGZmMmI1L3Jlc291cmNlR3JvdXBzL2F2cy1zZGstdGVzdC1yZzkwMjAvcHJvdmlkZXJzL01pY3Jvc29mdC5BVlMvcHJpdmF0ZUNsb3Vkcy9hdnMtc2RrLXRlc3QtY2xvdWQ1NDY2L2hjeEVudGVycHJpc2VTaXRlcz9hcGktdmVyc2lvbj0yMDIwLTAzLTIw", + "RequestUri": "/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-test-rg1151/providers/Microsoft.AVS/privateClouds/avs-sdk-test-cloud3004/hcxEnterpriseSites?api-version=2021-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmE3NWU3OWItZGQ5NS00MDI1LTlkYmYtM2E3YWU4ZGZmMmI1L3Jlc291cmNlR3JvdXBzL2F2cy1zZGstdGVzdC1yZzExNTEvcHJvdmlkZXJzL01pY3Jvc29mdC5BVlMvcHJpdmF0ZUNsb3Vkcy9hdnMtc2RrLXRlc3QtY2xvdWQzMDA0L2hjeEVudGVycHJpc2VTaXRlcz9hcGktdmVyc2lvbj0yMDIxLTA2LTAx", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "67651c29-41d0-4a58-9dd6-1fd668598460" + "fe09fbd8-94e2-48b8-9ad4-15cfeb552781" ], "Accept-Language": [ "en-US" ], "User-Agent": [ - "FxVersion/4.6.29321.03", + "FxVersion/4.6.29916.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.Avs.AvsClient/1.0.0.preview.2" + "Microsoft.Azure.Management.Avs.AvsClient/1.0.0.1" ] }, "ResponseHeaders": { @@ -1257,28 +1200,28 @@ "no-cache" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14984" + "14943" ], "x-ms-request-id": [ - "1db9de0b-bcfc-43d8-be72-00550190ebdd" + "d002c448-be62-4448-8b9c-74dad95ccbe3" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "Server": [ - "nginx" - ], "x-ms-correlation-request-id": [ - "a8f217bc-fd33-49aa-9c25-8758168ffd3c" + "9cba2795-2a41-46a8-8884-13711d62b522" ], "x-ms-routing-request-id": [ - "NORTHEUROPE:20201027T175300Z:a8f217bc-fd33-49aa-9c25-8758168ffd3c" + "CENTRALUS:20210505T195137Z:9cba2795-2a41-46a8-8884-13711d62b522" ], "X-Content-Type-Options": [ "nosniff" ], + "X-MSEdge-Ref": [ + "Ref A: B0EFFF63D19043BAAF4EE147E910B688 Ref B: PDX31EDGE0120 Ref C: 2021-05-05T19:51:37Z" + ], "Date": [ - "Tue, 27 Oct 2020 17:53:00 GMT" + "Wed, 05 May 2021 19:51:36 GMT" ], "Content-Length": [ "12" @@ -1294,22 +1237,22 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-test-rg9020/providers/Microsoft.AVS/privateClouds/avs-sdk-test-cloud5466/hcxEnterpriseSites?api-version=2020-03-20", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmE3NWU3OWItZGQ5NS00MDI1LTlkYmYtM2E3YWU4ZGZmMmI1L3Jlc291cmNlR3JvdXBzL2F2cy1zZGstdGVzdC1yZzkwMjAvcHJvdmlkZXJzL01pY3Jvc29mdC5BVlMvcHJpdmF0ZUNsb3Vkcy9hdnMtc2RrLXRlc3QtY2xvdWQ1NDY2L2hjeEVudGVycHJpc2VTaXRlcz9hcGktdmVyc2lvbj0yMDIwLTAzLTIw", + "RequestUri": "/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-test-rg1151/providers/Microsoft.AVS/privateClouds/avs-sdk-test-cloud3004/hcxEnterpriseSites?api-version=2021-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmE3NWU3OWItZGQ5NS00MDI1LTlkYmYtM2E3YWU4ZGZmMmI1L3Jlc291cmNlR3JvdXBzL2F2cy1zZGstdGVzdC1yZzExNTEvcHJvdmlkZXJzL01pY3Jvc29mdC5BVlMvcHJpdmF0ZUNsb3Vkcy9hdnMtc2RrLXRlc3QtY2xvdWQzMDA0L2hjeEVudGVycHJpc2VTaXRlcz9hcGktdmVyc2lvbj0yMDIxLTA2LTAx", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "0ae8d4f5-3c8f-4ea0-8def-a93d5c88c4bd" + "a81a7240-b4c7-40cc-9344-614e04175f2e" ], "Accept-Language": [ "en-US" ], "User-Agent": [ - "FxVersion/4.6.29321.03", + "FxVersion/4.6.29916.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.Avs.AvsClient/1.0.0.preview.2" + "Microsoft.Azure.Management.Avs.AvsClient/1.0.0.1" ] }, "ResponseHeaders": { @@ -1320,31 +1263,31 @@ "no-cache" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14982" + "14941" ], "x-ms-request-id": [ - "d49461b1-83c9-469e-a979-dac889a4c32b" + "ad0d30f1-3ecf-48a2-aa72-75155950180a" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "Server": [ - "nginx" - ], "x-ms-correlation-request-id": [ - "7704dcfa-5637-4b4d-b6c0-804ccd96e583" + "d9c7294f-4894-4092-8329-1c3c99c47d3d" ], "x-ms-routing-request-id": [ - "NORTHEUROPE:20201027T175302Z:7704dcfa-5637-4b4d-b6c0-804ccd96e583" + "CENTRALUS:20210505T195138Z:d9c7294f-4894-4092-8329-1c3c99c47d3d" ], "X-Content-Type-Options": [ "nosniff" ], + "X-MSEdge-Ref": [ + "Ref A: B064C098ED2246429258665F2E869E69 Ref B: PDX31EDGE0120 Ref C: 2021-05-05T19:51:38Z" + ], "Date": [ - "Tue, 27 Oct 2020 17:53:01 GMT" + "Wed, 05 May 2021 19:51:37 GMT" ], "Content-Length": [ - "387" + "391" ], "Content-Type": [ "application/json; charset=utf-8" @@ -1353,26 +1296,26 @@ "-1" ] }, - "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-test-rg9020/providers/Microsoft.AVS/privateClouds/avs-sdk-test-cloud5466/hcxEnterpriseSites/avs-sdk-test-hcx-site18\",\r\n \"name\": \"avs-sdk-test-hcx-site18\",\r\n \"properties\": {\r\n \"activationKey\": \"138da4d3390944dc928a57b559efda6d\",\r\n \"status\": \"Available\"\r\n },\r\n \"type\": \"Microsoft.AVS/privateClouds/hcxEnterpriseSites\"\r\n }\r\n ]\r\n}", + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-test-rg1151/providers/Microsoft.AVS/privateClouds/avs-sdk-test-cloud3004/hcxEnterpriseSites/avs-sdk-test-hcx-site8529\",\r\n \"name\": \"avs-sdk-test-hcx-site8529\",\r\n \"properties\": {\r\n \"activationKey\": \"e017f576cf5949ce8c8b0af2dff6aeae\",\r\n \"status\": \"Available\"\r\n },\r\n \"type\": \"Microsoft.AVS/privateClouds/hcxEnterpriseSites\"\r\n }\r\n ]\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-test-rg9020/providers/Microsoft.AVS/privateClouds/avs-sdk-test-cloud5466/hcxEnterpriseSites/avs-sdk-test-hcx-site18?api-version=2020-03-20", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmE3NWU3OWItZGQ5NS00MDI1LTlkYmYtM2E3YWU4ZGZmMmI1L3Jlc291cmNlR3JvdXBzL2F2cy1zZGstdGVzdC1yZzkwMjAvcHJvdmlkZXJzL01pY3Jvc29mdC5BVlMvcHJpdmF0ZUNsb3Vkcy9hdnMtc2RrLXRlc3QtY2xvdWQ1NDY2L2hjeEVudGVycHJpc2VTaXRlcy9hdnMtc2RrLXRlc3QtaGN4LXNpdGUxOD9hcGktdmVyc2lvbj0yMDIwLTAzLTIw", + "RequestUri": "/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-test-rg1151/providers/Microsoft.AVS/privateClouds/avs-sdk-test-cloud3004/hcxEnterpriseSites/avs-sdk-test-hcx-site8529?api-version=2021-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmE3NWU3OWItZGQ5NS00MDI1LTlkYmYtM2E3YWU4ZGZmMmI1L3Jlc291cmNlR3JvdXBzL2F2cy1zZGstdGVzdC1yZzExNTEvcHJvdmlkZXJzL01pY3Jvc29mdC5BVlMvcHJpdmF0ZUNsb3Vkcy9hdnMtc2RrLXRlc3QtY2xvdWQzMDA0L2hjeEVudGVycHJpc2VTaXRlcy9hdnMtc2RrLXRlc3QtaGN4LXNpdGU4NTI5P2FwaS12ZXJzaW9uPTIwMjEtMDYtMDE=", "RequestMethod": "PUT", "RequestBody": "{}", "RequestHeaders": { "x-ms-client-request-id": [ - "64519199-7a67-4d01-a449-37578db8f84e" + "971e73d7-bd5e-40e5-b419-c9f8c1aa71f8" ], "Accept-Language": [ "en-US" ], "User-Agent": [ - "FxVersion/4.6.29321.03", + "FxVersion/4.6.29916.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.Avs.AvsClient/1.0.0.preview.2" + "Microsoft.Azure.Management.Avs.AvsClient/1.0.0.1" ], "Content-Type": [ "application/json; charset=utf-8" @@ -1389,31 +1332,31 @@ "no-cache" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1198" + "1194" ], "x-ms-request-id": [ - "d5e04829-8c13-4aaa-ae76-d4b3534cfb28" + "2b911d6e-2e42-45f0-8336-7c2546b8160c" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "Server": [ - "nginx" - ], "x-ms-correlation-request-id": [ - "79a02e52-2b88-401c-952b-b8af05d9d618" + "68da7206-7442-447d-b652-75777eb85625" ], "x-ms-routing-request-id": [ - "NORTHEUROPE:20201027T175301Z:79a02e52-2b88-401c-952b-b8af05d9d618" + "CENTRALUS:20210505T195138Z:68da7206-7442-447d-b652-75777eb85625" ], "X-Content-Type-Options": [ "nosniff" ], + "X-MSEdge-Ref": [ + "Ref A: D306FDD661D942CA8280D93A0F2FB9D3 Ref B: PDX31EDGE0120 Ref C: 2021-05-05T19:51:37Z" + ], "Date": [ - "Tue, 27 Oct 2020 17:53:00 GMT" + "Wed, 05 May 2021 19:51:37 GMT" ], "Content-Length": [ - "375" + "379" ], "Content-Type": [ "application/json; charset=utf-8" @@ -1422,26 +1365,26 @@ "-1" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-test-rg9020/providers/Microsoft.AVS/privateClouds/avs-sdk-test-cloud5466/hcxEnterpriseSites/avs-sdk-test-hcx-site18\",\r\n \"name\": \"avs-sdk-test-hcx-site18\",\r\n \"properties\": {\r\n \"activationKey\": \"138da4d3390944dc928a57b559efda6d\",\r\n \"status\": \"Available\"\r\n },\r\n \"type\": \"Microsoft.AVS/privateClouds/hcxEnterpriseSites\"\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-test-rg1151/providers/Microsoft.AVS/privateClouds/avs-sdk-test-cloud3004/hcxEnterpriseSites/avs-sdk-test-hcx-site8529\",\r\n \"name\": \"avs-sdk-test-hcx-site8529\",\r\n \"properties\": {\r\n \"activationKey\": \"e017f576cf5949ce8c8b0af2dff6aeae\",\r\n \"status\": \"Available\"\r\n },\r\n \"type\": \"Microsoft.AVS/privateClouds/hcxEnterpriseSites\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-test-rg9020/providers/Microsoft.AVS/privateClouds/avs-sdk-test-cloud5466/hcxEnterpriseSites/avs-sdk-test-hcx-site18?api-version=2020-03-20", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmE3NWU3OWItZGQ5NS00MDI1LTlkYmYtM2E3YWU4ZGZmMmI1L3Jlc291cmNlR3JvdXBzL2F2cy1zZGstdGVzdC1yZzkwMjAvcHJvdmlkZXJzL01pY3Jvc29mdC5BVlMvcHJpdmF0ZUNsb3Vkcy9hdnMtc2RrLXRlc3QtY2xvdWQ1NDY2L2hjeEVudGVycHJpc2VTaXRlcy9hdnMtc2RrLXRlc3QtaGN4LXNpdGUxOD9hcGktdmVyc2lvbj0yMDIwLTAzLTIw", + "RequestUri": "/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-test-rg1151/providers/Microsoft.AVS/privateClouds/avs-sdk-test-cloud3004/hcxEnterpriseSites/avs-sdk-test-hcx-site8529?api-version=2021-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmE3NWU3OWItZGQ5NS00MDI1LTlkYmYtM2E3YWU4ZGZmMmI1L3Jlc291cmNlR3JvdXBzL2F2cy1zZGstdGVzdC1yZzExNTEvcHJvdmlkZXJzL01pY3Jvc29mdC5BVlMvcHJpdmF0ZUNsb3Vkcy9hdnMtc2RrLXRlc3QtY2xvdWQzMDA0L2hjeEVudGVycHJpc2VTaXRlcy9hdnMtc2RrLXRlc3QtaGN4LXNpdGU4NTI5P2FwaS12ZXJzaW9uPTIwMjEtMDYtMDE=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "394c9a6d-77f5-4eba-a178-20dc485d7a2a" + "13497f28-e41d-42e0-8193-f0e2924b287a" ], "Accept-Language": [ "en-US" ], "User-Agent": [ - "FxVersion/4.6.29321.03", + "FxVersion/4.6.29916.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.Avs.AvsClient/1.0.0.preview.2" + "Microsoft.Azure.Management.Avs.AvsClient/1.0.0.1" ] }, "ResponseHeaders": { @@ -1452,31 +1395,31 @@ "no-cache" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14983" + "14942" ], "x-ms-request-id": [ - "f66f29c9-2b24-4f69-b6e5-0c09dd36be2a" + "f1a3982f-f706-4cf5-b05f-7b3669b38453" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "Server": [ - "nginx" - ], "x-ms-correlation-request-id": [ - "a94e660c-a4da-416f-9900-af59f04697fd" + "7c8900eb-3c94-4951-8b3d-9bd3dc7bed53" ], "x-ms-routing-request-id": [ - "NORTHEUROPE:20201027T175301Z:a94e660c-a4da-416f-9900-af59f04697fd" + "CENTRALUS:20210505T195138Z:7c8900eb-3c94-4951-8b3d-9bd3dc7bed53" ], "X-Content-Type-Options": [ "nosniff" ], + "X-MSEdge-Ref": [ + "Ref A: E211A01B61E747199E14533585D32D4B Ref B: PDX31EDGE0120 Ref C: 2021-05-05T19:51:38Z" + ], "Date": [ - "Tue, 27 Oct 2020 17:53:01 GMT" + "Wed, 05 May 2021 19:51:37 GMT" ], "Content-Length": [ - "375" + "379" ], "Content-Type": [ "application/json; charset=utf-8" @@ -1485,26 +1428,26 @@ "-1" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-test-rg9020/providers/Microsoft.AVS/privateClouds/avs-sdk-test-cloud5466/hcxEnterpriseSites/avs-sdk-test-hcx-site18\",\r\n \"name\": \"avs-sdk-test-hcx-site18\",\r\n \"properties\": {\r\n \"activationKey\": \"138da4d3390944dc928a57b559efda6d\",\r\n \"status\": \"Available\"\r\n },\r\n \"type\": \"Microsoft.AVS/privateClouds/hcxEnterpriseSites\"\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-test-rg1151/providers/Microsoft.AVS/privateClouds/avs-sdk-test-cloud3004/hcxEnterpriseSites/avs-sdk-test-hcx-site8529\",\r\n \"name\": \"avs-sdk-test-hcx-site8529\",\r\n \"properties\": {\r\n \"activationKey\": \"e017f576cf5949ce8c8b0af2dff6aeae\",\r\n \"status\": \"Available\"\r\n },\r\n \"type\": \"Microsoft.AVS/privateClouds/hcxEnterpriseSites\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-test-rg9020/providers/Microsoft.AVS/privateClouds/avs-sdk-test-cloud5466/hcxEnterpriseSites/avs-sdk-test-hcx-site18?api-version=2020-03-20", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmE3NWU3OWItZGQ5NS00MDI1LTlkYmYtM2E3YWU4ZGZmMmI1L3Jlc291cmNlR3JvdXBzL2F2cy1zZGstdGVzdC1yZzkwMjAvcHJvdmlkZXJzL01pY3Jvc29mdC5BVlMvcHJpdmF0ZUNsb3Vkcy9hdnMtc2RrLXRlc3QtY2xvdWQ1NDY2L2hjeEVudGVycHJpc2VTaXRlcy9hdnMtc2RrLXRlc3QtaGN4LXNpdGUxOD9hcGktdmVyc2lvbj0yMDIwLTAzLTIw", + "RequestUri": "/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-test-rg1151/providers/Microsoft.AVS/privateClouds/avs-sdk-test-cloud3004/hcxEnterpriseSites/avs-sdk-test-hcx-site8529?api-version=2021-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmE3NWU3OWItZGQ5NS00MDI1LTlkYmYtM2E3YWU4ZGZmMmI1L3Jlc291cmNlR3JvdXBzL2F2cy1zZGstdGVzdC1yZzExNTEvcHJvdmlkZXJzL01pY3Jvc29mdC5BVlMvcHJpdmF0ZUNsb3Vkcy9hdnMtc2RrLXRlc3QtY2xvdWQzMDA0L2hjeEVudGVycHJpc2VTaXRlcy9hdnMtc2RrLXRlc3QtaGN4LXNpdGU4NTI5P2FwaS12ZXJzaW9uPTIwMjEtMDYtMDE=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "c55436ca-c449-4981-8ec2-77f487f6a397" + "b3776893-d045-48ae-b171-5820d69af935" ], "Accept-Language": [ "en-US" ], "User-Agent": [ - "FxVersion/4.6.29321.03", + "FxVersion/4.6.29916.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.Avs.AvsClient/1.0.0.preview.2" + "Microsoft.Azure.Management.Avs.AvsClient/1.0.0.1" ] }, "ResponseHeaders": { @@ -1515,31 +1458,31 @@ "no-cache" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14981" + "14940" ], "x-ms-request-id": [ - "14fcf3dd-1678-4c9c-b20b-622f97b98781" + "56ee9698-b676-44d0-b602-a94d0a89492e" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "Server": [ - "nginx" - ], "x-ms-correlation-request-id": [ - "72167708-c51c-432b-bbe9-b0acea4eb1fe" + "51b122ec-4741-4a02-b2d6-a4a6e61083bc" ], "x-ms-routing-request-id": [ - "NORTHEUROPE:20201027T175302Z:72167708-c51c-432b-bbe9-b0acea4eb1fe" + "CENTRALUS:20210505T195138Z:51b122ec-4741-4a02-b2d6-a4a6e61083bc" ], "X-Content-Type-Options": [ "nosniff" ], + "X-MSEdge-Ref": [ + "Ref A: D9933095B6D84600A2E8BABC00B23CAA Ref B: PDX31EDGE0120 Ref C: 2021-05-05T19:51:38Z" + ], "Date": [ - "Tue, 27 Oct 2020 17:53:01 GMT" + "Wed, 05 May 2021 19:51:37 GMT" ], "Content-Length": [ - "375" + "379" ], "Content-Type": [ "application/json; charset=utf-8" @@ -1548,26 +1491,26 @@ "-1" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-test-rg9020/providers/Microsoft.AVS/privateClouds/avs-sdk-test-cloud5466/hcxEnterpriseSites/avs-sdk-test-hcx-site18\",\r\n \"name\": \"avs-sdk-test-hcx-site18\",\r\n \"properties\": {\r\n \"activationKey\": \"138da4d3390944dc928a57b559efda6d\",\r\n \"status\": \"Available\"\r\n },\r\n \"type\": \"Microsoft.AVS/privateClouds/hcxEnterpriseSites\"\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-test-rg1151/providers/Microsoft.AVS/privateClouds/avs-sdk-test-cloud3004/hcxEnterpriseSites/avs-sdk-test-hcx-site8529\",\r\n \"name\": \"avs-sdk-test-hcx-site8529\",\r\n \"properties\": {\r\n \"activationKey\": \"e017f576cf5949ce8c8b0af2dff6aeae\",\r\n \"status\": \"Available\"\r\n },\r\n \"type\": \"Microsoft.AVS/privateClouds/hcxEnterpriseSites\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-test-rg9020/providers/Microsoft.AVS/privateClouds/avs-sdk-test-cloud5466/hcxEnterpriseSites/avs-sdk-test-hcx-site18?api-version=2020-03-20", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmE3NWU3OWItZGQ5NS00MDI1LTlkYmYtM2E3YWU4ZGZmMmI1L3Jlc291cmNlR3JvdXBzL2F2cy1zZGstdGVzdC1yZzkwMjAvcHJvdmlkZXJzL01pY3Jvc29mdC5BVlMvcHJpdmF0ZUNsb3Vkcy9hdnMtc2RrLXRlc3QtY2xvdWQ1NDY2L2hjeEVudGVycHJpc2VTaXRlcy9hdnMtc2RrLXRlc3QtaGN4LXNpdGUxOD9hcGktdmVyc2lvbj0yMDIwLTAzLTIw", + "RequestUri": "/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-test-rg1151/providers/Microsoft.AVS/privateClouds/avs-sdk-test-cloud3004/hcxEnterpriseSites/avs-sdk-test-hcx-site8529?api-version=2021-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmE3NWU3OWItZGQ5NS00MDI1LTlkYmYtM2E3YWU4ZGZmMmI1L3Jlc291cmNlR3JvdXBzL2F2cy1zZGstdGVzdC1yZzExNTEvcHJvdmlkZXJzL01pY3Jvc29mdC5BVlMvcHJpdmF0ZUNsb3Vkcy9hdnMtc2RrLXRlc3QtY2xvdWQzMDA0L2hjeEVudGVycHJpc2VTaXRlcy9hdnMtc2RrLXRlc3QtaGN4LXNpdGU4NTI5P2FwaS12ZXJzaW9uPTIwMjEtMDYtMDE=", "RequestMethod": "DELETE", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "589365da-1fb8-4f50-a66d-8fffa15de0eb" + "254301c2-3d29-48e8-9a54-ec51ae07216c" ], "Accept-Language": [ "en-US" ], "User-Agent": [ - "FxVersion/4.6.29321.03", + "FxVersion/4.6.29916.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.Avs.AvsClient/1.0.0.preview.2" + "Microsoft.Azure.Management.Avs.AvsClient/1.0.0.1" ] }, "ResponseHeaders": { @@ -1578,28 +1521,28 @@ "no-cache" ], "x-ms-ratelimit-remaining-subscription-deletes": [ - "14999" + "14996" ], "x-ms-request-id": [ - "6a2a816a-b002-43cb-9f41-d13d34c75259" + "49208cbb-3ecf-4437-833b-fcb01644ca4d" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "Server": [ - "nginx" - ], "x-ms-correlation-request-id": [ - "76c94a82-b709-479a-b257-ef0ad2efe4c5" + "5c78d557-3170-4003-82b4-9f558741716a" ], "x-ms-routing-request-id": [ - "NORTHEUROPE:20201027T175303Z:76c94a82-b709-479a-b257-ef0ad2efe4c5" + "CENTRALUS:20210505T195139Z:5c78d557-3170-4003-82b4-9f558741716a" ], "X-Content-Type-Options": [ "nosniff" ], + "X-MSEdge-Ref": [ + "Ref A: 25172E62089A4C3B9F72DDC94914CCAE Ref B: PDX31EDGE0120 Ref C: 2021-05-05T19:51:38Z" + ], "Date": [ - "Tue, 27 Oct 2020 17:53:02 GMT" + "Wed, 05 May 2021 19:51:38 GMT" ], "Content-Type": [ "text/html" @@ -1615,22 +1558,22 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-test-rg9020/providers/Microsoft.AVS/privateClouds/avs-sdk-test-cloud5466/authorizations?api-version=2020-03-20", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmE3NWU3OWItZGQ5NS00MDI1LTlkYmYtM2E3YWU4ZGZmMmI1L3Jlc291cmNlR3JvdXBzL2F2cy1zZGstdGVzdC1yZzkwMjAvcHJvdmlkZXJzL01pY3Jvc29mdC5BVlMvcHJpdmF0ZUNsb3Vkcy9hdnMtc2RrLXRlc3QtY2xvdWQ1NDY2L2F1dGhvcml6YXRpb25zP2FwaS12ZXJzaW9uPTIwMjAtMDMtMjA=", + "RequestUri": "/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-test-rg1151/providers/Microsoft.AVS/privateClouds/avs-sdk-test-cloud3004/authorizations?api-version=2021-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmE3NWU3OWItZGQ5NS00MDI1LTlkYmYtM2E3YWU4ZGZmMmI1L3Jlc291cmNlR3JvdXBzL2F2cy1zZGstdGVzdC1yZzExNTEvcHJvdmlkZXJzL01pY3Jvc29mdC5BVlMvcHJpdmF0ZUNsb3Vkcy9hdnMtc2RrLXRlc3QtY2xvdWQzMDA0L2F1dGhvcml6YXRpb25zP2FwaS12ZXJzaW9uPTIwMjEtMDYtMDE=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "f98a1551-29d5-405d-867a-ee8d712a4165" + "543c0067-63b7-40ed-aa38-efa7898d0aa9" ], "Accept-Language": [ "en-US" ], "User-Agent": [ - "FxVersion/4.6.29321.03", + "FxVersion/4.6.29916.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.Avs.AvsClient/1.0.0.preview.2" + "Microsoft.Azure.Management.Avs.AvsClient/1.0.0.1" ] }, "ResponseHeaders": { @@ -1641,28 +1584,28 @@ "no-cache" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14980" + "14939" ], "x-ms-request-id": [ - "56309608-5b02-419c-b038-8237a06da2d7" + "47862aa6-f73d-46b6-8532-43c2c65db3c7" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "Server": [ - "nginx" - ], "x-ms-correlation-request-id": [ - "f7f91ca6-389a-47f0-90f1-58931a729043" + "23c4a59c-c70f-4fd8-bfab-f986e6523570" ], "x-ms-routing-request-id": [ - "NORTHEUROPE:20201027T175303Z:f7f91ca6-389a-47f0-90f1-58931a729043" + "CENTRALUS:20210505T195139Z:23c4a59c-c70f-4fd8-bfab-f986e6523570" ], "X-Content-Type-Options": [ "nosniff" ], + "X-MSEdge-Ref": [ + "Ref A: 33AE53B1AB434F7CA8A6385E991FF1E1 Ref B: PDX31EDGE0120 Ref C: 2021-05-05T19:51:39Z" + ], "Date": [ - "Tue, 27 Oct 2020 17:53:02 GMT" + "Wed, 05 May 2021 19:51:38 GMT" ], "Content-Length": [ "12" @@ -1678,22 +1621,22 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-test-rg9020/providers/Microsoft.AVS/privateClouds/avs-sdk-test-cloud5466/authorizations?api-version=2020-03-20", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmE3NWU3OWItZGQ5NS00MDI1LTlkYmYtM2E3YWU4ZGZmMmI1L3Jlc291cmNlR3JvdXBzL2F2cy1zZGstdGVzdC1yZzkwMjAvcHJvdmlkZXJzL01pY3Jvc29mdC5BVlMvcHJpdmF0ZUNsb3Vkcy9hdnMtc2RrLXRlc3QtY2xvdWQ1NDY2L2F1dGhvcml6YXRpb25zP2FwaS12ZXJzaW9uPTIwMjAtMDMtMjA=", + "RequestUri": "/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-test-rg1151/providers/Microsoft.AVS/privateClouds/avs-sdk-test-cloud3004/authorizations?api-version=2021-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmE3NWU3OWItZGQ5NS00MDI1LTlkYmYtM2E3YWU4ZGZmMmI1L3Jlc291cmNlR3JvdXBzL2F2cy1zZGstdGVzdC1yZzExNTEvcHJvdmlkZXJzL01pY3Jvc29mdC5BVlMvcHJpdmF0ZUNsb3Vkcy9hdnMtc2RrLXRlc3QtY2xvdWQzMDA0L2F1dGhvcml6YXRpb25zP2FwaS12ZXJzaW9uPTIwMjEtMDYtMDE=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "2c75cb52-c459-4016-bf24-67e782d78b05" + "2567b785-fccc-41e5-9210-a46ebf8f4511" ], "Accept-Language": [ "en-US" ], "User-Agent": [ - "FxVersion/4.6.29321.03", + "FxVersion/4.6.29916.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.Avs.AvsClient/1.0.0.preview.2" + "Microsoft.Azure.Management.Avs.AvsClient/1.0.0.1" ] }, "ResponseHeaders": { @@ -1704,31 +1647,31 @@ "no-cache" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14978" + "14937" ], "x-ms-request-id": [ - "b31bf068-4f2b-4dd2-88a8-736fcf8f6c04" + "35cb503b-8878-47fc-a4f3-be4048bdbbd6" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "Server": [ - "nginx" - ], "x-ms-correlation-request-id": [ - "42c9ed04-7a20-44c7-8849-73597d19fe3c" + "450b0624-8407-4d56-b9cd-616a2152fea1" ], "x-ms-routing-request-id": [ - "NORTHEUROPE:20201027T175304Z:42c9ed04-7a20-44c7-8849-73597d19fe3c" + "CENTRALUS:20210505T195140Z:450b0624-8407-4d56-b9cd-616a2152fea1" ], "X-Content-Type-Options": [ "nosniff" ], + "X-MSEdge-Ref": [ + "Ref A: 7703F363A36D421DAD6C2BE02460C6AD Ref B: PDX31EDGE0120 Ref C: 2021-05-05T19:51:40Z" + ], "Date": [ - "Tue, 27 Oct 2020 17:53:04 GMT" + "Wed, 05 May 2021 19:51:39 GMT" ], "Content-Length": [ - "666" + "679" ], "Content-Type": [ "application/json; charset=utf-8" @@ -1737,26 +1680,26 @@ "-1" ] }, - "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-test-rg9020/providers/Microsoft.AVS/privateClouds/avs-sdk-test-cloud5466/authorizations/avs-sdk-test-authorization3088\",\r\n \"name\": \"avs-sdk-test-authorization3088\",\r\n \"properties\": {\r\n \"expressRouteAuthorizationId\": \"/subscriptions/5206f269-120b-41ef-a95b-0dce7109de61/resourceGroups/tnt49-cust-mp01-mock01/providers/Microsoft.Network/expressRouteCircuits/tnt49-cust-mp01-mock01-er/authorizations/avs-sdk-test-authorization3088\",\r\n \"expressRouteAuthorizationKey\": \"b3b1b313-1ecc-49e7-858d-9d68447dc983\",\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"type\": \"Microsoft.AVS/privateClouds/authorizations\"\r\n }\r\n ]\r\n}", + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-test-rg1151/providers/Microsoft.AVS/privateClouds/avs-sdk-test-cloud3004/authorizations/avs-sdk-test-authorization1237\",\r\n \"name\": \"avs-sdk-test-authorization1237\",\r\n \"properties\": {\r\n \"expressRouteAuthorizationId\": \"/subscriptions/7f1fae41-7708-4fa4-89b3-f6552cad2fc1/resourceGroups/tnt34-cust-mp01-mock01/providers/Microsoft.Network/expressRouteCircuits/tnt34-cust-mp01-mock01-er/authorizations/avs_resource_avs-sdk-test-authorization1237\",\r\n \"expressRouteAuthorizationKey\": \"50dccf82-5dad-493e-b889-1bd4e2986aa4\",\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"type\": \"Microsoft.AVS/privateClouds/authorizations\"\r\n }\r\n ]\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-test-rg9020/providers/Microsoft.AVS/privateClouds/avs-sdk-test-cloud5466/authorizations/avs-sdk-test-authorization3088?api-version=2020-03-20", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmE3NWU3OWItZGQ5NS00MDI1LTlkYmYtM2E3YWU4ZGZmMmI1L3Jlc291cmNlR3JvdXBzL2F2cy1zZGstdGVzdC1yZzkwMjAvcHJvdmlkZXJzL01pY3Jvc29mdC5BVlMvcHJpdmF0ZUNsb3Vkcy9hdnMtc2RrLXRlc3QtY2xvdWQ1NDY2L2F1dGhvcml6YXRpb25zL2F2cy1zZGstdGVzdC1hdXRob3JpemF0aW9uMzA4OD9hcGktdmVyc2lvbj0yMDIwLTAzLTIw", + "RequestUri": "/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-test-rg1151/providers/Microsoft.AVS/privateClouds/avs-sdk-test-cloud3004/authorizations/avs-sdk-test-authorization1237?api-version=2021-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmE3NWU3OWItZGQ5NS00MDI1LTlkYmYtM2E3YWU4ZGZmMmI1L3Jlc291cmNlR3JvdXBzL2F2cy1zZGstdGVzdC1yZzExNTEvcHJvdmlkZXJzL01pY3Jvc29mdC5BVlMvcHJpdmF0ZUNsb3Vkcy9hdnMtc2RrLXRlc3QtY2xvdWQzMDA0L2F1dGhvcml6YXRpb25zL2F2cy1zZGstdGVzdC1hdXRob3JpemF0aW9uMTIzNz9hcGktdmVyc2lvbj0yMDIxLTA2LTAx", "RequestMethod": "PUT", "RequestBody": "{}", "RequestHeaders": { "x-ms-client-request-id": [ - "4ed8b6cf-1fb9-4c4f-83e4-91b03d6d9fb7" + "a94ca6c5-4e84-42e2-8dd4-2aebcbed1f6a" ], "Accept-Language": [ "en-US" ], "User-Agent": [ - "FxVersion/4.6.29321.03", + "FxVersion/4.6.29916.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.Avs.AvsClient/1.0.0.preview.2" + "Microsoft.Azure.Management.Avs.AvsClient/1.0.0.1" ], "Content-Type": [ "application/json; charset=utf-8" @@ -1773,31 +1716,31 @@ "no-cache" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1197" + "1193" ], "x-ms-request-id": [ - "d04c3cb1-5bfa-4750-baa2-dac308d88f0e" + "79c17a8a-8ef9-4f77-b77e-af5822791fc8" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "Server": [ - "nginx" - ], "x-ms-correlation-request-id": [ - "af596925-5b01-4c49-aabc-508e89367f34" + "bdff189d-50f7-4d68-9363-12fe6aa49005" ], "x-ms-routing-request-id": [ - "NORTHEUROPE:20201027T175304Z:af596925-5b01-4c49-aabc-508e89367f34" + "CENTRALUS:20210505T195140Z:bdff189d-50f7-4d68-9363-12fe6aa49005" ], "X-Content-Type-Options": [ "nosniff" ], + "X-MSEdge-Ref": [ + "Ref A: D488D88D1FF3414BB335B8CB9FB53A8A Ref B: PDX31EDGE0120 Ref C: 2021-05-05T19:51:39Z" + ], "Date": [ - "Tue, 27 Oct 2020 17:53:04 GMT" + "Wed, 05 May 2021 19:51:39 GMT" ], "Content-Length": [ - "654" + "667" ], "Content-Type": [ "application/json; charset=utf-8" @@ -1806,26 +1749,26 @@ "-1" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-test-rg9020/providers/Microsoft.AVS/privateClouds/avs-sdk-test-cloud5466/authorizations/avs-sdk-test-authorization3088\",\r\n \"name\": \"avs-sdk-test-authorization3088\",\r\n \"properties\": {\r\n \"expressRouteAuthorizationId\": \"/subscriptions/5206f269-120b-41ef-a95b-0dce7109de61/resourceGroups/tnt49-cust-mp01-mock01/providers/Microsoft.Network/expressRouteCircuits/tnt49-cust-mp01-mock01-er/authorizations/avs-sdk-test-authorization3088\",\r\n \"expressRouteAuthorizationKey\": \"b3b1b313-1ecc-49e7-858d-9d68447dc983\",\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"type\": \"Microsoft.AVS/privateClouds/authorizations\"\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-test-rg1151/providers/Microsoft.AVS/privateClouds/avs-sdk-test-cloud3004/authorizations/avs-sdk-test-authorization1237\",\r\n \"name\": \"avs-sdk-test-authorization1237\",\r\n \"properties\": {\r\n \"expressRouteAuthorizationId\": \"/subscriptions/7f1fae41-7708-4fa4-89b3-f6552cad2fc1/resourceGroups/tnt34-cust-mp01-mock01/providers/Microsoft.Network/expressRouteCircuits/tnt34-cust-mp01-mock01-er/authorizations/avs_resource_avs-sdk-test-authorization1237\",\r\n \"expressRouteAuthorizationKey\": \"50dccf82-5dad-493e-b889-1bd4e2986aa4\",\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"type\": \"Microsoft.AVS/privateClouds/authorizations\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-test-rg9020/providers/Microsoft.AVS/privateClouds/avs-sdk-test-cloud5466/authorizations/avs-sdk-test-authorization3088?api-version=2020-03-20", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmE3NWU3OWItZGQ5NS00MDI1LTlkYmYtM2E3YWU4ZGZmMmI1L3Jlc291cmNlR3JvdXBzL2F2cy1zZGstdGVzdC1yZzkwMjAvcHJvdmlkZXJzL01pY3Jvc29mdC5BVlMvcHJpdmF0ZUNsb3Vkcy9hdnMtc2RrLXRlc3QtY2xvdWQ1NDY2L2F1dGhvcml6YXRpb25zL2F2cy1zZGstdGVzdC1hdXRob3JpemF0aW9uMzA4OD9hcGktdmVyc2lvbj0yMDIwLTAzLTIw", + "RequestUri": "/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-test-rg1151/providers/Microsoft.AVS/privateClouds/avs-sdk-test-cloud3004/authorizations/avs-sdk-test-authorization1237?api-version=2021-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmE3NWU3OWItZGQ5NS00MDI1LTlkYmYtM2E3YWU4ZGZmMmI1L3Jlc291cmNlR3JvdXBzL2F2cy1zZGstdGVzdC1yZzExNTEvcHJvdmlkZXJzL01pY3Jvc29mdC5BVlMvcHJpdmF0ZUNsb3Vkcy9hdnMtc2RrLXRlc3QtY2xvdWQzMDA0L2F1dGhvcml6YXRpb25zL2F2cy1zZGstdGVzdC1hdXRob3JpemF0aW9uMTIzNz9hcGktdmVyc2lvbj0yMDIxLTA2LTAx", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "589c6838-9c5e-4ea7-a595-5f20479a4010" + "d493a93e-2ecf-4447-b414-87000b14b43b" ], "Accept-Language": [ "en-US" ], "User-Agent": [ - "FxVersion/4.6.29321.03", + "FxVersion/4.6.29916.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.Avs.AvsClient/1.0.0.preview.2" + "Microsoft.Azure.Management.Avs.AvsClient/1.0.0.1" ] }, "ResponseHeaders": { @@ -1836,31 +1779,31 @@ "no-cache" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14979" + "14938" ], "x-ms-request-id": [ - "a0d47990-89b8-4f7c-bf74-18fb08864c56" + "64dc4075-8890-4a1e-b80a-f344c66c18df" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "Server": [ - "nginx" - ], "x-ms-correlation-request-id": [ - "534497d7-e1de-4a5e-aead-32cbf8ac9545" + "7a84afc3-507f-4e32-8532-e4fbaa7f30d4" ], "x-ms-routing-request-id": [ - "NORTHEUROPE:20201027T175304Z:534497d7-e1de-4a5e-aead-32cbf8ac9545" + "CENTRALUS:20210505T195140Z:7a84afc3-507f-4e32-8532-e4fbaa7f30d4" ], "X-Content-Type-Options": [ "nosniff" ], + "X-MSEdge-Ref": [ + "Ref A: 8C53E04EEF3F4DCBB70260538DF922DC Ref B: PDX31EDGE0120 Ref C: 2021-05-05T19:51:40Z" + ], "Date": [ - "Tue, 27 Oct 2020 17:53:04 GMT" + "Wed, 05 May 2021 19:51:39 GMT" ], "Content-Length": [ - "654" + "667" ], "Content-Type": [ "application/json; charset=utf-8" @@ -1869,26 +1812,26 @@ "-1" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-test-rg9020/providers/Microsoft.AVS/privateClouds/avs-sdk-test-cloud5466/authorizations/avs-sdk-test-authorization3088\",\r\n \"name\": \"avs-sdk-test-authorization3088\",\r\n \"properties\": {\r\n \"expressRouteAuthorizationId\": \"/subscriptions/5206f269-120b-41ef-a95b-0dce7109de61/resourceGroups/tnt49-cust-mp01-mock01/providers/Microsoft.Network/expressRouteCircuits/tnt49-cust-mp01-mock01-er/authorizations/avs-sdk-test-authorization3088\",\r\n \"expressRouteAuthorizationKey\": \"b3b1b313-1ecc-49e7-858d-9d68447dc983\",\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"type\": \"Microsoft.AVS/privateClouds/authorizations\"\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-test-rg1151/providers/Microsoft.AVS/privateClouds/avs-sdk-test-cloud3004/authorizations/avs-sdk-test-authorization1237\",\r\n \"name\": \"avs-sdk-test-authorization1237\",\r\n \"properties\": {\r\n \"expressRouteAuthorizationId\": \"/subscriptions/7f1fae41-7708-4fa4-89b3-f6552cad2fc1/resourceGroups/tnt34-cust-mp01-mock01/providers/Microsoft.Network/expressRouteCircuits/tnt34-cust-mp01-mock01-er/authorizations/avs_resource_avs-sdk-test-authorization1237\",\r\n \"expressRouteAuthorizationKey\": \"50dccf82-5dad-493e-b889-1bd4e2986aa4\",\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"type\": \"Microsoft.AVS/privateClouds/authorizations\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-test-rg9020/providers/Microsoft.AVS/privateClouds/avs-sdk-test-cloud5466/authorizations/avs-sdk-test-authorization3088?api-version=2020-03-20", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmE3NWU3OWItZGQ5NS00MDI1LTlkYmYtM2E3YWU4ZGZmMmI1L3Jlc291cmNlR3JvdXBzL2F2cy1zZGstdGVzdC1yZzkwMjAvcHJvdmlkZXJzL01pY3Jvc29mdC5BVlMvcHJpdmF0ZUNsb3Vkcy9hdnMtc2RrLXRlc3QtY2xvdWQ1NDY2L2F1dGhvcml6YXRpb25zL2F2cy1zZGstdGVzdC1hdXRob3JpemF0aW9uMzA4OD9hcGktdmVyc2lvbj0yMDIwLTAzLTIw", + "RequestUri": "/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-test-rg1151/providers/Microsoft.AVS/privateClouds/avs-sdk-test-cloud3004/authorizations/avs-sdk-test-authorization1237?api-version=2021-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmE3NWU3OWItZGQ5NS00MDI1LTlkYmYtM2E3YWU4ZGZmMmI1L3Jlc291cmNlR3JvdXBzL2F2cy1zZGstdGVzdC1yZzExNTEvcHJvdmlkZXJzL01pY3Jvc29mdC5BVlMvcHJpdmF0ZUNsb3Vkcy9hdnMtc2RrLXRlc3QtY2xvdWQzMDA0L2F1dGhvcml6YXRpb25zL2F2cy1zZGstdGVzdC1hdXRob3JpemF0aW9uMTIzNz9hcGktdmVyc2lvbj0yMDIxLTA2LTAx", "RequestMethod": "DELETE", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "8b77fe42-49d4-447a-8468-c879205f626c" + "1722bc2d-5b3c-422f-a684-db56fdf02dc1" ], "Accept-Language": [ "en-US" ], "User-Agent": [ - "FxVersion/4.6.29321.03", + "FxVersion/4.6.29916.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.Avs.AvsClient/1.0.0.preview.2" + "Microsoft.Azure.Management.Avs.AvsClient/1.0.0.1" ] }, "ResponseHeaders": { @@ -1899,28 +1842,28 @@ "no-cache" ], "x-ms-ratelimit-remaining-subscription-deletes": [ - "14998" + "14995" ], "x-ms-request-id": [ - "7e9674fa-476c-43bd-be2f-82734f40ba2c" + "fbdacb82-b3f6-4106-af57-11ffbdcc15bb" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "Server": [ - "nginx" - ], "x-ms-correlation-request-id": [ - "b8048de1-eda9-48a9-95c0-710dcdffc461" + "04353ebc-5cc7-4ef1-aca6-b5f262cd7c8e" ], "x-ms-routing-request-id": [ - "NORTHEUROPE:20201027T175305Z:b8048de1-eda9-48a9-95c0-710dcdffc461" + "CENTRALUS:20210505T195141Z:04353ebc-5cc7-4ef1-aca6-b5f262cd7c8e" ], "X-Content-Type-Options": [ "nosniff" ], + "X-MSEdge-Ref": [ + "Ref A: 6B8013CB014F464EBDA97B8F8685FD40 Ref B: PDX31EDGE0120 Ref C: 2021-05-05T19:51:40Z" + ], "Date": [ - "Tue, 27 Oct 2020 17:53:05 GMT" + "Wed, 05 May 2021 19:51:40 GMT" ], "Content-Type": [ "text/html" @@ -1936,22 +1879,22 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-test-rg9020/providers/Microsoft.AVS/privateClouds/avs-sdk-test-cloud5466/clusters?api-version=2020-03-20", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmE3NWU3OWItZGQ5NS00MDI1LTlkYmYtM2E3YWU4ZGZmMmI1L3Jlc291cmNlR3JvdXBzL2F2cy1zZGstdGVzdC1yZzkwMjAvcHJvdmlkZXJzL01pY3Jvc29mdC5BVlMvcHJpdmF0ZUNsb3Vkcy9hdnMtc2RrLXRlc3QtY2xvdWQ1NDY2L2NsdXN0ZXJzP2FwaS12ZXJzaW9uPTIwMjAtMDMtMjA=", + "RequestUri": "/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-test-rg1151/providers/Microsoft.AVS/privateClouds/avs-sdk-test-cloud3004/clusters?api-version=2021-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmE3NWU3OWItZGQ5NS00MDI1LTlkYmYtM2E3YWU4ZGZmMmI1L3Jlc291cmNlR3JvdXBzL2F2cy1zZGstdGVzdC1yZzExNTEvcHJvdmlkZXJzL01pY3Jvc29mdC5BVlMvcHJpdmF0ZUNsb3Vkcy9hdnMtc2RrLXRlc3QtY2xvdWQzMDA0L2NsdXN0ZXJzP2FwaS12ZXJzaW9uPTIwMjEtMDYtMDE=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "2bb46196-71a2-41fd-bcb8-70e468d71b86" + "ba904d93-fa56-4b67-936a-bfe77989d12d" ], "Accept-Language": [ "en-US" ], "User-Agent": [ - "FxVersion/4.6.29321.03", + "FxVersion/4.6.29916.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.Avs.AvsClient/1.0.0.preview.2" + "Microsoft.Azure.Management.Avs.AvsClient/1.0.0.1" ] }, "ResponseHeaders": { @@ -1962,28 +1905,28 @@ "no-cache" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14977" + "14936" ], "x-ms-request-id": [ - "0e72e6c4-4853-4660-b356-910a9f73b7f8" + "d962b8aa-d650-4844-b4b1-8d3feffc2a2a" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "Server": [ - "nginx" - ], "x-ms-correlation-request-id": [ - "e7ce74d6-f0a0-467e-8f09-0765c1e9eb8b" + "4f2e65d4-1e3e-4883-a53e-4d8cc2694890" ], "x-ms-routing-request-id": [ - "NORTHEUROPE:20201027T175305Z:e7ce74d6-f0a0-467e-8f09-0765c1e9eb8b" + "CENTRALUS:20210505T195141Z:4f2e65d4-1e3e-4883-a53e-4d8cc2694890" ], "X-Content-Type-Options": [ "nosniff" ], + "X-MSEdge-Ref": [ + "Ref A: C9B883054AC34F4DAEB9AC1CDDF224E8 Ref B: PDX31EDGE0120 Ref C: 2021-05-05T19:51:41Z" + ], "Date": [ - "Tue, 27 Oct 2020 17:53:05 GMT" + "Wed, 05 May 2021 19:51:40 GMT" ], "Content-Length": [ "12" @@ -1999,22 +1942,22 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-test-rg9020/providers/Microsoft.AVS/privateClouds/avs-sdk-test-cloud5466/clusters?api-version=2020-03-20", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmE3NWU3OWItZGQ5NS00MDI1LTlkYmYtM2E3YWU4ZGZmMmI1L3Jlc291cmNlR3JvdXBzL2F2cy1zZGstdGVzdC1yZzkwMjAvcHJvdmlkZXJzL01pY3Jvc29mdC5BVlMvcHJpdmF0ZUNsb3Vkcy9hdnMtc2RrLXRlc3QtY2xvdWQ1NDY2L2NsdXN0ZXJzP2FwaS12ZXJzaW9uPTIwMjAtMDMtMjA=", + "RequestUri": "/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-test-rg1151/providers/Microsoft.AVS/privateClouds/avs-sdk-test-cloud3004/clusters?api-version=2021-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmE3NWU3OWItZGQ5NS00MDI1LTlkYmYtM2E3YWU4ZGZmMmI1L3Jlc291cmNlR3JvdXBzL2F2cy1zZGstdGVzdC1yZzExNTEvcHJvdmlkZXJzL01pY3Jvc29mdC5BVlMvcHJpdmF0ZUNsb3Vkcy9hdnMtc2RrLXRlc3QtY2xvdWQzMDA0L2NsdXN0ZXJzP2FwaS12ZXJzaW9uPTIwMjEtMDYtMDE=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "e083d963-8de4-4414-a060-bab7f3da4880" + "4eb631ad-f2df-4165-adf4-9027627ee9e2" ], "Accept-Language": [ "en-US" ], "User-Agent": [ - "FxVersion/4.6.29321.03", + "FxVersion/4.6.29916.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.Avs.AvsClient/1.0.0.preview.2" + "Microsoft.Azure.Management.Avs.AvsClient/1.0.0.1" ] }, "ResponseHeaders": { @@ -2025,28 +1968,28 @@ "no-cache" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14970" + "14927" ], "x-ms-request-id": [ - "e8a0bcd2-a544-4e14-8866-d99f3de9e6ef" + "b5219ecb-0ec5-4da1-a84c-c7f0d1b06d9e" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "Server": [ - "nginx" - ], "x-ms-correlation-request-id": [ - "f1bca376-a218-4054-9f61-2299a5ebd7f0" + "9915ff9b-0d9c-4621-b906-d5585d32946b" ], "x-ms-routing-request-id": [ - "NORTHEUROPE:20201027T175349Z:f1bca376-a218-4054-9f61-2299a5ebd7f0" + "CENTRALUS:20210505T195244Z:9915ff9b-0d9c-4621-b906-d5585d32946b" ], "X-Content-Type-Options": [ "nosniff" ], + "X-MSEdge-Ref": [ + "Ref A: 115EBF846151476EB460DFD2E971EE01 Ref B: PDX31EDGE0120 Ref C: 2021-05-05T19:52:44Z" + ], "Date": [ - "Tue, 27 Oct 2020 17:53:49 GMT" + "Wed, 05 May 2021 19:52:44 GMT" ], "Content-Length": [ "532" @@ -2058,26 +2001,26 @@ "-1" ] }, - "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-test-rg9020/providers/Microsoft.AVS/privateClouds/avs-sdk-test-cloud5466/clusters/avs-sdk-test-cluster5984\",\r\n \"name\": \"avs-sdk-test-cluster5984\",\r\n \"properties\": {\r\n \"clusterId\": 2,\r\n \"clusterSize\": 3,\r\n \"hosts\": [\r\n \"gp-fakehost03.mp01.mock01.vmcp.vs.management\",\r\n \"gp-fakehost09.mp01.mock01.vmcp.vs.management\",\r\n \"gp-fakehost46.mp01.mock01.vmcp.vs.management\"\r\n ],\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"sku\": {\r\n \"name\": \"av20\"\r\n },\r\n \"type\": \"Microsoft.AVS/privateClouds/clusters\"\r\n }\r\n ]\r\n}", + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-test-rg1151/providers/Microsoft.AVS/privateClouds/avs-sdk-test-cloud3004/clusters/avs-sdk-test-cluster3283\",\r\n \"name\": \"avs-sdk-test-cluster3283\",\r\n \"properties\": {\r\n \"clusterId\": 2,\r\n \"clusterSize\": 3,\r\n \"hosts\": [\r\n \"gp-fakehost36.mp01.mock01.vmcp.vs.management\",\r\n \"gp-fakehost33.mp01.mock01.vmcp.vs.management\",\r\n \"gp-fakehost41.mp01.mock01.vmcp.vs.management\"\r\n ],\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"sku\": {\r\n \"name\": \"av20\"\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-rg9020/providers/Microsoft.AVS/privateClouds/avs-sdk-test-cloud5466/clusters?api-version=2020-03-20", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmE3NWU3OWItZGQ5NS00MDI1LTlkYmYtM2E3YWU4ZGZmMmI1L3Jlc291cmNlR3JvdXBzL2F2cy1zZGstdGVzdC1yZzkwMjAvcHJvdmlkZXJzL01pY3Jvc29mdC5BVlMvcHJpdmF0ZUNsb3Vkcy9hdnMtc2RrLXRlc3QtY2xvdWQ1NDY2L2NsdXN0ZXJzP2FwaS12ZXJzaW9uPTIwMjAtMDMtMjA=", + "RequestUri": "/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-test-rg1151/providers/Microsoft.AVS/privateClouds/avs-sdk-test-cloud3004/clusters?api-version=2021-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmE3NWU3OWItZGQ5NS00MDI1LTlkYmYtM2E3YWU4ZGZmMmI1L3Jlc291cmNlR3JvdXBzL2F2cy1zZGstdGVzdC1yZzExNTEvcHJvdmlkZXJzL01pY3Jvc29mdC5BVlMvcHJpdmF0ZUNsb3Vkcy9hdnMtc2RrLXRlc3QtY2xvdWQzMDA0L2NsdXN0ZXJzP2FwaS12ZXJzaW9uPTIwMjEtMDYtMDE=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "3d572a77-085e-456f-9ef4-027ec2087805" + "d0aae392-0d04-49a9-8aab-42f04f497461" ], "Accept-Language": [ "en-US" ], "User-Agent": [ - "FxVersion/4.6.29321.03", + "FxVersion/4.6.29916.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.Avs.AvsClient/1.0.0.preview.2" + "Microsoft.Azure.Management.Avs.AvsClient/1.0.0.1" ] }, "ResponseHeaders": { @@ -2088,28 +2031,28 @@ "no-cache" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14962" + "14919" ], "x-ms-request-id": [ - "23b394c0-e381-46e9-ac53-eff09e912f21" + "175a7458-9187-43a1-b768-b63e4f5013eb" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "Server": [ - "nginx" - ], "x-ms-correlation-request-id": [ - "616bb0b7-e5df-49cb-958f-d6d3adea2814" + "f95a873a-96aa-4685-97d9-f72449da0cbe" ], "x-ms-routing-request-id": [ - "NORTHEUROPE:20201027T175452Z:616bb0b7-e5df-49cb-958f-d6d3adea2814" + "CENTRALUS:20210505T195347Z:f95a873a-96aa-4685-97d9-f72449da0cbe" ], "X-Content-Type-Options": [ "nosniff" ], + "X-MSEdge-Ref": [ + "Ref A: DFBF3B88CD8F45C282E87D9927F1FF98 Ref B: PDX31EDGE0120 Ref C: 2021-05-05T19:53:47Z" + ], "Date": [ - "Tue, 27 Oct 2020 17:54:52 GMT" + "Wed, 05 May 2021 19:53:47 GMT" ], "Content-Length": [ "12" @@ -2125,22 +2068,22 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-test-rg9020/providers/Microsoft.AVS/privateClouds/avs-sdk-test-cloud5466/clusters/avs-sdk-test-cluster5984?api-version=2020-03-20", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmE3NWU3OWItZGQ5NS00MDI1LTlkYmYtM2E3YWU4ZGZmMmI1L3Jlc291cmNlR3JvdXBzL2F2cy1zZGstdGVzdC1yZzkwMjAvcHJvdmlkZXJzL01pY3Jvc29mdC5BVlMvcHJpdmF0ZUNsb3Vkcy9hdnMtc2RrLXRlc3QtY2xvdWQ1NDY2L2NsdXN0ZXJzL2F2cy1zZGstdGVzdC1jbHVzdGVyNTk4ND9hcGktdmVyc2lvbj0yMDIwLTAzLTIw", + "RequestUri": "/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-test-rg1151/providers/Microsoft.AVS/privateClouds/avs-sdk-test-cloud3004/clusters/avs-sdk-test-cluster3283?api-version=2021-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmE3NWU3OWItZGQ5NS00MDI1LTlkYmYtM2E3YWU4ZGZmMmI1L3Jlc291cmNlR3JvdXBzL2F2cy1zZGstdGVzdC1yZzExNTEvcHJvdmlkZXJzL01pY3Jvc29mdC5BVlMvcHJpdmF0ZUNsb3Vkcy9hdnMtc2RrLXRlc3QtY2xvdWQzMDA0L2NsdXN0ZXJzL2F2cy1zZGstdGVzdC1jbHVzdGVyMzI4Mz9hcGktdmVyc2lvbj0yMDIxLTA2LTAx", "RequestMethod": "PUT", "RequestBody": "{\r\n \"sku\": {\r\n \"name\": \"av20\"\r\n },\r\n \"properties\": {\r\n \"clusterSize\": 3\r\n }\r\n}", "RequestHeaders": { "x-ms-client-request-id": [ - "c258993d-8ccd-4566-a7f9-0a3479e60356" + "94cce1f2-28e3-4a4b-919a-6d8de5fac8b5" ], "Accept-Language": [ "en-US" ], "User-Agent": [ - "FxVersion/4.6.29321.03", + "FxVersion/4.6.29916.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.Avs.AvsClient/1.0.0.preview.2" + "Microsoft.Azure.Management.Avs.AvsClient/1.0.0.1" ], "Content-Type": [ "application/json; charset=utf-8" @@ -2160,31 +2103,31 @@ "10" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1196" + "1192" ], "Azure-AsyncOperation": [ - "https://api-dogfood.resources.windows-int.net/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-test-rg9020/providers/Microsoft.AVS/privateClouds/avs-sdk-test-cloud5466/clusters/avs-sdk-test-cluster5984/operationstatuses/15797e9a-cf59-480a-a238-a1fdf6d60d83?api-version=2020-03-20" + "https://api-dogfood.resources.windows-int.net/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-test-rg1151/providers/Microsoft.AVS/privateClouds/avs-sdk-test-cloud3004/clusters/avs-sdk-test-cluster3283/operationstatuses/3b8378e2-771e-41aa-8410-70443b85be9a?api-version=2021-06-01" ], "x-ms-request-id": [ - "628c28c8-a520-4f56-af57-810bb8276cc9" + "4bcf7a6b-3407-4f3b-be37-150794ca1c9c" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "Server": [ - "nginx" - ], "x-ms-correlation-request-id": [ - "87e412aa-43d6-419e-9367-0c2a8b7af905" + "6b4a0133-8e35-4d58-959c-ccd81a1d2b75" ], "x-ms-routing-request-id": [ - "NORTHEUROPE:20201027T175307Z:87e412aa-43d6-419e-9367-0c2a8b7af905" + "CENTRALUS:20210505T195143Z:6b4a0133-8e35-4d58-959c-ccd81a1d2b75" ], "X-Content-Type-Options": [ "nosniff" ], + "X-MSEdge-Ref": [ + "Ref A: FD4EE967230A4C7898305BB8FDC70484 Ref B: PDX31EDGE0120 Ref C: 2021-05-05T19:51:41Z" + ], "Date": [ - "Tue, 27 Oct 2020 17:53:07 GMT" + "Wed, 05 May 2021 19:51:42 GMT" ], "Content-Length": [ "519" @@ -2196,20 +2139,20 @@ "-1" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-test-rg9020/providers/Microsoft.AVS/privateClouds/avs-sdk-test-cloud5466/clusters/avs-sdk-test-cluster5984\",\r\n \"name\": \"avs-sdk-test-cluster5984\",\r\n \"properties\": {\r\n \"clusterId\": 2,\r\n \"clusterSize\": 3,\r\n \"hosts\": [\r\n \"gp-fakehost03.mp01.mock01.vmcp.vs.management\",\r\n \"gp-fakehost09.mp01.mock01.vmcp.vs.management\",\r\n \"gp-fakehost46.mp01.mock01.vmcp.vs.management\"\r\n ],\r\n \"provisioningState\": \"Building\"\r\n },\r\n \"sku\": {\r\n \"name\": \"av20\"\r\n },\r\n \"type\": \"Microsoft.AVS/privateClouds/clusters\"\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-test-rg1151/providers/Microsoft.AVS/privateClouds/avs-sdk-test-cloud3004/clusters/avs-sdk-test-cluster3283\",\r\n \"name\": \"avs-sdk-test-cluster3283\",\r\n \"properties\": {\r\n \"clusterId\": 2,\r\n \"clusterSize\": 3,\r\n \"hosts\": [\r\n \"gp-fakehost36.mp01.mock01.vmcp.vs.management\",\r\n \"gp-fakehost33.mp01.mock01.vmcp.vs.management\",\r\n \"gp-fakehost41.mp01.mock01.vmcp.vs.management\"\r\n ],\r\n \"provisioningState\": \"Building\"\r\n },\r\n \"sku\": {\r\n \"name\": \"av20\"\r\n },\r\n \"type\": \"Microsoft.AVS/privateClouds/clusters\"\r\n}", "StatusCode": 201 }, { - "RequestUri": "/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-test-rg9020/providers/Microsoft.AVS/privateClouds/avs-sdk-test-cloud5466/clusters/avs-sdk-test-cluster5984/operationstatuses/15797e9a-cf59-480a-a238-a1fdf6d60d83?api-version=2020-03-20", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmE3NWU3OWItZGQ5NS00MDI1LTlkYmYtM2E3YWU4ZGZmMmI1L3Jlc291cmNlR3JvdXBzL2F2cy1zZGstdGVzdC1yZzkwMjAvcHJvdmlkZXJzL01pY3Jvc29mdC5BVlMvcHJpdmF0ZUNsb3Vkcy9hdnMtc2RrLXRlc3QtY2xvdWQ1NDY2L2NsdXN0ZXJzL2F2cy1zZGstdGVzdC1jbHVzdGVyNTk4NC9vcGVyYXRpb25zdGF0dXNlcy8xNTc5N2U5YS1jZjU5LTQ4MGEtYTIzOC1hMWZkZjZkNjBkODM/YXBpLXZlcnNpb249MjAyMC0wMy0yMA==", + "RequestUri": "/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-test-rg1151/providers/Microsoft.AVS/privateClouds/avs-sdk-test-cloud3004/clusters/avs-sdk-test-cluster3283/operationstatuses/3b8378e2-771e-41aa-8410-70443b85be9a?api-version=2021-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmE3NWU3OWItZGQ5NS00MDI1LTlkYmYtM2E3YWU4ZGZmMmI1L3Jlc291cmNlR3JvdXBzL2F2cy1zZGstdGVzdC1yZzExNTEvcHJvdmlkZXJzL01pY3Jvc29mdC5BVlMvcHJpdmF0ZUNsb3Vkcy9hdnMtc2RrLXRlc3QtY2xvdWQzMDA0L2NsdXN0ZXJzL2F2cy1zZGstdGVzdC1jbHVzdGVyMzI4My9vcGVyYXRpb25zdGF0dXNlcy8zYjgzNzhlMi03NzFlLTQxYWEtODQxMC03MDQ0M2I4NWJlOWE/YXBpLXZlcnNpb249MjAyMS0wNi0wMQ==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/4.6.29321.03", + "FxVersion/4.6.29916.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.Avs.AvsClient/1.0.0.preview.2" + "Microsoft.Azure.Management.Avs.AvsClient/1.0.0.1" ] }, "ResponseHeaders": { @@ -2223,31 +2166,31 @@ "10" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14976" + "14935" ], "x-ms-request-id": [ - "d3abd478-9396-4b3e-876c-c51df3b3fcad" + "e83c015d-74c7-4e9f-a3ed-3c51c6d5e9be" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "Server": [ - "nginx" - ], "x-ms-correlation-request-id": [ - "afe9b256-7f36-47a5-81d3-7b2be84081bc" + "1abfa277-a905-43fc-9d8a-4b33f9ea44df" ], "x-ms-routing-request-id": [ - "NORTHEUROPE:20201027T175317Z:afe9b256-7f36-47a5-81d3-7b2be84081bc" + "CENTRALUS:20210505T195153Z:1abfa277-a905-43fc-9d8a-4b33f9ea44df" ], "X-Content-Type-Options": [ "nosniff" ], + "X-MSEdge-Ref": [ + "Ref A: 0E0430A154F14FD8B900E16DB94C15D6 Ref B: PDX31EDGE0120 Ref C: 2021-05-05T19:51:53Z" + ], "Date": [ - "Tue, 27 Oct 2020 17:53:17 GMT" + "Wed, 05 May 2021 19:51:53 GMT" ], "Content-Length": [ - "380" + "379" ], "Content-Type": [ "application/json; charset=utf-8" @@ -2256,20 +2199,20 @@ "-1" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-test-rg9020/providers/Microsoft.AVS/privateClouds/avs-sdk-test-cloud5466/clusters/avs-sdk-test-cluster5984/operationstatuses/15797e9a-cf59-480a-a238-a1fdf6d60d83\",\r\n \"name\": \"15797e9a-cf59-480a-a238-a1fdf6d60d83\",\r\n \"percentComplete\": 50,\r\n \"startTime\": \"2020-10-27T11:53:07.5317539-06:00\",\r\n \"status\": \"Building\"\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-test-rg1151/providers/Microsoft.AVS/privateClouds/avs-sdk-test-cloud3004/clusters/avs-sdk-test-cluster3283/operationstatuses/3b8378e2-771e-41aa-8410-70443b85be9a\",\r\n \"name\": \"3b8378e2-771e-41aa-8410-70443b85be9a\",\r\n \"percentComplete\": 0,\r\n \"startTime\": \"2021-05-05T12:51:50.6248572-07:00\",\r\n \"status\": \"Building\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-test-rg9020/providers/Microsoft.AVS/privateClouds/avs-sdk-test-cloud5466/clusters/avs-sdk-test-cluster5984/operationstatuses/15797e9a-cf59-480a-a238-a1fdf6d60d83?api-version=2020-03-20", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmE3NWU3OWItZGQ5NS00MDI1LTlkYmYtM2E3YWU4ZGZmMmI1L3Jlc291cmNlR3JvdXBzL2F2cy1zZGstdGVzdC1yZzkwMjAvcHJvdmlkZXJzL01pY3Jvc29mdC5BVlMvcHJpdmF0ZUNsb3Vkcy9hdnMtc2RrLXRlc3QtY2xvdWQ1NDY2L2NsdXN0ZXJzL2F2cy1zZGstdGVzdC1jbHVzdGVyNTk4NC9vcGVyYXRpb25zdGF0dXNlcy8xNTc5N2U5YS1jZjU5LTQ4MGEtYTIzOC1hMWZkZjZkNjBkODM/YXBpLXZlcnNpb249MjAyMC0wMy0yMA==", + "RequestUri": "/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-test-rg1151/providers/Microsoft.AVS/privateClouds/avs-sdk-test-cloud3004/clusters/avs-sdk-test-cluster3283/operationstatuses/3b8378e2-771e-41aa-8410-70443b85be9a?api-version=2021-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmE3NWU3OWItZGQ5NS00MDI1LTlkYmYtM2E3YWU4ZGZmMmI1L3Jlc291cmNlR3JvdXBzL2F2cy1zZGstdGVzdC1yZzExNTEvcHJvdmlkZXJzL01pY3Jvc29mdC5BVlMvcHJpdmF0ZUNsb3Vkcy9hdnMtc2RrLXRlc3QtY2xvdWQzMDA0L2NsdXN0ZXJzL2F2cy1zZGstdGVzdC1jbHVzdGVyMzI4My9vcGVyYXRpb25zdGF0dXNlcy8zYjgzNzhlMi03NzFlLTQxYWEtODQxMC03MDQ0M2I4NWJlOWE/YXBpLXZlcnNpb249MjAyMS0wNi0wMQ==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/4.6.29321.03", + "FxVersion/4.6.29916.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.Avs.AvsClient/1.0.0.preview.2" + "Microsoft.Azure.Management.Avs.AvsClient/1.0.0.1" ] }, "ResponseHeaders": { @@ -2283,28 +2226,28 @@ "10" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14975" + "14934" ], "x-ms-request-id": [ - "847ffe28-a8c1-4640-9ec2-7f564b6f3225" + "a730417e-a5f0-4a6b-bc11-9ccb548c9fa0" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "Server": [ - "nginx" - ], "x-ms-correlation-request-id": [ - "d0a5ab1a-3035-4d85-911b-90c9ca73b217" + "ee437f51-5dda-4bbe-9863-5be9db93df3d" ], "x-ms-routing-request-id": [ - "NORTHEUROPE:20201027T175328Z:d0a5ab1a-3035-4d85-911b-90c9ca73b217" + "CENTRALUS:20210505T195203Z:ee437f51-5dda-4bbe-9863-5be9db93df3d" ], "X-Content-Type-Options": [ "nosniff" ], + "X-MSEdge-Ref": [ + "Ref A: C3219E1525E14A978B372BE948C57D4E Ref B: PDX31EDGE0120 Ref C: 2021-05-05T19:52:03Z" + ], "Date": [ - "Tue, 27 Oct 2020 17:53:27 GMT" + "Wed, 05 May 2021 19:52:03 GMT" ], "Content-Length": [ "380" @@ -2316,20 +2259,20 @@ "-1" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-test-rg9020/providers/Microsoft.AVS/privateClouds/avs-sdk-test-cloud5466/clusters/avs-sdk-test-cluster5984/operationstatuses/15797e9a-cf59-480a-a238-a1fdf6d60d83\",\r\n \"name\": \"15797e9a-cf59-480a-a238-a1fdf6d60d83\",\r\n \"percentComplete\": 75,\r\n \"startTime\": \"2020-10-27T11:53:07.5317539-06:00\",\r\n \"status\": \"Building\"\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-test-rg1151/providers/Microsoft.AVS/privateClouds/avs-sdk-test-cloud3004/clusters/avs-sdk-test-cluster3283/operationstatuses/3b8378e2-771e-41aa-8410-70443b85be9a\",\r\n \"name\": \"3b8378e2-771e-41aa-8410-70443b85be9a\",\r\n \"percentComplete\": 50,\r\n \"startTime\": \"2021-05-05T12:51:50.6248572-07:00\",\r\n \"status\": \"Building\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-test-rg9020/providers/Microsoft.AVS/privateClouds/avs-sdk-test-cloud5466/clusters/avs-sdk-test-cluster5984/operationstatuses/15797e9a-cf59-480a-a238-a1fdf6d60d83?api-version=2020-03-20", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmE3NWU3OWItZGQ5NS00MDI1LTlkYmYtM2E3YWU4ZGZmMmI1L3Jlc291cmNlR3JvdXBzL2F2cy1zZGstdGVzdC1yZzkwMjAvcHJvdmlkZXJzL01pY3Jvc29mdC5BVlMvcHJpdmF0ZUNsb3Vkcy9hdnMtc2RrLXRlc3QtY2xvdWQ1NDY2L2NsdXN0ZXJzL2F2cy1zZGstdGVzdC1jbHVzdGVyNTk4NC9vcGVyYXRpb25zdGF0dXNlcy8xNTc5N2U5YS1jZjU5LTQ4MGEtYTIzOC1hMWZkZjZkNjBkODM/YXBpLXZlcnNpb249MjAyMC0wMy0yMA==", + "RequestUri": "/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-test-rg1151/providers/Microsoft.AVS/privateClouds/avs-sdk-test-cloud3004/clusters/avs-sdk-test-cluster3283/operationstatuses/3b8378e2-771e-41aa-8410-70443b85be9a?api-version=2021-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmE3NWU3OWItZGQ5NS00MDI1LTlkYmYtM2E3YWU4ZGZmMmI1L3Jlc291cmNlR3JvdXBzL2F2cy1zZGstdGVzdC1yZzExNTEvcHJvdmlkZXJzL01pY3Jvc29mdC5BVlMvcHJpdmF0ZUNsb3Vkcy9hdnMtc2RrLXRlc3QtY2xvdWQzMDA0L2NsdXN0ZXJzL2F2cy1zZGstdGVzdC1jbHVzdGVyMzI4My9vcGVyYXRpb25zdGF0dXNlcy8zYjgzNzhlMi03NzFlLTQxYWEtODQxMC03MDQ0M2I4NWJlOWE/YXBpLXZlcnNpb249MjAyMS0wNi0wMQ==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/4.6.29321.03", + "FxVersion/4.6.29916.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.Avs.AvsClient/1.0.0.preview.2" + "Microsoft.Azure.Management.Avs.AvsClient/1.0.0.1" ] }, "ResponseHeaders": { @@ -2343,31 +2286,31 @@ "10" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14974" + "14933" ], "x-ms-request-id": [ - "127de210-bc0a-4fd3-8775-a647877943a5" + "40aceefb-cd6f-43eb-b6a3-e97b3a5521e1" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "Server": [ - "nginx" - ], "x-ms-correlation-request-id": [ - "d910a6eb-28c5-40c1-bc2b-d22ebe4765e5" + "0bf78568-7b8c-4dcf-bd44-d0595e2f1aec" ], "x-ms-routing-request-id": [ - "NORTHEUROPE:20201027T175338Z:d910a6eb-28c5-40c1-bc2b-d22ebe4765e5" + "CENTRALUS:20210505T195213Z:0bf78568-7b8c-4dcf-bd44-d0595e2f1aec" ], "X-Content-Type-Options": [ "nosniff" ], + "X-MSEdge-Ref": [ + "Ref A: 575C8EC2393B4E6B9C194A4A6F2CAF30 Ref B: PDX31EDGE0120 Ref C: 2021-05-05T19:52:13Z" + ], "Date": [ - "Tue, 27 Oct 2020 17:53:38 GMT" + "Wed, 05 May 2021 19:52:13 GMT" ], "Content-Length": [ - "380" + "379" ], "Content-Type": [ "application/json; charset=utf-8" @@ -2376,20 +2319,20 @@ "-1" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-test-rg9020/providers/Microsoft.AVS/privateClouds/avs-sdk-test-cloud5466/clusters/avs-sdk-test-cluster5984/operationstatuses/15797e9a-cf59-480a-a238-a1fdf6d60d83\",\r\n \"name\": \"15797e9a-cf59-480a-a238-a1fdf6d60d83\",\r\n \"percentComplete\": 75,\r\n \"startTime\": \"2020-10-27T11:53:07.5317539-06:00\",\r\n \"status\": \"Building\"\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-test-rg1151/providers/Microsoft.AVS/privateClouds/avs-sdk-test-cloud3004/clusters/avs-sdk-test-cluster3283/operationstatuses/3b8378e2-771e-41aa-8410-70443b85be9a\",\r\n \"name\": \"3b8378e2-771e-41aa-8410-70443b85be9a\",\r\n \"percentComplete\": 0,\r\n \"startTime\": \"2021-05-05T12:51:50.6248572-07:00\",\r\n \"status\": \"Building\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-test-rg9020/providers/Microsoft.AVS/privateClouds/avs-sdk-test-cloud5466/clusters/avs-sdk-test-cluster5984/operationstatuses/15797e9a-cf59-480a-a238-a1fdf6d60d83?api-version=2020-03-20", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmE3NWU3OWItZGQ5NS00MDI1LTlkYmYtM2E3YWU4ZGZmMmI1L3Jlc291cmNlR3JvdXBzL2F2cy1zZGstdGVzdC1yZzkwMjAvcHJvdmlkZXJzL01pY3Jvc29mdC5BVlMvcHJpdmF0ZUNsb3Vkcy9hdnMtc2RrLXRlc3QtY2xvdWQ1NDY2L2NsdXN0ZXJzL2F2cy1zZGstdGVzdC1jbHVzdGVyNTk4NC9vcGVyYXRpb25zdGF0dXNlcy8xNTc5N2U5YS1jZjU5LTQ4MGEtYTIzOC1hMWZkZjZkNjBkODM/YXBpLXZlcnNpb249MjAyMC0wMy0yMA==", + "RequestUri": "/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-test-rg1151/providers/Microsoft.AVS/privateClouds/avs-sdk-test-cloud3004/clusters/avs-sdk-test-cluster3283/operationstatuses/3b8378e2-771e-41aa-8410-70443b85be9a?api-version=2021-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmE3NWU3OWItZGQ5NS00MDI1LTlkYmYtM2E3YWU4ZGZmMmI1L3Jlc291cmNlR3JvdXBzL2F2cy1zZGstdGVzdC1yZzExNTEvcHJvdmlkZXJzL01pY3Jvc29mdC5BVlMvcHJpdmF0ZUNsb3Vkcy9hdnMtc2RrLXRlc3QtY2xvdWQzMDA0L2NsdXN0ZXJzL2F2cy1zZGstdGVzdC1jbHVzdGVyMzI4My9vcGVyYXRpb25zdGF0dXNlcy8zYjgzNzhlMi03NzFlLTQxYWEtODQxMC03MDQ0M2I4NWJlOWE/YXBpLXZlcnNpb249MjAyMS0wNi0wMQ==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/4.6.29321.03", + "FxVersion/4.6.29916.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.Avs.AvsClient/1.0.0.preview.2" + "Microsoft.Azure.Management.Avs.AvsClient/1.0.0.1" ] }, "ResponseHeaders": { @@ -2403,31 +2346,31 @@ "10" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14973" + "14932" ], "x-ms-request-id": [ - "6f853815-ca83-4303-9839-1f1c146018f3" + "3a275387-7745-47f1-a9e7-9198d7d44b9b" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "Server": [ - "nginx" - ], "x-ms-correlation-request-id": [ - "95769ad0-d72a-49d4-8eda-9bf229a20a65" + "84e63ed8-59a1-4012-b260-8ded9a426b55" ], "x-ms-routing-request-id": [ - "NORTHEUROPE:20201027T175349Z:95769ad0-d72a-49d4-8eda-9bf229a20a65" + "CENTRALUS:20210505T195224Z:84e63ed8-59a1-4012-b260-8ded9a426b55" ], "X-Content-Type-Options": [ "nosniff" ], + "X-MSEdge-Ref": [ + "Ref A: 13B072B9E5D34DC6A2CF81C2901C57A3 Ref B: PDX31EDGE0120 Ref C: 2021-05-05T19:52:23Z" + ], "Date": [ - "Tue, 27 Oct 2020 17:53:49 GMT" + "Wed, 05 May 2021 19:52:24 GMT" ], "Content-Length": [ - "962" + "380" ], "Content-Type": [ "application/json; charset=utf-8" @@ -2436,20 +2379,20 @@ "-1" ] }, - "ResponseBody": "{\r\n \"endTime\": \"2020-10-27T11:53:39.0076101-06:00\",\r\n \"id\": \"/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-test-rg9020/providers/Microsoft.AVS/privateClouds/avs-sdk-test-cloud5466/clusters/avs-sdk-test-cluster5984/operationstatuses/15797e9a-cf59-480a-a238-a1fdf6d60d83\",\r\n \"name\": \"15797e9a-cf59-480a-a238-a1fdf6d60d83\",\r\n \"percentComplete\": 100,\r\n \"properties\": {\r\n \"id\": \"/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-test-rg9020/providers/Microsoft.AVS/privateClouds/avs-sdk-test-cloud5466/clusters/avs-sdk-test-cluster5984\",\r\n \"name\": \"avs-sdk-test-cluster5984\",\r\n \"properties\": {\r\n \"clusterId\": 2,\r\n \"clusterSize\": 3,\r\n \"hosts\": [\r\n \"gp-fakehost03.mp01.mock01.vmcp.vs.management\",\r\n \"gp-fakehost09.mp01.mock01.vmcp.vs.management\",\r\n \"gp-fakehost46.mp01.mock01.vmcp.vs.management\"\r\n ],\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"sku\": {\r\n \"name\": \"av20\"\r\n },\r\n \"type\": \"Microsoft.AVS/privateClouds/clusters\"\r\n },\r\n \"startTime\": \"2020-10-27T11:53:07.5317539-06:00\",\r\n \"status\": \"Succeeded\"\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-test-rg1151/providers/Microsoft.AVS/privateClouds/avs-sdk-test-cloud3004/clusters/avs-sdk-test-cluster3283/operationstatuses/3b8378e2-771e-41aa-8410-70443b85be9a\",\r\n \"name\": \"3b8378e2-771e-41aa-8410-70443b85be9a\",\r\n \"percentComplete\": 75,\r\n \"startTime\": \"2021-05-05T12:51:50.6248572-07:00\",\r\n \"status\": \"Building\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-test-rg9020/providers/Microsoft.AVS/privateClouds/avs-sdk-test-cloud5466/clusters/avs-sdk-test-cluster5984?api-version=2020-03-20", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmE3NWU3OWItZGQ5NS00MDI1LTlkYmYtM2E3YWU4ZGZmMmI1L3Jlc291cmNlR3JvdXBzL2F2cy1zZGstdGVzdC1yZzkwMjAvcHJvdmlkZXJzL01pY3Jvc29mdC5BVlMvcHJpdmF0ZUNsb3Vkcy9hdnMtc2RrLXRlc3QtY2xvdWQ1NDY2L2NsdXN0ZXJzL2F2cy1zZGstdGVzdC1jbHVzdGVyNTk4ND9hcGktdmVyc2lvbj0yMDIwLTAzLTIw", + "RequestUri": "/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-test-rg1151/providers/Microsoft.AVS/privateClouds/avs-sdk-test-cloud3004/clusters/avs-sdk-test-cluster3283/operationstatuses/3b8378e2-771e-41aa-8410-70443b85be9a?api-version=2021-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmE3NWU3OWItZGQ5NS00MDI1LTlkYmYtM2E3YWU4ZGZmMmI1L3Jlc291cmNlR3JvdXBzL2F2cy1zZGstdGVzdC1yZzExNTEvcHJvdmlkZXJzL01pY3Jvc29mdC5BVlMvcHJpdmF0ZUNsb3Vkcy9hdnMtc2RrLXRlc3QtY2xvdWQzMDA0L2NsdXN0ZXJzL2F2cy1zZGstdGVzdC1jbHVzdGVyMzI4My9vcGVyYXRpb25zdGF0dXNlcy8zYjgzNzhlMi03NzFlLTQxYWEtODQxMC03MDQ0M2I4NWJlOWE/YXBpLXZlcnNpb249MjAyMS0wNi0wMQ==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/4.6.29321.03", + "FxVersion/4.6.29916.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.Avs.AvsClient/1.0.0.preview.2" + "Microsoft.Azure.Management.Avs.AvsClient/1.0.0.1" ] }, "ResponseHeaders": { @@ -2459,32 +2402,35 @@ "Pragma": [ "no-cache" ], + "Retry-After": [ + "10" + ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14972" + "14931" ], "x-ms-request-id": [ - "cfbc02bf-6d11-4101-ad5b-c21d5440ffde" + "22fa1e58-1ace-463b-8c4f-a28e649b1ed0" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "Server": [ - "nginx" - ], "x-ms-correlation-request-id": [ - "fb173bb8-994f-4841-9c96-23103215c61c" + "d059cbe6-4912-419a-a016-73c22fc76554" ], "x-ms-routing-request-id": [ - "NORTHEUROPE:20201027T175349Z:fb173bb8-994f-4841-9c96-23103215c61c" + "CENTRALUS:20210505T195234Z:d059cbe6-4912-419a-a016-73c22fc76554" ], "X-Content-Type-Options": [ "nosniff" ], + "X-MSEdge-Ref": [ + "Ref A: 42030DD975EC4B3FA77D852614E1B7DE Ref B: PDX31EDGE0120 Ref C: 2021-05-05T19:52:34Z" + ], "Date": [ - "Tue, 27 Oct 2020 17:53:49 GMT" + "Wed, 05 May 2021 19:52:34 GMT" ], "Content-Length": [ - "520" + "380" ], "Content-Type": [ "application/json; charset=utf-8" @@ -2493,26 +2439,20 @@ "-1" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-test-rg9020/providers/Microsoft.AVS/privateClouds/avs-sdk-test-cloud5466/clusters/avs-sdk-test-cluster5984\",\r\n \"name\": \"avs-sdk-test-cluster5984\",\r\n \"properties\": {\r\n \"clusterId\": 2,\r\n \"clusterSize\": 3,\r\n \"hosts\": [\r\n \"gp-fakehost03.mp01.mock01.vmcp.vs.management\",\r\n \"gp-fakehost09.mp01.mock01.vmcp.vs.management\",\r\n \"gp-fakehost46.mp01.mock01.vmcp.vs.management\"\r\n ],\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"sku\": {\r\n \"name\": \"av20\"\r\n },\r\n \"type\": \"Microsoft.AVS/privateClouds/clusters\"\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-test-rg1151/providers/Microsoft.AVS/privateClouds/avs-sdk-test-cloud3004/clusters/avs-sdk-test-cluster3283/operationstatuses/3b8378e2-771e-41aa-8410-70443b85be9a\",\r\n \"name\": \"3b8378e2-771e-41aa-8410-70443b85be9a\",\r\n \"percentComplete\": 75,\r\n \"startTime\": \"2021-05-05T12:51:50.6248572-07:00\",\r\n \"status\": \"Building\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-test-rg9020/providers/Microsoft.AVS/privateClouds/avs-sdk-test-cloud5466/clusters/avs-sdk-test-cluster5984?api-version=2020-03-20", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmE3NWU3OWItZGQ5NS00MDI1LTlkYmYtM2E3YWU4ZGZmMmI1L3Jlc291cmNlR3JvdXBzL2F2cy1zZGstdGVzdC1yZzkwMjAvcHJvdmlkZXJzL01pY3Jvc29mdC5BVlMvcHJpdmF0ZUNsb3Vkcy9hdnMtc2RrLXRlc3QtY2xvdWQ1NDY2L2NsdXN0ZXJzL2F2cy1zZGstdGVzdC1jbHVzdGVyNTk4ND9hcGktdmVyc2lvbj0yMDIwLTAzLTIw", + "RequestUri": "/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-test-rg1151/providers/Microsoft.AVS/privateClouds/avs-sdk-test-cloud3004/clusters/avs-sdk-test-cluster3283/operationstatuses/3b8378e2-771e-41aa-8410-70443b85be9a?api-version=2021-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmE3NWU3OWItZGQ5NS00MDI1LTlkYmYtM2E3YWU4ZGZmMmI1L3Jlc291cmNlR3JvdXBzL2F2cy1zZGstdGVzdC1yZzExNTEvcHJvdmlkZXJzL01pY3Jvc29mdC5BVlMvcHJpdmF0ZUNsb3Vkcy9hdnMtc2RrLXRlc3QtY2xvdWQzMDA0L2NsdXN0ZXJzL2F2cy1zZGstdGVzdC1jbHVzdGVyMzI4My9vcGVyYXRpb25zdGF0dXNlcy8zYjgzNzhlMi03NzFlLTQxYWEtODQxMC03MDQ0M2I4NWJlOWE/YXBpLXZlcnNpb249MjAyMS0wNi0wMQ==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { - "x-ms-client-request-id": [ - "5d6f22b2-21fc-439b-b8a8-bfe25b6db8a0" - ], - "Accept-Language": [ - "en-US" - ], "User-Agent": [ - "FxVersion/4.6.29321.03", + "FxVersion/4.6.29916.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.Avs.AvsClient/1.0.0.preview.2" + "Microsoft.Azure.Management.Avs.AvsClient/1.0.0.1" ] }, "ResponseHeaders": { @@ -2522,32 +2462,35 @@ "Pragma": [ "no-cache" ], + "Retry-After": [ + "10" + ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14971" + "14930" ], "x-ms-request-id": [ - "8ad4e59d-d56a-4c42-a7a8-5b7db4f64852" + "f1921595-bd6c-4910-a2ad-13b21d453dd8" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "Server": [ - "nginx" - ], "x-ms-correlation-request-id": [ - "d7241d01-2881-4dd4-b6ce-c12a5d00f253" + "f813a40c-0f25-416d-8513-872abd3bdc82" ], "x-ms-routing-request-id": [ - "NORTHEUROPE:20201027T175349Z:d7241d01-2881-4dd4-b6ce-c12a5d00f253" + "CENTRALUS:20210505T195244Z:f813a40c-0f25-416d-8513-872abd3bdc82" ], "X-Content-Type-Options": [ "nosniff" ], + "X-MSEdge-Ref": [ + "Ref A: 3B0580A315FF46B78176BB5A1B3F258F Ref B: PDX31EDGE0120 Ref C: 2021-05-05T19:52:44Z" + ], "Date": [ - "Tue, 27 Oct 2020 17:53:49 GMT" + "Wed, 05 May 2021 19:52:44 GMT" ], "Content-Length": [ - "520" + "962" ], "Content-Type": [ "application/json; charset=utf-8" @@ -2556,26 +2499,20 @@ "-1" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-test-rg9020/providers/Microsoft.AVS/privateClouds/avs-sdk-test-cloud5466/clusters/avs-sdk-test-cluster5984\",\r\n \"name\": \"avs-sdk-test-cluster5984\",\r\n \"properties\": {\r\n \"clusterId\": 2,\r\n \"clusterSize\": 3,\r\n \"hosts\": [\r\n \"gp-fakehost03.mp01.mock01.vmcp.vs.management\",\r\n \"gp-fakehost09.mp01.mock01.vmcp.vs.management\",\r\n \"gp-fakehost46.mp01.mock01.vmcp.vs.management\"\r\n ],\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"sku\": {\r\n \"name\": \"av20\"\r\n },\r\n \"type\": \"Microsoft.AVS/privateClouds/clusters\"\r\n}", + "ResponseBody": "{\r\n \"endTime\": \"2021-05-05T12:52:32.0497937-07:00\",\r\n \"id\": \"/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-test-rg1151/providers/Microsoft.AVS/privateClouds/avs-sdk-test-cloud3004/clusters/avs-sdk-test-cluster3283/operationstatuses/3b8378e2-771e-41aa-8410-70443b85be9a\",\r\n \"name\": \"3b8378e2-771e-41aa-8410-70443b85be9a\",\r\n \"percentComplete\": 100,\r\n \"properties\": {\r\n \"id\": \"/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-test-rg1151/providers/Microsoft.AVS/privateClouds/avs-sdk-test-cloud3004/clusters/avs-sdk-test-cluster3283\",\r\n \"name\": \"avs-sdk-test-cluster3283\",\r\n \"properties\": {\r\n \"clusterId\": 2,\r\n \"clusterSize\": 3,\r\n \"hosts\": [\r\n \"gp-fakehost36.mp01.mock01.vmcp.vs.management\",\r\n \"gp-fakehost33.mp01.mock01.vmcp.vs.management\",\r\n \"gp-fakehost41.mp01.mock01.vmcp.vs.management\"\r\n ],\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"sku\": {\r\n \"name\": \"av20\"\r\n },\r\n \"type\": \"Microsoft.AVS/privateClouds/clusters\"\r\n },\r\n \"startTime\": \"2021-05-05T12:51:50.6248572-07:00\",\r\n \"status\": \"Succeeded\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-test-rg9020/providers/Microsoft.AVS/privateClouds/avs-sdk-test-cloud5466/clusters/avs-sdk-test-cluster5984?api-version=2020-03-20", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmE3NWU3OWItZGQ5NS00MDI1LTlkYmYtM2E3YWU4ZGZmMmI1L3Jlc291cmNlR3JvdXBzL2F2cy1zZGstdGVzdC1yZzkwMjAvcHJvdmlkZXJzL01pY3Jvc29mdC5BVlMvcHJpdmF0ZUNsb3Vkcy9hdnMtc2RrLXRlc3QtY2xvdWQ1NDY2L2NsdXN0ZXJzL2F2cy1zZGstdGVzdC1jbHVzdGVyNTk4ND9hcGktdmVyc2lvbj0yMDIwLTAzLTIw", - "RequestMethod": "DELETE", + "RequestUri": "/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-test-rg1151/providers/Microsoft.AVS/privateClouds/avs-sdk-test-cloud3004/clusters/avs-sdk-test-cluster3283?api-version=2021-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmE3NWU3OWItZGQ5NS00MDI1LTlkYmYtM2E3YWU4ZGZmMmI1L3Jlc291cmNlR3JvdXBzL2F2cy1zZGstdGVzdC1yZzExNTEvcHJvdmlkZXJzL01pY3Jvc29mdC5BVlMvcHJpdmF0ZUNsb3Vkcy9hdnMtc2RrLXRlc3QtY2xvdWQzMDA0L2NsdXN0ZXJzL2F2cy1zZGstdGVzdC1jbHVzdGVyMzI4Mz9hcGktdmVyc2lvbj0yMDIxLTA2LTAx", + "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { - "x-ms-client-request-id": [ - "18441501-5e9d-4bcc-b38e-e31355f2641f" - ], - "Accept-Language": [ - "en-US" - ], "User-Agent": [ - "FxVersion/4.6.29321.03", + "FxVersion/4.6.29916.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.Avs.AvsClient/1.0.0.preview.2" + "Microsoft.Azure.Management.Avs.AvsClient/1.0.0.1" ] }, "ResponseHeaders": { @@ -2585,41 +2522,32 @@ "Pragma": [ "no-cache" ], - "Location": [ - "https://api-dogfood.resources.windows-int.net/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-test-rg9020/providers/Microsoft.AVS/privateClouds/avs-sdk-test-cloud5466/clusters/avs-sdk-test-cluster5984/operationresults/a0100be7-4b68-4378-bafc-3ada59a2d869?api-version=2020-03-20" - ], - "Retry-After": [ - "10" - ], - "x-ms-ratelimit-remaining-subscription-deletes": [ - "14997" - ], - "Azure-AsyncOperation": [ - "https://api-dogfood.resources.windows-int.net/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-test-rg9020/providers/Microsoft.AVS/privateClouds/avs-sdk-test-cloud5466/clusters/avs-sdk-test-cluster5984/operationstatuses/a0100be7-4b68-4378-bafc-3ada59a2d869?api-version=2020-03-20" + "x-ms-ratelimit-remaining-subscription-reads": [ + "14929" ], "x-ms-request-id": [ - "5aa48a7e-461c-4d20-8b64-0e6970dfe51c" + "f5abf99a-cf21-4ca4-9f44-d3e1eeb5a79f" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "Server": [ - "nginx" - ], "x-ms-correlation-request-id": [ - "b45aa9bf-0757-4ba6-9980-ab01be9304ca" + "ca67f1fe-a179-4664-a179-4534822d7102" ], "x-ms-routing-request-id": [ - "NORTHEUROPE:20201027T175350Z:b45aa9bf-0757-4ba6-9980-ab01be9304ca" + "CENTRALUS:20210505T195244Z:ca67f1fe-a179-4664-a179-4534822d7102" ], "X-Content-Type-Options": [ "nosniff" ], + "X-MSEdge-Ref": [ + "Ref A: 211CFD9181EF4E068CCFD46487CB2E30 Ref B: PDX31EDGE0120 Ref C: 2021-05-05T19:52:44Z" + ], "Date": [ - "Tue, 27 Oct 2020 17:53:50 GMT" + "Wed, 05 May 2021 19:52:44 GMT" ], "Content-Length": [ - "519" + "520" ], "Content-Type": [ "application/json; charset=utf-8" @@ -2628,20 +2556,26 @@ "-1" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-test-rg9020/providers/Microsoft.AVS/privateClouds/avs-sdk-test-cloud5466/clusters/avs-sdk-test-cluster5984\",\r\n \"name\": \"avs-sdk-test-cluster5984\",\r\n \"properties\": {\r\n \"clusterId\": 2,\r\n \"clusterSize\": 3,\r\n \"hosts\": [\r\n \"gp-fakehost03.mp01.mock01.vmcp.vs.management\",\r\n \"gp-fakehost09.mp01.mock01.vmcp.vs.management\",\r\n \"gp-fakehost46.mp01.mock01.vmcp.vs.management\"\r\n ],\r\n \"provisioningState\": \"Deleting\"\r\n },\r\n \"sku\": {\r\n \"name\": \"av20\"\r\n },\r\n \"type\": \"Microsoft.AVS/privateClouds/clusters\"\r\n}", - "StatusCode": 202 + "ResponseBody": "{\r\n \"id\": \"/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-test-rg1151/providers/Microsoft.AVS/privateClouds/avs-sdk-test-cloud3004/clusters/avs-sdk-test-cluster3283\",\r\n \"name\": \"avs-sdk-test-cluster3283\",\r\n \"properties\": {\r\n \"clusterId\": 2,\r\n \"clusterSize\": 3,\r\n \"hosts\": [\r\n \"gp-fakehost36.mp01.mock01.vmcp.vs.management\",\r\n \"gp-fakehost33.mp01.mock01.vmcp.vs.management\",\r\n \"gp-fakehost41.mp01.mock01.vmcp.vs.management\"\r\n ],\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"sku\": {\r\n \"name\": \"av20\"\r\n },\r\n \"type\": \"Microsoft.AVS/privateClouds/clusters\"\r\n}", + "StatusCode": 200 }, { - "RequestUri": "/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-test-rg9020/providers/Microsoft.AVS/privateClouds/avs-sdk-test-cloud5466/clusters/avs-sdk-test-cluster5984/operationstatuses/a0100be7-4b68-4378-bafc-3ada59a2d869?api-version=2020-03-20", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmE3NWU3OWItZGQ5NS00MDI1LTlkYmYtM2E3YWU4ZGZmMmI1L3Jlc291cmNlR3JvdXBzL2F2cy1zZGstdGVzdC1yZzkwMjAvcHJvdmlkZXJzL01pY3Jvc29mdC5BVlMvcHJpdmF0ZUNsb3Vkcy9hdnMtc2RrLXRlc3QtY2xvdWQ1NDY2L2NsdXN0ZXJzL2F2cy1zZGstdGVzdC1jbHVzdGVyNTk4NC9vcGVyYXRpb25zdGF0dXNlcy9hMDEwMGJlNy00YjY4LTQzNzgtYmFmYy0zYWRhNTlhMmQ4Njk/YXBpLXZlcnNpb249MjAyMC0wMy0yMA==", + "RequestUri": "/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-test-rg1151/providers/Microsoft.AVS/privateClouds/avs-sdk-test-cloud3004/clusters/avs-sdk-test-cluster3283?api-version=2021-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmE3NWU3OWItZGQ5NS00MDI1LTlkYmYtM2E3YWU4ZGZmMmI1L3Jlc291cmNlR3JvdXBzL2F2cy1zZGstdGVzdC1yZzExNTEvcHJvdmlkZXJzL01pY3Jvc29mdC5BVlMvcHJpdmF0ZUNsb3Vkcy9hdnMtc2RrLXRlc3QtY2xvdWQzMDA0L2NsdXN0ZXJzL2F2cy1zZGstdGVzdC1jbHVzdGVyMzI4Mz9hcGktdmVyc2lvbj0yMDIxLTA2LTAx", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { + "x-ms-client-request-id": [ + "477e3a92-0a78-46d9-a086-064aea40037e" + ], + "Accept-Language": [ + "en-US" + ], "User-Agent": [ - "FxVersion/4.6.29321.03", + "FxVersion/4.6.29916.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.Avs.AvsClient/1.0.0.preview.2" + "Microsoft.Azure.Management.Avs.AvsClient/1.0.0.1" ] }, "ResponseHeaders": { @@ -2651,35 +2585,32 @@ "Pragma": [ "no-cache" ], - "Retry-After": [ - "10" - ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14969" + "14928" ], "x-ms-request-id": [ - "8a8f6170-ea2c-4cf8-8811-f874ec5d1293" + "8561ba88-a354-4114-93b3-090be40caf2c" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "Server": [ - "nginx" - ], "x-ms-correlation-request-id": [ - "43dcf93d-f6fa-4c7c-9001-aae36fe2ffba" + "78c2b20f-d109-40e4-a1ac-42f4db052654" ], "x-ms-routing-request-id": [ - "NORTHEUROPE:20201027T175400Z:43dcf93d-f6fa-4c7c-9001-aae36fe2ffba" + "CENTRALUS:20210505T195244Z:78c2b20f-d109-40e4-a1ac-42f4db052654" ], "X-Content-Type-Options": [ "nosniff" ], + "X-MSEdge-Ref": [ + "Ref A: 920E42615A244E22B2E2418FE00E7A46 Ref B: PDX31EDGE0120 Ref C: 2021-05-05T19:52:44Z" + ], "Date": [ - "Tue, 27 Oct 2020 17:54:00 GMT" + "Wed, 05 May 2021 19:52:44 GMT" ], "Content-Length": [ - "380" + "520" ], "Content-Type": [ "application/json; charset=utf-8" @@ -2688,20 +2619,26 @@ "-1" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-test-rg9020/providers/Microsoft.AVS/privateClouds/avs-sdk-test-cloud5466/clusters/avs-sdk-test-cluster5984/operationstatuses/a0100be7-4b68-4378-bafc-3ada59a2d869\",\r\n \"name\": \"a0100be7-4b68-4378-bafc-3ada59a2d869\",\r\n \"percentComplete\": 50,\r\n \"startTime\": \"2020-10-27T11:53:50.3364999-06:00\",\r\n \"status\": \"Building\"\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-test-rg1151/providers/Microsoft.AVS/privateClouds/avs-sdk-test-cloud3004/clusters/avs-sdk-test-cluster3283\",\r\n \"name\": \"avs-sdk-test-cluster3283\",\r\n \"properties\": {\r\n \"clusterId\": 2,\r\n \"clusterSize\": 3,\r\n \"hosts\": [\r\n \"gp-fakehost36.mp01.mock01.vmcp.vs.management\",\r\n \"gp-fakehost33.mp01.mock01.vmcp.vs.management\",\r\n \"gp-fakehost41.mp01.mock01.vmcp.vs.management\"\r\n ],\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"sku\": {\r\n \"name\": \"av20\"\r\n },\r\n \"type\": \"Microsoft.AVS/privateClouds/clusters\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-test-rg9020/providers/Microsoft.AVS/privateClouds/avs-sdk-test-cloud5466/clusters/avs-sdk-test-cluster5984/operationstatuses/a0100be7-4b68-4378-bafc-3ada59a2d869?api-version=2020-03-20", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmE3NWU3OWItZGQ5NS00MDI1LTlkYmYtM2E3YWU4ZGZmMmI1L3Jlc291cmNlR3JvdXBzL2F2cy1zZGstdGVzdC1yZzkwMjAvcHJvdmlkZXJzL01pY3Jvc29mdC5BVlMvcHJpdmF0ZUNsb3Vkcy9hdnMtc2RrLXRlc3QtY2xvdWQ1NDY2L2NsdXN0ZXJzL2F2cy1zZGstdGVzdC1jbHVzdGVyNTk4NC9vcGVyYXRpb25zdGF0dXNlcy9hMDEwMGJlNy00YjY4LTQzNzgtYmFmYy0zYWRhNTlhMmQ4Njk/YXBpLXZlcnNpb249MjAyMC0wMy0yMA==", - "RequestMethod": "GET", + "RequestUri": "/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-test-rg1151/providers/Microsoft.AVS/privateClouds/avs-sdk-test-cloud3004/clusters/avs-sdk-test-cluster3283?api-version=2021-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmE3NWU3OWItZGQ5NS00MDI1LTlkYmYtM2E3YWU4ZGZmMmI1L3Jlc291cmNlR3JvdXBzL2F2cy1zZGstdGVzdC1yZzExNTEvcHJvdmlkZXJzL01pY3Jvc29mdC5BVlMvcHJpdmF0ZUNsb3Vkcy9hdnMtc2RrLXRlc3QtY2xvdWQzMDA0L2NsdXN0ZXJzL2F2cy1zZGstdGVzdC1jbHVzdGVyMzI4Mz9hcGktdmVyc2lvbj0yMDIxLTA2LTAx", + "RequestMethod": "DELETE", "RequestBody": "", "RequestHeaders": { + "x-ms-client-request-id": [ + "4e28535e-622c-43ed-8edb-642c906fd9b2" + ], + "Accept-Language": [ + "en-US" + ], "User-Agent": [ - "FxVersion/4.6.29321.03", + "FxVersion/4.6.29916.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.Avs.AvsClient/1.0.0.preview.2" + "Microsoft.Azure.Management.Avs.AvsClient/1.0.0.1" ] }, "ResponseHeaders": { @@ -2711,35 +2648,41 @@ "Pragma": [ "no-cache" ], + "Location": [ + "https://api-dogfood.resources.windows-int.net/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-test-rg1151/providers/Microsoft.AVS/privateClouds/avs-sdk-test-cloud3004/clusters/avs-sdk-test-cluster3283/operationresults/2736d478-49ab-4838-b45b-beca4b47aeea?api-version=2021-06-01" + ], "Retry-After": [ "10" ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "14968" + "x-ms-ratelimit-remaining-subscription-deletes": [ + "14994" + ], + "Azure-AsyncOperation": [ + "https://api-dogfood.resources.windows-int.net/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-test-rg1151/providers/Microsoft.AVS/privateClouds/avs-sdk-test-cloud3004/clusters/avs-sdk-test-cluster3283/operationstatuses/2736d478-49ab-4838-b45b-beca4b47aeea?api-version=2021-06-01" ], "x-ms-request-id": [ - "0d25a595-f7c2-4ecb-a018-7d90dcfceec8" + "a112480b-ba96-437d-bfbd-d689c3d9cc0b" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "Server": [ - "nginx" - ], "x-ms-correlation-request-id": [ - "f6ffa72b-31a5-446f-a32f-de82126b55d3" + "65ee0a66-8ce5-4f4d-9211-ea47bb915328" ], "x-ms-routing-request-id": [ - "NORTHEUROPE:20201027T175411Z:f6ffa72b-31a5-446f-a32f-de82126b55d3" + "CENTRALUS:20210505T195245Z:65ee0a66-8ce5-4f4d-9211-ea47bb915328" ], "X-Content-Type-Options": [ "nosniff" ], + "X-MSEdge-Ref": [ + "Ref A: 408BFBB4FFF2473EB10883BBD13219CC Ref B: PDX31EDGE0120 Ref C: 2021-05-05T19:52:44Z" + ], "Date": [ - "Tue, 27 Oct 2020 17:54:10 GMT" + "Wed, 05 May 2021 19:52:45 GMT" ], "Content-Length": [ - "380" + "519" ], "Content-Type": [ "application/json; charset=utf-8" @@ -2748,20 +2691,20 @@ "-1" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-test-rg9020/providers/Microsoft.AVS/privateClouds/avs-sdk-test-cloud5466/clusters/avs-sdk-test-cluster5984/operationstatuses/a0100be7-4b68-4378-bafc-3ada59a2d869\",\r\n \"name\": \"a0100be7-4b68-4378-bafc-3ada59a2d869\",\r\n \"percentComplete\": 50,\r\n \"startTime\": \"2020-10-27T11:53:50.3364999-06:00\",\r\n \"status\": \"Building\"\r\n}", - "StatusCode": 200 + "ResponseBody": "{\r\n \"id\": \"/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-test-rg1151/providers/Microsoft.AVS/privateClouds/avs-sdk-test-cloud3004/clusters/avs-sdk-test-cluster3283\",\r\n \"name\": \"avs-sdk-test-cluster3283\",\r\n \"properties\": {\r\n \"clusterId\": 2,\r\n \"clusterSize\": 3,\r\n \"hosts\": [\r\n \"gp-fakehost36.mp01.mock01.vmcp.vs.management\",\r\n \"gp-fakehost33.mp01.mock01.vmcp.vs.management\",\r\n \"gp-fakehost41.mp01.mock01.vmcp.vs.management\"\r\n ],\r\n \"provisioningState\": \"Deleting\"\r\n },\r\n \"sku\": {\r\n \"name\": \"av20\"\r\n },\r\n \"type\": \"Microsoft.AVS/privateClouds/clusters\"\r\n}", + "StatusCode": 202 }, { - "RequestUri": "/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-test-rg9020/providers/Microsoft.AVS/privateClouds/avs-sdk-test-cloud5466/clusters/avs-sdk-test-cluster5984/operationstatuses/a0100be7-4b68-4378-bafc-3ada59a2d869?api-version=2020-03-20", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmE3NWU3OWItZGQ5NS00MDI1LTlkYmYtM2E3YWU4ZGZmMmI1L3Jlc291cmNlR3JvdXBzL2F2cy1zZGstdGVzdC1yZzkwMjAvcHJvdmlkZXJzL01pY3Jvc29mdC5BVlMvcHJpdmF0ZUNsb3Vkcy9hdnMtc2RrLXRlc3QtY2xvdWQ1NDY2L2NsdXN0ZXJzL2F2cy1zZGstdGVzdC1jbHVzdGVyNTk4NC9vcGVyYXRpb25zdGF0dXNlcy9hMDEwMGJlNy00YjY4LTQzNzgtYmFmYy0zYWRhNTlhMmQ4Njk/YXBpLXZlcnNpb249MjAyMC0wMy0yMA==", + "RequestUri": "/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-test-rg1151/providers/Microsoft.AVS/privateClouds/avs-sdk-test-cloud3004/clusters/avs-sdk-test-cluster3283/operationstatuses/2736d478-49ab-4838-b45b-beca4b47aeea?api-version=2021-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmE3NWU3OWItZGQ5NS00MDI1LTlkYmYtM2E3YWU4ZGZmMmI1L3Jlc291cmNlR3JvdXBzL2F2cy1zZGstdGVzdC1yZzExNTEvcHJvdmlkZXJzL01pY3Jvc29mdC5BVlMvcHJpdmF0ZUNsb3Vkcy9hdnMtc2RrLXRlc3QtY2xvdWQzMDA0L2NsdXN0ZXJzL2F2cy1zZGstdGVzdC1jbHVzdGVyMzI4My9vcGVyYXRpb25zdGF0dXNlcy8yNzM2ZDQ3OC00OWFiLTQ4MzgtYjQ1Yi1iZWNhNGI0N2FlZWE/YXBpLXZlcnNpb249MjAyMS0wNi0wMQ==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/4.6.29321.03", + "FxVersion/4.6.29916.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.Avs.AvsClient/1.0.0.preview.2" + "Microsoft.Azure.Management.Avs.AvsClient/1.0.0.1" ] }, "ResponseHeaders": { @@ -2775,31 +2718,31 @@ "10" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14967" + "14926" ], "x-ms-request-id": [ - "1c0fa5b8-74d3-4a41-844f-51c2cf6a3f6d" + "23da28af-4722-4cf6-9309-e345b3902a1b" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "Server": [ - "nginx" - ], "x-ms-correlation-request-id": [ - "ad47f0e5-4a3a-48ce-83ba-52b664890f0a" + "f5554652-4219-486b-a39d-428d4d32623e" ], "x-ms-routing-request-id": [ - "NORTHEUROPE:20201027T175421Z:ad47f0e5-4a3a-48ce-83ba-52b664890f0a" + "CENTRALUS:20210505T195255Z:f5554652-4219-486b-a39d-428d4d32623e" ], "X-Content-Type-Options": [ "nosniff" ], + "X-MSEdge-Ref": [ + "Ref A: 6ACD31FDA7624320ABA25B88431EA5E6 Ref B: PDX31EDGE0120 Ref C: 2021-05-05T19:52:55Z" + ], "Date": [ - "Tue, 27 Oct 2020 17:54:21 GMT" + "Wed, 05 May 2021 19:52:55 GMT" ], "Content-Length": [ - "380" + "379" ], "Content-Type": [ "application/json; charset=utf-8" @@ -2808,20 +2751,20 @@ "-1" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-test-rg9020/providers/Microsoft.AVS/privateClouds/avs-sdk-test-cloud5466/clusters/avs-sdk-test-cluster5984/operationstatuses/a0100be7-4b68-4378-bafc-3ada59a2d869\",\r\n \"name\": \"a0100be7-4b68-4378-bafc-3ada59a2d869\",\r\n \"percentComplete\": 75,\r\n \"startTime\": \"2020-10-27T11:53:50.3364999-06:00\",\r\n \"status\": \"Building\"\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-test-rg1151/providers/Microsoft.AVS/privateClouds/avs-sdk-test-cloud3004/clusters/avs-sdk-test-cluster3283/operationstatuses/2736d478-49ab-4838-b45b-beca4b47aeea\",\r\n \"name\": \"2736d478-49ab-4838-b45b-beca4b47aeea\",\r\n \"percentComplete\": 0,\r\n \"startTime\": \"2021-05-05T12:52:52.7539331-07:00\",\r\n \"status\": \"Building\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-test-rg9020/providers/Microsoft.AVS/privateClouds/avs-sdk-test-cloud5466/clusters/avs-sdk-test-cluster5984/operationstatuses/a0100be7-4b68-4378-bafc-3ada59a2d869?api-version=2020-03-20", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmE3NWU3OWItZGQ5NS00MDI1LTlkYmYtM2E3YWU4ZGZmMmI1L3Jlc291cmNlR3JvdXBzL2F2cy1zZGstdGVzdC1yZzkwMjAvcHJvdmlkZXJzL01pY3Jvc29mdC5BVlMvcHJpdmF0ZUNsb3Vkcy9hdnMtc2RrLXRlc3QtY2xvdWQ1NDY2L2NsdXN0ZXJzL2F2cy1zZGstdGVzdC1jbHVzdGVyNTk4NC9vcGVyYXRpb25zdGF0dXNlcy9hMDEwMGJlNy00YjY4LTQzNzgtYmFmYy0zYWRhNTlhMmQ4Njk/YXBpLXZlcnNpb249MjAyMC0wMy0yMA==", + "RequestUri": "/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-test-rg1151/providers/Microsoft.AVS/privateClouds/avs-sdk-test-cloud3004/clusters/avs-sdk-test-cluster3283/operationstatuses/2736d478-49ab-4838-b45b-beca4b47aeea?api-version=2021-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmE3NWU3OWItZGQ5NS00MDI1LTlkYmYtM2E3YWU4ZGZmMmI1L3Jlc291cmNlR3JvdXBzL2F2cy1zZGstdGVzdC1yZzExNTEvcHJvdmlkZXJzL01pY3Jvc29mdC5BVlMvcHJpdmF0ZUNsb3Vkcy9hdnMtc2RrLXRlc3QtY2xvdWQzMDA0L2NsdXN0ZXJzL2F2cy1zZGstdGVzdC1jbHVzdGVyMzI4My9vcGVyYXRpb25zdGF0dXNlcy8yNzM2ZDQ3OC00OWFiLTQ4MzgtYjQ1Yi1iZWNhNGI0N2FlZWE/YXBpLXZlcnNpb249MjAyMS0wNi0wMQ==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/4.6.29321.03", + "FxVersion/4.6.29916.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.Avs.AvsClient/1.0.0.preview.2" + "Microsoft.Azure.Management.Avs.AvsClient/1.0.0.1" ] }, "ResponseHeaders": { @@ -2835,28 +2778,28 @@ "10" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14966" + "14925" ], "x-ms-request-id": [ - "3e1d05f6-ca6d-47e7-a740-440abed2eb76" + "783daeb8-7785-40c6-ba3c-7349a1bfc519" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "Server": [ - "nginx" - ], "x-ms-correlation-request-id": [ - "fbde41dc-47d4-40ad-b986-2ebd309d0f82" + "202f18ad-5460-418f-9c08-1bacb4050bef" ], "x-ms-routing-request-id": [ - "NORTHEUROPE:20201027T175431Z:fbde41dc-47d4-40ad-b986-2ebd309d0f82" + "CENTRALUS:20210505T195305Z:202f18ad-5460-418f-9c08-1bacb4050bef" ], "X-Content-Type-Options": [ "nosniff" ], + "X-MSEdge-Ref": [ + "Ref A: 3FEAEA833C0345E2A83868751F58F979 Ref B: PDX31EDGE0120 Ref C: 2021-05-05T19:53:05Z" + ], "Date": [ - "Tue, 27 Oct 2020 17:54:30 GMT" + "Wed, 05 May 2021 19:53:05 GMT" ], "Content-Length": [ "380" @@ -2868,20 +2811,20 @@ "-1" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-test-rg9020/providers/Microsoft.AVS/privateClouds/avs-sdk-test-cloud5466/clusters/avs-sdk-test-cluster5984/operationstatuses/a0100be7-4b68-4378-bafc-3ada59a2d869\",\r\n \"name\": \"a0100be7-4b68-4378-bafc-3ada59a2d869\",\r\n \"percentComplete\": 75,\r\n \"startTime\": \"2020-10-27T11:53:50.3364999-06:00\",\r\n \"status\": \"Building\"\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-test-rg1151/providers/Microsoft.AVS/privateClouds/avs-sdk-test-cloud3004/clusters/avs-sdk-test-cluster3283/operationstatuses/2736d478-49ab-4838-b45b-beca4b47aeea\",\r\n \"name\": \"2736d478-49ab-4838-b45b-beca4b47aeea\",\r\n \"percentComplete\": 50,\r\n \"startTime\": \"2021-05-05T12:52:52.7539331-07:00\",\r\n \"status\": \"Building\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-test-rg9020/providers/Microsoft.AVS/privateClouds/avs-sdk-test-cloud5466/clusters/avs-sdk-test-cluster5984/operationstatuses/a0100be7-4b68-4378-bafc-3ada59a2d869?api-version=2020-03-20", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmE3NWU3OWItZGQ5NS00MDI1LTlkYmYtM2E3YWU4ZGZmMmI1L3Jlc291cmNlR3JvdXBzL2F2cy1zZGstdGVzdC1yZzkwMjAvcHJvdmlkZXJzL01pY3Jvc29mdC5BVlMvcHJpdmF0ZUNsb3Vkcy9hdnMtc2RrLXRlc3QtY2xvdWQ1NDY2L2NsdXN0ZXJzL2F2cy1zZGstdGVzdC1jbHVzdGVyNTk4NC9vcGVyYXRpb25zdGF0dXNlcy9hMDEwMGJlNy00YjY4LTQzNzgtYmFmYy0zYWRhNTlhMmQ4Njk/YXBpLXZlcnNpb249MjAyMC0wMy0yMA==", + "RequestUri": "/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-test-rg1151/providers/Microsoft.AVS/privateClouds/avs-sdk-test-cloud3004/clusters/avs-sdk-test-cluster3283/operationstatuses/2736d478-49ab-4838-b45b-beca4b47aeea?api-version=2021-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmE3NWU3OWItZGQ5NS00MDI1LTlkYmYtM2E3YWU4ZGZmMmI1L3Jlc291cmNlR3JvdXBzL2F2cy1zZGstdGVzdC1yZzExNTEvcHJvdmlkZXJzL01pY3Jvc29mdC5BVlMvcHJpdmF0ZUNsb3Vkcy9hdnMtc2RrLXRlc3QtY2xvdWQzMDA0L2NsdXN0ZXJzL2F2cy1zZGstdGVzdC1jbHVzdGVyMzI4My9vcGVyYXRpb25zdGF0dXNlcy8yNzM2ZDQ3OC00OWFiLTQ4MzgtYjQ1Yi1iZWNhNGI0N2FlZWE/YXBpLXZlcnNpb249MjAyMS0wNi0wMQ==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/4.6.29321.03", + "FxVersion/4.6.29916.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.Avs.AvsClient/1.0.0.preview.2" + "Microsoft.Azure.Management.Avs.AvsClient/1.0.0.1" ] }, "ResponseHeaders": { @@ -2895,28 +2838,28 @@ "10" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14965" + "14924" ], "x-ms-request-id": [ - "469d48c0-8cf4-4e2d-ad46-580f64b2908f" + "59a68322-aa9b-4edb-a4a3-6604e2683bf9" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "Server": [ - "nginx" - ], "x-ms-correlation-request-id": [ - "830e1941-296c-4031-87ca-b629fb52cabc" + "b8968c15-5f7b-4b26-8be7-a341b77ab3b2" ], "x-ms-routing-request-id": [ - "NORTHEUROPE:20201027T175441Z:830e1941-296c-4031-87ca-b629fb52cabc" + "CENTRALUS:20210505T195316Z:b8968c15-5f7b-4b26-8be7-a341b77ab3b2" ], "X-Content-Type-Options": [ "nosniff" ], + "X-MSEdge-Ref": [ + "Ref A: BE2B3B999591486787E913F1AF382E8D Ref B: PDX31EDGE0120 Ref C: 2021-05-05T19:53:15Z" + ], "Date": [ - "Tue, 27 Oct 2020 17:54:40 GMT" + "Wed, 05 May 2021 19:53:16 GMT" ], "Content-Length": [ "380" @@ -2928,20 +2871,20 @@ "-1" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-test-rg9020/providers/Microsoft.AVS/privateClouds/avs-sdk-test-cloud5466/clusters/avs-sdk-test-cluster5984/operationstatuses/a0100be7-4b68-4378-bafc-3ada59a2d869\",\r\n \"name\": \"a0100be7-4b68-4378-bafc-3ada59a2d869\",\r\n \"percentComplete\": 75,\r\n \"startTime\": \"2020-10-27T11:53:50.3364999-06:00\",\r\n \"status\": \"Building\"\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-test-rg1151/providers/Microsoft.AVS/privateClouds/avs-sdk-test-cloud3004/clusters/avs-sdk-test-cluster3283/operationstatuses/2736d478-49ab-4838-b45b-beca4b47aeea\",\r\n \"name\": \"2736d478-49ab-4838-b45b-beca4b47aeea\",\r\n \"percentComplete\": 50,\r\n \"startTime\": \"2021-05-05T12:52:52.7539331-07:00\",\r\n \"status\": \"Building\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-test-rg9020/providers/Microsoft.AVS/privateClouds/avs-sdk-test-cloud5466/clusters/avs-sdk-test-cluster5984/operationstatuses/a0100be7-4b68-4378-bafc-3ada59a2d869?api-version=2020-03-20", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmE3NWU3OWItZGQ5NS00MDI1LTlkYmYtM2E3YWU4ZGZmMmI1L3Jlc291cmNlR3JvdXBzL2F2cy1zZGstdGVzdC1yZzkwMjAvcHJvdmlkZXJzL01pY3Jvc29mdC5BVlMvcHJpdmF0ZUNsb3Vkcy9hdnMtc2RrLXRlc3QtY2xvdWQ1NDY2L2NsdXN0ZXJzL2F2cy1zZGstdGVzdC1jbHVzdGVyNTk4NC9vcGVyYXRpb25zdGF0dXNlcy9hMDEwMGJlNy00YjY4LTQzNzgtYmFmYy0zYWRhNTlhMmQ4Njk/YXBpLXZlcnNpb249MjAyMC0wMy0yMA==", + "RequestUri": "/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-test-rg1151/providers/Microsoft.AVS/privateClouds/avs-sdk-test-cloud3004/clusters/avs-sdk-test-cluster3283/operationstatuses/2736d478-49ab-4838-b45b-beca4b47aeea?api-version=2021-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmE3NWU3OWItZGQ5NS00MDI1LTlkYmYtM2E3YWU4ZGZmMmI1L3Jlc291cmNlR3JvdXBzL2F2cy1zZGstdGVzdC1yZzExNTEvcHJvdmlkZXJzL01pY3Jvc29mdC5BVlMvcHJpdmF0ZUNsb3Vkcy9hdnMtc2RrLXRlc3QtY2xvdWQzMDA0L2NsdXN0ZXJzL2F2cy1zZGstdGVzdC1jbHVzdGVyMzI4My9vcGVyYXRpb25zdGF0dXNlcy8yNzM2ZDQ3OC00OWFiLTQ4MzgtYjQ1Yi1iZWNhNGI0N2FlZWE/YXBpLXZlcnNpb249MjAyMS0wNi0wMQ==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/4.6.29321.03", + "FxVersion/4.6.29916.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.Avs.AvsClient/1.0.0.preview.2" + "Microsoft.Azure.Management.Avs.AvsClient/1.0.0.1" ] }, "ResponseHeaders": { @@ -2955,31 +2898,31 @@ "10" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14964" + "14923" ], "x-ms-request-id": [ - "932ca22e-d411-478e-907c-c9a53e153389" + "4dbe7aec-d13f-4dfb-97c5-4900f4d92e6a" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "Server": [ - "nginx" - ], "x-ms-correlation-request-id": [ - "f036758f-6032-406b-8b10-1f76a1123d56" + "a0a8f305-f2b9-49bf-b982-f55b7900fcd8" ], "x-ms-routing-request-id": [ - "NORTHEUROPE:20201027T175452Z:f036758f-6032-406b-8b10-1f76a1123d56" + "CENTRALUS:20210505T195326Z:a0a8f305-f2b9-49bf-b982-f55b7900fcd8" ], "X-Content-Type-Options": [ "nosniff" ], + "X-MSEdge-Ref": [ + "Ref A: 0CDAAFA68F9440178DF2B1CE9AFD8216 Ref B: PDX31EDGE0120 Ref C: 2021-05-05T19:53:26Z" + ], "Date": [ - "Tue, 27 Oct 2020 17:54:52 GMT" + "Wed, 05 May 2021 19:53:26 GMT" ], "Content-Length": [ - "428" + "380" ], "Content-Type": [ "application/json; charset=utf-8" @@ -2988,20 +2931,20 @@ "-1" ] }, - "ResponseBody": "{\r\n \"endTime\": \"2020-10-27T11:54:39.0415837-06:00\",\r\n \"id\": \"/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-test-rg9020/providers/Microsoft.AVS/privateClouds/avs-sdk-test-cloud5466/clusters/avs-sdk-test-cluster5984/operationstatuses/a0100be7-4b68-4378-bafc-3ada59a2d869\",\r\n \"name\": \"a0100be7-4b68-4378-bafc-3ada59a2d869\",\r\n \"percentComplete\": 100,\r\n \"startTime\": \"2020-10-27T11:53:50.3364999-06:00\",\r\n \"status\": \"Succeeded\"\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-test-rg1151/providers/Microsoft.AVS/privateClouds/avs-sdk-test-cloud3004/clusters/avs-sdk-test-cluster3283/operationstatuses/2736d478-49ab-4838-b45b-beca4b47aeea\",\r\n \"name\": \"2736d478-49ab-4838-b45b-beca4b47aeea\",\r\n \"percentComplete\": 75,\r\n \"startTime\": \"2021-05-05T12:52:52.7539331-07:00\",\r\n \"status\": \"Building\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-test-rg9020/providers/Microsoft.AVS/privateClouds/avs-sdk-test-cloud5466/clusters/avs-sdk-test-cluster5984/operationresults/a0100be7-4b68-4378-bafc-3ada59a2d869?api-version=2020-03-20", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmE3NWU3OWItZGQ5NS00MDI1LTlkYmYtM2E3YWU4ZGZmMmI1L3Jlc291cmNlR3JvdXBzL2F2cy1zZGstdGVzdC1yZzkwMjAvcHJvdmlkZXJzL01pY3Jvc29mdC5BVlMvcHJpdmF0ZUNsb3Vkcy9hdnMtc2RrLXRlc3QtY2xvdWQ1NDY2L2NsdXN0ZXJzL2F2cy1zZGstdGVzdC1jbHVzdGVyNTk4NC9vcGVyYXRpb25yZXN1bHRzL2EwMTAwYmU3LTRiNjgtNDM3OC1iYWZjLTNhZGE1OWEyZDg2OT9hcGktdmVyc2lvbj0yMDIwLTAzLTIw", + "RequestUri": "/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-test-rg1151/providers/Microsoft.AVS/privateClouds/avs-sdk-test-cloud3004/clusters/avs-sdk-test-cluster3283/operationstatuses/2736d478-49ab-4838-b45b-beca4b47aeea?api-version=2021-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmE3NWU3OWItZGQ5NS00MDI1LTlkYmYtM2E3YWU4ZGZmMmI1L3Jlc291cmNlR3JvdXBzL2F2cy1zZGstdGVzdC1yZzExNTEvcHJvdmlkZXJzL01pY3Jvc29mdC5BVlMvcHJpdmF0ZUNsb3Vkcy9hdnMtc2RrLXRlc3QtY2xvdWQzMDA0L2NsdXN0ZXJzL2F2cy1zZGstdGVzdC1jbHVzdGVyMzI4My9vcGVyYXRpb25zdGF0dXNlcy8yNzM2ZDQ3OC00OWFiLTQ4MzgtYjQ1Yi1iZWNhNGI0N2FlZWE/YXBpLXZlcnNpb249MjAyMS0wNi0wMQ==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/4.6.29321.03", + "FxVersion/4.6.29916.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.Avs.AvsClient/1.0.0.preview.2" + "Microsoft.Azure.Management.Avs.AvsClient/1.0.0.1" ] }, "ResponseHeaders": { @@ -3011,32 +2954,35 @@ "Pragma": [ "no-cache" ], + "Retry-After": [ + "10" + ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14963" + "14922" ], "x-ms-request-id": [ - "512ad3a2-13be-41fb-b054-6940f6261151" + "4cbe3b42-1ee4-4caf-bd38-0ca95ba01ac3" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "Server": [ - "nginx" - ], "x-ms-correlation-request-id": [ - "e6d4a474-611d-47fb-bcd7-4274e50ed222" + "0e314b24-7077-4cb3-970d-7d6cdf13b848" ], "x-ms-routing-request-id": [ - "NORTHEUROPE:20201027T175452Z:e6d4a474-611d-47fb-bcd7-4274e50ed222" + "CENTRALUS:20210505T195336Z:0e314b24-7077-4cb3-970d-7d6cdf13b848" ], "X-Content-Type-Options": [ "nosniff" ], + "X-MSEdge-Ref": [ + "Ref A: B5E8FB1518974C159E7E7CDBD28F2A9A Ref B: PDX31EDGE0120 Ref C: 2021-05-05T19:53:36Z" + ], "Date": [ - "Tue, 27 Oct 2020 17:54:52 GMT" + "Wed, 05 May 2021 19:53:36 GMT" ], "Content-Length": [ - "4" + "380" ], "Content-Type": [ "application/json; charset=utf-8" @@ -3045,26 +2991,20 @@ "-1" ] }, - "ResponseBody": "null", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-test-rg1151/providers/Microsoft.AVS/privateClouds/avs-sdk-test-cloud3004/clusters/avs-sdk-test-cluster3283/operationstatuses/2736d478-49ab-4838-b45b-beca4b47aeea\",\r\n \"name\": \"2736d478-49ab-4838-b45b-beca4b47aeea\",\r\n \"percentComplete\": 75,\r\n \"startTime\": \"2021-05-05T12:52:52.7539331-07:00\",\r\n \"status\": \"Building\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-test-rg9020/providers/Microsoft.AVS/privateClouds/avs-sdk-test-cloud5466?api-version=2020-03-20", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmE3NWU3OWItZGQ5NS00MDI1LTlkYmYtM2E3YWU4ZGZmMmI1L3Jlc291cmNlR3JvdXBzL2F2cy1zZGstdGVzdC1yZzkwMjAvcHJvdmlkZXJzL01pY3Jvc29mdC5BVlMvcHJpdmF0ZUNsb3Vkcy9hdnMtc2RrLXRlc3QtY2xvdWQ1NDY2P2FwaS12ZXJzaW9uPTIwMjAtMDMtMjA=", - "RequestMethod": "DELETE", + "RequestUri": "/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-test-rg1151/providers/Microsoft.AVS/privateClouds/avs-sdk-test-cloud3004/clusters/avs-sdk-test-cluster3283/operationstatuses/2736d478-49ab-4838-b45b-beca4b47aeea?api-version=2021-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmE3NWU3OWItZGQ5NS00MDI1LTlkYmYtM2E3YWU4ZGZmMmI1L3Jlc291cmNlR3JvdXBzL2F2cy1zZGstdGVzdC1yZzExNTEvcHJvdmlkZXJzL01pY3Jvc29mdC5BVlMvcHJpdmF0ZUNsb3Vkcy9hdnMtc2RrLXRlc3QtY2xvdWQzMDA0L2NsdXN0ZXJzL2F2cy1zZGstdGVzdC1jbHVzdGVyMzI4My9vcGVyYXRpb25zdGF0dXNlcy8yNzM2ZDQ3OC00OWFiLTQ4MzgtYjQ1Yi1iZWNhNGI0N2FlZWE/YXBpLXZlcnNpb249MjAyMS0wNi0wMQ==", + "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { - "x-ms-client-request-id": [ - "1f8e1c0a-38c9-4d2b-9b0d-a4973f7fa8a5" - ], - "Accept-Language": [ - "en-US" - ], "User-Agent": [ - "FxVersion/4.6.29321.03", + "FxVersion/4.6.29916.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.Avs.AvsClient/1.0.0.preview.2" + "Microsoft.Azure.Management.Avs.AvsClient/1.0.0.1" ] }, "ResponseHeaders": { @@ -3074,41 +3014,35 @@ "Pragma": [ "no-cache" ], - "Location": [ - "https://api-dogfood.resources.windows-int.net/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-test-rg9020/providers/Microsoft.AVS/privateClouds/avs-sdk-test-cloud5466/operationresults/c11289e4-f1a1-4588-b14b-6c0619a43fd9?api-version=2020-03-20" - ], "Retry-After": [ "10" ], - "x-ms-ratelimit-remaining-subscription-deletes": [ - "14996" - ], - "Azure-AsyncOperation": [ - "https://api-dogfood.resources.windows-int.net/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-test-rg9020/providers/Microsoft.AVS/privateClouds/avs-sdk-test-cloud5466/operationstatuses/c11289e4-f1a1-4588-b14b-6c0619a43fd9?api-version=2020-03-20" + "x-ms-ratelimit-remaining-subscription-reads": [ + "14921" ], "x-ms-request-id": [ - "f220ba37-6be2-4cf3-8652-96d826ecd271" + "a4702a1e-0300-424e-99a7-100356ba8f17" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "Server": [ - "nginx" - ], "x-ms-correlation-request-id": [ - "10e9cd83-6e34-4cc7-af64-27211a991ba6" + "b14c51b9-9a25-4de1-931d-76af2ff7bf65" ], "x-ms-routing-request-id": [ - "NORTHEUROPE:20201027T175454Z:10e9cd83-6e34-4cc7-af64-27211a991ba6" + "CENTRALUS:20210505T195346Z:b14c51b9-9a25-4de1-931d-76af2ff7bf65" ], "X-Content-Type-Options": [ "nosniff" ], + "X-MSEdge-Ref": [ + "Ref A: 23D3FD2BF345403B8844CB9F6DB86228 Ref B: PDX31EDGE0120 Ref C: 2021-05-05T19:53:46Z" + ], "Date": [ - "Tue, 27 Oct 2020 17:54:53 GMT" + "Wed, 05 May 2021 19:53:46 GMT" ], "Content-Length": [ - "1561" + "428" ], "Content-Type": [ "application/json; charset=utf-8" @@ -3117,20 +3051,20 @@ "-1" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-test-rg9020/providers/Microsoft.AVS/privateClouds/avs-sdk-test-cloud5466\",\r\n \"location\": \"centralus\",\r\n \"name\": \"avs-sdk-test-cloud5466\",\r\n \"properties\": {\r\n \"circuit\": {\r\n \"expressRouteID\": \"/subscriptions/5206f269-120b-41ef-a95b-0dce7109de61/resourceGroups/tnt49-cust-mp01-mock01/providers/Microsoft.Network/expressRouteCircuits/tnt49-cust-mp01-mock01-er\",\r\n \"expressRoutePrivatePeeringID\": \"/subscriptions/5206f269-120b-41ef-a95b-0dce7109de61/resourceGroups/tnt49-cust-mp01-mock01/providers/Microsoft.Network/expressRouteCircuits/tnt49-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 \"endpoints\": {\r\n \"hcxCloudManager\": \"https://192.168.48.9/\",\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 \"managementCluster\": {\r\n \"clusterId\": 1,\r\n \"clusterSize\": 4,\r\n \"hosts\": [\r\n \"gp-fakehost10.mp01.mock01.vmcp.vs.management\",\r\n \"gp-fakehost35.mp01.mock01.vmcp.vs.management\",\r\n \"gp-fakehost34.mp01.mock01.vmcp.vs.management\",\r\n \"gp-fakehost36.mp01.mock01.vmcp.vs.management\"\r\n ],\r\n \"provisioningState\": \"Succeeded\"\r\n },\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\": \"Deleting\",\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": 202 + "ResponseBody": "{\r\n \"endTime\": \"2021-05-05T12:53:37.0770055-07:00\",\r\n \"id\": \"/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-test-rg1151/providers/Microsoft.AVS/privateClouds/avs-sdk-test-cloud3004/clusters/avs-sdk-test-cluster3283/operationstatuses/2736d478-49ab-4838-b45b-beca4b47aeea\",\r\n \"name\": \"2736d478-49ab-4838-b45b-beca4b47aeea\",\r\n \"percentComplete\": 100,\r\n \"startTime\": \"2021-05-05T12:52:52.7539331-07:00\",\r\n \"status\": \"Succeeded\"\r\n}", + "StatusCode": 200 }, { - "RequestUri": "/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-test-rg9020/providers/Microsoft.AVS/privateClouds/avs-sdk-test-cloud5466/operationstatuses/c11289e4-f1a1-4588-b14b-6c0619a43fd9?api-version=2020-03-20", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmE3NWU3OWItZGQ5NS00MDI1LTlkYmYtM2E3YWU4ZGZmMmI1L3Jlc291cmNlR3JvdXBzL2F2cy1zZGstdGVzdC1yZzkwMjAvcHJvdmlkZXJzL01pY3Jvc29mdC5BVlMvcHJpdmF0ZUNsb3Vkcy9hdnMtc2RrLXRlc3QtY2xvdWQ1NDY2L29wZXJhdGlvbnN0YXR1c2VzL2MxMTI4OWU0LWYxYTEtNDU4OC1iMTRiLTZjMDYxOWE0M2ZkOT9hcGktdmVyc2lvbj0yMDIwLTAzLTIw", + "RequestUri": "/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-test-rg1151/providers/Microsoft.AVS/privateClouds/avs-sdk-test-cloud3004/clusters/avs-sdk-test-cluster3283/operationresults/2736d478-49ab-4838-b45b-beca4b47aeea?api-version=2021-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmE3NWU3OWItZGQ5NS00MDI1LTlkYmYtM2E3YWU4ZGZmMmI1L3Jlc291cmNlR3JvdXBzL2F2cy1zZGstdGVzdC1yZzExNTEvcHJvdmlkZXJzL01pY3Jvc29mdC5BVlMvcHJpdmF0ZUNsb3Vkcy9hdnMtc2RrLXRlc3QtY2xvdWQzMDA0L2NsdXN0ZXJzL2F2cy1zZGstdGVzdC1jbHVzdGVyMzI4My9vcGVyYXRpb25yZXN1bHRzLzI3MzZkNDc4LTQ5YWItNDgzOC1iNDViLWJlY2E0YjQ3YWVlYT9hcGktdmVyc2lvbj0yMDIxLTA2LTAx", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/4.6.29321.03", + "FxVersion/4.6.29916.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.Avs.AvsClient/1.0.0.preview.2" + "Microsoft.Azure.Management.Avs.AvsClient/1.0.0.1" ] }, "ResponseHeaders": { @@ -3140,35 +3074,32 @@ "Pragma": [ "no-cache" ], - "Retry-After": [ - "10" - ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14960" + "14920" ], "x-ms-request-id": [ - "cfe51333-4ac5-42a7-8db6-feb50d13af74" + "ae01e270-6aaf-45a4-b190-ec34f4677978" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "Server": [ - "nginx" - ], "x-ms-correlation-request-id": [ - "10016ca3-6f0d-4421-b5ee-1cc6e3f211c4" + "e1b027ac-aef3-404f-a7ad-6d23c198c723" ], "x-ms-routing-request-id": [ - "NORTHEUROPE:20201027T175504Z:10016ca3-6f0d-4421-b5ee-1cc6e3f211c4" + "CENTRALUS:20210505T195346Z:e1b027ac-aef3-404f-a7ad-6d23c198c723" ], "X-Content-Type-Options": [ "nosniff" ], + "X-MSEdge-Ref": [ + "Ref A: 4E1A452128744B17AB1BE45FCFB49CEF Ref B: PDX31EDGE0120 Ref C: 2021-05-05T19:53:46Z" + ], "Date": [ - "Tue, 27 Oct 2020 17:55:04 GMT" + "Wed, 05 May 2021 19:53:46 GMT" ], "Content-Length": [ - "345" + "4" ], "Content-Type": [ "application/json; charset=utf-8" @@ -3177,20 +3108,26 @@ "-1" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-test-rg9020/providers/Microsoft.AVS/privateClouds/avs-sdk-test-cloud5466/operationstatuses/c11289e4-f1a1-4588-b14b-6c0619a43fd9\",\r\n \"name\": \"c11289e4-f1a1-4588-b14b-6c0619a43fd9\",\r\n \"percentComplete\": 5,\r\n \"startTime\": \"2020-10-27T11:54:54.3491827-06:00\",\r\n \"status\": \"Building\"\r\n}", + "ResponseBody": "null", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-test-rg9020/providers/Microsoft.AVS/privateClouds/avs-sdk-test-cloud5466/operationstatuses/c11289e4-f1a1-4588-b14b-6c0619a43fd9?api-version=2020-03-20", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmE3NWU3OWItZGQ5NS00MDI1LTlkYmYtM2E3YWU4ZGZmMmI1L3Jlc291cmNlR3JvdXBzL2F2cy1zZGstdGVzdC1yZzkwMjAvcHJvdmlkZXJzL01pY3Jvc29mdC5BVlMvcHJpdmF0ZUNsb3Vkcy9hdnMtc2RrLXRlc3QtY2xvdWQ1NDY2L29wZXJhdGlvbnN0YXR1c2VzL2MxMTI4OWU0LWYxYTEtNDU4OC1iMTRiLTZjMDYxOWE0M2ZkOT9hcGktdmVyc2lvbj0yMDIwLTAzLTIw", - "RequestMethod": "GET", + "RequestUri": "/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourcegroups/avs-sdk-test-rg1151?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmE3NWU3OWItZGQ5NS00MDI1LTlkYmYtM2E3YWU4ZGZmMmI1L3Jlc291cmNlZ3JvdXBzL2F2cy1zZGstdGVzdC1yZzExNTE/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", + "RequestMethod": "DELETE", "RequestBody": "", "RequestHeaders": { + "x-ms-client-request-id": [ + "f9e96c13-c288-45d2-a2d9-5a0033e81487" + ], + "Accept-Language": [ + "en-US" + ], "User-Agent": [ - "FxVersion/4.6.29321.03", + "FxVersion/4.6.29916.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.Avs.AvsClient/1.0.0.preview.2" + "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0" ] }, "ResponseHeaders": { @@ -3200,57 +3137,57 @@ "Pragma": [ "no-cache" ], + "Location": [ + "https://api-dogfood.resources.windows-int.net/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1BVlM6MkRTREs6MkRURVNUOjJEUkcxMTUxLUNFTlRSQUxVUyIsImpvYkxvY2F0aW9uIjoiY2VudHJhbHVzIn0?api-version=2017-05-10" + ], "Retry-After": [ - "10" + "15" ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "14959" + "x-ms-ratelimit-remaining-subscription-deletes": [ + "14993" ], "x-ms-request-id": [ - "ff187304-806b-43e0-bbce-8f558283d103" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "Server": [ - "nginx" + "3515bfbd-c029-4be6-bbb2-8583eadd9e9f" ], "x-ms-correlation-request-id": [ - "7442b803-06ee-4a8f-9fe6-21f622f3fd09" + "3515bfbd-c029-4be6-bbb2-8583eadd9e9f" ], "x-ms-routing-request-id": [ - "NORTHEUROPE:20201027T175515Z:7442b803-06ee-4a8f-9fe6-21f622f3fd09" + "CENTRALUS:20210505T195348Z:3515bfbd-c029-4be6-bbb2-8583eadd9e9f" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ - "Tue, 27 Oct 2020 17:55:14 GMT" - ], - "Content-Length": [ - "346" + "X-MSEdge-Ref": [ + "Ref A: F8F5397F529F4DFD8A7F6143EB430F02 Ref B: PDX31EDGE0117 Ref C: 2021-05-05T19:53:47Z" ], - "Content-Type": [ - "application/json; charset=utf-8" + "Date": [ + "Wed, 05 May 2021 19:53:47 GMT" ], "Expires": [ "-1" + ], + "Content-Length": [ + "0" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-test-rg9020/providers/Microsoft.AVS/privateClouds/avs-sdk-test-cloud5466/operationstatuses/c11289e4-f1a1-4588-b14b-6c0619a43fd9\",\r\n \"name\": \"c11289e4-f1a1-4588-b14b-6c0619a43fd9\",\r\n \"percentComplete\": 25,\r\n \"startTime\": \"2020-10-27T11:54:54.3491827-06:00\",\r\n \"status\": \"Building\"\r\n}", - "StatusCode": 200 + "ResponseBody": "", + "StatusCode": 202 }, { - "RequestUri": "/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-test-rg9020/providers/Microsoft.AVS/privateClouds/avs-sdk-test-cloud5466/operationstatuses/c11289e4-f1a1-4588-b14b-6c0619a43fd9?api-version=2020-03-20", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmE3NWU3OWItZGQ5NS00MDI1LTlkYmYtM2E3YWU4ZGZmMmI1L3Jlc291cmNlR3JvdXBzL2F2cy1zZGstdGVzdC1yZzkwMjAvcHJvdmlkZXJzL01pY3Jvc29mdC5BVlMvcHJpdmF0ZUNsb3Vkcy9hdnMtc2RrLXRlc3QtY2xvdWQ1NDY2L29wZXJhdGlvbnN0YXR1c2VzL2MxMTI4OWU0LWYxYTEtNDU4OC1iMTRiLTZjMDYxOWE0M2ZkOT9hcGktdmVyc2lvbj0yMDIwLTAzLTIw", + "RequestUri": "/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1BVlM6MkRTREs6MkRURVNUOjJEUkcxMTUxLUNFTlRSQUxVUyIsImpvYkxvY2F0aW9uIjoiY2VudHJhbHVzIn0?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmE3NWU3OWItZGQ5NS00MDI1LTlkYmYtM2E3YWU4ZGZmMmI1L29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFCVmxNNk1rUlRSRXM2TWtSVVJWTlVPakpFVWtjeE1UVXhMVU5GVGxSU1FVeFZVeUlzSW1wdllreHZZMkYwYVc5dUlqb2lZMlZ1ZEhKaGJIVnpJbjA/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/4.6.29321.03", + "FxVersion/4.6.29916.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.Avs.AvsClient/1.0.0.preview.2" + "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0" ] }, "ResponseHeaders": { @@ -3260,57 +3197,57 @@ "Pragma": [ "no-cache" ], + "Location": [ + "https://api-dogfood.resources.windows-int.net/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1BVlM6MkRTREs6MkRURVNUOjJEUkcxMTUxLUNFTlRSQUxVUyIsImpvYkxvY2F0aW9uIjoiY2VudHJhbHVzIn0?api-version=2017-05-10" + ], "Retry-After": [ - "10" + "15" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14958" + "14917" ], "x-ms-request-id": [ - "b8a9cd18-6306-4f8b-aa6f-b7d2c0007bb6" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "Server": [ - "nginx" + "7aa6b24b-41ec-4f49-86c4-8294ffb29074" ], "x-ms-correlation-request-id": [ - "a146cae2-59b0-4273-9f4b-8c9abb843af2" + "7aa6b24b-41ec-4f49-86c4-8294ffb29074" ], "x-ms-routing-request-id": [ - "NORTHEUROPE:20201027T175525Z:a146cae2-59b0-4273-9f4b-8c9abb843af2" + "CENTRALUS:20210505T195403Z:7aa6b24b-41ec-4f49-86c4-8294ffb29074" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ - "Tue, 27 Oct 2020 17:55:25 GMT" + "X-MSEdge-Ref": [ + "Ref A: EE8FA032E2AB4659AC9F404A4AC5266F Ref B: PDX31EDGE0117 Ref C: 2021-05-05T19:54:03Z" ], - "Content-Length": [ - "345" - ], - "Content-Type": [ - "application/json; charset=utf-8" + "Date": [ + "Wed, 05 May 2021 19:54:02 GMT" ], "Expires": [ "-1" + ], + "Content-Length": [ + "0" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-test-rg9020/providers/Microsoft.AVS/privateClouds/avs-sdk-test-cloud5466/operationstatuses/c11289e4-f1a1-4588-b14b-6c0619a43fd9\",\r\n \"name\": \"c11289e4-f1a1-4588-b14b-6c0619a43fd9\",\r\n \"percentComplete\": 5,\r\n \"startTime\": \"2020-10-27T11:54:54.3491827-06:00\",\r\n \"status\": \"Building\"\r\n}", - "StatusCode": 200 + "ResponseBody": "", + "StatusCode": 202 }, { - "RequestUri": "/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-test-rg9020/providers/Microsoft.AVS/privateClouds/avs-sdk-test-cloud5466/operationstatuses/c11289e4-f1a1-4588-b14b-6c0619a43fd9?api-version=2020-03-20", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmE3NWU3OWItZGQ5NS00MDI1LTlkYmYtM2E3YWU4ZGZmMmI1L3Jlc291cmNlR3JvdXBzL2F2cy1zZGstdGVzdC1yZzkwMjAvcHJvdmlkZXJzL01pY3Jvc29mdC5BVlMvcHJpdmF0ZUNsb3Vkcy9hdnMtc2RrLXRlc3QtY2xvdWQ1NDY2L29wZXJhdGlvbnN0YXR1c2VzL2MxMTI4OWU0LWYxYTEtNDU4OC1iMTRiLTZjMDYxOWE0M2ZkOT9hcGktdmVyc2lvbj0yMDIwLTAzLTIw", + "RequestUri": "/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1BVlM6MkRTREs6MkRURVNUOjJEUkcxMTUxLUNFTlRSQUxVUyIsImpvYkxvY2F0aW9uIjoiY2VudHJhbHVzIn0?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmE3NWU3OWItZGQ5NS00MDI1LTlkYmYtM2E3YWU4ZGZmMmI1L29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFCVmxNNk1rUlRSRXM2TWtSVVJWTlVPakpFVWtjeE1UVXhMVU5GVGxSU1FVeFZVeUlzSW1wdllreHZZMkYwYVc5dUlqb2lZMlZ1ZEhKaGJIVnpJbjA/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/4.6.29321.03", + "FxVersion/4.6.29916.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.Avs.AvsClient/1.0.0.preview.2" + "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0" ] }, "ResponseHeaders": { @@ -3320,57 +3257,57 @@ "Pragma": [ "no-cache" ], + "Location": [ + "https://api-dogfood.resources.windows-int.net/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1BVlM6MkRTREs6MkRURVNUOjJEUkcxMTUxLUNFTlRSQUxVUyIsImpvYkxvY2F0aW9uIjoiY2VudHJhbHVzIn0?api-version=2017-05-10" + ], "Retry-After": [ - "10" + "15" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14957" + "14916" ], "x-ms-request-id": [ - "6f76e996-181b-4235-b4b6-7b32ed542e7e" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "Server": [ - "nginx" + "bbb095ac-b6a5-49ad-afdf-ab89e6deeb15" ], "x-ms-correlation-request-id": [ - "734f7cfb-45cc-4646-bcab-0f2a6f2b6479" + "bbb095ac-b6a5-49ad-afdf-ab89e6deeb15" ], "x-ms-routing-request-id": [ - "NORTHEUROPE:20201027T175535Z:734f7cfb-45cc-4646-bcab-0f2a6f2b6479" + "CENTRALUS:20210505T195418Z:bbb095ac-b6a5-49ad-afdf-ab89e6deeb15" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ - "Tue, 27 Oct 2020 17:55:35 GMT" + "X-MSEdge-Ref": [ + "Ref A: 1D0045BC9A2A4BDD8B7F7B64E98F7B8D Ref B: PDX31EDGE0117 Ref C: 2021-05-05T19:54:18Z" ], - "Content-Length": [ - "345" - ], - "Content-Type": [ - "application/json; charset=utf-8" + "Date": [ + "Wed, 05 May 2021 19:54:17 GMT" ], "Expires": [ "-1" + ], + "Content-Length": [ + "0" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-test-rg9020/providers/Microsoft.AVS/privateClouds/avs-sdk-test-cloud5466/operationstatuses/c11289e4-f1a1-4588-b14b-6c0619a43fd9\",\r\n \"name\": \"c11289e4-f1a1-4588-b14b-6c0619a43fd9\",\r\n \"percentComplete\": 5,\r\n \"startTime\": \"2020-10-27T11:54:54.3491827-06:00\",\r\n \"status\": \"Building\"\r\n}", - "StatusCode": 200 + "ResponseBody": "", + "StatusCode": 202 }, { - "RequestUri": "/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-test-rg9020/providers/Microsoft.AVS/privateClouds/avs-sdk-test-cloud5466/operationstatuses/c11289e4-f1a1-4588-b14b-6c0619a43fd9?api-version=2020-03-20", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmE3NWU3OWItZGQ5NS00MDI1LTlkYmYtM2E3YWU4ZGZmMmI1L3Jlc291cmNlR3JvdXBzL2F2cy1zZGstdGVzdC1yZzkwMjAvcHJvdmlkZXJzL01pY3Jvc29mdC5BVlMvcHJpdmF0ZUNsb3Vkcy9hdnMtc2RrLXRlc3QtY2xvdWQ1NDY2L29wZXJhdGlvbnN0YXR1c2VzL2MxMTI4OWU0LWYxYTEtNDU4OC1iMTRiLTZjMDYxOWE0M2ZkOT9hcGktdmVyc2lvbj0yMDIwLTAzLTIw", + "RequestUri": "/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1BVlM6MkRTREs6MkRURVNUOjJEUkcxMTUxLUNFTlRSQUxVUyIsImpvYkxvY2F0aW9uIjoiY2VudHJhbHVzIn0?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmE3NWU3OWItZGQ5NS00MDI1LTlkYmYtM2E3YWU4ZGZmMmI1L29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFCVmxNNk1rUlRSRXM2TWtSVVJWTlVPakpFVWtjeE1UVXhMVU5GVGxSU1FVeFZVeUlzSW1wdllreHZZMkYwYVc5dUlqb2lZMlZ1ZEhKaGJIVnpJbjA/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/4.6.29321.03", + "FxVersion/4.6.29916.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.Avs.AvsClient/1.0.0.preview.2" + "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0" ] }, "ResponseHeaders": { @@ -3380,57 +3317,57 @@ "Pragma": [ "no-cache" ], + "Location": [ + "https://api-dogfood.resources.windows-int.net/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1BVlM6MkRTREs6MkRURVNUOjJEUkcxMTUxLUNFTlRSQUxVUyIsImpvYkxvY2F0aW9uIjoiY2VudHJhbHVzIn0?api-version=2017-05-10" + ], "Retry-After": [ - "10" + "15" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14956" + "14915" ], "x-ms-request-id": [ - "ff6ed391-60e1-42e1-935a-2cb86b79c0ee" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "Server": [ - "nginx" + "74f38aee-0c58-49fb-bb3d-2943ad037cae" ], "x-ms-correlation-request-id": [ - "76f97dbb-181a-4797-a726-c0b66317a01d" + "74f38aee-0c58-49fb-bb3d-2943ad037cae" ], "x-ms-routing-request-id": [ - "NORTHEUROPE:20201027T175546Z:76f97dbb-181a-4797-a726-c0b66317a01d" + "CENTRALUS:20210505T195433Z:74f38aee-0c58-49fb-bb3d-2943ad037cae" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ - "Tue, 27 Oct 2020 17:55:45 GMT" + "X-MSEdge-Ref": [ + "Ref A: FFB5AB0BB38741E9AD6AA33963967847 Ref B: PDX31EDGE0117 Ref C: 2021-05-05T19:54:33Z" ], - "Content-Length": [ - "345" - ], - "Content-Type": [ - "application/json; charset=utf-8" + "Date": [ + "Wed, 05 May 2021 19:54:32 GMT" ], "Expires": [ "-1" + ], + "Content-Length": [ + "0" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-test-rg9020/providers/Microsoft.AVS/privateClouds/avs-sdk-test-cloud5466/operationstatuses/c11289e4-f1a1-4588-b14b-6c0619a43fd9\",\r\n \"name\": \"c11289e4-f1a1-4588-b14b-6c0619a43fd9\",\r\n \"percentComplete\": 5,\r\n \"startTime\": \"2020-10-27T11:54:54.3491827-06:00\",\r\n \"status\": \"Building\"\r\n}", - "StatusCode": 200 + "ResponseBody": "", + "StatusCode": 202 }, { - "RequestUri": "/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-test-rg9020/providers/Microsoft.AVS/privateClouds/avs-sdk-test-cloud5466/operationstatuses/c11289e4-f1a1-4588-b14b-6c0619a43fd9?api-version=2020-03-20", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmE3NWU3OWItZGQ5NS00MDI1LTlkYmYtM2E3YWU4ZGZmMmI1L3Jlc291cmNlR3JvdXBzL2F2cy1zZGstdGVzdC1yZzkwMjAvcHJvdmlkZXJzL01pY3Jvc29mdC5BVlMvcHJpdmF0ZUNsb3Vkcy9hdnMtc2RrLXRlc3QtY2xvdWQ1NDY2L29wZXJhdGlvbnN0YXR1c2VzL2MxMTI4OWU0LWYxYTEtNDU4OC1iMTRiLTZjMDYxOWE0M2ZkOT9hcGktdmVyc2lvbj0yMDIwLTAzLTIw", + "RequestUri": "/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1BVlM6MkRTREs6MkRURVNUOjJEUkcxMTUxLUNFTlRSQUxVUyIsImpvYkxvY2F0aW9uIjoiY2VudHJhbHVzIn0?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmE3NWU3OWItZGQ5NS00MDI1LTlkYmYtM2E3YWU4ZGZmMmI1L29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFCVmxNNk1rUlRSRXM2TWtSVVJWTlVPakpFVWtjeE1UVXhMVU5GVGxSU1FVeFZVeUlzSW1wdllreHZZMkYwYVc5dUlqb2lZMlZ1ZEhKaGJIVnpJbjA/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/4.6.29321.03", + "FxVersion/4.6.29916.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.Avs.AvsClient/1.0.0.preview.2" + "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0" ] }, "ResponseHeaders": { @@ -3440,57 +3377,57 @@ "Pragma": [ "no-cache" ], + "Location": [ + "https://api-dogfood.resources.windows-int.net/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1BVlM6MkRTREs6MkRURVNUOjJEUkcxMTUxLUNFTlRSQUxVUyIsImpvYkxvY2F0aW9uIjoiY2VudHJhbHVzIn0?api-version=2017-05-10" + ], "Retry-After": [ - "10" + "15" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14955" + "14914" ], "x-ms-request-id": [ - "ac337a22-9907-4f10-b15f-2b4ff83f00d6" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "Server": [ - "nginx" + "ca56345b-bb59-43c2-b81b-228bbd2c0cd3" ], "x-ms-correlation-request-id": [ - "cead6837-a385-4613-bab7-7e7f406cb578" + "ca56345b-bb59-43c2-b81b-228bbd2c0cd3" ], "x-ms-routing-request-id": [ - "NORTHEUROPE:20201027T175556Z:cead6837-a385-4613-bab7-7e7f406cb578" + "CENTRALUS:20210505T195448Z:ca56345b-bb59-43c2-b81b-228bbd2c0cd3" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ - "Tue, 27 Oct 2020 17:55:55 GMT" + "X-MSEdge-Ref": [ + "Ref A: 6FF1F82FE2384E828BF5B2757D3F6BAD Ref B: PDX31EDGE0117 Ref C: 2021-05-05T19:54:48Z" ], - "Content-Length": [ - "346" - ], - "Content-Type": [ - "application/json; charset=utf-8" + "Date": [ + "Wed, 05 May 2021 19:54:47 GMT" ], "Expires": [ "-1" + ], + "Content-Length": [ + "0" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-test-rg9020/providers/Microsoft.AVS/privateClouds/avs-sdk-test-cloud5466/operationstatuses/c11289e4-f1a1-4588-b14b-6c0619a43fd9\",\r\n \"name\": \"c11289e4-f1a1-4588-b14b-6c0619a43fd9\",\r\n \"percentComplete\": 50,\r\n \"startTime\": \"2020-10-27T11:54:54.3491827-06:00\",\r\n \"status\": \"Building\"\r\n}", - "StatusCode": 200 + "ResponseBody": "", + "StatusCode": 202 }, { - "RequestUri": "/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-test-rg9020/providers/Microsoft.AVS/privateClouds/avs-sdk-test-cloud5466/operationstatuses/c11289e4-f1a1-4588-b14b-6c0619a43fd9?api-version=2020-03-20", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmE3NWU3OWItZGQ5NS00MDI1LTlkYmYtM2E3YWU4ZGZmMmI1L3Jlc291cmNlR3JvdXBzL2F2cy1zZGstdGVzdC1yZzkwMjAvcHJvdmlkZXJzL01pY3Jvc29mdC5BVlMvcHJpdmF0ZUNsb3Vkcy9hdnMtc2RrLXRlc3QtY2xvdWQ1NDY2L29wZXJhdGlvbnN0YXR1c2VzL2MxMTI4OWU0LWYxYTEtNDU4OC1iMTRiLTZjMDYxOWE0M2ZkOT9hcGktdmVyc2lvbj0yMDIwLTAzLTIw", + "RequestUri": "/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1BVlM6MkRTREs6MkRURVNUOjJEUkcxMTUxLUNFTlRSQUxVUyIsImpvYkxvY2F0aW9uIjoiY2VudHJhbHVzIn0?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmE3NWU3OWItZGQ5NS00MDI1LTlkYmYtM2E3YWU4ZGZmMmI1L29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFCVmxNNk1rUlRSRXM2TWtSVVJWTlVPakpFVWtjeE1UVXhMVU5GVGxSU1FVeFZVeUlzSW1wdllreHZZMkYwYVc5dUlqb2lZMlZ1ZEhKaGJIVnpJbjA/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/4.6.29321.03", + "FxVersion/4.6.29916.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.Avs.AvsClient/1.0.0.preview.2" + "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0" ] }, "ResponseHeaders": { @@ -3500,57 +3437,57 @@ "Pragma": [ "no-cache" ], + "Location": [ + "https://api-dogfood.resources.windows-int.net/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1BVlM6MkRTREs6MkRURVNUOjJEUkcxMTUxLUNFTlRSQUxVUyIsImpvYkxvY2F0aW9uIjoiY2VudHJhbHVzIn0?api-version=2017-05-10" + ], "Retry-After": [ - "10" + "15" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14954" + "14913" ], "x-ms-request-id": [ - "a2a1d786-70f1-4a15-b9f5-3ad1e912c765" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "Server": [ - "nginx" + "54b032cb-1397-4f03-a84d-70e5cf49100f" ], "x-ms-correlation-request-id": [ - "4630d565-e552-4249-b1eb-6f54e6798294" + "54b032cb-1397-4f03-a84d-70e5cf49100f" ], "x-ms-routing-request-id": [ - "NORTHEUROPE:20201027T175606Z:4630d565-e552-4249-b1eb-6f54e6798294" + "CENTRALUS:20210505T195503Z:54b032cb-1397-4f03-a84d-70e5cf49100f" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ - "Tue, 27 Oct 2020 17:56:06 GMT" - ], - "Content-Length": [ - "346" + "X-MSEdge-Ref": [ + "Ref A: 9948C0B3CDE94099B4E652747AE726C6 Ref B: PDX31EDGE0117 Ref C: 2021-05-05T19:55:03Z" ], - "Content-Type": [ - "application/json; charset=utf-8" + "Date": [ + "Wed, 05 May 2021 19:55:03 GMT" ], "Expires": [ "-1" + ], + "Content-Length": [ + "0" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-test-rg9020/providers/Microsoft.AVS/privateClouds/avs-sdk-test-cloud5466/operationstatuses/c11289e4-f1a1-4588-b14b-6c0619a43fd9\",\r\n \"name\": \"c11289e4-f1a1-4588-b14b-6c0619a43fd9\",\r\n \"percentComplete\": 90,\r\n \"startTime\": \"2020-10-27T11:54:54.3491827-06:00\",\r\n \"status\": \"Building\"\r\n}", - "StatusCode": 200 + "ResponseBody": "", + "StatusCode": 202 }, { - "RequestUri": "/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-test-rg9020/providers/Microsoft.AVS/privateClouds/avs-sdk-test-cloud5466/operationstatuses/c11289e4-f1a1-4588-b14b-6c0619a43fd9?api-version=2020-03-20", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmE3NWU3OWItZGQ5NS00MDI1LTlkYmYtM2E3YWU4ZGZmMmI1L3Jlc291cmNlR3JvdXBzL2F2cy1zZGstdGVzdC1yZzkwMjAvcHJvdmlkZXJzL01pY3Jvc29mdC5BVlMvcHJpdmF0ZUNsb3Vkcy9hdnMtc2RrLXRlc3QtY2xvdWQ1NDY2L29wZXJhdGlvbnN0YXR1c2VzL2MxMTI4OWU0LWYxYTEtNDU4OC1iMTRiLTZjMDYxOWE0M2ZkOT9hcGktdmVyc2lvbj0yMDIwLTAzLTIw", + "RequestUri": "/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1BVlM6MkRTREs6MkRURVNUOjJEUkcxMTUxLUNFTlRSQUxVUyIsImpvYkxvY2F0aW9uIjoiY2VudHJhbHVzIn0?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmE3NWU3OWItZGQ5NS00MDI1LTlkYmYtM2E3YWU4ZGZmMmI1L29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFCVmxNNk1rUlRSRXM2TWtSVVJWTlVPakpFVWtjeE1UVXhMVU5GVGxSU1FVeFZVeUlzSW1wdllreHZZMkYwYVc5dUlqb2lZMlZ1ZEhKaGJIVnpJbjA/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/4.6.29321.03", + "FxVersion/4.6.29916.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.Avs.AvsClient/1.0.0.preview.2" + "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0" ] }, "ResponseHeaders": { @@ -3560,57 +3497,57 @@ "Pragma": [ "no-cache" ], + "Location": [ + "https://api-dogfood.resources.windows-int.net/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1BVlM6MkRTREs6MkRURVNUOjJEUkcxMTUxLUNFTlRSQUxVUyIsImpvYkxvY2F0aW9uIjoiY2VudHJhbHVzIn0?api-version=2017-05-10" + ], "Retry-After": [ - "10" + "15" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14953" + "14912" ], "x-ms-request-id": [ - "3b7fc60e-369d-4ad8-a38d-ba2d84c7f773" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "Server": [ - "nginx" + "1fa32ccd-77e4-444a-84df-df2ab7dd18c0" ], "x-ms-correlation-request-id": [ - "6b6fb922-4c5e-4f67-b99d-8e7e5e90482d" + "1fa32ccd-77e4-444a-84df-df2ab7dd18c0" ], "x-ms-routing-request-id": [ - "NORTHEUROPE:20201027T175616Z:6b6fb922-4c5e-4f67-b99d-8e7e5e90482d" + "CENTRALUS:20210505T195518Z:1fa32ccd-77e4-444a-84df-df2ab7dd18c0" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ - "Tue, 27 Oct 2020 17:56:16 GMT" - ], - "Content-Length": [ - "346" + "X-MSEdge-Ref": [ + "Ref A: 21891E466797446B96386A29E08C1D69 Ref B: PDX31EDGE0117 Ref C: 2021-05-05T19:55:18Z" ], - "Content-Type": [ - "application/json; charset=utf-8" + "Date": [ + "Wed, 05 May 2021 19:55:18 GMT" ], "Expires": [ "-1" + ], + "Content-Length": [ + "0" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-test-rg9020/providers/Microsoft.AVS/privateClouds/avs-sdk-test-cloud5466/operationstatuses/c11289e4-f1a1-4588-b14b-6c0619a43fd9\",\r\n \"name\": \"c11289e4-f1a1-4588-b14b-6c0619a43fd9\",\r\n \"percentComplete\": 90,\r\n \"startTime\": \"2020-10-27T11:54:54.3491827-06:00\",\r\n \"status\": \"Building\"\r\n}", - "StatusCode": 200 + "ResponseBody": "", + "StatusCode": 202 }, { - "RequestUri": "/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-test-rg9020/providers/Microsoft.AVS/privateClouds/avs-sdk-test-cloud5466/operationstatuses/c11289e4-f1a1-4588-b14b-6c0619a43fd9?api-version=2020-03-20", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmE3NWU3OWItZGQ5NS00MDI1LTlkYmYtM2E3YWU4ZGZmMmI1L3Jlc291cmNlR3JvdXBzL2F2cy1zZGstdGVzdC1yZzkwMjAvcHJvdmlkZXJzL01pY3Jvc29mdC5BVlMvcHJpdmF0ZUNsb3Vkcy9hdnMtc2RrLXRlc3QtY2xvdWQ1NDY2L29wZXJhdGlvbnN0YXR1c2VzL2MxMTI4OWU0LWYxYTEtNDU4OC1iMTRiLTZjMDYxOWE0M2ZkOT9hcGktdmVyc2lvbj0yMDIwLTAzLTIw", + "RequestUri": "/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1BVlM6MkRTREs6MkRURVNUOjJEUkcxMTUxLUNFTlRSQUxVUyIsImpvYkxvY2F0aW9uIjoiY2VudHJhbHVzIn0?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmE3NWU3OWItZGQ5NS00MDI1LTlkYmYtM2E3YWU4ZGZmMmI1L29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFCVmxNNk1rUlRSRXM2TWtSVVJWTlVPakpFVWtjeE1UVXhMVU5GVGxSU1FVeFZVeUlzSW1wdllreHZZMkYwYVc5dUlqb2lZMlZ1ZEhKaGJIVnpJbjA/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/4.6.29321.03", + "FxVersion/4.6.29916.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.Avs.AvsClient/1.0.0.preview.2" + "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0" ] }, "ResponseHeaders": { @@ -3620,117 +3557,54 @@ "Pragma": [ "no-cache" ], + "Location": [ + "https://api-dogfood.resources.windows-int.net/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1BVlM6MkRTREs6MkRURVNUOjJEUkcxMTUxLUNFTlRSQUxVUyIsImpvYkxvY2F0aW9uIjoiY2VudHJhbHVzIn0?api-version=2017-05-10" + ], "Retry-After": [ - "10" + "15" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14952" + "14911" ], "x-ms-request-id": [ - "52925cdd-4268-4f6d-8319-d36e560baaab" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "Server": [ - "nginx" + "139b2758-d9f8-46a2-a141-94ef7dc10411" ], "x-ms-correlation-request-id": [ - "a201a747-3078-41a1-aeb5-0f33d7678043" + "139b2758-d9f8-46a2-a141-94ef7dc10411" ], "x-ms-routing-request-id": [ - "NORTHEUROPE:20201027T175627Z:a201a747-3078-41a1-aeb5-0f33d7678043" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Date": [ - "Tue, 27 Oct 2020 17:56:26 GMT" - ], - "Content-Length": [ - "394" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"endTime\": \"2020-10-27T11:56:14.0015026-06:00\",\r\n \"id\": \"/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-test-rg9020/providers/Microsoft.AVS/privateClouds/avs-sdk-test-cloud5466/operationstatuses/c11289e4-f1a1-4588-b14b-6c0619a43fd9\",\r\n \"name\": \"c11289e4-f1a1-4588-b14b-6c0619a43fd9\",\r\n \"percentComplete\": 100,\r\n \"startTime\": \"2020-10-27T11:54:54.3491827-06:00\",\r\n \"status\": \"Succeeded\"\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/avs-sdk-test-rg9020/providers/Microsoft.AVS/privateClouds/avs-sdk-test-cloud5466/operationresults/c11289e4-f1a1-4588-b14b-6c0619a43fd9?api-version=2020-03-20", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmE3NWU3OWItZGQ5NS00MDI1LTlkYmYtM2E3YWU4ZGZmMmI1L3Jlc291cmNlR3JvdXBzL2F2cy1zZGstdGVzdC1yZzkwMjAvcHJvdmlkZXJzL01pY3Jvc29mdC5BVlMvcHJpdmF0ZUNsb3Vkcy9hdnMtc2RrLXRlc3QtY2xvdWQ1NDY2L29wZXJhdGlvbnJlc3VsdHMvYzExMjg5ZTQtZjFhMS00NTg4LWIxNGItNmMwNjE5YTQzZmQ5P2FwaS12ZXJzaW9uPTIwMjAtMDMtMjA=", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "FxVersion/4.6.29321.03", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.Avs.AvsClient/1.0.0.preview.2" - ] - }, - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "14951" - ], - "x-ms-request-id": [ - "0b7a89c9-500d-4b40-a97c-668ed3722337" + "CENTRALUS:20210505T195533Z:139b2758-d9f8-46a2-a141-94ef7dc10411" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "Server": [ - "nginx" - ], - "x-ms-correlation-request-id": [ - "d706415b-667e-4f1b-b77f-dcf7e13b3321" - ], - "x-ms-routing-request-id": [ - "NORTHEUROPE:20201027T175627Z:d706415b-667e-4f1b-b77f-dcf7e13b3321" - ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ - "Tue, 27 Oct 2020 17:56:26 GMT" - ], - "Content-Length": [ - "4" + "X-MSEdge-Ref": [ + "Ref A: EE1EF8672F7F459E936DC0D898267F94 Ref B: PDX31EDGE0117 Ref C: 2021-05-05T19:55:33Z" ], - "Content-Type": [ - "application/json; charset=utf-8" + "Date": [ + "Wed, 05 May 2021 19:55:33 GMT" ], "Expires": [ "-1" + ], + "Content-Length": [ + "0" ] }, - "ResponseBody": "null", - "StatusCode": 200 + "ResponseBody": "", + "StatusCode": 202 }, { - "RequestUri": "/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourcegroups/avs-sdk-test-rg9020?api-version=2017-05-10", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmE3NWU3OWItZGQ5NS00MDI1LTlkYmYtM2E3YWU4ZGZmMmI1L3Jlc291cmNlZ3JvdXBzL2F2cy1zZGstdGVzdC1yZzkwMjA/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", - "RequestMethod": "DELETE", + "RequestUri": "/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1BVlM6MkRTREs6MkRURVNUOjJEUkcxMTUxLUNFTlRSQUxVUyIsImpvYkxvY2F0aW9uIjoiY2VudHJhbHVzIn0?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmE3NWU3OWItZGQ5NS00MDI1LTlkYmYtM2E3YWU4ZGZmMmI1L29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFCVmxNNk1rUlRSRXM2TWtSVVJWTlVPakpFVWtjeE1UVXhMVU5GVGxSU1FVeFZVeUlzSW1wdllreHZZMkYwYVc5dUlqb2lZMlZ1ZEhKaGJIVnpJbjA/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", + "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { - "x-ms-client-request-id": [ - "f96387d4-0a1c-421b-9480-29b09a38f24e" - ], - "Accept-Language": [ - "en-US" - ], "User-Agent": [ - "FxVersion/4.6.29321.03", + "FxVersion/4.6.29916.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.19042.", "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0" @@ -3744,22 +3618,22 @@ "no-cache" ], "Location": [ - "https://api-dogfood.resources.windows-int.net/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1BVlM6MkRTREs6MkRURVNUOjJEUkc5MDIwLUNFTlRSQUxVUyIsImpvYkxvY2F0aW9uIjoiY2VudHJhbHVzIn0?api-version=2017-05-10" + "https://api-dogfood.resources.windows-int.net/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1BVlM6MkRTREs6MkRURVNUOjJEUkcxMTUxLUNFTlRSQUxVUyIsImpvYkxvY2F0aW9uIjoiY2VudHJhbHVzIn0?api-version=2017-05-10" ], "Retry-After": [ "15" ], - "x-ms-ratelimit-remaining-subscription-deletes": [ - "14999" + "x-ms-ratelimit-remaining-subscription-reads": [ + "14910" ], "x-ms-request-id": [ - "5a06218a-ccff-4eb1-8079-446285289e2c" + "a6c261cb-fc01-4961-9bb5-293de002ce6d" ], "x-ms-correlation-request-id": [ - "5a06218a-ccff-4eb1-8079-446285289e2c" + "a6c261cb-fc01-4961-9bb5-293de002ce6d" ], "x-ms-routing-request-id": [ - "NORTHEUROPE:20201027T175630Z:5a06218a-ccff-4eb1-8079-446285289e2c" + "CENTRALUS:20210505T195548Z:a6c261cb-fc01-4961-9bb5-293de002ce6d" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -3767,8 +3641,11 @@ "X-Content-Type-Options": [ "nosniff" ], + "X-MSEdge-Ref": [ + "Ref A: 836106A8408047BB94CC2ABC43110852 Ref B: PDX31EDGE0117 Ref C: 2021-05-05T19:55:48Z" + ], "Date": [ - "Tue, 27 Oct 2020 17:56:30 GMT" + "Wed, 05 May 2021 19:55:48 GMT" ], "Expires": [ "-1" @@ -3781,13 +3658,13 @@ "StatusCode": 202 }, { - "RequestUri": "/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1BVlM6MkRTREs6MkRURVNUOjJEUkc5MDIwLUNFTlRSQUxVUyIsImpvYkxvY2F0aW9uIjoiY2VudHJhbHVzIn0?api-version=2017-05-10", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmE3NWU3OWItZGQ5NS00MDI1LTlkYmYtM2E3YWU4ZGZmMmI1L29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFCVmxNNk1rUlRSRXM2TWtSVVJWTlVPakpFVWtjNU1ESXdMVU5GVGxSU1FVeFZVeUlzSW1wdllreHZZMkYwYVc5dUlqb2lZMlZ1ZEhKaGJIVnpJbjA/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", + "RequestUri": "/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1BVlM6MkRTREs6MkRURVNUOjJEUkcxMTUxLUNFTlRSQUxVUyIsImpvYkxvY2F0aW9uIjoiY2VudHJhbHVzIn0?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmE3NWU3OWItZGQ5NS00MDI1LTlkYmYtM2E3YWU4ZGZmMmI1L29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFCVmxNNk1rUlRSRXM2TWtSVVJWTlVPakpFVWtjeE1UVXhMVU5GVGxSU1FVeFZVeUlzSW1wdllreHZZMkYwYVc5dUlqb2lZMlZ1ZEhKaGJIVnpJbjA/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/4.6.29321.03", + "FxVersion/4.6.29916.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.19042.", "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0" @@ -3801,22 +3678,22 @@ "no-cache" ], "Location": [ - "https://api-dogfood.resources.windows-int.net/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1BVlM6MkRTREs6MkRURVNUOjJEUkc5MDIwLUNFTlRSQUxVUyIsImpvYkxvY2F0aW9uIjoiY2VudHJhbHVzIn0?api-version=2017-05-10" + "https://api-dogfood.resources.windows-int.net/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1BVlM6MkRTREs6MkRURVNUOjJEUkcxMTUxLUNFTlRSQUxVUyIsImpvYkxvY2F0aW9uIjoiY2VudHJhbHVzIn0?api-version=2017-05-10" ], "Retry-After": [ "15" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14999" + "14909" ], "x-ms-request-id": [ - "bee8d819-898a-471f-a81f-1262218104e7" + "eee8a02d-9820-4e33-b057-26d68766d2a2" ], "x-ms-correlation-request-id": [ - "bee8d819-898a-471f-a81f-1262218104e7" + "eee8a02d-9820-4e33-b057-26d68766d2a2" ], "x-ms-routing-request-id": [ - "NORTHEUROPE:20201027T175645Z:bee8d819-898a-471f-a81f-1262218104e7" + "CENTRALUS:20210505T195603Z:eee8a02d-9820-4e33-b057-26d68766d2a2" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -3824,8 +3701,11 @@ "X-Content-Type-Options": [ "nosniff" ], + "X-MSEdge-Ref": [ + "Ref A: D9D3848AFA524E52B10DE7E1196FD7B5 Ref B: PDX31EDGE0117 Ref C: 2021-05-05T19:56:03Z" + ], "Date": [ - "Tue, 27 Oct 2020 17:56:45 GMT" + "Wed, 05 May 2021 19:56:03 GMT" ], "Expires": [ "-1" @@ -3838,13 +3718,13 @@ "StatusCode": 202 }, { - "RequestUri": "/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1BVlM6MkRTREs6MkRURVNUOjJEUkc5MDIwLUNFTlRSQUxVUyIsImpvYkxvY2F0aW9uIjoiY2VudHJhbHVzIn0?api-version=2017-05-10", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmE3NWU3OWItZGQ5NS00MDI1LTlkYmYtM2E3YWU4ZGZmMmI1L29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFCVmxNNk1rUlRSRXM2TWtSVVJWTlVPakpFVWtjNU1ESXdMVU5GVGxSU1FVeFZVeUlzSW1wdllreHZZMkYwYVc5dUlqb2lZMlZ1ZEhKaGJIVnpJbjA/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", + "RequestUri": "/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1BVlM6MkRTREs6MkRURVNUOjJEUkcxMTUxLUNFTlRSQUxVUyIsImpvYkxvY2F0aW9uIjoiY2VudHJhbHVzIn0?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmE3NWU3OWItZGQ5NS00MDI1LTlkYmYtM2E3YWU4ZGZmMmI1L29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFCVmxNNk1rUlRSRXM2TWtSVVJWTlVPakpFVWtjeE1UVXhMVU5GVGxSU1FVeFZVeUlzSW1wdllreHZZMkYwYVc5dUlqb2lZMlZ1ZEhKaGJIVnpJbjA/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/4.6.29321.03", + "FxVersion/4.6.29916.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.19042.", "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0" @@ -3858,22 +3738,22 @@ "no-cache" ], "Location": [ - "https://api-dogfood.resources.windows-int.net/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1BVlM6MkRTREs6MkRURVNUOjJEUkc5MDIwLUNFTlRSQUxVUyIsImpvYkxvY2F0aW9uIjoiY2VudHJhbHVzIn0?api-version=2017-05-10" + "https://api-dogfood.resources.windows-int.net/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1BVlM6MkRTREs6MkRURVNUOjJEUkcxMTUxLUNFTlRSQUxVUyIsImpvYkxvY2F0aW9uIjoiY2VudHJhbHVzIn0?api-version=2017-05-10" ], "Retry-After": [ "15" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14998" + "14908" ], "x-ms-request-id": [ - "60987ed4-7e9d-4ece-82ab-b1e45aa76e1b" + "3baadd68-ef0e-4d9a-a106-e9329d77178e" ], "x-ms-correlation-request-id": [ - "60987ed4-7e9d-4ece-82ab-b1e45aa76e1b" + "3baadd68-ef0e-4d9a-a106-e9329d77178e" ], "x-ms-routing-request-id": [ - "NORTHEUROPE:20201027T175701Z:60987ed4-7e9d-4ece-82ab-b1e45aa76e1b" + "CENTRALUS:20210505T195618Z:3baadd68-ef0e-4d9a-a106-e9329d77178e" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -3881,8 +3761,11 @@ "X-Content-Type-Options": [ "nosniff" ], + "X-MSEdge-Ref": [ + "Ref A: 84900DF4717042E4A7148A438E33011D Ref B: PDX31EDGE0117 Ref C: 2021-05-05T19:56:18Z" + ], "Date": [ - "Tue, 27 Oct 2020 17:57:00 GMT" + "Wed, 05 May 2021 19:56:18 GMT" ], "Expires": [ "-1" @@ -3895,13 +3778,13 @@ "StatusCode": 202 }, { - "RequestUri": "/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1BVlM6MkRTREs6MkRURVNUOjJEUkc5MDIwLUNFTlRSQUxVUyIsImpvYkxvY2F0aW9uIjoiY2VudHJhbHVzIn0?api-version=2017-05-10", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmE3NWU3OWItZGQ5NS00MDI1LTlkYmYtM2E3YWU4ZGZmMmI1L29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFCVmxNNk1rUlRSRXM2TWtSVVJWTlVPakpFVWtjNU1ESXdMVU5GVGxSU1FVeFZVeUlzSW1wdllreHZZMkYwYVc5dUlqb2lZMlZ1ZEhKaGJIVnpJbjA/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", + "RequestUri": "/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1BVlM6MkRTREs6MkRURVNUOjJEUkcxMTUxLUNFTlRSQUxVUyIsImpvYkxvY2F0aW9uIjoiY2VudHJhbHVzIn0?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmE3NWU3OWItZGQ5NS00MDI1LTlkYmYtM2E3YWU4ZGZmMmI1L29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFCVmxNNk1rUlRSRXM2TWtSVVJWTlVPakpFVWtjeE1UVXhMVU5GVGxSU1FVeFZVeUlzSW1wdllreHZZMkYwYVc5dUlqb2lZMlZ1ZEhKaGJIVnpJbjA/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/4.6.29321.03", + "FxVersion/4.6.29916.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.19042.", "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0" @@ -3915,16 +3798,16 @@ "no-cache" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14997" + "14907" ], "x-ms-request-id": [ - "0aabecbb-b22c-4e09-9661-3093fe7611b1" + "e228278a-831d-4ec4-8a0e-51db28cc0012" ], "x-ms-correlation-request-id": [ - "0aabecbb-b22c-4e09-9661-3093fe7611b1" + "e228278a-831d-4ec4-8a0e-51db28cc0012" ], "x-ms-routing-request-id": [ - "NORTHEUROPE:20201027T175716Z:0aabecbb-b22c-4e09-9661-3093fe7611b1" + "CENTRALUS:20210505T195634Z:e228278a-831d-4ec4-8a0e-51db28cc0012" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -3932,8 +3815,11 @@ "X-Content-Type-Options": [ "nosniff" ], + "X-MSEdge-Ref": [ + "Ref A: D449CA30BDEA41CF8D3F322A76955FDA Ref B: PDX31EDGE0117 Ref C: 2021-05-05T19:56:33Z" + ], "Date": [ - "Tue, 27 Oct 2020 17:57:15 GMT" + "Wed, 05 May 2021 19:56:33 GMT" ], "Expires": [ "-1" @@ -3946,13 +3832,13 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1BVlM6MkRTREs6MkRURVNUOjJEUkc5MDIwLUNFTlRSQUxVUyIsImpvYkxvY2F0aW9uIjoiY2VudHJhbHVzIn0?api-version=2017-05-10", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmE3NWU3OWItZGQ5NS00MDI1LTlkYmYtM2E3YWU4ZGZmMmI1L29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFCVmxNNk1rUlRSRXM2TWtSVVJWTlVPakpFVWtjNU1ESXdMVU5GVGxSU1FVeFZVeUlzSW1wdllreHZZMkYwYVc5dUlqb2lZMlZ1ZEhKaGJIVnpJbjA/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", + "RequestUri": "/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1BVlM6MkRTREs6MkRURVNUOjJEUkcxMTUxLUNFTlRSQUxVUyIsImpvYkxvY2F0aW9uIjoiY2VudHJhbHVzIn0?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmE3NWU3OWItZGQ5NS00MDI1LTlkYmYtM2E3YWU4ZGZmMmI1L29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFCVmxNNk1rUlRSRXM2TWtSVVJWTlVPakpFVWtjeE1UVXhMVU5GVGxSU1FVeFZVeUlzSW1wdllreHZZMkYwYVc5dUlqb2lZMlZ1ZEhKaGJIVnpJbjA/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/4.6.29321.03", + "FxVersion/4.6.29916.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.19042.", "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0" @@ -3966,16 +3852,16 @@ "no-cache" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14996" + "14906" ], "x-ms-request-id": [ - "92a8ada5-4b4e-49d9-887e-7dad84890035" + "d115a351-9e5f-4f97-b214-867b41c19623" ], "x-ms-correlation-request-id": [ - "92a8ada5-4b4e-49d9-887e-7dad84890035" + "d115a351-9e5f-4f97-b214-867b41c19623" ], "x-ms-routing-request-id": [ - "NORTHEUROPE:20201027T175716Z:92a8ada5-4b4e-49d9-887e-7dad84890035" + "CENTRALUS:20210505T195634Z:d115a351-9e5f-4f97-b214-867b41c19623" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -3983,8 +3869,11 @@ "X-Content-Type-Options": [ "nosniff" ], + "X-MSEdge-Ref": [ + "Ref A: 6D6622EC283A4AC2ADBD45CF65744716 Ref B: PDX31EDGE0117 Ref C: 2021-05-05T19:56:34Z" + ], "Date": [ - "Tue, 27 Oct 2020 17:57:16 GMT" + "Wed, 05 May 2021 19:56:33 GMT" ], "Expires": [ "-1" @@ -3999,11 +3888,11 @@ ], "Names": { "AvsCrud": [ - "avs-sdk-test-rg9020", - "avs-sdk-test-cloud5466", - "avs-sdk-test-cluster5984", - "avs-sdk-test-hcx-site18", - "avs-sdk-test-authorization3088" + "avs-sdk-test-rg1151", + "avs-sdk-test-cloud3004", + "avs-sdk-test-cluster3283", + "avs-sdk-test-hcx-site8529", + "avs-sdk-test-authorization1237" ] }, "Variables": { diff --git a/sdk/avs/Microsoft.Azure.Management.Avs/tests/SessionRecords/AvsTests/PasswordResets.json b/sdk/avs/Microsoft.Azure.Management.Avs/tests/SessionRecords/AvsTests/PasswordResets.json new file mode 100644 index 000000000000..309c895d8858 --- /dev/null +++ b/sdk/avs/Microsoft.Azure.Management.Avs/tests/SessionRecords/AvsTests/PasswordResets.json @@ -0,0 +1,1505 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/f6be8482-378f-45a6-afb3-d02a7d0fefd7/resourceGroups/aumarcel-eastus2-rg/providers/Microsoft.AVS/privateClouds/aumarcel-2021-05-06-hcx/listAdminCredentials?api-version=2021-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjZiZTg0ODItMzc4Zi00NWE2LWFmYjMtZDAyYTdkMGZlZmQ3L3Jlc291cmNlR3JvdXBzL2F1bWFyY2VsLWVhc3R1czItcmcvcHJvdmlkZXJzL01pY3Jvc29mdC5BVlMvcHJpdmF0ZUNsb3Vkcy9hdW1hcmNlbC0yMDIxLTA1LTA2LWhjeC9saXN0QWRtaW5DcmVkZW50aWFscz9hcGktdmVyc2lvbj0yMDIxLTA2LTAx", + "RequestMethod": "POST", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "4417200b-7b34-483a-aae5-84fea45378e2" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.29916.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.Avs.AvsClient/2.0.0.1" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ + "99" + ], + "x-ms-request-id": [ + "2e3f8655-bce8-42be-ad88-64b6a9f713f6" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "nginx" + ], + "x-ms-correlation-request-id": [ + "bcff7ba8-acea-420b-a740-57ab9c5dcfe6" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20210511T232535Z:bcff7ba8-acea-420b-a740-57ab9c5dcfe6" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Tue, 11 May 2021 23:25:34 GMT" + ], + "Content-Length": [ + "132" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"nsxtPassword\": \"e4-C)n7ic58M\",\r\n \"nsxtUsername\": \"admin\",\r\n \"vcenterPassword\": \"u5%t$yIh45J0\",\r\n \"vcenterUsername\": \"cloudadmin@vsphere.local\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/f6be8482-378f-45a6-afb3-d02a7d0fefd7/resourceGroups/aumarcel-eastus2-rg/providers/Microsoft.AVS/privateClouds/aumarcel-2021-05-06-hcx/listAdminCredentials?api-version=2021-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjZiZTg0ODItMzc4Zi00NWE2LWFmYjMtZDAyYTdkMGZlZmQ3L3Jlc291cmNlR3JvdXBzL2F1bWFyY2VsLWVhc3R1czItcmcvcHJvdmlkZXJzL01pY3Jvc29mdC5BVlMvcHJpdmF0ZUNsb3Vkcy9hdW1hcmNlbC0yMDIxLTA1LTA2LWhjeC9saXN0QWRtaW5DcmVkZW50aWFscz9hcGktdmVyc2lvbj0yMDIxLTA2LTAx", + "RequestMethod": "POST", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "92278c49-f7c1-41b1-9934-5b7cb1487495" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.29916.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.Avs.AvsClient/2.0.0.1" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ + "98" + ], + "x-ms-request-id": [ + "c071120a-c28e-4028-b2e4-0e682641c1f6" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "nginx" + ], + "x-ms-correlation-request-id": [ + "e4821f47-6eb0-448e-bf85-75c8cf989536" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20210511T232535Z:e4821f47-6eb0-448e-bf85-75c8cf989536" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Tue, 11 May 2021 23:25:35 GMT" + ], + "Content-Length": [ + "132" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"nsxtPassword\": \"e4-C)n7ic58M\",\r\n \"nsxtUsername\": \"admin\",\r\n \"vcenterPassword\": \"u5%t$yIh45J0\",\r\n \"vcenterUsername\": \"cloudadmin@vsphere.local\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/f6be8482-378f-45a6-afb3-d02a7d0fefd7/resourceGroups/aumarcel-eastus2-rg/providers/Microsoft.AVS/privateClouds/aumarcel-2021-05-06-hcx/listAdminCredentials?api-version=2021-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjZiZTg0ODItMzc4Zi00NWE2LWFmYjMtZDAyYTdkMGZlZmQ3L3Jlc291cmNlR3JvdXBzL2F1bWFyY2VsLWVhc3R1czItcmcvcHJvdmlkZXJzL01pY3Jvc29mdC5BVlMvcHJpdmF0ZUNsb3Vkcy9hdW1hcmNlbC0yMDIxLTA1LTA2LWhjeC9saXN0QWRtaW5DcmVkZW50aWFscz9hcGktdmVyc2lvbj0yMDIxLTA2LTAx", + "RequestMethod": "POST", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "b9ff4e6a-26f2-4dc4-899a-45b36f5c5f62" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.29916.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.Avs.AvsClient/2.0.0.1" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ + "97" + ], + "x-ms-request-id": [ + "f872ae05-df64-4827-8341-7eef24590da8" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "nginx" + ], + "x-ms-correlation-request-id": [ + "d0080e20-8e26-4a9d-b2f7-3689dfcef6c5" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20210511T233454Z:d0080e20-8e26-4a9d-b2f7-3689dfcef6c5" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Tue, 11 May 2021 23:34:54 GMT" + ], + "Content-Length": [ + "132" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"nsxtPassword\": \"6-u6prcQ0K!5\",\r\n \"nsxtUsername\": \"admin\",\r\n \"vcenterPassword\": \"4OF^!m2ib83o\",\r\n \"vcenterUsername\": \"cloudadmin@vsphere.local\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/f6be8482-378f-45a6-afb3-d02a7d0fefd7/resourceGroups/aumarcel-eastus2-rg/providers/Microsoft.AVS/privateClouds/aumarcel-2021-05-06-hcx/rotateNsxtPassword?api-version=2021-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjZiZTg0ODItMzc4Zi00NWE2LWFmYjMtZDAyYTdkMGZlZmQ3L3Jlc291cmNlR3JvdXBzL2F1bWFyY2VsLWVhc3R1czItcmcvcHJvdmlkZXJzL01pY3Jvc29mdC5BVlMvcHJpdmF0ZUNsb3Vkcy9hdW1hcmNlbC0yMDIxLTA1LTA2LWhjeC9yb3RhdGVOc3h0UGFzc3dvcmQ/YXBpLXZlcnNpb249MjAyMS0wNi0wMQ==", + "RequestMethod": "POST", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "611904b1-ef96-487e-897f-8e9dc98a069f" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.29916.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.Avs.AvsClient/2.0.0.1" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/f6be8482-378f-45a6-afb3-d02a7d0fefd7/resourceGroups/aumarcel-eastus2-rg/providers/Microsoft.AVS/privateClouds/aumarcel-2021-05-06-hcx/rotateNsxtPassword/operationresults/7ecf11e2-b4a3-4f13-8924-c5b9a50c803b?api-version=2021-06-01" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1199" + ], + "x-ms-request-id": [ + "de841119-dd7f-489f-9897-c04e5b856753" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "nginx" + ], + "x-ms-correlation-request-id": [ + "8596c608-653c-43cc-aeff-e6746f268e40" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20210511T232536Z:8596c608-653c-43cc-aeff-e6746f268e40" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Tue, 11 May 2021 23:25:36 GMT" + ], + "Content-Type": [ + "text/html" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/f6be8482-378f-45a6-afb3-d02a7d0fefd7/resourceGroups/aumarcel-eastus2-rg/providers/Microsoft.AVS/privateClouds/aumarcel-2021-05-06-hcx/rotateNsxtPassword/operationresults/7ecf11e2-b4a3-4f13-8924-c5b9a50c803b?api-version=2021-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjZiZTg0ODItMzc4Zi00NWE2LWFmYjMtZDAyYTdkMGZlZmQ3L3Jlc291cmNlR3JvdXBzL2F1bWFyY2VsLWVhc3R1czItcmcvcHJvdmlkZXJzL01pY3Jvc29mdC5BVlMvcHJpdmF0ZUNsb3Vkcy9hdW1hcmNlbC0yMDIxLTA1LTA2LWhjeC9yb3RhdGVOc3h0UGFzc3dvcmQvb3BlcmF0aW9ucmVzdWx0cy83ZWNmMTFlMi1iNGEzLTRmMTMtODkyNC1jNWI5YTUwYzgwM2I/YXBpLXZlcnNpb249MjAyMS0wNi0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.29916.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.Avs.AvsClient/2.0.0.1" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/f6be8482-378f-45a6-afb3-d02a7d0fefd7/resourceGroups/aumarcel-eastus2-rg/providers/Microsoft.AVS/privateClouds/aumarcel-2021-05-06-hcx/rotateNsxtPassword/operationresults/7ecf11e2-b4a3-4f13-8924-c5b9a50c803b?api-version=2021-06-01" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11999" + ], + "x-ms-request-id": [ + "3e431ebf-b247-4cf3-9479-f98e3e74b3e7" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "nginx" + ], + "x-ms-correlation-request-id": [ + "51285a49-9d95-4cae-9c3c-58381fa280d2" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20210511T232607Z:51285a49-9d95-4cae-9c3c-58381fa280d2" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Tue, 11 May 2021 23:26:07 GMT" + ], + "Content-Type": [ + "text/html" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/f6be8482-378f-45a6-afb3-d02a7d0fefd7/resourceGroups/aumarcel-eastus2-rg/providers/Microsoft.AVS/privateClouds/aumarcel-2021-05-06-hcx/rotateNsxtPassword/operationresults/7ecf11e2-b4a3-4f13-8924-c5b9a50c803b?api-version=2021-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjZiZTg0ODItMzc4Zi00NWE2LWFmYjMtZDAyYTdkMGZlZmQ3L3Jlc291cmNlR3JvdXBzL2F1bWFyY2VsLWVhc3R1czItcmcvcHJvdmlkZXJzL01pY3Jvc29mdC5BVlMvcHJpdmF0ZUNsb3Vkcy9hdW1hcmNlbC0yMDIxLTA1LTA2LWhjeC9yb3RhdGVOc3h0UGFzc3dvcmQvb3BlcmF0aW9ucmVzdWx0cy83ZWNmMTFlMi1iNGEzLTRmMTMtODkyNC1jNWI5YTUwYzgwM2I/YXBpLXZlcnNpb249MjAyMS0wNi0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.29916.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.Avs.AvsClient/2.0.0.1" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/f6be8482-378f-45a6-afb3-d02a7d0fefd7/resourceGroups/aumarcel-eastus2-rg/providers/Microsoft.AVS/privateClouds/aumarcel-2021-05-06-hcx/rotateNsxtPassword/operationresults/7ecf11e2-b4a3-4f13-8924-c5b9a50c803b?api-version=2021-06-01" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11998" + ], + "x-ms-request-id": [ + "f4d5f7c5-a6ec-4fb5-bf32-377360f70ea9" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "nginx" + ], + "x-ms-correlation-request-id": [ + "f679df2d-54ce-44f3-99d4-e1bbe44a85b3" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20210511T232639Z:f679df2d-54ce-44f3-99d4-e1bbe44a85b3" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Tue, 11 May 2021 23:26:39 GMT" + ], + "Content-Type": [ + "text/html" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/f6be8482-378f-45a6-afb3-d02a7d0fefd7/resourceGroups/aumarcel-eastus2-rg/providers/Microsoft.AVS/privateClouds/aumarcel-2021-05-06-hcx/rotateNsxtPassword/operationresults/7ecf11e2-b4a3-4f13-8924-c5b9a50c803b?api-version=2021-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjZiZTg0ODItMzc4Zi00NWE2LWFmYjMtZDAyYTdkMGZlZmQ3L3Jlc291cmNlR3JvdXBzL2F1bWFyY2VsLWVhc3R1czItcmcvcHJvdmlkZXJzL01pY3Jvc29mdC5BVlMvcHJpdmF0ZUNsb3Vkcy9hdW1hcmNlbC0yMDIxLTA1LTA2LWhjeC9yb3RhdGVOc3h0UGFzc3dvcmQvb3BlcmF0aW9ucmVzdWx0cy83ZWNmMTFlMi1iNGEzLTRmMTMtODkyNC1jNWI5YTUwYzgwM2I/YXBpLXZlcnNpb249MjAyMS0wNi0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.29916.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.Avs.AvsClient/2.0.0.1" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/f6be8482-378f-45a6-afb3-d02a7d0fefd7/resourceGroups/aumarcel-eastus2-rg/providers/Microsoft.AVS/privateClouds/aumarcel-2021-05-06-hcx/rotateNsxtPassword/operationresults/7ecf11e2-b4a3-4f13-8924-c5b9a50c803b?api-version=2021-06-01" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11997" + ], + "x-ms-request-id": [ + "32557d51-ffca-4bb0-b7a4-c0e8a1a3f7f5" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "nginx" + ], + "x-ms-correlation-request-id": [ + "ac2d517d-7e05-4abd-9bf8-264f7ae27a49" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20210511T232710Z:ac2d517d-7e05-4abd-9bf8-264f7ae27a49" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Tue, 11 May 2021 23:27:09 GMT" + ], + "Content-Type": [ + "text/html" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/f6be8482-378f-45a6-afb3-d02a7d0fefd7/resourceGroups/aumarcel-eastus2-rg/providers/Microsoft.AVS/privateClouds/aumarcel-2021-05-06-hcx/rotateNsxtPassword/operationresults/7ecf11e2-b4a3-4f13-8924-c5b9a50c803b?api-version=2021-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjZiZTg0ODItMzc4Zi00NWE2LWFmYjMtZDAyYTdkMGZlZmQ3L3Jlc291cmNlR3JvdXBzL2F1bWFyY2VsLWVhc3R1czItcmcvcHJvdmlkZXJzL01pY3Jvc29mdC5BVlMvcHJpdmF0ZUNsb3Vkcy9hdW1hcmNlbC0yMDIxLTA1LTA2LWhjeC9yb3RhdGVOc3h0UGFzc3dvcmQvb3BlcmF0aW9ucmVzdWx0cy83ZWNmMTFlMi1iNGEzLTRmMTMtODkyNC1jNWI5YTUwYzgwM2I/YXBpLXZlcnNpb249MjAyMS0wNi0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.29916.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.Avs.AvsClient/2.0.0.1" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/f6be8482-378f-45a6-afb3-d02a7d0fefd7/resourceGroups/aumarcel-eastus2-rg/providers/Microsoft.AVS/privateClouds/aumarcel-2021-05-06-hcx/rotateNsxtPassword/operationresults/7ecf11e2-b4a3-4f13-8924-c5b9a50c803b?api-version=2021-06-01" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11996" + ], + "x-ms-request-id": [ + "a9582ea0-f53e-4fb1-8603-bc44bf0eb591" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "nginx" + ], + "x-ms-correlation-request-id": [ + "d6981f12-c5c3-4b36-b532-a49ca3f26e0d" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20210511T232740Z:d6981f12-c5c3-4b36-b532-a49ca3f26e0d" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Tue, 11 May 2021 23:27:40 GMT" + ], + "Content-Type": [ + "text/html" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/f6be8482-378f-45a6-afb3-d02a7d0fefd7/resourceGroups/aumarcel-eastus2-rg/providers/Microsoft.AVS/privateClouds/aumarcel-2021-05-06-hcx/rotateNsxtPassword/operationresults/7ecf11e2-b4a3-4f13-8924-c5b9a50c803b?api-version=2021-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjZiZTg0ODItMzc4Zi00NWE2LWFmYjMtZDAyYTdkMGZlZmQ3L3Jlc291cmNlR3JvdXBzL2F1bWFyY2VsLWVhc3R1czItcmcvcHJvdmlkZXJzL01pY3Jvc29mdC5BVlMvcHJpdmF0ZUNsb3Vkcy9hdW1hcmNlbC0yMDIxLTA1LTA2LWhjeC9yb3RhdGVOc3h0UGFzc3dvcmQvb3BlcmF0aW9ucmVzdWx0cy83ZWNmMTFlMi1iNGEzLTRmMTMtODkyNC1jNWI5YTUwYzgwM2I/YXBpLXZlcnNpb249MjAyMS0wNi0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.29916.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.Avs.AvsClient/2.0.0.1" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/f6be8482-378f-45a6-afb3-d02a7d0fefd7/resourceGroups/aumarcel-eastus2-rg/providers/Microsoft.AVS/privateClouds/aumarcel-2021-05-06-hcx/rotateNsxtPassword/operationresults/7ecf11e2-b4a3-4f13-8924-c5b9a50c803b?api-version=2021-06-01" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11995" + ], + "x-ms-request-id": [ + "c4a6e4cc-2cfb-4ed2-ad69-e2c087616e01" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "nginx" + ], + "x-ms-correlation-request-id": [ + "b87a369e-305e-4b3c-963e-da49b98c0721" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20210511T232811Z:b87a369e-305e-4b3c-963e-da49b98c0721" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Tue, 11 May 2021 23:28:11 GMT" + ], + "Content-Type": [ + "text/html" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/f6be8482-378f-45a6-afb3-d02a7d0fefd7/resourceGroups/aumarcel-eastus2-rg/providers/Microsoft.AVS/privateClouds/aumarcel-2021-05-06-hcx/rotateNsxtPassword/operationresults/7ecf11e2-b4a3-4f13-8924-c5b9a50c803b?api-version=2021-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjZiZTg0ODItMzc4Zi00NWE2LWFmYjMtZDAyYTdkMGZlZmQ3L3Jlc291cmNlR3JvdXBzL2F1bWFyY2VsLWVhc3R1czItcmcvcHJvdmlkZXJzL01pY3Jvc29mdC5BVlMvcHJpdmF0ZUNsb3Vkcy9hdW1hcmNlbC0yMDIxLTA1LTA2LWhjeC9yb3RhdGVOc3h0UGFzc3dvcmQvb3BlcmF0aW9ucmVzdWx0cy83ZWNmMTFlMi1iNGEzLTRmMTMtODkyNC1jNWI5YTUwYzgwM2I/YXBpLXZlcnNpb249MjAyMS0wNi0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.29916.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.Avs.AvsClient/2.0.0.1" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/f6be8482-378f-45a6-afb3-d02a7d0fefd7/resourceGroups/aumarcel-eastus2-rg/providers/Microsoft.AVS/privateClouds/aumarcel-2021-05-06-hcx/rotateNsxtPassword/operationresults/7ecf11e2-b4a3-4f13-8924-c5b9a50c803b?api-version=2021-06-01" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11994" + ], + "x-ms-request-id": [ + "4e543122-ad37-4615-8353-b0a8c811ec1c" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "nginx" + ], + "x-ms-correlation-request-id": [ + "1cada0bb-aa10-4847-bc70-fa107d5eb878" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20210511T232842Z:1cada0bb-aa10-4847-bc70-fa107d5eb878" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Tue, 11 May 2021 23:28:41 GMT" + ], + "Content-Type": [ + "text/html" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/f6be8482-378f-45a6-afb3-d02a7d0fefd7/resourceGroups/aumarcel-eastus2-rg/providers/Microsoft.AVS/privateClouds/aumarcel-2021-05-06-hcx/rotateNsxtPassword/operationresults/7ecf11e2-b4a3-4f13-8924-c5b9a50c803b?api-version=2021-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjZiZTg0ODItMzc4Zi00NWE2LWFmYjMtZDAyYTdkMGZlZmQ3L3Jlc291cmNlR3JvdXBzL2F1bWFyY2VsLWVhc3R1czItcmcvcHJvdmlkZXJzL01pY3Jvc29mdC5BVlMvcHJpdmF0ZUNsb3Vkcy9hdW1hcmNlbC0yMDIxLTA1LTA2LWhjeC9yb3RhdGVOc3h0UGFzc3dvcmQvb3BlcmF0aW9ucmVzdWx0cy83ZWNmMTFlMi1iNGEzLTRmMTMtODkyNC1jNWI5YTUwYzgwM2I/YXBpLXZlcnNpb249MjAyMS0wNi0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.29916.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.Avs.AvsClient/2.0.0.1" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/f6be8482-378f-45a6-afb3-d02a7d0fefd7/resourceGroups/aumarcel-eastus2-rg/providers/Microsoft.AVS/privateClouds/aumarcel-2021-05-06-hcx/rotateNsxtPassword/operationresults/7ecf11e2-b4a3-4f13-8924-c5b9a50c803b?api-version=2021-06-01" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11993" + ], + "x-ms-request-id": [ + "00019f92-4724-49d6-86ae-0446960d58c0" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "nginx" + ], + "x-ms-correlation-request-id": [ + "568be86c-43cc-421e-ab13-6cd29fbd3c3e" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20210511T232913Z:568be86c-43cc-421e-ab13-6cd29fbd3c3e" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Tue, 11 May 2021 23:29:12 GMT" + ], + "Content-Type": [ + "text/html" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/f6be8482-378f-45a6-afb3-d02a7d0fefd7/resourceGroups/aumarcel-eastus2-rg/providers/Microsoft.AVS/privateClouds/aumarcel-2021-05-06-hcx/rotateNsxtPassword/operationresults/7ecf11e2-b4a3-4f13-8924-c5b9a50c803b?api-version=2021-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjZiZTg0ODItMzc4Zi00NWE2LWFmYjMtZDAyYTdkMGZlZmQ3L3Jlc291cmNlR3JvdXBzL2F1bWFyY2VsLWVhc3R1czItcmcvcHJvdmlkZXJzL01pY3Jvc29mdC5BVlMvcHJpdmF0ZUNsb3Vkcy9hdW1hcmNlbC0yMDIxLTA1LTA2LWhjeC9yb3RhdGVOc3h0UGFzc3dvcmQvb3BlcmF0aW9ucmVzdWx0cy83ZWNmMTFlMi1iNGEzLTRmMTMtODkyNC1jNWI5YTUwYzgwM2I/YXBpLXZlcnNpb249MjAyMS0wNi0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.29916.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.Avs.AvsClient/2.0.0.1" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11992" + ], + "x-ms-request-id": [ + "fe55f5b8-40c6-43b8-b488-ea2751680c34" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "nginx" + ], + "x-ms-correlation-request-id": [ + "94cfdb04-ca28-442f-9695-aefaf3de90e5" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20210511T232943Z:94cfdb04-ca28-442f-9695-aefaf3de90e5" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Tue, 11 May 2021 23:29:43 GMT" + ], + "Content-Type": [ + "text/html" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "", + "StatusCode": 204 + }, + { + "RequestUri": "/subscriptions/f6be8482-378f-45a6-afb3-d02a7d0fefd7/resourceGroups/aumarcel-eastus2-rg/providers/Microsoft.AVS/privateClouds/aumarcel-2021-05-06-hcx/rotateNsxtPassword/operationresults/7ecf11e2-b4a3-4f13-8924-c5b9a50c803b?api-version=2021-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjZiZTg0ODItMzc4Zi00NWE2LWFmYjMtZDAyYTdkMGZlZmQ3L3Jlc291cmNlR3JvdXBzL2F1bWFyY2VsLWVhc3R1czItcmcvcHJvdmlkZXJzL01pY3Jvc29mdC5BVlMvcHJpdmF0ZUNsb3Vkcy9hdW1hcmNlbC0yMDIxLTA1LTA2LWhjeC9yb3RhdGVOc3h0UGFzc3dvcmQvb3BlcmF0aW9ucmVzdWx0cy83ZWNmMTFlMi1iNGEzLTRmMTMtODkyNC1jNWI5YTUwYzgwM2I/YXBpLXZlcnNpb249MjAyMS0wNi0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.29916.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.Avs.AvsClient/2.0.0.1" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11991" + ], + "x-ms-request-id": [ + "53c1b97d-fb48-46a5-8e79-178da1a7ce36" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "nginx" + ], + "x-ms-correlation-request-id": [ + "86c520e3-99c1-4277-abea-2eebbfeff3f6" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20210511T232944Z:86c520e3-99c1-4277-abea-2eebbfeff3f6" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Tue, 11 May 2021 23:29:44 GMT" + ], + "Content-Type": [ + "text/html" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "", + "StatusCode": 204 + }, + { + "RequestUri": "/subscriptions/f6be8482-378f-45a6-afb3-d02a7d0fefd7/resourceGroups/aumarcel-eastus2-rg/providers/Microsoft.AVS/privateClouds/aumarcel-2021-05-06-hcx/rotateVcenterPassword?api-version=2021-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjZiZTg0ODItMzc4Zi00NWE2LWFmYjMtZDAyYTdkMGZlZmQ3L3Jlc291cmNlR3JvdXBzL2F1bWFyY2VsLWVhc3R1czItcmcvcHJvdmlkZXJzL01pY3Jvc29mdC5BVlMvcHJpdmF0ZUNsb3Vkcy9hdW1hcmNlbC0yMDIxLTA1LTA2LWhjeC9yb3RhdGVWY2VudGVyUGFzc3dvcmQ/YXBpLXZlcnNpb249MjAyMS0wNi0wMQ==", + "RequestMethod": "POST", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "715baaba-f96d-4522-ac49-dac950c3e044" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.29916.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.Avs.AvsClient/2.0.0.1" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/f6be8482-378f-45a6-afb3-d02a7d0fefd7/resourceGroups/aumarcel-eastus2-rg/providers/Microsoft.AVS/privateClouds/aumarcel-2021-05-06-hcx/rotateVcenterPassword/operationresults/bd140c90-f545-44bf-a679-6cc4bddda122?api-version=2021-06-01" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1198" + ], + "x-ms-request-id": [ + "f51106bd-1086-47b0-80c5-0cea4c133503" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "nginx" + ], + "x-ms-correlation-request-id": [ + "8bd35d4b-60aa-4c4b-a059-694786835b2e" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20210511T232944Z:8bd35d4b-60aa-4c4b-a059-694786835b2e" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Tue, 11 May 2021 23:29:44 GMT" + ], + "Content-Type": [ + "text/html" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/f6be8482-378f-45a6-afb3-d02a7d0fefd7/resourceGroups/aumarcel-eastus2-rg/providers/Microsoft.AVS/privateClouds/aumarcel-2021-05-06-hcx/rotateVcenterPassword/operationresults/bd140c90-f545-44bf-a679-6cc4bddda122?api-version=2021-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjZiZTg0ODItMzc4Zi00NWE2LWFmYjMtZDAyYTdkMGZlZmQ3L3Jlc291cmNlR3JvdXBzL2F1bWFyY2VsLWVhc3R1czItcmcvcHJvdmlkZXJzL01pY3Jvc29mdC5BVlMvcHJpdmF0ZUNsb3Vkcy9hdW1hcmNlbC0yMDIxLTA1LTA2LWhjeC9yb3RhdGVWY2VudGVyUGFzc3dvcmQvb3BlcmF0aW9ucmVzdWx0cy9iZDE0MGM5MC1mNTQ1LTQ0YmYtYTY3OS02Y2M0YmRkZGExMjI/YXBpLXZlcnNpb249MjAyMS0wNi0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.29916.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.Avs.AvsClient/2.0.0.1" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/f6be8482-378f-45a6-afb3-d02a7d0fefd7/resourceGroups/aumarcel-eastus2-rg/providers/Microsoft.AVS/privateClouds/aumarcel-2021-05-06-hcx/rotateVcenterPassword/operationresults/bd140c90-f545-44bf-a679-6cc4bddda122?api-version=2021-06-01" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11990" + ], + "x-ms-request-id": [ + "b90c981a-d284-446b-bb15-95ec5330b18c" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "nginx" + ], + "x-ms-correlation-request-id": [ + "2691c742-5c64-4b04-8735-4188107cd601" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20210511T233017Z:2691c742-5c64-4b04-8735-4188107cd601" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Tue, 11 May 2021 23:30:17 GMT" + ], + "Content-Type": [ + "text/html" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/f6be8482-378f-45a6-afb3-d02a7d0fefd7/resourceGroups/aumarcel-eastus2-rg/providers/Microsoft.AVS/privateClouds/aumarcel-2021-05-06-hcx/rotateVcenterPassword/operationresults/bd140c90-f545-44bf-a679-6cc4bddda122?api-version=2021-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjZiZTg0ODItMzc4Zi00NWE2LWFmYjMtZDAyYTdkMGZlZmQ3L3Jlc291cmNlR3JvdXBzL2F1bWFyY2VsLWVhc3R1czItcmcvcHJvdmlkZXJzL01pY3Jvc29mdC5BVlMvcHJpdmF0ZUNsb3Vkcy9hdW1hcmNlbC0yMDIxLTA1LTA2LWhjeC9yb3RhdGVWY2VudGVyUGFzc3dvcmQvb3BlcmF0aW9ucmVzdWx0cy9iZDE0MGM5MC1mNTQ1LTQ0YmYtYTY3OS02Y2M0YmRkZGExMjI/YXBpLXZlcnNpb249MjAyMS0wNi0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.29916.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.Avs.AvsClient/2.0.0.1" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/f6be8482-378f-45a6-afb3-d02a7d0fefd7/resourceGroups/aumarcel-eastus2-rg/providers/Microsoft.AVS/privateClouds/aumarcel-2021-05-06-hcx/rotateVcenterPassword/operationresults/bd140c90-f545-44bf-a679-6cc4bddda122?api-version=2021-06-01" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11989" + ], + "x-ms-request-id": [ + "4a15b569-54c3-4677-b6d7-fdf53f51f66c" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "nginx" + ], + "x-ms-correlation-request-id": [ + "7344878e-c9bb-4a7d-b00e-b655e364d864" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20210511T233048Z:7344878e-c9bb-4a7d-b00e-b655e364d864" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Tue, 11 May 2021 23:30:47 GMT" + ], + "Content-Type": [ + "text/html" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/f6be8482-378f-45a6-afb3-d02a7d0fefd7/resourceGroups/aumarcel-eastus2-rg/providers/Microsoft.AVS/privateClouds/aumarcel-2021-05-06-hcx/rotateVcenterPassword/operationresults/bd140c90-f545-44bf-a679-6cc4bddda122?api-version=2021-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjZiZTg0ODItMzc4Zi00NWE2LWFmYjMtZDAyYTdkMGZlZmQ3L3Jlc291cmNlR3JvdXBzL2F1bWFyY2VsLWVhc3R1czItcmcvcHJvdmlkZXJzL01pY3Jvc29mdC5BVlMvcHJpdmF0ZUNsb3Vkcy9hdW1hcmNlbC0yMDIxLTA1LTA2LWhjeC9yb3RhdGVWY2VudGVyUGFzc3dvcmQvb3BlcmF0aW9ucmVzdWx0cy9iZDE0MGM5MC1mNTQ1LTQ0YmYtYTY3OS02Y2M0YmRkZGExMjI/YXBpLXZlcnNpb249MjAyMS0wNi0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.29916.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.Avs.AvsClient/2.0.0.1" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/f6be8482-378f-45a6-afb3-d02a7d0fefd7/resourceGroups/aumarcel-eastus2-rg/providers/Microsoft.AVS/privateClouds/aumarcel-2021-05-06-hcx/rotateVcenterPassword/operationresults/bd140c90-f545-44bf-a679-6cc4bddda122?api-version=2021-06-01" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11988" + ], + "x-ms-request-id": [ + "2010f4a0-9a72-4a38-bc6a-834d062ceecd" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "nginx" + ], + "x-ms-correlation-request-id": [ + "ee996f9b-7613-440e-a6c7-a45b7b3a8bef" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20210511T233118Z:ee996f9b-7613-440e-a6c7-a45b7b3a8bef" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Tue, 11 May 2021 23:31:18 GMT" + ], + "Content-Type": [ + "text/html" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/f6be8482-378f-45a6-afb3-d02a7d0fefd7/resourceGroups/aumarcel-eastus2-rg/providers/Microsoft.AVS/privateClouds/aumarcel-2021-05-06-hcx/rotateVcenterPassword/operationresults/bd140c90-f545-44bf-a679-6cc4bddda122?api-version=2021-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjZiZTg0ODItMzc4Zi00NWE2LWFmYjMtZDAyYTdkMGZlZmQ3L3Jlc291cmNlR3JvdXBzL2F1bWFyY2VsLWVhc3R1czItcmcvcHJvdmlkZXJzL01pY3Jvc29mdC5BVlMvcHJpdmF0ZUNsb3Vkcy9hdW1hcmNlbC0yMDIxLTA1LTA2LWhjeC9yb3RhdGVWY2VudGVyUGFzc3dvcmQvb3BlcmF0aW9ucmVzdWx0cy9iZDE0MGM5MC1mNTQ1LTQ0YmYtYTY3OS02Y2M0YmRkZGExMjI/YXBpLXZlcnNpb249MjAyMS0wNi0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.29916.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.Avs.AvsClient/2.0.0.1" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/f6be8482-378f-45a6-afb3-d02a7d0fefd7/resourceGroups/aumarcel-eastus2-rg/providers/Microsoft.AVS/privateClouds/aumarcel-2021-05-06-hcx/rotateVcenterPassword/operationresults/bd140c90-f545-44bf-a679-6cc4bddda122?api-version=2021-06-01" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11987" + ], + "x-ms-request-id": [ + "9e6c9535-3e52-45e6-97ca-5848614ba0c8" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "nginx" + ], + "x-ms-correlation-request-id": [ + "fecd2aa6-44a0-49e9-8200-6c9ea47bd7e1" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20210511T233149Z:fecd2aa6-44a0-49e9-8200-6c9ea47bd7e1" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Tue, 11 May 2021 23:31:49 GMT" + ], + "Content-Type": [ + "text/html" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/f6be8482-378f-45a6-afb3-d02a7d0fefd7/resourceGroups/aumarcel-eastus2-rg/providers/Microsoft.AVS/privateClouds/aumarcel-2021-05-06-hcx/rotateVcenterPassword/operationresults/bd140c90-f545-44bf-a679-6cc4bddda122?api-version=2021-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjZiZTg0ODItMzc4Zi00NWE2LWFmYjMtZDAyYTdkMGZlZmQ3L3Jlc291cmNlR3JvdXBzL2F1bWFyY2VsLWVhc3R1czItcmcvcHJvdmlkZXJzL01pY3Jvc29mdC5BVlMvcHJpdmF0ZUNsb3Vkcy9hdW1hcmNlbC0yMDIxLTA1LTA2LWhjeC9yb3RhdGVWY2VudGVyUGFzc3dvcmQvb3BlcmF0aW9ucmVzdWx0cy9iZDE0MGM5MC1mNTQ1LTQ0YmYtYTY3OS02Y2M0YmRkZGExMjI/YXBpLXZlcnNpb249MjAyMS0wNi0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.29916.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.Avs.AvsClient/2.0.0.1" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/f6be8482-378f-45a6-afb3-d02a7d0fefd7/resourceGroups/aumarcel-eastus2-rg/providers/Microsoft.AVS/privateClouds/aumarcel-2021-05-06-hcx/rotateVcenterPassword/operationresults/bd140c90-f545-44bf-a679-6cc4bddda122?api-version=2021-06-01" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11986" + ], + "x-ms-request-id": [ + "57c45c68-ef08-4a3a-bdfc-8c213ece941a" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "nginx" + ], + "x-ms-correlation-request-id": [ + "93a7da99-ec45-48cb-bcea-65a56f458ce9" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20210511T233220Z:93a7da99-ec45-48cb-bcea-65a56f458ce9" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Tue, 11 May 2021 23:32:20 GMT" + ], + "Content-Type": [ + "text/html" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/f6be8482-378f-45a6-afb3-d02a7d0fefd7/resourceGroups/aumarcel-eastus2-rg/providers/Microsoft.AVS/privateClouds/aumarcel-2021-05-06-hcx/rotateVcenterPassword/operationresults/bd140c90-f545-44bf-a679-6cc4bddda122?api-version=2021-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjZiZTg0ODItMzc4Zi00NWE2LWFmYjMtZDAyYTdkMGZlZmQ3L3Jlc291cmNlR3JvdXBzL2F1bWFyY2VsLWVhc3R1czItcmcvcHJvdmlkZXJzL01pY3Jvc29mdC5BVlMvcHJpdmF0ZUNsb3Vkcy9hdW1hcmNlbC0yMDIxLTA1LTA2LWhjeC9yb3RhdGVWY2VudGVyUGFzc3dvcmQvb3BlcmF0aW9ucmVzdWx0cy9iZDE0MGM5MC1mNTQ1LTQ0YmYtYTY3OS02Y2M0YmRkZGExMjI/YXBpLXZlcnNpb249MjAyMS0wNi0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.29916.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.Avs.AvsClient/2.0.0.1" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/f6be8482-378f-45a6-afb3-d02a7d0fefd7/resourceGroups/aumarcel-eastus2-rg/providers/Microsoft.AVS/privateClouds/aumarcel-2021-05-06-hcx/rotateVcenterPassword/operationresults/bd140c90-f545-44bf-a679-6cc4bddda122?api-version=2021-06-01" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11985" + ], + "x-ms-request-id": [ + "54019dc5-308c-4193-9dc3-f85940554ed1" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "nginx" + ], + "x-ms-correlation-request-id": [ + "99e71b7a-43e5-4784-b3b0-d39e648eb92b" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20210511T233251Z:99e71b7a-43e5-4784-b3b0-d39e648eb92b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Tue, 11 May 2021 23:32:51 GMT" + ], + "Content-Type": [ + "text/html" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/f6be8482-378f-45a6-afb3-d02a7d0fefd7/resourceGroups/aumarcel-eastus2-rg/providers/Microsoft.AVS/privateClouds/aumarcel-2021-05-06-hcx/rotateVcenterPassword/operationresults/bd140c90-f545-44bf-a679-6cc4bddda122?api-version=2021-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjZiZTg0ODItMzc4Zi00NWE2LWFmYjMtZDAyYTdkMGZlZmQ3L3Jlc291cmNlR3JvdXBzL2F1bWFyY2VsLWVhc3R1czItcmcvcHJvdmlkZXJzL01pY3Jvc29mdC5BVlMvcHJpdmF0ZUNsb3Vkcy9hdW1hcmNlbC0yMDIxLTA1LTA2LWhjeC9yb3RhdGVWY2VudGVyUGFzc3dvcmQvb3BlcmF0aW9ucmVzdWx0cy9iZDE0MGM5MC1mNTQ1LTQ0YmYtYTY3OS02Y2M0YmRkZGExMjI/YXBpLXZlcnNpb249MjAyMS0wNi0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.29916.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.Avs.AvsClient/2.0.0.1" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/f6be8482-378f-45a6-afb3-d02a7d0fefd7/resourceGroups/aumarcel-eastus2-rg/providers/Microsoft.AVS/privateClouds/aumarcel-2021-05-06-hcx/rotateVcenterPassword/operationresults/bd140c90-f545-44bf-a679-6cc4bddda122?api-version=2021-06-01" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11984" + ], + "x-ms-request-id": [ + "0248d825-d8ae-4956-a756-a3e031b4f5af" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "nginx" + ], + "x-ms-correlation-request-id": [ + "4a99b7d5-6f4c-4c27-a888-922e020890d8" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20210511T233321Z:4a99b7d5-6f4c-4c27-a888-922e020890d8" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Tue, 11 May 2021 23:33:21 GMT" + ], + "Content-Type": [ + "text/html" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/f6be8482-378f-45a6-afb3-d02a7d0fefd7/resourceGroups/aumarcel-eastus2-rg/providers/Microsoft.AVS/privateClouds/aumarcel-2021-05-06-hcx/rotateVcenterPassword/operationresults/bd140c90-f545-44bf-a679-6cc4bddda122?api-version=2021-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjZiZTg0ODItMzc4Zi00NWE2LWFmYjMtZDAyYTdkMGZlZmQ3L3Jlc291cmNlR3JvdXBzL2F1bWFyY2VsLWVhc3R1czItcmcvcHJvdmlkZXJzL01pY3Jvc29mdC5BVlMvcHJpdmF0ZUNsb3Vkcy9hdW1hcmNlbC0yMDIxLTA1LTA2LWhjeC9yb3RhdGVWY2VudGVyUGFzc3dvcmQvb3BlcmF0aW9ucmVzdWx0cy9iZDE0MGM5MC1mNTQ1LTQ0YmYtYTY3OS02Y2M0YmRkZGExMjI/YXBpLXZlcnNpb249MjAyMS0wNi0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.29916.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.Avs.AvsClient/2.0.0.1" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/f6be8482-378f-45a6-afb3-d02a7d0fefd7/resourceGroups/aumarcel-eastus2-rg/providers/Microsoft.AVS/privateClouds/aumarcel-2021-05-06-hcx/rotateVcenterPassword/operationresults/bd140c90-f545-44bf-a679-6cc4bddda122?api-version=2021-06-01" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11983" + ], + "x-ms-request-id": [ + "22a5b89c-042c-4e69-9d1b-e092ea8ea4b1" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "nginx" + ], + "x-ms-correlation-request-id": [ + "fa0cf902-18bc-4b23-b56c-f1a24a2e8ba8" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20210511T233352Z:fa0cf902-18bc-4b23-b56c-f1a24a2e8ba8" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Tue, 11 May 2021 23:33:52 GMT" + ], + "Content-Type": [ + "text/html" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/f6be8482-378f-45a6-afb3-d02a7d0fefd7/resourceGroups/aumarcel-eastus2-rg/providers/Microsoft.AVS/privateClouds/aumarcel-2021-05-06-hcx/rotateVcenterPassword/operationresults/bd140c90-f545-44bf-a679-6cc4bddda122?api-version=2021-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjZiZTg0ODItMzc4Zi00NWE2LWFmYjMtZDAyYTdkMGZlZmQ3L3Jlc291cmNlR3JvdXBzL2F1bWFyY2VsLWVhc3R1czItcmcvcHJvdmlkZXJzL01pY3Jvc29mdC5BVlMvcHJpdmF0ZUNsb3Vkcy9hdW1hcmNlbC0yMDIxLTA1LTA2LWhjeC9yb3RhdGVWY2VudGVyUGFzc3dvcmQvb3BlcmF0aW9ucmVzdWx0cy9iZDE0MGM5MC1mNTQ1LTQ0YmYtYTY3OS02Y2M0YmRkZGExMjI/YXBpLXZlcnNpb249MjAyMS0wNi0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.29916.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.Avs.AvsClient/2.0.0.1" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/f6be8482-378f-45a6-afb3-d02a7d0fefd7/resourceGroups/aumarcel-eastus2-rg/providers/Microsoft.AVS/privateClouds/aumarcel-2021-05-06-hcx/rotateVcenterPassword/operationresults/bd140c90-f545-44bf-a679-6cc4bddda122?api-version=2021-06-01" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11982" + ], + "x-ms-request-id": [ + "39618ca1-1093-433e-812e-7e22cc8b6a38" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "nginx" + ], + "x-ms-correlation-request-id": [ + "df856af0-0f16-499e-a0bc-1068f3c6321a" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20210511T233422Z:df856af0-0f16-499e-a0bc-1068f3c6321a" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Tue, 11 May 2021 23:34:21 GMT" + ], + "Content-Type": [ + "text/html" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/f6be8482-378f-45a6-afb3-d02a7d0fefd7/resourceGroups/aumarcel-eastus2-rg/providers/Microsoft.AVS/privateClouds/aumarcel-2021-05-06-hcx/rotateVcenterPassword/operationresults/bd140c90-f545-44bf-a679-6cc4bddda122?api-version=2021-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjZiZTg0ODItMzc4Zi00NWE2LWFmYjMtZDAyYTdkMGZlZmQ3L3Jlc291cmNlR3JvdXBzL2F1bWFyY2VsLWVhc3R1czItcmcvcHJvdmlkZXJzL01pY3Jvc29mdC5BVlMvcHJpdmF0ZUNsb3Vkcy9hdW1hcmNlbC0yMDIxLTA1LTA2LWhjeC9yb3RhdGVWY2VudGVyUGFzc3dvcmQvb3BlcmF0aW9ucmVzdWx0cy9iZDE0MGM5MC1mNTQ1LTQ0YmYtYTY3OS02Y2M0YmRkZGExMjI/YXBpLXZlcnNpb249MjAyMS0wNi0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.29916.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.Avs.AvsClient/2.0.0.1" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11981" + ], + "x-ms-request-id": [ + "10e4230c-3116-4c07-b82b-dcfa57795938" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "nginx" + ], + "x-ms-correlation-request-id": [ + "563d0825-9d5a-47c6-abfc-ca16e4492df8" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20210511T233453Z:563d0825-9d5a-47c6-abfc-ca16e4492df8" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Tue, 11 May 2021 23:34:53 GMT" + ], + "Content-Type": [ + "text/html" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "", + "StatusCode": 204 + }, + { + "RequestUri": "/subscriptions/f6be8482-378f-45a6-afb3-d02a7d0fefd7/resourceGroups/aumarcel-eastus2-rg/providers/Microsoft.AVS/privateClouds/aumarcel-2021-05-06-hcx/rotateVcenterPassword/operationresults/bd140c90-f545-44bf-a679-6cc4bddda122?api-version=2021-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjZiZTg0ODItMzc4Zi00NWE2LWFmYjMtZDAyYTdkMGZlZmQ3L3Jlc291cmNlR3JvdXBzL2F1bWFyY2VsLWVhc3R1czItcmcvcHJvdmlkZXJzL01pY3Jvc29mdC5BVlMvcHJpdmF0ZUNsb3Vkcy9hdW1hcmNlbC0yMDIxLTA1LTA2LWhjeC9yb3RhdGVWY2VudGVyUGFzc3dvcmQvb3BlcmF0aW9ucmVzdWx0cy9iZDE0MGM5MC1mNTQ1LTQ0YmYtYTY3OS02Y2M0YmRkZGExMjI/YXBpLXZlcnNpb249MjAyMS0wNi0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.29916.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.Avs.AvsClient/2.0.0.1" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11980" + ], + "x-ms-request-id": [ + "de1719b9-9b95-453a-b271-28cdbc1fabd1" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "nginx" + ], + "x-ms-correlation-request-id": [ + "e62efeb9-c3d3-41f0-aade-813c203176da" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20210511T233453Z:e62efeb9-c3d3-41f0-aade-813c203176da" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Tue, 11 May 2021 23:34:53 GMT" + ], + "Content-Type": [ + "text/html" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "", + "StatusCode": 204 + } + ], + "Names": {}, + "Variables": { + "SubscriptionId": "f6be8482-378f-45a6-afb3-d02a7d0fefd7" + } +} \ No newline at end of file diff --git a/sdk/avs/Microsoft.Azure.Management.Avs/tests/SessionRecords/CloudLinksTests/CloudLinksAll.json b/sdk/avs/Microsoft.Azure.Management.Avs/tests/SessionRecords/CloudLinksTests/CloudLinksAll.json new file mode 100644 index 000000000000..27a89dd642a2 --- /dev/null +++ b/sdk/avs/Microsoft.Azure.Management.Avs/tests/SessionRecords/CloudLinksTests/CloudLinksAll.json @@ -0,0 +1,572 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/js-dev-testing/providers/Microsoft.AVS/privateClouds/cloudLinker/cloudLinks/myLink?api-version=2021-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmE3NWU3OWItZGQ5NS00MDI1LTlkYmYtM2E3YWU4ZGZmMmI1L3Jlc291cmNlR3JvdXBzL2pzLWRldi10ZXN0aW5nL3Byb3ZpZGVycy9NaWNyb3NvZnQuQVZTL3ByaXZhdGVDbG91ZHMvY2xvdWRMaW5rZXIvY2xvdWRMaW5rcy9teUxpbms/YXBpLXZlcnNpb249MjAyMS0wNi0wMQ==", + "RequestMethod": "PUT", + "RequestBody": "{\n \"properties\": {\n \"linkedCloud\": \"/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/mock-avs-fct-dogfood-conveyor-centralus/providers/Microsoft.AVS/privateClouds/fct-mock-centralus-45\"\n }\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "bbf32442-acc3-4309-8f60-0e165540f717" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.29929.01", + "OSName/Linux", + "OSVersion/Linux.5.8.0.50.generic.56.20.04.1.Ubuntu.SMP.Mon.Apr.12.21.46.35.UTC.2021", + "Microsoft.Azure.Management.Avs.AvsClient/1.0.0.1" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "213" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1199" + ], + "x-ms-request-id": [ + "42b16268-eb41-4832-aef3-2c6bc634d2b1" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-correlation-request-id": [ + "9bffa881-6aa5-43b1-86b4-9e8923fca3b7" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20210511T153501Z:9bffa881-6aa5-43b1-86b4-9e8923fca3b7" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-MSEdge-Ref": [ + "Ref A: 930C5B6ED747479BB3E8B64004068457 Ref B: ATAEDGE0907 Ref C: 2021-05-11T15:34:58Z" + ], + "Date": [ + "Tue, 11 May 2021 15:35:01 GMT" + ], + "Content-Length": [ + "438" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\n \"id\": \"/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/js-dev-testing/providers/Microsoft.AVS/privateClouds/cloudLinker/cloudLinks/myLink\",\n \"name\": \"myLink\",\n \"properties\": {\n \"linkedCloud\": \"/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/mock-avs-fct-dogfood-conveyor-centralus/providers/Microsoft.AVS/privateClouds/fct-mock-centralus-45\",\n \"status\": \"Active\"\n },\n \"type\": \"Microsoft.AVS/privateClouds/cloudLinks\"\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/js-dev-testing/providers/Microsoft.AVS/privateClouds/cloudLinker/cloudLinks?api-version=2021-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmE3NWU3OWItZGQ5NS00MDI1LTlkYmYtM2E3YWU4ZGZmMmI1L3Jlc291cmNlR3JvdXBzL2pzLWRldi10ZXN0aW5nL3Byb3ZpZGVycy9NaWNyb3NvZnQuQVZTL3ByaXZhdGVDbG91ZHMvY2xvdWRMaW5rZXIvY2xvdWRMaW5rcz9hcGktdmVyc2lvbj0yMDIxLTA2LTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "2d97c8bb-98d5-491c-b23b-cb866ab08033" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.29929.01", + "OSName/Linux", + "OSVersion/Linux.5.8.0.50.generic.56.20.04.1.Ubuntu.SMP.Mon.Apr.12.21.46.35.UTC.2021", + "Microsoft.Azure.Management.Avs.AvsClient/1.0.0.1" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14998" + ], + "x-ms-request-id": [ + "ab66c441-c4e8-4da3-9f57-a8ee7077ea16" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-correlation-request-id": [ + "3c3312a0-aae2-4b84-a0f1-a6ec8a4eae96" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20210511T153504Z:3c3312a0-aae2-4b84-a0f1-a6ec8a4eae96" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-MSEdge-Ref": [ + "Ref A: BD02974D01AC47078660354D90AF7334 Ref B: ATAEDGE0907 Ref C: 2021-05-11T15:35:02Z" + ], + "Date": [ + "Tue, 11 May 2021 15:35:04 GMT" + ], + "Content-Length": [ + "450" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\n \"value\": [\n {\n \"id\": \"/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/js-dev-testing/providers/Microsoft.AVS/privateClouds/cloudLinker/cloudLinks/myLink\",\n \"name\": \"myLink\",\n \"properties\": {\n \"linkedCloud\": \"/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/mock-avs-fct-dogfood-conveyor-centralus/providers/Microsoft.AVS/privateClouds/fct-mock-centralus-45\",\n \"status\": \"Active\"\n },\n \"type\": \"Microsoft.AVS/privateClouds/cloudLinks\"\n }\n ]\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/js-dev-testing/providers/Microsoft.AVS/privateClouds/cloudLinker/cloudLinks/myLink?api-version=2021-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmE3NWU3OWItZGQ5NS00MDI1LTlkYmYtM2E3YWU4ZGZmMmI1L3Jlc291cmNlR3JvdXBzL2pzLWRldi10ZXN0aW5nL3Byb3ZpZGVycy9NaWNyb3NvZnQuQVZTL3ByaXZhdGVDbG91ZHMvY2xvdWRMaW5rZXIvY2xvdWRMaW5rcy9teUxpbms/YXBpLXZlcnNpb249MjAyMS0wNi0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "7aedc939-11b9-41c9-a62c-53dd995cad30" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.29929.01", + "OSName/Linux", + "OSVersion/Linux.5.8.0.50.generic.56.20.04.1.Ubuntu.SMP.Mon.Apr.12.21.46.35.UTC.2021", + "Microsoft.Azure.Management.Avs.AvsClient/1.0.0.1" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14997" + ], + "x-ms-request-id": [ + "1401ea1f-4178-4041-81ac-73650c3e4dc4" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-correlation-request-id": [ + "1a99ef0b-a725-400f-917c-f2b5a4a69ed5" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20210511T153504Z:1a99ef0b-a725-400f-917c-f2b5a4a69ed5" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-MSEdge-Ref": [ + "Ref A: 4FF22A8052CC481382912112A6A57EF0 Ref B: ATAEDGE0907 Ref C: 2021-05-11T15:35:04Z" + ], + "Date": [ + "Tue, 11 May 2021 15:35:04 GMT" + ], + "Content-Length": [ + "438" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\n \"id\": \"/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/js-dev-testing/providers/Microsoft.AVS/privateClouds/cloudLinker/cloudLinks/myLink\",\n \"name\": \"myLink\",\n \"properties\": {\n \"linkedCloud\": \"/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/mock-avs-fct-dogfood-conveyor-centralus/providers/Microsoft.AVS/privateClouds/fct-mock-centralus-45\",\n \"status\": \"Active\"\n },\n \"type\": \"Microsoft.AVS/privateClouds/cloudLinks\"\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/js-dev-testing/providers/Microsoft.AVS/privateClouds/cloudLinker/cloudLinks/myLink?api-version=2021-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmE3NWU3OWItZGQ5NS00MDI1LTlkYmYtM2E3YWU4ZGZmMmI1L3Jlc291cmNlR3JvdXBzL2pzLWRldi10ZXN0aW5nL3Byb3ZpZGVycy9NaWNyb3NvZnQuQVZTL3ByaXZhdGVDbG91ZHMvY2xvdWRMaW5rZXIvY2xvdWRMaW5rcy9teUxpbms/YXBpLXZlcnNpb249MjAyMS0wNi0wMQ==", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "5289cfce-09aa-4221-8e1f-9dd51f40bd44" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.29929.01", + "OSName/Linux", + "OSVersion/Linux.5.8.0.50.generic.56.20.04.1.Ubuntu.SMP.Mon.Apr.12.21.46.35.UTC.2021", + "Microsoft.Azure.Management.Avs.AvsClient/1.0.0.1" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://api-dogfood.resources.windows-int.net/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/js-dev-testing/providers/Microsoft.AVS/privateClouds/cloudLinker/cloudLinks/myLink/operationresults/61f509aa-e5f5-4b89-8403-edbff88882e6?api-version=2021-06-01" + ], + "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/js-dev-testing/providers/Microsoft.AVS/privateClouds/cloudLinker/cloudLinks/myLink/operationstatuses/61f509aa-e5f5-4b89-8403-edbff88882e6?api-version=2021-06-01" + ], + "x-ms-request-id": [ + "4afe1f5e-654f-4fe6-a128-9988140e1433" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-correlation-request-id": [ + "d0fc5883-a030-4133-b81b-26b02504bf1b" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20210511T153505Z:d0fc5883-a030-4133-b81b-26b02504bf1b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-MSEdge-Ref": [ + "Ref A: 20DCFAD27E234BD691ABC358FDC95E57 Ref B: ATAEDGE0907 Ref C: 2021-05-11T15:35:04Z" + ], + "Date": [ + "Tue, 11 May 2021 15:35:05 GMT" + ], + "Content-Length": [ + "440" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\n \"id\": \"/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/js-dev-testing/providers/Microsoft.AVS/privateClouds/cloudLinker/cloudLinks/myLink\",\n \"name\": \"myLink\",\n \"properties\": {\n \"linkedCloud\": \"/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/mock-avs-fct-dogfood-conveyor-centralus/providers/Microsoft.AVS/privateClouds/fct-mock-centralus-45\",\n \"status\": \"Deleting\"\n },\n \"type\": \"Microsoft.AVS/privateClouds/cloudLinks\"\n}", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/js-dev-testing/providers/Microsoft.AVS/privateClouds/cloudLinker/cloudLinks/myLink/operationstatuses/61f509aa-e5f5-4b89-8403-edbff88882e6?api-version=2021-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmE3NWU3OWItZGQ5NS00MDI1LTlkYmYtM2E3YWU4ZGZmMmI1L3Jlc291cmNlR3JvdXBzL2pzLWRldi10ZXN0aW5nL3Byb3ZpZGVycy9NaWNyb3NvZnQuQVZTL3ByaXZhdGVDbG91ZHMvY2xvdWRMaW5rZXIvY2xvdWRMaW5rcy9teUxpbmsvb3BlcmF0aW9uc3RhdHVzZXMvNjFmNTA5YWEtZTVmNS00Yjg5LTg0MDMtZWRiZmY4ODg4MmU2P2FwaS12ZXJzaW9uPTIwMjEtMDYtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.29929.01", + "OSName/Linux", + "OSVersion/Linux.5.8.0.50.generic.56.20.04.1.Ubuntu.SMP.Mon.Apr.12.21.46.35.UTC.2021", + "Microsoft.Azure.Management.Avs.AvsClient/1.0.0.1" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "10" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14996" + ], + "x-ms-request-id": [ + "0b6e1d25-dd2f-438f-91f9-6ed35a2571e4" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-correlation-request-id": [ + "4e921a37-c3e2-4c6b-b784-bf4b41740623" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20210511T153515Z:4e921a37-c3e2-4c6b-b784-bf4b41740623" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-MSEdge-Ref": [ + "Ref A: 540B043655624229A801E5F0086084D5 Ref B: ATAEDGE0907 Ref C: 2021-05-11T15:35:15Z" + ], + "Date": [ + "Tue, 11 May 2021 15:35:15 GMT" + ], + "Content-Length": [ + "347" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\n \"id\": \"/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/js-dev-testing/providers/Microsoft.AVS/privateClouds/cloudLinker/cloudLinks/myLink/operationstatuses/61f509aa-e5f5-4b89-8403-edbff88882e6\",\n \"name\": \"61f509aa-e5f5-4b89-8403-edbff88882e6\",\n \"percentComplete\": 0,\n \"startTime\": \"2021-05-11T11:35:04.852095-04:00\",\n \"status\": \"Building\"\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/js-dev-testing/providers/Microsoft.AVS/privateClouds/cloudLinker/cloudLinks/myLink/operationstatuses/61f509aa-e5f5-4b89-8403-edbff88882e6?api-version=2021-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmE3NWU3OWItZGQ5NS00MDI1LTlkYmYtM2E3YWU4ZGZmMmI1L3Jlc291cmNlR3JvdXBzL2pzLWRldi10ZXN0aW5nL3Byb3ZpZGVycy9NaWNyb3NvZnQuQVZTL3ByaXZhdGVDbG91ZHMvY2xvdWRMaW5rZXIvY2xvdWRMaW5rcy9teUxpbmsvb3BlcmF0aW9uc3RhdHVzZXMvNjFmNTA5YWEtZTVmNS00Yjg5LTg0MDMtZWRiZmY4ODg4MmU2P2FwaS12ZXJzaW9uPTIwMjEtMDYtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.29929.01", + "OSName/Linux", + "OSVersion/Linux.5.8.0.50.generic.56.20.04.1.Ubuntu.SMP.Mon.Apr.12.21.46.35.UTC.2021", + "Microsoft.Azure.Management.Avs.AvsClient/1.0.0.1" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "10" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14995" + ], + "x-ms-request-id": [ + "a4472cd6-916d-4b25-8ac4-0302d4e375a1" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-correlation-request-id": [ + "b8892908-c145-496c-8d22-14e1b7f8eab8" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20210511T153526Z:b8892908-c145-496c-8d22-14e1b7f8eab8" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-MSEdge-Ref": [ + "Ref A: 6FEE238F90144C168D0B41CAA72DB434 Ref B: ATAEDGE0907 Ref C: 2021-05-11T15:35:26Z" + ], + "Date": [ + "Tue, 11 May 2021 15:35:26 GMT" + ], + "Content-Length": [ + "347" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\n \"id\": \"/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/js-dev-testing/providers/Microsoft.AVS/privateClouds/cloudLinker/cloudLinks/myLink/operationstatuses/61f509aa-e5f5-4b89-8403-edbff88882e6\",\n \"name\": \"61f509aa-e5f5-4b89-8403-edbff88882e6\",\n \"percentComplete\": 0,\n \"startTime\": \"2021-05-11T11:35:04.852095-04:00\",\n \"status\": \"Building\"\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/js-dev-testing/providers/Microsoft.AVS/privateClouds/cloudLinker/cloudLinks/myLink/operationstatuses/61f509aa-e5f5-4b89-8403-edbff88882e6?api-version=2021-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmE3NWU3OWItZGQ5NS00MDI1LTlkYmYtM2E3YWU4ZGZmMmI1L3Jlc291cmNlR3JvdXBzL2pzLWRldi10ZXN0aW5nL3Byb3ZpZGVycy9NaWNyb3NvZnQuQVZTL3ByaXZhdGVDbG91ZHMvY2xvdWRMaW5rZXIvY2xvdWRMaW5rcy9teUxpbmsvb3BlcmF0aW9uc3RhdHVzZXMvNjFmNTA5YWEtZTVmNS00Yjg5LTg0MDMtZWRiZmY4ODg4MmU2P2FwaS12ZXJzaW9uPTIwMjEtMDYtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.29929.01", + "OSName/Linux", + "OSVersion/Linux.5.8.0.50.generic.56.20.04.1.Ubuntu.SMP.Mon.Apr.12.21.46.35.UTC.2021", + "Microsoft.Azure.Management.Avs.AvsClient/1.0.0.1" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "10" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14994" + ], + "x-ms-request-id": [ + "8fbb2857-da15-467f-bad1-ee212404f850" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-correlation-request-id": [ + "192ef048-9bcd-40f6-9067-d3160b21862b" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20210511T153536Z:192ef048-9bcd-40f6-9067-d3160b21862b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-MSEdge-Ref": [ + "Ref A: B52E127E69234DA6992C5702CDAE6A30 Ref B: ATAEDGE0907 Ref C: 2021-05-11T15:35:36Z" + ], + "Date": [ + "Tue, 11 May 2021 15:35:36 GMT" + ], + "Content-Length": [ + "347" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\n \"id\": \"/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/js-dev-testing/providers/Microsoft.AVS/privateClouds/cloudLinker/cloudLinks/myLink/operationstatuses/61f509aa-e5f5-4b89-8403-edbff88882e6\",\n \"name\": \"61f509aa-e5f5-4b89-8403-edbff88882e6\",\n \"percentComplete\": 0,\n \"startTime\": \"2021-05-11T11:35:04.852095-04:00\",\n \"status\": \"Building\"\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/js-dev-testing/providers/Microsoft.AVS/privateClouds/cloudLinker/cloudLinks/myLink/operationstatuses/61f509aa-e5f5-4b89-8403-edbff88882e6?api-version=2021-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmE3NWU3OWItZGQ5NS00MDI1LTlkYmYtM2E3YWU4ZGZmMmI1L3Jlc291cmNlR3JvdXBzL2pzLWRldi10ZXN0aW5nL3Byb3ZpZGVycy9NaWNyb3NvZnQuQVZTL3ByaXZhdGVDbG91ZHMvY2xvdWRMaW5rZXIvY2xvdWRMaW5rcy9teUxpbmsvb3BlcmF0aW9uc3RhdHVzZXMvNjFmNTA5YWEtZTVmNS00Yjg5LTg0MDMtZWRiZmY4ODg4MmU2P2FwaS12ZXJzaW9uPTIwMjEtMDYtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.29929.01", + "OSName/Linux", + "OSVersion/Linux.5.8.0.50.generic.56.20.04.1.Ubuntu.SMP.Mon.Apr.12.21.46.35.UTC.2021", + "Microsoft.Azure.Management.Avs.AvsClient/1.0.0.1" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "10" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14993" + ], + "x-ms-request-id": [ + "50f7b70e-9e42-40c3-b1d5-a0f9b23bef51" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-correlation-request-id": [ + "6ae6c6d3-8bc4-4979-ac3d-4af2f289035c" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20210511T153547Z:6ae6c6d3-8bc4-4979-ac3d-4af2f289035c" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-MSEdge-Ref": [ + "Ref A: C0165275D35D4097AEF64AD65742939B Ref B: ATAEDGE0907 Ref C: 2021-05-11T15:35:46Z" + ], + "Date": [ + "Tue, 11 May 2021 15:35:46 GMT" + ], + "Content-Length": [ + "396" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\n \"endTime\": \"2021-05-11T11:35:33.8890726-04:00\",\n \"id\": \"/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/js-dev-testing/providers/Microsoft.AVS/privateClouds/cloudLinker/cloudLinks/myLink/operationstatuses/61f509aa-e5f5-4b89-8403-edbff88882e6\",\n \"name\": \"61f509aa-e5f5-4b89-8403-edbff88882e6\",\n \"percentComplete\": 100,\n \"startTime\": \"2021-05-11T11:35:04.852095-04:00\",\n \"status\": \"Succeeded\"\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/js-dev-testing/providers/Microsoft.AVS/privateClouds/cloudLinker/cloudLinks/myLink/operationresults/61f509aa-e5f5-4b89-8403-edbff88882e6?api-version=2021-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmE3NWU3OWItZGQ5NS00MDI1LTlkYmYtM2E3YWU4ZGZmMmI1L3Jlc291cmNlR3JvdXBzL2pzLWRldi10ZXN0aW5nL3Byb3ZpZGVycy9NaWNyb3NvZnQuQVZTL3ByaXZhdGVDbG91ZHMvY2xvdWRMaW5rZXIvY2xvdWRMaW5rcy9teUxpbmsvb3BlcmF0aW9ucmVzdWx0cy82MWY1MDlhYS1lNWY1LTRiODktODQwMy1lZGJmZjg4ODgyZTY/YXBpLXZlcnNpb249MjAyMS0wNi0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.29929.01", + "OSName/Linux", + "OSVersion/Linux.5.8.0.50.generic.56.20.04.1.Ubuntu.SMP.Mon.Apr.12.21.46.35.UTC.2021", + "Microsoft.Azure.Management.Avs.AvsClient/1.0.0.1" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14992" + ], + "x-ms-request-id": [ + "2abb79a0-062c-4ab7-87d6-2ff9799daec1" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-correlation-request-id": [ + "80061f67-cfe9-4863-be1a-80f254b179e6" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20210511T153547Z:80061f67-cfe9-4863-be1a-80f254b179e6" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-MSEdge-Ref": [ + "Ref A: E54A8D77EBC3456CA8398A2DB944BA0E Ref B: ATAEDGE0907 Ref C: 2021-05-11T15:35:47Z" + ], + "Date": [ + "Tue, 11 May 2021 15:35:47 GMT" + ], + "Content-Length": [ + "4" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "null", + "StatusCode": 200 + } + ], + "Names": {}, + "Variables": { + "SubscriptionId": "ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5" + } +} \ No newline at end of file diff --git a/sdk/avs/Microsoft.Azure.Management.Avs/tests/SessionRecords/DatastoresTests/DatastoresAll.json b/sdk/avs/Microsoft.Azure.Management.Avs/tests/SessionRecords/DatastoresTests/DatastoresAll.json new file mode 100644 index 000000000000..8cde89265fa8 --- /dev/null +++ b/sdk/avs/Microsoft.Azure.Management.Avs/tests/SessionRecords/DatastoresTests/DatastoresAll.json @@ -0,0 +1,539 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/mock-avs-fct-dogfood-conveyor-eastus/providers/Microsoft.AVS/privateClouds/fct-mock-eastus-15/clusters/Cluster-1/datastores/fct-mock-datastore-1?api-version=2021-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmE3NWU3OWItZGQ5NS00MDI1LTlkYmYtM2E3YWU4ZGZmMmI1L3Jlc291cmNlR3JvdXBzL21vY2stYXZzLWZjdC1kb2dmb29kLWNvbnZleW9yLWVhc3R1cy9wcm92aWRlcnMvTWljcm9zb2Z0LkFWUy9wcml2YXRlQ2xvdWRzL2ZjdC1tb2NrLWVhc3R1cy0xNS9jbHVzdGVycy9DbHVzdGVyLTEvZGF0YXN0b3Jlcy9mY3QtbW9jay1kYXRhc3RvcmUtMT9hcGktdmVyc2lvbj0yMDIxLTA2LTAx", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"diskPoolVolume\": {\r\n \"targetId\": \"/subscriptions/11111111-1111-1111-1111-111111111111/resourceGroups/resourceGroupName/providers/Microsoft.StoragePool/diskPools/diskPoolName/iscsiTargets/targetName\",\r\n \"lunName\": \"mock-lun-name\",\r\n \"mountOption\": \"MOUNT\"\r\n }\r\n }\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "2b8bf6f2-89b7-444a-9e69-1a1ec067dec1" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.29916.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.Avs.AvsClient/1.0.0.1" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "311" + ] + }, + "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/mock-avs-fct-dogfood-conveyor-eastus/providers/Microsoft.AVS/privateClouds/fct-mock-eastus-15/clusters/Cluster-1/datastores/fct-mock-datastore-1/operationstatuses/45220724-578f-4969-9065-f148f22d9908?api-version=2021-06-01" + ], + "x-ms-request-id": [ + "176ccdb6-3ce4-4355-ada9-75f3dd74e72d" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-correlation-request-id": [ + "590dc39f-472f-408e-99f0-73da66e1dd61" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20210512T021753Z:590dc39f-472f-408e-99f0-73da66e1dd61" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Cache": [ + "CONFIG_NOCACHE" + ], + "X-MSEdge-Ref": [ + "Ref A: C7A0786403C140B4975E8D99E6CA0D37 Ref B: WSTEDGE1107 Ref C: 2021-05-12T02:17:51Z" + ], + "Date": [ + "Wed, 12 May 2021 02:17:52 GMT" + ], + "Content-Length": [ + "596" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/mock-avs-fct-dogfood-conveyor-eastus/providers/Microsoft.AVS/privateClouds/fct-mock-eastus-15/clusters/Cluster-1/datastores/fct-mock-datastore-1\",\r\n \"name\": \"fct-mock-datastore-1\",\r\n \"properties\": {\r\n \"diskPoolVolume\": {\r\n \"lunName\": \"mock-lun-name\",\r\n \"mountOption\": \"Mount\",\r\n \"targetId\": \"/subscriptions/11111111-1111-1111-1111-111111111111/resourceGroups/resourceGroupName/providers/Microsoft.StoragePool/diskPools/diskPoolName/iscsiTargets/targetName\"\r\n },\r\n \"provisioningState\": \"Pending\"\r\n },\r\n \"type\": \"Microsoft.AVS/privateClouds/clusters/datastores\"\r\n}", + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/mock-avs-fct-dogfood-conveyor-eastus/providers/Microsoft.AVS/privateClouds/fct-mock-eastus-15/clusters/Cluster-1/datastores/fct-mock-datastore-1/operationstatuses/45220724-578f-4969-9065-f148f22d9908?api-version=2021-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmE3NWU3OWItZGQ5NS00MDI1LTlkYmYtM2E3YWU4ZGZmMmI1L3Jlc291cmNlR3JvdXBzL21vY2stYXZzLWZjdC1kb2dmb29kLWNvbnZleW9yLWVhc3R1cy9wcm92aWRlcnMvTWljcm9zb2Z0LkFWUy9wcml2YXRlQ2xvdWRzL2ZjdC1tb2NrLWVhc3R1cy0xNS9jbHVzdGVycy9DbHVzdGVyLTEvZGF0YXN0b3Jlcy9mY3QtbW9jay1kYXRhc3RvcmUtMS9vcGVyYXRpb25zdGF0dXNlcy80NTIyMDcyNC01NzhmLTQ5NjktOTA2NS1mMTQ4ZjIyZDk5MDg/YXBpLXZlcnNpb249MjAyMS0wNi0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.29916.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.Avs.AvsClient/1.0.0.1" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "10" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14994" + ], + "x-ms-request-id": [ + "56a92480-fe0a-456b-8eb7-cebc0068460a" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-correlation-request-id": [ + "61663ad8-6475-4dde-84c0-6a7568b54018" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20210512T021803Z:61663ad8-6475-4dde-84c0-6a7568b54018" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Cache": [ + "CONFIG_NOCACHE" + ], + "X-MSEdge-Ref": [ + "Ref A: 77273B3E3E654A168D78B6B866CDA83E Ref B: WSTEDGE1107 Ref C: 2021-05-12T02:18:03Z" + ], + "Date": [ + "Wed, 12 May 2021 02:18:02 GMT" + ], + "Content-Length": [ + "1070" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"endTime\": \"2021-05-11T19:17:53.9634639-07:00\",\r\n \"id\": \"/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/mock-avs-fct-dogfood-conveyor-eastus/providers/Microsoft.AVS/privateClouds/fct-mock-eastus-15/clusters/Cluster-1/datastores/fct-mock-datastore-1/operationstatuses/45220724-578f-4969-9065-f148f22d9908\",\r\n \"name\": \"45220724-578f-4969-9065-f148f22d9908\",\r\n \"percentComplete\": 100,\r\n \"properties\": {\r\n \"id\": \"/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/mock-avs-fct-dogfood-conveyor-eastus/providers/Microsoft.AVS/privateClouds/fct-mock-eastus-15/clusters/Cluster-1/datastores/fct-mock-datastore-1\",\r\n \"name\": \"fct-mock-datastore-1\",\r\n \"properties\": {\r\n \"diskPoolVolume\": {\r\n \"lunName\": \"mock-lun-name\",\r\n \"mountOption\": \"Mount\",\r\n \"targetId\": \"/subscriptions/11111111-1111-1111-1111-111111111111/resourceGroups/resourceGroupName/providers/Microsoft.StoragePool/diskPools/diskPoolName/iscsiTargets/targetName\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"type\": \"Microsoft.AVS/privateClouds/clusters/datastores\"\r\n },\r\n \"startTime\": \"2021-05-11T19:17:52.5724487-07:00\",\r\n \"status\": \"Succeeded\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/mock-avs-fct-dogfood-conveyor-eastus/providers/Microsoft.AVS/privateClouds/fct-mock-eastus-15/clusters/Cluster-1/datastores/fct-mock-datastore-1?api-version=2021-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmE3NWU3OWItZGQ5NS00MDI1LTlkYmYtM2E3YWU4ZGZmMmI1L3Jlc291cmNlR3JvdXBzL21vY2stYXZzLWZjdC1kb2dmb29kLWNvbnZleW9yLWVhc3R1cy9wcm92aWRlcnMvTWljcm9zb2Z0LkFWUy9wcml2YXRlQ2xvdWRzL2ZjdC1tb2NrLWVhc3R1cy0xNS9jbHVzdGVycy9DbHVzdGVyLTEvZGF0YXN0b3Jlcy9mY3QtbW9jay1kYXRhc3RvcmUtMT9hcGktdmVyc2lvbj0yMDIxLTA2LTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.29916.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.Avs.AvsClient/1.0.0.1" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14993" + ], + "x-ms-request-id": [ + "445bba64-2f4a-4f8c-ab1b-0191dce9880b" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-correlation-request-id": [ + "cc8b4ff9-1ca7-4f43-8b11-364ce4b568f8" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20210512T021803Z:cc8b4ff9-1ca7-4f43-8b11-364ce4b568f8" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Cache": [ + "CONFIG_NOCACHE" + ], + "X-MSEdge-Ref": [ + "Ref A: B32428D8AE334D8D9756823F39CDD903 Ref B: WSTEDGE1107 Ref C: 2021-05-12T02:18:03Z" + ], + "Date": [ + "Wed, 12 May 2021 02:18:03 GMT" + ], + "Content-Length": [ + "598" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/mock-avs-fct-dogfood-conveyor-eastus/providers/Microsoft.AVS/privateClouds/fct-mock-eastus-15/clusters/Cluster-1/datastores/fct-mock-datastore-1\",\r\n \"name\": \"fct-mock-datastore-1\",\r\n \"properties\": {\r\n \"diskPoolVolume\": {\r\n \"lunName\": \"mock-lun-name\",\r\n \"mountOption\": \"Mount\",\r\n \"targetId\": \"/subscriptions/11111111-1111-1111-1111-111111111111/resourceGroups/resourceGroupName/providers/Microsoft.StoragePool/diskPools/diskPoolName/iscsiTargets/targetName\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"type\": \"Microsoft.AVS/privateClouds/clusters/datastores\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/mock-avs-fct-dogfood-conveyor-eastus/providers/Microsoft.AVS/privateClouds/fct-mock-eastus-15/clusters/Cluster-1/datastores/fct-mock-datastore-1?api-version=2021-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmE3NWU3OWItZGQ5NS00MDI1LTlkYmYtM2E3YWU4ZGZmMmI1L3Jlc291cmNlR3JvdXBzL21vY2stYXZzLWZjdC1kb2dmb29kLWNvbnZleW9yLWVhc3R1cy9wcm92aWRlcnMvTWljcm9zb2Z0LkFWUy9wcml2YXRlQ2xvdWRzL2ZjdC1tb2NrLWVhc3R1cy0xNS9jbHVzdGVycy9DbHVzdGVyLTEvZGF0YXN0b3Jlcy9mY3QtbW9jay1kYXRhc3RvcmUtMT9hcGktdmVyc2lvbj0yMDIxLTA2LTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "3996da8f-e8d1-4bba-81c8-bf9a644c5c64" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.29916.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.Avs.AvsClient/1.0.0.1" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14991" + ], + "x-ms-request-id": [ + "8f7bfa92-747c-4b58-9c74-910207efa95c" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-correlation-request-id": [ + "f26eb66d-34f0-43c4-bee3-0974bbcfafdb" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20210512T021804Z:f26eb66d-34f0-43c4-bee3-0974bbcfafdb" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Cache": [ + "CONFIG_NOCACHE" + ], + "X-MSEdge-Ref": [ + "Ref A: 30B87CD401FE4590A491A70099B355B8 Ref B: WSTEDGE1107 Ref C: 2021-05-12T02:18:04Z" + ], + "Date": [ + "Wed, 12 May 2021 02:18:03 GMT" + ], + "Content-Length": [ + "598" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/mock-avs-fct-dogfood-conveyor-eastus/providers/Microsoft.AVS/privateClouds/fct-mock-eastus-15/clusters/Cluster-1/datastores/fct-mock-datastore-1\",\r\n \"name\": \"fct-mock-datastore-1\",\r\n \"properties\": {\r\n \"diskPoolVolume\": {\r\n \"lunName\": \"mock-lun-name\",\r\n \"mountOption\": \"Mount\",\r\n \"targetId\": \"/subscriptions/11111111-1111-1111-1111-111111111111/resourceGroups/resourceGroupName/providers/Microsoft.StoragePool/diskPools/diskPoolName/iscsiTargets/targetName\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"type\": \"Microsoft.AVS/privateClouds/clusters/datastores\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/mock-avs-fct-dogfood-conveyor-eastus/providers/Microsoft.AVS/privateClouds/fct-mock-eastus-15/clusters/Cluster-1/datastores?api-version=2021-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmE3NWU3OWItZGQ5NS00MDI1LTlkYmYtM2E3YWU4ZGZmMmI1L3Jlc291cmNlR3JvdXBzL21vY2stYXZzLWZjdC1kb2dmb29kLWNvbnZleW9yLWVhc3R1cy9wcm92aWRlcnMvTWljcm9zb2Z0LkFWUy9wcml2YXRlQ2xvdWRzL2ZjdC1tb2NrLWVhc3R1cy0xNS9jbHVzdGVycy9DbHVzdGVyLTEvZGF0YXN0b3Jlcz9hcGktdmVyc2lvbj0yMDIxLTA2LTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "ace9ef37-8a54-43f3-a5e1-21f10df77d00" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.29916.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.Avs.AvsClient/1.0.0.1" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14992" + ], + "x-ms-request-id": [ + "393d8031-c28c-4c37-b369-a5890f84999b" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-correlation-request-id": [ + "da62bbd8-f894-48ce-b73b-fc9c81695101" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20210512T021804Z:da62bbd8-f894-48ce-b73b-fc9c81695101" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Cache": [ + "CONFIG_NOCACHE" + ], + "X-MSEdge-Ref": [ + "Ref A: 1FC3A0B23813463DAB5C6141F12FD3D0 Ref B: WSTEDGE1107 Ref C: 2021-05-12T02:18:04Z" + ], + "Date": [ + "Wed, 12 May 2021 02:18:03 GMT" + ], + "Content-Length": [ + "2776" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/mock-avs-fct-dogfood-conveyor-eastus/providers/Microsoft.AVS/privateClouds/fct-mock-eastus-15/clusters/Cluster-1/datastores/DS11\",\r\n \"name\": \"DS11\",\r\n \"properties\": {\r\n \"netAppVolume\": {\r\n \"id\": \"/subscriptions/11111111-1111-1111-1111-111111111111/resourceGroups/resourceGroupName/providers/Microsoft.NetApp/netAppAccounts/netAppAccountName/capacityPools/capacityPoolName/volumes/volumeName\"\r\n },\r\n \"provisioningState\": \"Updating\"\r\n },\r\n \"type\": \"Microsoft.AVS/privateClouds/clusters/datastores\"\r\n },\r\n {\r\n \"id\": \"/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/mock-avs-fct-dogfood-conveyor-eastus/providers/Microsoft.AVS/privateClouds/fct-mock-eastus-15/clusters/Cluster-1/datastores/DS12\",\r\n \"name\": \"DS12\",\r\n \"properties\": {\r\n \"netAppVolume\": {\r\n \"id\": \"/subscriptions/11111111-1111-1111-1111-111111111111/resourceGroups/resourceGroupName/providers/Microsoft.NetApp/netAppAccounts/netAppAccountName/capacityPools/capacityPoolName/volumes/volumeName\"\r\n },\r\n \"provisioningState\": \"Updating\"\r\n },\r\n \"type\": \"Microsoft.AVS/privateClouds/clusters/datastores\"\r\n },\r\n {\r\n \"id\": \"/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/mock-avs-fct-dogfood-conveyor-eastus/providers/Microsoft.AVS/privateClouds/fct-mock-eastus-15/clusters/Cluster-1/datastores/DS13\",\r\n \"name\": \"DS13\",\r\n \"properties\": {\r\n \"netAppVolume\": {\r\n \"id\": \"/subscriptions/11111111-1111-1111-1111-111111111111/resourceGroups/resourceGroupName/providers/Microsoft.NetApp/netAppAccounts/netAppAccountName/capacityPools/capacityPoolName/volumes/volumeName\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"type\": \"Microsoft.AVS/privateClouds/clusters/datastores\"\r\n },\r\n {\r\n \"id\": \"/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/mock-avs-fct-dogfood-conveyor-eastus/providers/Microsoft.AVS/privateClouds/fct-mock-eastus-15/clusters/Cluster-1/datastores/DS14\",\r\n \"name\": \"DS14\",\r\n \"properties\": {\r\n \"netAppVolume\": {\r\n \"id\": \"/subscriptions/11111111-1111-1111-1111-111111111111/resourceGroups/resourceGroupName/providers/Microsoft.NetApp/netAppAccounts/netAppAccountName/capacityPools/capacityPoolName/volumes/volumeName\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"type\": \"Microsoft.AVS/privateClouds/clusters/datastores\"\r\n },\r\n {\r\n \"id\": \"/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/mock-avs-fct-dogfood-conveyor-eastus/providers/Microsoft.AVS/privateClouds/fct-mock-eastus-15/clusters/Cluster-1/datastores/fct-mock-datastore-1\",\r\n \"name\": \"fct-mock-datastore-1\",\r\n \"properties\": {\r\n \"diskPoolVolume\": {\r\n \"lunName\": \"mock-lun-name\",\r\n \"mountOption\": \"Mount\",\r\n \"targetId\": \"/subscriptions/11111111-1111-1111-1111-111111111111/resourceGroups/resourceGroupName/providers/Microsoft.StoragePool/diskPools/diskPoolName/iscsiTargets/targetName\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"type\": \"Microsoft.AVS/privateClouds/clusters/datastores\"\r\n }\r\n ]\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/mock-avs-fct-dogfood-conveyor-eastus/providers/Microsoft.AVS/privateClouds/fct-mock-eastus-15/clusters/Cluster-1/datastores/fct-mock-datastore-1?api-version=2021-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmE3NWU3OWItZGQ5NS00MDI1LTlkYmYtM2E3YWU4ZGZmMmI1L3Jlc291cmNlR3JvdXBzL21vY2stYXZzLWZjdC1kb2dmb29kLWNvbnZleW9yLWVhc3R1cy9wcm92aWRlcnMvTWljcm9zb2Z0LkFWUy9wcml2YXRlQ2xvdWRzL2ZjdC1tb2NrLWVhc3R1cy0xNS9jbHVzdGVycy9DbHVzdGVyLTEvZGF0YXN0b3Jlcy9mY3QtbW9jay1kYXRhc3RvcmUtMT9hcGktdmVyc2lvbj0yMDIxLTA2LTAx", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "18ca85f1-267b-4cb0-adcf-618b1ef32a68" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.29916.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.Avs.AvsClient/1.0.0.1" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://api-dogfood.resources.windows-int.net/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/mock-avs-fct-dogfood-conveyor-eastus/providers/Microsoft.AVS/privateClouds/fct-mock-eastus-15/clusters/Cluster-1/datastores/fct-mock-datastore-1/operationresults/8ecfc59f-3112-4d77-be0e-6efd5a8d537f?api-version=2021-06-01" + ], + "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/mock-avs-fct-dogfood-conveyor-eastus/providers/Microsoft.AVS/privateClouds/fct-mock-eastus-15/clusters/Cluster-1/datastores/fct-mock-datastore-1/operationstatuses/8ecfc59f-3112-4d77-be0e-6efd5a8d537f?api-version=2021-06-01" + ], + "x-ms-request-id": [ + "8e58c53b-3154-431f-833c-bbe71046a256" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-correlation-request-id": [ + "b1205fb4-43ed-4020-8be8-d7246996f7c8" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20210512T021805Z:b1205fb4-43ed-4020-8be8-d7246996f7c8" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Cache": [ + "CONFIG_NOCACHE" + ], + "X-MSEdge-Ref": [ + "Ref A: D6B705EC9B7E4552B2B6FDC2105F8CDE Ref B: WSTEDGE1107 Ref C: 2021-05-12T02:18:04Z" + ], + "Date": [ + "Wed, 12 May 2021 02:18:04 GMT" + ], + "Content-Length": [ + "598" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/mock-avs-fct-dogfood-conveyor-eastus/providers/Microsoft.AVS/privateClouds/fct-mock-eastus-15/clusters/Cluster-1/datastores/fct-mock-datastore-1\",\r\n \"name\": \"fct-mock-datastore-1\",\r\n \"properties\": {\r\n \"diskPoolVolume\": {\r\n \"lunName\": \"mock-lun-name\",\r\n \"mountOption\": \"Mount\",\r\n \"targetId\": \"/subscriptions/11111111-1111-1111-1111-111111111111/resourceGroups/resourceGroupName/providers/Microsoft.StoragePool/diskPools/diskPoolName/iscsiTargets/targetName\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"type\": \"Microsoft.AVS/privateClouds/clusters/datastores\"\r\n}", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/mock-avs-fct-dogfood-conveyor-eastus/providers/Microsoft.AVS/privateClouds/fct-mock-eastus-15/clusters/Cluster-1/datastores/fct-mock-datastore-1/operationstatuses/8ecfc59f-3112-4d77-be0e-6efd5a8d537f?api-version=2021-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmE3NWU3OWItZGQ5NS00MDI1LTlkYmYtM2E3YWU4ZGZmMmI1L3Jlc291cmNlR3JvdXBzL21vY2stYXZzLWZjdC1kb2dmb29kLWNvbnZleW9yLWVhc3R1cy9wcm92aWRlcnMvTWljcm9zb2Z0LkFWUy9wcml2YXRlQ2xvdWRzL2ZjdC1tb2NrLWVhc3R1cy0xNS9jbHVzdGVycy9DbHVzdGVyLTEvZGF0YXN0b3Jlcy9mY3QtbW9jay1kYXRhc3RvcmUtMS9vcGVyYXRpb25zdGF0dXNlcy84ZWNmYzU5Zi0zMTEyLTRkNzctYmUwZS02ZWZkNWE4ZDUzN2Y/YXBpLXZlcnNpb249MjAyMS0wNi0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.29916.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.Avs.AvsClient/1.0.0.1" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "10" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14990" + ], + "x-ms-request-id": [ + "b8e8524e-047b-4bb9-be46-2ead051087e7" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-correlation-request-id": [ + "76813134-15ae-4f06-90b5-7b0536fd7d12" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20210512T021815Z:76813134-15ae-4f06-90b5-7b0536fd7d12" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Cache": [ + "CONFIG_NOCACHE" + ], + "X-MSEdge-Ref": [ + "Ref A: 7246FD3F5E8A48688BB9C3551C4CAE31 Ref B: WSTEDGE1107 Ref C: 2021-05-12T02:18:15Z" + ], + "Date": [ + "Wed, 12 May 2021 02:18:14 GMT" + ], + "Content-Length": [ + "458" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"endTime\": \"2021-05-11T19:18:05.7311045-07:00\",\r\n \"id\": \"/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/mock-avs-fct-dogfood-conveyor-eastus/providers/Microsoft.AVS/privateClouds/fct-mock-eastus-15/clusters/Cluster-1/datastores/fct-mock-datastore-1/operationstatuses/8ecfc59f-3112-4d77-be0e-6efd5a8d537f\",\r\n \"name\": \"8ecfc59f-3112-4d77-be0e-6efd5a8d537f\",\r\n \"percentComplete\": 100,\r\n \"startTime\": \"2021-05-11T19:18:04.8900448-07:00\",\r\n \"status\": \"Succeeded\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/mock-avs-fct-dogfood-conveyor-eastus/providers/Microsoft.AVS/privateClouds/fct-mock-eastus-15/clusters/Cluster-1/datastores/fct-mock-datastore-1/operationresults/8ecfc59f-3112-4d77-be0e-6efd5a8d537f?api-version=2021-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmE3NWU3OWItZGQ5NS00MDI1LTlkYmYtM2E3YWU4ZGZmMmI1L3Jlc291cmNlR3JvdXBzL21vY2stYXZzLWZjdC1kb2dmb29kLWNvbnZleW9yLWVhc3R1cy9wcm92aWRlcnMvTWljcm9zb2Z0LkFWUy9wcml2YXRlQ2xvdWRzL2ZjdC1tb2NrLWVhc3R1cy0xNS9jbHVzdGVycy9DbHVzdGVyLTEvZGF0YXN0b3Jlcy9mY3QtbW9jay1kYXRhc3RvcmUtMS9vcGVyYXRpb25yZXN1bHRzLzhlY2ZjNTlmLTMxMTItNGQ3Ny1iZTBlLTZlZmQ1YThkNTM3Zj9hcGktdmVyc2lvbj0yMDIxLTA2LTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.29916.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.Avs.AvsClient/1.0.0.1" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14989" + ], + "x-ms-request-id": [ + "3e3524f1-19ba-447d-aef2-d7bc76647e18" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-correlation-request-id": [ + "a7b2f754-3eae-4ace-826b-d353640c8776" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20210512T021815Z:a7b2f754-3eae-4ace-826b-d353640c8776" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Cache": [ + "CONFIG_NOCACHE" + ], + "X-MSEdge-Ref": [ + "Ref A: 59C02B2EF9284F46A9884B6F575290BE Ref B: WSTEDGE1107 Ref C: 2021-05-12T02:18:15Z" + ], + "Date": [ + "Wed, 12 May 2021 02:18:15 GMT" + ], + "Content-Length": [ + "4" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "null", + "StatusCode": 200 + } + ], + "Names": {}, + "Variables": { + "SubscriptionId": "ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5" + } +} \ No newline at end of file diff --git a/sdk/avs/Microsoft.Azure.Management.Avs/tests/SessionRecords/GlobalReachConnectionsTests/GlobalReachConnectionsAll.json b/sdk/avs/Microsoft.Azure.Management.Avs/tests/SessionRecords/GlobalReachConnectionsTests/GlobalReachConnectionsAll.json new file mode 100644 index 000000000000..86355cba80e7 --- /dev/null +++ b/sdk/avs/Microsoft.Azure.Management.Avs/tests/SessionRecords/GlobalReachConnectionsTests/GlobalReachConnectionsAll.json @@ -0,0 +1,278 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/js-dev-testing/providers/Microsoft.AVS/privateClouds/cloudLinker/globalReachConnections/myConn?api-version=2021-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmE3NWU3OWItZGQ5NS00MDI1LTlkYmYtM2E3YWU4ZGZmMmI1L3Jlc291cmNlR3JvdXBzL2pzLWRldi10ZXN0aW5nL3Byb3ZpZGVycy9NaWNyb3NvZnQuQVZTL3ByaXZhdGVDbG91ZHMvY2xvdWRMaW5rZXIvZ2xvYmFsUmVhY2hDb25uZWN0aW9ucy9teUNvbm4/YXBpLXZlcnNpb249MjAyMS0wNi0wMQ==", + "RequestMethod": "PUT", + "RequestBody": "{\n \"properties\": {\n \"authorizationKey\": \"01010101-0101-0101-0101-010101010101\",\n \"peerExpressRouteCircuit\": \"/subscriptions/12341234-1234-1234-1234-123412341234/resourceGroups/mygroup/providers/Microsoft.Network/expressRouteCircuits/mypeer\"\n }\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "a0eabec5-a085-4fb0-a842-f920bb47c36b" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.29929.01", + "OSName/Linux", + "OSVersion/Linux.5.8.0.50.generic.56.20.04.1.Ubuntu.SMP.Mon.Apr.12.21.46.35.UTC.2021", + "Microsoft.Azure.Management.Avs.AvsClient/1.0.0.1" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "253" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1199" + ], + "x-ms-request-id": [ + "a52d83b6-5a39-475a-81b0-ee7cdf6e16b5" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-correlation-request-id": [ + "df65829d-d50a-4e60-a905-67c24f67fc74" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20210511T153735Z:df65829d-d50a-4e60-a905-67c24f67fc74" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Cache": [ + "CONFIG_NOCACHE" + ], + "X-MSEdge-Ref": [ + "Ref A: FA0C6E81FEB54663A5AC3F8E0BD8779E Ref B: ATAEDGE1113 Ref C: 2021-05-11T15:37:32Z" + ], + "Date": [ + "Tue, 11 May 2021 15:37:34 GMT" + ], + "Content-Length": [ + "581" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\n \"id\": \"/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/js-dev-testing/providers/Microsoft.AVS/privateClouds/cloudLinker/globalReachConnections/myConn\",\n \"name\": \"myConn\",\n \"properties\": {\n \"addressPrefix\": \"172.16.3.16/29\",\n \"authorizationKey\": \"01010101-0101-0101-0101-010101010101\",\n \"circuitConnectionStatus\": \"Connected\",\n \"peerExpressRouteCircuit\": \"/subscriptions/12341234-1234-1234-1234-123412341234/resourceGroups/mygroup/providers/Microsoft.Network/expressRouteCircuits/mypeer\",\n \"provisioningState\": \"Succeeded\"\n },\n \"type\": \"Microsoft.AVS/privateClouds/globalReachConnections\"\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/js-dev-testing/providers/Microsoft.AVS/privateClouds/cloudLinker/globalReachConnections?api-version=2021-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmE3NWU3OWItZGQ5NS00MDI1LTlkYmYtM2E3YWU4ZGZmMmI1L3Jlc291cmNlR3JvdXBzL2pzLWRldi10ZXN0aW5nL3Byb3ZpZGVycy9NaWNyb3NvZnQuQVZTL3ByaXZhdGVDbG91ZHMvY2xvdWRMaW5rZXIvZ2xvYmFsUmVhY2hDb25uZWN0aW9ucz9hcGktdmVyc2lvbj0yMDIxLTA2LTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "42ecfafa-d7f3-49b5-bc30-00c805a75481" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.29929.01", + "OSName/Linux", + "OSVersion/Linux.5.8.0.50.generic.56.20.04.1.Ubuntu.SMP.Mon.Apr.12.21.46.35.UTC.2021", + "Microsoft.Azure.Management.Avs.AvsClient/1.0.0.1" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14999" + ], + "x-ms-request-id": [ + "be673d3a-3521-411c-b27f-bae620c902c6" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-correlation-request-id": [ + "2837bfc8-b166-4d7c-abf3-57903c1128c5" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20210511T153736Z:2837bfc8-b166-4d7c-abf3-57903c1128c5" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Cache": [ + "CONFIG_NOCACHE" + ], + "X-MSEdge-Ref": [ + "Ref A: 37AB71E6E8AC419A82781FF2C61289BF Ref B: ATAEDGE1113 Ref C: 2021-05-11T15:37:36Z" + ], + "Date": [ + "Tue, 11 May 2021 15:37:35 GMT" + ], + "Content-Length": [ + "593" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\n \"value\": [\n {\n \"id\": \"/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/js-dev-testing/providers/Microsoft.AVS/privateClouds/cloudLinker/globalReachConnections/myconn\",\n \"name\": \"myconn\",\n \"properties\": {\n \"addressPrefix\": \"172.16.3.16/29\",\n \"authorizationKey\": \"01010101-0101-0101-0101-010101010101\",\n \"circuitConnectionStatus\": \"Connected\",\n \"peerExpressRouteCircuit\": \"/subscriptions/12341234-1234-1234-1234-123412341234/resourceGroups/mygroup/providers/Microsoft.Network/expressRouteCircuits/mypeer\",\n \"provisioningState\": \"Succeeded\"\n },\n \"type\": \"Microsoft.AVS/privateClouds/globalReachConnections\"\n }\n ]\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/js-dev-testing/providers/Microsoft.AVS/privateClouds/cloudLinker/globalReachConnections/myConn?api-version=2021-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmE3NWU3OWItZGQ5NS00MDI1LTlkYmYtM2E3YWU4ZGZmMmI1L3Jlc291cmNlR3JvdXBzL2pzLWRldi10ZXN0aW5nL3Byb3ZpZGVycy9NaWNyb3NvZnQuQVZTL3ByaXZhdGVDbG91ZHMvY2xvdWRMaW5rZXIvZ2xvYmFsUmVhY2hDb25uZWN0aW9ucy9teUNvbm4/YXBpLXZlcnNpb249MjAyMS0wNi0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "d8491507-2cb4-4fc5-9234-b04c58424016" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.29929.01", + "OSName/Linux", + "OSVersion/Linux.5.8.0.50.generic.56.20.04.1.Ubuntu.SMP.Mon.Apr.12.21.46.35.UTC.2021", + "Microsoft.Azure.Management.Avs.AvsClient/1.0.0.1" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14998" + ], + "x-ms-request-id": [ + "82c3ca74-3e70-4602-8ba5-ced3e965af50" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-correlation-request-id": [ + "e462c275-6c26-4f35-ad43-b9867803ccef" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20210511T153736Z:e462c275-6c26-4f35-ad43-b9867803ccef" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Cache": [ + "CONFIG_NOCACHE" + ], + "X-MSEdge-Ref": [ + "Ref A: FB3BCC6E21384E008B64AD4CF73F2AB6 Ref B: ATAEDGE1113 Ref C: 2021-05-11T15:37:36Z" + ], + "Date": [ + "Tue, 11 May 2021 15:37:35 GMT" + ], + "Content-Length": [ + "581" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\n \"id\": \"/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/js-dev-testing/providers/Microsoft.AVS/privateClouds/cloudLinker/globalReachConnections/myConn\",\n \"name\": \"myConn\",\n \"properties\": {\n \"addressPrefix\": \"172.16.3.16/29\",\n \"authorizationKey\": \"01010101-0101-0101-0101-010101010101\",\n \"circuitConnectionStatus\": \"Connected\",\n \"peerExpressRouteCircuit\": \"/subscriptions/12341234-1234-1234-1234-123412341234/resourceGroups/mygroup/providers/Microsoft.Network/expressRouteCircuits/mypeer\",\n \"provisioningState\": \"Succeeded\"\n },\n \"type\": \"Microsoft.AVS/privateClouds/globalReachConnections\"\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/js-dev-testing/providers/Microsoft.AVS/privateClouds/cloudLinker/globalReachConnections/myConn?api-version=2021-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmE3NWU3OWItZGQ5NS00MDI1LTlkYmYtM2E3YWU4ZGZmMmI1L3Jlc291cmNlR3JvdXBzL2pzLWRldi10ZXN0aW5nL3Byb3ZpZGVycy9NaWNyb3NvZnQuQVZTL3ByaXZhdGVDbG91ZHMvY2xvdWRMaW5rZXIvZ2xvYmFsUmVhY2hDb25uZWN0aW9ucy9teUNvbm4/YXBpLXZlcnNpb249MjAyMS0wNi0wMQ==", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "73e6fda2-a332-4c95-8323-a4b5fbe767f3" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.29929.01", + "OSName/Linux", + "OSVersion/Linux.5.8.0.50.generic.56.20.04.1.Ubuntu.SMP.Mon.Apr.12.21.46.35.UTC.2021", + "Microsoft.Azure.Management.Avs.AvsClient/1.0.0.1" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-deletes": [ + "14999" + ], + "x-ms-request-id": [ + "ab9df696-49d8-490f-abb7-54c7dc7c29a6" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-correlation-request-id": [ + "f1364f1c-a0f9-4fab-92ff-c5e13f81c7d4" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20210511T153737Z:f1364f1c-a0f9-4fab-92ff-c5e13f81c7d4" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Cache": [ + "CONFIG_NOCACHE" + ], + "X-MSEdge-Ref": [ + "Ref A: F64F1F45288249DA8FF53A81C1735449 Ref B: ATAEDGE1113 Ref C: 2021-05-11T15:37:36Z" + ], + "Date": [ + "Tue, 11 May 2021 15:37:36 GMT" + ], + "Content-Type": [ + "text/html" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 200 + } + ], + "Names": {}, + "Variables": { + "SubscriptionId": "ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5" + } +} \ No newline at end of file diff --git a/sdk/avs/Microsoft.Azure.Management.Avs/tests/SessionRecords/ScriptingTests/ScriptCmdletsAll.json b/sdk/avs/Microsoft.Azure.Management.Avs/tests/SessionRecords/ScriptingTests/ScriptCmdletsAll.json new file mode 100644 index 000000000000..277c33596daf --- /dev/null +++ b/sdk/avs/Microsoft.Azure.Management.Avs/tests/SessionRecords/ScriptingTests/ScriptCmdletsAll.json @@ -0,0 +1,140 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/anullian-rg/providers/Microsoft.AVS/privateClouds/anullian-southcentralus-runcommand/scriptPackages/JSDR.Configuration%401.0.16/scriptCmdlets?api-version=2021-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmE3NWU3OWItZGQ5NS00MDI1LTlkYmYtM2E3YWU4ZGZmMmI1L3Jlc291cmNlR3JvdXBzL2FudWxsaWFuLXJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuQVZTL3ByaXZhdGVDbG91ZHMvYW51bGxpYW4tc291dGhjZW50cmFsdXMtcnVuY29tbWFuZC9zY3JpcHRQYWNrYWdlcy9KU0RSLkNvbmZpZ3VyYXRpb24lNDAxLjAuMTYvc2NyaXB0Q21kbGV0cz9hcGktdmVyc2lvbj0yMDIxLTA2LTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "2e168778-8660-4a7f-94c0-f1102cf39b0e" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.29719.03", + "OSName/Linux", + "OSVersion/Linux.5.4.72.microsoft.standard.WSL2.1.SMP.Wed.Oct.28.23.40.43.UTC.2020", + "Microsoft.Azure.Management.Avs.AvsClient/2.0.0.1" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14999" + ], + "x-ms-request-id": [ + "1e08a77c-bb99-4cbf-a0d9-8bbbbb9fab11" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-correlation-request-id": [ + "8e587cdd-9fd7-41e6-be68-6ca7205dc11b" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20210519T181511Z:8e587cdd-9fd7-41e6-be68-6ca7205dc11b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Cache": [ + "CONFIG_NOCACHE" + ], + "X-MSEdge-Ref": [ + "Ref A: 635E705634CF4675B2DDEB0A6144BEF8 Ref B: MIAEDGE1908 Ref C: 2021-05-19T18:15:11Z" + ], + "Date": [ + "Wed, 19 May 2021 18:15:11 GMT" + ], + "Content-Length": [ + "3144" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\n \"value\": [\n {\n \"id\": \"/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/anullian-rg/providers/Microsoft.AVS/privateClouds/anullian-southcentralus-runcommand/scriptPackages/JSDR.Configuration@1.0.16/scriptCmdlets/Invoke-PreflightJetDRInstall\",\n \"name\": \"Invoke-PreflightJetDRInstall\",\n \"properties\": {\n \"description\": \"Preflight commands to execute\",\n \"parameters\": [\n {\n \"description\": \"Cluster where the MSA will be deployed\",\n \"name\": \"Cluster\",\n \"optional\": \"Required\",\n \"type\": \"String\",\n \"visibility\": \"Visible\"\n },\n {\n \"description\": \"Protected Cluster\",\n \"name\": \"ProtectedCluster\",\n \"optional\": \"Required\",\n \"type\": \"String\",\n \"visibility\": \"Visible\"\n },\n {\n \"description\": \"Install\",\n \"name\": \"Mode\",\n \"optional\": \"Required\",\n \"type\": \"String\",\n \"visibility\": \"Visible\"\n },\n {\n \"description\": \"Credential\",\n \"name\": \"Credential\",\n \"optional\": \"Required\",\n \"type\": \"Credential\",\n \"visibility\": \"Hidden\"\n }\n ],\n \"timeout\": \"PT2H\"\n },\n \"type\": \"Microsoft.AVS/privateClouds/scriptPackages/scriptCmdlets\"\n },\n {\n \"id\": \"/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/anullian-rg/providers/Microsoft.AVS/privateClouds/anullian-southcentralus-runcommand/scriptPackages/JSDR.Configuration@1.0.16/scriptCmdlets/Invoke-PreflightJetDRSystemCheck\",\n \"name\": \"Invoke-PreflightJetDRSystemCheck\",\n \"properties\": {\n \"description\": \"Preflight commands to execute\",\n \"parameters\": [],\n \"timeout\": \"PT2H\"\n },\n \"type\": \"Microsoft.AVS/privateClouds/scriptPackages/scriptCmdlets\"\n },\n {\n \"id\": \"/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/anullian-rg/providers/Microsoft.AVS/privateClouds/anullian-southcentralus-runcommand/scriptPackages/JSDR.Configuration@1.0.16/scriptCmdlets/Invoke-PreflightJetDRUninstall\",\n \"name\": \"Invoke-PreflightJetDRUninstall\",\n \"properties\": {\n \"description\": \"This Cmdlet checks and displays current state of the system before uninstall of JetDR\",\n \"parameters\": [\n {\n \"description\": \"IP of MSA VM\",\n \"name\": \"MSIp\",\n \"optional\": \"Required\",\n \"type\": \"String\",\n \"visibility\": \"Visible\"\n },\n {\n \"description\": \"Credential\",\n \"name\": \"Credential\",\n \"optional\": \"Required\",\n \"type\": \"Credential\",\n \"visibility\": \"Hidden\"\n },\n {\n \"description\": \"Protected Cluster\",\n \"name\": \"ProtectedCluster\",\n \"optional\": \"Required\",\n \"type\": \"String\",\n \"visibility\": \"Visible\"\n }\n ],\n \"timeout\": \"PT2H\"\n },\n \"type\": \"Microsoft.AVS/privateClouds/scriptPackages/scriptCmdlets\"\n },\n {\n \"id\": \"/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/anullian-rg/providers/Microsoft.AVS/privateClouds/anullian-southcentralus-runcommand/scriptPackages/JSDR.Configuration@1.0.16/scriptCmdlets/Uninstall-JetDR\",\n \"name\": \"Uninstall-JetDR\",\n \"properties\": {\n \"description\": \"The top level Cmdlet creates a new user,assigns elevated privilleges to the user, unconfigures cluster,unregisters vCenter from the JetDr MSA,removes the user.\",\n \"parameters\": [\n {\n \"description\": \"IP of the MSA to be deployed\",\n \"name\": \"MSIp\",\n \"optional\": \"Required\",\n \"type\": \"String\",\n \"visibility\": \"Visible\"\n },\n {\n \"description\": \"Protected Cluster\",\n \"name\": \"ProtectedCluster\",\n \"optional\": \"Required\",\n \"type\": \"String\",\n \"visibility\": \"Visible\"\n },\n {\n \"description\": \"Credential of root user of MSA\",\n \"name\": \"Credential\",\n \"optional\": \"Required\",\n \"type\": \"Credential\",\n \"visibility\": \"Hidden\"\n }\n ],\n \"timeout\": \"PT2H\"\n },\n \"type\": \"Microsoft.AVS/privateClouds/scriptPackages/scriptCmdlets\"\n }\n ]\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/anullian-rg/providers/Microsoft.AVS/privateClouds/anullian-southcentralus-runcommand/scriptPackages/JSDR.Configuration%401.0.16/scriptCmdlets/invoke-preflightjetdrsystemcheck?api-version=2021-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmE3NWU3OWItZGQ5NS00MDI1LTlkYmYtM2E3YWU4ZGZmMmI1L3Jlc291cmNlR3JvdXBzL2FudWxsaWFuLXJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuQVZTL3ByaXZhdGVDbG91ZHMvYW51bGxpYW4tc291dGhjZW50cmFsdXMtcnVuY29tbWFuZC9zY3JpcHRQYWNrYWdlcy9KU0RSLkNvbmZpZ3VyYXRpb24lNDAxLjAuMTYvc2NyaXB0Q21kbGV0cy9pbnZva2UtcHJlZmxpZ2h0amV0ZHJzeXN0ZW1jaGVjaz9hcGktdmVyc2lvbj0yMDIxLTA2LTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "b459666e-044f-47ac-8e1f-1ee7544b8b3c" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.29719.03", + "OSName/Linux", + "OSVersion/Linux.5.4.72.microsoft.standard.WSL2.1.SMP.Wed.Oct.28.23.40.43.UTC.2020", + "Microsoft.Azure.Management.Avs.AvsClient/2.0.0.1" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14998" + ], + "x-ms-request-id": [ + "e65763c2-d276-4c7c-b134-ed694120bf90" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-correlation-request-id": [ + "82ed21aa-fe87-40b9-b75c-b078658e056a" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20210519T181512Z:82ed21aa-fe87-40b9-b75c-b078658e056a" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Cache": [ + "CONFIG_NOCACHE" + ], + "X-MSEdge-Ref": [ + "Ref A: 60C7C5F4C020492C9ED02649C4CD9685 Ref B: MIAEDGE1908 Ref C: 2021-05-19T18:15:12Z" + ], + "Date": [ + "Wed, 19 May 2021 18:15:11 GMT" + ], + "Content-Length": [ + "450" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\n \"id\": \"/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/anullian-rg/providers/Microsoft.AVS/privateClouds/anullian-southcentralus-runcommand/scriptPackages/JSDR.Configuration@1.0.16/scriptCmdlets/Invoke-PreflightJetDRSystemCheck\",\n \"name\": \"Invoke-PreflightJetDRSystemCheck\",\n \"properties\": {\n \"description\": \"Preflight commands to execute\",\n \"parameters\": [],\n \"timeout\": \"PT2H\"\n },\n \"type\": \"Microsoft.AVS/privateClouds/scriptPackages/scriptCmdlets\"\n}", + "StatusCode": 200 + } + ], + "Names": {}, + "Variables": { + "SubscriptionId": "ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5" + } +} \ No newline at end of file diff --git a/sdk/avs/Microsoft.Azure.Management.Avs/tests/SessionRecords/ScriptingTests/ScriptExecutionsAll.json b/sdk/avs/Microsoft.Azure.Management.Avs/tests/SessionRecords/ScriptingTests/ScriptExecutionsAll.json new file mode 100644 index 000000000000..5e688b37b2e1 --- /dev/null +++ b/sdk/avs/Microsoft.Azure.Management.Avs/tests/SessionRecords/ScriptingTests/ScriptExecutionsAll.json @@ -0,0 +1,2499 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/anullian-rg/providers/Microsoft.AVS/privateClouds/anullian-southcentralus-runcommand/scriptExecutions/scripting_execution8504?api-version=2021-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmE3NWU3OWItZGQ5NS00MDI1LTlkYmYtM2E3YWU4ZGZmMmI1L3Jlc291cmNlR3JvdXBzL2FudWxsaWFuLXJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuQVZTL3ByaXZhdGVDbG91ZHMvYW51bGxpYW4tc291dGhjZW50cmFsdXMtcnVuY29tbWFuZC9zY3JpcHRFeGVjdXRpb25zL3NjcmlwdGluZ19leGVjdXRpb244NTA0P2FwaS12ZXJzaW9uPTIwMjEtMDYtMDE=", + "RequestMethod": "PUT", + "RequestBody": "{\n \"properties\": {\n \"scriptCmdletId\": \"JSDR.Configuration/1.0.16/invoke-preflightjetdrsystemcheck\",\n \"timeout\": \"PT1H\"\n }\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "2c8731d9-7c6f-49aa-b116-61ec798d4a6c" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.29719.03", + "OSName/Linux", + "OSVersion/Linux.5.4.72.microsoft.standard.WSL2.1.SMP.Wed.Oct.28.23.40.43.UTC.2020", + "Microsoft.Azure.Management.Avs.AvsClient/2.0.0.1" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "131" + ] + }, + "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/anullian-rg/providers/Microsoft.AVS/privateClouds/anullian-southcentralus-runcommand/scriptExecutions/scripting_execution8504/operationstatuses/3ebcf8f9-c318-4282-bc85-94b295f99f12?api-version=2021-06-01" + ], + "x-ms-request-id": [ + "8aa3b7fc-e6b9-4bd0-905d-ffa3dd6c48ce" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-correlation-request-id": [ + "24ee1568-e4b0-4346-8f13-c2b81f7bb3b5" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20210514T161833Z:24ee1568-e4b0-4346-8f13-c2b81f7bb3b5" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Cache": [ + "CONFIG_NOCACHE" + ], + "X-MSEdge-Ref": [ + "Ref A: 8D4A3F59673A47738FD851C07769F2EC Ref B: BOG30EDGE0111 Ref C: 2021-05-14T16:18:31Z" + ], + "Date": [ + "Fri, 14 May 2021 16:18:32 GMT" + ], + "Content-Length": [ + "495" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\n \"id\": \"/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/anullian-rg/providers/Microsoft.AVS/privateClouds/anullian-southcentralus-runcommand/scriptExecutions/scripting_execution8504\",\n \"name\": \"scripting_execution8504\",\n \"properties\": {\n \"namedOutputs\": {},\n \"output\": [],\n \"provisioningState\": \"Pending\",\n \"scriptCmdletId\": \"JSDR.Configuration/1.0.16/invoke-preflightjetdrsystemcheck\",\n \"submittedAt\": \"2021-05-14 16:18:28Z\",\n \"timeout\": \"PT1H\"\n },\n \"type\": \"Microsoft.AVS/privateClouds/scriptExecutions\"\n}", + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/anullian-rg/providers/Microsoft.AVS/privateClouds/anullian-southcentralus-runcommand/scriptExecutions/scripting_execution8504/operationstatuses/3ebcf8f9-c318-4282-bc85-94b295f99f12?api-version=2021-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmE3NWU3OWItZGQ5NS00MDI1LTlkYmYtM2E3YWU4ZGZmMmI1L3Jlc291cmNlR3JvdXBzL2FudWxsaWFuLXJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuQVZTL3ByaXZhdGVDbG91ZHMvYW51bGxpYW4tc291dGhjZW50cmFsdXMtcnVuY29tbWFuZC9zY3JpcHRFeGVjdXRpb25zL3NjcmlwdGluZ19leGVjdXRpb244NTA0L29wZXJhdGlvbnN0YXR1c2VzLzNlYmNmOGY5LWMzMTgtNDI4Mi1iYzg1LTk0YjI5NWY5OWYxMj9hcGktdmVyc2lvbj0yMDIxLTA2LTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.29719.03", + "OSName/Linux", + "OSVersion/Linux.5.4.72.microsoft.standard.WSL2.1.SMP.Wed.Oct.28.23.40.43.UTC.2020", + "Microsoft.Azure.Management.Avs.AvsClient/2.0.0.1" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "10" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14999" + ], + "x-ms-request-id": [ + "fb483ad7-3ee5-4d5a-96fb-54341bdcfa53" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-correlation-request-id": [ + "3d65e4d9-9588-4ff7-bc07-4ced6d4bc8b7" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20210514T161843Z:3d65e4d9-9588-4ff7-bc07-4ced6d4bc8b7" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Cache": [ + "CONFIG_NOCACHE" + ], + "X-MSEdge-Ref": [ + "Ref A: E3F6F407343C45D4B757D48EC192690E Ref B: BOG30EDGE0111 Ref C: 2021-05-14T16:18:43Z" + ], + "Date": [ + "Fri, 14 May 2021 16:18:42 GMT" + ], + "Content-Length": [ + "389" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\n \"id\": \"/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/anullian-rg/providers/Microsoft.AVS/privateClouds/anullian-southcentralus-runcommand/scriptExecutions/scripting_execution8504/operationstatuses/3ebcf8f9-c318-4282-bc85-94b295f99f12\",\n \"name\": \"3ebcf8f9-c318-4282-bc85-94b295f99f12\",\n \"percentComplete\": 0,\n \"startTime\": \"2021-05-14T11:18:28.3125027-05:00\",\n \"status\": \"Pending\"\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/anullian-rg/providers/Microsoft.AVS/privateClouds/anullian-southcentralus-runcommand/scriptExecutions/scripting_execution8504/operationstatuses/3ebcf8f9-c318-4282-bc85-94b295f99f12?api-version=2021-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmE3NWU3OWItZGQ5NS00MDI1LTlkYmYtM2E3YWU4ZGZmMmI1L3Jlc291cmNlR3JvdXBzL2FudWxsaWFuLXJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuQVZTL3ByaXZhdGVDbG91ZHMvYW51bGxpYW4tc291dGhjZW50cmFsdXMtcnVuY29tbWFuZC9zY3JpcHRFeGVjdXRpb25zL3NjcmlwdGluZ19leGVjdXRpb244NTA0L29wZXJhdGlvbnN0YXR1c2VzLzNlYmNmOGY5LWMzMTgtNDI4Mi1iYzg1LTk0YjI5NWY5OWYxMj9hcGktdmVyc2lvbj0yMDIxLTA2LTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.29719.03", + "OSName/Linux", + "OSVersion/Linux.5.4.72.microsoft.standard.WSL2.1.SMP.Wed.Oct.28.23.40.43.UTC.2020", + "Microsoft.Azure.Management.Avs.AvsClient/2.0.0.1" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "10" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14998" + ], + "x-ms-request-id": [ + "8e8bda97-bc67-4813-833d-02ed80d1663c" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-correlation-request-id": [ + "7f8d597c-d2c8-425a-93df-7741b902b7cd" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20210514T161853Z:7f8d597c-d2c8-425a-93df-7741b902b7cd" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Cache": [ + "CONFIG_NOCACHE" + ], + "X-MSEdge-Ref": [ + "Ref A: DA3C4D4028D540178C918A881541BF69 Ref B: BOG30EDGE0111 Ref C: 2021-05-14T16:18:53Z" + ], + "Date": [ + "Fri, 14 May 2021 16:18:53 GMT" + ], + "Content-Length": [ + "389" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\n \"id\": \"/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/anullian-rg/providers/Microsoft.AVS/privateClouds/anullian-southcentralus-runcommand/scriptExecutions/scripting_execution8504/operationstatuses/3ebcf8f9-c318-4282-bc85-94b295f99f12\",\n \"name\": \"3ebcf8f9-c318-4282-bc85-94b295f99f12\",\n \"percentComplete\": 0,\n \"startTime\": \"2021-05-14T11:18:28.3125027-05:00\",\n \"status\": \"Pending\"\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/anullian-rg/providers/Microsoft.AVS/privateClouds/anullian-southcentralus-runcommand/scriptExecutions/scripting_execution8504/operationstatuses/3ebcf8f9-c318-4282-bc85-94b295f99f12?api-version=2021-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmE3NWU3OWItZGQ5NS00MDI1LTlkYmYtM2E3YWU4ZGZmMmI1L3Jlc291cmNlR3JvdXBzL2FudWxsaWFuLXJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuQVZTL3ByaXZhdGVDbG91ZHMvYW51bGxpYW4tc291dGhjZW50cmFsdXMtcnVuY29tbWFuZC9zY3JpcHRFeGVjdXRpb25zL3NjcmlwdGluZ19leGVjdXRpb244NTA0L29wZXJhdGlvbnN0YXR1c2VzLzNlYmNmOGY5LWMzMTgtNDI4Mi1iYzg1LTk0YjI5NWY5OWYxMj9hcGktdmVyc2lvbj0yMDIxLTA2LTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.29719.03", + "OSName/Linux", + "OSVersion/Linux.5.4.72.microsoft.standard.WSL2.1.SMP.Wed.Oct.28.23.40.43.UTC.2020", + "Microsoft.Azure.Management.Avs.AvsClient/2.0.0.1" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "10" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14997" + ], + "x-ms-request-id": [ + "efbb2244-f00c-48e4-b80d-f894b5b11b54" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-correlation-request-id": [ + "319f1706-9413-4df7-b8ff-30c291c7ca07" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20210514T161904Z:319f1706-9413-4df7-b8ff-30c291c7ca07" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Cache": [ + "CONFIG_NOCACHE" + ], + "X-MSEdge-Ref": [ + "Ref A: 222159D7527C44FD93F739CEE0682718 Ref B: BOG30EDGE0111 Ref C: 2021-05-14T16:19:04Z" + ], + "Date": [ + "Fri, 14 May 2021 16:19:03 GMT" + ], + "Content-Length": [ + "389" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\n \"id\": \"/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/anullian-rg/providers/Microsoft.AVS/privateClouds/anullian-southcentralus-runcommand/scriptExecutions/scripting_execution8504/operationstatuses/3ebcf8f9-c318-4282-bc85-94b295f99f12\",\n \"name\": \"3ebcf8f9-c318-4282-bc85-94b295f99f12\",\n \"percentComplete\": 0,\n \"startTime\": \"2021-05-14T11:18:28.3125027-05:00\",\n \"status\": \"Pending\"\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/anullian-rg/providers/Microsoft.AVS/privateClouds/anullian-southcentralus-runcommand/scriptExecutions/scripting_execution8504/operationstatuses/3ebcf8f9-c318-4282-bc85-94b295f99f12?api-version=2021-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmE3NWU3OWItZGQ5NS00MDI1LTlkYmYtM2E3YWU4ZGZmMmI1L3Jlc291cmNlR3JvdXBzL2FudWxsaWFuLXJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuQVZTL3ByaXZhdGVDbG91ZHMvYW51bGxpYW4tc291dGhjZW50cmFsdXMtcnVuY29tbWFuZC9zY3JpcHRFeGVjdXRpb25zL3NjcmlwdGluZ19leGVjdXRpb244NTA0L29wZXJhdGlvbnN0YXR1c2VzLzNlYmNmOGY5LWMzMTgtNDI4Mi1iYzg1LTk0YjI5NWY5OWYxMj9hcGktdmVyc2lvbj0yMDIxLTA2LTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.29719.03", + "OSName/Linux", + "OSVersion/Linux.5.4.72.microsoft.standard.WSL2.1.SMP.Wed.Oct.28.23.40.43.UTC.2020", + "Microsoft.Azure.Management.Avs.AvsClient/2.0.0.1" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "10" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14996" + ], + "x-ms-request-id": [ + "f6b791cb-e723-4434-8b1a-1c207b77290b" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-correlation-request-id": [ + "dd7046a3-f397-4fde-b916-e9693d8af6d4" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20210514T161914Z:dd7046a3-f397-4fde-b916-e9693d8af6d4" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Cache": [ + "CONFIG_NOCACHE" + ], + "X-MSEdge-Ref": [ + "Ref A: DACFB5D13DB74D098580F9F962CEFAC7 Ref B: BOG30EDGE0111 Ref C: 2021-05-14T16:19:14Z" + ], + "Date": [ + "Fri, 14 May 2021 16:19:13 GMT" + ], + "Content-Length": [ + "389" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\n \"id\": \"/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/anullian-rg/providers/Microsoft.AVS/privateClouds/anullian-southcentralus-runcommand/scriptExecutions/scripting_execution8504/operationstatuses/3ebcf8f9-c318-4282-bc85-94b295f99f12\",\n \"name\": \"3ebcf8f9-c318-4282-bc85-94b295f99f12\",\n \"percentComplete\": 0,\n \"startTime\": \"2021-05-14T11:18:28.3125027-05:00\",\n \"status\": \"Pending\"\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/anullian-rg/providers/Microsoft.AVS/privateClouds/anullian-southcentralus-runcommand/scriptExecutions/scripting_execution8504/operationstatuses/3ebcf8f9-c318-4282-bc85-94b295f99f12?api-version=2021-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmE3NWU3OWItZGQ5NS00MDI1LTlkYmYtM2E3YWU4ZGZmMmI1L3Jlc291cmNlR3JvdXBzL2FudWxsaWFuLXJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuQVZTL3ByaXZhdGVDbG91ZHMvYW51bGxpYW4tc291dGhjZW50cmFsdXMtcnVuY29tbWFuZC9zY3JpcHRFeGVjdXRpb25zL3NjcmlwdGluZ19leGVjdXRpb244NTA0L29wZXJhdGlvbnN0YXR1c2VzLzNlYmNmOGY5LWMzMTgtNDI4Mi1iYzg1LTk0YjI5NWY5OWYxMj9hcGktdmVyc2lvbj0yMDIxLTA2LTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.29719.03", + "OSName/Linux", + "OSVersion/Linux.5.4.72.microsoft.standard.WSL2.1.SMP.Wed.Oct.28.23.40.43.UTC.2020", + "Microsoft.Azure.Management.Avs.AvsClient/2.0.0.1" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "10" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14995" + ], + "x-ms-request-id": [ + "c1f21d66-039f-4ec2-aa5c-9bf383b37876" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-correlation-request-id": [ + "4434fbfd-6e4f-44ae-bae6-c510d3ec9ba8" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20210514T161924Z:4434fbfd-6e4f-44ae-bae6-c510d3ec9ba8" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Cache": [ + "CONFIG_NOCACHE" + ], + "X-MSEdge-Ref": [ + "Ref A: ABD9F798C37145BEBBBEA65F78479C9F Ref B: BOG30EDGE0111 Ref C: 2021-05-14T16:19:24Z" + ], + "Date": [ + "Fri, 14 May 2021 16:19:23 GMT" + ], + "Content-Length": [ + "389" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\n \"id\": \"/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/anullian-rg/providers/Microsoft.AVS/privateClouds/anullian-southcentralus-runcommand/scriptExecutions/scripting_execution8504/operationstatuses/3ebcf8f9-c318-4282-bc85-94b295f99f12\",\n \"name\": \"3ebcf8f9-c318-4282-bc85-94b295f99f12\",\n \"percentComplete\": 0,\n \"startTime\": \"2021-05-14T11:18:28.3125027-05:00\",\n \"status\": \"Pending\"\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/anullian-rg/providers/Microsoft.AVS/privateClouds/anullian-southcentralus-runcommand/scriptExecutions/scripting_execution8504/operationstatuses/3ebcf8f9-c318-4282-bc85-94b295f99f12?api-version=2021-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmE3NWU3OWItZGQ5NS00MDI1LTlkYmYtM2E3YWU4ZGZmMmI1L3Jlc291cmNlR3JvdXBzL2FudWxsaWFuLXJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuQVZTL3ByaXZhdGVDbG91ZHMvYW51bGxpYW4tc291dGhjZW50cmFsdXMtcnVuY29tbWFuZC9zY3JpcHRFeGVjdXRpb25zL3NjcmlwdGluZ19leGVjdXRpb244NTA0L29wZXJhdGlvbnN0YXR1c2VzLzNlYmNmOGY5LWMzMTgtNDI4Mi1iYzg1LTk0YjI5NWY5OWYxMj9hcGktdmVyc2lvbj0yMDIxLTA2LTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.29719.03", + "OSName/Linux", + "OSVersion/Linux.5.4.72.microsoft.standard.WSL2.1.SMP.Wed.Oct.28.23.40.43.UTC.2020", + "Microsoft.Azure.Management.Avs.AvsClient/2.0.0.1" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "10" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14994" + ], + "x-ms-request-id": [ + "78de8f63-2712-4b24-8776-5e7411dd677c" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-correlation-request-id": [ + "42927dbf-97ba-4970-82fc-953a977c04d8" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20210514T161934Z:42927dbf-97ba-4970-82fc-953a977c04d8" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Cache": [ + "CONFIG_NOCACHE" + ], + "X-MSEdge-Ref": [ + "Ref A: B98260A87667480BB951C3E1C24D397D Ref B: BOG30EDGE0111 Ref C: 2021-05-14T16:19:34Z" + ], + "Date": [ + "Fri, 14 May 2021 16:19:34 GMT" + ], + "Content-Length": [ + "389" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\n \"id\": \"/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/anullian-rg/providers/Microsoft.AVS/privateClouds/anullian-southcentralus-runcommand/scriptExecutions/scripting_execution8504/operationstatuses/3ebcf8f9-c318-4282-bc85-94b295f99f12\",\n \"name\": \"3ebcf8f9-c318-4282-bc85-94b295f99f12\",\n \"percentComplete\": 0,\n \"startTime\": \"2021-05-14T11:18:28.3125027-05:00\",\n \"status\": \"Pending\"\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/anullian-rg/providers/Microsoft.AVS/privateClouds/anullian-southcentralus-runcommand/scriptExecutions/scripting_execution8504/operationstatuses/3ebcf8f9-c318-4282-bc85-94b295f99f12?api-version=2021-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmE3NWU3OWItZGQ5NS00MDI1LTlkYmYtM2E3YWU4ZGZmMmI1L3Jlc291cmNlR3JvdXBzL2FudWxsaWFuLXJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuQVZTL3ByaXZhdGVDbG91ZHMvYW51bGxpYW4tc291dGhjZW50cmFsdXMtcnVuY29tbWFuZC9zY3JpcHRFeGVjdXRpb25zL3NjcmlwdGluZ19leGVjdXRpb244NTA0L29wZXJhdGlvbnN0YXR1c2VzLzNlYmNmOGY5LWMzMTgtNDI4Mi1iYzg1LTk0YjI5NWY5OWYxMj9hcGktdmVyc2lvbj0yMDIxLTA2LTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.29719.03", + "OSName/Linux", + "OSVersion/Linux.5.4.72.microsoft.standard.WSL2.1.SMP.Wed.Oct.28.23.40.43.UTC.2020", + "Microsoft.Azure.Management.Avs.AvsClient/2.0.0.1" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "10" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14993" + ], + "x-ms-request-id": [ + "1e97ad87-08a1-4ca1-9e6b-ece4d4948391" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-correlation-request-id": [ + "6d072625-c801-4d9f-8efb-f2ea75340407" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20210514T161945Z:6d072625-c801-4d9f-8efb-f2ea75340407" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Cache": [ + "CONFIG_NOCACHE" + ], + "X-MSEdge-Ref": [ + "Ref A: 2DBCBFF142534B8CAEE01C29D0F331AC Ref B: BOG30EDGE0111 Ref C: 2021-05-14T16:19:44Z" + ], + "Date": [ + "Fri, 14 May 2021 16:19:44 GMT" + ], + "Content-Length": [ + "389" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\n \"id\": \"/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/anullian-rg/providers/Microsoft.AVS/privateClouds/anullian-southcentralus-runcommand/scriptExecutions/scripting_execution8504/operationstatuses/3ebcf8f9-c318-4282-bc85-94b295f99f12\",\n \"name\": \"3ebcf8f9-c318-4282-bc85-94b295f99f12\",\n \"percentComplete\": 0,\n \"startTime\": \"2021-05-14T11:18:28.3125027-05:00\",\n \"status\": \"Pending\"\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/anullian-rg/providers/Microsoft.AVS/privateClouds/anullian-southcentralus-runcommand/scriptExecutions/scripting_execution8504/operationstatuses/3ebcf8f9-c318-4282-bc85-94b295f99f12?api-version=2021-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmE3NWU3OWItZGQ5NS00MDI1LTlkYmYtM2E3YWU4ZGZmMmI1L3Jlc291cmNlR3JvdXBzL2FudWxsaWFuLXJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuQVZTL3ByaXZhdGVDbG91ZHMvYW51bGxpYW4tc291dGhjZW50cmFsdXMtcnVuY29tbWFuZC9zY3JpcHRFeGVjdXRpb25zL3NjcmlwdGluZ19leGVjdXRpb244NTA0L29wZXJhdGlvbnN0YXR1c2VzLzNlYmNmOGY5LWMzMTgtNDI4Mi1iYzg1LTk0YjI5NWY5OWYxMj9hcGktdmVyc2lvbj0yMDIxLTA2LTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.29719.03", + "OSName/Linux", + "OSVersion/Linux.5.4.72.microsoft.standard.WSL2.1.SMP.Wed.Oct.28.23.40.43.UTC.2020", + "Microsoft.Azure.Management.Avs.AvsClient/2.0.0.1" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "10" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14992" + ], + "x-ms-request-id": [ + "d0d0ba81-8370-4359-a818-59e8788db8ab" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-correlation-request-id": [ + "2a76d7cd-ffc7-4f0c-a8e6-75535bd3ccde" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20210514T161955Z:2a76d7cd-ffc7-4f0c-a8e6-75535bd3ccde" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Cache": [ + "CONFIG_NOCACHE" + ], + "X-MSEdge-Ref": [ + "Ref A: 47B0AEA01ADF43FCA457B40FBCF7FC1D Ref B: BOG30EDGE0111 Ref C: 2021-05-14T16:19:55Z" + ], + "Date": [ + "Fri, 14 May 2021 16:19:54 GMT" + ], + "Content-Length": [ + "389" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\n \"id\": \"/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/anullian-rg/providers/Microsoft.AVS/privateClouds/anullian-southcentralus-runcommand/scriptExecutions/scripting_execution8504/operationstatuses/3ebcf8f9-c318-4282-bc85-94b295f99f12\",\n \"name\": \"3ebcf8f9-c318-4282-bc85-94b295f99f12\",\n \"percentComplete\": 0,\n \"startTime\": \"2021-05-14T11:18:28.3125027-05:00\",\n \"status\": \"Pending\"\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/anullian-rg/providers/Microsoft.AVS/privateClouds/anullian-southcentralus-runcommand/scriptExecutions/scripting_execution8504/operationstatuses/3ebcf8f9-c318-4282-bc85-94b295f99f12?api-version=2021-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmE3NWU3OWItZGQ5NS00MDI1LTlkYmYtM2E3YWU4ZGZmMmI1L3Jlc291cmNlR3JvdXBzL2FudWxsaWFuLXJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuQVZTL3ByaXZhdGVDbG91ZHMvYW51bGxpYW4tc291dGhjZW50cmFsdXMtcnVuY29tbWFuZC9zY3JpcHRFeGVjdXRpb25zL3NjcmlwdGluZ19leGVjdXRpb244NTA0L29wZXJhdGlvbnN0YXR1c2VzLzNlYmNmOGY5LWMzMTgtNDI4Mi1iYzg1LTk0YjI5NWY5OWYxMj9hcGktdmVyc2lvbj0yMDIxLTA2LTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.29719.03", + "OSName/Linux", + "OSVersion/Linux.5.4.72.microsoft.standard.WSL2.1.SMP.Wed.Oct.28.23.40.43.UTC.2020", + "Microsoft.Azure.Management.Avs.AvsClient/2.0.0.1" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "10" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14991" + ], + "x-ms-request-id": [ + "f7bcf2ba-f4e4-4cb2-aaab-88b4fa853fe4" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-correlation-request-id": [ + "f91a4939-0287-4bff-a872-9429e24b8813" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20210514T162005Z:f91a4939-0287-4bff-a872-9429e24b8813" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Cache": [ + "CONFIG_NOCACHE" + ], + "X-MSEdge-Ref": [ + "Ref A: 2D661705099E4F848DFF3B2AE3CC2FE0 Ref B: BOG30EDGE0111 Ref C: 2021-05-14T16:20:05Z" + ], + "Date": [ + "Fri, 14 May 2021 16:20:05 GMT" + ], + "Content-Length": [ + "389" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\n \"id\": \"/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/anullian-rg/providers/Microsoft.AVS/privateClouds/anullian-southcentralus-runcommand/scriptExecutions/scripting_execution8504/operationstatuses/3ebcf8f9-c318-4282-bc85-94b295f99f12\",\n \"name\": \"3ebcf8f9-c318-4282-bc85-94b295f99f12\",\n \"percentComplete\": 0,\n \"startTime\": \"2021-05-14T11:18:28.3125027-05:00\",\n \"status\": \"Pending\"\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/anullian-rg/providers/Microsoft.AVS/privateClouds/anullian-southcentralus-runcommand/scriptExecutions/scripting_execution8504/operationstatuses/3ebcf8f9-c318-4282-bc85-94b295f99f12?api-version=2021-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmE3NWU3OWItZGQ5NS00MDI1LTlkYmYtM2E3YWU4ZGZmMmI1L3Jlc291cmNlR3JvdXBzL2FudWxsaWFuLXJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuQVZTL3ByaXZhdGVDbG91ZHMvYW51bGxpYW4tc291dGhjZW50cmFsdXMtcnVuY29tbWFuZC9zY3JpcHRFeGVjdXRpb25zL3NjcmlwdGluZ19leGVjdXRpb244NTA0L29wZXJhdGlvbnN0YXR1c2VzLzNlYmNmOGY5LWMzMTgtNDI4Mi1iYzg1LTk0YjI5NWY5OWYxMj9hcGktdmVyc2lvbj0yMDIxLTA2LTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.29719.03", + "OSName/Linux", + "OSVersion/Linux.5.4.72.microsoft.standard.WSL2.1.SMP.Wed.Oct.28.23.40.43.UTC.2020", + "Microsoft.Azure.Management.Avs.AvsClient/2.0.0.1" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "10" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14990" + ], + "x-ms-request-id": [ + "60bf92ac-9e2d-44cc-bdf8-0099728fa370" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-correlation-request-id": [ + "4ad6ece0-66cd-4370-99eb-08988be3761c" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20210514T162016Z:4ad6ece0-66cd-4370-99eb-08988be3761c" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Cache": [ + "CONFIG_NOCACHE" + ], + "X-MSEdge-Ref": [ + "Ref A: 251FA2F9EC404FC79377D87DA1E24A4B Ref B: BOG30EDGE0111 Ref C: 2021-05-14T16:20:16Z" + ], + "Date": [ + "Fri, 14 May 2021 16:20:15 GMT" + ], + "Content-Length": [ + "389" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\n \"id\": \"/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/anullian-rg/providers/Microsoft.AVS/privateClouds/anullian-southcentralus-runcommand/scriptExecutions/scripting_execution8504/operationstatuses/3ebcf8f9-c318-4282-bc85-94b295f99f12\",\n \"name\": \"3ebcf8f9-c318-4282-bc85-94b295f99f12\",\n \"percentComplete\": 0,\n \"startTime\": \"2021-05-14T11:18:28.3125027-05:00\",\n \"status\": \"Pending\"\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/anullian-rg/providers/Microsoft.AVS/privateClouds/anullian-southcentralus-runcommand/scriptExecutions/scripting_execution8504/operationstatuses/3ebcf8f9-c318-4282-bc85-94b295f99f12?api-version=2021-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmE3NWU3OWItZGQ5NS00MDI1LTlkYmYtM2E3YWU4ZGZmMmI1L3Jlc291cmNlR3JvdXBzL2FudWxsaWFuLXJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuQVZTL3ByaXZhdGVDbG91ZHMvYW51bGxpYW4tc291dGhjZW50cmFsdXMtcnVuY29tbWFuZC9zY3JpcHRFeGVjdXRpb25zL3NjcmlwdGluZ19leGVjdXRpb244NTA0L29wZXJhdGlvbnN0YXR1c2VzLzNlYmNmOGY5LWMzMTgtNDI4Mi1iYzg1LTk0YjI5NWY5OWYxMj9hcGktdmVyc2lvbj0yMDIxLTA2LTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.29719.03", + "OSName/Linux", + "OSVersion/Linux.5.4.72.microsoft.standard.WSL2.1.SMP.Wed.Oct.28.23.40.43.UTC.2020", + "Microsoft.Azure.Management.Avs.AvsClient/2.0.0.1" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "10" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14989" + ], + "x-ms-request-id": [ + "efdd92cf-761f-4960-a08d-4bf4ed593ffd" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-correlation-request-id": [ + "b4d39ec2-dda4-4955-9494-5def53902e32" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20210514T162026Z:b4d39ec2-dda4-4955-9494-5def53902e32" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Cache": [ + "CONFIG_NOCACHE" + ], + "X-MSEdge-Ref": [ + "Ref A: 32A170C6CDAE4F859AFC61531B9F9221 Ref B: BOG30EDGE0111 Ref C: 2021-05-14T16:20:26Z" + ], + "Date": [ + "Fri, 14 May 2021 16:20:25 GMT" + ], + "Content-Length": [ + "389" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\n \"id\": \"/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/anullian-rg/providers/Microsoft.AVS/privateClouds/anullian-southcentralus-runcommand/scriptExecutions/scripting_execution8504/operationstatuses/3ebcf8f9-c318-4282-bc85-94b295f99f12\",\n \"name\": \"3ebcf8f9-c318-4282-bc85-94b295f99f12\",\n \"percentComplete\": 0,\n \"startTime\": \"2021-05-14T11:18:28.3125027-05:00\",\n \"status\": \"Pending\"\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/anullian-rg/providers/Microsoft.AVS/privateClouds/anullian-southcentralus-runcommand/scriptExecutions/scripting_execution8504/operationstatuses/3ebcf8f9-c318-4282-bc85-94b295f99f12?api-version=2021-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmE3NWU3OWItZGQ5NS00MDI1LTlkYmYtM2E3YWU4ZGZmMmI1L3Jlc291cmNlR3JvdXBzL2FudWxsaWFuLXJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuQVZTL3ByaXZhdGVDbG91ZHMvYW51bGxpYW4tc291dGhjZW50cmFsdXMtcnVuY29tbWFuZC9zY3JpcHRFeGVjdXRpb25zL3NjcmlwdGluZ19leGVjdXRpb244NTA0L29wZXJhdGlvbnN0YXR1c2VzLzNlYmNmOGY5LWMzMTgtNDI4Mi1iYzg1LTk0YjI5NWY5OWYxMj9hcGktdmVyc2lvbj0yMDIxLTA2LTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.29719.03", + "OSName/Linux", + "OSVersion/Linux.5.4.72.microsoft.standard.WSL2.1.SMP.Wed.Oct.28.23.40.43.UTC.2020", + "Microsoft.Azure.Management.Avs.AvsClient/2.0.0.1" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "10" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14988" + ], + "x-ms-request-id": [ + "1140d7cd-907f-45c6-9461-b5fae0d447e2" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-correlation-request-id": [ + "6b3b90cc-b3ed-40b6-8d7e-bb70851e4491" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20210514T162036Z:6b3b90cc-b3ed-40b6-8d7e-bb70851e4491" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Cache": [ + "CONFIG_NOCACHE" + ], + "X-MSEdge-Ref": [ + "Ref A: B2E4EBD91990450DAB7A2227172CC550 Ref B: BOG30EDGE0111 Ref C: 2021-05-14T16:20:36Z" + ], + "Date": [ + "Fri, 14 May 2021 16:20:35 GMT" + ], + "Content-Length": [ + "389" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\n \"id\": \"/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/anullian-rg/providers/Microsoft.AVS/privateClouds/anullian-southcentralus-runcommand/scriptExecutions/scripting_execution8504/operationstatuses/3ebcf8f9-c318-4282-bc85-94b295f99f12\",\n \"name\": \"3ebcf8f9-c318-4282-bc85-94b295f99f12\",\n \"percentComplete\": 0,\n \"startTime\": \"2021-05-14T11:18:28.3125027-05:00\",\n \"status\": \"Pending\"\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/anullian-rg/providers/Microsoft.AVS/privateClouds/anullian-southcentralus-runcommand/scriptExecutions/scripting_execution8504/operationstatuses/3ebcf8f9-c318-4282-bc85-94b295f99f12?api-version=2021-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmE3NWU3OWItZGQ5NS00MDI1LTlkYmYtM2E3YWU4ZGZmMmI1L3Jlc291cmNlR3JvdXBzL2FudWxsaWFuLXJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuQVZTL3ByaXZhdGVDbG91ZHMvYW51bGxpYW4tc291dGhjZW50cmFsdXMtcnVuY29tbWFuZC9zY3JpcHRFeGVjdXRpb25zL3NjcmlwdGluZ19leGVjdXRpb244NTA0L29wZXJhdGlvbnN0YXR1c2VzLzNlYmNmOGY5LWMzMTgtNDI4Mi1iYzg1LTk0YjI5NWY5OWYxMj9hcGktdmVyc2lvbj0yMDIxLTA2LTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.29719.03", + "OSName/Linux", + "OSVersion/Linux.5.4.72.microsoft.standard.WSL2.1.SMP.Wed.Oct.28.23.40.43.UTC.2020", + "Microsoft.Azure.Management.Avs.AvsClient/2.0.0.1" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "10" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14987" + ], + "x-ms-request-id": [ + "a2e77fd1-8ca4-4184-8112-c79ae0c20e91" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-correlation-request-id": [ + "1a4c283b-51b8-4581-8b6c-4af10c440cc5" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20210514T162047Z:1a4c283b-51b8-4581-8b6c-4af10c440cc5" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Cache": [ + "CONFIG_NOCACHE" + ], + "X-MSEdge-Ref": [ + "Ref A: FB7D34E1404A48319BC9E362064A3730 Ref B: BOG30EDGE0111 Ref C: 2021-05-14T16:20:47Z" + ], + "Date": [ + "Fri, 14 May 2021 16:20:46 GMT" + ], + "Content-Length": [ + "389" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\n \"id\": \"/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/anullian-rg/providers/Microsoft.AVS/privateClouds/anullian-southcentralus-runcommand/scriptExecutions/scripting_execution8504/operationstatuses/3ebcf8f9-c318-4282-bc85-94b295f99f12\",\n \"name\": \"3ebcf8f9-c318-4282-bc85-94b295f99f12\",\n \"percentComplete\": 0,\n \"startTime\": \"2021-05-14T11:18:28.3125027-05:00\",\n \"status\": \"Pending\"\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/anullian-rg/providers/Microsoft.AVS/privateClouds/anullian-southcentralus-runcommand/scriptExecutions/scripting_execution8504/operationstatuses/3ebcf8f9-c318-4282-bc85-94b295f99f12?api-version=2021-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmE3NWU3OWItZGQ5NS00MDI1LTlkYmYtM2E3YWU4ZGZmMmI1L3Jlc291cmNlR3JvdXBzL2FudWxsaWFuLXJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuQVZTL3ByaXZhdGVDbG91ZHMvYW51bGxpYW4tc291dGhjZW50cmFsdXMtcnVuY29tbWFuZC9zY3JpcHRFeGVjdXRpb25zL3NjcmlwdGluZ19leGVjdXRpb244NTA0L29wZXJhdGlvbnN0YXR1c2VzLzNlYmNmOGY5LWMzMTgtNDI4Mi1iYzg1LTk0YjI5NWY5OWYxMj9hcGktdmVyc2lvbj0yMDIxLTA2LTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.29719.03", + "OSName/Linux", + "OSVersion/Linux.5.4.72.microsoft.standard.WSL2.1.SMP.Wed.Oct.28.23.40.43.UTC.2020", + "Microsoft.Azure.Management.Avs.AvsClient/2.0.0.1" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "10" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14986" + ], + "x-ms-request-id": [ + "755d7323-5ad6-4eff-b5c0-74faa3c676ea" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-correlation-request-id": [ + "6be341fb-033c-413d-9a3a-c895e8e7d2b0" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20210514T162057Z:6be341fb-033c-413d-9a3a-c895e8e7d2b0" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Cache": [ + "CONFIG_NOCACHE" + ], + "X-MSEdge-Ref": [ + "Ref A: 03C0BBBA0E284AEAB5CFF1B06E3A502A Ref B: BOG30EDGE0111 Ref C: 2021-05-14T16:20:57Z" + ], + "Date": [ + "Fri, 14 May 2021 16:20:56 GMT" + ], + "Content-Length": [ + "389" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\n \"id\": \"/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/anullian-rg/providers/Microsoft.AVS/privateClouds/anullian-southcentralus-runcommand/scriptExecutions/scripting_execution8504/operationstatuses/3ebcf8f9-c318-4282-bc85-94b295f99f12\",\n \"name\": \"3ebcf8f9-c318-4282-bc85-94b295f99f12\",\n \"percentComplete\": 0,\n \"startTime\": \"2021-05-14T11:18:28.3125027-05:00\",\n \"status\": \"Pending\"\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/anullian-rg/providers/Microsoft.AVS/privateClouds/anullian-southcentralus-runcommand/scriptExecutions/scripting_execution8504/operationstatuses/3ebcf8f9-c318-4282-bc85-94b295f99f12?api-version=2021-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmE3NWU3OWItZGQ5NS00MDI1LTlkYmYtM2E3YWU4ZGZmMmI1L3Jlc291cmNlR3JvdXBzL2FudWxsaWFuLXJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuQVZTL3ByaXZhdGVDbG91ZHMvYW51bGxpYW4tc291dGhjZW50cmFsdXMtcnVuY29tbWFuZC9zY3JpcHRFeGVjdXRpb25zL3NjcmlwdGluZ19leGVjdXRpb244NTA0L29wZXJhdGlvbnN0YXR1c2VzLzNlYmNmOGY5LWMzMTgtNDI4Mi1iYzg1LTk0YjI5NWY5OWYxMj9hcGktdmVyc2lvbj0yMDIxLTA2LTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.29719.03", + "OSName/Linux", + "OSVersion/Linux.5.4.72.microsoft.standard.WSL2.1.SMP.Wed.Oct.28.23.40.43.UTC.2020", + "Microsoft.Azure.Management.Avs.AvsClient/2.0.0.1" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "10" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14985" + ], + "x-ms-request-id": [ + "c0e1ead5-ae07-4190-9f3c-d8253ca88571" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-correlation-request-id": [ + "0e54c874-be2c-436e-a1a5-d8a78172d31c" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20210514T162107Z:0e54c874-be2c-436e-a1a5-d8a78172d31c" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Cache": [ + "CONFIG_NOCACHE" + ], + "X-MSEdge-Ref": [ + "Ref A: BE1CFF876DE84AF2B24A09681CA4A7AB Ref B: BOG30EDGE0111 Ref C: 2021-05-14T16:21:07Z" + ], + "Date": [ + "Fri, 14 May 2021 16:21:07 GMT" + ], + "Content-Length": [ + "389" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\n \"id\": \"/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/anullian-rg/providers/Microsoft.AVS/privateClouds/anullian-southcentralus-runcommand/scriptExecutions/scripting_execution8504/operationstatuses/3ebcf8f9-c318-4282-bc85-94b295f99f12\",\n \"name\": \"3ebcf8f9-c318-4282-bc85-94b295f99f12\",\n \"percentComplete\": 0,\n \"startTime\": \"2021-05-14T11:18:28.3125027-05:00\",\n \"status\": \"Pending\"\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/anullian-rg/providers/Microsoft.AVS/privateClouds/anullian-southcentralus-runcommand/scriptExecutions/scripting_execution8504/operationstatuses/3ebcf8f9-c318-4282-bc85-94b295f99f12?api-version=2021-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmE3NWU3OWItZGQ5NS00MDI1LTlkYmYtM2E3YWU4ZGZmMmI1L3Jlc291cmNlR3JvdXBzL2FudWxsaWFuLXJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuQVZTL3ByaXZhdGVDbG91ZHMvYW51bGxpYW4tc291dGhjZW50cmFsdXMtcnVuY29tbWFuZC9zY3JpcHRFeGVjdXRpb25zL3NjcmlwdGluZ19leGVjdXRpb244NTA0L29wZXJhdGlvbnN0YXR1c2VzLzNlYmNmOGY5LWMzMTgtNDI4Mi1iYzg1LTk0YjI5NWY5OWYxMj9hcGktdmVyc2lvbj0yMDIxLTA2LTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.29719.03", + "OSName/Linux", + "OSVersion/Linux.5.4.72.microsoft.standard.WSL2.1.SMP.Wed.Oct.28.23.40.43.UTC.2020", + "Microsoft.Azure.Management.Avs.AvsClient/2.0.0.1" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "10" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14984" + ], + "x-ms-request-id": [ + "4ef36103-ba8e-4d8b-ae45-0728598e56b6" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-correlation-request-id": [ + "3f42ffd8-5076-46dc-88a9-89429aaed122" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20210514T162118Z:3f42ffd8-5076-46dc-88a9-89429aaed122" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Cache": [ + "CONFIG_NOCACHE" + ], + "X-MSEdge-Ref": [ + "Ref A: 11F3B303C0BB40C8B6014CC7BEE59F36 Ref B: BOG30EDGE0111 Ref C: 2021-05-14T16:21:18Z" + ], + "Date": [ + "Fri, 14 May 2021 16:21:17 GMT" + ], + "Content-Length": [ + "389" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\n \"id\": \"/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/anullian-rg/providers/Microsoft.AVS/privateClouds/anullian-southcentralus-runcommand/scriptExecutions/scripting_execution8504/operationstatuses/3ebcf8f9-c318-4282-bc85-94b295f99f12\",\n \"name\": \"3ebcf8f9-c318-4282-bc85-94b295f99f12\",\n \"percentComplete\": 0,\n \"startTime\": \"2021-05-14T11:18:28.3125027-05:00\",\n \"status\": \"Pending\"\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/anullian-rg/providers/Microsoft.AVS/privateClouds/anullian-southcentralus-runcommand/scriptExecutions/scripting_execution8504/operationstatuses/3ebcf8f9-c318-4282-bc85-94b295f99f12?api-version=2021-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmE3NWU3OWItZGQ5NS00MDI1LTlkYmYtM2E3YWU4ZGZmMmI1L3Jlc291cmNlR3JvdXBzL2FudWxsaWFuLXJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuQVZTL3ByaXZhdGVDbG91ZHMvYW51bGxpYW4tc291dGhjZW50cmFsdXMtcnVuY29tbWFuZC9zY3JpcHRFeGVjdXRpb25zL3NjcmlwdGluZ19leGVjdXRpb244NTA0L29wZXJhdGlvbnN0YXR1c2VzLzNlYmNmOGY5LWMzMTgtNDI4Mi1iYzg1LTk0YjI5NWY5OWYxMj9hcGktdmVyc2lvbj0yMDIxLTA2LTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.29719.03", + "OSName/Linux", + "OSVersion/Linux.5.4.72.microsoft.standard.WSL2.1.SMP.Wed.Oct.28.23.40.43.UTC.2020", + "Microsoft.Azure.Management.Avs.AvsClient/2.0.0.1" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "10" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14983" + ], + "x-ms-request-id": [ + "230ad570-a21f-4a3a-963b-c6010df91184" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-correlation-request-id": [ + "e5d7f7f6-8f18-44c4-a2e0-2d39abaaf8d4" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20210514T162128Z:e5d7f7f6-8f18-44c4-a2e0-2d39abaaf8d4" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Cache": [ + "CONFIG_NOCACHE" + ], + "X-MSEdge-Ref": [ + "Ref A: 38DD278490CF466A8B1FFD0A9432B9A7 Ref B: BOG30EDGE0111 Ref C: 2021-05-14T16:21:28Z" + ], + "Date": [ + "Fri, 14 May 2021 16:21:28 GMT" + ], + "Content-Length": [ + "389" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\n \"id\": \"/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/anullian-rg/providers/Microsoft.AVS/privateClouds/anullian-southcentralus-runcommand/scriptExecutions/scripting_execution8504/operationstatuses/3ebcf8f9-c318-4282-bc85-94b295f99f12\",\n \"name\": \"3ebcf8f9-c318-4282-bc85-94b295f99f12\",\n \"percentComplete\": 0,\n \"startTime\": \"2021-05-14T11:18:28.3125027-05:00\",\n \"status\": \"Pending\"\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/anullian-rg/providers/Microsoft.AVS/privateClouds/anullian-southcentralus-runcommand/scriptExecutions/scripting_execution8504/operationstatuses/3ebcf8f9-c318-4282-bc85-94b295f99f12?api-version=2021-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmE3NWU3OWItZGQ5NS00MDI1LTlkYmYtM2E3YWU4ZGZmMmI1L3Jlc291cmNlR3JvdXBzL2FudWxsaWFuLXJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuQVZTL3ByaXZhdGVDbG91ZHMvYW51bGxpYW4tc291dGhjZW50cmFsdXMtcnVuY29tbWFuZC9zY3JpcHRFeGVjdXRpb25zL3NjcmlwdGluZ19leGVjdXRpb244NTA0L29wZXJhdGlvbnN0YXR1c2VzLzNlYmNmOGY5LWMzMTgtNDI4Mi1iYzg1LTk0YjI5NWY5OWYxMj9hcGktdmVyc2lvbj0yMDIxLTA2LTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.29719.03", + "OSName/Linux", + "OSVersion/Linux.5.4.72.microsoft.standard.WSL2.1.SMP.Wed.Oct.28.23.40.43.UTC.2020", + "Microsoft.Azure.Management.Avs.AvsClient/2.0.0.1" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "10" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14982" + ], + "x-ms-request-id": [ + "d064f2c8-ee05-4ae7-aafc-0b7104db409e" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-correlation-request-id": [ + "479025b0-2313-4412-a989-4d645c350154" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20210514T162139Z:479025b0-2313-4412-a989-4d645c350154" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Cache": [ + "CONFIG_NOCACHE" + ], + "X-MSEdge-Ref": [ + "Ref A: 1A2BE76BC4534A809C8451A4611DF7D6 Ref B: BOG30EDGE0111 Ref C: 2021-05-14T16:21:38Z" + ], + "Date": [ + "Fri, 14 May 2021 16:21:39 GMT" + ], + "Content-Length": [ + "389" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\n \"id\": \"/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/anullian-rg/providers/Microsoft.AVS/privateClouds/anullian-southcentralus-runcommand/scriptExecutions/scripting_execution8504/operationstatuses/3ebcf8f9-c318-4282-bc85-94b295f99f12\",\n \"name\": \"3ebcf8f9-c318-4282-bc85-94b295f99f12\",\n \"percentComplete\": 0,\n \"startTime\": \"2021-05-14T11:18:28.3125027-05:00\",\n \"status\": \"Pending\"\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/anullian-rg/providers/Microsoft.AVS/privateClouds/anullian-southcentralus-runcommand/scriptExecutions/scripting_execution8504/operationstatuses/3ebcf8f9-c318-4282-bc85-94b295f99f12?api-version=2021-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmE3NWU3OWItZGQ5NS00MDI1LTlkYmYtM2E3YWU4ZGZmMmI1L3Jlc291cmNlR3JvdXBzL2FudWxsaWFuLXJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuQVZTL3ByaXZhdGVDbG91ZHMvYW51bGxpYW4tc291dGhjZW50cmFsdXMtcnVuY29tbWFuZC9zY3JpcHRFeGVjdXRpb25zL3NjcmlwdGluZ19leGVjdXRpb244NTA0L29wZXJhdGlvbnN0YXR1c2VzLzNlYmNmOGY5LWMzMTgtNDI4Mi1iYzg1LTk0YjI5NWY5OWYxMj9hcGktdmVyc2lvbj0yMDIxLTA2LTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.29719.03", + "OSName/Linux", + "OSVersion/Linux.5.4.72.microsoft.standard.WSL2.1.SMP.Wed.Oct.28.23.40.43.UTC.2020", + "Microsoft.Azure.Management.Avs.AvsClient/2.0.0.1" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "10" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14981" + ], + "x-ms-request-id": [ + "bf7ef956-2e49-4769-9ac0-3482c4945950" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-correlation-request-id": [ + "fa80ff4f-d3cb-45ac-8966-83b4ea3834e1" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20210514T162149Z:fa80ff4f-d3cb-45ac-8966-83b4ea3834e1" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Cache": [ + "CONFIG_NOCACHE" + ], + "X-MSEdge-Ref": [ + "Ref A: 0E119517249F403CBA64053C91633ED9 Ref B: BOG30EDGE0111 Ref C: 2021-05-14T16:21:49Z" + ], + "Date": [ + "Fri, 14 May 2021 16:21:49 GMT" + ], + "Content-Length": [ + "389" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\n \"id\": \"/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/anullian-rg/providers/Microsoft.AVS/privateClouds/anullian-southcentralus-runcommand/scriptExecutions/scripting_execution8504/operationstatuses/3ebcf8f9-c318-4282-bc85-94b295f99f12\",\n \"name\": \"3ebcf8f9-c318-4282-bc85-94b295f99f12\",\n \"percentComplete\": 0,\n \"startTime\": \"2021-05-14T11:18:28.3125027-05:00\",\n \"status\": \"Pending\"\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/anullian-rg/providers/Microsoft.AVS/privateClouds/anullian-southcentralus-runcommand/scriptExecutions/scripting_execution8504/operationstatuses/3ebcf8f9-c318-4282-bc85-94b295f99f12?api-version=2021-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmE3NWU3OWItZGQ5NS00MDI1LTlkYmYtM2E3YWU4ZGZmMmI1L3Jlc291cmNlR3JvdXBzL2FudWxsaWFuLXJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuQVZTL3ByaXZhdGVDbG91ZHMvYW51bGxpYW4tc291dGhjZW50cmFsdXMtcnVuY29tbWFuZC9zY3JpcHRFeGVjdXRpb25zL3NjcmlwdGluZ19leGVjdXRpb244NTA0L29wZXJhdGlvbnN0YXR1c2VzLzNlYmNmOGY5LWMzMTgtNDI4Mi1iYzg1LTk0YjI5NWY5OWYxMj9hcGktdmVyc2lvbj0yMDIxLTA2LTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.29719.03", + "OSName/Linux", + "OSVersion/Linux.5.4.72.microsoft.standard.WSL2.1.SMP.Wed.Oct.28.23.40.43.UTC.2020", + "Microsoft.Azure.Management.Avs.AvsClient/2.0.0.1" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "10" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14980" + ], + "x-ms-request-id": [ + "c45b09ec-7f11-47aa-97ff-9c629774d22d" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-correlation-request-id": [ + "34ad16b2-db1c-4e2c-a01a-1441a4ce1d95" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20210514T162159Z:34ad16b2-db1c-4e2c-a01a-1441a4ce1d95" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Cache": [ + "CONFIG_NOCACHE" + ], + "X-MSEdge-Ref": [ + "Ref A: BDDA144441F54AFEA91E45C7BB2CFA6F Ref B: BOG30EDGE0111 Ref C: 2021-05-14T16:21:59Z" + ], + "Date": [ + "Fri, 14 May 2021 16:21:59 GMT" + ], + "Content-Length": [ + "389" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\n \"id\": \"/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/anullian-rg/providers/Microsoft.AVS/privateClouds/anullian-southcentralus-runcommand/scriptExecutions/scripting_execution8504/operationstatuses/3ebcf8f9-c318-4282-bc85-94b295f99f12\",\n \"name\": \"3ebcf8f9-c318-4282-bc85-94b295f99f12\",\n \"percentComplete\": 0,\n \"startTime\": \"2021-05-14T11:18:28.3125027-05:00\",\n \"status\": \"Pending\"\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/anullian-rg/providers/Microsoft.AVS/privateClouds/anullian-southcentralus-runcommand/scriptExecutions/scripting_execution8504/operationstatuses/3ebcf8f9-c318-4282-bc85-94b295f99f12?api-version=2021-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmE3NWU3OWItZGQ5NS00MDI1LTlkYmYtM2E3YWU4ZGZmMmI1L3Jlc291cmNlR3JvdXBzL2FudWxsaWFuLXJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuQVZTL3ByaXZhdGVDbG91ZHMvYW51bGxpYW4tc291dGhjZW50cmFsdXMtcnVuY29tbWFuZC9zY3JpcHRFeGVjdXRpb25zL3NjcmlwdGluZ19leGVjdXRpb244NTA0L29wZXJhdGlvbnN0YXR1c2VzLzNlYmNmOGY5LWMzMTgtNDI4Mi1iYzg1LTk0YjI5NWY5OWYxMj9hcGktdmVyc2lvbj0yMDIxLTA2LTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.29719.03", + "OSName/Linux", + "OSVersion/Linux.5.4.72.microsoft.standard.WSL2.1.SMP.Wed.Oct.28.23.40.43.UTC.2020", + "Microsoft.Azure.Management.Avs.AvsClient/2.0.0.1" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "10" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14979" + ], + "x-ms-request-id": [ + "84977d94-9918-4de4-bb8d-9d26794cce0b" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-correlation-request-id": [ + "432e80f6-cbc5-4caf-bc8a-8945dd4f34fb" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20210514T162209Z:432e80f6-cbc5-4caf-bc8a-8945dd4f34fb" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Cache": [ + "CONFIG_NOCACHE" + ], + "X-MSEdge-Ref": [ + "Ref A: 95FCBAA3529D4ABBAAFBD991079DA021 Ref B: BOG30EDGE0111 Ref C: 2021-05-14T16:22:09Z" + ], + "Date": [ + "Fri, 14 May 2021 16:22:09 GMT" + ], + "Content-Length": [ + "389" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\n \"id\": \"/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/anullian-rg/providers/Microsoft.AVS/privateClouds/anullian-southcentralus-runcommand/scriptExecutions/scripting_execution8504/operationstatuses/3ebcf8f9-c318-4282-bc85-94b295f99f12\",\n \"name\": \"3ebcf8f9-c318-4282-bc85-94b295f99f12\",\n \"percentComplete\": 0,\n \"startTime\": \"2021-05-14T11:18:28.3125027-05:00\",\n \"status\": \"Pending\"\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/anullian-rg/providers/Microsoft.AVS/privateClouds/anullian-southcentralus-runcommand/scriptExecutions/scripting_execution8504/operationstatuses/3ebcf8f9-c318-4282-bc85-94b295f99f12?api-version=2021-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmE3NWU3OWItZGQ5NS00MDI1LTlkYmYtM2E3YWU4ZGZmMmI1L3Jlc291cmNlR3JvdXBzL2FudWxsaWFuLXJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuQVZTL3ByaXZhdGVDbG91ZHMvYW51bGxpYW4tc291dGhjZW50cmFsdXMtcnVuY29tbWFuZC9zY3JpcHRFeGVjdXRpb25zL3NjcmlwdGluZ19leGVjdXRpb244NTA0L29wZXJhdGlvbnN0YXR1c2VzLzNlYmNmOGY5LWMzMTgtNDI4Mi1iYzg1LTk0YjI5NWY5OWYxMj9hcGktdmVyc2lvbj0yMDIxLTA2LTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.29719.03", + "OSName/Linux", + "OSVersion/Linux.5.4.72.microsoft.standard.WSL2.1.SMP.Wed.Oct.28.23.40.43.UTC.2020", + "Microsoft.Azure.Management.Avs.AvsClient/2.0.0.1" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "10" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14978" + ], + "x-ms-request-id": [ + "010a52e4-01cb-4dda-ad45-208df0e33126" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-correlation-request-id": [ + "690417cb-a123-4242-9c64-6f1661a95a20" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20210514T162220Z:690417cb-a123-4242-9c64-6f1661a95a20" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Cache": [ + "CONFIG_NOCACHE" + ], + "X-MSEdge-Ref": [ + "Ref A: 41A072CB4BF046FD9112FA5E77C38ED0 Ref B: BOG30EDGE0111 Ref C: 2021-05-14T16:22:20Z" + ], + "Date": [ + "Fri, 14 May 2021 16:22:20 GMT" + ], + "Content-Length": [ + "389" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\n \"id\": \"/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/anullian-rg/providers/Microsoft.AVS/privateClouds/anullian-southcentralus-runcommand/scriptExecutions/scripting_execution8504/operationstatuses/3ebcf8f9-c318-4282-bc85-94b295f99f12\",\n \"name\": \"3ebcf8f9-c318-4282-bc85-94b295f99f12\",\n \"percentComplete\": 0,\n \"startTime\": \"2021-05-14T11:18:28.3125027-05:00\",\n \"status\": \"Pending\"\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/anullian-rg/providers/Microsoft.AVS/privateClouds/anullian-southcentralus-runcommand/scriptExecutions/scripting_execution8504/operationstatuses/3ebcf8f9-c318-4282-bc85-94b295f99f12?api-version=2021-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmE3NWU3OWItZGQ5NS00MDI1LTlkYmYtM2E3YWU4ZGZmMmI1L3Jlc291cmNlR3JvdXBzL2FudWxsaWFuLXJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuQVZTL3ByaXZhdGVDbG91ZHMvYW51bGxpYW4tc291dGhjZW50cmFsdXMtcnVuY29tbWFuZC9zY3JpcHRFeGVjdXRpb25zL3NjcmlwdGluZ19leGVjdXRpb244NTA0L29wZXJhdGlvbnN0YXR1c2VzLzNlYmNmOGY5LWMzMTgtNDI4Mi1iYzg1LTk0YjI5NWY5OWYxMj9hcGktdmVyc2lvbj0yMDIxLTA2LTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.29719.03", + "OSName/Linux", + "OSVersion/Linux.5.4.72.microsoft.standard.WSL2.1.SMP.Wed.Oct.28.23.40.43.UTC.2020", + "Microsoft.Azure.Management.Avs.AvsClient/2.0.0.1" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "10" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14977" + ], + "x-ms-request-id": [ + "1baf57f3-70c0-49e5-b99a-c49aafa16aca" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-correlation-request-id": [ + "2909ed4e-b466-40ad-8c95-8d89f30a98df" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20210514T162230Z:2909ed4e-b466-40ad-8c95-8d89f30a98df" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Cache": [ + "CONFIG_NOCACHE" + ], + "X-MSEdge-Ref": [ + "Ref A: ED227BAC402B4FB6962F38184B391BBD Ref B: BOG30EDGE0111 Ref C: 2021-05-14T16:22:30Z" + ], + "Date": [ + "Fri, 14 May 2021 16:22:30 GMT" + ], + "Content-Length": [ + "389" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\n \"id\": \"/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/anullian-rg/providers/Microsoft.AVS/privateClouds/anullian-southcentralus-runcommand/scriptExecutions/scripting_execution8504/operationstatuses/3ebcf8f9-c318-4282-bc85-94b295f99f12\",\n \"name\": \"3ebcf8f9-c318-4282-bc85-94b295f99f12\",\n \"percentComplete\": 0,\n \"startTime\": \"2021-05-14T11:18:28.3125027-05:00\",\n \"status\": \"Pending\"\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/anullian-rg/providers/Microsoft.AVS/privateClouds/anullian-southcentralus-runcommand/scriptExecutions/scripting_execution8504/operationstatuses/3ebcf8f9-c318-4282-bc85-94b295f99f12?api-version=2021-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmE3NWU3OWItZGQ5NS00MDI1LTlkYmYtM2E3YWU4ZGZmMmI1L3Jlc291cmNlR3JvdXBzL2FudWxsaWFuLXJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuQVZTL3ByaXZhdGVDbG91ZHMvYW51bGxpYW4tc291dGhjZW50cmFsdXMtcnVuY29tbWFuZC9zY3JpcHRFeGVjdXRpb25zL3NjcmlwdGluZ19leGVjdXRpb244NTA0L29wZXJhdGlvbnN0YXR1c2VzLzNlYmNmOGY5LWMzMTgtNDI4Mi1iYzg1LTk0YjI5NWY5OWYxMj9hcGktdmVyc2lvbj0yMDIxLTA2LTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.29719.03", + "OSName/Linux", + "OSVersion/Linux.5.4.72.microsoft.standard.WSL2.1.SMP.Wed.Oct.28.23.40.43.UTC.2020", + "Microsoft.Azure.Management.Avs.AvsClient/2.0.0.1" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "10" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14976" + ], + "x-ms-request-id": [ + "d5121c4e-ed42-44a1-bd53-a83f83e8b6f7" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-correlation-request-id": [ + "9015ee9c-a49e-4bab-9c06-a2247726b7a1" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20210514T162241Z:9015ee9c-a49e-4bab-9c06-a2247726b7a1" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Cache": [ + "CONFIG_NOCACHE" + ], + "X-MSEdge-Ref": [ + "Ref A: B7C59483E22A477ABE83A120AB0DC806 Ref B: BOG30EDGE0111 Ref C: 2021-05-14T16:22:40Z" + ], + "Date": [ + "Fri, 14 May 2021 16:22:41 GMT" + ], + "Content-Length": [ + "389" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\n \"id\": \"/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/anullian-rg/providers/Microsoft.AVS/privateClouds/anullian-southcentralus-runcommand/scriptExecutions/scripting_execution8504/operationstatuses/3ebcf8f9-c318-4282-bc85-94b295f99f12\",\n \"name\": \"3ebcf8f9-c318-4282-bc85-94b295f99f12\",\n \"percentComplete\": 0,\n \"startTime\": \"2021-05-14T11:18:28.3125027-05:00\",\n \"status\": \"Pending\"\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/anullian-rg/providers/Microsoft.AVS/privateClouds/anullian-southcentralus-runcommand/scriptExecutions/scripting_execution8504/operationstatuses/3ebcf8f9-c318-4282-bc85-94b295f99f12?api-version=2021-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmE3NWU3OWItZGQ5NS00MDI1LTlkYmYtM2E3YWU4ZGZmMmI1L3Jlc291cmNlR3JvdXBzL2FudWxsaWFuLXJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuQVZTL3ByaXZhdGVDbG91ZHMvYW51bGxpYW4tc291dGhjZW50cmFsdXMtcnVuY29tbWFuZC9zY3JpcHRFeGVjdXRpb25zL3NjcmlwdGluZ19leGVjdXRpb244NTA0L29wZXJhdGlvbnN0YXR1c2VzLzNlYmNmOGY5LWMzMTgtNDI4Mi1iYzg1LTk0YjI5NWY5OWYxMj9hcGktdmVyc2lvbj0yMDIxLTA2LTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.29719.03", + "OSName/Linux", + "OSVersion/Linux.5.4.72.microsoft.standard.WSL2.1.SMP.Wed.Oct.28.23.40.43.UTC.2020", + "Microsoft.Azure.Management.Avs.AvsClient/2.0.0.1" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "10" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14975" + ], + "x-ms-request-id": [ + "1352a6e7-9c0b-40df-8419-ae5f617ef0b0" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-correlation-request-id": [ + "0f1613ec-9cfe-4747-b239-8f9e8cc901a0" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20210514T162251Z:0f1613ec-9cfe-4747-b239-8f9e8cc901a0" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Cache": [ + "CONFIG_NOCACHE" + ], + "X-MSEdge-Ref": [ + "Ref A: E4B9FC8DCE66485FB7379C6FE461940A Ref B: BOG30EDGE0111 Ref C: 2021-05-14T16:22:51Z" + ], + "Date": [ + "Fri, 14 May 2021 16:22:51 GMT" + ], + "Content-Length": [ + "389" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\n \"id\": \"/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/anullian-rg/providers/Microsoft.AVS/privateClouds/anullian-southcentralus-runcommand/scriptExecutions/scripting_execution8504/operationstatuses/3ebcf8f9-c318-4282-bc85-94b295f99f12\",\n \"name\": \"3ebcf8f9-c318-4282-bc85-94b295f99f12\",\n \"percentComplete\": 0,\n \"startTime\": \"2021-05-14T11:18:28.3125027-05:00\",\n \"status\": \"Pending\"\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/anullian-rg/providers/Microsoft.AVS/privateClouds/anullian-southcentralus-runcommand/scriptExecutions/scripting_execution8504/operationstatuses/3ebcf8f9-c318-4282-bc85-94b295f99f12?api-version=2021-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmE3NWU3OWItZGQ5NS00MDI1LTlkYmYtM2E3YWU4ZGZmMmI1L3Jlc291cmNlR3JvdXBzL2FudWxsaWFuLXJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuQVZTL3ByaXZhdGVDbG91ZHMvYW51bGxpYW4tc291dGhjZW50cmFsdXMtcnVuY29tbWFuZC9zY3JpcHRFeGVjdXRpb25zL3NjcmlwdGluZ19leGVjdXRpb244NTA0L29wZXJhdGlvbnN0YXR1c2VzLzNlYmNmOGY5LWMzMTgtNDI4Mi1iYzg1LTk0YjI5NWY5OWYxMj9hcGktdmVyc2lvbj0yMDIxLTA2LTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.29719.03", + "OSName/Linux", + "OSVersion/Linux.5.4.72.microsoft.standard.WSL2.1.SMP.Wed.Oct.28.23.40.43.UTC.2020", + "Microsoft.Azure.Management.Avs.AvsClient/2.0.0.1" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "10" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14974" + ], + "x-ms-request-id": [ + "177229a7-ad52-4369-83e8-577a8ec629f4" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-correlation-request-id": [ + "a1b49a3b-73f2-4cc7-9bcd-5b88c4d72619" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20210514T162301Z:a1b49a3b-73f2-4cc7-9bcd-5b88c4d72619" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Cache": [ + "CONFIG_NOCACHE" + ], + "X-MSEdge-Ref": [ + "Ref A: 84774D4BF23A49D7ACD874EB58D97D4C Ref B: BOG30EDGE0111 Ref C: 2021-05-14T16:23:01Z" + ], + "Date": [ + "Fri, 14 May 2021 16:23:01 GMT" + ], + "Content-Length": [ + "389" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\n \"id\": \"/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/anullian-rg/providers/Microsoft.AVS/privateClouds/anullian-southcentralus-runcommand/scriptExecutions/scripting_execution8504/operationstatuses/3ebcf8f9-c318-4282-bc85-94b295f99f12\",\n \"name\": \"3ebcf8f9-c318-4282-bc85-94b295f99f12\",\n \"percentComplete\": 0,\n \"startTime\": \"2021-05-14T11:18:28.3125027-05:00\",\n \"status\": \"Pending\"\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/anullian-rg/providers/Microsoft.AVS/privateClouds/anullian-southcentralus-runcommand/scriptExecutions/scripting_execution8504/operationstatuses/3ebcf8f9-c318-4282-bc85-94b295f99f12?api-version=2021-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmE3NWU3OWItZGQ5NS00MDI1LTlkYmYtM2E3YWU4ZGZmMmI1L3Jlc291cmNlR3JvdXBzL2FudWxsaWFuLXJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuQVZTL3ByaXZhdGVDbG91ZHMvYW51bGxpYW4tc291dGhjZW50cmFsdXMtcnVuY29tbWFuZC9zY3JpcHRFeGVjdXRpb25zL3NjcmlwdGluZ19leGVjdXRpb244NTA0L29wZXJhdGlvbnN0YXR1c2VzLzNlYmNmOGY5LWMzMTgtNDI4Mi1iYzg1LTk0YjI5NWY5OWYxMj9hcGktdmVyc2lvbj0yMDIxLTA2LTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.29719.03", + "OSName/Linux", + "OSVersion/Linux.5.4.72.microsoft.standard.WSL2.1.SMP.Wed.Oct.28.23.40.43.UTC.2020", + "Microsoft.Azure.Management.Avs.AvsClient/2.0.0.1" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "10" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14973" + ], + "x-ms-request-id": [ + "46159fc3-e963-4b6c-bf0b-a6f1efbb45fb" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-correlation-request-id": [ + "5775018e-8194-4aee-8f83-3c8b5b54f575" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20210514T162311Z:5775018e-8194-4aee-8f83-3c8b5b54f575" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Cache": [ + "CONFIG_NOCACHE" + ], + "X-MSEdge-Ref": [ + "Ref A: D4A1665422784870B0F9FC1AD879A796 Ref B: BOG30EDGE0111 Ref C: 2021-05-14T16:23:11Z" + ], + "Date": [ + "Fri, 14 May 2021 16:23:11 GMT" + ], + "Content-Length": [ + "389" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\n \"id\": \"/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/anullian-rg/providers/Microsoft.AVS/privateClouds/anullian-southcentralus-runcommand/scriptExecutions/scripting_execution8504/operationstatuses/3ebcf8f9-c318-4282-bc85-94b295f99f12\",\n \"name\": \"3ebcf8f9-c318-4282-bc85-94b295f99f12\",\n \"percentComplete\": 0,\n \"startTime\": \"2021-05-14T11:18:28.3125027-05:00\",\n \"status\": \"Pending\"\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/anullian-rg/providers/Microsoft.AVS/privateClouds/anullian-southcentralus-runcommand/scriptExecutions/scripting_execution8504/operationstatuses/3ebcf8f9-c318-4282-bc85-94b295f99f12?api-version=2021-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmE3NWU3OWItZGQ5NS00MDI1LTlkYmYtM2E3YWU4ZGZmMmI1L3Jlc291cmNlR3JvdXBzL2FudWxsaWFuLXJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuQVZTL3ByaXZhdGVDbG91ZHMvYW51bGxpYW4tc291dGhjZW50cmFsdXMtcnVuY29tbWFuZC9zY3JpcHRFeGVjdXRpb25zL3NjcmlwdGluZ19leGVjdXRpb244NTA0L29wZXJhdGlvbnN0YXR1c2VzLzNlYmNmOGY5LWMzMTgtNDI4Mi1iYzg1LTk0YjI5NWY5OWYxMj9hcGktdmVyc2lvbj0yMDIxLTA2LTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.29719.03", + "OSName/Linux", + "OSVersion/Linux.5.4.72.microsoft.standard.WSL2.1.SMP.Wed.Oct.28.23.40.43.UTC.2020", + "Microsoft.Azure.Management.Avs.AvsClient/2.0.0.1" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "10" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14972" + ], + "x-ms-request-id": [ + "c3ebabaa-43bb-4ed5-85d2-603da9661b12" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-correlation-request-id": [ + "9f315885-7c67-4f26-96b7-9ebc9796d43c" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20210514T162322Z:9f315885-7c67-4f26-96b7-9ebc9796d43c" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Cache": [ + "CONFIG_NOCACHE" + ], + "X-MSEdge-Ref": [ + "Ref A: A810AA9A64F843C2B924FF8CBA465F4A Ref B: BOG30EDGE0111 Ref C: 2021-05-14T16:23:22Z" + ], + "Date": [ + "Fri, 14 May 2021 16:23:22 GMT" + ], + "Content-Length": [ + "389" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\n \"id\": \"/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/anullian-rg/providers/Microsoft.AVS/privateClouds/anullian-southcentralus-runcommand/scriptExecutions/scripting_execution8504/operationstatuses/3ebcf8f9-c318-4282-bc85-94b295f99f12\",\n \"name\": \"3ebcf8f9-c318-4282-bc85-94b295f99f12\",\n \"percentComplete\": 0,\n \"startTime\": \"2021-05-14T11:18:28.3125027-05:00\",\n \"status\": \"Pending\"\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/anullian-rg/providers/Microsoft.AVS/privateClouds/anullian-southcentralus-runcommand/scriptExecutions/scripting_execution8504/operationstatuses/3ebcf8f9-c318-4282-bc85-94b295f99f12?api-version=2021-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmE3NWU3OWItZGQ5NS00MDI1LTlkYmYtM2E3YWU4ZGZmMmI1L3Jlc291cmNlR3JvdXBzL2FudWxsaWFuLXJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuQVZTL3ByaXZhdGVDbG91ZHMvYW51bGxpYW4tc291dGhjZW50cmFsdXMtcnVuY29tbWFuZC9zY3JpcHRFeGVjdXRpb25zL3NjcmlwdGluZ19leGVjdXRpb244NTA0L29wZXJhdGlvbnN0YXR1c2VzLzNlYmNmOGY5LWMzMTgtNDI4Mi1iYzg1LTk0YjI5NWY5OWYxMj9hcGktdmVyc2lvbj0yMDIxLTA2LTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.29719.03", + "OSName/Linux", + "OSVersion/Linux.5.4.72.microsoft.standard.WSL2.1.SMP.Wed.Oct.28.23.40.43.UTC.2020", + "Microsoft.Azure.Management.Avs.AvsClient/2.0.0.1" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "10" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14971" + ], + "x-ms-request-id": [ + "b9cf84f1-6c94-4be0-80ed-2a322674cddf" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-correlation-request-id": [ + "ae480e45-df8f-42fb-b48b-ba2aea55192a" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20210514T162333Z:ae480e45-df8f-42fb-b48b-ba2aea55192a" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Cache": [ + "CONFIG_NOCACHE" + ], + "X-MSEdge-Ref": [ + "Ref A: FA327FBC8BD440AE8B1FBDE0587B82BA Ref B: BOG30EDGE0111 Ref C: 2021-05-14T16:23:33Z" + ], + "Date": [ + "Fri, 14 May 2021 16:23:33 GMT" + ], + "Content-Length": [ + "389" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\n \"id\": \"/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/anullian-rg/providers/Microsoft.AVS/privateClouds/anullian-southcentralus-runcommand/scriptExecutions/scripting_execution8504/operationstatuses/3ebcf8f9-c318-4282-bc85-94b295f99f12\",\n \"name\": \"3ebcf8f9-c318-4282-bc85-94b295f99f12\",\n \"percentComplete\": 0,\n \"startTime\": \"2021-05-14T11:18:28.3125027-05:00\",\n \"status\": \"Pending\"\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/anullian-rg/providers/Microsoft.AVS/privateClouds/anullian-southcentralus-runcommand/scriptExecutions/scripting_execution8504/operationstatuses/3ebcf8f9-c318-4282-bc85-94b295f99f12?api-version=2021-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmE3NWU3OWItZGQ5NS00MDI1LTlkYmYtM2E3YWU4ZGZmMmI1L3Jlc291cmNlR3JvdXBzL2FudWxsaWFuLXJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuQVZTL3ByaXZhdGVDbG91ZHMvYW51bGxpYW4tc291dGhjZW50cmFsdXMtcnVuY29tbWFuZC9zY3JpcHRFeGVjdXRpb25zL3NjcmlwdGluZ19leGVjdXRpb244NTA0L29wZXJhdGlvbnN0YXR1c2VzLzNlYmNmOGY5LWMzMTgtNDI4Mi1iYzg1LTk0YjI5NWY5OWYxMj9hcGktdmVyc2lvbj0yMDIxLTA2LTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.29719.03", + "OSName/Linux", + "OSVersion/Linux.5.4.72.microsoft.standard.WSL2.1.SMP.Wed.Oct.28.23.40.43.UTC.2020", + "Microsoft.Azure.Management.Avs.AvsClient/2.0.0.1" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "10" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14970" + ], + "x-ms-request-id": [ + "a5dca1b8-d5cf-4e3a-ba79-b807bd7a1e20" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-correlation-request-id": [ + "cc93a341-2694-414b-a735-b2a2190ba5f5" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20210514T162343Z:cc93a341-2694-414b-a735-b2a2190ba5f5" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Cache": [ + "CONFIG_NOCACHE" + ], + "X-MSEdge-Ref": [ + "Ref A: 69858C04486C4810A9613D7BD1D6C0B4 Ref B: BOG30EDGE0111 Ref C: 2021-05-14T16:23:43Z" + ], + "Date": [ + "Fri, 14 May 2021 16:23:43 GMT" + ], + "Content-Length": [ + "389" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\n \"id\": \"/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/anullian-rg/providers/Microsoft.AVS/privateClouds/anullian-southcentralus-runcommand/scriptExecutions/scripting_execution8504/operationstatuses/3ebcf8f9-c318-4282-bc85-94b295f99f12\",\n \"name\": \"3ebcf8f9-c318-4282-bc85-94b295f99f12\",\n \"percentComplete\": 0,\n \"startTime\": \"2021-05-14T11:18:28.3125027-05:00\",\n \"status\": \"Pending\"\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/anullian-rg/providers/Microsoft.AVS/privateClouds/anullian-southcentralus-runcommand/scriptExecutions/scripting_execution8504/operationstatuses/3ebcf8f9-c318-4282-bc85-94b295f99f12?api-version=2021-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmE3NWU3OWItZGQ5NS00MDI1LTlkYmYtM2E3YWU4ZGZmMmI1L3Jlc291cmNlR3JvdXBzL2FudWxsaWFuLXJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuQVZTL3ByaXZhdGVDbG91ZHMvYW51bGxpYW4tc291dGhjZW50cmFsdXMtcnVuY29tbWFuZC9zY3JpcHRFeGVjdXRpb25zL3NjcmlwdGluZ19leGVjdXRpb244NTA0L29wZXJhdGlvbnN0YXR1c2VzLzNlYmNmOGY5LWMzMTgtNDI4Mi1iYzg1LTk0YjI5NWY5OWYxMj9hcGktdmVyc2lvbj0yMDIxLTA2LTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.29719.03", + "OSName/Linux", + "OSVersion/Linux.5.4.72.microsoft.standard.WSL2.1.SMP.Wed.Oct.28.23.40.43.UTC.2020", + "Microsoft.Azure.Management.Avs.AvsClient/2.0.0.1" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "10" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14969" + ], + "x-ms-request-id": [ + "a692bccc-cbbc-46f8-94e3-c428f13bb452" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-correlation-request-id": [ + "630c646b-3a76-4f58-9889-7692e16aec58" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20210514T162353Z:630c646b-3a76-4f58-9889-7692e16aec58" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Cache": [ + "CONFIG_NOCACHE" + ], + "X-MSEdge-Ref": [ + "Ref A: EA92FD6E56644CFA85BB3C0239125720 Ref B: BOG30EDGE0111 Ref C: 2021-05-14T16:23:53Z" + ], + "Date": [ + "Fri, 14 May 2021 16:23:53 GMT" + ], + "Content-Length": [ + "389" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\n \"id\": \"/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/anullian-rg/providers/Microsoft.AVS/privateClouds/anullian-southcentralus-runcommand/scriptExecutions/scripting_execution8504/operationstatuses/3ebcf8f9-c318-4282-bc85-94b295f99f12\",\n \"name\": \"3ebcf8f9-c318-4282-bc85-94b295f99f12\",\n \"percentComplete\": 0,\n \"startTime\": \"2021-05-14T11:18:28.3125027-05:00\",\n \"status\": \"Pending\"\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/anullian-rg/providers/Microsoft.AVS/privateClouds/anullian-southcentralus-runcommand/scriptExecutions/scripting_execution8504/operationstatuses/3ebcf8f9-c318-4282-bc85-94b295f99f12?api-version=2021-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmE3NWU3OWItZGQ5NS00MDI1LTlkYmYtM2E3YWU4ZGZmMmI1L3Jlc291cmNlR3JvdXBzL2FudWxsaWFuLXJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuQVZTL3ByaXZhdGVDbG91ZHMvYW51bGxpYW4tc291dGhjZW50cmFsdXMtcnVuY29tbWFuZC9zY3JpcHRFeGVjdXRpb25zL3NjcmlwdGluZ19leGVjdXRpb244NTA0L29wZXJhdGlvbnN0YXR1c2VzLzNlYmNmOGY5LWMzMTgtNDI4Mi1iYzg1LTk0YjI5NWY5OWYxMj9hcGktdmVyc2lvbj0yMDIxLTA2LTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.29719.03", + "OSName/Linux", + "OSVersion/Linux.5.4.72.microsoft.standard.WSL2.1.SMP.Wed.Oct.28.23.40.43.UTC.2020", + "Microsoft.Azure.Management.Avs.AvsClient/2.0.0.1" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "10" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14968" + ], + "x-ms-request-id": [ + "a70e226c-2432-4567-ac71-c4e687cc3f19" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-correlation-request-id": [ + "d2e932cb-7578-427e-809e-99215e89c76f" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20210514T162404Z:d2e932cb-7578-427e-809e-99215e89c76f" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Cache": [ + "CONFIG_NOCACHE" + ], + "X-MSEdge-Ref": [ + "Ref A: 814C293C448249CAB5335D88A38D42A1 Ref B: BOG30EDGE0111 Ref C: 2021-05-14T16:24:03Z" + ], + "Date": [ + "Fri, 14 May 2021 16:24:03 GMT" + ], + "Content-Length": [ + "389" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\n \"id\": \"/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/anullian-rg/providers/Microsoft.AVS/privateClouds/anullian-southcentralus-runcommand/scriptExecutions/scripting_execution8504/operationstatuses/3ebcf8f9-c318-4282-bc85-94b295f99f12\",\n \"name\": \"3ebcf8f9-c318-4282-bc85-94b295f99f12\",\n \"percentComplete\": 0,\n \"startTime\": \"2021-05-14T11:18:28.3125027-05:00\",\n \"status\": \"Pending\"\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/anullian-rg/providers/Microsoft.AVS/privateClouds/anullian-southcentralus-runcommand/scriptExecutions/scripting_execution8504/operationstatuses/3ebcf8f9-c318-4282-bc85-94b295f99f12?api-version=2021-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmE3NWU3OWItZGQ5NS00MDI1LTlkYmYtM2E3YWU4ZGZmMmI1L3Jlc291cmNlR3JvdXBzL2FudWxsaWFuLXJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuQVZTL3ByaXZhdGVDbG91ZHMvYW51bGxpYW4tc291dGhjZW50cmFsdXMtcnVuY29tbWFuZC9zY3JpcHRFeGVjdXRpb25zL3NjcmlwdGluZ19leGVjdXRpb244NTA0L29wZXJhdGlvbnN0YXR1c2VzLzNlYmNmOGY5LWMzMTgtNDI4Mi1iYzg1LTk0YjI5NWY5OWYxMj9hcGktdmVyc2lvbj0yMDIxLTA2LTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.29719.03", + "OSName/Linux", + "OSVersion/Linux.5.4.72.microsoft.standard.WSL2.1.SMP.Wed.Oct.28.23.40.43.UTC.2020", + "Microsoft.Azure.Management.Avs.AvsClient/2.0.0.1" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "10" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14967" + ], + "x-ms-request-id": [ + "f3aed664-6e1b-4f93-82e8-de67a4165f4a" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-correlation-request-id": [ + "2c08b354-05ba-4bb2-a761-ea02f79d582c" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20210514T162414Z:2c08b354-05ba-4bb2-a761-ea02f79d582c" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Cache": [ + "CONFIG_NOCACHE" + ], + "X-MSEdge-Ref": [ + "Ref A: B08AA88AA21E41659C4EDCFA62875FEB Ref B: BOG30EDGE0111 Ref C: 2021-05-14T16:24:14Z" + ], + "Date": [ + "Fri, 14 May 2021 16:24:14 GMT" + ], + "Content-Length": [ + "1004" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\n \"endTime\": \"2021-04-22T14:58:05.916814-05:00\",\n \"id\": \"/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/anullian-rg/providers/Microsoft.AVS/privateClouds/anullian-southcentralus-runcommand/scriptExecutions/scripting_execution8504/operationstatuses/3ebcf8f9-c318-4282-bc85-94b295f99f12\",\n \"name\": \"3ebcf8f9-c318-4282-bc85-94b295f99f12\",\n \"percentComplete\": 100,\n \"properties\": {\n \"id\": \"/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/anullian-rg/providers/Microsoft.AVS/privateClouds/anullian-southcentralus-runcommand/scriptExecutions/scripting_execution8504\",\n \"name\": \"scripting_execution8504\",\n \"properties\": {\n \"finishedAt\": \"2021-04-22 19:58:05Z\",\n \"namedOutputs\": {\n \"key\": \"value\"\n },\n \"output\": [\n \"out\"\n ],\n \"provisioningState\": \"Succeeded\",\n \"scriptCmdletId\": \"JSDR.Configuration/1.0.16/invoke-preflightjetdrsystemcheck\",\n \"submittedAt\": \"2021-05-14 16:18:28Z\",\n \"timeout\": \"PT1H\"\n },\n \"type\": \"Microsoft.AVS/privateClouds/scriptExecutions\"\n },\n \"startTime\": \"2021-05-14T11:18:28.3125027-05:00\",\n \"status\": \"Succeeded\"\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/anullian-rg/providers/Microsoft.AVS/privateClouds/anullian-southcentralus-runcommand/scriptExecutions/scripting_execution8504?api-version=2021-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmE3NWU3OWItZGQ5NS00MDI1LTlkYmYtM2E3YWU4ZGZmMmI1L3Jlc291cmNlR3JvdXBzL2FudWxsaWFuLXJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuQVZTL3ByaXZhdGVDbG91ZHMvYW51bGxpYW4tc291dGhjZW50cmFsdXMtcnVuY29tbWFuZC9zY3JpcHRFeGVjdXRpb25zL3NjcmlwdGluZ19leGVjdXRpb244NTA0P2FwaS12ZXJzaW9uPTIwMjEtMDYtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.29719.03", + "OSName/Linux", + "OSVersion/Linux.5.4.72.microsoft.standard.WSL2.1.SMP.Wed.Oct.28.23.40.43.UTC.2020", + "Microsoft.Azure.Management.Avs.AvsClient/2.0.0.1" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14966" + ], + "x-ms-request-id": [ + "d33150e9-c39a-4f0b-a326-78bad3db32eb" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-correlation-request-id": [ + "d102d173-ffcc-4a40-aa35-40acde27058a" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20210514T162414Z:d102d173-ffcc-4a40-aa35-40acde27058a" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Cache": [ + "CONFIG_NOCACHE" + ], + "X-MSEdge-Ref": [ + "Ref A: 56B9C3A334734AA0A7D856C41C4F3DA6 Ref B: BOG30EDGE0111 Ref C: 2021-05-14T16:24:14Z" + ], + "Date": [ + "Fri, 14 May 2021 16:24:14 GMT" + ], + "Content-Length": [ + "551" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\n \"id\": \"/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/anullian-rg/providers/Microsoft.AVS/privateClouds/anullian-southcentralus-runcommand/scriptExecutions/scripting_execution8504\",\n \"name\": \"scripting_execution8504\",\n \"properties\": {\n \"finishedAt\": \"2021-04-22 19:58:05Z\",\n \"namedOutputs\": {\n \"key\": \"value\"\n },\n \"output\": [\n \"out\"\n ],\n \"provisioningState\": \"Succeeded\",\n \"scriptCmdletId\": \"JSDR.Configuration/1.0.16/invoke-preflightjetdrsystemcheck\",\n \"submittedAt\": \"2021-05-14 16:18:28Z\",\n \"timeout\": \"PT1H\"\n },\n \"type\": \"Microsoft.AVS/privateClouds/scriptExecutions\"\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/anullian-rg/providers/Microsoft.AVS/privateClouds/anullian-southcentralus-runcommand/scriptExecutions/scripting_execution8504?api-version=2021-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmE3NWU3OWItZGQ5NS00MDI1LTlkYmYtM2E3YWU4ZGZmMmI1L3Jlc291cmNlR3JvdXBzL2FudWxsaWFuLXJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuQVZTL3ByaXZhdGVDbG91ZHMvYW51bGxpYW4tc291dGhjZW50cmFsdXMtcnVuY29tbWFuZC9zY3JpcHRFeGVjdXRpb25zL3NjcmlwdGluZ19leGVjdXRpb244NTA0P2FwaS12ZXJzaW9uPTIwMjEtMDYtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "2d889cb5-af8e-4d59-93fd-b62d1aa3dfc6" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.29719.03", + "OSName/Linux", + "OSVersion/Linux.5.4.72.microsoft.standard.WSL2.1.SMP.Wed.Oct.28.23.40.43.UTC.2020", + "Microsoft.Azure.Management.Avs.AvsClient/2.0.0.1" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14965" + ], + "x-ms-request-id": [ + "24f0d18d-df58-450f-96ae-d7000d085990" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-correlation-request-id": [ + "1612be85-8ece-4e4d-b049-4fdc5d912fa5" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20210514T162415Z:1612be85-8ece-4e4d-b049-4fdc5d912fa5" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Cache": [ + "CONFIG_NOCACHE" + ], + "X-MSEdge-Ref": [ + "Ref A: 20D4018C24E64660A09BA186B02138CD Ref B: BOG30EDGE0111 Ref C: 2021-05-14T16:24:14Z" + ], + "Date": [ + "Fri, 14 May 2021 16:24:15 GMT" + ], + "Content-Length": [ + "551" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\n \"id\": \"/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/anullian-rg/providers/Microsoft.AVS/privateClouds/anullian-southcentralus-runcommand/scriptExecutions/scripting_execution8504\",\n \"name\": \"scripting_execution8504\",\n \"properties\": {\n \"finishedAt\": \"2021-04-22 19:58:05Z\",\n \"namedOutputs\": {\n \"key\": \"value\"\n },\n \"output\": [\n \"out\"\n ],\n \"provisioningState\": \"Succeeded\",\n \"scriptCmdletId\": \"JSDR.Configuration/1.0.16/invoke-preflightjetdrsystemcheck\",\n \"submittedAt\": \"2021-05-14 16:18:28Z\",\n \"timeout\": \"PT1H\"\n },\n \"type\": \"Microsoft.AVS/privateClouds/scriptExecutions\"\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/anullian-rg/providers/Microsoft.AVS/privateClouds/anullian-southcentralus-runcommand/scriptExecutions/scripting_execution8504/getExecutionLogs?api-version=2021-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmE3NWU3OWItZGQ5NS00MDI1LTlkYmYtM2E3YWU4ZGZmMmI1L3Jlc291cmNlR3JvdXBzL2FudWxsaWFuLXJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuQVZTL3ByaXZhdGVDbG91ZHMvYW51bGxpYW4tc291dGhjZW50cmFsdXMtcnVuY29tbWFuZC9zY3JpcHRFeGVjdXRpb25zL3NjcmlwdGluZ19leGVjdXRpb244NTA0L2dldEV4ZWN1dGlvbkxvZ3M/YXBpLXZlcnNpb249MjAyMS0wNi0wMQ==", + "RequestMethod": "POST", + "RequestBody": "[\n \"Output\"\n]", + "RequestHeaders": { + "x-ms-client-request-id": [ + "6a2cadec-d360-41a2-8351-4700d8412a1e" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.29719.03", + "OSName/Linux", + "OSVersion/Linux.5.4.72.microsoft.standard.WSL2.1.SMP.Wed.Oct.28.23.40.43.UTC.2020", + "Microsoft.Azure.Management.Avs.AvsClient/2.0.0.1" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "14" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1199" + ], + "x-ms-request-id": [ + "769e6a37-e6c0-4245-be6b-18a53e0363f6" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-correlation-request-id": [ + "8c1fadbd-05cd-44c1-b61f-2092dd979d28" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20210514T162415Z:8c1fadbd-05cd-44c1-b61f-2092dd979d28" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Cache": [ + "CONFIG_NOCACHE" + ], + "X-MSEdge-Ref": [ + "Ref A: E0BA6498059E4BE1B4E2196A9C3B5EFE Ref B: BOG30EDGE0111 Ref C: 2021-05-14T16:24:15Z" + ], + "Date": [ + "Fri, 14 May 2021 16:24:15 GMT" + ], + "Content-Length": [ + "35" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\n \"output\": [\n \"out\"\n ],\n \"timeout\": \"PT1H\"\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/anullian-rg/providers/Microsoft.AVS/privateClouds/anullian-southcentralus-runcommand/scriptExecutions?api-version=2021-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmE3NWU3OWItZGQ5NS00MDI1LTlkYmYtM2E3YWU4ZGZmMmI1L3Jlc291cmNlR3JvdXBzL2FudWxsaWFuLXJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuQVZTL3ByaXZhdGVDbG91ZHMvYW51bGxpYW4tc291dGhjZW50cmFsdXMtcnVuY29tbWFuZC9zY3JpcHRFeGVjdXRpb25zP2FwaS12ZXJzaW9uPTIwMjEtMDYtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "ebc9c073-1b6a-4aea-b5b6-4f247144246e" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.29719.03", + "OSName/Linux", + "OSVersion/Linux.5.4.72.microsoft.standard.WSL2.1.SMP.Wed.Oct.28.23.40.43.UTC.2020", + "Microsoft.Azure.Management.Avs.AvsClient/2.0.0.1" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14964" + ], + "x-ms-request-id": [ + "8f672292-406f-45f0-9d58-ea26523d0742" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-correlation-request-id": [ + "7f6ac9f8-4c10-48b6-be38-2845be0a137b" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20210514T162416Z:7f6ac9f8-4c10-48b6-be38-2845be0a137b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Cache": [ + "CONFIG_NOCACHE" + ], + "X-MSEdge-Ref": [ + "Ref A: 5F7F6DF605A949A0BE78DEB37901974F Ref B: BOG30EDGE0111 Ref C: 2021-05-14T16:24:15Z" + ], + "Date": [ + "Fri, 14 May 2021 16:24:16 GMT" + ], + "Content-Length": [ + "3902" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\n \"value\": [\n {\n \"id\": \"/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/anullian-rg/providers/Microsoft.AVS/privateClouds/anullian-southcentralus-runcommand/scriptExecutions/anullian-Invoke-PreflightJetDRSystemCheck\",\n \"name\": \"anullian-Invoke-PreflightJetDRSystemCheck\",\n \"properties\": {\n \"namedOutputs\": {},\n \"output\": [],\n \"provisioningState\": \"Pending\",\n \"retention\": \"PT10H\",\n \"scriptCmdletId\": \"JSDR.Configuration/1.0.16/Invoke-PreflightJetDRSystemCheck\",\n \"submittedAt\": \"2021-05-14 14:16:10Z\",\n \"timeout\": \"PT2H\"\n },\n \"type\": \"Microsoft.AVS/privateClouds/scriptExecutions\"\n },\n {\n \"id\": \"/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/anullian-rg/providers/Microsoft.AVS/privateClouds/anullian-southcentralus-runcommand/scriptExecutions/dabechertest\",\n \"name\": \"dabechertest\",\n \"properties\": {\n \"namedOutputs\": {},\n \"output\": [\n \"out\"\n ],\n \"parameters\": [\n {\n \"name\": \"Cluster\",\n \"type\": \"Value\",\n \"value\": \"cluster-1\"\n },\n {\n \"name\": \"DrsGroupName\",\n \"type\": \"Value\",\n \"value\": \"drsgrouptest\"\n },\n {\n \"name\": \"DrsRuleName\",\n \"type\": \"Value\",\n \"value\": \"drsruletest\"\n },\n {\n \"name\": \"VMLHostist\",\n \"type\": \"Value\",\n \"value\": \"testvmhost-1\"\n },\n {\n \"name\": \"VMList\",\n \"type\": \"Value\",\n \"value\": \"testvm-1, testvm-2\"\n }\n ],\n \"provisioningState\": \"Pending\",\n \"retention\": \"PT30M\",\n \"scriptCmdletId\": \"Azure.AVSPowerCLI/0.1.42/New-AvsDrsElevationRule\",\n \"submittedAt\": \"2021-05-14 14:36:54Z\",\n \"timeout\": \"PT30M\"\n },\n \"type\": \"Microsoft.AVS/privateClouds/scriptExecutions\"\n },\n {\n \"id\": \"/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/anullian-rg/providers/Microsoft.AVS/privateClouds/anullian-southcentralus-runcommand/scriptExecutions/scripting_execution1503\",\n \"name\": \"scripting_execution1503\",\n \"properties\": {\n \"namedOutputs\": {},\n \"output\": [],\n \"provisioningState\": \"Pending\",\n \"scriptCmdletId\": \"JSDR.Configuration/1.0.16/invoke-preflightjetdrsystemcheck\",\n \"submittedAt\": \"2021-05-14 16:13:06Z\",\n \"timeout\": \"PT1H\"\n },\n \"type\": \"Microsoft.AVS/privateClouds/scriptExecutions\"\n },\n {\n \"id\": \"/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/anullian-rg/providers/Microsoft.AVS/privateClouds/anullian-southcentralus-runcommand/scriptExecutions/scripting_execution4094\",\n \"name\": \"scripting_execution4094\",\n \"properties\": {\n \"namedOutputs\": {},\n \"output\": [],\n \"provisioningState\": \"Pending\",\n \"scriptCmdletId\": \"JSDR.Configuration/1.0.16/invoke-preflightjetdrsystemcheck\",\n \"submittedAt\": \"2021-05-14 16:09:46Z\",\n \"timeout\": \"PT1H\"\n },\n \"type\": \"Microsoft.AVS/privateClouds/scriptExecutions\"\n },\n {\n \"id\": \"/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/anullian-rg/providers/Microsoft.AVS/privateClouds/anullian-southcentralus-runcommand/scriptExecutions/scripting_execution6448\",\n \"name\": \"scripting_execution6448\",\n \"properties\": {\n \"namedOutputs\": {},\n \"output\": [],\n \"provisioningState\": \"Pending\",\n \"scriptCmdletId\": \"JSDR.Configuration/1.0.16/invoke-preflightjetdrsystemcheck\",\n \"submittedAt\": \"2021-05-12 20:50:00Z\",\n \"timeout\": \"PT1H\"\n },\n \"type\": \"Microsoft.AVS/privateClouds/scriptExecutions\"\n },\n {\n \"id\": \"/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/anullian-rg/providers/Microsoft.AVS/privateClouds/anullian-southcentralus-runcommand/scriptExecutions/scripting_execution8504\",\n \"name\": \"scripting_execution8504\",\n \"properties\": {\n \"finishedAt\": \"2021-04-22 19:58:05Z\",\n \"namedOutputs\": {\n \"key\": \"value\"\n },\n \"output\": [\n \"out\"\n ],\n \"provisioningState\": \"Succeeded\",\n \"scriptCmdletId\": \"JSDR.Configuration/1.0.16/invoke-preflightjetdrsystemcheck\",\n \"submittedAt\": \"2021-05-14 16:18:28Z\",\n \"timeout\": \"PT1H\"\n },\n \"type\": \"Microsoft.AVS/privateClouds/scriptExecutions\"\n },\n {\n \"id\": \"/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/anullian-rg/providers/Microsoft.AVS/privateClouds/anullian-southcentralus-runcommand/scriptExecutions/scripting_execution9592\",\n \"name\": \"scripting_execution9592\",\n \"properties\": {\n \"namedOutputs\": {},\n \"output\": [],\n \"provisioningState\": \"Pending\",\n \"scriptCmdletId\": \"JSDR.Configuration/1.0.16/invoke-preflightjetdrsystemcheck\",\n \"submittedAt\": \"2021-05-14 16:05:51Z\",\n \"timeout\": \"PT1H\"\n },\n \"type\": \"Microsoft.AVS/privateClouds/scriptExecutions\"\n }\n ]\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/anullian-rg/providers/Microsoft.AVS/privateClouds/anullian-southcentralus-runcommand/scriptExecutions/scripting_execution8504?api-version=2021-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmE3NWU3OWItZGQ5NS00MDI1LTlkYmYtM2E3YWU4ZGZmMmI1L3Jlc291cmNlR3JvdXBzL2FudWxsaWFuLXJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuQVZTL3ByaXZhdGVDbG91ZHMvYW51bGxpYW4tc291dGhjZW50cmFsdXMtcnVuY29tbWFuZC9zY3JpcHRFeGVjdXRpb25zL3NjcmlwdGluZ19leGVjdXRpb244NTA0P2FwaS12ZXJzaW9uPTIwMjEtMDYtMDE=", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "716ae74a-3f92-407c-94c1-27a7127bd650" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.29719.03", + "OSName/Linux", + "OSVersion/Linux.5.4.72.microsoft.standard.WSL2.1.SMP.Wed.Oct.28.23.40.43.UTC.2020", + "Microsoft.Azure.Management.Avs.AvsClient/2.0.0.1" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-deletes": [ + "14999" + ], + "x-ms-request-id": [ + "c5794486-8108-4f3d-8ca8-633700cdc944" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-correlation-request-id": [ + "99585dc3-d00e-46a0-a835-40d2c89a6bb5" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20210514T162416Z:99585dc3-d00e-46a0-a835-40d2c89a6bb5" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Cache": [ + "CONFIG_NOCACHE" + ], + "X-MSEdge-Ref": [ + "Ref A: 8FC870EC95C9409690FCFFB44B9BF44D Ref B: BOG30EDGE0111 Ref C: 2021-05-14T16:24:16Z" + ], + "Date": [ + "Fri, 14 May 2021 16:24:16 GMT" + ], + "Content-Type": [ + "text/html" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 200 + } + ], + "Names": { + "ScriptExecutionsAll": [ + "scripting_execution8504" + ] + }, + "Variables": { + "SubscriptionId": "ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5" + } +} \ No newline at end of file diff --git a/sdk/avs/Microsoft.Azure.Management.Avs/tests/SessionRecords/ScriptingTests/ScriptPackagesAll.json b/sdk/avs/Microsoft.Azure.Management.Avs/tests/SessionRecords/ScriptingTests/ScriptPackagesAll.json new file mode 100644 index 000000000000..786ac0afec06 --- /dev/null +++ b/sdk/avs/Microsoft.Azure.Management.Avs/tests/SessionRecords/ScriptingTests/ScriptPackagesAll.json @@ -0,0 +1,140 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/anullian-rg/providers/Microsoft.AVS/privateClouds/anullian-southcentralus-runcommand/scriptPackages?api-version=2021-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmE3NWU3OWItZGQ5NS00MDI1LTlkYmYtM2E3YWU4ZGZmMmI1L3Jlc291cmNlR3JvdXBzL2FudWxsaWFuLXJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuQVZTL3ByaXZhdGVDbG91ZHMvYW51bGxpYW4tc291dGhjZW50cmFsdXMtcnVuY29tbWFuZC9zY3JpcHRQYWNrYWdlcz9hcGktdmVyc2lvbj0yMDIxLTA2LTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "a8dd177d-49dc-43f1-9c44-615b2f2461e9" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.29719.03", + "OSName/Linux", + "OSVersion/Linux.5.4.72.microsoft.standard.WSL2.1.SMP.Wed.Oct.28.23.40.43.UTC.2020", + "Microsoft.Azure.Management.Avs.AvsClient/2.0.0.1" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14999" + ], + "x-ms-request-id": [ + "e5242ce4-7cc1-46ff-a6d6-b038126d6fdd" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-correlation-request-id": [ + "ee31f3e4-e058-41dc-8ddf-7613e941a4ad" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20210512T195101Z:ee31f3e4-e058-41dc-8ddf-7613e941a4ad" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Cache": [ + "CONFIG_NOCACHE" + ], + "X-MSEdge-Ref": [ + "Ref A: 61F7686870C546CAA3693C64E49DC81B Ref B: BOG30EDGE0120 Ref C: 2021-05-12T19:51:00Z" + ], + "Date": [ + "Wed, 12 May 2021 19:51:00 GMT" + ], + "Content-Length": [ + "425" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\n \"value\": [\n {\n \"id\": \"/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/anullian-rg/providers/Microsoft.AVS/privateClouds/anullian-southcentralus-runcommand/scriptPackages/JSDR.Configuration@1.0.16\",\n \"name\": \"JSDR.Configuration@1.0.16\",\n \"properties\": {\n \"description\": \"JetStream scripting packages for configuration\",\n \"name\": \"JSDR.Configuration\",\n \"version\": \"1.0.16\"\n },\n \"type\": \"Microsoft.AVS/privateClouds/scriptPackages\"\n }\n ]\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/anullian-rg/providers/Microsoft.AVS/privateClouds/anullian-southcentralus-runcommand/scriptPackages/JSDR.Configuration%401.0.16?api-version=2021-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmE3NWU3OWItZGQ5NS00MDI1LTlkYmYtM2E3YWU4ZGZmMmI1L3Jlc291cmNlR3JvdXBzL2FudWxsaWFuLXJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuQVZTL3ByaXZhdGVDbG91ZHMvYW51bGxpYW4tc291dGhjZW50cmFsdXMtcnVuY29tbWFuZC9zY3JpcHRQYWNrYWdlcy9KU0RSLkNvbmZpZ3VyYXRpb24lNDAxLjAuMTY/YXBpLXZlcnNpb249MjAyMS0wNi0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "1469d888-0482-46e4-8dcb-c45966797c70" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.29719.03", + "OSName/Linux", + "OSVersion/Linux.5.4.72.microsoft.standard.WSL2.1.SMP.Wed.Oct.28.23.40.43.UTC.2020", + "Microsoft.Azure.Management.Avs.AvsClient/2.0.0.1" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14998" + ], + "x-ms-request-id": [ + "cc40f319-1e95-4a88-b98b-05250c9638c7" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-correlation-request-id": [ + "9ed01a25-eeb0-40c8-b7d7-44167c25f6fb" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20210512T195101Z:9ed01a25-eeb0-40c8-b7d7-44167c25f6fb" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Cache": [ + "CONFIG_NOCACHE" + ], + "X-MSEdge-Ref": [ + "Ref A: 61034DCCD7E8478BACE336BE60B09A50 Ref B: BOG30EDGE0120 Ref C: 2021-05-12T19:51:01Z" + ], + "Date": [ + "Wed, 12 May 2021 19:51:00 GMT" + ], + "Content-Length": [ + "413" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\n \"id\": \"/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/anullian-rg/providers/Microsoft.AVS/privateClouds/anullian-southcentralus-runcommand/scriptPackages/JSDR.Configuration@1.0.16\",\n \"name\": \"JSDR.Configuration@1.0.16\",\n \"properties\": {\n \"description\": \"JetStream scripting packages for configuration\",\n \"name\": \"JSDR.Configuration\",\n \"version\": \"1.0.16\"\n },\n \"type\": \"Microsoft.AVS/privateClouds/scriptPackages\"\n}", + "StatusCode": 200 + } + ], + "Names": {}, + "Variables": { + "SubscriptionId": "ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5" + } +} \ No newline at end of file diff --git a/sdk/avs/Microsoft.Azure.Management.Avs/tests/SessionRecords/WorkloadNetworksTests/WorkloadNetworksDhcp.json b/sdk/avs/Microsoft.Azure.Management.Avs/tests/SessionRecords/WorkloadNetworksTests/WorkloadNetworksDhcp.json new file mode 100644 index 000000000000..428cef71d545 --- /dev/null +++ b/sdk/avs/Microsoft.Azure.Management.Avs/tests/SessionRecords/WorkloadNetworksTests/WorkloadNetworksDhcp.json @@ -0,0 +1,707 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/2fdcc35c-1cea-4759-8cbd-d3d02f37745d/resourceGroups/wezamlyn-test-117/providers/Microsoft.AVS/privateClouds/wezamlyn-test-117/workloadNetworks/default/dhcpConfigurations/dhcpRelay?api-version=2021-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMmZkY2MzNWMtMWNlYS00NzU5LThjYmQtZDNkMDJmMzc3NDVkL3Jlc291cmNlR3JvdXBzL3dlemFtbHluLXRlc3QtMTE3L3Byb3ZpZGVycy9NaWNyb3NvZnQuQVZTL3ByaXZhdGVDbG91ZHMvd2V6YW1seW4tdGVzdC0xMTcvd29ya2xvYWROZXR3b3Jrcy9kZWZhdWx0L2RoY3BDb25maWd1cmF0aW9ucy9kaGNwUmVsYXk/YXBpLXZlcnNpb249MjAyMS0wNi0wMQ==", + "RequestMethod": "PUT", + "RequestBody": "{\n \"properties\": {\n \"dhcpType\": \"RELAY\",\n \"serverAddresses\": [\n \"10.1.1.1\",\n \"10.1.1.2\"\n ],\n \"displayName\": \"dhcpRelay\"\n }\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "f67785de-4ee5-4ca6-941f-353c571fc29e" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.30015.01", + "OSName/Linux", + "OSVersion/Linux.5.4.0.73.generic.82.18.04.1.Ubuntu.SMP.Fri.Apr.16.15.10.02.UTC.2021", + "Microsoft.Azure.Management.Avs.AvsClient/2.0.0.1" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "148" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "10" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1199" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/2fdcc35c-1cea-4759-8cbd-d3d02f37745d/resourceGroups/wezamlyn-test-117/providers/Microsoft.AVS/privateClouds/wezamlyn-test-117/workloadNetworks/default/dhcpConfigurations/dhcpRelay/operationstatuses/c410abfe-940b-4fce-82ed-3d7203411ead?api-version=2021-06-01" + ], + "x-ms-request-id": [ + "187e6be3-adbb-47fe-a330-a3485cac772d" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "nginx" + ], + "x-ms-correlation-request-id": [ + "ff45c02b-7e2b-47fa-bc35-211b4983be31" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20210525T232315Z:ff45c02b-7e2b-47fa-bc35-211b4983be31" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Tue, 25 May 2021 23:23:14 GMT" + ], + "Content-Length": [ + "428" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\n \"id\": \"/subscriptions/2fdcc35c-1cea-4759-8cbd-d3d02f37745d/resourceGroups/wezamlyn-test-117/providers/Microsoft.AVS/privateClouds/wezamlyn-test-117/workloadNetworks/default/dhcpConfigurations/dhcpRelay\",\n \"name\": \"dhcpRelay\",\n \"properties\": {\n \"dhcpType\": \"RELAY\",\n \"displayName\": \"dhcpRelay\",\n \"provisioningState\": \"Building\",\n \"serverAddresses\": [\n \"10.1.1.1\",\n \"10.1.1.2\"\n ]\n },\n \"type\": \"Microsoft.AVS/privateClouds/workloadNetworks/dhcpConfigurations\"\n}", + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/2fdcc35c-1cea-4759-8cbd-d3d02f37745d/resourceGroups/wezamlyn-test-117/providers/Microsoft.AVS/privateClouds/wezamlyn-test-117/workloadNetworks/default/dhcpConfigurations/dhcpRelay/operationstatuses/c410abfe-940b-4fce-82ed-3d7203411ead?api-version=2021-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMmZkY2MzNWMtMWNlYS00NzU5LThjYmQtZDNkMDJmMzc3NDVkL3Jlc291cmNlR3JvdXBzL3dlemFtbHluLXRlc3QtMTE3L3Byb3ZpZGVycy9NaWNyb3NvZnQuQVZTL3ByaXZhdGVDbG91ZHMvd2V6YW1seW4tdGVzdC0xMTcvd29ya2xvYWROZXR3b3Jrcy9kZWZhdWx0L2RoY3BDb25maWd1cmF0aW9ucy9kaGNwUmVsYXkvb3BlcmF0aW9uc3RhdHVzZXMvYzQxMGFiZmUtOTQwYi00ZmNlLTgyZWQtM2Q3MjAzNDExZWFkP2FwaS12ZXJzaW9uPTIwMjEtMDYtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.30015.01", + "OSName/Linux", + "OSVersion/Linux.5.4.0.73.generic.82.18.04.1.Ubuntu.SMP.Fri.Apr.16.15.10.02.UTC.2021", + "Microsoft.Azure.Management.Avs.AvsClient/2.0.0.1" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "10" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11999" + ], + "x-ms-request-id": [ + "d7f7203d-e8d1-409b-9e1e-2aa494eae496" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "nginx" + ], + "x-ms-correlation-request-id": [ + "d5f58abd-3423-4373-92c4-e36b8f35aab0" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20210525T232326Z:d5f58abd-3423-4373-92c4-e36b8f35aab0" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Tue, 25 May 2021 23:23:25 GMT" + ], + "Content-Length": [ + "897" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\n \"endTime\": \"2021-05-25T16:23:15.6744212-07:00\",\n \"id\": \"/subscriptions/2fdcc35c-1cea-4759-8cbd-d3d02f37745d/resourceGroups/wezamlyn-test-117/providers/Microsoft.AVS/privateClouds/wezamlyn-test-117/workloadNetworks/default/dhcpConfigurations/dhcpRelay/operationstatuses/c410abfe-940b-4fce-82ed-3d7203411ead\",\n \"name\": \"c410abfe-940b-4fce-82ed-3d7203411ead\",\n \"percentComplete\": 100,\n \"properties\": {\n \"id\": \"/subscriptions/2fdcc35c-1cea-4759-8cbd-d3d02f37745d/resourceGroups/wezamlyn-test-117/providers/Microsoft.AVS/privateClouds/wezamlyn-test-117/workloadNetworks/default/dhcpConfigurations/dhcpRelay\",\n \"name\": \"dhcpRelay\",\n \"properties\": {\n \"dhcpType\": \"RELAY\",\n \"displayName\": \"dhcpRelay\",\n \"provisioningState\": \"Fulfilled\",\n \"revision\": 0,\n \"serverAddresses\": [\n \"10.1.1.2\",\n \"10.1.1.1\"\n ]\n },\n \"type\": \"Microsoft.AVS/privateClouds/workloadNetworks/dhcpConfigurations\"\n },\n \"startTime\": \"2021-05-25T16:23:14.9102404-07:00\",\n \"status\": \"Succeeded\"\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/2fdcc35c-1cea-4759-8cbd-d3d02f37745d/resourceGroups/wezamlyn-test-117/providers/Microsoft.AVS/privateClouds/wezamlyn-test-117/workloadNetworks/default/dhcpConfigurations/dhcpRelay?api-version=2021-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMmZkY2MzNWMtMWNlYS00NzU5LThjYmQtZDNkMDJmMzc3NDVkL3Jlc291cmNlR3JvdXBzL3dlemFtbHluLXRlc3QtMTE3L3Byb3ZpZGVycy9NaWNyb3NvZnQuQVZTL3ByaXZhdGVDbG91ZHMvd2V6YW1seW4tdGVzdC0xMTcvd29ya2xvYWROZXR3b3Jrcy9kZWZhdWx0L2RoY3BDb25maWd1cmF0aW9ucy9kaGNwUmVsYXk/YXBpLXZlcnNpb249MjAyMS0wNi0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.30015.01", + "OSName/Linux", + "OSVersion/Linux.5.4.0.73.generic.82.18.04.1.Ubuntu.SMP.Fri.Apr.16.15.10.02.UTC.2021", + "Microsoft.Azure.Management.Avs.AvsClient/2.0.0.1" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11998" + ], + "x-ms-request-id": [ + "b1515842-7bd4-4e66-8ec7-d7061b254e74" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "nginx" + ], + "x-ms-correlation-request-id": [ + "6dd9aaa8-6090-49a1-ab23-06c00f0f2385" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20210525T232326Z:6dd9aaa8-6090-49a1-ab23-06c00f0f2385" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Tue, 25 May 2021 23:23:26 GMT" + ], + "Content-Length": [ + "442" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\n \"id\": \"/subscriptions/2fdcc35c-1cea-4759-8cbd-d3d02f37745d/resourceGroups/wezamlyn-test-117/providers/Microsoft.AVS/privateClouds/wezamlyn-test-117/workloadNetworks/default/dhcpConfigurations/dhcpRelay\",\n \"name\": \"dhcpRelay\",\n \"properties\": {\n \"dhcpType\": \"RELAY\",\n \"displayName\": \"dhcpRelay\",\n \"provisioningState\": \"Fulfilled\",\n \"revision\": 0,\n \"serverAddresses\": [\n \"10.1.1.2\",\n \"10.1.1.1\"\n ]\n },\n \"type\": \"Microsoft.AVS/privateClouds/workloadNetworks/dhcpConfigurations\"\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/2fdcc35c-1cea-4759-8cbd-d3d02f37745d/resourceGroups/wezamlyn-test-117/providers/Microsoft.AVS/privateClouds/wezamlyn-test-117/workloadNetworks/default/dhcpConfigurations/dhcpRelay?api-version=2021-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMmZkY2MzNWMtMWNlYS00NzU5LThjYmQtZDNkMDJmMzc3NDVkL3Jlc291cmNlR3JvdXBzL3dlemFtbHluLXRlc3QtMTE3L3Byb3ZpZGVycy9NaWNyb3NvZnQuQVZTL3ByaXZhdGVDbG91ZHMvd2V6YW1seW4tdGVzdC0xMTcvd29ya2xvYWROZXR3b3Jrcy9kZWZhdWx0L2RoY3BDb25maWd1cmF0aW9ucy9kaGNwUmVsYXk/YXBpLXZlcnNpb249MjAyMS0wNi0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "c1e374bd-85b4-4c2e-a81b-b80496fa4341" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.30015.01", + "OSName/Linux", + "OSVersion/Linux.5.4.0.73.generic.82.18.04.1.Ubuntu.SMP.Fri.Apr.16.15.10.02.UTC.2021", + "Microsoft.Azure.Management.Avs.AvsClient/2.0.0.1" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11996" + ], + "x-ms-request-id": [ + "38898e8f-5950-488f-a194-87186ecd22e6" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "nginx" + ], + "x-ms-correlation-request-id": [ + "14f53fb2-dfef-481b-a4eb-b60a22db703e" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20210525T232328Z:14f53fb2-dfef-481b-a4eb-b60a22db703e" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Tue, 25 May 2021 23:23:28 GMT" + ], + "Content-Length": [ + "442" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\n \"id\": \"/subscriptions/2fdcc35c-1cea-4759-8cbd-d3d02f37745d/resourceGroups/wezamlyn-test-117/providers/Microsoft.AVS/privateClouds/wezamlyn-test-117/workloadNetworks/default/dhcpConfigurations/dhcpRelay\",\n \"name\": \"dhcpRelay\",\n \"properties\": {\n \"dhcpType\": \"RELAY\",\n \"displayName\": \"dhcpRelay\",\n \"provisioningState\": \"Fulfilled\",\n \"revision\": 0,\n \"serverAddresses\": [\n \"10.1.1.2\",\n \"10.1.1.1\"\n ]\n },\n \"type\": \"Microsoft.AVS/privateClouds/workloadNetworks/dhcpConfigurations\"\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/2fdcc35c-1cea-4759-8cbd-d3d02f37745d/resourceGroups/wezamlyn-test-117/providers/Microsoft.AVS/privateClouds/wezamlyn-test-117/workloadNetworks/default/dhcpConfigurations/dhcpRelay?api-version=2021-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMmZkY2MzNWMtMWNlYS00NzU5LThjYmQtZDNkMDJmMzc3NDVkL3Jlc291cmNlR3JvdXBzL3dlemFtbHluLXRlc3QtMTE3L3Byb3ZpZGVycy9NaWNyb3NvZnQuQVZTL3ByaXZhdGVDbG91ZHMvd2V6YW1seW4tdGVzdC0xMTcvd29ya2xvYWROZXR3b3Jrcy9kZWZhdWx0L2RoY3BDb25maWd1cmF0aW9ucy9kaGNwUmVsYXk/YXBpLXZlcnNpb249MjAyMS0wNi0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.30015.01", + "OSName/Linux", + "OSVersion/Linux.5.4.0.73.generic.82.18.04.1.Ubuntu.SMP.Fri.Apr.16.15.10.02.UTC.2021", + "Microsoft.Azure.Management.Avs.AvsClient/2.0.0.1" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11994" + ], + "x-ms-request-id": [ + "5d5a3a5b-dcbe-44ef-b466-118c20b928cb" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "nginx" + ], + "x-ms-correlation-request-id": [ + "29f996ec-cfbb-4ed8-a00a-680c58b5dfa4" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20210525T232340Z:29f996ec-cfbb-4ed8-a00a-680c58b5dfa4" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Tue, 25 May 2021 23:23:40 GMT" + ], + "Content-Length": [ + "450" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\n \"id\": \"/subscriptions/2fdcc35c-1cea-4759-8cbd-d3d02f37745d/resourceGroups/wezamlyn-test-117/providers/Microsoft.AVS/privateClouds/wezamlyn-test-117/workloadNetworks/default/dhcpConfigurations/dhcpRelay\",\n \"name\": \"dhcpRelay\",\n \"properties\": {\n \"dhcpType\": \"RELAY\",\n \"displayName\": \"modifiedDhcpRelay\",\n \"provisioningState\": \"Fulfilled\",\n \"revision\": 1,\n \"serverAddresses\": [\n \"10.1.1.2\",\n \"10.1.1.1\"\n ]\n },\n \"type\": \"Microsoft.AVS/privateClouds/workloadNetworks/dhcpConfigurations\"\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/2fdcc35c-1cea-4759-8cbd-d3d02f37745d/resourceGroups/wezamlyn-test-117/providers/Microsoft.AVS/privateClouds/wezamlyn-test-117/workloadNetworks/default/dhcpConfigurations?api-version=2021-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMmZkY2MzNWMtMWNlYS00NzU5LThjYmQtZDNkMDJmMzc3NDVkL3Jlc291cmNlR3JvdXBzL3dlemFtbHluLXRlc3QtMTE3L3Byb3ZpZGVycy9NaWNyb3NvZnQuQVZTL3ByaXZhdGVDbG91ZHMvd2V6YW1seW4tdGVzdC0xMTcvd29ya2xvYWROZXR3b3Jrcy9kZWZhdWx0L2RoY3BDb25maWd1cmF0aW9ucz9hcGktdmVyc2lvbj0yMDIxLTA2LTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "4c4c0644-cbbb-4952-a097-6ec3a45dbbdf" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.30015.01", + "OSName/Linux", + "OSVersion/Linux.5.4.0.73.generic.82.18.04.1.Ubuntu.SMP.Fri.Apr.16.15.10.02.UTC.2021", + "Microsoft.Azure.Management.Avs.AvsClient/2.0.0.1" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11997" + ], + "x-ms-request-id": [ + "8a43b340-a144-41c3-8430-b3ce3c27e1b2" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "nginx" + ], + "x-ms-correlation-request-id": [ + "2ad239e1-fecb-4264-b72d-0176d135ca0c" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20210525T232327Z:2ad239e1-fecb-4264-b72d-0176d135ca0c" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Tue, 25 May 2021 23:23:27 GMT" + ], + "Content-Length": [ + "454" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\n \"value\": [\n {\n \"id\": \"/subscriptions/2fdcc35c-1cea-4759-8cbd-d3d02f37745d/resourceGroups/wezamlyn-test-117/providers/Microsoft.AVS/privateClouds/wezamlyn-test-117/workloadNetworks/default/dhcpConfigurations/dhcprelay\",\n \"name\": \"dhcprelay\",\n \"properties\": {\n \"dhcpType\": \"RELAY\",\n \"displayName\": \"dhcpRelay\",\n \"provisioningState\": \"Fulfilled\",\n \"revision\": 0,\n \"serverAddresses\": [\n \"10.1.1.2\",\n \"10.1.1.1\"\n ]\n },\n \"type\": \"Microsoft.AVS/privateClouds/workloadNetworks/dhcpConfigurations\"\n }\n ]\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/2fdcc35c-1cea-4759-8cbd-d3d02f37745d/resourceGroups/wezamlyn-test-117/providers/Microsoft.AVS/privateClouds/wezamlyn-test-117/workloadNetworks/default/dhcpConfigurations/dhcpRelay?api-version=2021-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMmZkY2MzNWMtMWNlYS00NzU5LThjYmQtZDNkMDJmMzc3NDVkL3Jlc291cmNlR3JvdXBzL3dlemFtbHluLXRlc3QtMTE3L3Byb3ZpZGVycy9NaWNyb3NvZnQuQVZTL3ByaXZhdGVDbG91ZHMvd2V6YW1seW4tdGVzdC0xMTcvd29ya2xvYWROZXR3b3Jrcy9kZWZhdWx0L2RoY3BDb25maWd1cmF0aW9ucy9kaGNwUmVsYXk/YXBpLXZlcnNpb249MjAyMS0wNi0wMQ==", + "RequestMethod": "PATCH", + "RequestBody": "{\n \"properties\": {\n \"dhcpType\": \"RELAY\",\n \"serverAddresses\": [\n \"10.1.1.1\",\n \"10.1.1.2\"\n ],\n \"displayName\": \"modifiedDhcpRelay\"\n }\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "6ff68e8e-3180-468c-98f0-cffc72daf097" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.30015.01", + "OSName/Linux", + "OSVersion/Linux.5.4.0.73.generic.82.18.04.1.Ubuntu.SMP.Fri.Apr.16.15.10.02.UTC.2021", + "Microsoft.Azure.Management.Avs.AvsClient/2.0.0.1" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "156" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "10" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1198" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/2fdcc35c-1cea-4759-8cbd-d3d02f37745d/resourceGroups/wezamlyn-test-117/providers/Microsoft.AVS/privateClouds/wezamlyn-test-117/workloadNetworks/default/dhcpConfigurations/dhcpRelay/operationstatuses/fc4bf086-6711-4726-82bf-e68777ba79dc?api-version=2021-06-01" + ], + "x-ms-request-id": [ + "da829d46-282f-4990-bf7c-67948c03c736" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "nginx" + ], + "x-ms-correlation-request-id": [ + "4e841d7d-6f1d-4b86-9611-166853b0e691" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20210525T232329Z:4e841d7d-6f1d-4b86-9611-166853b0e691" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Tue, 25 May 2021 23:23:29 GMT" + ], + "Content-Length": [ + "449" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\n \"id\": \"/subscriptions/2fdcc35c-1cea-4759-8cbd-d3d02f37745d/resourceGroups/wezamlyn-test-117/providers/Microsoft.AVS/privateClouds/wezamlyn-test-117/workloadNetworks/default/dhcpConfigurations/dhcpRelay\",\n \"name\": \"dhcpRelay\",\n \"properties\": {\n \"dhcpType\": \"RELAY\",\n \"displayName\": \"modifiedDhcpRelay\",\n \"provisioningState\": \"Building\",\n \"revision\": 0,\n \"serverAddresses\": [\n \"10.1.1.1\",\n \"10.1.1.2\"\n ]\n },\n \"type\": \"Microsoft.AVS/privateClouds/workloadNetworks/dhcpConfigurations\"\n}", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/2fdcc35c-1cea-4759-8cbd-d3d02f37745d/resourceGroups/wezamlyn-test-117/providers/Microsoft.AVS/privateClouds/wezamlyn-test-117/workloadNetworks/default/dhcpConfigurations/dhcpRelay/operationstatuses/fc4bf086-6711-4726-82bf-e68777ba79dc?api-version=2021-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMmZkY2MzNWMtMWNlYS00NzU5LThjYmQtZDNkMDJmMzc3NDVkL3Jlc291cmNlR3JvdXBzL3dlemFtbHluLXRlc3QtMTE3L3Byb3ZpZGVycy9NaWNyb3NvZnQuQVZTL3ByaXZhdGVDbG91ZHMvd2V6YW1seW4tdGVzdC0xMTcvd29ya2xvYWROZXR3b3Jrcy9kZWZhdWx0L2RoY3BDb25maWd1cmF0aW9ucy9kaGNwUmVsYXkvb3BlcmF0aW9uc3RhdHVzZXMvZmM0YmYwODYtNjcxMS00NzI2LTgyYmYtZTY4Nzc3YmE3OWRjP2FwaS12ZXJzaW9uPTIwMjEtMDYtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.30015.01", + "OSName/Linux", + "OSVersion/Linux.5.4.0.73.generic.82.18.04.1.Ubuntu.SMP.Fri.Apr.16.15.10.02.UTC.2021", + "Microsoft.Azure.Management.Avs.AvsClient/2.0.0.1" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "10" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11995" + ], + "x-ms-request-id": [ + "b4c7d302-3ae0-4fcb-b67a-c70cfbad211b" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "nginx" + ], + "x-ms-correlation-request-id": [ + "4c17b9b4-0eb4-4330-8158-6aeccdc8ac55" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20210525T232339Z:4c17b9b4-0eb4-4330-8158-6aeccdc8ac55" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Tue, 25 May 2021 23:23:39 GMT" + ], + "Content-Length": [ + "905" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\n \"endTime\": \"2021-05-25T16:23:36.6713791-07:00\",\n \"id\": \"/subscriptions/2fdcc35c-1cea-4759-8cbd-d3d02f37745d/resourceGroups/wezamlyn-test-117/providers/Microsoft.AVS/privateClouds/wezamlyn-test-117/workloadNetworks/default/dhcpConfigurations/dhcpRelay/operationstatuses/fc4bf086-6711-4726-82bf-e68777ba79dc\",\n \"name\": \"fc4bf086-6711-4726-82bf-e68777ba79dc\",\n \"percentComplete\": 100,\n \"properties\": {\n \"id\": \"/subscriptions/2fdcc35c-1cea-4759-8cbd-d3d02f37745d/resourceGroups/wezamlyn-test-117/providers/Microsoft.AVS/privateClouds/wezamlyn-test-117/workloadNetworks/default/dhcpConfigurations/dhcpRelay\",\n \"name\": \"dhcpRelay\",\n \"properties\": {\n \"dhcpType\": \"RELAY\",\n \"displayName\": \"modifiedDhcpRelay\",\n \"provisioningState\": \"Fulfilled\",\n \"revision\": 1,\n \"serverAddresses\": [\n \"10.1.1.2\",\n \"10.1.1.1\"\n ]\n },\n \"type\": \"Microsoft.AVS/privateClouds/workloadNetworks/dhcpConfigurations\"\n },\n \"startTime\": \"2021-05-25T16:23:29.1569409-07:00\",\n \"status\": \"Succeeded\"\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/2fdcc35c-1cea-4759-8cbd-d3d02f37745d/resourceGroups/wezamlyn-test-117/providers/Microsoft.AVS/privateClouds/wezamlyn-test-117/workloadNetworks/default/dhcpConfigurations/dhcpRelay?api-version=2021-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMmZkY2MzNWMtMWNlYS00NzU5LThjYmQtZDNkMDJmMzc3NDVkL3Jlc291cmNlR3JvdXBzL3dlemFtbHluLXRlc3QtMTE3L3Byb3ZpZGVycy9NaWNyb3NvZnQuQVZTL3ByaXZhdGVDbG91ZHMvd2V6YW1seW4tdGVzdC0xMTcvd29ya2xvYWROZXR3b3Jrcy9kZWZhdWx0L2RoY3BDb25maWd1cmF0aW9ucy9kaGNwUmVsYXk/YXBpLXZlcnNpb249MjAyMS0wNi0wMQ==", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "97ab7e80-2569-4dea-b0fa-14f53a76dd07" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.30015.01", + "OSName/Linux", + "OSVersion/Linux.5.4.0.73.generic.82.18.04.1.Ubuntu.SMP.Fri.Apr.16.15.10.02.UTC.2021", + "Microsoft.Azure.Management.Avs.AvsClient/2.0.0.1" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/2fdcc35c-1cea-4759-8cbd-d3d02f37745d/resourceGroups/wezamlyn-test-117/providers/Microsoft.AVS/privateClouds/wezamlyn-test-117/workloadNetworks/default/dhcpConfigurations/dhcpRelay/operationresults/897a7fb9-83b5-4344-b94a-c5f75c7a65bd?api-version=2021-06-01" + ], + "Retry-After": [ + "10" + ], + "x-ms-ratelimit-remaining-subscription-deletes": [ + "14999" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/2fdcc35c-1cea-4759-8cbd-d3d02f37745d/resourceGroups/wezamlyn-test-117/providers/Microsoft.AVS/privateClouds/wezamlyn-test-117/workloadNetworks/default/dhcpConfigurations/dhcpRelay/operationstatuses/897a7fb9-83b5-4344-b94a-c5f75c7a65bd?api-version=2021-06-01" + ], + "x-ms-request-id": [ + "0896f9c9-0a87-47f3-98e4-ee0e1bae8109" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "nginx" + ], + "x-ms-correlation-request-id": [ + "ba96eb62-3606-4895-aa20-2da5b1df61df" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20210525T232341Z:ba96eb62-3606-4895-aa20-2da5b1df61df" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Tue, 25 May 2021 23:23:40 GMT" + ], + "Content-Length": [ + "449" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\n \"id\": \"/subscriptions/2fdcc35c-1cea-4759-8cbd-d3d02f37745d/resourceGroups/wezamlyn-test-117/providers/Microsoft.AVS/privateClouds/wezamlyn-test-117/workloadNetworks/default/dhcpConfigurations/dhcpRelay\",\n \"name\": \"dhcpRelay\",\n \"properties\": {\n \"dhcpType\": \"RELAY\",\n \"displayName\": \"modifiedDhcpRelay\",\n \"provisioningState\": \"Deleting\",\n \"revision\": 1,\n \"serverAddresses\": [\n \"10.1.1.2\",\n \"10.1.1.1\"\n ]\n },\n \"type\": \"Microsoft.AVS/privateClouds/workloadNetworks/dhcpConfigurations\"\n}", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/2fdcc35c-1cea-4759-8cbd-d3d02f37745d/resourceGroups/wezamlyn-test-117/providers/Microsoft.AVS/privateClouds/wezamlyn-test-117/workloadNetworks/default/dhcpConfigurations/dhcpRelay/operationstatuses/897a7fb9-83b5-4344-b94a-c5f75c7a65bd?api-version=2021-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMmZkY2MzNWMtMWNlYS00NzU5LThjYmQtZDNkMDJmMzc3NDVkL3Jlc291cmNlR3JvdXBzL3dlemFtbHluLXRlc3QtMTE3L3Byb3ZpZGVycy9NaWNyb3NvZnQuQVZTL3ByaXZhdGVDbG91ZHMvd2V6YW1seW4tdGVzdC0xMTcvd29ya2xvYWROZXR3b3Jrcy9kZWZhdWx0L2RoY3BDb25maWd1cmF0aW9ucy9kaGNwUmVsYXkvb3BlcmF0aW9uc3RhdHVzZXMvODk3YTdmYjktODNiNS00MzQ0LWI5NGEtYzVmNzVjN2E2NWJkP2FwaS12ZXJzaW9uPTIwMjEtMDYtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.30015.01", + "OSName/Linux", + "OSVersion/Linux.5.4.0.73.generic.82.18.04.1.Ubuntu.SMP.Fri.Apr.16.15.10.02.UTC.2021", + "Microsoft.Azure.Management.Avs.AvsClient/2.0.0.1" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "10" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11993" + ], + "x-ms-request-id": [ + "ba21f64d-8828-4b18-9be4-caeae92cf648" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "nginx" + ], + "x-ms-correlation-request-id": [ + "f78d499e-01f5-4ad7-85e3-d15e60d85f2b" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20210525T232351Z:f78d499e-01f5-4ad7-85e3-d15e60d85f2b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Tue, 25 May 2021 23:23:50 GMT" + ], + "Content-Length": [ + "441" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\n \"endTime\": \"2021-05-25T16:23:44.2844454-07:00\",\n \"id\": \"/subscriptions/2fdcc35c-1cea-4759-8cbd-d3d02f37745d/resourceGroups/wezamlyn-test-117/providers/Microsoft.AVS/privateClouds/wezamlyn-test-117/workloadNetworks/default/dhcpConfigurations/dhcpRelay/operationstatuses/897a7fb9-83b5-4344-b94a-c5f75c7a65bd\",\n \"name\": \"897a7fb9-83b5-4344-b94a-c5f75c7a65bd\",\n \"percentComplete\": 100,\n \"startTime\": \"2021-05-25T16:23:40.9821903-07:00\",\n \"status\": \"Succeeded\"\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/2fdcc35c-1cea-4759-8cbd-d3d02f37745d/resourceGroups/wezamlyn-test-117/providers/Microsoft.AVS/privateClouds/wezamlyn-test-117/workloadNetworks/default/dhcpConfigurations/dhcpRelay/operationresults/897a7fb9-83b5-4344-b94a-c5f75c7a65bd?api-version=2021-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMmZkY2MzNWMtMWNlYS00NzU5LThjYmQtZDNkMDJmMzc3NDVkL3Jlc291cmNlR3JvdXBzL3dlemFtbHluLXRlc3QtMTE3L3Byb3ZpZGVycy9NaWNyb3NvZnQuQVZTL3ByaXZhdGVDbG91ZHMvd2V6YW1seW4tdGVzdC0xMTcvd29ya2xvYWROZXR3b3Jrcy9kZWZhdWx0L2RoY3BDb25maWd1cmF0aW9ucy9kaGNwUmVsYXkvb3BlcmF0aW9ucmVzdWx0cy84OTdhN2ZiOS04M2I1LTQzNDQtYjk0YS1jNWY3NWM3YTY1YmQ/YXBpLXZlcnNpb249MjAyMS0wNi0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.30015.01", + "OSName/Linux", + "OSVersion/Linux.5.4.0.73.generic.82.18.04.1.Ubuntu.SMP.Fri.Apr.16.15.10.02.UTC.2021", + "Microsoft.Azure.Management.Avs.AvsClient/2.0.0.1" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11992" + ], + "x-ms-request-id": [ + "f68ac4dc-4017-4d13-b394-c55b4bb7a5f5" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "nginx" + ], + "x-ms-correlation-request-id": [ + "01afd363-9b59-478b-89aa-8121940d7322" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20210525T232351Z:01afd363-9b59-478b-89aa-8121940d7322" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Tue, 25 May 2021 23:23:51 GMT" + ], + "Content-Length": [ + "4" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "null", + "StatusCode": 200 + } + ], + "Names": {}, + "Variables": { + "SubscriptionId": "2fdcc35c-1cea-4759-8cbd-d3d02f37745d" + } +} \ No newline at end of file diff --git a/sdk/avs/Microsoft.Azure.Management.Avs/tests/SessionRecords/WorkloadNetworksTests/WorkloadNetworksDns.json b/sdk/avs/Microsoft.Azure.Management.Avs/tests/SessionRecords/WorkloadNetworksTests/WorkloadNetworksDns.json new file mode 100644 index 000000000000..f58fc27b91da --- /dev/null +++ b/sdk/avs/Microsoft.Azure.Management.Avs/tests/SessionRecords/WorkloadNetworksTests/WorkloadNetworksDns.json @@ -0,0 +1,2747 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/2fdcc35c-1cea-4759-8cbd-d3d02f37745d/resourceGroups/wezamlyn-test-117/providers/Microsoft.AVS/privateClouds/wezamlyn-test-117/workloadNetworks/default/dnsZones/defaultDnsZone?api-version=2021-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMmZkY2MzNWMtMWNlYS00NzU5LThjYmQtZDNkMDJmMzc3NDVkL3Jlc291cmNlR3JvdXBzL3dlemFtbHluLXRlc3QtMTE3L3Byb3ZpZGVycy9NaWNyb3NvZnQuQVZTL3ByaXZhdGVDbG91ZHMvd2V6YW1seW4tdGVzdC0xMTcvd29ya2xvYWROZXR3b3Jrcy9kZWZhdWx0L2Ruc1pvbmVzL2RlZmF1bHREbnNab25lP2FwaS12ZXJzaW9uPTIwMjEtMDYtMDE=", + "RequestMethod": "PUT", + "RequestBody": "{\n \"properties\": {\n \"displayName\": \"defaultDnsZone\",\n \"domain\": [],\n \"dnsServerIps\": [\n \"1.1.1.1\"\n ]\n }\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "8ee916d2-28ca-442e-9d2f-b4aa9503489e" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.30015.01", + "OSName/Linux", + "OSVersion/Linux.5.4.0.73.generic.82.18.04.1.Ubuntu.SMP.Fri.Apr.16.15.10.02.UTC.2021", + "Microsoft.Azure.Management.Avs.AvsClient/2.0.0.1" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "124" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "10" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1199" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/2fdcc35c-1cea-4759-8cbd-d3d02f37745d/resourceGroups/wezamlyn-test-117/providers/Microsoft.AVS/privateClouds/wezamlyn-test-117/workloadNetworks/default/dnsZones/defaultDnsZone/operationstatuses/41752e83-9bec-4886-a57f-9d4476a24c93?api-version=2021-06-01" + ], + "x-ms-request-id": [ + "329a92c7-0d72-483a-a317-3301ffb09597" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "nginx" + ], + "x-ms-correlation-request-id": [ + "c420e534-db81-46ad-ad05-19ca772eabb1" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20210525T232639Z:c420e534-db81-46ad-ad05-19ca772eabb1" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Tue, 25 May 2021 23:26:39 GMT" + ], + "Content-Length": [ + "401" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\n \"id\": \"/subscriptions/2fdcc35c-1cea-4759-8cbd-d3d02f37745d/resourceGroups/wezamlyn-test-117/providers/Microsoft.AVS/privateClouds/wezamlyn-test-117/workloadNetworks/default/dnsZones/defaultDnsZone\",\n \"name\": \"defaultDnsZone\",\n \"properties\": {\n \"displayName\": \"defaultDnsZone\",\n \"dnsServerIps\": [\n \"1.1.1.1\"\n ],\n \"domain\": [],\n \"provisioningState\": \"Building\"\n },\n \"type\": \"Microsoft.AVS/privateClouds/workloadNetworks/dnsZones\"\n}", + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/2fdcc35c-1cea-4759-8cbd-d3d02f37745d/resourceGroups/wezamlyn-test-117/providers/Microsoft.AVS/privateClouds/wezamlyn-test-117/workloadNetworks/default/dnsZones/defaultDnsZone/operationstatuses/41752e83-9bec-4886-a57f-9d4476a24c93?api-version=2021-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMmZkY2MzNWMtMWNlYS00NzU5LThjYmQtZDNkMDJmMzc3NDVkL3Jlc291cmNlR3JvdXBzL3dlemFtbHluLXRlc3QtMTE3L3Byb3ZpZGVycy9NaWNyb3NvZnQuQVZTL3ByaXZhdGVDbG91ZHMvd2V6YW1seW4tdGVzdC0xMTcvd29ya2xvYWROZXR3b3Jrcy9kZWZhdWx0L2Ruc1pvbmVzL2RlZmF1bHREbnNab25lL29wZXJhdGlvbnN0YXR1c2VzLzQxNzUyZTgzLTliZWMtNDg4Ni1hNTdmLTlkNDQ3NmEyNGM5Mz9hcGktdmVyc2lvbj0yMDIxLTA2LTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.30015.01", + "OSName/Linux", + "OSVersion/Linux.5.4.0.73.generic.82.18.04.1.Ubuntu.SMP.Fri.Apr.16.15.10.02.UTC.2021", + "Microsoft.Azure.Management.Avs.AvsClient/2.0.0.1" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "10" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11999" + ], + "x-ms-request-id": [ + "695a2598-8598-47c5-ab07-0453d0ca08ff" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "nginx" + ], + "x-ms-correlation-request-id": [ + "d45b3c3a-d356-42d9-ae49-2d5dcbf73287" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20210525T232649Z:d45b3c3a-d356-42d9-ae49-2d5dcbf73287" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Tue, 25 May 2021 23:26:49 GMT" + ], + "Content-Length": [ + "387" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\n \"id\": \"/subscriptions/2fdcc35c-1cea-4759-8cbd-d3d02f37745d/resourceGroups/wezamlyn-test-117/providers/Microsoft.AVS/privateClouds/wezamlyn-test-117/workloadNetworks/default/dnsZones/defaultDnsZone/operationstatuses/41752e83-9bec-4886-a57f-9d4476a24c93\",\n \"name\": \"41752e83-9bec-4886-a57f-9d4476a24c93\",\n \"percentComplete\": 0,\n \"startTime\": \"2021-05-25T16:26:39.1885685-07:00\",\n \"status\": \"Building\"\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/2fdcc35c-1cea-4759-8cbd-d3d02f37745d/resourceGroups/wezamlyn-test-117/providers/Microsoft.AVS/privateClouds/wezamlyn-test-117/workloadNetworks/default/dnsZones/defaultDnsZone/operationstatuses/41752e83-9bec-4886-a57f-9d4476a24c93?api-version=2021-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMmZkY2MzNWMtMWNlYS00NzU5LThjYmQtZDNkMDJmMzc3NDVkL3Jlc291cmNlR3JvdXBzL3dlemFtbHluLXRlc3QtMTE3L3Byb3ZpZGVycy9NaWNyb3NvZnQuQVZTL3ByaXZhdGVDbG91ZHMvd2V6YW1seW4tdGVzdC0xMTcvd29ya2xvYWROZXR3b3Jrcy9kZWZhdWx0L2Ruc1pvbmVzL2RlZmF1bHREbnNab25lL29wZXJhdGlvbnN0YXR1c2VzLzQxNzUyZTgzLTliZWMtNDg4Ni1hNTdmLTlkNDQ3NmEyNGM5Mz9hcGktdmVyc2lvbj0yMDIxLTA2LTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.30015.01", + "OSName/Linux", + "OSVersion/Linux.5.4.0.73.generic.82.18.04.1.Ubuntu.SMP.Fri.Apr.16.15.10.02.UTC.2021", + "Microsoft.Azure.Management.Avs.AvsClient/2.0.0.1" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "10" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11998" + ], + "x-ms-request-id": [ + "d4bfcb8a-476d-48f3-a359-640b0358fb1f" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "nginx" + ], + "x-ms-correlation-request-id": [ + "353965fd-f54f-4d4d-b5b0-74d28a0ef026" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20210525T232659Z:353965fd-f54f-4d4d-b5b0-74d28a0ef026" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Tue, 25 May 2021 23:26:59 GMT" + ], + "Content-Length": [ + "387" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\n \"id\": \"/subscriptions/2fdcc35c-1cea-4759-8cbd-d3d02f37745d/resourceGroups/wezamlyn-test-117/providers/Microsoft.AVS/privateClouds/wezamlyn-test-117/workloadNetworks/default/dnsZones/defaultDnsZone/operationstatuses/41752e83-9bec-4886-a57f-9d4476a24c93\",\n \"name\": \"41752e83-9bec-4886-a57f-9d4476a24c93\",\n \"percentComplete\": 0,\n \"startTime\": \"2021-05-25T16:26:39.1885685-07:00\",\n \"status\": \"Building\"\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/2fdcc35c-1cea-4759-8cbd-d3d02f37745d/resourceGroups/wezamlyn-test-117/providers/Microsoft.AVS/privateClouds/wezamlyn-test-117/workloadNetworks/default/dnsZones/defaultDnsZone/operationstatuses/41752e83-9bec-4886-a57f-9d4476a24c93?api-version=2021-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMmZkY2MzNWMtMWNlYS00NzU5LThjYmQtZDNkMDJmMzc3NDVkL3Jlc291cmNlR3JvdXBzL3dlemFtbHluLXRlc3QtMTE3L3Byb3ZpZGVycy9NaWNyb3NvZnQuQVZTL3ByaXZhdGVDbG91ZHMvd2V6YW1seW4tdGVzdC0xMTcvd29ya2xvYWROZXR3b3Jrcy9kZWZhdWx0L2Ruc1pvbmVzL2RlZmF1bHREbnNab25lL29wZXJhdGlvbnN0YXR1c2VzLzQxNzUyZTgzLTliZWMtNDg4Ni1hNTdmLTlkNDQ3NmEyNGM5Mz9hcGktdmVyc2lvbj0yMDIxLTA2LTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.30015.01", + "OSName/Linux", + "OSVersion/Linux.5.4.0.73.generic.82.18.04.1.Ubuntu.SMP.Fri.Apr.16.15.10.02.UTC.2021", + "Microsoft.Azure.Management.Avs.AvsClient/2.0.0.1" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "10" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11997" + ], + "x-ms-request-id": [ + "8de1d29f-e600-49c2-b125-3bbb5faa5325" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "nginx" + ], + "x-ms-correlation-request-id": [ + "8a83a706-9c92-436d-885b-d88045f764ce" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20210525T232709Z:8a83a706-9c92-436d-885b-d88045f764ce" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Tue, 25 May 2021 23:27:09 GMT" + ], + "Content-Length": [ + "387" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\n \"id\": \"/subscriptions/2fdcc35c-1cea-4759-8cbd-d3d02f37745d/resourceGroups/wezamlyn-test-117/providers/Microsoft.AVS/privateClouds/wezamlyn-test-117/workloadNetworks/default/dnsZones/defaultDnsZone/operationstatuses/41752e83-9bec-4886-a57f-9d4476a24c93\",\n \"name\": \"41752e83-9bec-4886-a57f-9d4476a24c93\",\n \"percentComplete\": 0,\n \"startTime\": \"2021-05-25T16:26:39.1885685-07:00\",\n \"status\": \"Building\"\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/2fdcc35c-1cea-4759-8cbd-d3d02f37745d/resourceGroups/wezamlyn-test-117/providers/Microsoft.AVS/privateClouds/wezamlyn-test-117/workloadNetworks/default/dnsZones/defaultDnsZone/operationstatuses/41752e83-9bec-4886-a57f-9d4476a24c93?api-version=2021-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMmZkY2MzNWMtMWNlYS00NzU5LThjYmQtZDNkMDJmMzc3NDVkL3Jlc291cmNlR3JvdXBzL3dlemFtbHluLXRlc3QtMTE3L3Byb3ZpZGVycy9NaWNyb3NvZnQuQVZTL3ByaXZhdGVDbG91ZHMvd2V6YW1seW4tdGVzdC0xMTcvd29ya2xvYWROZXR3b3Jrcy9kZWZhdWx0L2Ruc1pvbmVzL2RlZmF1bHREbnNab25lL29wZXJhdGlvbnN0YXR1c2VzLzQxNzUyZTgzLTliZWMtNDg4Ni1hNTdmLTlkNDQ3NmEyNGM5Mz9hcGktdmVyc2lvbj0yMDIxLTA2LTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.30015.01", + "OSName/Linux", + "OSVersion/Linux.5.4.0.73.generic.82.18.04.1.Ubuntu.SMP.Fri.Apr.16.15.10.02.UTC.2021", + "Microsoft.Azure.Management.Avs.AvsClient/2.0.0.1" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "10" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11996" + ], + "x-ms-request-id": [ + "f8da4518-5719-43a4-ab8e-3058bf92e382" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "nginx" + ], + "x-ms-correlation-request-id": [ + "64ef95dc-3a66-4e1e-9aa9-fde875f265d2" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20210525T232720Z:64ef95dc-3a66-4e1e-9aa9-fde875f265d2" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Tue, 25 May 2021 23:27:19 GMT" + ], + "Content-Length": [ + "387" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\n \"id\": \"/subscriptions/2fdcc35c-1cea-4759-8cbd-d3d02f37745d/resourceGroups/wezamlyn-test-117/providers/Microsoft.AVS/privateClouds/wezamlyn-test-117/workloadNetworks/default/dnsZones/defaultDnsZone/operationstatuses/41752e83-9bec-4886-a57f-9d4476a24c93\",\n \"name\": \"41752e83-9bec-4886-a57f-9d4476a24c93\",\n \"percentComplete\": 0,\n \"startTime\": \"2021-05-25T16:26:39.1885685-07:00\",\n \"status\": \"Building\"\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/2fdcc35c-1cea-4759-8cbd-d3d02f37745d/resourceGroups/wezamlyn-test-117/providers/Microsoft.AVS/privateClouds/wezamlyn-test-117/workloadNetworks/default/dnsZones/defaultDnsZone/operationstatuses/41752e83-9bec-4886-a57f-9d4476a24c93?api-version=2021-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMmZkY2MzNWMtMWNlYS00NzU5LThjYmQtZDNkMDJmMzc3NDVkL3Jlc291cmNlR3JvdXBzL3dlemFtbHluLXRlc3QtMTE3L3Byb3ZpZGVycy9NaWNyb3NvZnQuQVZTL3ByaXZhdGVDbG91ZHMvd2V6YW1seW4tdGVzdC0xMTcvd29ya2xvYWROZXR3b3Jrcy9kZWZhdWx0L2Ruc1pvbmVzL2RlZmF1bHREbnNab25lL29wZXJhdGlvbnN0YXR1c2VzLzQxNzUyZTgzLTliZWMtNDg4Ni1hNTdmLTlkNDQ3NmEyNGM5Mz9hcGktdmVyc2lvbj0yMDIxLTA2LTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.30015.01", + "OSName/Linux", + "OSVersion/Linux.5.4.0.73.generic.82.18.04.1.Ubuntu.SMP.Fri.Apr.16.15.10.02.UTC.2021", + "Microsoft.Azure.Management.Avs.AvsClient/2.0.0.1" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "10" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11995" + ], + "x-ms-request-id": [ + "a66a98db-f965-4980-8e8a-354bb8ee6c57" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "nginx" + ], + "x-ms-correlation-request-id": [ + "4fd8219c-dc87-4ac7-ac05-e74c67ac45b6" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20210525T232730Z:4fd8219c-dc87-4ac7-ac05-e74c67ac45b6" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Tue, 25 May 2021 23:27:29 GMT" + ], + "Content-Length": [ + "387" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\n \"id\": \"/subscriptions/2fdcc35c-1cea-4759-8cbd-d3d02f37745d/resourceGroups/wezamlyn-test-117/providers/Microsoft.AVS/privateClouds/wezamlyn-test-117/workloadNetworks/default/dnsZones/defaultDnsZone/operationstatuses/41752e83-9bec-4886-a57f-9d4476a24c93\",\n \"name\": \"41752e83-9bec-4886-a57f-9d4476a24c93\",\n \"percentComplete\": 0,\n \"startTime\": \"2021-05-25T16:26:39.1885685-07:00\",\n \"status\": \"Building\"\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/2fdcc35c-1cea-4759-8cbd-d3d02f37745d/resourceGroups/wezamlyn-test-117/providers/Microsoft.AVS/privateClouds/wezamlyn-test-117/workloadNetworks/default/dnsZones/defaultDnsZone/operationstatuses/41752e83-9bec-4886-a57f-9d4476a24c93?api-version=2021-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMmZkY2MzNWMtMWNlYS00NzU5LThjYmQtZDNkMDJmMzc3NDVkL3Jlc291cmNlR3JvdXBzL3dlemFtbHluLXRlc3QtMTE3L3Byb3ZpZGVycy9NaWNyb3NvZnQuQVZTL3ByaXZhdGVDbG91ZHMvd2V6YW1seW4tdGVzdC0xMTcvd29ya2xvYWROZXR3b3Jrcy9kZWZhdWx0L2Ruc1pvbmVzL2RlZmF1bHREbnNab25lL29wZXJhdGlvbnN0YXR1c2VzLzQxNzUyZTgzLTliZWMtNDg4Ni1hNTdmLTlkNDQ3NmEyNGM5Mz9hcGktdmVyc2lvbj0yMDIxLTA2LTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.30015.01", + "OSName/Linux", + "OSVersion/Linux.5.4.0.73.generic.82.18.04.1.Ubuntu.SMP.Fri.Apr.16.15.10.02.UTC.2021", + "Microsoft.Azure.Management.Avs.AvsClient/2.0.0.1" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "10" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11994" + ], + "x-ms-request-id": [ + "2c70bde2-39a2-443a-bfd8-74f08ba90e31" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "nginx" + ], + "x-ms-correlation-request-id": [ + "c0e25447-b781-4024-aaf5-65451191ef31" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20210525T232740Z:c0e25447-b781-4024-aaf5-65451191ef31" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Tue, 25 May 2021 23:27:39 GMT" + ], + "Content-Length": [ + "895" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\n \"endTime\": \"2021-05-25T16:27:32.6430368-07:00\",\n \"id\": \"/subscriptions/2fdcc35c-1cea-4759-8cbd-d3d02f37745d/resourceGroups/wezamlyn-test-117/providers/Microsoft.AVS/privateClouds/wezamlyn-test-117/workloadNetworks/default/dnsZones/defaultDnsZone/operationstatuses/41752e83-9bec-4886-a57f-9d4476a24c93\",\n \"name\": \"41752e83-9bec-4886-a57f-9d4476a24c93\",\n \"percentComplete\": 100,\n \"properties\": {\n \"id\": \"/subscriptions/2fdcc35c-1cea-4759-8cbd-d3d02f37745d/resourceGroups/wezamlyn-test-117/providers/Microsoft.AVS/privateClouds/wezamlyn-test-117/workloadNetworks/default/dnsZones/defaultDnsZone\",\n \"name\": \"defaultDnsZone\",\n \"properties\": {\n \"displayName\": \"defaultDnsZone\",\n \"dnsServerIps\": [\n \"1.1.1.1\"\n ],\n \"dnsServices\": 0,\n \"domain\": [],\n \"provisioningState\": \"Fulfilled\",\n \"revision\": 0,\n \"sourceIp\": \"\"\n },\n \"type\": \"Microsoft.AVS/privateClouds/workloadNetworks/dnsZones\"\n },\n \"startTime\": \"2021-05-25T16:26:39.1885685-07:00\",\n \"status\": \"Succeeded\"\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/2fdcc35c-1cea-4759-8cbd-d3d02f37745d/resourceGroups/wezamlyn-test-117/providers/Microsoft.AVS/privateClouds/wezamlyn-test-117/workloadNetworks/default/dnsZones/defaultDnsZone?api-version=2021-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMmZkY2MzNWMtMWNlYS00NzU5LThjYmQtZDNkMDJmMzc3NDVkL3Jlc291cmNlR3JvdXBzL3dlemFtbHluLXRlc3QtMTE3L3Byb3ZpZGVycy9NaWNyb3NvZnQuQVZTL3ByaXZhdGVDbG91ZHMvd2V6YW1seW4tdGVzdC0xMTcvd29ya2xvYWROZXR3b3Jrcy9kZWZhdWx0L2Ruc1pvbmVzL2RlZmF1bHREbnNab25lP2FwaS12ZXJzaW9uPTIwMjEtMDYtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.30015.01", + "OSName/Linux", + "OSVersion/Linux.5.4.0.73.generic.82.18.04.1.Ubuntu.SMP.Fri.Apr.16.15.10.02.UTC.2021", + "Microsoft.Azure.Management.Avs.AvsClient/2.0.0.1" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11993" + ], + "x-ms-request-id": [ + "eb3c07c7-b04d-4fdd-94dc-0b83e907865c" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "nginx" + ], + "x-ms-correlation-request-id": [ + "45bc9421-c859-4e7d-a0e2-81e9241b5f84" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20210525T232741Z:45bc9421-c859-4e7d-a0e2-81e9241b5f84" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Tue, 25 May 2021 23:27:40 GMT" + ], + "Content-Length": [ + "445" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\n \"id\": \"/subscriptions/2fdcc35c-1cea-4759-8cbd-d3d02f37745d/resourceGroups/wezamlyn-test-117/providers/Microsoft.AVS/privateClouds/wezamlyn-test-117/workloadNetworks/default/dnsZones/defaultDnsZone\",\n \"name\": \"defaultDnsZone\",\n \"properties\": {\n \"displayName\": \"defaultDnsZone\",\n \"dnsServerIps\": [\n \"1.1.1.1\"\n ],\n \"dnsServices\": 0,\n \"domain\": [],\n \"provisioningState\": \"Fulfilled\",\n \"revision\": 0,\n \"sourceIp\": \"\"\n },\n \"type\": \"Microsoft.AVS/privateClouds/workloadNetworks/dnsZones\"\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/2fdcc35c-1cea-4759-8cbd-d3d02f37745d/resourceGroups/wezamlyn-test-117/providers/Microsoft.AVS/privateClouds/wezamlyn-test-117/workloadNetworks/default/dnsZones/defaultDnsZone?api-version=2021-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMmZkY2MzNWMtMWNlYS00NzU5LThjYmQtZDNkMDJmMzc3NDVkL3Jlc291cmNlR3JvdXBzL3dlemFtbHluLXRlc3QtMTE3L3Byb3ZpZGVycy9NaWNyb3NvZnQuQVZTL3ByaXZhdGVDbG91ZHMvd2V6YW1seW4tdGVzdC0xMTcvd29ya2xvYWROZXR3b3Jrcy9kZWZhdWx0L2Ruc1pvbmVzL2RlZmF1bHREbnNab25lP2FwaS12ZXJzaW9uPTIwMjEtMDYtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "06c170b6-ad43-40f1-9091-2952b1ecb81f" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.30015.01", + "OSName/Linux", + "OSVersion/Linux.5.4.0.73.generic.82.18.04.1.Ubuntu.SMP.Fri.Apr.16.15.10.02.UTC.2021", + "Microsoft.Azure.Management.Avs.AvsClient/2.0.0.1" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11984" + ], + "x-ms-request-id": [ + "084520b7-2698-4109-8a12-45da128a9297" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "nginx" + ], + "x-ms-correlation-request-id": [ + "12f12ccf-3387-42b4-b246-ac8308dc6a28" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20210525T232847Z:12f12ccf-3387-42b4-b246-ac8308dc6a28" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Tue, 25 May 2021 23:28:46 GMT" + ], + "Content-Length": [ + "445" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\n \"id\": \"/subscriptions/2fdcc35c-1cea-4759-8cbd-d3d02f37745d/resourceGroups/wezamlyn-test-117/providers/Microsoft.AVS/privateClouds/wezamlyn-test-117/workloadNetworks/default/dnsZones/defaultDnsZone\",\n \"name\": \"defaultDnsZone\",\n \"properties\": {\n \"displayName\": \"defaultDnsZone\",\n \"dnsServerIps\": [\n \"1.1.1.1\"\n ],\n \"dnsServices\": 0,\n \"domain\": [],\n \"provisioningState\": \"Fulfilled\",\n \"revision\": 0,\n \"sourceIp\": \"\"\n },\n \"type\": \"Microsoft.AVS/privateClouds/workloadNetworks/dnsZones\"\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/2fdcc35c-1cea-4759-8cbd-d3d02f37745d/resourceGroups/wezamlyn-test-117/providers/Microsoft.AVS/privateClouds/wezamlyn-test-117/workloadNetworks/default/dnsZones/defaultDnsZone?api-version=2021-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMmZkY2MzNWMtMWNlYS00NzU5LThjYmQtZDNkMDJmMzc3NDVkL3Jlc291cmNlR3JvdXBzL3dlemFtbHluLXRlc3QtMTE3L3Byb3ZpZGVycy9NaWNyb3NvZnQuQVZTL3ByaXZhdGVDbG91ZHMvd2V6YW1seW4tdGVzdC0xMTcvd29ya2xvYWROZXR3b3Jrcy9kZWZhdWx0L2Ruc1pvbmVzL2RlZmF1bHREbnNab25lP2FwaS12ZXJzaW9uPTIwMjEtMDYtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.30015.01", + "OSName/Linux", + "OSVersion/Linux.5.4.0.73.generic.82.18.04.1.Ubuntu.SMP.Fri.Apr.16.15.10.02.UTC.2021", + "Microsoft.Azure.Management.Avs.AvsClient/2.0.0.1" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11977" + ], + "x-ms-request-id": [ + "5a315d9c-94c7-4a52-8cc4-ff8a30990e83" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "nginx" + ], + "x-ms-correlation-request-id": [ + "0736a6d3-3f92-47f2-8b1d-45cec4a155a1" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20210525T232950Z:0736a6d3-3f92-47f2-8b1d-45cec4a155a1" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Tue, 25 May 2021 23:29:49 GMT" + ], + "Content-Length": [ + "446" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\n \"id\": \"/subscriptions/2fdcc35c-1cea-4759-8cbd-d3d02f37745d/resourceGroups/wezamlyn-test-117/providers/Microsoft.AVS/privateClouds/wezamlyn-test-117/workloadNetworks/default/dnsZones/defaultDnsZone\",\n \"name\": \"defaultDnsZone\",\n \"properties\": {\n \"displayName\": \"modifiedDnsZone\",\n \"dnsServerIps\": [\n \"1.1.1.1\"\n ],\n \"dnsServices\": 0,\n \"domain\": [],\n \"provisioningState\": \"Fulfilled\",\n \"revision\": 1,\n \"sourceIp\": \"\"\n },\n \"type\": \"Microsoft.AVS/privateClouds/workloadNetworks/dnsZones\"\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/2fdcc35c-1cea-4759-8cbd-d3d02f37745d/resourceGroups/wezamlyn-test-117/providers/Microsoft.AVS/privateClouds/wezamlyn-test-117/workloadNetworks/default/dnsZones/fqdnDnsZone?api-version=2021-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMmZkY2MzNWMtMWNlYS00NzU5LThjYmQtZDNkMDJmMzc3NDVkL3Jlc291cmNlR3JvdXBzL3dlemFtbHluLXRlc3QtMTE3L3Byb3ZpZGVycy9NaWNyb3NvZnQuQVZTL3ByaXZhdGVDbG91ZHMvd2V6YW1seW4tdGVzdC0xMTcvd29ya2xvYWROZXR3b3Jrcy9kZWZhdWx0L2Ruc1pvbmVzL2ZxZG5EbnNab25lP2FwaS12ZXJzaW9uPTIwMjEtMDYtMDE=", + "RequestMethod": "PUT", + "RequestBody": "{\n \"properties\": {\n \"displayName\": \"fqdnDnsZone\",\n \"domain\": [\n \"fqdndnszone.com\"\n ],\n \"dnsServerIps\": [\n \"1.1.1.1\"\n ]\n }\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "258ca392-5aad-42d5-b9dd-e4d3602bbcd0" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.30015.01", + "OSName/Linux", + "OSVersion/Linux.5.4.0.73.generic.82.18.04.1.Ubuntu.SMP.Fri.Apr.16.15.10.02.UTC.2021", + "Microsoft.Azure.Management.Avs.AvsClient/2.0.0.1" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "150" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "10" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1198" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/2fdcc35c-1cea-4759-8cbd-d3d02f37745d/resourceGroups/wezamlyn-test-117/providers/Microsoft.AVS/privateClouds/wezamlyn-test-117/workloadNetworks/default/dnsZones/fqdnDnsZone/operationstatuses/dc7698e2-11b0-4b48-b5ef-5d303f58b37a?api-version=2021-06-01" + ], + "x-ms-request-id": [ + "bfce57d4-14f3-4dcf-be15-039f4f505901" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "nginx" + ], + "x-ms-correlation-request-id": [ + "b4da858a-c9b5-41b6-8e1d-e79eb98180b0" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20210525T232744Z:b4da858a-c9b5-41b6-8e1d-e79eb98180b0" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Tue, 25 May 2021 23:27:43 GMT" + ], + "Content-Length": [ + "409" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\n \"id\": \"/subscriptions/2fdcc35c-1cea-4759-8cbd-d3d02f37745d/resourceGroups/wezamlyn-test-117/providers/Microsoft.AVS/privateClouds/wezamlyn-test-117/workloadNetworks/default/dnsZones/fqdnDnsZone\",\n \"name\": \"fqdnDnsZone\",\n \"properties\": {\n \"displayName\": \"fqdnDnsZone\",\n \"dnsServerIps\": [\n \"1.1.1.1\"\n ],\n \"domain\": [\n \"fqdndnszone.com\"\n ],\n \"provisioningState\": \"Building\"\n },\n \"type\": \"Microsoft.AVS/privateClouds/workloadNetworks/dnsZones\"\n}", + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/2fdcc35c-1cea-4759-8cbd-d3d02f37745d/resourceGroups/wezamlyn-test-117/providers/Microsoft.AVS/privateClouds/wezamlyn-test-117/workloadNetworks/default/dnsZones/fqdnDnsZone/operationstatuses/dc7698e2-11b0-4b48-b5ef-5d303f58b37a?api-version=2021-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMmZkY2MzNWMtMWNlYS00NzU5LThjYmQtZDNkMDJmMzc3NDVkL3Jlc291cmNlR3JvdXBzL3dlemFtbHluLXRlc3QtMTE3L3Byb3ZpZGVycy9NaWNyb3NvZnQuQVZTL3ByaXZhdGVDbG91ZHMvd2V6YW1seW4tdGVzdC0xMTcvd29ya2xvYWROZXR3b3Jrcy9kZWZhdWx0L2Ruc1pvbmVzL2ZxZG5EbnNab25lL29wZXJhdGlvbnN0YXR1c2VzL2RjNzY5OGUyLTExYjAtNGI0OC1iNWVmLTVkMzAzZjU4YjM3YT9hcGktdmVyc2lvbj0yMDIxLTA2LTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.30015.01", + "OSName/Linux", + "OSVersion/Linux.5.4.0.73.generic.82.18.04.1.Ubuntu.SMP.Fri.Apr.16.15.10.02.UTC.2021", + "Microsoft.Azure.Management.Avs.AvsClient/2.0.0.1" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "10" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11992" + ], + "x-ms-request-id": [ + "75e84943-e3f0-4954-82f2-f35b662032c5" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "nginx" + ], + "x-ms-correlation-request-id": [ + "e8c88f2c-f1e4-48ff-b140-98efea2ed8c5" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20210525T232754Z:e8c88f2c-f1e4-48ff-b140-98efea2ed8c5" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Tue, 25 May 2021 23:27:53 GMT" + ], + "Content-Length": [ + "384" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\n \"id\": \"/subscriptions/2fdcc35c-1cea-4759-8cbd-d3d02f37745d/resourceGroups/wezamlyn-test-117/providers/Microsoft.AVS/privateClouds/wezamlyn-test-117/workloadNetworks/default/dnsZones/fqdnDnsZone/operationstatuses/dc7698e2-11b0-4b48-b5ef-5d303f58b37a\",\n \"name\": \"dc7698e2-11b0-4b48-b5ef-5d303f58b37a\",\n \"percentComplete\": 0,\n \"startTime\": \"2021-05-25T16:27:43.9767222-07:00\",\n \"status\": \"Building\"\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/2fdcc35c-1cea-4759-8cbd-d3d02f37745d/resourceGroups/wezamlyn-test-117/providers/Microsoft.AVS/privateClouds/wezamlyn-test-117/workloadNetworks/default/dnsZones/fqdnDnsZone/operationstatuses/dc7698e2-11b0-4b48-b5ef-5d303f58b37a?api-version=2021-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMmZkY2MzNWMtMWNlYS00NzU5LThjYmQtZDNkMDJmMzc3NDVkL3Jlc291cmNlR3JvdXBzL3dlemFtbHluLXRlc3QtMTE3L3Byb3ZpZGVycy9NaWNyb3NvZnQuQVZTL3ByaXZhdGVDbG91ZHMvd2V6YW1seW4tdGVzdC0xMTcvd29ya2xvYWROZXR3b3Jrcy9kZWZhdWx0L2Ruc1pvbmVzL2ZxZG5EbnNab25lL29wZXJhdGlvbnN0YXR1c2VzL2RjNzY5OGUyLTExYjAtNGI0OC1iNWVmLTVkMzAzZjU4YjM3YT9hcGktdmVyc2lvbj0yMDIxLTA2LTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.30015.01", + "OSName/Linux", + "OSVersion/Linux.5.4.0.73.generic.82.18.04.1.Ubuntu.SMP.Fri.Apr.16.15.10.02.UTC.2021", + "Microsoft.Azure.Management.Avs.AvsClient/2.0.0.1" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "10" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11991" + ], + "x-ms-request-id": [ + "f736f483-2061-4ba1-8416-8bf8d8dee7cd" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "nginx" + ], + "x-ms-correlation-request-id": [ + "5a064618-c94d-45c7-b7a0-c86dd60a56bb" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20210525T232804Z:5a064618-c94d-45c7-b7a0-c86dd60a56bb" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Tue, 25 May 2021 23:28:03 GMT" + ], + "Content-Length": [ + "384" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\n \"id\": \"/subscriptions/2fdcc35c-1cea-4759-8cbd-d3d02f37745d/resourceGroups/wezamlyn-test-117/providers/Microsoft.AVS/privateClouds/wezamlyn-test-117/workloadNetworks/default/dnsZones/fqdnDnsZone/operationstatuses/dc7698e2-11b0-4b48-b5ef-5d303f58b37a\",\n \"name\": \"dc7698e2-11b0-4b48-b5ef-5d303f58b37a\",\n \"percentComplete\": 0,\n \"startTime\": \"2021-05-25T16:27:43.9767222-07:00\",\n \"status\": \"Building\"\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/2fdcc35c-1cea-4759-8cbd-d3d02f37745d/resourceGroups/wezamlyn-test-117/providers/Microsoft.AVS/privateClouds/wezamlyn-test-117/workloadNetworks/default/dnsZones/fqdnDnsZone/operationstatuses/dc7698e2-11b0-4b48-b5ef-5d303f58b37a?api-version=2021-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMmZkY2MzNWMtMWNlYS00NzU5LThjYmQtZDNkMDJmMzc3NDVkL3Jlc291cmNlR3JvdXBzL3dlemFtbHluLXRlc3QtMTE3L3Byb3ZpZGVycy9NaWNyb3NvZnQuQVZTL3ByaXZhdGVDbG91ZHMvd2V6YW1seW4tdGVzdC0xMTcvd29ya2xvYWROZXR3b3Jrcy9kZWZhdWx0L2Ruc1pvbmVzL2ZxZG5EbnNab25lL29wZXJhdGlvbnN0YXR1c2VzL2RjNzY5OGUyLTExYjAtNGI0OC1iNWVmLTVkMzAzZjU4YjM3YT9hcGktdmVyc2lvbj0yMDIxLTA2LTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.30015.01", + "OSName/Linux", + "OSVersion/Linux.5.4.0.73.generic.82.18.04.1.Ubuntu.SMP.Fri.Apr.16.15.10.02.UTC.2021", + "Microsoft.Azure.Management.Avs.AvsClient/2.0.0.1" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "10" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11990" + ], + "x-ms-request-id": [ + "53256aeb-16f2-462b-8646-adf327307a84" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "nginx" + ], + "x-ms-correlation-request-id": [ + "34ec69d3-e132-4000-bc03-1bfb180774e9" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20210525T232814Z:34ec69d3-e132-4000-bc03-1bfb180774e9" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Tue, 25 May 2021 23:28:14 GMT" + ], + "Content-Length": [ + "384" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\n \"id\": \"/subscriptions/2fdcc35c-1cea-4759-8cbd-d3d02f37745d/resourceGroups/wezamlyn-test-117/providers/Microsoft.AVS/privateClouds/wezamlyn-test-117/workloadNetworks/default/dnsZones/fqdnDnsZone/operationstatuses/dc7698e2-11b0-4b48-b5ef-5d303f58b37a\",\n \"name\": \"dc7698e2-11b0-4b48-b5ef-5d303f58b37a\",\n \"percentComplete\": 0,\n \"startTime\": \"2021-05-25T16:27:43.9767222-07:00\",\n \"status\": \"Building\"\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/2fdcc35c-1cea-4759-8cbd-d3d02f37745d/resourceGroups/wezamlyn-test-117/providers/Microsoft.AVS/privateClouds/wezamlyn-test-117/workloadNetworks/default/dnsZones/fqdnDnsZone/operationstatuses/dc7698e2-11b0-4b48-b5ef-5d303f58b37a?api-version=2021-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMmZkY2MzNWMtMWNlYS00NzU5LThjYmQtZDNkMDJmMzc3NDVkL3Jlc291cmNlR3JvdXBzL3dlemFtbHluLXRlc3QtMTE3L3Byb3ZpZGVycy9NaWNyb3NvZnQuQVZTL3ByaXZhdGVDbG91ZHMvd2V6YW1seW4tdGVzdC0xMTcvd29ya2xvYWROZXR3b3Jrcy9kZWZhdWx0L2Ruc1pvbmVzL2ZxZG5EbnNab25lL29wZXJhdGlvbnN0YXR1c2VzL2RjNzY5OGUyLTExYjAtNGI0OC1iNWVmLTVkMzAzZjU4YjM3YT9hcGktdmVyc2lvbj0yMDIxLTA2LTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.30015.01", + "OSName/Linux", + "OSVersion/Linux.5.4.0.73.generic.82.18.04.1.Ubuntu.SMP.Fri.Apr.16.15.10.02.UTC.2021", + "Microsoft.Azure.Management.Avs.AvsClient/2.0.0.1" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "10" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11989" + ], + "x-ms-request-id": [ + "2d03474e-c8f2-4d94-b671-5780dc7af7aa" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "nginx" + ], + "x-ms-correlation-request-id": [ + "e3e4b15e-1954-41f4-a2b8-865502cedbba" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20210525T232824Z:e3e4b15e-1954-41f4-a2b8-865502cedbba" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Tue, 25 May 2021 23:28:24 GMT" + ], + "Content-Length": [ + "384" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\n \"id\": \"/subscriptions/2fdcc35c-1cea-4759-8cbd-d3d02f37745d/resourceGroups/wezamlyn-test-117/providers/Microsoft.AVS/privateClouds/wezamlyn-test-117/workloadNetworks/default/dnsZones/fqdnDnsZone/operationstatuses/dc7698e2-11b0-4b48-b5ef-5d303f58b37a\",\n \"name\": \"dc7698e2-11b0-4b48-b5ef-5d303f58b37a\",\n \"percentComplete\": 0,\n \"startTime\": \"2021-05-25T16:27:43.9767222-07:00\",\n \"status\": \"Building\"\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/2fdcc35c-1cea-4759-8cbd-d3d02f37745d/resourceGroups/wezamlyn-test-117/providers/Microsoft.AVS/privateClouds/wezamlyn-test-117/workloadNetworks/default/dnsZones/fqdnDnsZone/operationstatuses/dc7698e2-11b0-4b48-b5ef-5d303f58b37a?api-version=2021-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMmZkY2MzNWMtMWNlYS00NzU5LThjYmQtZDNkMDJmMzc3NDVkL3Jlc291cmNlR3JvdXBzL3dlemFtbHluLXRlc3QtMTE3L3Byb3ZpZGVycy9NaWNyb3NvZnQuQVZTL3ByaXZhdGVDbG91ZHMvd2V6YW1seW4tdGVzdC0xMTcvd29ya2xvYWROZXR3b3Jrcy9kZWZhdWx0L2Ruc1pvbmVzL2ZxZG5EbnNab25lL29wZXJhdGlvbnN0YXR1c2VzL2RjNzY5OGUyLTExYjAtNGI0OC1iNWVmLTVkMzAzZjU4YjM3YT9hcGktdmVyc2lvbj0yMDIxLTA2LTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.30015.01", + "OSName/Linux", + "OSVersion/Linux.5.4.0.73.generic.82.18.04.1.Ubuntu.SMP.Fri.Apr.16.15.10.02.UTC.2021", + "Microsoft.Azure.Management.Avs.AvsClient/2.0.0.1" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "10" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11988" + ], + "x-ms-request-id": [ + "ba6fac03-a986-4683-98d6-fb356173a5f4" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "nginx" + ], + "x-ms-correlation-request-id": [ + "8025b391-14d3-4eb7-acef-3dcfa3d682cf" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20210525T232834Z:8025b391-14d3-4eb7-acef-3dcfa3d682cf" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Tue, 25 May 2021 23:28:34 GMT" + ], + "Content-Length": [ + "384" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\n \"id\": \"/subscriptions/2fdcc35c-1cea-4759-8cbd-d3d02f37745d/resourceGroups/wezamlyn-test-117/providers/Microsoft.AVS/privateClouds/wezamlyn-test-117/workloadNetworks/default/dnsZones/fqdnDnsZone/operationstatuses/dc7698e2-11b0-4b48-b5ef-5d303f58b37a\",\n \"name\": \"dc7698e2-11b0-4b48-b5ef-5d303f58b37a\",\n \"percentComplete\": 0,\n \"startTime\": \"2021-05-25T16:27:43.9767222-07:00\",\n \"status\": \"Building\"\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/2fdcc35c-1cea-4759-8cbd-d3d02f37745d/resourceGroups/wezamlyn-test-117/providers/Microsoft.AVS/privateClouds/wezamlyn-test-117/workloadNetworks/default/dnsZones/fqdnDnsZone/operationstatuses/dc7698e2-11b0-4b48-b5ef-5d303f58b37a?api-version=2021-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMmZkY2MzNWMtMWNlYS00NzU5LThjYmQtZDNkMDJmMzc3NDVkL3Jlc291cmNlR3JvdXBzL3dlemFtbHluLXRlc3QtMTE3L3Byb3ZpZGVycy9NaWNyb3NvZnQuQVZTL3ByaXZhdGVDbG91ZHMvd2V6YW1seW4tdGVzdC0xMTcvd29ya2xvYWROZXR3b3Jrcy9kZWZhdWx0L2Ruc1pvbmVzL2ZxZG5EbnNab25lL29wZXJhdGlvbnN0YXR1c2VzL2RjNzY5OGUyLTExYjAtNGI0OC1iNWVmLTVkMzAzZjU4YjM3YT9hcGktdmVyc2lvbj0yMDIxLTA2LTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.30015.01", + "OSName/Linux", + "OSVersion/Linux.5.4.0.73.generic.82.18.04.1.Ubuntu.SMP.Fri.Apr.16.15.10.02.UTC.2021", + "Microsoft.Azure.Management.Avs.AvsClient/2.0.0.1" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "10" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11987" + ], + "x-ms-request-id": [ + "d369f677-5e99-4aa6-8ff5-762f027830e3" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "nginx" + ], + "x-ms-correlation-request-id": [ + "4caca33f-da0e-4278-8d42-a0df371617cd" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20210525T232845Z:4caca33f-da0e-4278-8d42-a0df371617cd" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Tue, 25 May 2021 23:28:45 GMT" + ], + "Content-Length": [ + "900" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\n \"endTime\": \"2021-05-25T16:28:38.1451416-07:00\",\n \"id\": \"/subscriptions/2fdcc35c-1cea-4759-8cbd-d3d02f37745d/resourceGroups/wezamlyn-test-117/providers/Microsoft.AVS/privateClouds/wezamlyn-test-117/workloadNetworks/default/dnsZones/fqdnDnsZone/operationstatuses/dc7698e2-11b0-4b48-b5ef-5d303f58b37a\",\n \"name\": \"dc7698e2-11b0-4b48-b5ef-5d303f58b37a\",\n \"percentComplete\": 100,\n \"properties\": {\n \"id\": \"/subscriptions/2fdcc35c-1cea-4759-8cbd-d3d02f37745d/resourceGroups/wezamlyn-test-117/providers/Microsoft.AVS/privateClouds/wezamlyn-test-117/workloadNetworks/default/dnsZones/fqdnDnsZone\",\n \"name\": \"fqdnDnsZone\",\n \"properties\": {\n \"displayName\": \"fqdnDnsZone\",\n \"dnsServerIps\": [\n \"1.1.1.1\"\n ],\n \"dnsServices\": 0,\n \"domain\": [\n \"fqdndnszone.com\"\n ],\n \"provisioningState\": \"Fulfilled\",\n \"revision\": 0,\n \"sourceIp\": \"\"\n },\n \"type\": \"Microsoft.AVS/privateClouds/workloadNetworks/dnsZones\"\n },\n \"startTime\": \"2021-05-25T16:27:43.9767222-07:00\",\n \"status\": \"Succeeded\"\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/2fdcc35c-1cea-4759-8cbd-d3d02f37745d/resourceGroups/wezamlyn-test-117/providers/Microsoft.AVS/privateClouds/wezamlyn-test-117/workloadNetworks/default/dnsZones/fqdnDnsZone?api-version=2021-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMmZkY2MzNWMtMWNlYS00NzU5LThjYmQtZDNkMDJmMzc3NDVkL3Jlc291cmNlR3JvdXBzL3dlemFtbHluLXRlc3QtMTE3L3Byb3ZpZGVycy9NaWNyb3NvZnQuQVZTL3ByaXZhdGVDbG91ZHMvd2V6YW1seW4tdGVzdC0xMTcvd29ya2xvYWROZXR3b3Jrcy9kZWZhdWx0L2Ruc1pvbmVzL2ZxZG5EbnNab25lP2FwaS12ZXJzaW9uPTIwMjEtMDYtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.30015.01", + "OSName/Linux", + "OSVersion/Linux.5.4.0.73.generic.82.18.04.1.Ubuntu.SMP.Fri.Apr.16.15.10.02.UTC.2021", + "Microsoft.Azure.Management.Avs.AvsClient/2.0.0.1" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11986" + ], + "x-ms-request-id": [ + "f535acc8-4b5e-40d9-b02a-ccf156bed1a7" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "nginx" + ], + "x-ms-correlation-request-id": [ + "96f962c1-4309-4b2e-8a44-0cb23c19ddc9" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20210525T232846Z:96f962c1-4309-4b2e-8a44-0cb23c19ddc9" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Tue, 25 May 2021 23:28:45 GMT" + ], + "Content-Length": [ + "453" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\n \"id\": \"/subscriptions/2fdcc35c-1cea-4759-8cbd-d3d02f37745d/resourceGroups/wezamlyn-test-117/providers/Microsoft.AVS/privateClouds/wezamlyn-test-117/workloadNetworks/default/dnsZones/fqdnDnsZone\",\n \"name\": \"fqdnDnsZone\",\n \"properties\": {\n \"displayName\": \"fqdnDnsZone\",\n \"dnsServerIps\": [\n \"1.1.1.1\"\n ],\n \"dnsServices\": 0,\n \"domain\": [\n \"fqdndnszone.com\"\n ],\n \"provisioningState\": \"Fulfilled\",\n \"revision\": 0,\n \"sourceIp\": \"\"\n },\n \"type\": \"Microsoft.AVS/privateClouds/workloadNetworks/dnsZones\"\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/2fdcc35c-1cea-4759-8cbd-d3d02f37745d/resourceGroups/wezamlyn-test-117/providers/Microsoft.AVS/privateClouds/wezamlyn-test-117/workloadNetworks/default/dnsZones?api-version=2021-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMmZkY2MzNWMtMWNlYS00NzU5LThjYmQtZDNkMDJmMzc3NDVkL3Jlc291cmNlR3JvdXBzL3dlemFtbHluLXRlc3QtMTE3L3Byb3ZpZGVycy9NaWNyb3NvZnQuQVZTL3ByaXZhdGVDbG91ZHMvd2V6YW1seW4tdGVzdC0xMTcvd29ya2xvYWROZXR3b3Jrcy9kZWZhdWx0L2Ruc1pvbmVzP2FwaS12ZXJzaW9uPTIwMjEtMDYtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "7b36033b-f7d7-4dee-b2a1-102486d2ae44" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.30015.01", + "OSName/Linux", + "OSVersion/Linux.5.4.0.73.generic.82.18.04.1.Ubuntu.SMP.Fri.Apr.16.15.10.02.UTC.2021", + "Microsoft.Azure.Management.Avs.AvsClient/2.0.0.1" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11985" + ], + "x-ms-request-id": [ + "6c580a70-cd2b-466d-a4a5-7542a27a6e73" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "nginx" + ], + "x-ms-correlation-request-id": [ + "d8be0366-a372-4c2c-9894-3169983dd8ff" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20210525T232846Z:d8be0366-a372-4c2c-9894-3169983dd8ff" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Tue, 25 May 2021 23:28:46 GMT" + ], + "Content-Length": [ + "911" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\n \"value\": [\n {\n \"id\": \"/subscriptions/2fdcc35c-1cea-4759-8cbd-d3d02f37745d/resourceGroups/wezamlyn-test-117/providers/Microsoft.AVS/privateClouds/wezamlyn-test-117/workloadNetworks/default/dnsZones/defaultdnszone\",\n \"name\": \"defaultdnszone\",\n \"properties\": {\n \"displayName\": \"defaultDnsZone\",\n \"dnsServerIps\": [\n \"1.1.1.1\"\n ],\n \"dnsServices\": 0,\n \"domain\": [],\n \"provisioningState\": \"Fulfilled\",\n \"revision\": 0,\n \"sourceIp\": \"\"\n },\n \"type\": \"Microsoft.AVS/privateClouds/workloadNetworks/dnsZones\"\n },\n {\n \"id\": \"/subscriptions/2fdcc35c-1cea-4759-8cbd-d3d02f37745d/resourceGroups/wezamlyn-test-117/providers/Microsoft.AVS/privateClouds/wezamlyn-test-117/workloadNetworks/default/dnsZones/fqdndnszone\",\n \"name\": \"fqdndnszone\",\n \"properties\": {\n \"displayName\": \"fqdnDnsZone\",\n \"dnsServerIps\": [\n \"1.1.1.1\"\n ],\n \"dnsServices\": 0,\n \"domain\": [\n \"fqdndnszone.com\"\n ],\n \"provisioningState\": \"Fulfilled\",\n \"revision\": 0,\n \"sourceIp\": \"\"\n },\n \"type\": \"Microsoft.AVS/privateClouds/workloadNetworks/dnsZones\"\n }\n ]\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/2fdcc35c-1cea-4759-8cbd-d3d02f37745d/resourceGroups/wezamlyn-test-117/providers/Microsoft.AVS/privateClouds/wezamlyn-test-117/workloadNetworks/default/dnsZones/defaultDnsZone?api-version=2021-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMmZkY2MzNWMtMWNlYS00NzU5LThjYmQtZDNkMDJmMzc3NDVkL3Jlc291cmNlR3JvdXBzL3dlemFtbHluLXRlc3QtMTE3L3Byb3ZpZGVycy9NaWNyb3NvZnQuQVZTL3ByaXZhdGVDbG91ZHMvd2V6YW1seW4tdGVzdC0xMTcvd29ya2xvYWROZXR3b3Jrcy9kZWZhdWx0L2Ruc1pvbmVzL2RlZmF1bHREbnNab25lP2FwaS12ZXJzaW9uPTIwMjEtMDYtMDE=", + "RequestMethod": "PATCH", + "RequestBody": "{\n \"properties\": {\n \"displayName\": \"modifiedDnsZone\",\n \"domain\": [],\n \"dnsServerIps\": [\n \"1.1.1.1\"\n ]\n }\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "01ee244d-d061-4eea-8113-eb25ec14c009" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.30015.01", + "OSName/Linux", + "OSVersion/Linux.5.4.0.73.generic.82.18.04.1.Ubuntu.SMP.Fri.Apr.16.15.10.02.UTC.2021", + "Microsoft.Azure.Management.Avs.AvsClient/2.0.0.1" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "125" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "10" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1197" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/2fdcc35c-1cea-4759-8cbd-d3d02f37745d/resourceGroups/wezamlyn-test-117/providers/Microsoft.AVS/privateClouds/wezamlyn-test-117/workloadNetworks/default/dnsZones/defaultDnsZone/operationstatuses/e72327cd-4e0a-445e-9ade-7483c594cd53?api-version=2021-06-01" + ], + "x-ms-request-id": [ + "cbdc5760-927d-4940-8747-1078e126673c" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "nginx" + ], + "x-ms-correlation-request-id": [ + "3cef82a2-8543-4dca-a7d1-8486ff822ffe" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20210525T232848Z:3cef82a2-8543-4dca-a7d1-8486ff822ffe" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Tue, 25 May 2021 23:28:48 GMT" + ], + "Content-Length": [ + "445" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\n \"id\": \"/subscriptions/2fdcc35c-1cea-4759-8cbd-d3d02f37745d/resourceGroups/wezamlyn-test-117/providers/Microsoft.AVS/privateClouds/wezamlyn-test-117/workloadNetworks/default/dnsZones/defaultDnsZone\",\n \"name\": \"defaultDnsZone\",\n \"properties\": {\n \"displayName\": \"modifiedDnsZone\",\n \"dnsServerIps\": [\n \"1.1.1.1\"\n ],\n \"dnsServices\": 0,\n \"domain\": [],\n \"provisioningState\": \"Building\",\n \"revision\": 0,\n \"sourceIp\": \"\"\n },\n \"type\": \"Microsoft.AVS/privateClouds/workloadNetworks/dnsZones\"\n}", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/2fdcc35c-1cea-4759-8cbd-d3d02f37745d/resourceGroups/wezamlyn-test-117/providers/Microsoft.AVS/privateClouds/wezamlyn-test-117/workloadNetworks/default/dnsZones/defaultDnsZone/operationstatuses/e72327cd-4e0a-445e-9ade-7483c594cd53?api-version=2021-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMmZkY2MzNWMtMWNlYS00NzU5LThjYmQtZDNkMDJmMzc3NDVkL3Jlc291cmNlR3JvdXBzL3dlemFtbHluLXRlc3QtMTE3L3Byb3ZpZGVycy9NaWNyb3NvZnQuQVZTL3ByaXZhdGVDbG91ZHMvd2V6YW1seW4tdGVzdC0xMTcvd29ya2xvYWROZXR3b3Jrcy9kZWZhdWx0L2Ruc1pvbmVzL2RlZmF1bHREbnNab25lL29wZXJhdGlvbnN0YXR1c2VzL2U3MjMyN2NkLTRlMGEtNDQ1ZS05YWRlLTc0ODNjNTk0Y2Q1Mz9hcGktdmVyc2lvbj0yMDIxLTA2LTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.30015.01", + "OSName/Linux", + "OSVersion/Linux.5.4.0.73.generic.82.18.04.1.Ubuntu.SMP.Fri.Apr.16.15.10.02.UTC.2021", + "Microsoft.Azure.Management.Avs.AvsClient/2.0.0.1" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "10" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11983" + ], + "x-ms-request-id": [ + "95c16390-aae1-4a49-926a-f4b2d43800c2" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "nginx" + ], + "x-ms-correlation-request-id": [ + "c5311c26-bbfb-484d-8a2b-8cacafe41ab1" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20210525T232858Z:c5311c26-bbfb-484d-8a2b-8cacafe41ab1" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Tue, 25 May 2021 23:28:58 GMT" + ], + "Content-Length": [ + "387" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\n \"id\": \"/subscriptions/2fdcc35c-1cea-4759-8cbd-d3d02f37745d/resourceGroups/wezamlyn-test-117/providers/Microsoft.AVS/privateClouds/wezamlyn-test-117/workloadNetworks/default/dnsZones/defaultDnsZone/operationstatuses/e72327cd-4e0a-445e-9ade-7483c594cd53\",\n \"name\": \"e72327cd-4e0a-445e-9ade-7483c594cd53\",\n \"percentComplete\": 0,\n \"startTime\": \"2021-05-25T16:28:48.4254743-07:00\",\n \"status\": \"Building\"\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/2fdcc35c-1cea-4759-8cbd-d3d02f37745d/resourceGroups/wezamlyn-test-117/providers/Microsoft.AVS/privateClouds/wezamlyn-test-117/workloadNetworks/default/dnsZones/defaultDnsZone/operationstatuses/e72327cd-4e0a-445e-9ade-7483c594cd53?api-version=2021-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMmZkY2MzNWMtMWNlYS00NzU5LThjYmQtZDNkMDJmMzc3NDVkL3Jlc291cmNlR3JvdXBzL3dlemFtbHluLXRlc3QtMTE3L3Byb3ZpZGVycy9NaWNyb3NvZnQuQVZTL3ByaXZhdGVDbG91ZHMvd2V6YW1seW4tdGVzdC0xMTcvd29ya2xvYWROZXR3b3Jrcy9kZWZhdWx0L2Ruc1pvbmVzL2RlZmF1bHREbnNab25lL29wZXJhdGlvbnN0YXR1c2VzL2U3MjMyN2NkLTRlMGEtNDQ1ZS05YWRlLTc0ODNjNTk0Y2Q1Mz9hcGktdmVyc2lvbj0yMDIxLTA2LTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.30015.01", + "OSName/Linux", + "OSVersion/Linux.5.4.0.73.generic.82.18.04.1.Ubuntu.SMP.Fri.Apr.16.15.10.02.UTC.2021", + "Microsoft.Azure.Management.Avs.AvsClient/2.0.0.1" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "10" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11982" + ], + "x-ms-request-id": [ + "4e0ff608-3cae-44a1-9acd-53813e0ecc61" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "nginx" + ], + "x-ms-correlation-request-id": [ + "8bc6a6d0-a6f7-48a6-a091-5c6ded8cb2bd" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20210525T232908Z:8bc6a6d0-a6f7-48a6-a091-5c6ded8cb2bd" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Tue, 25 May 2021 23:29:08 GMT" + ], + "Content-Length": [ + "387" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\n \"id\": \"/subscriptions/2fdcc35c-1cea-4759-8cbd-d3d02f37745d/resourceGroups/wezamlyn-test-117/providers/Microsoft.AVS/privateClouds/wezamlyn-test-117/workloadNetworks/default/dnsZones/defaultDnsZone/operationstatuses/e72327cd-4e0a-445e-9ade-7483c594cd53\",\n \"name\": \"e72327cd-4e0a-445e-9ade-7483c594cd53\",\n \"percentComplete\": 0,\n \"startTime\": \"2021-05-25T16:28:48.4254743-07:00\",\n \"status\": \"Building\"\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/2fdcc35c-1cea-4759-8cbd-d3d02f37745d/resourceGroups/wezamlyn-test-117/providers/Microsoft.AVS/privateClouds/wezamlyn-test-117/workloadNetworks/default/dnsZones/defaultDnsZone/operationstatuses/e72327cd-4e0a-445e-9ade-7483c594cd53?api-version=2021-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMmZkY2MzNWMtMWNlYS00NzU5LThjYmQtZDNkMDJmMzc3NDVkL3Jlc291cmNlR3JvdXBzL3dlemFtbHluLXRlc3QtMTE3L3Byb3ZpZGVycy9NaWNyb3NvZnQuQVZTL3ByaXZhdGVDbG91ZHMvd2V6YW1seW4tdGVzdC0xMTcvd29ya2xvYWROZXR3b3Jrcy9kZWZhdWx0L2Ruc1pvbmVzL2RlZmF1bHREbnNab25lL29wZXJhdGlvbnN0YXR1c2VzL2U3MjMyN2NkLTRlMGEtNDQ1ZS05YWRlLTc0ODNjNTk0Y2Q1Mz9hcGktdmVyc2lvbj0yMDIxLTA2LTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.30015.01", + "OSName/Linux", + "OSVersion/Linux.5.4.0.73.generic.82.18.04.1.Ubuntu.SMP.Fri.Apr.16.15.10.02.UTC.2021", + "Microsoft.Azure.Management.Avs.AvsClient/2.0.0.1" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "10" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11981" + ], + "x-ms-request-id": [ + "09c7226c-25f8-471a-b3f7-59bf10989b16" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "nginx" + ], + "x-ms-correlation-request-id": [ + "df3327d8-6a08-44d1-8e62-a20b351c23fa" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20210525T232918Z:df3327d8-6a08-44d1-8e62-a20b351c23fa" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Tue, 25 May 2021 23:29:18 GMT" + ], + "Content-Length": [ + "387" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\n \"id\": \"/subscriptions/2fdcc35c-1cea-4759-8cbd-d3d02f37745d/resourceGroups/wezamlyn-test-117/providers/Microsoft.AVS/privateClouds/wezamlyn-test-117/workloadNetworks/default/dnsZones/defaultDnsZone/operationstatuses/e72327cd-4e0a-445e-9ade-7483c594cd53\",\n \"name\": \"e72327cd-4e0a-445e-9ade-7483c594cd53\",\n \"percentComplete\": 0,\n \"startTime\": \"2021-05-25T16:28:48.4254743-07:00\",\n \"status\": \"Building\"\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/2fdcc35c-1cea-4759-8cbd-d3d02f37745d/resourceGroups/wezamlyn-test-117/providers/Microsoft.AVS/privateClouds/wezamlyn-test-117/workloadNetworks/default/dnsZones/defaultDnsZone/operationstatuses/e72327cd-4e0a-445e-9ade-7483c594cd53?api-version=2021-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMmZkY2MzNWMtMWNlYS00NzU5LThjYmQtZDNkMDJmMzc3NDVkL3Jlc291cmNlR3JvdXBzL3dlemFtbHluLXRlc3QtMTE3L3Byb3ZpZGVycy9NaWNyb3NvZnQuQVZTL3ByaXZhdGVDbG91ZHMvd2V6YW1seW4tdGVzdC0xMTcvd29ya2xvYWROZXR3b3Jrcy9kZWZhdWx0L2Ruc1pvbmVzL2RlZmF1bHREbnNab25lL29wZXJhdGlvbnN0YXR1c2VzL2U3MjMyN2NkLTRlMGEtNDQ1ZS05YWRlLTc0ODNjNTk0Y2Q1Mz9hcGktdmVyc2lvbj0yMDIxLTA2LTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.30015.01", + "OSName/Linux", + "OSVersion/Linux.5.4.0.73.generic.82.18.04.1.Ubuntu.SMP.Fri.Apr.16.15.10.02.UTC.2021", + "Microsoft.Azure.Management.Avs.AvsClient/2.0.0.1" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "10" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11980" + ], + "x-ms-request-id": [ + "e96980f5-9916-4141-8bc4-5491d75fc1b8" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "nginx" + ], + "x-ms-correlation-request-id": [ + "87e1083a-bb1d-4732-a478-2ac8dde5b38d" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20210525T232928Z:87e1083a-bb1d-4732-a478-2ac8dde5b38d" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Tue, 25 May 2021 23:29:28 GMT" + ], + "Content-Length": [ + "387" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\n \"id\": \"/subscriptions/2fdcc35c-1cea-4759-8cbd-d3d02f37745d/resourceGroups/wezamlyn-test-117/providers/Microsoft.AVS/privateClouds/wezamlyn-test-117/workloadNetworks/default/dnsZones/defaultDnsZone/operationstatuses/e72327cd-4e0a-445e-9ade-7483c594cd53\",\n \"name\": \"e72327cd-4e0a-445e-9ade-7483c594cd53\",\n \"percentComplete\": 0,\n \"startTime\": \"2021-05-25T16:28:48.4254743-07:00\",\n \"status\": \"Building\"\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/2fdcc35c-1cea-4759-8cbd-d3d02f37745d/resourceGroups/wezamlyn-test-117/providers/Microsoft.AVS/privateClouds/wezamlyn-test-117/workloadNetworks/default/dnsZones/defaultDnsZone/operationstatuses/e72327cd-4e0a-445e-9ade-7483c594cd53?api-version=2021-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMmZkY2MzNWMtMWNlYS00NzU5LThjYmQtZDNkMDJmMzc3NDVkL3Jlc291cmNlR3JvdXBzL3dlemFtbHluLXRlc3QtMTE3L3Byb3ZpZGVycy9NaWNyb3NvZnQuQVZTL3ByaXZhdGVDbG91ZHMvd2V6YW1seW4tdGVzdC0xMTcvd29ya2xvYWROZXR3b3Jrcy9kZWZhdWx0L2Ruc1pvbmVzL2RlZmF1bHREbnNab25lL29wZXJhdGlvbnN0YXR1c2VzL2U3MjMyN2NkLTRlMGEtNDQ1ZS05YWRlLTc0ODNjNTk0Y2Q1Mz9hcGktdmVyc2lvbj0yMDIxLTA2LTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.30015.01", + "OSName/Linux", + "OSVersion/Linux.5.4.0.73.generic.82.18.04.1.Ubuntu.SMP.Fri.Apr.16.15.10.02.UTC.2021", + "Microsoft.Azure.Management.Avs.AvsClient/2.0.0.1" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "10" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11979" + ], + "x-ms-request-id": [ + "f01c2664-88e0-4ff8-b731-34bacc6e62f5" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "nginx" + ], + "x-ms-correlation-request-id": [ + "f09af107-11c1-41cc-8b61-e9f029c57346" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20210525T232939Z:f09af107-11c1-41cc-8b61-e9f029c57346" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Tue, 25 May 2021 23:29:38 GMT" + ], + "Content-Length": [ + "387" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\n \"id\": \"/subscriptions/2fdcc35c-1cea-4759-8cbd-d3d02f37745d/resourceGroups/wezamlyn-test-117/providers/Microsoft.AVS/privateClouds/wezamlyn-test-117/workloadNetworks/default/dnsZones/defaultDnsZone/operationstatuses/e72327cd-4e0a-445e-9ade-7483c594cd53\",\n \"name\": \"e72327cd-4e0a-445e-9ade-7483c594cd53\",\n \"percentComplete\": 0,\n \"startTime\": \"2021-05-25T16:28:48.4254743-07:00\",\n \"status\": \"Building\"\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/2fdcc35c-1cea-4759-8cbd-d3d02f37745d/resourceGroups/wezamlyn-test-117/providers/Microsoft.AVS/privateClouds/wezamlyn-test-117/workloadNetworks/default/dnsZones/defaultDnsZone/operationstatuses/e72327cd-4e0a-445e-9ade-7483c594cd53?api-version=2021-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMmZkY2MzNWMtMWNlYS00NzU5LThjYmQtZDNkMDJmMzc3NDVkL3Jlc291cmNlR3JvdXBzL3dlemFtbHluLXRlc3QtMTE3L3Byb3ZpZGVycy9NaWNyb3NvZnQuQVZTL3ByaXZhdGVDbG91ZHMvd2V6YW1seW4tdGVzdC0xMTcvd29ya2xvYWROZXR3b3Jrcy9kZWZhdWx0L2Ruc1pvbmVzL2RlZmF1bHREbnNab25lL29wZXJhdGlvbnN0YXR1c2VzL2U3MjMyN2NkLTRlMGEtNDQ1ZS05YWRlLTc0ODNjNTk0Y2Q1Mz9hcGktdmVyc2lvbj0yMDIxLTA2LTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.30015.01", + "OSName/Linux", + "OSVersion/Linux.5.4.0.73.generic.82.18.04.1.Ubuntu.SMP.Fri.Apr.16.15.10.02.UTC.2021", + "Microsoft.Azure.Management.Avs.AvsClient/2.0.0.1" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "10" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11978" + ], + "x-ms-request-id": [ + "4170a3bf-6870-4473-a8e4-e94b3fd662fd" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "nginx" + ], + "x-ms-correlation-request-id": [ + "47440402-bcdb-4b26-b00d-2ca5459303cf" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20210525T232949Z:47440402-bcdb-4b26-b00d-2ca5459303cf" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Tue, 25 May 2021 23:29:48 GMT" + ], + "Content-Length": [ + "896" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\n \"endTime\": \"2021-05-25T16:29:46.0093238-07:00\",\n \"id\": \"/subscriptions/2fdcc35c-1cea-4759-8cbd-d3d02f37745d/resourceGroups/wezamlyn-test-117/providers/Microsoft.AVS/privateClouds/wezamlyn-test-117/workloadNetworks/default/dnsZones/defaultDnsZone/operationstatuses/e72327cd-4e0a-445e-9ade-7483c594cd53\",\n \"name\": \"e72327cd-4e0a-445e-9ade-7483c594cd53\",\n \"percentComplete\": 100,\n \"properties\": {\n \"id\": \"/subscriptions/2fdcc35c-1cea-4759-8cbd-d3d02f37745d/resourceGroups/wezamlyn-test-117/providers/Microsoft.AVS/privateClouds/wezamlyn-test-117/workloadNetworks/default/dnsZones/defaultDnsZone\",\n \"name\": \"defaultDnsZone\",\n \"properties\": {\n \"displayName\": \"modifiedDnsZone\",\n \"dnsServerIps\": [\n \"1.1.1.1\"\n ],\n \"dnsServices\": 0,\n \"domain\": [],\n \"provisioningState\": \"Fulfilled\",\n \"revision\": 1,\n \"sourceIp\": \"\"\n },\n \"type\": \"Microsoft.AVS/privateClouds/workloadNetworks/dnsZones\"\n },\n \"startTime\": \"2021-05-25T16:28:48.4254743-07:00\",\n \"status\": \"Succeeded\"\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/2fdcc35c-1cea-4759-8cbd-d3d02f37745d/resourceGroups/wezamlyn-test-117/providers/Microsoft.AVS/privateClouds/wezamlyn-test-117/workloadNetworks/default/dnsServices/dns-forwarder?api-version=2021-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMmZkY2MzNWMtMWNlYS00NzU5LThjYmQtZDNkMDJmMzc3NDVkL3Jlc291cmNlR3JvdXBzL3dlemFtbHluLXRlc3QtMTE3L3Byb3ZpZGVycy9NaWNyb3NvZnQuQVZTL3ByaXZhdGVDbG91ZHMvd2V6YW1seW4tdGVzdC0xMTcvd29ya2xvYWROZXR3b3Jrcy9kZWZhdWx0L2Ruc1NlcnZpY2VzL2Rucy1mb3J3YXJkZXI/YXBpLXZlcnNpb249MjAyMS0wNi0wMQ==", + "RequestMethod": "PUT", + "RequestBody": "{\n \"properties\": {\n \"displayName\": \"dns-forwarder\",\n \"dnsServiceIp\": \"5.5.5.5\",\n \"defaultDnsZone\": \"defaultDnsZone\",\n \"fqdnZones\": [\n \"fqdnDnsZone\"\n ],\n \"logLevel\": \"INFO\"\n }\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "4c713c0a-6aa9-4265-b063-ab1c75eb7a0f" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.30015.01", + "OSName/Linux", + "OSVersion/Linux.5.4.0.73.generic.82.18.04.1.Ubuntu.SMP.Fri.Apr.16.15.10.02.UTC.2021", + "Microsoft.Azure.Management.Avs.AvsClient/2.0.0.1" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "201" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "10" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1196" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/2fdcc35c-1cea-4759-8cbd-d3d02f37745d/resourceGroups/wezamlyn-test-117/providers/Microsoft.AVS/privateClouds/wezamlyn-test-117/workloadNetworks/default/dnsServices/dns-forwarder/operationstatuses/0efd80ad-53cb-4716-8f3b-264717cb6e73?api-version=2021-06-01" + ], + "x-ms-request-id": [ + "af47f088-cd16-4bbf-916d-875b087fe2eb" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "nginx" + ], + "x-ms-correlation-request-id": [ + "1fd0d0fd-80b5-463d-8fb7-d3877d35d90a" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20210525T232951Z:1fd0d0fd-80b5-463d-8fb7-d3877d35d90a" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Tue, 25 May 2021 23:29:50 GMT" + ], + "Content-Length": [ + "470" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\n \"id\": \"/subscriptions/2fdcc35c-1cea-4759-8cbd-d3d02f37745d/resourceGroups/wezamlyn-test-117/providers/Microsoft.AVS/privateClouds/wezamlyn-test-117/workloadNetworks/default/dnsServices/dns-forwarder\",\n \"name\": \"dns-forwarder\",\n \"properties\": {\n \"defaultDnsZone\": \"defaultDnsZone\",\n \"displayName\": \"dns-forwarder\",\n \"dnsServiceIp\": \"5.5.5.5\",\n \"fqdnZones\": [\n \"fqdnDnsZone\"\n ],\n \"logLevel\": \"INFO\",\n \"provisioningState\": \"Building\"\n },\n \"type\": \"Microsoft.AVS/privateClouds/workloadNetworks/dnsServices\"\n}", + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/2fdcc35c-1cea-4759-8cbd-d3d02f37745d/resourceGroups/wezamlyn-test-117/providers/Microsoft.AVS/privateClouds/wezamlyn-test-117/workloadNetworks/default/dnsServices/dns-forwarder/operationstatuses/0efd80ad-53cb-4716-8f3b-264717cb6e73?api-version=2021-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMmZkY2MzNWMtMWNlYS00NzU5LThjYmQtZDNkMDJmMzc3NDVkL3Jlc291cmNlR3JvdXBzL3dlemFtbHluLXRlc3QtMTE3L3Byb3ZpZGVycy9NaWNyb3NvZnQuQVZTL3ByaXZhdGVDbG91ZHMvd2V6YW1seW4tdGVzdC0xMTcvd29ya2xvYWROZXR3b3Jrcy9kZWZhdWx0L2Ruc1NlcnZpY2VzL2Rucy1mb3J3YXJkZXIvb3BlcmF0aW9uc3RhdHVzZXMvMGVmZDgwYWQtNTNjYi00NzE2LThmM2ItMjY0NzE3Y2I2ZTczP2FwaS12ZXJzaW9uPTIwMjEtMDYtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.30015.01", + "OSName/Linux", + "OSVersion/Linux.5.4.0.73.generic.82.18.04.1.Ubuntu.SMP.Fri.Apr.16.15.10.02.UTC.2021", + "Microsoft.Azure.Management.Avs.AvsClient/2.0.0.1" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "10" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11976" + ], + "x-ms-request-id": [ + "9227b3e3-2f4c-4695-b3fd-1e79fe60854e" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "nginx" + ], + "x-ms-correlation-request-id": [ + "568a9409-1098-48d1-b078-6fcceee7646b" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20210525T233002Z:568a9409-1098-48d1-b078-6fcceee7646b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Tue, 25 May 2021 23:30:01 GMT" + ], + "Content-Length": [ + "955" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\n \"endTime\": \"2021-05-25T16:29:59.8258203-07:00\",\n \"id\": \"/subscriptions/2fdcc35c-1cea-4759-8cbd-d3d02f37745d/resourceGroups/wezamlyn-test-117/providers/Microsoft.AVS/privateClouds/wezamlyn-test-117/workloadNetworks/default/dnsServices/dns-forwarder/operationstatuses/0efd80ad-53cb-4716-8f3b-264717cb6e73\",\n \"name\": \"0efd80ad-53cb-4716-8f3b-264717cb6e73\",\n \"percentComplete\": 100,\n \"properties\": {\n \"id\": \"/subscriptions/2fdcc35c-1cea-4759-8cbd-d3d02f37745d/resourceGroups/wezamlyn-test-117/providers/Microsoft.AVS/privateClouds/wezamlyn-test-117/workloadNetworks/default/dnsServices/dns-forwarder\",\n \"name\": \"dns-forwarder\",\n \"properties\": {\n \"defaultDnsZone\": \"defaultdnszone\",\n \"displayName\": \"dns-forwarder\",\n \"dnsServiceIp\": \"5.5.5.5\",\n \"fqdnZones\": [\n \"fqdndnszone\"\n ],\n \"logLevel\": \"INFO\",\n \"provisioningState\": \"Fulfilled\",\n \"revision\": 0,\n \"status\": \"SUCCESS\"\n },\n \"type\": \"Microsoft.AVS/privateClouds/workloadNetworks/dnsServices\"\n },\n \"startTime\": \"2021-05-25T16:29:50.9511795-07:00\",\n \"status\": \"Succeeded\"\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/2fdcc35c-1cea-4759-8cbd-d3d02f37745d/resourceGroups/wezamlyn-test-117/providers/Microsoft.AVS/privateClouds/wezamlyn-test-117/workloadNetworks/default/dnsServices/dns-forwarder?api-version=2021-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMmZkY2MzNWMtMWNlYS00NzU5LThjYmQtZDNkMDJmMzc3NDVkL3Jlc291cmNlR3JvdXBzL3dlemFtbHluLXRlc3QtMTE3L3Byb3ZpZGVycy9NaWNyb3NvZnQuQVZTL3ByaXZhdGVDbG91ZHMvd2V6YW1seW4tdGVzdC0xMTcvd29ya2xvYWROZXR3b3Jrcy9kZWZhdWx0L2Ruc1NlcnZpY2VzL2Rucy1mb3J3YXJkZXI/YXBpLXZlcnNpb249MjAyMS0wNi0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.30015.01", + "OSName/Linux", + "OSVersion/Linux.5.4.0.73.generic.82.18.04.1.Ubuntu.SMP.Fri.Apr.16.15.10.02.UTC.2021", + "Microsoft.Azure.Management.Avs.AvsClient/2.0.0.1" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11975" + ], + "x-ms-request-id": [ + "967ee292-830a-4090-92c0-5c967f0cfb5f" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "nginx" + ], + "x-ms-correlation-request-id": [ + "522f84a1-36c6-4990-ab02-b2bb24a82fe6" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20210525T233002Z:522f84a1-36c6-4990-ab02-b2bb24a82fe6" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Tue, 25 May 2021 23:30:01 GMT" + ], + "Content-Length": [ + "503" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\n \"id\": \"/subscriptions/2fdcc35c-1cea-4759-8cbd-d3d02f37745d/resourceGroups/wezamlyn-test-117/providers/Microsoft.AVS/privateClouds/wezamlyn-test-117/workloadNetworks/default/dnsServices/dns-forwarder\",\n \"name\": \"dns-forwarder\",\n \"properties\": {\n \"defaultDnsZone\": \"defaultdnszone\",\n \"displayName\": \"dns-forwarder\",\n \"dnsServiceIp\": \"5.5.5.5\",\n \"fqdnZones\": [\n \"fqdndnszone\"\n ],\n \"logLevel\": \"INFO\",\n \"provisioningState\": \"Fulfilled\",\n \"revision\": 0,\n \"status\": \"SUCCESS\"\n },\n \"type\": \"Microsoft.AVS/privateClouds/workloadNetworks/dnsServices\"\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/2fdcc35c-1cea-4759-8cbd-d3d02f37745d/resourceGroups/wezamlyn-test-117/providers/Microsoft.AVS/privateClouds/wezamlyn-test-117/workloadNetworks/default/dnsServices/dns-forwarder?api-version=2021-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMmZkY2MzNWMtMWNlYS00NzU5LThjYmQtZDNkMDJmMzc3NDVkL3Jlc291cmNlR3JvdXBzL3dlemFtbHluLXRlc3QtMTE3L3Byb3ZpZGVycy9NaWNyb3NvZnQuQVZTL3ByaXZhdGVDbG91ZHMvd2V6YW1seW4tdGVzdC0xMTcvd29ya2xvYWROZXR3b3Jrcy9kZWZhdWx0L2Ruc1NlcnZpY2VzL2Rucy1mb3J3YXJkZXI/YXBpLXZlcnNpb249MjAyMS0wNi0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "8ef9b533-3ed0-45d5-83c7-0a9e5a0b8439" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.30015.01", + "OSName/Linux", + "OSVersion/Linux.5.4.0.73.generic.82.18.04.1.Ubuntu.SMP.Fri.Apr.16.15.10.02.UTC.2021", + "Microsoft.Azure.Management.Avs.AvsClient/2.0.0.1" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11973" + ], + "x-ms-request-id": [ + "1d956fcb-add6-4b33-9633-e48a926f044d" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "nginx" + ], + "x-ms-correlation-request-id": [ + "3a06dbbd-eced-41f9-9e4f-cbaf1b9cd4be" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20210525T233003Z:3a06dbbd-eced-41f9-9e4f-cbaf1b9cd4be" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Tue, 25 May 2021 23:30:02 GMT" + ], + "Content-Length": [ + "503" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\n \"id\": \"/subscriptions/2fdcc35c-1cea-4759-8cbd-d3d02f37745d/resourceGroups/wezamlyn-test-117/providers/Microsoft.AVS/privateClouds/wezamlyn-test-117/workloadNetworks/default/dnsServices/dns-forwarder\",\n \"name\": \"dns-forwarder\",\n \"properties\": {\n \"defaultDnsZone\": \"defaultdnszone\",\n \"displayName\": \"dns-forwarder\",\n \"dnsServiceIp\": \"5.5.5.5\",\n \"fqdnZones\": [\n \"fqdndnszone\"\n ],\n \"logLevel\": \"INFO\",\n \"provisioningState\": \"Fulfilled\",\n \"revision\": 0,\n \"status\": \"SUCCESS\"\n },\n \"type\": \"Microsoft.AVS/privateClouds/workloadNetworks/dnsServices\"\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/2fdcc35c-1cea-4759-8cbd-d3d02f37745d/resourceGroups/wezamlyn-test-117/providers/Microsoft.AVS/privateClouds/wezamlyn-test-117/workloadNetworks/default/dnsServices/dns-forwarder?api-version=2021-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMmZkY2MzNWMtMWNlYS00NzU5LThjYmQtZDNkMDJmMzc3NDVkL3Jlc291cmNlR3JvdXBzL3dlemFtbHluLXRlc3QtMTE3L3Byb3ZpZGVycy9NaWNyb3NvZnQuQVZTL3ByaXZhdGVDbG91ZHMvd2V6YW1seW4tdGVzdC0xMTcvd29ya2xvYWROZXR3b3Jrcy9kZWZhdWx0L2Ruc1NlcnZpY2VzL2Rucy1mb3J3YXJkZXI/YXBpLXZlcnNpb249MjAyMS0wNi0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.30015.01", + "OSName/Linux", + "OSVersion/Linux.5.4.0.73.generic.82.18.04.1.Ubuntu.SMP.Fri.Apr.16.15.10.02.UTC.2021", + "Microsoft.Azure.Management.Avs.AvsClient/2.0.0.1" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11970" + ], + "x-ms-request-id": [ + "301579f3-d559-4ba0-8ec2-5228731de02a" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "nginx" + ], + "x-ms-correlation-request-id": [ + "4624fc7b-91ab-4175-8747-aba7ad1f8315" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20210525T233026Z:4624fc7b-91ab-4175-8747-aba7ad1f8315" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Tue, 25 May 2021 23:30:26 GMT" + ], + "Content-Length": [ + "508" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\n \"id\": \"/subscriptions/2fdcc35c-1cea-4759-8cbd-d3d02f37745d/resourceGroups/wezamlyn-test-117/providers/Microsoft.AVS/privateClouds/wezamlyn-test-117/workloadNetworks/default/dnsServices/dns-forwarder\",\n \"name\": \"dns-forwarder\",\n \"properties\": {\n \"defaultDnsZone\": \"defaultdnszone\",\n \"displayName\": \"modifiedDnsService\",\n \"dnsServiceIp\": \"5.5.5.5\",\n \"fqdnZones\": [\n \"fqdndnszone\"\n ],\n \"logLevel\": \"INFO\",\n \"provisioningState\": \"Fulfilled\",\n \"revision\": 1,\n \"status\": \"SUCCESS\"\n },\n \"type\": \"Microsoft.AVS/privateClouds/workloadNetworks/dnsServices\"\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/2fdcc35c-1cea-4759-8cbd-d3d02f37745d/resourceGroups/wezamlyn-test-117/providers/Microsoft.AVS/privateClouds/wezamlyn-test-117/workloadNetworks/default/dnsServices?api-version=2021-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMmZkY2MzNWMtMWNlYS00NzU5LThjYmQtZDNkMDJmMzc3NDVkL3Jlc291cmNlR3JvdXBzL3dlemFtbHluLXRlc3QtMTE3L3Byb3ZpZGVycy9NaWNyb3NvZnQuQVZTL3ByaXZhdGVDbG91ZHMvd2V6YW1seW4tdGVzdC0xMTcvd29ya2xvYWROZXR3b3Jrcy9kZWZhdWx0L2Ruc1NlcnZpY2VzP2FwaS12ZXJzaW9uPTIwMjEtMDYtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "dc05cca1-3401-4737-856c-7927174357c4" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.30015.01", + "OSName/Linux", + "OSVersion/Linux.5.4.0.73.generic.82.18.04.1.Ubuntu.SMP.Fri.Apr.16.15.10.02.UTC.2021", + "Microsoft.Azure.Management.Avs.AvsClient/2.0.0.1" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11974" + ], + "x-ms-request-id": [ + "ec929d3c-802c-4beb-b88e-131ed6cce8ef" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "nginx" + ], + "x-ms-correlation-request-id": [ + "dad72059-31c9-4ad1-a780-b5bb72e3d512" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20210525T233003Z:dad72059-31c9-4ad1-a780-b5bb72e3d512" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Tue, 25 May 2021 23:30:02 GMT" + ], + "Content-Length": [ + "515" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\n \"value\": [\n {\n \"id\": \"/subscriptions/2fdcc35c-1cea-4759-8cbd-d3d02f37745d/resourceGroups/wezamlyn-test-117/providers/Microsoft.AVS/privateClouds/wezamlyn-test-117/workloadNetworks/default/dnsServices/dns-forwarder\",\n \"name\": \"dns-forwarder\",\n \"properties\": {\n \"defaultDnsZone\": \"defaultdnszone\",\n \"displayName\": \"dns-forwarder\",\n \"dnsServiceIp\": \"5.5.5.5\",\n \"fqdnZones\": [\n \"fqdndnszone\"\n ],\n \"logLevel\": \"INFO\",\n \"provisioningState\": \"Fulfilled\",\n \"revision\": 0,\n \"status\": \"SUCCESS\"\n },\n \"type\": \"Microsoft.AVS/privateClouds/workloadNetworks/dnsServices\"\n }\n ]\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/2fdcc35c-1cea-4759-8cbd-d3d02f37745d/resourceGroups/wezamlyn-test-117/providers/Microsoft.AVS/privateClouds/wezamlyn-test-117/workloadNetworks/default/dnsServices/dns-forwarder?api-version=2021-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMmZkY2MzNWMtMWNlYS00NzU5LThjYmQtZDNkMDJmMzc3NDVkL3Jlc291cmNlR3JvdXBzL3dlemFtbHluLXRlc3QtMTE3L3Byb3ZpZGVycy9NaWNyb3NvZnQuQVZTL3ByaXZhdGVDbG91ZHMvd2V6YW1seW4tdGVzdC0xMTcvd29ya2xvYWROZXR3b3Jrcy9kZWZhdWx0L2Ruc1NlcnZpY2VzL2Rucy1mb3J3YXJkZXI/YXBpLXZlcnNpb249MjAyMS0wNi0wMQ==", + "RequestMethod": "PATCH", + "RequestBody": "{\n \"properties\": {\n \"displayName\": \"modifiedDnsService\",\n \"dnsServiceIp\": \"5.5.5.5\",\n \"defaultDnsZone\": \"defaultDnsZone\",\n \"fqdnZones\": [\n \"fqdnDnsZone\"\n ],\n \"logLevel\": \"INFO\"\n }\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "5543c7d2-973e-41aa-b271-a8bd603714fc" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.30015.01", + "OSName/Linux", + "OSVersion/Linux.5.4.0.73.generic.82.18.04.1.Ubuntu.SMP.Fri.Apr.16.15.10.02.UTC.2021", + "Microsoft.Azure.Management.Avs.AvsClient/2.0.0.1" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "206" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "10" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1195" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/2fdcc35c-1cea-4759-8cbd-d3d02f37745d/resourceGroups/wezamlyn-test-117/providers/Microsoft.AVS/privateClouds/wezamlyn-test-117/workloadNetworks/default/dnsServices/dns-forwarder/operationstatuses/d5fa9f61-2c1c-46da-8bb4-218a22c0d87c?api-version=2021-06-01" + ], + "x-ms-request-id": [ + "10d1a693-10f9-4c58-b737-3f735591565f" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "nginx" + ], + "x-ms-correlation-request-id": [ + "14c67fb1-8bc1-4f37-bd9d-93d1d82bd7a7" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20210525T233005Z:14c67fb1-8bc1-4f37-bd9d-93d1d82bd7a7" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Tue, 25 May 2021 23:30:04 GMT" + ], + "Content-Length": [ + "507" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\n \"id\": \"/subscriptions/2fdcc35c-1cea-4759-8cbd-d3d02f37745d/resourceGroups/wezamlyn-test-117/providers/Microsoft.AVS/privateClouds/wezamlyn-test-117/workloadNetworks/default/dnsServices/dns-forwarder\",\n \"name\": \"dns-forwarder\",\n \"properties\": {\n \"defaultDnsZone\": \"defaultDnsZone\",\n \"displayName\": \"modifiedDnsService\",\n \"dnsServiceIp\": \"5.5.5.5\",\n \"fqdnZones\": [\n \"fqdnDnsZone\"\n ],\n \"logLevel\": \"INFO\",\n \"provisioningState\": \"Building\",\n \"revision\": 0,\n \"status\": \"SUCCESS\"\n },\n \"type\": \"Microsoft.AVS/privateClouds/workloadNetworks/dnsServices\"\n}", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/2fdcc35c-1cea-4759-8cbd-d3d02f37745d/resourceGroups/wezamlyn-test-117/providers/Microsoft.AVS/privateClouds/wezamlyn-test-117/workloadNetworks/default/dnsServices/dns-forwarder/operationstatuses/d5fa9f61-2c1c-46da-8bb4-218a22c0d87c?api-version=2021-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMmZkY2MzNWMtMWNlYS00NzU5LThjYmQtZDNkMDJmMzc3NDVkL3Jlc291cmNlR3JvdXBzL3dlemFtbHluLXRlc3QtMTE3L3Byb3ZpZGVycy9NaWNyb3NvZnQuQVZTL3ByaXZhdGVDbG91ZHMvd2V6YW1seW4tdGVzdC0xMTcvd29ya2xvYWROZXR3b3Jrcy9kZWZhdWx0L2Ruc1NlcnZpY2VzL2Rucy1mb3J3YXJkZXIvb3BlcmF0aW9uc3RhdHVzZXMvZDVmYTlmNjEtMmMxYy00NmRhLThiYjQtMjE4YTIyYzBkODdjP2FwaS12ZXJzaW9uPTIwMjEtMDYtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.30015.01", + "OSName/Linux", + "OSVersion/Linux.5.4.0.73.generic.82.18.04.1.Ubuntu.SMP.Fri.Apr.16.15.10.02.UTC.2021", + "Microsoft.Azure.Management.Avs.AvsClient/2.0.0.1" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "10" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11972" + ], + "x-ms-request-id": [ + "efcd0958-121e-4886-a554-de05989f7de0" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "nginx" + ], + "x-ms-correlation-request-id": [ + "4cf60376-2d3d-4023-9173-e061f3268aea" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20210525T233015Z:4cf60376-2d3d-4023-9173-e061f3268aea" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Tue, 25 May 2021 23:30:15 GMT" + ], + "Content-Length": [ + "388" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\n \"id\": \"/subscriptions/2fdcc35c-1cea-4759-8cbd-d3d02f37745d/resourceGroups/wezamlyn-test-117/providers/Microsoft.AVS/privateClouds/wezamlyn-test-117/workloadNetworks/default/dnsServices/dns-forwarder/operationstatuses/d5fa9f61-2c1c-46da-8bb4-218a22c0d87c\",\n \"name\": \"d5fa9f61-2c1c-46da-8bb4-218a22c0d87c\",\n \"percentComplete\": 0,\n \"startTime\": \"2021-05-25T16:30:04.9051363-07:00\",\n \"status\": \"Pending\"\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/2fdcc35c-1cea-4759-8cbd-d3d02f37745d/resourceGroups/wezamlyn-test-117/providers/Microsoft.AVS/privateClouds/wezamlyn-test-117/workloadNetworks/default/dnsServices/dns-forwarder/operationstatuses/d5fa9f61-2c1c-46da-8bb4-218a22c0d87c?api-version=2021-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMmZkY2MzNWMtMWNlYS00NzU5LThjYmQtZDNkMDJmMzc3NDVkL3Jlc291cmNlR3JvdXBzL3dlemFtbHluLXRlc3QtMTE3L3Byb3ZpZGVycy9NaWNyb3NvZnQuQVZTL3ByaXZhdGVDbG91ZHMvd2V6YW1seW4tdGVzdC0xMTcvd29ya2xvYWROZXR3b3Jrcy9kZWZhdWx0L2Ruc1NlcnZpY2VzL2Rucy1mb3J3YXJkZXIvb3BlcmF0aW9uc3RhdHVzZXMvZDVmYTlmNjEtMmMxYy00NmRhLThiYjQtMjE4YTIyYzBkODdjP2FwaS12ZXJzaW9uPTIwMjEtMDYtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.30015.01", + "OSName/Linux", + "OSVersion/Linux.5.4.0.73.generic.82.18.04.1.Ubuntu.SMP.Fri.Apr.16.15.10.02.UTC.2021", + "Microsoft.Azure.Management.Avs.AvsClient/2.0.0.1" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "10" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11971" + ], + "x-ms-request-id": [ + "918a97f7-9928-4148-ab62-ce0ad38e8431" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "nginx" + ], + "x-ms-correlation-request-id": [ + "011dd199-afa5-4637-86f6-24b17ac57b52" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20210525T233025Z:011dd199-afa5-4637-86f6-24b17ac57b52" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Tue, 25 May 2021 23:30:25 GMT" + ], + "Content-Length": [ + "960" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\n \"endTime\": \"2021-05-25T16:30:20.8273165-07:00\",\n \"id\": \"/subscriptions/2fdcc35c-1cea-4759-8cbd-d3d02f37745d/resourceGroups/wezamlyn-test-117/providers/Microsoft.AVS/privateClouds/wezamlyn-test-117/workloadNetworks/default/dnsServices/dns-forwarder/operationstatuses/d5fa9f61-2c1c-46da-8bb4-218a22c0d87c\",\n \"name\": \"d5fa9f61-2c1c-46da-8bb4-218a22c0d87c\",\n \"percentComplete\": 100,\n \"properties\": {\n \"id\": \"/subscriptions/2fdcc35c-1cea-4759-8cbd-d3d02f37745d/resourceGroups/wezamlyn-test-117/providers/Microsoft.AVS/privateClouds/wezamlyn-test-117/workloadNetworks/default/dnsServices/dns-forwarder\",\n \"name\": \"dns-forwarder\",\n \"properties\": {\n \"defaultDnsZone\": \"defaultdnszone\",\n \"displayName\": \"modifiedDnsService\",\n \"dnsServiceIp\": \"5.5.5.5\",\n \"fqdnZones\": [\n \"fqdndnszone\"\n ],\n \"logLevel\": \"INFO\",\n \"provisioningState\": \"Fulfilled\",\n \"revision\": 1,\n \"status\": \"SUCCESS\"\n },\n \"type\": \"Microsoft.AVS/privateClouds/workloadNetworks/dnsServices\"\n },\n \"startTime\": \"2021-05-25T16:30:04.9051363-07:00\",\n \"status\": \"Succeeded\"\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/2fdcc35c-1cea-4759-8cbd-d3d02f37745d/resourceGroups/wezamlyn-test-117/providers/Microsoft.AVS/privateClouds/wezamlyn-test-117/workloadNetworks/default/dnsServices/dns-forwarder?api-version=2021-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMmZkY2MzNWMtMWNlYS00NzU5LThjYmQtZDNkMDJmMzc3NDVkL3Jlc291cmNlR3JvdXBzL3dlemFtbHluLXRlc3QtMTE3L3Byb3ZpZGVycy9NaWNyb3NvZnQuQVZTL3ByaXZhdGVDbG91ZHMvd2V6YW1seW4tdGVzdC0xMTcvd29ya2xvYWROZXR3b3Jrcy9kZWZhdWx0L2Ruc1NlcnZpY2VzL2Rucy1mb3J3YXJkZXI/YXBpLXZlcnNpb249MjAyMS0wNi0wMQ==", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "f0f2cd2f-1efc-4469-91c9-1b1e21425182" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.30015.01", + "OSName/Linux", + "OSVersion/Linux.5.4.0.73.generic.82.18.04.1.Ubuntu.SMP.Fri.Apr.16.15.10.02.UTC.2021", + "Microsoft.Azure.Management.Avs.AvsClient/2.0.0.1" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/2fdcc35c-1cea-4759-8cbd-d3d02f37745d/resourceGroups/wezamlyn-test-117/providers/Microsoft.AVS/privateClouds/wezamlyn-test-117/workloadNetworks/default/dnsServices/dns-forwarder/operationresults/164c7bb7-d359-4379-a1b9-3606a7db8fab?api-version=2021-06-01" + ], + "Retry-After": [ + "10" + ], + "x-ms-ratelimit-remaining-subscription-deletes": [ + "14999" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/2fdcc35c-1cea-4759-8cbd-d3d02f37745d/resourceGroups/wezamlyn-test-117/providers/Microsoft.AVS/privateClouds/wezamlyn-test-117/workloadNetworks/default/dnsServices/dns-forwarder/operationstatuses/164c7bb7-d359-4379-a1b9-3606a7db8fab?api-version=2021-06-01" + ], + "x-ms-request-id": [ + "6bc8e1e0-0fa6-47ad-9b34-095b26a0e522" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "nginx" + ], + "x-ms-correlation-request-id": [ + "a9fda3fc-ebb8-4dea-b37e-bcec1c2acc77" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20210525T233027Z:a9fda3fc-ebb8-4dea-b37e-bcec1c2acc77" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Tue, 25 May 2021 23:30:26 GMT" + ], + "Content-Length": [ + "507" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\n \"id\": \"/subscriptions/2fdcc35c-1cea-4759-8cbd-d3d02f37745d/resourceGroups/wezamlyn-test-117/providers/Microsoft.AVS/privateClouds/wezamlyn-test-117/workloadNetworks/default/dnsServices/dns-forwarder\",\n \"name\": \"dns-forwarder\",\n \"properties\": {\n \"defaultDnsZone\": \"defaultdnszone\",\n \"displayName\": \"modifiedDnsService\",\n \"dnsServiceIp\": \"5.5.5.5\",\n \"fqdnZones\": [\n \"fqdndnszone\"\n ],\n \"logLevel\": \"INFO\",\n \"provisioningState\": \"Deleting\",\n \"revision\": 1,\n \"status\": \"SUCCESS\"\n },\n \"type\": \"Microsoft.AVS/privateClouds/workloadNetworks/dnsServices\"\n}", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/2fdcc35c-1cea-4759-8cbd-d3d02f37745d/resourceGroups/wezamlyn-test-117/providers/Microsoft.AVS/privateClouds/wezamlyn-test-117/workloadNetworks/default/dnsServices/dns-forwarder/operationstatuses/164c7bb7-d359-4379-a1b9-3606a7db8fab?api-version=2021-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMmZkY2MzNWMtMWNlYS00NzU5LThjYmQtZDNkMDJmMzc3NDVkL3Jlc291cmNlR3JvdXBzL3dlemFtbHluLXRlc3QtMTE3L3Byb3ZpZGVycy9NaWNyb3NvZnQuQVZTL3ByaXZhdGVDbG91ZHMvd2V6YW1seW4tdGVzdC0xMTcvd29ya2xvYWROZXR3b3Jrcy9kZWZhdWx0L2Ruc1NlcnZpY2VzL2Rucy1mb3J3YXJkZXIvb3BlcmF0aW9uc3RhdHVzZXMvMTY0YzdiYjctZDM1OS00Mzc5LWExYjktMzYwNmE3ZGI4ZmFiP2FwaS12ZXJzaW9uPTIwMjEtMDYtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.30015.01", + "OSName/Linux", + "OSVersion/Linux.5.4.0.73.generic.82.18.04.1.Ubuntu.SMP.Fri.Apr.16.15.10.02.UTC.2021", + "Microsoft.Azure.Management.Avs.AvsClient/2.0.0.1" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "10" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11969" + ], + "x-ms-request-id": [ + "6e1a78f3-1002-4d9e-9bf1-f85d5c65d7f4" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "nginx" + ], + "x-ms-correlation-request-id": [ + "59cb2692-0ced-4eef-9498-47dbdf738cd0" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20210525T233037Z:59cb2692-0ced-4eef-9498-47dbdf738cd0" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Tue, 25 May 2021 23:30:36 GMT" + ], + "Content-Length": [ + "438" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\n \"endTime\": \"2021-05-25T16:30:28.8348672-07:00\",\n \"id\": \"/subscriptions/2fdcc35c-1cea-4759-8cbd-d3d02f37745d/resourceGroups/wezamlyn-test-117/providers/Microsoft.AVS/privateClouds/wezamlyn-test-117/workloadNetworks/default/dnsServices/dns-forwarder/operationstatuses/164c7bb7-d359-4379-a1b9-3606a7db8fab\",\n \"name\": \"164c7bb7-d359-4379-a1b9-3606a7db8fab\",\n \"percentComplete\": 100,\n \"startTime\": \"2021-05-25T16:30:26.8441974-07:00\",\n \"status\": \"Succeeded\"\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/2fdcc35c-1cea-4759-8cbd-d3d02f37745d/resourceGroups/wezamlyn-test-117/providers/Microsoft.AVS/privateClouds/wezamlyn-test-117/workloadNetworks/default/dnsServices/dns-forwarder/operationresults/164c7bb7-d359-4379-a1b9-3606a7db8fab?api-version=2021-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMmZkY2MzNWMtMWNlYS00NzU5LThjYmQtZDNkMDJmMzc3NDVkL3Jlc291cmNlR3JvdXBzL3dlemFtbHluLXRlc3QtMTE3L3Byb3ZpZGVycy9NaWNyb3NvZnQuQVZTL3ByaXZhdGVDbG91ZHMvd2V6YW1seW4tdGVzdC0xMTcvd29ya2xvYWROZXR3b3Jrcy9kZWZhdWx0L2Ruc1NlcnZpY2VzL2Rucy1mb3J3YXJkZXIvb3BlcmF0aW9ucmVzdWx0cy8xNjRjN2JiNy1kMzU5LTQzNzktYTFiOS0zNjA2YTdkYjhmYWI/YXBpLXZlcnNpb249MjAyMS0wNi0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.30015.01", + "OSName/Linux", + "OSVersion/Linux.5.4.0.73.generic.82.18.04.1.Ubuntu.SMP.Fri.Apr.16.15.10.02.UTC.2021", + "Microsoft.Azure.Management.Avs.AvsClient/2.0.0.1" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11968" + ], + "x-ms-request-id": [ + "532ad6bf-a9a8-4631-81a5-432261263507" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "nginx" + ], + "x-ms-correlation-request-id": [ + "1e85f129-21e8-43cc-bba4-0720d6757885" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20210525T233037Z:1e85f129-21e8-43cc-bba4-0720d6757885" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Tue, 25 May 2021 23:30:36 GMT" + ], + "Content-Length": [ + "4" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "null", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/2fdcc35c-1cea-4759-8cbd-d3d02f37745d/resourceGroups/wezamlyn-test-117/providers/Microsoft.AVS/privateClouds/wezamlyn-test-117/workloadNetworks/default/dnsZones/defaultDnsZone?api-version=2021-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMmZkY2MzNWMtMWNlYS00NzU5LThjYmQtZDNkMDJmMzc3NDVkL3Jlc291cmNlR3JvdXBzL3dlemFtbHluLXRlc3QtMTE3L3Byb3ZpZGVycy9NaWNyb3NvZnQuQVZTL3ByaXZhdGVDbG91ZHMvd2V6YW1seW4tdGVzdC0xMTcvd29ya2xvYWROZXR3b3Jrcy9kZWZhdWx0L2Ruc1pvbmVzL2RlZmF1bHREbnNab25lP2FwaS12ZXJzaW9uPTIwMjEtMDYtMDE=", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "391d92ad-02d1-45fe-ac2f-d202860d9a7e" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.30015.01", + "OSName/Linux", + "OSVersion/Linux.5.4.0.73.generic.82.18.04.1.Ubuntu.SMP.Fri.Apr.16.15.10.02.UTC.2021", + "Microsoft.Azure.Management.Avs.AvsClient/2.0.0.1" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/2fdcc35c-1cea-4759-8cbd-d3d02f37745d/resourceGroups/wezamlyn-test-117/providers/Microsoft.AVS/privateClouds/wezamlyn-test-117/workloadNetworks/default/dnsZones/defaultDnsZone/operationresults/d6a52f26-a51a-41a4-a941-39c155e07383?api-version=2021-06-01" + ], + "Retry-After": [ + "10" + ], + "x-ms-ratelimit-remaining-subscription-deletes": [ + "14998" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/2fdcc35c-1cea-4759-8cbd-d3d02f37745d/resourceGroups/wezamlyn-test-117/providers/Microsoft.AVS/privateClouds/wezamlyn-test-117/workloadNetworks/default/dnsZones/defaultDnsZone/operationstatuses/d6a52f26-a51a-41a4-a941-39c155e07383?api-version=2021-06-01" + ], + "x-ms-request-id": [ + "e18d0adb-ae1b-456f-8014-94e85c6482ad" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "nginx" + ], + "x-ms-correlation-request-id": [ + "3b5119da-7268-47e3-a8bc-e74699bfda9a" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20210525T233038Z:3b5119da-7268-47e3-a8bc-e74699bfda9a" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Tue, 25 May 2021 23:30:38 GMT" + ], + "Content-Length": [ + "445" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\n \"id\": \"/subscriptions/2fdcc35c-1cea-4759-8cbd-d3d02f37745d/resourceGroups/wezamlyn-test-117/providers/Microsoft.AVS/privateClouds/wezamlyn-test-117/workloadNetworks/default/dnsZones/defaultDnsZone\",\n \"name\": \"defaultDnsZone\",\n \"properties\": {\n \"displayName\": \"modifiedDnsZone\",\n \"dnsServerIps\": [\n \"1.1.1.1\"\n ],\n \"dnsServices\": 0,\n \"domain\": [],\n \"provisioningState\": \"Deleting\",\n \"revision\": 1,\n \"sourceIp\": \"\"\n },\n \"type\": \"Microsoft.AVS/privateClouds/workloadNetworks/dnsZones\"\n}", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/2fdcc35c-1cea-4759-8cbd-d3d02f37745d/resourceGroups/wezamlyn-test-117/providers/Microsoft.AVS/privateClouds/wezamlyn-test-117/workloadNetworks/default/dnsZones/defaultDnsZone/operationstatuses/d6a52f26-a51a-41a4-a941-39c155e07383?api-version=2021-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMmZkY2MzNWMtMWNlYS00NzU5LThjYmQtZDNkMDJmMzc3NDVkL3Jlc291cmNlR3JvdXBzL3dlemFtbHluLXRlc3QtMTE3L3Byb3ZpZGVycy9NaWNyb3NvZnQuQVZTL3ByaXZhdGVDbG91ZHMvd2V6YW1seW4tdGVzdC0xMTcvd29ya2xvYWROZXR3b3Jrcy9kZWZhdWx0L2Ruc1pvbmVzL2RlZmF1bHREbnNab25lL29wZXJhdGlvbnN0YXR1c2VzL2Q2YTUyZjI2LWE1MWEtNDFhNC1hOTQxLTM5YzE1NWUwNzM4Mz9hcGktdmVyc2lvbj0yMDIxLTA2LTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.30015.01", + "OSName/Linux", + "OSVersion/Linux.5.4.0.73.generic.82.18.04.1.Ubuntu.SMP.Fri.Apr.16.15.10.02.UTC.2021", + "Microsoft.Azure.Management.Avs.AvsClient/2.0.0.1" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "10" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11967" + ], + "x-ms-request-id": [ + "d0e966b1-d810-4eec-b47d-ab2c43ceb807" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "nginx" + ], + "x-ms-correlation-request-id": [ + "dd8c0ca4-5cab-48f4-af42-0d8678463408" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20210525T233049Z:dd8c0ca4-5cab-48f4-af42-0d8678463408" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Tue, 25 May 2021 23:30:49 GMT" + ], + "Content-Length": [ + "436" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\n \"endTime\": \"2021-05-25T16:30:39.7181761-07:00\",\n \"id\": \"/subscriptions/2fdcc35c-1cea-4759-8cbd-d3d02f37745d/resourceGroups/wezamlyn-test-117/providers/Microsoft.AVS/privateClouds/wezamlyn-test-117/workloadNetworks/default/dnsZones/defaultDnsZone/operationstatuses/d6a52f26-a51a-41a4-a941-39c155e07383\",\n \"name\": \"d6a52f26-a51a-41a4-a941-39c155e07383\",\n \"percentComplete\": 100,\n \"startTime\": \"2021-05-25T16:30:38.3974912-07:00\",\n \"status\": \"Succeeded\"\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/2fdcc35c-1cea-4759-8cbd-d3d02f37745d/resourceGroups/wezamlyn-test-117/providers/Microsoft.AVS/privateClouds/wezamlyn-test-117/workloadNetworks/default/dnsZones/defaultDnsZone/operationresults/d6a52f26-a51a-41a4-a941-39c155e07383?api-version=2021-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMmZkY2MzNWMtMWNlYS00NzU5LThjYmQtZDNkMDJmMzc3NDVkL3Jlc291cmNlR3JvdXBzL3dlemFtbHluLXRlc3QtMTE3L3Byb3ZpZGVycy9NaWNyb3NvZnQuQVZTL3ByaXZhdGVDbG91ZHMvd2V6YW1seW4tdGVzdC0xMTcvd29ya2xvYWROZXR3b3Jrcy9kZWZhdWx0L2Ruc1pvbmVzL2RlZmF1bHREbnNab25lL29wZXJhdGlvbnJlc3VsdHMvZDZhNTJmMjYtYTUxYS00MWE0LWE5NDEtMzljMTU1ZTA3MzgzP2FwaS12ZXJzaW9uPTIwMjEtMDYtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.30015.01", + "OSName/Linux", + "OSVersion/Linux.5.4.0.73.generic.82.18.04.1.Ubuntu.SMP.Fri.Apr.16.15.10.02.UTC.2021", + "Microsoft.Azure.Management.Avs.AvsClient/2.0.0.1" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11966" + ], + "x-ms-request-id": [ + "2e3e4638-a3c0-4cf3-8767-0e58a300f1f4" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "nginx" + ], + "x-ms-correlation-request-id": [ + "a7fceb7f-0c15-4871-abce-d3779018d0bb" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20210525T233049Z:a7fceb7f-0c15-4871-abce-d3779018d0bb" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Tue, 25 May 2021 23:30:49 GMT" + ], + "Content-Length": [ + "4" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "null", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/2fdcc35c-1cea-4759-8cbd-d3d02f37745d/resourceGroups/wezamlyn-test-117/providers/Microsoft.AVS/privateClouds/wezamlyn-test-117/workloadNetworks/default/dnsZones/fqdnDnsZone?api-version=2021-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMmZkY2MzNWMtMWNlYS00NzU5LThjYmQtZDNkMDJmMzc3NDVkL3Jlc291cmNlR3JvdXBzL3dlemFtbHluLXRlc3QtMTE3L3Byb3ZpZGVycy9NaWNyb3NvZnQuQVZTL3ByaXZhdGVDbG91ZHMvd2V6YW1seW4tdGVzdC0xMTcvd29ya2xvYWROZXR3b3Jrcy9kZWZhdWx0L2Ruc1pvbmVzL2ZxZG5EbnNab25lP2FwaS12ZXJzaW9uPTIwMjEtMDYtMDE=", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "ff333bc8-f074-49c1-8db8-b22277ad4c14" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.30015.01", + "OSName/Linux", + "OSVersion/Linux.5.4.0.73.generic.82.18.04.1.Ubuntu.SMP.Fri.Apr.16.15.10.02.UTC.2021", + "Microsoft.Azure.Management.Avs.AvsClient/2.0.0.1" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/2fdcc35c-1cea-4759-8cbd-d3d02f37745d/resourceGroups/wezamlyn-test-117/providers/Microsoft.AVS/privateClouds/wezamlyn-test-117/workloadNetworks/default/dnsZones/fqdnDnsZone/operationresults/c2de2330-e999-4e32-88f9-79dca50b1d43?api-version=2021-06-01" + ], + "Retry-After": [ + "10" + ], + "x-ms-ratelimit-remaining-subscription-deletes": [ + "14997" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/2fdcc35c-1cea-4759-8cbd-d3d02f37745d/resourceGroups/wezamlyn-test-117/providers/Microsoft.AVS/privateClouds/wezamlyn-test-117/workloadNetworks/default/dnsZones/fqdnDnsZone/operationstatuses/c2de2330-e999-4e32-88f9-79dca50b1d43?api-version=2021-06-01" + ], + "x-ms-request-id": [ + "57495469-7a19-46fe-8ba2-d6c7c12ad0f1" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "nginx" + ], + "x-ms-correlation-request-id": [ + "dfc8aa4f-e2b8-429e-9cc1-7860e8be9738" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20210525T233051Z:dfc8aa4f-e2b8-429e-9cc1-7860e8be9738" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Tue, 25 May 2021 23:30:50 GMT" + ], + "Content-Length": [ + "452" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\n \"id\": \"/subscriptions/2fdcc35c-1cea-4759-8cbd-d3d02f37745d/resourceGroups/wezamlyn-test-117/providers/Microsoft.AVS/privateClouds/wezamlyn-test-117/workloadNetworks/default/dnsZones/fqdnDnsZone\",\n \"name\": \"fqdnDnsZone\",\n \"properties\": {\n \"displayName\": \"fqdnDnsZone\",\n \"dnsServerIps\": [\n \"1.1.1.1\"\n ],\n \"dnsServices\": 0,\n \"domain\": [\n \"fqdndnszone.com\"\n ],\n \"provisioningState\": \"Deleting\",\n \"revision\": 0,\n \"sourceIp\": \"\"\n },\n \"type\": \"Microsoft.AVS/privateClouds/workloadNetworks/dnsZones\"\n}", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/2fdcc35c-1cea-4759-8cbd-d3d02f37745d/resourceGroups/wezamlyn-test-117/providers/Microsoft.AVS/privateClouds/wezamlyn-test-117/workloadNetworks/default/dnsZones/fqdnDnsZone/operationstatuses/c2de2330-e999-4e32-88f9-79dca50b1d43?api-version=2021-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMmZkY2MzNWMtMWNlYS00NzU5LThjYmQtZDNkMDJmMzc3NDVkL3Jlc291cmNlR3JvdXBzL3dlemFtbHluLXRlc3QtMTE3L3Byb3ZpZGVycy9NaWNyb3NvZnQuQVZTL3ByaXZhdGVDbG91ZHMvd2V6YW1seW4tdGVzdC0xMTcvd29ya2xvYWROZXR3b3Jrcy9kZWZhdWx0L2Ruc1pvbmVzL2ZxZG5EbnNab25lL29wZXJhdGlvbnN0YXR1c2VzL2MyZGUyMzMwLWU5OTktNGUzMi04OGY5LTc5ZGNhNTBiMWQ0Mz9hcGktdmVyc2lvbj0yMDIxLTA2LTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.30015.01", + "OSName/Linux", + "OSVersion/Linux.5.4.0.73.generic.82.18.04.1.Ubuntu.SMP.Fri.Apr.16.15.10.02.UTC.2021", + "Microsoft.Azure.Management.Avs.AvsClient/2.0.0.1" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "10" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11965" + ], + "x-ms-request-id": [ + "061e5b7d-2b44-4f8d-821c-557077a51f63" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "nginx" + ], + "x-ms-correlation-request-id": [ + "51d86218-8a9f-4788-af1a-1b2119eeb81c" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20210525T233101Z:51d86218-8a9f-4788-af1a-1b2119eeb81c" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Tue, 25 May 2021 23:31:00 GMT" + ], + "Content-Length": [ + "433" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\n \"endTime\": \"2021-05-25T16:30:56.6523489-07:00\",\n \"id\": \"/subscriptions/2fdcc35c-1cea-4759-8cbd-d3d02f37745d/resourceGroups/wezamlyn-test-117/providers/Microsoft.AVS/privateClouds/wezamlyn-test-117/workloadNetworks/default/dnsZones/fqdnDnsZone/operationstatuses/c2de2330-e999-4e32-88f9-79dca50b1d43\",\n \"name\": \"c2de2330-e999-4e32-88f9-79dca50b1d43\",\n \"percentComplete\": 100,\n \"startTime\": \"2021-05-25T16:30:51.0955174-07:00\",\n \"status\": \"Succeeded\"\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/2fdcc35c-1cea-4759-8cbd-d3d02f37745d/resourceGroups/wezamlyn-test-117/providers/Microsoft.AVS/privateClouds/wezamlyn-test-117/workloadNetworks/default/dnsZones/fqdnDnsZone/operationresults/c2de2330-e999-4e32-88f9-79dca50b1d43?api-version=2021-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMmZkY2MzNWMtMWNlYS00NzU5LThjYmQtZDNkMDJmMzc3NDVkL3Jlc291cmNlR3JvdXBzL3dlemFtbHluLXRlc3QtMTE3L3Byb3ZpZGVycy9NaWNyb3NvZnQuQVZTL3ByaXZhdGVDbG91ZHMvd2V6YW1seW4tdGVzdC0xMTcvd29ya2xvYWROZXR3b3Jrcy9kZWZhdWx0L2Ruc1pvbmVzL2ZxZG5EbnNab25lL29wZXJhdGlvbnJlc3VsdHMvYzJkZTIzMzAtZTk5OS00ZTMyLTg4ZjktNzlkY2E1MGIxZDQzP2FwaS12ZXJzaW9uPTIwMjEtMDYtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.30015.01", + "OSName/Linux", + "OSVersion/Linux.5.4.0.73.generic.82.18.04.1.Ubuntu.SMP.Fri.Apr.16.15.10.02.UTC.2021", + "Microsoft.Azure.Management.Avs.AvsClient/2.0.0.1" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11964" + ], + "x-ms-request-id": [ + "155ed558-deb0-4a51-9ab4-2a465db83c3d" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "nginx" + ], + "x-ms-correlation-request-id": [ + "3d04727e-bea8-4a72-a007-a88790362578" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20210525T233101Z:3d04727e-bea8-4a72-a007-a88790362578" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Tue, 25 May 2021 23:31:00 GMT" + ], + "Content-Length": [ + "4" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "null", + "StatusCode": 200 + } + ], + "Names": {}, + "Variables": { + "SubscriptionId": "2fdcc35c-1cea-4759-8cbd-d3d02f37745d" + } +} \ No newline at end of file diff --git a/sdk/avs/Microsoft.Azure.Management.Avs/tests/SessionRecords/WorkloadNetworksTests/WorkloadNetworksGatewaysSegments.json b/sdk/avs/Microsoft.Azure.Management.Avs/tests/SessionRecords/WorkloadNetworksTests/WorkloadNetworksGatewaysSegments.json new file mode 100644 index 000000000000..d36053bd885f --- /dev/null +++ b/sdk/avs/Microsoft.Azure.Management.Avs/tests/SessionRecords/WorkloadNetworksTests/WorkloadNetworksGatewaysSegments.json @@ -0,0 +1,830 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/2fdcc35c-1cea-4759-8cbd-d3d02f37745d/resourceGroups/wezamlyn-test-117/providers/Microsoft.AVS/privateClouds/wezamlyn-test-117/workloadNetworks/default/gateways?api-version=2021-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMmZkY2MzNWMtMWNlYS00NzU5LThjYmQtZDNkMDJmMzc3NDVkL3Jlc291cmNlR3JvdXBzL3dlemFtbHluLXRlc3QtMTE3L3Byb3ZpZGVycy9NaWNyb3NvZnQuQVZTL3ByaXZhdGVDbG91ZHMvd2V6YW1seW4tdGVzdC0xMTcvd29ya2xvYWROZXR3b3Jrcy9kZWZhdWx0L2dhdGV3YXlzP2FwaS12ZXJzaW9uPTIwMjEtMDYtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "b5625341-23b6-44a9-92fe-3700cb49936c" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.30015.01", + "OSName/Linux", + "OSVersion/Linux.5.4.0.73.generic.82.18.04.1.Ubuntu.SMP.Fri.Apr.16.15.10.02.UTC.2021", + "Microsoft.Azure.Management.Avs.AvsClient/2.0.0.1" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11999" + ], + "x-ms-request-id": [ + "f31d14c8-f910-423c-8e27-f13c5f3c91fc" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "nginx" + ], + "x-ms-correlation-request-id": [ + "7d4954e8-8adc-4225-adb6-6f42c0e43b63" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20210525T233121Z:7d4954e8-8adc-4225-adb6-6f42c0e43b63" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Tue, 25 May 2021 23:31:20 GMT" + ], + "Content-Length": [ + "358" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\n \"value\": [\n {\n \"id\": \"/subscriptions/2fdcc35c-1cea-4759-8cbd-d3d02f37745d/resourceGroups/wezamlyn-test-117/providers/Microsoft.AVS/privateClouds/wezamlyn-test-117/workloadNetworks/default/gateways/tnt55-t1\",\n \"name\": \"tnt55-t1\",\n \"properties\": {\n \"displayName\": \"TNT55-T1\",\n \"path\": \"/infra/tier-1s/TNT55-T1\"\n },\n \"type\": \"Microsoft.AVS/privateClouds/workloadNetworks/gateways\"\n }\n ]\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/2fdcc35c-1cea-4759-8cbd-d3d02f37745d/resourceGroups/wezamlyn-test-117/providers/Microsoft.AVS/privateClouds/wezamlyn-test-117/workloadNetworks/default/segments/segment?api-version=2021-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMmZkY2MzNWMtMWNlYS00NzU5LThjYmQtZDNkMDJmMzc3NDVkL3Jlc291cmNlR3JvdXBzL3dlemFtbHluLXRlc3QtMTE3L3Byb3ZpZGVycy9NaWNyb3NvZnQuQVZTL3ByaXZhdGVDbG91ZHMvd2V6YW1seW4tdGVzdC0xMTcvd29ya2xvYWROZXR3b3Jrcy9kZWZhdWx0L3NlZ21lbnRzL3NlZ21lbnQ/YXBpLXZlcnNpb249MjAyMS0wNi0wMQ==", + "RequestMethod": "PUT", + "RequestBody": "{\n \"properties\": {\n \"displayName\": \"segment\",\n \"connectedGateway\": \"TNT55-T1\",\n \"subnet\": {\n \"gatewayAddress\": \"10.2.3.1/24\"\n }\n }\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "7a8dcd0b-b78a-47c7-bc70-4e32e9d568eb" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.30015.01", + "OSName/Linux", + "OSVersion/Linux.5.4.0.73.generic.82.18.04.1.Ubuntu.SMP.Fri.Apr.16.15.10.02.UTC.2021", + "Microsoft.Azure.Management.Avs.AvsClient/2.0.0.1" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "151" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "10" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1199" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/2fdcc35c-1cea-4759-8cbd-d3d02f37745d/resourceGroups/wezamlyn-test-117/providers/Microsoft.AVS/privateClouds/wezamlyn-test-117/workloadNetworks/default/segments/segment/operationstatuses/324900bc-42d5-4e43-b636-34e240d34ce7?api-version=2021-06-01" + ], + "x-ms-request-id": [ + "3c5a2289-b512-4851-9d67-5a26938859d0" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "nginx" + ], + "x-ms-correlation-request-id": [ + "b974516a-55f1-426f-a024-7e9b5ce55d37" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20210525T233122Z:b974516a-55f1-426f-a024-7e9b5ce55d37" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Tue, 25 May 2021 23:31:21 GMT" + ], + "Content-Length": [ + "413" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\n \"id\": \"/subscriptions/2fdcc35c-1cea-4759-8cbd-d3d02f37745d/resourceGroups/wezamlyn-test-117/providers/Microsoft.AVS/privateClouds/wezamlyn-test-117/workloadNetworks/default/segments/segment\",\n \"name\": \"segment\",\n \"properties\": {\n \"connectedGateway\": \"TNT55-T1\",\n \"displayName\": \"segment\",\n \"provisioningState\": \"Building\",\n \"subnet\": {\n \"gatewayAddress\": \"10.2.3.1/24\"\n }\n },\n \"type\": \"Microsoft.AVS/privateClouds/workloadNetworks/segments\"\n}", + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/2fdcc35c-1cea-4759-8cbd-d3d02f37745d/resourceGroups/wezamlyn-test-117/providers/Microsoft.AVS/privateClouds/wezamlyn-test-117/workloadNetworks/default/segments/segment/operationstatuses/324900bc-42d5-4e43-b636-34e240d34ce7?api-version=2021-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMmZkY2MzNWMtMWNlYS00NzU5LThjYmQtZDNkMDJmMzc3NDVkL3Jlc291cmNlR3JvdXBzL3dlemFtbHluLXRlc3QtMTE3L3Byb3ZpZGVycy9NaWNyb3NvZnQuQVZTL3ByaXZhdGVDbG91ZHMvd2V6YW1seW4tdGVzdC0xMTcvd29ya2xvYWROZXR3b3Jrcy9kZWZhdWx0L3NlZ21lbnRzL3NlZ21lbnQvb3BlcmF0aW9uc3RhdHVzZXMvMzI0OTAwYmMtNDJkNS00ZTQzLWI2MzYtMzRlMjQwZDM0Y2U3P2FwaS12ZXJzaW9uPTIwMjEtMDYtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.30015.01", + "OSName/Linux", + "OSVersion/Linux.5.4.0.73.generic.82.18.04.1.Ubuntu.SMP.Fri.Apr.16.15.10.02.UTC.2021", + "Microsoft.Azure.Management.Avs.AvsClient/2.0.0.1" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "10" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11998" + ], + "x-ms-request-id": [ + "da50bfe0-f40d-4240-b335-8687c16aee6c" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "nginx" + ], + "x-ms-correlation-request-id": [ + "d5af62ec-e6f6-43cf-accb-e9974464a5a6" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20210525T233132Z:d5af62ec-e6f6-43cf-accb-e9974464a5a6" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Tue, 25 May 2021 23:31:31 GMT" + ], + "Content-Length": [ + "889" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\n \"endTime\": \"2021-05-25T16:31:24.0635788-07:00\",\n \"id\": \"/subscriptions/2fdcc35c-1cea-4759-8cbd-d3d02f37745d/resourceGroups/wezamlyn-test-117/providers/Microsoft.AVS/privateClouds/wezamlyn-test-117/workloadNetworks/default/segments/segment/operationstatuses/324900bc-42d5-4e43-b636-34e240d34ce7\",\n \"name\": \"324900bc-42d5-4e43-b636-34e240d34ce7\",\n \"percentComplete\": 100,\n \"properties\": {\n \"id\": \"/subscriptions/2fdcc35c-1cea-4759-8cbd-d3d02f37745d/resourceGroups/wezamlyn-test-117/providers/Microsoft.AVS/privateClouds/wezamlyn-test-117/workloadNetworks/default/segments/segment\",\n \"name\": \"segment\",\n \"properties\": {\n \"connectedGateway\": \"TNT55-T1\",\n \"displayName\": \"segment\",\n \"provisioningState\": \"Fulfilled\",\n \"revision\": 0,\n \"status\": \"SUCCESS\",\n \"subnet\": {\n \"gatewayAddress\": \"10.2.3.1/24\"\n }\n },\n \"type\": \"Microsoft.AVS/privateClouds/workloadNetworks/segments\"\n },\n \"startTime\": \"2021-05-25T16:31:21.8344055-07:00\",\n \"status\": \"Succeeded\"\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/2fdcc35c-1cea-4759-8cbd-d3d02f37745d/resourceGroups/wezamlyn-test-117/providers/Microsoft.AVS/privateClouds/wezamlyn-test-117/workloadNetworks/default/segments/segment?api-version=2021-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMmZkY2MzNWMtMWNlYS00NzU5LThjYmQtZDNkMDJmMzc3NDVkL3Jlc291cmNlR3JvdXBzL3dlemFtbHluLXRlc3QtMTE3L3Byb3ZpZGVycy9NaWNyb3NvZnQuQVZTL3ByaXZhdGVDbG91ZHMvd2V6YW1seW4tdGVzdC0xMTcvd29ya2xvYWROZXR3b3Jrcy9kZWZhdWx0L3NlZ21lbnRzL3NlZ21lbnQ/YXBpLXZlcnNpb249MjAyMS0wNi0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.30015.01", + "OSName/Linux", + "OSVersion/Linux.5.4.0.73.generic.82.18.04.1.Ubuntu.SMP.Fri.Apr.16.15.10.02.UTC.2021", + "Microsoft.Azure.Management.Avs.AvsClient/2.0.0.1" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11997" + ], + "x-ms-request-id": [ + "162d1ee7-99b7-4553-8b18-a3b515e524f9" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "nginx" + ], + "x-ms-correlation-request-id": [ + "54a0be4a-f8ac-4328-9e71-fe738a7da429" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20210525T233133Z:54a0be4a-f8ac-4328-9e71-fe738a7da429" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Tue, 25 May 2021 23:31:32 GMT" + ], + "Content-Length": [ + "446" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\n \"id\": \"/subscriptions/2fdcc35c-1cea-4759-8cbd-d3d02f37745d/resourceGroups/wezamlyn-test-117/providers/Microsoft.AVS/privateClouds/wezamlyn-test-117/workloadNetworks/default/segments/segment\",\n \"name\": \"segment\",\n \"properties\": {\n \"connectedGateway\": \"TNT55-T1\",\n \"displayName\": \"segment\",\n \"provisioningState\": \"Fulfilled\",\n \"revision\": 0,\n \"status\": \"SUCCESS\",\n \"subnet\": {\n \"gatewayAddress\": \"10.2.3.1/24\"\n }\n },\n \"type\": \"Microsoft.AVS/privateClouds/workloadNetworks/segments\"\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/2fdcc35c-1cea-4759-8cbd-d3d02f37745d/resourceGroups/wezamlyn-test-117/providers/Microsoft.AVS/privateClouds/wezamlyn-test-117/workloadNetworks/default/segments/segment?api-version=2021-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMmZkY2MzNWMtMWNlYS00NzU5LThjYmQtZDNkMDJmMzc3NDVkL3Jlc291cmNlR3JvdXBzL3dlemFtbHluLXRlc3QtMTE3L3Byb3ZpZGVycy9NaWNyb3NvZnQuQVZTL3ByaXZhdGVDbG91ZHMvd2V6YW1seW4tdGVzdC0xMTcvd29ya2xvYWROZXR3b3Jrcy9kZWZhdWx0L3NlZ21lbnRzL3NlZ21lbnQ/YXBpLXZlcnNpb249MjAyMS0wNi0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "e9192edd-e67b-4b96-97f1-c368fcb6f05b" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.30015.01", + "OSName/Linux", + "OSVersion/Linux.5.4.0.73.generic.82.18.04.1.Ubuntu.SMP.Fri.Apr.16.15.10.02.UTC.2021", + "Microsoft.Azure.Management.Avs.AvsClient/2.0.0.1" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11995" + ], + "x-ms-request-id": [ + "bc74b624-bb38-4583-939b-300573d2d18f" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "nginx" + ], + "x-ms-correlation-request-id": [ + "c15d854a-06a6-41d9-af1e-5101b28c6e96" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20210525T233134Z:c15d854a-06a6-41d9-af1e-5101b28c6e96" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Tue, 25 May 2021 23:31:33 GMT" + ], + "Content-Length": [ + "446" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\n \"id\": \"/subscriptions/2fdcc35c-1cea-4759-8cbd-d3d02f37745d/resourceGroups/wezamlyn-test-117/providers/Microsoft.AVS/privateClouds/wezamlyn-test-117/workloadNetworks/default/segments/segment\",\n \"name\": \"segment\",\n \"properties\": {\n \"connectedGateway\": \"TNT55-T1\",\n \"displayName\": \"segment\",\n \"provisioningState\": \"Fulfilled\",\n \"revision\": 0,\n \"status\": \"SUCCESS\",\n \"subnet\": {\n \"gatewayAddress\": \"10.2.3.1/24\"\n }\n },\n \"type\": \"Microsoft.AVS/privateClouds/workloadNetworks/segments\"\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/2fdcc35c-1cea-4759-8cbd-d3d02f37745d/resourceGroups/wezamlyn-test-117/providers/Microsoft.AVS/privateClouds/wezamlyn-test-117/workloadNetworks/default/segments/segment?api-version=2021-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMmZkY2MzNWMtMWNlYS00NzU5LThjYmQtZDNkMDJmMzc3NDVkL3Jlc291cmNlR3JvdXBzL3dlemFtbHluLXRlc3QtMTE3L3Byb3ZpZGVycy9NaWNyb3NvZnQuQVZTL3ByaXZhdGVDbG91ZHMvd2V6YW1seW4tdGVzdC0xMTcvd29ya2xvYWROZXR3b3Jrcy9kZWZhdWx0L3NlZ21lbnRzL3NlZ21lbnQ/YXBpLXZlcnNpb249MjAyMS0wNi0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.30015.01", + "OSName/Linux", + "OSVersion/Linux.5.4.0.73.generic.82.18.04.1.Ubuntu.SMP.Fri.Apr.16.15.10.02.UTC.2021", + "Microsoft.Azure.Management.Avs.AvsClient/2.0.0.1" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11992" + ], + "x-ms-request-id": [ + "4782e9bc-74ae-4273-9558-0c4525f70bed" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "nginx" + ], + "x-ms-correlation-request-id": [ + "d5ac7c45-787b-4be6-8e11-e2436a611909" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20210525T233158Z:d5ac7c45-787b-4be6-8e11-e2436a611909" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Tue, 25 May 2021 23:31:57 GMT" + ], + "Content-Length": [ + "454" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\n \"id\": \"/subscriptions/2fdcc35c-1cea-4759-8cbd-d3d02f37745d/resourceGroups/wezamlyn-test-117/providers/Microsoft.AVS/privateClouds/wezamlyn-test-117/workloadNetworks/default/segments/segment\",\n \"name\": \"segment\",\n \"properties\": {\n \"connectedGateway\": \"TNT55-T1\",\n \"displayName\": \"modifiedSegment\",\n \"provisioningState\": \"Fulfilled\",\n \"revision\": 1,\n \"status\": \"SUCCESS\",\n \"subnet\": {\n \"gatewayAddress\": \"10.2.3.1/24\"\n }\n },\n \"type\": \"Microsoft.AVS/privateClouds/workloadNetworks/segments\"\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/2fdcc35c-1cea-4759-8cbd-d3d02f37745d/resourceGroups/wezamlyn-test-117/providers/Microsoft.AVS/privateClouds/wezamlyn-test-117/workloadNetworks/default/segments?api-version=2021-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMmZkY2MzNWMtMWNlYS00NzU5LThjYmQtZDNkMDJmMzc3NDVkL3Jlc291cmNlR3JvdXBzL3dlemFtbHluLXRlc3QtMTE3L3Byb3ZpZGVycy9NaWNyb3NvZnQuQVZTL3ByaXZhdGVDbG91ZHMvd2V6YW1seW4tdGVzdC0xMTcvd29ya2xvYWROZXR3b3Jrcy9kZWZhdWx0L3NlZ21lbnRzP2FwaS12ZXJzaW9uPTIwMjEtMDYtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "4c9f02b4-1ca1-4912-90ff-1ac7d325aed5" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.30015.01", + "OSName/Linux", + "OSVersion/Linux.5.4.0.73.generic.82.18.04.1.Ubuntu.SMP.Fri.Apr.16.15.10.02.UTC.2021", + "Microsoft.Azure.Management.Avs.AvsClient/2.0.0.1" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11996" + ], + "x-ms-request-id": [ + "4661f989-41e8-44fc-a9bb-bee6a7d76b9f" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "nginx" + ], + "x-ms-correlation-request-id": [ + "f2bad2d6-573d-41b7-b5e7-938a5a50ef13" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20210525T233134Z:f2bad2d6-573d-41b7-b5e7-938a5a50ef13" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Tue, 25 May 2021 23:31:33 GMT" + ], + "Content-Length": [ + "934" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\n \"value\": [\n {\n \"id\": \"/subscriptions/2fdcc35c-1cea-4759-8cbd-d3d02f37745d/resourceGroups/wezamlyn-test-117/providers/Microsoft.AVS/privateClouds/wezamlyn-test-117/workloadNetworks/default/segments/segment\",\n \"name\": \"segment\",\n \"properties\": {\n \"connectedGateway\": \"TNT55-T1\",\n \"displayName\": \"segment\",\n \"provisioningState\": \"Fulfilled\",\n \"revision\": 0,\n \"status\": \"SUCCESS\",\n \"subnet\": {\n \"gatewayAddress\": \"10.2.3.1/24\"\n }\n },\n \"type\": \"Microsoft.AVS/privateClouds/workloadNetworks/segments\"\n },\n {\n \"id\": \"/subscriptions/2fdcc35c-1cea-4759-8cbd-d3d02f37745d/resourceGroups/wezamlyn-test-117/providers/Microsoft.AVS/privateClouds/wezamlyn-test-117/workloadNetworks/default/segments/tnt55-hcx-uplink\",\n \"name\": \"tnt55-hcx-uplink\",\n \"properties\": {\n \"connectedGateway\": \"TNT55-T1\",\n \"displayName\": \"TNT55-HCX-UPLINK\",\n \"provisioningState\": \"Fulfilled\",\n \"revision\": 0,\n \"status\": \"SUCCESS\",\n \"subnet\": {\n \"gatewayAddress\": \"10.0.115.1/26\"\n }\n },\n \"type\": \"Microsoft.AVS/privateClouds/workloadNetworks/segments\"\n }\n ]\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/2fdcc35c-1cea-4759-8cbd-d3d02f37745d/resourceGroups/wezamlyn-test-117/providers/Microsoft.AVS/privateClouds/wezamlyn-test-117/workloadNetworks/default/segments/segment?api-version=2021-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMmZkY2MzNWMtMWNlYS00NzU5LThjYmQtZDNkMDJmMzc3NDVkL3Jlc291cmNlR3JvdXBzL3dlemFtbHluLXRlc3QtMTE3L3Byb3ZpZGVycy9NaWNyb3NvZnQuQVZTL3ByaXZhdGVDbG91ZHMvd2V6YW1seW4tdGVzdC0xMTcvd29ya2xvYWROZXR3b3Jrcy9kZWZhdWx0L3NlZ21lbnRzL3NlZ21lbnQ/YXBpLXZlcnNpb249MjAyMS0wNi0wMQ==", + "RequestMethod": "PATCH", + "RequestBody": "{\n \"properties\": {\n \"displayName\": \"modifiedSegment\",\n \"connectedGateway\": \"TNT55-T1\",\n \"subnet\": {\n \"gatewayAddress\": \"10.2.3.1/24\"\n }\n }\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "06cabc8a-12df-4863-9ce1-5494299e2537" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.30015.01", + "OSName/Linux", + "OSVersion/Linux.5.4.0.73.generic.82.18.04.1.Ubuntu.SMP.Fri.Apr.16.15.10.02.UTC.2021", + "Microsoft.Azure.Management.Avs.AvsClient/2.0.0.1" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "159" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "10" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1198" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/2fdcc35c-1cea-4759-8cbd-d3d02f37745d/resourceGroups/wezamlyn-test-117/providers/Microsoft.AVS/privateClouds/wezamlyn-test-117/workloadNetworks/default/segments/segment/operationstatuses/65d76517-70e1-4b9c-8212-9639b6baedb6?api-version=2021-06-01" + ], + "x-ms-request-id": [ + "714d75cf-25de-487a-a572-aa99d02a2233" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "nginx" + ], + "x-ms-correlation-request-id": [ + "5eb08f4d-cf44-4aad-8759-7d03fc14c6ac" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20210525T233136Z:5eb08f4d-cf44-4aad-8759-7d03fc14c6ac" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Tue, 25 May 2021 23:31:36 GMT" + ], + "Content-Length": [ + "453" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\n \"id\": \"/subscriptions/2fdcc35c-1cea-4759-8cbd-d3d02f37745d/resourceGroups/wezamlyn-test-117/providers/Microsoft.AVS/privateClouds/wezamlyn-test-117/workloadNetworks/default/segments/segment\",\n \"name\": \"segment\",\n \"properties\": {\n \"connectedGateway\": \"TNT55-T1\",\n \"displayName\": \"modifiedSegment\",\n \"provisioningState\": \"Building\",\n \"revision\": 0,\n \"status\": \"SUCCESS\",\n \"subnet\": {\n \"gatewayAddress\": \"10.2.3.1/24\"\n }\n },\n \"type\": \"Microsoft.AVS/privateClouds/workloadNetworks/segments\"\n}", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/2fdcc35c-1cea-4759-8cbd-d3d02f37745d/resourceGroups/wezamlyn-test-117/providers/Microsoft.AVS/privateClouds/wezamlyn-test-117/workloadNetworks/default/segments/segment/operationstatuses/65d76517-70e1-4b9c-8212-9639b6baedb6?api-version=2021-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMmZkY2MzNWMtMWNlYS00NzU5LThjYmQtZDNkMDJmMzc3NDVkL3Jlc291cmNlR3JvdXBzL3dlemFtbHluLXRlc3QtMTE3L3Byb3ZpZGVycy9NaWNyb3NvZnQuQVZTL3ByaXZhdGVDbG91ZHMvd2V6YW1seW4tdGVzdC0xMTcvd29ya2xvYWROZXR3b3Jrcy9kZWZhdWx0L3NlZ21lbnRzL3NlZ21lbnQvb3BlcmF0aW9uc3RhdHVzZXMvNjVkNzY1MTctNzBlMS00YjljLTgyMTItOTYzOWI2YmFlZGI2P2FwaS12ZXJzaW9uPTIwMjEtMDYtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.30015.01", + "OSName/Linux", + "OSVersion/Linux.5.4.0.73.generic.82.18.04.1.Ubuntu.SMP.Fri.Apr.16.15.10.02.UTC.2021", + "Microsoft.Azure.Management.Avs.AvsClient/2.0.0.1" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "10" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11994" + ], + "x-ms-request-id": [ + "58c08bca-3597-4014-a3b5-2e312f0c97d8" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "nginx" + ], + "x-ms-correlation-request-id": [ + "a0434d7b-aa08-413d-808d-66818ae145fc" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20210525T233146Z:a0434d7b-aa08-413d-808d-66818ae145fc" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Tue, 25 May 2021 23:31:46 GMT" + ], + "Content-Length": [ + "379" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\n \"id\": \"/subscriptions/2fdcc35c-1cea-4759-8cbd-d3d02f37745d/resourceGroups/wezamlyn-test-117/providers/Microsoft.AVS/privateClouds/wezamlyn-test-117/workloadNetworks/default/segments/segment/operationstatuses/65d76517-70e1-4b9c-8212-9639b6baedb6\",\n \"name\": \"65d76517-70e1-4b9c-8212-9639b6baedb6\",\n \"percentComplete\": 0,\n \"startTime\": \"2021-05-25T16:31:35.9305922-07:00\",\n \"status\": \"Pending\"\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/2fdcc35c-1cea-4759-8cbd-d3d02f37745d/resourceGroups/wezamlyn-test-117/providers/Microsoft.AVS/privateClouds/wezamlyn-test-117/workloadNetworks/default/segments/segment/operationstatuses/65d76517-70e1-4b9c-8212-9639b6baedb6?api-version=2021-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMmZkY2MzNWMtMWNlYS00NzU5LThjYmQtZDNkMDJmMzc3NDVkL3Jlc291cmNlR3JvdXBzL3dlemFtbHluLXRlc3QtMTE3L3Byb3ZpZGVycy9NaWNyb3NvZnQuQVZTL3ByaXZhdGVDbG91ZHMvd2V6YW1seW4tdGVzdC0xMTcvd29ya2xvYWROZXR3b3Jrcy9kZWZhdWx0L3NlZ21lbnRzL3NlZ21lbnQvb3BlcmF0aW9uc3RhdHVzZXMvNjVkNzY1MTctNzBlMS00YjljLTgyMTItOTYzOWI2YmFlZGI2P2FwaS12ZXJzaW9uPTIwMjEtMDYtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.30015.01", + "OSName/Linux", + "OSVersion/Linux.5.4.0.73.generic.82.18.04.1.Ubuntu.SMP.Fri.Apr.16.15.10.02.UTC.2021", + "Microsoft.Azure.Management.Avs.AvsClient/2.0.0.1" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "10" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11993" + ], + "x-ms-request-id": [ + "d154ab8e-5a42-45cb-885d-94968f8c1c40" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "nginx" + ], + "x-ms-correlation-request-id": [ + "cc460333-01f0-4558-9d82-2ea1532598ea" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20210525T233157Z:cc460333-01f0-4558-9d82-2ea1532598ea" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Tue, 25 May 2021 23:31:57 GMT" + ], + "Content-Length": [ + "897" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\n \"endTime\": \"2021-05-25T16:31:47.1804994-07:00\",\n \"id\": \"/subscriptions/2fdcc35c-1cea-4759-8cbd-d3d02f37745d/resourceGroups/wezamlyn-test-117/providers/Microsoft.AVS/privateClouds/wezamlyn-test-117/workloadNetworks/default/segments/segment/operationstatuses/65d76517-70e1-4b9c-8212-9639b6baedb6\",\n \"name\": \"65d76517-70e1-4b9c-8212-9639b6baedb6\",\n \"percentComplete\": 100,\n \"properties\": {\n \"id\": \"/subscriptions/2fdcc35c-1cea-4759-8cbd-d3d02f37745d/resourceGroups/wezamlyn-test-117/providers/Microsoft.AVS/privateClouds/wezamlyn-test-117/workloadNetworks/default/segments/segment\",\n \"name\": \"segment\",\n \"properties\": {\n \"connectedGateway\": \"TNT55-T1\",\n \"displayName\": \"modifiedSegment\",\n \"provisioningState\": \"Fulfilled\",\n \"revision\": 1,\n \"status\": \"SUCCESS\",\n \"subnet\": {\n \"gatewayAddress\": \"10.2.3.1/24\"\n }\n },\n \"type\": \"Microsoft.AVS/privateClouds/workloadNetworks/segments\"\n },\n \"startTime\": \"2021-05-25T16:31:35.9305922-07:00\",\n \"status\": \"Succeeded\"\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/2fdcc35c-1cea-4759-8cbd-d3d02f37745d/resourceGroups/wezamlyn-test-117/providers/Microsoft.AVS/privateClouds/wezamlyn-test-117/workloadNetworks/default/segments/segment?api-version=2021-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMmZkY2MzNWMtMWNlYS00NzU5LThjYmQtZDNkMDJmMzc3NDVkL3Jlc291cmNlR3JvdXBzL3dlemFtbHluLXRlc3QtMTE3L3Byb3ZpZGVycy9NaWNyb3NvZnQuQVZTL3ByaXZhdGVDbG91ZHMvd2V6YW1seW4tdGVzdC0xMTcvd29ya2xvYWROZXR3b3Jrcy9kZWZhdWx0L3NlZ21lbnRzL3NlZ21lbnQ/YXBpLXZlcnNpb249MjAyMS0wNi0wMQ==", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "096284ac-f2e9-4ae7-ae47-6f2589bf79c3" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.30015.01", + "OSName/Linux", + "OSVersion/Linux.5.4.0.73.generic.82.18.04.1.Ubuntu.SMP.Fri.Apr.16.15.10.02.UTC.2021", + "Microsoft.Azure.Management.Avs.AvsClient/2.0.0.1" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/2fdcc35c-1cea-4759-8cbd-d3d02f37745d/resourceGroups/wezamlyn-test-117/providers/Microsoft.AVS/privateClouds/wezamlyn-test-117/workloadNetworks/default/segments/segment/operationresults/9befcdc9-7e8d-4134-ab3c-691df5d050e1?api-version=2021-06-01" + ], + "Retry-After": [ + "10" + ], + "x-ms-ratelimit-remaining-subscription-deletes": [ + "14999" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/2fdcc35c-1cea-4759-8cbd-d3d02f37745d/resourceGroups/wezamlyn-test-117/providers/Microsoft.AVS/privateClouds/wezamlyn-test-117/workloadNetworks/default/segments/segment/operationstatuses/9befcdc9-7e8d-4134-ab3c-691df5d050e1?api-version=2021-06-01" + ], + "x-ms-request-id": [ + "cff8a59f-7de8-4a96-812a-0dad7bfba1ec" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "nginx" + ], + "x-ms-correlation-request-id": [ + "f8835174-596b-4275-b1ab-2e3d47951627" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20210525T233158Z:f8835174-596b-4275-b1ab-2e3d47951627" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Tue, 25 May 2021 23:31:58 GMT" + ], + "Content-Length": [ + "453" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\n \"id\": \"/subscriptions/2fdcc35c-1cea-4759-8cbd-d3d02f37745d/resourceGroups/wezamlyn-test-117/providers/Microsoft.AVS/privateClouds/wezamlyn-test-117/workloadNetworks/default/segments/segment\",\n \"name\": \"segment\",\n \"properties\": {\n \"connectedGateway\": \"TNT55-T1\",\n \"displayName\": \"modifiedSegment\",\n \"provisioningState\": \"Deleting\",\n \"revision\": 1,\n \"status\": \"SUCCESS\",\n \"subnet\": {\n \"gatewayAddress\": \"10.2.3.1/24\"\n }\n },\n \"type\": \"Microsoft.AVS/privateClouds/workloadNetworks/segments\"\n}", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/2fdcc35c-1cea-4759-8cbd-d3d02f37745d/resourceGroups/wezamlyn-test-117/providers/Microsoft.AVS/privateClouds/wezamlyn-test-117/workloadNetworks/default/segments/segment/operationstatuses/9befcdc9-7e8d-4134-ab3c-691df5d050e1?api-version=2021-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMmZkY2MzNWMtMWNlYS00NzU5LThjYmQtZDNkMDJmMzc3NDVkL3Jlc291cmNlR3JvdXBzL3dlemFtbHluLXRlc3QtMTE3L3Byb3ZpZGVycy9NaWNyb3NvZnQuQVZTL3ByaXZhdGVDbG91ZHMvd2V6YW1seW4tdGVzdC0xMTcvd29ya2xvYWROZXR3b3Jrcy9kZWZhdWx0L3NlZ21lbnRzL3NlZ21lbnQvb3BlcmF0aW9uc3RhdHVzZXMvOWJlZmNkYzktN2U4ZC00MTM0LWFiM2MtNjkxZGY1ZDA1MGUxP2FwaS12ZXJzaW9uPTIwMjEtMDYtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.30015.01", + "OSName/Linux", + "OSVersion/Linux.5.4.0.73.generic.82.18.04.1.Ubuntu.SMP.Fri.Apr.16.15.10.02.UTC.2021", + "Microsoft.Azure.Management.Avs.AvsClient/2.0.0.1" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "10" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11991" + ], + "x-ms-request-id": [ + "494d7fc3-9bd6-494c-a33a-ea9f6bcfc17d" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "nginx" + ], + "x-ms-correlation-request-id": [ + "634b0e55-980e-4d72-9b39-ceccdd276508" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20210525T233208Z:634b0e55-980e-4d72-9b39-ceccdd276508" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Tue, 25 May 2021 23:32:08 GMT" + ], + "Content-Length": [ + "429" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\n \"endTime\": \"2021-05-25T16:32:02.8983205-07:00\",\n \"id\": \"/subscriptions/2fdcc35c-1cea-4759-8cbd-d3d02f37745d/resourceGroups/wezamlyn-test-117/providers/Microsoft.AVS/privateClouds/wezamlyn-test-117/workloadNetworks/default/segments/segment/operationstatuses/9befcdc9-7e8d-4134-ab3c-691df5d050e1\",\n \"name\": \"9befcdc9-7e8d-4134-ab3c-691df5d050e1\",\n \"percentComplete\": 100,\n \"startTime\": \"2021-05-25T16:31:58.5496637-07:00\",\n \"status\": \"Succeeded\"\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/2fdcc35c-1cea-4759-8cbd-d3d02f37745d/resourceGroups/wezamlyn-test-117/providers/Microsoft.AVS/privateClouds/wezamlyn-test-117/workloadNetworks/default/segments/segment/operationresults/9befcdc9-7e8d-4134-ab3c-691df5d050e1?api-version=2021-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMmZkY2MzNWMtMWNlYS00NzU5LThjYmQtZDNkMDJmMzc3NDVkL3Jlc291cmNlR3JvdXBzL3dlemFtbHluLXRlc3QtMTE3L3Byb3ZpZGVycy9NaWNyb3NvZnQuQVZTL3ByaXZhdGVDbG91ZHMvd2V6YW1seW4tdGVzdC0xMTcvd29ya2xvYWROZXR3b3Jrcy9kZWZhdWx0L3NlZ21lbnRzL3NlZ21lbnQvb3BlcmF0aW9ucmVzdWx0cy85YmVmY2RjOS03ZThkLTQxMzQtYWIzYy02OTFkZjVkMDUwZTE/YXBpLXZlcnNpb249MjAyMS0wNi0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.30015.01", + "OSName/Linux", + "OSVersion/Linux.5.4.0.73.generic.82.18.04.1.Ubuntu.SMP.Fri.Apr.16.15.10.02.UTC.2021", + "Microsoft.Azure.Management.Avs.AvsClient/2.0.0.1" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11990" + ], + "x-ms-request-id": [ + "2de43f32-70c4-4989-8147-47e42a7817d8" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "nginx" + ], + "x-ms-correlation-request-id": [ + "324c9920-7e9d-468f-a570-2e03d4fba51f" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20210525T233209Z:324c9920-7e9d-468f-a570-2e03d4fba51f" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Tue, 25 May 2021 23:32:08 GMT" + ], + "Content-Length": [ + "4" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "null", + "StatusCode": 200 + } + ], + "Names": {}, + "Variables": { + "SubscriptionId": "2fdcc35c-1cea-4759-8cbd-d3d02f37745d" + } +} \ No newline at end of file diff --git a/sdk/avs/Microsoft.Azure.Management.Avs/tests/SessionRecords/WorkloadNetworksTests/WorkloadNetworksVirtualMachinesVmGroupsPortMirroring.json b/sdk/avs/Microsoft.Azure.Management.Avs/tests/SessionRecords/WorkloadNetworksTests/WorkloadNetworksVirtualMachinesVmGroupsPortMirroring.json new file mode 100644 index 000000000000..8d1d18aa99e3 --- /dev/null +++ b/sdk/avs/Microsoft.Azure.Management.Avs/tests/SessionRecords/WorkloadNetworksTests/WorkloadNetworksVirtualMachinesVmGroupsPortMirroring.json @@ -0,0 +1,2450 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/2fdcc35c-1cea-4759-8cbd-d3d02f37745d/resourceGroups/wezamlyn-test-117/providers/Microsoft.AVS/privateClouds/wezamlyn-test-117/workloadNetworks/default/virtualMachines?api-version=2021-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMmZkY2MzNWMtMWNlYS00NzU5LThjYmQtZDNkMDJmMzc3NDVkL3Jlc291cmNlR3JvdXBzL3dlemFtbHluLXRlc3QtMTE3L3Byb3ZpZGVycy9NaWNyb3NvZnQuQVZTL3ByaXZhdGVDbG91ZHMvd2V6YW1seW4tdGVzdC0xMTcvd29ya2xvYWROZXR3b3Jrcy9kZWZhdWx0L3ZpcnR1YWxNYWNoaW5lcz9hcGktdmVyc2lvbj0yMDIxLTA2LTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "c7823036-09b3-45b6-8b0e-18a3cc3210b8" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.30015.01", + "OSName/Linux", + "OSVersion/Linux.5.4.0.73.generic.82.18.04.1.Ubuntu.SMP.Fri.Apr.16.15.10.02.UTC.2021", + "Microsoft.Azure.Management.Avs.AvsClient/2.0.0.1" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11999" + ], + "x-ms-request-id": [ + "4ed24eae-4910-42dd-8699-a179c0b284e7" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "nginx" + ], + "x-ms-correlation-request-id": [ + "9378bbf2-37c4-48cf-a8ce-fa028dad8b64" + ], + "x-ms-routing-request-id": [ + "WESTUS:20210525T233413Z:9378bbf2-37c4-48cf-a8ce-fa028dad8b64" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Tue, 25 May 2021 23:34:13 GMT" + ], + "Content-Length": [ + "1639" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\n \"value\": [\n {\n \"id\": \"/subscriptions/2fdcc35c-1cea-4759-8cbd-d3d02f37745d/resourceGroups/wezamlyn-test-117/providers/Microsoft.AVS/privateClouds/wezamlyn-test-117/workloadNetworks/default/virtualMachines/501d070b-bbf9-f6e1-ec39-b90f63efaa65\",\n \"name\": \"501d070b-bbf9-f6e1-ec39-b90f63efaa65\",\n \"properties\": {\n \"displayName\": \"TNT55-NSX-APP03\",\n \"vmType\": \"MP\"\n },\n \"type\": \"Microsoft.AVS/privateClouds/workloadNetworks/virtualMachines\"\n },\n {\n \"id\": \"/subscriptions/2fdcc35c-1cea-4759-8cbd-d3d02f37745d/resourceGroups/wezamlyn-test-117/providers/Microsoft.AVS/privateClouds/wezamlyn-test-117/workloadNetworks/default/virtualMachines/501d4823-7de6-0c1f-ec19-91596e4a3826\",\n \"name\": \"501d4823-7de6-0c1f-ec19-91596e4a3826\",\n \"properties\": {\n \"displayName\": \"TNT55-NSX-APP01\",\n \"vmType\": \"REGULAR\"\n },\n \"type\": \"Microsoft.AVS/privateClouds/workloadNetworks/virtualMachines\"\n },\n {\n \"id\": \"/subscriptions/2fdcc35c-1cea-4759-8cbd-d3d02f37745d/resourceGroups/wezamlyn-test-117/providers/Microsoft.AVS/privateClouds/wezamlyn-test-117/workloadNetworks/default/virtualMachines/501d5348-4479-2431-ac01-e7c5aa6b6eb3\",\n \"name\": \"501d5348-4479-2431-ac01-e7c5aa6b6eb3\",\n \"properties\": {\n \"displayName\": \"TNT55-NSX-APP02\",\n \"vmType\": \"MP\"\n },\n \"type\": \"Microsoft.AVS/privateClouds/workloadNetworks/virtualMachines\"\n },\n {\n \"id\": \"/subscriptions/2fdcc35c-1cea-4759-8cbd-d3d02f37745d/resourceGroups/wezamlyn-test-117/providers/Microsoft.AVS/privateClouds/wezamlyn-test-117/workloadNetworks/default/virtualMachines/529f52a3-3770-57ba-e4ba-b9d2a792ad21\",\n \"name\": \"529f52a3-3770-57ba-e4ba-b9d2a792ad21\",\n \"properties\": {\n \"displayName\": \"TNT55-VCENTER\",\n \"vmType\": \"REGULAR\"\n },\n \"type\": \"Microsoft.AVS/privateClouds/workloadNetworks/virtualMachines\"\n }\n ]\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/2fdcc35c-1cea-4759-8cbd-d3d02f37745d/resourceGroups/wezamlyn-test-117/providers/Microsoft.AVS/privateClouds/wezamlyn-test-117/workloadNetworks/default/vmGroups/sourceVmGroup?api-version=2021-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMmZkY2MzNWMtMWNlYS00NzU5LThjYmQtZDNkMDJmMzc3NDVkL3Jlc291cmNlR3JvdXBzL3dlemFtbHluLXRlc3QtMTE3L3Byb3ZpZGVycy9NaWNyb3NvZnQuQVZTL3ByaXZhdGVDbG91ZHMvd2V6YW1seW4tdGVzdC0xMTcvd29ya2xvYWROZXR3b3Jrcy9kZWZhdWx0L3ZtR3JvdXBzL3NvdXJjZVZtR3JvdXA/YXBpLXZlcnNpb249MjAyMS0wNi0wMQ==", + "RequestMethod": "PUT", + "RequestBody": "{\n \"properties\": {\n \"displayName\": \"sourceVmGroup\",\n \"members\": [\n \"TNT55-NSX-APP03\"\n ]\n }\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "0ab4e44b-1d71-44ab-8a39-c001ccdb3ea4" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.30015.01", + "OSName/Linux", + "OSVersion/Linux.5.4.0.73.generic.82.18.04.1.Ubuntu.SMP.Fri.Apr.16.15.10.02.UTC.2021", + "Microsoft.Azure.Management.Avs.AvsClient/2.0.0.1" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "108" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "10" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1199" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/2fdcc35c-1cea-4759-8cbd-d3d02f37745d/resourceGroups/wezamlyn-test-117/providers/Microsoft.AVS/privateClouds/wezamlyn-test-117/workloadNetworks/default/vmGroups/sourceVmGroup/operationstatuses/3754dea4-af98-4f4e-8a77-3f438bd3dd4c?api-version=2021-06-01" + ], + "x-ms-request-id": [ + "61058359-8095-4063-bb51-7daf80214e07" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "nginx" + ], + "x-ms-correlation-request-id": [ + "bb5c6652-d013-4732-8dfd-96d8445059cb" + ], + "x-ms-routing-request-id": [ + "WESTUS:20210525T233415Z:bb5c6652-d013-4732-8dfd-96d8445059cb" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Tue, 25 May 2021 23:34:14 GMT" + ], + "Content-Length": [ + "389" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\n \"id\": \"/subscriptions/2fdcc35c-1cea-4759-8cbd-d3d02f37745d/resourceGroups/wezamlyn-test-117/providers/Microsoft.AVS/privateClouds/wezamlyn-test-117/workloadNetworks/default/vmGroups/sourceVmGroup\",\n \"name\": \"sourceVmGroup\",\n \"properties\": {\n \"displayName\": \"sourceVmGroup\",\n \"members\": [\n \"TNT55-NSX-APP03\"\n ],\n \"provisioningState\": \"Building\"\n },\n \"type\": \"Microsoft.AVS/privateClouds/workloadNetworks/vmGroups\"\n}", + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/2fdcc35c-1cea-4759-8cbd-d3d02f37745d/resourceGroups/wezamlyn-test-117/providers/Microsoft.AVS/privateClouds/wezamlyn-test-117/workloadNetworks/default/vmGroups/sourceVmGroup/operationstatuses/3754dea4-af98-4f4e-8a77-3f438bd3dd4c?api-version=2021-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMmZkY2MzNWMtMWNlYS00NzU5LThjYmQtZDNkMDJmMzc3NDVkL3Jlc291cmNlR3JvdXBzL3dlemFtbHluLXRlc3QtMTE3L3Byb3ZpZGVycy9NaWNyb3NvZnQuQVZTL3ByaXZhdGVDbG91ZHMvd2V6YW1seW4tdGVzdC0xMTcvd29ya2xvYWROZXR3b3Jrcy9kZWZhdWx0L3ZtR3JvdXBzL3NvdXJjZVZtR3JvdXAvb3BlcmF0aW9uc3RhdHVzZXMvMzc1NGRlYTQtYWY5OC00ZjRlLThhNzctM2Y0MzhiZDNkZDRjP2FwaS12ZXJzaW9uPTIwMjEtMDYtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.30015.01", + "OSName/Linux", + "OSVersion/Linux.5.4.0.73.generic.82.18.04.1.Ubuntu.SMP.Fri.Apr.16.15.10.02.UTC.2021", + "Microsoft.Azure.Management.Avs.AvsClient/2.0.0.1" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "10" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11998" + ], + "x-ms-request-id": [ + "1331cd5b-4821-4e9f-ac48-c8a00be446f1" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "nginx" + ], + "x-ms-correlation-request-id": [ + "39b6b0f3-6c75-4f86-ac7d-2b26772a3d1f" + ], + "x-ms-routing-request-id": [ + "WESTUS:20210525T233425Z:39b6b0f3-6c75-4f86-ac7d-2b26772a3d1f" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Tue, 25 May 2021 23:34:25 GMT" + ], + "Content-Length": [ + "386" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\n \"id\": \"/subscriptions/2fdcc35c-1cea-4759-8cbd-d3d02f37745d/resourceGroups/wezamlyn-test-117/providers/Microsoft.AVS/privateClouds/wezamlyn-test-117/workloadNetworks/default/vmGroups/sourceVmGroup/operationstatuses/3754dea4-af98-4f4e-8a77-3f438bd3dd4c\",\n \"name\": \"3754dea4-af98-4f4e-8a77-3f438bd3dd4c\",\n \"percentComplete\": 0,\n \"startTime\": \"2021-05-25T16:34:15.2786195-07:00\",\n \"status\": \"Building\"\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/2fdcc35c-1cea-4759-8cbd-d3d02f37745d/resourceGroups/wezamlyn-test-117/providers/Microsoft.AVS/privateClouds/wezamlyn-test-117/workloadNetworks/default/vmGroups/sourceVmGroup/operationstatuses/3754dea4-af98-4f4e-8a77-3f438bd3dd4c?api-version=2021-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMmZkY2MzNWMtMWNlYS00NzU5LThjYmQtZDNkMDJmMzc3NDVkL3Jlc291cmNlR3JvdXBzL3dlemFtbHluLXRlc3QtMTE3L3Byb3ZpZGVycy9NaWNyb3NvZnQuQVZTL3ByaXZhdGVDbG91ZHMvd2V6YW1seW4tdGVzdC0xMTcvd29ya2xvYWROZXR3b3Jrcy9kZWZhdWx0L3ZtR3JvdXBzL3NvdXJjZVZtR3JvdXAvb3BlcmF0aW9uc3RhdHVzZXMvMzc1NGRlYTQtYWY5OC00ZjRlLThhNzctM2Y0MzhiZDNkZDRjP2FwaS12ZXJzaW9uPTIwMjEtMDYtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.30015.01", + "OSName/Linux", + "OSVersion/Linux.5.4.0.73.generic.82.18.04.1.Ubuntu.SMP.Fri.Apr.16.15.10.02.UTC.2021", + "Microsoft.Azure.Management.Avs.AvsClient/2.0.0.1" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "10" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11997" + ], + "x-ms-request-id": [ + "184ff3fd-31d4-4adf-aa61-749ac3c1b954" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "nginx" + ], + "x-ms-correlation-request-id": [ + "b9c8457d-0880-4753-b80a-6be82fe468e9" + ], + "x-ms-routing-request-id": [ + "WESTUS:20210525T233436Z:b9c8457d-0880-4753-b80a-6be82fe468e9" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Tue, 25 May 2021 23:34:35 GMT" + ], + "Content-Length": [ + "386" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\n \"id\": \"/subscriptions/2fdcc35c-1cea-4759-8cbd-d3d02f37745d/resourceGroups/wezamlyn-test-117/providers/Microsoft.AVS/privateClouds/wezamlyn-test-117/workloadNetworks/default/vmGroups/sourceVmGroup/operationstatuses/3754dea4-af98-4f4e-8a77-3f438bd3dd4c\",\n \"name\": \"3754dea4-af98-4f4e-8a77-3f438bd3dd4c\",\n \"percentComplete\": 0,\n \"startTime\": \"2021-05-25T16:34:15.2786195-07:00\",\n \"status\": \"Building\"\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/2fdcc35c-1cea-4759-8cbd-d3d02f37745d/resourceGroups/wezamlyn-test-117/providers/Microsoft.AVS/privateClouds/wezamlyn-test-117/workloadNetworks/default/vmGroups/sourceVmGroup/operationstatuses/3754dea4-af98-4f4e-8a77-3f438bd3dd4c?api-version=2021-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMmZkY2MzNWMtMWNlYS00NzU5LThjYmQtZDNkMDJmMzc3NDVkL3Jlc291cmNlR3JvdXBzL3dlemFtbHluLXRlc3QtMTE3L3Byb3ZpZGVycy9NaWNyb3NvZnQuQVZTL3ByaXZhdGVDbG91ZHMvd2V6YW1seW4tdGVzdC0xMTcvd29ya2xvYWROZXR3b3Jrcy9kZWZhdWx0L3ZtR3JvdXBzL3NvdXJjZVZtR3JvdXAvb3BlcmF0aW9uc3RhdHVzZXMvMzc1NGRlYTQtYWY5OC00ZjRlLThhNzctM2Y0MzhiZDNkZDRjP2FwaS12ZXJzaW9uPTIwMjEtMDYtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.30015.01", + "OSName/Linux", + "OSVersion/Linux.5.4.0.73.generic.82.18.04.1.Ubuntu.SMP.Fri.Apr.16.15.10.02.UTC.2021", + "Microsoft.Azure.Management.Avs.AvsClient/2.0.0.1" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "10" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11996" + ], + "x-ms-request-id": [ + "df9a0e1a-aa82-484b-99f5-b969bbfc09ad" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "nginx" + ], + "x-ms-correlation-request-id": [ + "6ed2f8d9-775d-4ee9-ba1a-34604f006ea8" + ], + "x-ms-routing-request-id": [ + "WESTUS:20210525T233446Z:6ed2f8d9-775d-4ee9-ba1a-34604f006ea8" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Tue, 25 May 2021 23:34:45 GMT" + ], + "Content-Length": [ + "386" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\n \"id\": \"/subscriptions/2fdcc35c-1cea-4759-8cbd-d3d02f37745d/resourceGroups/wezamlyn-test-117/providers/Microsoft.AVS/privateClouds/wezamlyn-test-117/workloadNetworks/default/vmGroups/sourceVmGroup/operationstatuses/3754dea4-af98-4f4e-8a77-3f438bd3dd4c\",\n \"name\": \"3754dea4-af98-4f4e-8a77-3f438bd3dd4c\",\n \"percentComplete\": 0,\n \"startTime\": \"2021-05-25T16:34:15.2786195-07:00\",\n \"status\": \"Building\"\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/2fdcc35c-1cea-4759-8cbd-d3d02f37745d/resourceGroups/wezamlyn-test-117/providers/Microsoft.AVS/privateClouds/wezamlyn-test-117/workloadNetworks/default/vmGroups/sourceVmGroup/operationstatuses/3754dea4-af98-4f4e-8a77-3f438bd3dd4c?api-version=2021-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMmZkY2MzNWMtMWNlYS00NzU5LThjYmQtZDNkMDJmMzc3NDVkL3Jlc291cmNlR3JvdXBzL3dlemFtbHluLXRlc3QtMTE3L3Byb3ZpZGVycy9NaWNyb3NvZnQuQVZTL3ByaXZhdGVDbG91ZHMvd2V6YW1seW4tdGVzdC0xMTcvd29ya2xvYWROZXR3b3Jrcy9kZWZhdWx0L3ZtR3JvdXBzL3NvdXJjZVZtR3JvdXAvb3BlcmF0aW9uc3RhdHVzZXMvMzc1NGRlYTQtYWY5OC00ZjRlLThhNzctM2Y0MzhiZDNkZDRjP2FwaS12ZXJzaW9uPTIwMjEtMDYtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.30015.01", + "OSName/Linux", + "OSVersion/Linux.5.4.0.73.generic.82.18.04.1.Ubuntu.SMP.Fri.Apr.16.15.10.02.UTC.2021", + "Microsoft.Azure.Management.Avs.AvsClient/2.0.0.1" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "10" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11995" + ], + "x-ms-request-id": [ + "551fbda6-2689-48b9-acd0-c0be085a8539" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "nginx" + ], + "x-ms-correlation-request-id": [ + "1e86c413-d929-48f4-a021-5eb8dab945a0" + ], + "x-ms-routing-request-id": [ + "WESTUS:20210525T233456Z:1e86c413-d929-48f4-a021-5eb8dab945a0" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Tue, 25 May 2021 23:34:55 GMT" + ], + "Content-Length": [ + "386" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\n \"id\": \"/subscriptions/2fdcc35c-1cea-4759-8cbd-d3d02f37745d/resourceGroups/wezamlyn-test-117/providers/Microsoft.AVS/privateClouds/wezamlyn-test-117/workloadNetworks/default/vmGroups/sourceVmGroup/operationstatuses/3754dea4-af98-4f4e-8a77-3f438bd3dd4c\",\n \"name\": \"3754dea4-af98-4f4e-8a77-3f438bd3dd4c\",\n \"percentComplete\": 0,\n \"startTime\": \"2021-05-25T16:34:15.2786195-07:00\",\n \"status\": \"Building\"\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/2fdcc35c-1cea-4759-8cbd-d3d02f37745d/resourceGroups/wezamlyn-test-117/providers/Microsoft.AVS/privateClouds/wezamlyn-test-117/workloadNetworks/default/vmGroups/sourceVmGroup/operationstatuses/3754dea4-af98-4f4e-8a77-3f438bd3dd4c?api-version=2021-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMmZkY2MzNWMtMWNlYS00NzU5LThjYmQtZDNkMDJmMzc3NDVkL3Jlc291cmNlR3JvdXBzL3dlemFtbHluLXRlc3QtMTE3L3Byb3ZpZGVycy9NaWNyb3NvZnQuQVZTL3ByaXZhdGVDbG91ZHMvd2V6YW1seW4tdGVzdC0xMTcvd29ya2xvYWROZXR3b3Jrcy9kZWZhdWx0L3ZtR3JvdXBzL3NvdXJjZVZtR3JvdXAvb3BlcmF0aW9uc3RhdHVzZXMvMzc1NGRlYTQtYWY5OC00ZjRlLThhNzctM2Y0MzhiZDNkZDRjP2FwaS12ZXJzaW9uPTIwMjEtMDYtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.30015.01", + "OSName/Linux", + "OSVersion/Linux.5.4.0.73.generic.82.18.04.1.Ubuntu.SMP.Fri.Apr.16.15.10.02.UTC.2021", + "Microsoft.Azure.Management.Avs.AvsClient/2.0.0.1" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "10" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11994" + ], + "x-ms-request-id": [ + "2eea3af6-feeb-4ace-96e2-405e7ffa3973" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "nginx" + ], + "x-ms-correlation-request-id": [ + "831ec73f-d4ec-46f9-a81b-76d073f1abb3" + ], + "x-ms-routing-request-id": [ + "WESTUS:20210525T233506Z:831ec73f-d4ec-46f9-a81b-76d073f1abb3" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Tue, 25 May 2021 23:35:05 GMT" + ], + "Content-Length": [ + "386" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\n \"id\": \"/subscriptions/2fdcc35c-1cea-4759-8cbd-d3d02f37745d/resourceGroups/wezamlyn-test-117/providers/Microsoft.AVS/privateClouds/wezamlyn-test-117/workloadNetworks/default/vmGroups/sourceVmGroup/operationstatuses/3754dea4-af98-4f4e-8a77-3f438bd3dd4c\",\n \"name\": \"3754dea4-af98-4f4e-8a77-3f438bd3dd4c\",\n \"percentComplete\": 0,\n \"startTime\": \"2021-05-25T16:34:15.2786195-07:00\",\n \"status\": \"Building\"\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/2fdcc35c-1cea-4759-8cbd-d3d02f37745d/resourceGroups/wezamlyn-test-117/providers/Microsoft.AVS/privateClouds/wezamlyn-test-117/workloadNetworks/default/vmGroups/sourceVmGroup/operationstatuses/3754dea4-af98-4f4e-8a77-3f438bd3dd4c?api-version=2021-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMmZkY2MzNWMtMWNlYS00NzU5LThjYmQtZDNkMDJmMzc3NDVkL3Jlc291cmNlR3JvdXBzL3dlemFtbHluLXRlc3QtMTE3L3Byb3ZpZGVycy9NaWNyb3NvZnQuQVZTL3ByaXZhdGVDbG91ZHMvd2V6YW1seW4tdGVzdC0xMTcvd29ya2xvYWROZXR3b3Jrcy9kZWZhdWx0L3ZtR3JvdXBzL3NvdXJjZVZtR3JvdXAvb3BlcmF0aW9uc3RhdHVzZXMvMzc1NGRlYTQtYWY5OC00ZjRlLThhNzctM2Y0MzhiZDNkZDRjP2FwaS12ZXJzaW9uPTIwMjEtMDYtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.30015.01", + "OSName/Linux", + "OSVersion/Linux.5.4.0.73.generic.82.18.04.1.Ubuntu.SMP.Fri.Apr.16.15.10.02.UTC.2021", + "Microsoft.Azure.Management.Avs.AvsClient/2.0.0.1" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "10" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11993" + ], + "x-ms-request-id": [ + "ee9b9bf6-2952-431c-ab9d-f33ed9e2c6e1" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "nginx" + ], + "x-ms-correlation-request-id": [ + "ac4d73ae-7b93-41dc-8074-4c2c941ab6a2" + ], + "x-ms-routing-request-id": [ + "WESTUS:20210525T233517Z:ac4d73ae-7b93-41dc-8074-4c2c941ab6a2" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Tue, 25 May 2021 23:35:16 GMT" + ], + "Content-Length": [ + "869" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\n \"endTime\": \"2021-05-25T16:35:09.3948915-07:00\",\n \"id\": \"/subscriptions/2fdcc35c-1cea-4759-8cbd-d3d02f37745d/resourceGroups/wezamlyn-test-117/providers/Microsoft.AVS/privateClouds/wezamlyn-test-117/workloadNetworks/default/vmGroups/sourceVmGroup/operationstatuses/3754dea4-af98-4f4e-8a77-3f438bd3dd4c\",\n \"name\": \"3754dea4-af98-4f4e-8a77-3f438bd3dd4c\",\n \"percentComplete\": 100,\n \"properties\": {\n \"id\": \"/subscriptions/2fdcc35c-1cea-4759-8cbd-d3d02f37745d/resourceGroups/wezamlyn-test-117/providers/Microsoft.AVS/privateClouds/wezamlyn-test-117/workloadNetworks/default/vmGroups/sourceVmGroup\",\n \"name\": \"sourceVmGroup\",\n \"properties\": {\n \"displayName\": \"sourceVmGroup\",\n \"members\": [\n \"TNT55-NSX-APP03\"\n ],\n \"provisioningState\": \"Fulfilled\",\n \"revision\": 0,\n \"status\": \"ERROR\"\n },\n \"type\": \"Microsoft.AVS/privateClouds/workloadNetworks/vmGroups\"\n },\n \"startTime\": \"2021-05-25T16:34:15.2786195-07:00\",\n \"status\": \"Succeeded\"\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/2fdcc35c-1cea-4759-8cbd-d3d02f37745d/resourceGroups/wezamlyn-test-117/providers/Microsoft.AVS/privateClouds/wezamlyn-test-117/workloadNetworks/default/vmGroups/sourceVmGroup?api-version=2021-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMmZkY2MzNWMtMWNlYS00NzU5LThjYmQtZDNkMDJmMzc3NDVkL3Jlc291cmNlR3JvdXBzL3dlemFtbHluLXRlc3QtMTE3L3Byb3ZpZGVycy9NaWNyb3NvZnQuQVZTL3ByaXZhdGVDbG91ZHMvd2V6YW1seW4tdGVzdC0xMTcvd29ya2xvYWROZXR3b3Jrcy9kZWZhdWx0L3ZtR3JvdXBzL3NvdXJjZVZtR3JvdXA/YXBpLXZlcnNpb249MjAyMS0wNi0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.30015.01", + "OSName/Linux", + "OSVersion/Linux.5.4.0.73.generic.82.18.04.1.Ubuntu.SMP.Fri.Apr.16.15.10.02.UTC.2021", + "Microsoft.Azure.Management.Avs.AvsClient/2.0.0.1" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11992" + ], + "x-ms-request-id": [ + "47f9ce97-c594-42f8-b796-134df10e0ec2" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "nginx" + ], + "x-ms-correlation-request-id": [ + "bc66e57e-71cd-4186-961d-60f27f27f8ab" + ], + "x-ms-routing-request-id": [ + "WESTUS:20210525T233517Z:bc66e57e-71cd-4186-961d-60f27f27f8ab" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Tue, 25 May 2021 23:35:17 GMT" + ], + "Content-Length": [ + "420" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\n \"id\": \"/subscriptions/2fdcc35c-1cea-4759-8cbd-d3d02f37745d/resourceGroups/wezamlyn-test-117/providers/Microsoft.AVS/privateClouds/wezamlyn-test-117/workloadNetworks/default/vmGroups/sourceVmGroup\",\n \"name\": \"sourceVmGroup\",\n \"properties\": {\n \"displayName\": \"sourceVmGroup\",\n \"members\": [\n \"TNT55-NSX-APP03\"\n ],\n \"provisioningState\": \"Fulfilled\",\n \"revision\": 0,\n \"status\": \"ERROR\"\n },\n \"type\": \"Microsoft.AVS/privateClouds/workloadNetworks/vmGroups\"\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/2fdcc35c-1cea-4759-8cbd-d3d02f37745d/resourceGroups/wezamlyn-test-117/providers/Microsoft.AVS/privateClouds/wezamlyn-test-117/workloadNetworks/default/vmGroups/sourceVmGroup?api-version=2021-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMmZkY2MzNWMtMWNlYS00NzU5LThjYmQtZDNkMDJmMzc3NDVkL3Jlc291cmNlR3JvdXBzL3dlemFtbHluLXRlc3QtMTE3L3Byb3ZpZGVycy9NaWNyb3NvZnQuQVZTL3ByaXZhdGVDbG91ZHMvd2V6YW1seW4tdGVzdC0xMTcvd29ya2xvYWROZXR3b3Jrcy9kZWZhdWx0L3ZtR3JvdXBzL3NvdXJjZVZtR3JvdXA/YXBpLXZlcnNpb249MjAyMS0wNi0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "44e161bd-0b0d-454c-82eb-af9bc3cf1c8c" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.30015.01", + "OSName/Linux", + "OSVersion/Linux.5.4.0.73.generic.82.18.04.1.Ubuntu.SMP.Fri.Apr.16.15.10.02.UTC.2021", + "Microsoft.Azure.Management.Avs.AvsClient/2.0.0.1" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11988" + ], + "x-ms-request-id": [ + "ea261d33-ad96-43b8-9799-bf9fa68cc1f1" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "nginx" + ], + "x-ms-correlation-request-id": [ + "6aac412f-95c1-4dcc-bd98-9f983a0b9145" + ], + "x-ms-routing-request-id": [ + "WESTUS:20210525T233530Z:6aac412f-95c1-4dcc-bd98-9f983a0b9145" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Tue, 25 May 2021 23:35:29 GMT" + ], + "Content-Length": [ + "420" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\n \"id\": \"/subscriptions/2fdcc35c-1cea-4759-8cbd-d3d02f37745d/resourceGroups/wezamlyn-test-117/providers/Microsoft.AVS/privateClouds/wezamlyn-test-117/workloadNetworks/default/vmGroups/sourceVmGroup\",\n \"name\": \"sourceVmGroup\",\n \"properties\": {\n \"displayName\": \"sourceVmGroup\",\n \"members\": [\n \"TNT55-NSX-APP03\"\n ],\n \"provisioningState\": \"Fulfilled\",\n \"revision\": 0,\n \"status\": \"ERROR\"\n },\n \"type\": \"Microsoft.AVS/privateClouds/workloadNetworks/vmGroups\"\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/2fdcc35c-1cea-4759-8cbd-d3d02f37745d/resourceGroups/wezamlyn-test-117/providers/Microsoft.AVS/privateClouds/wezamlyn-test-117/workloadNetworks/default/vmGroups/sourceVmGroup?api-version=2021-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMmZkY2MzNWMtMWNlYS00NzU5LThjYmQtZDNkMDJmMzc3NDVkL3Jlc291cmNlR3JvdXBzL3dlemFtbHluLXRlc3QtMTE3L3Byb3ZpZGVycy9NaWNyb3NvZnQuQVZTL3ByaXZhdGVDbG91ZHMvd2V6YW1seW4tdGVzdC0xMTcvd29ya2xvYWROZXR3b3Jrcy9kZWZhdWx0L3ZtR3JvdXBzL3NvdXJjZVZtR3JvdXA/YXBpLXZlcnNpb249MjAyMS0wNi0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.30015.01", + "OSName/Linux", + "OSVersion/Linux.5.4.0.73.generic.82.18.04.1.Ubuntu.SMP.Fri.Apr.16.15.10.02.UTC.2021", + "Microsoft.Azure.Management.Avs.AvsClient/2.0.0.1" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11981" + ], + "x-ms-request-id": [ + "251a9aec-ae47-498b-ad99-925b47b97ce3" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "nginx" + ], + "x-ms-correlation-request-id": [ + "c6a0009d-a6b7-4c69-a38f-dd606adaec04" + ], + "x-ms-routing-request-id": [ + "WESTUS:20210525T233633Z:c6a0009d-a6b7-4c69-a38f-dd606adaec04" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Tue, 25 May 2021 23:36:33 GMT" + ], + "Content-Length": [ + "422" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\n \"id\": \"/subscriptions/2fdcc35c-1cea-4759-8cbd-d3d02f37745d/resourceGroups/wezamlyn-test-117/providers/Microsoft.AVS/privateClouds/wezamlyn-test-117/workloadNetworks/default/vmGroups/sourceVmGroup\",\n \"name\": \"sourceVmGroup\",\n \"properties\": {\n \"displayName\": \"modifiedVmGroup\",\n \"members\": [\n \"TNT55-NSX-APP03\"\n ],\n \"provisioningState\": \"Fulfilled\",\n \"revision\": 1,\n \"status\": \"ERROR\"\n },\n \"type\": \"Microsoft.AVS/privateClouds/workloadNetworks/vmGroups\"\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/2fdcc35c-1cea-4759-8cbd-d3d02f37745d/resourceGroups/wezamlyn-test-117/providers/Microsoft.AVS/privateClouds/wezamlyn-test-117/workloadNetworks/default/vmGroups/destVmGroup?api-version=2021-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMmZkY2MzNWMtMWNlYS00NzU5LThjYmQtZDNkMDJmMzc3NDVkL3Jlc291cmNlR3JvdXBzL3dlemFtbHluLXRlc3QtMTE3L3Byb3ZpZGVycy9NaWNyb3NvZnQuQVZTL3ByaXZhdGVDbG91ZHMvd2V6YW1seW4tdGVzdC0xMTcvd29ya2xvYWROZXR3b3Jrcy9kZWZhdWx0L3ZtR3JvdXBzL2Rlc3RWbUdyb3VwP2FwaS12ZXJzaW9uPTIwMjEtMDYtMDE=", + "RequestMethod": "PUT", + "RequestBody": "{\n \"properties\": {\n \"displayName\": \"destVmGroup\",\n \"members\": [\n \"TNT55-NSX-APP01\"\n ]\n }\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "d672601c-8015-4fa9-83d0-4a9bdc324749" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.30015.01", + "OSName/Linux", + "OSVersion/Linux.5.4.0.73.generic.82.18.04.1.Ubuntu.SMP.Fri.Apr.16.15.10.02.UTC.2021", + "Microsoft.Azure.Management.Avs.AvsClient/2.0.0.1" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "106" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "10" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1198" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/2fdcc35c-1cea-4759-8cbd-d3d02f37745d/resourceGroups/wezamlyn-test-117/providers/Microsoft.AVS/privateClouds/wezamlyn-test-117/workloadNetworks/default/vmGroups/destVmGroup/operationstatuses/85ed5f87-677b-451c-806c-5bc2d25e263b?api-version=2021-06-01" + ], + "x-ms-request-id": [ + "43a652d8-692f-44f5-ba2b-e140b7ec9c12" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "nginx" + ], + "x-ms-correlation-request-id": [ + "7250cb30-3f29-4075-b66c-3ae78aca6323" + ], + "x-ms-routing-request-id": [ + "WESTUS:20210525T233518Z:7250cb30-3f29-4075-b66c-3ae78aca6323" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Tue, 25 May 2021 23:35:18 GMT" + ], + "Content-Length": [ + "383" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\n \"id\": \"/subscriptions/2fdcc35c-1cea-4759-8cbd-d3d02f37745d/resourceGroups/wezamlyn-test-117/providers/Microsoft.AVS/privateClouds/wezamlyn-test-117/workloadNetworks/default/vmGroups/destVmGroup\",\n \"name\": \"destVmGroup\",\n \"properties\": {\n \"displayName\": \"destVmGroup\",\n \"members\": [\n \"TNT55-NSX-APP01\"\n ],\n \"provisioningState\": \"Building\"\n },\n \"type\": \"Microsoft.AVS/privateClouds/workloadNetworks/vmGroups\"\n}", + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/2fdcc35c-1cea-4759-8cbd-d3d02f37745d/resourceGroups/wezamlyn-test-117/providers/Microsoft.AVS/privateClouds/wezamlyn-test-117/workloadNetworks/default/vmGroups/destVmGroup/operationstatuses/85ed5f87-677b-451c-806c-5bc2d25e263b?api-version=2021-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMmZkY2MzNWMtMWNlYS00NzU5LThjYmQtZDNkMDJmMzc3NDVkL3Jlc291cmNlR3JvdXBzL3dlemFtbHluLXRlc3QtMTE3L3Byb3ZpZGVycy9NaWNyb3NvZnQuQVZTL3ByaXZhdGVDbG91ZHMvd2V6YW1seW4tdGVzdC0xMTcvd29ya2xvYWROZXR3b3Jrcy9kZWZhdWx0L3ZtR3JvdXBzL2Rlc3RWbUdyb3VwL29wZXJhdGlvbnN0YXR1c2VzLzg1ZWQ1Zjg3LTY3N2ItNDUxYy04MDZjLTViYzJkMjVlMjYzYj9hcGktdmVyc2lvbj0yMDIxLTA2LTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.30015.01", + "OSName/Linux", + "OSVersion/Linux.5.4.0.73.generic.82.18.04.1.Ubuntu.SMP.Fri.Apr.16.15.10.02.UTC.2021", + "Microsoft.Azure.Management.Avs.AvsClient/2.0.0.1" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "10" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11991" + ], + "x-ms-request-id": [ + "523cd7be-a2c5-450d-84af-90ed3aefe4b2" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "nginx" + ], + "x-ms-correlation-request-id": [ + "c027cc67-61ed-44dd-8dbb-fb4afd304f4f" + ], + "x-ms-routing-request-id": [ + "WESTUS:20210525T233529Z:c027cc67-61ed-44dd-8dbb-fb4afd304f4f" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Tue, 25 May 2021 23:35:28 GMT" + ], + "Content-Length": [ + "863" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\n \"endTime\": \"2021-05-25T16:35:21.1813064-07:00\",\n \"id\": \"/subscriptions/2fdcc35c-1cea-4759-8cbd-d3d02f37745d/resourceGroups/wezamlyn-test-117/providers/Microsoft.AVS/privateClouds/wezamlyn-test-117/workloadNetworks/default/vmGroups/destVmGroup/operationstatuses/85ed5f87-677b-451c-806c-5bc2d25e263b\",\n \"name\": \"85ed5f87-677b-451c-806c-5bc2d25e263b\",\n \"percentComplete\": 100,\n \"properties\": {\n \"id\": \"/subscriptions/2fdcc35c-1cea-4759-8cbd-d3d02f37745d/resourceGroups/wezamlyn-test-117/providers/Microsoft.AVS/privateClouds/wezamlyn-test-117/workloadNetworks/default/vmGroups/destVmGroup\",\n \"name\": \"destVmGroup\",\n \"properties\": {\n \"displayName\": \"destVmGroup\",\n \"members\": [\n \"TNT55-NSX-APP01\"\n ],\n \"provisioningState\": \"Fulfilled\",\n \"revision\": 0,\n \"status\": \"SUCCESS\"\n },\n \"type\": \"Microsoft.AVS/privateClouds/workloadNetworks/vmGroups\"\n },\n \"startTime\": \"2021-05-25T16:35:18.3372301-07:00\",\n \"status\": \"Succeeded\"\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/2fdcc35c-1cea-4759-8cbd-d3d02f37745d/resourceGroups/wezamlyn-test-117/providers/Microsoft.AVS/privateClouds/wezamlyn-test-117/workloadNetworks/default/vmGroups/destVmGroup?api-version=2021-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMmZkY2MzNWMtMWNlYS00NzU5LThjYmQtZDNkMDJmMzc3NDVkL3Jlc291cmNlR3JvdXBzL3dlemFtbHluLXRlc3QtMTE3L3Byb3ZpZGVycy9NaWNyb3NvZnQuQVZTL3ByaXZhdGVDbG91ZHMvd2V6YW1seW4tdGVzdC0xMTcvd29ya2xvYWROZXR3b3Jrcy9kZWZhdWx0L3ZtR3JvdXBzL2Rlc3RWbUdyb3VwP2FwaS12ZXJzaW9uPTIwMjEtMDYtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.30015.01", + "OSName/Linux", + "OSVersion/Linux.5.4.0.73.generic.82.18.04.1.Ubuntu.SMP.Fri.Apr.16.15.10.02.UTC.2021", + "Microsoft.Azure.Management.Avs.AvsClient/2.0.0.1" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11990" + ], + "x-ms-request-id": [ + "d104fcbc-1bd3-404d-b32b-a9968a2b1791" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "nginx" + ], + "x-ms-correlation-request-id": [ + "3555358b-0861-4f0e-a9a7-e65850fcb89b" + ], + "x-ms-routing-request-id": [ + "WESTUS:20210525T233529Z:3555358b-0861-4f0e-a9a7-e65850fcb89b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Tue, 25 May 2021 23:35:29 GMT" + ], + "Content-Length": [ + "416" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\n \"id\": \"/subscriptions/2fdcc35c-1cea-4759-8cbd-d3d02f37745d/resourceGroups/wezamlyn-test-117/providers/Microsoft.AVS/privateClouds/wezamlyn-test-117/workloadNetworks/default/vmGroups/destVmGroup\",\n \"name\": \"destVmGroup\",\n \"properties\": {\n \"displayName\": \"destVmGroup\",\n \"members\": [\n \"TNT55-NSX-APP01\"\n ],\n \"provisioningState\": \"Fulfilled\",\n \"revision\": 0,\n \"status\": \"SUCCESS\"\n },\n \"type\": \"Microsoft.AVS/privateClouds/workloadNetworks/vmGroups\"\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/2fdcc35c-1cea-4759-8cbd-d3d02f37745d/resourceGroups/wezamlyn-test-117/providers/Microsoft.AVS/privateClouds/wezamlyn-test-117/workloadNetworks/default/vmGroups?api-version=2021-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMmZkY2MzNWMtMWNlYS00NzU5LThjYmQtZDNkMDJmMzc3NDVkL3Jlc291cmNlR3JvdXBzL3dlemFtbHluLXRlc3QtMTE3L3Byb3ZpZGVycy9NaWNyb3NvZnQuQVZTL3ByaXZhdGVDbG91ZHMvd2V6YW1seW4tdGVzdC0xMTcvd29ya2xvYWROZXR3b3Jrcy9kZWZhdWx0L3ZtR3JvdXBzP2FwaS12ZXJzaW9uPTIwMjEtMDYtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "7ef5a8bf-2df3-4122-9deb-a287b1b6fc3c" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.30015.01", + "OSName/Linux", + "OSVersion/Linux.5.4.0.73.generic.82.18.04.1.Ubuntu.SMP.Fri.Apr.16.15.10.02.UTC.2021", + "Microsoft.Azure.Management.Avs.AvsClient/2.0.0.1" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11989" + ], + "x-ms-request-id": [ + "b0a2473a-0ade-449c-b2e0-f3e9be490a6d" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "nginx" + ], + "x-ms-correlation-request-id": [ + "a67103a5-10a3-4257-bbe2-6dde31804d14" + ], + "x-ms-routing-request-id": [ + "WESTUS:20210525T233529Z:a67103a5-10a3-4257-bbe2-6dde31804d14" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Tue, 25 May 2021 23:35:29 GMT" + ], + "Content-Length": [ + "849" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\n \"value\": [\n {\n \"id\": \"/subscriptions/2fdcc35c-1cea-4759-8cbd-d3d02f37745d/resourceGroups/wezamlyn-test-117/providers/Microsoft.AVS/privateClouds/wezamlyn-test-117/workloadNetworks/default/vmGroups/destvmgroup\",\n \"name\": \"destvmgroup\",\n \"properties\": {\n \"displayName\": \"destVmGroup\",\n \"members\": [\n \"TNT55-NSX-APP01\"\n ],\n \"provisioningState\": \"Fulfilled\",\n \"revision\": 0,\n \"status\": \"SUCCESS\"\n },\n \"type\": \"Microsoft.AVS/privateClouds/workloadNetworks/vmGroups\"\n },\n {\n \"id\": \"/subscriptions/2fdcc35c-1cea-4759-8cbd-d3d02f37745d/resourceGroups/wezamlyn-test-117/providers/Microsoft.AVS/privateClouds/wezamlyn-test-117/workloadNetworks/default/vmGroups/sourcevmgroup\",\n \"name\": \"sourcevmgroup\",\n \"properties\": {\n \"displayName\": \"sourceVmGroup\",\n \"members\": [\n \"TNT55-NSX-APP03\"\n ],\n \"provisioningState\": \"Fulfilled\",\n \"revision\": 0,\n \"status\": \"ERROR\"\n },\n \"type\": \"Microsoft.AVS/privateClouds/workloadNetworks/vmGroups\"\n }\n ]\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/2fdcc35c-1cea-4759-8cbd-d3d02f37745d/resourceGroups/wezamlyn-test-117/providers/Microsoft.AVS/privateClouds/wezamlyn-test-117/workloadNetworks/default/vmGroups/sourceVmGroup?api-version=2021-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMmZkY2MzNWMtMWNlYS00NzU5LThjYmQtZDNkMDJmMzc3NDVkL3Jlc291cmNlR3JvdXBzL3dlemFtbHluLXRlc3QtMTE3L3Byb3ZpZGVycy9NaWNyb3NvZnQuQVZTL3ByaXZhdGVDbG91ZHMvd2V6YW1seW4tdGVzdC0xMTcvd29ya2xvYWROZXR3b3Jrcy9kZWZhdWx0L3ZtR3JvdXBzL3NvdXJjZVZtR3JvdXA/YXBpLXZlcnNpb249MjAyMS0wNi0wMQ==", + "RequestMethod": "PATCH", + "RequestBody": "{\n \"properties\": {\n \"displayName\": \"modifiedVmGroup\",\n \"members\": [\n \"TNT55-NSX-APP03\"\n ]\n }\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "152ce0c5-c500-4d3c-989d-a84b4ffd329a" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.30015.01", + "OSName/Linux", + "OSVersion/Linux.5.4.0.73.generic.82.18.04.1.Ubuntu.SMP.Fri.Apr.16.15.10.02.UTC.2021", + "Microsoft.Azure.Management.Avs.AvsClient/2.0.0.1" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "110" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "10" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1197" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/2fdcc35c-1cea-4759-8cbd-d3d02f37745d/resourceGroups/wezamlyn-test-117/providers/Microsoft.AVS/privateClouds/wezamlyn-test-117/workloadNetworks/default/vmGroups/sourceVmGroup/operationstatuses/94634cc6-0b33-4814-95ff-63b86cd9c103?api-version=2021-06-01" + ], + "x-ms-request-id": [ + "68dda32c-c4f6-4914-8991-7cc4f6c6f749" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "nginx" + ], + "x-ms-correlation-request-id": [ + "97c049ad-bbdb-4b94-b08f-5f757627ca7e" + ], + "x-ms-routing-request-id": [ + "WESTUS:20210525T233531Z:97c049ad-bbdb-4b94-b08f-5f757627ca7e" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Tue, 25 May 2021 23:35:31 GMT" + ], + "Content-Length": [ + "421" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\n \"id\": \"/subscriptions/2fdcc35c-1cea-4759-8cbd-d3d02f37745d/resourceGroups/wezamlyn-test-117/providers/Microsoft.AVS/privateClouds/wezamlyn-test-117/workloadNetworks/default/vmGroups/sourceVmGroup\",\n \"name\": \"sourceVmGroup\",\n \"properties\": {\n \"displayName\": \"modifiedVmGroup\",\n \"members\": [\n \"TNT55-NSX-APP03\"\n ],\n \"provisioningState\": \"Building\",\n \"revision\": 0,\n \"status\": \"ERROR\"\n },\n \"type\": \"Microsoft.AVS/privateClouds/workloadNetworks/vmGroups\"\n}", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/2fdcc35c-1cea-4759-8cbd-d3d02f37745d/resourceGroups/wezamlyn-test-117/providers/Microsoft.AVS/privateClouds/wezamlyn-test-117/workloadNetworks/default/vmGroups/sourceVmGroup/operationstatuses/94634cc6-0b33-4814-95ff-63b86cd9c103?api-version=2021-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMmZkY2MzNWMtMWNlYS00NzU5LThjYmQtZDNkMDJmMzc3NDVkL3Jlc291cmNlR3JvdXBzL3dlemFtbHluLXRlc3QtMTE3L3Byb3ZpZGVycy9NaWNyb3NvZnQuQVZTL3ByaXZhdGVDbG91ZHMvd2V6YW1seW4tdGVzdC0xMTcvd29ya2xvYWROZXR3b3Jrcy9kZWZhdWx0L3ZtR3JvdXBzL3NvdXJjZVZtR3JvdXAvb3BlcmF0aW9uc3RhdHVzZXMvOTQ2MzRjYzYtMGIzMy00ODE0LTk1ZmYtNjNiODZjZDljMTAzP2FwaS12ZXJzaW9uPTIwMjEtMDYtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.30015.01", + "OSName/Linux", + "OSVersion/Linux.5.4.0.73.generic.82.18.04.1.Ubuntu.SMP.Fri.Apr.16.15.10.02.UTC.2021", + "Microsoft.Azure.Management.Avs.AvsClient/2.0.0.1" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "10" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11987" + ], + "x-ms-request-id": [ + "af4e7371-33b8-443e-92ee-e1f3d0cde85b" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "nginx" + ], + "x-ms-correlation-request-id": [ + "a6ed2917-d88f-4f71-a71d-144b2eeb9984" + ], + "x-ms-routing-request-id": [ + "WESTUS:20210525T233541Z:a6ed2917-d88f-4f71-a71d-144b2eeb9984" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Tue, 25 May 2021 23:35:41 GMT" + ], + "Content-Length": [ + "386" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\n \"id\": \"/subscriptions/2fdcc35c-1cea-4759-8cbd-d3d02f37745d/resourceGroups/wezamlyn-test-117/providers/Microsoft.AVS/privateClouds/wezamlyn-test-117/workloadNetworks/default/vmGroups/sourceVmGroup/operationstatuses/94634cc6-0b33-4814-95ff-63b86cd9c103\",\n \"name\": \"94634cc6-0b33-4814-95ff-63b86cd9c103\",\n \"percentComplete\": 0,\n \"startTime\": \"2021-05-25T16:35:31.4885933-07:00\",\n \"status\": \"Building\"\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/2fdcc35c-1cea-4759-8cbd-d3d02f37745d/resourceGroups/wezamlyn-test-117/providers/Microsoft.AVS/privateClouds/wezamlyn-test-117/workloadNetworks/default/vmGroups/sourceVmGroup/operationstatuses/94634cc6-0b33-4814-95ff-63b86cd9c103?api-version=2021-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMmZkY2MzNWMtMWNlYS00NzU5LThjYmQtZDNkMDJmMzc3NDVkL3Jlc291cmNlR3JvdXBzL3dlemFtbHluLXRlc3QtMTE3L3Byb3ZpZGVycy9NaWNyb3NvZnQuQVZTL3ByaXZhdGVDbG91ZHMvd2V6YW1seW4tdGVzdC0xMTcvd29ya2xvYWROZXR3b3Jrcy9kZWZhdWx0L3ZtR3JvdXBzL3NvdXJjZVZtR3JvdXAvb3BlcmF0aW9uc3RhdHVzZXMvOTQ2MzRjYzYtMGIzMy00ODE0LTk1ZmYtNjNiODZjZDljMTAzP2FwaS12ZXJzaW9uPTIwMjEtMDYtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.30015.01", + "OSName/Linux", + "OSVersion/Linux.5.4.0.73.generic.82.18.04.1.Ubuntu.SMP.Fri.Apr.16.15.10.02.UTC.2021", + "Microsoft.Azure.Management.Avs.AvsClient/2.0.0.1" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "10" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11986" + ], + "x-ms-request-id": [ + "b02a518d-4bf0-4f52-88ca-dacbf815139f" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "nginx" + ], + "x-ms-correlation-request-id": [ + "919409d5-4181-4736-bbcc-09e3560c3914" + ], + "x-ms-routing-request-id": [ + "WESTUS:20210525T233551Z:919409d5-4181-4736-bbcc-09e3560c3914" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Tue, 25 May 2021 23:35:51 GMT" + ], + "Content-Length": [ + "386" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\n \"id\": \"/subscriptions/2fdcc35c-1cea-4759-8cbd-d3d02f37745d/resourceGroups/wezamlyn-test-117/providers/Microsoft.AVS/privateClouds/wezamlyn-test-117/workloadNetworks/default/vmGroups/sourceVmGroup/operationstatuses/94634cc6-0b33-4814-95ff-63b86cd9c103\",\n \"name\": \"94634cc6-0b33-4814-95ff-63b86cd9c103\",\n \"percentComplete\": 0,\n \"startTime\": \"2021-05-25T16:35:31.4885933-07:00\",\n \"status\": \"Building\"\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/2fdcc35c-1cea-4759-8cbd-d3d02f37745d/resourceGroups/wezamlyn-test-117/providers/Microsoft.AVS/privateClouds/wezamlyn-test-117/workloadNetworks/default/vmGroups/sourceVmGroup/operationstatuses/94634cc6-0b33-4814-95ff-63b86cd9c103?api-version=2021-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMmZkY2MzNWMtMWNlYS00NzU5LThjYmQtZDNkMDJmMzc3NDVkL3Jlc291cmNlR3JvdXBzL3dlemFtbHluLXRlc3QtMTE3L3Byb3ZpZGVycy9NaWNyb3NvZnQuQVZTL3ByaXZhdGVDbG91ZHMvd2V6YW1seW4tdGVzdC0xMTcvd29ya2xvYWROZXR3b3Jrcy9kZWZhdWx0L3ZtR3JvdXBzL3NvdXJjZVZtR3JvdXAvb3BlcmF0aW9uc3RhdHVzZXMvOTQ2MzRjYzYtMGIzMy00ODE0LTk1ZmYtNjNiODZjZDljMTAzP2FwaS12ZXJzaW9uPTIwMjEtMDYtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.30015.01", + "OSName/Linux", + "OSVersion/Linux.5.4.0.73.generic.82.18.04.1.Ubuntu.SMP.Fri.Apr.16.15.10.02.UTC.2021", + "Microsoft.Azure.Management.Avs.AvsClient/2.0.0.1" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "10" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11985" + ], + "x-ms-request-id": [ + "856db5d9-a9e5-46b7-a8a2-273bf39d8377" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "nginx" + ], + "x-ms-correlation-request-id": [ + "1b35d231-61cf-449a-923c-2bcb7942bddb" + ], + "x-ms-routing-request-id": [ + "WESTUS:20210525T233602Z:1b35d231-61cf-449a-923c-2bcb7942bddb" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Tue, 25 May 2021 23:36:01 GMT" + ], + "Content-Length": [ + "386" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\n \"id\": \"/subscriptions/2fdcc35c-1cea-4759-8cbd-d3d02f37745d/resourceGroups/wezamlyn-test-117/providers/Microsoft.AVS/privateClouds/wezamlyn-test-117/workloadNetworks/default/vmGroups/sourceVmGroup/operationstatuses/94634cc6-0b33-4814-95ff-63b86cd9c103\",\n \"name\": \"94634cc6-0b33-4814-95ff-63b86cd9c103\",\n \"percentComplete\": 0,\n \"startTime\": \"2021-05-25T16:35:31.4885933-07:00\",\n \"status\": \"Building\"\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/2fdcc35c-1cea-4759-8cbd-d3d02f37745d/resourceGroups/wezamlyn-test-117/providers/Microsoft.AVS/privateClouds/wezamlyn-test-117/workloadNetworks/default/vmGroups/sourceVmGroup/operationstatuses/94634cc6-0b33-4814-95ff-63b86cd9c103?api-version=2021-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMmZkY2MzNWMtMWNlYS00NzU5LThjYmQtZDNkMDJmMzc3NDVkL3Jlc291cmNlR3JvdXBzL3dlemFtbHluLXRlc3QtMTE3L3Byb3ZpZGVycy9NaWNyb3NvZnQuQVZTL3ByaXZhdGVDbG91ZHMvd2V6YW1seW4tdGVzdC0xMTcvd29ya2xvYWROZXR3b3Jrcy9kZWZhdWx0L3ZtR3JvdXBzL3NvdXJjZVZtR3JvdXAvb3BlcmF0aW9uc3RhdHVzZXMvOTQ2MzRjYzYtMGIzMy00ODE0LTk1ZmYtNjNiODZjZDljMTAzP2FwaS12ZXJzaW9uPTIwMjEtMDYtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.30015.01", + "OSName/Linux", + "OSVersion/Linux.5.4.0.73.generic.82.18.04.1.Ubuntu.SMP.Fri.Apr.16.15.10.02.UTC.2021", + "Microsoft.Azure.Management.Avs.AvsClient/2.0.0.1" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "10" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11984" + ], + "x-ms-request-id": [ + "5459a9e6-8ebf-43a3-8fc7-867f07e6f8c0" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "nginx" + ], + "x-ms-correlation-request-id": [ + "5808911a-3e37-4b10-8585-dac24626104b" + ], + "x-ms-routing-request-id": [ + "WESTUS:20210525T233612Z:5808911a-3e37-4b10-8585-dac24626104b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Tue, 25 May 2021 23:36:11 GMT" + ], + "Content-Length": [ + "386" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\n \"id\": \"/subscriptions/2fdcc35c-1cea-4759-8cbd-d3d02f37745d/resourceGroups/wezamlyn-test-117/providers/Microsoft.AVS/privateClouds/wezamlyn-test-117/workloadNetworks/default/vmGroups/sourceVmGroup/operationstatuses/94634cc6-0b33-4814-95ff-63b86cd9c103\",\n \"name\": \"94634cc6-0b33-4814-95ff-63b86cd9c103\",\n \"percentComplete\": 0,\n \"startTime\": \"2021-05-25T16:35:31.4885933-07:00\",\n \"status\": \"Building\"\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/2fdcc35c-1cea-4759-8cbd-d3d02f37745d/resourceGroups/wezamlyn-test-117/providers/Microsoft.AVS/privateClouds/wezamlyn-test-117/workloadNetworks/default/vmGroups/sourceVmGroup/operationstatuses/94634cc6-0b33-4814-95ff-63b86cd9c103?api-version=2021-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMmZkY2MzNWMtMWNlYS00NzU5LThjYmQtZDNkMDJmMzc3NDVkL3Jlc291cmNlR3JvdXBzL3dlemFtbHluLXRlc3QtMTE3L3Byb3ZpZGVycy9NaWNyb3NvZnQuQVZTL3ByaXZhdGVDbG91ZHMvd2V6YW1seW4tdGVzdC0xMTcvd29ya2xvYWROZXR3b3Jrcy9kZWZhdWx0L3ZtR3JvdXBzL3NvdXJjZVZtR3JvdXAvb3BlcmF0aW9uc3RhdHVzZXMvOTQ2MzRjYzYtMGIzMy00ODE0LTk1ZmYtNjNiODZjZDljMTAzP2FwaS12ZXJzaW9uPTIwMjEtMDYtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.30015.01", + "OSName/Linux", + "OSVersion/Linux.5.4.0.73.generic.82.18.04.1.Ubuntu.SMP.Fri.Apr.16.15.10.02.UTC.2021", + "Microsoft.Azure.Management.Avs.AvsClient/2.0.0.1" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "10" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11983" + ], + "x-ms-request-id": [ + "dac6120f-6a4a-4876-92b5-276ac8e735fa" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "nginx" + ], + "x-ms-correlation-request-id": [ + "7dc4d143-95d4-456b-bb6f-072a5d674191" + ], + "x-ms-routing-request-id": [ + "WESTUS:20210525T233622Z:7dc4d143-95d4-456b-bb6f-072a5d674191" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Tue, 25 May 2021 23:36:22 GMT" + ], + "Content-Length": [ + "386" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\n \"id\": \"/subscriptions/2fdcc35c-1cea-4759-8cbd-d3d02f37745d/resourceGroups/wezamlyn-test-117/providers/Microsoft.AVS/privateClouds/wezamlyn-test-117/workloadNetworks/default/vmGroups/sourceVmGroup/operationstatuses/94634cc6-0b33-4814-95ff-63b86cd9c103\",\n \"name\": \"94634cc6-0b33-4814-95ff-63b86cd9c103\",\n \"percentComplete\": 0,\n \"startTime\": \"2021-05-25T16:35:31.4885933-07:00\",\n \"status\": \"Building\"\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/2fdcc35c-1cea-4759-8cbd-d3d02f37745d/resourceGroups/wezamlyn-test-117/providers/Microsoft.AVS/privateClouds/wezamlyn-test-117/workloadNetworks/default/vmGroups/sourceVmGroup/operationstatuses/94634cc6-0b33-4814-95ff-63b86cd9c103?api-version=2021-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMmZkY2MzNWMtMWNlYS00NzU5LThjYmQtZDNkMDJmMzc3NDVkL3Jlc291cmNlR3JvdXBzL3dlemFtbHluLXRlc3QtMTE3L3Byb3ZpZGVycy9NaWNyb3NvZnQuQVZTL3ByaXZhdGVDbG91ZHMvd2V6YW1seW4tdGVzdC0xMTcvd29ya2xvYWROZXR3b3Jrcy9kZWZhdWx0L3ZtR3JvdXBzL3NvdXJjZVZtR3JvdXAvb3BlcmF0aW9uc3RhdHVzZXMvOTQ2MzRjYzYtMGIzMy00ODE0LTk1ZmYtNjNiODZjZDljMTAzP2FwaS12ZXJzaW9uPTIwMjEtMDYtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.30015.01", + "OSName/Linux", + "OSVersion/Linux.5.4.0.73.generic.82.18.04.1.Ubuntu.SMP.Fri.Apr.16.15.10.02.UTC.2021", + "Microsoft.Azure.Management.Avs.AvsClient/2.0.0.1" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "10" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11982" + ], + "x-ms-request-id": [ + "5e11ca2a-7cc9-4ca6-965c-fdcff014d103" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "nginx" + ], + "x-ms-correlation-request-id": [ + "f9c8c1e3-d35c-47cc-bd1a-3af7a8acd677" + ], + "x-ms-routing-request-id": [ + "WESTUS:20210525T233632Z:f9c8c1e3-d35c-47cc-bd1a-3af7a8acd677" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Tue, 25 May 2021 23:36:32 GMT" + ], + "Content-Length": [ + "871" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\n \"endTime\": \"2021-05-25T16:36:29.1206434-07:00\",\n \"id\": \"/subscriptions/2fdcc35c-1cea-4759-8cbd-d3d02f37745d/resourceGroups/wezamlyn-test-117/providers/Microsoft.AVS/privateClouds/wezamlyn-test-117/workloadNetworks/default/vmGroups/sourceVmGroup/operationstatuses/94634cc6-0b33-4814-95ff-63b86cd9c103\",\n \"name\": \"94634cc6-0b33-4814-95ff-63b86cd9c103\",\n \"percentComplete\": 100,\n \"properties\": {\n \"id\": \"/subscriptions/2fdcc35c-1cea-4759-8cbd-d3d02f37745d/resourceGroups/wezamlyn-test-117/providers/Microsoft.AVS/privateClouds/wezamlyn-test-117/workloadNetworks/default/vmGroups/sourceVmGroup\",\n \"name\": \"sourceVmGroup\",\n \"properties\": {\n \"displayName\": \"modifiedVmGroup\",\n \"members\": [\n \"TNT55-NSX-APP03\"\n ],\n \"provisioningState\": \"Fulfilled\",\n \"revision\": 1,\n \"status\": \"ERROR\"\n },\n \"type\": \"Microsoft.AVS/privateClouds/workloadNetworks/vmGroups\"\n },\n \"startTime\": \"2021-05-25T16:35:31.4885933-07:00\",\n \"status\": \"Succeeded\"\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/2fdcc35c-1cea-4759-8cbd-d3d02f37745d/resourceGroups/wezamlyn-test-117/providers/Microsoft.AVS/privateClouds/wezamlyn-test-117/workloadNetworks/default/portMirroringProfiles/portMirroring?api-version=2021-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMmZkY2MzNWMtMWNlYS00NzU5LThjYmQtZDNkMDJmMzc3NDVkL3Jlc291cmNlR3JvdXBzL3dlemFtbHluLXRlc3QtMTE3L3Byb3ZpZGVycy9NaWNyb3NvZnQuQVZTL3ByaXZhdGVDbG91ZHMvd2V6YW1seW4tdGVzdC0xMTcvd29ya2xvYWROZXR3b3Jrcy9kZWZhdWx0L3BvcnRNaXJyb3JpbmdQcm9maWxlcy9wb3J0TWlycm9yaW5nP2FwaS12ZXJzaW9uPTIwMjEtMDYtMDE=", + "RequestMethod": "PUT", + "RequestBody": "{\n \"properties\": {\n \"displayName\": \"portMirroring\",\n \"direction\": \"BIDIRECTIONAL\",\n \"source\": \"sourceVmGroup\",\n \"destination\": \"destVmGroup\"\n }\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "71e07350-f4ce-4b94-8426-0bfe6a398e2a" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.30015.01", + "OSName/Linux", + "OSVersion/Linux.5.4.0.73.generic.82.18.04.1.Ubuntu.SMP.Fri.Apr.16.15.10.02.UTC.2021", + "Microsoft.Azure.Management.Avs.AvsClient/2.0.0.1" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "159" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "10" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1196" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/2fdcc35c-1cea-4759-8cbd-d3d02f37745d/resourceGroups/wezamlyn-test-117/providers/Microsoft.AVS/privateClouds/wezamlyn-test-117/workloadNetworks/default/portMirroringProfiles/portMirroring/operationstatuses/dd441673-f691-49bd-b8ef-c671e30e8eec?api-version=2021-06-01" + ], + "x-ms-request-id": [ + "06a23971-8736-4205-9d67-9d882e4ada69" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "nginx" + ], + "x-ms-correlation-request-id": [ + "3f09c1d7-62aa-48cc-b6d0-91f1f69d86ce" + ], + "x-ms-routing-request-id": [ + "WESTUS:20210525T233634Z:3f09c1d7-62aa-48cc-b6d0-91f1f69d86ce" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Tue, 25 May 2021 23:36:34 GMT" + ], + "Content-Length": [ + "466" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\n \"id\": \"/subscriptions/2fdcc35c-1cea-4759-8cbd-d3d02f37745d/resourceGroups/wezamlyn-test-117/providers/Microsoft.AVS/privateClouds/wezamlyn-test-117/workloadNetworks/default/portMirroringProfiles/portMirroring\",\n \"name\": \"portMirroring\",\n \"properties\": {\n \"destination\": \"destVmGroup\",\n \"direction\": \"BIDIRECTIONAL\",\n \"displayName\": \"portMirroring\",\n \"provisioningState\": \"Building\",\n \"source\": \"sourceVmGroup\"\n },\n \"type\": \"Microsoft.AVS/privateClouds/workloadNetworks/portMirroringProfiles\"\n}", + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/2fdcc35c-1cea-4759-8cbd-d3d02f37745d/resourceGroups/wezamlyn-test-117/providers/Microsoft.AVS/privateClouds/wezamlyn-test-117/workloadNetworks/default/portMirroringProfiles/portMirroring/operationstatuses/dd441673-f691-49bd-b8ef-c671e30e8eec?api-version=2021-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMmZkY2MzNWMtMWNlYS00NzU5LThjYmQtZDNkMDJmMzc3NDVkL3Jlc291cmNlR3JvdXBzL3dlemFtbHluLXRlc3QtMTE3L3Byb3ZpZGVycy9NaWNyb3NvZnQuQVZTL3ByaXZhdGVDbG91ZHMvd2V6YW1seW4tdGVzdC0xMTcvd29ya2xvYWROZXR3b3Jrcy9kZWZhdWx0L3BvcnRNaXJyb3JpbmdQcm9maWxlcy9wb3J0TWlycm9yaW5nL29wZXJhdGlvbnN0YXR1c2VzL2RkNDQxNjczLWY2OTEtNDliZC1iOGVmLWM2NzFlMzBlOGVlYz9hcGktdmVyc2lvbj0yMDIxLTA2LTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.30015.01", + "OSName/Linux", + "OSVersion/Linux.5.4.0.73.generic.82.18.04.1.Ubuntu.SMP.Fri.Apr.16.15.10.02.UTC.2021", + "Microsoft.Azure.Management.Avs.AvsClient/2.0.0.1" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "10" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11980" + ], + "x-ms-request-id": [ + "91383e6a-2805-4305-aefc-e49852ca4429" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "nginx" + ], + "x-ms-correlation-request-id": [ + "5e4b3306-27ca-491e-b4ee-36d0e5d3838a" + ], + "x-ms-routing-request-id": [ + "WESTUS:20210525T233645Z:5e4b3306-27ca-491e-b4ee-36d0e5d3838a" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Tue, 25 May 2021 23:36:44 GMT" + ], + "Content-Length": [ + "954" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\n \"endTime\": \"2021-05-25T16:36:36.3971093-07:00\",\n \"id\": \"/subscriptions/2fdcc35c-1cea-4759-8cbd-d3d02f37745d/resourceGroups/wezamlyn-test-117/providers/Microsoft.AVS/privateClouds/wezamlyn-test-117/workloadNetworks/default/portMirroringProfiles/portMirroring/operationstatuses/dd441673-f691-49bd-b8ef-c671e30e8eec\",\n \"name\": \"dd441673-f691-49bd-b8ef-c671e30e8eec\",\n \"percentComplete\": 100,\n \"properties\": {\n \"id\": \"/subscriptions/2fdcc35c-1cea-4759-8cbd-d3d02f37745d/resourceGroups/wezamlyn-test-117/providers/Microsoft.AVS/privateClouds/wezamlyn-test-117/workloadNetworks/default/portMirroringProfiles/portMirroring\",\n \"name\": \"portMirroring\",\n \"properties\": {\n \"destination\": \"destvmgroup\",\n \"direction\": \"BIDIRECTIONAL\",\n \"displayName\": \"portMirroring\",\n \"provisioningState\": \"Fulfilled\",\n \"revision\": 0,\n \"source\": \"sourcevmgroup\",\n \"status\": \"\"\n },\n \"type\": \"Microsoft.AVS/privateClouds/workloadNetworks/portMirroringProfiles\"\n },\n \"startTime\": \"2021-05-25T16:36:34.2363833-07:00\",\n \"status\": \"Succeeded\"\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/2fdcc35c-1cea-4759-8cbd-d3d02f37745d/resourceGroups/wezamlyn-test-117/providers/Microsoft.AVS/privateClouds/wezamlyn-test-117/workloadNetworks/default/portMirroringProfiles/portMirroring?api-version=2021-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMmZkY2MzNWMtMWNlYS00NzU5LThjYmQtZDNkMDJmMzc3NDVkL3Jlc291cmNlR3JvdXBzL3dlemFtbHluLXRlc3QtMTE3L3Byb3ZpZGVycy9NaWNyb3NvZnQuQVZTL3ByaXZhdGVDbG91ZHMvd2V6YW1seW4tdGVzdC0xMTcvd29ya2xvYWROZXR3b3Jrcy9kZWZhdWx0L3BvcnRNaXJyb3JpbmdQcm9maWxlcy9wb3J0TWlycm9yaW5nP2FwaS12ZXJzaW9uPTIwMjEtMDYtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.30015.01", + "OSName/Linux", + "OSVersion/Linux.5.4.0.73.generic.82.18.04.1.Ubuntu.SMP.Fri.Apr.16.15.10.02.UTC.2021", + "Microsoft.Azure.Management.Avs.AvsClient/2.0.0.1" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11979" + ], + "x-ms-request-id": [ + "1413e7db-3903-4eb1-a511-b3136b671ce5" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "nginx" + ], + "x-ms-correlation-request-id": [ + "f101c20c-9233-41f9-ae64-6317787a11a4" + ], + "x-ms-routing-request-id": [ + "WESTUS:20210525T233645Z:f101c20c-9233-41f9-ae64-6317787a11a4" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Tue, 25 May 2021 23:36:45 GMT" + ], + "Content-Length": [ + "492" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\n \"id\": \"/subscriptions/2fdcc35c-1cea-4759-8cbd-d3d02f37745d/resourceGroups/wezamlyn-test-117/providers/Microsoft.AVS/privateClouds/wezamlyn-test-117/workloadNetworks/default/portMirroringProfiles/portMirroring\",\n \"name\": \"portMirroring\",\n \"properties\": {\n \"destination\": \"destvmgroup\",\n \"direction\": \"BIDIRECTIONAL\",\n \"displayName\": \"portMirroring\",\n \"provisioningState\": \"Fulfilled\",\n \"revision\": 0,\n \"source\": \"sourcevmgroup\",\n \"status\": \"\"\n },\n \"type\": \"Microsoft.AVS/privateClouds/workloadNetworks/portMirroringProfiles\"\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/2fdcc35c-1cea-4759-8cbd-d3d02f37745d/resourceGroups/wezamlyn-test-117/providers/Microsoft.AVS/privateClouds/wezamlyn-test-117/workloadNetworks/default/portMirroringProfiles/portMirroring?api-version=2021-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMmZkY2MzNWMtMWNlYS00NzU5LThjYmQtZDNkMDJmMzc3NDVkL3Jlc291cmNlR3JvdXBzL3dlemFtbHluLXRlc3QtMTE3L3Byb3ZpZGVycy9NaWNyb3NvZnQuQVZTL3ByaXZhdGVDbG91ZHMvd2V6YW1seW4tdGVzdC0xMTcvd29ya2xvYWROZXR3b3Jrcy9kZWZhdWx0L3BvcnRNaXJyb3JpbmdQcm9maWxlcy9wb3J0TWlycm9yaW5nP2FwaS12ZXJzaW9uPTIwMjEtMDYtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "869f299c-903a-4f04-b5b5-37a8060bfb7a" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.30015.01", + "OSName/Linux", + "OSVersion/Linux.5.4.0.73.generic.82.18.04.1.Ubuntu.SMP.Fri.Apr.16.15.10.02.UTC.2021", + "Microsoft.Azure.Management.Avs.AvsClient/2.0.0.1" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11977" + ], + "x-ms-request-id": [ + "1e1b7213-0cf4-45f7-858c-53af0bbe09f0" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "nginx" + ], + "x-ms-correlation-request-id": [ + "06730923-9238-41eb-9e69-a4f757329037" + ], + "x-ms-routing-request-id": [ + "WESTUS:20210525T233646Z:06730923-9238-41eb-9e69-a4f757329037" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Tue, 25 May 2021 23:36:46 GMT" + ], + "Content-Length": [ + "492" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\n \"id\": \"/subscriptions/2fdcc35c-1cea-4759-8cbd-d3d02f37745d/resourceGroups/wezamlyn-test-117/providers/Microsoft.AVS/privateClouds/wezamlyn-test-117/workloadNetworks/default/portMirroringProfiles/portMirroring\",\n \"name\": \"portMirroring\",\n \"properties\": {\n \"destination\": \"destvmgroup\",\n \"direction\": \"BIDIRECTIONAL\",\n \"displayName\": \"portMirroring\",\n \"provisioningState\": \"Fulfilled\",\n \"revision\": 0,\n \"source\": \"sourcevmgroup\",\n \"status\": \"\"\n },\n \"type\": \"Microsoft.AVS/privateClouds/workloadNetworks/portMirroringProfiles\"\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/2fdcc35c-1cea-4759-8cbd-d3d02f37745d/resourceGroups/wezamlyn-test-117/providers/Microsoft.AVS/privateClouds/wezamlyn-test-117/workloadNetworks/default/portMirroringProfiles/portMirroring?api-version=2021-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMmZkY2MzNWMtMWNlYS00NzU5LThjYmQtZDNkMDJmMzc3NDVkL3Jlc291cmNlR3JvdXBzL3dlemFtbHluLXRlc3QtMTE3L3Byb3ZpZGVycy9NaWNyb3NvZnQuQVZTL3ByaXZhdGVDbG91ZHMvd2V6YW1seW4tdGVzdC0xMTcvd29ya2xvYWROZXR3b3Jrcy9kZWZhdWx0L3BvcnRNaXJyb3JpbmdQcm9maWxlcy9wb3J0TWlycm9yaW5nP2FwaS12ZXJzaW9uPTIwMjEtMDYtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.30015.01", + "OSName/Linux", + "OSVersion/Linux.5.4.0.73.generic.82.18.04.1.Ubuntu.SMP.Fri.Apr.16.15.10.02.UTC.2021", + "Microsoft.Azure.Management.Avs.AvsClient/2.0.0.1" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11975" + ], + "x-ms-request-id": [ + "494970d8-dd95-465f-8ca8-6fc0e219d5b6" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "nginx" + ], + "x-ms-correlation-request-id": [ + "c50d75fc-d16d-4703-b519-fccd2bc1d7bb" + ], + "x-ms-routing-request-id": [ + "WESTUS:20210525T233700Z:c50d75fc-d16d-4703-b519-fccd2bc1d7bb" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Tue, 25 May 2021 23:36:59 GMT" + ], + "Content-Length": [ + "500" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\n \"id\": \"/subscriptions/2fdcc35c-1cea-4759-8cbd-d3d02f37745d/resourceGroups/wezamlyn-test-117/providers/Microsoft.AVS/privateClouds/wezamlyn-test-117/workloadNetworks/default/portMirroringProfiles/portMirroring\",\n \"name\": \"portMirroring\",\n \"properties\": {\n \"destination\": \"destvmgroup\",\n \"direction\": \"BIDIRECTIONAL\",\n \"displayName\": \"modifiedPortMirroring\",\n \"provisioningState\": \"Fulfilled\",\n \"revision\": 1,\n \"source\": \"sourcevmgroup\",\n \"status\": \"\"\n },\n \"type\": \"Microsoft.AVS/privateClouds/workloadNetworks/portMirroringProfiles\"\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/2fdcc35c-1cea-4759-8cbd-d3d02f37745d/resourceGroups/wezamlyn-test-117/providers/Microsoft.AVS/privateClouds/wezamlyn-test-117/workloadNetworks/default/portMirroringProfiles?api-version=2021-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMmZkY2MzNWMtMWNlYS00NzU5LThjYmQtZDNkMDJmMzc3NDVkL3Jlc291cmNlR3JvdXBzL3dlemFtbHluLXRlc3QtMTE3L3Byb3ZpZGVycy9NaWNyb3NvZnQuQVZTL3ByaXZhdGVDbG91ZHMvd2V6YW1seW4tdGVzdC0xMTcvd29ya2xvYWROZXR3b3Jrcy9kZWZhdWx0L3BvcnRNaXJyb3JpbmdQcm9maWxlcz9hcGktdmVyc2lvbj0yMDIxLTA2LTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "dc041631-28aa-4238-a5d0-321fe8186cab" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.30015.01", + "OSName/Linux", + "OSVersion/Linux.5.4.0.73.generic.82.18.04.1.Ubuntu.SMP.Fri.Apr.16.15.10.02.UTC.2021", + "Microsoft.Azure.Management.Avs.AvsClient/2.0.0.1" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11978" + ], + "x-ms-request-id": [ + "6c424f8c-df13-40c3-8a05-398978b97101" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "nginx" + ], + "x-ms-correlation-request-id": [ + "fe99939c-3644-4ee4-ba65-5077a8115cff" + ], + "x-ms-routing-request-id": [ + "WESTUS:20210525T233646Z:fe99939c-3644-4ee4-ba65-5077a8115cff" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Tue, 25 May 2021 23:36:46 GMT" + ], + "Content-Length": [ + "504" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\n \"value\": [\n {\n \"id\": \"/subscriptions/2fdcc35c-1cea-4759-8cbd-d3d02f37745d/resourceGroups/wezamlyn-test-117/providers/Microsoft.AVS/privateClouds/wezamlyn-test-117/workloadNetworks/default/portMirroringProfiles/portmirroring\",\n \"name\": \"portmirroring\",\n \"properties\": {\n \"destination\": \"destvmgroup\",\n \"direction\": \"BIDIRECTIONAL\",\n \"displayName\": \"portMirroring\",\n \"provisioningState\": \"Fulfilled\",\n \"revision\": 0,\n \"source\": \"sourcevmgroup\",\n \"status\": \"\"\n },\n \"type\": \"Microsoft.AVS/privateClouds/workloadNetworks/portMirroringProfiles\"\n }\n ]\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/2fdcc35c-1cea-4759-8cbd-d3d02f37745d/resourceGroups/wezamlyn-test-117/providers/Microsoft.AVS/privateClouds/wezamlyn-test-117/workloadNetworks/default/portMirroringProfiles/portMirroring?api-version=2021-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMmZkY2MzNWMtMWNlYS00NzU5LThjYmQtZDNkMDJmMzc3NDVkL3Jlc291cmNlR3JvdXBzL3dlemFtbHluLXRlc3QtMTE3L3Byb3ZpZGVycy9NaWNyb3NvZnQuQVZTL3ByaXZhdGVDbG91ZHMvd2V6YW1seW4tdGVzdC0xMTcvd29ya2xvYWROZXR3b3Jrcy9kZWZhdWx0L3BvcnRNaXJyb3JpbmdQcm9maWxlcy9wb3J0TWlycm9yaW5nP2FwaS12ZXJzaW9uPTIwMjEtMDYtMDE=", + "RequestMethod": "PATCH", + "RequestBody": "{\n \"properties\": {\n \"displayName\": \"modifiedPortMirroring\",\n \"direction\": \"BIDIRECTIONAL\",\n \"source\": \"sourceVmGroup\",\n \"destination\": \"destVmGroup\"\n }\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "9505359a-e7d1-4895-a930-681962e77d4a" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.30015.01", + "OSName/Linux", + "OSVersion/Linux.5.4.0.73.generic.82.18.04.1.Ubuntu.SMP.Fri.Apr.16.15.10.02.UTC.2021", + "Microsoft.Azure.Management.Avs.AvsClient/2.0.0.1" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "167" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "10" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1195" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/2fdcc35c-1cea-4759-8cbd-d3d02f37745d/resourceGroups/wezamlyn-test-117/providers/Microsoft.AVS/privateClouds/wezamlyn-test-117/workloadNetworks/default/portMirroringProfiles/portMirroring/operationstatuses/79c44591-a4e6-459a-9257-62d968a57ecd?api-version=2021-06-01" + ], + "x-ms-request-id": [ + "47f40133-c6b9-4681-bf77-688c33664ceb" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "nginx" + ], + "x-ms-correlation-request-id": [ + "009905c9-12d5-4cb2-90e7-eb21d0cfdbd8" + ], + "x-ms-routing-request-id": [ + "WESTUS:20210525T233648Z:009905c9-12d5-4cb2-90e7-eb21d0cfdbd8" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Tue, 25 May 2021 23:36:48 GMT" + ], + "Content-Length": [ + "499" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\n \"id\": \"/subscriptions/2fdcc35c-1cea-4759-8cbd-d3d02f37745d/resourceGroups/wezamlyn-test-117/providers/Microsoft.AVS/privateClouds/wezamlyn-test-117/workloadNetworks/default/portMirroringProfiles/portMirroring\",\n \"name\": \"portMirroring\",\n \"properties\": {\n \"destination\": \"destVmGroup\",\n \"direction\": \"BIDIRECTIONAL\",\n \"displayName\": \"modifiedPortMirroring\",\n \"provisioningState\": \"Building\",\n \"revision\": 0,\n \"source\": \"sourceVmGroup\",\n \"status\": \"\"\n },\n \"type\": \"Microsoft.AVS/privateClouds/workloadNetworks/portMirroringProfiles\"\n}", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/2fdcc35c-1cea-4759-8cbd-d3d02f37745d/resourceGroups/wezamlyn-test-117/providers/Microsoft.AVS/privateClouds/wezamlyn-test-117/workloadNetworks/default/portMirroringProfiles/portMirroring/operationstatuses/79c44591-a4e6-459a-9257-62d968a57ecd?api-version=2021-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMmZkY2MzNWMtMWNlYS00NzU5LThjYmQtZDNkMDJmMzc3NDVkL3Jlc291cmNlR3JvdXBzL3dlemFtbHluLXRlc3QtMTE3L3Byb3ZpZGVycy9NaWNyb3NvZnQuQVZTL3ByaXZhdGVDbG91ZHMvd2V6YW1seW4tdGVzdC0xMTcvd29ya2xvYWROZXR3b3Jrcy9kZWZhdWx0L3BvcnRNaXJyb3JpbmdQcm9maWxlcy9wb3J0TWlycm9yaW5nL29wZXJhdGlvbnN0YXR1c2VzLzc5YzQ0NTkxLWE0ZTYtNDU5YS05MjU3LTYyZDk2OGE1N2VjZD9hcGktdmVyc2lvbj0yMDIxLTA2LTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.30015.01", + "OSName/Linux", + "OSVersion/Linux.5.4.0.73.generic.82.18.04.1.Ubuntu.SMP.Fri.Apr.16.15.10.02.UTC.2021", + "Microsoft.Azure.Management.Avs.AvsClient/2.0.0.1" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "10" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11976" + ], + "x-ms-request-id": [ + "c456ba37-5dc9-4686-9821-44bd979c1915" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "nginx" + ], + "x-ms-correlation-request-id": [ + "07e3752f-bd5b-40ac-b805-0e479a633574" + ], + "x-ms-routing-request-id": [ + "WESTUS:20210525T233659Z:07e3752f-bd5b-40ac-b805-0e479a633574" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Tue, 25 May 2021 23:36:59 GMT" + ], + "Content-Length": [ + "962" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\n \"endTime\": \"2021-05-25T16:36:57.0457522-07:00\",\n \"id\": \"/subscriptions/2fdcc35c-1cea-4759-8cbd-d3d02f37745d/resourceGroups/wezamlyn-test-117/providers/Microsoft.AVS/privateClouds/wezamlyn-test-117/workloadNetworks/default/portMirroringProfiles/portMirroring/operationstatuses/79c44591-a4e6-459a-9257-62d968a57ecd\",\n \"name\": \"79c44591-a4e6-459a-9257-62d968a57ecd\",\n \"percentComplete\": 100,\n \"properties\": {\n \"id\": \"/subscriptions/2fdcc35c-1cea-4759-8cbd-d3d02f37745d/resourceGroups/wezamlyn-test-117/providers/Microsoft.AVS/privateClouds/wezamlyn-test-117/workloadNetworks/default/portMirroringProfiles/portMirroring\",\n \"name\": \"portMirroring\",\n \"properties\": {\n \"destination\": \"destvmgroup\",\n \"direction\": \"BIDIRECTIONAL\",\n \"displayName\": \"modifiedPortMirroring\",\n \"provisioningState\": \"Fulfilled\",\n \"revision\": 1,\n \"source\": \"sourcevmgroup\",\n \"status\": \"\"\n },\n \"type\": \"Microsoft.AVS/privateClouds/workloadNetworks/portMirroringProfiles\"\n },\n \"startTime\": \"2021-05-25T16:36:48.5639385-07:00\",\n \"status\": \"Succeeded\"\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/2fdcc35c-1cea-4759-8cbd-d3d02f37745d/resourceGroups/wezamlyn-test-117/providers/Microsoft.AVS/privateClouds/wezamlyn-test-117/workloadNetworks/default/portMirroringProfiles/portMirroring?api-version=2021-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMmZkY2MzNWMtMWNlYS00NzU5LThjYmQtZDNkMDJmMzc3NDVkL3Jlc291cmNlR3JvdXBzL3dlemFtbHluLXRlc3QtMTE3L3Byb3ZpZGVycy9NaWNyb3NvZnQuQVZTL3ByaXZhdGVDbG91ZHMvd2V6YW1seW4tdGVzdC0xMTcvd29ya2xvYWROZXR3b3Jrcy9kZWZhdWx0L3BvcnRNaXJyb3JpbmdQcm9maWxlcy9wb3J0TWlycm9yaW5nP2FwaS12ZXJzaW9uPTIwMjEtMDYtMDE=", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "4e269e93-daa3-4f5c-b9c3-0c51e980ac09" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.30015.01", + "OSName/Linux", + "OSVersion/Linux.5.4.0.73.generic.82.18.04.1.Ubuntu.SMP.Fri.Apr.16.15.10.02.UTC.2021", + "Microsoft.Azure.Management.Avs.AvsClient/2.0.0.1" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/2fdcc35c-1cea-4759-8cbd-d3d02f37745d/resourceGroups/wezamlyn-test-117/providers/Microsoft.AVS/privateClouds/wezamlyn-test-117/workloadNetworks/default/portMirroringProfiles/portMirroring/operationresults/7316d87a-763a-466d-8c40-e01f83d9e824?api-version=2021-06-01" + ], + "Retry-After": [ + "10" + ], + "x-ms-ratelimit-remaining-subscription-deletes": [ + "14999" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/2fdcc35c-1cea-4759-8cbd-d3d02f37745d/resourceGroups/wezamlyn-test-117/providers/Microsoft.AVS/privateClouds/wezamlyn-test-117/workloadNetworks/default/portMirroringProfiles/portMirroring/operationstatuses/7316d87a-763a-466d-8c40-e01f83d9e824?api-version=2021-06-01" + ], + "x-ms-request-id": [ + "c814f83f-9a8c-47be-a11d-19546cd863f0" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "nginx" + ], + "x-ms-correlation-request-id": [ + "43d96eee-05f1-4eaf-b2db-e7f4578184ea" + ], + "x-ms-routing-request-id": [ + "WESTUS:20210525T233700Z:43d96eee-05f1-4eaf-b2db-e7f4578184ea" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Tue, 25 May 2021 23:37:00 GMT" + ], + "Content-Length": [ + "499" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\n \"id\": \"/subscriptions/2fdcc35c-1cea-4759-8cbd-d3d02f37745d/resourceGroups/wezamlyn-test-117/providers/Microsoft.AVS/privateClouds/wezamlyn-test-117/workloadNetworks/default/portMirroringProfiles/portMirroring\",\n \"name\": \"portMirroring\",\n \"properties\": {\n \"destination\": \"destvmgroup\",\n \"direction\": \"BIDIRECTIONAL\",\n \"displayName\": \"modifiedPortMirroring\",\n \"provisioningState\": \"Deleting\",\n \"revision\": 1,\n \"source\": \"sourcevmgroup\",\n \"status\": \"\"\n },\n \"type\": \"Microsoft.AVS/privateClouds/workloadNetworks/portMirroringProfiles\"\n}", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/2fdcc35c-1cea-4759-8cbd-d3d02f37745d/resourceGroups/wezamlyn-test-117/providers/Microsoft.AVS/privateClouds/wezamlyn-test-117/workloadNetworks/default/portMirroringProfiles/portMirroring/operationstatuses/7316d87a-763a-466d-8c40-e01f83d9e824?api-version=2021-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMmZkY2MzNWMtMWNlYS00NzU5LThjYmQtZDNkMDJmMzc3NDVkL3Jlc291cmNlR3JvdXBzL3dlemFtbHluLXRlc3QtMTE3L3Byb3ZpZGVycy9NaWNyb3NvZnQuQVZTL3ByaXZhdGVDbG91ZHMvd2V6YW1seW4tdGVzdC0xMTcvd29ya2xvYWROZXR3b3Jrcy9kZWZhdWx0L3BvcnRNaXJyb3JpbmdQcm9maWxlcy9wb3J0TWlycm9yaW5nL29wZXJhdGlvbnN0YXR1c2VzLzczMTZkODdhLTc2M2EtNDY2ZC04YzQwLWUwMWY4M2Q5ZTgyND9hcGktdmVyc2lvbj0yMDIxLTA2LTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.30015.01", + "OSName/Linux", + "OSVersion/Linux.5.4.0.73.generic.82.18.04.1.Ubuntu.SMP.Fri.Apr.16.15.10.02.UTC.2021", + "Microsoft.Azure.Management.Avs.AvsClient/2.0.0.1" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "10" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11974" + ], + "x-ms-request-id": [ + "3ebd2b17-a3cc-49e3-beb9-d55321faeb03" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "nginx" + ], + "x-ms-correlation-request-id": [ + "d8e37090-8795-451c-8951-41a07734e283" + ], + "x-ms-routing-request-id": [ + "WESTUS:20210525T233711Z:d8e37090-8795-451c-8951-41a07734e283" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Tue, 25 May 2021 23:37:10 GMT" + ], + "Content-Length": [ + "448" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\n \"endTime\": \"2021-05-25T16:37:06.9717667-07:00\",\n \"id\": \"/subscriptions/2fdcc35c-1cea-4759-8cbd-d3d02f37745d/resourceGroups/wezamlyn-test-117/providers/Microsoft.AVS/privateClouds/wezamlyn-test-117/workloadNetworks/default/portMirroringProfiles/portMirroring/operationstatuses/7316d87a-763a-466d-8c40-e01f83d9e824\",\n \"name\": \"7316d87a-763a-466d-8c40-e01f83d9e824\",\n \"percentComplete\": 100,\n \"startTime\": \"2021-05-25T16:37:00.7178187-07:00\",\n \"status\": \"Succeeded\"\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/2fdcc35c-1cea-4759-8cbd-d3d02f37745d/resourceGroups/wezamlyn-test-117/providers/Microsoft.AVS/privateClouds/wezamlyn-test-117/workloadNetworks/default/portMirroringProfiles/portMirroring/operationresults/7316d87a-763a-466d-8c40-e01f83d9e824?api-version=2021-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMmZkY2MzNWMtMWNlYS00NzU5LThjYmQtZDNkMDJmMzc3NDVkL3Jlc291cmNlR3JvdXBzL3dlemFtbHluLXRlc3QtMTE3L3Byb3ZpZGVycy9NaWNyb3NvZnQuQVZTL3ByaXZhdGVDbG91ZHMvd2V6YW1seW4tdGVzdC0xMTcvd29ya2xvYWROZXR3b3Jrcy9kZWZhdWx0L3BvcnRNaXJyb3JpbmdQcm9maWxlcy9wb3J0TWlycm9yaW5nL29wZXJhdGlvbnJlc3VsdHMvNzMxNmQ4N2EtNzYzYS00NjZkLThjNDAtZTAxZjgzZDllODI0P2FwaS12ZXJzaW9uPTIwMjEtMDYtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.30015.01", + "OSName/Linux", + "OSVersion/Linux.5.4.0.73.generic.82.18.04.1.Ubuntu.SMP.Fri.Apr.16.15.10.02.UTC.2021", + "Microsoft.Azure.Management.Avs.AvsClient/2.0.0.1" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11973" + ], + "x-ms-request-id": [ + "ee92ad90-1a72-49be-af83-a1f9229f07a6" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "nginx" + ], + "x-ms-correlation-request-id": [ + "2bce07f6-f845-43da-8615-0c68a0fe84fa" + ], + "x-ms-routing-request-id": [ + "WESTUS:20210525T233711Z:2bce07f6-f845-43da-8615-0c68a0fe84fa" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Tue, 25 May 2021 23:37:10 GMT" + ], + "Content-Length": [ + "4" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "null", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/2fdcc35c-1cea-4759-8cbd-d3d02f37745d/resourceGroups/wezamlyn-test-117/providers/Microsoft.AVS/privateClouds/wezamlyn-test-117/workloadNetworks/default/vmGroups/sourceVmGroup?api-version=2021-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMmZkY2MzNWMtMWNlYS00NzU5LThjYmQtZDNkMDJmMzc3NDVkL3Jlc291cmNlR3JvdXBzL3dlemFtbHluLXRlc3QtMTE3L3Byb3ZpZGVycy9NaWNyb3NvZnQuQVZTL3ByaXZhdGVDbG91ZHMvd2V6YW1seW4tdGVzdC0xMTcvd29ya2xvYWROZXR3b3Jrcy9kZWZhdWx0L3ZtR3JvdXBzL3NvdXJjZVZtR3JvdXA/YXBpLXZlcnNpb249MjAyMS0wNi0wMQ==", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "88c83d5e-d447-4413-9ab6-8b03f572112a" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.30015.01", + "OSName/Linux", + "OSVersion/Linux.5.4.0.73.generic.82.18.04.1.Ubuntu.SMP.Fri.Apr.16.15.10.02.UTC.2021", + "Microsoft.Azure.Management.Avs.AvsClient/2.0.0.1" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/2fdcc35c-1cea-4759-8cbd-d3d02f37745d/resourceGroups/wezamlyn-test-117/providers/Microsoft.AVS/privateClouds/wezamlyn-test-117/workloadNetworks/default/vmGroups/sourceVmGroup/operationresults/d6b712aa-a929-479a-8ec9-a13f5ab6275e?api-version=2021-06-01" + ], + "Retry-After": [ + "10" + ], + "x-ms-ratelimit-remaining-subscription-deletes": [ + "14998" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/2fdcc35c-1cea-4759-8cbd-d3d02f37745d/resourceGroups/wezamlyn-test-117/providers/Microsoft.AVS/privateClouds/wezamlyn-test-117/workloadNetworks/default/vmGroups/sourceVmGroup/operationstatuses/d6b712aa-a929-479a-8ec9-a13f5ab6275e?api-version=2021-06-01" + ], + "x-ms-request-id": [ + "0d4413de-66a5-468d-97ae-65662ec41c40" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "nginx" + ], + "x-ms-correlation-request-id": [ + "31a4643b-b645-4a4f-b903-b4ccb25cdb62" + ], + "x-ms-routing-request-id": [ + "WESTUS:20210525T233713Z:31a4643b-b645-4a4f-b903-b4ccb25cdb62" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Tue, 25 May 2021 23:37:13 GMT" + ], + "Content-Length": [ + "421" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\n \"id\": \"/subscriptions/2fdcc35c-1cea-4759-8cbd-d3d02f37745d/resourceGroups/wezamlyn-test-117/providers/Microsoft.AVS/privateClouds/wezamlyn-test-117/workloadNetworks/default/vmGroups/sourceVmGroup\",\n \"name\": \"sourceVmGroup\",\n \"properties\": {\n \"displayName\": \"modifiedVmGroup\",\n \"members\": [\n \"TNT55-NSX-APP03\"\n ],\n \"provisioningState\": \"Deleting\",\n \"revision\": 1,\n \"status\": \"ERROR\"\n },\n \"type\": \"Microsoft.AVS/privateClouds/workloadNetworks/vmGroups\"\n}", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/2fdcc35c-1cea-4759-8cbd-d3d02f37745d/resourceGroups/wezamlyn-test-117/providers/Microsoft.AVS/privateClouds/wezamlyn-test-117/workloadNetworks/default/vmGroups/sourceVmGroup/operationstatuses/d6b712aa-a929-479a-8ec9-a13f5ab6275e?api-version=2021-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMmZkY2MzNWMtMWNlYS00NzU5LThjYmQtZDNkMDJmMzc3NDVkL3Jlc291cmNlR3JvdXBzL3dlemFtbHluLXRlc3QtMTE3L3Byb3ZpZGVycy9NaWNyb3NvZnQuQVZTL3ByaXZhdGVDbG91ZHMvd2V6YW1seW4tdGVzdC0xMTcvd29ya2xvYWROZXR3b3Jrcy9kZWZhdWx0L3ZtR3JvdXBzL3NvdXJjZVZtR3JvdXAvb3BlcmF0aW9uc3RhdHVzZXMvZDZiNzEyYWEtYTkyOS00NzlhLThlYzktYTEzZjVhYjYyNzVlP2FwaS12ZXJzaW9uPTIwMjEtMDYtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.30015.01", + "OSName/Linux", + "OSVersion/Linux.5.4.0.73.generic.82.18.04.1.Ubuntu.SMP.Fri.Apr.16.15.10.02.UTC.2021", + "Microsoft.Azure.Management.Avs.AvsClient/2.0.0.1" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "10" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11972" + ], + "x-ms-request-id": [ + "72b8b4ba-9603-4ee5-912f-45cb04fdd69e" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "nginx" + ], + "x-ms-correlation-request-id": [ + "d9904359-1f03-4982-a71d-51330575f44a" + ], + "x-ms-routing-request-id": [ + "WESTUS:20210525T233723Z:d9904359-1f03-4982-a71d-51330575f44a" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Tue, 25 May 2021 23:37:23 GMT" + ], + "Content-Length": [ + "435" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\n \"endTime\": \"2021-05-25T16:37:13.9450961-07:00\",\n \"id\": \"/subscriptions/2fdcc35c-1cea-4759-8cbd-d3d02f37745d/resourceGroups/wezamlyn-test-117/providers/Microsoft.AVS/privateClouds/wezamlyn-test-117/workloadNetworks/default/vmGroups/sourceVmGroup/operationstatuses/d6b712aa-a929-479a-8ec9-a13f5ab6275e\",\n \"name\": \"d6b712aa-a929-479a-8ec9-a13f5ab6275e\",\n \"percentComplete\": 100,\n \"startTime\": \"2021-05-25T16:37:13.4048584-07:00\",\n \"status\": \"Succeeded\"\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/2fdcc35c-1cea-4759-8cbd-d3d02f37745d/resourceGroups/wezamlyn-test-117/providers/Microsoft.AVS/privateClouds/wezamlyn-test-117/workloadNetworks/default/vmGroups/sourceVmGroup/operationresults/d6b712aa-a929-479a-8ec9-a13f5ab6275e?api-version=2021-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMmZkY2MzNWMtMWNlYS00NzU5LThjYmQtZDNkMDJmMzc3NDVkL3Jlc291cmNlR3JvdXBzL3dlemFtbHluLXRlc3QtMTE3L3Byb3ZpZGVycy9NaWNyb3NvZnQuQVZTL3ByaXZhdGVDbG91ZHMvd2V6YW1seW4tdGVzdC0xMTcvd29ya2xvYWROZXR3b3Jrcy9kZWZhdWx0L3ZtR3JvdXBzL3NvdXJjZVZtR3JvdXAvb3BlcmF0aW9ucmVzdWx0cy9kNmI3MTJhYS1hOTI5LTQ3OWEtOGVjOS1hMTNmNWFiNjI3NWU/YXBpLXZlcnNpb249MjAyMS0wNi0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.30015.01", + "OSName/Linux", + "OSVersion/Linux.5.4.0.73.generic.82.18.04.1.Ubuntu.SMP.Fri.Apr.16.15.10.02.UTC.2021", + "Microsoft.Azure.Management.Avs.AvsClient/2.0.0.1" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11971" + ], + "x-ms-request-id": [ + "6e9cbc58-06af-4170-9eb7-e9d7a804165f" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "nginx" + ], + "x-ms-correlation-request-id": [ + "5a4887ba-da8c-486a-b271-320dc514f73b" + ], + "x-ms-routing-request-id": [ + "WESTUS:20210525T233723Z:5a4887ba-da8c-486a-b271-320dc514f73b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Tue, 25 May 2021 23:37:23 GMT" + ], + "Content-Length": [ + "4" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "null", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/2fdcc35c-1cea-4759-8cbd-d3d02f37745d/resourceGroups/wezamlyn-test-117/providers/Microsoft.AVS/privateClouds/wezamlyn-test-117/workloadNetworks/default/vmGroups/destVmGroup?api-version=2021-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMmZkY2MzNWMtMWNlYS00NzU5LThjYmQtZDNkMDJmMzc3NDVkL3Jlc291cmNlR3JvdXBzL3dlemFtbHluLXRlc3QtMTE3L3Byb3ZpZGVycy9NaWNyb3NvZnQuQVZTL3ByaXZhdGVDbG91ZHMvd2V6YW1seW4tdGVzdC0xMTcvd29ya2xvYWROZXR3b3Jrcy9kZWZhdWx0L3ZtR3JvdXBzL2Rlc3RWbUdyb3VwP2FwaS12ZXJzaW9uPTIwMjEtMDYtMDE=", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "115173fa-fee6-4bdb-bb21-e2e4dbfebd01" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.30015.01", + "OSName/Linux", + "OSVersion/Linux.5.4.0.73.generic.82.18.04.1.Ubuntu.SMP.Fri.Apr.16.15.10.02.UTC.2021", + "Microsoft.Azure.Management.Avs.AvsClient/2.0.0.1" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/2fdcc35c-1cea-4759-8cbd-d3d02f37745d/resourceGroups/wezamlyn-test-117/providers/Microsoft.AVS/privateClouds/wezamlyn-test-117/workloadNetworks/default/vmGroups/destVmGroup/operationresults/f0767a50-36fc-40aa-b2dc-d8ac58643b63?api-version=2021-06-01" + ], + "Retry-After": [ + "10" + ], + "x-ms-ratelimit-remaining-subscription-deletes": [ + "14997" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/2fdcc35c-1cea-4759-8cbd-d3d02f37745d/resourceGroups/wezamlyn-test-117/providers/Microsoft.AVS/privateClouds/wezamlyn-test-117/workloadNetworks/default/vmGroups/destVmGroup/operationstatuses/f0767a50-36fc-40aa-b2dc-d8ac58643b63?api-version=2021-06-01" + ], + "x-ms-request-id": [ + "7fd51ddf-5cea-438f-a5f6-1f730698c98e" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "nginx" + ], + "x-ms-correlation-request-id": [ + "3570b80d-2907-45ca-a527-00caf266032d" + ], + "x-ms-routing-request-id": [ + "WESTUS:20210525T233725Z:3570b80d-2907-45ca-a527-00caf266032d" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Tue, 25 May 2021 23:37:24 GMT" + ], + "Content-Length": [ + "415" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\n \"id\": \"/subscriptions/2fdcc35c-1cea-4759-8cbd-d3d02f37745d/resourceGroups/wezamlyn-test-117/providers/Microsoft.AVS/privateClouds/wezamlyn-test-117/workloadNetworks/default/vmGroups/destVmGroup\",\n \"name\": \"destVmGroup\",\n \"properties\": {\n \"displayName\": \"destVmGroup\",\n \"members\": [\n \"TNT55-NSX-APP01\"\n ],\n \"provisioningState\": \"Deleting\",\n \"revision\": 0,\n \"status\": \"SUCCESS\"\n },\n \"type\": \"Microsoft.AVS/privateClouds/workloadNetworks/vmGroups\"\n}", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/2fdcc35c-1cea-4759-8cbd-d3d02f37745d/resourceGroups/wezamlyn-test-117/providers/Microsoft.AVS/privateClouds/wezamlyn-test-117/workloadNetworks/default/vmGroups/destVmGroup/operationstatuses/f0767a50-36fc-40aa-b2dc-d8ac58643b63?api-version=2021-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMmZkY2MzNWMtMWNlYS00NzU5LThjYmQtZDNkMDJmMzc3NDVkL3Jlc291cmNlR3JvdXBzL3dlemFtbHluLXRlc3QtMTE3L3Byb3ZpZGVycy9NaWNyb3NvZnQuQVZTL3ByaXZhdGVDbG91ZHMvd2V6YW1seW4tdGVzdC0xMTcvd29ya2xvYWROZXR3b3Jrcy9kZWZhdWx0L3ZtR3JvdXBzL2Rlc3RWbUdyb3VwL29wZXJhdGlvbnN0YXR1c2VzL2YwNzY3YTUwLTM2ZmMtNDBhYS1iMmRjLWQ4YWM1ODY0M2I2Mz9hcGktdmVyc2lvbj0yMDIxLTA2LTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.30015.01", + "OSName/Linux", + "OSVersion/Linux.5.4.0.73.generic.82.18.04.1.Ubuntu.SMP.Fri.Apr.16.15.10.02.UTC.2021", + "Microsoft.Azure.Management.Avs.AvsClient/2.0.0.1" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "10" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11970" + ], + "x-ms-request-id": [ + "8e2988ae-a555-4aa1-8e1f-deb33947873d" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "nginx" + ], + "x-ms-correlation-request-id": [ + "138fc686-18d1-44b8-84c9-26b68a904c43" + ], + "x-ms-routing-request-id": [ + "WESTUS:20210525T233735Z:138fc686-18d1-44b8-84c9-26b68a904c43" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Tue, 25 May 2021 23:37:34 GMT" + ], + "Content-Length": [ + "433" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\n \"endTime\": \"2021-05-25T16:37:25.9361092-07:00\",\n \"id\": \"/subscriptions/2fdcc35c-1cea-4759-8cbd-d3d02f37745d/resourceGroups/wezamlyn-test-117/providers/Microsoft.AVS/privateClouds/wezamlyn-test-117/workloadNetworks/default/vmGroups/destVmGroup/operationstatuses/f0767a50-36fc-40aa-b2dc-d8ac58643b63\",\n \"name\": \"f0767a50-36fc-40aa-b2dc-d8ac58643b63\",\n \"percentComplete\": 100,\n \"startTime\": \"2021-05-25T16:37:25.4239872-07:00\",\n \"status\": \"Succeeded\"\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/2fdcc35c-1cea-4759-8cbd-d3d02f37745d/resourceGroups/wezamlyn-test-117/providers/Microsoft.AVS/privateClouds/wezamlyn-test-117/workloadNetworks/default/vmGroups/destVmGroup/operationresults/f0767a50-36fc-40aa-b2dc-d8ac58643b63?api-version=2021-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMmZkY2MzNWMtMWNlYS00NzU5LThjYmQtZDNkMDJmMzc3NDVkL3Jlc291cmNlR3JvdXBzL3dlemFtbHluLXRlc3QtMTE3L3Byb3ZpZGVycy9NaWNyb3NvZnQuQVZTL3ByaXZhdGVDbG91ZHMvd2V6YW1seW4tdGVzdC0xMTcvd29ya2xvYWROZXR3b3Jrcy9kZWZhdWx0L3ZtR3JvdXBzL2Rlc3RWbUdyb3VwL29wZXJhdGlvbnJlc3VsdHMvZjA3NjdhNTAtMzZmYy00MGFhLWIyZGMtZDhhYzU4NjQzYjYzP2FwaS12ZXJzaW9uPTIwMjEtMDYtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.30015.01", + "OSName/Linux", + "OSVersion/Linux.5.4.0.73.generic.82.18.04.1.Ubuntu.SMP.Fri.Apr.16.15.10.02.UTC.2021", + "Microsoft.Azure.Management.Avs.AvsClient/2.0.0.1" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11969" + ], + "x-ms-request-id": [ + "c7b381a8-dcde-45cf-9795-142f5ce70d55" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "nginx" + ], + "x-ms-correlation-request-id": [ + "e87d36b2-cd91-4861-a28f-3769c9d8efcf" + ], + "x-ms-routing-request-id": [ + "WESTUS:20210525T233735Z:e87d36b2-cd91-4861-a28f-3769c9d8efcf" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Tue, 25 May 2021 23:37:35 GMT" + ], + "Content-Length": [ + "4" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "null", + "StatusCode": 200 + } + ], + "Names": {}, + "Variables": { + "SubscriptionId": "2fdcc35c-1cea-4759-8cbd-d3d02f37745d" + } +} \ No newline at end of file diff --git a/sdk/avs/Microsoft.Azure.Management.Avs/tests/WorkloadNetworksTests.cs b/sdk/avs/Microsoft.Azure.Management.Avs/tests/WorkloadNetworksTests.cs new file mode 100644 index 000000000000..caeff1f3a954 --- /dev/null +++ b/sdk/avs/Microsoft.Azure.Management.Avs/tests/WorkloadNetworksTests.cs @@ -0,0 +1,218 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. + +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 System.Collections.Generic; +using System.Linq; + +namespace Avs.Tests +{ + public class WorkloadNetworksTests : TestBase + { + [Fact] + public void WorkloadNetworksDhcp() + { + using var context = MockContext.Start(this.GetType()); + string rgName = "wezamlyn-test-117"; + string cloudName = "wezamlyn-test-117"; + + using var avsClient = context.GetServiceClient(); + + // DHCP + var dhcpId = "dhcpRelay"; + + List serverAddressess = new List() {"10.1.1.1", "10.1.1.2"}; + var dhcpProperties = new WorkloadNetworkDhcpRelay(displayName: dhcpId, serverAddresses: serverAddressess); + var dhcp = new WorkloadNetworkDhcp(properties: dhcpProperties); + + avsClient.WorkloadNetworks.CreateDhcp(rgName, cloudName, dhcpId, dhcp); + + avsClient.WorkloadNetworks.ListDhcp(rgName, cloudName); + + avsClient.WorkloadNetworks.GetDhcp(rgName, dhcpId, cloudName); + + dhcp.Properties.DisplayName = "modifiedDhcpRelay"; + avsClient.WorkloadNetworks.UpdateDhcp(rgName, cloudName, dhcpId, dhcp); + + avsClient.WorkloadNetworks.DeleteDhcp(rgName, cloudName, dhcpId); + } + + [Fact] + public void WorkloadNetworksDns() + { + using var context = MockContext.Start(this.GetType()); + string rgName = "wezamlyn-test-117"; + string cloudName = "wezamlyn-test-117"; + + using var avsClient = context.GetServiceClient(); + + // DNS Zones + + var defaultDnsZoneId = "defaultDnsZone"; + var defaultDomain = new List() {}; + var defaultDnsServerIps = new List() { "1.1.1.1" }; + var defaultDnsZone = new WorkloadNetworkDnsZone(displayName: defaultDnsZoneId, domain: defaultDomain, dnsServerIps: defaultDnsServerIps); + + var resDefaultDnsZone = avsClient.WorkloadNetworks.CreateDnsZone(rgName, cloudName, defaultDnsZoneId, defaultDnsZone); + + // Get ARM ID for DNS Service + var defaultDnsZoneIdSplit = resDefaultDnsZone.Id.Split("/"); + var defaultDnsZoneArmId = defaultDnsZoneIdSplit[defaultDnsZoneIdSplit.Length-1]; + + var fqdnDnsZoneId = "fqdnDnsZone"; + var fqdnDomain = new List() { "fqdndnszone.com" }; + var fqdnDnsServerIps = new List() { "1.1.1.1" }; + var fqdnDnsZone = new WorkloadNetworkDnsZone(displayName: fqdnDnsZoneId, domain: fqdnDomain, dnsServerIps: fqdnDnsServerIps); + + var resFqdnDnsZone = avsClient.WorkloadNetworks.CreateDnsZone(rgName, cloudName, fqdnDnsZoneId, fqdnDnsZone); + + // Get ARM ID for DNS Service + var fqdnDnsZoneIdSplit = resFqdnDnsZone.Id.Split("/"); + var fqdnDnsZoneArmId = fqdnDnsZoneIdSplit[fqdnDnsZoneIdSplit.Length-1]; + + avsClient.WorkloadNetworks.ListDnsZones(rgName, cloudName); + + avsClient.WorkloadNetworks.GetDnsZone(rgName, cloudName, defaultDnsZoneId); + + defaultDnsZone.DisplayName = "modifiedDnsZone"; + avsClient.WorkloadNetworks.UpdateDnsZone(rgName, cloudName, defaultDnsZoneId, defaultDnsZone); + + // DNS Services + + var dnsServiceId = "dns-forwarder"; + var dnsServiceIp = "5.5.5.5"; + var logLevel = "INFO"; + var dnsService = new WorkloadNetworkDnsService(displayName: dnsServiceId, dnsServiceIp: dnsServiceIp, logLevel: logLevel); + + dnsService.DefaultDnsZone = defaultDnsZoneArmId; + dnsService.FqdnZones = new List() { fqdnDnsZoneArmId }; + + avsClient.WorkloadNetworks.CreateDnsService(rgName, cloudName, dnsServiceId, dnsService); + + avsClient.WorkloadNetworks.ListDnsServices(rgName, cloudName); + + avsClient.WorkloadNetworks.GetDnsService(rgName, cloudName, dnsServiceId); + + dnsService.DisplayName = "modifiedDnsService"; + avsClient.WorkloadNetworks.UpdateDnsService(rgName, cloudName, dnsServiceId, dnsService); + + avsClient.WorkloadNetworks.DeleteDnsService(rgName, dnsServiceId, cloudName); + + // Delete DNS Zones + + avsClient.WorkloadNetworks.DeleteDnsZone(rgName, defaultDnsZoneId, cloudName); + + avsClient.WorkloadNetworks.DeleteDnsZone(rgName, fqdnDnsZoneId, cloudName); + } + + [Fact] + public void WorkloadNetworksGatewaysSegments() + { + using var context = MockContext.Start(this.GetType()); + string rgName = "wezamlyn-test-117"; + string cloudName = "wezamlyn-test-117"; + + using var avsClient = context.GetServiceClient(); + + // Gateways + + var gatewayResults = avsClient.WorkloadNetworks.ListGateways(rgName, cloudName); + + // Segments + + var gatewayName = gatewayResults.First().DisplayName; + var segmentId = "segment"; + var segmentSubnet = new WorkloadNetworkSegmentSubnet(gatewayAddress: "10.2.3.1/24"); + var segment = new WorkloadNetworkSegment(displayName: segmentId, connectedGateway: gatewayName, subnet: segmentSubnet); + + avsClient.WorkloadNetworks.CreateSegments(rgName, cloudName, segmentId, segment); + + avsClient.WorkloadNetworks.ListSegments(rgName, cloudName); + + avsClient.WorkloadNetworks.GetSegment(rgName, cloudName, segmentId); + + segment.DisplayName = "modifiedSegment"; + avsClient.WorkloadNetworks.UpdateSegments(rgName, cloudName, segmentId, segment); + + avsClient.WorkloadNetworks.DeleteSegment(rgName, cloudName, segmentId); + } + + [Fact] + public void WorkloadNetworksVirtualMachinesVmGroupsPortMirroring() + { + using var context = MockContext.Start(this.GetType()); + string rgName = "wezamlyn-test-117"; + string cloudName = "wezamlyn-test-117"; + + using var avsClient = context.GetServiceClient(); + + // Virtual Machines + + var virtualMachinesList = avsClient.WorkloadNetworks.ListVirtualMachines(rgName, cloudName); + + // VM Groups + + var sourceVmGroupId = "sourceVmGroup"; + var sourceVmGroup = new WorkloadNetworkVMGroup(displayName: sourceVmGroupId); + + var destVmGroupId = "destVmGroup"; + var destVmGroup = new WorkloadNetworkVMGroup(displayName: destVmGroupId); + + if (virtualMachinesList.Count() >= 2) + { + string[] sourceMembers = {virtualMachinesList.ElementAt(0).DisplayName}; + sourceVmGroup.Members = sourceMembers; + + string[] destMembers = {virtualMachinesList.ElementAt(1).DisplayName}; + destVmGroup.Members = destMembers; + } + + var resSourceVmGroup = avsClient.WorkloadNetworks.CreateVMGroup(rgName, cloudName, sourceVmGroupId, sourceVmGroup); + + // Get ARM ID for Port Mirroring + var sourceIdSplit = resSourceVmGroup.Id.Split("/"); + var sourceArmId = sourceIdSplit[sourceIdSplit.Length-1]; + + var resDestVmGroup = avsClient.WorkloadNetworks.CreateVMGroup(rgName, cloudName, destVmGroupId, destVmGroup); + + // Get ARM ID for Port Mirroring + var destIdSplit = resDestVmGroup.Id.Split("/"); + var destArmId = destIdSplit[destIdSplit.Length-1]; + + avsClient.WorkloadNetworks.ListVMGroups(rgName, cloudName); + + avsClient.WorkloadNetworks.GetVMGroup(rgName, cloudName, sourceVmGroupId); + + sourceVmGroup.DisplayName = "modifiedVmGroup"; + avsClient.WorkloadNetworks.UpdateVMGroup(rgName, cloudName, sourceVmGroupId, sourceVmGroup); + + // Port Mirroring + + var portMirroringId = "portMirroring"; + var portMirroring = new WorkloadNetworkPortMirroring(displayName: portMirroringId, direction: "BIDIRECTIONAL"); + portMirroring.Source = sourceArmId; + portMirroring.Destination = destArmId; + + avsClient.WorkloadNetworks.CreatePortMirroring(rgName, cloudName, portMirroringId, portMirroring); + + avsClient.WorkloadNetworks.ListPortMirroring(rgName, cloudName); + + avsClient.WorkloadNetworks.GetPortMirroring(rgName, cloudName, portMirroringId); + + portMirroring.DisplayName = "modifiedPortMirroring"; + avsClient.WorkloadNetworks.UpdatePortMirroring(rgName, cloudName,portMirroringId, portMirroring); + + avsClient.WorkloadNetworks.DeletePortMirroring(rgName, portMirroringId, cloudName); + + // Delete VM Groups + + avsClient.WorkloadNetworks.DeleteVMGroup(rgName, sourceVmGroupId, cloudName); + + avsClient.WorkloadNetworks.DeleteVMGroup(rgName, destVmGroupId, cloudName); + } + } +} \ No newline at end of file