diff --git a/src/SDKs/StorageSync/AzSdk.RP.props b/src/SDKs/StorageSync/AzSdk.RP.props new file mode 100644 index 000000000000..c55d0f9c08e0 --- /dev/null +++ b/src/SDKs/StorageSync/AzSdk.RP.props @@ -0,0 +1,7 @@ + + + + StorageSync_2018-04-02; + $(PackageTags);$(CommonTags);$(AzureApiTag); + + \ No newline at end of file diff --git a/src/SDKs/StorageSync/Management.StorageSync/Generated/CloudEndpointsOperations.cs b/src/SDKs/StorageSync/Management.StorageSync/Generated/CloudEndpointsOperations.cs new file mode 100644 index 000000000000..9d9e05a9b05f --- /dev/null +++ b/src/SDKs/StorageSync/Management.StorageSync/Generated/CloudEndpointsOperations.cs @@ -0,0 +1,2454 @@ +// +// 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.StorageSync +{ + 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; + + /// + /// CloudEndpointsOperations operations. + /// + internal partial class CloudEndpointsOperations : IServiceOperations, ICloudEndpointsOperations + { + /// + /// Initializes a new instance of the CloudEndpointsOperations class. + /// + /// + /// Reference to the service client. + /// + /// + /// Thrown when a required parameter is null + /// + internal CloudEndpointsOperations(StorageSyncManagementClient client) + { + if (client == null) + { + throw new System.ArgumentNullException("client"); + } + Client = client; + } + + /// + /// Gets a reference to the StorageSyncManagementClient + /// + public StorageSyncManagementClient Client { get; private set; } + + /// + /// Create a new CloudEndpoint. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of Storage Sync Service resource. + /// + /// + /// Name of Sync Group resource. + /// + /// + /// Name of Cloud Endpoint object. + /// + /// + /// Body of Cloud Endpoint resource. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task> CreateWithHttpMessagesAsync(string resourceGroupName, string storageSyncServiceName, string syncGroupName, string cloudEndpointName, CloudEndpointCreateParameters parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send Request + AzureOperationResponse _response = await BeginCreateWithHttpMessagesAsync(resourceGroupName, storageSyncServiceName, syncGroupName, cloudEndpointName, parameters, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPutOrPatchOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + + /// + /// Get a given CloudEndpoint. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of Storage Sync Service resource. + /// + /// + /// Name of Sync Group resource. + /// + /// + /// Name of Cloud Endpoint object. + /// + /// + /// 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 storageSyncServiceName, string syncGroupName, string cloudEndpointName, 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 (storageSyncServiceName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "storageSyncServiceName"); + } + if (syncGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "syncGroupName"); + } + if (cloudEndpointName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "cloudEndpointName"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("storageSyncServiceName", storageSyncServiceName); + tracingParameters.Add("syncGroupName", syncGroupName); + tracingParameters.Add("cloudEndpointName", cloudEndpointName); + 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.StorageSync/storageSyncServices/{storageSyncServiceName}/syncGroups/{syncGroupName}/cloudEndpoints/{cloudEndpointName}").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{storageSyncServiceName}", System.Uri.EscapeDataString(storageSyncServiceName)); + _url = _url.Replace("{syncGroupName}", System.Uri.EscapeDataString(syncGroupName)); + _url = _url.Replace("{cloudEndpointName}", System.Uri.EscapeDataString(cloudEndpointName)); + 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 StorageSyncErrorException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + StorageSyncError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + try + { + _result.Headers = _httpResponse.GetHeadersAsJson().ToObject(JsonSerializer.Create(Client.DeserializationSettings)); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the headers.", _httpResponse.GetHeadersAsJson().ToString(), ex); + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Delete a given CloudEndpoint. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of Storage Sync Service resource. + /// + /// + /// Name of Sync Group resource. + /// + /// + /// Name of Cloud Endpoint object. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task> DeleteWithHttpMessagesAsync(string resourceGroupName, string storageSyncServiceName, string syncGroupName, string cloudEndpointName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send request + AzureOperationHeaderResponse _response = await BeginDeleteWithHttpMessagesAsync(resourceGroupName, storageSyncServiceName, syncGroupName, cloudEndpointName, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + + /// + /// Get a CloudEndpoint List. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of Storage Sync Service resource. + /// + /// + /// Name of Sync Group 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,CloudEndpointsListBySyncGroupHeaders>> ListBySyncGroupWithHttpMessagesAsync(string resourceGroupName, string storageSyncServiceName, string syncGroupName, 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 (storageSyncServiceName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "storageSyncServiceName"); + } + if (syncGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "syncGroupName"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("storageSyncServiceName", storageSyncServiceName); + tracingParameters.Add("syncGroupName", syncGroupName); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "ListBySyncGroup", 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.StorageSync/storageSyncServices/{storageSyncServiceName}/syncGroups/{syncGroupName}/cloudEndpoints").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{storageSyncServiceName}", System.Uri.EscapeDataString(storageSyncServiceName)); + _url = _url.Replace("{syncGroupName}", System.Uri.EscapeDataString(syncGroupName)); + 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 StorageSyncErrorException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + StorageSyncError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse,CloudEndpointsListBySyncGroupHeaders>(); + _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); + } + } + try + { + _result.Headers = _httpResponse.GetHeadersAsJson().ToObject(JsonSerializer.Create(Client.DeserializationSettings)); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the headers.", _httpResponse.GetHeadersAsJson().ToString(), ex); + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Pre Backup a given CloudEndpoint. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of Storage Sync Service resource. + /// + /// + /// Name of Sync Group resource. + /// + /// + /// Name of Cloud Endpoint object. + /// + /// + /// Azure File Share. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task> PreBackupWithHttpMessagesAsync(string resourceGroupName, string storageSyncServiceName, string syncGroupName, string cloudEndpointName, string azureFileShare = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send request + AzureOperationHeaderResponse _response = await BeginPreBackupWithHttpMessagesAsync(resourceGroupName, storageSyncServiceName, syncGroupName, cloudEndpointName, azureFileShare, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + + /// + /// Post Backup a given CloudEndpoint. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of Storage Sync Service resource. + /// + /// + /// Name of Sync Group resource. + /// + /// + /// Name of Cloud Endpoint object. + /// + /// + /// Azure File Share. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task> PostBackupWithHttpMessagesAsync(string resourceGroupName, string storageSyncServiceName, string syncGroupName, string cloudEndpointName, string azureFileShare = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send request + AzureOperationResponse _response = await BeginPostBackupWithHttpMessagesAsync(resourceGroupName, storageSyncServiceName, syncGroupName, cloudEndpointName, azureFileShare, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + + /// + /// Pre Restore a given CloudEndpoint. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of Storage Sync Service resource. + /// + /// + /// Name of Sync Group resource. + /// + /// + /// Name of Cloud Endpoint object. + /// + /// + /// Body of Cloud Endpoint object. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task> PreRestoreWithHttpMessagesAsync(string resourceGroupName, string storageSyncServiceName, string syncGroupName, string cloudEndpointName, PreRestoreRequest parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send request + AzureOperationHeaderResponse _response = await BeginPreRestoreWithHttpMessagesAsync(resourceGroupName, storageSyncServiceName, syncGroupName, cloudEndpointName, parameters, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + + /// + /// Restore Heartbeat a given CloudEndpoint. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of Storage Sync Service resource. + /// + /// + /// Name of Sync Group resource. + /// + /// + /// Name of Cloud Endpoint object. + /// + /// + /// 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> RestoreheartbeatWithHttpMessagesAsync(string resourceGroupName, string storageSyncServiceName, string syncGroupName, string cloudEndpointName, 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 (storageSyncServiceName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "storageSyncServiceName"); + } + if (syncGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "syncGroupName"); + } + if (cloudEndpointName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "cloudEndpointName"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("storageSyncServiceName", storageSyncServiceName); + tracingParameters.Add("syncGroupName", syncGroupName); + tracingParameters.Add("cloudEndpointName", cloudEndpointName); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "Restoreheartbeat", 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.StorageSync/storageSyncServices/{storageSyncServiceName}/syncGroups/{syncGroupName}/cloudEndpoints/{cloudEndpointName}/restoreheartbeat").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{storageSyncServiceName}", System.Uri.EscapeDataString(storageSyncServiceName)); + _url = _url.Replace("{syncGroupName}", System.Uri.EscapeDataString(syncGroupName)); + _url = _url.Replace("{cloudEndpointName}", System.Uri.EscapeDataString(cloudEndpointName)); + List _queryParameters = new List(); + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("POST"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new StorageSyncErrorException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + StorageSyncError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationHeaderResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + try + { + _result.Headers = _httpResponse.GetHeadersAsJson().ToObject(JsonSerializer.Create(Client.DeserializationSettings)); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the headers.", _httpResponse.GetHeadersAsJson().ToString(), ex); + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Post Restore a given CloudEndpoint. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of Storage Sync Service resource. + /// + /// + /// Name of Sync Group resource. + /// + /// + /// Name of Cloud Endpoint object. + /// + /// + /// Body of Cloud Endpoint object. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task> PostRestoreWithHttpMessagesAsync(string resourceGroupName, string storageSyncServiceName, string syncGroupName, string cloudEndpointName, PostRestoreRequest parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send request + AzureOperationHeaderResponse _response = await BeginPostRestoreWithHttpMessagesAsync(resourceGroupName, storageSyncServiceName, syncGroupName, cloudEndpointName, parameters, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + + /// + /// Create a new CloudEndpoint. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of Storage Sync Service resource. + /// + /// + /// Name of Sync Group resource. + /// + /// + /// Name of Cloud Endpoint object. + /// + /// + /// Body of Cloud Endpoint 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> BeginCreateWithHttpMessagesAsync(string resourceGroupName, string storageSyncServiceName, string syncGroupName, string cloudEndpointName, CloudEndpointCreateParameters parameters, 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 (storageSyncServiceName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "storageSyncServiceName"); + } + if (syncGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "syncGroupName"); + } + if (cloudEndpointName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "cloudEndpointName"); + } + if (parameters == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "parameters"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("storageSyncServiceName", storageSyncServiceName); + tracingParameters.Add("syncGroupName", syncGroupName); + tracingParameters.Add("cloudEndpointName", cloudEndpointName); + tracingParameters.Add("parameters", parameters); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "BeginCreate", 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.StorageSync/storageSyncServices/{storageSyncServiceName}/syncGroups/{syncGroupName}/cloudEndpoints/{cloudEndpointName}").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{storageSyncServiceName}", System.Uri.EscapeDataString(storageSyncServiceName)); + _url = _url.Replace("{syncGroupName}", System.Uri.EscapeDataString(syncGroupName)); + _url = _url.Replace("{cloudEndpointName}", System.Uri.EscapeDataString(cloudEndpointName)); + 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(parameters != null) + { + _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(parameters, 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 StorageSyncErrorException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + StorageSyncError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + try + { + _result.Headers = _httpResponse.GetHeadersAsJson().ToObject(JsonSerializer.Create(Client.DeserializationSettings)); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the headers.", _httpResponse.GetHeadersAsJson().ToString(), ex); + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Delete a given CloudEndpoint. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of Storage Sync Service resource. + /// + /// + /// Name of Sync Group resource. + /// + /// + /// Name of Cloud Endpoint object. + /// + /// + /// 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 storageSyncServiceName, string syncGroupName, string cloudEndpointName, 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 (storageSyncServiceName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "storageSyncServiceName"); + } + if (syncGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "syncGroupName"); + } + if (cloudEndpointName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "cloudEndpointName"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("storageSyncServiceName", storageSyncServiceName); + tracingParameters.Add("syncGroupName", syncGroupName); + tracingParameters.Add("cloudEndpointName", cloudEndpointName); + 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.StorageSync/storageSyncServices/{storageSyncServiceName}/syncGroups/{syncGroupName}/cloudEndpoints/{cloudEndpointName}").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{storageSyncServiceName}", System.Uri.EscapeDataString(storageSyncServiceName)); + _url = _url.Replace("{syncGroupName}", System.Uri.EscapeDataString(syncGroupName)); + _url = _url.Replace("{cloudEndpointName}", System.Uri.EscapeDataString(cloudEndpointName)); + 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 StorageSyncErrorException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + StorageSyncError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationHeaderResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + try + { + _result.Headers = _httpResponse.GetHeadersAsJson().ToObject(JsonSerializer.Create(Client.DeserializationSettings)); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the headers.", _httpResponse.GetHeadersAsJson().ToString(), ex); + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Pre Backup a given CloudEndpoint. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of Storage Sync Service resource. + /// + /// + /// Name of Sync Group resource. + /// + /// + /// Name of Cloud Endpoint object. + /// + /// + /// Azure File Share. + /// + /// + /// 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> BeginPreBackupWithHttpMessagesAsync(string resourceGroupName, string storageSyncServiceName, string syncGroupName, string cloudEndpointName, string azureFileShare = default(string), 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 (storageSyncServiceName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "storageSyncServiceName"); + } + if (syncGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "syncGroupName"); + } + if (cloudEndpointName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "cloudEndpointName"); + } + BackupRequest parameters = new BackupRequest(); + if (azureFileShare != null) + { + parameters.AzureFileShare = azureFileShare; + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("storageSyncServiceName", storageSyncServiceName); + tracingParameters.Add("syncGroupName", syncGroupName); + tracingParameters.Add("cloudEndpointName", cloudEndpointName); + tracingParameters.Add("parameters", parameters); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "BeginPreBackup", 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.StorageSync/storageSyncServices/{storageSyncServiceName}/syncGroups/{syncGroupName}/cloudEndpoints/{cloudEndpointName}/prebackup").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{storageSyncServiceName}", System.Uri.EscapeDataString(storageSyncServiceName)); + _url = _url.Replace("{syncGroupName}", System.Uri.EscapeDataString(syncGroupName)); + _url = _url.Replace("{cloudEndpointName}", System.Uri.EscapeDataString(cloudEndpointName)); + 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(parameters != null) + { + _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(parameters, 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 StorageSyncErrorException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + StorageSyncError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationHeaderResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + try + { + _result.Headers = _httpResponse.GetHeadersAsJson().ToObject(JsonSerializer.Create(Client.DeserializationSettings)); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the headers.", _httpResponse.GetHeadersAsJson().ToString(), ex); + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Post Backup a given CloudEndpoint. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of Storage Sync Service resource. + /// + /// + /// Name of Sync Group resource. + /// + /// + /// Name of Cloud Endpoint object. + /// + /// + /// Azure File Share. + /// + /// + /// 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> BeginPostBackupWithHttpMessagesAsync(string resourceGroupName, string storageSyncServiceName, string syncGroupName, string cloudEndpointName, string azureFileShare = default(string), 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 (storageSyncServiceName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "storageSyncServiceName"); + } + if (syncGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "syncGroupName"); + } + if (cloudEndpointName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "cloudEndpointName"); + } + BackupRequest parameters = new BackupRequest(); + if (azureFileShare != null) + { + parameters.AzureFileShare = azureFileShare; + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("storageSyncServiceName", storageSyncServiceName); + tracingParameters.Add("syncGroupName", syncGroupName); + tracingParameters.Add("cloudEndpointName", cloudEndpointName); + tracingParameters.Add("parameters", parameters); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "BeginPostBackup", 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.StorageSync/storageSyncServices/{storageSyncServiceName}/syncGroups/{syncGroupName}/cloudEndpoints/{cloudEndpointName}/postbackup").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{storageSyncServiceName}", System.Uri.EscapeDataString(storageSyncServiceName)); + _url = _url.Replace("{syncGroupName}", System.Uri.EscapeDataString(syncGroupName)); + _url = _url.Replace("{cloudEndpointName}", System.Uri.EscapeDataString(cloudEndpointName)); + 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(parameters != null) + { + _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(parameters, 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 StorageSyncErrorException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + StorageSyncError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + try + { + _result.Headers = _httpResponse.GetHeadersAsJson().ToObject(JsonSerializer.Create(Client.DeserializationSettings)); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the headers.", _httpResponse.GetHeadersAsJson().ToString(), ex); + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Pre Restore a given CloudEndpoint. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of Storage Sync Service resource. + /// + /// + /// Name of Sync Group resource. + /// + /// + /// Name of Cloud Endpoint object. + /// + /// + /// Body of Cloud Endpoint object. + /// + /// + /// 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> BeginPreRestoreWithHttpMessagesAsync(string resourceGroupName, string storageSyncServiceName, string syncGroupName, string cloudEndpointName, PreRestoreRequest parameters, 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 (storageSyncServiceName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "storageSyncServiceName"); + } + if (syncGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "syncGroupName"); + } + if (cloudEndpointName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "cloudEndpointName"); + } + if (parameters == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "parameters"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("storageSyncServiceName", storageSyncServiceName); + tracingParameters.Add("syncGroupName", syncGroupName); + tracingParameters.Add("cloudEndpointName", cloudEndpointName); + tracingParameters.Add("parameters", parameters); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "BeginPreRestore", 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.StorageSync/storageSyncServices/{storageSyncServiceName}/syncGroups/{syncGroupName}/cloudEndpoints/{cloudEndpointName}/prerestore").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{storageSyncServiceName}", System.Uri.EscapeDataString(storageSyncServiceName)); + _url = _url.Replace("{syncGroupName}", System.Uri.EscapeDataString(syncGroupName)); + _url = _url.Replace("{cloudEndpointName}", System.Uri.EscapeDataString(cloudEndpointName)); + 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(parameters != null) + { + _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(parameters, 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 StorageSyncErrorException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + StorageSyncError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationHeaderResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + try + { + _result.Headers = _httpResponse.GetHeadersAsJson().ToObject(JsonSerializer.Create(Client.DeserializationSettings)); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the headers.", _httpResponse.GetHeadersAsJson().ToString(), ex); + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Post Restore a given CloudEndpoint. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of Storage Sync Service resource. + /// + /// + /// Name of Sync Group resource. + /// + /// + /// Name of Cloud Endpoint object. + /// + /// + /// Body of Cloud Endpoint object. + /// + /// + /// 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> BeginPostRestoreWithHttpMessagesAsync(string resourceGroupName, string storageSyncServiceName, string syncGroupName, string cloudEndpointName, PostRestoreRequest parameters, 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 (storageSyncServiceName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "storageSyncServiceName"); + } + if (syncGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "syncGroupName"); + } + if (cloudEndpointName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "cloudEndpointName"); + } + if (parameters == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "parameters"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("storageSyncServiceName", storageSyncServiceName); + tracingParameters.Add("syncGroupName", syncGroupName); + tracingParameters.Add("cloudEndpointName", cloudEndpointName); + tracingParameters.Add("parameters", parameters); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "BeginPostRestore", 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.StorageSync/storageSyncServices/{storageSyncServiceName}/syncGroups/{syncGroupName}/cloudEndpoints/{cloudEndpointName}/postrestore").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{storageSyncServiceName}", System.Uri.EscapeDataString(storageSyncServiceName)); + _url = _url.Replace("{syncGroupName}", System.Uri.EscapeDataString(syncGroupName)); + _url = _url.Replace("{cloudEndpointName}", System.Uri.EscapeDataString(cloudEndpointName)); + 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(parameters != null) + { + _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(parameters, 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 StorageSyncErrorException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + StorageSyncError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationHeaderResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + try + { + _result.Headers = _httpResponse.GetHeadersAsJson().ToObject(JsonSerializer.Create(Client.DeserializationSettings)); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the headers.", _httpResponse.GetHeadersAsJson().ToString(), ex); + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + } +} diff --git a/src/SDKs/StorageSync/Management.StorageSync/Generated/CloudEndpointsOperationsExtensions.cs b/src/SDKs/StorageSync/Management.StorageSync/Generated/CloudEndpointsOperationsExtensions.cs new file mode 100644 index 000000000000..639635f4033d --- /dev/null +++ b/src/SDKs/StorageSync/Management.StorageSync/Generated/CloudEndpointsOperationsExtensions.cs @@ -0,0 +1,861 @@ +// +// 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.StorageSync +{ + 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 CloudEndpointsOperations. + /// + public static partial class CloudEndpointsOperationsExtensions + { + /// + /// Create a new CloudEndpoint. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of Storage Sync Service resource. + /// + /// + /// Name of Sync Group resource. + /// + /// + /// Name of Cloud Endpoint object. + /// + /// + /// Body of Cloud Endpoint resource. + /// + public static CloudEndpoint Create(this ICloudEndpointsOperations operations, string resourceGroupName, string storageSyncServiceName, string syncGroupName, string cloudEndpointName, CloudEndpointCreateParameters parameters) + { + return operations.CreateAsync(resourceGroupName, storageSyncServiceName, syncGroupName, cloudEndpointName, parameters).GetAwaiter().GetResult(); + } + + /// + /// Create a new CloudEndpoint. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of Storage Sync Service resource. + /// + /// + /// Name of Sync Group resource. + /// + /// + /// Name of Cloud Endpoint object. + /// + /// + /// Body of Cloud Endpoint resource. + /// + /// + /// The cancellation token. + /// + public static async Task CreateAsync(this ICloudEndpointsOperations operations, string resourceGroupName, string storageSyncServiceName, string syncGroupName, string cloudEndpointName, CloudEndpointCreateParameters parameters, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.CreateWithHttpMessagesAsync(resourceGroupName, storageSyncServiceName, syncGroupName, cloudEndpointName, parameters, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Get a given CloudEndpoint. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of Storage Sync Service resource. + /// + /// + /// Name of Sync Group resource. + /// + /// + /// Name of Cloud Endpoint object. + /// + public static CloudEndpoint Get(this ICloudEndpointsOperations operations, string resourceGroupName, string storageSyncServiceName, string syncGroupName, string cloudEndpointName) + { + return operations.GetAsync(resourceGroupName, storageSyncServiceName, syncGroupName, cloudEndpointName).GetAwaiter().GetResult(); + } + + /// + /// Get a given CloudEndpoint. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of Storage Sync Service resource. + /// + /// + /// Name of Sync Group resource. + /// + /// + /// Name of Cloud Endpoint object. + /// + /// + /// The cancellation token. + /// + public static async Task GetAsync(this ICloudEndpointsOperations operations, string resourceGroupName, string storageSyncServiceName, string syncGroupName, string cloudEndpointName, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.GetWithHttpMessagesAsync(resourceGroupName, storageSyncServiceName, syncGroupName, cloudEndpointName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Delete a given CloudEndpoint. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of Storage Sync Service resource. + /// + /// + /// Name of Sync Group resource. + /// + /// + /// Name of Cloud Endpoint object. + /// + public static CloudEndpointsDeleteHeaders Delete(this ICloudEndpointsOperations operations, string resourceGroupName, string storageSyncServiceName, string syncGroupName, string cloudEndpointName) + { + return operations.DeleteAsync(resourceGroupName, storageSyncServiceName, syncGroupName, cloudEndpointName).GetAwaiter().GetResult(); + } + + /// + /// Delete a given CloudEndpoint. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of Storage Sync Service resource. + /// + /// + /// Name of Sync Group resource. + /// + /// + /// Name of Cloud Endpoint object. + /// + /// + /// The cancellation token. + /// + public static async Task DeleteAsync(this ICloudEndpointsOperations operations, string resourceGroupName, string storageSyncServiceName, string syncGroupName, string cloudEndpointName, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.DeleteWithHttpMessagesAsync(resourceGroupName, storageSyncServiceName, syncGroupName, cloudEndpointName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Headers; + } + } + + /// + /// Get a CloudEndpoint List. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of Storage Sync Service resource. + /// + /// + /// Name of Sync Group resource. + /// + public static IEnumerable ListBySyncGroup(this ICloudEndpointsOperations operations, string resourceGroupName, string storageSyncServiceName, string syncGroupName) + { + return operations.ListBySyncGroupAsync(resourceGroupName, storageSyncServiceName, syncGroupName).GetAwaiter().GetResult(); + } + + /// + /// Get a CloudEndpoint List. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of Storage Sync Service resource. + /// + /// + /// Name of Sync Group resource. + /// + /// + /// The cancellation token. + /// + public static async Task> ListBySyncGroupAsync(this ICloudEndpointsOperations operations, string resourceGroupName, string storageSyncServiceName, string syncGroupName, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListBySyncGroupWithHttpMessagesAsync(resourceGroupName, storageSyncServiceName, syncGroupName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Pre Backup a given CloudEndpoint. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of Storage Sync Service resource. + /// + /// + /// Name of Sync Group resource. + /// + /// + /// Name of Cloud Endpoint object. + /// + /// + /// Azure File Share. + /// + public static CloudEndpointsPreBackupHeaders PreBackup(this ICloudEndpointsOperations operations, string resourceGroupName, string storageSyncServiceName, string syncGroupName, string cloudEndpointName, string azureFileShare = default(string)) + { + return operations.PreBackupAsync(resourceGroupName, storageSyncServiceName, syncGroupName, cloudEndpointName, azureFileShare).GetAwaiter().GetResult(); + } + + /// + /// Pre Backup a given CloudEndpoint. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of Storage Sync Service resource. + /// + /// + /// Name of Sync Group resource. + /// + /// + /// Name of Cloud Endpoint object. + /// + /// + /// Azure File Share. + /// + /// + /// The cancellation token. + /// + public static async Task PreBackupAsync(this ICloudEndpointsOperations operations, string resourceGroupName, string storageSyncServiceName, string syncGroupName, string cloudEndpointName, string azureFileShare = default(string), CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.PreBackupWithHttpMessagesAsync(resourceGroupName, storageSyncServiceName, syncGroupName, cloudEndpointName, azureFileShare, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Headers; + } + } + + /// + /// Post Backup a given CloudEndpoint. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of Storage Sync Service resource. + /// + /// + /// Name of Sync Group resource. + /// + /// + /// Name of Cloud Endpoint object. + /// + /// + /// Azure File Share. + /// + public static PostBackupResponse PostBackup(this ICloudEndpointsOperations operations, string resourceGroupName, string storageSyncServiceName, string syncGroupName, string cloudEndpointName, string azureFileShare = default(string)) + { + return operations.PostBackupAsync(resourceGroupName, storageSyncServiceName, syncGroupName, cloudEndpointName, azureFileShare).GetAwaiter().GetResult(); + } + + /// + /// Post Backup a given CloudEndpoint. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of Storage Sync Service resource. + /// + /// + /// Name of Sync Group resource. + /// + /// + /// Name of Cloud Endpoint object. + /// + /// + /// Azure File Share. + /// + /// + /// The cancellation token. + /// + public static async Task PostBackupAsync(this ICloudEndpointsOperations operations, string resourceGroupName, string storageSyncServiceName, string syncGroupName, string cloudEndpointName, string azureFileShare = default(string), CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.PostBackupWithHttpMessagesAsync(resourceGroupName, storageSyncServiceName, syncGroupName, cloudEndpointName, azureFileShare, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Pre Restore a given CloudEndpoint. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of Storage Sync Service resource. + /// + /// + /// Name of Sync Group resource. + /// + /// + /// Name of Cloud Endpoint object. + /// + /// + /// Body of Cloud Endpoint object. + /// + public static CloudEndpointsPreRestoreHeaders PreRestore(this ICloudEndpointsOperations operations, string resourceGroupName, string storageSyncServiceName, string syncGroupName, string cloudEndpointName, PreRestoreRequest parameters) + { + return operations.PreRestoreAsync(resourceGroupName, storageSyncServiceName, syncGroupName, cloudEndpointName, parameters).GetAwaiter().GetResult(); + } + + /// + /// Pre Restore a given CloudEndpoint. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of Storage Sync Service resource. + /// + /// + /// Name of Sync Group resource. + /// + /// + /// Name of Cloud Endpoint object. + /// + /// + /// Body of Cloud Endpoint object. + /// + /// + /// The cancellation token. + /// + public static async Task PreRestoreAsync(this ICloudEndpointsOperations operations, string resourceGroupName, string storageSyncServiceName, string syncGroupName, string cloudEndpointName, PreRestoreRequest parameters, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.PreRestoreWithHttpMessagesAsync(resourceGroupName, storageSyncServiceName, syncGroupName, cloudEndpointName, parameters, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Headers; + } + } + + /// + /// Restore Heartbeat a given CloudEndpoint. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of Storage Sync Service resource. + /// + /// + /// Name of Sync Group resource. + /// + /// + /// Name of Cloud Endpoint object. + /// + public static CloudEndpointsRestoreheartbeatHeaders Restoreheartbeat(this ICloudEndpointsOperations operations, string resourceGroupName, string storageSyncServiceName, string syncGroupName, string cloudEndpointName) + { + return operations.RestoreheartbeatAsync(resourceGroupName, storageSyncServiceName, syncGroupName, cloudEndpointName).GetAwaiter().GetResult(); + } + + /// + /// Restore Heartbeat a given CloudEndpoint. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of Storage Sync Service resource. + /// + /// + /// Name of Sync Group resource. + /// + /// + /// Name of Cloud Endpoint object. + /// + /// + /// The cancellation token. + /// + public static async Task RestoreheartbeatAsync(this ICloudEndpointsOperations operations, string resourceGroupName, string storageSyncServiceName, string syncGroupName, string cloudEndpointName, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.RestoreheartbeatWithHttpMessagesAsync(resourceGroupName, storageSyncServiceName, syncGroupName, cloudEndpointName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Headers; + } + } + + /// + /// Post Restore a given CloudEndpoint. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of Storage Sync Service resource. + /// + /// + /// Name of Sync Group resource. + /// + /// + /// Name of Cloud Endpoint object. + /// + /// + /// Body of Cloud Endpoint object. + /// + public static CloudEndpointsPostRestoreHeaders PostRestore(this ICloudEndpointsOperations operations, string resourceGroupName, string storageSyncServiceName, string syncGroupName, string cloudEndpointName, PostRestoreRequest parameters) + { + return operations.PostRestoreAsync(resourceGroupName, storageSyncServiceName, syncGroupName, cloudEndpointName, parameters).GetAwaiter().GetResult(); + } + + /// + /// Post Restore a given CloudEndpoint. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of Storage Sync Service resource. + /// + /// + /// Name of Sync Group resource. + /// + /// + /// Name of Cloud Endpoint object. + /// + /// + /// Body of Cloud Endpoint object. + /// + /// + /// The cancellation token. + /// + public static async Task PostRestoreAsync(this ICloudEndpointsOperations operations, string resourceGroupName, string storageSyncServiceName, string syncGroupName, string cloudEndpointName, PostRestoreRequest parameters, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.PostRestoreWithHttpMessagesAsync(resourceGroupName, storageSyncServiceName, syncGroupName, cloudEndpointName, parameters, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Headers; + } + } + + /// + /// Create a new CloudEndpoint. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of Storage Sync Service resource. + /// + /// + /// Name of Sync Group resource. + /// + /// + /// Name of Cloud Endpoint object. + /// + /// + /// Body of Cloud Endpoint resource. + /// + public static CloudEndpoint BeginCreate(this ICloudEndpointsOperations operations, string resourceGroupName, string storageSyncServiceName, string syncGroupName, string cloudEndpointName, CloudEndpointCreateParameters parameters) + { + return operations.BeginCreateAsync(resourceGroupName, storageSyncServiceName, syncGroupName, cloudEndpointName, parameters).GetAwaiter().GetResult(); + } + + /// + /// Create a new CloudEndpoint. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of Storage Sync Service resource. + /// + /// + /// Name of Sync Group resource. + /// + /// + /// Name of Cloud Endpoint object. + /// + /// + /// Body of Cloud Endpoint resource. + /// + /// + /// The cancellation token. + /// + public static async Task BeginCreateAsync(this ICloudEndpointsOperations operations, string resourceGroupName, string storageSyncServiceName, string syncGroupName, string cloudEndpointName, CloudEndpointCreateParameters parameters, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.BeginCreateWithHttpMessagesAsync(resourceGroupName, storageSyncServiceName, syncGroupName, cloudEndpointName, parameters, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Delete a given CloudEndpoint. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of Storage Sync Service resource. + /// + /// + /// Name of Sync Group resource. + /// + /// + /// Name of Cloud Endpoint object. + /// + public static CloudEndpointsDeleteHeaders BeginDelete(this ICloudEndpointsOperations operations, string resourceGroupName, string storageSyncServiceName, string syncGroupName, string cloudEndpointName) + { + return operations.BeginDeleteAsync(resourceGroupName, storageSyncServiceName, syncGroupName, cloudEndpointName).GetAwaiter().GetResult(); + } + + /// + /// Delete a given CloudEndpoint. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of Storage Sync Service resource. + /// + /// + /// Name of Sync Group resource. + /// + /// + /// Name of Cloud Endpoint object. + /// + /// + /// The cancellation token. + /// + public static async Task BeginDeleteAsync(this ICloudEndpointsOperations operations, string resourceGroupName, string storageSyncServiceName, string syncGroupName, string cloudEndpointName, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.BeginDeleteWithHttpMessagesAsync(resourceGroupName, storageSyncServiceName, syncGroupName, cloudEndpointName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Headers; + } + } + + /// + /// Pre Backup a given CloudEndpoint. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of Storage Sync Service resource. + /// + /// + /// Name of Sync Group resource. + /// + /// + /// Name of Cloud Endpoint object. + /// + /// + /// Azure File Share. + /// + public static CloudEndpointsPreBackupHeaders BeginPreBackup(this ICloudEndpointsOperations operations, string resourceGroupName, string storageSyncServiceName, string syncGroupName, string cloudEndpointName, string azureFileShare = default(string)) + { + return operations.BeginPreBackupAsync(resourceGroupName, storageSyncServiceName, syncGroupName, cloudEndpointName, azureFileShare).GetAwaiter().GetResult(); + } + + /// + /// Pre Backup a given CloudEndpoint. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of Storage Sync Service resource. + /// + /// + /// Name of Sync Group resource. + /// + /// + /// Name of Cloud Endpoint object. + /// + /// + /// Azure File Share. + /// + /// + /// The cancellation token. + /// + public static async Task BeginPreBackupAsync(this ICloudEndpointsOperations operations, string resourceGroupName, string storageSyncServiceName, string syncGroupName, string cloudEndpointName, string azureFileShare = default(string), CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.BeginPreBackupWithHttpMessagesAsync(resourceGroupName, storageSyncServiceName, syncGroupName, cloudEndpointName, azureFileShare, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Headers; + } + } + + /// + /// Post Backup a given CloudEndpoint. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of Storage Sync Service resource. + /// + /// + /// Name of Sync Group resource. + /// + /// + /// Name of Cloud Endpoint object. + /// + /// + /// Azure File Share. + /// + public static PostBackupResponse BeginPostBackup(this ICloudEndpointsOperations operations, string resourceGroupName, string storageSyncServiceName, string syncGroupName, string cloudEndpointName, string azureFileShare = default(string)) + { + return operations.BeginPostBackupAsync(resourceGroupName, storageSyncServiceName, syncGroupName, cloudEndpointName, azureFileShare).GetAwaiter().GetResult(); + } + + /// + /// Post Backup a given CloudEndpoint. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of Storage Sync Service resource. + /// + /// + /// Name of Sync Group resource. + /// + /// + /// Name of Cloud Endpoint object. + /// + /// + /// Azure File Share. + /// + /// + /// The cancellation token. + /// + public static async Task BeginPostBackupAsync(this ICloudEndpointsOperations operations, string resourceGroupName, string storageSyncServiceName, string syncGroupName, string cloudEndpointName, string azureFileShare = default(string), CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.BeginPostBackupWithHttpMessagesAsync(resourceGroupName, storageSyncServiceName, syncGroupName, cloudEndpointName, azureFileShare, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Pre Restore a given CloudEndpoint. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of Storage Sync Service resource. + /// + /// + /// Name of Sync Group resource. + /// + /// + /// Name of Cloud Endpoint object. + /// + /// + /// Body of Cloud Endpoint object. + /// + public static CloudEndpointsPreRestoreHeaders BeginPreRestore(this ICloudEndpointsOperations operations, string resourceGroupName, string storageSyncServiceName, string syncGroupName, string cloudEndpointName, PreRestoreRequest parameters) + { + return operations.BeginPreRestoreAsync(resourceGroupName, storageSyncServiceName, syncGroupName, cloudEndpointName, parameters).GetAwaiter().GetResult(); + } + + /// + /// Pre Restore a given CloudEndpoint. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of Storage Sync Service resource. + /// + /// + /// Name of Sync Group resource. + /// + /// + /// Name of Cloud Endpoint object. + /// + /// + /// Body of Cloud Endpoint object. + /// + /// + /// The cancellation token. + /// + public static async Task BeginPreRestoreAsync(this ICloudEndpointsOperations operations, string resourceGroupName, string storageSyncServiceName, string syncGroupName, string cloudEndpointName, PreRestoreRequest parameters, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.BeginPreRestoreWithHttpMessagesAsync(resourceGroupName, storageSyncServiceName, syncGroupName, cloudEndpointName, parameters, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Headers; + } + } + + /// + /// Post Restore a given CloudEndpoint. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of Storage Sync Service resource. + /// + /// + /// Name of Sync Group resource. + /// + /// + /// Name of Cloud Endpoint object. + /// + /// + /// Body of Cloud Endpoint object. + /// + public static CloudEndpointsPostRestoreHeaders BeginPostRestore(this ICloudEndpointsOperations operations, string resourceGroupName, string storageSyncServiceName, string syncGroupName, string cloudEndpointName, PostRestoreRequest parameters) + { + return operations.BeginPostRestoreAsync(resourceGroupName, storageSyncServiceName, syncGroupName, cloudEndpointName, parameters).GetAwaiter().GetResult(); + } + + /// + /// Post Restore a given CloudEndpoint. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of Storage Sync Service resource. + /// + /// + /// Name of Sync Group resource. + /// + /// + /// Name of Cloud Endpoint object. + /// + /// + /// Body of Cloud Endpoint object. + /// + /// + /// The cancellation token. + /// + public static async Task BeginPostRestoreAsync(this ICloudEndpointsOperations operations, string resourceGroupName, string storageSyncServiceName, string syncGroupName, string cloudEndpointName, PostRestoreRequest parameters, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.BeginPostRestoreWithHttpMessagesAsync(resourceGroupName, storageSyncServiceName, syncGroupName, cloudEndpointName, parameters, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Headers; + } + } + + } +} diff --git a/src/SDKs/StorageSync/Management.StorageSync/Generated/ICloudEndpointsOperations.cs b/src/SDKs/StorageSync/Management.StorageSync/Generated/ICloudEndpointsOperations.cs new file mode 100644 index 000000000000..2651c5b677f7 --- /dev/null +++ b/src/SDKs/StorageSync/Management.StorageSync/Generated/ICloudEndpointsOperations.cs @@ -0,0 +1,492 @@ +// +// 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.StorageSync +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using System.Collections; + using System.Collections.Generic; + using System.Threading; + using System.Threading.Tasks; + + /// + /// CloudEndpointsOperations operations. + /// + public partial interface ICloudEndpointsOperations + { + /// + /// Create a new CloudEndpoint. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of Storage Sync Service resource. + /// + /// + /// Name of Sync Group resource. + /// + /// + /// Name of Cloud Endpoint object. + /// + /// + /// Body of Cloud Endpoint 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> CreateWithHttpMessagesAsync(string resourceGroupName, string storageSyncServiceName, string syncGroupName, string cloudEndpointName, CloudEndpointCreateParameters parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Get a given CloudEndpoint. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of Storage Sync Service resource. + /// + /// + /// Name of Sync Group resource. + /// + /// + /// Name of Cloud Endpoint object. + /// + /// + /// 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 storageSyncServiceName, string syncGroupName, string cloudEndpointName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Delete a given CloudEndpoint. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of Storage Sync Service resource. + /// + /// + /// Name of Sync Group resource. + /// + /// + /// Name of Cloud Endpoint object. + /// + /// + /// 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 storageSyncServiceName, string syncGroupName, string cloudEndpointName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Get a CloudEndpoint List. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of Storage Sync Service resource. + /// + /// + /// Name of Sync Group 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,CloudEndpointsListBySyncGroupHeaders>> ListBySyncGroupWithHttpMessagesAsync(string resourceGroupName, string storageSyncServiceName, string syncGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Pre Backup a given CloudEndpoint. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of Storage Sync Service resource. + /// + /// + /// Name of Sync Group resource. + /// + /// + /// Name of Cloud Endpoint object. + /// + /// + /// Azure File Share. + /// + /// + /// 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> PreBackupWithHttpMessagesAsync(string resourceGroupName, string storageSyncServiceName, string syncGroupName, string cloudEndpointName, string azureFileShare = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Post Backup a given CloudEndpoint. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of Storage Sync Service resource. + /// + /// + /// Name of Sync Group resource. + /// + /// + /// Name of Cloud Endpoint object. + /// + /// + /// Azure File Share. + /// + /// + /// 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> PostBackupWithHttpMessagesAsync(string resourceGroupName, string storageSyncServiceName, string syncGroupName, string cloudEndpointName, string azureFileShare = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Pre Restore a given CloudEndpoint. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of Storage Sync Service resource. + /// + /// + /// Name of Sync Group resource. + /// + /// + /// Name of Cloud Endpoint object. + /// + /// + /// Body of Cloud Endpoint object. + /// + /// + /// 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> PreRestoreWithHttpMessagesAsync(string resourceGroupName, string storageSyncServiceName, string syncGroupName, string cloudEndpointName, PreRestoreRequest parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Restore Heartbeat a given CloudEndpoint. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of Storage Sync Service resource. + /// + /// + /// Name of Sync Group resource. + /// + /// + /// Name of Cloud Endpoint object. + /// + /// + /// 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> RestoreheartbeatWithHttpMessagesAsync(string resourceGroupName, string storageSyncServiceName, string syncGroupName, string cloudEndpointName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Post Restore a given CloudEndpoint. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of Storage Sync Service resource. + /// + /// + /// Name of Sync Group resource. + /// + /// + /// Name of Cloud Endpoint object. + /// + /// + /// Body of Cloud Endpoint object. + /// + /// + /// 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> PostRestoreWithHttpMessagesAsync(string resourceGroupName, string storageSyncServiceName, string syncGroupName, string cloudEndpointName, PostRestoreRequest parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Create a new CloudEndpoint. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of Storage Sync Service resource. + /// + /// + /// Name of Sync Group resource. + /// + /// + /// Name of Cloud Endpoint object. + /// + /// + /// Body of Cloud Endpoint 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> BeginCreateWithHttpMessagesAsync(string resourceGroupName, string storageSyncServiceName, string syncGroupName, string cloudEndpointName, CloudEndpointCreateParameters parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Delete a given CloudEndpoint. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of Storage Sync Service resource. + /// + /// + /// Name of Sync Group resource. + /// + /// + /// Name of Cloud Endpoint object. + /// + /// + /// 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 storageSyncServiceName, string syncGroupName, string cloudEndpointName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Pre Backup a given CloudEndpoint. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of Storage Sync Service resource. + /// + /// + /// Name of Sync Group resource. + /// + /// + /// Name of Cloud Endpoint object. + /// + /// + /// Azure File Share. + /// + /// + /// 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> BeginPreBackupWithHttpMessagesAsync(string resourceGroupName, string storageSyncServiceName, string syncGroupName, string cloudEndpointName, string azureFileShare = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Post Backup a given CloudEndpoint. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of Storage Sync Service resource. + /// + /// + /// Name of Sync Group resource. + /// + /// + /// Name of Cloud Endpoint object. + /// + /// + /// Azure File Share. + /// + /// + /// 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> BeginPostBackupWithHttpMessagesAsync(string resourceGroupName, string storageSyncServiceName, string syncGroupName, string cloudEndpointName, string azureFileShare = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Pre Restore a given CloudEndpoint. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of Storage Sync Service resource. + /// + /// + /// Name of Sync Group resource. + /// + /// + /// Name of Cloud Endpoint object. + /// + /// + /// Body of Cloud Endpoint object. + /// + /// + /// 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> BeginPreRestoreWithHttpMessagesAsync(string resourceGroupName, string storageSyncServiceName, string syncGroupName, string cloudEndpointName, PreRestoreRequest parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Post Restore a given CloudEndpoint. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of Storage Sync Service resource. + /// + /// + /// Name of Sync Group resource. + /// + /// + /// Name of Cloud Endpoint object. + /// + /// + /// Body of Cloud Endpoint object. + /// + /// + /// 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> BeginPostRestoreWithHttpMessagesAsync(string resourceGroupName, string storageSyncServiceName, string syncGroupName, string cloudEndpointName, PostRestoreRequest parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + } +} diff --git a/src/SDKs/StorageSync/Management.StorageSync/Generated/IOperations.cs b/src/SDKs/StorageSync/Management.StorageSync/Generated/IOperations.cs new file mode 100644 index 000000000000..ed6b06e574c4 --- /dev/null +++ b/src/SDKs/StorageSync/Management.StorageSync/Generated/IOperations.cs @@ -0,0 +1,68 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.StorageSync +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using System.Collections; + using System.Collections.Generic; + using System.Threading; + using System.Threading.Tasks; + + /// + /// Operations operations. + /// + public partial interface IOperations + { + /// + /// Lists all of the available Storage Sync Rest API operations. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task,OperationsListHeaders>> ListWithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Lists all of the available Storage Sync Rest API operations. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task,OperationsListHeaders>> ListNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + } +} diff --git a/src/SDKs/StorageSync/Management.StorageSync/Generated/IRegisteredServersOperations.cs b/src/SDKs/StorageSync/Management.StorageSync/Generated/IRegisteredServersOperations.cs new file mode 100644 index 000000000000..3db831aab520 --- /dev/null +++ b/src/SDKs/StorageSync/Management.StorageSync/Generated/IRegisteredServersOperations.cs @@ -0,0 +1,192 @@ +// +// 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.StorageSync +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using System.Collections; + using System.Collections.Generic; + using System.Threading; + using System.Threading.Tasks; + + /// + /// RegisteredServersOperations operations. + /// + public partial interface IRegisteredServersOperations + { + /// + /// Get a given registered server list. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of Storage Sync Service 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,RegisteredServersListByStorageSyncServiceHeaders>> ListByStorageSyncServiceWithHttpMessagesAsync(string resourceGroupName, string storageSyncServiceName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Get a given registered server. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of Storage Sync Service resource. + /// + /// + /// GUID identifying the on-premises server. + /// + /// + /// 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 storageSyncServiceName, string serverId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Add a new registered server. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of Storage Sync Service resource. + /// + /// + /// GUID identifying the on-premises server. + /// + /// + /// Body of Registered Server object. + /// + /// + /// 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> CreateWithHttpMessagesAsync(string resourceGroupName, string storageSyncServiceName, string serverId, RegisteredServerCreateParameters parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Delete the given registered server. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of Storage Sync Service resource. + /// + /// + /// GUID identifying the on-premises server. + /// + /// + /// 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 storageSyncServiceName, string serverId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Add a new registered server. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of Storage Sync Service resource. + /// + /// + /// GUID identifying the on-premises server. + /// + /// + /// Body of Registered Server object. + /// + /// + /// 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> BeginCreateWithHttpMessagesAsync(string resourceGroupName, string storageSyncServiceName, string serverId, RegisteredServerCreateParameters parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Delete the given registered server. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of Storage Sync Service resource. + /// + /// + /// GUID identifying the on-premises server. + /// + /// + /// 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 storageSyncServiceName, string serverId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + } +} diff --git a/src/SDKs/StorageSync/Management.StorageSync/Generated/IServerEndpointsOperations.cs b/src/SDKs/StorageSync/Management.StorageSync/Generated/IServerEndpointsOperations.cs new file mode 100644 index 000000000000..30da4931bbf6 --- /dev/null +++ b/src/SDKs/StorageSync/Management.StorageSync/Generated/IServerEndpointsOperations.cs @@ -0,0 +1,340 @@ +// +// 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.StorageSync +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using System.Collections; + using System.Collections.Generic; + using System.Threading; + using System.Threading.Tasks; + + /// + /// ServerEndpointsOperations operations. + /// + public partial interface IServerEndpointsOperations + { + /// + /// Create a new ServerEndpoint. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of Storage Sync Service resource. + /// + /// + /// Name of Sync Group resource. + /// + /// + /// Name of Server Endpoint object. + /// + /// + /// Body of Server Endpoint object. + /// + /// + /// 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> CreateWithHttpMessagesAsync(string resourceGroupName, string storageSyncServiceName, string syncGroupName, string serverEndpointName, ServerEndpointCreateParameters parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Patch a given ServerEndpoint. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of Storage Sync Service resource. + /// + /// + /// Name of Sync Group resource. + /// + /// + /// Name of Server Endpoint object. + /// + /// + /// Any of the properties applicable in PUT request. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> UpdateWithHttpMessagesAsync(string resourceGroupName, string storageSyncServiceName, string syncGroupName, string serverEndpointName, ServerEndpointUpdateParameters parameters = default(ServerEndpointUpdateParameters), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Get a ServerEndpoint. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of Storage Sync Service resource. + /// + /// + /// Name of Sync Group resource. + /// + /// + /// Name of Server Endpoint object. + /// + /// + /// 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 storageSyncServiceName, string syncGroupName, string serverEndpointName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Delete a given ServerEndpoint. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of Storage Sync Service resource. + /// + /// + /// Name of Sync Group resource. + /// + /// + /// Name of Server Endpoint object. + /// + /// + /// 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 storageSyncServiceName, string syncGroupName, string serverEndpointName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Get a ServerEndpoint list. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of Storage Sync Service resource. + /// + /// + /// Name of Sync Group 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,ServerEndpointsListBySyncGroupHeaders>> ListBySyncGroupWithHttpMessagesAsync(string resourceGroupName, string storageSyncServiceName, string syncGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Recall a serverendpoint. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of Storage Sync Service resource. + /// + /// + /// Name of Sync Group resource. + /// + /// + /// Name of Server Endpoint object. + /// + /// + /// Body of Recall Action object. + /// + /// + /// 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> RecallActionWithHttpMessagesAsync(string resourceGroupName, string storageSyncServiceName, string syncGroupName, string serverEndpointName, RecallActionParameters parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Create a new ServerEndpoint. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of Storage Sync Service resource. + /// + /// + /// Name of Sync Group resource. + /// + /// + /// Name of Server Endpoint object. + /// + /// + /// Body of Server Endpoint object. + /// + /// + /// 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> BeginCreateWithHttpMessagesAsync(string resourceGroupName, string storageSyncServiceName, string syncGroupName, string serverEndpointName, ServerEndpointCreateParameters parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Patch a given ServerEndpoint. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of Storage Sync Service resource. + /// + /// + /// Name of Sync Group resource. + /// + /// + /// Name of Server Endpoint object. + /// + /// + /// Any of the properties applicable in PUT request. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> BeginUpdateWithHttpMessagesAsync(string resourceGroupName, string storageSyncServiceName, string syncGroupName, string serverEndpointName, ServerEndpointUpdateParameters parameters = default(ServerEndpointUpdateParameters), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Delete a given ServerEndpoint. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of Storage Sync Service resource. + /// + /// + /// Name of Sync Group resource. + /// + /// + /// Name of Server Endpoint object. + /// + /// + /// 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 storageSyncServiceName, string syncGroupName, string serverEndpointName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Recall a serverendpoint. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of Storage Sync Service resource. + /// + /// + /// Name of Sync Group resource. + /// + /// + /// Name of Server Endpoint object. + /// + /// + /// Body of Recall Action object. + /// + /// + /// 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> BeginRecallActionWithHttpMessagesAsync(string resourceGroupName, string storageSyncServiceName, string syncGroupName, string serverEndpointName, RecallActionParameters parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + } +} diff --git a/src/SDKs/StorageSync/Management.StorageSync/Generated/IStorageSyncManagementClient.cs b/src/SDKs/StorageSync/Management.StorageSync/Generated/IStorageSyncManagementClient.cs new file mode 100644 index 000000000000..3d5b5de791e4 --- /dev/null +++ b/src/SDKs/StorageSync/Management.StorageSync/Generated/IStorageSyncManagementClient.cs @@ -0,0 +1,108 @@ +// +// 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.StorageSync +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using Newtonsoft.Json; + + /// + /// Microsoft Storage Sync Service API + /// + public partial interface IStorageSyncManagementClient : System.IDisposable + { + /// + /// The base URI of the service. + /// + System.Uri BaseUri { get; set; } + + /// + /// Gets or sets json serialization settings. + /// + JsonSerializerSettings SerializationSettings { get; } + + /// + /// Gets or sets json deserialization settings. + /// + JsonSerializerSettings DeserializationSettings { get; } + + /// + /// Credentials needed for the client to connect to Azure. + /// + ServiceClientCredentials Credentials { get; } + + /// + /// The API version to use for this operation. + /// + string ApiVersion { get; } + + /// + /// The ID of the target subscription. + /// + string SubscriptionId { get; set; } + + /// + /// The preferred language for the response. + /// + string AcceptLanguage { get; set; } + + /// + /// The retry timeout in seconds for Long Running Operations. Default + /// value is 30. + /// + int? LongRunningOperationRetryTimeout { get; set; } + + /// + /// Whether a unique x-ms-client-request-id should be generated. When + /// set to true a unique x-ms-client-request-id value is generated and + /// included in each request. Default is true. + /// + bool? GenerateClientRequestId { get; set; } + + + /// + /// Gets the IOperations. + /// + IOperations Operations { get; } + + /// + /// Gets the IStorageSyncServicesOperations. + /// + IStorageSyncServicesOperations StorageSyncServices { get; } + + /// + /// Gets the ISyncGroupsOperations. + /// + ISyncGroupsOperations SyncGroups { get; } + + /// + /// Gets the ICloudEndpointsOperations. + /// + ICloudEndpointsOperations CloudEndpoints { get; } + + /// + /// Gets the IServerEndpointsOperations. + /// + IServerEndpointsOperations ServerEndpoints { get; } + + /// + /// Gets the IRegisteredServersOperations. + /// + IRegisteredServersOperations RegisteredServers { get; } + + /// + /// Gets the IWorkflowsOperations. + /// + IWorkflowsOperations Workflows { get; } + + } +} diff --git a/src/SDKs/StorageSync/Management.StorageSync/Generated/IStorageSyncServicesOperations.cs b/src/SDKs/StorageSync/Management.StorageSync/Generated/IStorageSyncServicesOperations.cs new file mode 100644 index 000000000000..c3b60de9579d --- /dev/null +++ b/src/SDKs/StorageSync/Management.StorageSync/Generated/IStorageSyncServicesOperations.cs @@ -0,0 +1,196 @@ +// +// 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.StorageSync +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using System.Collections; + using System.Collections.Generic; + using System.Threading; + using System.Threading.Tasks; + + /// + /// StorageSyncServicesOperations operations. + /// + public partial interface IStorageSyncServicesOperations + { + /// + /// Check the give namespace name availability. + /// + /// + /// The desired region for the name check. + /// + /// + /// The name to check for availability + /// + /// + /// 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> CheckNameAvailabilityWithHttpMessagesAsync(string locationName, string name, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Create a new StorageSyncService. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of Storage Sync Service resource. + /// + /// + /// Storage Sync Service resource 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> CreateWithHttpMessagesAsync(string resourceGroupName, string storageSyncServiceName, StorageSyncServiceCreateParameters parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Get a given StorageSyncService. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of Storage Sync Service 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 storageSyncServiceName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Patch a given StorageSyncService. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of Storage Sync Service resource. + /// + /// + /// Storage Sync Service 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> UpdateWithHttpMessagesAsync(string resourceGroupName, string storageSyncServiceName, StorageSyncServiceUpdateParameters parameters = default(StorageSyncServiceUpdateParameters), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Delete a given StorageSyncService. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of Storage Sync Service 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 storageSyncServiceName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Get a StorageSyncService list by Resource group name. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// 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,StorageSyncServicesListByResourceGroupHeaders>> ListByResourceGroupWithHttpMessagesAsync(string resourceGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Get a StorageSyncService list by subscription. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task,StorageSyncServicesListBySubscriptionHeaders>> ListBySubscriptionWithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + } +} diff --git a/src/SDKs/StorageSync/Management.StorageSync/Generated/ISyncGroupsOperations.cs b/src/SDKs/StorageSync/Management.StorageSync/Generated/ISyncGroupsOperations.cs new file mode 100644 index 000000000000..6a2a45a172f7 --- /dev/null +++ b/src/SDKs/StorageSync/Management.StorageSync/Generated/ISyncGroupsOperations.cs @@ -0,0 +1,136 @@ +// +// 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.StorageSync +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using System.Collections; + using System.Collections.Generic; + using System.Threading; + using System.Threading.Tasks; + + /// + /// SyncGroupsOperations operations. + /// + public partial interface ISyncGroupsOperations + { + /// + /// Get a SyncGroup List. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of Storage Sync Service 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,SyncGroupsListByStorageSyncServiceHeaders>> ListByStorageSyncServiceWithHttpMessagesAsync(string resourceGroupName, string storageSyncServiceName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Create a new SyncGroup. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of Storage Sync Service resource. + /// + /// + /// Name of Sync Group resource. + /// + /// + /// Sync Group Body + /// + /// + /// 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> CreateWithHttpMessagesAsync(string resourceGroupName, string storageSyncServiceName, string syncGroupName, SyncGroupCreateParameters parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Get a given SyncGroup. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of Storage Sync Service resource. + /// + /// + /// Name of Sync Group 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 storageSyncServiceName, string syncGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Delete a given SyncGroup. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of Storage Sync Service resource. + /// + /// + /// Name of Sync Group 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 storageSyncServiceName, string syncGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + } +} diff --git a/src/SDKs/StorageSync/Management.StorageSync/Generated/IWorkflowsOperations.cs b/src/SDKs/StorageSync/Management.StorageSync/Generated/IWorkflowsOperations.cs new file mode 100644 index 000000000000..0d5c2d5737a0 --- /dev/null +++ b/src/SDKs/StorageSync/Management.StorageSync/Generated/IWorkflowsOperations.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.StorageSync +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using System.Collections; + using System.Collections.Generic; + using System.Threading; + using System.Threading.Tasks; + + /// + /// WorkflowsOperations operations. + /// + public partial interface IWorkflowsOperations + { + /// + /// Get Workflows resource + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of Storage Sync Service resource. + /// + /// + /// workflow Id + /// + /// + /// 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 storageSyncServiceName, string workflowId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Abort the given workflow. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of Storage Sync Service resource. + /// + /// + /// workflow Id + /// + /// + /// 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> AbortWithHttpMessagesAsync(string resourceGroupName, string storageSyncServiceName, string workflowId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + } +} diff --git a/src/SDKs/StorageSync/Management.StorageSync/Generated/Models/AzureEntityResource.cs b/src/SDKs/StorageSync/Management.StorageSync/Generated/Models/AzureEntityResource.cs new file mode 100644 index 000000000000..52f7c8cb20e5 --- /dev/null +++ b/src/SDKs/StorageSync/Management.StorageSync/Generated/Models/AzureEntityResource.cs @@ -0,0 +1,59 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.StorageSync.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// The resource model definition for a Azure Resource Manager resource + /// with an etag. + /// + public partial class AzureEntityResource : Resource + { + /// + /// Initializes a new instance of the AzureEntityResource class. + /// + public AzureEntityResource() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the AzureEntityResource class. + /// + /// Fully qualified resource Id for the resource. Ex - + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + /// The name of the resource + /// The type of the resource. Ex- + /// Microsoft.Compute/virtualMachines or + /// Microsoft.Storage/storageAccounts. + /// Resource Etag. + public AzureEntityResource(string id = default(string), string name = default(string), string type = default(string), string etag = default(string)) + : base(id, name, type) + { + Etag = etag; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets resource Etag. + /// + [JsonProperty(PropertyName = "etag")] + public string Etag { get; private set; } + + } +} diff --git a/src/SDKs/StorageSync/Management.StorageSync/Generated/Models/BackupRequest.cs b/src/SDKs/StorageSync/Management.StorageSync/Generated/Models/BackupRequest.cs new file mode 100644 index 000000000000..cdbd85bb266a --- /dev/null +++ b/src/SDKs/StorageSync/Management.StorageSync/Generated/Models/BackupRequest.cs @@ -0,0 +1,51 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.StorageSync.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// Backup request + /// + public partial class BackupRequest + { + /// + /// Initializes a new instance of the BackupRequest class. + /// + public BackupRequest() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the BackupRequest class. + /// + /// Azure File Share. + public BackupRequest(string azureFileShare = default(string)) + { + AzureFileShare = azureFileShare; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets azure File Share. + /// + [JsonProperty(PropertyName = "azureFileShare")] + public string AzureFileShare { get; set; } + + } +} diff --git a/src/SDKs/StorageSync/Management.StorageSync/Generated/Models/CheckNameAvailabilityParameters.cs b/src/SDKs/StorageSync/Management.StorageSync/Generated/Models/CheckNameAvailabilityParameters.cs new file mode 100644 index 000000000000..6894a7099412 --- /dev/null +++ b/src/SDKs/StorageSync/Management.StorageSync/Generated/Models/CheckNameAvailabilityParameters.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.StorageSync.Models +{ + using Microsoft.Rest; + using Newtonsoft.Json; + using System.Linq; + + /// + /// Parameters for a check name availability request. + /// + public partial class CheckNameAvailabilityParameters + { + /// + /// Initializes a new instance of the CheckNameAvailabilityParameters + /// class. + /// + public CheckNameAvailabilityParameters() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the CheckNameAvailabilityParameters + /// class. + /// + /// The name to check for availability + public CheckNameAvailabilityParameters(string name) + { + Name = name; + CustomInit(); + } + /// + /// Static constructor for CheckNameAvailabilityParameters class. + /// + static CheckNameAvailabilityParameters() + { + Type = "Microsoft.StorageSync/storageSyncServices"; + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the name to check for availability + /// + [JsonProperty(PropertyName = "name")] + public string Name { get; set; } + + /// + /// The resource type. Must be set to + /// Microsoft.StorageSync/storageSyncServices + /// + [JsonProperty(PropertyName = "type")] + public static string Type { get; private set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (Name == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "Name"); + } + } + } +} diff --git a/src/SDKs/StorageSync/Management.StorageSync/Generated/Models/CheckNameAvailabilityResult.cs b/src/SDKs/StorageSync/Management.StorageSync/Generated/Models/CheckNameAvailabilityResult.cs new file mode 100644 index 000000000000..064dd2f6cae4 --- /dev/null +++ b/src/SDKs/StorageSync/Management.StorageSync/Generated/Models/CheckNameAvailabilityResult.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.StorageSync.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// The CheckNameAvailability operation response. + /// + public partial class CheckNameAvailabilityResult + { + /// + /// Initializes a new instance of the CheckNameAvailabilityResult + /// class. + /// + public CheckNameAvailabilityResult() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the CheckNameAvailabilityResult + /// class. + /// + /// Gets a boolean value that indicates + /// whether the name is available for you to use. If true, the name is + /// available. If false, the name has already been taken or invalid and + /// cannot be used. + /// Gets the reason that a Storage Sync Service + /// name could not be used. The Reason element is only returned if + /// NameAvailable is false. Possible values include: 'Invalid', + /// 'AlreadyExists' + /// Gets an error message explaining the Reason + /// value in more detail. + public CheckNameAvailabilityResult(bool? nameAvailable = default(bool?), NameAvailabilityReason? reason = default(NameAvailabilityReason?), string message = default(string)) + { + NameAvailable = nameAvailable; + Reason = reason; + Message = message; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets a boolean value that indicates whether the name is available + /// for you to use. If true, the name is available. If false, the name + /// has already been taken or invalid and cannot be used. + /// + [JsonProperty(PropertyName = "nameAvailable")] + public bool? NameAvailable { get; private set; } + + /// + /// Gets the reason that a Storage Sync Service name could not be used. + /// The Reason element is only returned if NameAvailable is false. + /// Possible values include: 'Invalid', 'AlreadyExists' + /// + [JsonProperty(PropertyName = "reason")] + public NameAvailabilityReason? Reason { get; private set; } + + /// + /// Gets an error message explaining the Reason value in more detail. + /// + [JsonProperty(PropertyName = "message")] + public string Message { get; private set; } + + } +} diff --git a/src/SDKs/StorageSync/Management.StorageSync/Generated/Models/CloudEndpoint.cs b/src/SDKs/StorageSync/Management.StorageSync/Generated/Models/CloudEndpoint.cs new file mode 100644 index 000000000000..503995690137 --- /dev/null +++ b/src/SDKs/StorageSync/Management.StorageSync/Generated/Models/CloudEndpoint.cs @@ -0,0 +1,130 @@ +// +// 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.StorageSync.Models +{ + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + using Newtonsoft.Json; + using System.Linq; + + /// + /// Cloud Endpoint object. + /// + [Rest.Serialization.JsonTransformation] + public partial class CloudEndpoint : Resource + { + /// + /// Initializes a new instance of the CloudEndpoint class. + /// + public CloudEndpoint() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the CloudEndpoint class. + /// + /// Fully qualified resource Id for the resource. Ex - + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + /// The name of the resource + /// The type of the resource. Ex- + /// Microsoft.Compute/virtualMachines or + /// Microsoft.Storage/storageAccounts. + /// Storage Account Resource + /// Id + /// Storage Account Share + /// name + /// Storage Account Tenant + /// Id + /// Partnership Id + /// Friendly Name + /// Backup Enabled + /// CloudEndpoint Provisioning + /// State + /// CloudEndpoint lastWorkflowId + /// Resource Last Operation + /// Name + public CloudEndpoint(string id = default(string), string name = default(string), string type = default(string), string storageAccountResourceId = default(string), string storageAccountShareName = default(string), string storageAccountTenantId = default(string), string partnershipId = default(string), string friendlyName = default(string), bool? backupEnabled = default(bool?), string provisioningState = default(string), string lastWorkflowId = default(string), string lastOperationName = default(string)) + : base(id, name, type) + { + StorageAccountResourceId = storageAccountResourceId; + StorageAccountShareName = storageAccountShareName; + StorageAccountTenantId = storageAccountTenantId; + PartnershipId = partnershipId; + FriendlyName = friendlyName; + BackupEnabled = backupEnabled; + ProvisioningState = provisioningState; + LastWorkflowId = lastWorkflowId; + LastOperationName = lastOperationName; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets storage Account Resource Id + /// + [JsonProperty(PropertyName = "properties.storageAccountResourceId")] + public string StorageAccountResourceId { get; set; } + + /// + /// Gets or sets storage Account Share name + /// + [JsonProperty(PropertyName = "properties.storageAccountShareName")] + public string StorageAccountShareName { get; set; } + + /// + /// Gets or sets storage Account Tenant Id + /// + [JsonProperty(PropertyName = "properties.storageAccountTenantId")] + public string StorageAccountTenantId { get; set; } + + /// + /// Gets or sets partnership Id + /// + [JsonProperty(PropertyName = "properties.partnershipId")] + public string PartnershipId { get; set; } + + /// + /// Gets or sets friendly Name + /// + [JsonProperty(PropertyName = "properties.friendlyName")] + public string FriendlyName { get; set; } + + /// + /// Gets backup Enabled + /// + [JsonProperty(PropertyName = "properties.backupEnabled")] + public bool? BackupEnabled { get; private set; } + + /// + /// Gets or sets cloudEndpoint Provisioning State + /// + [JsonProperty(PropertyName = "properties.provisioningState")] + public string ProvisioningState { get; set; } + + /// + /// Gets or sets cloudEndpoint lastWorkflowId + /// + [JsonProperty(PropertyName = "properties.lastWorkflowId")] + public string LastWorkflowId { get; set; } + + /// + /// Gets or sets resource Last Operation Name + /// + [JsonProperty(PropertyName = "properties.lastOperationName")] + public string LastOperationName { get; set; } + + } +} diff --git a/src/SDKs/StorageSync/Management.StorageSync/Generated/Models/CloudEndpointCreateParameters.cs b/src/SDKs/StorageSync/Management.StorageSync/Generated/Models/CloudEndpointCreateParameters.cs new file mode 100644 index 000000000000..d140e646e019 --- /dev/null +++ b/src/SDKs/StorageSync/Management.StorageSync/Generated/Models/CloudEndpointCreateParameters.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.StorageSync.Models +{ + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// The parameters used when creating a storage sync service. + /// + [Rest.Serialization.JsonTransformation] + public partial class CloudEndpointCreateParameters + { + /// + /// Initializes a new instance of the CloudEndpointCreateParameters + /// class. + /// + public CloudEndpointCreateParameters() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the CloudEndpointCreateParameters + /// class. + /// + /// Required. Gets or sets the location of the + /// resource. This will be one of the supported and registered Azure + /// Geo Regions (e.g. West US, East US, Southeast Asia, etc.). The geo + /// region of a resource cannot be changed once it is created, but if + /// an identical geo region is specified on update, the request will + /// succeed. + /// Gets or sets a list of key value pairs that + /// describe the resource. These tags can be used for viewing and + /// grouping this resource (across resource groups). A maximum of 15 + /// tags can be provided for a resource. Each tag must have a key with + /// a length no greater than 128 characters and a value with a length + /// no greater than 256 characters. + /// Storage Account Resource + /// Id + /// Storage Account Share + /// name + /// Storage Account Tenant + /// Id + public CloudEndpointCreateParameters(string location = default(string), IDictionary tags = default(IDictionary), string storageAccountResourceId = default(string), string storageAccountShareName = default(string), string storageAccountTenantId = default(string)) + { + Location = location; + Tags = tags; + StorageAccountResourceId = storageAccountResourceId; + StorageAccountShareName = storageAccountShareName; + StorageAccountTenantId = storageAccountTenantId; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets required. Gets or sets the location of the resource. + /// This will be one of the supported and registered Azure Geo Regions + /// (e.g. West US, East US, Southeast Asia, etc.). The geo region of a + /// resource cannot be changed once it is created, but if an identical + /// geo region is specified on update, the request will succeed. + /// + [JsonProperty(PropertyName = "location")] + public string Location { get; set; } + + /// + /// Gets or sets a list of key value pairs that describe the resource. + /// These tags can be used for viewing and grouping this resource + /// (across resource groups). A maximum of 15 tags can be provided for + /// a resource. Each tag must have a key with a length no greater than + /// 128 characters and a value with a length no greater than 256 + /// characters. + /// + [JsonProperty(PropertyName = "tags")] + public IDictionary Tags { get; set; } + + /// + /// Gets or sets storage Account Resource Id + /// + [JsonProperty(PropertyName = "properties.storageAccountResourceId")] + public string StorageAccountResourceId { get; set; } + + /// + /// Gets or sets storage Account Share name + /// + [JsonProperty(PropertyName = "properties.storageAccountShareName")] + public string StorageAccountShareName { get; set; } + + /// + /// Gets or sets storage Account Tenant Id + /// + [JsonProperty(PropertyName = "properties.storageAccountTenantId")] + public string StorageAccountTenantId { get; set; } + + } +} diff --git a/src/SDKs/StorageSync/Management.StorageSync/Generated/Models/CloudEndpointsCreateHeaders.cs b/src/SDKs/StorageSync/Management.StorageSync/Generated/Models/CloudEndpointsCreateHeaders.cs new file mode 100644 index 000000000000..68b72ba55601 --- /dev/null +++ b/src/SDKs/StorageSync/Management.StorageSync/Generated/Models/CloudEndpointsCreateHeaders.cs @@ -0,0 +1,87 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.StorageSync.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// Defines headers for Create operation. + /// + public partial class CloudEndpointsCreateHeaders + { + /// + /// Initializes a new instance of the CloudEndpointsCreateHeaders + /// class. + /// + public CloudEndpointsCreateHeaders() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the CloudEndpointsCreateHeaders + /// class. + /// + /// Request id + /// correlation request + /// id + /// Operation Status Location + /// URI + /// Operation Status Location URI + /// Retry After + public CloudEndpointsCreateHeaders(string xMsRequestId = default(string), string xMsCorrelationRequestId = default(string), string azureAsyncOperation = default(string), string location = default(string), string retryAfter = default(string)) + { + XMsRequestId = xMsRequestId; + XMsCorrelationRequestId = xMsCorrelationRequestId; + AzureAsyncOperation = azureAsyncOperation; + Location = location; + RetryAfter = retryAfter; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets request id + /// + [JsonProperty(PropertyName = "x-ms-request-id")] + public string XMsRequestId { get; set; } + + /// + /// Gets or sets correlation request id + /// + [JsonProperty(PropertyName = "x-ms-correlation-request-id")] + public string XMsCorrelationRequestId { get; set; } + + /// + /// Gets or sets operation Status Location URI + /// + [JsonProperty(PropertyName = "Azure-AsyncOperation")] + public string AzureAsyncOperation { get; set; } + + /// + /// Gets or sets operation Status Location URI + /// + [JsonProperty(PropertyName = "Location")] + public string Location { get; set; } + + /// + /// Gets or sets retry After + /// + [JsonProperty(PropertyName = "Retry-After")] + public string RetryAfter { get; set; } + + } +} diff --git a/src/SDKs/StorageSync/Management.StorageSync/Generated/Models/CloudEndpointsDeleteHeaders.cs b/src/SDKs/StorageSync/Management.StorageSync/Generated/Models/CloudEndpointsDeleteHeaders.cs new file mode 100644 index 000000000000..7c44fd16dda0 --- /dev/null +++ b/src/SDKs/StorageSync/Management.StorageSync/Generated/Models/CloudEndpointsDeleteHeaders.cs @@ -0,0 +1,87 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.StorageSync.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// Defines headers for Delete operation. + /// + public partial class CloudEndpointsDeleteHeaders + { + /// + /// Initializes a new instance of the CloudEndpointsDeleteHeaders + /// class. + /// + public CloudEndpointsDeleteHeaders() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the CloudEndpointsDeleteHeaders + /// class. + /// + /// Request id + /// correlation request + /// id + /// Operation Status Location + /// URI + /// Operation Status Location URI + /// Retry After + public CloudEndpointsDeleteHeaders(string xMsRequestId = default(string), string xMsCorrelationRequestId = default(string), string azureAsyncOperation = default(string), string location = default(string), string retryAfter = default(string)) + { + XMsRequestId = xMsRequestId; + XMsCorrelationRequestId = xMsCorrelationRequestId; + AzureAsyncOperation = azureAsyncOperation; + Location = location; + RetryAfter = retryAfter; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets request id + /// + [JsonProperty(PropertyName = "x-ms-request-id")] + public string XMsRequestId { get; set; } + + /// + /// Gets or sets correlation request id + /// + [JsonProperty(PropertyName = "x-ms-correlation-request-id")] + public string XMsCorrelationRequestId { get; set; } + + /// + /// Gets or sets operation Status Location URI + /// + [JsonProperty(PropertyName = "Azure-AsyncOperation")] + public string AzureAsyncOperation { get; set; } + + /// + /// Gets or sets operation Status Location URI + /// + [JsonProperty(PropertyName = "Location")] + public string Location { get; set; } + + /// + /// Gets or sets retry After + /// + [JsonProperty(PropertyName = "Retry-After")] + public string RetryAfter { get; set; } + + } +} diff --git a/src/SDKs/StorageSync/Management.StorageSync/Generated/Models/CloudEndpointsGetHeaders.cs b/src/SDKs/StorageSync/Management.StorageSync/Generated/Models/CloudEndpointsGetHeaders.cs new file mode 100644 index 000000000000..7754917e9eb5 --- /dev/null +++ b/src/SDKs/StorageSync/Management.StorageSync/Generated/Models/CloudEndpointsGetHeaders.cs @@ -0,0 +1,60 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.StorageSync.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// Defines headers for Get operation. + /// + public partial class CloudEndpointsGetHeaders + { + /// + /// Initializes a new instance of the CloudEndpointsGetHeaders class. + /// + public CloudEndpointsGetHeaders() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the CloudEndpointsGetHeaders class. + /// + /// request id. + /// correlation request + /// id. + public CloudEndpointsGetHeaders(string xMsRequestId = default(string), string xMsCorrelationRequestId = default(string)) + { + XMsRequestId = xMsRequestId; + XMsCorrelationRequestId = xMsCorrelationRequestId; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets request id. + /// + [JsonProperty(PropertyName = "x-ms-request-id")] + public string XMsRequestId { get; set; } + + /// + /// Gets or sets correlation request id. + /// + [JsonProperty(PropertyName = "x-ms-correlation-request-id")] + public string XMsCorrelationRequestId { get; set; } + + } +} diff --git a/src/SDKs/StorageSync/Management.StorageSync/Generated/Models/CloudEndpointsListBySyncGroupHeaders.cs b/src/SDKs/StorageSync/Management.StorageSync/Generated/Models/CloudEndpointsListBySyncGroupHeaders.cs new file mode 100644 index 000000000000..379f0ef7947c --- /dev/null +++ b/src/SDKs/StorageSync/Management.StorageSync/Generated/Models/CloudEndpointsListBySyncGroupHeaders.cs @@ -0,0 +1,62 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.StorageSync.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// Defines headers for ListBySyncGroup operation. + /// + public partial class CloudEndpointsListBySyncGroupHeaders + { + /// + /// Initializes a new instance of the + /// CloudEndpointsListBySyncGroupHeaders class. + /// + public CloudEndpointsListBySyncGroupHeaders() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the + /// CloudEndpointsListBySyncGroupHeaders class. + /// + /// request id. + /// correlation request + /// id. + public CloudEndpointsListBySyncGroupHeaders(string xMsRequestId = default(string), string xMsCorrelationRequestId = default(string)) + { + XMsRequestId = xMsRequestId; + XMsCorrelationRequestId = xMsCorrelationRequestId; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets request id. + /// + [JsonProperty(PropertyName = "x-ms-request-id")] + public string XMsRequestId { get; set; } + + /// + /// Gets or sets correlation request id. + /// + [JsonProperty(PropertyName = "x-ms-correlation-request-id")] + public string XMsCorrelationRequestId { get; set; } + + } +} diff --git a/src/SDKs/StorageSync/Management.StorageSync/Generated/Models/CloudEndpointsPostBackupHeaders.cs b/src/SDKs/StorageSync/Management.StorageSync/Generated/Models/CloudEndpointsPostBackupHeaders.cs new file mode 100644 index 000000000000..e42c263ea894 --- /dev/null +++ b/src/SDKs/StorageSync/Management.StorageSync/Generated/Models/CloudEndpointsPostBackupHeaders.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.StorageSync.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// Defines headers for PostBackup operation. + /// + public partial class CloudEndpointsPostBackupHeaders + { + /// + /// Initializes a new instance of the CloudEndpointsPostBackupHeaders + /// class. + /// + public CloudEndpointsPostBackupHeaders() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the CloudEndpointsPostBackupHeaders + /// class. + /// + /// Operation Status Location URI + /// request id. + /// correlation request + /// id. + public CloudEndpointsPostBackupHeaders(string location = default(string), string xMsRequestId = default(string), string xMsCorrelationRequestId = default(string)) + { + Location = location; + XMsRequestId = xMsRequestId; + XMsCorrelationRequestId = xMsCorrelationRequestId; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets operation Status Location URI + /// + [JsonProperty(PropertyName = "Location")] + public string Location { get; set; } + + /// + /// Gets or sets request id. + /// + [JsonProperty(PropertyName = "x-ms-request-id")] + public string XMsRequestId { get; set; } + + /// + /// Gets or sets correlation request id. + /// + [JsonProperty(PropertyName = "x-ms-correlation-request-id")] + public string XMsCorrelationRequestId { get; set; } + + } +} diff --git a/src/SDKs/StorageSync/Management.StorageSync/Generated/Models/CloudEndpointsPostRestoreHeaders.cs b/src/SDKs/StorageSync/Management.StorageSync/Generated/Models/CloudEndpointsPostRestoreHeaders.cs new file mode 100644 index 000000000000..66054a0eb4b6 --- /dev/null +++ b/src/SDKs/StorageSync/Management.StorageSync/Generated/Models/CloudEndpointsPostRestoreHeaders.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.StorageSync.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// Defines headers for PostRestore operation. + /// + public partial class CloudEndpointsPostRestoreHeaders + { + /// + /// Initializes a new instance of the CloudEndpointsPostRestoreHeaders + /// class. + /// + public CloudEndpointsPostRestoreHeaders() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the CloudEndpointsPostRestoreHeaders + /// class. + /// + /// Operation Status Location URI + /// request id. + /// correlation request + /// id. + public CloudEndpointsPostRestoreHeaders(string location = default(string), string xMsRequestId = default(string), string xMsCorrelationRequestId = default(string)) + { + Location = location; + XMsRequestId = xMsRequestId; + XMsCorrelationRequestId = xMsCorrelationRequestId; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets operation Status Location URI + /// + [JsonProperty(PropertyName = "Location")] + public string Location { get; set; } + + /// + /// Gets or sets request id. + /// + [JsonProperty(PropertyName = "x-ms-request-id")] + public string XMsRequestId { get; set; } + + /// + /// Gets or sets correlation request id. + /// + [JsonProperty(PropertyName = "x-ms-correlation-request-id")] + public string XMsCorrelationRequestId { get; set; } + + } +} diff --git a/src/SDKs/StorageSync/Management.StorageSync/Generated/Models/CloudEndpointsPreBackupHeaders.cs b/src/SDKs/StorageSync/Management.StorageSync/Generated/Models/CloudEndpointsPreBackupHeaders.cs new file mode 100644 index 000000000000..adfad0f23ea2 --- /dev/null +++ b/src/SDKs/StorageSync/Management.StorageSync/Generated/Models/CloudEndpointsPreBackupHeaders.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.StorageSync.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// Defines headers for PreBackup operation. + /// + public partial class CloudEndpointsPreBackupHeaders + { + /// + /// Initializes a new instance of the CloudEndpointsPreBackupHeaders + /// class. + /// + public CloudEndpointsPreBackupHeaders() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the CloudEndpointsPreBackupHeaders + /// class. + /// + /// Operation Status Location URI + /// request id. + /// correlation request + /// id. + public CloudEndpointsPreBackupHeaders(string location = default(string), string xMsRequestId = default(string), string xMsCorrelationRequestId = default(string)) + { + Location = location; + XMsRequestId = xMsRequestId; + XMsCorrelationRequestId = xMsCorrelationRequestId; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets operation Status Location URI + /// + [JsonProperty(PropertyName = "Location")] + public string Location { get; set; } + + /// + /// Gets or sets request id. + /// + [JsonProperty(PropertyName = "x-ms-request-id")] + public string XMsRequestId { get; set; } + + /// + /// Gets or sets correlation request id. + /// + [JsonProperty(PropertyName = "x-ms-correlation-request-id")] + public string XMsCorrelationRequestId { get; set; } + + } +} diff --git a/src/SDKs/StorageSync/Management.StorageSync/Generated/Models/CloudEndpointsPreRestoreHeaders.cs b/src/SDKs/StorageSync/Management.StorageSync/Generated/Models/CloudEndpointsPreRestoreHeaders.cs new file mode 100644 index 000000000000..aafa91c4b3db --- /dev/null +++ b/src/SDKs/StorageSync/Management.StorageSync/Generated/Models/CloudEndpointsPreRestoreHeaders.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.StorageSync.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// Defines headers for PreRestore operation. + /// + public partial class CloudEndpointsPreRestoreHeaders + { + /// + /// Initializes a new instance of the CloudEndpointsPreRestoreHeaders + /// class. + /// + public CloudEndpointsPreRestoreHeaders() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the CloudEndpointsPreRestoreHeaders + /// class. + /// + /// Operation Status Location URI + /// request id. + /// correlation request + /// id. + public CloudEndpointsPreRestoreHeaders(string location = default(string), string xMsRequestId = default(string), string xMsCorrelationRequestId = default(string)) + { + Location = location; + XMsRequestId = xMsRequestId; + XMsCorrelationRequestId = xMsCorrelationRequestId; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets operation Status Location URI + /// + [JsonProperty(PropertyName = "Location")] + public string Location { get; set; } + + /// + /// Gets or sets request id. + /// + [JsonProperty(PropertyName = "x-ms-request-id")] + public string XMsRequestId { get; set; } + + /// + /// Gets or sets correlation request id. + /// + [JsonProperty(PropertyName = "x-ms-correlation-request-id")] + public string XMsCorrelationRequestId { get; set; } + + } +} diff --git a/src/SDKs/StorageSync/Management.StorageSync/Generated/Models/CloudEndpointsRestoreheartbeatHeaders.cs b/src/SDKs/StorageSync/Management.StorageSync/Generated/Models/CloudEndpointsRestoreheartbeatHeaders.cs new file mode 100644 index 000000000000..e1f9851e906c --- /dev/null +++ b/src/SDKs/StorageSync/Management.StorageSync/Generated/Models/CloudEndpointsRestoreheartbeatHeaders.cs @@ -0,0 +1,62 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.StorageSync.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// Defines headers for restoreheartbeat operation. + /// + public partial class CloudEndpointsRestoreheartbeatHeaders + { + /// + /// Initializes a new instance of the + /// CloudEndpointsRestoreheartbeatHeaders class. + /// + public CloudEndpointsRestoreheartbeatHeaders() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the + /// CloudEndpointsRestoreheartbeatHeaders class. + /// + /// request id. + /// correlation request + /// id. + public CloudEndpointsRestoreheartbeatHeaders(string xMsRequestId = default(string), string xMsCorrelationRequestId = default(string)) + { + XMsRequestId = xMsRequestId; + XMsCorrelationRequestId = xMsCorrelationRequestId; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets request id. + /// + [JsonProperty(PropertyName = "x-ms-request-id")] + public string XMsRequestId { get; set; } + + /// + /// Gets or sets correlation request id. + /// + [JsonProperty(PropertyName = "x-ms-correlation-request-id")] + public string XMsCorrelationRequestId { get; set; } + + } +} diff --git a/src/SDKs/StorageSync/Management.StorageSync/Generated/Models/NameAvailabilityReason.cs b/src/SDKs/StorageSync/Management.StorageSync/Generated/Models/NameAvailabilityReason.cs new file mode 100644 index 000000000000..c757246d7ebf --- /dev/null +++ b/src/SDKs/StorageSync/Management.StorageSync/Generated/Models/NameAvailabilityReason.cs @@ -0,0 +1,60 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.StorageSync.Models +{ + using Newtonsoft.Json; + using Newtonsoft.Json.Converters; + using System.Runtime; + using System.Runtime.Serialization; + + /// + /// Defines values for NameAvailabilityReason. + /// + [JsonConverter(typeof(StringEnumConverter))] + public enum NameAvailabilityReason + { + [EnumMember(Value = "Invalid")] + Invalid, + [EnumMember(Value = "AlreadyExists")] + AlreadyExists + } + internal static class NameAvailabilityReasonEnumExtension + { + internal static string ToSerializedValue(this NameAvailabilityReason? value) + { + return value == null ? null : ((NameAvailabilityReason)value).ToSerializedValue(); + } + + internal static string ToSerializedValue(this NameAvailabilityReason value) + { + switch( value ) + { + case NameAvailabilityReason.Invalid: + return "Invalid"; + case NameAvailabilityReason.AlreadyExists: + return "AlreadyExists"; + } + return null; + } + + internal static NameAvailabilityReason? ParseNameAvailabilityReason(this string value) + { + switch( value ) + { + case "Invalid": + return NameAvailabilityReason.Invalid; + case "AlreadyExists": + return NameAvailabilityReason.AlreadyExists; + } + return null; + } + } +} diff --git a/src/SDKs/StorageSync/Management.StorageSync/Generated/Models/OperationDisplayInfo.cs b/src/SDKs/StorageSync/Management.StorageSync/Generated/Models/OperationDisplayInfo.cs new file mode 100644 index 000000000000..acd6c970c58c --- /dev/null +++ b/src/SDKs/StorageSync/Management.StorageSync/Generated/Models/OperationDisplayInfo.cs @@ -0,0 +1,79 @@ +// +// 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.StorageSync.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// The operation supported by storage sync. + /// + public partial class OperationDisplayInfo + { + /// + /// Initializes a new instance of the OperationDisplayInfo class. + /// + public OperationDisplayInfo() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the OperationDisplayInfo class. + /// + /// The description of the operation. + /// The action that users can perform, based on + /// their permission level. + /// Service provider: Microsoft + /// StorageSync. + /// Resource on which the operation is + /// performed. + public OperationDisplayInfo(string description = default(string), string operation = default(string), string provider = default(string), string resource = default(string)) + { + Description = description; + Operation = operation; + Provider = provider; + Resource = resource; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the description of the operation. + /// + [JsonProperty(PropertyName = "description")] + public string Description { get; set; } + + /// + /// Gets or sets the action that users can perform, based on their + /// permission level. + /// + [JsonProperty(PropertyName = "operation")] + public string Operation { get; set; } + + /// + /// Gets or sets service provider: Microsoft StorageSync. + /// + [JsonProperty(PropertyName = "provider")] + public string Provider { get; set; } + + /// + /// Gets or sets resource on which the operation is performed. + /// + [JsonProperty(PropertyName = "resource")] + public string Resource { get; set; } + + } +} diff --git a/src/SDKs/StorageSync/Management.StorageSync/Generated/Models/OperationDisplayResource.cs b/src/SDKs/StorageSync/Management.StorageSync/Generated/Models/OperationDisplayResource.cs new file mode 100644 index 000000000000..450055830430 --- /dev/null +++ b/src/SDKs/StorageSync/Management.StorageSync/Generated/Models/OperationDisplayResource.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.StorageSync.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// Operation Display Resource object. + /// + public partial class OperationDisplayResource + { + /// + /// Initializes a new instance of the OperationDisplayResource class. + /// + public OperationDisplayResource() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the OperationDisplayResource class. + /// + /// Operation Display Resource Provider. + /// Operation Display Resource. + /// Operation Display Resource + /// Operation. + /// Operation Display Resource + /// Description. + public OperationDisplayResource(string provider = default(string), string resource = default(string), string operation = default(string), string description = default(string)) + { + Provider = provider; + Resource = resource; + Operation = operation; + Description = description; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets operation Display Resource Provider. + /// + [JsonProperty(PropertyName = "provider")] + public string Provider { get; set; } + + /// + /// Gets or sets operation Display Resource. + /// + [JsonProperty(PropertyName = "resource")] + public string Resource { get; set; } + + /// + /// Gets or sets operation Display Resource Operation. + /// + [JsonProperty(PropertyName = "operation")] + public string Operation { get; set; } + + /// + /// Gets or sets operation Display Resource Description. + /// + [JsonProperty(PropertyName = "description")] + public string Description { get; set; } + + } +} diff --git a/src/SDKs/StorageSync/Management.StorageSync/Generated/Models/OperationEntity.cs b/src/SDKs/StorageSync/Management.StorageSync/Generated/Models/OperationEntity.cs new file mode 100644 index 000000000000..9d4237608285 --- /dev/null +++ b/src/SDKs/StorageSync/Management.StorageSync/Generated/Models/OperationEntity.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.StorageSync.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// The operation supported by storage sync. + /// + public partial class OperationEntity + { + /// + /// Initializes a new instance of the OperationEntity class. + /// + public OperationEntity() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the OperationEntity class. + /// + /// Operation name: + /// {provider}/{resource}/{operation}. + /// The operation supported by storage + /// sync. + /// The origin. + public OperationEntity(string name = default(string), OperationDisplayInfo display = default(OperationDisplayInfo), string origin = default(string)) + { + Name = name; + Display = display; + Origin = origin; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets operation name: {provider}/{resource}/{operation}. + /// + [JsonProperty(PropertyName = "name")] + public string Name { get; set; } + + /// + /// Gets or sets the operation supported by storage sync. + /// + [JsonProperty(PropertyName = "display")] + public OperationDisplayInfo Display { get; set; } + + /// + /// Gets or sets the origin. + /// + [JsonProperty(PropertyName = "origin")] + public string Origin { get; set; } + + } +} diff --git a/src/SDKs/StorageSync/Management.StorageSync/Generated/Models/OperationsListHeaders.cs b/src/SDKs/StorageSync/Management.StorageSync/Generated/Models/OperationsListHeaders.cs new file mode 100644 index 000000000000..c8e7d77dfd06 --- /dev/null +++ b/src/SDKs/StorageSync/Management.StorageSync/Generated/Models/OperationsListHeaders.cs @@ -0,0 +1,60 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.StorageSync.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// Defines headers for List operation. + /// + public partial class OperationsListHeaders + { + /// + /// Initializes a new instance of the OperationsListHeaders class. + /// + public OperationsListHeaders() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the OperationsListHeaders class. + /// + /// request id. + /// correlation request + /// id. + public OperationsListHeaders(string xMsRequestId = default(string), string xMsCorrelationRequestId = default(string)) + { + XMsRequestId = xMsRequestId; + XMsCorrelationRequestId = xMsCorrelationRequestId; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets request id. + /// + [JsonProperty(PropertyName = "x-ms-request-id")] + public string XMsRequestId { get; set; } + + /// + /// Gets or sets correlation request id. + /// + [JsonProperty(PropertyName = "x-ms-correlation-request-id")] + public string XMsCorrelationRequestId { get; set; } + + } +} diff --git a/src/SDKs/StorageSync/Management.StorageSync/Generated/Models/Page.cs b/src/SDKs/StorageSync/Management.StorageSync/Generated/Models/Page.cs new file mode 100644 index 000000000000..715c9b50409a --- /dev/null +++ b/src/SDKs/StorageSync/Management.StorageSync/Generated/Models/Page.cs @@ -0,0 +1,53 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.StorageSync.Models +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + + /// + /// Defines a page in Azure responses. + /// + /// Type of the page content items + [JsonObject] + public class Page : IPage + { + /// + /// Gets the link to the next page. + /// + [JsonProperty("nextLink")] + public string NextPageLink { get; private set; } + + [JsonProperty("value")] + private IList Items{ get; set; } + + /// + /// Returns an enumerator that iterates through the collection. + /// + /// A an enumerator that can be used to iterate through the collection. + public IEnumerator GetEnumerator() + { + return Items == null ? System.Linq.Enumerable.Empty().GetEnumerator() : Items.GetEnumerator(); + } + + /// + /// Returns an enumerator that iterates through the collection. + /// + /// A an enumerator that can be used to iterate through the collection. + IEnumerator IEnumerable.GetEnumerator() + { + return GetEnumerator(); + } + } +} diff --git a/src/SDKs/StorageSync/Management.StorageSync/Generated/Models/Page1.cs b/src/SDKs/StorageSync/Management.StorageSync/Generated/Models/Page1.cs new file mode 100644 index 000000000000..ff5764eff5e7 --- /dev/null +++ b/src/SDKs/StorageSync/Management.StorageSync/Generated/Models/Page1.cs @@ -0,0 +1,53 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.StorageSync.Models +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + + /// + /// Defines a page in Azure responses. + /// + /// Type of the page content items + [JsonObject] + public class Page1 : IPage + { + /// + /// Gets the link to the next page. + /// + [JsonProperty("")] + public string NextPageLink { get; private set; } + + [JsonProperty("value")] + private IList Items{ get; set; } + + /// + /// Returns an enumerator that iterates through the collection. + /// + /// A an enumerator that can be used to iterate through the collection. + public IEnumerator GetEnumerator() + { + return Items == null ? System.Linq.Enumerable.Empty().GetEnumerator() : Items.GetEnumerator(); + } + + /// + /// Returns an enumerator that iterates through the collection. + /// + /// A an enumerator that can be used to iterate through the collection. + IEnumerator IEnumerable.GetEnumerator() + { + return GetEnumerator(); + } + } +} diff --git a/src/SDKs/StorageSync/Management.StorageSync/Generated/Models/PostBackupResponse.cs b/src/SDKs/StorageSync/Management.StorageSync/Generated/Models/PostBackupResponse.cs new file mode 100644 index 000000000000..387f2193add3 --- /dev/null +++ b/src/SDKs/StorageSync/Management.StorageSync/Generated/Models/PostBackupResponse.cs @@ -0,0 +1,54 @@ +// +// 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.StorageSync.Models +{ + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + using Newtonsoft.Json; + using System.Linq; + + /// + /// Post Backup Response + /// + [Rest.Serialization.JsonTransformation] + public partial class PostBackupResponse + { + /// + /// Initializes a new instance of the PostBackupResponse class. + /// + public PostBackupResponse() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the PostBackupResponse class. + /// + /// cloud endpoint Name. + public PostBackupResponse(string cloudEndpointName = default(string)) + { + CloudEndpointName = cloudEndpointName; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets cloud endpoint Name. + /// + [JsonProperty(PropertyName = "backupMetadata.cloudEndpointName")] + public string CloudEndpointName { get; private set; } + + } +} diff --git a/src/SDKs/StorageSync/Management.StorageSync/Generated/Models/PostRestoreRequest.cs b/src/SDKs/StorageSync/Management.StorageSync/Generated/Models/PostRestoreRequest.cs new file mode 100644 index 000000000000..d11895dd3065 --- /dev/null +++ b/src/SDKs/StorageSync/Management.StorageSync/Generated/Models/PostRestoreRequest.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.StorageSync.Models +{ + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// Post Restore Request + /// + public partial class PostRestoreRequest + { + /// + /// Initializes a new instance of the PostRestoreRequest class. + /// + public PostRestoreRequest() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the PostRestoreRequest class. + /// + /// Post Restore partition. + /// Post Restore replica group. + /// Post Restore request id. + /// Post Restore Azure file share + /// uri. + /// Post Restore Azure status. + /// Post Restore Azure source + /// azure file share uri. + /// Post Restore Azure failed file + /// list. + /// Post Restore restore file spec + /// array. + public PostRestoreRequest(string partition = default(string), string replicaGroup = default(string), string requestId = default(string), string azureFileShareUri = default(string), string status = default(string), string sourceAzureFileShareUri = default(string), string failedFileList = default(string), IList restoreFileSpec = default(IList)) + { + Partition = partition; + ReplicaGroup = replicaGroup; + RequestId = requestId; + AzureFileShareUri = azureFileShareUri; + Status = status; + SourceAzureFileShareUri = sourceAzureFileShareUri; + FailedFileList = failedFileList; + RestoreFileSpec = restoreFileSpec; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets post Restore partition. + /// + [JsonProperty(PropertyName = "partition")] + public string Partition { get; set; } + + /// + /// Gets or sets post Restore replica group. + /// + [JsonProperty(PropertyName = "replicaGroup")] + public string ReplicaGroup { get; set; } + + /// + /// Gets or sets post Restore request id. + /// + [JsonProperty(PropertyName = "requestId")] + public string RequestId { get; set; } + + /// + /// Gets or sets post Restore Azure file share uri. + /// + [JsonProperty(PropertyName = "azureFileShareUri")] + public string AzureFileShareUri { get; set; } + + /// + /// Gets or sets post Restore Azure status. + /// + [JsonProperty(PropertyName = "status")] + public string Status { get; set; } + + /// + /// Gets or sets post Restore Azure source azure file share uri. + /// + [JsonProperty(PropertyName = "sourceAzureFileShareUri")] + public string SourceAzureFileShareUri { get; set; } + + /// + /// Gets or sets post Restore Azure failed file list. + /// + [JsonProperty(PropertyName = "failedFileList")] + public string FailedFileList { get; set; } + + /// + /// Gets or sets post Restore restore file spec array. + /// + [JsonProperty(PropertyName = "restoreFileSpec")] + public IList RestoreFileSpec { get; set; } + + } +} diff --git a/src/SDKs/StorageSync/Management.StorageSync/Generated/Models/PreRestoreRequest.cs b/src/SDKs/StorageSync/Management.StorageSync/Generated/Models/PreRestoreRequest.cs new file mode 100644 index 000000000000..ec679911b72f --- /dev/null +++ b/src/SDKs/StorageSync/Management.StorageSync/Generated/Models/PreRestoreRequest.cs @@ -0,0 +1,123 @@ +// +// 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.StorageSync.Models +{ + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// Pre Restore request object. + /// + public partial class PreRestoreRequest + { + /// + /// Initializes a new instance of the PreRestoreRequest class. + /// + public PreRestoreRequest() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the PreRestoreRequest class. + /// + /// Pre Restore partition. + /// Pre Restore replica group. + /// Pre Restore request id. + /// Pre Restore Azure file share + /// uri. + /// Pre Restore Azure status. + /// Pre Restore Azure source + /// azure file share uri. + /// Pre Restore backup metadata + /// property bag. + /// Pre Restore restore file spec + /// array. + /// Pre Restore + /// pause wait for sync drain time period in seconds. + public PreRestoreRequest(string partition = default(string), string replicaGroup = default(string), string requestId = default(string), string azureFileShareUri = default(string), string status = default(string), string sourceAzureFileShareUri = default(string), string backupMetadataPropertyBag = default(string), IList restoreFileSpec = default(IList), int? pauseWaitForSyncDrainTimePeriodInSeconds = default(int?)) + { + Partition = partition; + ReplicaGroup = replicaGroup; + RequestId = requestId; + AzureFileShareUri = azureFileShareUri; + Status = status; + SourceAzureFileShareUri = sourceAzureFileShareUri; + BackupMetadataPropertyBag = backupMetadataPropertyBag; + RestoreFileSpec = restoreFileSpec; + PauseWaitForSyncDrainTimePeriodInSeconds = pauseWaitForSyncDrainTimePeriodInSeconds; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets pre Restore partition. + /// + [JsonProperty(PropertyName = "partition")] + public string Partition { get; set; } + + /// + /// Gets or sets pre Restore replica group. + /// + [JsonProperty(PropertyName = "replicaGroup")] + public string ReplicaGroup { get; set; } + + /// + /// Gets or sets pre Restore request id. + /// + [JsonProperty(PropertyName = "requestId")] + public string RequestId { get; set; } + + /// + /// Gets or sets pre Restore Azure file share uri. + /// + [JsonProperty(PropertyName = "azureFileShareUri")] + public string AzureFileShareUri { get; set; } + + /// + /// Gets or sets pre Restore Azure status. + /// + [JsonProperty(PropertyName = "status")] + public string Status { get; set; } + + /// + /// Gets or sets pre Restore Azure source azure file share uri. + /// + [JsonProperty(PropertyName = "sourceAzureFileShareUri")] + public string SourceAzureFileShareUri { get; set; } + + /// + /// Gets or sets pre Restore backup metadata property bag. + /// + [JsonProperty(PropertyName = "backupMetadataPropertyBag")] + public string BackupMetadataPropertyBag { get; set; } + + /// + /// Gets or sets pre Restore restore file spec array. + /// + [JsonProperty(PropertyName = "restoreFileSpec")] + public IList RestoreFileSpec { get; set; } + + /// + /// Gets or sets pre Restore pause wait for sync drain time period in + /// seconds. + /// + [JsonProperty(PropertyName = "pauseWaitForSyncDrainTimePeriodInSeconds")] + public int? PauseWaitForSyncDrainTimePeriodInSeconds { get; set; } + + } +} diff --git a/src/SDKs/StorageSync/Management.StorageSync/Generated/Models/ProxyResource.cs b/src/SDKs/StorageSync/Management.StorageSync/Generated/Models/ProxyResource.cs new file mode 100644 index 000000000000..58a9ed0f4ddc --- /dev/null +++ b/src/SDKs/StorageSync/Management.StorageSync/Generated/Models/ProxyResource.cs @@ -0,0 +1,50 @@ +// +// 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.StorageSync.Models +{ + using System.Linq; + + /// + /// The resource model definition for a ARM proxy resource. It will have + /// everything other than required location and tags + /// + public partial class ProxyResource : Resource + { + /// + /// Initializes a new instance of the ProxyResource class. + /// + public ProxyResource() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the ProxyResource class. + /// + /// Fully qualified resource Id for the resource. Ex - + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + /// The name of the resource + /// The type of the resource. Ex- + /// Microsoft.Compute/virtualMachines or + /// Microsoft.Storage/storageAccounts. + 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/src/SDKs/StorageSync/Management.StorageSync/Generated/Models/Reason.cs b/src/SDKs/StorageSync/Management.StorageSync/Generated/Models/Reason.cs new file mode 100644 index 000000000000..d73d5510f296 --- /dev/null +++ b/src/SDKs/StorageSync/Management.StorageSync/Generated/Models/Reason.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.StorageSync.Models +{ + + /// + /// Defines values for Reason. + /// + public static class Reason + { + public const string Registered = "Registered"; + public const string Unregistered = "Unregistered"; + public const string Warned = "Warned"; + public const string Suspended = "Suspended"; + public const string Deleted = "Deleted"; + } +} diff --git a/src/SDKs/StorageSync/Management.StorageSync/Generated/Models/RecallActionParameters.cs b/src/SDKs/StorageSync/Management.StorageSync/Generated/Models/RecallActionParameters.cs new file mode 100644 index 000000000000..601b8e80d052 --- /dev/null +++ b/src/SDKs/StorageSync/Management.StorageSync/Generated/Models/RecallActionParameters.cs @@ -0,0 +1,59 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.StorageSync.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// The parameters used when calling recall action on server endpoint. + /// + public partial class RecallActionParameters + { + /// + /// Initializes a new instance of the RecallActionParameters class. + /// + public RecallActionParameters() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the RecallActionParameters class. + /// + /// Pattern of the files. + /// Recall path. + public RecallActionParameters(string pattern = default(string), string recallPath = default(string)) + { + Pattern = pattern; + RecallPath = recallPath; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets pattern of the files. + /// + [JsonProperty(PropertyName = "pattern")] + public string Pattern { get; set; } + + /// + /// Gets or sets recall path. + /// + [JsonProperty(PropertyName = "recallPath")] + public string RecallPath { get; set; } + + } +} diff --git a/src/SDKs/StorageSync/Management.StorageSync/Generated/Models/RegisteredServer.cs b/src/SDKs/StorageSync/Management.StorageSync/Generated/Models/RegisteredServer.cs new file mode 100644 index 000000000000..573e2520d745 --- /dev/null +++ b/src/SDKs/StorageSync/Management.StorageSync/Generated/Models/RegisteredServer.cs @@ -0,0 +1,205 @@ +// +// 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.StorageSync.Models +{ + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + using Newtonsoft.Json; + using System.Linq; + + /// + /// Registered Server resource. + /// + [Rest.Serialization.JsonTransformation] + public partial class RegisteredServer : Resource + { + /// + /// Initializes a new instance of the RegisteredServer class. + /// + public RegisteredServer() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the RegisteredServer class. + /// + /// Fully qualified resource Id for the resource. Ex - + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + /// The name of the resource + /// The type of the resource. Ex- + /// Microsoft.Compute/virtualMachines or + /// Microsoft.Storage/storageAccounts. + /// Registered Server + /// Certificate + /// Registered Server Agent Version + /// Registered Server OS Version + /// Registered Server + /// Management Error Code + /// Registered Server last heart + /// beat + /// Registered Server Provisioning + /// State + /// Registered Server serverRole + /// Registered Server clusterId + /// Registered Server clusterName + /// Registered Server serverId + /// Registered Server + /// storageSyncServiceUid + /// Registered Server + /// lastWorkflowId + /// Resource Last Operation + /// Name + /// Resource + /// discoveryEndpointUri + /// Resource Location + /// Service Location + /// Friendly Name + /// Management Endpoint Uri + public RegisteredServer(string id = default(string), string name = default(string), string type = default(string), string serverCertificate = default(string), string agentVersion = default(string), string serverOSVersion = default(string), int? serverManagementtErrorCode = default(int?), string lastHeartBeat = default(string), string provisioningState = default(string), string serverRole = default(string), string clusterId = default(string), string clusterName = default(string), string serverId = default(string), string storageSyncServiceUid = default(string), string lastWorkflowId = default(string), string lastOperationName = default(string), string discoveryEndpointUri = default(string), string resourceLocation = default(string), string serviceLocation = default(string), string friendlyName = default(string), string managementEndpointUri = default(string)) + : base(id, name, type) + { + ServerCertificate = serverCertificate; + AgentVersion = agentVersion; + ServerOSVersion = serverOSVersion; + ServerManagementtErrorCode = serverManagementtErrorCode; + LastHeartBeat = lastHeartBeat; + ProvisioningState = provisioningState; + ServerRole = serverRole; + ClusterId = clusterId; + ClusterName = clusterName; + ServerId = serverId; + StorageSyncServiceUid = storageSyncServiceUid; + LastWorkflowId = lastWorkflowId; + LastOperationName = lastOperationName; + DiscoveryEndpointUri = discoveryEndpointUri; + ResourceLocation = resourceLocation; + ServiceLocation = serviceLocation; + FriendlyName = friendlyName; + ManagementEndpointUri = managementEndpointUri; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets registered Server Certificate + /// + [JsonProperty(PropertyName = "properties.serverCertificate")] + public string ServerCertificate { get; set; } + + /// + /// Gets or sets registered Server Agent Version + /// + [JsonProperty(PropertyName = "properties.agentVersion")] + public string AgentVersion { get; set; } + + /// + /// Gets or sets registered Server OS Version + /// + [JsonProperty(PropertyName = "properties.serverOSVersion")] + public string ServerOSVersion { get; set; } + + /// + /// Gets or sets registered Server Management Error Code + /// + [JsonProperty(PropertyName = "properties.serverManagementtErrorCode")] + public int? ServerManagementtErrorCode { get; set; } + + /// + /// Gets or sets registered Server last heart beat + /// + [JsonProperty(PropertyName = "properties.lastHeartBeat")] + public string LastHeartBeat { get; set; } + + /// + /// Gets or sets registered Server Provisioning State + /// + [JsonProperty(PropertyName = "properties.provisioningState")] + public string ProvisioningState { get; set; } + + /// + /// Gets or sets registered Server serverRole + /// + [JsonProperty(PropertyName = "properties.serverRole")] + public string ServerRole { get; set; } + + /// + /// Gets or sets registered Server clusterId + /// + [JsonProperty(PropertyName = "properties.clusterId")] + public string ClusterId { get; set; } + + /// + /// Gets or sets registered Server clusterName + /// + [JsonProperty(PropertyName = "properties.clusterName")] + public string ClusterName { get; set; } + + /// + /// Gets or sets registered Server serverId + /// + [JsonProperty(PropertyName = "properties.serverId")] + public string ServerId { get; set; } + + /// + /// Gets or sets registered Server storageSyncServiceUid + /// + [JsonProperty(PropertyName = "properties.storageSyncServiceUid")] + public string StorageSyncServiceUid { get; set; } + + /// + /// Gets or sets registered Server lastWorkflowId + /// + [JsonProperty(PropertyName = "properties.lastWorkflowId")] + public string LastWorkflowId { get; set; } + + /// + /// Gets or sets resource Last Operation Name + /// + [JsonProperty(PropertyName = "properties.lastOperationName")] + public string LastOperationName { get; set; } + + /// + /// Gets or sets resource discoveryEndpointUri + /// + [JsonProperty(PropertyName = "properties.discoveryEndpointUri")] + public string DiscoveryEndpointUri { get; set; } + + /// + /// Gets or sets resource Location + /// + [JsonProperty(PropertyName = "properties.resourceLocation")] + public string ResourceLocation { get; set; } + + /// + /// Gets or sets service Location + /// + [JsonProperty(PropertyName = "properties.serviceLocation")] + public string ServiceLocation { get; set; } + + /// + /// Gets or sets friendly Name + /// + [JsonProperty(PropertyName = "properties.friendlyName")] + public string FriendlyName { get; set; } + + /// + /// Gets or sets management Endpoint Uri + /// + [JsonProperty(PropertyName = "properties.managementEndpointUri")] + public string ManagementEndpointUri { get; set; } + + } +} diff --git a/src/SDKs/StorageSync/Management.StorageSync/Generated/Models/RegisteredServerCreateParameters.cs b/src/SDKs/StorageSync/Management.StorageSync/Generated/Models/RegisteredServerCreateParameters.cs new file mode 100644 index 000000000000..dc7a7503b36c --- /dev/null +++ b/src/SDKs/StorageSync/Management.StorageSync/Generated/Models/RegisteredServerCreateParameters.cs @@ -0,0 +1,159 @@ +// +// 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.StorageSync.Models +{ + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// The parameters used when creating a storage sync service. + /// + [Rest.Serialization.JsonTransformation] + public partial class RegisteredServerCreateParameters + { + /// + /// Initializes a new instance of the RegisteredServerCreateParameters + /// class. + /// + public RegisteredServerCreateParameters() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the RegisteredServerCreateParameters + /// class. + /// + /// Required. Gets or sets the location of the + /// resource. This will be one of the supported and registered Azure + /// Geo Regions (e.g. West US, East US, Southeast Asia, etc.). The geo + /// region of a resource cannot be changed once it is created, but if + /// an identical geo region is specified on update, the request will + /// succeed. + /// Gets or sets a list of key value pairs that + /// describe the resource. These tags can be used for viewing and + /// grouping this resource (across resource groups). A maximum of 15 + /// tags can be provided for a resource. Each tag must have a key with + /// a length no greater than 128 characters and a value with a length + /// no greater than 256 characters. + /// Registered Server + /// Certificate + /// Registered Server Agent Version + /// Registered Server OS Version + /// Registered Server last heart + /// beat + /// Registered Server serverRole + /// Registered Server clusterId + /// Registered Server clusterName + /// Registered Server serverId + /// Friendly Name + public RegisteredServerCreateParameters(string location = default(string), IDictionary tags = default(IDictionary), string serverCertificate = default(string), string agentVersion = default(string), string serverOSVersion = default(string), string lastHeartBeat = default(string), string serverRole = default(string), string clusterId = default(string), string clusterName = default(string), string serverId = default(string), string friendlyName = default(string)) + { + Location = location; + Tags = tags; + ServerCertificate = serverCertificate; + AgentVersion = agentVersion; + ServerOSVersion = serverOSVersion; + LastHeartBeat = lastHeartBeat; + ServerRole = serverRole; + ClusterId = clusterId; + ClusterName = clusterName; + ServerId = serverId; + FriendlyName = friendlyName; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets required. Gets or sets the location of the resource. + /// This will be one of the supported and registered Azure Geo Regions + /// (e.g. West US, East US, Southeast Asia, etc.). The geo region of a + /// resource cannot be changed once it is created, but if an identical + /// geo region is specified on update, the request will succeed. + /// + [JsonProperty(PropertyName = "location")] + public string Location { get; set; } + + /// + /// Gets or sets a list of key value pairs that describe the resource. + /// These tags can be used for viewing and grouping this resource + /// (across resource groups). A maximum of 15 tags can be provided for + /// a resource. Each tag must have a key with a length no greater than + /// 128 characters and a value with a length no greater than 256 + /// characters. + /// + [JsonProperty(PropertyName = "tags")] + public IDictionary Tags { get; set; } + + /// + /// Gets or sets registered Server Certificate + /// + [JsonProperty(PropertyName = "properties.serverCertificate")] + public string ServerCertificate { get; set; } + + /// + /// Gets or sets registered Server Agent Version + /// + [JsonProperty(PropertyName = "properties.agentVersion")] + public string AgentVersion { get; set; } + + /// + /// Gets or sets registered Server OS Version + /// + [JsonProperty(PropertyName = "properties.serverOSVersion")] + public string ServerOSVersion { get; set; } + + /// + /// Gets or sets registered Server last heart beat + /// + [JsonProperty(PropertyName = "properties.lastHeartBeat")] + public string LastHeartBeat { get; set; } + + /// + /// Gets or sets registered Server serverRole + /// + [JsonProperty(PropertyName = "properties.serverRole")] + public string ServerRole { get; set; } + + /// + /// Gets or sets registered Server clusterId + /// + [JsonProperty(PropertyName = "properties.clusterId")] + public string ClusterId { get; set; } + + /// + /// Gets or sets registered Server clusterName + /// + [JsonProperty(PropertyName = "properties.clusterName")] + public string ClusterName { get; set; } + + /// + /// Gets or sets registered Server serverId + /// + [JsonProperty(PropertyName = "properties.serverId")] + public string ServerId { get; set; } + + /// + /// Gets or sets friendly Name + /// + [JsonProperty(PropertyName = "properties.friendlyName")] + public string FriendlyName { get; set; } + + } +} diff --git a/src/SDKs/StorageSync/Management.StorageSync/Generated/Models/RegisteredServersCreateHeaders.cs b/src/SDKs/StorageSync/Management.StorageSync/Generated/Models/RegisteredServersCreateHeaders.cs new file mode 100644 index 000000000000..722b8a14ed41 --- /dev/null +++ b/src/SDKs/StorageSync/Management.StorageSync/Generated/Models/RegisteredServersCreateHeaders.cs @@ -0,0 +1,79 @@ +// +// 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.StorageSync.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// Defines headers for Create operation. + /// + public partial class RegisteredServersCreateHeaders + { + /// + /// Initializes a new instance of the RegisteredServersCreateHeaders + /// class. + /// + public RegisteredServersCreateHeaders() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the RegisteredServersCreateHeaders + /// class. + /// + /// request id. + /// correlation request + /// id. + /// Operation Status Location + /// URI + /// Operation Status Location URI + public RegisteredServersCreateHeaders(string xMsRequestId = default(string), string xMsCorrelationRequestId = default(string), string azureAsyncOperation = default(string), string location = default(string)) + { + XMsRequestId = xMsRequestId; + XMsCorrelationRequestId = xMsCorrelationRequestId; + AzureAsyncOperation = azureAsyncOperation; + Location = location; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets request id. + /// + [JsonProperty(PropertyName = "x-ms-request-id")] + public string XMsRequestId { get; set; } + + /// + /// Gets or sets correlation request id. + /// + [JsonProperty(PropertyName = "x-ms-correlation-request-id")] + public string XMsCorrelationRequestId { get; set; } + + /// + /// Gets or sets operation Status Location URI + /// + [JsonProperty(PropertyName = "Azure-AsyncOperation")] + public string AzureAsyncOperation { get; set; } + + /// + /// Gets or sets operation Status Location URI + /// + [JsonProperty(PropertyName = "Location")] + public string Location { get; set; } + + } +} diff --git a/src/SDKs/StorageSync/Management.StorageSync/Generated/Models/RegisteredServersDeleteHeaders.cs b/src/SDKs/StorageSync/Management.StorageSync/Generated/Models/RegisteredServersDeleteHeaders.cs new file mode 100644 index 000000000000..5dcd959e971c --- /dev/null +++ b/src/SDKs/StorageSync/Management.StorageSync/Generated/Models/RegisteredServersDeleteHeaders.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.StorageSync.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// Defines headers for Delete operation. + /// + public partial class RegisteredServersDeleteHeaders + { + /// + /// Initializes a new instance of the RegisteredServersDeleteHeaders + /// class. + /// + public RegisteredServersDeleteHeaders() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the RegisteredServersDeleteHeaders + /// class. + /// + /// request id. + /// correlation request + /// id. + /// Operation Status Location URI + public RegisteredServersDeleteHeaders(string xMsRequestId = default(string), string xMsCorrelationRequestId = default(string), string location = default(string)) + { + XMsRequestId = xMsRequestId; + XMsCorrelationRequestId = xMsCorrelationRequestId; + Location = location; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets request id. + /// + [JsonProperty(PropertyName = "x-ms-request-id")] + public string XMsRequestId { get; set; } + + /// + /// Gets or sets correlation request id. + /// + [JsonProperty(PropertyName = "x-ms-correlation-request-id")] + public string XMsCorrelationRequestId { get; set; } + + /// + /// Gets or sets operation Status Location URI + /// + [JsonProperty(PropertyName = "Location")] + public string Location { get; set; } + + } +} diff --git a/src/SDKs/StorageSync/Management.StorageSync/Generated/Models/RegisteredServersGetHeaders.cs b/src/SDKs/StorageSync/Management.StorageSync/Generated/Models/RegisteredServersGetHeaders.cs new file mode 100644 index 000000000000..86eb5ca7f714 --- /dev/null +++ b/src/SDKs/StorageSync/Management.StorageSync/Generated/Models/RegisteredServersGetHeaders.cs @@ -0,0 +1,62 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.StorageSync.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// Defines headers for Get operation. + /// + public partial class RegisteredServersGetHeaders + { + /// + /// Initializes a new instance of the RegisteredServersGetHeaders + /// class. + /// + public RegisteredServersGetHeaders() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the RegisteredServersGetHeaders + /// class. + /// + /// request id. + /// correlation request + /// id. + public RegisteredServersGetHeaders(string xMsRequestId = default(string), string xMsCorrelationRequestId = default(string)) + { + XMsRequestId = xMsRequestId; + XMsCorrelationRequestId = xMsCorrelationRequestId; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets request id. + /// + [JsonProperty(PropertyName = "x-ms-request-id")] + public string XMsRequestId { get; set; } + + /// + /// Gets or sets correlation request id. + /// + [JsonProperty(PropertyName = "x-ms-correlation-request-id")] + public string XMsCorrelationRequestId { get; set; } + + } +} diff --git a/src/SDKs/StorageSync/Management.StorageSync/Generated/Models/RegisteredServersListByStorageSyncServiceHeaders.cs b/src/SDKs/StorageSync/Management.StorageSync/Generated/Models/RegisteredServersListByStorageSyncServiceHeaders.cs new file mode 100644 index 000000000000..f6c6bdd4a80f --- /dev/null +++ b/src/SDKs/StorageSync/Management.StorageSync/Generated/Models/RegisteredServersListByStorageSyncServiceHeaders.cs @@ -0,0 +1,62 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.StorageSync.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// Defines headers for ListByStorageSyncService operation. + /// + public partial class RegisteredServersListByStorageSyncServiceHeaders + { + /// + /// Initializes a new instance of the + /// RegisteredServersListByStorageSyncServiceHeaders class. + /// + public RegisteredServersListByStorageSyncServiceHeaders() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the + /// RegisteredServersListByStorageSyncServiceHeaders class. + /// + /// request id. + /// correlation request + /// id. + public RegisteredServersListByStorageSyncServiceHeaders(string xMsRequestId = default(string), string xMsCorrelationRequestId = default(string)) + { + XMsRequestId = xMsRequestId; + XMsCorrelationRequestId = xMsCorrelationRequestId; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets request id. + /// + [JsonProperty(PropertyName = "x-ms-request-id")] + public string XMsRequestId { get; set; } + + /// + /// Gets or sets correlation request id. + /// + [JsonProperty(PropertyName = "x-ms-correlation-request-id")] + public string XMsCorrelationRequestId { get; set; } + + } +} diff --git a/src/SDKs/StorageSync/Management.StorageSync/Generated/Models/Resource.cs b/src/SDKs/StorageSync/Management.StorageSync/Generated/Models/Resource.cs new file mode 100644 index 000000000000..1e0f81fa9f68 --- /dev/null +++ b/src/SDKs/StorageSync/Management.StorageSync/Generated/Models/Resource.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.StorageSync.Models +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Newtonsoft.Json; + using System.Linq; + + public partial class Resource : IResource + { + /// + /// Initializes a new instance of the Resource class. + /// + public Resource() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the Resource class. + /// + /// Fully qualified resource Id for the resource. Ex - + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + /// The name of the resource + /// The type of the resource. Ex- + /// Microsoft.Compute/virtualMachines or + /// Microsoft.Storage/storageAccounts. + public Resource(string id = default(string), string name = default(string), string type = default(string)) + { + Id = id; + Name = name; + Type = type; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets fully qualified resource Id for the resource. Ex - + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + /// + [JsonProperty(PropertyName = "id")] + public string Id { get; private set; } + + /// + /// Gets the name of the resource + /// + [JsonProperty(PropertyName = "name")] + public string Name { get; private set; } + + /// + /// Gets the type of the resource. Ex- + /// Microsoft.Compute/virtualMachines or + /// Microsoft.Storage/storageAccounts. + /// + [JsonProperty(PropertyName = "type")] + public string Type { get; private set; } + + } +} diff --git a/src/SDKs/StorageSync/Management.StorageSync/Generated/Models/ResourcesMoveInfo.cs b/src/SDKs/StorageSync/Management.StorageSync/Generated/Models/ResourcesMoveInfo.cs new file mode 100644 index 000000000000..758953c9fc2c --- /dev/null +++ b/src/SDKs/StorageSync/Management.StorageSync/Generated/Models/ResourcesMoveInfo.cs @@ -0,0 +1,61 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.StorageSync.Models +{ + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// Resource Move Info. + /// + public partial class ResourcesMoveInfo + { + /// + /// Initializes a new instance of the ResourcesMoveInfo class. + /// + public ResourcesMoveInfo() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the ResourcesMoveInfo class. + /// + /// Target resource group. + /// Collection of Resources. + public ResourcesMoveInfo(string targetResourceGroup = default(string), IList resources = default(IList)) + { + TargetResourceGroup = targetResourceGroup; + Resources = resources; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets target resource group. + /// + [JsonProperty(PropertyName = "targetResourceGroup")] + public string TargetResourceGroup { get; set; } + + /// + /// Gets or sets collection of Resources. + /// + [JsonProperty(PropertyName = "resources")] + public IList Resources { get; set; } + + } +} diff --git a/src/SDKs/StorageSync/Management.StorageSync/Generated/Models/RestoreFileSpec.cs b/src/SDKs/StorageSync/Management.StorageSync/Generated/Models/RestoreFileSpec.cs new file mode 100644 index 000000000000..d39143781541 --- /dev/null +++ b/src/SDKs/StorageSync/Management.StorageSync/Generated/Models/RestoreFileSpec.cs @@ -0,0 +1,59 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.StorageSync.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// Restore file spec. + /// + public partial class RestoreFileSpec + { + /// + /// Initializes a new instance of the RestoreFileSpec class. + /// + public RestoreFileSpec() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the RestoreFileSpec class. + /// + /// Restore file spec path + /// Restore file spec isdir + public RestoreFileSpec(string path = default(string), bool? isdir = default(bool?)) + { + Path = path; + Isdir = isdir; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets restore file spec path + /// + [JsonProperty(PropertyName = "path")] + public string Path { get; set; } + + /// + /// Gets restore file spec isdir + /// + [JsonProperty(PropertyName = "isdir")] + public bool? Isdir { get; private set; } + + } +} diff --git a/src/SDKs/StorageSync/Management.StorageSync/Generated/Models/ServerEndpoint.cs b/src/SDKs/StorageSync/Management.StorageSync/Generated/Models/ServerEndpoint.cs new file mode 100644 index 000000000000..f473516645a2 --- /dev/null +++ b/src/SDKs/StorageSync/Management.StorageSync/Generated/Models/ServerEndpoint.cs @@ -0,0 +1,147 @@ +// +// 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.StorageSync.Models +{ + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + using Newtonsoft.Json; + using System.Linq; + + /// + /// Server Endpoint object. + /// + [Rest.Serialization.JsonTransformation] + public partial class ServerEndpoint : Resource + { + /// + /// Initializes a new instance of the ServerEndpoint class. + /// + public ServerEndpoint() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the ServerEndpoint class. + /// + /// Fully qualified resource Id for the resource. Ex - + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + /// The name of the resource + /// The type of the resource. Ex- + /// Microsoft.Compute/virtualMachines or + /// Microsoft.Storage/storageAccounts. + /// Server Local path. + /// Cloud Tiering. Possible values include: + /// 'on', 'off' + /// Level of free space to be + /// maintained by Cloud Tiering if it is enabled. + /// Friendly Name + /// Server Resource Id. + /// ServerEndpoint Provisioning + /// State + /// ServerEndpoint lastWorkflowId + /// Resource Last Operation + /// Name + /// Sync Health Status + public ServerEndpoint(string id = default(string), string name = default(string), string type = default(string), string serverLocalPath = default(string), string cloudTiering = default(string), int? volumeFreeSpacePercent = default(int?), string friendlyName = default(string), string serverResourceId = default(string), string provisioningState = default(string), string lastWorkflowId = default(string), string lastOperationName = default(string), object syncStatus = default(object)) + : base(id, name, type) + { + ServerLocalPath = serverLocalPath; + CloudTiering = cloudTiering; + VolumeFreeSpacePercent = volumeFreeSpacePercent; + FriendlyName = friendlyName; + ServerResourceId = serverResourceId; + ProvisioningState = provisioningState; + LastWorkflowId = lastWorkflowId; + LastOperationName = lastOperationName; + SyncStatus = syncStatus; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets server Local path. + /// + [JsonProperty(PropertyName = "properties.serverLocalPath")] + public string ServerLocalPath { get; set; } + + /// + /// Gets or sets cloud Tiering. Possible values include: 'on', 'off' + /// + [JsonProperty(PropertyName = "properties.cloudTiering")] + public string CloudTiering { get; set; } + + /// + /// Gets or sets level of free space to be maintained by Cloud Tiering + /// if it is enabled. + /// + [JsonProperty(PropertyName = "properties.volumeFreeSpacePercent")] + public int? VolumeFreeSpacePercent { get; set; } + + /// + /// Gets or sets friendly Name + /// + [JsonProperty(PropertyName = "properties.friendlyName")] + public string FriendlyName { get; set; } + + /// + /// Gets or sets server Resource Id. + /// + [JsonProperty(PropertyName = "properties.serverResourceId")] + public string ServerResourceId { get; set; } + + /// + /// Gets or sets serverEndpoint Provisioning State + /// + [JsonProperty(PropertyName = "properties.provisioningState")] + public string ProvisioningState { get; set; } + + /// + /// Gets or sets serverEndpoint lastWorkflowId + /// + [JsonProperty(PropertyName = "properties.lastWorkflowId")] + public string LastWorkflowId { get; set; } + + /// + /// Gets or sets resource Last Operation Name + /// + [JsonProperty(PropertyName = "properties.lastOperationName")] + public string LastOperationName { get; set; } + + /// + /// Gets or sets sync Health Status + /// + [JsonProperty(PropertyName = "properties.syncStatus")] + public object SyncStatus { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (VolumeFreeSpacePercent > 100) + { + throw new ValidationException(ValidationRules.InclusiveMaximum, "VolumeFreeSpacePercent", 100); + } + if (VolumeFreeSpacePercent < 0) + { + throw new ValidationException(ValidationRules.InclusiveMinimum, "VolumeFreeSpacePercent", 0); + } + } + } +} diff --git a/src/SDKs/StorageSync/Management.StorageSync/Generated/Models/ServerEndpointCreateParameters.cs b/src/SDKs/StorageSync/Management.StorageSync/Generated/Models/ServerEndpointCreateParameters.cs new file mode 100644 index 000000000000..eea1a7faa8f1 --- /dev/null +++ b/src/SDKs/StorageSync/Management.StorageSync/Generated/Models/ServerEndpointCreateParameters.cs @@ -0,0 +1,145 @@ +// +// 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.StorageSync.Models +{ + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// The parameters used when creating a storage sync service. + /// + [Rest.Serialization.JsonTransformation] + public partial class ServerEndpointCreateParameters + { + /// + /// Initializes a new instance of the ServerEndpointCreateParameters + /// class. + /// + public ServerEndpointCreateParameters() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the ServerEndpointCreateParameters + /// class. + /// + /// Required. Gets or sets the location of the + /// resource. This will be one of the supported and registered Azure + /// Geo Regions (e.g. West US, East US, Southeast Asia, etc.). The geo + /// region of a resource cannot be changed once it is created, but if + /// an identical geo region is specified on update, the request will + /// succeed. + /// Gets or sets a list of key value pairs that + /// describe the resource. These tags can be used for viewing and + /// grouping this resource (across resource groups). A maximum of 15 + /// tags can be provided for a resource. Each tag must have a key with + /// a length no greater than 128 characters and a value with a length + /// no greater than 256 characters. + /// Server Local path. + /// Cloud Tiering. Possible values include: + /// 'on', 'off' + /// Level of free space to be + /// maintained by Cloud Tiering if it is enabled. + /// Friendly Name + /// Server Resource Id. + public ServerEndpointCreateParameters(string location = default(string), IDictionary tags = default(IDictionary), string serverLocalPath = default(string), string cloudTiering = default(string), int? volumeFreeSpacePercent = default(int?), string friendlyName = default(string), string serverResourceId = default(string)) + { + Location = location; + Tags = tags; + ServerLocalPath = serverLocalPath; + CloudTiering = cloudTiering; + VolumeFreeSpacePercent = volumeFreeSpacePercent; + FriendlyName = friendlyName; + ServerResourceId = serverResourceId; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets required. Gets or sets the location of the resource. + /// This will be one of the supported and registered Azure Geo Regions + /// (e.g. West US, East US, Southeast Asia, etc.). The geo region of a + /// resource cannot be changed once it is created, but if an identical + /// geo region is specified on update, the request will succeed. + /// + [JsonProperty(PropertyName = "location")] + public string Location { get; set; } + + /// + /// Gets or sets a list of key value pairs that describe the resource. + /// These tags can be used for viewing and grouping this resource + /// (across resource groups). A maximum of 15 tags can be provided for + /// a resource. Each tag must have a key with a length no greater than + /// 128 characters and a value with a length no greater than 256 + /// characters. + /// + [JsonProperty(PropertyName = "tags")] + public IDictionary Tags { get; set; } + + /// + /// Gets or sets server Local path. + /// + [JsonProperty(PropertyName = "properties.serverLocalPath")] + public string ServerLocalPath { get; set; } + + /// + /// Gets or sets cloud Tiering. Possible values include: 'on', 'off' + /// + [JsonProperty(PropertyName = "properties.cloudTiering")] + public string CloudTiering { get; set; } + + /// + /// Gets or sets level of free space to be maintained by Cloud Tiering + /// if it is enabled. + /// + [JsonProperty(PropertyName = "properties.volumeFreeSpacePercent")] + public int? VolumeFreeSpacePercent { get; set; } + + /// + /// Gets or sets friendly Name + /// + [JsonProperty(PropertyName = "properties.friendlyName")] + public string FriendlyName { get; set; } + + /// + /// Gets or sets server Resource Id. + /// + [JsonProperty(PropertyName = "properties.serverResourceId")] + public string ServerResourceId { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (VolumeFreeSpacePercent > 100) + { + throw new ValidationException(ValidationRules.InclusiveMaximum, "VolumeFreeSpacePercent", 100); + } + if (VolumeFreeSpacePercent < 0) + { + throw new ValidationException(ValidationRules.InclusiveMinimum, "VolumeFreeSpacePercent", 0); + } + } + } +} diff --git a/src/SDKs/StorageSync/Management.StorageSync/Generated/Models/ServerEndpointUpdateParameters.cs b/src/SDKs/StorageSync/Management.StorageSync/Generated/Models/ServerEndpointUpdateParameters.cs new file mode 100644 index 000000000000..2c6c9d1498ec --- /dev/null +++ b/src/SDKs/StorageSync/Management.StorageSync/Generated/Models/ServerEndpointUpdateParameters.cs @@ -0,0 +1,96 @@ +// +// 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.StorageSync.Models +{ + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// Parameters for updating an Server Endpoint. + /// + [Rest.Serialization.JsonTransformation] + public partial class ServerEndpointUpdateParameters + { + /// + /// Initializes a new instance of the ServerEndpointUpdateParameters + /// class. + /// + public ServerEndpointUpdateParameters() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the ServerEndpointUpdateParameters + /// class. + /// + /// The user-specified tags associated with the + /// server endpoint. + /// Cloud Tiering. Possible values include: + /// 'on', 'off' + /// Level of free space to be + /// maintained by Cloud Tiering if it is enabled. + public ServerEndpointUpdateParameters(IDictionary tags = default(IDictionary), string cloudTiering = default(string), int? volumeFreeSpacePercent = default(int?)) + { + Tags = tags; + CloudTiering = cloudTiering; + VolumeFreeSpacePercent = volumeFreeSpacePercent; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the user-specified tags associated with the server + /// endpoint. + /// + [JsonProperty(PropertyName = "tags")] + public IDictionary Tags { get; set; } + + /// + /// Gets or sets cloud Tiering. Possible values include: 'on', 'off' + /// + [JsonProperty(PropertyName = "properties.cloudTiering")] + public string CloudTiering { get; set; } + + /// + /// Gets or sets level of free space to be maintained by Cloud Tiering + /// if it is enabled. + /// + [JsonProperty(PropertyName = "properties.volumeFreeSpacePercent")] + public int? VolumeFreeSpacePercent { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (VolumeFreeSpacePercent > 100) + { + throw new ValidationException(ValidationRules.InclusiveMaximum, "VolumeFreeSpacePercent", 100); + } + if (VolumeFreeSpacePercent < 0) + { + throw new ValidationException(ValidationRules.InclusiveMinimum, "VolumeFreeSpacePercent", 0); + } + } + } +} diff --git a/src/SDKs/StorageSync/Management.StorageSync/Generated/Models/ServerEndpointsCreateHeaders.cs b/src/SDKs/StorageSync/Management.StorageSync/Generated/Models/ServerEndpointsCreateHeaders.cs new file mode 100644 index 000000000000..629c0d253159 --- /dev/null +++ b/src/SDKs/StorageSync/Management.StorageSync/Generated/Models/ServerEndpointsCreateHeaders.cs @@ -0,0 +1,79 @@ +// +// 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.StorageSync.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// Defines headers for Create operation. + /// + public partial class ServerEndpointsCreateHeaders + { + /// + /// Initializes a new instance of the ServerEndpointsCreateHeaders + /// class. + /// + public ServerEndpointsCreateHeaders() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the ServerEndpointsCreateHeaders + /// class. + /// + /// request id. + /// correlation request + /// id. + /// Operation Status Location + /// URI + /// Operation Status Location URI + public ServerEndpointsCreateHeaders(string xMsRequestId = default(string), string xMsCorrelationRequestId = default(string), string azureAsyncOperation = default(string), string location = default(string)) + { + XMsRequestId = xMsRequestId; + XMsCorrelationRequestId = xMsCorrelationRequestId; + AzureAsyncOperation = azureAsyncOperation; + Location = location; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets request id. + /// + [JsonProperty(PropertyName = "x-ms-request-id")] + public string XMsRequestId { get; set; } + + /// + /// Gets or sets correlation request id. + /// + [JsonProperty(PropertyName = "x-ms-correlation-request-id")] + public string XMsCorrelationRequestId { get; set; } + + /// + /// Gets or sets operation Status Location URI + /// + [JsonProperty(PropertyName = "Azure-AsyncOperation")] + public string AzureAsyncOperation { get; set; } + + /// + /// Gets or sets operation Status Location URI + /// + [JsonProperty(PropertyName = "Location")] + public string Location { get; set; } + + } +} diff --git a/src/SDKs/StorageSync/Management.StorageSync/Generated/Models/ServerEndpointsDeleteHeaders.cs b/src/SDKs/StorageSync/Management.StorageSync/Generated/Models/ServerEndpointsDeleteHeaders.cs new file mode 100644 index 000000000000..b0117b9f9edb --- /dev/null +++ b/src/SDKs/StorageSync/Management.StorageSync/Generated/Models/ServerEndpointsDeleteHeaders.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.StorageSync.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// Defines headers for Delete operation. + /// + public partial class ServerEndpointsDeleteHeaders + { + /// + /// Initializes a new instance of the ServerEndpointsDeleteHeaders + /// class. + /// + public ServerEndpointsDeleteHeaders() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the ServerEndpointsDeleteHeaders + /// class. + /// + /// request id. + /// correlation request + /// id. + /// Operation Status Location URI + public ServerEndpointsDeleteHeaders(string xMsRequestId = default(string), string xMsCorrelationRequestId = default(string), string location = default(string)) + { + XMsRequestId = xMsRequestId; + XMsCorrelationRequestId = xMsCorrelationRequestId; + Location = location; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets request id. + /// + [JsonProperty(PropertyName = "x-ms-request-id")] + public string XMsRequestId { get; set; } + + /// + /// Gets or sets correlation request id. + /// + [JsonProperty(PropertyName = "x-ms-correlation-request-id")] + public string XMsCorrelationRequestId { get; set; } + + /// + /// Gets or sets operation Status Location URI + /// + [JsonProperty(PropertyName = "Location")] + public string Location { get; set; } + + } +} diff --git a/src/SDKs/StorageSync/Management.StorageSync/Generated/Models/ServerEndpointsGetHeaders.cs b/src/SDKs/StorageSync/Management.StorageSync/Generated/Models/ServerEndpointsGetHeaders.cs new file mode 100644 index 000000000000..b7d92848dff1 --- /dev/null +++ b/src/SDKs/StorageSync/Management.StorageSync/Generated/Models/ServerEndpointsGetHeaders.cs @@ -0,0 +1,60 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.StorageSync.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// Defines headers for Get operation. + /// + public partial class ServerEndpointsGetHeaders + { + /// + /// Initializes a new instance of the ServerEndpointsGetHeaders class. + /// + public ServerEndpointsGetHeaders() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the ServerEndpointsGetHeaders class. + /// + /// request id. + /// correlation request + /// id. + public ServerEndpointsGetHeaders(string xMsRequestId = default(string), string xMsCorrelationRequestId = default(string)) + { + XMsRequestId = xMsRequestId; + XMsCorrelationRequestId = xMsCorrelationRequestId; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets request id. + /// + [JsonProperty(PropertyName = "x-ms-request-id")] + public string XMsRequestId { get; set; } + + /// + /// Gets or sets correlation request id. + /// + [JsonProperty(PropertyName = "x-ms-correlation-request-id")] + public string XMsCorrelationRequestId { get; set; } + + } +} diff --git a/src/SDKs/StorageSync/Management.StorageSync/Generated/Models/ServerEndpointsListBySyncGroupHeaders.cs b/src/SDKs/StorageSync/Management.StorageSync/Generated/Models/ServerEndpointsListBySyncGroupHeaders.cs new file mode 100644 index 000000000000..0285a8ba6551 --- /dev/null +++ b/src/SDKs/StorageSync/Management.StorageSync/Generated/Models/ServerEndpointsListBySyncGroupHeaders.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.StorageSync.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// Defines headers for ListBySyncGroup operation. + /// + public partial class ServerEndpointsListBySyncGroupHeaders + { + /// + /// Initializes a new instance of the + /// ServerEndpointsListBySyncGroupHeaders class. + /// + public ServerEndpointsListBySyncGroupHeaders() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the + /// ServerEndpointsListBySyncGroupHeaders class. + /// + /// Operation Status Location URI + /// request id. + /// correlation request + /// id. + public ServerEndpointsListBySyncGroupHeaders(string location = default(string), string xMsRequestId = default(string), string xMsCorrelationRequestId = default(string)) + { + Location = location; + XMsRequestId = xMsRequestId; + XMsCorrelationRequestId = xMsCorrelationRequestId; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets operation Status Location URI + /// + [JsonProperty(PropertyName = "Location")] + public string Location { get; set; } + + /// + /// Gets or sets request id. + /// + [JsonProperty(PropertyName = "x-ms-request-id")] + public string XMsRequestId { get; set; } + + /// + /// Gets or sets correlation request id. + /// + [JsonProperty(PropertyName = "x-ms-correlation-request-id")] + public string XMsCorrelationRequestId { get; set; } + + } +} diff --git a/src/SDKs/StorageSync/Management.StorageSync/Generated/Models/ServerEndpointsRecallActionHeaders.cs b/src/SDKs/StorageSync/Management.StorageSync/Generated/Models/ServerEndpointsRecallActionHeaders.cs new file mode 100644 index 000000000000..2e6e3cb2f88f --- /dev/null +++ b/src/SDKs/StorageSync/Management.StorageSync/Generated/Models/ServerEndpointsRecallActionHeaders.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.StorageSync.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// Defines headers for recallAction operation. + /// + public partial class ServerEndpointsRecallActionHeaders + { + /// + /// Initializes a new instance of the + /// ServerEndpointsRecallActionHeaders class. + /// + public ServerEndpointsRecallActionHeaders() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the + /// ServerEndpointsRecallActionHeaders class. + /// + /// request id. + /// correlation request + /// id. + /// Operation Status Location URI + public ServerEndpointsRecallActionHeaders(string xMsRequestId = default(string), string xMsCorrelationRequestId = default(string), string location = default(string)) + { + XMsRequestId = xMsRequestId; + XMsCorrelationRequestId = xMsCorrelationRequestId; + Location = location; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets request id. + /// + [JsonProperty(PropertyName = "x-ms-request-id")] + public string XMsRequestId { get; set; } + + /// + /// Gets or sets correlation request id. + /// + [JsonProperty(PropertyName = "x-ms-correlation-request-id")] + public string XMsCorrelationRequestId { get; set; } + + /// + /// Gets or sets operation Status Location URI + /// + [JsonProperty(PropertyName = "Location")] + public string Location { get; set; } + + } +} diff --git a/src/SDKs/StorageSync/Management.StorageSync/Generated/Models/ServerEndpointsUpdateHeaders.cs b/src/SDKs/StorageSync/Management.StorageSync/Generated/Models/ServerEndpointsUpdateHeaders.cs new file mode 100644 index 000000000000..8a14610392a1 --- /dev/null +++ b/src/SDKs/StorageSync/Management.StorageSync/Generated/Models/ServerEndpointsUpdateHeaders.cs @@ -0,0 +1,79 @@ +// +// 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.StorageSync.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// Defines headers for Update operation. + /// + public partial class ServerEndpointsUpdateHeaders + { + /// + /// Initializes a new instance of the ServerEndpointsUpdateHeaders + /// class. + /// + public ServerEndpointsUpdateHeaders() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the ServerEndpointsUpdateHeaders + /// class. + /// + /// request id. + /// correlation request + /// id. + /// Operation Status Location + /// URI + /// Operation Status Location URI + public ServerEndpointsUpdateHeaders(string xMsRequestId = default(string), string xMsCorrelationRequestId = default(string), string azureAsyncOperation = default(string), string location = default(string)) + { + XMsRequestId = xMsRequestId; + XMsCorrelationRequestId = xMsCorrelationRequestId; + AzureAsyncOperation = azureAsyncOperation; + Location = location; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets request id. + /// + [JsonProperty(PropertyName = "x-ms-request-id")] + public string XMsRequestId { get; set; } + + /// + /// Gets or sets correlation request id. + /// + [JsonProperty(PropertyName = "x-ms-correlation-request-id")] + public string XMsCorrelationRequestId { get; set; } + + /// + /// Gets or sets operation Status Location URI + /// + [JsonProperty(PropertyName = "Azure-AsyncOperation")] + public string AzureAsyncOperation { get; set; } + + /// + /// Gets or sets operation Status Location URI + /// + [JsonProperty(PropertyName = "Location")] + public string Location { get; set; } + + } +} diff --git a/src/SDKs/StorageSync/Management.StorageSync/Generated/Models/StorageSyncApiError.cs b/src/SDKs/StorageSync/Management.StorageSync/Generated/Models/StorageSyncApiError.cs new file mode 100644 index 000000000000..e5324e0e7cb0 --- /dev/null +++ b/src/SDKs/StorageSync/Management.StorageSync/Generated/Models/StorageSyncApiError.cs @@ -0,0 +1,75 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.StorageSync.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// Error type + /// + public partial class StorageSyncApiError + { + /// + /// Initializes a new instance of the StorageSyncApiError class. + /// + public StorageSyncApiError() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the StorageSyncApiError class. + /// + /// Error code of the given entry. + /// Error message of the given entry. + /// Target of the given error entry. + /// Error details of the given entry. + public StorageSyncApiError(string code = default(string), string message = default(string), string target = default(string), StorageSyncErrorDetails details = default(StorageSyncErrorDetails)) + { + Code = code; + Message = message; + Target = target; + Details = details; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets error code of the given entry. + /// + [JsonProperty(PropertyName = "code")] + public string Code { get; set; } + + /// + /// Gets or sets error message of the given entry. + /// + [JsonProperty(PropertyName = "message")] + public string Message { get; set; } + + /// + /// Gets or sets target of the given error entry. + /// + [JsonProperty(PropertyName = "target")] + public string Target { get; set; } + + /// + /// Gets or sets error details of the given entry. + /// + [JsonProperty(PropertyName = "details")] + public StorageSyncErrorDetails Details { get; set; } + + } +} diff --git a/src/SDKs/StorageSync/Management.StorageSync/Generated/Models/StorageSyncError.cs b/src/SDKs/StorageSync/Management.StorageSync/Generated/Models/StorageSyncError.cs new file mode 100644 index 000000000000..5c83eac9c0cb --- /dev/null +++ b/src/SDKs/StorageSync/Management.StorageSync/Generated/Models/StorageSyncError.cs @@ -0,0 +1,59 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.StorageSync.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// Error type + /// + public partial class StorageSyncError + { + /// + /// Initializes a new instance of the StorageSyncError class. + /// + public StorageSyncError() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the StorageSyncError class. + /// + /// Error details of the given entry. + /// Error details of the given entry. + public StorageSyncError(StorageSyncApiError error = default(StorageSyncApiError), StorageSyncApiError innererror = default(StorageSyncApiError)) + { + Error = error; + Innererror = innererror; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets error details of the given entry. + /// + [JsonProperty(PropertyName = "error")] + public StorageSyncApiError Error { get; set; } + + /// + /// Gets or sets error details of the given entry. + /// + [JsonProperty(PropertyName = "innererror")] + public StorageSyncApiError Innererror { get; set; } + + } +} diff --git a/src/SDKs/StorageSync/Management.StorageSync/Generated/Models/StorageSyncErrorDetails.cs b/src/SDKs/StorageSync/Management.StorageSync/Generated/Models/StorageSyncErrorDetails.cs new file mode 100644 index 000000000000..857e2a2e7610 --- /dev/null +++ b/src/SDKs/StorageSync/Management.StorageSync/Generated/Models/StorageSyncErrorDetails.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.StorageSync.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// Error Details object. + /// + public partial class StorageSyncErrorDetails + { + /// + /// Initializes a new instance of the StorageSyncErrorDetails class. + /// + public StorageSyncErrorDetails() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the StorageSyncErrorDetails class. + /// + /// Error code of the given entry. + /// Error message of the given entry. + /// Target of the given entry. + public StorageSyncErrorDetails(string code = default(string), string message = default(string), string target = default(string)) + { + Code = code; + Message = message; + Target = target; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets error code of the given entry. + /// + [JsonProperty(PropertyName = "code")] + public string Code { get; set; } + + /// + /// Gets or sets error message of the given entry. + /// + [JsonProperty(PropertyName = "message")] + public string Message { get; set; } + + /// + /// Gets or sets target of the given entry. + /// + [JsonProperty(PropertyName = "target")] + public string Target { get; set; } + + } +} diff --git a/src/SDKs/StorageSync/Management.StorageSync/Generated/Models/StorageSyncErrorException.cs b/src/SDKs/StorageSync/Management.StorageSync/Generated/Models/StorageSyncErrorException.cs new file mode 100644 index 000000000000..28e9687d6b2e --- /dev/null +++ b/src/SDKs/StorageSync/Management.StorageSync/Generated/Models/StorageSyncErrorException.cs @@ -0,0 +1,62 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.StorageSync.Models +{ + using Microsoft.Rest; + + /// + /// Exception thrown for an invalid response with StorageSyncError + /// information. + /// + public partial class StorageSyncErrorException : RestException + { + /// + /// Gets information about the associated HTTP request. + /// + public HttpRequestMessageWrapper Request { get; set; } + + /// + /// Gets information about the associated HTTP response. + /// + public HttpResponseMessageWrapper Response { get; set; } + + /// + /// Gets or sets the body object. + /// + public StorageSyncError Body { get; set; } + + /// + /// Initializes a new instance of the StorageSyncErrorException class. + /// + public StorageSyncErrorException() + { + } + + /// + /// Initializes a new instance of the StorageSyncErrorException class. + /// + /// The exception message. + public StorageSyncErrorException(string message) + : this(message, null) + { + } + + /// + /// Initializes a new instance of the StorageSyncErrorException class. + /// + /// The exception message. + /// Inner exception. + public StorageSyncErrorException(string message, System.Exception innerException) + : base(message, innerException) + { + } + } +} diff --git a/src/SDKs/StorageSync/Management.StorageSync/Generated/Models/StorageSyncService.cs b/src/SDKs/StorageSync/Management.StorageSync/Generated/Models/StorageSyncService.cs new file mode 100644 index 000000000000..af1221cdd4ca --- /dev/null +++ b/src/SDKs/StorageSync/Management.StorageSync/Generated/Models/StorageSyncService.cs @@ -0,0 +1,86 @@ +// +// 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.StorageSync.Models +{ + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// Storage Sync Service object. + /// + [Rest.Serialization.JsonTransformation] + public partial class StorageSyncService : TrackedResource + { + /// + /// Initializes a new instance of the StorageSyncService class. + /// + public StorageSyncService() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the StorageSyncService class. + /// + /// The geo-location where the resource + /// lives + /// Fully qualified resource Id for the resource. Ex - + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + /// The name of the resource + /// The type of the resource. Ex- + /// Microsoft.Compute/virtualMachines or + /// Microsoft.Storage/storageAccounts. + /// Resource tags. + /// Storage Sync service + /// status. + /// Storage Sync service + /// Uid + public StorageSyncService(string location, string id = default(string), string name = default(string), string type = default(string), IDictionary tags = default(IDictionary), int? storageSyncServiceStatus = default(int?), string storageSyncServiceUid = default(string)) + : base(location, id, name, type, tags) + { + StorageSyncServiceStatus = storageSyncServiceStatus; + StorageSyncServiceUid = storageSyncServiceUid; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets storage Sync service status. + /// + [JsonProperty(PropertyName = "properties.storageSyncServiceStatus")] + public int? StorageSyncServiceStatus { get; private set; } + + /// + /// Gets storage Sync service Uid + /// + [JsonProperty(PropertyName = "properties.storageSyncServiceUid")] + public string StorageSyncServiceUid { get; private set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public override void Validate() + { + base.Validate(); + } + } +} diff --git a/src/SDKs/StorageSync/Management.StorageSync/Generated/Models/StorageSyncServiceCreateParameters.cs b/src/SDKs/StorageSync/Management.StorageSync/Generated/Models/StorageSyncServiceCreateParameters.cs new file mode 100644 index 000000000000..d9c348ef86c8 --- /dev/null +++ b/src/SDKs/StorageSync/Management.StorageSync/Generated/Models/StorageSyncServiceCreateParameters.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.StorageSync.Models +{ + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// The parameters used when creating a storage sync service. + /// + public partial class StorageSyncServiceCreateParameters + { + /// + /// Initializes a new instance of the + /// StorageSyncServiceCreateParameters class. + /// + public StorageSyncServiceCreateParameters() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the + /// StorageSyncServiceCreateParameters class. + /// + /// Required. Gets or sets the location of the + /// resource. This will be one of the supported and registered Azure + /// Geo Regions (e.g. West US, East US, Southeast Asia, etc.). The geo + /// region of a resource cannot be changed once it is created, but if + /// an identical geo region is specified on update, the request will + /// succeed. + /// Gets or sets a list of key value pairs that + /// describe the resource. These tags can be used for viewing and + /// grouping this resource (across resource groups). A maximum of 15 + /// tags can be provided for a resource. Each tag must have a key with + /// a length no greater than 128 characters and a value with a length + /// no greater than 256 characters. + public StorageSyncServiceCreateParameters(string location = default(string), IDictionary tags = default(IDictionary)) + { + Location = location; + Tags = tags; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets required. Gets or sets the location of the resource. + /// This will be one of the supported and registered Azure Geo Regions + /// (e.g. West US, East US, Southeast Asia, etc.). The geo region of a + /// resource cannot be changed once it is created, but if an identical + /// geo region is specified on update, the request will succeed. + /// + [JsonProperty(PropertyName = "location")] + public string Location { get; set; } + + /// + /// Gets or sets a list of key value pairs that describe the resource. + /// These tags can be used for viewing and grouping this resource + /// (across resource groups). A maximum of 15 tags can be provided for + /// a resource. Each tag must have a key with a length no greater than + /// 128 characters and a value with a length no greater than 256 + /// characters. + /// + [JsonProperty(PropertyName = "tags")] + public IDictionary Tags { get; set; } + + } +} diff --git a/src/SDKs/StorageSync/Management.StorageSync/Generated/Models/StorageSyncServiceUpdateParameters.cs b/src/SDKs/StorageSync/Management.StorageSync/Generated/Models/StorageSyncServiceUpdateParameters.cs new file mode 100644 index 000000000000..80705ebddee1 --- /dev/null +++ b/src/SDKs/StorageSync/Management.StorageSync/Generated/Models/StorageSyncServiceUpdateParameters.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.StorageSync.Models +{ + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// Parameters for updating an Storage sync service. + /// + public partial class StorageSyncServiceUpdateParameters + { + /// + /// Initializes a new instance of the + /// StorageSyncServiceUpdateParameters class. + /// + public StorageSyncServiceUpdateParameters() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the + /// StorageSyncServiceUpdateParameters class. + /// + /// The user-specified tags associated with the + /// storage sync service. + /// The properties of the storage sync + /// service. + public StorageSyncServiceUpdateParameters(IDictionary tags = default(IDictionary), object properties = default(object)) + { + Tags = tags; + Properties = properties; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the user-specified tags associated with the storage + /// sync service. + /// + [JsonProperty(PropertyName = "tags")] + public IDictionary Tags { get; set; } + + /// + /// Gets or sets the properties of the storage sync service. + /// + [JsonProperty(PropertyName = "properties")] + public object Properties { get; set; } + + } +} diff --git a/src/SDKs/StorageSync/Management.StorageSync/Generated/Models/StorageSyncServicesDeleteHeaders.cs b/src/SDKs/StorageSync/Management.StorageSync/Generated/Models/StorageSyncServicesDeleteHeaders.cs new file mode 100644 index 000000000000..f667bd4c719b --- /dev/null +++ b/src/SDKs/StorageSync/Management.StorageSync/Generated/Models/StorageSyncServicesDeleteHeaders.cs @@ -0,0 +1,62 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.StorageSync.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// Defines headers for Delete operation. + /// + public partial class StorageSyncServicesDeleteHeaders + { + /// + /// Initializes a new instance of the StorageSyncServicesDeleteHeaders + /// class. + /// + public StorageSyncServicesDeleteHeaders() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the StorageSyncServicesDeleteHeaders + /// class. + /// + /// request id. + /// correlation request + /// id. + public StorageSyncServicesDeleteHeaders(string xMsRequestId = default(string), string xMsCorrelationRequestId = default(string)) + { + XMsRequestId = xMsRequestId; + XMsCorrelationRequestId = xMsCorrelationRequestId; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets request id. + /// + [JsonProperty(PropertyName = "x-ms-request-id")] + public string XMsRequestId { get; set; } + + /// + /// Gets or sets correlation request id. + /// + [JsonProperty(PropertyName = "x-ms-correlation-request-id")] + public string XMsCorrelationRequestId { get; set; } + + } +} diff --git a/src/SDKs/StorageSync/Management.StorageSync/Generated/Models/StorageSyncServicesGetHeaders.cs b/src/SDKs/StorageSync/Management.StorageSync/Generated/Models/StorageSyncServicesGetHeaders.cs new file mode 100644 index 000000000000..83cf882811f7 --- /dev/null +++ b/src/SDKs/StorageSync/Management.StorageSync/Generated/Models/StorageSyncServicesGetHeaders.cs @@ -0,0 +1,62 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.StorageSync.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// Defines headers for Get operation. + /// + public partial class StorageSyncServicesGetHeaders + { + /// + /// Initializes a new instance of the StorageSyncServicesGetHeaders + /// class. + /// + public StorageSyncServicesGetHeaders() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the StorageSyncServicesGetHeaders + /// class. + /// + /// request id. + /// correlation request + /// id. + public StorageSyncServicesGetHeaders(string xMsRequestId = default(string), string xMsCorrelationRequestId = default(string)) + { + XMsRequestId = xMsRequestId; + XMsCorrelationRequestId = xMsCorrelationRequestId; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets request id. + /// + [JsonProperty(PropertyName = "x-ms-request-id")] + public string XMsRequestId { get; set; } + + /// + /// Gets or sets correlation request id. + /// + [JsonProperty(PropertyName = "x-ms-correlation-request-id")] + public string XMsCorrelationRequestId { get; set; } + + } +} diff --git a/src/SDKs/StorageSync/Management.StorageSync/Generated/Models/StorageSyncServicesListByResourceGroupHeaders.cs b/src/SDKs/StorageSync/Management.StorageSync/Generated/Models/StorageSyncServicesListByResourceGroupHeaders.cs new file mode 100644 index 000000000000..3c1691fd16ba --- /dev/null +++ b/src/SDKs/StorageSync/Management.StorageSync/Generated/Models/StorageSyncServicesListByResourceGroupHeaders.cs @@ -0,0 +1,62 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.StorageSync.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// Defines headers for ListByResourceGroup operation. + /// + public partial class StorageSyncServicesListByResourceGroupHeaders + { + /// + /// Initializes a new instance of the + /// StorageSyncServicesListByResourceGroupHeaders class. + /// + public StorageSyncServicesListByResourceGroupHeaders() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the + /// StorageSyncServicesListByResourceGroupHeaders class. + /// + /// request id. + /// correlation request + /// id. + public StorageSyncServicesListByResourceGroupHeaders(string xMsRequestId = default(string), string xMsCorrelationRequestId = default(string)) + { + XMsRequestId = xMsRequestId; + XMsCorrelationRequestId = xMsCorrelationRequestId; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets request id. + /// + [JsonProperty(PropertyName = "x-ms-request-id")] + public string XMsRequestId { get; set; } + + /// + /// Gets or sets correlation request id. + /// + [JsonProperty(PropertyName = "x-ms-correlation-request-id")] + public string XMsCorrelationRequestId { get; set; } + + } +} diff --git a/src/SDKs/StorageSync/Management.StorageSync/Generated/Models/StorageSyncServicesListBySubscriptionHeaders.cs b/src/SDKs/StorageSync/Management.StorageSync/Generated/Models/StorageSyncServicesListBySubscriptionHeaders.cs new file mode 100644 index 000000000000..20d788211f98 --- /dev/null +++ b/src/SDKs/StorageSync/Management.StorageSync/Generated/Models/StorageSyncServicesListBySubscriptionHeaders.cs @@ -0,0 +1,62 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.StorageSync.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// Defines headers for ListBySubscription operation. + /// + public partial class StorageSyncServicesListBySubscriptionHeaders + { + /// + /// Initializes a new instance of the + /// StorageSyncServicesListBySubscriptionHeaders class. + /// + public StorageSyncServicesListBySubscriptionHeaders() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the + /// StorageSyncServicesListBySubscriptionHeaders class. + /// + /// request id. + /// correlation request + /// id. + public StorageSyncServicesListBySubscriptionHeaders(string xMsRequestId = default(string), string xMsCorrelationRequestId = default(string)) + { + XMsRequestId = xMsRequestId; + XMsCorrelationRequestId = xMsCorrelationRequestId; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets request id. + /// + [JsonProperty(PropertyName = "x-ms-request-id")] + public string XMsRequestId { get; set; } + + /// + /// Gets or sets correlation request id. + /// + [JsonProperty(PropertyName = "x-ms-correlation-request-id")] + public string XMsCorrelationRequestId { get; set; } + + } +} diff --git a/src/SDKs/StorageSync/Management.StorageSync/Generated/Models/StorageSyncServicesUpdateHeaders.cs b/src/SDKs/StorageSync/Management.StorageSync/Generated/Models/StorageSyncServicesUpdateHeaders.cs new file mode 100644 index 000000000000..8f3f7f78a5fc --- /dev/null +++ b/src/SDKs/StorageSync/Management.StorageSync/Generated/Models/StorageSyncServicesUpdateHeaders.cs @@ -0,0 +1,62 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.StorageSync.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// Defines headers for Update operation. + /// + public partial class StorageSyncServicesUpdateHeaders + { + /// + /// Initializes a new instance of the StorageSyncServicesUpdateHeaders + /// class. + /// + public StorageSyncServicesUpdateHeaders() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the StorageSyncServicesUpdateHeaders + /// class. + /// + /// request id. + /// correlation request + /// id. + public StorageSyncServicesUpdateHeaders(string xMsRequestId = default(string), string xMsCorrelationRequestId = default(string)) + { + XMsRequestId = xMsRequestId; + XMsCorrelationRequestId = xMsCorrelationRequestId; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets request id. + /// + [JsonProperty(PropertyName = "x-ms-request-id")] + public string XMsRequestId { get; set; } + + /// + /// Gets or sets correlation request id. + /// + [JsonProperty(PropertyName = "x-ms-correlation-request-id")] + public string XMsCorrelationRequestId { get; set; } + + } +} diff --git a/src/SDKs/StorageSync/Management.StorageSync/Generated/Models/SubscriptionState.cs b/src/SDKs/StorageSync/Management.StorageSync/Generated/Models/SubscriptionState.cs new file mode 100644 index 000000000000..fce80beb32f6 --- /dev/null +++ b/src/SDKs/StorageSync/Management.StorageSync/Generated/Models/SubscriptionState.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.StorageSync.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// Subscription State object. + /// + public partial class SubscriptionState + { + /// + /// Initializes a new instance of the SubscriptionState class. + /// + public SubscriptionState() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the SubscriptionState class. + /// + /// State of Azure Subscription. Possible values + /// include: 'Registered', 'Unregistered', 'Warned', 'Suspended', + /// 'Deleted' + /// Is Transitioning + /// Subscription state properties. + public SubscriptionState(string state = default(string), bool? istransitioning = default(bool?), object properties = default(object)) + { + State = state; + Istransitioning = istransitioning; + Properties = properties; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets state of Azure Subscription. Possible values include: + /// 'Registered', 'Unregistered', 'Warned', 'Suspended', 'Deleted' + /// + [JsonProperty(PropertyName = "state")] + public string State { get; set; } + + /// + /// Gets is Transitioning + /// + [JsonProperty(PropertyName = "istransitioning")] + public bool? Istransitioning { get; private set; } + + /// + /// Gets or sets subscription state properties. + /// + [JsonProperty(PropertyName = "properties")] + public object Properties { get; set; } + + } +} diff --git a/src/SDKs/StorageSync/Management.StorageSync/Generated/Models/SyncGroup.cs b/src/SDKs/StorageSync/Management.StorageSync/Generated/Models/SyncGroup.cs new file mode 100644 index 000000000000..2e88b7016dfd --- /dev/null +++ b/src/SDKs/StorageSync/Management.StorageSync/Generated/Models/SyncGroup.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.StorageSync.Models +{ + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + using Newtonsoft.Json; + using System.Linq; + + /// + /// Sync Group object. + /// + [Rest.Serialization.JsonTransformation] + public partial class SyncGroup : Resource + { + /// + /// Initializes a new instance of the SyncGroup class. + /// + public SyncGroup() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the SyncGroup class. + /// + /// Fully qualified resource Id for the resource. Ex - + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + /// The name of the resource + /// The type of the resource. Ex- + /// Microsoft.Compute/virtualMachines or + /// Microsoft.Storage/storageAccounts. + /// Unique Id + /// Sync group status + public SyncGroup(string id = default(string), string name = default(string), string type = default(string), string uniqueId = default(string), string syncGroupStatus = default(string)) + : base(id, name, type) + { + UniqueId = uniqueId; + SyncGroupStatus = syncGroupStatus; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets unique Id + /// + [JsonProperty(PropertyName = "properties.uniqueId")] + public string UniqueId { get; set; } + + /// + /// Gets sync group status + /// + [JsonProperty(PropertyName = "properties.syncGroupStatus")] + public string SyncGroupStatus { get; private set; } + + } +} diff --git a/src/SDKs/StorageSync/Management.StorageSync/Generated/Models/SyncGroupCreateParameters.cs b/src/SDKs/StorageSync/Management.StorageSync/Generated/Models/SyncGroupCreateParameters.cs new file mode 100644 index 000000000000..a9883f0ece14 --- /dev/null +++ b/src/SDKs/StorageSync/Management.StorageSync/Generated/Models/SyncGroupCreateParameters.cs @@ -0,0 +1,89 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.StorageSync.Models +{ + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// The parameters used when creating a sync group. + /// + public partial class SyncGroupCreateParameters + { + /// + /// Initializes a new instance of the SyncGroupCreateParameters class. + /// + public SyncGroupCreateParameters() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the SyncGroupCreateParameters class. + /// + /// Required. Gets or sets the location of the + /// resource. This will be one of the supported and registered Azure + /// Geo Regions (e.g. West US, East US, Southeast Asia, etc.). The geo + /// region of a resource cannot be changed once it is created, but if + /// an identical geo region is specified on update, the request will + /// succeed. + /// Gets or sets a list of key value pairs that + /// describe the resource. These tags can be used for viewing and + /// grouping this resource (across resource groups). A maximum of 15 + /// tags can be provided for a resource. Each tag must have a key with + /// a length no greater than 128 characters and a value with a length + /// no greater than 256 characters. + /// The parameters used to create the sync + /// group + public SyncGroupCreateParameters(string location = default(string), IDictionary tags = default(IDictionary), object properties = default(object)) + { + Location = location; + Tags = tags; + Properties = properties; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets required. Gets or sets the location of the resource. + /// This will be one of the supported and registered Azure Geo Regions + /// (e.g. West US, East US, Southeast Asia, etc.). The geo region of a + /// resource cannot be changed once it is created, but if an identical + /// geo region is specified on update, the request will succeed. + /// + [JsonProperty(PropertyName = "location")] + public string Location { get; set; } + + /// + /// Gets or sets a list of key value pairs that describe the resource. + /// These tags can be used for viewing and grouping this resource + /// (across resource groups). A maximum of 15 tags can be provided for + /// a resource. Each tag must have a key with a length no greater than + /// 128 characters and a value with a length no greater than 256 + /// characters. + /// + [JsonProperty(PropertyName = "tags")] + public IDictionary Tags { get; set; } + + /// + /// Gets or sets the parameters used to create the sync group + /// + [JsonProperty(PropertyName = "properties")] + public object Properties { get; set; } + + } +} diff --git a/src/SDKs/StorageSync/Management.StorageSync/Generated/Models/SyncGroupsCreateHeaders.cs b/src/SDKs/StorageSync/Management.StorageSync/Generated/Models/SyncGroupsCreateHeaders.cs new file mode 100644 index 000000000000..43b0f9be26dd --- /dev/null +++ b/src/SDKs/StorageSync/Management.StorageSync/Generated/Models/SyncGroupsCreateHeaders.cs @@ -0,0 +1,60 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.StorageSync.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// Defines headers for Create operation. + /// + public partial class SyncGroupsCreateHeaders + { + /// + /// Initializes a new instance of the SyncGroupsCreateHeaders class. + /// + public SyncGroupsCreateHeaders() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the SyncGroupsCreateHeaders class. + /// + /// request id. + /// correlation request + /// id. + public SyncGroupsCreateHeaders(string xMsRequestId = default(string), string xMsCorrelationRequestId = default(string)) + { + XMsRequestId = xMsRequestId; + XMsCorrelationRequestId = xMsCorrelationRequestId; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets request id. + /// + [JsonProperty(PropertyName = "x-ms-request-id")] + public string XMsRequestId { get; set; } + + /// + /// Gets or sets correlation request id. + /// + [JsonProperty(PropertyName = "x-ms-correlation-request-id")] + public string XMsCorrelationRequestId { get; set; } + + } +} diff --git a/src/SDKs/StorageSync/Management.StorageSync/Generated/Models/SyncGroupsDeleteHeaders.cs b/src/SDKs/StorageSync/Management.StorageSync/Generated/Models/SyncGroupsDeleteHeaders.cs new file mode 100644 index 000000000000..0774dd499f62 --- /dev/null +++ b/src/SDKs/StorageSync/Management.StorageSync/Generated/Models/SyncGroupsDeleteHeaders.cs @@ -0,0 +1,60 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.StorageSync.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// Defines headers for Delete operation. + /// + public partial class SyncGroupsDeleteHeaders + { + /// + /// Initializes a new instance of the SyncGroupsDeleteHeaders class. + /// + public SyncGroupsDeleteHeaders() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the SyncGroupsDeleteHeaders class. + /// + /// Request id + /// correlation request + /// id + public SyncGroupsDeleteHeaders(string xMsRequestId = default(string), string xMsCorrelationRequestId = default(string)) + { + XMsRequestId = xMsRequestId; + XMsCorrelationRequestId = xMsCorrelationRequestId; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets request id + /// + [JsonProperty(PropertyName = "x-ms-request-id")] + public string XMsRequestId { get; set; } + + /// + /// Gets or sets correlation request id + /// + [JsonProperty(PropertyName = "x-ms-correlation-request-id")] + public string XMsCorrelationRequestId { get; set; } + + } +} diff --git a/src/SDKs/StorageSync/Management.StorageSync/Generated/Models/SyncGroupsGetHeaders.cs b/src/SDKs/StorageSync/Management.StorageSync/Generated/Models/SyncGroupsGetHeaders.cs new file mode 100644 index 000000000000..3f58becd6a76 --- /dev/null +++ b/src/SDKs/StorageSync/Management.StorageSync/Generated/Models/SyncGroupsGetHeaders.cs @@ -0,0 +1,60 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.StorageSync.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// Defines headers for Get operation. + /// + public partial class SyncGroupsGetHeaders + { + /// + /// Initializes a new instance of the SyncGroupsGetHeaders class. + /// + public SyncGroupsGetHeaders() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the SyncGroupsGetHeaders class. + /// + /// request id. + /// correlation request + /// id. + public SyncGroupsGetHeaders(string xMsRequestId = default(string), string xMsCorrelationRequestId = default(string)) + { + XMsRequestId = xMsRequestId; + XMsCorrelationRequestId = xMsCorrelationRequestId; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets request id. + /// + [JsonProperty(PropertyName = "x-ms-request-id")] + public string XMsRequestId { get; set; } + + /// + /// Gets or sets correlation request id. + /// + [JsonProperty(PropertyName = "x-ms-correlation-request-id")] + public string XMsCorrelationRequestId { get; set; } + + } +} diff --git a/src/SDKs/StorageSync/Management.StorageSync/Generated/Models/SyncGroupsListByStorageSyncServiceHeaders.cs b/src/SDKs/StorageSync/Management.StorageSync/Generated/Models/SyncGroupsListByStorageSyncServiceHeaders.cs new file mode 100644 index 000000000000..30f831a070da --- /dev/null +++ b/src/SDKs/StorageSync/Management.StorageSync/Generated/Models/SyncGroupsListByStorageSyncServiceHeaders.cs @@ -0,0 +1,62 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.StorageSync.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// Defines headers for ListByStorageSyncService operation. + /// + public partial class SyncGroupsListByStorageSyncServiceHeaders + { + /// + /// Initializes a new instance of the + /// SyncGroupsListByStorageSyncServiceHeaders class. + /// + public SyncGroupsListByStorageSyncServiceHeaders() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the + /// SyncGroupsListByStorageSyncServiceHeaders class. + /// + /// request id. + /// correlation request + /// id. + public SyncGroupsListByStorageSyncServiceHeaders(string xMsRequestId = default(string), string xMsCorrelationRequestId = default(string)) + { + XMsRequestId = xMsRequestId; + XMsCorrelationRequestId = xMsCorrelationRequestId; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets request id. + /// + [JsonProperty(PropertyName = "x-ms-request-id")] + public string XMsRequestId { get; set; } + + /// + /// Gets or sets correlation request id. + /// + [JsonProperty(PropertyName = "x-ms-correlation-request-id")] + public string XMsCorrelationRequestId { get; set; } + + } +} diff --git a/src/SDKs/StorageSync/Management.StorageSync/Generated/Models/TrackedResource.cs b/src/SDKs/StorageSync/Management.StorageSync/Generated/Models/TrackedResource.cs new file mode 100644 index 000000000000..4f9d10b279a8 --- /dev/null +++ b/src/SDKs/StorageSync/Management.StorageSync/Generated/Models/TrackedResource.cs @@ -0,0 +1,83 @@ +// +// 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.StorageSync.Models +{ + using Microsoft.Rest; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// The resource model definition for a ARM tracked top level resource + /// + public partial class TrackedResource : Resource + { + /// + /// Initializes a new instance of the TrackedResource class. + /// + public TrackedResource() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the TrackedResource class. + /// + /// The geo-location where the resource + /// lives + /// Fully qualified resource Id for the resource. Ex - + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + /// The name of the resource + /// The type of the resource. Ex- + /// Microsoft.Compute/virtualMachines or + /// Microsoft.Storage/storageAccounts. + /// Resource tags. + public TrackedResource(string location, string id = default(string), string name = default(string), string type = default(string), IDictionary tags = default(IDictionary)) + : base(id, name, type) + { + Tags = tags; + Location = location; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets resource tags. + /// + [JsonProperty(PropertyName = "tags")] + public IDictionary Tags { get; set; } + + /// + /// Gets or sets the geo-location where the resource lives + /// + [JsonProperty(PropertyName = "location")] + public string Location { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (Location == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "Location"); + } + } + } +} diff --git a/src/SDKs/StorageSync/Management.StorageSync/Generated/Models/Workflow.cs b/src/SDKs/StorageSync/Management.StorageSync/Generated/Models/Workflow.cs new file mode 100644 index 000000000000..1482decaf3e7 --- /dev/null +++ b/src/SDKs/StorageSync/Management.StorageSync/Generated/Models/Workflow.cs @@ -0,0 +1,98 @@ +// +// 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.StorageSync.Models +{ + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + using Newtonsoft.Json; + using System.Linq; + + /// + /// Workflow resource. + /// + [Rest.Serialization.JsonTransformation] + public partial class Workflow : Resource + { + /// + /// Initializes a new instance of the Workflow class. + /// + public Workflow() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the Workflow class. + /// + /// Fully qualified resource Id for the resource. Ex - + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + /// The name of the resource + /// The type of the resource. Ex- + /// Microsoft.Compute/virtualMachines or + /// Microsoft.Storage/storageAccounts. + /// last step name + /// workflow status. Possible values include: + /// 'active', 'expired', 'succeeded', 'aborted', 'failed' + /// operation direction. Possible values + /// include: 'do', 'undo', 'cancel' + /// workflow steps + /// workflow last operation + /// identifier. + public Workflow(string id = default(string), string name = default(string), string type = default(string), string lastStepName = default(string), string status = default(string), string operation = default(string), string steps = default(string), string lastOperationId = default(string)) + : base(id, name, type) + { + LastStepName = lastStepName; + Status = status; + Operation = operation; + Steps = steps; + LastOperationId = lastOperationId; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets last step name + /// + [JsonProperty(PropertyName = "properties.lastStepName")] + public string LastStepName { get; set; } + + /// + /// Gets or sets workflow status. Possible values include: 'active', + /// 'expired', 'succeeded', 'aborted', 'failed' + /// + [JsonProperty(PropertyName = "properties.status")] + public string Status { get; set; } + + /// + /// Gets or sets operation direction. Possible values include: 'do', + /// 'undo', 'cancel' + /// + [JsonProperty(PropertyName = "properties.operation")] + public string Operation { get; set; } + + /// + /// Gets or sets workflow steps + /// + [JsonProperty(PropertyName = "properties.steps")] + public string Steps { get; set; } + + /// + /// Gets or sets workflow last operation identifier. + /// + [JsonProperty(PropertyName = "properties.lastOperationId")] + public string LastOperationId { get; set; } + + } +} diff --git a/src/SDKs/StorageSync/Management.StorageSync/Generated/Models/WorkflowArray.cs b/src/SDKs/StorageSync/Management.StorageSync/Generated/Models/WorkflowArray.cs new file mode 100644 index 000000000000..51aa8ddfd8cb --- /dev/null +++ b/src/SDKs/StorageSync/Management.StorageSync/Generated/Models/WorkflowArray.cs @@ -0,0 +1,53 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.StorageSync.Models +{ + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// Array of Workflow + /// + public partial class WorkflowArray + { + /// + /// Initializes a new instance of the WorkflowArray class. + /// + public WorkflowArray() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the WorkflowArray class. + /// + /// Collection of workflow items. + public WorkflowArray(IList value = default(IList)) + { + Value = value; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets collection of workflow items. + /// + [JsonProperty(PropertyName = "value")] + public IList Value { get; set; } + + } +} diff --git a/src/SDKs/StorageSync/Management.StorageSync/Generated/Models/WorkflowsAbortHeaders.cs b/src/SDKs/StorageSync/Management.StorageSync/Generated/Models/WorkflowsAbortHeaders.cs new file mode 100644 index 000000000000..f4df82c9f065 --- /dev/null +++ b/src/SDKs/StorageSync/Management.StorageSync/Generated/Models/WorkflowsAbortHeaders.cs @@ -0,0 +1,60 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.StorageSync.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// Defines headers for Abort operation. + /// + public partial class WorkflowsAbortHeaders + { + /// + /// Initializes a new instance of the WorkflowsAbortHeaders class. + /// + public WorkflowsAbortHeaders() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the WorkflowsAbortHeaders class. + /// + /// request id. + /// correlation request + /// id. + public WorkflowsAbortHeaders(string xMsRequestId = default(string), string xMsCorrelationRequestId = default(string)) + { + XMsRequestId = xMsRequestId; + XMsCorrelationRequestId = xMsCorrelationRequestId; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets request id. + /// + [JsonProperty(PropertyName = "x-ms-request-id")] + public string XMsRequestId { get; set; } + + /// + /// Gets or sets correlation request id. + /// + [JsonProperty(PropertyName = "x-ms-correlation-request-id")] + public string XMsCorrelationRequestId { get; set; } + + } +} diff --git a/src/SDKs/StorageSync/Management.StorageSync/Generated/Models/WorkflowsGetHeaders.cs b/src/SDKs/StorageSync/Management.StorageSync/Generated/Models/WorkflowsGetHeaders.cs new file mode 100644 index 000000000000..9bb14f6425a0 --- /dev/null +++ b/src/SDKs/StorageSync/Management.StorageSync/Generated/Models/WorkflowsGetHeaders.cs @@ -0,0 +1,60 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.StorageSync.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// Defines headers for Get operation. + /// + public partial class WorkflowsGetHeaders + { + /// + /// Initializes a new instance of the WorkflowsGetHeaders class. + /// + public WorkflowsGetHeaders() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the WorkflowsGetHeaders class. + /// + /// request id. + /// correlation request + /// id. + public WorkflowsGetHeaders(string xMsRequestId = default(string), string xMsCorrelationRequestId = default(string)) + { + XMsRequestId = xMsRequestId; + XMsCorrelationRequestId = xMsCorrelationRequestId; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets request id. + /// + [JsonProperty(PropertyName = "x-ms-request-id")] + public string XMsRequestId { get; set; } + + /// + /// Gets or sets correlation request id. + /// + [JsonProperty(PropertyName = "x-ms-correlation-request-id")] + public string XMsCorrelationRequestId { get; set; } + + } +} diff --git a/src/SDKs/StorageSync/Management.StorageSync/Generated/Operations.cs b/src/SDKs/StorageSync/Management.StorageSync/Generated/Operations.cs new file mode 100644 index 000000000000..7c7892e9bfae --- /dev/null +++ b/src/SDKs/StorageSync/Management.StorageSync/Generated/Operations.cs @@ -0,0 +1,423 @@ +// +// 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.StorageSync +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + using System.Net; + using System.Net.Http; + using System.Threading; + using System.Threading.Tasks; + + /// + /// Operations operations. + /// + internal partial class Operations : IServiceOperations, IOperations + { + /// + /// Initializes a new instance of the Operations class. + /// + /// + /// Reference to the service client. + /// + /// + /// Thrown when a required parameter is null + /// + internal Operations(StorageSyncManagementClient client) + { + if (client == null) + { + throw new System.ArgumentNullException("client"); + } + Client = client; + } + + /// + /// Gets a reference to the StorageSyncManagementClient + /// + public StorageSyncManagementClient Client { get; private set; } + + /// + /// Lists all of the available Storage Sync Rest API operations. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task,OperationsListHeaders>> ListWithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + 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("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "List", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "providers/Microsoft.StorageSync/operations").ToString(); + List _queryParameters = new List(); + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new StorageSyncErrorException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + StorageSyncError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse,OperationsListHeaders>(); + _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); + } + } + try + { + _result.Headers = _httpResponse.GetHeadersAsJson().ToObject(JsonSerializer.Create(Client.DeserializationSettings)); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the headers.", _httpResponse.GetHeadersAsJson().ToString(), ex); + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Lists all of the available Storage Sync Rest API operations. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task,OperationsListHeaders>> 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 StorageSyncErrorException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + StorageSyncError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse,OperationsListHeaders>(); + _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); + } + } + try + { + _result.Headers = _httpResponse.GetHeadersAsJson().ToObject(JsonSerializer.Create(Client.DeserializationSettings)); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the headers.", _httpResponse.GetHeadersAsJson().ToString(), ex); + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + } +} diff --git a/src/SDKs/StorageSync/Management.StorageSync/Generated/OperationsExtensions.cs b/src/SDKs/StorageSync/Management.StorageSync/Generated/OperationsExtensions.cs new file mode 100644 index 000000000000..9244892ed2d3 --- /dev/null +++ b/src/SDKs/StorageSync/Management.StorageSync/Generated/OperationsExtensions.cs @@ -0,0 +1,87 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.StorageSync +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using System.Threading; + using System.Threading.Tasks; + + /// + /// Extension methods for Operations. + /// + public static partial class OperationsExtensions + { + /// + /// Lists all of the available Storage Sync Rest API operations. + /// + /// + /// The operations group for this extension method. + /// + public static IPage List(this IOperations operations) + { + return operations.ListAsync().GetAwaiter().GetResult(); + } + + /// + /// Lists all of the available Storage Sync Rest API operations. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The cancellation token. + /// + public static async Task> ListAsync(this IOperations operations, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListWithHttpMessagesAsync(null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Lists all of the available Storage Sync Rest API operations. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + public static IPage ListNext(this IOperations operations, string nextPageLink) + { + return operations.ListNextAsync(nextPageLink).GetAwaiter().GetResult(); + } + + /// + /// Lists all of the available Storage Sync Rest API operations. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// The cancellation token. + /// + public static async Task> ListNextAsync(this IOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + } +} diff --git a/src/SDKs/StorageSync/Management.StorageSync/Generated/RegisteredServersOperations.cs b/src/SDKs/StorageSync/Management.StorageSync/Generated/RegisteredServersOperations.cs new file mode 100644 index 000000000000..9ac2ffeb570c --- /dev/null +++ b/src/SDKs/StorageSync/Management.StorageSync/Generated/RegisteredServersOperations.cs @@ -0,0 +1,1059 @@ +// +// 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.StorageSync +{ + 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; + + /// + /// RegisteredServersOperations operations. + /// + internal partial class RegisteredServersOperations : IServiceOperations, IRegisteredServersOperations + { + /// + /// Initializes a new instance of the RegisteredServersOperations class. + /// + /// + /// Reference to the service client. + /// + /// + /// Thrown when a required parameter is null + /// + internal RegisteredServersOperations(StorageSyncManagementClient client) + { + if (client == null) + { + throw new System.ArgumentNullException("client"); + } + Client = client; + } + + /// + /// Gets a reference to the StorageSyncManagementClient + /// + public StorageSyncManagementClient Client { get; private set; } + + /// + /// Get a given registered server list. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of Storage Sync Service 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,RegisteredServersListByStorageSyncServiceHeaders>> ListByStorageSyncServiceWithHttpMessagesAsync(string resourceGroupName, string storageSyncServiceName, 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 (storageSyncServiceName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "storageSyncServiceName"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("storageSyncServiceName", storageSyncServiceName); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "ListByStorageSyncService", 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.StorageSync/storageSyncServices/{storageSyncServiceName}/registeredServers").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{storageSyncServiceName}", System.Uri.EscapeDataString(storageSyncServiceName)); + 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 StorageSyncErrorException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + StorageSyncError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse,RegisteredServersListByStorageSyncServiceHeaders>(); + _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); + } + } + try + { + _result.Headers = _httpResponse.GetHeadersAsJson().ToObject(JsonSerializer.Create(Client.DeserializationSettings)); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the headers.", _httpResponse.GetHeadersAsJson().ToString(), ex); + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Get a given registered server. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of Storage Sync Service resource. + /// + /// + /// GUID identifying the on-premises server. + /// + /// + /// 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 storageSyncServiceName, string serverId, 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 (storageSyncServiceName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "storageSyncServiceName"); + } + if (serverId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "serverId"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("storageSyncServiceName", storageSyncServiceName); + tracingParameters.Add("serverId", serverId); + 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.StorageSync/storageSyncServices/{storageSyncServiceName}/registeredServers/{serverId}").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{storageSyncServiceName}", System.Uri.EscapeDataString(storageSyncServiceName)); + _url = _url.Replace("{serverId}", System.Uri.EscapeDataString(serverId)); + 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 StorageSyncErrorException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + StorageSyncError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + try + { + _result.Headers = _httpResponse.GetHeadersAsJson().ToObject(JsonSerializer.Create(Client.DeserializationSettings)); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the headers.", _httpResponse.GetHeadersAsJson().ToString(), ex); + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Add a new registered server. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of Storage Sync Service resource. + /// + /// + /// GUID identifying the on-premises server. + /// + /// + /// Body of Registered Server object. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task> CreateWithHttpMessagesAsync(string resourceGroupName, string storageSyncServiceName, string serverId, RegisteredServerCreateParameters parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send Request + AzureOperationResponse _response = await BeginCreateWithHttpMessagesAsync(resourceGroupName, storageSyncServiceName, serverId, parameters, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPutOrPatchOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + + /// + /// Delete the given registered server. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of Storage Sync Service resource. + /// + /// + /// GUID identifying the on-premises server. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task> DeleteWithHttpMessagesAsync(string resourceGroupName, string storageSyncServiceName, string serverId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send request + AzureOperationHeaderResponse _response = await BeginDeleteWithHttpMessagesAsync(resourceGroupName, storageSyncServiceName, serverId, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + + /// + /// Add a new registered server. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of Storage Sync Service resource. + /// + /// + /// GUID identifying the on-premises server. + /// + /// + /// Body of Registered Server object. + /// + /// + /// 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> BeginCreateWithHttpMessagesAsync(string resourceGroupName, string storageSyncServiceName, string serverId, RegisteredServerCreateParameters parameters, 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 (storageSyncServiceName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "storageSyncServiceName"); + } + if (serverId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "serverId"); + } + if (parameters == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "parameters"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("storageSyncServiceName", storageSyncServiceName); + tracingParameters.Add("serverId", serverId); + tracingParameters.Add("parameters", parameters); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "BeginCreate", 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.StorageSync/storageSyncServices/{storageSyncServiceName}/registeredServers/{serverId}").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{storageSyncServiceName}", System.Uri.EscapeDataString(storageSyncServiceName)); + _url = _url.Replace("{serverId}", System.Uri.EscapeDataString(serverId)); + 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(parameters != null) + { + _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(parameters, 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 StorageSyncErrorException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + StorageSyncError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + try + { + _result.Headers = _httpResponse.GetHeadersAsJson().ToObject(JsonSerializer.Create(Client.DeserializationSettings)); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the headers.", _httpResponse.GetHeadersAsJson().ToString(), ex); + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Delete the given registered server. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of Storage Sync Service resource. + /// + /// + /// GUID identifying the on-premises server. + /// + /// + /// 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 storageSyncServiceName, string serverId, 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 (storageSyncServiceName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "storageSyncServiceName"); + } + if (serverId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "serverId"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("storageSyncServiceName", storageSyncServiceName); + tracingParameters.Add("serverId", serverId); + 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.StorageSync/storageSyncServices/{storageSyncServiceName}/registeredServers/{serverId}").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{storageSyncServiceName}", System.Uri.EscapeDataString(storageSyncServiceName)); + _url = _url.Replace("{serverId}", System.Uri.EscapeDataString(serverId)); + 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 StorageSyncErrorException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + StorageSyncError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationHeaderResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + try + { + _result.Headers = _httpResponse.GetHeadersAsJson().ToObject(JsonSerializer.Create(Client.DeserializationSettings)); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the headers.", _httpResponse.GetHeadersAsJson().ToString(), ex); + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + } +} diff --git a/src/SDKs/StorageSync/Management.StorageSync/Generated/RegisteredServersOperationsExtensions.cs b/src/SDKs/StorageSync/Management.StorageSync/Generated/RegisteredServersOperationsExtensions.cs new file mode 100644 index 000000000000..95cf20f9f0e0 --- /dev/null +++ b/src/SDKs/StorageSync/Management.StorageSync/Generated/RegisteredServersOperationsExtensions.cs @@ -0,0 +1,309 @@ +// +// 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.StorageSync +{ + 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 RegisteredServersOperations. + /// + public static partial class RegisteredServersOperationsExtensions + { + /// + /// Get a given registered server list. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of Storage Sync Service resource. + /// + public static IEnumerable ListByStorageSyncService(this IRegisteredServersOperations operations, string resourceGroupName, string storageSyncServiceName) + { + return operations.ListByStorageSyncServiceAsync(resourceGroupName, storageSyncServiceName).GetAwaiter().GetResult(); + } + + /// + /// Get a given registered server list. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of Storage Sync Service resource. + /// + /// + /// The cancellation token. + /// + public static async Task> ListByStorageSyncServiceAsync(this IRegisteredServersOperations operations, string resourceGroupName, string storageSyncServiceName, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListByStorageSyncServiceWithHttpMessagesAsync(resourceGroupName, storageSyncServiceName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Get a given registered server. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of Storage Sync Service resource. + /// + /// + /// GUID identifying the on-premises server. + /// + public static RegisteredServer Get(this IRegisteredServersOperations operations, string resourceGroupName, string storageSyncServiceName, string serverId) + { + return operations.GetAsync(resourceGroupName, storageSyncServiceName, serverId).GetAwaiter().GetResult(); + } + + /// + /// Get a given registered server. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of Storage Sync Service resource. + /// + /// + /// GUID identifying the on-premises server. + /// + /// + /// The cancellation token. + /// + public static async Task GetAsync(this IRegisteredServersOperations operations, string resourceGroupName, string storageSyncServiceName, string serverId, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.GetWithHttpMessagesAsync(resourceGroupName, storageSyncServiceName, serverId, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Add a new registered server. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of Storage Sync Service resource. + /// + /// + /// GUID identifying the on-premises server. + /// + /// + /// Body of Registered Server object. + /// + public static RegisteredServer Create(this IRegisteredServersOperations operations, string resourceGroupName, string storageSyncServiceName, string serverId, RegisteredServerCreateParameters parameters) + { + return operations.CreateAsync(resourceGroupName, storageSyncServiceName, serverId, parameters).GetAwaiter().GetResult(); + } + + /// + /// Add a new registered server. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of Storage Sync Service resource. + /// + /// + /// GUID identifying the on-premises server. + /// + /// + /// Body of Registered Server object. + /// + /// + /// The cancellation token. + /// + public static async Task CreateAsync(this IRegisteredServersOperations operations, string resourceGroupName, string storageSyncServiceName, string serverId, RegisteredServerCreateParameters parameters, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.CreateWithHttpMessagesAsync(resourceGroupName, storageSyncServiceName, serverId, parameters, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Delete the given registered server. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of Storage Sync Service resource. + /// + /// + /// GUID identifying the on-premises server. + /// + public static RegisteredServersDeleteHeaders Delete(this IRegisteredServersOperations operations, string resourceGroupName, string storageSyncServiceName, string serverId) + { + return operations.DeleteAsync(resourceGroupName, storageSyncServiceName, serverId).GetAwaiter().GetResult(); + } + + /// + /// Delete the given registered server. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of Storage Sync Service resource. + /// + /// + /// GUID identifying the on-premises server. + /// + /// + /// The cancellation token. + /// + public static async Task DeleteAsync(this IRegisteredServersOperations operations, string resourceGroupName, string storageSyncServiceName, string serverId, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.DeleteWithHttpMessagesAsync(resourceGroupName, storageSyncServiceName, serverId, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Headers; + } + } + + /// + /// Add a new registered server. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of Storage Sync Service resource. + /// + /// + /// GUID identifying the on-premises server. + /// + /// + /// Body of Registered Server object. + /// + public static RegisteredServer BeginCreate(this IRegisteredServersOperations operations, string resourceGroupName, string storageSyncServiceName, string serverId, RegisteredServerCreateParameters parameters) + { + return operations.BeginCreateAsync(resourceGroupName, storageSyncServiceName, serverId, parameters).GetAwaiter().GetResult(); + } + + /// + /// Add a new registered server. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of Storage Sync Service resource. + /// + /// + /// GUID identifying the on-premises server. + /// + /// + /// Body of Registered Server object. + /// + /// + /// The cancellation token. + /// + public static async Task BeginCreateAsync(this IRegisteredServersOperations operations, string resourceGroupName, string storageSyncServiceName, string serverId, RegisteredServerCreateParameters parameters, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.BeginCreateWithHttpMessagesAsync(resourceGroupName, storageSyncServiceName, serverId, parameters, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Delete the given registered server. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of Storage Sync Service resource. + /// + /// + /// GUID identifying the on-premises server. + /// + public static RegisteredServersDeleteHeaders BeginDelete(this IRegisteredServersOperations operations, string resourceGroupName, string storageSyncServiceName, string serverId) + { + return operations.BeginDeleteAsync(resourceGroupName, storageSyncServiceName, serverId).GetAwaiter().GetResult(); + } + + /// + /// Delete the given registered server. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of Storage Sync Service resource. + /// + /// + /// GUID identifying the on-premises server. + /// + /// + /// The cancellation token. + /// + public static async Task BeginDeleteAsync(this IRegisteredServersOperations operations, string resourceGroupName, string storageSyncServiceName, string serverId, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.BeginDeleteWithHttpMessagesAsync(resourceGroupName, storageSyncServiceName, serverId, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Headers; + } + } + + } +} diff --git a/src/SDKs/StorageSync/Management.StorageSync/Generated/SdkInfo_MicrosoftStorageSync.cs b/src/SDKs/StorageSync/Management.StorageSync/Generated/SdkInfo_MicrosoftStorageSync.cs new file mode 100644 index 000000000000..8d42a1a5004d --- /dev/null +++ b/src/SDKs/StorageSync/Management.StorageSync/Generated/SdkInfo_MicrosoftStorageSync.cs @@ -0,0 +1,44 @@ + +// +// 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.StorageSync +{ + using System; + using System.Collections.Generic; + using System.Linq; + + internal static partial class SdkInfo + { + public static IEnumerable> ApiInfo_MicrosoftStorageSync + { + get + { + return new Tuple[] + { + new Tuple("StorageSync", "CloudEndpoints", "2018-04-02"), + new Tuple("StorageSync", "Operations", "2018-04-02"), + new Tuple("StorageSync", "RegisteredServers", "2018-04-02"), + new Tuple("StorageSync", "ServerEndpoints", "2018-04-02"), + new Tuple("StorageSync", "StorageSyncServices", "2018-04-02"), + new Tuple("StorageSync", "SyncGroups", "2018-04-02"), + new Tuple("StorageSync", "Workflows", "2018-04-02"), + }.AsEnumerable(); + } + } + // BEGIN: Code Generation Metadata Section + public static readonly String AutoRestVersion = "latest"; + public static readonly String AutoRestBootStrapperVersion = "autorest@2.0.4283"; + public static readonly String AutoRestCmdExecuted = "cmd.exe /c autorest.cmd https://github.com/Azure/azure-rest-api-specs/blob/master/specification/storagesync/resource-manager/readme.md --csharp --version=latest --reflect-api-versions --csharp-sdks-folder=H:\\csharpsdk\\azure-sdk-for-net\\src\\SDKs"; + public static readonly String GithubForkName = "Azure"; + public static readonly String GithubBranchName = "master"; + public static readonly String GithubCommidId = "03757d26912ec4e36205e2792a24f73bd3707786"; + public static readonly String CodeGenerationErrors = ""; + public static readonly String GithubRepoName = "azure-rest-api-specs"; + // END: Code Generation Metadata Section + } +} + diff --git a/src/SDKs/StorageSync/Management.StorageSync/Generated/ServerEndpointsOperations.cs b/src/SDKs/StorageSync/Management.StorageSync/Generated/ServerEndpointsOperations.cs new file mode 100644 index 000000000000..74ea2a067bf7 --- /dev/null +++ b/src/SDKs/StorageSync/Management.StorageSync/Generated/ServerEndpointsOperations.cs @@ -0,0 +1,1672 @@ +// +// 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.StorageSync +{ + 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; + + /// + /// ServerEndpointsOperations operations. + /// + internal partial class ServerEndpointsOperations : IServiceOperations, IServerEndpointsOperations + { + /// + /// Initializes a new instance of the ServerEndpointsOperations class. + /// + /// + /// Reference to the service client. + /// + /// + /// Thrown when a required parameter is null + /// + internal ServerEndpointsOperations(StorageSyncManagementClient client) + { + if (client == null) + { + throw new System.ArgumentNullException("client"); + } + Client = client; + } + + /// + /// Gets a reference to the StorageSyncManagementClient + /// + public StorageSyncManagementClient Client { get; private set; } + + /// + /// Create a new ServerEndpoint. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of Storage Sync Service resource. + /// + /// + /// Name of Sync Group resource. + /// + /// + /// Name of Server Endpoint object. + /// + /// + /// Body of Server Endpoint object. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task> CreateWithHttpMessagesAsync(string resourceGroupName, string storageSyncServiceName, string syncGroupName, string serverEndpointName, ServerEndpointCreateParameters parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send Request + AzureOperationResponse _response = await BeginCreateWithHttpMessagesAsync(resourceGroupName, storageSyncServiceName, syncGroupName, serverEndpointName, parameters, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPutOrPatchOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + + /// + /// Patch a given ServerEndpoint. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of Storage Sync Service resource. + /// + /// + /// Name of Sync Group resource. + /// + /// + /// Name of Server Endpoint object. + /// + /// + /// Any of the properties applicable in PUT request. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task> UpdateWithHttpMessagesAsync(string resourceGroupName, string storageSyncServiceName, string syncGroupName, string serverEndpointName, ServerEndpointUpdateParameters parameters = default(ServerEndpointUpdateParameters), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send Request + AzureOperationResponse _response = await BeginUpdateWithHttpMessagesAsync(resourceGroupName, storageSyncServiceName, syncGroupName, serverEndpointName, parameters, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPutOrPatchOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + + /// + /// Get a ServerEndpoint. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of Storage Sync Service resource. + /// + /// + /// Name of Sync Group resource. + /// + /// + /// Name of Server Endpoint object. + /// + /// + /// 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 storageSyncServiceName, string syncGroupName, string serverEndpointName, 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 (storageSyncServiceName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "storageSyncServiceName"); + } + if (syncGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "syncGroupName"); + } + if (serverEndpointName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "serverEndpointName"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("storageSyncServiceName", storageSyncServiceName); + tracingParameters.Add("syncGroupName", syncGroupName); + tracingParameters.Add("serverEndpointName", serverEndpointName); + 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.StorageSync/storageSyncServices/{storageSyncServiceName}/syncGroups/{syncGroupName}/serverEndpoints/{serverEndpointName}").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{storageSyncServiceName}", System.Uri.EscapeDataString(storageSyncServiceName)); + _url = _url.Replace("{syncGroupName}", System.Uri.EscapeDataString(syncGroupName)); + _url = _url.Replace("{serverEndpointName}", System.Uri.EscapeDataString(serverEndpointName)); + 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 StorageSyncErrorException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + StorageSyncError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + try + { + _result.Headers = _httpResponse.GetHeadersAsJson().ToObject(JsonSerializer.Create(Client.DeserializationSettings)); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the headers.", _httpResponse.GetHeadersAsJson().ToString(), ex); + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Delete a given ServerEndpoint. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of Storage Sync Service resource. + /// + /// + /// Name of Sync Group resource. + /// + /// + /// Name of Server Endpoint object. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task> DeleteWithHttpMessagesAsync(string resourceGroupName, string storageSyncServiceName, string syncGroupName, string serverEndpointName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send request + AzureOperationHeaderResponse _response = await BeginDeleteWithHttpMessagesAsync(resourceGroupName, storageSyncServiceName, syncGroupName, serverEndpointName, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + + /// + /// Get a ServerEndpoint list. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of Storage Sync Service resource. + /// + /// + /// Name of Sync Group 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,ServerEndpointsListBySyncGroupHeaders>> ListBySyncGroupWithHttpMessagesAsync(string resourceGroupName, string storageSyncServiceName, string syncGroupName, 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 (storageSyncServiceName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "storageSyncServiceName"); + } + if (syncGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "syncGroupName"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("storageSyncServiceName", storageSyncServiceName); + tracingParameters.Add("syncGroupName", syncGroupName); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "ListBySyncGroup", 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.StorageSync/storageSyncServices/{storageSyncServiceName}/syncGroups/{syncGroupName}/serverEndpoints").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{storageSyncServiceName}", System.Uri.EscapeDataString(storageSyncServiceName)); + _url = _url.Replace("{syncGroupName}", System.Uri.EscapeDataString(syncGroupName)); + 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 StorageSyncErrorException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + StorageSyncError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse,ServerEndpointsListBySyncGroupHeaders>(); + _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); + } + } + try + { + _result.Headers = _httpResponse.GetHeadersAsJson().ToObject(JsonSerializer.Create(Client.DeserializationSettings)); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the headers.", _httpResponse.GetHeadersAsJson().ToString(), ex); + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Recall a serverendpoint. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of Storage Sync Service resource. + /// + /// + /// Name of Sync Group resource. + /// + /// + /// Name of Server Endpoint object. + /// + /// + /// Body of Recall Action object. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task> RecallActionWithHttpMessagesAsync(string resourceGroupName, string storageSyncServiceName, string syncGroupName, string serverEndpointName, RecallActionParameters parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send request + AzureOperationHeaderResponse _response = await BeginRecallActionWithHttpMessagesAsync(resourceGroupName, storageSyncServiceName, syncGroupName, serverEndpointName, parameters, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + + /// + /// Create a new ServerEndpoint. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of Storage Sync Service resource. + /// + /// + /// Name of Sync Group resource. + /// + /// + /// Name of Server Endpoint object. + /// + /// + /// Body of Server Endpoint object. + /// + /// + /// 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> BeginCreateWithHttpMessagesAsync(string resourceGroupName, string storageSyncServiceName, string syncGroupName, string serverEndpointName, ServerEndpointCreateParameters parameters, 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 (storageSyncServiceName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "storageSyncServiceName"); + } + if (syncGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "syncGroupName"); + } + if (serverEndpointName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "serverEndpointName"); + } + if (parameters == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "parameters"); + } + if (parameters != null) + { + parameters.Validate(); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("storageSyncServiceName", storageSyncServiceName); + tracingParameters.Add("syncGroupName", syncGroupName); + tracingParameters.Add("serverEndpointName", serverEndpointName); + tracingParameters.Add("parameters", parameters); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "BeginCreate", 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.StorageSync/storageSyncServices/{storageSyncServiceName}/syncGroups/{syncGroupName}/serverEndpoints/{serverEndpointName}").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{storageSyncServiceName}", System.Uri.EscapeDataString(storageSyncServiceName)); + _url = _url.Replace("{syncGroupName}", System.Uri.EscapeDataString(syncGroupName)); + _url = _url.Replace("{serverEndpointName}", System.Uri.EscapeDataString(serverEndpointName)); + 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(parameters != null) + { + _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(parameters, 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 StorageSyncErrorException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + StorageSyncError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + try + { + _result.Headers = _httpResponse.GetHeadersAsJson().ToObject(JsonSerializer.Create(Client.DeserializationSettings)); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the headers.", _httpResponse.GetHeadersAsJson().ToString(), ex); + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Patch a given ServerEndpoint. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of Storage Sync Service resource. + /// + /// + /// Name of Sync Group resource. + /// + /// + /// Name of Server Endpoint object. + /// + /// + /// Any of the properties applicable in PUT request. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task> BeginUpdateWithHttpMessagesAsync(string resourceGroupName, string storageSyncServiceName, string syncGroupName, string serverEndpointName, ServerEndpointUpdateParameters parameters = default(ServerEndpointUpdateParameters), 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 (storageSyncServiceName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "storageSyncServiceName"); + } + if (syncGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "syncGroupName"); + } + if (serverEndpointName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "serverEndpointName"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("storageSyncServiceName", storageSyncServiceName); + tracingParameters.Add("syncGroupName", syncGroupName); + tracingParameters.Add("serverEndpointName", serverEndpointName); + tracingParameters.Add("parameters", parameters); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "BeginUpdate", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageSync/storageSyncServices/{storageSyncServiceName}/syncGroups/{syncGroupName}/serverEndpoints/{serverEndpointName}").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{storageSyncServiceName}", System.Uri.EscapeDataString(storageSyncServiceName)); + _url = _url.Replace("{syncGroupName}", System.Uri.EscapeDataString(syncGroupName)); + _url = _url.Replace("{serverEndpointName}", System.Uri.EscapeDataString(serverEndpointName)); + 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(parameters != null) + { + _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(parameters, 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 StorageSyncErrorException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + StorageSyncError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + try + { + _result.Headers = _httpResponse.GetHeadersAsJson().ToObject(JsonSerializer.Create(Client.DeserializationSettings)); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the headers.", _httpResponse.GetHeadersAsJson().ToString(), ex); + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Delete a given ServerEndpoint. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of Storage Sync Service resource. + /// + /// + /// Name of Sync Group resource. + /// + /// + /// Name of Server Endpoint object. + /// + /// + /// 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 storageSyncServiceName, string syncGroupName, string serverEndpointName, 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 (storageSyncServiceName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "storageSyncServiceName"); + } + if (syncGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "syncGroupName"); + } + if (serverEndpointName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "serverEndpointName"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("storageSyncServiceName", storageSyncServiceName); + tracingParameters.Add("syncGroupName", syncGroupName); + tracingParameters.Add("serverEndpointName", serverEndpointName); + 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.StorageSync/storageSyncServices/{storageSyncServiceName}/syncGroups/{syncGroupName}/serverEndpoints/{serverEndpointName}").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{storageSyncServiceName}", System.Uri.EscapeDataString(storageSyncServiceName)); + _url = _url.Replace("{syncGroupName}", System.Uri.EscapeDataString(syncGroupName)); + _url = _url.Replace("{serverEndpointName}", System.Uri.EscapeDataString(serverEndpointName)); + 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) + { + var ex = new StorageSyncErrorException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + StorageSyncError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationHeaderResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + try + { + _result.Headers = _httpResponse.GetHeadersAsJson().ToObject(JsonSerializer.Create(Client.DeserializationSettings)); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the headers.", _httpResponse.GetHeadersAsJson().ToString(), ex); + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Recall a serverendpoint. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of Storage Sync Service resource. + /// + /// + /// Name of Sync Group resource. + /// + /// + /// Name of Server Endpoint object. + /// + /// + /// Body of Recall Action object. + /// + /// + /// 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> BeginRecallActionWithHttpMessagesAsync(string resourceGroupName, string storageSyncServiceName, string syncGroupName, string serverEndpointName, RecallActionParameters parameters, 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 (storageSyncServiceName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "storageSyncServiceName"); + } + if (syncGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "syncGroupName"); + } + if (serverEndpointName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "serverEndpointName"); + } + if (parameters == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "parameters"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("storageSyncServiceName", storageSyncServiceName); + tracingParameters.Add("syncGroupName", syncGroupName); + tracingParameters.Add("serverEndpointName", serverEndpointName); + tracingParameters.Add("parameters", parameters); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "BeginRecallAction", 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.StorageSync/storageSyncServices/{storageSyncServiceName}/syncGroups/{syncGroupName}/serverEndpoints/{serverEndpointName}/recallAction").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{storageSyncServiceName}", System.Uri.EscapeDataString(storageSyncServiceName)); + _url = _url.Replace("{syncGroupName}", System.Uri.EscapeDataString(syncGroupName)); + _url = _url.Replace("{serverEndpointName}", System.Uri.EscapeDataString(serverEndpointName)); + 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(parameters != null) + { + _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(parameters, 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 StorageSyncErrorException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + StorageSyncError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationHeaderResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + try + { + _result.Headers = _httpResponse.GetHeadersAsJson().ToObject(JsonSerializer.Create(Client.DeserializationSettings)); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the headers.", _httpResponse.GetHeadersAsJson().ToString(), ex); + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + } +} diff --git a/src/SDKs/StorageSync/Management.StorageSync/Generated/ServerEndpointsOperationsExtensions.cs b/src/SDKs/StorageSync/Management.StorageSync/Generated/ServerEndpointsOperationsExtensions.cs new file mode 100644 index 000000000000..0151fdd115e9 --- /dev/null +++ b/src/SDKs/StorageSync/Management.StorageSync/Generated/ServerEndpointsOperationsExtensions.cs @@ -0,0 +1,577 @@ +// +// 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.StorageSync +{ + 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 ServerEndpointsOperations. + /// + public static partial class ServerEndpointsOperationsExtensions + { + /// + /// Create a new ServerEndpoint. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of Storage Sync Service resource. + /// + /// + /// Name of Sync Group resource. + /// + /// + /// Name of Server Endpoint object. + /// + /// + /// Body of Server Endpoint object. + /// + public static ServerEndpoint Create(this IServerEndpointsOperations operations, string resourceGroupName, string storageSyncServiceName, string syncGroupName, string serverEndpointName, ServerEndpointCreateParameters parameters) + { + return operations.CreateAsync(resourceGroupName, storageSyncServiceName, syncGroupName, serverEndpointName, parameters).GetAwaiter().GetResult(); + } + + /// + /// Create a new ServerEndpoint. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of Storage Sync Service resource. + /// + /// + /// Name of Sync Group resource. + /// + /// + /// Name of Server Endpoint object. + /// + /// + /// Body of Server Endpoint object. + /// + /// + /// The cancellation token. + /// + public static async Task CreateAsync(this IServerEndpointsOperations operations, string resourceGroupName, string storageSyncServiceName, string syncGroupName, string serverEndpointName, ServerEndpointCreateParameters parameters, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.CreateWithHttpMessagesAsync(resourceGroupName, storageSyncServiceName, syncGroupName, serverEndpointName, parameters, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Patch a given ServerEndpoint. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of Storage Sync Service resource. + /// + /// + /// Name of Sync Group resource. + /// + /// + /// Name of Server Endpoint object. + /// + /// + /// Any of the properties applicable in PUT request. + /// + public static ServerEndpoint Update(this IServerEndpointsOperations operations, string resourceGroupName, string storageSyncServiceName, string syncGroupName, string serverEndpointName, ServerEndpointUpdateParameters parameters = default(ServerEndpointUpdateParameters)) + { + return operations.UpdateAsync(resourceGroupName, storageSyncServiceName, syncGroupName, serverEndpointName, parameters).GetAwaiter().GetResult(); + } + + /// + /// Patch a given ServerEndpoint. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of Storage Sync Service resource. + /// + /// + /// Name of Sync Group resource. + /// + /// + /// Name of Server Endpoint object. + /// + /// + /// Any of the properties applicable in PUT request. + /// + /// + /// The cancellation token. + /// + public static async Task UpdateAsync(this IServerEndpointsOperations operations, string resourceGroupName, string storageSyncServiceName, string syncGroupName, string serverEndpointName, ServerEndpointUpdateParameters parameters = default(ServerEndpointUpdateParameters), CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.UpdateWithHttpMessagesAsync(resourceGroupName, storageSyncServiceName, syncGroupName, serverEndpointName, parameters, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Get a ServerEndpoint. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of Storage Sync Service resource. + /// + /// + /// Name of Sync Group resource. + /// + /// + /// Name of Server Endpoint object. + /// + public static ServerEndpoint Get(this IServerEndpointsOperations operations, string resourceGroupName, string storageSyncServiceName, string syncGroupName, string serverEndpointName) + { + return operations.GetAsync(resourceGroupName, storageSyncServiceName, syncGroupName, serverEndpointName).GetAwaiter().GetResult(); + } + + /// + /// Get a ServerEndpoint. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of Storage Sync Service resource. + /// + /// + /// Name of Sync Group resource. + /// + /// + /// Name of Server Endpoint object. + /// + /// + /// The cancellation token. + /// + public static async Task GetAsync(this IServerEndpointsOperations operations, string resourceGroupName, string storageSyncServiceName, string syncGroupName, string serverEndpointName, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.GetWithHttpMessagesAsync(resourceGroupName, storageSyncServiceName, syncGroupName, serverEndpointName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Delete a given ServerEndpoint. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of Storage Sync Service resource. + /// + /// + /// Name of Sync Group resource. + /// + /// + /// Name of Server Endpoint object. + /// + public static ServerEndpointsDeleteHeaders Delete(this IServerEndpointsOperations operations, string resourceGroupName, string storageSyncServiceName, string syncGroupName, string serverEndpointName) + { + return operations.DeleteAsync(resourceGroupName, storageSyncServiceName, syncGroupName, serverEndpointName).GetAwaiter().GetResult(); + } + + /// + /// Delete a given ServerEndpoint. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of Storage Sync Service resource. + /// + /// + /// Name of Sync Group resource. + /// + /// + /// Name of Server Endpoint object. + /// + /// + /// The cancellation token. + /// + public static async Task DeleteAsync(this IServerEndpointsOperations operations, string resourceGroupName, string storageSyncServiceName, string syncGroupName, string serverEndpointName, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.DeleteWithHttpMessagesAsync(resourceGroupName, storageSyncServiceName, syncGroupName, serverEndpointName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Headers; + } + } + + /// + /// Get a ServerEndpoint list. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of Storage Sync Service resource. + /// + /// + /// Name of Sync Group resource. + /// + public static IEnumerable ListBySyncGroup(this IServerEndpointsOperations operations, string resourceGroupName, string storageSyncServiceName, string syncGroupName) + { + return operations.ListBySyncGroupAsync(resourceGroupName, storageSyncServiceName, syncGroupName).GetAwaiter().GetResult(); + } + + /// + /// Get a ServerEndpoint list. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of Storage Sync Service resource. + /// + /// + /// Name of Sync Group resource. + /// + /// + /// The cancellation token. + /// + public static async Task> ListBySyncGroupAsync(this IServerEndpointsOperations operations, string resourceGroupName, string storageSyncServiceName, string syncGroupName, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListBySyncGroupWithHttpMessagesAsync(resourceGroupName, storageSyncServiceName, syncGroupName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Recall a serverendpoint. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of Storage Sync Service resource. + /// + /// + /// Name of Sync Group resource. + /// + /// + /// Name of Server Endpoint object. + /// + /// + /// Body of Recall Action object. + /// + public static ServerEndpointsRecallActionHeaders RecallAction(this IServerEndpointsOperations operations, string resourceGroupName, string storageSyncServiceName, string syncGroupName, string serverEndpointName, RecallActionParameters parameters) + { + return operations.RecallActionAsync(resourceGroupName, storageSyncServiceName, syncGroupName, serverEndpointName, parameters).GetAwaiter().GetResult(); + } + + /// + /// Recall a serverendpoint. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of Storage Sync Service resource. + /// + /// + /// Name of Sync Group resource. + /// + /// + /// Name of Server Endpoint object. + /// + /// + /// Body of Recall Action object. + /// + /// + /// The cancellation token. + /// + public static async Task RecallActionAsync(this IServerEndpointsOperations operations, string resourceGroupName, string storageSyncServiceName, string syncGroupName, string serverEndpointName, RecallActionParameters parameters, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.RecallActionWithHttpMessagesAsync(resourceGroupName, storageSyncServiceName, syncGroupName, serverEndpointName, parameters, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Headers; + } + } + + /// + /// Create a new ServerEndpoint. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of Storage Sync Service resource. + /// + /// + /// Name of Sync Group resource. + /// + /// + /// Name of Server Endpoint object. + /// + /// + /// Body of Server Endpoint object. + /// + public static ServerEndpoint BeginCreate(this IServerEndpointsOperations operations, string resourceGroupName, string storageSyncServiceName, string syncGroupName, string serverEndpointName, ServerEndpointCreateParameters parameters) + { + return operations.BeginCreateAsync(resourceGroupName, storageSyncServiceName, syncGroupName, serverEndpointName, parameters).GetAwaiter().GetResult(); + } + + /// + /// Create a new ServerEndpoint. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of Storage Sync Service resource. + /// + /// + /// Name of Sync Group resource. + /// + /// + /// Name of Server Endpoint object. + /// + /// + /// Body of Server Endpoint object. + /// + /// + /// The cancellation token. + /// + public static async Task BeginCreateAsync(this IServerEndpointsOperations operations, string resourceGroupName, string storageSyncServiceName, string syncGroupName, string serverEndpointName, ServerEndpointCreateParameters parameters, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.BeginCreateWithHttpMessagesAsync(resourceGroupName, storageSyncServiceName, syncGroupName, serverEndpointName, parameters, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Patch a given ServerEndpoint. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of Storage Sync Service resource. + /// + /// + /// Name of Sync Group resource. + /// + /// + /// Name of Server Endpoint object. + /// + /// + /// Any of the properties applicable in PUT request. + /// + public static ServerEndpoint BeginUpdate(this IServerEndpointsOperations operations, string resourceGroupName, string storageSyncServiceName, string syncGroupName, string serverEndpointName, ServerEndpointUpdateParameters parameters = default(ServerEndpointUpdateParameters)) + { + return operations.BeginUpdateAsync(resourceGroupName, storageSyncServiceName, syncGroupName, serverEndpointName, parameters).GetAwaiter().GetResult(); + } + + /// + /// Patch a given ServerEndpoint. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of Storage Sync Service resource. + /// + /// + /// Name of Sync Group resource. + /// + /// + /// Name of Server Endpoint object. + /// + /// + /// Any of the properties applicable in PUT request. + /// + /// + /// The cancellation token. + /// + public static async Task BeginUpdateAsync(this IServerEndpointsOperations operations, string resourceGroupName, string storageSyncServiceName, string syncGroupName, string serverEndpointName, ServerEndpointUpdateParameters parameters = default(ServerEndpointUpdateParameters), CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.BeginUpdateWithHttpMessagesAsync(resourceGroupName, storageSyncServiceName, syncGroupName, serverEndpointName, parameters, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Delete a given ServerEndpoint. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of Storage Sync Service resource. + /// + /// + /// Name of Sync Group resource. + /// + /// + /// Name of Server Endpoint object. + /// + public static ServerEndpointsDeleteHeaders BeginDelete(this IServerEndpointsOperations operations, string resourceGroupName, string storageSyncServiceName, string syncGroupName, string serverEndpointName) + { + return operations.BeginDeleteAsync(resourceGroupName, storageSyncServiceName, syncGroupName, serverEndpointName).GetAwaiter().GetResult(); + } + + /// + /// Delete a given ServerEndpoint. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of Storage Sync Service resource. + /// + /// + /// Name of Sync Group resource. + /// + /// + /// Name of Server Endpoint object. + /// + /// + /// The cancellation token. + /// + public static async Task BeginDeleteAsync(this IServerEndpointsOperations operations, string resourceGroupName, string storageSyncServiceName, string syncGroupName, string serverEndpointName, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.BeginDeleteWithHttpMessagesAsync(resourceGroupName, storageSyncServiceName, syncGroupName, serverEndpointName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Headers; + } + } + + /// + /// Recall a serverendpoint. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of Storage Sync Service resource. + /// + /// + /// Name of Sync Group resource. + /// + /// + /// Name of Server Endpoint object. + /// + /// + /// Body of Recall Action object. + /// + public static ServerEndpointsRecallActionHeaders BeginRecallAction(this IServerEndpointsOperations operations, string resourceGroupName, string storageSyncServiceName, string syncGroupName, string serverEndpointName, RecallActionParameters parameters) + { + return operations.BeginRecallActionAsync(resourceGroupName, storageSyncServiceName, syncGroupName, serverEndpointName, parameters).GetAwaiter().GetResult(); + } + + /// + /// Recall a serverendpoint. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of Storage Sync Service resource. + /// + /// + /// Name of Sync Group resource. + /// + /// + /// Name of Server Endpoint object. + /// + /// + /// Body of Recall Action object. + /// + /// + /// The cancellation token. + /// + public static async Task BeginRecallActionAsync(this IServerEndpointsOperations operations, string resourceGroupName, string storageSyncServiceName, string syncGroupName, string serverEndpointName, RecallActionParameters parameters, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.BeginRecallActionWithHttpMessagesAsync(resourceGroupName, storageSyncServiceName, syncGroupName, serverEndpointName, parameters, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Headers; + } + } + + } +} diff --git a/src/SDKs/StorageSync/Management.StorageSync/Generated/StorageSyncManagementClient.cs b/src/SDKs/StorageSync/Management.StorageSync/Generated/StorageSyncManagementClient.cs new file mode 100644 index 000000000000..fceb2dd1a7ad --- /dev/null +++ b/src/SDKs/StorageSync/Management.StorageSync/Generated/StorageSyncManagementClient.cs @@ -0,0 +1,396 @@ +// +// 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.StorageSync +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Microsoft.Rest.Serialization; + using Models; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + using System.Net; + using System.Net.Http; + + /// + /// Microsoft Storage Sync Service API + /// + public partial class StorageSyncManagementClient : ServiceClient, IStorageSyncManagementClient, IAzureClient + { + /// + /// The base URI of the service. + /// + public System.Uri BaseUri { get; set; } + + /// + /// Gets or sets json serialization settings. + /// + public JsonSerializerSettings SerializationSettings { get; private set; } + + /// + /// Gets or sets json deserialization settings. + /// + public JsonSerializerSettings DeserializationSettings { get; private set; } + + /// + /// Credentials needed for the client to connect to Azure. + /// + public ServiceClientCredentials Credentials { get; private set; } + + /// + /// The API version to use for this operation. + /// + public string ApiVersion { get; private set; } + + /// + /// The ID of the target subscription. + /// + public string SubscriptionId { get; set; } + + /// + /// The preferred language for the response. + /// + public string AcceptLanguage { get; set; } + + /// + /// The retry timeout in seconds for Long Running Operations. Default value is + /// 30. + /// + public int? LongRunningOperationRetryTimeout { get; set; } + + /// + /// Whether a unique x-ms-client-request-id should be generated. When set to + /// true a unique x-ms-client-request-id value is generated and included in + /// each request. Default is true. + /// + public bool? GenerateClientRequestId { get; set; } + + /// + /// Gets the IOperations. + /// + public virtual IOperations Operations { get; private set; } + + /// + /// Gets the IStorageSyncServicesOperations. + /// + public virtual IStorageSyncServicesOperations StorageSyncServices { get; private set; } + + /// + /// Gets the ISyncGroupsOperations. + /// + public virtual ISyncGroupsOperations SyncGroups { get; private set; } + + /// + /// Gets the ICloudEndpointsOperations. + /// + public virtual ICloudEndpointsOperations CloudEndpoints { get; private set; } + + /// + /// Gets the IServerEndpointsOperations. + /// + public virtual IServerEndpointsOperations ServerEndpoints { get; private set; } + + /// + /// Gets the IRegisteredServersOperations. + /// + public virtual IRegisteredServersOperations RegisteredServers { get; private set; } + + /// + /// Gets the IWorkflowsOperations. + /// + public virtual IWorkflowsOperations Workflows { get; private set; } + + /// + /// Initializes a new instance of the StorageSyncManagementClient class. + /// + /// + /// HttpClient to be used + /// + /// + /// True: will dispose the provided httpClient on calling StorageSyncManagementClient.Dispose(). False: will not dispose provided httpClient + protected StorageSyncManagementClient(HttpClient httpClient, bool disposeHttpClient) : base(httpClient, disposeHttpClient) + { + Initialize(); + } + + /// + /// Initializes a new instance of the StorageSyncManagementClient class. + /// + /// + /// Optional. The delegating handlers to add to the http client pipeline. + /// + protected StorageSyncManagementClient(params DelegatingHandler[] handlers) : base(handlers) + { + Initialize(); + } + + /// + /// Initializes a new instance of the StorageSyncManagementClient class. + /// + /// + /// Optional. The http client handler used to handle http transport. + /// + /// + /// Optional. The delegating handlers to add to the http client pipeline. + /// + protected StorageSyncManagementClient(HttpClientHandler rootHandler, params DelegatingHandler[] handlers) : base(rootHandler, handlers) + { + Initialize(); + } + + /// + /// Initializes a new instance of the StorageSyncManagementClient class. + /// + /// + /// Optional. The base URI of the service. + /// + /// + /// Optional. The delegating handlers to add to the http client pipeline. + /// + /// + /// Thrown when a required parameter is null + /// + protected StorageSyncManagementClient(System.Uri baseUri, params DelegatingHandler[] handlers) : this(handlers) + { + if (baseUri == null) + { + throw new System.ArgumentNullException("baseUri"); + } + BaseUri = baseUri; + } + + /// + /// Initializes a new instance of the StorageSyncManagementClient class. + /// + /// + /// Optional. The base URI of the service. + /// + /// + /// Optional. The http client handler used to handle http transport. + /// + /// + /// Optional. The delegating handlers to add to the http client pipeline. + /// + /// + /// Thrown when a required parameter is null + /// + protected StorageSyncManagementClient(System.Uri baseUri, HttpClientHandler rootHandler, params DelegatingHandler[] handlers) : this(rootHandler, handlers) + { + if (baseUri == null) + { + throw new System.ArgumentNullException("baseUri"); + } + BaseUri = baseUri; + } + + /// + /// Initializes a new instance of the StorageSyncManagementClient class. + /// + /// + /// Required. Credentials needed for the client to connect to Azure. + /// + /// + /// Optional. The delegating handlers to add to the http client pipeline. + /// + /// + /// Thrown when a required parameter is null + /// + public StorageSyncManagementClient(ServiceClientCredentials credentials, params DelegatingHandler[] handlers) : this(handlers) + { + if (credentials == null) + { + throw new System.ArgumentNullException("credentials"); + } + Credentials = credentials; + if (Credentials != null) + { + Credentials.InitializeServiceClient(this); + } + } + + /// + /// Initializes a new instance of the StorageSyncManagementClient class. + /// + /// + /// Required. Credentials needed for the client to connect to Azure. + /// + /// + /// HttpClient to be used + /// + /// + /// True: will dispose the provided httpClient on calling StorageSyncManagementClient.Dispose(). False: will not dispose provided httpClient + /// + /// Thrown when a required parameter is null + /// + public StorageSyncManagementClient(ServiceClientCredentials credentials, HttpClient httpClient, bool disposeHttpClient) : this(httpClient, disposeHttpClient) + { + if (credentials == null) + { + throw new System.ArgumentNullException("credentials"); + } + Credentials = credentials; + if (Credentials != null) + { + Credentials.InitializeServiceClient(this); + } + } + + /// + /// Initializes a new instance of the StorageSyncManagementClient class. + /// + /// + /// Required. Credentials needed for the client to connect to Azure. + /// + /// + /// Optional. The http client handler used to handle http transport. + /// + /// + /// Optional. The delegating handlers to add to the http client pipeline. + /// + /// + /// Thrown when a required parameter is null + /// + public StorageSyncManagementClient(ServiceClientCredentials credentials, HttpClientHandler rootHandler, params DelegatingHandler[] handlers) : this(rootHandler, handlers) + { + if (credentials == null) + { + throw new System.ArgumentNullException("credentials"); + } + Credentials = credentials; + if (Credentials != null) + { + Credentials.InitializeServiceClient(this); + } + } + + /// + /// Initializes a new instance of the StorageSyncManagementClient class. + /// + /// + /// Optional. The base URI of the service. + /// + /// + /// Required. Credentials needed for the client to connect to Azure. + /// + /// + /// Optional. The delegating handlers to add to the http client pipeline. + /// + /// + /// Thrown when a required parameter is null + /// + public StorageSyncManagementClient(System.Uri baseUri, ServiceClientCredentials credentials, params DelegatingHandler[] handlers) : this(handlers) + { + if (baseUri == null) + { + throw new System.ArgumentNullException("baseUri"); + } + if (credentials == null) + { + throw new System.ArgumentNullException("credentials"); + } + BaseUri = baseUri; + Credentials = credentials; + if (Credentials != null) + { + Credentials.InitializeServiceClient(this); + } + } + + /// + /// Initializes a new instance of the StorageSyncManagementClient class. + /// + /// + /// Optional. The base URI of the service. + /// + /// + /// Required. Credentials needed for the client to connect to Azure. + /// + /// + /// Optional. The http client handler used to handle http transport. + /// + /// + /// Optional. The delegating handlers to add to the http client pipeline. + /// + /// + /// Thrown when a required parameter is null + /// + public StorageSyncManagementClient(System.Uri baseUri, ServiceClientCredentials credentials, HttpClientHandler rootHandler, params DelegatingHandler[] handlers) : this(rootHandler, handlers) + { + if (baseUri == null) + { + throw new System.ArgumentNullException("baseUri"); + } + if (credentials == null) + { + throw new System.ArgumentNullException("credentials"); + } + BaseUri = baseUri; + Credentials = credentials; + if (Credentials != null) + { + Credentials.InitializeServiceClient(this); + } + } + + /// + /// An optional partial-method to perform custom initialization. + /// + partial void CustomInitialize(); + /// + /// Initializes client properties. + /// + private void Initialize() + { + Operations = new Operations(this); + StorageSyncServices = new StorageSyncServicesOperations(this); + SyncGroups = new SyncGroupsOperations(this); + CloudEndpoints = new CloudEndpointsOperations(this); + ServerEndpoints = new ServerEndpointsOperations(this); + RegisteredServers = new RegisteredServersOperations(this); + Workflows = new WorkflowsOperations(this); + BaseUri = new System.Uri("https://azure.microsoft.com"); + ApiVersion = "2018-04-02"; + AcceptLanguage = "en-US"; + LongRunningOperationRetryTimeout = 30; + GenerateClientRequestId = true; + SerializationSettings = new JsonSerializerSettings + { + Formatting = Newtonsoft.Json.Formatting.Indented, + DateFormatHandling = Newtonsoft.Json.DateFormatHandling.IsoDateFormat, + DateTimeZoneHandling = Newtonsoft.Json.DateTimeZoneHandling.Utc, + NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore, + ReferenceLoopHandling = Newtonsoft.Json.ReferenceLoopHandling.Serialize, + ContractResolver = new ReadOnlyJsonContractResolver(), + Converters = new List + { + new Iso8601TimeSpanConverter() + } + }; + SerializationSettings.Converters.Add(new TransformationJsonConverter()); + DeserializationSettings = new JsonSerializerSettings + { + DateFormatHandling = Newtonsoft.Json.DateFormatHandling.IsoDateFormat, + DateTimeZoneHandling = Newtonsoft.Json.DateTimeZoneHandling.Utc, + NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore, + ReferenceLoopHandling = Newtonsoft.Json.ReferenceLoopHandling.Serialize, + ContractResolver = new ReadOnlyJsonContractResolver(), + Converters = new List + { + new Iso8601TimeSpanConverter() + } + }; + CustomInitialize(); + DeserializationSettings.Converters.Add(new TransformationJsonConverter()); + DeserializationSettings.Converters.Add(new CloudErrorJsonConverter()); + } + } +} diff --git a/src/SDKs/StorageSync/Management.StorageSync/Generated/StorageSyncServicesOperations.cs b/src/SDKs/StorageSync/Management.StorageSync/Generated/StorageSyncServicesOperations.cs new file mode 100644 index 000000000000..96d5dbdf73c9 --- /dev/null +++ b/src/SDKs/StorageSync/Management.StorageSync/Generated/StorageSyncServicesOperations.cs @@ -0,0 +1,1620 @@ +// +// 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.StorageSync +{ + 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; + + /// + /// StorageSyncServicesOperations operations. + /// + internal partial class StorageSyncServicesOperations : IServiceOperations, IStorageSyncServicesOperations + { + /// + /// Initializes a new instance of the StorageSyncServicesOperations class. + /// + /// + /// Reference to the service client. + /// + /// + /// Thrown when a required parameter is null + /// + internal StorageSyncServicesOperations(StorageSyncManagementClient client) + { + if (client == null) + { + throw new System.ArgumentNullException("client"); + } + Client = client; + } + + /// + /// Gets a reference to the StorageSyncManagementClient + /// + public StorageSyncManagementClient Client { get; private set; } + + /// + /// Check the give namespace name availability. + /// + /// + /// The desired region for the name check. + /// + /// + /// The name to check for availability + /// + /// + /// 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> CheckNameAvailabilityWithHttpMessagesAsync(string locationName, string name, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (locationName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "locationName"); + } + 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 (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 (name == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "name"); + } + CheckNameAvailabilityParameters parameters = new CheckNameAvailabilityParameters(); + if (name != null) + { + parameters.Name = name; + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("locationName", locationName); + tracingParameters.Add("parameters", parameters); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "CheckNameAvailability", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/providers/Microsoft.StorageSync/locations/{locationName}/checkNameAvailability").ToString(); + _url = _url.Replace("{locationName}", System.Uri.EscapeDataString(locationName)); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + List _queryParameters = new List(); + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("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(parameters != null) + { + _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(parameters, 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 a new StorageSyncService. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of Storage Sync Service resource. + /// + /// + /// Storage Sync Service resource 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> CreateWithHttpMessagesAsync(string resourceGroupName, string storageSyncServiceName, StorageSyncServiceCreateParameters parameters, 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 (storageSyncServiceName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "storageSyncServiceName"); + } + if (parameters == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "parameters"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("storageSyncServiceName", storageSyncServiceName); + tracingParameters.Add("parameters", parameters); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "Create", 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.StorageSync/storageSyncServices/{storageSyncServiceName}").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{storageSyncServiceName}", System.Uri.EscapeDataString(storageSyncServiceName)); + 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(parameters != null) + { + _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(parameters, 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 StorageSyncErrorException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + StorageSyncError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Get a given StorageSyncService. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of Storage Sync Service 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 storageSyncServiceName, 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 (storageSyncServiceName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "storageSyncServiceName"); + } + 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("storageSyncServiceName", storageSyncServiceName); + 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.StorageSync/storageSyncServices/{storageSyncServiceName}").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{storageSyncServiceName}", System.Uri.EscapeDataString(storageSyncServiceName)); + 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 StorageSyncErrorException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + StorageSyncError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + try + { + _result.Headers = _httpResponse.GetHeadersAsJson().ToObject(JsonSerializer.Create(Client.DeserializationSettings)); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the headers.", _httpResponse.GetHeadersAsJson().ToString(), ex); + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Patch a given StorageSyncService. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of Storage Sync Service resource. + /// + /// + /// Storage Sync Service 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> UpdateWithHttpMessagesAsync(string resourceGroupName, string storageSyncServiceName, StorageSyncServiceUpdateParameters parameters = default(StorageSyncServiceUpdateParameters), 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 (storageSyncServiceName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "storageSyncServiceName"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("storageSyncServiceName", storageSyncServiceName); + tracingParameters.Add("parameters", parameters); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "Update", 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.StorageSync/storageSyncServices/{storageSyncServiceName}").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{storageSyncServiceName}", System.Uri.EscapeDataString(storageSyncServiceName)); + 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(parameters != null) + { + _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(parameters, 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 StorageSyncErrorException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + StorageSyncError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + try + { + _result.Headers = _httpResponse.GetHeadersAsJson().ToObject(JsonSerializer.Create(Client.DeserializationSettings)); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the headers.", _httpResponse.GetHeadersAsJson().ToString(), ex); + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Delete a given StorageSyncService. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of Storage Sync Service 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> DeleteWithHttpMessagesAsync(string resourceGroupName, string storageSyncServiceName, 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 (storageSyncServiceName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "storageSyncServiceName"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("storageSyncServiceName", storageSyncServiceName); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "Delete", 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.StorageSync/storageSyncServices/{storageSyncServiceName}").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{storageSyncServiceName}", System.Uri.EscapeDataString(storageSyncServiceName)); + 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 != 204) + { + var ex = new StorageSyncErrorException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + StorageSyncError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationHeaderResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + try + { + _result.Headers = _httpResponse.GetHeadersAsJson().ToObject(JsonSerializer.Create(Client.DeserializationSettings)); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the headers.", _httpResponse.GetHeadersAsJson().ToString(), ex); + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Get a StorageSyncService list by Resource group name. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// 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,StorageSyncServicesListByResourceGroupHeaders>> ListByResourceGroupWithHttpMessagesAsync(string resourceGroupName, 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); + } + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "ListByResourceGroup", 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.StorageSync/storageSyncServices").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + List _queryParameters = new List(); + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new StorageSyncErrorException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + StorageSyncError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse,StorageSyncServicesListByResourceGroupHeaders>(); + _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); + } + } + try + { + _result.Headers = _httpResponse.GetHeadersAsJson().ToObject(JsonSerializer.Create(Client.DeserializationSettings)); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the headers.", _httpResponse.GetHeadersAsJson().ToString(), ex); + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Get a StorageSyncService list by subscription. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task,StorageSyncServicesListBySubscriptionHeaders>> ListBySubscriptionWithHttpMessagesAsync(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 (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("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "ListBySubscription", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/providers/Microsoft.StorageSync/storageSyncServices").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + List _queryParameters = new List(); + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new StorageSyncErrorException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + StorageSyncError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse,StorageSyncServicesListBySubscriptionHeaders>(); + _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); + } + } + try + { + _result.Headers = _httpResponse.GetHeadersAsJson().ToObject(JsonSerializer.Create(Client.DeserializationSettings)); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the headers.", _httpResponse.GetHeadersAsJson().ToString(), ex); + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + } +} diff --git a/src/SDKs/StorageSync/Management.StorageSync/Generated/StorageSyncServicesOperationsExtensions.cs b/src/SDKs/StorageSync/Management.StorageSync/Generated/StorageSyncServicesOperationsExtensions.cs new file mode 100644 index 000000000000..891274f71e0e --- /dev/null +++ b/src/SDKs/StorageSync/Management.StorageSync/Generated/StorageSyncServicesOperationsExtensions.cs @@ -0,0 +1,301 @@ +// +// 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.StorageSync +{ + 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 StorageSyncServicesOperations. + /// + public static partial class StorageSyncServicesOperationsExtensions + { + /// + /// Check the give namespace name availability. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The desired region for the name check. + /// + /// + /// The name to check for availability + /// + public static CheckNameAvailabilityResult CheckNameAvailability(this IStorageSyncServicesOperations operations, string locationName, string name) + { + return operations.CheckNameAvailabilityAsync(locationName, name).GetAwaiter().GetResult(); + } + + /// + /// Check the give namespace name availability. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The desired region for the name check. + /// + /// + /// The name to check for availability + /// + /// + /// The cancellation token. + /// + public static async Task CheckNameAvailabilityAsync(this IStorageSyncServicesOperations operations, string locationName, string name, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.CheckNameAvailabilityWithHttpMessagesAsync(locationName, name, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Create a new StorageSyncService. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of Storage Sync Service resource. + /// + /// + /// Storage Sync Service resource name. + /// + public static StorageSyncService Create(this IStorageSyncServicesOperations operations, string resourceGroupName, string storageSyncServiceName, StorageSyncServiceCreateParameters parameters) + { + return operations.CreateAsync(resourceGroupName, storageSyncServiceName, parameters).GetAwaiter().GetResult(); + } + + /// + /// Create a new StorageSyncService. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of Storage Sync Service resource. + /// + /// + /// Storage Sync Service resource name. + /// + /// + /// The cancellation token. + /// + public static async Task CreateAsync(this IStorageSyncServicesOperations operations, string resourceGroupName, string storageSyncServiceName, StorageSyncServiceCreateParameters parameters, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.CreateWithHttpMessagesAsync(resourceGroupName, storageSyncServiceName, parameters, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Get a given StorageSyncService. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of Storage Sync Service resource. + /// + public static StorageSyncService Get(this IStorageSyncServicesOperations operations, string resourceGroupName, string storageSyncServiceName) + { + return operations.GetAsync(resourceGroupName, storageSyncServiceName).GetAwaiter().GetResult(); + } + + /// + /// Get a given StorageSyncService. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of Storage Sync Service resource. + /// + /// + /// The cancellation token. + /// + public static async Task GetAsync(this IStorageSyncServicesOperations operations, string resourceGroupName, string storageSyncServiceName, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.GetWithHttpMessagesAsync(resourceGroupName, storageSyncServiceName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Patch a given StorageSyncService. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of Storage Sync Service resource. + /// + /// + /// Storage Sync Service resource. + /// + public static StorageSyncService Update(this IStorageSyncServicesOperations operations, string resourceGroupName, string storageSyncServiceName, StorageSyncServiceUpdateParameters parameters = default(StorageSyncServiceUpdateParameters)) + { + return operations.UpdateAsync(resourceGroupName, storageSyncServiceName, parameters).GetAwaiter().GetResult(); + } + + /// + /// Patch a given StorageSyncService. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of Storage Sync Service resource. + /// + /// + /// Storage Sync Service resource. + /// + /// + /// The cancellation token. + /// + public static async Task UpdateAsync(this IStorageSyncServicesOperations operations, string resourceGroupName, string storageSyncServiceName, StorageSyncServiceUpdateParameters parameters = default(StorageSyncServiceUpdateParameters), CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.UpdateWithHttpMessagesAsync(resourceGroupName, storageSyncServiceName, parameters, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Delete a given StorageSyncService. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of Storage Sync Service resource. + /// + public static StorageSyncServicesDeleteHeaders Delete(this IStorageSyncServicesOperations operations, string resourceGroupName, string storageSyncServiceName) + { + return operations.DeleteAsync(resourceGroupName, storageSyncServiceName).GetAwaiter().GetResult(); + } + + /// + /// Delete a given StorageSyncService. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of Storage Sync Service resource. + /// + /// + /// The cancellation token. + /// + public static async Task DeleteAsync(this IStorageSyncServicesOperations operations, string resourceGroupName, string storageSyncServiceName, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.DeleteWithHttpMessagesAsync(resourceGroupName, storageSyncServiceName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Headers; + } + } + + /// + /// Get a StorageSyncService list by Resource group name. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + public static IEnumerable ListByResourceGroup(this IStorageSyncServicesOperations operations, string resourceGroupName) + { + return operations.ListByResourceGroupAsync(resourceGroupName).GetAwaiter().GetResult(); + } + + /// + /// Get a StorageSyncService list by Resource group name. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// The cancellation token. + /// + public static async Task> ListByResourceGroupAsync(this IStorageSyncServicesOperations operations, string resourceGroupName, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListByResourceGroupWithHttpMessagesAsync(resourceGroupName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Get a StorageSyncService list by subscription. + /// + /// + /// The operations group for this extension method. + /// + public static IEnumerable ListBySubscription(this IStorageSyncServicesOperations operations) + { + return operations.ListBySubscriptionAsync().GetAwaiter().GetResult(); + } + + /// + /// Get a StorageSyncService list by subscription. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The cancellation token. + /// + public static async Task> ListBySubscriptionAsync(this IStorageSyncServicesOperations operations, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListBySubscriptionWithHttpMessagesAsync(null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + } +} diff --git a/src/SDKs/StorageSync/Management.StorageSync/Generated/SyncGroupsOperations.cs b/src/SDKs/StorageSync/Management.StorageSync/Generated/SyncGroupsOperations.cs new file mode 100644 index 000000000000..b2682f7339cd --- /dev/null +++ b/src/SDKs/StorageSync/Management.StorageSync/Generated/SyncGroupsOperations.cs @@ -0,0 +1,1006 @@ +// +// 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.StorageSync +{ + 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; + + /// + /// SyncGroupsOperations operations. + /// + internal partial class SyncGroupsOperations : IServiceOperations, ISyncGroupsOperations + { + /// + /// Initializes a new instance of the SyncGroupsOperations class. + /// + /// + /// Reference to the service client. + /// + /// + /// Thrown when a required parameter is null + /// + internal SyncGroupsOperations(StorageSyncManagementClient client) + { + if (client == null) + { + throw new System.ArgumentNullException("client"); + } + Client = client; + } + + /// + /// Gets a reference to the StorageSyncManagementClient + /// + public StorageSyncManagementClient Client { get; private set; } + + /// + /// Get a SyncGroup List. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of Storage Sync Service 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,SyncGroupsListByStorageSyncServiceHeaders>> ListByStorageSyncServiceWithHttpMessagesAsync(string resourceGroupName, string storageSyncServiceName, 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 (storageSyncServiceName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "storageSyncServiceName"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("storageSyncServiceName", storageSyncServiceName); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "ListByStorageSyncService", 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.StorageSync/storageSyncServices/{storageSyncServiceName}/syncGroups").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{storageSyncServiceName}", System.Uri.EscapeDataString(storageSyncServiceName)); + 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 StorageSyncErrorException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + StorageSyncError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse,SyncGroupsListByStorageSyncServiceHeaders>(); + _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); + } + } + try + { + _result.Headers = _httpResponse.GetHeadersAsJson().ToObject(JsonSerializer.Create(Client.DeserializationSettings)); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the headers.", _httpResponse.GetHeadersAsJson().ToString(), ex); + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Create a new SyncGroup. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of Storage Sync Service resource. + /// + /// + /// Name of Sync Group resource. + /// + /// + /// Sync Group Body + /// + /// + /// 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> CreateWithHttpMessagesAsync(string resourceGroupName, string storageSyncServiceName, string syncGroupName, SyncGroupCreateParameters parameters, 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 (storageSyncServiceName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "storageSyncServiceName"); + } + if (syncGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "syncGroupName"); + } + if (parameters == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "parameters"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("storageSyncServiceName", storageSyncServiceName); + tracingParameters.Add("syncGroupName", syncGroupName); + tracingParameters.Add("parameters", parameters); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "Create", 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.StorageSync/storageSyncServices/{storageSyncServiceName}/syncGroups/{syncGroupName}").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{storageSyncServiceName}", System.Uri.EscapeDataString(storageSyncServiceName)); + _url = _url.Replace("{syncGroupName}", System.Uri.EscapeDataString(syncGroupName)); + 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(parameters != null) + { + _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(parameters, 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 StorageSyncErrorException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + StorageSyncError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + try + { + _result.Headers = _httpResponse.GetHeadersAsJson().ToObject(JsonSerializer.Create(Client.DeserializationSettings)); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the headers.", _httpResponse.GetHeadersAsJson().ToString(), ex); + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Get a given SyncGroup. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of Storage Sync Service resource. + /// + /// + /// Name of Sync Group 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 storageSyncServiceName, string syncGroupName, 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 (storageSyncServiceName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "storageSyncServiceName"); + } + if (syncGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "syncGroupName"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("storageSyncServiceName", storageSyncServiceName); + tracingParameters.Add("syncGroupName", syncGroupName); + 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.StorageSync/storageSyncServices/{storageSyncServiceName}/syncGroups/{syncGroupName}").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{storageSyncServiceName}", System.Uri.EscapeDataString(storageSyncServiceName)); + _url = _url.Replace("{syncGroupName}", System.Uri.EscapeDataString(syncGroupName)); + 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 StorageSyncErrorException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + StorageSyncError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + try + { + _result.Headers = _httpResponse.GetHeadersAsJson().ToObject(JsonSerializer.Create(Client.DeserializationSettings)); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the headers.", _httpResponse.GetHeadersAsJson().ToString(), ex); + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Delete a given SyncGroup. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of Storage Sync Service resource. + /// + /// + /// Name of Sync Group 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> DeleteWithHttpMessagesAsync(string resourceGroupName, string storageSyncServiceName, string syncGroupName, 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 (storageSyncServiceName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "storageSyncServiceName"); + } + if (syncGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "syncGroupName"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("storageSyncServiceName", storageSyncServiceName); + tracingParameters.Add("syncGroupName", syncGroupName); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "Delete", 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.StorageSync/storageSyncServices/{storageSyncServiceName}/syncGroups/{syncGroupName}").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{storageSyncServiceName}", System.Uri.EscapeDataString(storageSyncServiceName)); + _url = _url.Replace("{syncGroupName}", System.Uri.EscapeDataString(syncGroupName)); + 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 != 204) + { + var ex = new StorageSyncErrorException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + StorageSyncError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationHeaderResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + try + { + _result.Headers = _httpResponse.GetHeadersAsJson().ToObject(JsonSerializer.Create(Client.DeserializationSettings)); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the headers.", _httpResponse.GetHeadersAsJson().ToString(), ex); + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + } +} diff --git a/src/SDKs/StorageSync/Management.StorageSync/Generated/SyncGroupsOperationsExtensions.cs b/src/SDKs/StorageSync/Management.StorageSync/Generated/SyncGroupsOperationsExtensions.cs new file mode 100644 index 000000000000..8bb9193e0138 --- /dev/null +++ b/src/SDKs/StorageSync/Management.StorageSync/Generated/SyncGroupsOperationsExtensions.cs @@ -0,0 +1,211 @@ +// +// 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.StorageSync +{ + 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 SyncGroupsOperations. + /// + public static partial class SyncGroupsOperationsExtensions + { + /// + /// Get a SyncGroup List. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of Storage Sync Service resource. + /// + public static IEnumerable ListByStorageSyncService(this ISyncGroupsOperations operations, string resourceGroupName, string storageSyncServiceName) + { + return operations.ListByStorageSyncServiceAsync(resourceGroupName, storageSyncServiceName).GetAwaiter().GetResult(); + } + + /// + /// Get a SyncGroup List. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of Storage Sync Service resource. + /// + /// + /// The cancellation token. + /// + public static async Task> ListByStorageSyncServiceAsync(this ISyncGroupsOperations operations, string resourceGroupName, string storageSyncServiceName, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListByStorageSyncServiceWithHttpMessagesAsync(resourceGroupName, storageSyncServiceName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Create a new SyncGroup. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of Storage Sync Service resource. + /// + /// + /// Name of Sync Group resource. + /// + /// + /// Sync Group Body + /// + public static SyncGroup Create(this ISyncGroupsOperations operations, string resourceGroupName, string storageSyncServiceName, string syncGroupName, SyncGroupCreateParameters parameters) + { + return operations.CreateAsync(resourceGroupName, storageSyncServiceName, syncGroupName, parameters).GetAwaiter().GetResult(); + } + + /// + /// Create a new SyncGroup. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of Storage Sync Service resource. + /// + /// + /// Name of Sync Group resource. + /// + /// + /// Sync Group Body + /// + /// + /// The cancellation token. + /// + public static async Task CreateAsync(this ISyncGroupsOperations operations, string resourceGroupName, string storageSyncServiceName, string syncGroupName, SyncGroupCreateParameters parameters, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.CreateWithHttpMessagesAsync(resourceGroupName, storageSyncServiceName, syncGroupName, parameters, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Get a given SyncGroup. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of Storage Sync Service resource. + /// + /// + /// Name of Sync Group resource. + /// + public static SyncGroup Get(this ISyncGroupsOperations operations, string resourceGroupName, string storageSyncServiceName, string syncGroupName) + { + return operations.GetAsync(resourceGroupName, storageSyncServiceName, syncGroupName).GetAwaiter().GetResult(); + } + + /// + /// Get a given SyncGroup. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of Storage Sync Service resource. + /// + /// + /// Name of Sync Group resource. + /// + /// + /// The cancellation token. + /// + public static async Task GetAsync(this ISyncGroupsOperations operations, string resourceGroupName, string storageSyncServiceName, string syncGroupName, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.GetWithHttpMessagesAsync(resourceGroupName, storageSyncServiceName, syncGroupName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Delete a given SyncGroup. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of Storage Sync Service resource. + /// + /// + /// Name of Sync Group resource. + /// + public static SyncGroupsDeleteHeaders Delete(this ISyncGroupsOperations operations, string resourceGroupName, string storageSyncServiceName, string syncGroupName) + { + return operations.DeleteAsync(resourceGroupName, storageSyncServiceName, syncGroupName).GetAwaiter().GetResult(); + } + + /// + /// Delete a given SyncGroup. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of Storage Sync Service resource. + /// + /// + /// Name of Sync Group resource. + /// + /// + /// The cancellation token. + /// + public static async Task DeleteAsync(this ISyncGroupsOperations operations, string resourceGroupName, string storageSyncServiceName, string syncGroupName, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.DeleteWithHttpMessagesAsync(resourceGroupName, storageSyncServiceName, syncGroupName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Headers; + } + } + + } +} diff --git a/src/SDKs/StorageSync/Management.StorageSync/Generated/WorkflowsOperations.cs b/src/SDKs/StorageSync/Management.StorageSync/Generated/WorkflowsOperations.cs new file mode 100644 index 000000000000..dab85cc8e6a1 --- /dev/null +++ b/src/SDKs/StorageSync/Management.StorageSync/Generated/WorkflowsOperations.cs @@ -0,0 +1,517 @@ +// +// 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.StorageSync +{ + 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; + + /// + /// WorkflowsOperations operations. + /// + internal partial class WorkflowsOperations : IServiceOperations, IWorkflowsOperations + { + /// + /// Initializes a new instance of the WorkflowsOperations class. + /// + /// + /// Reference to the service client. + /// + /// + /// Thrown when a required parameter is null + /// + internal WorkflowsOperations(StorageSyncManagementClient client) + { + if (client == null) + { + throw new System.ArgumentNullException("client"); + } + Client = client; + } + + /// + /// Gets a reference to the StorageSyncManagementClient + /// + public StorageSyncManagementClient Client { get; private set; } + + /// + /// Get Workflows resource + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of Storage Sync Service resource. + /// + /// + /// workflow Id + /// + /// + /// 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 storageSyncServiceName, string workflowId, 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 (storageSyncServiceName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "storageSyncServiceName"); + } + if (workflowId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "workflowId"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("storageSyncServiceName", storageSyncServiceName); + tracingParameters.Add("workflowId", workflowId); + 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.StorageSync/storageSyncServices/{storageSyncServiceName}/workflows/{workflowId}").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{storageSyncServiceName}", System.Uri.EscapeDataString(storageSyncServiceName)); + _url = _url.Replace("{workflowId}", System.Uri.EscapeDataString(workflowId)); + 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 StorageSyncErrorException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + StorageSyncError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + try + { + _result.Headers = _httpResponse.GetHeadersAsJson().ToObject(JsonSerializer.Create(Client.DeserializationSettings)); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the headers.", _httpResponse.GetHeadersAsJson().ToString(), ex); + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Abort the given workflow. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of Storage Sync Service resource. + /// + /// + /// workflow Id + /// + /// + /// 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> AbortWithHttpMessagesAsync(string resourceGroupName, string storageSyncServiceName, string workflowId, 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 (storageSyncServiceName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "storageSyncServiceName"); + } + if (workflowId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "workflowId"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("storageSyncServiceName", storageSyncServiceName); + tracingParameters.Add("workflowId", workflowId); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "Abort", 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.StorageSync/storageSyncServices/{storageSyncServiceName}/workflows/{workflowId}/abort").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{storageSyncServiceName}", System.Uri.EscapeDataString(storageSyncServiceName)); + _url = _url.Replace("{workflowId}", System.Uri.EscapeDataString(workflowId)); + List _queryParameters = new List(); + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("POST"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new StorageSyncErrorException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + StorageSyncError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationHeaderResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + try + { + _result.Headers = _httpResponse.GetHeadersAsJson().ToObject(JsonSerializer.Create(Client.DeserializationSettings)); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the headers.", _httpResponse.GetHeadersAsJson().ToString(), ex); + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + } +} diff --git a/src/SDKs/StorageSync/Management.StorageSync/Generated/WorkflowsOperationsExtensions.cs b/src/SDKs/StorageSync/Management.StorageSync/Generated/WorkflowsOperationsExtensions.cs new file mode 100644 index 000000000000..f7c2acbc9fe5 --- /dev/null +++ b/src/SDKs/StorageSync/Management.StorageSync/Generated/WorkflowsOperationsExtensions.cs @@ -0,0 +1,117 @@ +// +// 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.StorageSync +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using System.Threading; + using System.Threading.Tasks; + + /// + /// Extension methods for WorkflowsOperations. + /// + public static partial class WorkflowsOperationsExtensions + { + /// + /// Get Workflows resource + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of Storage Sync Service resource. + /// + /// + /// workflow Id + /// + public static Workflow Get(this IWorkflowsOperations operations, string resourceGroupName, string storageSyncServiceName, string workflowId) + { + return operations.GetAsync(resourceGroupName, storageSyncServiceName, workflowId).GetAwaiter().GetResult(); + } + + /// + /// Get Workflows resource + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of Storage Sync Service resource. + /// + /// + /// workflow Id + /// + /// + /// The cancellation token. + /// + public static async Task GetAsync(this IWorkflowsOperations operations, string resourceGroupName, string storageSyncServiceName, string workflowId, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.GetWithHttpMessagesAsync(resourceGroupName, storageSyncServiceName, workflowId, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Abort the given workflow. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of Storage Sync Service resource. + /// + /// + /// workflow Id + /// + public static WorkflowsAbortHeaders Abort(this IWorkflowsOperations operations, string resourceGroupName, string storageSyncServiceName, string workflowId) + { + return operations.AbortAsync(resourceGroupName, storageSyncServiceName, workflowId).GetAwaiter().GetResult(); + } + + /// + /// Abort the given workflow. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of Storage Sync Service resource. + /// + /// + /// workflow Id + /// + /// + /// The cancellation token. + /// + public static async Task AbortAsync(this IWorkflowsOperations operations, string resourceGroupName, string storageSyncServiceName, string workflowId, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.AbortWithHttpMessagesAsync(resourceGroupName, storageSyncServiceName, workflowId, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Headers; + } + } + + } +} diff --git a/src/SDKs/StorageSync/Management.StorageSync/Microsoft.Azure.Management.StorageSync.csproj b/src/SDKs/StorageSync/Management.StorageSync/Microsoft.Azure.Management.StorageSync.csproj new file mode 100644 index 000000000000..7bb52d673d62 --- /dev/null +++ b/src/SDKs/StorageSync/Management.StorageSync/Microsoft.Azure.Management.StorageSync.csproj @@ -0,0 +1,30 @@ + + + + + + + Microsoft.Azure.Management.StorageSync + Provides management capabilities for Azure Storage Sync. + 1.0.0 + Microsoft.Azure.Management.StorageSync + Microsoft Azure StorageSync;StorageSync; + + + + + + + net452;netstandard1.4 + + + + + + diff --git a/src/SDKs/StorageSync/Management.StorageSync/generate.ps1 b/src/SDKs/StorageSync/Management.StorageSync/generate.ps1 new file mode 100644 index 000000000000..ec30b19b81da --- /dev/null +++ b/src/SDKs/StorageSync/Management.StorageSync/generate.ps1 @@ -0,0 +1 @@ +Start-AutoRestCodeGeneration -ResourceProvider "storagesync/resource-manager" -AutoRestVersion "latest" \ No newline at end of file diff --git a/src/SDKs/StorageSync/StorageSync.Tests/Common/RecordedDelegatingHandler.cs b/src/SDKs/StorageSync/StorageSync.Tests/Common/RecordedDelegatingHandler.cs new file mode 100644 index 000000000000..3254ebb256a2 --- /dev/null +++ b/src/SDKs/StorageSync/StorageSync.Tests/Common/RecordedDelegatingHandler.cs @@ -0,0 +1,90 @@ +// 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 System.Net; +using System.Net.Http; +using System.Net.Http.Headers; +using System.Threading.Tasks; + +namespace Microsoft.Azure.Management.Tests.Common +{ + public class RecordedDelegatingHandler : DelegatingHandler + { + private HttpResponseMessage _response; + + public RecordedDelegatingHandler() + { + StatusCodeToReturn = HttpStatusCode.Created; + SubsequentStatusCodeToReturn = StatusCodeToReturn; + } + + public RecordedDelegatingHandler(HttpResponseMessage response) + { + StatusCodeToReturn = HttpStatusCode.Created; + SubsequentStatusCodeToReturn = StatusCodeToReturn; + _response = response; + } + + public HttpStatusCode StatusCodeToReturn { get; set; } + + public HttpStatusCode SubsequentStatusCodeToReturn { get; set; } + + public string Request { get; private set; } + + public HttpRequestHeaders RequestHeaders { get; private set; } + + public HttpContentHeaders ContentHeaders { get; private set; } + + public HttpMethod Method { get; private set; } + + public Uri Uri { get; private set; } + + public bool IsPassThrough { get; set; } + + private int counter; + + protected override async Task SendAsync(HttpRequestMessage request, System.Threading.CancellationToken cancellationToken) + { + counter++; + // Save request + if (request.Content == null) + { + Request = string.Empty; + } + else + { + Request = await request.Content.ReadAsStringAsync(); + } + RequestHeaders = request.Headers; + if (request.Content != null) + { + ContentHeaders = request.Content.Headers; + } + Method = request.Method; + Uri = request.RequestUri; + + // Prepare response + if (IsPassThrough) + { + return await base.SendAsync(request, cancellationToken); + } + else + { + if (_response != null && counter == 1) + { + return _response; + } + else + { + var statusCode = StatusCodeToReturn; + if (counter > 1) + statusCode = SubsequentStatusCodeToReturn; + HttpResponseMessage response = new HttpResponseMessage(statusCode); + response.Content = new StringContent(""); + return response; + } + } + } + } +} diff --git a/src/SDKs/StorageSync/StorageSync.Tests/Helpers/ApiConstants.cs b/src/SDKs/StorageSync/StorageSync.Tests/Helpers/ApiConstants.cs new file mode 100644 index 000000000000..0cb4700cdd94 --- /dev/null +++ b/src/SDKs/StorageSync/StorageSync.Tests/Helpers/ApiConstants.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. + +namespace Microsoft.Azure.Management.StorageSync.Tests +{ + public static class ApiConstants + { + public const string + Subscriptions = "subscriptions", + ResourceGroups = "resourceGroups", + Providers = "providers", + StorageSyncServices = "storageSyncServices", + SyncGroups = "syncGroups", + ServerEndpoints = "serverEndpoints", + CloudEndpoints = "cloudEndpoints", + ResourceProviderNamespace = "Microsoft.StorageSync"; + } + + public static class Constants + { + public const string StorageAccountFileUriTemplate = "https://{0}.file.core.windows.net/"; + } +} diff --git a/src/SDKs/StorageSync/StorageSync.Tests/Helpers/Helpers.cs b/src/SDKs/StorageSync/StorageSync.Tests/Helpers/Helpers.cs new file mode 100644 index 000000000000..2ac4ae1d1258 --- /dev/null +++ b/src/SDKs/StorageSync/StorageSync.Tests/Helpers/Helpers.cs @@ -0,0 +1,154 @@ +//// 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.Compute.Models; +//using Microsoft.Azure.Management.ResourceManager; +//using Microsoft.Rest.Azure; +//using System; +//using System.Collections.Generic; +//using System.Linq; +//using Xunit; + +//namespace Compute.Tests +//{ +// public static class Helpers +// { +// public static string GetAvailabilitySetRef(string subId, string resourceGrpName, string availabilitySetName) +// { +// return GetEntityReferenceId(subId, resourceGrpName, ApiConstants.AvailabilitySets, availabilitySetName); +// } + +// public static string GetVMReferenceId(string subId, string resourceGrpName, string vmName) +// { +// return GetEntityReferenceId(subId, resourceGrpName, ApiConstants.VirtualMachines, vmName); +// } + +// private static string GetEntityReferenceId(string subId, string resourceGrpName, string controllerName, string entityName) +// { +// return string.Format("/{0}/{1}/{2}/{3}/{4}/{5}/{6}/{7}", +// ApiConstants.Subscriptions, subId, ApiConstants.ResourceGroups, resourceGrpName, +// ApiConstants.Providers, ApiConstants.ResourceProviderNamespace, controllerName, +// entityName); +// } + +// public static void DeleteIfExists(this IResourceGroupsOperations rgOps, string rgName) +// { +// try +// { +// rgOps.Delete(rgName); +// } +// catch (CloudException) +// { +// // Ignore +// } +// } + +// public static void ValidateVirtualMachineSizeListResponse(IEnumerable vmSizeListResponse, bool hasAZ = false, +// bool? writeAcceleratorEnabled = null) +// { +// var expectedVMSizePropertiesList = GetExpectedVirtualMachineSize(hasAZ, writeAcceleratorEnabled); + +// IEnumerable vmSizesPropertyList = vmSizeListResponse; +// Assert.NotNull(vmSizesPropertyList); +// Assert.True(vmSizesPropertyList.Count() > 1, "ListVMSizes should return more than 1 VM sizes"); + +// VirtualMachineSize expectedVMSizeProperties = expectedVMSizePropertiesList[0]; +// VirtualMachineSize vmSizeProperties = +// vmSizesPropertyList.FirstOrDefault(x => x.Name == expectedVMSizeProperties.Name); +// Assert.NotNull(vmSizeProperties); +// CompareVMSizes(expectedVMSizeProperties, vmSizeProperties); + +// expectedVMSizeProperties = expectedVMSizePropertiesList[1]; +// vmSizeProperties = vmSizesPropertyList.FirstOrDefault(x => x.Name.Equals(expectedVMSizeProperties.Name, StringComparison.Ordinal)); +// Assert.NotNull(vmSizeProperties); +// CompareVMSizes(expectedVMSizeProperties, vmSizeProperties); +// } + +// private static List GetExpectedVirtualMachineSize(bool hasAZ, bool? writeAcceleratorEnabled = null) +// { +// var expectedVMSizePropertiesList = new List(); +// if (writeAcceleratorEnabled.HasValue && writeAcceleratorEnabled.Value) +// { +// expectedVMSizePropertiesList.Add(new VirtualMachineSize() +// { +// Name = VirtualMachineSizeTypes.StandardM64s, +// MemoryInMB = 1024000, +// NumberOfCores = 64, +// OsDiskSizeInMB = 1047552, +// ResourceDiskSizeInMB = 2048000, +// MaxDataDiskCount = 64 +// }); +// expectedVMSizePropertiesList.Add(new VirtualMachineSize() +// { +// Name = VirtualMachineSizeTypes.StandardM6416ms, +// MemoryInMB = 1792000, +// NumberOfCores = 64, +// OsDiskSizeInMB = 1047552, +// ResourceDiskSizeInMB = 2048000, +// MaxDataDiskCount = 64 +// }); +// } +// else if (hasAZ) +// { +// expectedVMSizePropertiesList.Add(new VirtualMachineSize() +// { +// Name = VirtualMachineSizeTypes.StandardD1V2, +// MemoryInMB = 3584, +// NumberOfCores = 1, +// OsDiskSizeInMB = 1047552, +// ResourceDiskSizeInMB = 51200, +// MaxDataDiskCount = 4 +// }); + +// expectedVMSizePropertiesList.Add(new VirtualMachineSize() +// { +// Name = VirtualMachineSizeTypes.StandardD2V2, +// MemoryInMB = 7168, +// NumberOfCores = 2, +// OsDiskSizeInMB = 102400, +// ResourceDiskSizeInMB = 102400, +// MaxDataDiskCount = 8 +// }); +// } +// else +// { +// expectedVMSizePropertiesList.Add(new VirtualMachineSize() +// { +// Name = VirtualMachineSizeTypes.StandardA0, +// MemoryInMB = 768, +// NumberOfCores = 1, +// OsDiskSizeInMB = 130048, +// ResourceDiskSizeInMB = 20480, +// MaxDataDiskCount = 1 +// }); +// expectedVMSizePropertiesList.Add(new VirtualMachineSize() +// { +// Name = VirtualMachineSizeTypes.StandardA1, +// MemoryInMB = 1792, +// NumberOfCores = 1, +// OsDiskSizeInMB = 130048, +// ResourceDiskSizeInMB = 71680, +// MaxDataDiskCount = 2 +// }); +// } + + +// return expectedVMSizePropertiesList; +// } + +// private static void CompareVMSizes(VirtualMachineSize expectedVMSize, VirtualMachineSize vmSize) +// { +// Assert.True(expectedVMSize.MemoryInMB == vmSize.MemoryInMB, +// string.Format("memoryInMB is correct for VMSize: {0}", expectedVMSize.Name)); +// Assert.True(expectedVMSize.NumberOfCores == vmSize.NumberOfCores, +// string.Format("numberOfCores is correct for VMSize: {0}", expectedVMSize.Name)); +// // TODO: Will re-enable after CRP rollout +// //Assert.True(expectedVMSize.OSDiskSizeInMB == vmSize.OSDiskSizeInMB, +// // string.Format("osDiskSizeInMB is correct for VMSize: {0}", expectedVMSize.Name)); +// Assert.True(expectedVMSize.ResourceDiskSizeInMB == vmSize.ResourceDiskSizeInMB, +// string.Format("resourceDiskSizeInMB is correct for VMSize: {0}", expectedVMSize.Name)); +// Assert.True(expectedVMSize.MaxDataDiskCount == vmSize.MaxDataDiskCount, +// string.Format("maxDataDiskCount is correct for VMSize: {0}", expectedVMSize.Name)); +// } +// } +//} diff --git a/src/SDKs/StorageSync/StorageSync.Tests/Helpers/StorageSyncManagementTestUtilities.cs b/src/SDKs/StorageSync/StorageSync.Tests/Helpers/StorageSyncManagementTestUtilities.cs new file mode 100644 index 000000000000..f0e2d84924cd --- /dev/null +++ b/src/SDKs/StorageSync/StorageSync.Tests/Helpers/StorageSyncManagementTestUtilities.cs @@ -0,0 +1,320 @@ +// 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.Network; +using Microsoft.Azure.Management.ResourceManager; +using Microsoft.Azure.Management.ResourceManager.Models; +using Microsoft.Azure.Management.Storage; +using Microsoft.Azure.Management.StorageSync; +using Microsoft.Azure.Management.StorageSync.Models; +using Microsoft.Azure.Management.Tests.Common; +using Microsoft.Azure.Test.HttpRecorder; +using Microsoft.Rest.ClientRuntime.Azure.TestFramework; +using System; +using System.Collections.Generic; +using System.Net; +using Xunit; + +namespace Microsoft.Azure.Management.StorageSync.Tests +{ + public interface IStorageSyncManagementTestUtilities + { + object GetDefaultParameters(); + void VerifyProperties(); + } + public static class StorageSyncManagementTestUtilities + { + public static bool IsTestTenant = false; + + // These are used to create default accounts + public static string DefaultLocation = IsTestTenant ? null : "west europe"; + public static string DefaultRGLocation = IsTestTenant ? null : "eastus2"; + public static Dictionary DefaultTags = new Dictionary + { + {"key1","value1"}, + {"key2","value2"} + }; + + public static string CreateResourceGroup(IResourceManagementClient resourcesClient) + { + const string testPrefix = "res"; + var rgname = TestUtilities.GenerateName(testPrefix); + + if (!IsTestTenant) + { + var resourceGroup = resourcesClient.ResourceGroups.CreateOrUpdate( + rgname, + new ResourceGroup + { + Location = DefaultRGLocation + }); + } + + return rgname; + } + + public static void RemoveResourceGroup(IResourceManagementClient resourcesClient, string rgName) + { + if (!IsTestTenant) + { + resourcesClient.ResourceGroups.Delete(rgName); + } + + } + + public static StorageSyncManagementClient GetStorageSyncManagementClient(MockContext context, RecordedDelegatingHandler handler = null) + { + + if (handler != null) + { + handler.IsPassThrough = true; + } + + var client = context.GetServiceClient(handlers: + handler ?? new RecordedDelegatingHandler { StatusCodeToReturn = HttpStatusCode.OK }); + return client; + } + + public static IResourceManagementClient GetResourceManagementClient(MockContext context, RecordedDelegatingHandler handler) + { + handler.IsPassThrough = true; + return context.GetServiceClient(handlers: handler); + } + + public static NetworkManagementClient GetNetworkManagementClient(MockContext context, RecordedDelegatingHandler handler) + { + handler.IsPassThrough = true; + return context.GetServiceClient(handlers: handler); + } + + public static StorageManagementClient GetStorageManagementClient(MockContext context, RecordedDelegatingHandler handler) + { + handler.IsPassThrough = true; + return context.GetServiceClient(handlers: handler); + } + + public static void WaitSeconds(double seconds) + { + if (HttpMockServer.Mode != HttpRecorderMode.Playback) + { + System.Threading.Thread.Sleep(TimeSpan.FromSeconds(seconds)); + } + } + + public static void WaitMinutes(double minutes) + { + WaitSeconds(minutes * 60); + } + + public static string GenerateName(string prefix = null, + [System.Runtime.CompilerServices.CallerMemberName] + string methodName="GenerateName_failed") + { + return HttpMockServer.GetAssetName(methodName, prefix); + } + + public static void VerifyStorageSyncServiceProperties(StorageSyncService resource, bool useDefaults) + { + Assert.NotNull(resource); + Assert.NotNull(resource.Id); + Assert.NotNull(resource.Location); + Assert.NotNull(resource.Name); + + if (useDefaults) + { + Assert.Equal(StorageSyncManagementTestUtilities.DefaultLocation, resource.Location); + Assert.NotNull(resource.Tags); + Assert.Equal(2, resource.Tags.Count); + Assert.Equal("value1", resource.Tags["key1"]); + Assert.Equal("value2", resource.Tags["key2"]); + } + } + + public static void VerifySyncGroupProperties(SyncGroup resource, bool useDefaults) + { + Assert.NotNull(resource); + Assert.NotNull(resource.Id); + Assert.NotNull(resource.Name); + + // Enable SyncGroup tags when this feature is completed as SyncGroupMetadata + if (useDefaults) + { + // Assert.NotNull(resource.Tags); + // Assert.Equal(2, resource.Tags.Count); + // Assert.Equal("value1", resource.Tags["key1"]); + // Assert.Equal("value2", resource.Tags["key2"]); + } + } + + public static RecallActionParameters GetDefaultRecallActionParameters() + { + return new RecallActionParameters() + { + Pattern = null, + RecallPath = null + }; + } + + public static void VerifyCloudEndpointProperties(CloudEndpoint resource, bool useDefaults) + { + Assert.NotNull(resource); + Assert.NotNull(resource.Id); + Assert.NotNull(resource.Name); + + if (useDefaults) + { + // Assert.NotNull(resource.Tags); + // Assert.Equal(2, resource.Tags.Count); + // Assert.Equal("value1", resource.Tags["key1"]); + // Assert.Equal("value2", resource.Tags["key2"]); + } + } + + public static void VerifyServerEndpointProperties(ServerEndpoint resource, bool useDefaults) + { + Assert.NotNull(resource); + Assert.NotNull(resource.Id); + Assert.NotNull(resource.Name); + + if (useDefaults) + { + var defaults = GetDefaultServerEndpointParameters(resource.ServerResourceId); + Assert.Equal(resource.ServerResourceId, defaults.ServerResourceId); + Assert.Equal(resource.ServerLocalPath, defaults.ServerLocalPath); + Assert.Equal(resource.CloudTiering, defaults.CloudTiering); + Assert.Equal(resource.VolumeFreeSpacePercent, defaults.VolumeFreeSpacePercent); + // Assert.NotNull(resource.Tags); + // Assert.Equal(2, resource.Tags.Count); + // Assert.Equal("value1", resource.Tags["key1"]); + // Assert.Equal("value2", resource.Tags["key2"]); + } + } + + public static void VerifyServerEndpointUpdateProperties(ServerEndpoint resource, bool useDefaults) + { + VerifyServerEndpointProperties(resource, useDefaults: false); + + if (useDefaults) + { + var defaults = GetDefaultServerEndpointUpdateParameters(); + Assert.Equal(resource.CloudTiering, defaults.CloudTiering); + Assert.Equal(resource.VolumeFreeSpacePercent, defaults.VolumeFreeSpacePercent); + } + } + + public static void VerifyRegisteredServerProperties(RegisteredServer resource, bool useDefaults) + { + Assert.NotNull(resource); + Assert.NotNull(resource.Id); + Assert.NotNull(resource.Name); + + if (useDefaults) + { + // Assert.NotNull(resource.Tags); + // Assert.Equal(2, resource.Tags.Count); + // Assert.Equal("value1", resource.Tags["key1"]); + // Assert.Equal("value2", resource.Tags["key2"]); + } + } + public static StorageSyncServiceCreateParameters GetDefaultStorageSyncServiceParameters() + { + return new StorageSyncServiceCreateParameters + { + Location = DefaultLocation, + Tags = DefaultTags + }; + } + + public static StorageSyncServiceUpdateParameters GetDefaultStorageSyncServiceUpdateParameters() + { + return new StorageSyncServiceUpdateParameters + { + Tags = DefaultTags + }; + } + + public static SyncGroupCreateParameters GetDefaultSyncGroupParameters() + { + return new SyncGroupCreateParameters + { + Location = DefaultLocation, + Tags = DefaultTags + }; + } + + public static CloudEndpointCreateParameters GetDefaultCloudEndpointParameters() + { + return new CloudEndpointCreateParameters + { + Location = DefaultLocation, + Tags = DefaultTags, + StorageAccountResourceId = "/subscriptions/8aba3d53-2c5e-4479-bb0d-5a7bed16360e/resourcegroups/storagesyncsdkwesteurope/providers/Microsoft.Storage/storageAccounts/storagesyncsdkwesteurope", + StorageAccountShareName = "tempsdkfileshare5", + StorageAccountTenantId = "\"72f988bf-86f1-41af-91ab-2d7cd011db47\"" + }; + } + public static ServerEndpointUpdateParameters GetDefaultServerEndpointUpdateParameters() + { + return new ServerEndpointUpdateParameters + { + CloudTiering = "On", + VolumeFreeSpacePercent = 50, + Tags = DefaultTags + }; + } + + public static ServerEndpointCreateParameters GetDefaultServerEndpointParameters(string serverResourceId) + { + return new ServerEndpointCreateParameters + { + ServerLocalPath = "D:\\test2", + CloudTiering = "Off", + VolumeFreeSpacePercent = 0, + ServerResourceId = serverResourceId, + Location = DefaultLocation, + Tags = DefaultTags + }; + /* + { + "properties": { + "serverLocalPath": "D:\\test1", + "cloudTiering": "Off", + "serverResourceId": "/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res9305/providers/microsoft.storagesync/storageSyncServices/sss-sepcreate2540/registeredServers/a852d5e6-115d-4885-a009-f5c3bb676c5d" + }, + "location": "West Europe", + "tags": {} +} + */ + } + + public static RegisteredServerCreateParameters GetDefaultRegisteredServerParameters(Guid serverId) + { + return new RegisteredServerCreateParameters + { + Location = DefaultLocation, + Tags = DefaultTags, + ServerCertificate = "\"MIIDEDCCAfigAwIBAgIQUB7fWz9pbodGHZwk+aVTRjANBgkqhkiG9w0BAQ0FADAwMS4wLAYDVQQDEyVhbmt1c2hiLXZtMDIubnRkZXYuY29ycC5taWNyb3NvZnQuY29tMB4XDTE4MDczMDIyNDc0NVoXDTE5MDczMTIyNDc0NVowMDEuMCwGA1UEAxMlYW5rdXNoYi12bTAyLm50ZGV2LmNvcnAubWljcm9zb2Z0LmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBALssKhJeisUWQGU1as0mZm7PO81SQPUnK2uE0wTaXpJYlsEn+J9GrSKGYnwUVsdHsvku8AWzvVTeOM3lg7Nmn9NdPsJP1BnzBXqIXWMOpzHrew4nPqS8KEz3/+Wqm5feQK5bpFS6MHUIgn1dXgf7Sal16yMNmzcDvtVCEIoV3eLsxbRx0MLZVa1Z9tCY3kuCIcTcrMNO4mB6NAvZ2Hh5U9Cxu8e9GaF5yzJ7nOVgiKxua4uo73eejuEEGmWq28OO2qZ2YVW0sQRySOVbuhu3gUpB2EbljnL3pCgRAJhui8oy0VlH4m5aoVK/AjOOYtWduaFoJP7LCtizREfhDMdT/SUCAwEAAaMmMCQwIgYDVR0lAQH/BBgwFgYIKwYBBQUHAwIGCisGAQQBgjcKAwwwDQYJKoZIhvcNAQENBQADggEBALR6fPRt1y4etxX1H65kn3iUOLfTa4kg2Lj+GbqjjkVJXQ9uiVL0qL6Usc1GMepUTqD0yuOfHH9sHJZdEs6N08CLpOjCAXqnelabGJ7vSEba1NxASXRGIdsgj7gpeXgH0G8+KRRRkHwp4+Ro0Gb0mXIwlbVxiMZ3zRUXzJxvITX9/fAfeQBvDhc0NpGKHBgINZFbImIzIsoDQId259n1RMBBgLRsuf17KROXQmPmHXJMfadmVC0CZgcpKr2r6n6aWYi1gUb6kliZi6Ikr4GoePUJz1w36xVhJw6mE1Oj/wZ1kPF/J092L48XqDYVZYD8zdBO+vGR52655Fn/niv3zcM=\"", + AgentVersion = "3.2.0.0", + ServerOSVersion = "10.0.14393.0", + LastHeartBeat = "\"2018-09-10T20:05:02.5134384Z\"", + ServerRole = "Standalone", + ServerId = $"\"{serverId}\"", + FriendlyName = "ankushb-vm02.ntdev.corp.microsoft.com" + /* + * { + "properties": { + "serverCertificate": "\"MIIDEDCCAfigAwIBAgIQUB7fWz9pbodGHZwk+aVTRjANBgkqhkiG9w0BAQ0FADAwMS4wLAYDVQQDEyVhbmt1c2hiLXZtMDIubnRkZXYuY29ycC5taWNyb3NvZnQuY29tMB4XDTE4MDczMDIyNDc0NVoXDTE5MDczMTIyNDc0NVowMDEuMCwGA1UEAxMlYW5rdXNoYi12bTAyLm50ZGV2LmNvcnAubWljcm9zb2Z0LmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBALssKhJeisUWQGU1as0mZm7PO81SQPUnK2uE0wTaXpJYlsEn+J9GrSKGYnwUVsdHsvku8AWzvVTeOM3lg7Nmn9NdPsJP1BnzBXqIXWMOpzHrew4nPqS8KEz3/+Wqm5feQK5bpFS6MHUIgn1dXgf7Sal16yMNmzcDvtVCEIoV3eLsxbRx0MLZVa1Z9tCY3kuCIcTcrMNO4mB6NAvZ2Hh5U9Cxu8e9GaF5yzJ7nOVgiKxua4uo73eejuEEGmWq28OO2qZ2YVW0sQRySOVbuhu3gUpB2EbljnL3pCgRAJhui8oy0VlH4m5aoVK/AjOOYtWduaFoJP7LCtizREfhDMdT/SUCAwEAAaMmMCQwIgYDVR0lAQH/BBgwFgYIKwYBBQUHAwIGCisGAQQBgjcKAwwwDQYJKoZIhvcNAQENBQADggEBALR6fPRt1y4etxX1H65kn3iUOLfTa4kg2Lj+GbqjjkVJXQ9uiVL0qL6Usc1GMepUTqD0yuOfHH9sHJZdEs6N08CLpOjCAXqnelabGJ7vSEba1NxASXRGIdsgj7gpeXgH0G8+KRRRkHwp4+Ro0Gb0mXIwlbVxiMZ3zRUXzJxvITX9/fAfeQBvDhc0NpGKHBgINZFbImIzIsoDQId259n1RMBBgLRsuf17KROXQmPmHXJMfadmVC0CZgcpKr2r6n6aWYi1gUb6kliZi6Ikr4GoePUJz1w36xVhJw6mE1Oj/wZ1kPF/J092L48XqDYVZYD8zdBO+vGR52655Fn/niv3zcM=\"", + "agentVersion": "3.2.0.0", + "serverOSVersion": "10.0.14393.0", + "lastHeartBeat": "\"2018-09-10T20:05:02.5134384Z\"", + "serverRole": "Standalone", + "serverId": "\"c32fae7d-b9fd-4c7d-8643-9116bd8fff6d\"", + "friendlyName": "ankushb-vm02.ntdev.corp.microsoft.com" + } +} + */ + }; + } + + } +} \ No newline at end of file diff --git a/src/SDKs/StorageSync/StorageSync.Tests/SessionRecords/Microsoft.Azure.Management.StorageSync.Tests.CloudEndpointTests/CloudEndpointCreateTest.json b/src/SDKs/StorageSync/StorageSync.Tests/SessionRecords/Microsoft.Azure.Management.StorageSync.Tests.CloudEndpointTests/CloudEndpointCreateTest.json new file mode 100644 index 000000000000..23735b58fb6a --- /dev/null +++ b/src/SDKs/StorageSync/StorageSync.Tests/SessionRecords/Microsoft.Azure.Management.StorageSync.Tests.CloudEndpointTests/CloudEndpointCreateTest.json @@ -0,0 +1,1017 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourcegroups/res7585?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWQxNmY5YjMtYmJlMy00OGQ0LTkzMGEtMjdhNzRkY2EwMDNiL3Jlc291cmNlZ3JvdXBzL3Jlczc1ODU/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"location\": \"eastus2\"\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "7d1ae633-bf30-4861-9125-cac5a5f1e801" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26328.01", + "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "29" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 11 Sep 2018 17:52:19 GMT" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1199" + ], + "x-ms-request-id": [ + "e9b7b160-d871-4f85-acc6-056639d437e8" + ], + "x-ms-correlation-request-id": [ + "e9b7b160-d871-4f85-acc6-056639d437e8" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180911T175220Z:e9b7b160-d871-4f85-acc6-056639d437e8" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "168" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res7585\",\r\n \"name\": \"res7585\",\r\n \"location\": \"eastus2\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res7585/providers/Microsoft.StorageSync/storageSyncServices/sss-cepcreate6895?api-version=2018-04-02", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWQxNmY5YjMtYmJlMy00OGQ0LTkzMGEtMjdhNzRkY2EwMDNiL3Jlc291cmNlR3JvdXBzL3Jlczc1ODUvcHJvdmlkZXJzL01pY3Jvc29mdC5TdG9yYWdlU3luYy9zdG9yYWdlU3luY1NlcnZpY2VzL3Nzcy1jZXBjcmVhdGU2ODk1P2FwaS12ZXJzaW9uPTIwMTgtMDQtMDI=", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"location\": \"west europe\",\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n }\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "4a742fd1-68da-4a2c-802a-0350e05f677d" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26328.01", + "Microsoft.Azure.Management.StorageSync.StorageSyncManagementClient/1.0.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "97" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 11 Sep 2018 17:52:23 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "x-ms-request-id": [ + "b9b3cd5d-d6e6-4093-b339-e4300ff1381b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1198" + ], + "x-ms-correlation-request-id": [ + "d56e3650-1ebc-48c3-8494-8eed317441a5" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180911T175223Z:d56e3650-1ebc-48c3-8494-8eed317441a5" + ], + "Content-Length": [ + "407" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"properties\": {\r\n \"storageSyncServiceStatus\": null,\r\n \"storageSyncServiceUid\": \"00000000-0000-0000-0000-000000000000\"\r\n },\r\n \"location\": \"west europe\",\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n },\r\n \"id\": \"/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res7585/providers/microsoft.storagesync/storageSyncServices/sss-cepcreate6895\",\r\n \"name\": \"sss-cepcreate6895\",\r\n \"type\": \"microsoft.storagesync/storageSyncServices\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res7585/providers/Microsoft.StorageSync/storageSyncServices/sss-cepcreate6895/syncGroups/sg-cepcreate683?api-version=2018-04-02", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWQxNmY5YjMtYmJlMy00OGQ0LTkzMGEtMjdhNzRkY2EwMDNiL3Jlc291cmNlR3JvdXBzL3Jlczc1ODUvcHJvdmlkZXJzL01pY3Jvc29mdC5TdG9yYWdlU3luYy9zdG9yYWdlU3luY1NlcnZpY2VzL3Nzcy1jZXBjcmVhdGU2ODk1L3N5bmNHcm91cHMvc2ctY2VwY3JlYXRlNjgzP2FwaS12ZXJzaW9uPTIwMTgtMDQtMDI=", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"location\": \"west europe\",\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n }\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "8d785842-9c53-4ee2-989f-ab8605e5238b" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26328.01", + "Microsoft.Azure.Management.StorageSync.StorageSyncManagementClient/1.0.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "97" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 11 Sep 2018 17:52:24 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "x-ms-request-id": [ + "addc71f8-f429-45e3-a838-21c793863fe6" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1197" + ], + "x-ms-correlation-request-id": [ + "23f118fd-286d-4f6f-8e32-68e6cbe55af4" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180911T175224Z:23f118fd-286d-4f6f-8e32-68e6cbe55af4" + ], + "Content-Length": [ + "421" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"properties\": {\r\n \"syncGroupStatus\": null,\r\n \"uniqueId\": \"bcb06c1e-7091-4273-aecb-d059378db02f\"\r\n },\r\n \"location\": \"west europe\",\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n },\r\n \"id\": \"/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res7585/providers/microsoft.storagesync/storageSyncServices/sss-cepcreate6895/syncGroups/sg-cepcreate683\",\r\n \"name\": \"sg-cepcreate683\",\r\n \"type\": \"microsoft.storagesync/storageSyncServices/syncGroups\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res7585/providers/Microsoft.StorageSync/storageSyncServices/sss-cepcreate6895/syncGroups/sg-cepcreate683/cloudEndpoints/cepcreate6461?api-version=2018-04-02", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWQxNmY5YjMtYmJlMy00OGQ0LTkzMGEtMjdhNzRkY2EwMDNiL3Jlc291cmNlR3JvdXBzL3Jlczc1ODUvcHJvdmlkZXJzL01pY3Jvc29mdC5TdG9yYWdlU3luYy9zdG9yYWdlU3luY1NlcnZpY2VzL3Nzcy1jZXBjcmVhdGU2ODk1L3N5bmNHcm91cHMvc2ctY2VwY3JlYXRlNjgzL2Nsb3VkRW5kcG9pbnRzL2NlcGNyZWF0ZTY0NjE/YXBpLXZlcnNpb249MjAxOC0wNC0wMg==", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"location\": \"west europe\",\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n },\r\n \"properties\": {\r\n \"storageAccountResourceId\": \"/subscriptions/8aba3d53-2c5e-4479-bb0d-5a7bed16360e/resourcegroups/storagesyncsdkwesteurope/providers/Microsoft.Storage/storageAccounts/storagesyncsdkwesteurope\",\r\n \"storageAccountShareName\": \"tempsdkfileshare5\",\r\n \"storageAccountTenantId\": \"\\\"72f988bf-86f1-41af-91ab-2d7cd011db47\\\"\"\r\n }\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "a43b9b90-ce7a-4261-8357-a186acf40a0e" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26328.01", + "Microsoft.Azure.Management.StorageSync.StorageSyncManagementClient/1.0.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "446" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 11 Sep 2018 17:52:25 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res7585/providers/microsoft.storagesync/storageSyncServices/sss-cepcreate6895/workflows/b044326b-e88d-43b7-9a48-c5db04069d3f/operationresults/62fdf96d-8f27-402e-a7cc-f0416a333890?api-version=2018-04-02" + ], + "Retry-After": [ + "10" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res7585/providers/microsoft.storagesync/storageSyncServices/sss-cepcreate6895/workflows/b044326b-e88d-43b7-9a48-c5db04069d3f/operations/62fdf96d-8f27-402e-a7cc-f0416a333890?api-version=2018-04-02" + ], + "x-ms-request-id": [ + "105bb10f-543a-42cf-9ce0-410fab2abd52" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1196" + ], + "x-ms-correlation-request-id": [ + "6511a69d-cb4f-4382-ac61-5185d528dc7f" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180911T175225Z:6511a69d-cb4f-4382-ac61-5185d528dc7f" + ], + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res7585/providers/microsoft.storagesync/storageSyncServices/sss-cepcreate6895/workflows/b044326b-e88d-43b7-9a48-c5db04069d3f/operations/62fdf96d-8f27-402e-a7cc-f0416a333890?api-version=2018-04-02", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWQxNmY5YjMtYmJlMy00OGQ0LTkzMGEtMjdhNzRkY2EwMDNiL3Jlc291cmNlR3JvdXBzL3Jlczc1ODUvcHJvdmlkZXJzL21pY3Jvc29mdC5zdG9yYWdlc3luYy9zdG9yYWdlU3luY1NlcnZpY2VzL3Nzcy1jZXBjcmVhdGU2ODk1L3dvcmtmbG93cy9iMDQ0MzI2Yi1lODhkLTQzYjctOWE0OC1jNWRiMDQwNjlkM2Yvb3BlcmF0aW9ucy82MmZkZjk2ZC04ZjI3LTQwMmUtYTdjYy1mMDQxNmEzMzM4OTA/YXBpLXZlcnNpb249MjAxOC0wNC0wMg==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26328.01", + "Microsoft.Azure.Management.StorageSync.StorageSyncManagementClient/1.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 11 Sep 2018 17:52:35 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "x-ms-request-id": [ + "7feeeb21-bab6-4504-abc7-94915a93f611" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11999" + ], + "x-ms-correlation-request-id": [ + "6c86fa2d-01c1-4ebe-ac4f-234413a2fa96" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180911T175236Z:6c86fa2d-01c1-4ebe-ac4f-234413a2fa96" + ], + "Content-Length": [ + "456" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res7585/providers/microsoft.storagesync/storageSyncServices/sss-cepcreate6895/workflow/b044326b-e88d-43b7-9a48-c5db04069d3f/operationresults/62fdf96d-8f27-402e-a7cc-f0416a333890\",\r\n \"name\": \"62fdf96d-8f27-402e-a7cc-f0416a333890\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-09-11T17:52:25.9150955Z\",\r\n \"endTime\": \"2018-09-11T17:52:33.6965543Z\",\r\n \"percentComplete\": null,\r\n \"error\": null,\r\n \"properties\": {}\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res7585/providers/Microsoft.StorageSync/storageSyncServices/sss-cepcreate6895/syncGroups/sg-cepcreate683/cloudEndpoints/cepcreate6461?api-version=2018-04-02", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWQxNmY5YjMtYmJlMy00OGQ0LTkzMGEtMjdhNzRkY2EwMDNiL3Jlc291cmNlR3JvdXBzL3Jlczc1ODUvcHJvdmlkZXJzL01pY3Jvc29mdC5TdG9yYWdlU3luYy9zdG9yYWdlU3luY1NlcnZpY2VzL3Nzcy1jZXBjcmVhdGU2ODk1L3N5bmNHcm91cHMvc2ctY2VwY3JlYXRlNjgzL2Nsb3VkRW5kcG9pbnRzL2NlcGNyZWF0ZTY0NjE/YXBpLXZlcnNpb249MjAxOC0wNC0wMg==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26328.01", + "Microsoft.Azure.Management.StorageSync.StorageSyncManagementClient/1.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 11 Sep 2018 17:52:35 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "x-ms-request-id": [ + "2a9d3e63-6a60-45a1-9db2-932a0a16ba6a" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11998" + ], + "x-ms-correlation-request-id": [ + "5910bbe2-f3e0-49f4-bcf5-f425b9639ee0" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180911T175236Z:5910bbe2-f3e0-49f4-bcf5-f425b9639ee0" + ], + "Content-Length": [ + "1147" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"properties\": {\r\n \"storageAccountKey\": null,\r\n \"storageAccount\": null,\r\n \"storageAccountResourceId\": \"/subscriptions/8aba3d53-2c5e-4479-bb0d-5a7bed16360e/resourcegroups/storagesyncsdkwesteurope/providers/Microsoft.Storage/storageAccounts/storagesyncsdkwesteurope\",\r\n \"storageAccountShareName\": \"tempsdkfileshare5\",\r\n \"storageAccountTenantId\": \"\\\"72f988bf-86f1-41af-91ab-2d7cd011db47\\\"\",\r\n \"partnershipId\": \"1|U0VSVkVSQVNTWU5DQ0xJRU5USEZTVjJ8QkNCMDZDMUUtNzA5MS00MjczLUFFQ0ItRDA1OTM3OERCMDJGfEdFTkVSSUN8MTYwOEE0MDgtMTU5Ny00MjZFLTgwMUMtNzQ4RUYzNzBDQ0Ix\",\r\n \"friendlyName\": \"tempsdkfileshare5\",\r\n \"backupEnabled\": \"false\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"lastWorkflowId\": \"storageSyncServices/sss-cepcreate6895/workflows/b044326b-e88d-43b7-9a48-c5db04069d3f\",\r\n \"lastOperationName\": \"ICreateCloudEndpointWorkflow\"\r\n },\r\n \"location\": \"westeurope\",\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n },\r\n \"id\": \"/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res7585/providers/microsoft.storagesync/storageSyncServices/sss-cepcreate6895/syncGroups/sg-cepcreate683/cloudEndpoints/cepcreate6461\",\r\n \"name\": \"cepcreate6461\",\r\n \"type\": \"microsoft.storagesync/storageSyncServices/syncGroups/cloudEndpoints\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res7585/providers/Microsoft.StorageSync/storageSyncServices/sss-cepcreate6895/syncGroups/sg-cepcreate683/cloudEndpoints/cepcreate6461?api-version=2018-04-02", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWQxNmY5YjMtYmJlMy00OGQ0LTkzMGEtMjdhNzRkY2EwMDNiL3Jlc291cmNlR3JvdXBzL3Jlczc1ODUvcHJvdmlkZXJzL01pY3Jvc29mdC5TdG9yYWdlU3luYy9zdG9yYWdlU3luY1NlcnZpY2VzL3Nzcy1jZXBjcmVhdGU2ODk1L3N5bmNHcm91cHMvc2ctY2VwY3JlYXRlNjgzL2Nsb3VkRW5kcG9pbnRzL2NlcGNyZWF0ZTY0NjE/YXBpLXZlcnNpb249MjAxOC0wNC0wMg==", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "ccbe35b2-12d9-422b-9152-2b5d9f543c0a" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26328.01", + "Microsoft.Azure.Management.StorageSync.StorageSyncManagementClient/1.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 11 Sep 2018 17:52:36 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res7585/providers/microsoft.storagesync/storageSyncServices/sss-cepcreate6895/workflows/c9610bb7-b663-49b3-8757-f47d1666030d/operationresults/95678aa0-abba-4017-af48-0976a4c3af2c?api-version=2018-04-02" + ], + "Retry-After": [ + "10" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res7585/providers/microsoft.storagesync/storageSyncServices/sss-cepcreate6895/workflows/c9610bb7-b663-49b3-8757-f47d1666030d/operations/95678aa0-abba-4017-af48-0976a4c3af2c?api-version=2018-04-02" + ], + "x-ms-request-id": [ + "2577bc21-dc2c-4b84-906b-2eceaa9f9df6" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-deletes": [ + "14999" + ], + "x-ms-correlation-request-id": [ + "4c4bcf5e-98de-454a-af83-80f232ca2961" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180911T175237Z:4c4bcf5e-98de-454a-af83-80f232ca2961" + ], + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res7585/providers/microsoft.storagesync/storageSyncServices/sss-cepcreate6895/workflows/c9610bb7-b663-49b3-8757-f47d1666030d/operations/95678aa0-abba-4017-af48-0976a4c3af2c?api-version=2018-04-02", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWQxNmY5YjMtYmJlMy00OGQ0LTkzMGEtMjdhNzRkY2EwMDNiL3Jlc291cmNlR3JvdXBzL3Jlczc1ODUvcHJvdmlkZXJzL21pY3Jvc29mdC5zdG9yYWdlc3luYy9zdG9yYWdlU3luY1NlcnZpY2VzL3Nzcy1jZXBjcmVhdGU2ODk1L3dvcmtmbG93cy9jOTYxMGJiNy1iNjYzLTQ5YjMtODc1Ny1mNDdkMTY2NjAzMGQvb3BlcmF0aW9ucy85NTY3OGFhMC1hYmJhLTQwMTctYWY0OC0wOTc2YTRjM2FmMmM/YXBpLXZlcnNpb249MjAxOC0wNC0wMg==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26328.01", + "Microsoft.Azure.Management.StorageSync.StorageSyncManagementClient/1.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 11 Sep 2018 17:52:47 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "x-ms-request-id": [ + "c60fcfa3-ed13-4565-a09e-90e84453e61c" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11997" + ], + "x-ms-correlation-request-id": [ + "7b478d8b-442f-44e9-b067-d4c50fd5a7ab" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180911T175247Z:7b478d8b-442f-44e9-b067-d4c50fd5a7ab" + ], + "Content-Length": [ + "456" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res7585/providers/microsoft.storagesync/storageSyncServices/sss-cepcreate6895/workflow/c9610bb7-b663-49b3-8757-f47d1666030d/operationresults/95678aa0-abba-4017-af48-0976a4c3af2c\",\r\n \"name\": \"95678aa0-abba-4017-af48-0976a4c3af2c\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-09-11T17:52:37.6180719Z\",\r\n \"endTime\": \"2018-09-11T17:52:40.3412644Z\",\r\n \"percentComplete\": null,\r\n \"error\": null,\r\n \"properties\": {}\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res7585/providers/microsoft.storagesync/storageSyncServices/sss-cepcreate6895/workflows/c9610bb7-b663-49b3-8757-f47d1666030d/operationresults/95678aa0-abba-4017-af48-0976a4c3af2c?api-version=2018-04-02", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWQxNmY5YjMtYmJlMy00OGQ0LTkzMGEtMjdhNzRkY2EwMDNiL3Jlc291cmNlR3JvdXBzL3Jlczc1ODUvcHJvdmlkZXJzL21pY3Jvc29mdC5zdG9yYWdlc3luYy9zdG9yYWdlU3luY1NlcnZpY2VzL3Nzcy1jZXBjcmVhdGU2ODk1L3dvcmtmbG93cy9jOTYxMGJiNy1iNjYzLTQ5YjMtODc1Ny1mNDdkMTY2NjAzMGQvb3BlcmF0aW9ucmVzdWx0cy85NTY3OGFhMC1hYmJhLTQwMTctYWY0OC0wOTc2YTRjM2FmMmM/YXBpLXZlcnNpb249MjAxOC0wNC0wMg==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26328.01", + "Microsoft.Azure.Management.StorageSync.StorageSyncManagementClient/1.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 11 Sep 2018 17:52:47 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "x-ms-request-id": [ + "5cea7e87-c275-4073-a548-fbffb44abbda" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11996" + ], + "x-ms-correlation-request-id": [ + "e21e7d5d-32a9-4001-843e-7b4c61702ca7" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180911T175248Z:e21e7d5d-32a9-4001-843e-7b4c61702ca7" + ], + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res7585/providers/Microsoft.StorageSync/storageSyncServices/sss-cepcreate6895/syncGroups/sg-cepcreate683?api-version=2018-04-02", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWQxNmY5YjMtYmJlMy00OGQ0LTkzMGEtMjdhNzRkY2EwMDNiL3Jlc291cmNlR3JvdXBzL3Jlczc1ODUvcHJvdmlkZXJzL01pY3Jvc29mdC5TdG9yYWdlU3luYy9zdG9yYWdlU3luY1NlcnZpY2VzL3Nzcy1jZXBjcmVhdGU2ODk1L3N5bmNHcm91cHMvc2ctY2VwY3JlYXRlNjgzP2FwaS12ZXJzaW9uPTIwMTgtMDQtMDI=", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "5178523e-dd88-41fa-973b-88d9d951edda" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26328.01", + "Microsoft.Azure.Management.StorageSync.StorageSyncManagementClient/1.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 11 Sep 2018 17:52:49 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "x-ms-request-id": [ + "f59e8437-d129-44b9-aa09-f2c4fe5eb155" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-deletes": [ + "14998" + ], + "x-ms-correlation-request-id": [ + "db095d32-a324-47ab-9438-2c6eb045140b" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180911T175249Z:db095d32-a324-47ab-9438-2c6eb045140b" + ], + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res7585/providers/Microsoft.StorageSync/storageSyncServices/sss-cepcreate6895?api-version=2018-04-02", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWQxNmY5YjMtYmJlMy00OGQ0LTkzMGEtMjdhNzRkY2EwMDNiL3Jlc291cmNlR3JvdXBzL3Jlczc1ODUvcHJvdmlkZXJzL01pY3Jvc29mdC5TdG9yYWdlU3luYy9zdG9yYWdlU3luY1NlcnZpY2VzL3Nzcy1jZXBjcmVhdGU2ODk1P2FwaS12ZXJzaW9uPTIwMTgtMDQtMDI=", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "5f0e9a19-f47b-4e99-8e21-b63de6c2cbd3" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26328.01", + "Microsoft.Azure.Management.StorageSync.StorageSyncManagementClient/1.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 11 Sep 2018 17:52:51 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "x-ms-request-id": [ + "da93a030-d064-4c8b-b919-c77161f8c4f5" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-deletes": [ + "14997" + ], + "x-ms-correlation-request-id": [ + "738d104a-b034-4de5-854e-050382a26795" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180911T175252Z:738d104a-b034-4de5-854e-050382a26795" + ], + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourcegroups/res7585?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWQxNmY5YjMtYmJlMy00OGQ0LTkzMGEtMjdhNzRkY2EwMDNiL3Jlc291cmNlZ3JvdXBzL3Jlczc1ODU/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "15a7d709-8865-40ac-b30a-f3fd407a1795" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26328.01", + "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 11 Sep 2018 17:52:52 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1SRVM3NTg1LUVBU1RVUzIiLCJqb2JMb2NhdGlvbiI6ImVhc3R1czIifQ?api-version=2017-05-10" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-deletes": [ + "14996" + ], + "x-ms-request-id": [ + "dd5a4836-dc2d-4751-b062-ed13b269d6c4" + ], + "x-ms-correlation-request-id": [ + "dd5a4836-dc2d-4751-b062-ed13b269d6c4" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180911T175253Z:dd5a4836-dc2d-4751-b062-ed13b269d6c4" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1SRVM3NTg1LUVBU1RVUzIiLCJqb2JMb2NhdGlvbiI6ImVhc3R1czIifQ?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWQxNmY5YjMtYmJlMy00OGQ0LTkzMGEtMjdhNzRkY2EwMDNiL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFTUlZNM05UZzFMVVZCVTFSVlV6SWlMQ0pxYjJKTWIyTmhkR2x2YmlJNkltVmhjM1IxY3pJaWZRP2FwaS12ZXJzaW9uPTIwMTctMDUtMTA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26328.01", + "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 11 Sep 2018 17:53:08 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1SRVM3NTg1LUVBU1RVUzIiLCJqb2JMb2NhdGlvbiI6ImVhc3R1czIifQ?api-version=2017-05-10" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11995" + ], + "x-ms-request-id": [ + "00fc097d-35b3-4044-9b2a-812ffbb7b7d1" + ], + "x-ms-correlation-request-id": [ + "00fc097d-35b3-4044-9b2a-812ffbb7b7d1" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180911T175308Z:00fc097d-35b3-4044-9b2a-812ffbb7b7d1" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1SRVM3NTg1LUVBU1RVUzIiLCJqb2JMb2NhdGlvbiI6ImVhc3R1czIifQ?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWQxNmY5YjMtYmJlMy00OGQ0LTkzMGEtMjdhNzRkY2EwMDNiL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFTUlZNM05UZzFMVVZCVTFSVlV6SWlMQ0pxYjJKTWIyTmhkR2x2YmlJNkltVmhjM1IxY3pJaWZRP2FwaS12ZXJzaW9uPTIwMTctMDUtMTA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26328.01", + "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 11 Sep 2018 17:53:22 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1SRVM3NTg1LUVBU1RVUzIiLCJqb2JMb2NhdGlvbiI6ImVhc3R1czIifQ?api-version=2017-05-10" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11994" + ], + "x-ms-request-id": [ + "b95a78ec-3d6d-4760-bab2-e73631e8da9c" + ], + "x-ms-correlation-request-id": [ + "b95a78ec-3d6d-4760-bab2-e73631e8da9c" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180911T175323Z:b95a78ec-3d6d-4760-bab2-e73631e8da9c" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1SRVM3NTg1LUVBU1RVUzIiLCJqb2JMb2NhdGlvbiI6ImVhc3R1czIifQ?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWQxNmY5YjMtYmJlMy00OGQ0LTkzMGEtMjdhNzRkY2EwMDNiL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFTUlZNM05UZzFMVVZCVTFSVlV6SWlMQ0pxYjJKTWIyTmhkR2x2YmlJNkltVmhjM1IxY3pJaWZRP2FwaS12ZXJzaW9uPTIwMTctMDUtMTA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26328.01", + "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 11 Sep 2018 17:53:37 GMT" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11993" + ], + "x-ms-request-id": [ + "fa1dfd80-8e9f-4cd6-8e8f-7b79af509ad8" + ], + "x-ms-correlation-request-id": [ + "fa1dfd80-8e9f-4cd6-8e8f-7b79af509ad8" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180911T175338Z:fa1dfd80-8e9f-4cd6-8e8f-7b79af509ad8" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1SRVM3NTg1LUVBU1RVUzIiLCJqb2JMb2NhdGlvbiI6ImVhc3R1czIifQ?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWQxNmY5YjMtYmJlMy00OGQ0LTkzMGEtMjdhNzRkY2EwMDNiL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFTUlZNM05UZzFMVVZCVTFSVlV6SWlMQ0pxYjJKTWIyTmhkR2x2YmlJNkltVmhjM1IxY3pJaWZRP2FwaS12ZXJzaW9uPTIwMTctMDUtMTA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26328.01", + "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 11 Sep 2018 17:53:37 GMT" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11992" + ], + "x-ms-request-id": [ + "34ba1ddc-53d7-4f60-a2b1-79653f0de451" + ], + "x-ms-correlation-request-id": [ + "34ba1ddc-53d7-4f60-a2b1-79653f0de451" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180911T175338Z:34ba1ddc-53d7-4f60-a2b1-79653f0de451" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "", + "StatusCode": 200 + } + ], + "Names": { + "CreateResourceGroup": [ + "res7585" + ], + "CloudEndpointCreateTest": [ + "sss-cepcreate6895", + "sg-cepcreate683", + "cepcreate6461" + ] + }, + "Variables": { + "SubscriptionId": "1d16f9b3-bbe3-48d4-930a-27a74dca003b" + } +} \ No newline at end of file diff --git a/src/SDKs/StorageSync/StorageSync.Tests/SessionRecords/Microsoft.Azure.Management.StorageSync.Tests.CloudEndpointTests/CloudEndpointDeleteTest.json b/src/SDKs/StorageSync/StorageSync.Tests/SessionRecords/Microsoft.Azure.Management.StorageSync.Tests.CloudEndpointTests/CloudEndpointDeleteTest.json new file mode 100644 index 000000000000..f173bfdc8ffd --- /dev/null +++ b/src/SDKs/StorageSync/StorageSync.Tests/SessionRecords/Microsoft.Azure.Management.StorageSync.Tests.CloudEndpointTests/CloudEndpointDeleteTest.json @@ -0,0 +1,1456 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourcegroups/res2802?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWQxNmY5YjMtYmJlMy00OGQ0LTkzMGEtMjdhNzRkY2EwMDNiL3Jlc291cmNlZ3JvdXBzL3JlczI4MDI/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"location\": \"eastus2\"\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "d4e0bdbb-a82f-47e7-a7d6-5e035cf93927" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26328.01", + "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "29" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 11 Sep 2018 17:55:04 GMT" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1199" + ], + "x-ms-request-id": [ + "a4040c0f-60a6-47fa-9844-01c5f5e3d622" + ], + "x-ms-correlation-request-id": [ + "a4040c0f-60a6-47fa-9844-01c5f5e3d622" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180911T175504Z:a4040c0f-60a6-47fa-9844-01c5f5e3d622" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "168" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res2802\",\r\n \"name\": \"res2802\",\r\n \"location\": \"eastus2\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res2802/providers/Microsoft.StorageSync/storageSyncServices/sss-cepdelete5451?api-version=2018-04-02", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWQxNmY5YjMtYmJlMy00OGQ0LTkzMGEtMjdhNzRkY2EwMDNiL3Jlc291cmNlR3JvdXBzL3JlczI4MDIvcHJvdmlkZXJzL01pY3Jvc29mdC5TdG9yYWdlU3luYy9zdG9yYWdlU3luY1NlcnZpY2VzL3Nzcy1jZXBkZWxldGU1NDUxP2FwaS12ZXJzaW9uPTIwMTgtMDQtMDI=", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"location\": \"west europe\",\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n }\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "4fed0856-6524-437e-be36-49278e407adf" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26328.01", + "Microsoft.Azure.Management.StorageSync.StorageSyncManagementClient/1.0.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "97" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 11 Sep 2018 17:55:07 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "x-ms-request-id": [ + "587f5a69-db8d-45ea-ae78-f4531e9782b9" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1198" + ], + "x-ms-correlation-request-id": [ + "bf139ba0-76d9-476b-a515-4ee5225ab990" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180911T175508Z:bf139ba0-76d9-476b-a515-4ee5225ab990" + ], + "Content-Length": [ + "407" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"properties\": {\r\n \"storageSyncServiceStatus\": null,\r\n \"storageSyncServiceUid\": \"00000000-0000-0000-0000-000000000000\"\r\n },\r\n \"location\": \"west europe\",\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n },\r\n \"id\": \"/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res2802/providers/microsoft.storagesync/storageSyncServices/sss-cepdelete5451\",\r\n \"name\": \"sss-cepdelete5451\",\r\n \"type\": \"microsoft.storagesync/storageSyncServices\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res2802/providers/Microsoft.StorageSync/storageSyncServices/sss-cepdelete5451/syncGroups/sg-cepdelete5921?api-version=2018-04-02", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWQxNmY5YjMtYmJlMy00OGQ0LTkzMGEtMjdhNzRkY2EwMDNiL3Jlc291cmNlR3JvdXBzL3JlczI4MDIvcHJvdmlkZXJzL01pY3Jvc29mdC5TdG9yYWdlU3luYy9zdG9yYWdlU3luY1NlcnZpY2VzL3Nzcy1jZXBkZWxldGU1NDUxL3N5bmNHcm91cHMvc2ctY2VwZGVsZXRlNTkyMT9hcGktdmVyc2lvbj0yMDE4LTA0LTAy", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"location\": \"west europe\",\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n }\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "beb57bb7-979e-42b1-bacb-cb0c02624b35" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26328.01", + "Microsoft.Azure.Management.StorageSync.StorageSyncManagementClient/1.0.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "97" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 11 Sep 2018 17:55:08 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "x-ms-request-id": [ + "1c8167ac-6ab5-4b5e-a249-e1d569f1b1f4" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1197" + ], + "x-ms-correlation-request-id": [ + "655d1936-edb9-44a3-9b3e-ac38a68896b8" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180911T175509Z:655d1936-edb9-44a3-9b3e-ac38a68896b8" + ], + "Content-Length": [ + "423" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"properties\": {\r\n \"syncGroupStatus\": null,\r\n \"uniqueId\": \"fee6c8c5-2c53-478e-ac77-e43c52c129b6\"\r\n },\r\n \"location\": \"west europe\",\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n },\r\n \"id\": \"/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res2802/providers/microsoft.storagesync/storageSyncServices/sss-cepdelete5451/syncGroups/sg-cepdelete5921\",\r\n \"name\": \"sg-cepdelete5921\",\r\n \"type\": \"microsoft.storagesync/storageSyncServices/syncGroups\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res2802/providers/Microsoft.StorageSync/storageSyncServices/sss-cepdelete5451/syncGroups/sg-cepdelete5921/cloudEndpoints/cepdelete2669?api-version=2018-04-02", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWQxNmY5YjMtYmJlMy00OGQ0LTkzMGEtMjdhNzRkY2EwMDNiL3Jlc291cmNlR3JvdXBzL3JlczI4MDIvcHJvdmlkZXJzL01pY3Jvc29mdC5TdG9yYWdlU3luYy9zdG9yYWdlU3luY1NlcnZpY2VzL3Nzcy1jZXBkZWxldGU1NDUxL3N5bmNHcm91cHMvc2ctY2VwZGVsZXRlNTkyMS9jbG91ZEVuZHBvaW50cy9jZXBkZWxldGUyNjY5P2FwaS12ZXJzaW9uPTIwMTgtMDQtMDI=", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "2fa0789f-0edf-4ef0-ab51-1f2ba158dabe" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26328.01", + "Microsoft.Azure.Management.StorageSync.StorageSyncManagementClient/1.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 11 Sep 2018 17:55:09 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res2802/providers/microsoft.storagesync/storageSyncServices/sss-cepdelete5451/workflows/9e3521fc-6d16-442e-ad59-03c88dbd8abe/operationresults/2116d515-bcb7-42d5-8978-f9fcc72a52cc?api-version=2018-04-02" + ], + "Retry-After": [ + "10" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res2802/providers/microsoft.storagesync/storageSyncServices/sss-cepdelete5451/workflows/9e3521fc-6d16-442e-ad59-03c88dbd8abe/operations/2116d515-bcb7-42d5-8978-f9fcc72a52cc?api-version=2018-04-02" + ], + "x-ms-request-id": [ + "9d1ff394-3671-4eb2-ad6b-641d89865c29" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-deletes": [ + "14999" + ], + "x-ms-correlation-request-id": [ + "905880c9-8314-4320-ae35-78ba7c9cb455" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180911T175510Z:905880c9-8314-4320-ae35-78ba7c9cb455" + ], + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res2802/providers/Microsoft.StorageSync/storageSyncServices/sss-cepdelete5451/syncGroups/sg-cepdelete5921/cloudEndpoints/cepdelete2669?api-version=2018-04-02", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWQxNmY5YjMtYmJlMy00OGQ0LTkzMGEtMjdhNzRkY2EwMDNiL3Jlc291cmNlR3JvdXBzL3JlczI4MDIvcHJvdmlkZXJzL01pY3Jvc29mdC5TdG9yYWdlU3luYy9zdG9yYWdlU3luY1NlcnZpY2VzL3Nzcy1jZXBkZWxldGU1NDUxL3N5bmNHcm91cHMvc2ctY2VwZGVsZXRlNTkyMS9jbG91ZEVuZHBvaW50cy9jZXBkZWxldGUyNjY5P2FwaS12ZXJzaW9uPTIwMTgtMDQtMDI=", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "ead86548-d3bd-41d4-8483-3342f17b9a80" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26328.01", + "Microsoft.Azure.Management.StorageSync.StorageSyncManagementClient/1.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 11 Sep 2018 17:55:45 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res2802/providers/microsoft.storagesync/storageSyncServices/sss-cepdelete5451/workflows/5a2b120b-5f02-4f01-8e14-0107ebff0f94/operationresults/444ddeff-7ca5-439a-a518-cbf6ae67c9b2?api-version=2018-04-02" + ], + "Retry-After": [ + "10" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res2802/providers/microsoft.storagesync/storageSyncServices/sss-cepdelete5451/workflows/5a2b120b-5f02-4f01-8e14-0107ebff0f94/operations/444ddeff-7ca5-439a-a518-cbf6ae67c9b2?api-version=2018-04-02" + ], + "x-ms-request-id": [ + "d4a2e610-773d-4ac9-9650-3963aec97199" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-deletes": [ + "14998" + ], + "x-ms-correlation-request-id": [ + "81baa8ee-51d2-4281-986b-f1f68f02cee2" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180911T175546Z:81baa8ee-51d2-4281-986b-f1f68f02cee2" + ], + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res2802/providers/Microsoft.StorageSync/storageSyncServices/sss-cepdelete5451/syncGroups/sg-cepdelete5921/cloudEndpoints/cepdelete2669?api-version=2018-04-02", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWQxNmY5YjMtYmJlMy00OGQ0LTkzMGEtMjdhNzRkY2EwMDNiL3Jlc291cmNlR3JvdXBzL3JlczI4MDIvcHJvdmlkZXJzL01pY3Jvc29mdC5TdG9yYWdlU3luYy9zdG9yYWdlU3luY1NlcnZpY2VzL3Nzcy1jZXBkZWxldGU1NDUxL3N5bmNHcm91cHMvc2ctY2VwZGVsZXRlNTkyMS9jbG91ZEVuZHBvaW50cy9jZXBkZWxldGUyNjY5P2FwaS12ZXJzaW9uPTIwMTgtMDQtMDI=", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "3f06390d-7e6f-4220-ad3b-0cab9cfe3731" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26328.01", + "Microsoft.Azure.Management.StorageSync.StorageSyncManagementClient/1.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 11 Sep 2018 17:55:58 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res2802/providers/microsoft.storagesync/storageSyncServices/sss-cepdelete5451/workflows/e610afbc-ddaf-4c28-a370-e07c7418f50d/operationresults/4029eef5-4abe-408c-a615-fc3a419ac59f?api-version=2018-04-02" + ], + "Retry-After": [ + "10" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res2802/providers/microsoft.storagesync/storageSyncServices/sss-cepdelete5451/workflows/e610afbc-ddaf-4c28-a370-e07c7418f50d/operations/4029eef5-4abe-408c-a615-fc3a419ac59f?api-version=2018-04-02" + ], + "x-ms-request-id": [ + "4d3189fe-e3f8-41a0-b64a-5d8babaa86eb" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-deletes": [ + "14997" + ], + "x-ms-correlation-request-id": [ + "f62cf7f2-57c0-4d2e-8a72-8e3cd52c14aa" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180911T175559Z:f62cf7f2-57c0-4d2e-8a72-8e3cd52c14aa" + ], + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res2802/providers/microsoft.storagesync/storageSyncServices/sss-cepdelete5451/workflows/9e3521fc-6d16-442e-ad59-03c88dbd8abe/operations/2116d515-bcb7-42d5-8978-f9fcc72a52cc?api-version=2018-04-02", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWQxNmY5YjMtYmJlMy00OGQ0LTkzMGEtMjdhNzRkY2EwMDNiL3Jlc291cmNlR3JvdXBzL3JlczI4MDIvcHJvdmlkZXJzL21pY3Jvc29mdC5zdG9yYWdlc3luYy9zdG9yYWdlU3luY1NlcnZpY2VzL3Nzcy1jZXBkZWxldGU1NDUxL3dvcmtmbG93cy85ZTM1MjFmYy02ZDE2LTQ0MmUtYWQ1OS0wM2M4OGRiZDhhYmUvb3BlcmF0aW9ucy8yMTE2ZDUxNS1iY2I3LTQyZDUtODk3OC1mOWZjYzcyYTUyY2M/YXBpLXZlcnNpb249MjAxOC0wNC0wMg==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26328.01", + "Microsoft.Azure.Management.StorageSync.StorageSyncManagementClient/1.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 11 Sep 2018 17:55:20 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "x-ms-request-id": [ + "8cd3ae7f-dc9e-4d4f-97b0-95f76de00831" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11999" + ], + "x-ms-correlation-request-id": [ + "98d404aa-ceff-4650-9ad3-f27567edffe8" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180911T175521Z:98d404aa-ceff-4650-9ad3-f27567edffe8" + ], + "Content-Length": [ + "455" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res2802/providers/microsoft.storagesync/storageSyncServices/sss-cepdelete5451/workflow/9e3521fc-6d16-442e-ad59-03c88dbd8abe/operationresults/2116d515-bcb7-42d5-8978-f9fcc72a52cc\",\r\n \"name\": \"2116d515-bcb7-42d5-8978-f9fcc72a52cc\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-09-11T17:55:10.318951Z\",\r\n \"endTime\": \"2018-09-11T17:55:11.7408733Z\",\r\n \"percentComplete\": null,\r\n \"error\": null,\r\n \"properties\": {}\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res2802/providers/microsoft.storagesync/storageSyncServices/sss-cepdelete5451/workflows/9e3521fc-6d16-442e-ad59-03c88dbd8abe/operationresults/2116d515-bcb7-42d5-8978-f9fcc72a52cc?api-version=2018-04-02", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWQxNmY5YjMtYmJlMy00OGQ0LTkzMGEtMjdhNzRkY2EwMDNiL3Jlc291cmNlR3JvdXBzL3JlczI4MDIvcHJvdmlkZXJzL21pY3Jvc29mdC5zdG9yYWdlc3luYy9zdG9yYWdlU3luY1NlcnZpY2VzL3Nzcy1jZXBkZWxldGU1NDUxL3dvcmtmbG93cy85ZTM1MjFmYy02ZDE2LTQ0MmUtYWQ1OS0wM2M4OGRiZDhhYmUvb3BlcmF0aW9ucmVzdWx0cy8yMTE2ZDUxNS1iY2I3LTQyZDUtODk3OC1mOWZjYzcyYTUyY2M/YXBpLXZlcnNpb249MjAxOC0wNC0wMg==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26328.01", + "Microsoft.Azure.Management.StorageSync.StorageSyncManagementClient/1.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 11 Sep 2018 17:55:21 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "x-ms-request-id": [ + "b3de1c19-94b6-45e1-9967-175a5f92844e" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11998" + ], + "x-ms-correlation-request-id": [ + "18dbee0f-990b-41ed-9883-16038f3cd647" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180911T175522Z:18dbee0f-990b-41ed-9883-16038f3cd647" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "", + "StatusCode": 204 + }, + { + "RequestUri": "/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res2802/providers/Microsoft.StorageSync/storageSyncServices/sss-cepdelete5451/syncGroups/sg-cepdelete5921/cloudEndpoints/cepdelete2669?api-version=2018-04-02", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWQxNmY5YjMtYmJlMy00OGQ0LTkzMGEtMjdhNzRkY2EwMDNiL3Jlc291cmNlR3JvdXBzL3JlczI4MDIvcHJvdmlkZXJzL01pY3Jvc29mdC5TdG9yYWdlU3luYy9zdG9yYWdlU3luY1NlcnZpY2VzL3Nzcy1jZXBkZWxldGU1NDUxL3N5bmNHcm91cHMvc2ctY2VwZGVsZXRlNTkyMS9jbG91ZEVuZHBvaW50cy9jZXBkZWxldGUyNjY5P2FwaS12ZXJzaW9uPTIwMTgtMDQtMDI=", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"location\": \"west europe\",\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n },\r\n \"properties\": {\r\n \"storageAccountResourceId\": \"/subscriptions/8aba3d53-2c5e-4479-bb0d-5a7bed16360e/resourcegroups/storagesyncsdkwesteurope/providers/Microsoft.Storage/storageAccounts/storagesyncsdkwesteurope\",\r\n \"storageAccountShareName\": \"tempsdkfileshare5\",\r\n \"storageAccountTenantId\": \"\\\"72f988bf-86f1-41af-91ab-2d7cd011db47\\\"\"\r\n }\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "27152c59-d73e-4f89-9b83-c0664d5d726e" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26328.01", + "Microsoft.Azure.Management.StorageSync.StorageSyncManagementClient/1.0.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "446" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 11 Sep 2018 17:55:22 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res2802/providers/microsoft.storagesync/storageSyncServices/sss-cepdelete5451/workflows/0c59549c-6098-4b0c-a79e-7ea8b354c070/operationresults/278e8f19-19e8-4053-ba70-cecb157f3f78?api-version=2018-04-02" + ], + "Retry-After": [ + "10" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res2802/providers/microsoft.storagesync/storageSyncServices/sss-cepdelete5451/workflows/0c59549c-6098-4b0c-a79e-7ea8b354c070/operations/278e8f19-19e8-4053-ba70-cecb157f3f78?api-version=2018-04-02" + ], + "x-ms-request-id": [ + "f1ec6b72-41c8-467d-8f49-89215723941a" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1196" + ], + "x-ms-correlation-request-id": [ + "5a9aa0c5-29aa-4d01-9f2f-743960d64fd7" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180911T175523Z:5a9aa0c5-29aa-4d01-9f2f-743960d64fd7" + ], + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res2802/providers/microsoft.storagesync/storageSyncServices/sss-cepdelete5451/workflows/0c59549c-6098-4b0c-a79e-7ea8b354c070/operations/278e8f19-19e8-4053-ba70-cecb157f3f78?api-version=2018-04-02", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWQxNmY5YjMtYmJlMy00OGQ0LTkzMGEtMjdhNzRkY2EwMDNiL3Jlc291cmNlR3JvdXBzL3JlczI4MDIvcHJvdmlkZXJzL21pY3Jvc29mdC5zdG9yYWdlc3luYy9zdG9yYWdlU3luY1NlcnZpY2VzL3Nzcy1jZXBkZWxldGU1NDUxL3dvcmtmbG93cy8wYzU5NTQ5Yy02MDk4LTRiMGMtYTc5ZS03ZWE4YjM1NGMwNzAvb3BlcmF0aW9ucy8yNzhlOGYxOS0xOWU4LTQwNTMtYmE3MC1jZWNiMTU3ZjNmNzg/YXBpLXZlcnNpb249MjAxOC0wNC0wMg==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26328.01", + "Microsoft.Azure.Management.StorageSync.StorageSyncManagementClient/1.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 11 Sep 2018 17:55:34 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "x-ms-request-id": [ + "52e10bef-d4be-4396-be00-87394d59647b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11997" + ], + "x-ms-correlation-request-id": [ + "6834566b-5a96-4433-9d58-9ba7eda70811" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180911T175534Z:6834566b-5a96-4433-9d58-9ba7eda70811" + ], + "Content-Length": [ + "467" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res2802/providers/microsoft.storagesync/storageSyncServices/sss-cepdelete5451/workflow/0c59549c-6098-4b0c-a79e-7ea8b354c070/operationresults/278e8f19-19e8-4053-ba70-cecb157f3f78\",\r\n \"name\": \"278e8f19-19e8-4053-ba70-cecb157f3f78\",\r\n \"status\": \"setFileShareMetadata\",\r\n \"startTime\": \"2018-09-11T17:55:24.2785609Z\",\r\n \"endTime\": \"2018-09-11T17:55:33.2161697Z\",\r\n \"percentComplete\": null,\r\n \"error\": null,\r\n \"properties\": {}\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res2802/providers/microsoft.storagesync/storageSyncServices/sss-cepdelete5451/workflows/0c59549c-6098-4b0c-a79e-7ea8b354c070/operations/278e8f19-19e8-4053-ba70-cecb157f3f78?api-version=2018-04-02", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWQxNmY5YjMtYmJlMy00OGQ0LTkzMGEtMjdhNzRkY2EwMDNiL3Jlc291cmNlR3JvdXBzL3JlczI4MDIvcHJvdmlkZXJzL21pY3Jvc29mdC5zdG9yYWdlc3luYy9zdG9yYWdlU3luY1NlcnZpY2VzL3Nzcy1jZXBkZWxldGU1NDUxL3dvcmtmbG93cy8wYzU5NTQ5Yy02MDk4LTRiMGMtYTc5ZS03ZWE4YjM1NGMwNzAvb3BlcmF0aW9ucy8yNzhlOGYxOS0xOWU4LTQwNTMtYmE3MC1jZWNiMTU3ZjNmNzg/YXBpLXZlcnNpb249MjAxOC0wNC0wMg==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26328.01", + "Microsoft.Azure.Management.StorageSync.StorageSyncManagementClient/1.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 11 Sep 2018 17:55:44 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "x-ms-request-id": [ + "657ee635-4d82-48b2-8681-0dec8e0c2633" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11996" + ], + "x-ms-correlation-request-id": [ + "8d995f8e-c96a-4c04-b04d-5bf44606a064" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180911T175545Z:8d995f8e-c96a-4c04-b04d-5bf44606a064" + ], + "Content-Length": [ + "455" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res2802/providers/microsoft.storagesync/storageSyncServices/sss-cepdelete5451/workflow/0c59549c-6098-4b0c-a79e-7ea8b354c070/operationresults/278e8f19-19e8-4053-ba70-cecb157f3f78\",\r\n \"name\": \"278e8f19-19e8-4053-ba70-cecb157f3f78\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-09-11T17:55:24.2785609Z\",\r\n \"endTime\": \"2018-09-11T17:55:34.499551Z\",\r\n \"percentComplete\": null,\r\n \"error\": null,\r\n \"properties\": {}\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res2802/providers/Microsoft.StorageSync/storageSyncServices/sss-cepdelete5451/syncGroups/sg-cepdelete5921/cloudEndpoints/cepdelete2669?api-version=2018-04-02", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWQxNmY5YjMtYmJlMy00OGQ0LTkzMGEtMjdhNzRkY2EwMDNiL3Jlc291cmNlR3JvdXBzL3JlczI4MDIvcHJvdmlkZXJzL01pY3Jvc29mdC5TdG9yYWdlU3luYy9zdG9yYWdlU3luY1NlcnZpY2VzL3Nzcy1jZXBkZWxldGU1NDUxL3N5bmNHcm91cHMvc2ctY2VwZGVsZXRlNTkyMS9jbG91ZEVuZHBvaW50cy9jZXBkZWxldGUyNjY5P2FwaS12ZXJzaW9uPTIwMTgtMDQtMDI=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26328.01", + "Microsoft.Azure.Management.StorageSync.StorageSyncManagementClient/1.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 11 Sep 2018 17:55:45 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "x-ms-request-id": [ + "8835e290-6dd9-4afd-95c9-7b8553aab5cd" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11995" + ], + "x-ms-correlation-request-id": [ + "c2114fd4-f8a7-4130-b4d2-7e8738671f69" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180911T175545Z:c2114fd4-f8a7-4130-b4d2-7e8738671f69" + ], + "Content-Length": [ + "1148" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"properties\": {\r\n \"storageAccountKey\": null,\r\n \"storageAccount\": null,\r\n \"storageAccountResourceId\": \"/subscriptions/8aba3d53-2c5e-4479-bb0d-5a7bed16360e/resourcegroups/storagesyncsdkwesteurope/providers/Microsoft.Storage/storageAccounts/storagesyncsdkwesteurope\",\r\n \"storageAccountShareName\": \"tempsdkfileshare5\",\r\n \"storageAccountTenantId\": \"\\\"72f988bf-86f1-41af-91ab-2d7cd011db47\\\"\",\r\n \"partnershipId\": \"1|U0VSVkVSQVNTWU5DQ0xJRU5USEZTVjJ8RkVFNkM4QzUtMkM1My00NzhFLUFDNzctRTQzQzUyQzEyOUI2fEdFTkVSSUN8MkVBQURGQjAtREVBMC00NjVFLTkwQTItQTMzNEYyRTdEQjRD\",\r\n \"friendlyName\": \"tempsdkfileshare5\",\r\n \"backupEnabled\": \"false\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"lastWorkflowId\": \"storageSyncServices/sss-cepdelete5451/workflows/0c59549c-6098-4b0c-a79e-7ea8b354c070\",\r\n \"lastOperationName\": \"ICreateCloudEndpointWorkflow\"\r\n },\r\n \"location\": \"westeurope\",\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n },\r\n \"id\": \"/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res2802/providers/microsoft.storagesync/storageSyncServices/sss-cepdelete5451/syncGroups/sg-cepdelete5921/cloudEndpoints/cepdelete2669\",\r\n \"name\": \"cepdelete2669\",\r\n \"type\": \"microsoft.storagesync/storageSyncServices/syncGroups/cloudEndpoints\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res2802/providers/microsoft.storagesync/storageSyncServices/sss-cepdelete5451/workflows/5a2b120b-5f02-4f01-8e14-0107ebff0f94/operations/444ddeff-7ca5-439a-a518-cbf6ae67c9b2?api-version=2018-04-02", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWQxNmY5YjMtYmJlMy00OGQ0LTkzMGEtMjdhNzRkY2EwMDNiL3Jlc291cmNlR3JvdXBzL3JlczI4MDIvcHJvdmlkZXJzL21pY3Jvc29mdC5zdG9yYWdlc3luYy9zdG9yYWdlU3luY1NlcnZpY2VzL3Nzcy1jZXBkZWxldGU1NDUxL3dvcmtmbG93cy81YTJiMTIwYi01ZjAyLTRmMDEtOGUxNC0wMTA3ZWJmZjBmOTQvb3BlcmF0aW9ucy80NDRkZGVmZi03Y2E1LTQzOWEtYTUxOC1jYmY2YWU2N2M5YjI/YXBpLXZlcnNpb249MjAxOC0wNC0wMg==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26328.01", + "Microsoft.Azure.Management.StorageSync.StorageSyncManagementClient/1.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 11 Sep 2018 17:55:56 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "x-ms-request-id": [ + "84c14c0e-3d24-42f6-b2ad-7efaf056a42d" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11994" + ], + "x-ms-correlation-request-id": [ + "f28fea0d-564b-4809-881d-644102e7836d" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180911T175557Z:f28fea0d-564b-4809-881d-644102e7836d" + ], + "Content-Length": [ + "456" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res2802/providers/microsoft.storagesync/storageSyncServices/sss-cepdelete5451/workflow/5a2b120b-5f02-4f01-8e14-0107ebff0f94/operationresults/444ddeff-7ca5-439a-a518-cbf6ae67c9b2\",\r\n \"name\": \"444ddeff-7ca5-439a-a518-cbf6ae67c9b2\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-09-11T17:55:46.1376834Z\",\r\n \"endTime\": \"2018-09-11T17:55:48.8242355Z\",\r\n \"percentComplete\": null,\r\n \"error\": null,\r\n \"properties\": {}\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res2802/providers/microsoft.storagesync/storageSyncServices/sss-cepdelete5451/workflows/5a2b120b-5f02-4f01-8e14-0107ebff0f94/operationresults/444ddeff-7ca5-439a-a518-cbf6ae67c9b2?api-version=2018-04-02", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWQxNmY5YjMtYmJlMy00OGQ0LTkzMGEtMjdhNzRkY2EwMDNiL3Jlc291cmNlR3JvdXBzL3JlczI4MDIvcHJvdmlkZXJzL21pY3Jvc29mdC5zdG9yYWdlc3luYy9zdG9yYWdlU3luY1NlcnZpY2VzL3Nzcy1jZXBkZWxldGU1NDUxL3dvcmtmbG93cy81YTJiMTIwYi01ZjAyLTRmMDEtOGUxNC0wMTA3ZWJmZjBmOTQvb3BlcmF0aW9ucmVzdWx0cy80NDRkZGVmZi03Y2E1LTQzOWEtYTUxOC1jYmY2YWU2N2M5YjI/YXBpLXZlcnNpb249MjAxOC0wNC0wMg==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26328.01", + "Microsoft.Azure.Management.StorageSync.StorageSyncManagementClient/1.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 11 Sep 2018 17:55:58 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "x-ms-request-id": [ + "5865145a-c144-4b03-a189-6165b9e6e6f8" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11993" + ], + "x-ms-correlation-request-id": [ + "19dff04a-b8a0-40fa-9d6c-9ca6191fb5e2" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180911T175558Z:19dff04a-b8a0-40fa-9d6c-9ca6191fb5e2" + ], + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res2802/providers/microsoft.storagesync/storageSyncServices/sss-cepdelete5451/workflows/e610afbc-ddaf-4c28-a370-e07c7418f50d/operations/4029eef5-4abe-408c-a615-fc3a419ac59f?api-version=2018-04-02", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWQxNmY5YjMtYmJlMy00OGQ0LTkzMGEtMjdhNzRkY2EwMDNiL3Jlc291cmNlR3JvdXBzL3JlczI4MDIvcHJvdmlkZXJzL21pY3Jvc29mdC5zdG9yYWdlc3luYy9zdG9yYWdlU3luY1NlcnZpY2VzL3Nzcy1jZXBkZWxldGU1NDUxL3dvcmtmbG93cy9lNjEwYWZiYy1kZGFmLTRjMjgtYTM3MC1lMDdjNzQxOGY1MGQvb3BlcmF0aW9ucy80MDI5ZWVmNS00YWJlLTQwOGMtYTYxNS1mYzNhNDE5YWM1OWY/YXBpLXZlcnNpb249MjAxOC0wNC0wMg==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26328.01", + "Microsoft.Azure.Management.StorageSync.StorageSyncManagementClient/1.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 11 Sep 2018 17:56:09 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "x-ms-request-id": [ + "9a1cc8eb-6d5a-49f4-9d8a-44c4b6bb4005" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11992" + ], + "x-ms-correlation-request-id": [ + "e5481812-c165-4f9e-8d41-d1a554042936" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180911T175610Z:e5481812-c165-4f9e-8d41-d1a554042936" + ], + "Content-Length": [ + "456" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res2802/providers/microsoft.storagesync/storageSyncServices/sss-cepdelete5451/workflow/e610afbc-ddaf-4c28-a370-e07c7418f50d/operationresults/4029eef5-4abe-408c-a615-fc3a419ac59f\",\r\n \"name\": \"4029eef5-4abe-408c-a615-fc3a419ac59f\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-09-11T17:55:59.2812309Z\",\r\n \"endTime\": \"2018-09-11T17:56:00.4216864Z\",\r\n \"percentComplete\": null,\r\n \"error\": null,\r\n \"properties\": {}\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res2802/providers/microsoft.storagesync/storageSyncServices/sss-cepdelete5451/workflows/e610afbc-ddaf-4c28-a370-e07c7418f50d/operationresults/4029eef5-4abe-408c-a615-fc3a419ac59f?api-version=2018-04-02", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWQxNmY5YjMtYmJlMy00OGQ0LTkzMGEtMjdhNzRkY2EwMDNiL3Jlc291cmNlR3JvdXBzL3JlczI4MDIvcHJvdmlkZXJzL21pY3Jvc29mdC5zdG9yYWdlc3luYy9zdG9yYWdlU3luY1NlcnZpY2VzL3Nzcy1jZXBkZWxldGU1NDUxL3dvcmtmbG93cy9lNjEwYWZiYy1kZGFmLTRjMjgtYTM3MC1lMDdjNzQxOGY1MGQvb3BlcmF0aW9ucmVzdWx0cy80MDI5ZWVmNS00YWJlLTQwOGMtYTYxNS1mYzNhNDE5YWM1OWY/YXBpLXZlcnNpb249MjAxOC0wNC0wMg==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26328.01", + "Microsoft.Azure.Management.StorageSync.StorageSyncManagementClient/1.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 11 Sep 2018 17:56:09 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "x-ms-request-id": [ + "dfb83e80-63dd-460a-be00-e4660db45f83" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11991" + ], + "x-ms-correlation-request-id": [ + "30a109d4-3860-4a5c-a858-a7434f6ea6db" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180911T175610Z:30a109d4-3860-4a5c-a858-a7434f6ea6db" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "", + "StatusCode": 204 + }, + { + "RequestUri": "/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res2802/providers/Microsoft.StorageSync/storageSyncServices/sss-cepdelete5451/syncGroups/sg-cepdelete5921?api-version=2018-04-02", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWQxNmY5YjMtYmJlMy00OGQ0LTkzMGEtMjdhNzRkY2EwMDNiL3Jlc291cmNlR3JvdXBzL3JlczI4MDIvcHJvdmlkZXJzL01pY3Jvc29mdC5TdG9yYWdlU3luYy9zdG9yYWdlU3luY1NlcnZpY2VzL3Nzcy1jZXBkZWxldGU1NDUxL3N5bmNHcm91cHMvc2ctY2VwZGVsZXRlNTkyMT9hcGktdmVyc2lvbj0yMDE4LTA0LTAy", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "52e958e9-b97a-4853-874a-89f6f758264b" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26328.01", + "Microsoft.Azure.Management.StorageSync.StorageSyncManagementClient/1.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 11 Sep 2018 17:56:10 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "x-ms-request-id": [ + "ac970645-60e7-47a5-b531-cfb2dafc2a70" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-deletes": [ + "14996" + ], + "x-ms-correlation-request-id": [ + "a042db54-91f5-46f2-b5ca-317f36aba6d0" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180911T175611Z:a042db54-91f5-46f2-b5ca-317f36aba6d0" + ], + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res2802/providers/Microsoft.StorageSync/storageSyncServices/sss-cepdelete5451?api-version=2018-04-02", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWQxNmY5YjMtYmJlMy00OGQ0LTkzMGEtMjdhNzRkY2EwMDNiL3Jlc291cmNlR3JvdXBzL3JlczI4MDIvcHJvdmlkZXJzL01pY3Jvc29mdC5TdG9yYWdlU3luYy9zdG9yYWdlU3luY1NlcnZpY2VzL3Nzcy1jZXBkZWxldGU1NDUxP2FwaS12ZXJzaW9uPTIwMTgtMDQtMDI=", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "2cea1e6e-e772-4c47-b862-e58638b4cb18" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26328.01", + "Microsoft.Azure.Management.StorageSync.StorageSyncManagementClient/1.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 11 Sep 2018 17:56:13 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "x-ms-request-id": [ + "4d595374-207d-4834-ae19-f8921f28b5b6" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-deletes": [ + "14995" + ], + "x-ms-correlation-request-id": [ + "9d70e2e5-ecd5-4b2b-8128-941646fcb639" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180911T175614Z:9d70e2e5-ecd5-4b2b-8128-941646fcb639" + ], + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourcegroups/res2802?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWQxNmY5YjMtYmJlMy00OGQ0LTkzMGEtMjdhNzRkY2EwMDNiL3Jlc291cmNlZ3JvdXBzL3JlczI4MDI/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "80c664f1-8752-4235-8db4-e1e06c019198" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26328.01", + "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 11 Sep 2018 17:56:14 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1SRVMyODAyLUVBU1RVUzIiLCJqb2JMb2NhdGlvbiI6ImVhc3R1czIifQ?api-version=2017-05-10" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-deletes": [ + "14994" + ], + "x-ms-request-id": [ + "b2e5887e-314b-4a66-af55-efb1f5085f61" + ], + "x-ms-correlation-request-id": [ + "b2e5887e-314b-4a66-af55-efb1f5085f61" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180911T175615Z:b2e5887e-314b-4a66-af55-efb1f5085f61" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1SRVMyODAyLUVBU1RVUzIiLCJqb2JMb2NhdGlvbiI6ImVhc3R1czIifQ?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWQxNmY5YjMtYmJlMy00OGQ0LTkzMGEtMjdhNzRkY2EwMDNiL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFTUlZNeU9EQXlMVVZCVTFSVlV6SWlMQ0pxYjJKTWIyTmhkR2x2YmlJNkltVmhjM1IxY3pJaWZRP2FwaS12ZXJzaW9uPTIwMTctMDUtMTA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26328.01", + "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 11 Sep 2018 17:56:30 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1SRVMyODAyLUVBU1RVUzIiLCJqb2JMb2NhdGlvbiI6ImVhc3R1czIifQ?api-version=2017-05-10" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11990" + ], + "x-ms-request-id": [ + "2f101e20-36ca-4c11-8c42-43121c379913" + ], + "x-ms-correlation-request-id": [ + "2f101e20-36ca-4c11-8c42-43121c379913" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180911T175630Z:2f101e20-36ca-4c11-8c42-43121c379913" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1SRVMyODAyLUVBU1RVUzIiLCJqb2JMb2NhdGlvbiI6ImVhc3R1czIifQ?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWQxNmY5YjMtYmJlMy00OGQ0LTkzMGEtMjdhNzRkY2EwMDNiL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFTUlZNeU9EQXlMVVZCVTFSVlV6SWlMQ0pxYjJKTWIyTmhkR2x2YmlJNkltVmhjM1IxY3pJaWZRP2FwaS12ZXJzaW9uPTIwMTctMDUtMTA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26328.01", + "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 11 Sep 2018 17:56:45 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1SRVMyODAyLUVBU1RVUzIiLCJqb2JMb2NhdGlvbiI6ImVhc3R1czIifQ?api-version=2017-05-10" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11989" + ], + "x-ms-request-id": [ + "4fff77fd-24e2-409d-9e44-addfa99cecc7" + ], + "x-ms-correlation-request-id": [ + "4fff77fd-24e2-409d-9e44-addfa99cecc7" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180911T175645Z:4fff77fd-24e2-409d-9e44-addfa99cecc7" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1SRVMyODAyLUVBU1RVUzIiLCJqb2JMb2NhdGlvbiI6ImVhc3R1czIifQ?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWQxNmY5YjMtYmJlMy00OGQ0LTkzMGEtMjdhNzRkY2EwMDNiL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFTUlZNeU9EQXlMVVZCVTFSVlV6SWlMQ0pxYjJKTWIyTmhkR2x2YmlJNkltVmhjM1IxY3pJaWZRP2FwaS12ZXJzaW9uPTIwMTctMDUtMTA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26328.01", + "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 11 Sep 2018 17:57:00 GMT" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11988" + ], + "x-ms-request-id": [ + "66f018ae-9e9a-42c4-a662-fa291d349480" + ], + "x-ms-correlation-request-id": [ + "66f018ae-9e9a-42c4-a662-fa291d349480" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180911T175700Z:66f018ae-9e9a-42c4-a662-fa291d349480" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1SRVMyODAyLUVBU1RVUzIiLCJqb2JMb2NhdGlvbiI6ImVhc3R1czIifQ?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWQxNmY5YjMtYmJlMy00OGQ0LTkzMGEtMjdhNzRkY2EwMDNiL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFTUlZNeU9EQXlMVVZCVTFSVlV6SWlMQ0pxYjJKTWIyTmhkR2x2YmlJNkltVmhjM1IxY3pJaWZRP2FwaS12ZXJzaW9uPTIwMTctMDUtMTA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26328.01", + "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 11 Sep 2018 17:57:00 GMT" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11987" + ], + "x-ms-request-id": [ + "25c8ddb5-548c-4243-a7d5-649fad37d74a" + ], + "x-ms-correlation-request-id": [ + "25c8ddb5-548c-4243-a7d5-649fad37d74a" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180911T175701Z:25c8ddb5-548c-4243-a7d5-649fad37d74a" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "", + "StatusCode": 200 + } + ], + "Names": { + "CreateResourceGroup": [ + "res2802" + ], + "CloudEndpointDeleteTest": [ + "sss-cepdelete5451", + "sg-cepdelete5921", + "cepdelete2669" + ] + }, + "Variables": { + "SubscriptionId": "1d16f9b3-bbe3-48d4-930a-27a74dca003b" + } +} \ No newline at end of file diff --git a/src/SDKs/StorageSync/StorageSync.Tests/SessionRecords/Microsoft.Azure.Management.StorageSync.Tests.CloudEndpointTests/CloudEndpointGetTest.json b/src/SDKs/StorageSync/StorageSync.Tests/SessionRecords/Microsoft.Azure.Management.StorageSync.Tests.CloudEndpointTests/CloudEndpointGetTest.json new file mode 100644 index 000000000000..8d0c135bd330 --- /dev/null +++ b/src/SDKs/StorageSync/StorageSync.Tests/SessionRecords/Microsoft.Azure.Management.StorageSync.Tests.CloudEndpointTests/CloudEndpointGetTest.json @@ -0,0 +1,1084 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourcegroups/res7088?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWQxNmY5YjMtYmJlMy00OGQ0LTkzMGEtMjdhNzRkY2EwMDNiL3Jlc291cmNlZ3JvdXBzL3JlczcwODg/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"location\": \"eastus2\"\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "03178b66-0d72-4dcf-8164-2cd24be6877d" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26328.01", + "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "29" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 11 Sep 2018 17:53:41 GMT" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1195" + ], + "x-ms-request-id": [ + "d1b5ee77-c069-4c60-85c1-2e0a9e7bdc5a" + ], + "x-ms-correlation-request-id": [ + "d1b5ee77-c069-4c60-85c1-2e0a9e7bdc5a" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180911T175342Z:d1b5ee77-c069-4c60-85c1-2e0a9e7bdc5a" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "168" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res7088\",\r\n \"name\": \"res7088\",\r\n \"location\": \"eastus2\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res7088/providers/Microsoft.StorageSync/storageSyncServices/sss-cepget3457?api-version=2018-04-02", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWQxNmY5YjMtYmJlMy00OGQ0LTkzMGEtMjdhNzRkY2EwMDNiL3Jlc291cmNlR3JvdXBzL3JlczcwODgvcHJvdmlkZXJzL01pY3Jvc29mdC5TdG9yYWdlU3luYy9zdG9yYWdlU3luY1NlcnZpY2VzL3Nzcy1jZXBnZXQzNDU3P2FwaS12ZXJzaW9uPTIwMTgtMDQtMDI=", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"location\": \"west europe\",\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n }\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "a7784bdb-282f-4ffd-b212-63684b6cfa25" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26328.01", + "Microsoft.Azure.Management.StorageSync.StorageSyncManagementClient/1.0.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "97" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 11 Sep 2018 17:53:44 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "x-ms-request-id": [ + "e3fc40d6-72cf-4279-87e9-07b910e3410a" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1194" + ], + "x-ms-correlation-request-id": [ + "b96af65d-5ebf-46de-8a44-0b823500a65d" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180911T175345Z:b96af65d-5ebf-46de-8a44-0b823500a65d" + ], + "Content-Length": [ + "401" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"properties\": {\r\n \"storageSyncServiceStatus\": null,\r\n \"storageSyncServiceUid\": \"00000000-0000-0000-0000-000000000000\"\r\n },\r\n \"location\": \"west europe\",\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n },\r\n \"id\": \"/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res7088/providers/microsoft.storagesync/storageSyncServices/sss-cepget3457\",\r\n \"name\": \"sss-cepget3457\",\r\n \"type\": \"microsoft.storagesync/storageSyncServices\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res7088/providers/Microsoft.StorageSync/storageSyncServices/sss-cepget3457/syncGroups/sg-cepget8845?api-version=2018-04-02", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWQxNmY5YjMtYmJlMy00OGQ0LTkzMGEtMjdhNzRkY2EwMDNiL3Jlc291cmNlR3JvdXBzL3JlczcwODgvcHJvdmlkZXJzL01pY3Jvc29mdC5TdG9yYWdlU3luYy9zdG9yYWdlU3luY1NlcnZpY2VzL3Nzcy1jZXBnZXQzNDU3L3N5bmNHcm91cHMvc2ctY2VwZ2V0ODg0NT9hcGktdmVyc2lvbj0yMDE4LTA0LTAy", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"location\": \"west europe\",\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n }\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "98ff20d5-b9e9-4435-8c0f-98abff08d562" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26328.01", + "Microsoft.Azure.Management.StorageSync.StorageSyncManagementClient/1.0.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "97" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 11 Sep 2018 17:53:45 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "x-ms-request-id": [ + "96f7af22-cbec-4a50-bdce-b57ff80aed71" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1193" + ], + "x-ms-correlation-request-id": [ + "d31f2a41-21b1-40f2-a2df-a2666d88c795" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180911T175346Z:d31f2a41-21b1-40f2-a2df-a2666d88c795" + ], + "Content-Length": [ + "414" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"properties\": {\r\n \"syncGroupStatus\": null,\r\n \"uniqueId\": \"078b9596-3a49-401a-a7ca-a5d273ef3359\"\r\n },\r\n \"location\": \"west europe\",\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n },\r\n \"id\": \"/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res7088/providers/microsoft.storagesync/storageSyncServices/sss-cepget3457/syncGroups/sg-cepget8845\",\r\n \"name\": \"sg-cepget8845\",\r\n \"type\": \"microsoft.storagesync/storageSyncServices/syncGroups\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res7088/providers/Microsoft.StorageSync/storageSyncServices/sss-cepget3457/syncGroups/sg-cepget8845/cloudEndpoints/cepget41?api-version=2018-04-02", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWQxNmY5YjMtYmJlMy00OGQ0LTkzMGEtMjdhNzRkY2EwMDNiL3Jlc291cmNlR3JvdXBzL3JlczcwODgvcHJvdmlkZXJzL01pY3Jvc29mdC5TdG9yYWdlU3luYy9zdG9yYWdlU3luY1NlcnZpY2VzL3Nzcy1jZXBnZXQzNDU3L3N5bmNHcm91cHMvc2ctY2VwZ2V0ODg0NS9jbG91ZEVuZHBvaW50cy9jZXBnZXQ0MT9hcGktdmVyc2lvbj0yMDE4LTA0LTAy", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"location\": \"west europe\",\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n },\r\n \"properties\": {\r\n \"storageAccountResourceId\": \"/subscriptions/8aba3d53-2c5e-4479-bb0d-5a7bed16360e/resourcegroups/storagesyncsdkwesteurope/providers/Microsoft.Storage/storageAccounts/storagesyncsdkwesteurope\",\r\n \"storageAccountShareName\": \"tempsdkfileshare5\",\r\n \"storageAccountTenantId\": \"\\\"72f988bf-86f1-41af-91ab-2d7cd011db47\\\"\"\r\n }\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "d6c0fc02-49a2-4204-aa1b-6fdfd1900a14" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26328.01", + "Microsoft.Azure.Management.StorageSync.StorageSyncManagementClient/1.0.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "446" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 11 Sep 2018 17:53:45 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res7088/providers/microsoft.storagesync/storageSyncServices/sss-cepget3457/workflows/b89d4aae-c404-47ad-b75a-a8c595f2ef8c/operationresults/4a7c5ebe-37cf-4986-b537-162f64c33524?api-version=2018-04-02" + ], + "Retry-After": [ + "10" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res7088/providers/microsoft.storagesync/storageSyncServices/sss-cepget3457/workflows/b89d4aae-c404-47ad-b75a-a8c595f2ef8c/operations/4a7c5ebe-37cf-4986-b537-162f64c33524?api-version=2018-04-02" + ], + "x-ms-request-id": [ + "f7389b96-a854-4ef4-be3b-0978cc3061e3" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1192" + ], + "x-ms-correlation-request-id": [ + "41906195-b1fd-4ad1-8235-8e19fe6c21f5" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180911T175346Z:41906195-b1fd-4ad1-8235-8e19fe6c21f5" + ], + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res7088/providers/microsoft.storagesync/storageSyncServices/sss-cepget3457/workflows/b89d4aae-c404-47ad-b75a-a8c595f2ef8c/operations/4a7c5ebe-37cf-4986-b537-162f64c33524?api-version=2018-04-02", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWQxNmY5YjMtYmJlMy00OGQ0LTkzMGEtMjdhNzRkY2EwMDNiL3Jlc291cmNlR3JvdXBzL3JlczcwODgvcHJvdmlkZXJzL21pY3Jvc29mdC5zdG9yYWdlc3luYy9zdG9yYWdlU3luY1NlcnZpY2VzL3Nzcy1jZXBnZXQzNDU3L3dvcmtmbG93cy9iODlkNGFhZS1jNDA0LTQ3YWQtYjc1YS1hOGM1OTVmMmVmOGMvb3BlcmF0aW9ucy80YTdjNWViZS0zN2NmLTQ5ODYtYjUzNy0xNjJmNjRjMzM1MjQ/YXBpLXZlcnNpb249MjAxOC0wNC0wMg==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26328.01", + "Microsoft.Azure.Management.StorageSync.StorageSyncManagementClient/1.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 11 Sep 2018 17:53:56 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "x-ms-request-id": [ + "e7f3b69a-3576-41fd-b1d8-e9157a648857" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11991" + ], + "x-ms-correlation-request-id": [ + "9c37d518-6e8b-4a8e-b756-d758345b974d" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180911T175357Z:9c37d518-6e8b-4a8e-b756-d758345b974d" + ], + "Content-Length": [ + "453" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res7088/providers/microsoft.storagesync/storageSyncServices/sss-cepget3457/workflow/b89d4aae-c404-47ad-b75a-a8c595f2ef8c/operationresults/4a7c5ebe-37cf-4986-b537-162f64c33524\",\r\n \"name\": \"4a7c5ebe-37cf-4986-b537-162f64c33524\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-09-11T17:53:47.0498327Z\",\r\n \"endTime\": \"2018-09-11T17:53:54.8610685Z\",\r\n \"percentComplete\": null,\r\n \"error\": null,\r\n \"properties\": {}\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res7088/providers/Microsoft.StorageSync/storageSyncServices/sss-cepget3457/syncGroups/sg-cepget8845/cloudEndpoints/cepget41?api-version=2018-04-02", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWQxNmY5YjMtYmJlMy00OGQ0LTkzMGEtMjdhNzRkY2EwMDNiL3Jlc291cmNlR3JvdXBzL3JlczcwODgvcHJvdmlkZXJzL01pY3Jvc29mdC5TdG9yYWdlU3luYy9zdG9yYWdlU3luY1NlcnZpY2VzL3Nzcy1jZXBnZXQzNDU3L3N5bmNHcm91cHMvc2ctY2VwZ2V0ODg0NS9jbG91ZEVuZHBvaW50cy9jZXBnZXQ0MT9hcGktdmVyc2lvbj0yMDE4LTA0LTAy", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26328.01", + "Microsoft.Azure.Management.StorageSync.StorageSyncManagementClient/1.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 11 Sep 2018 17:53:57 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "x-ms-request-id": [ + "51da8f43-ad33-464e-bd4d-bbdd0518b0ff" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11990" + ], + "x-ms-correlation-request-id": [ + "09075e2a-b832-4451-917c-ebe11151b4e5" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180911T175357Z:09075e2a-b832-4451-917c-ebe11151b4e5" + ], + "Content-Length": [ + "1129" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"properties\": {\r\n \"storageAccountKey\": null,\r\n \"storageAccount\": null,\r\n \"storageAccountResourceId\": \"/subscriptions/8aba3d53-2c5e-4479-bb0d-5a7bed16360e/resourcegroups/storagesyncsdkwesteurope/providers/Microsoft.Storage/storageAccounts/storagesyncsdkwesteurope\",\r\n \"storageAccountShareName\": \"tempsdkfileshare5\",\r\n \"storageAccountTenantId\": \"\\\"72f988bf-86f1-41af-91ab-2d7cd011db47\\\"\",\r\n \"partnershipId\": \"1|U0VSVkVSQVNTWU5DQ0xJRU5USEZTVjJ8MDc4Qjk1OTYtM0E0OS00MDFBLUE3Q0EtQTVEMjczRUYzMzU5fEdFTkVSSUN8NjMzRjQ1REMtOTRCQy00RDgxLThCMzItQzUxOEYxNjMwRUM3\",\r\n \"friendlyName\": \"tempsdkfileshare5\",\r\n \"backupEnabled\": \"false\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"lastWorkflowId\": \"storageSyncServices/sss-cepget3457/workflows/b89d4aae-c404-47ad-b75a-a8c595f2ef8c\",\r\n \"lastOperationName\": \"ICreateCloudEndpointWorkflow\"\r\n },\r\n \"location\": \"westeurope\",\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n },\r\n \"id\": \"/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res7088/providers/microsoft.storagesync/storageSyncServices/sss-cepget3457/syncGroups/sg-cepget8845/cloudEndpoints/cepget41\",\r\n \"name\": \"cepget41\",\r\n \"type\": \"microsoft.storagesync/storageSyncServices/syncGroups/cloudEndpoints\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res7088/providers/Microsoft.StorageSync/storageSyncServices/sss-cepget3457/syncGroups/sg-cepget8845/cloudEndpoints/cepget41?api-version=2018-04-02", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWQxNmY5YjMtYmJlMy00OGQ0LTkzMGEtMjdhNzRkY2EwMDNiL3Jlc291cmNlR3JvdXBzL3JlczcwODgvcHJvdmlkZXJzL01pY3Jvc29mdC5TdG9yYWdlU3luYy9zdG9yYWdlU3luY1NlcnZpY2VzL3Nzcy1jZXBnZXQzNDU3L3N5bmNHcm91cHMvc2ctY2VwZ2V0ODg0NS9jbG91ZEVuZHBvaW50cy9jZXBnZXQ0MT9hcGktdmVyc2lvbj0yMDE4LTA0LTAy", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "46a862d0-8d97-441f-9988-34c9191f2e3c" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26328.01", + "Microsoft.Azure.Management.StorageSync.StorageSyncManagementClient/1.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 11 Sep 2018 17:53:58 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "x-ms-request-id": [ + "2565750b-da4f-4e76-82bf-ff358fb1431f" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11989" + ], + "x-ms-correlation-request-id": [ + "1494556f-6d04-487f-bd3c-df18a1f1ddda" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180911T175358Z:1494556f-6d04-487f-bd3c-df18a1f1ddda" + ], + "Content-Length": [ + "1129" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"properties\": {\r\n \"storageAccountKey\": null,\r\n \"storageAccount\": null,\r\n \"storageAccountResourceId\": \"/subscriptions/8aba3d53-2c5e-4479-bb0d-5a7bed16360e/resourcegroups/storagesyncsdkwesteurope/providers/Microsoft.Storage/storageAccounts/storagesyncsdkwesteurope\",\r\n \"storageAccountShareName\": \"tempsdkfileshare5\",\r\n \"storageAccountTenantId\": \"\\\"72f988bf-86f1-41af-91ab-2d7cd011db47\\\"\",\r\n \"partnershipId\": \"1|U0VSVkVSQVNTWU5DQ0xJRU5USEZTVjJ8MDc4Qjk1OTYtM0E0OS00MDFBLUE3Q0EtQTVEMjczRUYzMzU5fEdFTkVSSUN8NjMzRjQ1REMtOTRCQy00RDgxLThCMzItQzUxOEYxNjMwRUM3\",\r\n \"friendlyName\": \"tempsdkfileshare5\",\r\n \"backupEnabled\": \"false\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"lastWorkflowId\": \"storageSyncServices/sss-cepget3457/workflows/b89d4aae-c404-47ad-b75a-a8c595f2ef8c\",\r\n \"lastOperationName\": \"ICreateCloudEndpointWorkflow\"\r\n },\r\n \"location\": \"westeurope\",\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n },\r\n \"id\": \"/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res7088/providers/microsoft.storagesync/storageSyncServices/sss-cepget3457/syncGroups/sg-cepget8845/cloudEndpoints/cepget41\",\r\n \"name\": \"cepget41\",\r\n \"type\": \"microsoft.storagesync/storageSyncServices/syncGroups/cloudEndpoints\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res7088/providers/Microsoft.StorageSync/storageSyncServices/sss-cepget3457/syncGroups/sg-cepget8845/cloudEndpoints/cepget41?api-version=2018-04-02", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWQxNmY5YjMtYmJlMy00OGQ0LTkzMGEtMjdhNzRkY2EwMDNiL3Jlc291cmNlR3JvdXBzL3JlczcwODgvcHJvdmlkZXJzL01pY3Jvc29mdC5TdG9yYWdlU3luYy9zdG9yYWdlU3luY1NlcnZpY2VzL3Nzcy1jZXBnZXQzNDU3L3N5bmNHcm91cHMvc2ctY2VwZ2V0ODg0NS9jbG91ZEVuZHBvaW50cy9jZXBnZXQ0MT9hcGktdmVyc2lvbj0yMDE4LTA0LTAy", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "3b695a6b-8c12-4b82-b9ba-28ab057e2a62" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26328.01", + "Microsoft.Azure.Management.StorageSync.StorageSyncManagementClient/1.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 11 Sep 2018 17:53:58 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res7088/providers/microsoft.storagesync/storageSyncServices/sss-cepget3457/workflows/3e619d8b-a13a-4d97-b906-40894bd32eac/operationresults/40dbec41-d866-4b8d-b5a1-e2cd39e7091b?api-version=2018-04-02" + ], + "Retry-After": [ + "10" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res7088/providers/microsoft.storagesync/storageSyncServices/sss-cepget3457/workflows/3e619d8b-a13a-4d97-b906-40894bd32eac/operations/40dbec41-d866-4b8d-b5a1-e2cd39e7091b?api-version=2018-04-02" + ], + "x-ms-request-id": [ + "f2c7504f-8711-4f5e-90c8-2a1d8753db5a" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-deletes": [ + "14995" + ], + "x-ms-correlation-request-id": [ + "c4bfa924-89da-41a4-8c15-7fce7fa7de0c" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180911T175359Z:c4bfa924-89da-41a4-8c15-7fce7fa7de0c" + ], + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res7088/providers/microsoft.storagesync/storageSyncServices/sss-cepget3457/workflows/3e619d8b-a13a-4d97-b906-40894bd32eac/operations/40dbec41-d866-4b8d-b5a1-e2cd39e7091b?api-version=2018-04-02", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWQxNmY5YjMtYmJlMy00OGQ0LTkzMGEtMjdhNzRkY2EwMDNiL3Jlc291cmNlR3JvdXBzL3JlczcwODgvcHJvdmlkZXJzL21pY3Jvc29mdC5zdG9yYWdlc3luYy9zdG9yYWdlU3luY1NlcnZpY2VzL3Nzcy1jZXBnZXQzNDU3L3dvcmtmbG93cy8zZTYxOWQ4Yi1hMTNhLTRkOTctYjkwNi00MDg5NGJkMzJlYWMvb3BlcmF0aW9ucy80MGRiZWM0MS1kODY2LTRiOGQtYjVhMS1lMmNkMzllNzA5MWI/YXBpLXZlcnNpb249MjAxOC0wNC0wMg==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26328.01", + "Microsoft.Azure.Management.StorageSync.StorageSyncManagementClient/1.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 11 Sep 2018 17:54:09 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "x-ms-request-id": [ + "f2a65f6c-ff3c-4ad5-bac9-8694e0ef4f82" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11988" + ], + "x-ms-correlation-request-id": [ + "4fd4e90e-7494-40fb-b275-6a88586980da" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180911T175409Z:4fd4e90e-7494-40fb-b275-6a88586980da" + ], + "Content-Length": [ + "453" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res7088/providers/microsoft.storagesync/storageSyncServices/sss-cepget3457/workflow/3e619d8b-a13a-4d97-b906-40894bd32eac/operationresults/40dbec41-d866-4b8d-b5a1-e2cd39e7091b\",\r\n \"name\": \"40dbec41-d866-4b8d-b5a1-e2cd39e7091b\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-09-11T17:53:59.4744567Z\",\r\n \"endTime\": \"2018-09-11T17:54:01.7823032Z\",\r\n \"percentComplete\": null,\r\n \"error\": null,\r\n \"properties\": {}\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res7088/providers/microsoft.storagesync/storageSyncServices/sss-cepget3457/workflows/3e619d8b-a13a-4d97-b906-40894bd32eac/operationresults/40dbec41-d866-4b8d-b5a1-e2cd39e7091b?api-version=2018-04-02", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWQxNmY5YjMtYmJlMy00OGQ0LTkzMGEtMjdhNzRkY2EwMDNiL3Jlc291cmNlR3JvdXBzL3JlczcwODgvcHJvdmlkZXJzL21pY3Jvc29mdC5zdG9yYWdlc3luYy9zdG9yYWdlU3luY1NlcnZpY2VzL3Nzcy1jZXBnZXQzNDU3L3dvcmtmbG93cy8zZTYxOWQ4Yi1hMTNhLTRkOTctYjkwNi00MDg5NGJkMzJlYWMvb3BlcmF0aW9ucmVzdWx0cy80MGRiZWM0MS1kODY2LTRiOGQtYjVhMS1lMmNkMzllNzA5MWI/YXBpLXZlcnNpb249MjAxOC0wNC0wMg==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26328.01", + "Microsoft.Azure.Management.StorageSync.StorageSyncManagementClient/1.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 11 Sep 2018 17:54:10 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "x-ms-request-id": [ + "bb3b8c48-d09f-46e1-813c-96f94fde4354" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11987" + ], + "x-ms-correlation-request-id": [ + "1e8db544-ca22-4064-a004-ccdc187aa718" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180911T175410Z:1e8db544-ca22-4064-a004-ccdc187aa718" + ], + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res7088/providers/Microsoft.StorageSync/storageSyncServices/sss-cepget3457/syncGroups/sg-cepget8845?api-version=2018-04-02", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWQxNmY5YjMtYmJlMy00OGQ0LTkzMGEtMjdhNzRkY2EwMDNiL3Jlc291cmNlR3JvdXBzL3JlczcwODgvcHJvdmlkZXJzL01pY3Jvc29mdC5TdG9yYWdlU3luYy9zdG9yYWdlU3luY1NlcnZpY2VzL3Nzcy1jZXBnZXQzNDU3L3N5bmNHcm91cHMvc2ctY2VwZ2V0ODg0NT9hcGktdmVyc2lvbj0yMDE4LTA0LTAy", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "ce3e4079-7705-41a1-8121-16cd34b185d4" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26328.01", + "Microsoft.Azure.Management.StorageSync.StorageSyncManagementClient/1.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 11 Sep 2018 17:54:10 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "x-ms-request-id": [ + "e41c9d0b-1047-4e88-9e1a-5a1d4d9283cf" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-deletes": [ + "14994" + ], + "x-ms-correlation-request-id": [ + "0894b314-3cae-48f2-8906-d3c201e83743" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180911T175411Z:0894b314-3cae-48f2-8906-d3c201e83743" + ], + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res7088/providers/Microsoft.StorageSync/storageSyncServices/sss-cepget3457?api-version=2018-04-02", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWQxNmY5YjMtYmJlMy00OGQ0LTkzMGEtMjdhNzRkY2EwMDNiL3Jlc291cmNlR3JvdXBzL3JlczcwODgvcHJvdmlkZXJzL01pY3Jvc29mdC5TdG9yYWdlU3luYy9zdG9yYWdlU3luY1NlcnZpY2VzL3Nzcy1jZXBnZXQzNDU3P2FwaS12ZXJzaW9uPTIwMTgtMDQtMDI=", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "e7a0db34-3ee4-4793-8b50-fe10d08971e2" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26328.01", + "Microsoft.Azure.Management.StorageSync.StorageSyncManagementClient/1.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 11 Sep 2018 17:54:12 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "x-ms-request-id": [ + "e39ff738-bc2b-4b60-8427-886eb3efa567" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-deletes": [ + "14993" + ], + "x-ms-correlation-request-id": [ + "e5357af7-3fd3-43b1-a57a-88f726d6c232" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180911T175413Z:e5357af7-3fd3-43b1-a57a-88f726d6c232" + ], + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourcegroups/res7088?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWQxNmY5YjMtYmJlMy00OGQ0LTkzMGEtMjdhNzRkY2EwMDNiL3Jlc291cmNlZ3JvdXBzL3JlczcwODg/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "412bf66c-11ab-496e-a3d2-02c619415140" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26328.01", + "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 11 Sep 2018 17:54:13 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1SRVM3MDg4LUVBU1RVUzIiLCJqb2JMb2NhdGlvbiI6ImVhc3R1czIifQ?api-version=2017-05-10" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-deletes": [ + "14992" + ], + "x-ms-request-id": [ + "d1deffb2-70ec-49e7-b806-d894b0a0dead" + ], + "x-ms-correlation-request-id": [ + "d1deffb2-70ec-49e7-b806-d894b0a0dead" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180911T175414Z:d1deffb2-70ec-49e7-b806-d894b0a0dead" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1SRVM3MDg4LUVBU1RVUzIiLCJqb2JMb2NhdGlvbiI6ImVhc3R1czIifQ?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWQxNmY5YjMtYmJlMy00OGQ0LTkzMGEtMjdhNzRkY2EwMDNiL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFTUlZNM01EZzRMVVZCVTFSVlV6SWlMQ0pxYjJKTWIyTmhkR2x2YmlJNkltVmhjM1IxY3pJaWZRP2FwaS12ZXJzaW9uPTIwMTctMDUtMTA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26328.01", + "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 11 Sep 2018 17:54:28 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1SRVM3MDg4LUVBU1RVUzIiLCJqb2JMb2NhdGlvbiI6ImVhc3R1czIifQ?api-version=2017-05-10" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11986" + ], + "x-ms-request-id": [ + "5b1d5069-0daa-41cf-9474-26b8c30ee167" + ], + "x-ms-correlation-request-id": [ + "5b1d5069-0daa-41cf-9474-26b8c30ee167" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180911T175429Z:5b1d5069-0daa-41cf-9474-26b8c30ee167" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1SRVM3MDg4LUVBU1RVUzIiLCJqb2JMb2NhdGlvbiI6ImVhc3R1czIifQ?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWQxNmY5YjMtYmJlMy00OGQ0LTkzMGEtMjdhNzRkY2EwMDNiL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFTUlZNM01EZzRMVVZCVTFSVlV6SWlMQ0pxYjJKTWIyTmhkR2x2YmlJNkltVmhjM1IxY3pJaWZRP2FwaS12ZXJzaW9uPTIwMTctMDUtMTA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26328.01", + "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 11 Sep 2018 17:54:44 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1SRVM3MDg4LUVBU1RVUzIiLCJqb2JMb2NhdGlvbiI6ImVhc3R1czIifQ?api-version=2017-05-10" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11985" + ], + "x-ms-request-id": [ + "1afa7b24-14b2-41f1-a143-a87922e4131a" + ], + "x-ms-correlation-request-id": [ + "1afa7b24-14b2-41f1-a143-a87922e4131a" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180911T175444Z:1afa7b24-14b2-41f1-a143-a87922e4131a" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1SRVM3MDg4LUVBU1RVUzIiLCJqb2JMb2NhdGlvbiI6ImVhc3R1czIifQ?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWQxNmY5YjMtYmJlMy00OGQ0LTkzMGEtMjdhNzRkY2EwMDNiL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFTUlZNM01EZzRMVVZCVTFSVlV6SWlMQ0pxYjJKTWIyTmhkR2x2YmlJNkltVmhjM1IxY3pJaWZRP2FwaS12ZXJzaW9uPTIwMTctMDUtMTA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26328.01", + "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 11 Sep 2018 17:54:58 GMT" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11984" + ], + "x-ms-request-id": [ + "8eb93d1f-8e1b-4a7c-b8b0-104c46d472c4" + ], + "x-ms-correlation-request-id": [ + "8eb93d1f-8e1b-4a7c-b8b0-104c46d472c4" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180911T175459Z:8eb93d1f-8e1b-4a7c-b8b0-104c46d472c4" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1SRVM3MDg4LUVBU1RVUzIiLCJqb2JMb2NhdGlvbiI6ImVhc3R1czIifQ?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWQxNmY5YjMtYmJlMy00OGQ0LTkzMGEtMjdhNzRkY2EwMDNiL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFTUlZNM01EZzRMVVZCVTFSVlV6SWlMQ0pxYjJKTWIyTmhkR2x2YmlJNkltVmhjM1IxY3pJaWZRP2FwaS12ZXJzaW9uPTIwMTctMDUtMTA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26328.01", + "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 11 Sep 2018 17:54:59 GMT" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11983" + ], + "x-ms-request-id": [ + "0149ff1d-879c-481c-be2c-b5f268a19d4d" + ], + "x-ms-correlation-request-id": [ + "0149ff1d-879c-481c-be2c-b5f268a19d4d" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180911T175459Z:0149ff1d-879c-481c-be2c-b5f268a19d4d" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "", + "StatusCode": 200 + } + ], + "Names": { + "CreateResourceGroup": [ + "res7088" + ], + "CloudEndpointGetTest": [ + "sss-cepget3457", + "sg-cepget8845", + "cepget41" + ] + }, + "Variables": { + "SubscriptionId": "1d16f9b3-bbe3-48d4-930a-27a74dca003b" + } +} \ No newline at end of file diff --git a/src/SDKs/StorageSync/StorageSync.Tests/SessionRecords/Microsoft.Azure.Management.StorageSync.Tests.CloudEndpointTests/CloudEndpointListTest.json b/src/SDKs/StorageSync/StorageSync.Tests/SessionRecords/Microsoft.Azure.Management.StorageSync.Tests.CloudEndpointTests/CloudEndpointListTest.json new file mode 100644 index 000000000000..a2c8d1511ca9 --- /dev/null +++ b/src/SDKs/StorageSync/StorageSync.Tests/SessionRecords/Microsoft.Azure.Management.StorageSync.Tests.CloudEndpointTests/CloudEndpointListTest.json @@ -0,0 +1,1084 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourcegroups/res6413?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWQxNmY5YjMtYmJlMy00OGQ0LTkzMGEtMjdhNzRkY2EwMDNiL3Jlc291cmNlZ3JvdXBzL3JlczY0MTM/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"location\": \"eastus2\"\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "15019f68-deda-407b-97e5-7f987c772fa0" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26328.01", + "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "29" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 11 Sep 2018 17:57:04 GMT" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1199" + ], + "x-ms-request-id": [ + "ffd1e176-ea6f-4ecd-9779-3a02b2f8810c" + ], + "x-ms-correlation-request-id": [ + "ffd1e176-ea6f-4ecd-9779-3a02b2f8810c" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180911T175704Z:ffd1e176-ea6f-4ecd-9779-3a02b2f8810c" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "168" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res6413\",\r\n \"name\": \"res6413\",\r\n \"location\": \"eastus2\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res6413/providers/Microsoft.StorageSync/storageSyncServices/sss-ceplist1873?api-version=2018-04-02", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWQxNmY5YjMtYmJlMy00OGQ0LTkzMGEtMjdhNzRkY2EwMDNiL3Jlc291cmNlR3JvdXBzL3JlczY0MTMvcHJvdmlkZXJzL01pY3Jvc29mdC5TdG9yYWdlU3luYy9zdG9yYWdlU3luY1NlcnZpY2VzL3Nzcy1jZXBsaXN0MTg3Mz9hcGktdmVyc2lvbj0yMDE4LTA0LTAy", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"location\": \"west europe\",\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n }\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "19dadf31-ce1f-4969-9550-32c82898a1ac" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26328.01", + "Microsoft.Azure.Management.StorageSync.StorageSyncManagementClient/1.0.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "97" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 11 Sep 2018 17:57:07 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "x-ms-request-id": [ + "33309f91-3728-4563-8e52-766d00ddf5b1" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1198" + ], + "x-ms-correlation-request-id": [ + "5fc8ed25-9b01-4e94-8e55-1adbc861aa69" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180911T175707Z:5fc8ed25-9b01-4e94-8e55-1adbc861aa69" + ], + "Content-Length": [ + "403" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"properties\": {\r\n \"storageSyncServiceStatus\": null,\r\n \"storageSyncServiceUid\": \"00000000-0000-0000-0000-000000000000\"\r\n },\r\n \"location\": \"west europe\",\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n },\r\n \"id\": \"/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res6413/providers/microsoft.storagesync/storageSyncServices/sss-ceplist1873\",\r\n \"name\": \"sss-ceplist1873\",\r\n \"type\": \"microsoft.storagesync/storageSyncServices\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res6413/providers/Microsoft.StorageSync/storageSyncServices/sss-ceplist1873/syncGroups/sg-ceplist2633?api-version=2018-04-02", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWQxNmY5YjMtYmJlMy00OGQ0LTkzMGEtMjdhNzRkY2EwMDNiL3Jlc291cmNlR3JvdXBzL3JlczY0MTMvcHJvdmlkZXJzL01pY3Jvc29mdC5TdG9yYWdlU3luYy9zdG9yYWdlU3luY1NlcnZpY2VzL3Nzcy1jZXBsaXN0MTg3My9zeW5jR3JvdXBzL3NnLWNlcGxpc3QyNjMzP2FwaS12ZXJzaW9uPTIwMTgtMDQtMDI=", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"location\": \"west europe\",\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n }\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "f1ddf826-6c67-4073-8950-add23b48fc25" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26328.01", + "Microsoft.Azure.Management.StorageSync.StorageSyncManagementClient/1.0.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "97" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 11 Sep 2018 17:57:08 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "x-ms-request-id": [ + "4e605fc1-5f91-470c-bafc-b106786705a5" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1197" + ], + "x-ms-correlation-request-id": [ + "da46d10e-d520-4526-b242-a25b20259537" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180911T175708Z:da46d10e-d520-4526-b242-a25b20259537" + ], + "Content-Length": [ + "417" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"properties\": {\r\n \"syncGroupStatus\": null,\r\n \"uniqueId\": \"a0302f5a-064e-4889-ba81-883f9c2ed009\"\r\n },\r\n \"location\": \"west europe\",\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n },\r\n \"id\": \"/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res6413/providers/microsoft.storagesync/storageSyncServices/sss-ceplist1873/syncGroups/sg-ceplist2633\",\r\n \"name\": \"sg-ceplist2633\",\r\n \"type\": \"microsoft.storagesync/storageSyncServices/syncGroups\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res6413/providers/Microsoft.StorageSync/storageSyncServices/sss-ceplist1873/syncGroups/sg-ceplist2633/cloudEndpoints/ceplist5998?api-version=2018-04-02", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWQxNmY5YjMtYmJlMy00OGQ0LTkzMGEtMjdhNzRkY2EwMDNiL3Jlc291cmNlR3JvdXBzL3JlczY0MTMvcHJvdmlkZXJzL01pY3Jvc29mdC5TdG9yYWdlU3luYy9zdG9yYWdlU3luY1NlcnZpY2VzL3Nzcy1jZXBsaXN0MTg3My9zeW5jR3JvdXBzL3NnLWNlcGxpc3QyNjMzL2Nsb3VkRW5kcG9pbnRzL2NlcGxpc3Q1OTk4P2FwaS12ZXJzaW9uPTIwMTgtMDQtMDI=", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"location\": \"west europe\",\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n },\r\n \"properties\": {\r\n \"storageAccountResourceId\": \"/subscriptions/8aba3d53-2c5e-4479-bb0d-5a7bed16360e/resourcegroups/storagesyncsdkwesteurope/providers/Microsoft.Storage/storageAccounts/storagesyncsdkwesteurope\",\r\n \"storageAccountShareName\": \"tempsdkfileshare5\",\r\n \"storageAccountTenantId\": \"\\\"72f988bf-86f1-41af-91ab-2d7cd011db47\\\"\"\r\n }\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "38ef0e01-9066-471b-8ad8-6fecb4f07587" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26328.01", + "Microsoft.Azure.Management.StorageSync.StorageSyncManagementClient/1.0.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "446" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 11 Sep 2018 17:57:08 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res6413/providers/microsoft.storagesync/storageSyncServices/sss-ceplist1873/workflows/5d5c439c-b2de-4e11-82a0-93e26f959afd/operationresults/6785b629-8b44-4ba6-b3a5-0737a18e4235?api-version=2018-04-02" + ], + "Retry-After": [ + "10" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res6413/providers/microsoft.storagesync/storageSyncServices/sss-ceplist1873/workflows/5d5c439c-b2de-4e11-82a0-93e26f959afd/operations/6785b629-8b44-4ba6-b3a5-0737a18e4235?api-version=2018-04-02" + ], + "x-ms-request-id": [ + "d5371c33-2cbf-4a75-bd6c-91715b79b084" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1196" + ], + "x-ms-correlation-request-id": [ + "503bfaca-cdc4-44ce-ada0-de1e974cd838" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180911T175709Z:503bfaca-cdc4-44ce-ada0-de1e974cd838" + ], + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res6413/providers/microsoft.storagesync/storageSyncServices/sss-ceplist1873/workflows/5d5c439c-b2de-4e11-82a0-93e26f959afd/operations/6785b629-8b44-4ba6-b3a5-0737a18e4235?api-version=2018-04-02", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWQxNmY5YjMtYmJlMy00OGQ0LTkzMGEtMjdhNzRkY2EwMDNiL3Jlc291cmNlR3JvdXBzL3JlczY0MTMvcHJvdmlkZXJzL21pY3Jvc29mdC5zdG9yYWdlc3luYy9zdG9yYWdlU3luY1NlcnZpY2VzL3Nzcy1jZXBsaXN0MTg3My93b3JrZmxvd3MvNWQ1YzQzOWMtYjJkZS00ZTExLTgyYTAtOTNlMjZmOTU5YWZkL29wZXJhdGlvbnMvNjc4NWI2MjktOGI0NC00YmE2LWIzYTUtMDczN2ExOGU0MjM1P2FwaS12ZXJzaW9uPTIwMTgtMDQtMDI=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26328.01", + "Microsoft.Azure.Management.StorageSync.StorageSyncManagementClient/1.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 11 Sep 2018 17:57:19 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "x-ms-request-id": [ + "0e8c9fac-5d4f-4c48-bd40-cdd68abf482c" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11999" + ], + "x-ms-correlation-request-id": [ + "9cccb0bf-f742-44b6-8cde-9b3a89e7e631" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180911T175719Z:9cccb0bf-f742-44b6-8cde-9b3a89e7e631" + ], + "Content-Length": [ + "454" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res6413/providers/microsoft.storagesync/storageSyncServices/sss-ceplist1873/workflow/5d5c439c-b2de-4e11-82a0-93e26f959afd/operationresults/6785b629-8b44-4ba6-b3a5-0737a18e4235\",\r\n \"name\": \"6785b629-8b44-4ba6-b3a5-0737a18e4235\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-09-11T17:57:09.5396123Z\",\r\n \"endTime\": \"2018-09-11T17:57:18.1811431Z\",\r\n \"percentComplete\": null,\r\n \"error\": null,\r\n \"properties\": {}\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res6413/providers/Microsoft.StorageSync/storageSyncServices/sss-ceplist1873/syncGroups/sg-ceplist2633/cloudEndpoints/ceplist5998?api-version=2018-04-02", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWQxNmY5YjMtYmJlMy00OGQ0LTkzMGEtMjdhNzRkY2EwMDNiL3Jlc291cmNlR3JvdXBzL3JlczY0MTMvcHJvdmlkZXJzL01pY3Jvc29mdC5TdG9yYWdlU3luYy9zdG9yYWdlU3luY1NlcnZpY2VzL3Nzcy1jZXBsaXN0MTg3My9zeW5jR3JvdXBzL3NnLWNlcGxpc3QyNjMzL2Nsb3VkRW5kcG9pbnRzL2NlcGxpc3Q1OTk4P2FwaS12ZXJzaW9uPTIwMTgtMDQtMDI=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26328.01", + "Microsoft.Azure.Management.StorageSync.StorageSyncManagementClient/1.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 11 Sep 2018 17:57:20 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "x-ms-request-id": [ + "6a1ae611-2b70-4bcc-a9c3-f16b7e940118" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11998" + ], + "x-ms-correlation-request-id": [ + "b1cb7602-1cc3-4ef8-9214-6d85087e30d5" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180911T175720Z:b1cb7602-1cc3-4ef8-9214-6d85087e30d5" + ], + "Content-Length": [ + "1138" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"properties\": {\r\n \"storageAccountKey\": null,\r\n \"storageAccount\": null,\r\n \"storageAccountResourceId\": \"/subscriptions/8aba3d53-2c5e-4479-bb0d-5a7bed16360e/resourcegroups/storagesyncsdkwesteurope/providers/Microsoft.Storage/storageAccounts/storagesyncsdkwesteurope\",\r\n \"storageAccountShareName\": \"tempsdkfileshare5\",\r\n \"storageAccountTenantId\": \"\\\"72f988bf-86f1-41af-91ab-2d7cd011db47\\\"\",\r\n \"partnershipId\": \"1|U0VSVkVSQVNTWU5DQ0xJRU5USEZTVjJ8QTAzMDJGNUEtMDY0RS00ODg5LUJBODEtODgzRjlDMkVEMDA5fEdFTkVSSUN8M0M4QjM1RjYtMjVFNS00RkRELTkwMzEtQUMyMzAzNTY4MUM5\",\r\n \"friendlyName\": \"tempsdkfileshare5\",\r\n \"backupEnabled\": \"false\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"lastWorkflowId\": \"storageSyncServices/sss-ceplist1873/workflows/5d5c439c-b2de-4e11-82a0-93e26f959afd\",\r\n \"lastOperationName\": \"ICreateCloudEndpointWorkflow\"\r\n },\r\n \"location\": \"westeurope\",\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n },\r\n \"id\": \"/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res6413/providers/microsoft.storagesync/storageSyncServices/sss-ceplist1873/syncGroups/sg-ceplist2633/cloudEndpoints/ceplist5998\",\r\n \"name\": \"ceplist5998\",\r\n \"type\": \"microsoft.storagesync/storageSyncServices/syncGroups/cloudEndpoints\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res6413/providers/Microsoft.StorageSync/storageSyncServices/sss-ceplist1873/syncGroups/sg-ceplist2633/cloudEndpoints?api-version=2018-04-02", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWQxNmY5YjMtYmJlMy00OGQ0LTkzMGEtMjdhNzRkY2EwMDNiL3Jlc291cmNlR3JvdXBzL3JlczY0MTMvcHJvdmlkZXJzL01pY3Jvc29mdC5TdG9yYWdlU3luYy9zdG9yYWdlU3luY1NlcnZpY2VzL3Nzcy1jZXBsaXN0MTg3My9zeW5jR3JvdXBzL3NnLWNlcGxpc3QyNjMzL2Nsb3VkRW5kcG9pbnRzP2FwaS12ZXJzaW9uPTIwMTgtMDQtMDI=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "6c1222e3-5a18-40bd-8cb4-71586e89160a" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26328.01", + "Microsoft.Azure.Management.StorageSync.StorageSyncManagementClient/1.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 11 Sep 2018 17:57:20 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "x-ms-request-id": [ + "0c8d02bc-1d31-4953-9ca4-26c1df3fc58f" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11997" + ], + "x-ms-correlation-request-id": [ + "d397c21e-b759-4742-8ff7-a77a0a433683" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180911T175720Z:d397c21e-b759-4742-8ff7-a77a0a433683" + ], + "Content-Length": [ + "1150" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"properties\": {\r\n \"storageAccountKey\": null,\r\n \"storageAccount\": null,\r\n \"storageAccountResourceId\": \"/subscriptions/8aba3d53-2c5e-4479-bb0d-5a7bed16360e/resourcegroups/storagesyncsdkwesteurope/providers/Microsoft.Storage/storageAccounts/storagesyncsdkwesteurope\",\r\n \"storageAccountShareName\": \"tempsdkfileshare5\",\r\n \"storageAccountTenantId\": \"\\\"72f988bf-86f1-41af-91ab-2d7cd011db47\\\"\",\r\n \"partnershipId\": \"1|U0VSVkVSQVNTWU5DQ0xJRU5USEZTVjJ8QTAzMDJGNUEtMDY0RS00ODg5LUJBODEtODgzRjlDMkVEMDA5fEdFTkVSSUN8M0M4QjM1RjYtMjVFNS00RkRELTkwMzEtQUMyMzAzNTY4MUM5\",\r\n \"friendlyName\": \"tempsdkfileshare5\",\r\n \"backupEnabled\": \"false\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"lastWorkflowId\": \"storageSyncServices/sss-ceplist1873/workflows/5d5c439c-b2de-4e11-82a0-93e26f959afd\",\r\n \"lastOperationName\": \"ICreateCloudEndpointWorkflow\"\r\n },\r\n \"location\": \"westeurope\",\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n },\r\n \"id\": \"/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res6413/providers/microsoft.storagesync/storageSyncServices/sss-ceplist1873/syncGroups/sg-ceplist2633/cloudEndpoints/ceplist5998\",\r\n \"name\": \"ceplist5998\",\r\n \"type\": \"microsoft.storagesync/storageSyncServices/syncGroups/cloudEndpoints\"\r\n }\r\n ]\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res6413/providers/Microsoft.StorageSync/storageSyncServices/sss-ceplist1873/syncGroups/sg-ceplist2633/cloudEndpoints/ceplist5998?api-version=2018-04-02", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWQxNmY5YjMtYmJlMy00OGQ0LTkzMGEtMjdhNzRkY2EwMDNiL3Jlc291cmNlR3JvdXBzL3JlczY0MTMvcHJvdmlkZXJzL01pY3Jvc29mdC5TdG9yYWdlU3luYy9zdG9yYWdlU3luY1NlcnZpY2VzL3Nzcy1jZXBsaXN0MTg3My9zeW5jR3JvdXBzL3NnLWNlcGxpc3QyNjMzL2Nsb3VkRW5kcG9pbnRzL2NlcGxpc3Q1OTk4P2FwaS12ZXJzaW9uPTIwMTgtMDQtMDI=", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "95d138f0-41e3-4f0d-9e2b-5f65f6c266df" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26328.01", + "Microsoft.Azure.Management.StorageSync.StorageSyncManagementClient/1.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 11 Sep 2018 17:57:21 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res6413/providers/microsoft.storagesync/storageSyncServices/sss-ceplist1873/workflows/32fcd0d1-03dd-493e-9247-8b2030013e2d/operationresults/1cd60b1f-f868-42e3-a7ab-f54830271830?api-version=2018-04-02" + ], + "Retry-After": [ + "10" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res6413/providers/microsoft.storagesync/storageSyncServices/sss-ceplist1873/workflows/32fcd0d1-03dd-493e-9247-8b2030013e2d/operations/1cd60b1f-f868-42e3-a7ab-f54830271830?api-version=2018-04-02" + ], + "x-ms-request-id": [ + "7de573ac-dc52-494c-9485-736333369742" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-deletes": [ + "14999" + ], + "x-ms-correlation-request-id": [ + "12038c62-b30e-4cf6-844f-1f52fb4b0667" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180911T175721Z:12038c62-b30e-4cf6-844f-1f52fb4b0667" + ], + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res6413/providers/microsoft.storagesync/storageSyncServices/sss-ceplist1873/workflows/32fcd0d1-03dd-493e-9247-8b2030013e2d/operations/1cd60b1f-f868-42e3-a7ab-f54830271830?api-version=2018-04-02", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWQxNmY5YjMtYmJlMy00OGQ0LTkzMGEtMjdhNzRkY2EwMDNiL3Jlc291cmNlR3JvdXBzL3JlczY0MTMvcHJvdmlkZXJzL21pY3Jvc29mdC5zdG9yYWdlc3luYy9zdG9yYWdlU3luY1NlcnZpY2VzL3Nzcy1jZXBsaXN0MTg3My93b3JrZmxvd3MvMzJmY2QwZDEtMDNkZC00OTNlLTkyNDctOGIyMDMwMDEzZTJkL29wZXJhdGlvbnMvMWNkNjBiMWYtZjg2OC00MmUzLWE3YWItZjU0ODMwMjcxODMwP2FwaS12ZXJzaW9uPTIwMTgtMDQtMDI=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26328.01", + "Microsoft.Azure.Management.StorageSync.StorageSyncManagementClient/1.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 11 Sep 2018 17:57:32 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "x-ms-request-id": [ + "a2211bb6-61df-4456-9987-163e50a2ffc8" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11996" + ], + "x-ms-correlation-request-id": [ + "94eaf08f-2a5b-4f9e-a3ff-5fff50050fd8" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180911T175733Z:94eaf08f-2a5b-4f9e-a3ff-5fff50050fd8" + ], + "Content-Length": [ + "453" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res6413/providers/microsoft.storagesync/storageSyncServices/sss-ceplist1873/workflow/32fcd0d1-03dd-493e-9247-8b2030013e2d/operationresults/1cd60b1f-f868-42e3-a7ab-f54830271830\",\r\n \"name\": \"1cd60b1f-f868-42e3-a7ab-f54830271830\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-09-11T17:57:21.714767Z\",\r\n \"endTime\": \"2018-09-11T17:57:24.5202183Z\",\r\n \"percentComplete\": null,\r\n \"error\": null,\r\n \"properties\": {}\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res6413/providers/microsoft.storagesync/storageSyncServices/sss-ceplist1873/workflows/32fcd0d1-03dd-493e-9247-8b2030013e2d/operationresults/1cd60b1f-f868-42e3-a7ab-f54830271830?api-version=2018-04-02", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWQxNmY5YjMtYmJlMy00OGQ0LTkzMGEtMjdhNzRkY2EwMDNiL3Jlc291cmNlR3JvdXBzL3JlczY0MTMvcHJvdmlkZXJzL21pY3Jvc29mdC5zdG9yYWdlc3luYy9zdG9yYWdlU3luY1NlcnZpY2VzL3Nzcy1jZXBsaXN0MTg3My93b3JrZmxvd3MvMzJmY2QwZDEtMDNkZC00OTNlLTkyNDctOGIyMDMwMDEzZTJkL29wZXJhdGlvbnJlc3VsdHMvMWNkNjBiMWYtZjg2OC00MmUzLWE3YWItZjU0ODMwMjcxODMwP2FwaS12ZXJzaW9uPTIwMTgtMDQtMDI=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26328.01", + "Microsoft.Azure.Management.StorageSync.StorageSyncManagementClient/1.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 11 Sep 2018 17:57:33 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "x-ms-request-id": [ + "ef34e755-8c00-441f-96f9-31dab26658dc" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11995" + ], + "x-ms-correlation-request-id": [ + "fcd49e32-99d3-43c0-9662-f604405cdc54" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180911T175733Z:fcd49e32-99d3-43c0-9662-f604405cdc54" + ], + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res6413/providers/Microsoft.StorageSync/storageSyncServices/sss-ceplist1873/syncGroups/sg-ceplist2633?api-version=2018-04-02", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWQxNmY5YjMtYmJlMy00OGQ0LTkzMGEtMjdhNzRkY2EwMDNiL3Jlc291cmNlR3JvdXBzL3JlczY0MTMvcHJvdmlkZXJzL01pY3Jvc29mdC5TdG9yYWdlU3luYy9zdG9yYWdlU3luY1NlcnZpY2VzL3Nzcy1jZXBsaXN0MTg3My9zeW5jR3JvdXBzL3NnLWNlcGxpc3QyNjMzP2FwaS12ZXJzaW9uPTIwMTgtMDQtMDI=", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "08ad3305-5033-4601-b2c0-8a6d9cc278c9" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26328.01", + "Microsoft.Azure.Management.StorageSync.StorageSyncManagementClient/1.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 11 Sep 2018 17:57:33 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "x-ms-request-id": [ + "20d61bcd-2eb3-49e4-a037-b5f3bebe573d" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-deletes": [ + "14998" + ], + "x-ms-correlation-request-id": [ + "e807addb-f4f8-4b19-8f8a-3999a3e9f9c9" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180911T175734Z:e807addb-f4f8-4b19-8f8a-3999a3e9f9c9" + ], + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res6413/providers/Microsoft.StorageSync/storageSyncServices/sss-ceplist1873?api-version=2018-04-02", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWQxNmY5YjMtYmJlMy00OGQ0LTkzMGEtMjdhNzRkY2EwMDNiL3Jlc291cmNlR3JvdXBzL3JlczY0MTMvcHJvdmlkZXJzL01pY3Jvc29mdC5TdG9yYWdlU3luYy9zdG9yYWdlU3luY1NlcnZpY2VzL3Nzcy1jZXBsaXN0MTg3Mz9hcGktdmVyc2lvbj0yMDE4LTA0LTAy", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "02358b17-4f34-4b7c-967c-4a52b4eae35f" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26328.01", + "Microsoft.Azure.Management.StorageSync.StorageSyncManagementClient/1.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 11 Sep 2018 17:57:36 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "x-ms-request-id": [ + "8e9defbc-08ad-4101-a1cd-f3593d322b70" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-deletes": [ + "14997" + ], + "x-ms-correlation-request-id": [ + "1705b9a3-d93f-494c-95ec-2ec440b81bdd" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180911T175736Z:1705b9a3-d93f-494c-95ec-2ec440b81bdd" + ], + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourcegroups/res6413?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWQxNmY5YjMtYmJlMy00OGQ0LTkzMGEtMjdhNzRkY2EwMDNiL3Jlc291cmNlZ3JvdXBzL3JlczY0MTM/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "ae57c0f2-3760-4186-9080-60e4b37c60dd" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26328.01", + "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 11 Sep 2018 17:57:37 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1SRVM2NDEzLUVBU1RVUzIiLCJqb2JMb2NhdGlvbiI6ImVhc3R1czIifQ?api-version=2017-05-10" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-deletes": [ + "14996" + ], + "x-ms-request-id": [ + "0d28fa69-bc8d-4c57-ac2e-c53b97f43f90" + ], + "x-ms-correlation-request-id": [ + "0d28fa69-bc8d-4c57-ac2e-c53b97f43f90" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180911T175737Z:0d28fa69-bc8d-4c57-ac2e-c53b97f43f90" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1SRVM2NDEzLUVBU1RVUzIiLCJqb2JMb2NhdGlvbiI6ImVhc3R1czIifQ?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWQxNmY5YjMtYmJlMy00OGQ0LTkzMGEtMjdhNzRkY2EwMDNiL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFTUlZNMk5ERXpMVVZCVTFSVlV6SWlMQ0pxYjJKTWIyTmhkR2x2YmlJNkltVmhjM1IxY3pJaWZRP2FwaS12ZXJzaW9uPTIwMTctMDUtMTA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26328.01", + "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 11 Sep 2018 17:57:52 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1SRVM2NDEzLUVBU1RVUzIiLCJqb2JMb2NhdGlvbiI6ImVhc3R1czIifQ?api-version=2017-05-10" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11994" + ], + "x-ms-request-id": [ + "592e850a-b0d7-4ba9-847a-4ebc8ceae433" + ], + "x-ms-correlation-request-id": [ + "592e850a-b0d7-4ba9-847a-4ebc8ceae433" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180911T175752Z:592e850a-b0d7-4ba9-847a-4ebc8ceae433" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1SRVM2NDEzLUVBU1RVUzIiLCJqb2JMb2NhdGlvbiI6ImVhc3R1czIifQ?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWQxNmY5YjMtYmJlMy00OGQ0LTkzMGEtMjdhNzRkY2EwMDNiL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFTUlZNMk5ERXpMVVZCVTFSVlV6SWlMQ0pxYjJKTWIyTmhkR2x2YmlJNkltVmhjM1IxY3pJaWZRP2FwaS12ZXJzaW9uPTIwMTctMDUtMTA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26328.01", + "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 11 Sep 2018 17:58:07 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1SRVM2NDEzLUVBU1RVUzIiLCJqb2JMb2NhdGlvbiI6ImVhc3R1czIifQ?api-version=2017-05-10" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11993" + ], + "x-ms-request-id": [ + "c08b853f-2fb7-4271-af0f-679513ec1899" + ], + "x-ms-correlation-request-id": [ + "c08b853f-2fb7-4271-af0f-679513ec1899" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180911T175808Z:c08b853f-2fb7-4271-af0f-679513ec1899" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1SRVM2NDEzLUVBU1RVUzIiLCJqb2JMb2NhdGlvbiI6ImVhc3R1czIifQ?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWQxNmY5YjMtYmJlMy00OGQ0LTkzMGEtMjdhNzRkY2EwMDNiL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFTUlZNMk5ERXpMVVZCVTFSVlV6SWlMQ0pxYjJKTWIyTmhkR2x2YmlJNkltVmhjM1IxY3pJaWZRP2FwaS12ZXJzaW9uPTIwMTctMDUtMTA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26328.01", + "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 11 Sep 2018 17:58:22 GMT" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11992" + ], + "x-ms-request-id": [ + "400a21ef-844d-471b-9aed-be0b11e34bd6" + ], + "x-ms-correlation-request-id": [ + "400a21ef-844d-471b-9aed-be0b11e34bd6" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180911T175823Z:400a21ef-844d-471b-9aed-be0b11e34bd6" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1SRVM2NDEzLUVBU1RVUzIiLCJqb2JMb2NhdGlvbiI6ImVhc3R1czIifQ?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWQxNmY5YjMtYmJlMy00OGQ0LTkzMGEtMjdhNzRkY2EwMDNiL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFTUlZNMk5ERXpMVVZCVTFSVlV6SWlMQ0pxYjJKTWIyTmhkR2x2YmlJNkltVmhjM1IxY3pJaWZRP2FwaS12ZXJzaW9uPTIwMTctMDUtMTA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26328.01", + "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 11 Sep 2018 17:58:22 GMT" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11991" + ], + "x-ms-request-id": [ + "eba8aaef-9b80-40e2-a5c3-87abafa81790" + ], + "x-ms-correlation-request-id": [ + "eba8aaef-9b80-40e2-a5c3-87abafa81790" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180911T175823Z:eba8aaef-9b80-40e2-a5c3-87abafa81790" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "", + "StatusCode": 200 + } + ], + "Names": { + "CreateResourceGroup": [ + "res6413" + ], + "CloudEndpointListTest": [ + "sss-ceplist1873", + "sg-ceplist2633", + "ceplist5998" + ] + }, + "Variables": { + "SubscriptionId": "1d16f9b3-bbe3-48d4-930a-27a74dca003b" + } +} \ No newline at end of file diff --git a/src/SDKs/StorageSync/StorageSync.Tests/SessionRecords/Microsoft.Azure.Management.StorageSync.Tests.RegisteredServerTests/RegisteredServerCreateTest.json b/src/SDKs/StorageSync/StorageSync.Tests/SessionRecords/Microsoft.Azure.Management.StorageSync.Tests.RegisteredServerTests/RegisteredServerCreateTest.json new file mode 100644 index 000000000000..8eb9cdc7bd6f --- /dev/null +++ b/src/SDKs/StorageSync/StorageSync.Tests/SessionRecords/Microsoft.Azure.Management.StorageSync.Tests.RegisteredServerTests/RegisteredServerCreateTest.json @@ -0,0 +1,1123 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourcegroups/res9838?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWQxNmY5YjMtYmJlMy00OGQ0LTkzMGEtMjdhNzRkY2EwMDNiL3Jlc291cmNlZ3JvdXBzL3Jlczk4Mzg/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"location\": \"eastus2\"\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "d098d862-b624-41a2-80a0-795b52cb1bf4" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26328.01", + "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "29" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 11 Sep 2018 17:38:29 GMT" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1199" + ], + "x-ms-request-id": [ + "69abbe30-e357-4192-9174-4b9510f64d25" + ], + "x-ms-correlation-request-id": [ + "69abbe30-e357-4192-9174-4b9510f64d25" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180911T173830Z:69abbe30-e357-4192-9174-4b9510f64d25" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "168" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res9838\",\r\n \"name\": \"res9838\",\r\n \"location\": \"eastus2\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res9838/providers/Microsoft.StorageSync/storageSyncServices/sss-rscreate992?api-version=2018-04-02", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWQxNmY5YjMtYmJlMy00OGQ0LTkzMGEtMjdhNzRkY2EwMDNiL3Jlc291cmNlR3JvdXBzL3Jlczk4MzgvcHJvdmlkZXJzL01pY3Jvc29mdC5TdG9yYWdlU3luYy9zdG9yYWdlU3luY1NlcnZpY2VzL3Nzcy1yc2NyZWF0ZTk5Mj9hcGktdmVyc2lvbj0yMDE4LTA0LTAy", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"location\": \"west europe\",\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n }\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "3f9266e4-a575-4b64-9413-8a654bc7f4e5" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26328.01", + "Microsoft.Azure.Management.StorageSync.StorageSyncManagementClient/1.0.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "97" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 11 Sep 2018 17:38:32 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "x-ms-request-id": [ + "f1c51c7c-35e8-476a-b85b-15507f9e51ce" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1198" + ], + "x-ms-correlation-request-id": [ + "cd70e38d-9846-4d2d-b7f7-1940a56242a2" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180911T173833Z:cd70e38d-9846-4d2d-b7f7-1940a56242a2" + ], + "Content-Length": [ + "403" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"properties\": {\r\n \"storageSyncServiceStatus\": null,\r\n \"storageSyncServiceUid\": \"00000000-0000-0000-0000-000000000000\"\r\n },\r\n \"location\": \"west europe\",\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n },\r\n \"id\": \"/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res9838/providers/microsoft.storagesync/storageSyncServices/sss-rscreate992\",\r\n \"name\": \"sss-rscreate992\",\r\n \"type\": \"microsoft.storagesync/storageSyncServices\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res9838/providers/Microsoft.StorageSync/storageSyncServices/sss-rscreate992/registeredServers/cdb638a6-6c3e-4e18-bb92-ad8618cb9ca1?api-version=2018-04-02", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWQxNmY5YjMtYmJlMy00OGQ0LTkzMGEtMjdhNzRkY2EwMDNiL3Jlc291cmNlR3JvdXBzL3Jlczk4MzgvcHJvdmlkZXJzL01pY3Jvc29mdC5TdG9yYWdlU3luYy9zdG9yYWdlU3luY1NlcnZpY2VzL3Nzcy1yc2NyZWF0ZTk5Mi9yZWdpc3RlcmVkU2VydmVycy9jZGI2MzhhNi02YzNlLTRlMTgtYmI5Mi1hZDg2MThjYjljYTE/YXBpLXZlcnNpb249MjAxOC0wNC0wMg==", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"location\": \"west europe\",\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n },\r\n \"properties\": {\r\n \"serverCertificate\": \"\\\"MIIDEDCCAfigAwIBAgIQUB7fWz9pbodGHZwk+aVTRjANBgkqhkiG9w0BAQ0FADAwMS4wLAYDVQQDEyVhbmt1c2hiLXZtMDIubnRkZXYuY29ycC5taWNyb3NvZnQuY29tMB4XDTE4MDczMDIyNDc0NVoXDTE5MDczMTIyNDc0NVowMDEuMCwGA1UEAxMlYW5rdXNoYi12bTAyLm50ZGV2LmNvcnAubWljcm9zb2Z0LmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBALssKhJeisUWQGU1as0mZm7PO81SQPUnK2uE0wTaXpJYlsEn+J9GrSKGYnwUVsdHsvku8AWzvVTeOM3lg7Nmn9NdPsJP1BnzBXqIXWMOpzHrew4nPqS8KEz3/+Wqm5feQK5bpFS6MHUIgn1dXgf7Sal16yMNmzcDvtVCEIoV3eLsxbRx0MLZVa1Z9tCY3kuCIcTcrMNO4mB6NAvZ2Hh5U9Cxu8e9GaF5yzJ7nOVgiKxua4uo73eejuEEGmWq28OO2qZ2YVW0sQRySOVbuhu3gUpB2EbljnL3pCgRAJhui8oy0VlH4m5aoVK/AjOOYtWduaFoJP7LCtizREfhDMdT/SUCAwEAAaMmMCQwIgYDVR0lAQH/BBgwFgYIKwYBBQUHAwIGCisGAQQBgjcKAwwwDQYJKoZIhvcNAQENBQADggEBALR6fPRt1y4etxX1H65kn3iUOLfTa4kg2Lj+GbqjjkVJXQ9uiVL0qL6Usc1GMepUTqD0yuOfHH9sHJZdEs6N08CLpOjCAXqnelabGJ7vSEba1NxASXRGIdsgj7gpeXgH0G8+KRRRkHwp4+Ro0Gb0mXIwlbVxiMZ3zRUXzJxvITX9/fAfeQBvDhc0NpGKHBgINZFbImIzIsoDQId259n1RMBBgLRsuf17KROXQmPmHXJMfadmVC0CZgcpKr2r6n6aWYi1gUb6kliZi6Ikr4GoePUJz1w36xVhJw6mE1Oj/wZ1kPF/J092L48XqDYVZYD8zdBO+vGR52655Fn/niv3zcM=\\\"\",\r\n \"agentVersion\": \"3.2.0.0\",\r\n \"serverOSVersion\": \"10.0.14393.0\",\r\n \"lastHeartBeat\": \"\\\"2018-09-10T20:05:02.5134384Z\\\"\",\r\n \"serverRole\": \"Standalone\",\r\n \"serverId\": \"\\\"cdb638a6-6c3e-4e18-bb92-ad8618cb9ca1\\\"\",\r\n \"friendlyName\": \"ankushb-vm02.ntdev.corp.microsoft.com\"\r\n }\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "e3ddb675-0555-4b0a-b61b-1dde7b84fc0c" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26328.01", + "Microsoft.Azure.Management.StorageSync.StorageSyncManagementClient/1.0.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "1493" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 11 Sep 2018 17:38:34 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res9838/providers/microsoft.storagesync/storageSyncServices/sss-rscreate992/workflows/a4716597-b8ac-4227-a72e-833adfe8dae4/operationresults/d9b11960-ef26-454e-aa5f-1c60abe392df?api-version=2018-04-02" + ], + "Retry-After": [ + "10" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res9838/providers/microsoft.storagesync/storageSyncServices/sss-rscreate992/workflows/a4716597-b8ac-4227-a72e-833adfe8dae4/operations/d9b11960-ef26-454e-aa5f-1c60abe392df?api-version=2018-04-02" + ], + "x-ms-request-id": [ + "d0bc065b-0d35-4101-ae5a-034b4d5d41ea" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1197" + ], + "x-ms-correlation-request-id": [ + "9a9b3ba2-62cd-4818-92a5-324f3acc587b" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180911T173834Z:9a9b3ba2-62cd-4818-92a5-324f3acc587b" + ], + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res9838/providers/microsoft.storagesync/storageSyncServices/sss-rscreate992/workflows/a4716597-b8ac-4227-a72e-833adfe8dae4/operations/d9b11960-ef26-454e-aa5f-1c60abe392df?api-version=2018-04-02", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWQxNmY5YjMtYmJlMy00OGQ0LTkzMGEtMjdhNzRkY2EwMDNiL3Jlc291cmNlR3JvdXBzL3Jlczk4MzgvcHJvdmlkZXJzL21pY3Jvc29mdC5zdG9yYWdlc3luYy9zdG9yYWdlU3luY1NlcnZpY2VzL3Nzcy1yc2NyZWF0ZTk5Mi93b3JrZmxvd3MvYTQ3MTY1OTctYjhhYy00MjI3LWE3MmUtODMzYWRmZThkYWU0L29wZXJhdGlvbnMvZDliMTE5NjAtZWYyNi00NTRlLWFhNWYtMWM2MGFiZTM5MmRmP2FwaS12ZXJzaW9uPTIwMTgtMDQtMDI=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26328.01", + "Microsoft.Azure.Management.StorageSync.StorageSyncManagementClient/1.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 11 Sep 2018 17:38:45 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "x-ms-request-id": [ + "60b354c0-a7df-4440-adbc-a926e9d77b11" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11999" + ], + "x-ms-correlation-request-id": [ + "de260910-36eb-4b52-ad08-0bcb5800dbf2" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180911T173845Z:de260910-36eb-4b52-ad08-0bcb5800dbf2" + ], + "Content-Length": [ + "453" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res9838/providers/microsoft.storagesync/storageSyncServices/sss-rscreate992/workflow/a4716597-b8ac-4227-a72e-833adfe8dae4/operationresults/d9b11960-ef26-454e-aa5f-1c60abe392df\",\r\n \"name\": \"d9b11960-ef26-454e-aa5f-1c60abe392df\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-09-11T17:38:35.219236Z\",\r\n \"endTime\": \"2018-09-11T17:38:36.7474277Z\",\r\n \"percentComplete\": null,\r\n \"error\": null,\r\n \"properties\": {}\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res9838/providers/Microsoft.StorageSync/storageSyncServices/sss-rscreate992/registeredServers/cdb638a6-6c3e-4e18-bb92-ad8618cb9ca1?api-version=2018-04-02", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWQxNmY5YjMtYmJlMy00OGQ0LTkzMGEtMjdhNzRkY2EwMDNiL3Jlc291cmNlR3JvdXBzL3Jlczk4MzgvcHJvdmlkZXJzL01pY3Jvc29mdC5TdG9yYWdlU3luYy9zdG9yYWdlU3luY1NlcnZpY2VzL3Nzcy1yc2NyZWF0ZTk5Mi9yZWdpc3RlcmVkU2VydmVycy9jZGI2MzhhNi02YzNlLTRlMTgtYmI5Mi1hZDg2MThjYjljYTE/YXBpLXZlcnNpb249MjAxOC0wNC0wMg==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26328.01", + "Microsoft.Azure.Management.StorageSync.StorageSyncManagementClient/1.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 11 Sep 2018 17:38:45 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "x-ms-request-id": [ + "1bb56ad6-01f9-4e10-ab5f-a22132fc634d" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11998" + ], + "x-ms-correlation-request-id": [ + "d559632b-c6f0-4c83-9118-114614d39cfa" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180911T173846Z:d559632b-c6f0-4c83-9118-114614d39cfa" + ], + "Content-Length": [ + "1283" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"location\": \"west europe\",\r\n \"properties\": {\r\n \"serverCertificate\": null,\r\n \"agentVersion\": \"3.2.0.0\",\r\n \"agentVersionStatus\": null,\r\n \"agentVersionExpirationDate\": null,\r\n \"serverOSVersion\": \"10.0.14393.0\",\r\n \"serverManagementtErrorCode\": 0,\r\n \"lastHeartBeat\": \"\\\"2018-09-10T20:05:02.5134384Z\\\"\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"serverRole\": \"Standalone\",\r\n \"clusterId\": \"\\\"00000000-0000-0000-0000-000000000000\\\"\",\r\n \"clusterName\": \"\",\r\n \"serverId\": \"\\\"cdb638a6-6c3e-4e18-bb92-ad8618cb9ca1\\\"\",\r\n \"storageSyncServiceUid\": \"\\\"8f1479a4-15e3-4375-8f7d-967941dd0848\\\"\",\r\n \"lastWorkflowId\": \"storageSyncServices/sss-rscreate992/workflows/a4716597-b8ac-4227-a72e-833adfe8dae4\",\r\n \"lastOperationName\": \"ICreateRegisteredServerWorkflow\",\r\n \"friendlyName\": \"ankushb-vm02.ntdev.corp.microsoft.com\",\r\n \"monitoringConfiguration\": null,\r\n \"managementEndpointUri\": \"\\\"https://kailani6.one.microsoft.com:443/\\\"\",\r\n \"discoveryEndpointUri\": \"\\\"https://tm-kailani6.one.microsoft.com:443\\\"\",\r\n \"resourceLocation\": \"westeurope\",\r\n \"serviceLocation\": \"westeurope\"\r\n },\r\n \"id\": \"/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res9838/providers/microsoft.storagesync/storageSyncServices/sss-rscreate992/registeredServers/cdb638a6-6c3e-4e18-bb92-ad8618cb9ca1\",\r\n \"name\": \"cdb638a6-6c3e-4e18-bb92-ad8618cb9ca1\",\r\n \"type\": \"microsoft.storagesync/storageSyncServices/registeredServers\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res9838/providers/Microsoft.StorageSync/storageSyncServices/sss-rscreate992/registeredServers/cdb638a6-6c3e-4e18-bb92-ad8618cb9ca1?api-version=2018-04-02", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWQxNmY5YjMtYmJlMy00OGQ0LTkzMGEtMjdhNzRkY2EwMDNiL3Jlc291cmNlR3JvdXBzL3Jlczk4MzgvcHJvdmlkZXJzL01pY3Jvc29mdC5TdG9yYWdlU3luYy9zdG9yYWdlU3luY1NlcnZpY2VzL3Nzcy1yc2NyZWF0ZTk5Mi9yZWdpc3RlcmVkU2VydmVycy9jZGI2MzhhNi02YzNlLTRlMTgtYmI5Mi1hZDg2MThjYjljYTE/YXBpLXZlcnNpb249MjAxOC0wNC0wMg==", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "023857c1-e74b-432a-acd0-d9c271dfbe75" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26328.01", + "Microsoft.Azure.Management.StorageSync.StorageSyncManagementClient/1.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 11 Sep 2018 17:38:46 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res9838/providers/microsoft.storagesync/storageSyncServices/sss-rscreate992/workflows/30ecfa32-984c-4f1a-a64d-de572acd55f0/operationresults/c6b2fd76-0eb0-461c-b659-535aefe6a952?api-version=2018-04-02" + ], + "Retry-After": [ + "10" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res9838/providers/microsoft.storagesync/storageSyncServices/sss-rscreate992/workflows/30ecfa32-984c-4f1a-a64d-de572acd55f0/operations/c6b2fd76-0eb0-461c-b659-535aefe6a952?api-version=2018-04-02" + ], + "x-ms-request-id": [ + "46e66711-dc97-4851-be2d-05c03614ffb0" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-deletes": [ + "14999" + ], + "x-ms-correlation-request-id": [ + "b92e31ce-b5b2-4dad-9965-6d9f6f9190cb" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180911T173847Z:b92e31ce-b5b2-4dad-9965-6d9f6f9190cb" + ], + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res9838/providers/microsoft.storagesync/storageSyncServices/sss-rscreate992/workflows/30ecfa32-984c-4f1a-a64d-de572acd55f0/operations/c6b2fd76-0eb0-461c-b659-535aefe6a952?api-version=2018-04-02", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWQxNmY5YjMtYmJlMy00OGQ0LTkzMGEtMjdhNzRkY2EwMDNiL3Jlc291cmNlR3JvdXBzL3Jlczk4MzgvcHJvdmlkZXJzL21pY3Jvc29mdC5zdG9yYWdlc3luYy9zdG9yYWdlU3luY1NlcnZpY2VzL3Nzcy1yc2NyZWF0ZTk5Mi93b3JrZmxvd3MvMzBlY2ZhMzItOTg0Yy00ZjFhLWE2NGQtZGU1NzJhY2Q1NWYwL29wZXJhdGlvbnMvYzZiMmZkNzYtMGViMC00NjFjLWI2NTktNTM1YWVmZTZhOTUyP2FwaS12ZXJzaW9uPTIwMTgtMDQtMDI=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26328.01", + "Microsoft.Azure.Management.StorageSync.StorageSyncManagementClient/1.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 11 Sep 2018 17:38:57 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "x-ms-request-id": [ + "8cf24bec-4ad1-4c44-939b-62a7fbaff850" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11997" + ], + "x-ms-correlation-request-id": [ + "7d7fd58e-418d-49e2-a46d-1320c7c948c6" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180911T173857Z:7d7fd58e-418d-49e2-a46d-1320c7c948c6" + ], + "Content-Length": [ + "452" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res9838/providers/microsoft.storagesync/storageSyncServices/sss-rscreate992/workflow/30ecfa32-984c-4f1a-a64d-de572acd55f0/operationresults/c6b2fd76-0eb0-461c-b659-535aefe6a952\",\r\n \"name\": \"c6b2fd76-0eb0-461c-b659-535aefe6a952\",\r\n \"status\": \"delayStep\",\r\n \"startTime\": \"2018-09-11T17:38:47.223687Z\",\r\n \"endTime\": \"2018-09-11T17:38:48.941768Z\",\r\n \"percentComplete\": null,\r\n \"error\": null,\r\n \"properties\": {}\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res9838/providers/microsoft.storagesync/storageSyncServices/sss-rscreate992/workflows/30ecfa32-984c-4f1a-a64d-de572acd55f0/operations/c6b2fd76-0eb0-461c-b659-535aefe6a952?api-version=2018-04-02", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWQxNmY5YjMtYmJlMy00OGQ0LTkzMGEtMjdhNzRkY2EwMDNiL3Jlc291cmNlR3JvdXBzL3Jlczk4MzgvcHJvdmlkZXJzL21pY3Jvc29mdC5zdG9yYWdlc3luYy9zdG9yYWdlU3luY1NlcnZpY2VzL3Nzcy1yc2NyZWF0ZTk5Mi93b3JrZmxvd3MvMzBlY2ZhMzItOTg0Yy00ZjFhLWE2NGQtZGU1NzJhY2Q1NWYwL29wZXJhdGlvbnMvYzZiMmZkNzYtMGViMC00NjFjLWI2NTktNTM1YWVmZTZhOTUyP2FwaS12ZXJzaW9uPTIwMTgtMDQtMDI=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26328.01", + "Microsoft.Azure.Management.StorageSync.StorageSyncManagementClient/1.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 11 Sep 2018 17:39:07 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "x-ms-request-id": [ + "c4ae9f3a-4e58-4333-8ccf-0281b6c6903d" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11996" + ], + "x-ms-correlation-request-id": [ + "a7b47ec9-8a4e-437f-82bc-67662606a282" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180911T173908Z:a7b47ec9-8a4e-437f-82bc-67662606a282" + ], + "Content-Length": [ + "452" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res9838/providers/microsoft.storagesync/storageSyncServices/sss-rscreate992/workflow/30ecfa32-984c-4f1a-a64d-de572acd55f0/operationresults/c6b2fd76-0eb0-461c-b659-535aefe6a952\",\r\n \"name\": \"c6b2fd76-0eb0-461c-b659-535aefe6a952\",\r\n \"status\": \"delayStep\",\r\n \"startTime\": \"2018-09-11T17:38:47.223687Z\",\r\n \"endTime\": \"2018-09-11T17:38:48.941768Z\",\r\n \"percentComplete\": null,\r\n \"error\": null,\r\n \"properties\": {}\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res9838/providers/microsoft.storagesync/storageSyncServices/sss-rscreate992/workflows/30ecfa32-984c-4f1a-a64d-de572acd55f0/operations/c6b2fd76-0eb0-461c-b659-535aefe6a952?api-version=2018-04-02", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWQxNmY5YjMtYmJlMy00OGQ0LTkzMGEtMjdhNzRkY2EwMDNiL3Jlc291cmNlR3JvdXBzL3Jlczk4MzgvcHJvdmlkZXJzL21pY3Jvc29mdC5zdG9yYWdlc3luYy9zdG9yYWdlU3luY1NlcnZpY2VzL3Nzcy1yc2NyZWF0ZTk5Mi93b3JrZmxvd3MvMzBlY2ZhMzItOTg0Yy00ZjFhLWE2NGQtZGU1NzJhY2Q1NWYwL29wZXJhdGlvbnMvYzZiMmZkNzYtMGViMC00NjFjLWI2NTktNTM1YWVmZTZhOTUyP2FwaS12ZXJzaW9uPTIwMTgtMDQtMDI=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26328.01", + "Microsoft.Azure.Management.StorageSync.StorageSyncManagementClient/1.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 11 Sep 2018 17:39:17 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "x-ms-request-id": [ + "607a63cb-5019-4062-9a96-bc0bef04f7c5" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11995" + ], + "x-ms-correlation-request-id": [ + "6301b1e1-8bcc-4265-a2f0-1dbe76774225" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180911T173918Z:6301b1e1-8bcc-4265-a2f0-1dbe76774225" + ], + "Content-Length": [ + "452" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res9838/providers/microsoft.storagesync/storageSyncServices/sss-rscreate992/workflow/30ecfa32-984c-4f1a-a64d-de572acd55f0/operationresults/c6b2fd76-0eb0-461c-b659-535aefe6a952\",\r\n \"name\": \"c6b2fd76-0eb0-461c-b659-535aefe6a952\",\r\n \"status\": \"delayStep\",\r\n \"startTime\": \"2018-09-11T17:38:47.223687Z\",\r\n \"endTime\": \"2018-09-11T17:38:48.941768Z\",\r\n \"percentComplete\": null,\r\n \"error\": null,\r\n \"properties\": {}\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res9838/providers/microsoft.storagesync/storageSyncServices/sss-rscreate992/workflows/30ecfa32-984c-4f1a-a64d-de572acd55f0/operations/c6b2fd76-0eb0-461c-b659-535aefe6a952?api-version=2018-04-02", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWQxNmY5YjMtYmJlMy00OGQ0LTkzMGEtMjdhNzRkY2EwMDNiL3Jlc291cmNlR3JvdXBzL3Jlczk4MzgvcHJvdmlkZXJzL21pY3Jvc29mdC5zdG9yYWdlc3luYy9zdG9yYWdlU3luY1NlcnZpY2VzL3Nzcy1yc2NyZWF0ZTk5Mi93b3JrZmxvd3MvMzBlY2ZhMzItOTg0Yy00ZjFhLWE2NGQtZGU1NzJhY2Q1NWYwL29wZXJhdGlvbnMvYzZiMmZkNzYtMGViMC00NjFjLWI2NTktNTM1YWVmZTZhOTUyP2FwaS12ZXJzaW9uPTIwMTgtMDQtMDI=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26328.01", + "Microsoft.Azure.Management.StorageSync.StorageSyncManagementClient/1.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 11 Sep 2018 17:39:28 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "x-ms-request-id": [ + "0478f262-b54e-4ac3-816e-f7c935271723" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11994" + ], + "x-ms-correlation-request-id": [ + "e67ede62-62a7-4c92-a9ed-621810028bdf" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180911T173929Z:e67ede62-62a7-4c92-a9ed-621810028bdf" + ], + "Content-Length": [ + "452" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res9838/providers/microsoft.storagesync/storageSyncServices/sss-rscreate992/workflow/30ecfa32-984c-4f1a-a64d-de572acd55f0/operationresults/c6b2fd76-0eb0-461c-b659-535aefe6a952\",\r\n \"name\": \"c6b2fd76-0eb0-461c-b659-535aefe6a952\",\r\n \"status\": \"delayStep\",\r\n \"startTime\": \"2018-09-11T17:38:47.223687Z\",\r\n \"endTime\": \"2018-09-11T17:38:48.941768Z\",\r\n \"percentComplete\": null,\r\n \"error\": null,\r\n \"properties\": {}\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res9838/providers/microsoft.storagesync/storageSyncServices/sss-rscreate992/workflows/30ecfa32-984c-4f1a-a64d-de572acd55f0/operations/c6b2fd76-0eb0-461c-b659-535aefe6a952?api-version=2018-04-02", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWQxNmY5YjMtYmJlMy00OGQ0LTkzMGEtMjdhNzRkY2EwMDNiL3Jlc291cmNlR3JvdXBzL3Jlczk4MzgvcHJvdmlkZXJzL21pY3Jvc29mdC5zdG9yYWdlc3luYy9zdG9yYWdlU3luY1NlcnZpY2VzL3Nzcy1yc2NyZWF0ZTk5Mi93b3JrZmxvd3MvMzBlY2ZhMzItOTg0Yy00ZjFhLWE2NGQtZGU1NzJhY2Q1NWYwL29wZXJhdGlvbnMvYzZiMmZkNzYtMGViMC00NjFjLWI2NTktNTM1YWVmZTZhOTUyP2FwaS12ZXJzaW9uPTIwMTgtMDQtMDI=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26328.01", + "Microsoft.Azure.Management.StorageSync.StorageSyncManagementClient/1.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 11 Sep 2018 17:39:39 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "x-ms-request-id": [ + "63b8f6a9-9ada-4282-9e58-13ac0b8d7aae" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11993" + ], + "x-ms-correlation-request-id": [ + "0b53cc81-8b0d-453c-b5b4-48e79076f2ae" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180911T173939Z:0b53cc81-8b0d-453c-b5b4-48e79076f2ae" + ], + "Content-Length": [ + "453" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res9838/providers/microsoft.storagesync/storageSyncServices/sss-rscreate992/workflow/30ecfa32-984c-4f1a-a64d-de572acd55f0/operationresults/c6b2fd76-0eb0-461c-b659-535aefe6a952\",\r\n \"name\": \"c6b2fd76-0eb0-461c-b659-535aefe6a952\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-09-11T17:38:47.223687Z\",\r\n \"endTime\": \"2018-09-11T17:39:34.2280048Z\",\r\n \"percentComplete\": null,\r\n \"error\": null,\r\n \"properties\": {}\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res9838/providers/microsoft.storagesync/storageSyncServices/sss-rscreate992/workflows/30ecfa32-984c-4f1a-a64d-de572acd55f0/operationresults/c6b2fd76-0eb0-461c-b659-535aefe6a952?api-version=2018-04-02", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWQxNmY5YjMtYmJlMy00OGQ0LTkzMGEtMjdhNzRkY2EwMDNiL3Jlc291cmNlR3JvdXBzL3Jlczk4MzgvcHJvdmlkZXJzL21pY3Jvc29mdC5zdG9yYWdlc3luYy9zdG9yYWdlU3luY1NlcnZpY2VzL3Nzcy1yc2NyZWF0ZTk5Mi93b3JrZmxvd3MvMzBlY2ZhMzItOTg0Yy00ZjFhLWE2NGQtZGU1NzJhY2Q1NWYwL29wZXJhdGlvbnJlc3VsdHMvYzZiMmZkNzYtMGViMC00NjFjLWI2NTktNTM1YWVmZTZhOTUyP2FwaS12ZXJzaW9uPTIwMTgtMDQtMDI=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26328.01", + "Microsoft.Azure.Management.StorageSync.StorageSyncManagementClient/1.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 11 Sep 2018 17:39:40 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "x-ms-request-id": [ + "5a722f18-15ae-4a37-a8e2-b4bb97e99594" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11992" + ], + "x-ms-correlation-request-id": [ + "81661f31-e53d-45a8-9399-e56a82651d65" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180911T173940Z:81661f31-e53d-45a8-9399-e56a82651d65" + ], + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res9838/providers/Microsoft.StorageSync/storageSyncServices/sss-rscreate992?api-version=2018-04-02", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWQxNmY5YjMtYmJlMy00OGQ0LTkzMGEtMjdhNzRkY2EwMDNiL3Jlc291cmNlR3JvdXBzL3Jlczk4MzgvcHJvdmlkZXJzL01pY3Jvc29mdC5TdG9yYWdlU3luYy9zdG9yYWdlU3luY1NlcnZpY2VzL3Nzcy1yc2NyZWF0ZTk5Mj9hcGktdmVyc2lvbj0yMDE4LTA0LTAy", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "5d279ac5-7a81-4f73-9442-c6da331ed6f3" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26328.01", + "Microsoft.Azure.Management.StorageSync.StorageSyncManagementClient/1.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 11 Sep 2018 17:39:43 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "x-ms-request-id": [ + "990d7f56-b942-4860-a1ea-cc016b029700" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-deletes": [ + "14998" + ], + "x-ms-correlation-request-id": [ + "411b043d-b251-43b6-9a5c-66d4c21f94c9" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180911T173943Z:411b043d-b251-43b6-9a5c-66d4c21f94c9" + ], + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourcegroups/res9838?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWQxNmY5YjMtYmJlMy00OGQ0LTkzMGEtMjdhNzRkY2EwMDNiL3Jlc291cmNlZ3JvdXBzL3Jlczk4Mzg/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "d285dddc-c88e-403b-9721-8bc5b431840e" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26328.01", + "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 11 Sep 2018 17:39:44 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1SRVM5ODM4LUVBU1RVUzIiLCJqb2JMb2NhdGlvbiI6ImVhc3R1czIifQ?api-version=2017-05-10" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-deletes": [ + "14997" + ], + "x-ms-request-id": [ + "91a468ac-c5f5-4685-85cd-75178b9335c9" + ], + "x-ms-correlation-request-id": [ + "91a468ac-c5f5-4685-85cd-75178b9335c9" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180911T173944Z:91a468ac-c5f5-4685-85cd-75178b9335c9" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1SRVM5ODM4LUVBU1RVUzIiLCJqb2JMb2NhdGlvbiI6ImVhc3R1czIifQ?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWQxNmY5YjMtYmJlMy00OGQ0LTkzMGEtMjdhNzRkY2EwMDNiL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFTUlZNNU9ETTRMVVZCVTFSVlV6SWlMQ0pxYjJKTWIyTmhkR2x2YmlJNkltVmhjM1IxY3pJaWZRP2FwaS12ZXJzaW9uPTIwMTctMDUtMTA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26328.01", + "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 11 Sep 2018 17:39:59 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1SRVM5ODM4LUVBU1RVUzIiLCJqb2JMb2NhdGlvbiI6ImVhc3R1czIifQ?api-version=2017-05-10" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11991" + ], + "x-ms-request-id": [ + "b4edd1b0-9544-4904-a295-7ae8ed384497" + ], + "x-ms-correlation-request-id": [ + "b4edd1b0-9544-4904-a295-7ae8ed384497" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180911T173959Z:b4edd1b0-9544-4904-a295-7ae8ed384497" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1SRVM5ODM4LUVBU1RVUzIiLCJqb2JMb2NhdGlvbiI6ImVhc3R1czIifQ?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWQxNmY5YjMtYmJlMy00OGQ0LTkzMGEtMjdhNzRkY2EwMDNiL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFTUlZNNU9ETTRMVVZCVTFSVlV6SWlMQ0pxYjJKTWIyTmhkR2x2YmlJNkltVmhjM1IxY3pJaWZRP2FwaS12ZXJzaW9uPTIwMTctMDUtMTA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26328.01", + "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 11 Sep 2018 17:40:13 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1SRVM5ODM4LUVBU1RVUzIiLCJqb2JMb2NhdGlvbiI6ImVhc3R1czIifQ?api-version=2017-05-10" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11990" + ], + "x-ms-request-id": [ + "161d4fd5-bb1d-4e98-aead-3539511995c6" + ], + "x-ms-correlation-request-id": [ + "161d4fd5-bb1d-4e98-aead-3539511995c6" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180911T174014Z:161d4fd5-bb1d-4e98-aead-3539511995c6" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1SRVM5ODM4LUVBU1RVUzIiLCJqb2JMb2NhdGlvbiI6ImVhc3R1czIifQ?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWQxNmY5YjMtYmJlMy00OGQ0LTkzMGEtMjdhNzRkY2EwMDNiL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFTUlZNNU9ETTRMVVZCVTFSVlV6SWlMQ0pxYjJKTWIyTmhkR2x2YmlJNkltVmhjM1IxY3pJaWZRP2FwaS12ZXJzaW9uPTIwMTctMDUtMTA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26328.01", + "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 11 Sep 2018 17:40:29 GMT" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11989" + ], + "x-ms-request-id": [ + "9beca051-4c96-4e75-bce1-61054a87dcff" + ], + "x-ms-correlation-request-id": [ + "9beca051-4c96-4e75-bce1-61054a87dcff" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180911T174029Z:9beca051-4c96-4e75-bce1-61054a87dcff" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1SRVM5ODM4LUVBU1RVUzIiLCJqb2JMb2NhdGlvbiI6ImVhc3R1czIifQ?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWQxNmY5YjMtYmJlMy00OGQ0LTkzMGEtMjdhNzRkY2EwMDNiL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFTUlZNNU9ETTRMVVZCVTFSVlV6SWlMQ0pxYjJKTWIyTmhkR2x2YmlJNkltVmhjM1IxY3pJaWZRP2FwaS12ZXJzaW9uPTIwMTctMDUtMTA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26328.01", + "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 11 Sep 2018 17:40:29 GMT" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11988" + ], + "x-ms-request-id": [ + "c2de8344-05d8-4fb1-bcf9-dfb980c1a8b4" + ], + "x-ms-correlation-request-id": [ + "c2de8344-05d8-4fb1-bcf9-dfb980c1a8b4" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180911T174030Z:c2de8344-05d8-4fb1-bcf9-dfb980c1a8b4" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "", + "StatusCode": 200 + } + ], + "Names": { + "CreateResourceGroup": [ + "res9838" + ], + "RegisteredServerCreateTest": [ + "sss-rscreate992", + "cdb638a6-6c3e-4e18-bb92-ad8618cb9ca1" + ] + }, + "Variables": { + "SubscriptionId": "1d16f9b3-bbe3-48d4-930a-27a74dca003b" + } +} \ No newline at end of file diff --git a/src/SDKs/StorageSync/StorageSync.Tests/SessionRecords/Microsoft.Azure.Management.StorageSync.Tests.RegisteredServerTests/RegisteredServerDeleteTest.json b/src/SDKs/StorageSync/StorageSync.Tests/SessionRecords/Microsoft.Azure.Management.StorageSync.Tests.RegisteredServerTests/RegisteredServerDeleteTest.json new file mode 100644 index 000000000000..6fa8bdb056fd --- /dev/null +++ b/src/SDKs/StorageSync/StorageSync.Tests/SessionRecords/Microsoft.Azure.Management.StorageSync.Tests.RegisteredServerTests/RegisteredServerDeleteTest.json @@ -0,0 +1,1690 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourcegroups/res3227?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWQxNmY5YjMtYmJlMy00OGQ0LTkzMGEtMjdhNzRkY2EwMDNiL3Jlc291cmNlZ3JvdXBzL3JlczMyMjc/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"location\": \"eastus2\"\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "7afe8d7a-4e80-40cf-b4cc-589e8b67987b" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26328.01", + "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "29" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 11 Sep 2018 17:42:52 GMT" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1199" + ], + "x-ms-request-id": [ + "6762d2b6-7372-4675-bf8b-bc1434a9bf6a" + ], + "x-ms-correlation-request-id": [ + "6762d2b6-7372-4675-bf8b-bc1434a9bf6a" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180911T174252Z:6762d2b6-7372-4675-bf8b-bc1434a9bf6a" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "168" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res3227\",\r\n \"name\": \"res3227\",\r\n \"location\": \"eastus2\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res3227/providers/Microsoft.StorageSync/storageSyncServices/sss-rscreate8414?api-version=2018-04-02", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWQxNmY5YjMtYmJlMy00OGQ0LTkzMGEtMjdhNzRkY2EwMDNiL3Jlc291cmNlR3JvdXBzL3JlczMyMjcvcHJvdmlkZXJzL01pY3Jvc29mdC5TdG9yYWdlU3luYy9zdG9yYWdlU3luY1NlcnZpY2VzL3Nzcy1yc2NyZWF0ZTg0MTQ/YXBpLXZlcnNpb249MjAxOC0wNC0wMg==", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"location\": \"west europe\",\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n }\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "7149566a-c56c-45be-9379-7098741d1a19" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26328.01", + "Microsoft.Azure.Management.StorageSync.StorageSyncManagementClient/1.0.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "97" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 11 Sep 2018 17:42:59 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "x-ms-request-id": [ + "7a96cd58-6184-487f-82ff-41ff82784e7b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1198" + ], + "x-ms-correlation-request-id": [ + "50901b2f-c15b-42f2-98fd-04555859e960" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180911T174259Z:50901b2f-c15b-42f2-98fd-04555859e960" + ], + "Content-Length": [ + "405" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"properties\": {\r\n \"storageSyncServiceStatus\": null,\r\n \"storageSyncServiceUid\": \"00000000-0000-0000-0000-000000000000\"\r\n },\r\n \"location\": \"west europe\",\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n },\r\n \"id\": \"/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res3227/providers/microsoft.storagesync/storageSyncServices/sss-rscreate8414\",\r\n \"name\": \"sss-rscreate8414\",\r\n \"type\": \"microsoft.storagesync/storageSyncServices\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res3227/providers/Microsoft.StorageSync/storageSyncServices/sss-rscreate8414/registeredServers/0cdfe5e7-acef-4af0-b4b5-4eea47798a63?api-version=2018-04-02", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWQxNmY5YjMtYmJlMy00OGQ0LTkzMGEtMjdhNzRkY2EwMDNiL3Jlc291cmNlR3JvdXBzL3JlczMyMjcvcHJvdmlkZXJzL01pY3Jvc29mdC5TdG9yYWdlU3luYy9zdG9yYWdlU3luY1NlcnZpY2VzL3Nzcy1yc2NyZWF0ZTg0MTQvcmVnaXN0ZXJlZFNlcnZlcnMvMGNkZmU1ZTctYWNlZi00YWYwLWI0YjUtNGVlYTQ3Nzk4YTYzP2FwaS12ZXJzaW9uPTIwMTgtMDQtMDI=", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "021ad96d-dd17-4ccf-b299-a5f7655a5bf1" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26328.01", + "Microsoft.Azure.Management.StorageSync.StorageSyncManagementClient/1.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 11 Sep 2018 17:43:00 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res3227/providers/microsoft.storagesync/storageSyncServices/sss-rscreate8414/workflows/ded5ce6f-b288-4bad-9f47-14502856e802/operationresults/3a4ed595-82c9-4106-8766-3364b2847a92?api-version=2018-04-02" + ], + "Retry-After": [ + "10" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res3227/providers/microsoft.storagesync/storageSyncServices/sss-rscreate8414/workflows/ded5ce6f-b288-4bad-9f47-14502856e802/operations/3a4ed595-82c9-4106-8766-3364b2847a92?api-version=2018-04-02" + ], + "x-ms-request-id": [ + "c44b52f3-a112-420f-b79b-ad9c6646106c" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-deletes": [ + "14999" + ], + "x-ms-correlation-request-id": [ + "fb7851b6-6325-4fa7-816d-9a8ff76bf95a" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180911T174300Z:fb7851b6-6325-4fa7-816d-9a8ff76bf95a" + ], + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res3227/providers/Microsoft.StorageSync/storageSyncServices/sss-rscreate8414/registeredServers/0cdfe5e7-acef-4af0-b4b5-4eea47798a63?api-version=2018-04-02", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWQxNmY5YjMtYmJlMy00OGQ0LTkzMGEtMjdhNzRkY2EwMDNiL3Jlc291cmNlR3JvdXBzL3JlczMyMjcvcHJvdmlkZXJzL01pY3Jvc29mdC5TdG9yYWdlU3luYy9zdG9yYWdlU3luY1NlcnZpY2VzL3Nzcy1yc2NyZWF0ZTg0MTQvcmVnaXN0ZXJlZFNlcnZlcnMvMGNkZmU1ZTctYWNlZi00YWYwLWI0YjUtNGVlYTQ3Nzk4YTYzP2FwaS12ZXJzaW9uPTIwMTgtMDQtMDI=", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "87b93de1-c5a1-43f9-8f2b-0fe5f2a61575" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26328.01", + "Microsoft.Azure.Management.StorageSync.StorageSyncManagementClient/1.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 11 Sep 2018 17:43:23 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res3227/providers/microsoft.storagesync/storageSyncServices/sss-rscreate8414/workflows/067aee71-c69c-4c32-977b-a1b67f50c5fa/operationresults/f1c12baa-f3bd-4e91-a217-a6aa7b15425c?api-version=2018-04-02" + ], + "Retry-After": [ + "10" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res3227/providers/microsoft.storagesync/storageSyncServices/sss-rscreate8414/workflows/067aee71-c69c-4c32-977b-a1b67f50c5fa/operations/f1c12baa-f3bd-4e91-a217-a6aa7b15425c?api-version=2018-04-02" + ], + "x-ms-request-id": [ + "f4912324-3da1-4be5-8f30-68d63a8c641b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-deletes": [ + "14998" + ], + "x-ms-correlation-request-id": [ + "c992db52-bf4e-4316-855a-d76411352261" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180911T174324Z:c992db52-bf4e-4316-855a-d76411352261" + ], + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res3227/providers/Microsoft.StorageSync/storageSyncServices/sss-rscreate8414/registeredServers/0cdfe5e7-acef-4af0-b4b5-4eea47798a63?api-version=2018-04-02", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWQxNmY5YjMtYmJlMy00OGQ0LTkzMGEtMjdhNzRkY2EwMDNiL3Jlc291cmNlR3JvdXBzL3JlczMyMjcvcHJvdmlkZXJzL01pY3Jvc29mdC5TdG9yYWdlU3luYy9zdG9yYWdlU3luY1NlcnZpY2VzL3Nzcy1yc2NyZWF0ZTg0MTQvcmVnaXN0ZXJlZFNlcnZlcnMvMGNkZmU1ZTctYWNlZi00YWYwLWI0YjUtNGVlYTQ3Nzk4YTYzP2FwaS12ZXJzaW9uPTIwMTgtMDQtMDI=", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "a0932c3d-e70c-4616-a08e-82ed7e7815f5" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26328.01", + "Microsoft.Azure.Management.StorageSync.StorageSyncManagementClient/1.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 11 Sep 2018 17:44:19 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res3227/providers/microsoft.storagesync/storageSyncServices/sss-rscreate8414/workflows/6d8c3de2-39f8-4c0c-b5f9-137389a5b93a/operationresults/98a19a77-5c18-4c97-a96d-dd30610b616b?api-version=2018-04-02" + ], + "Retry-After": [ + "10" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res3227/providers/microsoft.storagesync/storageSyncServices/sss-rscreate8414/workflows/6d8c3de2-39f8-4c0c-b5f9-137389a5b93a/operations/98a19a77-5c18-4c97-a96d-dd30610b616b?api-version=2018-04-02" + ], + "x-ms-request-id": [ + "241f5532-75bc-4cfe-84af-6dfe77ce2314" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-deletes": [ + "14997" + ], + "x-ms-correlation-request-id": [ + "a69444b9-be02-4ced-9751-fbf45a8a3b53" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180911T174419Z:a69444b9-be02-4ced-9751-fbf45a8a3b53" + ], + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res3227/providers/microsoft.storagesync/storageSyncServices/sss-rscreate8414/workflows/ded5ce6f-b288-4bad-9f47-14502856e802/operations/3a4ed595-82c9-4106-8766-3364b2847a92?api-version=2018-04-02", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWQxNmY5YjMtYmJlMy00OGQ0LTkzMGEtMjdhNzRkY2EwMDNiL3Jlc291cmNlR3JvdXBzL3JlczMyMjcvcHJvdmlkZXJzL21pY3Jvc29mdC5zdG9yYWdlc3luYy9zdG9yYWdlU3luY1NlcnZpY2VzL3Nzcy1yc2NyZWF0ZTg0MTQvd29ya2Zsb3dzL2RlZDVjZTZmLWIyODgtNGJhZC05ZjQ3LTE0NTAyODU2ZTgwMi9vcGVyYXRpb25zLzNhNGVkNTk1LTgyYzktNDEwNi04NzY2LTMzNjRiMjg0N2E5Mj9hcGktdmVyc2lvbj0yMDE4LTA0LTAy", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26328.01", + "Microsoft.Azure.Management.StorageSync.StorageSyncManagementClient/1.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 11 Sep 2018 17:43:10 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "x-ms-request-id": [ + "15bbd65f-6a7d-442f-8265-9a9f79f436d0" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11999" + ], + "x-ms-correlation-request-id": [ + "f70c3f6b-be73-4ab6-94d3-08d1afb58c68" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180911T174310Z:f70c3f6b-be73-4ab6-94d3-08d1afb58c68" + ], + "Content-Length": [ + "545" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res3227/providers/microsoft.storagesync/storageSyncServices/sss-rscreate8414/workflow/ded5ce6f-b288-4bad-9f47-14502856e802/operationresults/3a4ed595-82c9-4106-8766-3364b2847a92\",\r\n \"name\": \"3a4ed595-82c9-4106-8766-3364b2847a92\",\r\n \"status\": \"Failed\",\r\n \"startTime\": \"2018-09-11T17:43:00.5702708Z\",\r\n \"endTime\": \"2018-09-11T17:43:02.4144782Z\",\r\n \"percentComplete\": null,\r\n \"error\": {\r\n \"code\": \"MgmtNotFound\",\r\n \"message\": \"Server '0cdfe5e7-acef-4af0-b4b5-4eea47798a63' does not exist.\"\r\n },\r\n \"properties\": {}\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res3227/providers/Microsoft.StorageSync/storageSyncServices/sss-rscreate8414/registeredServers/0cdfe5e7-acef-4af0-b4b5-4eea47798a63?api-version=2018-04-02", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWQxNmY5YjMtYmJlMy00OGQ0LTkzMGEtMjdhNzRkY2EwMDNiL3Jlc291cmNlR3JvdXBzL3JlczMyMjcvcHJvdmlkZXJzL01pY3Jvc29mdC5TdG9yYWdlU3luYy9zdG9yYWdlU3luY1NlcnZpY2VzL3Nzcy1yc2NyZWF0ZTg0MTQvcmVnaXN0ZXJlZFNlcnZlcnMvMGNkZmU1ZTctYWNlZi00YWYwLWI0YjUtNGVlYTQ3Nzk4YTYzP2FwaS12ZXJzaW9uPTIwMTgtMDQtMDI=", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"location\": \"west europe\",\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n },\r\n \"properties\": {\r\n \"serverCertificate\": \"\\\"MIIDEDCCAfigAwIBAgIQUB7fWz9pbodGHZwk+aVTRjANBgkqhkiG9w0BAQ0FADAwMS4wLAYDVQQDEyVhbmt1c2hiLXZtMDIubnRkZXYuY29ycC5taWNyb3NvZnQuY29tMB4XDTE4MDczMDIyNDc0NVoXDTE5MDczMTIyNDc0NVowMDEuMCwGA1UEAxMlYW5rdXNoYi12bTAyLm50ZGV2LmNvcnAubWljcm9zb2Z0LmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBALssKhJeisUWQGU1as0mZm7PO81SQPUnK2uE0wTaXpJYlsEn+J9GrSKGYnwUVsdHsvku8AWzvVTeOM3lg7Nmn9NdPsJP1BnzBXqIXWMOpzHrew4nPqS8KEz3/+Wqm5feQK5bpFS6MHUIgn1dXgf7Sal16yMNmzcDvtVCEIoV3eLsxbRx0MLZVa1Z9tCY3kuCIcTcrMNO4mB6NAvZ2Hh5U9Cxu8e9GaF5yzJ7nOVgiKxua4uo73eejuEEGmWq28OO2qZ2YVW0sQRySOVbuhu3gUpB2EbljnL3pCgRAJhui8oy0VlH4m5aoVK/AjOOYtWduaFoJP7LCtizREfhDMdT/SUCAwEAAaMmMCQwIgYDVR0lAQH/BBgwFgYIKwYBBQUHAwIGCisGAQQBgjcKAwwwDQYJKoZIhvcNAQENBQADggEBALR6fPRt1y4etxX1H65kn3iUOLfTa4kg2Lj+GbqjjkVJXQ9uiVL0qL6Usc1GMepUTqD0yuOfHH9sHJZdEs6N08CLpOjCAXqnelabGJ7vSEba1NxASXRGIdsgj7gpeXgH0G8+KRRRkHwp4+Ro0Gb0mXIwlbVxiMZ3zRUXzJxvITX9/fAfeQBvDhc0NpGKHBgINZFbImIzIsoDQId259n1RMBBgLRsuf17KROXQmPmHXJMfadmVC0CZgcpKr2r6n6aWYi1gUb6kliZi6Ikr4GoePUJz1w36xVhJw6mE1Oj/wZ1kPF/J092L48XqDYVZYD8zdBO+vGR52655Fn/niv3zcM=\\\"\",\r\n \"agentVersion\": \"3.2.0.0\",\r\n \"serverOSVersion\": \"10.0.14393.0\",\r\n \"lastHeartBeat\": \"\\\"2018-09-10T20:05:02.5134384Z\\\"\",\r\n \"serverRole\": \"Standalone\",\r\n \"serverId\": \"\\\"0cdfe5e7-acef-4af0-b4b5-4eea47798a63\\\"\",\r\n \"friendlyName\": \"ankushb-vm02.ntdev.corp.microsoft.com\"\r\n }\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "7b230085-e1e3-4eed-b50d-008af209c0e3" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26328.01", + "Microsoft.Azure.Management.StorageSync.StorageSyncManagementClient/1.0.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "1493" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 11 Sep 2018 17:43:11 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res3227/providers/microsoft.storagesync/storageSyncServices/sss-rscreate8414/workflows/e741ab57-99c0-4833-83e4-2c7af1143d68/operationresults/b52c65f5-c217-42d4-8839-7b1706f34f4d?api-version=2018-04-02" + ], + "Retry-After": [ + "10" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res3227/providers/microsoft.storagesync/storageSyncServices/sss-rscreate8414/workflows/e741ab57-99c0-4833-83e4-2c7af1143d68/operations/b52c65f5-c217-42d4-8839-7b1706f34f4d?api-version=2018-04-02" + ], + "x-ms-request-id": [ + "845cd94c-ebb8-4099-ac6c-1beb82a002e7" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1197" + ], + "x-ms-correlation-request-id": [ + "cd9fa205-95a7-4f74-929a-53b744d32726" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180911T174311Z:cd9fa205-95a7-4f74-929a-53b744d32726" + ], + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res3227/providers/microsoft.storagesync/storageSyncServices/sss-rscreate8414/workflows/e741ab57-99c0-4833-83e4-2c7af1143d68/operations/b52c65f5-c217-42d4-8839-7b1706f34f4d?api-version=2018-04-02", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWQxNmY5YjMtYmJlMy00OGQ0LTkzMGEtMjdhNzRkY2EwMDNiL3Jlc291cmNlR3JvdXBzL3JlczMyMjcvcHJvdmlkZXJzL21pY3Jvc29mdC5zdG9yYWdlc3luYy9zdG9yYWdlU3luY1NlcnZpY2VzL3Nzcy1yc2NyZWF0ZTg0MTQvd29ya2Zsb3dzL2U3NDFhYjU3LTk5YzAtNDgzMy04M2U0LTJjN2FmMTE0M2Q2OC9vcGVyYXRpb25zL2I1MmM2NWY1LWMyMTctNDJkNC04ODM5LTdiMTcwNmYzNGY0ZD9hcGktdmVyc2lvbj0yMDE4LTA0LTAy", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26328.01", + "Microsoft.Azure.Management.StorageSync.StorageSyncManagementClient/1.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 11 Sep 2018 17:43:21 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "x-ms-request-id": [ + "52ed5d01-c9e6-4fa0-8d38-d1b05456149f" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11998" + ], + "x-ms-correlation-request-id": [ + "de89ec68-bcbf-439e-aeaa-9adb6e96cac4" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180911T174322Z:de89ec68-bcbf-439e-aeaa-9adb6e96cac4" + ], + "Content-Length": [ + "454" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res3227/providers/microsoft.storagesync/storageSyncServices/sss-rscreate8414/workflow/e741ab57-99c0-4833-83e4-2c7af1143d68/operationresults/b52c65f5-c217-42d4-8839-7b1706f34f4d\",\r\n \"name\": \"b52c65f5-c217-42d4-8839-7b1706f34f4d\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-09-11T17:43:12.854779Z\",\r\n \"endTime\": \"2018-09-11T17:43:15.4642973Z\",\r\n \"percentComplete\": null,\r\n \"error\": null,\r\n \"properties\": {}\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res3227/providers/Microsoft.StorageSync/storageSyncServices/sss-rscreate8414/registeredServers/0cdfe5e7-acef-4af0-b4b5-4eea47798a63?api-version=2018-04-02", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWQxNmY5YjMtYmJlMy00OGQ0LTkzMGEtMjdhNzRkY2EwMDNiL3Jlc291cmNlR3JvdXBzL3JlczMyMjcvcHJvdmlkZXJzL01pY3Jvc29mdC5TdG9yYWdlU3luYy9zdG9yYWdlU3luY1NlcnZpY2VzL3Nzcy1yc2NyZWF0ZTg0MTQvcmVnaXN0ZXJlZFNlcnZlcnMvMGNkZmU1ZTctYWNlZi00YWYwLWI0YjUtNGVlYTQ3Nzk4YTYzP2FwaS12ZXJzaW9uPTIwMTgtMDQtMDI=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26328.01", + "Microsoft.Azure.Management.StorageSync.StorageSyncManagementClient/1.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 11 Sep 2018 17:43:22 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "x-ms-request-id": [ + "771b295c-28df-4778-a974-b8bc36775349" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11997" + ], + "x-ms-correlation-request-id": [ + "901dd74c-1ed5-47e9-b26f-130a6c91b413" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180911T174322Z:901dd74c-1ed5-47e9-b26f-130a6c91b413" + ], + "Content-Length": [ + "1285" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"location\": \"west europe\",\r\n \"properties\": {\r\n \"serverCertificate\": null,\r\n \"agentVersion\": \"3.2.0.0\",\r\n \"agentVersionStatus\": null,\r\n \"agentVersionExpirationDate\": null,\r\n \"serverOSVersion\": \"10.0.14393.0\",\r\n \"serverManagementtErrorCode\": 0,\r\n \"lastHeartBeat\": \"\\\"2018-09-10T20:05:02.5134384Z\\\"\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"serverRole\": \"Standalone\",\r\n \"clusterId\": \"\\\"00000000-0000-0000-0000-000000000000\\\"\",\r\n \"clusterName\": \"\",\r\n \"serverId\": \"\\\"0cdfe5e7-acef-4af0-b4b5-4eea47798a63\\\"\",\r\n \"storageSyncServiceUid\": \"\\\"24923bbb-d903-4d4a-b019-9480fc39dd15\\\"\",\r\n \"lastWorkflowId\": \"storageSyncServices/sss-rscreate8414/workflows/e741ab57-99c0-4833-83e4-2c7af1143d68\",\r\n \"lastOperationName\": \"ICreateRegisteredServerWorkflow\",\r\n \"friendlyName\": \"ankushb-vm02.ntdev.corp.microsoft.com\",\r\n \"monitoringConfiguration\": null,\r\n \"managementEndpointUri\": \"\\\"https://kailani6.one.microsoft.com:443/\\\"\",\r\n \"discoveryEndpointUri\": \"\\\"https://tm-kailani6.one.microsoft.com:443\\\"\",\r\n \"resourceLocation\": \"westeurope\",\r\n \"serviceLocation\": \"westeurope\"\r\n },\r\n \"id\": \"/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res3227/providers/microsoft.storagesync/storageSyncServices/sss-rscreate8414/registeredServers/0cdfe5e7-acef-4af0-b4b5-4eea47798a63\",\r\n \"name\": \"0cdfe5e7-acef-4af0-b4b5-4eea47798a63\",\r\n \"type\": \"microsoft.storagesync/storageSyncServices/registeredServers\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res3227/providers/microsoft.storagesync/storageSyncServices/sss-rscreate8414/workflows/067aee71-c69c-4c32-977b-a1b67f50c5fa/operations/f1c12baa-f3bd-4e91-a217-a6aa7b15425c?api-version=2018-04-02", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWQxNmY5YjMtYmJlMy00OGQ0LTkzMGEtMjdhNzRkY2EwMDNiL3Jlc291cmNlR3JvdXBzL3JlczMyMjcvcHJvdmlkZXJzL21pY3Jvc29mdC5zdG9yYWdlc3luYy9zdG9yYWdlU3luY1NlcnZpY2VzL3Nzcy1yc2NyZWF0ZTg0MTQvd29ya2Zsb3dzLzA2N2FlZTcxLWM2OWMtNGMzMi05NzdiLWExYjY3ZjUwYzVmYS9vcGVyYXRpb25zL2YxYzEyYmFhLWYzYmQtNGU5MS1hMjE3LWE2YWE3YjE1NDI1Yz9hcGktdmVyc2lvbj0yMDE4LTA0LTAy", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26328.01", + "Microsoft.Azure.Management.StorageSync.StorageSyncManagementClient/1.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 11 Sep 2018 17:43:34 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "x-ms-request-id": [ + "5bb1a4ab-5301-44c5-9aef-2bbfe06997a9" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11996" + ], + "x-ms-correlation-request-id": [ + "28de242d-66b6-493b-ace6-90dc28896567" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180911T174335Z:28de242d-66b6-493b-ace6-90dc28896567" + ], + "Content-Length": [ + "453" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res3227/providers/microsoft.storagesync/storageSyncServices/sss-rscreate8414/workflow/067aee71-c69c-4c32-977b-a1b67f50c5fa/operationresults/f1c12baa-f3bd-4e91-a217-a6aa7b15425c\",\r\n \"name\": \"f1c12baa-f3bd-4e91-a217-a6aa7b15425c\",\r\n \"status\": \"delayStep\",\r\n \"startTime\": \"2018-09-11T17:43:25.215039Z\",\r\n \"endTime\": \"2018-09-11T17:43:27.261501Z\",\r\n \"percentComplete\": null,\r\n \"error\": null,\r\n \"properties\": {}\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res3227/providers/microsoft.storagesync/storageSyncServices/sss-rscreate8414/workflows/067aee71-c69c-4c32-977b-a1b67f50c5fa/operations/f1c12baa-f3bd-4e91-a217-a6aa7b15425c?api-version=2018-04-02", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWQxNmY5YjMtYmJlMy00OGQ0LTkzMGEtMjdhNzRkY2EwMDNiL3Jlc291cmNlR3JvdXBzL3JlczMyMjcvcHJvdmlkZXJzL21pY3Jvc29mdC5zdG9yYWdlc3luYy9zdG9yYWdlU3luY1NlcnZpY2VzL3Nzcy1yc2NyZWF0ZTg0MTQvd29ya2Zsb3dzLzA2N2FlZTcxLWM2OWMtNGMzMi05NzdiLWExYjY3ZjUwYzVmYS9vcGVyYXRpb25zL2YxYzEyYmFhLWYzYmQtNGU5MS1hMjE3LWE2YWE3YjE1NDI1Yz9hcGktdmVyc2lvbj0yMDE4LTA0LTAy", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26328.01", + "Microsoft.Azure.Management.StorageSync.StorageSyncManagementClient/1.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 11 Sep 2018 17:43:44 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "x-ms-request-id": [ + "09bd5cff-632a-4c1f-b966-a5b927441e02" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11995" + ], + "x-ms-correlation-request-id": [ + "99b5e5d2-bee8-47d3-a68b-33d7765afd30" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180911T174345Z:99b5e5d2-bee8-47d3-a68b-33d7765afd30" + ], + "Content-Length": [ + "453" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res3227/providers/microsoft.storagesync/storageSyncServices/sss-rscreate8414/workflow/067aee71-c69c-4c32-977b-a1b67f50c5fa/operationresults/f1c12baa-f3bd-4e91-a217-a6aa7b15425c\",\r\n \"name\": \"f1c12baa-f3bd-4e91-a217-a6aa7b15425c\",\r\n \"status\": \"delayStep\",\r\n \"startTime\": \"2018-09-11T17:43:25.215039Z\",\r\n \"endTime\": \"2018-09-11T17:43:27.261501Z\",\r\n \"percentComplete\": null,\r\n \"error\": null,\r\n \"properties\": {}\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res3227/providers/microsoft.storagesync/storageSyncServices/sss-rscreate8414/workflows/067aee71-c69c-4c32-977b-a1b67f50c5fa/operations/f1c12baa-f3bd-4e91-a217-a6aa7b15425c?api-version=2018-04-02", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWQxNmY5YjMtYmJlMy00OGQ0LTkzMGEtMjdhNzRkY2EwMDNiL3Jlc291cmNlR3JvdXBzL3JlczMyMjcvcHJvdmlkZXJzL21pY3Jvc29mdC5zdG9yYWdlc3luYy9zdG9yYWdlU3luY1NlcnZpY2VzL3Nzcy1yc2NyZWF0ZTg0MTQvd29ya2Zsb3dzLzA2N2FlZTcxLWM2OWMtNGMzMi05NzdiLWExYjY3ZjUwYzVmYS9vcGVyYXRpb25zL2YxYzEyYmFhLWYzYmQtNGU5MS1hMjE3LWE2YWE3YjE1NDI1Yz9hcGktdmVyc2lvbj0yMDE4LTA0LTAy", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26328.01", + "Microsoft.Azure.Management.StorageSync.StorageSyncManagementClient/1.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 11 Sep 2018 17:43:55 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "x-ms-request-id": [ + "ce0060b5-6aa9-4b6f-b8e2-85c9dab147cd" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11994" + ], + "x-ms-correlation-request-id": [ + "143f16ee-9d5f-46cd-9f4d-2d0141079441" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180911T174356Z:143f16ee-9d5f-46cd-9f4d-2d0141079441" + ], + "Content-Length": [ + "453" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res3227/providers/microsoft.storagesync/storageSyncServices/sss-rscreate8414/workflow/067aee71-c69c-4c32-977b-a1b67f50c5fa/operationresults/f1c12baa-f3bd-4e91-a217-a6aa7b15425c\",\r\n \"name\": \"f1c12baa-f3bd-4e91-a217-a6aa7b15425c\",\r\n \"status\": \"delayStep\",\r\n \"startTime\": \"2018-09-11T17:43:25.215039Z\",\r\n \"endTime\": \"2018-09-11T17:43:27.261501Z\",\r\n \"percentComplete\": null,\r\n \"error\": null,\r\n \"properties\": {}\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res3227/providers/microsoft.storagesync/storageSyncServices/sss-rscreate8414/workflows/067aee71-c69c-4c32-977b-a1b67f50c5fa/operations/f1c12baa-f3bd-4e91-a217-a6aa7b15425c?api-version=2018-04-02", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWQxNmY5YjMtYmJlMy00OGQ0LTkzMGEtMjdhNzRkY2EwMDNiL3Jlc291cmNlR3JvdXBzL3JlczMyMjcvcHJvdmlkZXJzL21pY3Jvc29mdC5zdG9yYWdlc3luYy9zdG9yYWdlU3luY1NlcnZpY2VzL3Nzcy1yc2NyZWF0ZTg0MTQvd29ya2Zsb3dzLzA2N2FlZTcxLWM2OWMtNGMzMi05NzdiLWExYjY3ZjUwYzVmYS9vcGVyYXRpb25zL2YxYzEyYmFhLWYzYmQtNGU5MS1hMjE3LWE2YWE3YjE1NDI1Yz9hcGktdmVyc2lvbj0yMDE4LTA0LTAy", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26328.01", + "Microsoft.Azure.Management.StorageSync.StorageSyncManagementClient/1.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 11 Sep 2018 17:44:07 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "x-ms-request-id": [ + "607c8761-c4ac-48ab-86e7-d96ae254c101" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11993" + ], + "x-ms-correlation-request-id": [ + "0ae268d1-3f3b-401f-8e38-a0a03a873752" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180911T174407Z:0ae268d1-3f3b-401f-8e38-a0a03a873752" + ], + "Content-Length": [ + "453" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res3227/providers/microsoft.storagesync/storageSyncServices/sss-rscreate8414/workflow/067aee71-c69c-4c32-977b-a1b67f50c5fa/operationresults/f1c12baa-f3bd-4e91-a217-a6aa7b15425c\",\r\n \"name\": \"f1c12baa-f3bd-4e91-a217-a6aa7b15425c\",\r\n \"status\": \"delayStep\",\r\n \"startTime\": \"2018-09-11T17:43:25.215039Z\",\r\n \"endTime\": \"2018-09-11T17:43:27.261501Z\",\r\n \"percentComplete\": null,\r\n \"error\": null,\r\n \"properties\": {}\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res3227/providers/microsoft.storagesync/storageSyncServices/sss-rscreate8414/workflows/067aee71-c69c-4c32-977b-a1b67f50c5fa/operations/f1c12baa-f3bd-4e91-a217-a6aa7b15425c?api-version=2018-04-02", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWQxNmY5YjMtYmJlMy00OGQ0LTkzMGEtMjdhNzRkY2EwMDNiL3Jlc291cmNlR3JvdXBzL3JlczMyMjcvcHJvdmlkZXJzL21pY3Jvc29mdC5zdG9yYWdlc3luYy9zdG9yYWdlU3luY1NlcnZpY2VzL3Nzcy1yc2NyZWF0ZTg0MTQvd29ya2Zsb3dzLzA2N2FlZTcxLWM2OWMtNGMzMi05NzdiLWExYjY3ZjUwYzVmYS9vcGVyYXRpb25zL2YxYzEyYmFhLWYzYmQtNGU5MS1hMjE3LWE2YWE3YjE1NDI1Yz9hcGktdmVyc2lvbj0yMDE4LTA0LTAy", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26328.01", + "Microsoft.Azure.Management.StorageSync.StorageSyncManagementClient/1.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 11 Sep 2018 17:44:17 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "x-ms-request-id": [ + "7f9b918e-fe82-4bff-8b2f-ce61963846f7" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11992" + ], + "x-ms-correlation-request-id": [ + "cb2026e0-c13f-490c-b964-6a6b4b5c91bb" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180911T174417Z:cb2026e0-c13f-490c-b964-6a6b4b5c91bb" + ], + "Content-Length": [ + "454" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res3227/providers/microsoft.storagesync/storageSyncServices/sss-rscreate8414/workflow/067aee71-c69c-4c32-977b-a1b67f50c5fa/operationresults/f1c12baa-f3bd-4e91-a217-a6aa7b15425c\",\r\n \"name\": \"f1c12baa-f3bd-4e91-a217-a6aa7b15425c\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-09-11T17:43:25.215039Z\",\r\n \"endTime\": \"2018-09-11T17:44:12.4795323Z\",\r\n \"percentComplete\": null,\r\n \"error\": null,\r\n \"properties\": {}\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res3227/providers/microsoft.storagesync/storageSyncServices/sss-rscreate8414/workflows/067aee71-c69c-4c32-977b-a1b67f50c5fa/operationresults/f1c12baa-f3bd-4e91-a217-a6aa7b15425c?api-version=2018-04-02", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWQxNmY5YjMtYmJlMy00OGQ0LTkzMGEtMjdhNzRkY2EwMDNiL3Jlc291cmNlR3JvdXBzL3JlczMyMjcvcHJvdmlkZXJzL21pY3Jvc29mdC5zdG9yYWdlc3luYy9zdG9yYWdlU3luY1NlcnZpY2VzL3Nzcy1yc2NyZWF0ZTg0MTQvd29ya2Zsb3dzLzA2N2FlZTcxLWM2OWMtNGMzMi05NzdiLWExYjY3ZjUwYzVmYS9vcGVyYXRpb25yZXN1bHRzL2YxYzEyYmFhLWYzYmQtNGU5MS1hMjE3LWE2YWE3YjE1NDI1Yz9hcGktdmVyc2lvbj0yMDE4LTA0LTAy", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26328.01", + "Microsoft.Azure.Management.StorageSync.StorageSyncManagementClient/1.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 11 Sep 2018 17:44:18 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "x-ms-request-id": [ + "4b921a08-7b30-40ca-830f-57523a3be6d3" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11991" + ], + "x-ms-correlation-request-id": [ + "8727cb02-a46b-42e5-a2e1-f1657d8f5164" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180911T174419Z:8727cb02-a46b-42e5-a2e1-f1657d8f5164" + ], + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res3227/providers/microsoft.storagesync/storageSyncServices/sss-rscreate8414/workflows/6d8c3de2-39f8-4c0c-b5f9-137389a5b93a/operations/98a19a77-5c18-4c97-a96d-dd30610b616b?api-version=2018-04-02", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWQxNmY5YjMtYmJlMy00OGQ0LTkzMGEtMjdhNzRkY2EwMDNiL3Jlc291cmNlR3JvdXBzL3JlczMyMjcvcHJvdmlkZXJzL21pY3Jvc29mdC5zdG9yYWdlc3luYy9zdG9yYWdlU3luY1NlcnZpY2VzL3Nzcy1yc2NyZWF0ZTg0MTQvd29ya2Zsb3dzLzZkOGMzZGUyLTM5ZjgtNGMwYy1iNWY5LTEzNzM4OWE1YjkzYS9vcGVyYXRpb25zLzk4YTE5YTc3LTVjMTgtNGM5Ny1hOTZkLWRkMzA2MTBiNjE2Yj9hcGktdmVyc2lvbj0yMDE4LTA0LTAy", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26328.01", + "Microsoft.Azure.Management.StorageSync.StorageSyncManagementClient/1.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 11 Sep 2018 17:44:30 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "x-ms-request-id": [ + "32b04c47-b39c-4726-b9f0-7259fc7612aa" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11990" + ], + "x-ms-correlation-request-id": [ + "74875ca0-01b6-4644-a33c-b8f203880f40" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180911T174430Z:74875ca0-01b6-4644-a33c-b8f203880f40" + ], + "Content-Length": [ + "455" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res3227/providers/microsoft.storagesync/storageSyncServices/sss-rscreate8414/workflow/6d8c3de2-39f8-4c0c-b5f9-137389a5b93a/operationresults/98a19a77-5c18-4c97-a96d-dd30610b616b\",\r\n \"name\": \"98a19a77-5c18-4c97-a96d-dd30610b616b\",\r\n \"status\": \"delayStep\",\r\n \"startTime\": \"2018-09-11T17:44:20.1161888Z\",\r\n \"endTime\": \"2018-09-11T17:44:22.0691413Z\",\r\n \"percentComplete\": null,\r\n \"error\": null,\r\n \"properties\": {}\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res3227/providers/microsoft.storagesync/storageSyncServices/sss-rscreate8414/workflows/6d8c3de2-39f8-4c0c-b5f9-137389a5b93a/operations/98a19a77-5c18-4c97-a96d-dd30610b616b?api-version=2018-04-02", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWQxNmY5YjMtYmJlMy00OGQ0LTkzMGEtMjdhNzRkY2EwMDNiL3Jlc291cmNlR3JvdXBzL3JlczMyMjcvcHJvdmlkZXJzL21pY3Jvc29mdC5zdG9yYWdlc3luYy9zdG9yYWdlU3luY1NlcnZpY2VzL3Nzcy1yc2NyZWF0ZTg0MTQvd29ya2Zsb3dzLzZkOGMzZGUyLTM5ZjgtNGMwYy1iNWY5LTEzNzM4OWE1YjkzYS9vcGVyYXRpb25zLzk4YTE5YTc3LTVjMTgtNGM5Ny1hOTZkLWRkMzA2MTBiNjE2Yj9hcGktdmVyc2lvbj0yMDE4LTA0LTAy", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26328.01", + "Microsoft.Azure.Management.StorageSync.StorageSyncManagementClient/1.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 11 Sep 2018 17:44:40 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "x-ms-request-id": [ + "0ed9345f-0a96-46b2-9c5b-fda763b4ba6c" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11989" + ], + "x-ms-correlation-request-id": [ + "7981e2c2-475c-4de8-b56a-56922071bfe7" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180911T174441Z:7981e2c2-475c-4de8-b56a-56922071bfe7" + ], + "Content-Length": [ + "455" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res3227/providers/microsoft.storagesync/storageSyncServices/sss-rscreate8414/workflow/6d8c3de2-39f8-4c0c-b5f9-137389a5b93a/operationresults/98a19a77-5c18-4c97-a96d-dd30610b616b\",\r\n \"name\": \"98a19a77-5c18-4c97-a96d-dd30610b616b\",\r\n \"status\": \"delayStep\",\r\n \"startTime\": \"2018-09-11T17:44:20.1161888Z\",\r\n \"endTime\": \"2018-09-11T17:44:22.0691413Z\",\r\n \"percentComplete\": null,\r\n \"error\": null,\r\n \"properties\": {}\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res3227/providers/microsoft.storagesync/storageSyncServices/sss-rscreate8414/workflows/6d8c3de2-39f8-4c0c-b5f9-137389a5b93a/operations/98a19a77-5c18-4c97-a96d-dd30610b616b?api-version=2018-04-02", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWQxNmY5YjMtYmJlMy00OGQ0LTkzMGEtMjdhNzRkY2EwMDNiL3Jlc291cmNlR3JvdXBzL3JlczMyMjcvcHJvdmlkZXJzL21pY3Jvc29mdC5zdG9yYWdlc3luYy9zdG9yYWdlU3luY1NlcnZpY2VzL3Nzcy1yc2NyZWF0ZTg0MTQvd29ya2Zsb3dzLzZkOGMzZGUyLTM5ZjgtNGMwYy1iNWY5LTEzNzM4OWE1YjkzYS9vcGVyYXRpb25zLzk4YTE5YTc3LTVjMTgtNGM5Ny1hOTZkLWRkMzA2MTBiNjE2Yj9hcGktdmVyc2lvbj0yMDE4LTA0LTAy", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26328.01", + "Microsoft.Azure.Management.StorageSync.StorageSyncManagementClient/1.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 11 Sep 2018 17:44:50 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "x-ms-request-id": [ + "35eb3610-8f46-4eb7-8a55-2e4de169d0ce" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11988" + ], + "x-ms-correlation-request-id": [ + "8f555ba0-8104-4652-b1f3-4a6dd9024cfa" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180911T174451Z:8f555ba0-8104-4652-b1f3-4a6dd9024cfa" + ], + "Content-Length": [ + "455" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res3227/providers/microsoft.storagesync/storageSyncServices/sss-rscreate8414/workflow/6d8c3de2-39f8-4c0c-b5f9-137389a5b93a/operationresults/98a19a77-5c18-4c97-a96d-dd30610b616b\",\r\n \"name\": \"98a19a77-5c18-4c97-a96d-dd30610b616b\",\r\n \"status\": \"delayStep\",\r\n \"startTime\": \"2018-09-11T17:44:20.1161888Z\",\r\n \"endTime\": \"2018-09-11T17:44:22.0691413Z\",\r\n \"percentComplete\": null,\r\n \"error\": null,\r\n \"properties\": {}\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res3227/providers/microsoft.storagesync/storageSyncServices/sss-rscreate8414/workflows/6d8c3de2-39f8-4c0c-b5f9-137389a5b93a/operations/98a19a77-5c18-4c97-a96d-dd30610b616b?api-version=2018-04-02", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWQxNmY5YjMtYmJlMy00OGQ0LTkzMGEtMjdhNzRkY2EwMDNiL3Jlc291cmNlR3JvdXBzL3JlczMyMjcvcHJvdmlkZXJzL21pY3Jvc29mdC5zdG9yYWdlc3luYy9zdG9yYWdlU3luY1NlcnZpY2VzL3Nzcy1yc2NyZWF0ZTg0MTQvd29ya2Zsb3dzLzZkOGMzZGUyLTM5ZjgtNGMwYy1iNWY5LTEzNzM4OWE1YjkzYS9vcGVyYXRpb25zLzk4YTE5YTc3LTVjMTgtNGM5Ny1hOTZkLWRkMzA2MTBiNjE2Yj9hcGktdmVyc2lvbj0yMDE4LTA0LTAy", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26328.01", + "Microsoft.Azure.Management.StorageSync.StorageSyncManagementClient/1.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 11 Sep 2018 17:45:01 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "x-ms-request-id": [ + "135ae2b8-bc6e-4fb3-85fe-b7c956be30ab" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11987" + ], + "x-ms-correlation-request-id": [ + "d62eaea8-9bef-49e8-af55-033e3ab33012" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180911T174502Z:d62eaea8-9bef-49e8-af55-033e3ab33012" + ], + "Content-Length": [ + "455" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res3227/providers/microsoft.storagesync/storageSyncServices/sss-rscreate8414/workflow/6d8c3de2-39f8-4c0c-b5f9-137389a5b93a/operationresults/98a19a77-5c18-4c97-a96d-dd30610b616b\",\r\n \"name\": \"98a19a77-5c18-4c97-a96d-dd30610b616b\",\r\n \"status\": \"delayStep\",\r\n \"startTime\": \"2018-09-11T17:44:20.1161888Z\",\r\n \"endTime\": \"2018-09-11T17:44:22.0691413Z\",\r\n \"percentComplete\": null,\r\n \"error\": null,\r\n \"properties\": {}\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res3227/providers/microsoft.storagesync/storageSyncServices/sss-rscreate8414/workflows/6d8c3de2-39f8-4c0c-b5f9-137389a5b93a/operations/98a19a77-5c18-4c97-a96d-dd30610b616b?api-version=2018-04-02", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWQxNmY5YjMtYmJlMy00OGQ0LTkzMGEtMjdhNzRkY2EwMDNiL3Jlc291cmNlR3JvdXBzL3JlczMyMjcvcHJvdmlkZXJzL21pY3Jvc29mdC5zdG9yYWdlc3luYy9zdG9yYWdlU3luY1NlcnZpY2VzL3Nzcy1yc2NyZWF0ZTg0MTQvd29ya2Zsb3dzLzZkOGMzZGUyLTM5ZjgtNGMwYy1iNWY5LTEzNzM4OWE1YjkzYS9vcGVyYXRpb25zLzk4YTE5YTc3LTVjMTgtNGM5Ny1hOTZkLWRkMzA2MTBiNjE2Yj9hcGktdmVyc2lvbj0yMDE4LTA0LTAy", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26328.01", + "Microsoft.Azure.Management.StorageSync.StorageSyncManagementClient/1.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 11 Sep 2018 17:45:12 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "x-ms-request-id": [ + "fa72a807-88b5-4208-836b-bafd1f094b2b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11986" + ], + "x-ms-correlation-request-id": [ + "489dc74f-d08c-405d-be8c-74c231eb13bd" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180911T174513Z:489dc74f-d08c-405d-be8c-74c231eb13bd" + ], + "Content-Length": [ + "455" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res3227/providers/microsoft.storagesync/storageSyncServices/sss-rscreate8414/workflow/6d8c3de2-39f8-4c0c-b5f9-137389a5b93a/operationresults/98a19a77-5c18-4c97-a96d-dd30610b616b\",\r\n \"name\": \"98a19a77-5c18-4c97-a96d-dd30610b616b\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-09-11T17:44:20.1161888Z\",\r\n \"endTime\": \"2018-09-11T17:45:07.4376631Z\",\r\n \"percentComplete\": null,\r\n \"error\": null,\r\n \"properties\": {}\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res3227/providers/microsoft.storagesync/storageSyncServices/sss-rscreate8414/workflows/6d8c3de2-39f8-4c0c-b5f9-137389a5b93a/operationresults/98a19a77-5c18-4c97-a96d-dd30610b616b?api-version=2018-04-02", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWQxNmY5YjMtYmJlMy00OGQ0LTkzMGEtMjdhNzRkY2EwMDNiL3Jlc291cmNlR3JvdXBzL3JlczMyMjcvcHJvdmlkZXJzL21pY3Jvc29mdC5zdG9yYWdlc3luYy9zdG9yYWdlU3luY1NlcnZpY2VzL3Nzcy1yc2NyZWF0ZTg0MTQvd29ya2Zsb3dzLzZkOGMzZGUyLTM5ZjgtNGMwYy1iNWY5LTEzNzM4OWE1YjkzYS9vcGVyYXRpb25yZXN1bHRzLzk4YTE5YTc3LTVjMTgtNGM5Ny1hOTZkLWRkMzA2MTBiNjE2Yj9hcGktdmVyc2lvbj0yMDE4LTA0LTAy", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26328.01", + "Microsoft.Azure.Management.StorageSync.StorageSyncManagementClient/1.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 11 Sep 2018 17:45:12 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "x-ms-request-id": [ + "612e2c6f-7271-4550-b956-8c05b3804afc" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11985" + ], + "x-ms-correlation-request-id": [ + "6028712a-b3ee-48b2-a8da-3739598b4e7c" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180911T174513Z:6028712a-b3ee-48b2-a8da-3739598b4e7c" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "", + "StatusCode": 204 + }, + { + "RequestUri": "/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res3227/providers/Microsoft.StorageSync/storageSyncServices/sss-rscreate8414?api-version=2018-04-02", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWQxNmY5YjMtYmJlMy00OGQ0LTkzMGEtMjdhNzRkY2EwMDNiL3Jlc291cmNlR3JvdXBzL3JlczMyMjcvcHJvdmlkZXJzL01pY3Jvc29mdC5TdG9yYWdlU3luYy9zdG9yYWdlU3luY1NlcnZpY2VzL3Nzcy1yc2NyZWF0ZTg0MTQ/YXBpLXZlcnNpb249MjAxOC0wNC0wMg==", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "836695ff-e2d9-41f5-bca1-0a5df2a0837b" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26328.01", + "Microsoft.Azure.Management.StorageSync.StorageSyncManagementClient/1.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 11 Sep 2018 17:45:17 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "x-ms-request-id": [ + "579b129c-6461-4d53-902b-03ba30e873f7" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-deletes": [ + "14996" + ], + "x-ms-correlation-request-id": [ + "f4696b9f-e290-4828-a8ce-39ec835cf645" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180911T174517Z:f4696b9f-e290-4828-a8ce-39ec835cf645" + ], + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourcegroups/res3227?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWQxNmY5YjMtYmJlMy00OGQ0LTkzMGEtMjdhNzRkY2EwMDNiL3Jlc291cmNlZ3JvdXBzL3JlczMyMjc/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "7eb5387f-1ab8-42dc-b95b-b28a0ebd4aea" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26328.01", + "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 11 Sep 2018 17:45:18 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1SRVMzMjI3LUVBU1RVUzIiLCJqb2JMb2NhdGlvbiI6ImVhc3R1czIifQ?api-version=2017-05-10" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-deletes": [ + "14995" + ], + "x-ms-request-id": [ + "f095eaa3-067f-427f-9ebe-078501661140" + ], + "x-ms-correlation-request-id": [ + "f095eaa3-067f-427f-9ebe-078501661140" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180911T174518Z:f095eaa3-067f-427f-9ebe-078501661140" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1SRVMzMjI3LUVBU1RVUzIiLCJqb2JMb2NhdGlvbiI6ImVhc3R1czIifQ?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWQxNmY5YjMtYmJlMy00OGQ0LTkzMGEtMjdhNzRkY2EwMDNiL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFTUlZNek1qSTNMVVZCVTFSVlV6SWlMQ0pxYjJKTWIyTmhkR2x2YmlJNkltVmhjM1IxY3pJaWZRP2FwaS12ZXJzaW9uPTIwMTctMDUtMTA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26328.01", + "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 11 Sep 2018 17:45:33 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1SRVMzMjI3LUVBU1RVUzIiLCJqb2JMb2NhdGlvbiI6ImVhc3R1czIifQ?api-version=2017-05-10" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11984" + ], + "x-ms-request-id": [ + "1c905950-cb23-4c8e-9652-4f55e858ba3d" + ], + "x-ms-correlation-request-id": [ + "1c905950-cb23-4c8e-9652-4f55e858ba3d" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180911T174533Z:1c905950-cb23-4c8e-9652-4f55e858ba3d" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1SRVMzMjI3LUVBU1RVUzIiLCJqb2JMb2NhdGlvbiI6ImVhc3R1czIifQ?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWQxNmY5YjMtYmJlMy00OGQ0LTkzMGEtMjdhNzRkY2EwMDNiL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFTUlZNek1qSTNMVVZCVTFSVlV6SWlMQ0pxYjJKTWIyTmhkR2x2YmlJNkltVmhjM1IxY3pJaWZRP2FwaS12ZXJzaW9uPTIwMTctMDUtMTA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26328.01", + "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 11 Sep 2018 17:45:48 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1SRVMzMjI3LUVBU1RVUzIiLCJqb2JMb2NhdGlvbiI6ImVhc3R1czIifQ?api-version=2017-05-10" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11983" + ], + "x-ms-request-id": [ + "887e0a44-9166-4418-b323-1782bb964e83" + ], + "x-ms-correlation-request-id": [ + "887e0a44-9166-4418-b323-1782bb964e83" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180911T174549Z:887e0a44-9166-4418-b323-1782bb964e83" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1SRVMzMjI3LUVBU1RVUzIiLCJqb2JMb2NhdGlvbiI6ImVhc3R1czIifQ?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWQxNmY5YjMtYmJlMy00OGQ0LTkzMGEtMjdhNzRkY2EwMDNiL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFTUlZNek1qSTNMVVZCVTFSVlV6SWlMQ0pxYjJKTWIyTmhkR2x2YmlJNkltVmhjM1IxY3pJaWZRP2FwaS12ZXJzaW9uPTIwMTctMDUtMTA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26328.01", + "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 11 Sep 2018 17:46:03 GMT" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11982" + ], + "x-ms-request-id": [ + "ed758173-6200-4892-85c9-8d31404931ce" + ], + "x-ms-correlation-request-id": [ + "ed758173-6200-4892-85c9-8d31404931ce" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180911T174604Z:ed758173-6200-4892-85c9-8d31404931ce" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1SRVMzMjI3LUVBU1RVUzIiLCJqb2JMb2NhdGlvbiI6ImVhc3R1czIifQ?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWQxNmY5YjMtYmJlMy00OGQ0LTkzMGEtMjdhNzRkY2EwMDNiL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFTUlZNek1qSTNMVVZCVTFSVlV6SWlMQ0pxYjJKTWIyTmhkR2x2YmlJNkltVmhjM1IxY3pJaWZRP2FwaS12ZXJzaW9uPTIwMTctMDUtMTA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26328.01", + "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 11 Sep 2018 17:46:03 GMT" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11981" + ], + "x-ms-request-id": [ + "39f932dc-46a0-4cae-b7fb-98e21418a4fb" + ], + "x-ms-correlation-request-id": [ + "39f932dc-46a0-4cae-b7fb-98e21418a4fb" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180911T174604Z:39f932dc-46a0-4cae-b7fb-98e21418a4fb" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "", + "StatusCode": 200 + } + ], + "Names": { + "CreateResourceGroup": [ + "res3227" + ], + "RegisteredServerDeleteTest": [ + "sss-rscreate8414", + "0cdfe5e7-acef-4af0-b4b5-4eea47798a63" + ] + }, + "Variables": { + "SubscriptionId": "1d16f9b3-bbe3-48d4-930a-27a74dca003b" + } +} \ No newline at end of file diff --git a/src/SDKs/StorageSync/StorageSync.Tests/SessionRecords/Microsoft.Azure.Management.StorageSync.Tests.RegisteredServerTests/RegisteredServerGetTest.json b/src/SDKs/StorageSync/StorageSync.Tests/SessionRecords/Microsoft.Azure.Management.StorageSync.Tests.RegisteredServerTests/RegisteredServerGetTest.json new file mode 100644 index 000000000000..5c8d126efcfa --- /dev/null +++ b/src/SDKs/StorageSync/StorageSync.Tests/SessionRecords/Microsoft.Azure.Management.StorageSync.Tests.RegisteredServerTests/RegisteredServerGetTest.json @@ -0,0 +1,1190 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourcegroups/res4280?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWQxNmY5YjMtYmJlMy00OGQ0LTkzMGEtMjdhNzRkY2EwMDNiL3Jlc291cmNlZ3JvdXBzL3JlczQyODA/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"location\": \"eastus2\"\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "6a16da5e-861e-43e2-9430-ad9128e10270" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26328.01", + "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "29" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 11 Sep 2018 17:46:09 GMT" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1199" + ], + "x-ms-request-id": [ + "a0943981-c41f-48fd-b972-8643772345e6" + ], + "x-ms-correlation-request-id": [ + "a0943981-c41f-48fd-b972-8643772345e6" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180911T174610Z:a0943981-c41f-48fd-b972-8643772345e6" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "168" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res4280\",\r\n \"name\": \"res4280\",\r\n \"location\": \"eastus2\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res4280/providers/Microsoft.StorageSync/storageSyncServices/sss-rsget8741?api-version=2018-04-02", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWQxNmY5YjMtYmJlMy00OGQ0LTkzMGEtMjdhNzRkY2EwMDNiL3Jlc291cmNlR3JvdXBzL3JlczQyODAvcHJvdmlkZXJzL01pY3Jvc29mdC5TdG9yYWdlU3luYy9zdG9yYWdlU3luY1NlcnZpY2VzL3Nzcy1yc2dldDg3NDE/YXBpLXZlcnNpb249MjAxOC0wNC0wMg==", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"location\": \"west europe\",\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n }\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "d199dea7-93ac-475d-b839-7a6938f43eff" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26328.01", + "Microsoft.Azure.Management.StorageSync.StorageSyncManagementClient/1.0.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "97" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 11 Sep 2018 17:46:12 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "x-ms-request-id": [ + "f6b3e772-8d88-46f3-81e2-a70d59f27208" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1198" + ], + "x-ms-correlation-request-id": [ + "c712f3c6-3077-4e35-b68a-fab31212956b" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180911T174613Z:c712f3c6-3077-4e35-b68a-fab31212956b" + ], + "Content-Length": [ + "399" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"properties\": {\r\n \"storageSyncServiceStatus\": null,\r\n \"storageSyncServiceUid\": \"00000000-0000-0000-0000-000000000000\"\r\n },\r\n \"location\": \"west europe\",\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n },\r\n \"id\": \"/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res4280/providers/microsoft.storagesync/storageSyncServices/sss-rsget8741\",\r\n \"name\": \"sss-rsget8741\",\r\n \"type\": \"microsoft.storagesync/storageSyncServices\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res4280/providers/Microsoft.StorageSync/storageSyncServices/sss-rsget8741/registeredServers/c2a111bd-53e1-48f8-aca1-fa5baf1a80a1?api-version=2018-04-02", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWQxNmY5YjMtYmJlMy00OGQ0LTkzMGEtMjdhNzRkY2EwMDNiL3Jlc291cmNlR3JvdXBzL3JlczQyODAvcHJvdmlkZXJzL01pY3Jvc29mdC5TdG9yYWdlU3luYy9zdG9yYWdlU3luY1NlcnZpY2VzL3Nzcy1yc2dldDg3NDEvcmVnaXN0ZXJlZFNlcnZlcnMvYzJhMTExYmQtNTNlMS00OGY4LWFjYTEtZmE1YmFmMWE4MGExP2FwaS12ZXJzaW9uPTIwMTgtMDQtMDI=", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"location\": \"west europe\",\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n },\r\n \"properties\": {\r\n \"serverCertificate\": \"\\\"MIIDEDCCAfigAwIBAgIQUB7fWz9pbodGHZwk+aVTRjANBgkqhkiG9w0BAQ0FADAwMS4wLAYDVQQDEyVhbmt1c2hiLXZtMDIubnRkZXYuY29ycC5taWNyb3NvZnQuY29tMB4XDTE4MDczMDIyNDc0NVoXDTE5MDczMTIyNDc0NVowMDEuMCwGA1UEAxMlYW5rdXNoYi12bTAyLm50ZGV2LmNvcnAubWljcm9zb2Z0LmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBALssKhJeisUWQGU1as0mZm7PO81SQPUnK2uE0wTaXpJYlsEn+J9GrSKGYnwUVsdHsvku8AWzvVTeOM3lg7Nmn9NdPsJP1BnzBXqIXWMOpzHrew4nPqS8KEz3/+Wqm5feQK5bpFS6MHUIgn1dXgf7Sal16yMNmzcDvtVCEIoV3eLsxbRx0MLZVa1Z9tCY3kuCIcTcrMNO4mB6NAvZ2Hh5U9Cxu8e9GaF5yzJ7nOVgiKxua4uo73eejuEEGmWq28OO2qZ2YVW0sQRySOVbuhu3gUpB2EbljnL3pCgRAJhui8oy0VlH4m5aoVK/AjOOYtWduaFoJP7LCtizREfhDMdT/SUCAwEAAaMmMCQwIgYDVR0lAQH/BBgwFgYIKwYBBQUHAwIGCisGAQQBgjcKAwwwDQYJKoZIhvcNAQENBQADggEBALR6fPRt1y4etxX1H65kn3iUOLfTa4kg2Lj+GbqjjkVJXQ9uiVL0qL6Usc1GMepUTqD0yuOfHH9sHJZdEs6N08CLpOjCAXqnelabGJ7vSEba1NxASXRGIdsgj7gpeXgH0G8+KRRRkHwp4+Ro0Gb0mXIwlbVxiMZ3zRUXzJxvITX9/fAfeQBvDhc0NpGKHBgINZFbImIzIsoDQId259n1RMBBgLRsuf17KROXQmPmHXJMfadmVC0CZgcpKr2r6n6aWYi1gUb6kliZi6Ikr4GoePUJz1w36xVhJw6mE1Oj/wZ1kPF/J092L48XqDYVZYD8zdBO+vGR52655Fn/niv3zcM=\\\"\",\r\n \"agentVersion\": \"3.2.0.0\",\r\n \"serverOSVersion\": \"10.0.14393.0\",\r\n \"lastHeartBeat\": \"\\\"2018-09-10T20:05:02.5134384Z\\\"\",\r\n \"serverRole\": \"Standalone\",\r\n \"serverId\": \"\\\"c2a111bd-53e1-48f8-aca1-fa5baf1a80a1\\\"\",\r\n \"friendlyName\": \"ankushb-vm02.ntdev.corp.microsoft.com\"\r\n }\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "768c3f0b-99ff-4ed9-8ad0-36bcdbb72268" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26328.01", + "Microsoft.Azure.Management.StorageSync.StorageSyncManagementClient/1.0.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "1493" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 11 Sep 2018 17:46:13 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res4280/providers/microsoft.storagesync/storageSyncServices/sss-rsget8741/workflows/f66a0ca2-3aba-41fc-9a56-6bfbb3329c5c/operationresults/1581b618-11d0-493e-ba46-4b32786d8aa0?api-version=2018-04-02" + ], + "Retry-After": [ + "10" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res4280/providers/microsoft.storagesync/storageSyncServices/sss-rsget8741/workflows/f66a0ca2-3aba-41fc-9a56-6bfbb3329c5c/operations/1581b618-11d0-493e-ba46-4b32786d8aa0?api-version=2018-04-02" + ], + "x-ms-request-id": [ + "7bbedb39-74f3-4f7b-a5a1-a40e72d51e07" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1197" + ], + "x-ms-correlation-request-id": [ + "e89ce6d2-b2db-40a0-94a6-639f9daf4d0d" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180911T174614Z:e89ce6d2-b2db-40a0-94a6-639f9daf4d0d" + ], + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res4280/providers/microsoft.storagesync/storageSyncServices/sss-rsget8741/workflows/f66a0ca2-3aba-41fc-9a56-6bfbb3329c5c/operations/1581b618-11d0-493e-ba46-4b32786d8aa0?api-version=2018-04-02", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWQxNmY5YjMtYmJlMy00OGQ0LTkzMGEtMjdhNzRkY2EwMDNiL3Jlc291cmNlR3JvdXBzL3JlczQyODAvcHJvdmlkZXJzL21pY3Jvc29mdC5zdG9yYWdlc3luYy9zdG9yYWdlU3luY1NlcnZpY2VzL3Nzcy1yc2dldDg3NDEvd29ya2Zsb3dzL2Y2NmEwY2EyLTNhYmEtNDFmYy05YTU2LTZiZmJiMzMyOWM1Yy9vcGVyYXRpb25zLzE1ODFiNjE4LTExZDAtNDkzZS1iYTQ2LTRiMzI3ODZkOGFhMD9hcGktdmVyc2lvbj0yMDE4LTA0LTAy", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26328.01", + "Microsoft.Azure.Management.StorageSync.StorageSyncManagementClient/1.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 11 Sep 2018 17:46:23 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "x-ms-request-id": [ + "e47ee1ea-4ec4-498a-abdf-a90c416beebf" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11999" + ], + "x-ms-correlation-request-id": [ + "d5ce55a6-aca5-4178-8e6e-a673ae519bed" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180911T174624Z:d5ce55a6-aca5-4178-8e6e-a673ae519bed" + ], + "Content-Length": [ + "452" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res4280/providers/microsoft.storagesync/storageSyncServices/sss-rsget8741/workflow/f66a0ca2-3aba-41fc-9a56-6bfbb3329c5c/operationresults/1581b618-11d0-493e-ba46-4b32786d8aa0\",\r\n \"name\": \"1581b618-11d0-493e-ba46-4b32786d8aa0\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-09-11T17:46:14.2170975Z\",\r\n \"endTime\": \"2018-09-11T17:46:16.5922242Z\",\r\n \"percentComplete\": null,\r\n \"error\": null,\r\n \"properties\": {}\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res4280/providers/Microsoft.StorageSync/storageSyncServices/sss-rsget8741/registeredServers/c2a111bd-53e1-48f8-aca1-fa5baf1a80a1?api-version=2018-04-02", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWQxNmY5YjMtYmJlMy00OGQ0LTkzMGEtMjdhNzRkY2EwMDNiL3Jlc291cmNlR3JvdXBzL3JlczQyODAvcHJvdmlkZXJzL01pY3Jvc29mdC5TdG9yYWdlU3luYy9zdG9yYWdlU3luY1NlcnZpY2VzL3Nzcy1yc2dldDg3NDEvcmVnaXN0ZXJlZFNlcnZlcnMvYzJhMTExYmQtNTNlMS00OGY4LWFjYTEtZmE1YmFmMWE4MGExP2FwaS12ZXJzaW9uPTIwMTgtMDQtMDI=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26328.01", + "Microsoft.Azure.Management.StorageSync.StorageSyncManagementClient/1.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 11 Sep 2018 17:46:25 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "x-ms-request-id": [ + "fbfac783-6405-497d-85c5-e60164f7adb6" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11998" + ], + "x-ms-correlation-request-id": [ + "76a46bd3-1167-41e3-adca-344b82747898" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180911T174625Z:76a46bd3-1167-41e3-adca-344b82747898" + ], + "Content-Length": [ + "1279" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"location\": \"west europe\",\r\n \"properties\": {\r\n \"serverCertificate\": null,\r\n \"agentVersion\": \"3.2.0.0\",\r\n \"agentVersionStatus\": null,\r\n \"agentVersionExpirationDate\": null,\r\n \"serverOSVersion\": \"10.0.14393.0\",\r\n \"serverManagementtErrorCode\": 0,\r\n \"lastHeartBeat\": \"\\\"2018-09-10T20:05:02.5134384Z\\\"\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"serverRole\": \"Standalone\",\r\n \"clusterId\": \"\\\"00000000-0000-0000-0000-000000000000\\\"\",\r\n \"clusterName\": \"\",\r\n \"serverId\": \"\\\"c2a111bd-53e1-48f8-aca1-fa5baf1a80a1\\\"\",\r\n \"storageSyncServiceUid\": \"\\\"4c454fd9-540d-4127-9db7-8b1f0f3cf322\\\"\",\r\n \"lastWorkflowId\": \"storageSyncServices/sss-rsget8741/workflows/f66a0ca2-3aba-41fc-9a56-6bfbb3329c5c\",\r\n \"lastOperationName\": \"ICreateRegisteredServerWorkflow\",\r\n \"friendlyName\": \"ankushb-vm02.ntdev.corp.microsoft.com\",\r\n \"monitoringConfiguration\": null,\r\n \"managementEndpointUri\": \"\\\"https://kailani6.one.microsoft.com:443/\\\"\",\r\n \"discoveryEndpointUri\": \"\\\"https://tm-kailani6.one.microsoft.com:443\\\"\",\r\n \"resourceLocation\": \"westeurope\",\r\n \"serviceLocation\": \"westeurope\"\r\n },\r\n \"id\": \"/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res4280/providers/microsoft.storagesync/storageSyncServices/sss-rsget8741/registeredServers/c2a111bd-53e1-48f8-aca1-fa5baf1a80a1\",\r\n \"name\": \"c2a111bd-53e1-48f8-aca1-fa5baf1a80a1\",\r\n \"type\": \"microsoft.storagesync/storageSyncServices/registeredServers\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res4280/providers/Microsoft.StorageSync/storageSyncServices/sss-rsget8741/registeredServers/c2a111bd-53e1-48f8-aca1-fa5baf1a80a1?api-version=2018-04-02", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWQxNmY5YjMtYmJlMy00OGQ0LTkzMGEtMjdhNzRkY2EwMDNiL3Jlc291cmNlR3JvdXBzL3JlczQyODAvcHJvdmlkZXJzL01pY3Jvc29mdC5TdG9yYWdlU3luYy9zdG9yYWdlU3luY1NlcnZpY2VzL3Nzcy1yc2dldDg3NDEvcmVnaXN0ZXJlZFNlcnZlcnMvYzJhMTExYmQtNTNlMS00OGY4LWFjYTEtZmE1YmFmMWE4MGExP2FwaS12ZXJzaW9uPTIwMTgtMDQtMDI=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "17052669-bdaa-4b92-b425-d5339c9601cc" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26328.01", + "Microsoft.Azure.Management.StorageSync.StorageSyncManagementClient/1.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 11 Sep 2018 17:46:26 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "x-ms-request-id": [ + "b1e4f707-2fe0-4c5c-b8eb-3e4dc584ae12" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11997" + ], + "x-ms-correlation-request-id": [ + "76eb4d73-22f9-44d6-ace2-019ffea7410d" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180911T174626Z:76eb4d73-22f9-44d6-ace2-019ffea7410d" + ], + "Content-Length": [ + "1279" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"location\": \"west europe\",\r\n \"properties\": {\r\n \"serverCertificate\": null,\r\n \"agentVersion\": \"3.2.0.0\",\r\n \"agentVersionStatus\": null,\r\n \"agentVersionExpirationDate\": null,\r\n \"serverOSVersion\": \"10.0.14393.0\",\r\n \"serverManagementtErrorCode\": 0,\r\n \"lastHeartBeat\": \"\\\"2018-09-10T20:05:02.5134384Z\\\"\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"serverRole\": \"Standalone\",\r\n \"clusterId\": \"\\\"00000000-0000-0000-0000-000000000000\\\"\",\r\n \"clusterName\": \"\",\r\n \"serverId\": \"\\\"c2a111bd-53e1-48f8-aca1-fa5baf1a80a1\\\"\",\r\n \"storageSyncServiceUid\": \"\\\"4c454fd9-540d-4127-9db7-8b1f0f3cf322\\\"\",\r\n \"lastWorkflowId\": \"storageSyncServices/sss-rsget8741/workflows/f66a0ca2-3aba-41fc-9a56-6bfbb3329c5c\",\r\n \"lastOperationName\": \"ICreateRegisteredServerWorkflow\",\r\n \"friendlyName\": \"ankushb-vm02.ntdev.corp.microsoft.com\",\r\n \"monitoringConfiguration\": null,\r\n \"managementEndpointUri\": \"\\\"https://kailani6.one.microsoft.com:443/\\\"\",\r\n \"discoveryEndpointUri\": \"\\\"https://tm-kailani6.one.microsoft.com:443\\\"\",\r\n \"resourceLocation\": \"westeurope\",\r\n \"serviceLocation\": \"westeurope\"\r\n },\r\n \"id\": \"/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res4280/providers/microsoft.storagesync/storageSyncServices/sss-rsget8741/registeredServers/c2a111bd-53e1-48f8-aca1-fa5baf1a80a1\",\r\n \"name\": \"c2a111bd-53e1-48f8-aca1-fa5baf1a80a1\",\r\n \"type\": \"microsoft.storagesync/storageSyncServices/registeredServers\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res4280/providers/Microsoft.StorageSync/storageSyncServices/sss-rsget8741/registeredServers/c2a111bd-53e1-48f8-aca1-fa5baf1a80a1?api-version=2018-04-02", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWQxNmY5YjMtYmJlMy00OGQ0LTkzMGEtMjdhNzRkY2EwMDNiL3Jlc291cmNlR3JvdXBzL3JlczQyODAvcHJvdmlkZXJzL01pY3Jvc29mdC5TdG9yYWdlU3luYy9zdG9yYWdlU3luY1NlcnZpY2VzL3Nzcy1yc2dldDg3NDEvcmVnaXN0ZXJlZFNlcnZlcnMvYzJhMTExYmQtNTNlMS00OGY4LWFjYTEtZmE1YmFmMWE4MGExP2FwaS12ZXJzaW9uPTIwMTgtMDQtMDI=", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "534e1648-e131-4b04-9f6a-832d7f572be2" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26328.01", + "Microsoft.Azure.Management.StorageSync.StorageSyncManagementClient/1.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 11 Sep 2018 17:46:26 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res4280/providers/microsoft.storagesync/storageSyncServices/sss-rsget8741/workflows/10cb4d78-edc2-4acf-bab8-3d51368abacd/operationresults/24a4888e-9f43-4c0d-8617-46bc965f6175?api-version=2018-04-02" + ], + "Retry-After": [ + "10" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res4280/providers/microsoft.storagesync/storageSyncServices/sss-rsget8741/workflows/10cb4d78-edc2-4acf-bab8-3d51368abacd/operations/24a4888e-9f43-4c0d-8617-46bc965f6175?api-version=2018-04-02" + ], + "x-ms-request-id": [ + "da204b8e-6df2-4060-ad0e-de759e552e73" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-deletes": [ + "14998" + ], + "x-ms-correlation-request-id": [ + "99eec7a7-4d40-4a9e-a9bd-6b5dd6df05dd" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180911T174626Z:99eec7a7-4d40-4a9e-a9bd-6b5dd6df05dd" + ], + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res4280/providers/microsoft.storagesync/storageSyncServices/sss-rsget8741/workflows/10cb4d78-edc2-4acf-bab8-3d51368abacd/operations/24a4888e-9f43-4c0d-8617-46bc965f6175?api-version=2018-04-02", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWQxNmY5YjMtYmJlMy00OGQ0LTkzMGEtMjdhNzRkY2EwMDNiL3Jlc291cmNlR3JvdXBzL3JlczQyODAvcHJvdmlkZXJzL21pY3Jvc29mdC5zdG9yYWdlc3luYy9zdG9yYWdlU3luY1NlcnZpY2VzL3Nzcy1yc2dldDg3NDEvd29ya2Zsb3dzLzEwY2I0ZDc4LWVkYzItNGFjZi1iYWI4LTNkNTEzNjhhYmFjZC9vcGVyYXRpb25zLzI0YTQ4ODhlLTlmNDMtNGMwZC04NjE3LTQ2YmM5NjVmNjE3NT9hcGktdmVyc2lvbj0yMDE4LTA0LTAy", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26328.01", + "Microsoft.Azure.Management.StorageSync.StorageSyncManagementClient/1.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 11 Sep 2018 17:46:37 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "x-ms-request-id": [ + "99791b22-b6b6-492a-b62c-e59c0da1ba2c" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11996" + ], + "x-ms-correlation-request-id": [ + "9d7f70da-41d6-4c70-b90b-14385426c587" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180911T174637Z:9d7f70da-41d6-4c70-b90b-14385426c587" + ], + "Content-Length": [ + "452" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res4280/providers/microsoft.storagesync/storageSyncServices/sss-rsget8741/workflow/10cb4d78-edc2-4acf-bab8-3d51368abacd/operationresults/24a4888e-9f43-4c0d-8617-46bc965f6175\",\r\n \"name\": \"24a4888e-9f43-4c0d-8617-46bc965f6175\",\r\n \"status\": \"delayStep\",\r\n \"startTime\": \"2018-09-11T17:46:27.0645343Z\",\r\n \"endTime\": \"2018-09-11T17:46:29.5308876Z\",\r\n \"percentComplete\": null,\r\n \"error\": null,\r\n \"properties\": {}\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res4280/providers/microsoft.storagesync/storageSyncServices/sss-rsget8741/workflows/10cb4d78-edc2-4acf-bab8-3d51368abacd/operations/24a4888e-9f43-4c0d-8617-46bc965f6175?api-version=2018-04-02", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWQxNmY5YjMtYmJlMy00OGQ0LTkzMGEtMjdhNzRkY2EwMDNiL3Jlc291cmNlR3JvdXBzL3JlczQyODAvcHJvdmlkZXJzL21pY3Jvc29mdC5zdG9yYWdlc3luYy9zdG9yYWdlU3luY1NlcnZpY2VzL3Nzcy1yc2dldDg3NDEvd29ya2Zsb3dzLzEwY2I0ZDc4LWVkYzItNGFjZi1iYWI4LTNkNTEzNjhhYmFjZC9vcGVyYXRpb25zLzI0YTQ4ODhlLTlmNDMtNGMwZC04NjE3LTQ2YmM5NjVmNjE3NT9hcGktdmVyc2lvbj0yMDE4LTA0LTAy", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26328.01", + "Microsoft.Azure.Management.StorageSync.StorageSyncManagementClient/1.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 11 Sep 2018 17:46:47 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "x-ms-request-id": [ + "46297f9a-de4b-43e5-89d2-c933938ba5cc" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11995" + ], + "x-ms-correlation-request-id": [ + "95a0ef0a-b4e6-4d40-accd-251c1e04d95c" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180911T174648Z:95a0ef0a-b4e6-4d40-accd-251c1e04d95c" + ], + "Content-Length": [ + "452" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res4280/providers/microsoft.storagesync/storageSyncServices/sss-rsget8741/workflow/10cb4d78-edc2-4acf-bab8-3d51368abacd/operationresults/24a4888e-9f43-4c0d-8617-46bc965f6175\",\r\n \"name\": \"24a4888e-9f43-4c0d-8617-46bc965f6175\",\r\n \"status\": \"delayStep\",\r\n \"startTime\": \"2018-09-11T17:46:27.0645343Z\",\r\n \"endTime\": \"2018-09-11T17:46:29.5308876Z\",\r\n \"percentComplete\": null,\r\n \"error\": null,\r\n \"properties\": {}\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res4280/providers/microsoft.storagesync/storageSyncServices/sss-rsget8741/workflows/10cb4d78-edc2-4acf-bab8-3d51368abacd/operations/24a4888e-9f43-4c0d-8617-46bc965f6175?api-version=2018-04-02", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWQxNmY5YjMtYmJlMy00OGQ0LTkzMGEtMjdhNzRkY2EwMDNiL3Jlc291cmNlR3JvdXBzL3JlczQyODAvcHJvdmlkZXJzL21pY3Jvc29mdC5zdG9yYWdlc3luYy9zdG9yYWdlU3luY1NlcnZpY2VzL3Nzcy1yc2dldDg3NDEvd29ya2Zsb3dzLzEwY2I0ZDc4LWVkYzItNGFjZi1iYWI4LTNkNTEzNjhhYmFjZC9vcGVyYXRpb25zLzI0YTQ4ODhlLTlmNDMtNGMwZC04NjE3LTQ2YmM5NjVmNjE3NT9hcGktdmVyc2lvbj0yMDE4LTA0LTAy", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26328.01", + "Microsoft.Azure.Management.StorageSync.StorageSyncManagementClient/1.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 11 Sep 2018 17:46:58 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "x-ms-request-id": [ + "67daecfa-93c3-444c-b340-b1c62a3a3765" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11994" + ], + "x-ms-correlation-request-id": [ + "bb15e901-e875-46cf-b972-7e8c894b84be" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180911T174658Z:bb15e901-e875-46cf-b972-7e8c894b84be" + ], + "Content-Length": [ + "452" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res4280/providers/microsoft.storagesync/storageSyncServices/sss-rsget8741/workflow/10cb4d78-edc2-4acf-bab8-3d51368abacd/operationresults/24a4888e-9f43-4c0d-8617-46bc965f6175\",\r\n \"name\": \"24a4888e-9f43-4c0d-8617-46bc965f6175\",\r\n \"status\": \"delayStep\",\r\n \"startTime\": \"2018-09-11T17:46:27.0645343Z\",\r\n \"endTime\": \"2018-09-11T17:46:29.5308876Z\",\r\n \"percentComplete\": null,\r\n \"error\": null,\r\n \"properties\": {}\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res4280/providers/microsoft.storagesync/storageSyncServices/sss-rsget8741/workflows/10cb4d78-edc2-4acf-bab8-3d51368abacd/operations/24a4888e-9f43-4c0d-8617-46bc965f6175?api-version=2018-04-02", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWQxNmY5YjMtYmJlMy00OGQ0LTkzMGEtMjdhNzRkY2EwMDNiL3Jlc291cmNlR3JvdXBzL3JlczQyODAvcHJvdmlkZXJzL21pY3Jvc29mdC5zdG9yYWdlc3luYy9zdG9yYWdlU3luY1NlcnZpY2VzL3Nzcy1yc2dldDg3NDEvd29ya2Zsb3dzLzEwY2I0ZDc4LWVkYzItNGFjZi1iYWI4LTNkNTEzNjhhYmFjZC9vcGVyYXRpb25zLzI0YTQ4ODhlLTlmNDMtNGMwZC04NjE3LTQ2YmM5NjVmNjE3NT9hcGktdmVyc2lvbj0yMDE4LTA0LTAy", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26328.01", + "Microsoft.Azure.Management.StorageSync.StorageSyncManagementClient/1.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 11 Sep 2018 17:47:08 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "x-ms-request-id": [ + "c94bcd96-7e0e-4513-88ec-2f20d1209e61" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11993" + ], + "x-ms-correlation-request-id": [ + "f9736a7e-1a1a-4ad2-bab5-b09a5d6a0130" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180911T174709Z:f9736a7e-1a1a-4ad2-bab5-b09a5d6a0130" + ], + "Content-Length": [ + "452" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res4280/providers/microsoft.storagesync/storageSyncServices/sss-rsget8741/workflow/10cb4d78-edc2-4acf-bab8-3d51368abacd/operationresults/24a4888e-9f43-4c0d-8617-46bc965f6175\",\r\n \"name\": \"24a4888e-9f43-4c0d-8617-46bc965f6175\",\r\n \"status\": \"delayStep\",\r\n \"startTime\": \"2018-09-11T17:46:27.0645343Z\",\r\n \"endTime\": \"2018-09-11T17:46:29.5308876Z\",\r\n \"percentComplete\": null,\r\n \"error\": null,\r\n \"properties\": {}\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res4280/providers/microsoft.storagesync/storageSyncServices/sss-rsget8741/workflows/10cb4d78-edc2-4acf-bab8-3d51368abacd/operations/24a4888e-9f43-4c0d-8617-46bc965f6175?api-version=2018-04-02", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWQxNmY5YjMtYmJlMy00OGQ0LTkzMGEtMjdhNzRkY2EwMDNiL3Jlc291cmNlR3JvdXBzL3JlczQyODAvcHJvdmlkZXJzL21pY3Jvc29mdC5zdG9yYWdlc3luYy9zdG9yYWdlU3luY1NlcnZpY2VzL3Nzcy1yc2dldDg3NDEvd29ya2Zsb3dzLzEwY2I0ZDc4LWVkYzItNGFjZi1iYWI4LTNkNTEzNjhhYmFjZC9vcGVyYXRpb25zLzI0YTQ4ODhlLTlmNDMtNGMwZC04NjE3LTQ2YmM5NjVmNjE3NT9hcGktdmVyc2lvbj0yMDE4LTA0LTAy", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26328.01", + "Microsoft.Azure.Management.StorageSync.StorageSyncManagementClient/1.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 11 Sep 2018 17:47:19 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "x-ms-request-id": [ + "121ca784-76fc-4056-81bb-96ad6025752d" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11992" + ], + "x-ms-correlation-request-id": [ + "0bfbcfb4-faf4-4745-ac2d-62fabc1f8733" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180911T174719Z:0bfbcfb4-faf4-4745-ac2d-62fabc1f8733" + ], + "Content-Length": [ + "452" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res4280/providers/microsoft.storagesync/storageSyncServices/sss-rsget8741/workflow/10cb4d78-edc2-4acf-bab8-3d51368abacd/operationresults/24a4888e-9f43-4c0d-8617-46bc965f6175\",\r\n \"name\": \"24a4888e-9f43-4c0d-8617-46bc965f6175\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-09-11T17:46:27.0645343Z\",\r\n \"endTime\": \"2018-09-11T17:47:15.0027072Z\",\r\n \"percentComplete\": null,\r\n \"error\": null,\r\n \"properties\": {}\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res4280/providers/microsoft.storagesync/storageSyncServices/sss-rsget8741/workflows/10cb4d78-edc2-4acf-bab8-3d51368abacd/operationresults/24a4888e-9f43-4c0d-8617-46bc965f6175?api-version=2018-04-02", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWQxNmY5YjMtYmJlMy00OGQ0LTkzMGEtMjdhNzRkY2EwMDNiL3Jlc291cmNlR3JvdXBzL3JlczQyODAvcHJvdmlkZXJzL21pY3Jvc29mdC5zdG9yYWdlc3luYy9zdG9yYWdlU3luY1NlcnZpY2VzL3Nzcy1yc2dldDg3NDEvd29ya2Zsb3dzLzEwY2I0ZDc4LWVkYzItNGFjZi1iYWI4LTNkNTEzNjhhYmFjZC9vcGVyYXRpb25yZXN1bHRzLzI0YTQ4ODhlLTlmNDMtNGMwZC04NjE3LTQ2YmM5NjVmNjE3NT9hcGktdmVyc2lvbj0yMDE4LTA0LTAy", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26328.01", + "Microsoft.Azure.Management.StorageSync.StorageSyncManagementClient/1.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 11 Sep 2018 17:47:19 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "x-ms-request-id": [ + "0e64dc71-9fae-495f-b40b-bf5aa3d0ff06" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11991" + ], + "x-ms-correlation-request-id": [ + "514657d2-51a5-423b-8b43-79fa9d2662f2" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180911T174720Z:514657d2-51a5-423b-8b43-79fa9d2662f2" + ], + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res4280/providers/Microsoft.StorageSync/storageSyncServices/sss-rsget8741?api-version=2018-04-02", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWQxNmY5YjMtYmJlMy00OGQ0LTkzMGEtMjdhNzRkY2EwMDNiL3Jlc291cmNlR3JvdXBzL3JlczQyODAvcHJvdmlkZXJzL01pY3Jvc29mdC5TdG9yYWdlU3luYy9zdG9yYWdlU3luY1NlcnZpY2VzL3Nzcy1yc2dldDg3NDE/YXBpLXZlcnNpb249MjAxOC0wNC0wMg==", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "bdafd351-cfa2-4ae7-99a7-8b78c75bc214" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26328.01", + "Microsoft.Azure.Management.StorageSync.StorageSyncManagementClient/1.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 11 Sep 2018 17:47:22 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "x-ms-request-id": [ + "a881ef38-9fc6-45a5-aa04-de2750805b54" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-deletes": [ + "14997" + ], + "x-ms-correlation-request-id": [ + "945571ae-245a-4ab8-8eb1-f0187526c539" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180911T174723Z:945571ae-245a-4ab8-8eb1-f0187526c539" + ], + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourcegroups/res4280?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWQxNmY5YjMtYmJlMy00OGQ0LTkzMGEtMjdhNzRkY2EwMDNiL3Jlc291cmNlZ3JvdXBzL3JlczQyODA/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "a7f87300-5aef-4c7c-8aaa-d525190795d4" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26328.01", + "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 11 Sep 2018 17:47:24 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1SRVM0MjgwLUVBU1RVUzIiLCJqb2JMb2NhdGlvbiI6ImVhc3R1czIifQ?api-version=2017-05-10" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-deletes": [ + "14996" + ], + "x-ms-request-id": [ + "e4c58162-812a-4307-adbc-1fe44bb30290" + ], + "x-ms-correlation-request-id": [ + "e4c58162-812a-4307-adbc-1fe44bb30290" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180911T174724Z:e4c58162-812a-4307-adbc-1fe44bb30290" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1SRVM0MjgwLUVBU1RVUzIiLCJqb2JMb2NhdGlvbiI6ImVhc3R1czIifQ?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWQxNmY5YjMtYmJlMy00OGQ0LTkzMGEtMjdhNzRkY2EwMDNiL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFTUlZNME1qZ3dMVVZCVTFSVlV6SWlMQ0pxYjJKTWIyTmhkR2x2YmlJNkltVmhjM1IxY3pJaWZRP2FwaS12ZXJzaW9uPTIwMTctMDUtMTA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26328.01", + "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 11 Sep 2018 17:47:39 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1SRVM0MjgwLUVBU1RVUzIiLCJqb2JMb2NhdGlvbiI6ImVhc3R1czIifQ?api-version=2017-05-10" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11990" + ], + "x-ms-request-id": [ + "9b719d8f-379b-4221-99c8-ebdf3cad8025" + ], + "x-ms-correlation-request-id": [ + "9b719d8f-379b-4221-99c8-ebdf3cad8025" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180911T174739Z:9b719d8f-379b-4221-99c8-ebdf3cad8025" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1SRVM0MjgwLUVBU1RVUzIiLCJqb2JMb2NhdGlvbiI6ImVhc3R1czIifQ?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWQxNmY5YjMtYmJlMy00OGQ0LTkzMGEtMjdhNzRkY2EwMDNiL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFTUlZNME1qZ3dMVVZCVTFSVlV6SWlMQ0pxYjJKTWIyTmhkR2x2YmlJNkltVmhjM1IxY3pJaWZRP2FwaS12ZXJzaW9uPTIwMTctMDUtMTA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26328.01", + "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 11 Sep 2018 17:47:54 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1SRVM0MjgwLUVBU1RVUzIiLCJqb2JMb2NhdGlvbiI6ImVhc3R1czIifQ?api-version=2017-05-10" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11989" + ], + "x-ms-request-id": [ + "52423943-91e2-4dcf-a7b6-7e1555570ae6" + ], + "x-ms-correlation-request-id": [ + "52423943-91e2-4dcf-a7b6-7e1555570ae6" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180911T174754Z:52423943-91e2-4dcf-a7b6-7e1555570ae6" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1SRVM0MjgwLUVBU1RVUzIiLCJqb2JMb2NhdGlvbiI6ImVhc3R1czIifQ?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWQxNmY5YjMtYmJlMy00OGQ0LTkzMGEtMjdhNzRkY2EwMDNiL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFTUlZNME1qZ3dMVVZCVTFSVlV6SWlMQ0pxYjJKTWIyTmhkR2x2YmlJNkltVmhjM1IxY3pJaWZRP2FwaS12ZXJzaW9uPTIwMTctMDUtMTA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26328.01", + "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 11 Sep 2018 17:48:09 GMT" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11988" + ], + "x-ms-request-id": [ + "c51d750d-0a60-4769-bfe6-024ddd96c04a" + ], + "x-ms-correlation-request-id": [ + "c51d750d-0a60-4769-bfe6-024ddd96c04a" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180911T174809Z:c51d750d-0a60-4769-bfe6-024ddd96c04a" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1SRVM0MjgwLUVBU1RVUzIiLCJqb2JMb2NhdGlvbiI6ImVhc3R1czIifQ?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWQxNmY5YjMtYmJlMy00OGQ0LTkzMGEtMjdhNzRkY2EwMDNiL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFTUlZNME1qZ3dMVVZCVTFSVlV6SWlMQ0pxYjJKTWIyTmhkR2x2YmlJNkltVmhjM1IxY3pJaWZRP2FwaS12ZXJzaW9uPTIwMTctMDUtMTA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26328.01", + "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 11 Sep 2018 17:48:09 GMT" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11987" + ], + "x-ms-request-id": [ + "81e53251-6567-490f-88c2-1b953ff113a3" + ], + "x-ms-correlation-request-id": [ + "81e53251-6567-490f-88c2-1b953ff113a3" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180911T174809Z:81e53251-6567-490f-88c2-1b953ff113a3" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "", + "StatusCode": 200 + } + ], + "Names": { + "CreateResourceGroup": [ + "res4280" + ], + "RegisteredServerGetTest": [ + "sss-rsget8741", + "c2a111bd-53e1-48f8-aca1-fa5baf1a80a1" + ] + }, + "Variables": { + "SubscriptionId": "1d16f9b3-bbe3-48d4-930a-27a74dca003b" + } +} \ No newline at end of file diff --git a/src/SDKs/StorageSync/StorageSync.Tests/SessionRecords/Microsoft.Azure.Management.StorageSync.Tests.RegisteredServerTests/RegisteredServerListTest.json b/src/SDKs/StorageSync/StorageSync.Tests/SessionRecords/Microsoft.Azure.Management.StorageSync.Tests.RegisteredServerTests/RegisteredServerListTest.json new file mode 100644 index 000000000000..3ab5618699c7 --- /dev/null +++ b/src/SDKs/StorageSync/StorageSync.Tests/SessionRecords/Microsoft.Azure.Management.StorageSync.Tests.RegisteredServerTests/RegisteredServerListTest.json @@ -0,0 +1,1190 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourcegroups/res1661?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWQxNmY5YjMtYmJlMy00OGQ0LTkzMGEtMjdhNzRkY2EwMDNiL3Jlc291cmNlZ3JvdXBzL3JlczE2NjE/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"location\": \"eastus2\"\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "4f7892cf-0653-461d-8142-2571a56d66bd" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26328.01", + "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "29" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 11 Sep 2018 17:40:42 GMT" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1199" + ], + "x-ms-request-id": [ + "fed60525-9627-4677-b51f-d560b82685b9" + ], + "x-ms-correlation-request-id": [ + "fed60525-9627-4677-b51f-d560b82685b9" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180911T174043Z:fed60525-9627-4677-b51f-d560b82685b9" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "168" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res1661\",\r\n \"name\": \"res1661\",\r\n \"location\": \"eastus2\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res1661/providers/Microsoft.StorageSync/storageSyncServices/sss-rslist8441?api-version=2018-04-02", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWQxNmY5YjMtYmJlMy00OGQ0LTkzMGEtMjdhNzRkY2EwMDNiL3Jlc291cmNlR3JvdXBzL3JlczE2NjEvcHJvdmlkZXJzL01pY3Jvc29mdC5TdG9yYWdlU3luYy9zdG9yYWdlU3luY1NlcnZpY2VzL3Nzcy1yc2xpc3Q4NDQxP2FwaS12ZXJzaW9uPTIwMTgtMDQtMDI=", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"location\": \"west europe\",\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n }\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "a030d8a6-2dc2-43a6-a068-60ec995e5e91" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26328.01", + "Microsoft.Azure.Management.StorageSync.StorageSyncManagementClient/1.0.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "97" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 11 Sep 2018 17:40:46 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "x-ms-request-id": [ + "3701ddd7-6890-447f-a510-adb405ec66f9" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1198" + ], + "x-ms-correlation-request-id": [ + "6dd66e6a-98af-4e30-8afc-6678e2ebfb18" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180911T174047Z:6dd66e6a-98af-4e30-8afc-6678e2ebfb18" + ], + "Content-Length": [ + "401" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"properties\": {\r\n \"storageSyncServiceStatus\": null,\r\n \"storageSyncServiceUid\": \"00000000-0000-0000-0000-000000000000\"\r\n },\r\n \"location\": \"west europe\",\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n },\r\n \"id\": \"/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res1661/providers/microsoft.storagesync/storageSyncServices/sss-rslist8441\",\r\n \"name\": \"sss-rslist8441\",\r\n \"type\": \"microsoft.storagesync/storageSyncServices\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res1661/providers/Microsoft.StorageSync/storageSyncServices/sss-rslist8441/registeredServers/d4e94668-2ecf-47f0-a2b2-4efff8a15a83?api-version=2018-04-02", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWQxNmY5YjMtYmJlMy00OGQ0LTkzMGEtMjdhNzRkY2EwMDNiL3Jlc291cmNlR3JvdXBzL3JlczE2NjEvcHJvdmlkZXJzL01pY3Jvc29mdC5TdG9yYWdlU3luYy9zdG9yYWdlU3luY1NlcnZpY2VzL3Nzcy1yc2xpc3Q4NDQxL3JlZ2lzdGVyZWRTZXJ2ZXJzL2Q0ZTk0NjY4LTJlY2YtNDdmMC1hMmIyLTRlZmZmOGExNWE4Mz9hcGktdmVyc2lvbj0yMDE4LTA0LTAy", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"location\": \"west europe\",\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n },\r\n \"properties\": {\r\n \"serverCertificate\": \"\\\"MIIDEDCCAfigAwIBAgIQUB7fWz9pbodGHZwk+aVTRjANBgkqhkiG9w0BAQ0FADAwMS4wLAYDVQQDEyVhbmt1c2hiLXZtMDIubnRkZXYuY29ycC5taWNyb3NvZnQuY29tMB4XDTE4MDczMDIyNDc0NVoXDTE5MDczMTIyNDc0NVowMDEuMCwGA1UEAxMlYW5rdXNoYi12bTAyLm50ZGV2LmNvcnAubWljcm9zb2Z0LmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBALssKhJeisUWQGU1as0mZm7PO81SQPUnK2uE0wTaXpJYlsEn+J9GrSKGYnwUVsdHsvku8AWzvVTeOM3lg7Nmn9NdPsJP1BnzBXqIXWMOpzHrew4nPqS8KEz3/+Wqm5feQK5bpFS6MHUIgn1dXgf7Sal16yMNmzcDvtVCEIoV3eLsxbRx0MLZVa1Z9tCY3kuCIcTcrMNO4mB6NAvZ2Hh5U9Cxu8e9GaF5yzJ7nOVgiKxua4uo73eejuEEGmWq28OO2qZ2YVW0sQRySOVbuhu3gUpB2EbljnL3pCgRAJhui8oy0VlH4m5aoVK/AjOOYtWduaFoJP7LCtizREfhDMdT/SUCAwEAAaMmMCQwIgYDVR0lAQH/BBgwFgYIKwYBBQUHAwIGCisGAQQBgjcKAwwwDQYJKoZIhvcNAQENBQADggEBALR6fPRt1y4etxX1H65kn3iUOLfTa4kg2Lj+GbqjjkVJXQ9uiVL0qL6Usc1GMepUTqD0yuOfHH9sHJZdEs6N08CLpOjCAXqnelabGJ7vSEba1NxASXRGIdsgj7gpeXgH0G8+KRRRkHwp4+Ro0Gb0mXIwlbVxiMZ3zRUXzJxvITX9/fAfeQBvDhc0NpGKHBgINZFbImIzIsoDQId259n1RMBBgLRsuf17KROXQmPmHXJMfadmVC0CZgcpKr2r6n6aWYi1gUb6kliZi6Ikr4GoePUJz1w36xVhJw6mE1Oj/wZ1kPF/J092L48XqDYVZYD8zdBO+vGR52655Fn/niv3zcM=\\\"\",\r\n \"agentVersion\": \"3.2.0.0\",\r\n \"serverOSVersion\": \"10.0.14393.0\",\r\n \"lastHeartBeat\": \"\\\"2018-09-10T20:05:02.5134384Z\\\"\",\r\n \"serverRole\": \"Standalone\",\r\n \"serverId\": \"\\\"d4e94668-2ecf-47f0-a2b2-4efff8a15a83\\\"\",\r\n \"friendlyName\": \"ankushb-vm02.ntdev.corp.microsoft.com\"\r\n }\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "8c666530-b449-4bfb-ba32-81e1b9083abd" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26328.01", + "Microsoft.Azure.Management.StorageSync.StorageSyncManagementClient/1.0.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "1493" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 11 Sep 2018 17:40:47 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res1661/providers/microsoft.storagesync/storageSyncServices/sss-rslist8441/workflows/fd4358a1-95e2-4025-aefb-7874c43e78a0/operationresults/689e91c6-4142-4828-85a8-6bb284f5e1ac?api-version=2018-04-02" + ], + "Retry-After": [ + "10" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res1661/providers/microsoft.storagesync/storageSyncServices/sss-rslist8441/workflows/fd4358a1-95e2-4025-aefb-7874c43e78a0/operations/689e91c6-4142-4828-85a8-6bb284f5e1ac?api-version=2018-04-02" + ], + "x-ms-request-id": [ + "41a3ea64-e06f-4323-a62c-ca7f0bf6e3f9" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1197" + ], + "x-ms-correlation-request-id": [ + "0495f0a5-d33c-4123-8986-d6e700c5d3e3" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180911T174047Z:0495f0a5-d33c-4123-8986-d6e700c5d3e3" + ], + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res1661/providers/microsoft.storagesync/storageSyncServices/sss-rslist8441/workflows/fd4358a1-95e2-4025-aefb-7874c43e78a0/operations/689e91c6-4142-4828-85a8-6bb284f5e1ac?api-version=2018-04-02", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWQxNmY5YjMtYmJlMy00OGQ0LTkzMGEtMjdhNzRkY2EwMDNiL3Jlc291cmNlR3JvdXBzL3JlczE2NjEvcHJvdmlkZXJzL21pY3Jvc29mdC5zdG9yYWdlc3luYy9zdG9yYWdlU3luY1NlcnZpY2VzL3Nzcy1yc2xpc3Q4NDQxL3dvcmtmbG93cy9mZDQzNThhMS05NWUyLTQwMjUtYWVmYi03ODc0YzQzZTc4YTAvb3BlcmF0aW9ucy82ODllOTFjNi00MTQyLTQ4MjgtODVhOC02YmIyODRmNWUxYWM/YXBpLXZlcnNpb249MjAxOC0wNC0wMg==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26328.01", + "Microsoft.Azure.Management.StorageSync.StorageSyncManagementClient/1.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 11 Sep 2018 17:40:57 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "x-ms-request-id": [ + "bb5f73e3-274f-48d6-b76f-dc6722a6b464" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11996" + ], + "x-ms-correlation-request-id": [ + "93f5427f-793d-4dfc-af69-5649b3cf967d" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180911T174058Z:93f5427f-793d-4dfc-af69-5649b3cf967d" + ], + "Content-Length": [ + "453" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res1661/providers/microsoft.storagesync/storageSyncServices/sss-rslist8441/workflow/fd4358a1-95e2-4025-aefb-7874c43e78a0/operationresults/689e91c6-4142-4828-85a8-6bb284f5e1ac\",\r\n \"name\": \"689e91c6-4142-4828-85a8-6bb284f5e1ac\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-09-11T17:40:49.1795196Z\",\r\n \"endTime\": \"2018-09-11T17:40:52.7062451Z\",\r\n \"percentComplete\": null,\r\n \"error\": null,\r\n \"properties\": {}\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res1661/providers/Microsoft.StorageSync/storageSyncServices/sss-rslist8441/registeredServers/d4e94668-2ecf-47f0-a2b2-4efff8a15a83?api-version=2018-04-02", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWQxNmY5YjMtYmJlMy00OGQ0LTkzMGEtMjdhNzRkY2EwMDNiL3Jlc291cmNlR3JvdXBzL3JlczE2NjEvcHJvdmlkZXJzL01pY3Jvc29mdC5TdG9yYWdlU3luYy9zdG9yYWdlU3luY1NlcnZpY2VzL3Nzcy1yc2xpc3Q4NDQxL3JlZ2lzdGVyZWRTZXJ2ZXJzL2Q0ZTk0NjY4LTJlY2YtNDdmMC1hMmIyLTRlZmZmOGExNWE4Mz9hcGktdmVyc2lvbj0yMDE4LTA0LTAy", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26328.01", + "Microsoft.Azure.Management.StorageSync.StorageSyncManagementClient/1.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 11 Sep 2018 17:40:58 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "x-ms-request-id": [ + "571d0bad-0475-498a-9e7a-5e494480fb7d" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11995" + ], + "x-ms-correlation-request-id": [ + "cf6e006f-7532-4a01-bd3f-4b2ec8734d68" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180911T174059Z:cf6e006f-7532-4a01-bd3f-4b2ec8734d68" + ], + "Content-Length": [ + "1281" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"location\": \"west europe\",\r\n \"properties\": {\r\n \"serverCertificate\": null,\r\n \"agentVersion\": \"3.2.0.0\",\r\n \"agentVersionStatus\": null,\r\n \"agentVersionExpirationDate\": null,\r\n \"serverOSVersion\": \"10.0.14393.0\",\r\n \"serverManagementtErrorCode\": 0,\r\n \"lastHeartBeat\": \"\\\"2018-09-10T20:05:02.5134384Z\\\"\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"serverRole\": \"Standalone\",\r\n \"clusterId\": \"\\\"00000000-0000-0000-0000-000000000000\\\"\",\r\n \"clusterName\": \"\",\r\n \"serverId\": \"\\\"d4e94668-2ecf-47f0-a2b2-4efff8a15a83\\\"\",\r\n \"storageSyncServiceUid\": \"\\\"342b4ede-32b5-4afe-9bb9-94f039a36f00\\\"\",\r\n \"lastWorkflowId\": \"storageSyncServices/sss-rslist8441/workflows/fd4358a1-95e2-4025-aefb-7874c43e78a0\",\r\n \"lastOperationName\": \"ICreateRegisteredServerWorkflow\",\r\n \"friendlyName\": \"ankushb-vm02.ntdev.corp.microsoft.com\",\r\n \"monitoringConfiguration\": null,\r\n \"managementEndpointUri\": \"\\\"https://kailani6.one.microsoft.com:443/\\\"\",\r\n \"discoveryEndpointUri\": \"\\\"https://tm-kailani6.one.microsoft.com:443\\\"\",\r\n \"resourceLocation\": \"westeurope\",\r\n \"serviceLocation\": \"westeurope\"\r\n },\r\n \"id\": \"/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res1661/providers/microsoft.storagesync/storageSyncServices/sss-rslist8441/registeredServers/d4e94668-2ecf-47f0-a2b2-4efff8a15a83\",\r\n \"name\": \"d4e94668-2ecf-47f0-a2b2-4efff8a15a83\",\r\n \"type\": \"microsoft.storagesync/storageSyncServices/registeredServers\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res1661/providers/Microsoft.StorageSync/storageSyncServices/sss-rslist8441/registeredServers?api-version=2018-04-02", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWQxNmY5YjMtYmJlMy00OGQ0LTkzMGEtMjdhNzRkY2EwMDNiL3Jlc291cmNlR3JvdXBzL3JlczE2NjEvcHJvdmlkZXJzL01pY3Jvc29mdC5TdG9yYWdlU3luYy9zdG9yYWdlU3luY1NlcnZpY2VzL3Nzcy1yc2xpc3Q4NDQxL3JlZ2lzdGVyZWRTZXJ2ZXJzP2FwaS12ZXJzaW9uPTIwMTgtMDQtMDI=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "87bd4412-c2f6-4c74-9509-451e89ffb2a6" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26328.01", + "Microsoft.Azure.Management.StorageSync.StorageSyncManagementClient/1.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 11 Sep 2018 17:40:58 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "x-ms-request-id": [ + "339a9d43-81a4-4c06-b271-00b9103b6594" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11994" + ], + "x-ms-correlation-request-id": [ + "e5269cef-c276-4f50-8784-a07086424b95" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180911T174059Z:e5269cef-c276-4f50-8784-a07086424b95" + ], + "Content-Length": [ + "1293" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"location\": \"west europe\",\r\n \"properties\": {\r\n \"serverCertificate\": null,\r\n \"agentVersion\": \"3.2.0.0\",\r\n \"agentVersionStatus\": null,\r\n \"agentVersionExpirationDate\": null,\r\n \"serverOSVersion\": \"10.0.14393.0\",\r\n \"serverManagementtErrorCode\": 0,\r\n \"lastHeartBeat\": \"\\\"2018-09-10T20:05:02.5134384Z\\\"\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"serverRole\": \"Standalone\",\r\n \"clusterId\": \"\\\"00000000-0000-0000-0000-000000000000\\\"\",\r\n \"clusterName\": \"\",\r\n \"serverId\": \"\\\"d4e94668-2ecf-47f0-a2b2-4efff8a15a83\\\"\",\r\n \"storageSyncServiceUid\": \"\\\"342b4ede-32b5-4afe-9bb9-94f039a36f00\\\"\",\r\n \"lastWorkflowId\": \"storageSyncServices/sss-rslist8441/workflows/fd4358a1-95e2-4025-aefb-7874c43e78a0\",\r\n \"lastOperationName\": \"ICreateRegisteredServerWorkflow\",\r\n \"friendlyName\": \"ankushb-vm02.ntdev.corp.microsoft.com\",\r\n \"monitoringConfiguration\": null,\r\n \"managementEndpointUri\": \"\\\"https://kailani6.one.microsoft.com:443/\\\"\",\r\n \"discoveryEndpointUri\": \"\\\"https://tm-kailani6.one.microsoft.com:443\\\"\",\r\n \"resourceLocation\": \"westeurope\",\r\n \"serviceLocation\": \"westeurope\"\r\n },\r\n \"id\": \"/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res1661/providers/microsoft.storagesync/storageSyncServices/sss-rslist8441/registeredServers/d4e94668-2ecf-47f0-a2b2-4efff8a15a83\",\r\n \"name\": \"d4e94668-2ecf-47f0-a2b2-4efff8a15a83\",\r\n \"type\": \"microsoft.storagesync/storageSyncServices/registeredServers\"\r\n }\r\n ]\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res1661/providers/Microsoft.StorageSync/storageSyncServices/sss-rslist8441/registeredServers/d4e94668-2ecf-47f0-a2b2-4efff8a15a83?api-version=2018-04-02", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWQxNmY5YjMtYmJlMy00OGQ0LTkzMGEtMjdhNzRkY2EwMDNiL3Jlc291cmNlR3JvdXBzL3JlczE2NjEvcHJvdmlkZXJzL01pY3Jvc29mdC5TdG9yYWdlU3luYy9zdG9yYWdlU3luY1NlcnZpY2VzL3Nzcy1yc2xpc3Q4NDQxL3JlZ2lzdGVyZWRTZXJ2ZXJzL2Q0ZTk0NjY4LTJlY2YtNDdmMC1hMmIyLTRlZmZmOGExNWE4Mz9hcGktdmVyc2lvbj0yMDE4LTA0LTAy", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "4d4ad4cd-06a9-4568-98a1-e38d8c4f579b" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26328.01", + "Microsoft.Azure.Management.StorageSync.StorageSyncManagementClient/1.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 11 Sep 2018 17:40:59 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res1661/providers/microsoft.storagesync/storageSyncServices/sss-rslist8441/workflows/e1d2acb7-a531-451f-a1af-a5b8f4f45396/operationresults/faf765ff-fdec-44d5-9205-aaf22dc9c7d8?api-version=2018-04-02" + ], + "Retry-After": [ + "10" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res1661/providers/microsoft.storagesync/storageSyncServices/sss-rslist8441/workflows/e1d2acb7-a531-451f-a1af-a5b8f4f45396/operations/faf765ff-fdec-44d5-9205-aaf22dc9c7d8?api-version=2018-04-02" + ], + "x-ms-request-id": [ + "c8e8c0eb-0081-46c1-8a57-173ce112a30c" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-deletes": [ + "14999" + ], + "x-ms-correlation-request-id": [ + "aa37ca13-6833-411e-81ed-57e5de3b5b0e" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180911T174100Z:aa37ca13-6833-411e-81ed-57e5de3b5b0e" + ], + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res1661/providers/microsoft.storagesync/storageSyncServices/sss-rslist8441/workflows/e1d2acb7-a531-451f-a1af-a5b8f4f45396/operations/faf765ff-fdec-44d5-9205-aaf22dc9c7d8?api-version=2018-04-02", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWQxNmY5YjMtYmJlMy00OGQ0LTkzMGEtMjdhNzRkY2EwMDNiL3Jlc291cmNlR3JvdXBzL3JlczE2NjEvcHJvdmlkZXJzL21pY3Jvc29mdC5zdG9yYWdlc3luYy9zdG9yYWdlU3luY1NlcnZpY2VzL3Nzcy1yc2xpc3Q4NDQxL3dvcmtmbG93cy9lMWQyYWNiNy1hNTMxLTQ1MWYtYTFhZi1hNWI4ZjRmNDUzOTYvb3BlcmF0aW9ucy9mYWY3NjVmZi1mZGVjLTQ0ZDUtOTIwNS1hYWYyMmRjOWM3ZDg/YXBpLXZlcnNpb249MjAxOC0wNC0wMg==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26328.01", + "Microsoft.Azure.Management.StorageSync.StorageSyncManagementClient/1.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 11 Sep 2018 17:41:11 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "x-ms-request-id": [ + "c40437f2-0072-4b71-9d8d-7c4745f003bf" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11993" + ], + "x-ms-correlation-request-id": [ + "c7480d08-bae6-47ad-8724-eb4df53e8eb5" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180911T174111Z:c7480d08-bae6-47ad-8724-eb4df53e8eb5" + ], + "Content-Length": [ + "453" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res1661/providers/microsoft.storagesync/storageSyncServices/sss-rslist8441/workflow/e1d2acb7-a531-451f-a1af-a5b8f4f45396/operationresults/faf765ff-fdec-44d5-9205-aaf22dc9c7d8\",\r\n \"name\": \"faf765ff-fdec-44d5-9205-aaf22dc9c7d8\",\r\n \"status\": \"delayStep\",\r\n \"startTime\": \"2018-09-11T17:41:00.9462372Z\",\r\n \"endTime\": \"2018-09-11T17:41:02.9455511Z\",\r\n \"percentComplete\": null,\r\n \"error\": null,\r\n \"properties\": {}\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res1661/providers/microsoft.storagesync/storageSyncServices/sss-rslist8441/workflows/e1d2acb7-a531-451f-a1af-a5b8f4f45396/operations/faf765ff-fdec-44d5-9205-aaf22dc9c7d8?api-version=2018-04-02", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWQxNmY5YjMtYmJlMy00OGQ0LTkzMGEtMjdhNzRkY2EwMDNiL3Jlc291cmNlR3JvdXBzL3JlczE2NjEvcHJvdmlkZXJzL21pY3Jvc29mdC5zdG9yYWdlc3luYy9zdG9yYWdlU3luY1NlcnZpY2VzL3Nzcy1yc2xpc3Q4NDQxL3dvcmtmbG93cy9lMWQyYWNiNy1hNTMxLTQ1MWYtYTFhZi1hNWI4ZjRmNDUzOTYvb3BlcmF0aW9ucy9mYWY3NjVmZi1mZGVjLTQ0ZDUtOTIwNS1hYWYyMmRjOWM3ZDg/YXBpLXZlcnNpb249MjAxOC0wNC0wMg==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26328.01", + "Microsoft.Azure.Management.StorageSync.StorageSyncManagementClient/1.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 11 Sep 2018 17:41:21 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "x-ms-request-id": [ + "7021c283-41e1-486f-9b4b-1509a843df85" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11992" + ], + "x-ms-correlation-request-id": [ + "6fcedfa3-aecd-45e0-bc6f-31d337e77f9c" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180911T174122Z:6fcedfa3-aecd-45e0-bc6f-31d337e77f9c" + ], + "Content-Length": [ + "453" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res1661/providers/microsoft.storagesync/storageSyncServices/sss-rslist8441/workflow/e1d2acb7-a531-451f-a1af-a5b8f4f45396/operationresults/faf765ff-fdec-44d5-9205-aaf22dc9c7d8\",\r\n \"name\": \"faf765ff-fdec-44d5-9205-aaf22dc9c7d8\",\r\n \"status\": \"delayStep\",\r\n \"startTime\": \"2018-09-11T17:41:00.9462372Z\",\r\n \"endTime\": \"2018-09-11T17:41:02.9455511Z\",\r\n \"percentComplete\": null,\r\n \"error\": null,\r\n \"properties\": {}\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res1661/providers/microsoft.storagesync/storageSyncServices/sss-rslist8441/workflows/e1d2acb7-a531-451f-a1af-a5b8f4f45396/operations/faf765ff-fdec-44d5-9205-aaf22dc9c7d8?api-version=2018-04-02", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWQxNmY5YjMtYmJlMy00OGQ0LTkzMGEtMjdhNzRkY2EwMDNiL3Jlc291cmNlR3JvdXBzL3JlczE2NjEvcHJvdmlkZXJzL21pY3Jvc29mdC5zdG9yYWdlc3luYy9zdG9yYWdlU3luY1NlcnZpY2VzL3Nzcy1yc2xpc3Q4NDQxL3dvcmtmbG93cy9lMWQyYWNiNy1hNTMxLTQ1MWYtYTFhZi1hNWI4ZjRmNDUzOTYvb3BlcmF0aW9ucy9mYWY3NjVmZi1mZGVjLTQ0ZDUtOTIwNS1hYWYyMmRjOWM3ZDg/YXBpLXZlcnNpb249MjAxOC0wNC0wMg==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26328.01", + "Microsoft.Azure.Management.StorageSync.StorageSyncManagementClient/1.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 11 Sep 2018 17:41:32 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "x-ms-request-id": [ + "095698f9-c539-4c98-b919-872baa0244e6" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11991" + ], + "x-ms-correlation-request-id": [ + "121aa606-dc18-4b39-a2fc-6f797ad7508e" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180911T174132Z:121aa606-dc18-4b39-a2fc-6f797ad7508e" + ], + "Content-Length": [ + "453" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res1661/providers/microsoft.storagesync/storageSyncServices/sss-rslist8441/workflow/e1d2acb7-a531-451f-a1af-a5b8f4f45396/operationresults/faf765ff-fdec-44d5-9205-aaf22dc9c7d8\",\r\n \"name\": \"faf765ff-fdec-44d5-9205-aaf22dc9c7d8\",\r\n \"status\": \"delayStep\",\r\n \"startTime\": \"2018-09-11T17:41:00.9462372Z\",\r\n \"endTime\": \"2018-09-11T17:41:02.9455511Z\",\r\n \"percentComplete\": null,\r\n \"error\": null,\r\n \"properties\": {}\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res1661/providers/microsoft.storagesync/storageSyncServices/sss-rslist8441/workflows/e1d2acb7-a531-451f-a1af-a5b8f4f45396/operations/faf765ff-fdec-44d5-9205-aaf22dc9c7d8?api-version=2018-04-02", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWQxNmY5YjMtYmJlMy00OGQ0LTkzMGEtMjdhNzRkY2EwMDNiL3Jlc291cmNlR3JvdXBzL3JlczE2NjEvcHJvdmlkZXJzL21pY3Jvc29mdC5zdG9yYWdlc3luYy9zdG9yYWdlU3luY1NlcnZpY2VzL3Nzcy1yc2xpc3Q4NDQxL3dvcmtmbG93cy9lMWQyYWNiNy1hNTMxLTQ1MWYtYTFhZi1hNWI4ZjRmNDUzOTYvb3BlcmF0aW9ucy9mYWY3NjVmZi1mZGVjLTQ0ZDUtOTIwNS1hYWYyMmRjOWM3ZDg/YXBpLXZlcnNpb249MjAxOC0wNC0wMg==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26328.01", + "Microsoft.Azure.Management.StorageSync.StorageSyncManagementClient/1.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 11 Sep 2018 17:41:43 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "x-ms-request-id": [ + "4a673b67-f02b-4662-ae52-fa4607452ef6" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11990" + ], + "x-ms-correlation-request-id": [ + "84580b76-80e6-45ce-9731-b1f943f6ae67" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180911T174144Z:84580b76-80e6-45ce-9731-b1f943f6ae67" + ], + "Content-Length": [ + "453" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res1661/providers/microsoft.storagesync/storageSyncServices/sss-rslist8441/workflow/e1d2acb7-a531-451f-a1af-a5b8f4f45396/operationresults/faf765ff-fdec-44d5-9205-aaf22dc9c7d8\",\r\n \"name\": \"faf765ff-fdec-44d5-9205-aaf22dc9c7d8\",\r\n \"status\": \"delayStep\",\r\n \"startTime\": \"2018-09-11T17:41:00.9462372Z\",\r\n \"endTime\": \"2018-09-11T17:41:02.9455511Z\",\r\n \"percentComplete\": null,\r\n \"error\": null,\r\n \"properties\": {}\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res1661/providers/microsoft.storagesync/storageSyncServices/sss-rslist8441/workflows/e1d2acb7-a531-451f-a1af-a5b8f4f45396/operations/faf765ff-fdec-44d5-9205-aaf22dc9c7d8?api-version=2018-04-02", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWQxNmY5YjMtYmJlMy00OGQ0LTkzMGEtMjdhNzRkY2EwMDNiL3Jlc291cmNlR3JvdXBzL3JlczE2NjEvcHJvdmlkZXJzL21pY3Jvc29mdC5zdG9yYWdlc3luYy9zdG9yYWdlU3luY1NlcnZpY2VzL3Nzcy1yc2xpc3Q4NDQxL3dvcmtmbG93cy9lMWQyYWNiNy1hNTMxLTQ1MWYtYTFhZi1hNWI4ZjRmNDUzOTYvb3BlcmF0aW9ucy9mYWY3NjVmZi1mZGVjLTQ0ZDUtOTIwNS1hYWYyMmRjOWM3ZDg/YXBpLXZlcnNpb249MjAxOC0wNC0wMg==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26328.01", + "Microsoft.Azure.Management.StorageSync.StorageSyncManagementClient/1.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 11 Sep 2018 17:41:54 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "x-ms-request-id": [ + "f145227a-f1fd-40ca-b8db-7abac705beab" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11989" + ], + "x-ms-correlation-request-id": [ + "781920e5-47b6-4ee1-b9a1-3b8a7e08e90c" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180911T174154Z:781920e5-47b6-4ee1-b9a1-3b8a7e08e90c" + ], + "Content-Length": [ + "453" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res1661/providers/microsoft.storagesync/storageSyncServices/sss-rslist8441/workflow/e1d2acb7-a531-451f-a1af-a5b8f4f45396/operationresults/faf765ff-fdec-44d5-9205-aaf22dc9c7d8\",\r\n \"name\": \"faf765ff-fdec-44d5-9205-aaf22dc9c7d8\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-09-11T17:41:00.9462372Z\",\r\n \"endTime\": \"2018-09-11T17:41:48.2396932Z\",\r\n \"percentComplete\": null,\r\n \"error\": null,\r\n \"properties\": {}\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res1661/providers/microsoft.storagesync/storageSyncServices/sss-rslist8441/workflows/e1d2acb7-a531-451f-a1af-a5b8f4f45396/operationresults/faf765ff-fdec-44d5-9205-aaf22dc9c7d8?api-version=2018-04-02", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWQxNmY5YjMtYmJlMy00OGQ0LTkzMGEtMjdhNzRkY2EwMDNiL3Jlc291cmNlR3JvdXBzL3JlczE2NjEvcHJvdmlkZXJzL21pY3Jvc29mdC5zdG9yYWdlc3luYy9zdG9yYWdlU3luY1NlcnZpY2VzL3Nzcy1yc2xpc3Q4NDQxL3dvcmtmbG93cy9lMWQyYWNiNy1hNTMxLTQ1MWYtYTFhZi1hNWI4ZjRmNDUzOTYvb3BlcmF0aW9ucmVzdWx0cy9mYWY3NjVmZi1mZGVjLTQ0ZDUtOTIwNS1hYWYyMmRjOWM3ZDg/YXBpLXZlcnNpb249MjAxOC0wNC0wMg==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26328.01", + "Microsoft.Azure.Management.StorageSync.StorageSyncManagementClient/1.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 11 Sep 2018 17:41:55 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "x-ms-request-id": [ + "1ec2bbf4-38b2-46e8-bd9f-6dc132f931e0" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11988" + ], + "x-ms-correlation-request-id": [ + "67e397ba-2da6-4424-a44a-517655882d58" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180911T174155Z:67e397ba-2da6-4424-a44a-517655882d58" + ], + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res1661/providers/Microsoft.StorageSync/storageSyncServices/sss-rslist8441?api-version=2018-04-02", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWQxNmY5YjMtYmJlMy00OGQ0LTkzMGEtMjdhNzRkY2EwMDNiL3Jlc291cmNlR3JvdXBzL3JlczE2NjEvcHJvdmlkZXJzL01pY3Jvc29mdC5TdG9yYWdlU3luYy9zdG9yYWdlU3luY1NlcnZpY2VzL3Nzcy1yc2xpc3Q4NDQxP2FwaS12ZXJzaW9uPTIwMTgtMDQtMDI=", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "5de39579-441a-432e-abdf-dd1b184820c8" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26328.01", + "Microsoft.Azure.Management.StorageSync.StorageSyncManagementClient/1.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 11 Sep 2018 17:41:58 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "x-ms-request-id": [ + "b51f5564-5257-4741-9c14-cac86c819ccf" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-deletes": [ + "14998" + ], + "x-ms-correlation-request-id": [ + "891f6dbe-d15f-4b0b-90ac-6994d91ee637" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180911T174159Z:891f6dbe-d15f-4b0b-90ac-6994d91ee637" + ], + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourcegroups/res1661?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWQxNmY5YjMtYmJlMy00OGQ0LTkzMGEtMjdhNzRkY2EwMDNiL3Jlc291cmNlZ3JvdXBzL3JlczE2NjE/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "5632e0ca-5441-4c55-ad9c-c61d62e5d969" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26328.01", + "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 11 Sep 2018 17:42:00 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1SRVMxNjYxLUVBU1RVUzIiLCJqb2JMb2NhdGlvbiI6ImVhc3R1czIifQ?api-version=2017-05-10" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-deletes": [ + "14997" + ], + "x-ms-request-id": [ + "df5d067f-9ab5-4bdf-b3d1-d067c3a204ce" + ], + "x-ms-correlation-request-id": [ + "df5d067f-9ab5-4bdf-b3d1-d067c3a204ce" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180911T174200Z:df5d067f-9ab5-4bdf-b3d1-d067c3a204ce" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1SRVMxNjYxLUVBU1RVUzIiLCJqb2JMb2NhdGlvbiI6ImVhc3R1czIifQ?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWQxNmY5YjMtYmJlMy00OGQ0LTkzMGEtMjdhNzRkY2EwMDNiL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFTUlZNeE5qWXhMVVZCVTFSVlV6SWlMQ0pxYjJKTWIyTmhkR2x2YmlJNkltVmhjM1IxY3pJaWZRP2FwaS12ZXJzaW9uPTIwMTctMDUtMTA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26328.01", + "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 11 Sep 2018 17:42:14 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1SRVMxNjYxLUVBU1RVUzIiLCJqb2JMb2NhdGlvbiI6ImVhc3R1czIifQ?api-version=2017-05-10" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11987" + ], + "x-ms-request-id": [ + "3111dbaa-e1ee-496a-a249-c33f14da741a" + ], + "x-ms-correlation-request-id": [ + "3111dbaa-e1ee-496a-a249-c33f14da741a" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180911T174215Z:3111dbaa-e1ee-496a-a249-c33f14da741a" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1SRVMxNjYxLUVBU1RVUzIiLCJqb2JMb2NhdGlvbiI6ImVhc3R1czIifQ?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWQxNmY5YjMtYmJlMy00OGQ0LTkzMGEtMjdhNzRkY2EwMDNiL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFTUlZNeE5qWXhMVVZCVTFSVlV6SWlMQ0pxYjJKTWIyTmhkR2x2YmlJNkltVmhjM1IxY3pJaWZRP2FwaS12ZXJzaW9uPTIwMTctMDUtMTA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26328.01", + "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 11 Sep 2018 17:42:29 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1SRVMxNjYxLUVBU1RVUzIiLCJqb2JMb2NhdGlvbiI6ImVhc3R1czIifQ?api-version=2017-05-10" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11986" + ], + "x-ms-request-id": [ + "3876e587-0e3c-4a66-9b0a-39724ed325b1" + ], + "x-ms-correlation-request-id": [ + "3876e587-0e3c-4a66-9b0a-39724ed325b1" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180911T174230Z:3876e587-0e3c-4a66-9b0a-39724ed325b1" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1SRVMxNjYxLUVBU1RVUzIiLCJqb2JMb2NhdGlvbiI6ImVhc3R1czIifQ?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWQxNmY5YjMtYmJlMy00OGQ0LTkzMGEtMjdhNzRkY2EwMDNiL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFTUlZNeE5qWXhMVVZCVTFSVlV6SWlMQ0pxYjJKTWIyTmhkR2x2YmlJNkltVmhjM1IxY3pJaWZRP2FwaS12ZXJzaW9uPTIwMTctMDUtMTA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26328.01", + "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 11 Sep 2018 17:42:45 GMT" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11985" + ], + "x-ms-request-id": [ + "7eab8638-bd98-4317-8f4a-299c3a8f8d0c" + ], + "x-ms-correlation-request-id": [ + "7eab8638-bd98-4317-8f4a-299c3a8f8d0c" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180911T174245Z:7eab8638-bd98-4317-8f4a-299c3a8f8d0c" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1SRVMxNjYxLUVBU1RVUzIiLCJqb2JMb2NhdGlvbiI6ImVhc3R1czIifQ?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWQxNmY5YjMtYmJlMy00OGQ0LTkzMGEtMjdhNzRkY2EwMDNiL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFTUlZNeE5qWXhMVVZCVTFSVlV6SWlMQ0pxYjJKTWIyTmhkR2x2YmlJNkltVmhjM1IxY3pJaWZRP2FwaS12ZXJzaW9uPTIwMTctMDUtMTA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26328.01", + "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 11 Sep 2018 17:42:45 GMT" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11984" + ], + "x-ms-request-id": [ + "4f814ec5-ee33-4d1e-ace7-4c25f0d871e4" + ], + "x-ms-correlation-request-id": [ + "4f814ec5-ee33-4d1e-ace7-4c25f0d871e4" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180911T174245Z:4f814ec5-ee33-4d1e-ace7-4c25f0d871e4" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "", + "StatusCode": 200 + } + ], + "Names": { + "CreateResourceGroup": [ + "res1661" + ], + "RegisteredServerListTest": [ + "sss-rslist8441", + "d4e94668-2ecf-47f0-a2b2-4efff8a15a83" + ] + }, + "Variables": { + "SubscriptionId": "1d16f9b3-bbe3-48d4-930a-27a74dca003b" + } +} \ No newline at end of file diff --git a/src/SDKs/StorageSync/StorageSync.Tests/SessionRecords/Microsoft.Azure.Management.StorageSync.Tests.ServerEndpointTests/ServerEndpointAllOperationsTest.json b/src/SDKs/StorageSync/StorageSync.Tests/SessionRecords/Microsoft.Azure.Management.StorageSync.Tests.ServerEndpointTests/ServerEndpointAllOperationsTest.json new file mode 100644 index 000000000000..45c6e495e2dd --- /dev/null +++ b/src/SDKs/StorageSync/StorageSync.Tests/SessionRecords/Microsoft.Azure.Management.StorageSync.Tests.ServerEndpointTests/ServerEndpointAllOperationsTest.json @@ -0,0 +1,3373 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourcegroups/res8179?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWQxNmY5YjMtYmJlMy00OGQ0LTkzMGEtMjdhNzRkY2EwMDNiL3Jlc291cmNlZ3JvdXBzL3JlczgxNzk/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"location\": \"eastus2\"\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "c3b2b8f0-2ccd-496a-95f8-fbc7150160de" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26328.01", + "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "29" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 11 Sep 2018 18:10:07 GMT" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1196" + ], + "x-ms-request-id": [ + "05acc3b3-31fc-486d-a60d-c130c2330fe1" + ], + "x-ms-correlation-request-id": [ + "05acc3b3-31fc-486d-a60d-c130c2330fe1" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180911T181007Z:05acc3b3-31fc-486d-a60d-c130c2330fe1" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "168" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res8179\",\r\n \"name\": \"res8179\",\r\n \"location\": \"eastus2\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res8179/providers/Microsoft.StorageSync/storageSyncServices/sss-sepall910?api-version=2018-04-02", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWQxNmY5YjMtYmJlMy00OGQ0LTkzMGEtMjdhNzRkY2EwMDNiL3Jlc291cmNlR3JvdXBzL3JlczgxNzkvcHJvdmlkZXJzL01pY3Jvc29mdC5TdG9yYWdlU3luYy9zdG9yYWdlU3luY1NlcnZpY2VzL3Nzcy1zZXBhbGw5MTA/YXBpLXZlcnNpb249MjAxOC0wNC0wMg==", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"location\": \"west europe\",\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n }\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "867abcac-aa7e-4579-969d-52f570218fce" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26328.01", + "Microsoft.Azure.Management.StorageSync.StorageSyncManagementClient/1.0.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "97" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 11 Sep 2018 18:10:10 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "x-ms-request-id": [ + "a79d2073-7170-4683-acfb-e88ac6e98786" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1195" + ], + "x-ms-correlation-request-id": [ + "af0eb8c3-9a7f-4714-bfbc-fb2c986c8395" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180911T181010Z:af0eb8c3-9a7f-4714-bfbc-fb2c986c8395" + ], + "Content-Length": [ + "399" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"properties\": {\r\n \"storageSyncServiceStatus\": null,\r\n \"storageSyncServiceUid\": \"00000000-0000-0000-0000-000000000000\"\r\n },\r\n \"location\": \"west europe\",\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n },\r\n \"id\": \"/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res8179/providers/microsoft.storagesync/storageSyncServices/sss-sepall910\",\r\n \"name\": \"sss-sepall910\",\r\n \"type\": \"microsoft.storagesync/storageSyncServices\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res8179/providers/Microsoft.StorageSync/storageSyncServices/sss-sepall910/syncGroups/sg-sepall8189?api-version=2018-04-02", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWQxNmY5YjMtYmJlMy00OGQ0LTkzMGEtMjdhNzRkY2EwMDNiL3Jlc291cmNlR3JvdXBzL3JlczgxNzkvcHJvdmlkZXJzL01pY3Jvc29mdC5TdG9yYWdlU3luYy9zdG9yYWdlU3luY1NlcnZpY2VzL3Nzcy1zZXBhbGw5MTAvc3luY0dyb3Vwcy9zZy1zZXBhbGw4MTg5P2FwaS12ZXJzaW9uPTIwMTgtMDQtMDI=", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"location\": \"west europe\",\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n }\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "12ca9e49-eb91-4815-a6cf-c00127299d15" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26328.01", + "Microsoft.Azure.Management.StorageSync.StorageSyncManagementClient/1.0.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "97" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 11 Sep 2018 18:10:11 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "x-ms-request-id": [ + "7dffe292-9b72-425e-b8bb-dbcace9e25a6" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1194" + ], + "x-ms-correlation-request-id": [ + "1636cc5d-299d-476b-a975-e2a8f9b74980" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180911T181011Z:1636cc5d-299d-476b-a975-e2a8f9b74980" + ], + "Content-Length": [ + "413" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"properties\": {\r\n \"syncGroupStatus\": null,\r\n \"uniqueId\": \"d0dd44c1-da2f-4419-89ce-ca3799685fdd\"\r\n },\r\n \"location\": \"west europe\",\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n },\r\n \"id\": \"/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res8179/providers/microsoft.storagesync/storageSyncServices/sss-sepall910/syncGroups/sg-sepall8189\",\r\n \"name\": \"sg-sepall8189\",\r\n \"type\": \"microsoft.storagesync/storageSyncServices/syncGroups\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res8179/providers/Microsoft.StorageSync/storageSyncServices/sss-sepall910/syncGroups/sg-sepall8189/cloudEndpoints/sepall5158?api-version=2018-04-02", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWQxNmY5YjMtYmJlMy00OGQ0LTkzMGEtMjdhNzRkY2EwMDNiL3Jlc291cmNlR3JvdXBzL3JlczgxNzkvcHJvdmlkZXJzL01pY3Jvc29mdC5TdG9yYWdlU3luYy9zdG9yYWdlU3luY1NlcnZpY2VzL3Nzcy1zZXBhbGw5MTAvc3luY0dyb3Vwcy9zZy1zZXBhbGw4MTg5L2Nsb3VkRW5kcG9pbnRzL3NlcGFsbDUxNTg/YXBpLXZlcnNpb249MjAxOC0wNC0wMg==", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"location\": \"west europe\",\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n },\r\n \"properties\": {\r\n \"storageAccountResourceId\": \"/subscriptions/8aba3d53-2c5e-4479-bb0d-5a7bed16360e/resourcegroups/storagesyncsdkwesteurope/providers/Microsoft.Storage/storageAccounts/storagesyncsdkwesteurope\",\r\n \"storageAccountShareName\": \"tempsdkfileshare5\",\r\n \"storageAccountTenantId\": \"\\\"72f988bf-86f1-41af-91ab-2d7cd011db47\\\"\"\r\n }\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "3b614dc6-5fcf-4a11-b4d3-33a460a7c116" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26328.01", + "Microsoft.Azure.Management.StorageSync.StorageSyncManagementClient/1.0.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "446" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 11 Sep 2018 18:10:12 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res8179/providers/microsoft.storagesync/storageSyncServices/sss-sepall910/workflows/e09c8f4b-8df7-4aa1-b784-77b31ce95769/operationresults/ce75b844-58c6-46cd-82d9-a1d6ff30b9a8?api-version=2018-04-02" + ], + "Retry-After": [ + "10" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res8179/providers/microsoft.storagesync/storageSyncServices/sss-sepall910/workflows/e09c8f4b-8df7-4aa1-b784-77b31ce95769/operations/ce75b844-58c6-46cd-82d9-a1d6ff30b9a8?api-version=2018-04-02" + ], + "x-ms-request-id": [ + "eeb58e15-7845-46ba-b1e9-5f9a13defd02" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1193" + ], + "x-ms-correlation-request-id": [ + "71a22a87-0bda-49de-ba1b-4633a4e639d4" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180911T181012Z:71a22a87-0bda-49de-ba1b-4633a4e639d4" + ], + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res8179/providers/microsoft.storagesync/storageSyncServices/sss-sepall910/workflows/e09c8f4b-8df7-4aa1-b784-77b31ce95769/operations/ce75b844-58c6-46cd-82d9-a1d6ff30b9a8?api-version=2018-04-02", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWQxNmY5YjMtYmJlMy00OGQ0LTkzMGEtMjdhNzRkY2EwMDNiL3Jlc291cmNlR3JvdXBzL3JlczgxNzkvcHJvdmlkZXJzL21pY3Jvc29mdC5zdG9yYWdlc3luYy9zdG9yYWdlU3luY1NlcnZpY2VzL3Nzcy1zZXBhbGw5MTAvd29ya2Zsb3dzL2UwOWM4ZjRiLThkZjctNGFhMS1iNzg0LTc3YjMxY2U5NTc2OS9vcGVyYXRpb25zL2NlNzViODQ0LTU4YzYtNDZjZC04MmQ5LWExZDZmZjMwYjlhOD9hcGktdmVyc2lvbj0yMDE4LTA0LTAy", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26328.01", + "Microsoft.Azure.Management.StorageSync.StorageSyncManagementClient/1.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 11 Sep 2018 18:10:22 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "x-ms-request-id": [ + "32053fba-c3cd-4730-b07e-2aafdbdd66c0" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11994" + ], + "x-ms-correlation-request-id": [ + "d49852e1-314d-4fef-9d63-a453874f4154" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180911T181023Z:d49852e1-314d-4fef-9d63-a453874f4154" + ], + "Content-Length": [ + "458" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res8179/providers/microsoft.storagesync/storageSyncServices/sss-sepall910/workflow/e09c8f4b-8df7-4aa1-b784-77b31ce95769/operationresults/ce75b844-58c6-46cd-82d9-a1d6ff30b9a8\",\r\n \"name\": \"ce75b844-58c6-46cd-82d9-a1d6ff30b9a8\",\r\n \"status\": \"newReplicaGroup\",\r\n \"startTime\": \"2018-09-11T18:10:13.2947343Z\",\r\n \"endTime\": \"2018-09-11T18:10:19.7790066Z\",\r\n \"percentComplete\": null,\r\n \"error\": null,\r\n \"properties\": {}\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res8179/providers/microsoft.storagesync/storageSyncServices/sss-sepall910/workflows/e09c8f4b-8df7-4aa1-b784-77b31ce95769/operations/ce75b844-58c6-46cd-82d9-a1d6ff30b9a8?api-version=2018-04-02", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWQxNmY5YjMtYmJlMy00OGQ0LTkzMGEtMjdhNzRkY2EwMDNiL3Jlc291cmNlR3JvdXBzL3JlczgxNzkvcHJvdmlkZXJzL21pY3Jvc29mdC5zdG9yYWdlc3luYy9zdG9yYWdlU3luY1NlcnZpY2VzL3Nzcy1zZXBhbGw5MTAvd29ya2Zsb3dzL2UwOWM4ZjRiLThkZjctNGFhMS1iNzg0LTc3YjMxY2U5NTc2OS9vcGVyYXRpb25zL2NlNzViODQ0LTU4YzYtNDZjZC04MmQ5LWExZDZmZjMwYjlhOD9hcGktdmVyc2lvbj0yMDE4LTA0LTAy", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26328.01", + "Microsoft.Azure.Management.StorageSync.StorageSyncManagementClient/1.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 11 Sep 2018 18:10:33 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "x-ms-request-id": [ + "286b072d-3297-4a7c-8b5d-836be16a545a" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11993" + ], + "x-ms-correlation-request-id": [ + "7ad5e74c-56db-412a-b207-666baa73e1cf" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180911T181033Z:7ad5e74c-56db-412a-b207-666baa73e1cf" + ], + "Content-Length": [ + "452" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res8179/providers/microsoft.storagesync/storageSyncServices/sss-sepall910/workflow/e09c8f4b-8df7-4aa1-b784-77b31ce95769/operationresults/ce75b844-58c6-46cd-82d9-a1d6ff30b9a8\",\r\n \"name\": \"ce75b844-58c6-46cd-82d9-a1d6ff30b9a8\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-09-11T18:10:13.2947343Z\",\r\n \"endTime\": \"2018-09-11T18:10:28.4625497Z\",\r\n \"percentComplete\": null,\r\n \"error\": null,\r\n \"properties\": {}\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res8179/providers/Microsoft.StorageSync/storageSyncServices/sss-sepall910/syncGroups/sg-sepall8189/cloudEndpoints/sepall5158?api-version=2018-04-02", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWQxNmY5YjMtYmJlMy00OGQ0LTkzMGEtMjdhNzRkY2EwMDNiL3Jlc291cmNlR3JvdXBzL3JlczgxNzkvcHJvdmlkZXJzL01pY3Jvc29mdC5TdG9yYWdlU3luYy9zdG9yYWdlU3luY1NlcnZpY2VzL3Nzcy1zZXBhbGw5MTAvc3luY0dyb3Vwcy9zZy1zZXBhbGw4MTg5L2Nsb3VkRW5kcG9pbnRzL3NlcGFsbDUxNTg/YXBpLXZlcnNpb249MjAxOC0wNC0wMg==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26328.01", + "Microsoft.Azure.Management.StorageSync.StorageSyncManagementClient/1.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 11 Sep 2018 18:10:34 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "x-ms-request-id": [ + "53787446-29f8-4388-affe-8cecf35870a0" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11992" + ], + "x-ms-correlation-request-id": [ + "07e12afd-9eb0-43b1-a064-c5c65522f5a3" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180911T181035Z:07e12afd-9eb0-43b1-a064-c5c65522f5a3" + ], + "Content-Length": [ + "1131" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"properties\": {\r\n \"storageAccountKey\": null,\r\n \"storageAccount\": null,\r\n \"storageAccountResourceId\": \"/subscriptions/8aba3d53-2c5e-4479-bb0d-5a7bed16360e/resourcegroups/storagesyncsdkwesteurope/providers/Microsoft.Storage/storageAccounts/storagesyncsdkwesteurope\",\r\n \"storageAccountShareName\": \"tempsdkfileshare5\",\r\n \"storageAccountTenantId\": \"\\\"72f988bf-86f1-41af-91ab-2d7cd011db47\\\"\",\r\n \"partnershipId\": \"1|U0VSVkVSQVNTWU5DQ0xJRU5USEZTVjJ8RDBERDQ0QzEtREEyRi00NDE5LTg5Q0UtQ0EzNzk5Njg1RkREfEdFTkVSSUN8MDNCMjZGRUQtNEYwNi00OTNBLTgzMDItNzVFMTAyNjU4MUM0\",\r\n \"friendlyName\": \"tempsdkfileshare5\",\r\n \"backupEnabled\": \"false\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"lastWorkflowId\": \"storageSyncServices/sss-sepall910/workflows/e09c8f4b-8df7-4aa1-b784-77b31ce95769\",\r\n \"lastOperationName\": \"ICreateCloudEndpointWorkflow\"\r\n },\r\n \"location\": \"westeurope\",\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n },\r\n \"id\": \"/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res8179/providers/microsoft.storagesync/storageSyncServices/sss-sepall910/syncGroups/sg-sepall8189/cloudEndpoints/sepall5158\",\r\n \"name\": \"sepall5158\",\r\n \"type\": \"microsoft.storagesync/storageSyncServices/syncGroups/cloudEndpoints\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res8179/providers/Microsoft.StorageSync/storageSyncServices/sss-sepall910/registeredServers?api-version=2018-04-02", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWQxNmY5YjMtYmJlMy00OGQ0LTkzMGEtMjdhNzRkY2EwMDNiL3Jlc291cmNlR3JvdXBzL3JlczgxNzkvcHJvdmlkZXJzL01pY3Jvc29mdC5TdG9yYWdlU3luYy9zdG9yYWdlU3luY1NlcnZpY2VzL3Nzcy1zZXBhbGw5MTAvcmVnaXN0ZXJlZFNlcnZlcnM/YXBpLXZlcnNpb249MjAxOC0wNC0wMg==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "fbf4d3f8-f645-4004-930e-c63c1ce97f76" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26328.01", + "Microsoft.Azure.Management.StorageSync.StorageSyncManagementClient/1.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 11 Sep 2018 18:13:35 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "x-ms-request-id": [ + "c6eea3a8-8c12-4b79-aebc-19e72f7ce0b7" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11998" + ], + "x-ms-correlation-request-id": [ + "d0787eec-1cfb-46f5-b468-f509d3bb0f27" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180911T181336Z:d0787eec-1cfb-46f5-b468-f509d3bb0f27" + ], + "Content-Length": [ + "1290" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"location\": \"west europe\",\r\n \"properties\": {\r\n \"serverCertificate\": null,\r\n \"agentVersion\": \"3.2.0.0\",\r\n \"agentVersionStatus\": null,\r\n \"agentVersionExpirationDate\": null,\r\n \"serverOSVersion\": \"10.0.14393.0\",\r\n \"serverManagementtErrorCode\": 0,\r\n \"lastHeartBeat\": \"\\\"2018-09-11T18:12:39.928484Z\\\"\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"serverRole\": \"Standalone\",\r\n \"clusterId\": \"\\\"00000000-0000-0000-0000-000000000000\\\"\",\r\n \"clusterName\": \"\",\r\n \"serverId\": \"\\\"d4d195a8-d559-4b29-bf7e-67da9976ed93\\\"\",\r\n \"storageSyncServiceUid\": \"\\\"6c11b329-6853-44fe-b729-4d54a3e28cad\\\"\",\r\n \"lastWorkflowId\": \"storageSyncServices/sss-sepall910/workflows/d6694721-9480-415c-a7a3-71d1225a2f9a\",\r\n \"lastOperationName\": \"ICreateRegisteredServerWorkflow\",\r\n \"friendlyName\": \"ankushb-vm02.ntdev.corp.microsoft.com\",\r\n \"monitoringConfiguration\": null,\r\n \"managementEndpointUri\": \"\\\"https://kailani6.one.microsoft.com:443/\\\"\",\r\n \"discoveryEndpointUri\": \"\\\"https://tm-kailani6.one.microsoft.com:443\\\"\",\r\n \"resourceLocation\": \"westeurope\",\r\n \"serviceLocation\": \"westeurope\"\r\n },\r\n \"id\": \"/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res8179/providers/microsoft.storagesync/storageSyncServices/sss-sepall910/registeredServers/d4d195a8-d559-4b29-bf7e-67da9976ed93\",\r\n \"name\": \"d4d195a8-d559-4b29-bf7e-67da9976ed93\",\r\n \"type\": \"microsoft.storagesync/storageSyncServices/registeredServers\"\r\n }\r\n ]\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res8179/providers/Microsoft.StorageSync/storageSyncServices/sss-sepall910/syncGroups/sg-sepall8189/serverEndpoints/sepall5158?api-version=2018-04-02", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWQxNmY5YjMtYmJlMy00OGQ0LTkzMGEtMjdhNzRkY2EwMDNiL3Jlc291cmNlR3JvdXBzL3JlczgxNzkvcHJvdmlkZXJzL01pY3Jvc29mdC5TdG9yYWdlU3luYy9zdG9yYWdlU3luY1NlcnZpY2VzL3Nzcy1zZXBhbGw5MTAvc3luY0dyb3Vwcy9zZy1zZXBhbGw4MTg5L3NlcnZlckVuZHBvaW50cy9zZXBhbGw1MTU4P2FwaS12ZXJzaW9uPTIwMTgtMDQtMDI=", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "158c7668-a51a-4853-a734-6874c420de07" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26328.01", + "Microsoft.Azure.Management.StorageSync.StorageSyncManagementClient/1.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 11 Sep 2018 18:13:37 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res8179/providers/microsoft.storagesync/storageSyncServices/sss-sepall910/workflows/11a6dc90-e7fa-4d95-a946-ad6951b094dd/operationresults/cdaba26a-7fe2-4c1b-8b8f-890fdb8a2795?api-version=2018-04-02" + ], + "Retry-After": [ + "10" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res8179/providers/microsoft.storagesync/storageSyncServices/sss-sepall910/workflows/11a6dc90-e7fa-4d95-a946-ad6951b094dd/operations/cdaba26a-7fe2-4c1b-8b8f-890fdb8a2795?api-version=2018-04-02" + ], + "x-ms-request-id": [ + "b684904c-d0b6-40bc-8270-58e90ac1d63f" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-deletes": [ + "14998" + ], + "x-ms-correlation-request-id": [ + "f4d87d69-5796-4d68-bc38-fdb7fcdae0ad" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180911T181337Z:f4d87d69-5796-4d68-bc38-fdb7fcdae0ad" + ], + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res8179/providers/Microsoft.StorageSync/storageSyncServices/sss-sepall910/syncGroups/sg-sepall8189/serverEndpoints/sepall5158?api-version=2018-04-02", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWQxNmY5YjMtYmJlMy00OGQ0LTkzMGEtMjdhNzRkY2EwMDNiL3Jlc291cmNlR3JvdXBzL3JlczgxNzkvcHJvdmlkZXJzL01pY3Jvc29mdC5TdG9yYWdlU3luYy9zdG9yYWdlU3luY1NlcnZpY2VzL3Nzcy1zZXBhbGw5MTAvc3luY0dyb3Vwcy9zZy1zZXBhbGw4MTg5L3NlcnZlckVuZHBvaW50cy9zZXBhbGw1MTU4P2FwaS12ZXJzaW9uPTIwMTgtMDQtMDI=", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "d83f3280-c4b0-4a3d-95d5-a5e16d216406" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26328.01", + "Microsoft.Azure.Management.StorageSync.StorageSyncManagementClient/1.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 11 Sep 2018 18:16:47 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res8179/providers/microsoft.storagesync/storageSyncServices/sss-sepall910/workflows/c1a5550e-de5b-45bc-a4d6-45ffd0f2831c/operationresults/5aeaeecc-0080-4d4f-99d3-4c544a569cee?api-version=2018-04-02" + ], + "Retry-After": [ + "10" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res8179/providers/microsoft.storagesync/storageSyncServices/sss-sepall910/workflows/c1a5550e-de5b-45bc-a4d6-45ffd0f2831c/operations/5aeaeecc-0080-4d4f-99d3-4c544a569cee?api-version=2018-04-02" + ], + "x-ms-request-id": [ + "9fcadef1-39ba-49f7-af26-4748fb4937da" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-deletes": [ + "14998" + ], + "x-ms-correlation-request-id": [ + "d45b1be3-1dfa-4571-bee5-7882507ac9c8" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180911T181648Z:d45b1be3-1dfa-4571-bee5-7882507ac9c8" + ], + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res8179/providers/Microsoft.StorageSync/storageSyncServices/sss-sepall910/syncGroups/sg-sepall8189/serverEndpoints/sepall5158?api-version=2018-04-02", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWQxNmY5YjMtYmJlMy00OGQ0LTkzMGEtMjdhNzRkY2EwMDNiL3Jlc291cmNlR3JvdXBzL3JlczgxNzkvcHJvdmlkZXJzL01pY3Jvc29mdC5TdG9yYWdlU3luYy9zdG9yYWdlU3luY1NlcnZpY2VzL3Nzcy1zZXBhbGw5MTAvc3luY0dyb3Vwcy9zZy1zZXBhbGw4MTg5L3NlcnZlckVuZHBvaW50cy9zZXBhbGw1MTU4P2FwaS12ZXJzaW9uPTIwMTgtMDQtMDI=", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "60649ef8-0840-4678-966f-36fde59d1f5e" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26328.01", + "Microsoft.Azure.Management.StorageSync.StorageSyncManagementClient/1.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 11 Sep 2018 18:17:31 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res8179/providers/microsoft.storagesync/storageSyncServices/sss-sepall910/workflows/00316aea-b6c0-4242-b915-da18039854b5/operationresults/e9fcfa38-998a-4aee-8819-a8210b5762c4?api-version=2018-04-02" + ], + "Retry-After": [ + "10" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res8179/providers/microsoft.storagesync/storageSyncServices/sss-sepall910/workflows/00316aea-b6c0-4242-b915-da18039854b5/operations/e9fcfa38-998a-4aee-8819-a8210b5762c4?api-version=2018-04-02" + ], + "x-ms-request-id": [ + "39004bba-c001-4bfe-a996-a4acc282e0a2" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-deletes": [ + "14997" + ], + "x-ms-correlation-request-id": [ + "a57d1866-6935-4880-a1fd-5e45ca11f2a9" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180911T181731Z:a57d1866-6935-4880-a1fd-5e45ca11f2a9" + ], + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res8179/providers/microsoft.storagesync/storageSyncServices/sss-sepall910/workflows/11a6dc90-e7fa-4d95-a946-ad6951b094dd/operations/cdaba26a-7fe2-4c1b-8b8f-890fdb8a2795?api-version=2018-04-02", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWQxNmY5YjMtYmJlMy00OGQ0LTkzMGEtMjdhNzRkY2EwMDNiL3Jlc291cmNlR3JvdXBzL3JlczgxNzkvcHJvdmlkZXJzL21pY3Jvc29mdC5zdG9yYWdlc3luYy9zdG9yYWdlU3luY1NlcnZpY2VzL3Nzcy1zZXBhbGw5MTAvd29ya2Zsb3dzLzExYTZkYzkwLWU3ZmEtNGQ5NS1hOTQ2LWFkNjk1MWIwOTRkZC9vcGVyYXRpb25zL2NkYWJhMjZhLTdmZTItNGMxYi04YjhmLTg5MGZkYjhhMjc5NT9hcGktdmVyc2lvbj0yMDE4LTA0LTAy", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26328.01", + "Microsoft.Azure.Management.StorageSync.StorageSyncManagementClient/1.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 11 Sep 2018 18:13:47 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "x-ms-request-id": [ + "9cb29fea-acb6-4970-99d0-d4570434dda3" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11997" + ], + "x-ms-correlation-request-id": [ + "491d6c08-4788-44c9-9721-db7451ffd0cc" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180911T181348Z:491d6c08-4788-44c9-9721-db7451ffd0cc" + ], + "Content-Length": [ + "452" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res8179/providers/microsoft.storagesync/storageSyncServices/sss-sepall910/workflow/11a6dc90-e7fa-4d95-a946-ad6951b094dd/operationresults/cdaba26a-7fe2-4c1b-8b8f-890fdb8a2795\",\r\n \"name\": \"cdaba26a-7fe2-4c1b-8b8f-890fdb8a2795\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-09-11T18:13:37.8544842Z\",\r\n \"endTime\": \"2018-09-11T18:13:39.4272365Z\",\r\n \"percentComplete\": null,\r\n \"error\": null,\r\n \"properties\": {}\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res8179/providers/microsoft.storagesync/storageSyncServices/sss-sepall910/workflows/11a6dc90-e7fa-4d95-a946-ad6951b094dd/operationresults/cdaba26a-7fe2-4c1b-8b8f-890fdb8a2795?api-version=2018-04-02", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWQxNmY5YjMtYmJlMy00OGQ0LTkzMGEtMjdhNzRkY2EwMDNiL3Jlc291cmNlR3JvdXBzL3JlczgxNzkvcHJvdmlkZXJzL21pY3Jvc29mdC5zdG9yYWdlc3luYy9zdG9yYWdlU3luY1NlcnZpY2VzL3Nzcy1zZXBhbGw5MTAvd29ya2Zsb3dzLzExYTZkYzkwLWU3ZmEtNGQ5NS1hOTQ2LWFkNjk1MWIwOTRkZC9vcGVyYXRpb25yZXN1bHRzL2NkYWJhMjZhLTdmZTItNGMxYi04YjhmLTg5MGZkYjhhMjc5NT9hcGktdmVyc2lvbj0yMDE4LTA0LTAy", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26328.01", + "Microsoft.Azure.Management.StorageSync.StorageSyncManagementClient/1.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 11 Sep 2018 18:13:48 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "x-ms-request-id": [ + "28689cf2-9e2a-41d0-8fe9-012651012823" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11996" + ], + "x-ms-correlation-request-id": [ + "aff50b09-ccbb-4641-ac86-f00f9e8a3b34" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180911T181349Z:aff50b09-ccbb-4641-ac86-f00f9e8a3b34" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "", + "StatusCode": 204 + }, + { + "RequestUri": "/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res8179/providers/Microsoft.StorageSync/storageSyncServices/sss-sepall910/syncGroups/sg-sepall8189/serverEndpoints/sepall5158?api-version=2018-04-02", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWQxNmY5YjMtYmJlMy00OGQ0LTkzMGEtMjdhNzRkY2EwMDNiL3Jlc291cmNlR3JvdXBzL3JlczgxNzkvcHJvdmlkZXJzL01pY3Jvc29mdC5TdG9yYWdlU3luYy9zdG9yYWdlU3luY1NlcnZpY2VzL3Nzcy1zZXBhbGw5MTAvc3luY0dyb3Vwcy9zZy1zZXBhbGw4MTg5L3NlcnZlckVuZHBvaW50cy9zZXBhbGw1MTU4P2FwaS12ZXJzaW9uPTIwMTgtMDQtMDI=", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"location\": \"west europe\",\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n },\r\n \"properties\": {\r\n \"serverLocalPath\": \"D:\\\\test2\",\r\n \"cloudTiering\": \"Off\",\r\n \"volumeFreeSpacePercent\": 0,\r\n \"serverResourceId\": \"/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res8179/providers/microsoft.storagesync/storageSyncServices/sss-sepall910/registeredServers/d4d195a8-d559-4b29-bf7e-67da9976ed93\"\r\n }\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "839d170e-cbe6-46b9-946d-eb3d66c20652" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26328.01", + "Microsoft.Azure.Management.StorageSync.StorageSyncManagementClient/1.0.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "444" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 11 Sep 2018 18:13:49 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res8179/providers/microsoft.storagesync/storageSyncServices/sss-sepall910/workflows/55cbbada-2a39-40a9-bbd0-e20c13a68312/operationresults/ca9f1d71-e8e0-49b3-9d26-a4dd1e648c11?api-version=2018-04-02" + ], + "Retry-After": [ + "10" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res8179/providers/microsoft.storagesync/storageSyncServices/sss-sepall910/workflows/55cbbada-2a39-40a9-bbd0-e20c13a68312/operations/ca9f1d71-e8e0-49b3-9d26-a4dd1e648c11?api-version=2018-04-02" + ], + "x-ms-request-id": [ + "ce025246-10a2-456d-b547-ef2bddbff29a" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1199" + ], + "x-ms-correlation-request-id": [ + "8253c076-3fdb-4e94-81e9-749defa7bc8d" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180911T181350Z:8253c076-3fdb-4e94-81e9-749defa7bc8d" + ], + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res8179/providers/microsoft.storagesync/storageSyncServices/sss-sepall910/workflows/55cbbada-2a39-40a9-bbd0-e20c13a68312/operations/ca9f1d71-e8e0-49b3-9d26-a4dd1e648c11?api-version=2018-04-02", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWQxNmY5YjMtYmJlMy00OGQ0LTkzMGEtMjdhNzRkY2EwMDNiL3Jlc291cmNlR3JvdXBzL3JlczgxNzkvcHJvdmlkZXJzL21pY3Jvc29mdC5zdG9yYWdlc3luYy9zdG9yYWdlU3luY1NlcnZpY2VzL3Nzcy1zZXBhbGw5MTAvd29ya2Zsb3dzLzU1Y2JiYWRhLTJhMzktNDBhOS1iYmQwLWUyMGMxM2E2ODMxMi9vcGVyYXRpb25zL2NhOWYxZDcxLWU4ZTAtNDliMy05ZDI2LWE0ZGQxZTY0OGMxMT9hcGktdmVyc2lvbj0yMDE4LTA0LTAy", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26328.01", + "Microsoft.Azure.Management.StorageSync.StorageSyncManagementClient/1.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 11 Sep 2018 18:13:59 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "x-ms-request-id": [ + "be30e998-f6ec-4c23-b415-b95ed2622c38" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11995" + ], + "x-ms-correlation-request-id": [ + "2c2b64f1-89b0-4a6d-b8ed-52083e59f10b" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180911T181400Z:2c2b64f1-89b0-4a6d-b8ed-52083e59f10b" + ], + "Content-Length": [ + "455" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res8179/providers/microsoft.storagesync/storageSyncServices/sss-sepall910/workflow/55cbbada-2a39-40a9-bbd0-e20c13a68312/operationresults/ca9f1d71-e8e0-49b3-9d26-a4dd1e648c11\",\r\n \"name\": \"ca9f1d71-e8e0-49b3-9d26-a4dd1e648c11\",\r\n \"status\": \"runServerJob\",\r\n \"startTime\": \"2018-09-11T18:13:50.4261222Z\",\r\n \"endTime\": \"2018-09-11T18:13:53.7036837Z\",\r\n \"percentComplete\": null,\r\n \"error\": null,\r\n \"properties\": {}\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res8179/providers/microsoft.storagesync/storageSyncServices/sss-sepall910/workflows/55cbbada-2a39-40a9-bbd0-e20c13a68312/operations/ca9f1d71-e8e0-49b3-9d26-a4dd1e648c11?api-version=2018-04-02", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWQxNmY5YjMtYmJlMy00OGQ0LTkzMGEtMjdhNzRkY2EwMDNiL3Jlc291cmNlR3JvdXBzL3JlczgxNzkvcHJvdmlkZXJzL21pY3Jvc29mdC5zdG9yYWdlc3luYy9zdG9yYWdlU3luY1NlcnZpY2VzL3Nzcy1zZXBhbGw5MTAvd29ya2Zsb3dzLzU1Y2JiYWRhLTJhMzktNDBhOS1iYmQwLWUyMGMxM2E2ODMxMi9vcGVyYXRpb25zL2NhOWYxZDcxLWU4ZTAtNDliMy05ZDI2LWE0ZGQxZTY0OGMxMT9hcGktdmVyc2lvbj0yMDE4LTA0LTAy", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26328.01", + "Microsoft.Azure.Management.StorageSync.StorageSyncManagementClient/1.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 11 Sep 2018 18:14:11 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "x-ms-request-id": [ + "c37050bb-b786-43d2-b7fd-89496aa7863e" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11994" + ], + "x-ms-correlation-request-id": [ + "5c7c324f-a6d1-49b5-9db2-4e31324fbfa5" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180911T181411Z:5c7c324f-a6d1-49b5-9db2-4e31324fbfa5" + ], + "Content-Length": [ + "451" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res8179/providers/microsoft.storagesync/storageSyncServices/sss-sepall910/workflow/55cbbada-2a39-40a9-bbd0-e20c13a68312/operationresults/ca9f1d71-e8e0-49b3-9d26-a4dd1e648c11\",\r\n \"name\": \"ca9f1d71-e8e0-49b3-9d26-a4dd1e648c11\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-09-11T18:13:50.4261222Z\",\r\n \"endTime\": \"2018-09-11T18:14:09.789631Z\",\r\n \"percentComplete\": null,\r\n \"error\": null,\r\n \"properties\": {}\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res8179/providers/Microsoft.StorageSync/storageSyncServices/sss-sepall910/syncGroups/sg-sepall8189/serverEndpoints/sepall5158?api-version=2018-04-02", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWQxNmY5YjMtYmJlMy00OGQ0LTkzMGEtMjdhNzRkY2EwMDNiL3Jlc291cmNlR3JvdXBzL3JlczgxNzkvcHJvdmlkZXJzL01pY3Jvc29mdC5TdG9yYWdlU3luYy9zdG9yYWdlU3luY1NlcnZpY2VzL3Nzcy1zZXBhbGw5MTAvc3luY0dyb3Vwcy9zZy1zZXBhbGw4MTg5L3NlcnZlckVuZHBvaW50cy9zZXBhbGw1MTU4P2FwaS12ZXJzaW9uPTIwMTgtMDQtMDI=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26328.01", + "Microsoft.Azure.Management.StorageSync.StorageSyncManagementClient/1.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 11 Sep 2018 18:14:11 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "x-ms-request-id": [ + "bce3bfba-cc72-4509-b2ff-40dff9357514" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11993" + ], + "x-ms-correlation-request-id": [ + "68c95b87-12bc-4b3c-a3e3-48fc500a2481" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180911T181411Z:68c95b87-12bc-4b3c-a3e3-48fc500a2481" + ], + "Content-Length": [ + "932" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"properties\": {\r\n \"serverLocalPath\": \"D:\\\\test2\",\r\n \"cloudTiering\": \"Off\",\r\n \"volumeFreeSpacePercent\": 0,\r\n \"friendlyName\": \"ankushb-vm02.ntdev.corp.microsoft.com\",\r\n \"serverResourceId\": \"/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res8179/providers/microsoft.storagesync/storageSyncServices/sss-sepall910/registeredServers/d4d195a8-d559-4b29-bf7e-67da9976ed93\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"lastWorkflowId\": \"storageSyncServices/sss-sepall910/workflows/55cbbada-2a39-40a9-bbd0-e20c13a68312\",\r\n \"lastOperationName\": \"ICreateServerEndpointWorkflow\",\r\n \"syncStatus\": null\r\n },\r\n \"location\": \"west europe\",\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n },\r\n \"id\": \"/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res8179/providers/microsoft.storagesync/storageSyncServices/sss-sepall910/syncGroups/sg-sepall8189/serverEndpoints/sepall5158\",\r\n \"name\": \"sepall5158\",\r\n \"type\": \"microsoft.storagesync/storageSyncServices/syncGroups/serverEndpoints\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res8179/providers/Microsoft.StorageSync/storageSyncServices/sss-sepall910/syncGroups/sg-sepall8189/serverEndpoints/sepall5158?api-version=2018-04-02", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWQxNmY5YjMtYmJlMy00OGQ0LTkzMGEtMjdhNzRkY2EwMDNiL3Jlc291cmNlR3JvdXBzL3JlczgxNzkvcHJvdmlkZXJzL01pY3Jvc29mdC5TdG9yYWdlU3luYy9zdG9yYWdlU3luY1NlcnZpY2VzL3Nzcy1zZXBhbGw5MTAvc3luY0dyb3Vwcy9zZy1zZXBhbGw4MTg5L3NlcnZlckVuZHBvaW50cy9zZXBhbGw1MTU4P2FwaS12ZXJzaW9uPTIwMTgtMDQtMDI=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "18326ebd-791a-40c0-829e-29578978cae1" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26328.01", + "Microsoft.Azure.Management.StorageSync.StorageSyncManagementClient/1.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 11 Sep 2018 18:14:12 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "x-ms-request-id": [ + "9e736981-034f-48f6-a348-e4d8522f7853" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11992" + ], + "x-ms-correlation-request-id": [ + "3247418a-f4e4-43b2-9b67-5ba6359e3930" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180911T181412Z:3247418a-f4e4-43b2-9b67-5ba6359e3930" + ], + "Content-Length": [ + "932" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"properties\": {\r\n \"serverLocalPath\": \"D:\\\\test2\",\r\n \"cloudTiering\": \"Off\",\r\n \"volumeFreeSpacePercent\": 0,\r\n \"friendlyName\": \"ankushb-vm02.ntdev.corp.microsoft.com\",\r\n \"serverResourceId\": \"/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res8179/providers/microsoft.storagesync/storageSyncServices/sss-sepall910/registeredServers/d4d195a8-d559-4b29-bf7e-67da9976ed93\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"lastWorkflowId\": \"storageSyncServices/sss-sepall910/workflows/55cbbada-2a39-40a9-bbd0-e20c13a68312\",\r\n \"lastOperationName\": \"ICreateServerEndpointWorkflow\",\r\n \"syncStatus\": null\r\n },\r\n \"location\": \"west europe\",\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n },\r\n \"id\": \"/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res8179/providers/microsoft.storagesync/storageSyncServices/sss-sepall910/syncGroups/sg-sepall8189/serverEndpoints/sepall5158\",\r\n \"name\": \"sepall5158\",\r\n \"type\": \"microsoft.storagesync/storageSyncServices/syncGroups/serverEndpoints\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res8179/providers/Microsoft.StorageSync/storageSyncServices/sss-sepall910/syncGroups/sg-sepall8189/serverEndpoints/sepall5158?api-version=2018-04-02", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWQxNmY5YjMtYmJlMy00OGQ0LTkzMGEtMjdhNzRkY2EwMDNiL3Jlc291cmNlR3JvdXBzL3JlczgxNzkvcHJvdmlkZXJzL01pY3Jvc29mdC5TdG9yYWdlU3luYy9zdG9yYWdlU3luY1NlcnZpY2VzL3Nzcy1zZXBhbGw5MTAvc3luY0dyb3Vwcy9zZy1zZXBhbGw4MTg5L3NlcnZlckVuZHBvaW50cy9zZXBhbGw1MTU4P2FwaS12ZXJzaW9uPTIwMTgtMDQtMDI=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26328.01", + "Microsoft.Azure.Management.StorageSync.StorageSyncManagementClient/1.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 11 Sep 2018 18:15:23 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "x-ms-request-id": [ + "7f252ff3-b8d9-4efb-ae13-f6103e727ee6" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11984" + ], + "x-ms-correlation-request-id": [ + "9d1581c6-0a40-4636-9163-f9381b86be63" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180911T181524Z:9d1581c6-0a40-4636-9163-f9381b86be63" + ], + "Content-Length": [ + "931" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"properties\": {\r\n \"serverLocalPath\": \"D:\\\\test2\",\r\n \"cloudTiering\": \"On\",\r\n \"volumeFreeSpacePercent\": 50,\r\n \"friendlyName\": \"ankushb-vm02.ntdev.corp.microsoft.com\",\r\n \"serverResourceId\": \"/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res8179/providers/microsoft.storagesync/storageSyncServices/sss-sepall910/registeredServers/d4d195a8-d559-4b29-bf7e-67da9976ed93\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"lastWorkflowId\": \"storageSyncServices/sss-sepall910/workflows/d9a4bd19-c0f0-48d3-bc1b-13a04c953637\",\r\n \"lastOperationName\": \"IPatchServerEndpointWorkflow\",\r\n \"syncStatus\": null\r\n },\r\n \"location\": \"west europe\",\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n },\r\n \"id\": \"/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res8179/providers/microsoft.storagesync/storageSyncServices/sss-sepall910/syncGroups/sg-sepall8189/serverEndpoints/sepall5158\",\r\n \"name\": \"sepall5158\",\r\n \"type\": \"microsoft.storagesync/storageSyncServices/syncGroups/serverEndpoints\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res8179/providers/Microsoft.StorageSync/storageSyncServices/sss-sepall910/syncGroups/sg-sepall8189/serverEndpoints?api-version=2018-04-02", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWQxNmY5YjMtYmJlMy00OGQ0LTkzMGEtMjdhNzRkY2EwMDNiL3Jlc291cmNlR3JvdXBzL3JlczgxNzkvcHJvdmlkZXJzL01pY3Jvc29mdC5TdG9yYWdlU3luYy9zdG9yYWdlU3luY1NlcnZpY2VzL3Nzcy1zZXBhbGw5MTAvc3luY0dyb3Vwcy9zZy1zZXBhbGw4MTg5L3NlcnZlckVuZHBvaW50cz9hcGktdmVyc2lvbj0yMDE4LTA0LTAy", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "f750a528-e37f-4cb5-9e63-56add4212ac2" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26328.01", + "Microsoft.Azure.Management.StorageSync.StorageSyncManagementClient/1.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 11 Sep 2018 18:14:12 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "x-ms-request-id": [ + "c7652374-9773-42ec-a0a6-49983e1129ad" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11991" + ], + "x-ms-correlation-request-id": [ + "79c01f19-373c-4322-a42c-15942ef32d32" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180911T181413Z:79c01f19-373c-4322-a42c-15942ef32d32" + ], + "Content-Length": [ + "944" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"properties\": {\r\n \"serverLocalPath\": \"D:\\\\test2\",\r\n \"cloudTiering\": \"Off\",\r\n \"volumeFreeSpacePercent\": 0,\r\n \"friendlyName\": \"ankushb-vm02.ntdev.corp.microsoft.com\",\r\n \"serverResourceId\": \"/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res8179/providers/microsoft.storagesync/storageSyncServices/sss-sepall910/registeredServers/d4d195a8-d559-4b29-bf7e-67da9976ed93\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"lastWorkflowId\": \"storageSyncServices/sss-sepall910/workflows/55cbbada-2a39-40a9-bbd0-e20c13a68312\",\r\n \"lastOperationName\": \"ICreateServerEndpointWorkflow\",\r\n \"syncStatus\": null\r\n },\r\n \"location\": \"west europe\",\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n },\r\n \"id\": \"/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res8179/providers/microsoft.storagesync/storageSyncServices/sss-sepall910/syncGroups/sg-sepall8189/serverEndpoints/sepall5158\",\r\n \"name\": \"sepall5158\",\r\n \"type\": \"microsoft.storagesync/storageSyncServices/syncGroups/serverEndpoints\"\r\n }\r\n ]\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res8179/providers/Microsoft.StorageSync/storageSyncServices/sss-sepall910/syncGroups/sg-sepall8189/serverEndpoints/sepall5158/recallAction?api-version=2018-04-02", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWQxNmY5YjMtYmJlMy00OGQ0LTkzMGEtMjdhNzRkY2EwMDNiL3Jlc291cmNlR3JvdXBzL3JlczgxNzkvcHJvdmlkZXJzL01pY3Jvc29mdC5TdG9yYWdlU3luYy9zdG9yYWdlU3luY1NlcnZpY2VzL3Nzcy1zZXBhbGw5MTAvc3luY0dyb3Vwcy9zZy1zZXBhbGw4MTg5L3NlcnZlckVuZHBvaW50cy9zZXBhbGw1MTU4L3JlY2FsbEFjdGlvbj9hcGktdmVyc2lvbj0yMDE4LTA0LTAy", + "RequestMethod": "POST", + "RequestBody": "{}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "6cb4ba29-413a-40d2-8d58-8812cd4f42d2" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26328.01", + "Microsoft.Azure.Management.StorageSync.StorageSyncManagementClient/1.0.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "2" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 11 Sep 2018 18:14:13 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res8179/providers/microsoft.storagesync/storageSyncServices/sss-sepall910/workflows/2f587a07-c00f-4c54-a93d-1dc23bd4fc74/operationresults/9e24a857-1a8d-4b01-a5ed-d0ac994a70a7?api-version=2018-04-02" + ], + "Retry-After": [ + "10" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res8179/providers/microsoft.storagesync/storageSyncServices/sss-sepall910/workflows/2f587a07-c00f-4c54-a93d-1dc23bd4fc74/operations/9e24a857-1a8d-4b01-a5ed-d0ac994a70a7?api-version=2018-04-02" + ], + "x-ms-request-id": [ + "3e2e0fed-dc75-4fde-895e-c03bdd5e5bb6" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1198" + ], + "x-ms-correlation-request-id": [ + "2163968e-cb33-4b89-8562-1508d3cf1d98" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180911T181413Z:2163968e-cb33-4b89-8562-1508d3cf1d98" + ], + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res8179/providers/microsoft.storagesync/storageSyncServices/sss-sepall910/workflows/2f587a07-c00f-4c54-a93d-1dc23bd4fc74/operations/9e24a857-1a8d-4b01-a5ed-d0ac994a70a7?api-version=2018-04-02", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWQxNmY5YjMtYmJlMy00OGQ0LTkzMGEtMjdhNzRkY2EwMDNiL3Jlc291cmNlR3JvdXBzL3JlczgxNzkvcHJvdmlkZXJzL21pY3Jvc29mdC5zdG9yYWdlc3luYy9zdG9yYWdlU3luY1NlcnZpY2VzL3Nzcy1zZXBhbGw5MTAvd29ya2Zsb3dzLzJmNTg3YTA3LWMwMGYtNGM1NC1hOTNkLTFkYzIzYmQ0ZmM3NC9vcGVyYXRpb25zLzllMjRhODU3LTFhOGQtNGIwMS1hNWVkLWQwYWM5OTRhNzBhNz9hcGktdmVyc2lvbj0yMDE4LTA0LTAy", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26328.01", + "Microsoft.Azure.Management.StorageSync.StorageSyncManagementClient/1.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 11 Sep 2018 18:14:23 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "x-ms-request-id": [ + "ad83acee-3bfc-4cd4-918b-0881dc1f6a52" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11990" + ], + "x-ms-correlation-request-id": [ + "59465315-3a4d-4d08-8c91-f941565778cf" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180911T181424Z:59465315-3a4d-4d08-8c91-f941565778cf" + ], + "Content-Length": [ + "466" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res8179/providers/microsoft.storagesync/storageSyncServices/sss-sepall910/workflow/2f587a07-c00f-4c54-a93d-1dc23bd4fc74/operationresults/9e24a857-1a8d-4b01-a5ed-d0ac994a70a7\",\r\n \"name\": \"9e24a857-1a8d-4b01-a5ed-d0ac994a70a7\",\r\n \"status\": \"runRecallFilesServerJob\",\r\n \"startTime\": \"2018-09-11T18:14:14.1441356Z\",\r\n \"endTime\": \"2018-09-11T18:14:14.7841531Z\",\r\n \"percentComplete\": null,\r\n \"error\": null,\r\n \"properties\": {}\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res8179/providers/microsoft.storagesync/storageSyncServices/sss-sepall910/workflows/2f587a07-c00f-4c54-a93d-1dc23bd4fc74/operations/9e24a857-1a8d-4b01-a5ed-d0ac994a70a7?api-version=2018-04-02", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWQxNmY5YjMtYmJlMy00OGQ0LTkzMGEtMjdhNzRkY2EwMDNiL3Jlc291cmNlR3JvdXBzL3JlczgxNzkvcHJvdmlkZXJzL21pY3Jvc29mdC5zdG9yYWdlc3luYy9zdG9yYWdlU3luY1NlcnZpY2VzL3Nzcy1zZXBhbGw5MTAvd29ya2Zsb3dzLzJmNTg3YTA3LWMwMGYtNGM1NC1hOTNkLTFkYzIzYmQ0ZmM3NC9vcGVyYXRpb25zLzllMjRhODU3LTFhOGQtNGIwMS1hNWVkLWQwYWM5OTRhNzBhNz9hcGktdmVyc2lvbj0yMDE4LTA0LTAy", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26328.01", + "Microsoft.Azure.Management.StorageSync.StorageSyncManagementClient/1.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 11 Sep 2018 18:14:34 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "x-ms-request-id": [ + "15dbc6e8-a0d3-41c5-9406-2c4a12f55c64" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11989" + ], + "x-ms-correlation-request-id": [ + "1cddd940-86e9-4f88-be57-983015f24ca5" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180911T181435Z:1cddd940-86e9-4f88-be57-983015f24ca5" + ], + "Content-Length": [ + "466" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res8179/providers/microsoft.storagesync/storageSyncServices/sss-sepall910/workflow/2f587a07-c00f-4c54-a93d-1dc23bd4fc74/operationresults/9e24a857-1a8d-4b01-a5ed-d0ac994a70a7\",\r\n \"name\": \"9e24a857-1a8d-4b01-a5ed-d0ac994a70a7\",\r\n \"status\": \"runRecallFilesServerJob\",\r\n \"startTime\": \"2018-09-11T18:14:14.1441356Z\",\r\n \"endTime\": \"2018-09-11T18:14:14.7841531Z\",\r\n \"percentComplete\": null,\r\n \"error\": null,\r\n \"properties\": {}\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res8179/providers/microsoft.storagesync/storageSyncServices/sss-sepall910/workflows/2f587a07-c00f-4c54-a93d-1dc23bd4fc74/operations/9e24a857-1a8d-4b01-a5ed-d0ac994a70a7?api-version=2018-04-02", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWQxNmY5YjMtYmJlMy00OGQ0LTkzMGEtMjdhNzRkY2EwMDNiL3Jlc291cmNlR3JvdXBzL3JlczgxNzkvcHJvdmlkZXJzL21pY3Jvc29mdC5zdG9yYWdlc3luYy9zdG9yYWdlU3luY1NlcnZpY2VzL3Nzcy1zZXBhbGw5MTAvd29ya2Zsb3dzLzJmNTg3YTA3LWMwMGYtNGM1NC1hOTNkLTFkYzIzYmQ0ZmM3NC9vcGVyYXRpb25zLzllMjRhODU3LTFhOGQtNGIwMS1hNWVkLWQwYWM5OTRhNzBhNz9hcGktdmVyc2lvbj0yMDE4LTA0LTAy", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26328.01", + "Microsoft.Azure.Management.StorageSync.StorageSyncManagementClient/1.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 11 Sep 2018 18:14:45 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "x-ms-request-id": [ + "0eb1bd26-c073-43cc-94c6-189255fc249e" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11988" + ], + "x-ms-correlation-request-id": [ + "3fb79d9a-9449-40f7-8959-c9305a12c6f5" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180911T181445Z:3fb79d9a-9449-40f7-8959-c9305a12c6f5" + ], + "Content-Length": [ + "466" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res8179/providers/microsoft.storagesync/storageSyncServices/sss-sepall910/workflow/2f587a07-c00f-4c54-a93d-1dc23bd4fc74/operationresults/9e24a857-1a8d-4b01-a5ed-d0ac994a70a7\",\r\n \"name\": \"9e24a857-1a8d-4b01-a5ed-d0ac994a70a7\",\r\n \"status\": \"runRecallFilesServerJob\",\r\n \"startTime\": \"2018-09-11T18:14:14.1441356Z\",\r\n \"endTime\": \"2018-09-11T18:14:14.7841531Z\",\r\n \"percentComplete\": null,\r\n \"error\": null,\r\n \"properties\": {}\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res8179/providers/microsoft.storagesync/storageSyncServices/sss-sepall910/workflows/2f587a07-c00f-4c54-a93d-1dc23bd4fc74/operations/9e24a857-1a8d-4b01-a5ed-d0ac994a70a7?api-version=2018-04-02", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWQxNmY5YjMtYmJlMy00OGQ0LTkzMGEtMjdhNzRkY2EwMDNiL3Jlc291cmNlR3JvdXBzL3JlczgxNzkvcHJvdmlkZXJzL21pY3Jvc29mdC5zdG9yYWdlc3luYy9zdG9yYWdlU3luY1NlcnZpY2VzL3Nzcy1zZXBhbGw5MTAvd29ya2Zsb3dzLzJmNTg3YTA3LWMwMGYtNGM1NC1hOTNkLTFkYzIzYmQ0ZmM3NC9vcGVyYXRpb25zLzllMjRhODU3LTFhOGQtNGIwMS1hNWVkLWQwYWM5OTRhNzBhNz9hcGktdmVyc2lvbj0yMDE4LTA0LTAy", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26328.01", + "Microsoft.Azure.Management.StorageSync.StorageSyncManagementClient/1.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 11 Sep 2018 18:14:57 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "x-ms-request-id": [ + "7d327e10-1bea-47ef-b068-6abfda8b4814" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11987" + ], + "x-ms-correlation-request-id": [ + "0d9be99b-7d38-48fb-8552-651a03a043fe" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180911T181457Z:0d9be99b-7d38-48fb-8552-651a03a043fe" + ], + "Content-Length": [ + "452" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res8179/providers/microsoft.storagesync/storageSyncServices/sss-sepall910/workflow/2f587a07-c00f-4c54-a93d-1dc23bd4fc74/operationresults/9e24a857-1a8d-4b01-a5ed-d0ac994a70a7\",\r\n \"name\": \"9e24a857-1a8d-4b01-a5ed-d0ac994a70a7\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-09-11T18:14:14.1441356Z\",\r\n \"endTime\": \"2018-09-11T18:14:46.5259864Z\",\r\n \"percentComplete\": null,\r\n \"error\": null,\r\n \"properties\": {}\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res8179/providers/microsoft.storagesync/storageSyncServices/sss-sepall910/workflows/2f587a07-c00f-4c54-a93d-1dc23bd4fc74/operationresults/9e24a857-1a8d-4b01-a5ed-d0ac994a70a7?api-version=2018-04-02", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWQxNmY5YjMtYmJlMy00OGQ0LTkzMGEtMjdhNzRkY2EwMDNiL3Jlc291cmNlR3JvdXBzL3JlczgxNzkvcHJvdmlkZXJzL21pY3Jvc29mdC5zdG9yYWdlc3luYy9zdG9yYWdlU3luY1NlcnZpY2VzL3Nzcy1zZXBhbGw5MTAvd29ya2Zsb3dzLzJmNTg3YTA3LWMwMGYtNGM1NC1hOTNkLTFkYzIzYmQ0ZmM3NC9vcGVyYXRpb25yZXN1bHRzLzllMjRhODU3LTFhOGQtNGIwMS1hNWVkLWQwYWM5OTRhNzBhNz9hcGktdmVyc2lvbj0yMDE4LTA0LTAy", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26328.01", + "Microsoft.Azure.Management.StorageSync.StorageSyncManagementClient/1.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 11 Sep 2018 18:14:58 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "x-ms-request-id": [ + "37a86ad8-e6b4-41b1-a714-ee5abf846848" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11986" + ], + "x-ms-correlation-request-id": [ + "30ba5033-a50f-4673-8fa5-a2a6a3162a5b" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180911T181459Z:30ba5033-a50f-4673-8fa5-a2a6a3162a5b" + ], + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res8179/providers/Microsoft.StorageSync/storageSyncServices/sss-sepall910/syncGroups/sg-sepall8189/serverEndpoints/sepall5158?api-version=2018-04-02", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWQxNmY5YjMtYmJlMy00OGQ0LTkzMGEtMjdhNzRkY2EwMDNiL3Jlc291cmNlR3JvdXBzL3JlczgxNzkvcHJvdmlkZXJzL01pY3Jvc29mdC5TdG9yYWdlU3luYy9zdG9yYWdlU3luY1NlcnZpY2VzL3Nzcy1zZXBhbGw5MTAvc3luY0dyb3Vwcy9zZy1zZXBhbGw4MTg5L3NlcnZlckVuZHBvaW50cy9zZXBhbGw1MTU4P2FwaS12ZXJzaW9uPTIwMTgtMDQtMDI=", + "RequestMethod": "PATCH", + "RequestBody": "{\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n },\r\n \"properties\": {\r\n \"cloudTiering\": \"On\",\r\n \"volumeFreeSpacePercent\": 50\r\n }\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "e9656206-64f6-4c9a-9d5b-dea0f8fd5973" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26328.01", + "Microsoft.Azure.Management.StorageSync.StorageSyncManagementClient/1.0.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "153" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 11 Sep 2018 18:15:01 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res8179/providers/microsoft.storagesync/storageSyncServices/sss-sepall910/workflows/d9a4bd19-c0f0-48d3-bc1b-13a04c953637/operationresults/6eeebee0-abdd-4e65-8a86-7b1da52c6112?api-version=2018-04-02" + ], + "Retry-After": [ + "10" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res8179/providers/microsoft.storagesync/storageSyncServices/sss-sepall910/workflows/d9a4bd19-c0f0-48d3-bc1b-13a04c953637/operations/6eeebee0-abdd-4e65-8a86-7b1da52c6112?api-version=2018-04-02" + ], + "x-ms-request-id": [ + "715dfa4c-309b-4e02-9c20-f8211133c638" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1197" + ], + "x-ms-correlation-request-id": [ + "c3bb383f-cca1-4e1d-a00b-6dfe1b74168e" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180911T181501Z:c3bb383f-cca1-4e1d-a00b-6dfe1b74168e" + ], + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res8179/providers/microsoft.storagesync/storageSyncServices/sss-sepall910/workflows/d9a4bd19-c0f0-48d3-bc1b-13a04c953637/operations/6eeebee0-abdd-4e65-8a86-7b1da52c6112?api-version=2018-04-02", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWQxNmY5YjMtYmJlMy00OGQ0LTkzMGEtMjdhNzRkY2EwMDNiL3Jlc291cmNlR3JvdXBzL3JlczgxNzkvcHJvdmlkZXJzL21pY3Jvc29mdC5zdG9yYWdlc3luYy9zdG9yYWdlU3luY1NlcnZpY2VzL3Nzcy1zZXBhbGw5MTAvd29ya2Zsb3dzL2Q5YTRiZDE5LWMwZjAtNDhkMy1iYzFiLTEzYTA0Yzk1MzYzNy9vcGVyYXRpb25zLzZlZWViZWUwLWFiZGQtNGU2NS04YTg2LTdiMWRhNTJjNjExMj9hcGktdmVyc2lvbj0yMDE4LTA0LTAy", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26328.01", + "Microsoft.Azure.Management.StorageSync.StorageSyncManagementClient/1.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 11 Sep 2018 18:15:11 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "x-ms-request-id": [ + "1e942311-68a2-4659-8c5d-c86c003b43d5" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11986" + ], + "x-ms-correlation-request-id": [ + "56d8c344-1bfb-4773-88c9-9564161e839a" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180911T181512Z:56d8c344-1bfb-4773-88c9-9564161e839a" + ], + "Content-Length": [ + "455" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res8179/providers/microsoft.storagesync/storageSyncServices/sss-sepall910/workflow/d9a4bd19-c0f0-48d3-bc1b-13a04c953637/operationresults/6eeebee0-abdd-4e65-8a86-7b1da52c6112\",\r\n \"name\": \"6eeebee0-abdd-4e65-8a86-7b1da52c6112\",\r\n \"status\": \"runServerJob\",\r\n \"startTime\": \"2018-09-11T18:15:01.7859608Z\",\r\n \"endTime\": \"2018-09-11T18:15:03.1618153Z\",\r\n \"percentComplete\": null,\r\n \"error\": null,\r\n \"properties\": {}\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res8179/providers/microsoft.storagesync/storageSyncServices/sss-sepall910/workflows/d9a4bd19-c0f0-48d3-bc1b-13a04c953637/operations/6eeebee0-abdd-4e65-8a86-7b1da52c6112?api-version=2018-04-02", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWQxNmY5YjMtYmJlMy00OGQ0LTkzMGEtMjdhNzRkY2EwMDNiL3Jlc291cmNlR3JvdXBzL3JlczgxNzkvcHJvdmlkZXJzL21pY3Jvc29mdC5zdG9yYWdlc3luYy9zdG9yYWdlU3luY1NlcnZpY2VzL3Nzcy1zZXBhbGw5MTAvd29ya2Zsb3dzL2Q5YTRiZDE5LWMwZjAtNDhkMy1iYzFiLTEzYTA0Yzk1MzYzNy9vcGVyYXRpb25zLzZlZWViZWUwLWFiZGQtNGU2NS04YTg2LTdiMWRhNTJjNjExMj9hcGktdmVyc2lvbj0yMDE4LTA0LTAy", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26328.01", + "Microsoft.Azure.Management.StorageSync.StorageSyncManagementClient/1.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 11 Sep 2018 18:15:22 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "x-ms-request-id": [ + "c42c43d7-5a7d-4bd6-b2c5-77eeb09c1d02" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11985" + ], + "x-ms-correlation-request-id": [ + "c1a347dd-5190-4d0e-aca7-bc6a601a964e" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180911T181523Z:c1a347dd-5190-4d0e-aca7-bc6a601a964e" + ], + "Content-Length": [ + "452" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res8179/providers/microsoft.storagesync/storageSyncServices/sss-sepall910/workflow/d9a4bd19-c0f0-48d3-bc1b-13a04c953637/operationresults/6eeebee0-abdd-4e65-8a86-7b1da52c6112\",\r\n \"name\": \"6eeebee0-abdd-4e65-8a86-7b1da52c6112\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-09-11T18:15:01.7859608Z\",\r\n \"endTime\": \"2018-09-11T18:15:22.9596992Z\",\r\n \"percentComplete\": null,\r\n \"error\": null,\r\n \"properties\": {}\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res8179/providers/microsoft.storagesync/storageSyncServices/sss-sepall910/workflows/c1a5550e-de5b-45bc-a4d6-45ffd0f2831c/operations/5aeaeecc-0080-4d4f-99d3-4c544a569cee?api-version=2018-04-02", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWQxNmY5YjMtYmJlMy00OGQ0LTkzMGEtMjdhNzRkY2EwMDNiL3Jlc291cmNlR3JvdXBzL3JlczgxNzkvcHJvdmlkZXJzL21pY3Jvc29mdC5zdG9yYWdlc3luYy9zdG9yYWdlU3luY1NlcnZpY2VzL3Nzcy1zZXBhbGw5MTAvd29ya2Zsb3dzL2MxYTU1NTBlLWRlNWItNDViYy1hNGQ2LTQ1ZmZkMGYyODMxYy9vcGVyYXRpb25zLzVhZWFlZWNjLTAwODAtNGQ0Zi05OWQzLTRjNTQ0YTU2OWNlZT9hcGktdmVyc2lvbj0yMDE4LTA0LTAy", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26328.01", + "Microsoft.Azure.Management.StorageSync.StorageSyncManagementClient/1.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 11 Sep 2018 18:16:58 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "x-ms-request-id": [ + "9843c535-8e37-446d-a9bf-03465376ea1d" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11999" + ], + "x-ms-correlation-request-id": [ + "331c5eef-60c2-4df7-9cdc-89b47b358bd9" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180911T181658Z:331c5eef-60c2-4df7-9cdc-89b47b358bd9" + ], + "Content-Length": [ + "471" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res8179/providers/microsoft.storagesync/storageSyncServices/sss-sepall910/workflow/c1a5550e-de5b-45bc-a4d6-45ffd0f2831c/operationresults/5aeaeecc-0080-4d4f-99d3-4c544a569cee\",\r\n \"name\": \"5aeaeecc-0080-4d4f-99d3-4c544a569cee\",\r\n \"status\": \"deleteServerEndpointOnServer\",\r\n \"startTime\": \"2018-09-11T18:16:48.3497638Z\",\r\n \"endTime\": \"2018-09-11T18:16:52.0303823Z\",\r\n \"percentComplete\": null,\r\n \"error\": null,\r\n \"properties\": {}\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res8179/providers/microsoft.storagesync/storageSyncServices/sss-sepall910/workflows/c1a5550e-de5b-45bc-a4d6-45ffd0f2831c/operations/5aeaeecc-0080-4d4f-99d3-4c544a569cee?api-version=2018-04-02", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWQxNmY5YjMtYmJlMy00OGQ0LTkzMGEtMjdhNzRkY2EwMDNiL3Jlc291cmNlR3JvdXBzL3JlczgxNzkvcHJvdmlkZXJzL21pY3Jvc29mdC5zdG9yYWdlc3luYy9zdG9yYWdlU3luY1NlcnZpY2VzL3Nzcy1zZXBhbGw5MTAvd29ya2Zsb3dzL2MxYTU1NTBlLWRlNWItNDViYy1hNGQ2LTQ1ZmZkMGYyODMxYy9vcGVyYXRpb25zLzVhZWFlZWNjLTAwODAtNGQ0Zi05OWQzLTRjNTQ0YTU2OWNlZT9hcGktdmVyc2lvbj0yMDE4LTA0LTAy", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26328.01", + "Microsoft.Azure.Management.StorageSync.StorageSyncManagementClient/1.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 11 Sep 2018 18:17:08 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "x-ms-request-id": [ + "2eef94ad-1326-4fa8-bf77-a1fd08c7a859" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11998" + ], + "x-ms-correlation-request-id": [ + "5b2b85e3-c948-41a4-b3cd-ccd18a8d0564" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180911T181709Z:5b2b85e3-c948-41a4-b3cd-ccd18a8d0564" + ], + "Content-Length": [ + "471" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res8179/providers/microsoft.storagesync/storageSyncServices/sss-sepall910/workflow/c1a5550e-de5b-45bc-a4d6-45ffd0f2831c/operationresults/5aeaeecc-0080-4d4f-99d3-4c544a569cee\",\r\n \"name\": \"5aeaeecc-0080-4d4f-99d3-4c544a569cee\",\r\n \"status\": \"deleteServerEndpointOnServer\",\r\n \"startTime\": \"2018-09-11T18:16:48.3497638Z\",\r\n \"endTime\": \"2018-09-11T18:16:52.0303823Z\",\r\n \"percentComplete\": null,\r\n \"error\": null,\r\n \"properties\": {}\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res8179/providers/microsoft.storagesync/storageSyncServices/sss-sepall910/workflows/c1a5550e-de5b-45bc-a4d6-45ffd0f2831c/operations/5aeaeecc-0080-4d4f-99d3-4c544a569cee?api-version=2018-04-02", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWQxNmY5YjMtYmJlMy00OGQ0LTkzMGEtMjdhNzRkY2EwMDNiL3Jlc291cmNlR3JvdXBzL3JlczgxNzkvcHJvdmlkZXJzL21pY3Jvc29mdC5zdG9yYWdlc3luYy9zdG9yYWdlU3luY1NlcnZpY2VzL3Nzcy1zZXBhbGw5MTAvd29ya2Zsb3dzL2MxYTU1NTBlLWRlNWItNDViYy1hNGQ2LTQ1ZmZkMGYyODMxYy9vcGVyYXRpb25zLzVhZWFlZWNjLTAwODAtNGQ0Zi05OWQzLTRjNTQ0YTU2OWNlZT9hcGktdmVyc2lvbj0yMDE4LTA0LTAy", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26328.01", + "Microsoft.Azure.Management.StorageSync.StorageSyncManagementClient/1.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 11 Sep 2018 18:17:19 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "x-ms-request-id": [ + "ab8f0196-afae-41fc-a70f-41348d0249f7" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11997" + ], + "x-ms-correlation-request-id": [ + "574213e2-4d35-4d28-b19d-50135b5b72ed" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180911T181720Z:574213e2-4d35-4d28-b19d-50135b5b72ed" + ], + "Content-Length": [ + "471" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res8179/providers/microsoft.storagesync/storageSyncServices/sss-sepall910/workflow/c1a5550e-de5b-45bc-a4d6-45ffd0f2831c/operationresults/5aeaeecc-0080-4d4f-99d3-4c544a569cee\",\r\n \"name\": \"5aeaeecc-0080-4d4f-99d3-4c544a569cee\",\r\n \"status\": \"deleteServerEndpointOnServer\",\r\n \"startTime\": \"2018-09-11T18:16:48.3497638Z\",\r\n \"endTime\": \"2018-09-11T18:16:52.0303823Z\",\r\n \"percentComplete\": null,\r\n \"error\": null,\r\n \"properties\": {}\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res8179/providers/microsoft.storagesync/storageSyncServices/sss-sepall910/workflows/c1a5550e-de5b-45bc-a4d6-45ffd0f2831c/operations/5aeaeecc-0080-4d4f-99d3-4c544a569cee?api-version=2018-04-02", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWQxNmY5YjMtYmJlMy00OGQ0LTkzMGEtMjdhNzRkY2EwMDNiL3Jlc291cmNlR3JvdXBzL3JlczgxNzkvcHJvdmlkZXJzL21pY3Jvc29mdC5zdG9yYWdlc3luYy9zdG9yYWdlU3luY1NlcnZpY2VzL3Nzcy1zZXBhbGw5MTAvd29ya2Zsb3dzL2MxYTU1NTBlLWRlNWItNDViYy1hNGQ2LTQ1ZmZkMGYyODMxYy9vcGVyYXRpb25zLzVhZWFlZWNjLTAwODAtNGQ0Zi05OWQzLTRjNTQ0YTU2OWNlZT9hcGktdmVyc2lvbj0yMDE4LTA0LTAy", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26328.01", + "Microsoft.Azure.Management.StorageSync.StorageSyncManagementClient/1.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 11 Sep 2018 18:17:30 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "x-ms-request-id": [ + "e5b10d98-940f-4bcf-a9e9-7d6e2319bcd1" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11996" + ], + "x-ms-correlation-request-id": [ + "9a276b0b-e0f3-4cd1-a6a6-ab8ee0cb7554" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180911T181730Z:9a276b0b-e0f3-4cd1-a6a6-ab8ee0cb7554" + ], + "Content-Length": [ + "452" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res8179/providers/microsoft.storagesync/storageSyncServices/sss-sepall910/workflow/c1a5550e-de5b-45bc-a4d6-45ffd0f2831c/operationresults/5aeaeecc-0080-4d4f-99d3-4c544a569cee\",\r\n \"name\": \"5aeaeecc-0080-4d4f-99d3-4c544a569cee\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-09-11T18:16:48.3497638Z\",\r\n \"endTime\": \"2018-09-11T18:17:24.4396512Z\",\r\n \"percentComplete\": null,\r\n \"error\": null,\r\n \"properties\": {}\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res8179/providers/microsoft.storagesync/storageSyncServices/sss-sepall910/workflows/c1a5550e-de5b-45bc-a4d6-45ffd0f2831c/operationresults/5aeaeecc-0080-4d4f-99d3-4c544a569cee?api-version=2018-04-02", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWQxNmY5YjMtYmJlMy00OGQ0LTkzMGEtMjdhNzRkY2EwMDNiL3Jlc291cmNlR3JvdXBzL3JlczgxNzkvcHJvdmlkZXJzL21pY3Jvc29mdC5zdG9yYWdlc3luYy9zdG9yYWdlU3luY1NlcnZpY2VzL3Nzcy1zZXBhbGw5MTAvd29ya2Zsb3dzL2MxYTU1NTBlLWRlNWItNDViYy1hNGQ2LTQ1ZmZkMGYyODMxYy9vcGVyYXRpb25yZXN1bHRzLzVhZWFlZWNjLTAwODAtNGQ0Zi05OWQzLTRjNTQ0YTU2OWNlZT9hcGktdmVyc2lvbj0yMDE4LTA0LTAy", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26328.01", + "Microsoft.Azure.Management.StorageSync.StorageSyncManagementClient/1.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 11 Sep 2018 18:17:30 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "x-ms-request-id": [ + "a7913452-2f11-45d4-981d-3a8778e3c9b6" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11995" + ], + "x-ms-correlation-request-id": [ + "16f25e9d-5ee9-485f-b204-d36fb9270a5a" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180911T181731Z:16f25e9d-5ee9-485f-b204-d36fb9270a5a" + ], + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res8179/providers/microsoft.storagesync/storageSyncServices/sss-sepall910/workflows/00316aea-b6c0-4242-b915-da18039854b5/operations/e9fcfa38-998a-4aee-8819-a8210b5762c4?api-version=2018-04-02", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWQxNmY5YjMtYmJlMy00OGQ0LTkzMGEtMjdhNzRkY2EwMDNiL3Jlc291cmNlR3JvdXBzL3JlczgxNzkvcHJvdmlkZXJzL21pY3Jvc29mdC5zdG9yYWdlc3luYy9zdG9yYWdlU3luY1NlcnZpY2VzL3Nzcy1zZXBhbGw5MTAvd29ya2Zsb3dzLzAwMzE2YWVhLWI2YzAtNDI0Mi1iOTE1LWRhMTgwMzk4NTRiNS9vcGVyYXRpb25zL2U5ZmNmYTM4LTk5OGEtNGFlZS04ODE5LWE4MjEwYjU3NjJjND9hcGktdmVyc2lvbj0yMDE4LTA0LTAy", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26328.01", + "Microsoft.Azure.Management.StorageSync.StorageSyncManagementClient/1.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 11 Sep 2018 18:17:42 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "x-ms-request-id": [ + "2238c09f-23a8-4608-862c-cfb62f24d4a9" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11994" + ], + "x-ms-correlation-request-id": [ + "361e1f9e-8df7-4524-b5ee-4ab43fd59bba" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180911T181742Z:361e1f9e-8df7-4524-b5ee-4ab43fd59bba" + ], + "Content-Length": [ + "451" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res8179/providers/microsoft.storagesync/storageSyncServices/sss-sepall910/workflow/00316aea-b6c0-4242-b915-da18039854b5/operationresults/e9fcfa38-998a-4aee-8819-a8210b5762c4\",\r\n \"name\": \"e9fcfa38-998a-4aee-8819-a8210b5762c4\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-09-11T18:17:32.117367Z\",\r\n \"endTime\": \"2018-09-11T18:17:37.8247359Z\",\r\n \"percentComplete\": null,\r\n \"error\": null,\r\n \"properties\": {}\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res8179/providers/microsoft.storagesync/storageSyncServices/sss-sepall910/workflows/00316aea-b6c0-4242-b915-da18039854b5/operationresults/e9fcfa38-998a-4aee-8819-a8210b5762c4?api-version=2018-04-02", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWQxNmY5YjMtYmJlMy00OGQ0LTkzMGEtMjdhNzRkY2EwMDNiL3Jlc291cmNlR3JvdXBzL3JlczgxNzkvcHJvdmlkZXJzL21pY3Jvc29mdC5zdG9yYWdlc3luYy9zdG9yYWdlU3luY1NlcnZpY2VzL3Nzcy1zZXBhbGw5MTAvd29ya2Zsb3dzLzAwMzE2YWVhLWI2YzAtNDI0Mi1iOTE1LWRhMTgwMzk4NTRiNS9vcGVyYXRpb25yZXN1bHRzL2U5ZmNmYTM4LTk5OGEtNGFlZS04ODE5LWE4MjEwYjU3NjJjND9hcGktdmVyc2lvbj0yMDE4LTA0LTAy", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26328.01", + "Microsoft.Azure.Management.StorageSync.StorageSyncManagementClient/1.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 11 Sep 2018 18:17:43 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "x-ms-request-id": [ + "3d46b4ea-5a89-40ec-a9b0-d6c343f65251" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11993" + ], + "x-ms-correlation-request-id": [ + "e87c3c1e-01d8-41bb-8669-1a125ee6c149" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180911T181744Z:e87c3c1e-01d8-41bb-8669-1a125ee6c149" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "", + "StatusCode": 204 + }, + { + "RequestUri": "/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res8179/providers/Microsoft.StorageSync/storageSyncServices/sss-sepall910/syncGroups/sg-sepall8189/cloudEndpoints/sepall5158?api-version=2018-04-02", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWQxNmY5YjMtYmJlMy00OGQ0LTkzMGEtMjdhNzRkY2EwMDNiL3Jlc291cmNlR3JvdXBzL3JlczgxNzkvcHJvdmlkZXJzL01pY3Jvc29mdC5TdG9yYWdlU3luYy9zdG9yYWdlU3luY1NlcnZpY2VzL3Nzcy1zZXBhbGw5MTAvc3luY0dyb3Vwcy9zZy1zZXBhbGw4MTg5L2Nsb3VkRW5kcG9pbnRzL3NlcGFsbDUxNTg/YXBpLXZlcnNpb249MjAxOC0wNC0wMg==", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "727859c6-de19-4173-b2ab-c56485ee7472" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26328.01", + "Microsoft.Azure.Management.StorageSync.StorageSyncManagementClient/1.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 11 Sep 2018 18:17:44 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res8179/providers/microsoft.storagesync/storageSyncServices/sss-sepall910/workflows/49fa418c-7425-45b8-b82d-81d8ef340d0a/operationresults/394eeff2-377d-48ee-86be-aeeb706dd567?api-version=2018-04-02" + ], + "Retry-After": [ + "10" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res8179/providers/microsoft.storagesync/storageSyncServices/sss-sepall910/workflows/49fa418c-7425-45b8-b82d-81d8ef340d0a/operations/394eeff2-377d-48ee-86be-aeeb706dd567?api-version=2018-04-02" + ], + "x-ms-request-id": [ + "2be939fa-af1c-46c2-9fbd-bc8b8e7857dc" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-deletes": [ + "14996" + ], + "x-ms-correlation-request-id": [ + "26a7740c-f6cf-491a-ac59-30d3174814f5" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180911T181745Z:26a7740c-f6cf-491a-ac59-30d3174814f5" + ], + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res8179/providers/microsoft.storagesync/storageSyncServices/sss-sepall910/workflows/49fa418c-7425-45b8-b82d-81d8ef340d0a/operations/394eeff2-377d-48ee-86be-aeeb706dd567?api-version=2018-04-02", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWQxNmY5YjMtYmJlMy00OGQ0LTkzMGEtMjdhNzRkY2EwMDNiL3Jlc291cmNlR3JvdXBzL3JlczgxNzkvcHJvdmlkZXJzL21pY3Jvc29mdC5zdG9yYWdlc3luYy9zdG9yYWdlU3luY1NlcnZpY2VzL3Nzcy1zZXBhbGw5MTAvd29ya2Zsb3dzLzQ5ZmE0MThjLTc0MjUtNDViOC1iODJkLTgxZDhlZjM0MGQwYS9vcGVyYXRpb25zLzM5NGVlZmYyLTM3N2QtNDhlZS04NmJlLWFlZWI3MDZkZDU2Nz9hcGktdmVyc2lvbj0yMDE4LTA0LTAy", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26328.01", + "Microsoft.Azure.Management.StorageSync.StorageSyncManagementClient/1.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 11 Sep 2018 18:17:55 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "x-ms-request-id": [ + "3dbea3b3-c491-41b5-a7c5-91be9d64d807" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11992" + ], + "x-ms-correlation-request-id": [ + "9b0e36cd-7faa-4f40-b837-54c311a09dec" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180911T181756Z:9b0e36cd-7faa-4f40-b837-54c311a09dec" + ], + "Content-Length": [ + "452" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res8179/providers/microsoft.storagesync/storageSyncServices/sss-sepall910/workflow/49fa418c-7425-45b8-b82d-81d8ef340d0a/operationresults/394eeff2-377d-48ee-86be-aeeb706dd567\",\r\n \"name\": \"394eeff2-377d-48ee-86be-aeeb706dd567\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-09-11T18:17:45.7135082Z\",\r\n \"endTime\": \"2018-09-11T18:17:48.3545129Z\",\r\n \"percentComplete\": null,\r\n \"error\": null,\r\n \"properties\": {}\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res8179/providers/microsoft.storagesync/storageSyncServices/sss-sepall910/workflows/49fa418c-7425-45b8-b82d-81d8ef340d0a/operationresults/394eeff2-377d-48ee-86be-aeeb706dd567?api-version=2018-04-02", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWQxNmY5YjMtYmJlMy00OGQ0LTkzMGEtMjdhNzRkY2EwMDNiL3Jlc291cmNlR3JvdXBzL3JlczgxNzkvcHJvdmlkZXJzL21pY3Jvc29mdC5zdG9yYWdlc3luYy9zdG9yYWdlU3luY1NlcnZpY2VzL3Nzcy1zZXBhbGw5MTAvd29ya2Zsb3dzLzQ5ZmE0MThjLTc0MjUtNDViOC1iODJkLTgxZDhlZjM0MGQwYS9vcGVyYXRpb25yZXN1bHRzLzM5NGVlZmYyLTM3N2QtNDhlZS04NmJlLWFlZWI3MDZkZDU2Nz9hcGktdmVyc2lvbj0yMDE4LTA0LTAy", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26328.01", + "Microsoft.Azure.Management.StorageSync.StorageSyncManagementClient/1.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 11 Sep 2018 18:17:56 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "x-ms-request-id": [ + "19f3766b-a793-4a24-998e-c37f27d5767c" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11991" + ], + "x-ms-correlation-request-id": [ + "ba772cd4-239c-44f2-8f5f-96aab4ceecdb" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180911T181756Z:ba772cd4-239c-44f2-8f5f-96aab4ceecdb" + ], + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res8179/providers/Microsoft.StorageSync/storageSyncServices/sss-sepall910/syncGroups/sg-sepall8189?api-version=2018-04-02", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWQxNmY5YjMtYmJlMy00OGQ0LTkzMGEtMjdhNzRkY2EwMDNiL3Jlc291cmNlR3JvdXBzL3JlczgxNzkvcHJvdmlkZXJzL01pY3Jvc29mdC5TdG9yYWdlU3luYy9zdG9yYWdlU3luY1NlcnZpY2VzL3Nzcy1zZXBhbGw5MTAvc3luY0dyb3Vwcy9zZy1zZXBhbGw4MTg5P2FwaS12ZXJzaW9uPTIwMTgtMDQtMDI=", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "816a88de-59b5-4ad2-94a4-2df98690be4f" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26328.01", + "Microsoft.Azure.Management.StorageSync.StorageSyncManagementClient/1.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 11 Sep 2018 18:17:56 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "x-ms-request-id": [ + "4b398fb3-8355-4e29-8d2b-988f2c4b4a27" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-deletes": [ + "14995" + ], + "x-ms-correlation-request-id": [ + "086fa62a-cb14-446b-bc8c-a0a792cc9396" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180911T181757Z:086fa62a-cb14-446b-bc8c-a0a792cc9396" + ], + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res8179/providers/Microsoft.StorageSync/storageSyncServices/sss-sepall910/registeredServers/d4d195a8-d559-4b29-bf7e-67da9976ed93?api-version=2018-04-02", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWQxNmY5YjMtYmJlMy00OGQ0LTkzMGEtMjdhNzRkY2EwMDNiL3Jlc291cmNlR3JvdXBzL3JlczgxNzkvcHJvdmlkZXJzL01pY3Jvc29mdC5TdG9yYWdlU3luYy9zdG9yYWdlU3luY1NlcnZpY2VzL3Nzcy1zZXBhbGw5MTAvcmVnaXN0ZXJlZFNlcnZlcnMvZDRkMTk1YTgtZDU1OS00YjI5LWJmN2UtNjdkYTk5NzZlZDkzP2FwaS12ZXJzaW9uPTIwMTgtMDQtMDI=", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "64d38b66-f01f-45c0-9491-194eaf6b452d" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26328.01", + "Microsoft.Azure.Management.StorageSync.StorageSyncManagementClient/1.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 11 Sep 2018 18:17:57 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res8179/providers/microsoft.storagesync/storageSyncServices/sss-sepall910/workflows/f580a49e-65ce-4e37-a4e4-cde36645da21/operationresults/f2ba4ec1-8dca-45a4-ba86-0853516b4811?api-version=2018-04-02" + ], + "Retry-After": [ + "10" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res8179/providers/microsoft.storagesync/storageSyncServices/sss-sepall910/workflows/f580a49e-65ce-4e37-a4e4-cde36645da21/operations/f2ba4ec1-8dca-45a4-ba86-0853516b4811?api-version=2018-04-02" + ], + "x-ms-request-id": [ + "e2ef4bb2-5058-4dfd-ab08-c2b501c755bb" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-deletes": [ + "14994" + ], + "x-ms-correlation-request-id": [ + "19e0caa4-5c2d-4235-94f5-9716a48d6c6a" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180911T181758Z:19e0caa4-5c2d-4235-94f5-9716a48d6c6a" + ], + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res8179/providers/microsoft.storagesync/storageSyncServices/sss-sepall910/workflows/f580a49e-65ce-4e37-a4e4-cde36645da21/operations/f2ba4ec1-8dca-45a4-ba86-0853516b4811?api-version=2018-04-02", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWQxNmY5YjMtYmJlMy00OGQ0LTkzMGEtMjdhNzRkY2EwMDNiL3Jlc291cmNlR3JvdXBzL3JlczgxNzkvcHJvdmlkZXJzL21pY3Jvc29mdC5zdG9yYWdlc3luYy9zdG9yYWdlU3luY1NlcnZpY2VzL3Nzcy1zZXBhbGw5MTAvd29ya2Zsb3dzL2Y1ODBhNDllLTY1Y2UtNGUzNy1hNGU0LWNkZTM2NjQ1ZGEyMS9vcGVyYXRpb25zL2YyYmE0ZWMxLThkY2EtNDVhNC1iYTg2LTA4NTM1MTZiNDgxMT9hcGktdmVyc2lvbj0yMDE4LTA0LTAy", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26328.01", + "Microsoft.Azure.Management.StorageSync.StorageSyncManagementClient/1.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 11 Sep 2018 18:18:08 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "x-ms-request-id": [ + "66f2101e-cc94-4938-97ab-be009b70d210" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11990" + ], + "x-ms-correlation-request-id": [ + "1426462f-719c-4961-a876-8c5ae1b2fa32" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180911T181809Z:1426462f-719c-4961-a876-8c5ae1b2fa32" + ], + "Content-Length": [ + "452" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res8179/providers/microsoft.storagesync/storageSyncServices/sss-sepall910/workflow/f580a49e-65ce-4e37-a4e4-cde36645da21/operationresults/f2ba4ec1-8dca-45a4-ba86-0853516b4811\",\r\n \"name\": \"f2ba4ec1-8dca-45a4-ba86-0853516b4811\",\r\n \"status\": \"delayStep\",\r\n \"startTime\": \"2018-09-11T18:17:59.4581768Z\",\r\n \"endTime\": \"2018-09-11T18:18:05.9279718Z\",\r\n \"percentComplete\": null,\r\n \"error\": null,\r\n \"properties\": {}\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res8179/providers/microsoft.storagesync/storageSyncServices/sss-sepall910/workflows/f580a49e-65ce-4e37-a4e4-cde36645da21/operations/f2ba4ec1-8dca-45a4-ba86-0853516b4811?api-version=2018-04-02", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWQxNmY5YjMtYmJlMy00OGQ0LTkzMGEtMjdhNzRkY2EwMDNiL3Jlc291cmNlR3JvdXBzL3JlczgxNzkvcHJvdmlkZXJzL21pY3Jvc29mdC5zdG9yYWdlc3luYy9zdG9yYWdlU3luY1NlcnZpY2VzL3Nzcy1zZXBhbGw5MTAvd29ya2Zsb3dzL2Y1ODBhNDllLTY1Y2UtNGUzNy1hNGU0LWNkZTM2NjQ1ZGEyMS9vcGVyYXRpb25zL2YyYmE0ZWMxLThkY2EtNDVhNC1iYTg2LTA4NTM1MTZiNDgxMT9hcGktdmVyc2lvbj0yMDE4LTA0LTAy", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26328.01", + "Microsoft.Azure.Management.StorageSync.StorageSyncManagementClient/1.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 11 Sep 2018 18:18:19 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "x-ms-request-id": [ + "fead5ca3-1424-4fd0-b97c-b3302182cce1" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11989" + ], + "x-ms-correlation-request-id": [ + "2ac78f20-5135-4f17-866b-1cf121458338" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180911T181819Z:2ac78f20-5135-4f17-866b-1cf121458338" + ], + "Content-Length": [ + "452" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res8179/providers/microsoft.storagesync/storageSyncServices/sss-sepall910/workflow/f580a49e-65ce-4e37-a4e4-cde36645da21/operationresults/f2ba4ec1-8dca-45a4-ba86-0853516b4811\",\r\n \"name\": \"f2ba4ec1-8dca-45a4-ba86-0853516b4811\",\r\n \"status\": \"delayStep\",\r\n \"startTime\": \"2018-09-11T18:17:59.4581768Z\",\r\n \"endTime\": \"2018-09-11T18:18:05.9279718Z\",\r\n \"percentComplete\": null,\r\n \"error\": null,\r\n \"properties\": {}\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res8179/providers/microsoft.storagesync/storageSyncServices/sss-sepall910/workflows/f580a49e-65ce-4e37-a4e4-cde36645da21/operations/f2ba4ec1-8dca-45a4-ba86-0853516b4811?api-version=2018-04-02", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWQxNmY5YjMtYmJlMy00OGQ0LTkzMGEtMjdhNzRkY2EwMDNiL3Jlc291cmNlR3JvdXBzL3JlczgxNzkvcHJvdmlkZXJzL21pY3Jvc29mdC5zdG9yYWdlc3luYy9zdG9yYWdlU3luY1NlcnZpY2VzL3Nzcy1zZXBhbGw5MTAvd29ya2Zsb3dzL2Y1ODBhNDllLTY1Y2UtNGUzNy1hNGU0LWNkZTM2NjQ1ZGEyMS9vcGVyYXRpb25zL2YyYmE0ZWMxLThkY2EtNDVhNC1iYTg2LTA4NTM1MTZiNDgxMT9hcGktdmVyc2lvbj0yMDE4LTA0LTAy", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26328.01", + "Microsoft.Azure.Management.StorageSync.StorageSyncManagementClient/1.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 11 Sep 2018 18:18:30 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "x-ms-request-id": [ + "69a6d8eb-1adf-452e-824a-dc64c790f18d" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11988" + ], + "x-ms-correlation-request-id": [ + "59840de9-77b1-4030-ac47-4f6a81152572" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180911T181830Z:59840de9-77b1-4030-ac47-4f6a81152572" + ], + "Content-Length": [ + "452" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res8179/providers/microsoft.storagesync/storageSyncServices/sss-sepall910/workflow/f580a49e-65ce-4e37-a4e4-cde36645da21/operationresults/f2ba4ec1-8dca-45a4-ba86-0853516b4811\",\r\n \"name\": \"f2ba4ec1-8dca-45a4-ba86-0853516b4811\",\r\n \"status\": \"delayStep\",\r\n \"startTime\": \"2018-09-11T18:17:59.4581768Z\",\r\n \"endTime\": \"2018-09-11T18:18:05.9279718Z\",\r\n \"percentComplete\": null,\r\n \"error\": null,\r\n \"properties\": {}\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res8179/providers/microsoft.storagesync/storageSyncServices/sss-sepall910/workflows/f580a49e-65ce-4e37-a4e4-cde36645da21/operations/f2ba4ec1-8dca-45a4-ba86-0853516b4811?api-version=2018-04-02", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWQxNmY5YjMtYmJlMy00OGQ0LTkzMGEtMjdhNzRkY2EwMDNiL3Jlc291cmNlR3JvdXBzL3JlczgxNzkvcHJvdmlkZXJzL21pY3Jvc29mdC5zdG9yYWdlc3luYy9zdG9yYWdlU3luY1NlcnZpY2VzL3Nzcy1zZXBhbGw5MTAvd29ya2Zsb3dzL2Y1ODBhNDllLTY1Y2UtNGUzNy1hNGU0LWNkZTM2NjQ1ZGEyMS9vcGVyYXRpb25zL2YyYmE0ZWMxLThkY2EtNDVhNC1iYTg2LTA4NTM1MTZiNDgxMT9hcGktdmVyc2lvbj0yMDE4LTA0LTAy", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26328.01", + "Microsoft.Azure.Management.StorageSync.StorageSyncManagementClient/1.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 11 Sep 2018 18:18:41 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "x-ms-request-id": [ + "a74a988b-db55-48dc-8656-01f31e4f3789" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11987" + ], + "x-ms-correlation-request-id": [ + "26ab2ca5-5975-42e7-b01f-ab52bb72eee7" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180911T181841Z:26ab2ca5-5975-42e7-b01f-ab52bb72eee7" + ], + "Content-Length": [ + "452" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res8179/providers/microsoft.storagesync/storageSyncServices/sss-sepall910/workflow/f580a49e-65ce-4e37-a4e4-cde36645da21/operationresults/f2ba4ec1-8dca-45a4-ba86-0853516b4811\",\r\n \"name\": \"f2ba4ec1-8dca-45a4-ba86-0853516b4811\",\r\n \"status\": \"delayStep\",\r\n \"startTime\": \"2018-09-11T18:17:59.4581768Z\",\r\n \"endTime\": \"2018-09-11T18:18:05.9279718Z\",\r\n \"percentComplete\": null,\r\n \"error\": null,\r\n \"properties\": {}\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res8179/providers/microsoft.storagesync/storageSyncServices/sss-sepall910/workflows/f580a49e-65ce-4e37-a4e4-cde36645da21/operations/f2ba4ec1-8dca-45a4-ba86-0853516b4811?api-version=2018-04-02", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWQxNmY5YjMtYmJlMy00OGQ0LTkzMGEtMjdhNzRkY2EwMDNiL3Jlc291cmNlR3JvdXBzL3JlczgxNzkvcHJvdmlkZXJzL21pY3Jvc29mdC5zdG9yYWdlc3luYy9zdG9yYWdlU3luY1NlcnZpY2VzL3Nzcy1zZXBhbGw5MTAvd29ya2Zsb3dzL2Y1ODBhNDllLTY1Y2UtNGUzNy1hNGU0LWNkZTM2NjQ1ZGEyMS9vcGVyYXRpb25zL2YyYmE0ZWMxLThkY2EtNDVhNC1iYTg2LTA4NTM1MTZiNDgxMT9hcGktdmVyc2lvbj0yMDE4LTA0LTAy", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26328.01", + "Microsoft.Azure.Management.StorageSync.StorageSyncManagementClient/1.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 11 Sep 2018 18:18:52 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "x-ms-request-id": [ + "080153d3-c517-4747-9b1f-0e9a2d7dc9ac" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11986" + ], + "x-ms-correlation-request-id": [ + "4e5a69db-093b-44c5-8283-098713608e62" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180911T181852Z:4e5a69db-093b-44c5-8283-098713608e62" + ], + "Content-Length": [ + "452" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res8179/providers/microsoft.storagesync/storageSyncServices/sss-sepall910/workflow/f580a49e-65ce-4e37-a4e4-cde36645da21/operationresults/f2ba4ec1-8dca-45a4-ba86-0853516b4811\",\r\n \"name\": \"f2ba4ec1-8dca-45a4-ba86-0853516b4811\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-09-11T18:17:59.4581768Z\",\r\n \"endTime\": \"2018-09-11T18:18:51.4542148Z\",\r\n \"percentComplete\": null,\r\n \"error\": null,\r\n \"properties\": {}\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res8179/providers/microsoft.storagesync/storageSyncServices/sss-sepall910/workflows/f580a49e-65ce-4e37-a4e4-cde36645da21/operationresults/f2ba4ec1-8dca-45a4-ba86-0853516b4811?api-version=2018-04-02", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWQxNmY5YjMtYmJlMy00OGQ0LTkzMGEtMjdhNzRkY2EwMDNiL3Jlc291cmNlR3JvdXBzL3JlczgxNzkvcHJvdmlkZXJzL21pY3Jvc29mdC5zdG9yYWdlc3luYy9zdG9yYWdlU3luY1NlcnZpY2VzL3Nzcy1zZXBhbGw5MTAvd29ya2Zsb3dzL2Y1ODBhNDllLTY1Y2UtNGUzNy1hNGU0LWNkZTM2NjQ1ZGEyMS9vcGVyYXRpb25yZXN1bHRzL2YyYmE0ZWMxLThkY2EtNDVhNC1iYTg2LTA4NTM1MTZiNDgxMT9hcGktdmVyc2lvbj0yMDE4LTA0LTAy", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26328.01", + "Microsoft.Azure.Management.StorageSync.StorageSyncManagementClient/1.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 11 Sep 2018 18:18:52 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "x-ms-request-id": [ + "eec7f7c8-ac47-4e2f-8586-adba67fdca65" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11985" + ], + "x-ms-correlation-request-id": [ + "9437184c-df5c-4491-a3c5-9035287ccf57" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180911T181853Z:9437184c-df5c-4491-a3c5-9035287ccf57" + ], + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res8179/providers/Microsoft.StorageSync/storageSyncServices/sss-sepall910?api-version=2018-04-02", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWQxNmY5YjMtYmJlMy00OGQ0LTkzMGEtMjdhNzRkY2EwMDNiL3Jlc291cmNlR3JvdXBzL3JlczgxNzkvcHJvdmlkZXJzL01pY3Jvc29mdC5TdG9yYWdlU3luYy9zdG9yYWdlU3luY1NlcnZpY2VzL3Nzcy1zZXBhbGw5MTA/YXBpLXZlcnNpb249MjAxOC0wNC0wMg==", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "f66db097-bbbb-4bb0-94ba-d41ee5a81589" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26328.01", + "Microsoft.Azure.Management.StorageSync.StorageSyncManagementClient/1.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 11 Sep 2018 18:18:55 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "x-ms-request-id": [ + "07deb83f-916c-4508-96ae-65bed3fe04fc" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-deletes": [ + "14993" + ], + "x-ms-correlation-request-id": [ + "85a9a49d-2c0c-4f30-9702-4ff5ba9e79e0" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180911T181856Z:85a9a49d-2c0c-4f30-9702-4ff5ba9e79e0" + ], + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourcegroups/res8179?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWQxNmY5YjMtYmJlMy00OGQ0LTkzMGEtMjdhNzRkY2EwMDNiL3Jlc291cmNlZ3JvdXBzL3JlczgxNzk/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "e2f654e6-2daf-41ae-97cc-ad2c0d8c0552" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26328.01", + "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 11 Sep 2018 18:18:57 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1SRVM4MTc5LUVBU1RVUzIiLCJqb2JMb2NhdGlvbiI6ImVhc3R1czIifQ?api-version=2017-05-10" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-deletes": [ + "14992" + ], + "x-ms-request-id": [ + "94fbfb60-5ede-48df-af3b-765693ebbd48" + ], + "x-ms-correlation-request-id": [ + "94fbfb60-5ede-48df-af3b-765693ebbd48" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180911T181858Z:94fbfb60-5ede-48df-af3b-765693ebbd48" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1SRVM4MTc5LUVBU1RVUzIiLCJqb2JMb2NhdGlvbiI6ImVhc3R1czIifQ?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWQxNmY5YjMtYmJlMy00OGQ0LTkzMGEtMjdhNzRkY2EwMDNiL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFTUlZNNE1UYzVMVVZCVTFSVlV6SWlMQ0pxYjJKTWIyTmhkR2x2YmlJNkltVmhjM1IxY3pJaWZRP2FwaS12ZXJzaW9uPTIwMTctMDUtMTA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26328.01", + "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 11 Sep 2018 18:19:12 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1SRVM4MTc5LUVBU1RVUzIiLCJqb2JMb2NhdGlvbiI6ImVhc3R1czIifQ?api-version=2017-05-10" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11984" + ], + "x-ms-request-id": [ + "e9d5c353-b834-4181-87ab-779820710eaa" + ], + "x-ms-correlation-request-id": [ + "e9d5c353-b834-4181-87ab-779820710eaa" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180911T181913Z:e9d5c353-b834-4181-87ab-779820710eaa" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1SRVM4MTc5LUVBU1RVUzIiLCJqb2JMb2NhdGlvbiI6ImVhc3R1czIifQ?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWQxNmY5YjMtYmJlMy00OGQ0LTkzMGEtMjdhNzRkY2EwMDNiL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFTUlZNNE1UYzVMVVZCVTFSVlV6SWlMQ0pxYjJKTWIyTmhkR2x2YmlJNkltVmhjM1IxY3pJaWZRP2FwaS12ZXJzaW9uPTIwMTctMDUtMTA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26328.01", + "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 11 Sep 2018 18:19:28 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1SRVM4MTc5LUVBU1RVUzIiLCJqb2JMb2NhdGlvbiI6ImVhc3R1czIifQ?api-version=2017-05-10" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11983" + ], + "x-ms-request-id": [ + "d16e20dc-8755-4efb-8e8c-4d0459a71eb9" + ], + "x-ms-correlation-request-id": [ + "d16e20dc-8755-4efb-8e8c-4d0459a71eb9" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180911T181928Z:d16e20dc-8755-4efb-8e8c-4d0459a71eb9" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1SRVM4MTc5LUVBU1RVUzIiLCJqb2JMb2NhdGlvbiI6ImVhc3R1czIifQ?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWQxNmY5YjMtYmJlMy00OGQ0LTkzMGEtMjdhNzRkY2EwMDNiL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFTUlZNNE1UYzVMVVZCVTFSVlV6SWlMQ0pxYjJKTWIyTmhkR2x2YmlJNkltVmhjM1IxY3pJaWZRP2FwaS12ZXJzaW9uPTIwMTctMDUtMTA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26328.01", + "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 11 Sep 2018 18:19:43 GMT" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11982" + ], + "x-ms-request-id": [ + "97b7415b-9efb-4546-a459-d99ef1ea69b5" + ], + "x-ms-correlation-request-id": [ + "97b7415b-9efb-4546-a459-d99ef1ea69b5" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180911T181943Z:97b7415b-9efb-4546-a459-d99ef1ea69b5" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1SRVM4MTc5LUVBU1RVUzIiLCJqb2JMb2NhdGlvbiI6ImVhc3R1czIifQ?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWQxNmY5YjMtYmJlMy00OGQ0LTkzMGEtMjdhNzRkY2EwMDNiL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFTUlZNNE1UYzVMVVZCVTFSVlV6SWlMQ0pxYjJKTWIyTmhkR2x2YmlJNkltVmhjM1IxY3pJaWZRP2FwaS12ZXJzaW9uPTIwMTctMDUtMTA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26328.01", + "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 11 Sep 2018 18:19:43 GMT" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11981" + ], + "x-ms-request-id": [ + "3987934e-7df9-49dc-80a2-01a8c16d72ff" + ], + "x-ms-correlation-request-id": [ + "3987934e-7df9-49dc-80a2-01a8c16d72ff" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180911T181943Z:3987934e-7df9-49dc-80a2-01a8c16d72ff" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "", + "StatusCode": 200 + } + ], + "Names": { + "CreateResourceGroup": [ + "res8179" + ], + "ServerEndpointAllOperationsTest": [ + "sss-sepall910", + "sg-sepall8189", + "sepall5158" + ] + }, + "Variables": { + "SubscriptionId": "1d16f9b3-bbe3-48d4-930a-27a74dca003b" + } +} \ No newline at end of file diff --git a/src/SDKs/StorageSync/StorageSync.Tests/SessionRecords/Microsoft.Azure.Management.StorageSync.Tests.StorageSyncServiceTests/StorageSyncServiceBadRequestTest.json b/src/SDKs/StorageSync/StorageSync.Tests/SessionRecords/Microsoft.Azure.Management.StorageSync.Tests.StorageSyncServiceTests/StorageSyncServiceBadRequestTest.json new file mode 100644 index 000000000000..ee1c8fe6778c --- /dev/null +++ b/src/SDKs/StorageSync/StorageSync.Tests/SessionRecords/Microsoft.Azure.Management.StorageSync.Tests.StorageSyncServiceTests/StorageSyncServiceBadRequestTest.json @@ -0,0 +1,412 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourcegroups/res6034?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWQxNmY5YjMtYmJlMy00OGQ0LTkzMGEtMjdhNzRkY2EwMDNiL3Jlc291cmNlZ3JvdXBzL3JlczYwMzQ/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"location\": \"eastus2\"\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "0040f3f4-09d5-4244-877c-a3bbeb1af3c8" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26328.01", + "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "29" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 11 Sep 2018 17:59:24 GMT" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1199" + ], + "x-ms-request-id": [ + "a8c0c329-2f73-40a1-9a54-9775edd571c1" + ], + "x-ms-correlation-request-id": [ + "a8c0c329-2f73-40a1-9a54-9775edd571c1" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180911T175925Z:a8c0c329-2f73-40a1-9a54-9775edd571c1" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "168" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res6034\",\r\n \"name\": \"res6034\",\r\n \"location\": \"eastus2\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res6034/providers/Microsoft.StorageSync/storageSyncServices/%23%24%25badsss3117?api-version=2018-04-02", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWQxNmY5YjMtYmJlMy00OGQ0LTkzMGEtMjdhNzRkY2EwMDNiL3Jlc291cmNlR3JvdXBzL3JlczYwMzQvcHJvdmlkZXJzL01pY3Jvc29mdC5TdG9yYWdlU3luYy9zdG9yYWdlU3luY1NlcnZpY2VzLyUyMyUyNCUyNWJhZHNzczMxMTc/YXBpLXZlcnNpb249MjAxOC0wNC0wMg==", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"location\": \"west europe\",\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n }\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "0a1adbe6-5832-45da-ad5f-66914f7cb499" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26328.01", + "Microsoft.Azure.Management.StorageSync.StorageSyncManagementClient/1.0.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "97" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 11 Sep 2018 17:59:24 GMT" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-failure-cause": [ + "gateway" + ], + "x-ms-request-id": [ + "5e8e1c09-a84a-4149-8427-8fe97c650d2d" + ], + "x-ms-correlation-request-id": [ + "5e8e1c09-a84a-4149-8427-8fe97c650d2d" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180911T175925Z:5e8e1c09-a84a-4149-8427-8fe97c650d2d" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "347" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"error\": {\r\n \"code\": \"InvalidDoubleEncodedRequestUri\",\r\n \"message\": \"The request URI 'https://management.azure.com:443/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res6034/providers/Microsoft.StorageSync/storageSyncServices/%23$%25badsss3117?api-version=2018-04-02' is not valid, because it contains double encoding sequence '%25'.\"\r\n }\r\n}", + "StatusCode": 400 + }, + { + "RequestUri": "/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourcegroups/res6034?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWQxNmY5YjMtYmJlMy00OGQ0LTkzMGEtMjdhNzRkY2EwMDNiL3Jlc291cmNlZ3JvdXBzL3JlczYwMzQ/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "11cc5993-8ca0-4160-a820-4303e947305f" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26328.01", + "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 11 Sep 2018 17:59:25 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1SRVM2MDM0LUVBU1RVUzIiLCJqb2JMb2NhdGlvbiI6ImVhc3R1czIifQ?api-version=2017-05-10" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-deletes": [ + "14999" + ], + "x-ms-request-id": [ + "377f48fe-947b-40ef-95da-c4342371a51e" + ], + "x-ms-correlation-request-id": [ + "377f48fe-947b-40ef-95da-c4342371a51e" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180911T175926Z:377f48fe-947b-40ef-95da-c4342371a51e" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1SRVM2MDM0LUVBU1RVUzIiLCJqb2JMb2NhdGlvbiI6ImVhc3R1czIifQ?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWQxNmY5YjMtYmJlMy00OGQ0LTkzMGEtMjdhNzRkY2EwMDNiL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFTUlZNMk1ETTBMVVZCVTFSVlV6SWlMQ0pxYjJKTWIyTmhkR2x2YmlJNkltVmhjM1IxY3pJaWZRP2FwaS12ZXJzaW9uPTIwMTctMDUtMTA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26328.01", + "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 11 Sep 2018 17:59:41 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1SRVM2MDM0LUVBU1RVUzIiLCJqb2JMb2NhdGlvbiI6ImVhc3R1czIifQ?api-version=2017-05-10" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11999" + ], + "x-ms-request-id": [ + "c53b5a21-55de-4f8e-9d59-a8bf086d92fb" + ], + "x-ms-correlation-request-id": [ + "c53b5a21-55de-4f8e-9d59-a8bf086d92fb" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180911T175941Z:c53b5a21-55de-4f8e-9d59-a8bf086d92fb" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1SRVM2MDM0LUVBU1RVUzIiLCJqb2JMb2NhdGlvbiI6ImVhc3R1czIifQ?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWQxNmY5YjMtYmJlMy00OGQ0LTkzMGEtMjdhNzRkY2EwMDNiL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFTUlZNMk1ETTBMVVZCVTFSVlV6SWlMQ0pxYjJKTWIyTmhkR2x2YmlJNkltVmhjM1IxY3pJaWZRP2FwaS12ZXJzaW9uPTIwMTctMDUtMTA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26328.01", + "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 11 Sep 2018 17:59:55 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1SRVM2MDM0LUVBU1RVUzIiLCJqb2JMb2NhdGlvbiI6ImVhc3R1czIifQ?api-version=2017-05-10" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11998" + ], + "x-ms-request-id": [ + "a7c2619b-6b5a-4b01-ba49-5b339755a7ad" + ], + "x-ms-correlation-request-id": [ + "a7c2619b-6b5a-4b01-ba49-5b339755a7ad" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180911T175956Z:a7c2619b-6b5a-4b01-ba49-5b339755a7ad" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1SRVM2MDM0LUVBU1RVUzIiLCJqb2JMb2NhdGlvbiI6ImVhc3R1czIifQ?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWQxNmY5YjMtYmJlMy00OGQ0LTkzMGEtMjdhNzRkY2EwMDNiL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFTUlZNMk1ETTBMVVZCVTFSVlV6SWlMQ0pxYjJKTWIyTmhkR2x2YmlJNkltVmhjM1IxY3pJaWZRP2FwaS12ZXJzaW9uPTIwMTctMDUtMTA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26328.01", + "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 11 Sep 2018 18:00:10 GMT" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11997" + ], + "x-ms-request-id": [ + "896323a5-885b-4b5f-8941-e97ef9f0cc69" + ], + "x-ms-correlation-request-id": [ + "896323a5-885b-4b5f-8941-e97ef9f0cc69" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180911T180011Z:896323a5-885b-4b5f-8941-e97ef9f0cc69" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1SRVM2MDM0LUVBU1RVUzIiLCJqb2JMb2NhdGlvbiI6ImVhc3R1czIifQ?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWQxNmY5YjMtYmJlMy00OGQ0LTkzMGEtMjdhNzRkY2EwMDNiL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFTUlZNMk1ETTBMVVZCVTFSVlV6SWlMQ0pxYjJKTWIyTmhkR2x2YmlJNkltVmhjM1IxY3pJaWZRP2FwaS12ZXJzaW9uPTIwMTctMDUtMTA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26328.01", + "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 11 Sep 2018 18:00:11 GMT" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11996" + ], + "x-ms-request-id": [ + "b07a8a14-a93d-41ac-a569-1572597ffedf" + ], + "x-ms-correlation-request-id": [ + "b07a8a14-a93d-41ac-a569-1572597ffedf" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180911T180012Z:b07a8a14-a93d-41ac-a569-1572597ffedf" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "", + "StatusCode": 200 + } + ], + "Names": { + "CreateResourceGroup": [ + "res6034" + ], + "StorageSyncServiceBadRequestTest": [ + "#$%badsss3117" + ] + }, + "Variables": { + "SubscriptionId": "1d16f9b3-bbe3-48d4-930a-27a74dca003b" + } +} \ No newline at end of file diff --git a/src/SDKs/StorageSync/StorageSync.Tests/SessionRecords/Microsoft.Azure.Management.StorageSync.Tests.StorageSyncServiceTests/StorageSyncServiceCheckNameAvailabilityTest.json b/src/SDKs/StorageSync/StorageSync.Tests/SessionRecords/Microsoft.Azure.Management.StorageSync.Tests.StorageSyncServiceTests/StorageSyncServiceCheckNameAvailabilityTest.json new file mode 100644 index 000000000000..e296d44730f9 --- /dev/null +++ b/src/SDKs/StorageSync/StorageSync.Tests/SessionRecords/Microsoft.Azure.Management.StorageSync.Tests.StorageSyncServiceTests/StorageSyncServiceCheckNameAvailabilityTest.json @@ -0,0 +1,631 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourcegroups/res7146?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWQxNmY5YjMtYmJlMy00OGQ0LTkzMGEtMjdhNzRkY2EwMDNiL3Jlc291cmNlZ3JvdXBzL3JlczcxNDY/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"location\": \"eastus2\"\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "57c8f666-a3e3-497a-a401-33b84889d158" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26328.01", + "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "29" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 11 Sep 2018 18:03:11 GMT" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1199" + ], + "x-ms-request-id": [ + "41c2280c-328a-4681-a934-c61411b7e471" + ], + "x-ms-correlation-request-id": [ + "41c2280c-328a-4681-a934-c61411b7e471" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180911T180312Z:41c2280c-328a-4681-a934-c61411b7e471" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "168" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res7146\",\r\n \"name\": \"res7146\",\r\n \"location\": \"eastus2\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/providers/Microsoft.StorageSync/locations/west%20europe/checkNameAvailability?api-version=2018-04-02", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWQxNmY5YjMtYmJlMy00OGQ0LTkzMGEtMjdhNzRkY2EwMDNiL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3RvcmFnZVN5bmMvbG9jYXRpb25zL3dlc3QlMjBldXJvcGUvY2hlY2tOYW1lQXZhaWxhYmlsaXR5P2FwaS12ZXJzaW9uPTIwMTgtMDQtMDI=", + "RequestMethod": "POST", + "RequestBody": "{\r\n \"name\": \"ssscheckName5370\",\r\n \"type\": \"Microsoft.StorageSync/storageSyncServices\"\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "6daec40a-88a8-4236-81ef-25b23960e347" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26328.01", + "Microsoft.Azure.Management.StorageSync.StorageSyncManagementClient/1.0.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "90" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 11 Sep 2018 18:03:13 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "x-ms-request-id": [ + "5bc18835-3902-47ed-84a9-d83cfaa4792d" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1198" + ], + "x-ms-correlation-request-id": [ + "2507dc83-8f04-440c-b3aa-8e9363eeb27a" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180911T180313Z:2507dc83-8f04-440c-b3aa-8e9363eeb27a" + ], + "Content-Length": [ + "51" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"nameAvailable\": true,\r\n \"reason\": null,\r\n \"message\": null\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/providers/Microsoft.StorageSync/locations/west%20europe/checkNameAvailability?api-version=2018-04-02", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWQxNmY5YjMtYmJlMy00OGQ0LTkzMGEtMjdhNzRkY2EwMDNiL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3RvcmFnZVN5bmMvbG9jYXRpb25zL3dlc3QlMjBldXJvcGUvY2hlY2tOYW1lQXZhaWxhYmlsaXR5P2FwaS12ZXJzaW9uPTIwMTgtMDQtMDI=", + "RequestMethod": "POST", + "RequestBody": "{\r\n \"name\": \"ssscheckName5370\",\r\n \"type\": \"Microsoft.StorageSync/storageSyncServices\"\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "282bba68-b7ad-4784-b28b-3c8bf2d74be4" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26328.01", + "Microsoft.Azure.Management.StorageSync.StorageSyncManagementClient/1.0.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "90" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 11 Sep 2018 18:03:16 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "x-ms-request-id": [ + "b3f5daf8-6d82-4958-9a83-c9d9b73f1b16" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1196" + ], + "x-ms-correlation-request-id": [ + "bcca13a9-a11b-4c67-b3fd-37d4dd74baa0" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180911T180316Z:bcca13a9-a11b-4c67-b3fd-37d4dd74baa0" + ], + "Content-Length": [ + "118" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"nameAvailable\": false,\r\n \"reason\": \"AlreadyExists\",\r\n \"message\": \"A Resource with name already exists in this subscription.\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res7146/providers/Microsoft.StorageSync/storageSyncServices/ssscheckName5370?api-version=2018-04-02", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWQxNmY5YjMtYmJlMy00OGQ0LTkzMGEtMjdhNzRkY2EwMDNiL3Jlc291cmNlR3JvdXBzL3JlczcxNDYvcHJvdmlkZXJzL01pY3Jvc29mdC5TdG9yYWdlU3luYy9zdG9yYWdlU3luY1NlcnZpY2VzL3Nzc2NoZWNrTmFtZTUzNzA/YXBpLXZlcnNpb249MjAxOC0wNC0wMg==", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"location\": \"west europe\",\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n }\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "fb26141d-1572-42cc-8c46-bd9d32174c0d" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26328.01", + "Microsoft.Azure.Management.StorageSync.StorageSyncManagementClient/1.0.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "97" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 11 Sep 2018 18:03:15 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "x-ms-request-id": [ + "c826a7bc-b4fd-43e5-9a73-560f9b49504c" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1197" + ], + "x-ms-correlation-request-id": [ + "78fc56c4-c7df-4804-ad87-e48cb1401d30" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180911T180315Z:78fc56c4-c7df-4804-ad87-e48cb1401d30" + ], + "Content-Length": [ + "405" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"properties\": {\r\n \"storageSyncServiceStatus\": null,\r\n \"storageSyncServiceUid\": \"00000000-0000-0000-0000-000000000000\"\r\n },\r\n \"location\": \"west europe\",\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n },\r\n \"id\": \"/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res7146/providers/microsoft.storagesync/storageSyncServices/ssscheckName5370\",\r\n \"name\": \"ssscheckName5370\",\r\n \"type\": \"microsoft.storagesync/storageSyncServices\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res7146/providers/Microsoft.StorageSync/storageSyncServices/ssscheckName5370?api-version=2018-04-02", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWQxNmY5YjMtYmJlMy00OGQ0LTkzMGEtMjdhNzRkY2EwMDNiL3Jlc291cmNlR3JvdXBzL3JlczcxNDYvcHJvdmlkZXJzL01pY3Jvc29mdC5TdG9yYWdlU3luYy9zdG9yYWdlU3luY1NlcnZpY2VzL3Nzc2NoZWNrTmFtZTUzNzA/YXBpLXZlcnNpb249MjAxOC0wNC0wMg==", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "0a22f23e-194a-40a8-8c6f-f6b6403807d1" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26328.01", + "Microsoft.Azure.Management.StorageSync.StorageSyncManagementClient/1.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 11 Sep 2018 18:03:17 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "x-ms-request-id": [ + "e04e7a22-f6f7-4e5b-9ec8-15ca2e93968e" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-deletes": [ + "14999" + ], + "x-ms-correlation-request-id": [ + "5d84d98c-7f80-4d24-867e-5e4b863f07b9" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180911T180318Z:5d84d98c-7f80-4d24-867e-5e4b863f07b9" + ], + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourcegroups/res7146?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWQxNmY5YjMtYmJlMy00OGQ0LTkzMGEtMjdhNzRkY2EwMDNiL3Jlc291cmNlZ3JvdXBzL3JlczcxNDY/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "f99744c3-ecce-47b4-9c25-17c420a2b335" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26328.01", + "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 11 Sep 2018 18:03:18 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1SRVM3MTQ2LUVBU1RVUzIiLCJqb2JMb2NhdGlvbiI6ImVhc3R1czIifQ?api-version=2017-05-10" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-deletes": [ + "14998" + ], + "x-ms-request-id": [ + "aed2b59d-d357-4681-bf18-31da0d30af40" + ], + "x-ms-correlation-request-id": [ + "aed2b59d-d357-4681-bf18-31da0d30af40" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180911T180319Z:aed2b59d-d357-4681-bf18-31da0d30af40" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1SRVM3MTQ2LUVBU1RVUzIiLCJqb2JMb2NhdGlvbiI6ImVhc3R1czIifQ?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWQxNmY5YjMtYmJlMy00OGQ0LTkzMGEtMjdhNzRkY2EwMDNiL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFTUlZNM01UUTJMVVZCVTFSVlV6SWlMQ0pxYjJKTWIyTmhkR2x2YmlJNkltVmhjM1IxY3pJaWZRP2FwaS12ZXJzaW9uPTIwMTctMDUtMTA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26328.01", + "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 11 Sep 2018 18:03:33 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1SRVM3MTQ2LUVBU1RVUzIiLCJqb2JMb2NhdGlvbiI6ImVhc3R1czIifQ?api-version=2017-05-10" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11999" + ], + "x-ms-request-id": [ + "cbb1f0aa-7d60-488e-8ae3-2d5d52e1dbec" + ], + "x-ms-correlation-request-id": [ + "cbb1f0aa-7d60-488e-8ae3-2d5d52e1dbec" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180911T180334Z:cbb1f0aa-7d60-488e-8ae3-2d5d52e1dbec" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1SRVM3MTQ2LUVBU1RVUzIiLCJqb2JMb2NhdGlvbiI6ImVhc3R1czIifQ?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWQxNmY5YjMtYmJlMy00OGQ0LTkzMGEtMjdhNzRkY2EwMDNiL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFTUlZNM01UUTJMVVZCVTFSVlV6SWlMQ0pxYjJKTWIyTmhkR2x2YmlJNkltVmhjM1IxY3pJaWZRP2FwaS12ZXJzaW9uPTIwMTctMDUtMTA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26328.01", + "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 11 Sep 2018 18:03:49 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1SRVM3MTQ2LUVBU1RVUzIiLCJqb2JMb2NhdGlvbiI6ImVhc3R1czIifQ?api-version=2017-05-10" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11998" + ], + "x-ms-request-id": [ + "1922ed61-48da-4d6d-8c58-9508ef27561d" + ], + "x-ms-correlation-request-id": [ + "1922ed61-48da-4d6d-8c58-9508ef27561d" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180911T180349Z:1922ed61-48da-4d6d-8c58-9508ef27561d" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1SRVM3MTQ2LUVBU1RVUzIiLCJqb2JMb2NhdGlvbiI6ImVhc3R1czIifQ?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWQxNmY5YjMtYmJlMy00OGQ0LTkzMGEtMjdhNzRkY2EwMDNiL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFTUlZNM01UUTJMVVZCVTFSVlV6SWlMQ0pxYjJKTWIyTmhkR2x2YmlJNkltVmhjM1IxY3pJaWZRP2FwaS12ZXJzaW9uPTIwMTctMDUtMTA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26328.01", + "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 11 Sep 2018 18:04:04 GMT" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11997" + ], + "x-ms-request-id": [ + "4c192061-f9cf-4b58-b28d-7251980ad12b" + ], + "x-ms-correlation-request-id": [ + "4c192061-f9cf-4b58-b28d-7251980ad12b" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180911T180404Z:4c192061-f9cf-4b58-b28d-7251980ad12b" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1SRVM3MTQ2LUVBU1RVUzIiLCJqb2JMb2NhdGlvbiI6ImVhc3R1czIifQ?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWQxNmY5YjMtYmJlMy00OGQ0LTkzMGEtMjdhNzRkY2EwMDNiL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFTUlZNM01UUTJMVVZCVTFSVlV6SWlMQ0pxYjJKTWIyTmhkR2x2YmlJNkltVmhjM1IxY3pJaWZRP2FwaS12ZXJzaW9uPTIwMTctMDUtMTA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26328.01", + "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 11 Sep 2018 18:04:04 GMT" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11996" + ], + "x-ms-request-id": [ + "87e83ca9-af05-4175-a568-1f58f1d4ad4e" + ], + "x-ms-correlation-request-id": [ + "87e83ca9-af05-4175-a568-1f58f1d4ad4e" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180911T180405Z:87e83ca9-af05-4175-a568-1f58f1d4ad4e" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "", + "StatusCode": 200 + } + ], + "Names": { + "CreateResourceGroup": [ + "res7146" + ], + "StorageSyncServiceCheckNameAvailabilityTest": [ + "ssscheckName5370" + ] + }, + "Variables": { + "SubscriptionId": "1d16f9b3-bbe3-48d4-930a-27a74dca003b" + } +} \ No newline at end of file diff --git a/src/SDKs/StorageSync/StorageSync.Tests/SessionRecords/Microsoft.Azure.Management.StorageSync.Tests.StorageSyncServiceTests/StorageSyncServiceCreateTest.json b/src/SDKs/StorageSync/StorageSync.Tests/SessionRecords/Microsoft.Azure.Management.StorageSync.Tests.StorageSyncServiceTests/StorageSyncServiceCreateTest.json new file mode 100644 index 000000000000..100529531745 --- /dev/null +++ b/src/SDKs/StorageSync/StorageSync.Tests/SessionRecords/Microsoft.Azure.Management.StorageSync.Tests.StorageSyncServiceTests/StorageSyncServiceCreateTest.json @@ -0,0 +1,485 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourcegroups/res6963?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWQxNmY5YjMtYmJlMy00OGQ0LTkzMGEtMjdhNzRkY2EwMDNiL3Jlc291cmNlZ3JvdXBzL3JlczY5NjM/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"location\": \"eastus2\"\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "dbc0d3c8-259a-4eeb-a02b-26acf4f6df81" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26328.01", + "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "29" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 11 Sep 2018 18:02:16 GMT" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1199" + ], + "x-ms-request-id": [ + "46004663-f877-4d24-bf5a-fe5630dfea91" + ], + "x-ms-correlation-request-id": [ + "46004663-f877-4d24-bf5a-fe5630dfea91" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180911T180216Z:46004663-f877-4d24-bf5a-fe5630dfea91" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "168" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res6963\",\r\n \"name\": \"res6963\",\r\n \"location\": \"eastus2\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res6963/providers/Microsoft.StorageSync/storageSyncServices/ssscreate9184?api-version=2018-04-02", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWQxNmY5YjMtYmJlMy00OGQ0LTkzMGEtMjdhNzRkY2EwMDNiL3Jlc291cmNlR3JvdXBzL3JlczY5NjMvcHJvdmlkZXJzL01pY3Jvc29mdC5TdG9yYWdlU3luYy9zdG9yYWdlU3luY1NlcnZpY2VzL3Nzc2NyZWF0ZTkxODQ/YXBpLXZlcnNpb249MjAxOC0wNC0wMg==", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"location\": \"west europe\",\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n }\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "1d3e3a28-ac58-4b1e-b7f9-c07fa2942117" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26328.01", + "Microsoft.Azure.Management.StorageSync.StorageSyncManagementClient/1.0.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "97" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 11 Sep 2018 18:02:18 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "x-ms-request-id": [ + "44ccd156-aecc-438e-962a-765ecc101fe3" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1198" + ], + "x-ms-correlation-request-id": [ + "2770bf6e-6864-4b09-9451-014091a9c571" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180911T180219Z:2770bf6e-6864-4b09-9451-014091a9c571" + ], + "Content-Length": [ + "399" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"properties\": {\r\n \"storageSyncServiceStatus\": null,\r\n \"storageSyncServiceUid\": \"00000000-0000-0000-0000-000000000000\"\r\n },\r\n \"location\": \"west europe\",\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n },\r\n \"id\": \"/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res6963/providers/microsoft.storagesync/storageSyncServices/ssscreate9184\",\r\n \"name\": \"ssscreate9184\",\r\n \"type\": \"microsoft.storagesync/storageSyncServices\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res6963/providers/Microsoft.StorageSync/storageSyncServices/ssscreate9184?api-version=2018-04-02", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWQxNmY5YjMtYmJlMy00OGQ0LTkzMGEtMjdhNzRkY2EwMDNiL3Jlc291cmNlR3JvdXBzL3JlczY5NjMvcHJvdmlkZXJzL01pY3Jvc29mdC5TdG9yYWdlU3luYy9zdG9yYWdlU3luY1NlcnZpY2VzL3Nzc2NyZWF0ZTkxODQ/YXBpLXZlcnNpb249MjAxOC0wNC0wMg==", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "f7de77ed-a9ee-42a5-8dff-844ad2a76284" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26328.01", + "Microsoft.Azure.Management.StorageSync.StorageSyncManagementClient/1.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 11 Sep 2018 18:02:20 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "x-ms-request-id": [ + "23378771-a26a-4242-b02b-be13923686de" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-deletes": [ + "14999" + ], + "x-ms-correlation-request-id": [ + "a58d60a4-a2b3-4d84-b205-6d3f67935bac" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180911T180221Z:a58d60a4-a2b3-4d84-b205-6d3f67935bac" + ], + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourcegroups/res6963?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWQxNmY5YjMtYmJlMy00OGQ0LTkzMGEtMjdhNzRkY2EwMDNiL3Jlc291cmNlZ3JvdXBzL3JlczY5NjM/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "8204c194-30e6-4d35-946d-81641a50514c" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26328.01", + "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 11 Sep 2018 18:02:21 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1SRVM2OTYzLUVBU1RVUzIiLCJqb2JMb2NhdGlvbiI6ImVhc3R1czIifQ?api-version=2017-05-10" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-deletes": [ + "14998" + ], + "x-ms-request-id": [ + "6885323e-91a5-4906-898e-8035d797ab00" + ], + "x-ms-correlation-request-id": [ + "6885323e-91a5-4906-898e-8035d797ab00" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180911T180221Z:6885323e-91a5-4906-898e-8035d797ab00" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1SRVM2OTYzLUVBU1RVUzIiLCJqb2JMb2NhdGlvbiI6ImVhc3R1czIifQ?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWQxNmY5YjMtYmJlMy00OGQ0LTkzMGEtMjdhNzRkY2EwMDNiL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFTUlZNMk9UWXpMVVZCVTFSVlV6SWlMQ0pxYjJKTWIyTmhkR2x2YmlJNkltVmhjM1IxY3pJaWZRP2FwaS12ZXJzaW9uPTIwMTctMDUtMTA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26328.01", + "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 11 Sep 2018 18:02:36 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1SRVM2OTYzLUVBU1RVUzIiLCJqb2JMb2NhdGlvbiI6ImVhc3R1czIifQ?api-version=2017-05-10" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11999" + ], + "x-ms-request-id": [ + "bf8c47da-985e-4685-8363-9ea7be3f062d" + ], + "x-ms-correlation-request-id": [ + "bf8c47da-985e-4685-8363-9ea7be3f062d" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180911T180237Z:bf8c47da-985e-4685-8363-9ea7be3f062d" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1SRVM2OTYzLUVBU1RVUzIiLCJqb2JMb2NhdGlvbiI6ImVhc3R1czIifQ?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWQxNmY5YjMtYmJlMy00OGQ0LTkzMGEtMjdhNzRkY2EwMDNiL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFTUlZNMk9UWXpMVVZCVTFSVlV6SWlMQ0pxYjJKTWIyTmhkR2x2YmlJNkltVmhjM1IxY3pJaWZRP2FwaS12ZXJzaW9uPTIwMTctMDUtMTA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26328.01", + "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 11 Sep 2018 18:02:51 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1SRVM2OTYzLUVBU1RVUzIiLCJqb2JMb2NhdGlvbiI6ImVhc3R1czIifQ?api-version=2017-05-10" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11998" + ], + "x-ms-request-id": [ + "aafd9528-bcb8-4c51-b725-a5f85bb4f25a" + ], + "x-ms-correlation-request-id": [ + "aafd9528-bcb8-4c51-b725-a5f85bb4f25a" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180911T180252Z:aafd9528-bcb8-4c51-b725-a5f85bb4f25a" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1SRVM2OTYzLUVBU1RVUzIiLCJqb2JMb2NhdGlvbiI6ImVhc3R1czIifQ?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWQxNmY5YjMtYmJlMy00OGQ0LTkzMGEtMjdhNzRkY2EwMDNiL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFTUlZNMk9UWXpMVVZCVTFSVlV6SWlMQ0pxYjJKTWIyTmhkR2x2YmlJNkltVmhjM1IxY3pJaWZRP2FwaS12ZXJzaW9uPTIwMTctMDUtMTA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26328.01", + "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 11 Sep 2018 18:03:06 GMT" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11997" + ], + "x-ms-request-id": [ + "55af2be5-5341-4dfd-90f0-ab69a92cdd09" + ], + "x-ms-correlation-request-id": [ + "55af2be5-5341-4dfd-90f0-ab69a92cdd09" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180911T180307Z:55af2be5-5341-4dfd-90f0-ab69a92cdd09" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1SRVM2OTYzLUVBU1RVUzIiLCJqb2JMb2NhdGlvbiI6ImVhc3R1czIifQ?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWQxNmY5YjMtYmJlMy00OGQ0LTkzMGEtMjdhNzRkY2EwMDNiL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFTUlZNMk9UWXpMVVZCVTFSVlV6SWlMQ0pxYjJKTWIyTmhkR2x2YmlJNkltVmhjM1IxY3pJaWZRP2FwaS12ZXJzaW9uPTIwMTctMDUtMTA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26328.01", + "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 11 Sep 2018 18:03:06 GMT" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11996" + ], + "x-ms-request-id": [ + "0e0d1e02-e0e1-4bf4-9fba-30fb953bf251" + ], + "x-ms-correlation-request-id": [ + "0e0d1e02-e0e1-4bf4-9fba-30fb953bf251" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180911T180307Z:0e0d1e02-e0e1-4bf4-9fba-30fb953bf251" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "", + "StatusCode": 200 + } + ], + "Names": { + "CreateResourceGroup": [ + "res6963" + ], + "StorageSyncServiceCreateTest": [ + "ssscreate9184" + ] + }, + "Variables": { + "SubscriptionId": "1d16f9b3-bbe3-48d4-930a-27a74dca003b" + } +} \ No newline at end of file diff --git a/src/SDKs/StorageSync/StorageSync.Tests/SessionRecords/Microsoft.Azure.Management.StorageSync.Tests.StorageSyncServiceTests/StorageSyncServiceDeleteTest.json b/src/SDKs/StorageSync/StorageSync.Tests/SessionRecords/Microsoft.Azure.Management.StorageSync.Tests.StorageSyncServiceTests/StorageSyncServiceDeleteTest.json new file mode 100644 index 000000000000..1f27ce15248d --- /dev/null +++ b/src/SDKs/StorageSync/StorageSync.Tests/SessionRecords/Microsoft.Azure.Management.StorageSync.Tests.StorageSyncServiceTests/StorageSyncServiceDeleteTest.json @@ -0,0 +1,589 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourcegroups/res6138?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWQxNmY5YjMtYmJlMy00OGQ0LTkzMGEtMjdhNzRkY2EwMDNiL3Jlc291cmNlZ3JvdXBzL3JlczYxMzg/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"location\": \"eastus2\"\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "ba92c776-4e78-48e0-889b-a4f32f2b8c23" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26328.01", + "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "29" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 11 Sep 2018 18:01:19 GMT" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1199" + ], + "x-ms-request-id": [ + "fa2097d6-9aba-4e36-a6e2-662de082a3a8" + ], + "x-ms-correlation-request-id": [ + "fa2097d6-9aba-4e36-a6e2-662de082a3a8" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180911T180119Z:fa2097d6-9aba-4e36-a6e2-662de082a3a8" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "168" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res6138\",\r\n \"name\": \"res6138\",\r\n \"location\": \"eastus2\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res6138/providers/Microsoft.StorageSync/storageSyncServices/sssdelete7216?api-version=2018-04-02", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWQxNmY5YjMtYmJlMy00OGQ0LTkzMGEtMjdhNzRkY2EwMDNiL3Jlc291cmNlR3JvdXBzL3JlczYxMzgvcHJvdmlkZXJzL01pY3Jvc29mdC5TdG9yYWdlU3luYy9zdG9yYWdlU3luY1NlcnZpY2VzL3Nzc2RlbGV0ZTcyMTY/YXBpLXZlcnNpb249MjAxOC0wNC0wMg==", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "b9ff1793-7824-4c42-8e05-1e8a92c1f345" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26328.01", + "Microsoft.Azure.Management.StorageSync.StorageSyncManagementClient/1.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 11 Sep 2018 18:01:19 GMT" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-deletes": [ + "14999" + ], + "x-ms-request-id": [ + "ecf395fc-d742-45cb-9899-f937c8ca1fe8" + ], + "x-ms-correlation-request-id": [ + "ecf395fc-d742-45cb-9899-f937c8ca1fe8" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180911T180120Z:ecf395fc-d742-45cb-9899-f937c8ca1fe8" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "", + "StatusCode": 204 + }, + { + "RequestUri": "/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res6138/providers/Microsoft.StorageSync/storageSyncServices/sssdelete7216?api-version=2018-04-02", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWQxNmY5YjMtYmJlMy00OGQ0LTkzMGEtMjdhNzRkY2EwMDNiL3Jlc291cmNlR3JvdXBzL3JlczYxMzgvcHJvdmlkZXJzL01pY3Jvc29mdC5TdG9yYWdlU3luYy9zdG9yYWdlU3luY1NlcnZpY2VzL3Nzc2RlbGV0ZTcyMTY/YXBpLXZlcnNpb249MjAxOC0wNC0wMg==", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "a756dccd-653f-4b63-9434-399f50567a5f" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26328.01", + "Microsoft.Azure.Management.StorageSync.StorageSyncManagementClient/1.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 11 Sep 2018 18:01:25 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "x-ms-request-id": [ + "ee987016-298f-47df-bc78-f4bc238bf902" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-deletes": [ + "14998" + ], + "x-ms-correlation-request-id": [ + "91ea0242-2727-427d-bfd2-b10d89f9b995" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180911T180125Z:91ea0242-2727-427d-bfd2-b10d89f9b995" + ], + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res6138/providers/Microsoft.StorageSync/storageSyncServices/sssdelete7216?api-version=2018-04-02", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWQxNmY5YjMtYmJlMy00OGQ0LTkzMGEtMjdhNzRkY2EwMDNiL3Jlc291cmNlR3JvdXBzL3JlczYxMzgvcHJvdmlkZXJzL01pY3Jvc29mdC5TdG9yYWdlU3luYy9zdG9yYWdlU3luY1NlcnZpY2VzL3Nzc2RlbGV0ZTcyMTY/YXBpLXZlcnNpb249MjAxOC0wNC0wMg==", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "4fd0563f-f71a-40a5-b2ed-a182f333b8d7" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26328.01", + "Microsoft.Azure.Management.StorageSync.StorageSyncManagementClient/1.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 11 Sep 2018 18:01:25 GMT" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-deletes": [ + "14997" + ], + "x-ms-request-id": [ + "89d31ba8-c80e-41e3-96dc-ba31e1cebe45" + ], + "x-ms-correlation-request-id": [ + "89d31ba8-c80e-41e3-96dc-ba31e1cebe45" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180911T180125Z:89d31ba8-c80e-41e3-96dc-ba31e1cebe45" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "", + "StatusCode": 204 + }, + { + "RequestUri": "/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res6138/providers/Microsoft.StorageSync/storageSyncServices/sssdelete7216?api-version=2018-04-02", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWQxNmY5YjMtYmJlMy00OGQ0LTkzMGEtMjdhNzRkY2EwMDNiL3Jlc291cmNlR3JvdXBzL3JlczYxMzgvcHJvdmlkZXJzL01pY3Jvc29mdC5TdG9yYWdlU3luYy9zdG9yYWdlU3luY1NlcnZpY2VzL3Nzc2RlbGV0ZTcyMTY/YXBpLXZlcnNpb249MjAxOC0wNC0wMg==", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"location\": \"west europe\",\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n }\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "6e9705df-c29a-412f-9ce2-d4366c06a47e" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26328.01", + "Microsoft.Azure.Management.StorageSync.StorageSyncManagementClient/1.0.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "97" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 11 Sep 2018 18:01:23 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "x-ms-request-id": [ + "be2d95d9-84f3-4dee-bf68-c66a7280a33e" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1198" + ], + "x-ms-correlation-request-id": [ + "b4d18a4a-616f-4b3d-9b8b-db29a144b52e" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180911T180124Z:b4d18a4a-616f-4b3d-9b8b-db29a144b52e" + ], + "Content-Length": [ + "399" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"properties\": {\r\n \"storageSyncServiceStatus\": null,\r\n \"storageSyncServiceUid\": \"00000000-0000-0000-0000-000000000000\"\r\n },\r\n \"location\": \"west europe\",\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n },\r\n \"id\": \"/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res6138/providers/microsoft.storagesync/storageSyncServices/sssdelete7216\",\r\n \"name\": \"sssdelete7216\",\r\n \"type\": \"microsoft.storagesync/storageSyncServices\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourcegroups/res6138?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWQxNmY5YjMtYmJlMy00OGQ0LTkzMGEtMjdhNzRkY2EwMDNiL3Jlc291cmNlZ3JvdXBzL3JlczYxMzg/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "acf64a1c-c114-4614-856e-33b789291df8" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26328.01", + "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 11 Sep 2018 18:01:26 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1SRVM2MTM4LUVBU1RVUzIiLCJqb2JMb2NhdGlvbiI6ImVhc3R1czIifQ?api-version=2017-05-10" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-deletes": [ + "14996" + ], + "x-ms-request-id": [ + "b33c7683-a2dc-41d3-bc67-da14ab83a883" + ], + "x-ms-correlation-request-id": [ + "b33c7683-a2dc-41d3-bc67-da14ab83a883" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180911T180127Z:b33c7683-a2dc-41d3-bc67-da14ab83a883" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1SRVM2MTM4LUVBU1RVUzIiLCJqb2JMb2NhdGlvbiI6ImVhc3R1czIifQ?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWQxNmY5YjMtYmJlMy00OGQ0LTkzMGEtMjdhNzRkY2EwMDNiL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFTUlZNMk1UTTRMVVZCVTFSVlV6SWlMQ0pxYjJKTWIyTmhkR2x2YmlJNkltVmhjM1IxY3pJaWZRP2FwaS12ZXJzaW9uPTIwMTctMDUtMTA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26328.01", + "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 11 Sep 2018 18:01:41 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1SRVM2MTM4LUVBU1RVUzIiLCJqb2JMb2NhdGlvbiI6ImVhc3R1czIifQ?api-version=2017-05-10" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11998" + ], + "x-ms-request-id": [ + "218f1a26-8504-4a78-a449-7e2e83564993" + ], + "x-ms-correlation-request-id": [ + "218f1a26-8504-4a78-a449-7e2e83564993" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180911T180142Z:218f1a26-8504-4a78-a449-7e2e83564993" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1SRVM2MTM4LUVBU1RVUzIiLCJqb2JMb2NhdGlvbiI6ImVhc3R1czIifQ?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWQxNmY5YjMtYmJlMy00OGQ0LTkzMGEtMjdhNzRkY2EwMDNiL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFTUlZNMk1UTTRMVVZCVTFSVlV6SWlMQ0pxYjJKTWIyTmhkR2x2YmlJNkltVmhjM1IxY3pJaWZRP2FwaS12ZXJzaW9uPTIwMTctMDUtMTA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26328.01", + "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 11 Sep 2018 18:01:56 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1SRVM2MTM4LUVBU1RVUzIiLCJqb2JMb2NhdGlvbiI6ImVhc3R1czIifQ?api-version=2017-05-10" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11997" + ], + "x-ms-request-id": [ + "4231cdd7-d104-459c-8a3a-6740eb3de184" + ], + "x-ms-correlation-request-id": [ + "4231cdd7-d104-459c-8a3a-6740eb3de184" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180911T180157Z:4231cdd7-d104-459c-8a3a-6740eb3de184" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1SRVM2MTM4LUVBU1RVUzIiLCJqb2JMb2NhdGlvbiI6ImVhc3R1czIifQ?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWQxNmY5YjMtYmJlMy00OGQ0LTkzMGEtMjdhNzRkY2EwMDNiL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFTUlZNMk1UTTRMVVZCVTFSVlV6SWlMQ0pxYjJKTWIyTmhkR2x2YmlJNkltVmhjM1IxY3pJaWZRP2FwaS12ZXJzaW9uPTIwMTctMDUtMTA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26328.01", + "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 11 Sep 2018 18:02:12 GMT" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11996" + ], + "x-ms-request-id": [ + "e3ef3409-e039-46ee-8061-daa291e8ea12" + ], + "x-ms-correlation-request-id": [ + "e3ef3409-e039-46ee-8061-daa291e8ea12" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180911T180212Z:e3ef3409-e039-46ee-8061-daa291e8ea12" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1SRVM2MTM4LUVBU1RVUzIiLCJqb2JMb2NhdGlvbiI6ImVhc3R1czIifQ?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWQxNmY5YjMtYmJlMy00OGQ0LTkzMGEtMjdhNzRkY2EwMDNiL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFTUlZNMk1UTTRMVVZCVTFSVlV6SWlMQ0pxYjJKTWIyTmhkR2x2YmlJNkltVmhjM1IxY3pJaWZRP2FwaS12ZXJzaW9uPTIwMTctMDUtMTA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26328.01", + "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 11 Sep 2018 18:02:12 GMT" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11995" + ], + "x-ms-request-id": [ + "52ad1a0e-b676-482e-a43b-f35c0ff9970e" + ], + "x-ms-correlation-request-id": [ + "52ad1a0e-b676-482e-a43b-f35c0ff9970e" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180911T180212Z:52ad1a0e-b676-482e-a43b-f35c0ff9970e" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "", + "StatusCode": 200 + } + ], + "Names": { + "CreateResourceGroup": [ + "res6138" + ], + "StorageSyncServiceDeleteTest": [ + "sssdelete7216" + ] + }, + "Variables": { + "SubscriptionId": "1d16f9b3-bbe3-48d4-930a-27a74dca003b" + } +} \ No newline at end of file diff --git a/src/SDKs/StorageSync/StorageSync.Tests/SessionRecords/Microsoft.Azure.Management.StorageSync.Tests.StorageSyncServiceTests/StorageSyncServiceGetTest.json b/src/SDKs/StorageSync/StorageSync.Tests/SessionRecords/Microsoft.Azure.Management.StorageSync.Tests.StorageSyncServiceTests/StorageSyncServiceGetTest.json new file mode 100644 index 000000000000..6a9195fbd358 --- /dev/null +++ b/src/SDKs/StorageSync/StorageSync.Tests/SessionRecords/Microsoft.Azure.Management.StorageSync.Tests.StorageSyncServiceTests/StorageSyncServiceGetTest.json @@ -0,0 +1,552 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourcegroups/res5707?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWQxNmY5YjMtYmJlMy00OGQ0LTkzMGEtMjdhNzRkY2EwMDNiL3Jlc291cmNlZ3JvdXBzL3JlczU3MDc/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"location\": \"eastus2\"\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "85a00bcc-3d9d-40fb-a913-2465888962ae" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26328.01", + "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "29" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 11 Sep 2018 17:58:27 GMT" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1196" + ], + "x-ms-request-id": [ + "78233051-e0f3-47ef-b653-7a808d91db53" + ], + "x-ms-correlation-request-id": [ + "78233051-e0f3-47ef-b653-7a808d91db53" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180911T175827Z:78233051-e0f3-47ef-b653-7a808d91db53" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "168" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res5707\",\r\n \"name\": \"res5707\",\r\n \"location\": \"eastus2\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res5707/providers/Microsoft.StorageSync/storageSyncServices/sssget5566?api-version=2018-04-02", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWQxNmY5YjMtYmJlMy00OGQ0LTkzMGEtMjdhNzRkY2EwMDNiL3Jlc291cmNlR3JvdXBzL3JlczU3MDcvcHJvdmlkZXJzL01pY3Jvc29mdC5TdG9yYWdlU3luYy9zdG9yYWdlU3luY1NlcnZpY2VzL3Nzc2dldDU1NjY/YXBpLXZlcnNpb249MjAxOC0wNC0wMg==", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"location\": \"west europe\",\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n }\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "03ac2358-65f1-41ff-82d8-d23b4f6ad045" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26328.01", + "Microsoft.Azure.Management.StorageSync.StorageSyncManagementClient/1.0.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "97" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 11 Sep 2018 17:58:30 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "x-ms-request-id": [ + "805589d2-9da5-4361-a9a7-2a2dca323ca2" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1195" + ], + "x-ms-correlation-request-id": [ + "0aeea16f-7b65-40ab-a05b-c11527a4b83f" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180911T175830Z:0aeea16f-7b65-40ab-a05b-c11527a4b83f" + ], + "Content-Length": [ + "393" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"properties\": {\r\n \"storageSyncServiceStatus\": null,\r\n \"storageSyncServiceUid\": \"00000000-0000-0000-0000-000000000000\"\r\n },\r\n \"location\": \"west europe\",\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n },\r\n \"id\": \"/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res5707/providers/microsoft.storagesync/storageSyncServices/sssget5566\",\r\n \"name\": \"sssget5566\",\r\n \"type\": \"microsoft.storagesync/storageSyncServices\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res5707/providers/Microsoft.StorageSync/storageSyncServices/sssget5566?api-version=2018-04-02", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWQxNmY5YjMtYmJlMy00OGQ0LTkzMGEtMjdhNzRkY2EwMDNiL3Jlc291cmNlR3JvdXBzL3JlczU3MDcvcHJvdmlkZXJzL01pY3Jvc29mdC5TdG9yYWdlU3luYy9zdG9yYWdlU3luY1NlcnZpY2VzL3Nzc2dldDU1NjY/YXBpLXZlcnNpb249MjAxOC0wNC0wMg==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "8059856f-d68b-4436-a676-b1bcdfea0ba6" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26328.01", + "Microsoft.Azure.Management.StorageSync.StorageSyncManagementClient/1.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 11 Sep 2018 17:58:30 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "x-ms-request-id": [ + "c9078e6e-49b1-42e3-9b40-9f252b46aa86" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11995" + ], + "x-ms-correlation-request-id": [ + "53dfd899-7ab8-4f2c-bfa6-dc84a1337b08" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180911T175831Z:53dfd899-7ab8-4f2c-bfa6-dc84a1337b08" + ], + "Content-Length": [ + "390" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"properties\": {\r\n \"storageSyncServiceStatus\": 0,\r\n \"storageSyncServiceUid\": \"00000000-0000-0000-0000-000000000000\"\r\n },\r\n \"location\": \"west europe\",\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n },\r\n \"id\": \"/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res5707/providers/microsoft.storagesync/storageSyncServices/sssget5566\",\r\n \"name\": \"sssget5566\",\r\n \"type\": \"microsoft.storagesync/storageSyncServices\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res5707/providers/Microsoft.StorageSync/storageSyncServices/sssget5566?api-version=2018-04-02", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWQxNmY5YjMtYmJlMy00OGQ0LTkzMGEtMjdhNzRkY2EwMDNiL3Jlc291cmNlR3JvdXBzL3JlczU3MDcvcHJvdmlkZXJzL01pY3Jvc29mdC5TdG9yYWdlU3luYy9zdG9yYWdlU3luY1NlcnZpY2VzL3Nzc2dldDU1NjY/YXBpLXZlcnNpb249MjAxOC0wNC0wMg==", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "5f2904a0-b649-4b42-b2f6-2c83c409533b" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26328.01", + "Microsoft.Azure.Management.StorageSync.StorageSyncManagementClient/1.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 11 Sep 2018 17:58:33 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "x-ms-request-id": [ + "5c817ba8-36d6-4ecd-af64-34a21d46ddbd" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-deletes": [ + "14996" + ], + "x-ms-correlation-request-id": [ + "5c1343be-1532-4155-a7d9-4b3fd054686e" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180911T175833Z:5c1343be-1532-4155-a7d9-4b3fd054686e" + ], + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourcegroups/res5707?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWQxNmY5YjMtYmJlMy00OGQ0LTkzMGEtMjdhNzRkY2EwMDNiL3Jlc291cmNlZ3JvdXBzL3JlczU3MDc/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "9e183de1-8ac6-49c0-b749-32f6cee7c46e" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26328.01", + "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 11 Sep 2018 17:58:34 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1SRVM1NzA3LUVBU1RVUzIiLCJqb2JMb2NhdGlvbiI6ImVhc3R1czIifQ?api-version=2017-05-10" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-deletes": [ + "14995" + ], + "x-ms-request-id": [ + "c01f6db9-e3d9-4ee8-9679-f8a695f1680a" + ], + "x-ms-correlation-request-id": [ + "c01f6db9-e3d9-4ee8-9679-f8a695f1680a" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180911T175834Z:c01f6db9-e3d9-4ee8-9679-f8a695f1680a" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1SRVM1NzA3LUVBU1RVUzIiLCJqb2JMb2NhdGlvbiI6ImVhc3R1czIifQ?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWQxNmY5YjMtYmJlMy00OGQ0LTkzMGEtMjdhNzRkY2EwMDNiL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFTUlZNMU56QTNMVVZCVTFSVlV6SWlMQ0pxYjJKTWIyTmhkR2x2YmlJNkltVmhjM1IxY3pJaWZRP2FwaS12ZXJzaW9uPTIwMTctMDUtMTA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26328.01", + "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 11 Sep 2018 17:58:49 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1SRVM1NzA3LUVBU1RVUzIiLCJqb2JMb2NhdGlvbiI6ImVhc3R1czIifQ?api-version=2017-05-10" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11994" + ], + "x-ms-request-id": [ + "9b8270fd-116d-4d14-a14a-4bd44e27e24f" + ], + "x-ms-correlation-request-id": [ + "9b8270fd-116d-4d14-a14a-4bd44e27e24f" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180911T175849Z:9b8270fd-116d-4d14-a14a-4bd44e27e24f" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1SRVM1NzA3LUVBU1RVUzIiLCJqb2JMb2NhdGlvbiI6ImVhc3R1czIifQ?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWQxNmY5YjMtYmJlMy00OGQ0LTkzMGEtMjdhNzRkY2EwMDNiL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFTUlZNMU56QTNMVVZCVTFSVlV6SWlMQ0pxYjJKTWIyTmhkR2x2YmlJNkltVmhjM1IxY3pJaWZRP2FwaS12ZXJzaW9uPTIwMTctMDUtMTA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26328.01", + "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 11 Sep 2018 17:59:05 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1SRVM1NzA3LUVBU1RVUzIiLCJqb2JMb2NhdGlvbiI6ImVhc3R1czIifQ?api-version=2017-05-10" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11993" + ], + "x-ms-request-id": [ + "98b88ca7-05e7-4366-bab7-cde934b3e607" + ], + "x-ms-correlation-request-id": [ + "98b88ca7-05e7-4366-bab7-cde934b3e607" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180911T175905Z:98b88ca7-05e7-4366-bab7-cde934b3e607" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1SRVM1NzA3LUVBU1RVUzIiLCJqb2JMb2NhdGlvbiI6ImVhc3R1czIifQ?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWQxNmY5YjMtYmJlMy00OGQ0LTkzMGEtMjdhNzRkY2EwMDNiL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFTUlZNMU56QTNMVVZCVTFSVlV6SWlMQ0pxYjJKTWIyTmhkR2x2YmlJNkltVmhjM1IxY3pJaWZRP2FwaS12ZXJzaW9uPTIwMTctMDUtMTA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26328.01", + "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 11 Sep 2018 17:59:20 GMT" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11992" + ], + "x-ms-request-id": [ + "8fd625c7-249a-446f-9085-ac23ef1c8858" + ], + "x-ms-correlation-request-id": [ + "8fd625c7-249a-446f-9085-ac23ef1c8858" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180911T175920Z:8fd625c7-249a-446f-9085-ac23ef1c8858" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1SRVM1NzA3LUVBU1RVUzIiLCJqb2JMb2NhdGlvbiI6ImVhc3R1czIifQ?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWQxNmY5YjMtYmJlMy00OGQ0LTkzMGEtMjdhNzRkY2EwMDNiL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFTUlZNMU56QTNMVVZCVTFSVlV6SWlMQ0pxYjJKTWIyTmhkR2x2YmlJNkltVmhjM1IxY3pJaWZRP2FwaS12ZXJzaW9uPTIwMTctMDUtMTA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26328.01", + "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 11 Sep 2018 17:59:20 GMT" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11991" + ], + "x-ms-request-id": [ + "ef0543bf-81b8-415e-9c78-20ba6ff1ebf7" + ], + "x-ms-correlation-request-id": [ + "ef0543bf-81b8-415e-9c78-20ba6ff1ebf7" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180911T175920Z:ef0543bf-81b8-415e-9c78-20ba6ff1ebf7" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "", + "StatusCode": 200 + } + ], + "Names": { + "CreateResourceGroup": [ + "res5707" + ], + "StorageSyncServiceGetTest": [ + "sssget5566" + ] + }, + "Variables": { + "SubscriptionId": "1d16f9b3-bbe3-48d4-930a-27a74dca003b" + } +} \ No newline at end of file diff --git a/src/SDKs/StorageSync/StorageSync.Tests/SessionRecords/Microsoft.Azure.Management.StorageSync.Tests.StorageSyncServiceTests/StorageSyncServiceListTest.json b/src/SDKs/StorageSync/StorageSync.Tests/SessionRecords/Microsoft.Azure.Management.StorageSync.Tests.StorageSyncServiceTests/StorageSyncServiceListTest.json new file mode 100644 index 000000000000..b3eb7e883063 --- /dev/null +++ b/src/SDKs/StorageSync/StorageSync.Tests/SessionRecords/Microsoft.Azure.Management.StorageSync.Tests.StorageSyncServiceTests/StorageSyncServiceListTest.json @@ -0,0 +1,616 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourcegroups/res553?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWQxNmY5YjMtYmJlMy00OGQ0LTkzMGEtMjdhNzRkY2EwMDNiL3Jlc291cmNlZ3JvdXBzL3JlczU1Mz9hcGktdmVyc2lvbj0yMDE3LTA1LTEw", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"location\": \"eastus2\"\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "ca427713-fb49-47a0-b930-f03e2d71a40c" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26328.01", + "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "29" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 11 Sep 2018 18:04:09 GMT" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1199" + ], + "x-ms-request-id": [ + "0d998c91-3bc5-494d-bee5-ae8cb5c5d2a8" + ], + "x-ms-correlation-request-id": [ + "0d998c91-3bc5-494d-bee5-ae8cb5c5d2a8" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180911T180409Z:0d998c91-3bc5-494d-bee5-ae8cb5c5d2a8" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "166" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res553\",\r\n \"name\": \"res553\",\r\n \"location\": \"eastus2\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res553/providers/Microsoft.StorageSync/storageSyncServices/ssslist1022?api-version=2018-04-02", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWQxNmY5YjMtYmJlMy00OGQ0LTkzMGEtMjdhNzRkY2EwMDNiL3Jlc291cmNlR3JvdXBzL3JlczU1My9wcm92aWRlcnMvTWljcm9zb2Z0LlN0b3JhZ2VTeW5jL3N0b3JhZ2VTeW5jU2VydmljZXMvc3NzbGlzdDEwMjI/YXBpLXZlcnNpb249MjAxOC0wNC0wMg==", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"location\": \"west europe\",\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n }\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "1e79a503-eaf7-485c-83f1-5dd963de0f34" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26328.01", + "Microsoft.Azure.Management.StorageSync.StorageSyncManagementClient/1.0.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "97" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 11 Sep 2018 18:04:13 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "x-ms-request-id": [ + "7fdbcf95-cb44-409f-a790-04e1c34b57b0" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1198" + ], + "x-ms-correlation-request-id": [ + "23d79587-d5ed-4592-9fcd-10c344d186e2" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180911T180413Z:23d79587-d5ed-4592-9fcd-10c344d186e2" + ], + "Content-Length": [ + "394" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"properties\": {\r\n \"storageSyncServiceStatus\": null,\r\n \"storageSyncServiceUid\": \"00000000-0000-0000-0000-000000000000\"\r\n },\r\n \"location\": \"west europe\",\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n },\r\n \"id\": \"/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res553/providers/microsoft.storagesync/storageSyncServices/ssslist1022\",\r\n \"name\": \"ssslist1022\",\r\n \"type\": \"microsoft.storagesync/storageSyncServices\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res553/providers/Microsoft.StorageSync/storageSyncServices?api-version=2018-04-02", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWQxNmY5YjMtYmJlMy00OGQ0LTkzMGEtMjdhNzRkY2EwMDNiL3Jlc291cmNlR3JvdXBzL3JlczU1My9wcm92aWRlcnMvTWljcm9zb2Z0LlN0b3JhZ2VTeW5jL3N0b3JhZ2VTeW5jU2VydmljZXM/YXBpLXZlcnNpb249MjAxOC0wNC0wMg==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "9270185b-f2c8-463e-adc6-e61e32d8cc21" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26328.01", + "Microsoft.Azure.Management.StorageSync.StorageSyncManagementClient/1.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 11 Sep 2018 18:04:13 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "x-ms-request-id": [ + "fde1da50-9ee2-4ab5-a33e-65af230f819f" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11998" + ], + "x-ms-correlation-request-id": [ + "b44dfc00-4897-4a4a-b410-6c03d157401d" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180911T180413Z:b44dfc00-4897-4a4a-b410-6c03d157401d" + ], + "Content-Length": [ + "403" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"properties\": {\r\n \"storageSyncServiceStatus\": 0,\r\n \"storageSyncServiceUid\": \"00000000-0000-0000-0000-000000000000\"\r\n },\r\n \"location\": \"west europe\",\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n },\r\n \"id\": \"/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res553/providers/microsoft.storagesync/storageSyncServices/ssslist1022\",\r\n \"name\": \"ssslist1022\",\r\n \"type\": \"microsoft.storagesync/storageSyncServices\"\r\n }\r\n ]\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/providers/Microsoft.StorageSync/storageSyncServices?api-version=2018-04-02", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWQxNmY5YjMtYmJlMy00OGQ0LTkzMGEtMjdhNzRkY2EwMDNiL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3RvcmFnZVN5bmMvc3RvcmFnZVN5bmNTZXJ2aWNlcz9hcGktdmVyc2lvbj0yMDE4LTA0LTAy", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "d456700b-6f06-44e8-817c-2b477599703f" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26328.01", + "Microsoft.Azure.Management.StorageSync.StorageSyncManagementClient/1.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 11 Sep 2018 18:04:14 GMT" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-original-request-ids": [ + "105bc281-2a0b-48ac-b526-8b1912e76047", + "b053f2ec-6d41-4428-a996-809611ba623a", + "00419754-e2ee-4dfd-a2c3-35d2c65ef3c6", + "23a4cc51-25aa-414d-9ce5-d0073149541e" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11997" + ], + "x-ms-request-id": [ + "b80487e3-71cd-41e9-b7a4-d10c9f94d38a" + ], + "x-ms-correlation-request-id": [ + "b80487e3-71cd-41e9-b7a4-d10c9f94d38a" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180911T180414Z:b80487e3-71cd-41e9-b7a4-d10c9f94d38a" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "23600" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"properties\": {\r\n \"storageSyncServiceStatus\": 0,\r\n \"storageSyncServiceUid\": \"00000000-0000-0000-0000-000000000000\"\r\n },\r\n \"location\": \"westus\",\r\n \"tags\": {},\r\n \"id\": \"/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/aorlov-rg1/providers/microsoft.storagesync/storageSyncServices/aorlov-bugbash-hfs1\",\r\n \"name\": \"aorlov-bugbash-hfs1\",\r\n \"type\": \"microsoft.storagesync/storageSyncServices\"\r\n },\r\n {\r\n \"properties\": {\r\n \"storageSyncServiceStatus\": 0,\r\n \"storageSyncServiceUid\": \"00000000-0000-0000-0000-000000000000\"\r\n },\r\n \"location\": \"westus\",\r\n \"tags\": {},\r\n \"id\": \"/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/demorg1/providers/microsoft.storagesync/storageSyncServices/demo-storsync1\",\r\n \"name\": \"demo-storsync1\",\r\n \"type\": \"microsoft.storagesync/storageSyncServices\"\r\n },\r\n {\r\n \"properties\": {\r\n \"storageSyncServiceStatus\": 0,\r\n \"storageSyncServiceUid\": \"00000000-0000-0000-0000-000000000000\"\r\n },\r\n \"location\": \"westus\",\r\n \"tags\": {},\r\n \"id\": \"/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/RG-girika/providers/microsoft.storagesync/storageSyncServices/girikaAFS\",\r\n \"name\": \"girikaAFS\",\r\n \"type\": \"microsoft.storagesync/storageSyncServices\"\r\n },\r\n {\r\n \"properties\": {\r\n \"storageSyncServiceStatus\": 0,\r\n \"storageSyncServiceUid\": \"00000000-0000-0000-0000-000000000000\"\r\n },\r\n \"location\": \"westus\",\r\n \"tags\": {},\r\n \"id\": \"/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/anindyad-rg1/providers/microsoft.storagesync/storageSyncServices/Anindyad-Sync1\",\r\n \"name\": \"Anindyad-Sync1\",\r\n \"type\": \"microsoft.storagesync/storageSyncServices\"\r\n },\r\n {\r\n \"properties\": {\r\n \"storageSyncServiceStatus\": 0,\r\n \"storageSyncServiceUid\": \"00000000-0000-0000-0000-000000000000\"\r\n },\r\n \"location\": \"westus\",\r\n \"tags\": {},\r\n \"id\": \"/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/wgries-dfsn/providers/microsoft.storagesync/storageSyncServices/replicatest\",\r\n \"name\": \"replicatest\",\r\n \"type\": \"microsoft.storagesync/storageSyncServices\"\r\n },\r\n {\r\n \"properties\": {\r\n \"storageSyncServiceStatus\": 0,\r\n \"storageSyncServiceUid\": \"00000000-0000-0000-0000-000000000000\"\r\n },\r\n \"location\": \"westus\",\r\n \"tags\": {},\r\n \"id\": \"/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/ggezer-test/providers/microsoft.storagesync/storageSyncServices/ggezer-test-ss\",\r\n \"name\": \"ggezer-test-ss\",\r\n \"type\": \"microsoft.storagesync/storageSyncServices\"\r\n },\r\n {\r\n \"properties\": {\r\n \"storageSyncServiceStatus\": 0,\r\n \"storageSyncServiceUid\": \"00000000-0000-0000-0000-000000000000\"\r\n },\r\n \"location\": \"westus\",\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n },\r\n \"id\": \"/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res2805/providers/microsoft.storagesync/storageSyncServices/ssscreate4199\",\r\n \"name\": \"ssscreate4199\",\r\n \"type\": \"microsoft.storagesync/storageSyncServices\"\r\n },\r\n {\r\n \"properties\": {\r\n \"storageSyncServiceStatus\": 0,\r\n \"storageSyncServiceUid\": \"00000000-0000-0000-0000-000000000000\"\r\n },\r\n \"location\": \"westus\",\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n },\r\n \"id\": \"/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res4398/providers/microsoft.storagesync/storageSyncServices/ssscreate4859\",\r\n \"name\": \"ssscreate4859\",\r\n \"type\": \"microsoft.storagesync/storageSyncServices\"\r\n },\r\n {\r\n \"properties\": {\r\n \"storageSyncServiceStatus\": 0,\r\n \"storageSyncServiceUid\": \"00000000-0000-0000-0000-000000000000\"\r\n },\r\n \"location\": \"westus\",\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n },\r\n \"id\": \"/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res4363/providers/microsoft.storagesync/storageSyncServices/ssscreate2074\",\r\n \"name\": \"ssscreate2074\",\r\n \"type\": \"microsoft.storagesync/storageSyncServices\"\r\n },\r\n {\r\n \"properties\": {\r\n \"storageSyncServiceStatus\": 0,\r\n \"storageSyncServiceUid\": \"00000000-0000-0000-0000-000000000000\"\r\n },\r\n \"location\": \"westus\",\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n },\r\n \"id\": \"/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res9390/providers/microsoft.storagesync/storageSyncServices/ssscreate7452\",\r\n \"name\": \"ssscreate7452\",\r\n \"type\": \"microsoft.storagesync/storageSyncServices\"\r\n },\r\n {\r\n \"properties\": {\r\n \"storageSyncServiceStatus\": 0,\r\n \"storageSyncServiceUid\": \"00000000-0000-0000-0000-000000000000\"\r\n },\r\n \"location\": \"westus\",\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n },\r\n \"id\": \"/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res8008/providers/microsoft.storagesync/storageSyncServices/ssscreate9723\",\r\n \"name\": \"ssscreate9723\",\r\n \"type\": \"microsoft.storagesync/storageSyncServices\"\r\n },\r\n {\r\n \"properties\": {\r\n \"storageSyncServiceStatus\": 0,\r\n \"storageSyncServiceUid\": \"00000000-0000-0000-0000-000000000000\"\r\n },\r\n \"location\": \"westus\",\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n },\r\n \"id\": \"/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res6114/providers/microsoft.storagesync/storageSyncServices/ssscreate2618\",\r\n \"name\": \"ssscreate2618\",\r\n \"type\": \"microsoft.storagesync/storageSyncServices\"\r\n },\r\n {\r\n \"properties\": {\r\n \"storageSyncServiceStatus\": 0,\r\n \"storageSyncServiceUid\": \"00000000-0000-0000-0000-000000000000\"\r\n },\r\n \"location\": \"westus\",\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n },\r\n \"id\": \"/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res9007/providers/microsoft.storagesync/storageSyncServices/ssscreate730\",\r\n \"name\": \"ssscreate730\",\r\n \"type\": \"microsoft.storagesync/storageSyncServices\"\r\n },\r\n {\r\n \"properties\": {\r\n \"storageSyncServiceStatus\": 0,\r\n \"storageSyncServiceUid\": \"00000000-0000-0000-0000-000000000000\"\r\n },\r\n \"location\": \"westus\",\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n },\r\n \"id\": \"/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res9077/providers/microsoft.storagesync/storageSyncServices/ssscreate1289\",\r\n \"name\": \"ssscreate1289\",\r\n \"type\": \"microsoft.storagesync/storageSyncServices\"\r\n },\r\n {\r\n \"properties\": {\r\n \"storageSyncServiceStatus\": 0,\r\n \"storageSyncServiceUid\": \"00000000-0000-0000-0000-000000000000\"\r\n },\r\n \"location\": \"westus\",\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n },\r\n \"id\": \"/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res8126/providers/microsoft.storagesync/storageSyncServices/ssscreate3791\",\r\n \"name\": \"ssscreate3791\",\r\n \"type\": \"microsoft.storagesync/storageSyncServices\"\r\n },\r\n {\r\n \"properties\": {\r\n \"storageSyncServiceStatus\": 0,\r\n \"storageSyncServiceUid\": \"00000000-0000-0000-0000-000000000000\"\r\n },\r\n \"location\": \"westeurope\",\r\n \"tags\": {},\r\n \"id\": \"/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/scpruessMoveRG1/providers/microsoft.storagesync/storageSyncServices/ssswe\",\r\n \"name\": \"ssswe\",\r\n \"type\": \"microsoft.storagesync/storageSyncServices\"\r\n },\r\n {\r\n \"properties\": {\r\n \"storageSyncServiceStatus\": 0,\r\n \"storageSyncServiceUid\": \"00000000-0000-0000-0000-000000000000\"\r\n },\r\n \"location\": \"west europe\",\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n },\r\n \"id\": \"/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res3125/providers/microsoft.storagesync/storageSyncServices/sss-rscreate8670\",\r\n \"name\": \"sss-rscreate8670\",\r\n \"type\": \"microsoft.storagesync/storageSyncServices\"\r\n },\r\n {\r\n \"properties\": {\r\n \"storageSyncServiceStatus\": 0,\r\n \"storageSyncServiceUid\": \"00000000-0000-0000-0000-000000000000\"\r\n },\r\n \"location\": \"west europe\",\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n },\r\n \"id\": \"/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res5732/providers/microsoft.storagesync/storageSyncServices/sss-rscreate6692\",\r\n \"name\": \"sss-rscreate6692\",\r\n \"type\": \"microsoft.storagesync/storageSyncServices\"\r\n },\r\n {\r\n \"properties\": {\r\n \"storageSyncServiceStatus\": 0,\r\n \"storageSyncServiceUid\": \"00000000-0000-0000-0000-000000000000\"\r\n },\r\n \"location\": \"west europe\",\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n },\r\n \"id\": \"/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res9305/providers/microsoft.storagesync/storageSyncServices/sss-sepcreate2540\",\r\n \"name\": \"sss-sepcreate2540\",\r\n \"type\": \"microsoft.storagesync/storageSyncServices\"\r\n },\r\n {\r\n \"properties\": {\r\n \"storageSyncServiceStatus\": 0,\r\n \"storageSyncServiceUid\": \"00000000-0000-0000-0000-000000000000\"\r\n },\r\n \"location\": \"west europe\",\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n },\r\n \"id\": \"/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res2440/providers/microsoft.storagesync/storageSyncServices/sss-sepcreate313\",\r\n \"name\": \"sss-sepcreate313\",\r\n \"type\": \"microsoft.storagesync/storageSyncServices\"\r\n },\r\n {\r\n \"properties\": {\r\n \"storageSyncServiceStatus\": 0,\r\n \"storageSyncServiceUid\": \"00000000-0000-0000-0000-000000000000\"\r\n },\r\n \"location\": \"west europe\",\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n },\r\n \"id\": \"/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res5474/providers/microsoft.storagesync/storageSyncServices/sss-sepcreate5201\",\r\n \"name\": \"sss-sepcreate5201\",\r\n \"type\": \"microsoft.storagesync/storageSyncServices\"\r\n },\r\n {\r\n \"properties\": {\r\n \"storageSyncServiceStatus\": 0,\r\n \"storageSyncServiceUid\": \"00000000-0000-0000-0000-000000000000\"\r\n },\r\n \"location\": \"west europe\",\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n },\r\n \"id\": \"/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res6752/providers/microsoft.storagesync/storageSyncServices/sss-sepcreate101\",\r\n \"name\": \"sss-sepcreate101\",\r\n \"type\": \"microsoft.storagesync/storageSyncServices\"\r\n },\r\n {\r\n \"properties\": {\r\n \"storageSyncServiceStatus\": 0,\r\n \"storageSyncServiceUid\": \"00000000-0000-0000-0000-000000000000\"\r\n },\r\n \"location\": \"west europe\",\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n },\r\n \"id\": \"/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res1702/providers/microsoft.storagesync/storageSyncServices/sss-sepcreate2539\",\r\n \"name\": \"sss-sepcreate2539\",\r\n \"type\": \"microsoft.storagesync/storageSyncServices\"\r\n },\r\n {\r\n \"properties\": {\r\n \"storageSyncServiceStatus\": 0,\r\n \"storageSyncServiceUid\": \"00000000-0000-0000-0000-000000000000\"\r\n },\r\n \"location\": \"west europe\",\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n },\r\n \"id\": \"/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res3321/providers/microsoft.storagesync/storageSyncServices/sss-sepcreate7231\",\r\n \"name\": \"sss-sepcreate7231\",\r\n \"type\": \"microsoft.storagesync/storageSyncServices\"\r\n },\r\n {\r\n \"properties\": {\r\n \"storageSyncServiceStatus\": 0,\r\n \"storageSyncServiceUid\": \"00000000-0000-0000-0000-000000000000\"\r\n },\r\n \"location\": \"west europe\",\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n },\r\n \"id\": \"/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res4859/providers/microsoft.storagesync/storageSyncServices/sss-sepall8727\",\r\n \"name\": \"sss-sepall8727\",\r\n \"type\": \"microsoft.storagesync/storageSyncServices\"\r\n },\r\n {\r\n \"properties\": {\r\n \"storageSyncServiceStatus\": 0,\r\n \"storageSyncServiceUid\": \"00000000-0000-0000-0000-000000000000\"\r\n },\r\n \"location\": \"west europe\",\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n },\r\n \"id\": \"/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res8994/providers/microsoft.storagesync/storageSyncServices/sss-sepall535\",\r\n \"name\": \"sss-sepall535\",\r\n \"type\": \"microsoft.storagesync/storageSyncServices\"\r\n },\r\n {\r\n \"properties\": {\r\n \"storageSyncServiceStatus\": 0,\r\n \"storageSyncServiceUid\": \"00000000-0000-0000-0000-000000000000\"\r\n },\r\n \"location\": \"west europe\",\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n },\r\n \"id\": \"/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res4031/providers/microsoft.storagesync/storageSyncServices/sss-sepall7404\",\r\n \"name\": \"sss-sepall7404\",\r\n \"type\": \"microsoft.storagesync/storageSyncServices\"\r\n },\r\n {\r\n \"properties\": {\r\n \"storageSyncServiceStatus\": 0,\r\n \"storageSyncServiceUid\": \"00000000-0000-0000-0000-000000000000\"\r\n },\r\n \"location\": \"west europe\",\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n },\r\n \"id\": \"/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res553/providers/microsoft.storagesync/storageSyncServices/ssslist1022\",\r\n \"name\": \"ssslist1022\",\r\n \"type\": \"microsoft.storagesync/storageSyncServices\"\r\n },\r\n {\r\n \"properties\": {\r\n \"storageSyncServiceStatus\": 0,\r\n \"storageSyncServiceUid\": \"00000000-0000-0000-0000-000000000000\"\r\n },\r\n \"location\": \"eastus\",\r\n \"tags\": {},\r\n \"id\": \"/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/shreyas/providers/microsoft.storagesync/storageSyncServices/sync-test\",\r\n \"name\": \"sync-test\",\r\n \"type\": \"microsoft.storagesync/storageSyncServices\"\r\n },\r\n {\r\n \"properties\": {\r\n \"storageSyncServiceStatus\": 0,\r\n \"storageSyncServiceUid\": \"00000000-0000-0000-0000-000000000000\"\r\n },\r\n \"location\": \"eastus\",\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n },\r\n \"id\": \"/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res5837/providers/microsoft.storagesync/storageSyncServices/ssscreate-sgcreate6373\",\r\n \"name\": \"ssscreate-sgcreate6373\",\r\n \"type\": \"microsoft.storagesync/storageSyncServices\"\r\n },\r\n {\r\n \"properties\": {\r\n \"storageSyncServiceStatus\": 0,\r\n \"storageSyncServiceUid\": \"00000000-0000-0000-0000-000000000000\"\r\n },\r\n \"location\": \"eastus\",\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n },\r\n \"id\": \"/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res2790/providers/microsoft.storagesync/storageSyncServices/ssscreate-sglist2356\",\r\n \"name\": \"ssscreate-sglist2356\",\r\n \"type\": \"microsoft.storagesync/storageSyncServices\"\r\n },\r\n {\r\n \"properties\": {\r\n \"storageSyncServiceStatus\": 0,\r\n \"storageSyncServiceUid\": \"00000000-0000-0000-0000-000000000000\"\r\n },\r\n \"location\": \"eastus\",\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n },\r\n \"id\": \"/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res4158/providers/microsoft.storagesync/storageSyncServices/ssscreate-sgget1181\",\r\n \"name\": \"ssscreate-sgget1181\",\r\n \"type\": \"microsoft.storagesync/storageSyncServices\"\r\n },\r\n {\r\n \"properties\": {\r\n \"storageSyncServiceStatus\": 0,\r\n \"storageSyncServiceUid\": \"00000000-0000-0000-0000-000000000000\"\r\n },\r\n \"location\": \"eastus\",\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n },\r\n \"id\": \"/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res5138/providers/microsoft.storagesync/storageSyncServices/sss-cepcreate9848\",\r\n \"name\": \"sss-cepcreate9848\",\r\n \"type\": \"microsoft.storagesync/storageSyncServices\"\r\n },\r\n {\r\n \"properties\": {\r\n \"storageSyncServiceStatus\": 0,\r\n \"storageSyncServiceUid\": \"00000000-0000-0000-0000-000000000000\"\r\n },\r\n \"location\": \"eastus\",\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n },\r\n \"id\": \"/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res5490/providers/microsoft.storagesync/storageSyncServices/sss-cepget1446\",\r\n \"name\": \"sss-cepget1446\",\r\n \"type\": \"microsoft.storagesync/storageSyncServices\"\r\n },\r\n {\r\n \"properties\": {\r\n \"storageSyncServiceStatus\": 0,\r\n \"storageSyncServiceUid\": \"00000000-0000-0000-0000-000000000000\"\r\n },\r\n \"location\": \"eastus\",\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n },\r\n \"id\": \"/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res6335/providers/microsoft.storagesync/storageSyncServices/sss-cepdelete8881\",\r\n \"name\": \"sss-cepdelete8881\",\r\n \"type\": \"microsoft.storagesync/storageSyncServices\"\r\n },\r\n {\r\n \"properties\": {\r\n \"storageSyncServiceStatus\": 0,\r\n \"storageSyncServiceUid\": \"00000000-0000-0000-0000-000000000000\"\r\n },\r\n \"location\": \"eastus\",\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n },\r\n \"id\": \"/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res4365/providers/microsoft.storagesync/storageSyncServices/sss-cepcreate2821\",\r\n \"name\": \"sss-cepcreate2821\",\r\n \"type\": \"microsoft.storagesync/storageSyncServices\"\r\n },\r\n {\r\n \"properties\": {\r\n \"storageSyncServiceStatus\": 0,\r\n \"storageSyncServiceUid\": \"00000000-0000-0000-0000-000000000000\"\r\n },\r\n \"location\": \"eastus\",\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n },\r\n \"id\": \"/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res7804/providers/microsoft.storagesync/storageSyncServices/sss-cepcreate2759\",\r\n \"name\": \"sss-cepcreate2759\",\r\n \"type\": \"microsoft.storagesync/storageSyncServices\"\r\n },\r\n {\r\n \"properties\": {\r\n \"storageSyncServiceStatus\": 0,\r\n \"storageSyncServiceUid\": \"00000000-0000-0000-0000-000000000000\"\r\n },\r\n \"location\": \"eastus\",\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n },\r\n \"id\": \"/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res3036/providers/microsoft.storagesync/storageSyncServices/sss-cepcreate3001\",\r\n \"name\": \"sss-cepcreate3001\",\r\n \"type\": \"microsoft.storagesync/storageSyncServices\"\r\n },\r\n {\r\n \"properties\": {\r\n \"storageSyncServiceStatus\": 0,\r\n \"storageSyncServiceUid\": \"00000000-0000-0000-0000-000000000000\"\r\n },\r\n \"location\": \"eastus\",\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n },\r\n \"id\": \"/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res4884/providers/microsoft.storagesync/storageSyncServices/sss-cepcreate2205\",\r\n \"name\": \"sss-cepcreate2205\",\r\n \"type\": \"microsoft.storagesync/storageSyncServices\"\r\n },\r\n {\r\n \"properties\": {\r\n \"storageSyncServiceStatus\": 0,\r\n \"storageSyncServiceUid\": \"00000000-0000-0000-0000-000000000000\"\r\n },\r\n \"location\": \"eastus\",\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n },\r\n \"id\": \"/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res7862/providers/microsoft.storagesync/storageSyncServices/sss-cepcreate6737\",\r\n \"name\": \"sss-cepcreate6737\",\r\n \"type\": \"microsoft.storagesync/storageSyncServices\"\r\n },\r\n {\r\n \"properties\": {\r\n \"storageSyncServiceStatus\": 0,\r\n \"storageSyncServiceUid\": \"00000000-0000-0000-0000-000000000000\"\r\n },\r\n \"location\": \"eastus\",\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n },\r\n \"id\": \"/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res5329/providers/microsoft.storagesync/storageSyncServices/sss-cepcreate2269\",\r\n \"name\": \"sss-cepcreate2269\",\r\n \"type\": \"microsoft.storagesync/storageSyncServices\"\r\n },\r\n {\r\n \"properties\": {\r\n \"storageSyncServiceStatus\": 0,\r\n \"storageSyncServiceUid\": \"00000000-0000-0000-0000-000000000000\"\r\n },\r\n \"location\": \"eastus\",\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n },\r\n \"id\": \"/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res8152/providers/microsoft.storagesync/storageSyncServices/sss-cepcreate4191\",\r\n \"name\": \"sss-cepcreate4191\",\r\n \"type\": \"microsoft.storagesync/storageSyncServices\"\r\n },\r\n {\r\n \"properties\": {\r\n \"storageSyncServiceStatus\": 0,\r\n \"storageSyncServiceUid\": \"00000000-0000-0000-0000-000000000000\"\r\n },\r\n \"location\": \"eastus\",\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n },\r\n \"id\": \"/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res9799/providers/microsoft.storagesync/storageSyncServices/sss-cepcreate5247\",\r\n \"name\": \"sss-cepcreate5247\",\r\n \"type\": \"microsoft.storagesync/storageSyncServices\"\r\n },\r\n {\r\n \"properties\": {\r\n \"storageSyncServiceStatus\": 0,\r\n \"storageSyncServiceUid\": \"00000000-0000-0000-0000-000000000000\"\r\n },\r\n \"location\": \"westcentralus\",\r\n \"tags\": {},\r\n \"id\": \"/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/andreyR4movedToXSyncTest11/providers/microsoft.storagesync/storageSyncServices/TestStorageSync\",\r\n \"name\": \"TestStorageSync\",\r\n \"type\": \"microsoft.storagesync/storageSyncServices\"\r\n },\r\n {\r\n \"properties\": {\r\n \"storageSyncServiceStatus\": 0,\r\n \"storageSyncServiceUid\": \"00000000-0000-0000-0000-000000000000\"\r\n },\r\n \"location\": \"westcentralus\",\r\n \"tags\": {},\r\n \"id\": \"/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/Sundar-Scale-RG/providers/microsoft.storagesync/storageSyncServices/r1scale-sss\",\r\n \"name\": \"r1scale-sss\",\r\n \"type\": \"microsoft.storagesync/storageSyncServices\"\r\n },\r\n {\r\n \"properties\": {\r\n \"storageSyncServiceStatus\": 0,\r\n \"storageSyncServiceUid\": \"00000000-0000-0000-0000-000000000000\"\r\n },\r\n \"location\": \"westcentralus\",\r\n \"tags\": {},\r\n \"id\": \"/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/andreyR4movedToXSyncTest11/providers/microsoft.storagesync/storageSyncServices/PlopSSS\",\r\n \"name\": \"PlopSSS\",\r\n \"type\": \"microsoft.storagesync/storageSyncServices\"\r\n },\r\n {\r\n \"properties\": {\r\n \"storageSyncServiceStatus\": 0,\r\n \"storageSyncServiceUid\": \"00000000-0000-0000-0000-000000000000\"\r\n },\r\n \"location\": \"westcentralus\",\r\n \"tags\": {},\r\n \"id\": \"/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/MichaelmRG1/providers/microsoft.storagesync/storageSyncServices/michaelmsyncserviceR1\",\r\n \"name\": \"michaelmsyncserviceR1\",\r\n \"type\": \"microsoft.storagesync/storageSyncServices\"\r\n },\r\n {\r\n \"properties\": {\r\n \"storageSyncServiceStatus\": 0,\r\n \"storageSyncServiceUid\": \"00000000-0000-0000-0000-000000000000\"\r\n },\r\n \"location\": \"westcentralus\",\r\n \"tags\": {},\r\n \"id\": \"/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/andreyR4movedToXSyncTest11/providers/microsoft.storagesync/storageSyncServices/TestRC\",\r\n \"name\": \"TestRC\",\r\n \"type\": \"microsoft.storagesync/storageSyncServices\"\r\n },\r\n {\r\n \"properties\": {\r\n \"storageSyncServiceStatus\": 0,\r\n \"storageSyncServiceUid\": \"00000000-0000-0000-0000-000000000000\"\r\n },\r\n \"location\": \"westcentralus\",\r\n \"tags\": {},\r\n \"id\": \"/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/Plugfest30-RG/providers/microsoft.storagesync/storageSyncServices/Plugfest30-SSS\",\r\n \"name\": \"Plugfest30-SSS\",\r\n \"type\": \"microsoft.storagesync/storageSyncServices\"\r\n },\r\n {\r\n \"properties\": {\r\n \"storageSyncServiceStatus\": 0,\r\n \"storageSyncServiceUid\": \"00000000-0000-0000-0000-000000000000\"\r\n },\r\n \"location\": \"westcentralus\",\r\n \"tags\": {},\r\n \"id\": \"/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/gg-bb-rg/providers/microsoft.storagesync/storageSyncServices/gg-bb-ss1\",\r\n \"name\": \"gg-bb-ss1\",\r\n \"type\": \"microsoft.storagesync/storageSyncServices\"\r\n },\r\n {\r\n \"properties\": {\r\n \"storageSyncServiceStatus\": 0,\r\n \"storageSyncServiceUid\": \"00000000-0000-0000-0000-000000000000\"\r\n },\r\n \"location\": \"westcentralus\",\r\n \"tags\": {},\r\n \"id\": \"/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/JoseFig-ResourceGroup/providers/microsoft.storagesync/storageSyncServices/BB-Josefig-Storage-Sync\",\r\n \"name\": \"BB-Josefig-Storage-Sync\",\r\n \"type\": \"microsoft.storagesync/storageSyncServices\"\r\n },\r\n {\r\n \"properties\": {\r\n \"storageSyncServiceStatus\": 0,\r\n \"storageSyncServiceUid\": \"00000000-0000-0000-0000-000000000000\"\r\n },\r\n \"location\": \"westcentralus\",\r\n \"tags\": {},\r\n \"id\": \"/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/shreyas/providers/microsoft.storagesync/storageSyncServices/shreyas-xsync\",\r\n \"name\": \"shreyas-xsync\",\r\n \"type\": \"microsoft.storagesync/storageSyncServices\"\r\n },\r\n {\r\n \"properties\": {\r\n \"storageSyncServiceStatus\": 0,\r\n \"storageSyncServiceUid\": \"00000000-0000-0000-0000-000000000000\"\r\n },\r\n \"location\": \"westcentralus\",\r\n \"tags\": {},\r\n \"id\": \"/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/scpruessMoveRG3/providers/microsoft.storagesync/storageSyncServices/SSS5\",\r\n \"name\": \"SSS5\",\r\n \"type\": \"microsoft.storagesync/storageSyncServices\"\r\n },\r\n {\r\n \"properties\": {\r\n \"storageSyncServiceStatus\": 0,\r\n \"storageSyncServiceUid\": \"00000000-0000-0000-0000-000000000000\"\r\n },\r\n \"location\": \"westcentralus\",\r\n \"tags\": {},\r\n \"id\": \"/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/surkumar/providers/microsoft.storagesync/storageSyncServices/surkumarsyncsvc1\",\r\n \"name\": \"surkumarsyncsvc1\",\r\n \"type\": \"microsoft.storagesync/storageSyncServices\"\r\n },\r\n {\r\n \"properties\": {\r\n \"storageSyncServiceStatus\": 0,\r\n \"storageSyncServiceUid\": \"00000000-0000-0000-0000-000000000000\"\r\n },\r\n \"location\": \"westcentralus\",\r\n \"tags\": {},\r\n \"id\": \"/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/scpruessRG/providers/microsoft.storagesync/storageSyncServices/SSSTest1\",\r\n \"name\": \"SSSTest1\",\r\n \"type\": \"microsoft.storagesync/storageSyncServices\"\r\n },\r\n {\r\n \"properties\": {\r\n \"storageSyncServiceStatus\": 0,\r\n \"storageSyncServiceUid\": \"00000000-0000-0000-0000-000000000000\"\r\n },\r\n \"location\": \"westcentralus\",\r\n \"tags\": {},\r\n \"id\": \"/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/scpruessRG/providers/microsoft.storagesync/storageSyncServices/SSSTest2\",\r\n \"name\": \"SSSTest2\",\r\n \"type\": \"microsoft.storagesync/storageSyncServices\"\r\n },\r\n {\r\n \"properties\": {\r\n \"storageSyncServiceStatus\": 0,\r\n \"storageSyncServiceUid\": \"00000000-0000-0000-0000-000000000000\"\r\n },\r\n \"location\": \"westcentralus\",\r\n \"tags\": {},\r\n \"id\": \"/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/JingqiwuRG1/providers/microsoft.storagesync/storageSyncServices/jingqiwusyncservice1\",\r\n \"name\": \"jingqiwusyncservice1\",\r\n \"type\": \"microsoft.storagesync/storageSyncServices\"\r\n },\r\n {\r\n \"properties\": {\r\n \"storageSyncServiceStatus\": 0,\r\n \"storageSyncServiceUid\": \"00000000-0000-0000-0000-000000000000\"\r\n },\r\n \"location\": \"westcentralus\",\r\n \"tags\": {},\r\n \"id\": \"/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/scpruessRG/providers/microsoft.storagesync/storageSyncServices/sssWCU\",\r\n \"name\": \"sssWCU\",\r\n \"type\": \"microsoft.storagesync/storageSyncServices\"\r\n },\r\n {\r\n \"properties\": {\r\n \"storageSyncServiceStatus\": 0,\r\n \"storageSyncServiceUid\": \"00000000-0000-0000-0000-000000000000\"\r\n },\r\n \"location\": \"westcentralus\",\r\n \"tags\": {},\r\n \"id\": \"/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/testfeature03/providers/microsoft.storagesync/storageSyncServices/testfeature03\",\r\n \"name\": \"testfeature03\",\r\n \"type\": \"microsoft.storagesync/storageSyncServices\"\r\n },\r\n {\r\n \"properties\": {\r\n \"storageSyncServiceStatus\": 0,\r\n \"storageSyncServiceUid\": \"00000000-0000-0000-0000-000000000000\"\r\n },\r\n \"location\": \"West Central US\",\r\n \"tags\": {},\r\n \"id\": \"/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/testfeature04/providers/microsoft.storagesync/storageSyncServices/testfeature04\",\r\n \"name\": \"testfeature04\",\r\n \"type\": \"microsoft.storagesync/storageSyncServices\"\r\n },\r\n {\r\n \"properties\": {\r\n \"storageSyncServiceStatus\": 0,\r\n \"storageSyncServiceUid\": \"00000000-0000-0000-0000-000000000000\"\r\n },\r\n \"location\": \"West Central US\",\r\n \"tags\": {},\r\n \"id\": \"/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/testfeature05/providers/microsoft.storagesync/storageSyncServices/testfeature05\",\r\n \"name\": \"testfeature05\",\r\n \"type\": \"microsoft.storagesync/storageSyncServices\"\r\n }\r\n ]\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res553/providers/Microsoft.StorageSync/storageSyncServices/ssslist1022?api-version=2018-04-02", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWQxNmY5YjMtYmJlMy00OGQ0LTkzMGEtMjdhNzRkY2EwMDNiL3Jlc291cmNlR3JvdXBzL3JlczU1My9wcm92aWRlcnMvTWljcm9zb2Z0LlN0b3JhZ2VTeW5jL3N0b3JhZ2VTeW5jU2VydmljZXMvc3NzbGlzdDEwMjI/YXBpLXZlcnNpb249MjAxOC0wNC0wMg==", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "0c68bd03-918b-40f7-809b-e7d3e42cbbdd" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26328.01", + "Microsoft.Azure.Management.StorageSync.StorageSyncManagementClient/1.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 11 Sep 2018 18:04:16 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "x-ms-request-id": [ + "f5d5c7a3-5a75-4b74-a98a-e5112780f612" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-deletes": [ + "14999" + ], + "x-ms-correlation-request-id": [ + "5e27b5f8-0c7c-4ad0-9a71-c27d61fcd18e" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180911T180416Z:5e27b5f8-0c7c-4ad0-9a71-c27d61fcd18e" + ], + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourcegroups/res553?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWQxNmY5YjMtYmJlMy00OGQ0LTkzMGEtMjdhNzRkY2EwMDNiL3Jlc291cmNlZ3JvdXBzL3JlczU1Mz9hcGktdmVyc2lvbj0yMDE3LTA1LTEw", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "885c9d9e-8b04-4245-8ec2-871255fac318" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26328.01", + "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 11 Sep 2018 18:04:17 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1SRVM1NTMtRUFTVFVTMiIsImpvYkxvY2F0aW9uIjoiZWFzdHVzMiJ9?api-version=2017-05-10" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-deletes": [ + "14998" + ], + "x-ms-request-id": [ + "cc11b6cf-9862-461c-97b3-c7ce940058e7" + ], + "x-ms-correlation-request-id": [ + "cc11b6cf-9862-461c-97b3-c7ce940058e7" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180911T180417Z:cc11b6cf-9862-461c-97b3-c7ce940058e7" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1SRVM1NTMtRUFTVFVTMiIsImpvYkxvY2F0aW9uIjoiZWFzdHVzMiJ9?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWQxNmY5YjMtYmJlMy00OGQ0LTkzMGEtMjdhNzRkY2EwMDNiL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFTUlZNMU5UTXRSVUZUVkZWVE1pSXNJbXB2WWt4dlkyRjBhVzl1SWpvaVpXRnpkSFZ6TWlKOT9hcGktdmVyc2lvbj0yMDE3LTA1LTEw", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26328.01", + "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 11 Sep 2018 18:04:32 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1SRVM1NTMtRUFTVFVTMiIsImpvYkxvY2F0aW9uIjoiZWFzdHVzMiJ9?api-version=2017-05-10" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11996" + ], + "x-ms-request-id": [ + "7609f96f-f27e-4376-a801-ae831a834a3d" + ], + "x-ms-correlation-request-id": [ + "7609f96f-f27e-4376-a801-ae831a834a3d" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180911T180432Z:7609f96f-f27e-4376-a801-ae831a834a3d" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1SRVM1NTMtRUFTVFVTMiIsImpvYkxvY2F0aW9uIjoiZWFzdHVzMiJ9?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWQxNmY5YjMtYmJlMy00OGQ0LTkzMGEtMjdhNzRkY2EwMDNiL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFTUlZNMU5UTXRSVUZUVkZWVE1pSXNJbXB2WWt4dlkyRjBhVzl1SWpvaVpXRnpkSFZ6TWlKOT9hcGktdmVyc2lvbj0yMDE3LTA1LTEw", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26328.01", + "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 11 Sep 2018 18:04:47 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1SRVM1NTMtRUFTVFVTMiIsImpvYkxvY2F0aW9uIjoiZWFzdHVzMiJ9?api-version=2017-05-10" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11995" + ], + "x-ms-request-id": [ + "788d7b3e-e820-40d0-936d-44b5d4224bdb" + ], + "x-ms-correlation-request-id": [ + "788d7b3e-e820-40d0-936d-44b5d4224bdb" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180911T180448Z:788d7b3e-e820-40d0-936d-44b5d4224bdb" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1SRVM1NTMtRUFTVFVTMiIsImpvYkxvY2F0aW9uIjoiZWFzdHVzMiJ9?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWQxNmY5YjMtYmJlMy00OGQ0LTkzMGEtMjdhNzRkY2EwMDNiL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFTUlZNMU5UTXRSVUZUVkZWVE1pSXNJbXB2WWt4dlkyRjBhVzl1SWpvaVpXRnpkSFZ6TWlKOT9hcGktdmVyc2lvbj0yMDE3LTA1LTEw", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26328.01", + "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 11 Sep 2018 18:05:03 GMT" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11994" + ], + "x-ms-request-id": [ + "e3be8fa7-3820-4ff3-beb6-a844d1175a51" + ], + "x-ms-correlation-request-id": [ + "e3be8fa7-3820-4ff3-beb6-a844d1175a51" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180911T180503Z:e3be8fa7-3820-4ff3-beb6-a844d1175a51" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1SRVM1NTMtRUFTVFVTMiIsImpvYkxvY2F0aW9uIjoiZWFzdHVzMiJ9?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWQxNmY5YjMtYmJlMy00OGQ0LTkzMGEtMjdhNzRkY2EwMDNiL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFTUlZNMU5UTXRSVUZUVkZWVE1pSXNJbXB2WWt4dlkyRjBhVzl1SWpvaVpXRnpkSFZ6TWlKOT9hcGktdmVyc2lvbj0yMDE3LTA1LTEw", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26328.01", + "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 11 Sep 2018 18:05:03 GMT" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11993" + ], + "x-ms-request-id": [ + "468cf436-0193-4dbc-8015-57fcc85d5f6d" + ], + "x-ms-correlation-request-id": [ + "468cf436-0193-4dbc-8015-57fcc85d5f6d" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180911T180503Z:468cf436-0193-4dbc-8015-57fcc85d5f6d" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "", + "StatusCode": 200 + } + ], + "Names": { + "CreateResourceGroup": [ + "res553" + ], + "StorageSyncServiceListTest": [ + "ssslist1022" + ] + }, + "Variables": { + "SubscriptionId": "1d16f9b3-bbe3-48d4-930a-27a74dca003b" + } +} \ No newline at end of file diff --git a/src/SDKs/StorageSync/StorageSync.Tests/SessionRecords/Microsoft.Azure.Management.StorageSync.Tests.StorageSyncServiceTests/StorageSyncServiceUpdateTest.json b/src/SDKs/StorageSync/StorageSync.Tests/SessionRecords/Microsoft.Azure.Management.StorageSync.Tests.StorageSyncServiceTests/StorageSyncServiceUpdateTest.json new file mode 100644 index 000000000000..fb56a1b8400b --- /dev/null +++ b/src/SDKs/StorageSync/StorageSync.Tests/SessionRecords/Microsoft.Azure.Management.StorageSync.Tests.StorageSyncServiceTests/StorageSyncServiceUpdateTest.json @@ -0,0 +1,558 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourcegroups/res8118?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWQxNmY5YjMtYmJlMy00OGQ0LTkzMGEtMjdhNzRkY2EwMDNiL3Jlc291cmNlZ3JvdXBzL3JlczgxMTg/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"location\": \"eastus2\"\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "60cc2ce1-7c07-424a-a6db-4f255704b353" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26328.01", + "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "29" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 11 Sep 2018 18:00:16 GMT" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1199" + ], + "x-ms-request-id": [ + "23aa866b-ba39-4791-8f8f-c9f3c8457083" + ], + "x-ms-correlation-request-id": [ + "23aa866b-ba39-4791-8f8f-c9f3c8457083" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180911T180016Z:23aa866b-ba39-4791-8f8f-c9f3c8457083" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "168" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res8118\",\r\n \"name\": \"res8118\",\r\n \"location\": \"eastus2\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res8118/providers/Microsoft.StorageSync/storageSyncServices/ssscreate7142?api-version=2018-04-02", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWQxNmY5YjMtYmJlMy00OGQ0LTkzMGEtMjdhNzRkY2EwMDNiL3Jlc291cmNlR3JvdXBzL3JlczgxMTgvcHJvdmlkZXJzL01pY3Jvc29mdC5TdG9yYWdlU3luYy9zdG9yYWdlU3luY1NlcnZpY2VzL3Nzc2NyZWF0ZTcxNDI/YXBpLXZlcnNpb249MjAxOC0wNC0wMg==", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"location\": \"west europe\",\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n }\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "1aed0603-9187-4f45-a753-0f9ef0467b4b" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26328.01", + "Microsoft.Azure.Management.StorageSync.StorageSyncManagementClient/1.0.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "97" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 11 Sep 2018 18:00:21 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "x-ms-request-id": [ + "5af74833-a14e-4983-88b7-b3b3995f925f" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1198" + ], + "x-ms-correlation-request-id": [ + "88cbdecb-dee6-4821-933f-f09fd829087e" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180911T180021Z:88cbdecb-dee6-4821-933f-f09fd829087e" + ], + "Content-Length": [ + "399" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"properties\": {\r\n \"storageSyncServiceStatus\": null,\r\n \"storageSyncServiceUid\": \"00000000-0000-0000-0000-000000000000\"\r\n },\r\n \"location\": \"west europe\",\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n },\r\n \"id\": \"/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res8118/providers/microsoft.storagesync/storageSyncServices/ssscreate7142\",\r\n \"name\": \"ssscreate7142\",\r\n \"type\": \"microsoft.storagesync/storageSyncServices\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res8118/providers/Microsoft.StorageSync/storageSyncServices/ssscreate7142?api-version=2018-04-02", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWQxNmY5YjMtYmJlMy00OGQ0LTkzMGEtMjdhNzRkY2EwMDNiL3Jlc291cmNlR3JvdXBzL3JlczgxMTgvcHJvdmlkZXJzL01pY3Jvc29mdC5TdG9yYWdlU3luYy9zdG9yYWdlU3luY1NlcnZpY2VzL3Nzc2NyZWF0ZTcxNDI/YXBpLXZlcnNpb249MjAxOC0wNC0wMg==", + "RequestMethod": "PATCH", + "RequestBody": "{\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n }\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "740706b3-423a-43bf-b4e0-bd444a479a6e" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26328.01", + "Microsoft.Azure.Management.StorageSync.StorageSyncManagementClient/1.0.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "67" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 11 Sep 2018 18:00:24 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "x-ms-request-id": [ + "4853391e-33a0-4c8a-9c09-f12a87079c49" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1197" + ], + "x-ms-correlation-request-id": [ + "fda86461-4749-46ab-9395-7156b7a312ba" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180911T180024Z:fda86461-4749-46ab-9395-7156b7a312ba" + ], + "Content-Length": [ + "396" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"properties\": {\r\n \"storageSyncServiceStatus\": 0,\r\n \"storageSyncServiceUid\": \"00000000-0000-0000-0000-000000000000\"\r\n },\r\n \"location\": \"west europe\",\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n },\r\n \"id\": \"/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res8118/providers/microsoft.storagesync/storageSyncServices/ssscreate7142\",\r\n \"name\": \"ssscreate7142\",\r\n \"type\": \"microsoft.storagesync/storageSyncServices\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res8118/providers/Microsoft.StorageSync/storageSyncServices/ssscreate7142?api-version=2018-04-02", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWQxNmY5YjMtYmJlMy00OGQ0LTkzMGEtMjdhNzRkY2EwMDNiL3Jlc291cmNlR3JvdXBzL3JlczgxMTgvcHJvdmlkZXJzL01pY3Jvc29mdC5TdG9yYWdlU3luYy9zdG9yYWdlU3luY1NlcnZpY2VzL3Nzc2NyZWF0ZTcxNDI/YXBpLXZlcnNpb249MjAxOC0wNC0wMg==", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "8a53ab90-030d-48f5-ae40-ba34b1ee6f6a" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26328.01", + "Microsoft.Azure.Management.StorageSync.StorageSyncManagementClient/1.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 11 Sep 2018 18:00:27 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "x-ms-request-id": [ + "13c6cf14-d503-4a27-b91c-18bf246d83a5" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-deletes": [ + "14999" + ], + "x-ms-correlation-request-id": [ + "be0ca0e6-3a21-4056-9c2d-291e1aa39c2a" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180911T180027Z:be0ca0e6-3a21-4056-9c2d-291e1aa39c2a" + ], + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourcegroups/res8118?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWQxNmY5YjMtYmJlMy00OGQ0LTkzMGEtMjdhNzRkY2EwMDNiL3Jlc291cmNlZ3JvdXBzL3JlczgxMTg/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "ce087582-09ce-4a7d-99c5-dc0c6597e58d" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26328.01", + "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 11 Sep 2018 18:00:28 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1SRVM4MTE4LUVBU1RVUzIiLCJqb2JMb2NhdGlvbiI6ImVhc3R1czIifQ?api-version=2017-05-10" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-deletes": [ + "14998" + ], + "x-ms-request-id": [ + "b694d39e-6dde-4853-a367-2ff79bcdc2eb" + ], + "x-ms-correlation-request-id": [ + "b694d39e-6dde-4853-a367-2ff79bcdc2eb" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180911T180028Z:b694d39e-6dde-4853-a367-2ff79bcdc2eb" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1SRVM4MTE4LUVBU1RVUzIiLCJqb2JMb2NhdGlvbiI6ImVhc3R1czIifQ?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWQxNmY5YjMtYmJlMy00OGQ0LTkzMGEtMjdhNzRkY2EwMDNiL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFTUlZNNE1URTRMVVZCVTFSVlV6SWlMQ0pxYjJKTWIyTmhkR2x2YmlJNkltVmhjM1IxY3pJaWZRP2FwaS12ZXJzaW9uPTIwMTctMDUtMTA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26328.01", + "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 11 Sep 2018 18:00:43 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1SRVM4MTE4LUVBU1RVUzIiLCJqb2JMb2NhdGlvbiI6ImVhc3R1czIifQ?api-version=2017-05-10" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11999" + ], + "x-ms-request-id": [ + "5fa27d50-d4bb-4b22-b891-90ec32aea798" + ], + "x-ms-correlation-request-id": [ + "5fa27d50-d4bb-4b22-b891-90ec32aea798" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180911T180043Z:5fa27d50-d4bb-4b22-b891-90ec32aea798" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1SRVM4MTE4LUVBU1RVUzIiLCJqb2JMb2NhdGlvbiI6ImVhc3R1czIifQ?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWQxNmY5YjMtYmJlMy00OGQ0LTkzMGEtMjdhNzRkY2EwMDNiL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFTUlZNNE1URTRMVVZCVTFSVlV6SWlMQ0pxYjJKTWIyTmhkR2x2YmlJNkltVmhjM1IxY3pJaWZRP2FwaS12ZXJzaW9uPTIwMTctMDUtMTA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26328.01", + "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 11 Sep 2018 18:00:58 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1SRVM4MTE4LUVBU1RVUzIiLCJqb2JMb2NhdGlvbiI6ImVhc3R1czIifQ?api-version=2017-05-10" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11998" + ], + "x-ms-request-id": [ + "c1118add-de01-41a0-ac7e-e4541bf08566" + ], + "x-ms-correlation-request-id": [ + "c1118add-de01-41a0-ac7e-e4541bf08566" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180911T180058Z:c1118add-de01-41a0-ac7e-e4541bf08566" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1SRVM4MTE4LUVBU1RVUzIiLCJqb2JMb2NhdGlvbiI6ImVhc3R1czIifQ?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWQxNmY5YjMtYmJlMy00OGQ0LTkzMGEtMjdhNzRkY2EwMDNiL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFTUlZNNE1URTRMVVZCVTFSVlV6SWlMQ0pxYjJKTWIyTmhkR2x2YmlJNkltVmhjM1IxY3pJaWZRP2FwaS12ZXJzaW9uPTIwMTctMDUtMTA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26328.01", + "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 11 Sep 2018 18:01:13 GMT" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11997" + ], + "x-ms-request-id": [ + "a7830616-394a-4b4e-aff7-6c9a4a838dca" + ], + "x-ms-correlation-request-id": [ + "a7830616-394a-4b4e-aff7-6c9a4a838dca" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180911T180114Z:a7830616-394a-4b4e-aff7-6c9a4a838dca" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1SRVM4MTE4LUVBU1RVUzIiLCJqb2JMb2NhdGlvbiI6ImVhc3R1czIifQ?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWQxNmY5YjMtYmJlMy00OGQ0LTkzMGEtMjdhNzRkY2EwMDNiL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFTUlZNNE1URTRMVVZCVTFSVlV6SWlMQ0pxYjJKTWIyTmhkR2x2YmlJNkltVmhjM1IxY3pJaWZRP2FwaS12ZXJzaW9uPTIwMTctMDUtMTA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26328.01", + "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 11 Sep 2018 18:01:13 GMT" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11996" + ], + "x-ms-request-id": [ + "5bed7f09-a128-47e2-b323-7ea07767447e" + ], + "x-ms-correlation-request-id": [ + "5bed7f09-a128-47e2-b323-7ea07767447e" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180911T180114Z:5bed7f09-a128-47e2-b323-7ea07767447e" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "", + "StatusCode": 200 + } + ], + "Names": { + "CreateResourceGroup": [ + "res8118" + ], + "StorageSyncServiceUpdateTest": [ + "ssscreate7142" + ] + }, + "Variables": { + "SubscriptionId": "1d16f9b3-bbe3-48d4-930a-27a74dca003b" + } +} \ No newline at end of file diff --git a/src/SDKs/StorageSync/StorageSync.Tests/SessionRecords/Microsoft.Azure.Management.StorageSync.Tests.SyncGroupTests/SyncGroupCreateTest.json b/src/SDKs/StorageSync/StorageSync.Tests/SessionRecords/Microsoft.Azure.Management.StorageSync.Tests.SyncGroupTests/SyncGroupCreateTest.json new file mode 100644 index 000000000000..bedf03009452 --- /dev/null +++ b/src/SDKs/StorageSync/StorageSync.Tests/SessionRecords/Microsoft.Azure.Management.StorageSync.Tests.SyncGroupTests/SyncGroupCreateTest.json @@ -0,0 +1,623 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourcegroups/res852?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWQxNmY5YjMtYmJlMy00OGQ0LTkzMGEtMjdhNzRkY2EwMDNiL3Jlc291cmNlZ3JvdXBzL3Jlczg1Mj9hcGktdmVyc2lvbj0yMDE3LTA1LTEw", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"location\": \"eastus2\"\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "527a41e2-9c63-48ef-a315-05806e87df14" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26328.01", + "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "29" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 11 Sep 2018 17:48:18 GMT" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1199" + ], + "x-ms-request-id": [ + "7b954038-2a35-429f-a9fb-1b92e464da02" + ], + "x-ms-correlation-request-id": [ + "7b954038-2a35-429f-a9fb-1b92e464da02" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180911T174818Z:7b954038-2a35-429f-a9fb-1b92e464da02" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "166" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res852\",\r\n \"name\": \"res852\",\r\n \"location\": \"eastus2\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res852/providers/Microsoft.StorageSync/storageSyncServices/ssscreate-sgcreate1707?api-version=2018-04-02", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWQxNmY5YjMtYmJlMy00OGQ0LTkzMGEtMjdhNzRkY2EwMDNiL3Jlc291cmNlR3JvdXBzL3Jlczg1Mi9wcm92aWRlcnMvTWljcm9zb2Z0LlN0b3JhZ2VTeW5jL3N0b3JhZ2VTeW5jU2VydmljZXMvc3NzY3JlYXRlLXNnY3JlYXRlMTcwNz9hcGktdmVyc2lvbj0yMDE4LTA0LTAy", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"location\": \"west europe\",\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n }\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "2d1e79d5-03f3-44d7-8156-4610272178ff" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26328.01", + "Microsoft.Azure.Management.StorageSync.StorageSyncManagementClient/1.0.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "97" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 11 Sep 2018 17:48:23 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "x-ms-request-id": [ + "82272b53-44cf-49fe-b60a-a2086f99ec92" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1198" + ], + "x-ms-correlation-request-id": [ + "7ee89f4c-4a0e-4540-aff6-9829b64a2a8d" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180911T174823Z:7ee89f4c-4a0e-4540-aff6-9829b64a2a8d" + ], + "Content-Length": [ + "416" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"properties\": {\r\n \"storageSyncServiceStatus\": null,\r\n \"storageSyncServiceUid\": \"00000000-0000-0000-0000-000000000000\"\r\n },\r\n \"location\": \"west europe\",\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n },\r\n \"id\": \"/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res852/providers/microsoft.storagesync/storageSyncServices/ssscreate-sgcreate1707\",\r\n \"name\": \"ssscreate-sgcreate1707\",\r\n \"type\": \"microsoft.storagesync/storageSyncServices\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res852/providers/Microsoft.StorageSync/storageSyncServices/ssscreate-sgcreate1707/syncGroups/sgcreate7987?api-version=2018-04-02", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWQxNmY5YjMtYmJlMy00OGQ0LTkzMGEtMjdhNzRkY2EwMDNiL3Jlc291cmNlR3JvdXBzL3Jlczg1Mi9wcm92aWRlcnMvTWljcm9zb2Z0LlN0b3JhZ2VTeW5jL3N0b3JhZ2VTeW5jU2VydmljZXMvc3NzY3JlYXRlLXNnY3JlYXRlMTcwNy9zeW5jR3JvdXBzL3NnY3JlYXRlNzk4Nz9hcGktdmVyc2lvbj0yMDE4LTA0LTAy", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"location\": \"west europe\",\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n }\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "c5ee4237-1dd4-4c4e-9f2f-e95ba82edb85" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26328.01", + "Microsoft.Azure.Management.StorageSync.StorageSyncManagementClient/1.0.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "97" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 11 Sep 2018 17:48:24 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "x-ms-request-id": [ + "c08b2192-6493-4631-a7e4-9ffe344e3970" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1197" + ], + "x-ms-correlation-request-id": [ + "4e315534-de5a-4044-8db2-b4a20cbbd678" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180911T174824Z:4e315534-de5a-4044-8db2-b4a20cbbd678" + ], + "Content-Length": [ + "419" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"properties\": {\r\n \"syncGroupStatus\": null,\r\n \"uniqueId\": \"eb0efa07-9ff3-400a-a6c0-7046990902d1\"\r\n },\r\n \"location\": \"west europe\",\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n },\r\n \"id\": \"/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res852/providers/microsoft.storagesync/storageSyncServices/ssscreate-sgcreate1707/syncGroups/sgcreate7987\",\r\n \"name\": \"sgcreate7987\",\r\n \"type\": \"microsoft.storagesync/storageSyncServices/syncGroups\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res852/providers/Microsoft.StorageSync/storageSyncServices/ssscreate-sgcreate1707/syncGroups/sgcreate7987?api-version=2018-04-02", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWQxNmY5YjMtYmJlMy00OGQ0LTkzMGEtMjdhNzRkY2EwMDNiL3Jlc291cmNlR3JvdXBzL3Jlczg1Mi9wcm92aWRlcnMvTWljcm9zb2Z0LlN0b3JhZ2VTeW5jL3N0b3JhZ2VTeW5jU2VydmljZXMvc3NzY3JlYXRlLXNnY3JlYXRlMTcwNy9zeW5jR3JvdXBzL3NnY3JlYXRlNzk4Nz9hcGktdmVyc2lvbj0yMDE4LTA0LTAy", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "eac6f7d1-1b3b-4683-9f3f-3c66c29986dd" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26328.01", + "Microsoft.Azure.Management.StorageSync.StorageSyncManagementClient/1.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 11 Sep 2018 17:48:25 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "x-ms-request-id": [ + "a5a68b51-737e-4c9c-a849-7f19d9c089ba" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-deletes": [ + "14999" + ], + "x-ms-correlation-request-id": [ + "81d11127-c208-4ea7-8111-185683512fd1" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180911T174825Z:81d11127-c208-4ea7-8111-185683512fd1" + ], + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res852/providers/Microsoft.StorageSync/storageSyncServices/ssscreate-sgcreate1707?api-version=2018-04-02", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWQxNmY5YjMtYmJlMy00OGQ0LTkzMGEtMjdhNzRkY2EwMDNiL3Jlc291cmNlR3JvdXBzL3Jlczg1Mi9wcm92aWRlcnMvTWljcm9zb2Z0LlN0b3JhZ2VTeW5jL3N0b3JhZ2VTeW5jU2VydmljZXMvc3NzY3JlYXRlLXNnY3JlYXRlMTcwNz9hcGktdmVyc2lvbj0yMDE4LTA0LTAy", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "09ee1f03-4c32-41a3-a07d-d0ce932451d0" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26328.01", + "Microsoft.Azure.Management.StorageSync.StorageSyncManagementClient/1.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 11 Sep 2018 17:48:27 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "x-ms-request-id": [ + "ebdee1fa-833e-493b-a85d-2b168918025e" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-deletes": [ + "14998" + ], + "x-ms-correlation-request-id": [ + "40c95ff0-0ad1-427b-a61a-6afb6ccc12a8" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180911T174828Z:40c95ff0-0ad1-427b-a61a-6afb6ccc12a8" + ], + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourcegroups/res852?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWQxNmY5YjMtYmJlMy00OGQ0LTkzMGEtMjdhNzRkY2EwMDNiL3Jlc291cmNlZ3JvdXBzL3Jlczg1Mj9hcGktdmVyc2lvbj0yMDE3LTA1LTEw", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "a0926551-4ed3-487e-b421-02def085f6ac" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26328.01", + "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 11 Sep 2018 17:48:28 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1SRVM4NTItRUFTVFVTMiIsImpvYkxvY2F0aW9uIjoiZWFzdHVzMiJ9?api-version=2017-05-10" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-deletes": [ + "14997" + ], + "x-ms-request-id": [ + "f742b24b-b6d9-4bc1-9b62-ef2b3da801a0" + ], + "x-ms-correlation-request-id": [ + "f742b24b-b6d9-4bc1-9b62-ef2b3da801a0" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180911T174829Z:f742b24b-b6d9-4bc1-9b62-ef2b3da801a0" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1SRVM4NTItRUFTVFVTMiIsImpvYkxvY2F0aW9uIjoiZWFzdHVzMiJ9?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWQxNmY5YjMtYmJlMy00OGQ0LTkzMGEtMjdhNzRkY2EwMDNiL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFTUlZNNE5USXRSVUZUVkZWVE1pSXNJbXB2WWt4dlkyRjBhVzl1SWpvaVpXRnpkSFZ6TWlKOT9hcGktdmVyc2lvbj0yMDE3LTA1LTEw", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26328.01", + "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 11 Sep 2018 17:48:43 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1SRVM4NTItRUFTVFVTMiIsImpvYkxvY2F0aW9uIjoiZWFzdHVzMiJ9?api-version=2017-05-10" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11999" + ], + "x-ms-request-id": [ + "d865c660-725a-4ccc-aee1-fe08fcba5c31" + ], + "x-ms-correlation-request-id": [ + "d865c660-725a-4ccc-aee1-fe08fcba5c31" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180911T174844Z:d865c660-725a-4ccc-aee1-fe08fcba5c31" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1SRVM4NTItRUFTVFVTMiIsImpvYkxvY2F0aW9uIjoiZWFzdHVzMiJ9?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWQxNmY5YjMtYmJlMy00OGQ0LTkzMGEtMjdhNzRkY2EwMDNiL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFTUlZNNE5USXRSVUZUVkZWVE1pSXNJbXB2WWt4dlkyRjBhVzl1SWpvaVpXRnpkSFZ6TWlKOT9hcGktdmVyc2lvbj0yMDE3LTA1LTEw", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26328.01", + "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 11 Sep 2018 17:48:58 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1SRVM4NTItRUFTVFVTMiIsImpvYkxvY2F0aW9uIjoiZWFzdHVzMiJ9?api-version=2017-05-10" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11998" + ], + "x-ms-request-id": [ + "cb411c8d-857d-4de3-8d12-658d0f868c85" + ], + "x-ms-correlation-request-id": [ + "cb411c8d-857d-4de3-8d12-658d0f868c85" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180911T174859Z:cb411c8d-857d-4de3-8d12-658d0f868c85" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1SRVM4NTItRUFTVFVTMiIsImpvYkxvY2F0aW9uIjoiZWFzdHVzMiJ9?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWQxNmY5YjMtYmJlMy00OGQ0LTkzMGEtMjdhNzRkY2EwMDNiL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFTUlZNNE5USXRSVUZUVkZWVE1pSXNJbXB2WWt4dlkyRjBhVzl1SWpvaVpXRnpkSFZ6TWlKOT9hcGktdmVyc2lvbj0yMDE3LTA1LTEw", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26328.01", + "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 11 Sep 2018 17:49:14 GMT" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11997" + ], + "x-ms-request-id": [ + "9e419dcc-6343-479a-bf53-dbb37a303051" + ], + "x-ms-correlation-request-id": [ + "9e419dcc-6343-479a-bf53-dbb37a303051" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180911T174914Z:9e419dcc-6343-479a-bf53-dbb37a303051" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1SRVM4NTItRUFTVFVTMiIsImpvYkxvY2F0aW9uIjoiZWFzdHVzMiJ9?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWQxNmY5YjMtYmJlMy00OGQ0LTkzMGEtMjdhNzRkY2EwMDNiL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFTUlZNNE5USXRSVUZUVkZWVE1pSXNJbXB2WWt4dlkyRjBhVzl1SWpvaVpXRnpkSFZ6TWlKOT9hcGktdmVyc2lvbj0yMDE3LTA1LTEw", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26328.01", + "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 11 Sep 2018 17:49:14 GMT" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11996" + ], + "x-ms-request-id": [ + "cabbc759-e75a-4a17-9909-7cc5695ac627" + ], + "x-ms-correlation-request-id": [ + "cabbc759-e75a-4a17-9909-7cc5695ac627" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180911T174914Z:cabbc759-e75a-4a17-9909-7cc5695ac627" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "", + "StatusCode": 200 + } + ], + "Names": { + "CreateResourceGroup": [ + "res852" + ], + "SyncGroupCreateTest": [ + "ssscreate-sgcreate1707", + "sgcreate7987" + ] + }, + "Variables": { + "SubscriptionId": "1d16f9b3-bbe3-48d4-930a-27a74dca003b" + } +} \ No newline at end of file diff --git a/src/SDKs/StorageSync/StorageSync.Tests/SessionRecords/Microsoft.Azure.Management.StorageSync.Tests.SyncGroupTests/SyncGroupDeleteTest.json b/src/SDKs/StorageSync/StorageSync.Tests/SessionRecords/Microsoft.Azure.Management.StorageSync.Tests.SyncGroupTests/SyncGroupDeleteTest.json new file mode 100644 index 000000000000..63b33e48faaf --- /dev/null +++ b/src/SDKs/StorageSync/StorageSync.Tests/SessionRecords/Microsoft.Azure.Management.StorageSync.Tests.SyncGroupTests/SyncGroupDeleteTest.json @@ -0,0 +1,815 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourcegroups/res3934?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWQxNmY5YjMtYmJlMy00OGQ0LTkzMGEtMjdhNzRkY2EwMDNiL3Jlc291cmNlZ3JvdXBzL3JlczM5MzQ/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"location\": \"eastus2\"\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "5b16bc8f-795f-47bb-8222-6f76707c2694" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26328.01", + "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "29" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 11 Sep 2018 17:51:20 GMT" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1199" + ], + "x-ms-request-id": [ + "9bae0f51-ea0b-49e8-a0dc-63a9c4775656" + ], + "x-ms-correlation-request-id": [ + "9bae0f51-ea0b-49e8-a0dc-63a9c4775656" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180911T175121Z:9bae0f51-ea0b-49e8-a0dc-63a9c4775656" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "168" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res3934\",\r\n \"name\": \"res3934\",\r\n \"location\": \"eastus2\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res3934/providers/Microsoft.StorageSync/storageSyncServices/sss-sgdelete385?api-version=2018-04-02", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWQxNmY5YjMtYmJlMy00OGQ0LTkzMGEtMjdhNzRkY2EwMDNiL3Jlc291cmNlR3JvdXBzL3JlczM5MzQvcHJvdmlkZXJzL01pY3Jvc29mdC5TdG9yYWdlU3luYy9zdG9yYWdlU3luY1NlcnZpY2VzL3Nzcy1zZ2RlbGV0ZTM4NT9hcGktdmVyc2lvbj0yMDE4LTA0LTAy", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"location\": \"west europe\",\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n }\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "14258be3-24bb-45cb-8b07-aea61f0ac77c" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26328.01", + "Microsoft.Azure.Management.StorageSync.StorageSyncManagementClient/1.0.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "97" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 11 Sep 2018 17:51:23 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "x-ms-request-id": [ + "bc488dfa-996d-4003-a4f3-ea68b7157a25" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1198" + ], + "x-ms-correlation-request-id": [ + "a77428af-01d6-44a6-9274-f2021e79085d" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180911T175123Z:a77428af-01d6-44a6-9274-f2021e79085d" + ], + "Content-Length": [ + "403" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"properties\": {\r\n \"storageSyncServiceStatus\": null,\r\n \"storageSyncServiceUid\": \"00000000-0000-0000-0000-000000000000\"\r\n },\r\n \"location\": \"west europe\",\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n },\r\n \"id\": \"/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res3934/providers/microsoft.storagesync/storageSyncServices/sss-sgdelete385\",\r\n \"name\": \"sss-sgdelete385\",\r\n \"type\": \"microsoft.storagesync/storageSyncServices\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res3934/providers/Microsoft.StorageSync/storageSyncServices/sss-sgdelete385/syncGroups/sgdelete5714?api-version=2018-04-02", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWQxNmY5YjMtYmJlMy00OGQ0LTkzMGEtMjdhNzRkY2EwMDNiL3Jlc291cmNlR3JvdXBzL3JlczM5MzQvcHJvdmlkZXJzL01pY3Jvc29mdC5TdG9yYWdlU3luYy9zdG9yYWdlU3luY1NlcnZpY2VzL3Nzcy1zZ2RlbGV0ZTM4NS9zeW5jR3JvdXBzL3NnZGVsZXRlNTcxND9hcGktdmVyc2lvbj0yMDE4LTA0LTAy", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "96529b5e-b096-416e-9612-57c65e379599" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26328.01", + "Microsoft.Azure.Management.StorageSync.StorageSyncManagementClient/1.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 11 Sep 2018 17:51:24 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "x-ms-request-id": [ + "a77f57d1-bd6d-4ab5-8e6b-dae3f47953f8" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-deletes": [ + "14999" + ], + "x-ms-correlation-request-id": [ + "1997e334-8898-433d-b63b-a06f891618a6" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180911T175124Z:1997e334-8898-433d-b63b-a06f891618a6" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "", + "StatusCode": 204 + }, + { + "RequestUri": "/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res3934/providers/Microsoft.StorageSync/storageSyncServices/sss-sgdelete385/syncGroups/sgdelete5714?api-version=2018-04-02", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWQxNmY5YjMtYmJlMy00OGQ0LTkzMGEtMjdhNzRkY2EwMDNiL3Jlc291cmNlR3JvdXBzL3JlczM5MzQvcHJvdmlkZXJzL01pY3Jvc29mdC5TdG9yYWdlU3luYy9zdG9yYWdlU3luY1NlcnZpY2VzL3Nzcy1zZ2RlbGV0ZTM4NS9zeW5jR3JvdXBzL3NnZGVsZXRlNTcxND9hcGktdmVyc2lvbj0yMDE4LTA0LTAy", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "92c83d23-a1a2-41fe-be8b-84dce46341a9" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26328.01", + "Microsoft.Azure.Management.StorageSync.StorageSyncManagementClient/1.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 11 Sep 2018 17:51:26 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "x-ms-request-id": [ + "6f7a792b-7cf6-49f2-884c-3c7bef866cd2" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-deletes": [ + "14998" + ], + "x-ms-correlation-request-id": [ + "81f1f35e-34fd-4e73-9fd8-2a80dced9e61" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180911T175126Z:81f1f35e-34fd-4e73-9fd8-2a80dced9e61" + ], + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res3934/providers/Microsoft.StorageSync/storageSyncServices/sss-sgdelete385/syncGroups/sgdelete5714?api-version=2018-04-02", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWQxNmY5YjMtYmJlMy00OGQ0LTkzMGEtMjdhNzRkY2EwMDNiL3Jlc291cmNlR3JvdXBzL3JlczM5MzQvcHJvdmlkZXJzL01pY3Jvc29mdC5TdG9yYWdlU3luYy9zdG9yYWdlU3luY1NlcnZpY2VzL3Nzcy1zZ2RlbGV0ZTM4NS9zeW5jR3JvdXBzL3NnZGVsZXRlNTcxND9hcGktdmVyc2lvbj0yMDE4LTA0LTAy", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "ddac92a9-e42d-433f-b9bc-a6d1f6df5f7e" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26328.01", + "Microsoft.Azure.Management.StorageSync.StorageSyncManagementClient/1.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 11 Sep 2018 17:51:27 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "x-ms-request-id": [ + "f886e2cb-ccc8-4706-9331-d7cb8e900cc7" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-deletes": [ + "14997" + ], + "x-ms-correlation-request-id": [ + "1f42cee2-444b-480f-9c7d-295fda29a069" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180911T175127Z:1f42cee2-444b-480f-9c7d-295fda29a069" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "", + "StatusCode": 204 + }, + { + "RequestUri": "/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res3934/providers/Microsoft.StorageSync/storageSyncServices/sss-sgdelete385/syncGroups/sgdelete5714?api-version=2018-04-02", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWQxNmY5YjMtYmJlMy00OGQ0LTkzMGEtMjdhNzRkY2EwMDNiL3Jlc291cmNlR3JvdXBzL3JlczM5MzQvcHJvdmlkZXJzL01pY3Jvc29mdC5TdG9yYWdlU3luYy9zdG9yYWdlU3luY1NlcnZpY2VzL3Nzcy1zZ2RlbGV0ZTM4NS9zeW5jR3JvdXBzL3NnZGVsZXRlNTcxND9hcGktdmVyc2lvbj0yMDE4LTA0LTAy", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "3422a96b-9e10-4efd-a628-478e81b4ff3c" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26328.01", + "Microsoft.Azure.Management.StorageSync.StorageSyncManagementClient/1.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 11 Sep 2018 17:51:27 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "x-ms-request-id": [ + "15904202-8ad0-41ba-9670-73ee7c9fcec2" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-deletes": [ + "14996" + ], + "x-ms-correlation-request-id": [ + "6a8a3a13-f959-4508-9fb5-980a92e0292f" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180911T175127Z:6a8a3a13-f959-4508-9fb5-980a92e0292f" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "", + "StatusCode": 204 + }, + { + "RequestUri": "/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res3934/providers/Microsoft.StorageSync/storageSyncServices/sss-sgdelete385/syncGroups/sgdelete5714?api-version=2018-04-02", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWQxNmY5YjMtYmJlMy00OGQ0LTkzMGEtMjdhNzRkY2EwMDNiL3Jlc291cmNlR3JvdXBzL3JlczM5MzQvcHJvdmlkZXJzL01pY3Jvc29mdC5TdG9yYWdlU3luYy9zdG9yYWdlU3luY1NlcnZpY2VzL3Nzcy1zZ2RlbGV0ZTM4NS9zeW5jR3JvdXBzL3NnZGVsZXRlNTcxND9hcGktdmVyc2lvbj0yMDE4LTA0LTAy", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"location\": \"west europe\",\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n }\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "7c63671c-9055-4cff-9138-a2955170033a" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26328.01", + "Microsoft.Azure.Management.StorageSync.StorageSyncManagementClient/1.0.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "97" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 11 Sep 2018 17:51:25 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "x-ms-request-id": [ + "c573a6ce-d8e6-4947-8c1d-cbf0c6ad0170" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1197" + ], + "x-ms-correlation-request-id": [ + "9abe43d5-f4b7-430d-9022-64276bcd9061" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180911T175126Z:9abe43d5-f4b7-430d-9022-64276bcd9061" + ], + "Content-Length": [ + "413" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"properties\": {\r\n \"syncGroupStatus\": null,\r\n \"uniqueId\": \"73426e65-de2e-4ac4-a207-45515a1e3f3a\"\r\n },\r\n \"location\": \"west europe\",\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n },\r\n \"id\": \"/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res3934/providers/microsoft.storagesync/storageSyncServices/sss-sgdelete385/syncGroups/sgdelete5714\",\r\n \"name\": \"sgdelete5714\",\r\n \"type\": \"microsoft.storagesync/storageSyncServices/syncGroups\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res3934/providers/Microsoft.StorageSync/storageSyncServices/sss-sgdelete385?api-version=2018-04-02", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWQxNmY5YjMtYmJlMy00OGQ0LTkzMGEtMjdhNzRkY2EwMDNiL3Jlc291cmNlR3JvdXBzL3JlczM5MzQvcHJvdmlkZXJzL01pY3Jvc29mdC5TdG9yYWdlU3luYy9zdG9yYWdlU3luY1NlcnZpY2VzL3Nzcy1zZ2RlbGV0ZTM4NT9hcGktdmVyc2lvbj0yMDE4LTA0LTAy", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "fb168b64-fa26-436f-be88-3a6b11d03e10" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26328.01", + "Microsoft.Azure.Management.StorageSync.StorageSyncManagementClient/1.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 11 Sep 2018 17:51:29 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "x-ms-request-id": [ + "7a679870-f630-461b-8304-911bab5695d5" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-deletes": [ + "14995" + ], + "x-ms-correlation-request-id": [ + "185b5d58-1b42-4677-bcaf-3c8dcef13411" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180911T175129Z:185b5d58-1b42-4677-bcaf-3c8dcef13411" + ], + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourcegroups/res3934?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWQxNmY5YjMtYmJlMy00OGQ0LTkzMGEtMjdhNzRkY2EwMDNiL3Jlc291cmNlZ3JvdXBzL3JlczM5MzQ/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "27cc9514-ed6f-4792-9782-38d75301b71d" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26328.01", + "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 11 Sep 2018 17:51:30 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1SRVMzOTM0LUVBU1RVUzIiLCJqb2JMb2NhdGlvbiI6ImVhc3R1czIifQ?api-version=2017-05-10" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-deletes": [ + "14994" + ], + "x-ms-request-id": [ + "51caaff8-1c65-411f-b6e8-8a2d302c4033" + ], + "x-ms-correlation-request-id": [ + "51caaff8-1c65-411f-b6e8-8a2d302c4033" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180911T175130Z:51caaff8-1c65-411f-b6e8-8a2d302c4033" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1SRVMzOTM0LUVBU1RVUzIiLCJqb2JMb2NhdGlvbiI6ImVhc3R1czIifQ?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWQxNmY5YjMtYmJlMy00OGQ0LTkzMGEtMjdhNzRkY2EwMDNiL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFTUlZNek9UTTBMVVZCVTFSVlV6SWlMQ0pxYjJKTWIyTmhkR2x2YmlJNkltVmhjM1IxY3pJaWZRP2FwaS12ZXJzaW9uPTIwMTctMDUtMTA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26328.01", + "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 11 Sep 2018 17:51:45 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1SRVMzOTM0LUVBU1RVUzIiLCJqb2JMb2NhdGlvbiI6ImVhc3R1czIifQ?api-version=2017-05-10" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11999" + ], + "x-ms-request-id": [ + "ae598c69-386e-4119-b80e-7afa02fa1ed5" + ], + "x-ms-correlation-request-id": [ + "ae598c69-386e-4119-b80e-7afa02fa1ed5" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180911T175145Z:ae598c69-386e-4119-b80e-7afa02fa1ed5" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1SRVMzOTM0LUVBU1RVUzIiLCJqb2JMb2NhdGlvbiI6ImVhc3R1czIifQ?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWQxNmY5YjMtYmJlMy00OGQ0LTkzMGEtMjdhNzRkY2EwMDNiL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFTUlZNek9UTTBMVVZCVTFSVlV6SWlMQ0pxYjJKTWIyTmhkR2x2YmlJNkltVmhjM1IxY3pJaWZRP2FwaS12ZXJzaW9uPTIwMTctMDUtMTA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26328.01", + "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 11 Sep 2018 17:52:00 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1SRVMzOTM0LUVBU1RVUzIiLCJqb2JMb2NhdGlvbiI6ImVhc3R1czIifQ?api-version=2017-05-10" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11998" + ], + "x-ms-request-id": [ + "8e64acad-0145-49a7-8b58-3cce3732ca61" + ], + "x-ms-correlation-request-id": [ + "8e64acad-0145-49a7-8b58-3cce3732ca61" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180911T175200Z:8e64acad-0145-49a7-8b58-3cce3732ca61" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1SRVMzOTM0LUVBU1RVUzIiLCJqb2JMb2NhdGlvbiI6ImVhc3R1czIifQ?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWQxNmY5YjMtYmJlMy00OGQ0LTkzMGEtMjdhNzRkY2EwMDNiL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFTUlZNek9UTTBMVVZCVTFSVlV6SWlMQ0pxYjJKTWIyTmhkR2x2YmlJNkltVmhjM1IxY3pJaWZRP2FwaS12ZXJzaW9uPTIwMTctMDUtMTA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26328.01", + "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 11 Sep 2018 17:52:15 GMT" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11997" + ], + "x-ms-request-id": [ + "a8d23ece-481f-4a37-a50b-a48dfb075397" + ], + "x-ms-correlation-request-id": [ + "a8d23ece-481f-4a37-a50b-a48dfb075397" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180911T175216Z:a8d23ece-481f-4a37-a50b-a48dfb075397" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1SRVMzOTM0LUVBU1RVUzIiLCJqb2JMb2NhdGlvbiI6ImVhc3R1czIifQ?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWQxNmY5YjMtYmJlMy00OGQ0LTkzMGEtMjdhNzRkY2EwMDNiL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFTUlZNek9UTTBMVVZCVTFSVlV6SWlMQ0pxYjJKTWIyTmhkR2x2YmlJNkltVmhjM1IxY3pJaWZRP2FwaS12ZXJzaW9uPTIwMTctMDUtMTA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26328.01", + "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 11 Sep 2018 17:52:16 GMT" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11996" + ], + "x-ms-request-id": [ + "621fb95f-2067-4aed-918e-cae31da52b2e" + ], + "x-ms-correlation-request-id": [ + "621fb95f-2067-4aed-918e-cae31da52b2e" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180911T175216Z:621fb95f-2067-4aed-918e-cae31da52b2e" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "", + "StatusCode": 200 + } + ], + "Names": { + "CreateResourceGroup": [ + "res3934" + ], + "SyncGroupDeleteTest": [ + "sss-sgdelete385", + "sgdelete5714" + ] + }, + "Variables": { + "SubscriptionId": "1d16f9b3-bbe3-48d4-930a-27a74dca003b" + } +} \ No newline at end of file diff --git a/src/SDKs/StorageSync/StorageSync.Tests/SessionRecords/Microsoft.Azure.Management.StorageSync.Tests.SyncGroupTests/SyncGroupGetTest.json b/src/SDKs/StorageSync/StorageSync.Tests/SessionRecords/Microsoft.Azure.Management.StorageSync.Tests.SyncGroupTests/SyncGroupGetTest.json new file mode 100644 index 000000000000..7a04737505cf --- /dev/null +++ b/src/SDKs/StorageSync/StorageSync.Tests/SessionRecords/Microsoft.Azure.Management.StorageSync.Tests.SyncGroupTests/SyncGroupGetTest.json @@ -0,0 +1,690 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourcegroups/res3259?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWQxNmY5YjMtYmJlMy00OGQ0LTkzMGEtMjdhNzRkY2EwMDNiL3Jlc291cmNlZ3JvdXBzL3JlczMyNTk/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"location\": \"eastus2\"\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "c07884db-5fb5-4bff-8d58-92b04bb3ce20" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26328.01", + "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "29" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 11 Sep 2018 17:50:21 GMT" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1196" + ], + "x-ms-request-id": [ + "452cbbd2-b713-4048-9212-9c01783b625b" + ], + "x-ms-correlation-request-id": [ + "452cbbd2-b713-4048-9212-9c01783b625b" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180911T175021Z:452cbbd2-b713-4048-9212-9c01783b625b" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "168" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res3259\",\r\n \"name\": \"res3259\",\r\n \"location\": \"eastus2\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res3259/providers/Microsoft.StorageSync/storageSyncServices/ssscreate-sgget1828?api-version=2018-04-02", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWQxNmY5YjMtYmJlMy00OGQ0LTkzMGEtMjdhNzRkY2EwMDNiL3Jlc291cmNlR3JvdXBzL3JlczMyNTkvcHJvdmlkZXJzL01pY3Jvc29mdC5TdG9yYWdlU3luYy9zdG9yYWdlU3luY1NlcnZpY2VzL3Nzc2NyZWF0ZS1zZ2dldDE4Mjg/YXBpLXZlcnNpb249MjAxOC0wNC0wMg==", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"location\": \"west europe\",\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n }\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "92967fdd-620a-4691-9f29-8259fe6e8bdf" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26328.01", + "Microsoft.Azure.Management.StorageSync.StorageSyncManagementClient/1.0.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "97" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 11 Sep 2018 17:50:23 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "x-ms-request-id": [ + "d6f5794a-2755-4c35-a821-7b808f6a375c" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1195" + ], + "x-ms-correlation-request-id": [ + "24ee1507-3339-44af-bc95-3baca657a5e5" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180911T175024Z:24ee1507-3339-44af-bc95-3baca657a5e5" + ], + "Content-Length": [ + "411" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"properties\": {\r\n \"storageSyncServiceStatus\": null,\r\n \"storageSyncServiceUid\": \"00000000-0000-0000-0000-000000000000\"\r\n },\r\n \"location\": \"west europe\",\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n },\r\n \"id\": \"/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res3259/providers/microsoft.storagesync/storageSyncServices/ssscreate-sgget1828\",\r\n \"name\": \"ssscreate-sgget1828\",\r\n \"type\": \"microsoft.storagesync/storageSyncServices\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res3259/providers/Microsoft.StorageSync/storageSyncServices/ssscreate-sgget1828/syncGroups/sgget931?api-version=2018-04-02", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWQxNmY5YjMtYmJlMy00OGQ0LTkzMGEtMjdhNzRkY2EwMDNiL3Jlc291cmNlR3JvdXBzL3JlczMyNTkvcHJvdmlkZXJzL01pY3Jvc29mdC5TdG9yYWdlU3luYy9zdG9yYWdlU3luY1NlcnZpY2VzL3Nzc2NyZWF0ZS1zZ2dldDE4Mjgvc3luY0dyb3Vwcy9zZ2dldDkzMT9hcGktdmVyc2lvbj0yMDE4LTA0LTAy", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"location\": \"west europe\",\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n }\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "284b408b-8814-4fe0-bc11-b68dd6139ac0" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26328.01", + "Microsoft.Azure.Management.StorageSync.StorageSyncManagementClient/1.0.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "97" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 11 Sep 2018 17:50:24 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "x-ms-request-id": [ + "08ec6140-75cb-487a-9275-5a5f6e1dc8a3" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1194" + ], + "x-ms-correlation-request-id": [ + "4c51e3db-0b5d-49d2-ae2b-4c345c8aee28" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180911T175025Z:4c51e3db-0b5d-49d2-ae2b-4c345c8aee28" + ], + "Content-Length": [ + "409" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"properties\": {\r\n \"syncGroupStatus\": null,\r\n \"uniqueId\": \"314d054a-21a4-420e-8f46-def5abe95f28\"\r\n },\r\n \"location\": \"west europe\",\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n },\r\n \"id\": \"/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res3259/providers/microsoft.storagesync/storageSyncServices/ssscreate-sgget1828/syncGroups/sgget931\",\r\n \"name\": \"sgget931\",\r\n \"type\": \"microsoft.storagesync/storageSyncServices/syncGroups\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res3259/providers/Microsoft.StorageSync/storageSyncServices/ssscreate-sgget1828/syncGroups/sgget931?api-version=2018-04-02", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWQxNmY5YjMtYmJlMy00OGQ0LTkzMGEtMjdhNzRkY2EwMDNiL3Jlc291cmNlR3JvdXBzL3JlczMyNTkvcHJvdmlkZXJzL01pY3Jvc29mdC5TdG9yYWdlU3luYy9zdG9yYWdlU3luY1NlcnZpY2VzL3Nzc2NyZWF0ZS1zZ2dldDE4Mjgvc3luY0dyb3Vwcy9zZ2dldDkzMT9hcGktdmVyc2lvbj0yMDE4LTA0LTAy", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "40170db9-bb74-4c98-a43f-80e821ee0d86" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26328.01", + "Microsoft.Azure.Management.StorageSync.StorageSyncManagementClient/1.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 11 Sep 2018 17:50:25 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "x-ms-request-id": [ + "0bea3c33-898f-4daf-86be-c3f63b3a0d11" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11980" + ], + "x-ms-correlation-request-id": [ + "4c1bae52-3048-4828-9492-67e1eb6816dc" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180911T175025Z:4c1bae52-3048-4828-9492-67e1eb6816dc" + ], + "Content-Length": [ + "406" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"properties\": {\r\n \"syncGroupStatus\": 0,\r\n \"uniqueId\": \"314d054a-21a4-420e-8f46-def5abe95f28\"\r\n },\r\n \"location\": \"west europe\",\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n },\r\n \"id\": \"/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res3259/providers/microsoft.storagesync/storageSyncServices/ssscreate-sgget1828/syncGroups/sgget931\",\r\n \"name\": \"sgget931\",\r\n \"type\": \"microsoft.storagesync/storageSyncServices/syncGroups\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res3259/providers/Microsoft.StorageSync/storageSyncServices/ssscreate-sgget1828/syncGroups/sgget931?api-version=2018-04-02", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWQxNmY5YjMtYmJlMy00OGQ0LTkzMGEtMjdhNzRkY2EwMDNiL3Jlc291cmNlR3JvdXBzL3JlczMyNTkvcHJvdmlkZXJzL01pY3Jvc29mdC5TdG9yYWdlU3luYy9zdG9yYWdlU3luY1NlcnZpY2VzL3Nzc2NyZWF0ZS1zZ2dldDE4Mjgvc3luY0dyb3Vwcy9zZ2dldDkzMT9hcGktdmVyc2lvbj0yMDE4LTA0LTAy", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "33cee0a4-8c8b-4183-9bc6-ced2da09602f" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26328.01", + "Microsoft.Azure.Management.StorageSync.StorageSyncManagementClient/1.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 11 Sep 2018 17:50:26 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "x-ms-request-id": [ + "e8ca05a9-63ca-4bce-ac11-8d841cfaf7c5" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-deletes": [ + "14994" + ], + "x-ms-correlation-request-id": [ + "825873de-9d1b-4bc3-895a-f95eb4262896" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180911T175026Z:825873de-9d1b-4bc3-895a-f95eb4262896" + ], + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res3259/providers/Microsoft.StorageSync/storageSyncServices/ssscreate-sgget1828?api-version=2018-04-02", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWQxNmY5YjMtYmJlMy00OGQ0LTkzMGEtMjdhNzRkY2EwMDNiL3Jlc291cmNlR3JvdXBzL3JlczMyNTkvcHJvdmlkZXJzL01pY3Jvc29mdC5TdG9yYWdlU3luYy9zdG9yYWdlU3luY1NlcnZpY2VzL3Nzc2NyZWF0ZS1zZ2dldDE4Mjg/YXBpLXZlcnNpb249MjAxOC0wNC0wMg==", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "21abdcb6-455f-42a3-84c6-ba253802785b" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26328.01", + "Microsoft.Azure.Management.StorageSync.StorageSyncManagementClient/1.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 11 Sep 2018 17:50:28 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "x-ms-request-id": [ + "ef60fbc3-5254-4015-b142-69f9710bf67d" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-deletes": [ + "14993" + ], + "x-ms-correlation-request-id": [ + "8dd79781-60e9-42c9-8eab-10c8e1e0f98e" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180911T175029Z:8dd79781-60e9-42c9-8eab-10c8e1e0f98e" + ], + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourcegroups/res3259?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWQxNmY5YjMtYmJlMy00OGQ0LTkzMGEtMjdhNzRkY2EwMDNiL3Jlc291cmNlZ3JvdXBzL3JlczMyNTk/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "dbd9c207-97ee-4da9-a042-2fa9c5e43cd3" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26328.01", + "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 11 Sep 2018 17:50:29 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1SRVMzMjU5LUVBU1RVUzIiLCJqb2JMb2NhdGlvbiI6ImVhc3R1czIifQ?api-version=2017-05-10" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-deletes": [ + "14992" + ], + "x-ms-request-id": [ + "367bf0ec-abfc-4ac3-a158-20a0b5ed967f" + ], + "x-ms-correlation-request-id": [ + "367bf0ec-abfc-4ac3-a158-20a0b5ed967f" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180911T175029Z:367bf0ec-abfc-4ac3-a158-20a0b5ed967f" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1SRVMzMjU5LUVBU1RVUzIiLCJqb2JMb2NhdGlvbiI6ImVhc3R1czIifQ?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWQxNmY5YjMtYmJlMy00OGQ0LTkzMGEtMjdhNzRkY2EwMDNiL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFTUlZNek1qVTVMVVZCVTFSVlV6SWlMQ0pxYjJKTWIyTmhkR2x2YmlJNkltVmhjM1IxY3pJaWZRP2FwaS12ZXJzaW9uPTIwMTctMDUtMTA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26328.01", + "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 11 Sep 2018 17:50:44 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1SRVMzMjU5LUVBU1RVUzIiLCJqb2JMb2NhdGlvbiI6ImVhc3R1czIifQ?api-version=2017-05-10" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11979" + ], + "x-ms-request-id": [ + "2f1d9956-44f4-47fd-91d9-e4df753d25d7" + ], + "x-ms-correlation-request-id": [ + "2f1d9956-44f4-47fd-91d9-e4df753d25d7" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180911T175045Z:2f1d9956-44f4-47fd-91d9-e4df753d25d7" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1SRVMzMjU5LUVBU1RVUzIiLCJqb2JMb2NhdGlvbiI6ImVhc3R1czIifQ?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWQxNmY5YjMtYmJlMy00OGQ0LTkzMGEtMjdhNzRkY2EwMDNiL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFTUlZNek1qVTVMVVZCVTFSVlV6SWlMQ0pxYjJKTWIyTmhkR2x2YmlJNkltVmhjM1IxY3pJaWZRP2FwaS12ZXJzaW9uPTIwMTctMDUtMTA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26328.01", + "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 11 Sep 2018 17:50:59 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1SRVMzMjU5LUVBU1RVUzIiLCJqb2JMb2NhdGlvbiI6ImVhc3R1czIifQ?api-version=2017-05-10" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11978" + ], + "x-ms-request-id": [ + "ef0d799a-5b4b-4bff-87b9-5c97cb309053" + ], + "x-ms-correlation-request-id": [ + "ef0d799a-5b4b-4bff-87b9-5c97cb309053" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180911T175100Z:ef0d799a-5b4b-4bff-87b9-5c97cb309053" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1SRVMzMjU5LUVBU1RVUzIiLCJqb2JMb2NhdGlvbiI6ImVhc3R1czIifQ?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWQxNmY5YjMtYmJlMy00OGQ0LTkzMGEtMjdhNzRkY2EwMDNiL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFTUlZNek1qVTVMVVZCVTFSVlV6SWlMQ0pxYjJKTWIyTmhkR2x2YmlJNkltVmhjM1IxY3pJaWZRP2FwaS12ZXJzaW9uPTIwMTctMDUtMTA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26328.01", + "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 11 Sep 2018 17:51:15 GMT" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11977" + ], + "x-ms-request-id": [ + "837e069e-6a17-4520-85c0-856275ddcac2" + ], + "x-ms-correlation-request-id": [ + "837e069e-6a17-4520-85c0-856275ddcac2" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180911T175115Z:837e069e-6a17-4520-85c0-856275ddcac2" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1SRVMzMjU5LUVBU1RVUzIiLCJqb2JMb2NhdGlvbiI6ImVhc3R1czIifQ?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWQxNmY5YjMtYmJlMy00OGQ0LTkzMGEtMjdhNzRkY2EwMDNiL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFTUlZNek1qVTVMVVZCVTFSVlV6SWlMQ0pxYjJKTWIyTmhkR2x2YmlJNkltVmhjM1IxY3pJaWZRP2FwaS12ZXJzaW9uPTIwMTctMDUtMTA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26328.01", + "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 11 Sep 2018 17:51:15 GMT" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11976" + ], + "x-ms-request-id": [ + "af8ce2fc-6602-470d-8919-3f25778cd014" + ], + "x-ms-correlation-request-id": [ + "af8ce2fc-6602-470d-8919-3f25778cd014" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180911T175115Z:af8ce2fc-6602-470d-8919-3f25778cd014" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "", + "StatusCode": 200 + } + ], + "Names": { + "CreateResourceGroup": [ + "res3259" + ], + "SyncGroupGetTest": [ + "ssscreate-sgget1828", + "sgget931" + ] + }, + "Variables": { + "SubscriptionId": "1d16f9b3-bbe3-48d4-930a-27a74dca003b" + } +} \ No newline at end of file diff --git a/src/SDKs/StorageSync/StorageSync.Tests/SessionRecords/Microsoft.Azure.Management.StorageSync.Tests.SyncGroupTests/SyncGroupListTest.json b/src/SDKs/StorageSync/StorageSync.Tests/SessionRecords/Microsoft.Azure.Management.StorageSync.Tests.SyncGroupTests/SyncGroupListTest.json new file mode 100644 index 000000000000..260d928c3cf1 --- /dev/null +++ b/src/SDKs/StorageSync/StorageSync.Tests/SessionRecords/Microsoft.Azure.Management.StorageSync.Tests.SyncGroupTests/SyncGroupListTest.json @@ -0,0 +1,690 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourcegroups/res9532?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWQxNmY5YjMtYmJlMy00OGQ0LTkzMGEtMjdhNzRkY2EwMDNiL3Jlc291cmNlZ3JvdXBzL3Jlczk1MzI/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"location\": \"eastus2\"\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "3d439930-3057-4e5e-ba8a-f437837775fb" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26328.01", + "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "29" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 11 Sep 2018 17:49:19 GMT" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1199" + ], + "x-ms-request-id": [ + "73ab2941-5a5a-4211-99b9-f5bb7b216350" + ], + "x-ms-correlation-request-id": [ + "73ab2941-5a5a-4211-99b9-f5bb7b216350" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180911T174919Z:73ab2941-5a5a-4211-99b9-f5bb7b216350" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "168" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res9532\",\r\n \"name\": \"res9532\",\r\n \"location\": \"eastus2\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res9532/providers/Microsoft.StorageSync/storageSyncServices/ssscreate-sglist54?api-version=2018-04-02", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWQxNmY5YjMtYmJlMy00OGQ0LTkzMGEtMjdhNzRkY2EwMDNiL3Jlc291cmNlR3JvdXBzL3Jlczk1MzIvcHJvdmlkZXJzL01pY3Jvc29mdC5TdG9yYWdlU3luYy9zdG9yYWdlU3luY1NlcnZpY2VzL3Nzc2NyZWF0ZS1zZ2xpc3Q1ND9hcGktdmVyc2lvbj0yMDE4LTA0LTAy", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"location\": \"west europe\",\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n }\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "caca1b6b-2afb-428a-b24b-02d1780ad1f4" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26328.01", + "Microsoft.Azure.Management.StorageSync.StorageSyncManagementClient/1.0.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "97" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 11 Sep 2018 17:49:22 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "x-ms-request-id": [ + "ef329a42-4a36-4288-9ad4-9867e60e6cf6" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1198" + ], + "x-ms-correlation-request-id": [ + "a0de94e8-d911-4c9a-bdc5-56198c808843" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180911T174922Z:a0de94e8-d911-4c9a-bdc5-56198c808843" + ], + "Content-Length": [ + "409" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"properties\": {\r\n \"storageSyncServiceStatus\": null,\r\n \"storageSyncServiceUid\": \"00000000-0000-0000-0000-000000000000\"\r\n },\r\n \"location\": \"west europe\",\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n },\r\n \"id\": \"/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res9532/providers/microsoft.storagesync/storageSyncServices/ssscreate-sglist54\",\r\n \"name\": \"ssscreate-sglist54\",\r\n \"type\": \"microsoft.storagesync/storageSyncServices\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res9532/providers/Microsoft.StorageSync/storageSyncServices/ssscreate-sglist54/syncGroups/sglist4877?api-version=2018-04-02", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWQxNmY5YjMtYmJlMy00OGQ0LTkzMGEtMjdhNzRkY2EwMDNiL3Jlc291cmNlR3JvdXBzL3Jlczk1MzIvcHJvdmlkZXJzL01pY3Jvc29mdC5TdG9yYWdlU3luYy9zdG9yYWdlU3luY1NlcnZpY2VzL3Nzc2NyZWF0ZS1zZ2xpc3Q1NC9zeW5jR3JvdXBzL3NnbGlzdDQ4Nzc/YXBpLXZlcnNpb249MjAxOC0wNC0wMg==", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"location\": \"west europe\",\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n }\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "aea9e102-0a13-4178-8ec1-3f9976cf6234" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26328.01", + "Microsoft.Azure.Management.StorageSync.StorageSyncManagementClient/1.0.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "97" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 11 Sep 2018 17:49:23 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "x-ms-request-id": [ + "45f45fe5-a74a-474b-94e9-e08477321292" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1197" + ], + "x-ms-correlation-request-id": [ + "f87e5ada-14fb-4c6a-ae75-89cfbd8e0a88" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180911T174923Z:f87e5ada-14fb-4c6a-ae75-89cfbd8e0a88" + ], + "Content-Length": [ + "412" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"properties\": {\r\n \"syncGroupStatus\": null,\r\n \"uniqueId\": \"12a8adb2-16f3-4027-abf8-cd6bb8b60fbb\"\r\n },\r\n \"location\": \"west europe\",\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n },\r\n \"id\": \"/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res9532/providers/microsoft.storagesync/storageSyncServices/ssscreate-sglist54/syncGroups/sglist4877\",\r\n \"name\": \"sglist4877\",\r\n \"type\": \"microsoft.storagesync/storageSyncServices/syncGroups\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res9532/providers/Microsoft.StorageSync/storageSyncServices/ssscreate-sglist54/syncGroups?api-version=2018-04-02", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWQxNmY5YjMtYmJlMy00OGQ0LTkzMGEtMjdhNzRkY2EwMDNiL3Jlc291cmNlR3JvdXBzL3Jlczk1MzIvcHJvdmlkZXJzL01pY3Jvc29mdC5TdG9yYWdlU3luYy9zdG9yYWdlU3luY1NlcnZpY2VzL3Nzc2NyZWF0ZS1zZ2xpc3Q1NC9zeW5jR3JvdXBzP2FwaS12ZXJzaW9uPTIwMTgtMDQtMDI=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "14670f6a-6af9-4ed0-8ff2-a7494cbe3b69" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26328.01", + "Microsoft.Azure.Management.StorageSync.StorageSyncManagementClient/1.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 11 Sep 2018 17:49:24 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "x-ms-request-id": [ + "fcf698dc-0c69-4c7a-bf99-fb6b2a0b132c" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11999" + ], + "x-ms-correlation-request-id": [ + "9ab80ec5-0e64-4d40-951d-ae93e4a08e69" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180911T174924Z:9ab80ec5-0e64-4d40-951d-ae93e4a08e69" + ], + "Content-Length": [ + "421" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"properties\": {\r\n \"syncGroupStatus\": 0,\r\n \"uniqueId\": \"12a8adb2-16f3-4027-abf8-cd6bb8b60fbb\"\r\n },\r\n \"location\": \"west europe\",\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n },\r\n \"id\": \"/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res9532/providers/microsoft.storagesync/storageSyncServices/ssscreate-sglist54/syncGroups/sglist4877\",\r\n \"name\": \"sglist4877\",\r\n \"type\": \"microsoft.storagesync/storageSyncServices/syncGroups\"\r\n }\r\n ]\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res9532/providers/Microsoft.StorageSync/storageSyncServices/ssscreate-sglist54/syncGroups/sglist4877?api-version=2018-04-02", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWQxNmY5YjMtYmJlMy00OGQ0LTkzMGEtMjdhNzRkY2EwMDNiL3Jlc291cmNlR3JvdXBzL3Jlczk1MzIvcHJvdmlkZXJzL01pY3Jvc29mdC5TdG9yYWdlU3luYy9zdG9yYWdlU3luY1NlcnZpY2VzL3Nzc2NyZWF0ZS1zZ2xpc3Q1NC9zeW5jR3JvdXBzL3NnbGlzdDQ4Nzc/YXBpLXZlcnNpb249MjAxOC0wNC0wMg==", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "837a040b-284c-44b1-a187-41be625e1433" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26328.01", + "Microsoft.Azure.Management.StorageSync.StorageSyncManagementClient/1.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 11 Sep 2018 17:49:25 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "x-ms-request-id": [ + "eb50af5b-c76d-44a5-8a2a-61a4682039eb" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-deletes": [ + "14999" + ], + "x-ms-correlation-request-id": [ + "1534a23e-2310-42c2-8fbf-70f6ce4d3d41" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180911T174925Z:1534a23e-2310-42c2-8fbf-70f6ce4d3d41" + ], + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourceGroups/res9532/providers/Microsoft.StorageSync/storageSyncServices/ssscreate-sglist54?api-version=2018-04-02", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWQxNmY5YjMtYmJlMy00OGQ0LTkzMGEtMjdhNzRkY2EwMDNiL3Jlc291cmNlR3JvdXBzL3Jlczk1MzIvcHJvdmlkZXJzL01pY3Jvc29mdC5TdG9yYWdlU3luYy9zdG9yYWdlU3luY1NlcnZpY2VzL3Nzc2NyZWF0ZS1zZ2xpc3Q1ND9hcGktdmVyc2lvbj0yMDE4LTA0LTAy", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "fd937e3f-7be2-42f3-8b8e-71c567ebac7b" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26328.01", + "Microsoft.Azure.Management.StorageSync.StorageSyncManagementClient/1.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 11 Sep 2018 17:49:27 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "x-ms-request-id": [ + "e715ffd3-98c1-408e-8c12-4e5067286874" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-deletes": [ + "14998" + ], + "x-ms-correlation-request-id": [ + "e73cfb00-aaf5-4a7b-b275-9c7b206e75d0" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180911T174927Z:e73cfb00-aaf5-4a7b-b275-9c7b206e75d0" + ], + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/resourcegroups/res9532?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWQxNmY5YjMtYmJlMy00OGQ0LTkzMGEtMjdhNzRkY2EwMDNiL3Jlc291cmNlZ3JvdXBzL3Jlczk1MzI/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "60efe3f2-7171-41be-a5d2-97bb352c5af7" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26328.01", + "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 11 Sep 2018 17:49:28 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1SRVM5NTMyLUVBU1RVUzIiLCJqb2JMb2NhdGlvbiI6ImVhc3R1czIifQ?api-version=2017-05-10" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-deletes": [ + "14997" + ], + "x-ms-request-id": [ + "6988c71c-e48e-455e-8b28-517ed8d08ddd" + ], + "x-ms-correlation-request-id": [ + "6988c71c-e48e-455e-8b28-517ed8d08ddd" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180911T174928Z:6988c71c-e48e-455e-8b28-517ed8d08ddd" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1SRVM5NTMyLUVBU1RVUzIiLCJqb2JMb2NhdGlvbiI6ImVhc3R1czIifQ?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWQxNmY5YjMtYmJlMy00OGQ0LTkzMGEtMjdhNzRkY2EwMDNiL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFTUlZNNU5UTXlMVVZCVTFSVlV6SWlMQ0pxYjJKTWIyTmhkR2x2YmlJNkltVmhjM1IxY3pJaWZRP2FwaS12ZXJzaW9uPTIwMTctMDUtMTA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26328.01", + "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 11 Sep 2018 17:49:43 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1SRVM5NTMyLUVBU1RVUzIiLCJqb2JMb2NhdGlvbiI6ImVhc3R1czIifQ?api-version=2017-05-10" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11998" + ], + "x-ms-request-id": [ + "59c5963c-d427-42f9-a0fe-46913d65d70f" + ], + "x-ms-correlation-request-id": [ + "59c5963c-d427-42f9-a0fe-46913d65d70f" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180911T174944Z:59c5963c-d427-42f9-a0fe-46913d65d70f" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1SRVM5NTMyLUVBU1RVUzIiLCJqb2JMb2NhdGlvbiI6ImVhc3R1czIifQ?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWQxNmY5YjMtYmJlMy00OGQ0LTkzMGEtMjdhNzRkY2EwMDNiL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFTUlZNNU5UTXlMVVZCVTFSVlV6SWlMQ0pxYjJKTWIyTmhkR2x2YmlJNkltVmhjM1IxY3pJaWZRP2FwaS12ZXJzaW9uPTIwMTctMDUtMTA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26328.01", + "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 11 Sep 2018 17:49:58 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1SRVM5NTMyLUVBU1RVUzIiLCJqb2JMb2NhdGlvbiI6ImVhc3R1czIifQ?api-version=2017-05-10" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11997" + ], + "x-ms-request-id": [ + "66284542-a588-47b5-8fe3-d3bb794f7bac" + ], + "x-ms-correlation-request-id": [ + "66284542-a588-47b5-8fe3-d3bb794f7bac" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180911T174959Z:66284542-a588-47b5-8fe3-d3bb794f7bac" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1SRVM5NTMyLUVBU1RVUzIiLCJqb2JMb2NhdGlvbiI6ImVhc3R1czIifQ?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWQxNmY5YjMtYmJlMy00OGQ0LTkzMGEtMjdhNzRkY2EwMDNiL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFTUlZNNU5UTXlMVVZCVTFSVlV6SWlMQ0pxYjJKTWIyTmhkR2x2YmlJNkltVmhjM1IxY3pJaWZRP2FwaS12ZXJzaW9uPTIwMTctMDUtMTA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26328.01", + "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 11 Sep 2018 17:50:13 GMT" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11996" + ], + "x-ms-request-id": [ + "fdadb987-44d6-41ed-b0fe-e233951159b8" + ], + "x-ms-correlation-request-id": [ + "fdadb987-44d6-41ed-b0fe-e233951159b8" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180911T175014Z:fdadb987-44d6-41ed-b0fe-e233951159b8" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1d16f9b3-bbe3-48d4-930a-27a74dca003b/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1SRVM5NTMyLUVBU1RVUzIiLCJqb2JMb2NhdGlvbiI6ImVhc3R1czIifQ?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWQxNmY5YjMtYmJlMy00OGQ0LTkzMGEtMjdhNzRkY2EwMDNiL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFTUlZNNU5UTXlMVVZCVTFSVlV6SWlMQ0pxYjJKTWIyTmhkR2x2YmlJNkltVmhjM1IxY3pJaWZRP2FwaS12ZXJzaW9uPTIwMTctMDUtMTA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26328.01", + "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 11 Sep 2018 17:50:13 GMT" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11995" + ], + "x-ms-request-id": [ + "d8dcaebb-403f-45b2-b1f6-af030e534c2c" + ], + "x-ms-correlation-request-id": [ + "d8dcaebb-403f-45b2-b1f6-af030e534c2c" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180911T175014Z:d8dcaebb-403f-45b2-b1f6-af030e534c2c" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "", + "StatusCode": 200 + } + ], + "Names": { + "CreateResourceGroup": [ + "res9532" + ], + "SyncGroupListTest": [ + "ssscreate-sglist54", + "sglist4877" + ] + }, + "Variables": { + "SubscriptionId": "1d16f9b3-bbe3-48d4-930a-27a74dca003b" + } +} \ No newline at end of file diff --git a/src/SDKs/StorageSync/StorageSync.Tests/StorageSync.Tests.csproj b/src/SDKs/StorageSync/StorageSync.Tests/StorageSync.Tests.csproj new file mode 100644 index 000000000000..b9366f622a10 --- /dev/null +++ b/src/SDKs/StorageSync/StorageSync.Tests/StorageSync.Tests.csproj @@ -0,0 +1,27 @@ + + + + StorageSync.Tests + StorageSync.Tests Class Library + StorageSync.Tests + 1.0.0 + true + + + + + + + + + + + + PreserveNewest + + + + + + + diff --git a/src/SDKs/StorageSync/StorageSync.Tests/Tests/CloudEndpointTests.cs b/src/SDKs/StorageSync/StorageSync.Tests/Tests/CloudEndpointTests.cs new file mode 100644 index 000000000000..5e431677ccf2 --- /dev/null +++ b/src/SDKs/StorageSync/StorageSync.Tests/Tests/CloudEndpointTests.cs @@ -0,0 +1,199 @@ +using Microsoft.Azure.Management.ResourceManager; +using Microsoft.Azure.Management.Storage; +using Microsoft.Azure.Management.Storage.Models; +using Microsoft.Azure.Management.StorageSync.Models; +using Microsoft.Azure.Management.Tests.Common; +using Microsoft.Rest.ClientRuntime.Azure.TestFramework; +using System.Collections.Generic; +using System.Net; +using Xunit; +using System.Linq; + +namespace Microsoft.Azure.Management.StorageSync.Tests +{ + public class CloudEndpointTests + { + [Fact] + public void CloudEndpointCreateTest() + { + var handler = new RecordedDelegatingHandler { StatusCodeToReturn = HttpStatusCode.OK }; + + using (MockContext context = MockContext.Start(this.GetType().FullName)) + { + IResourceManagementClient resourcesClient = StorageSyncManagementTestUtilities.GetResourceManagementClient(context, handler); + IStorageSyncManagementClient storageSyncManagementClient = StorageSyncManagementTestUtilities.GetStorageSyncManagementClient(context, handler); + + // Create ResourceGroup + string resourceGroupName = StorageSyncManagementTestUtilities.CreateResourceGroup(resourcesClient); + + // Create CloudEndpoint Name + string storageSyncServiceName = TestUtilities.GenerateName("sss-cepcreate"); + string syncGroupName = TestUtilities.GenerateName("sg-cepcreate"); + string cloudEndpointName = TestUtilities.GenerateName("cepcreate"); + + var storageSyncServiceParameters = StorageSyncManagementTestUtilities.GetDefaultStorageSyncServiceParameters(); + var syncGroupParameters = StorageSyncManagementTestUtilities.GetDefaultSyncGroupParameters(); + var cloudEndpointParameters = StorageSyncManagementTestUtilities.GetDefaultCloudEndpointParameters(); + + StorageSyncService parentResource = storageSyncManagementClient.StorageSyncServices.Create(resourceGroupName, storageSyncServiceName, storageSyncServiceParameters); + Assert.NotNull(parentResource); + StorageSyncManagementTestUtilities.VerifyStorageSyncServiceProperties(parentResource, true); + + SyncGroup parentResource2 = storageSyncManagementClient.SyncGroups.Create(resourceGroupName, parentResource.Name, syncGroupName, syncGroupParameters); + Assert.NotNull(parentResource2); + StorageSyncManagementTestUtilities.VerifySyncGroupProperties(parentResource2, true); + + CloudEndpoint resource = storageSyncManagementClient.CloudEndpoints.Create(resourceGroupName, parentResource.Name, parentResource2.Name,cloudEndpointName, cloudEndpointParameters); + Assert.NotNull(resource); + StorageSyncManagementTestUtilities.VerifyCloudEndpointProperties(resource, true); + + storageSyncManagementClient.CloudEndpoints.Delete(resourceGroupName, parentResource.Name, syncGroupName, cloudEndpointName); + storageSyncManagementClient.SyncGroups.Delete(resourceGroupName, parentResource.Name, syncGroupName); + storageSyncManagementClient.StorageSyncServices.Delete(resourceGroupName, parentResource.Name); + StorageSyncManagementTestUtilities.RemoveResourceGroup(resourcesClient, resourceGroupName); + } + } + + [Fact] + public void CloudEndpointGetTest() + { + + var handler = new RecordedDelegatingHandler { StatusCodeToReturn = HttpStatusCode.OK }; + + using (MockContext context = MockContext.Start(this.GetType().FullName)) + { + IResourceManagementClient resourcesClient = StorageSyncManagementTestUtilities.GetResourceManagementClient(context, handler); + IStorageSyncManagementClient storageSyncManagementClient = StorageSyncManagementTestUtilities.GetStorageSyncManagementClient(context, handler); + + // Create ResourceGroup + string resourceGroupName = StorageSyncManagementTestUtilities.CreateResourceGroup(resourcesClient); + + // Create CloudEndpoint Name + string storageSyncServiceName = TestUtilities.GenerateName("sss-cepget"); + string syncGroupName = TestUtilities.GenerateName("sg-cepget"); + string cloudEndpointName = TestUtilities.GenerateName("cepget"); + + var storageSyncServiceParameters = StorageSyncManagementTestUtilities.GetDefaultStorageSyncServiceParameters(); + var syncGroupParameters = StorageSyncManagementTestUtilities.GetDefaultSyncGroupParameters(); + var cloudEndpointParameters = StorageSyncManagementTestUtilities.GetDefaultCloudEndpointParameters(); + + StorageSyncService storageSyncServiceResource = storageSyncManagementClient.StorageSyncServices.Create(resourceGroupName, storageSyncServiceName, storageSyncServiceParameters); + Assert.NotNull(storageSyncServiceResource); + StorageSyncManagementTestUtilities.VerifyStorageSyncServiceProperties(storageSyncServiceResource, true); + + SyncGroup syncGroupResource = storageSyncManagementClient.SyncGroups.Create(resourceGroupName, storageSyncServiceResource.Name, syncGroupName, syncGroupParameters); + Assert.NotNull(syncGroupResource); + StorageSyncManagementTestUtilities.VerifySyncGroupProperties(syncGroupResource, true); + + CloudEndpoint cloudEndpointResource = storageSyncManagementClient.CloudEndpoints.Create(resourceGroupName, storageSyncServiceResource.Name, syncGroupResource.Name, cloudEndpointName, cloudEndpointParameters); + Assert.NotNull(cloudEndpointResource); + StorageSyncManagementTestUtilities.VerifyCloudEndpointProperties(cloudEndpointResource, true); + + cloudEndpointResource = storageSyncManagementClient.CloudEndpoints.Get(resourceGroupName, storageSyncServiceResource.Name, syncGroupResource.Name, cloudEndpointName); + StorageSyncManagementTestUtilities.VerifyCloudEndpointProperties(cloudEndpointResource, false); + + storageSyncManagementClient.CloudEndpoints.Delete(resourceGroupName, storageSyncServiceResource.Name, syncGroupName, cloudEndpointName); + storageSyncManagementClient.SyncGroups.Delete(resourceGroupName, storageSyncServiceResource.Name, syncGroupName); + storageSyncManagementClient.StorageSyncServices.Delete(resourceGroupName, storageSyncServiceResource.Name); + StorageSyncManagementTestUtilities.RemoveResourceGroup(resourcesClient, resourceGroupName); + } + } + + [Fact] + public void CloudEndpointListTest() + { + var handler = new RecordedDelegatingHandler { StatusCodeToReturn = HttpStatusCode.OK }; + + using (MockContext context = MockContext.Start(this.GetType().FullName)) + { + IResourceManagementClient resourcesClient = StorageSyncManagementTestUtilities.GetResourceManagementClient(context, handler); + IStorageSyncManagementClient storageSyncManagementClient = StorageSyncManagementTestUtilities.GetStorageSyncManagementClient(context, handler); + + // Create ResourceGroup + string resourceGroupName = StorageSyncManagementTestUtilities.CreateResourceGroup(resourcesClient); + + // Create CloudEndpoint Name + string storageSyncServiceName = TestUtilities.GenerateName("sss-ceplist"); + string syncGroupName = TestUtilities.GenerateName("sg-ceplist"); + string cloudEndpointName = TestUtilities.GenerateName("ceplist"); + + var storageSyncServiceParameters = StorageSyncManagementTestUtilities.GetDefaultStorageSyncServiceParameters(); + var syncGroupParameters = StorageSyncManagementTestUtilities.GetDefaultSyncGroupParameters(); + var cloudEndpointParameters = StorageSyncManagementTestUtilities.GetDefaultCloudEndpointParameters(); + + StorageSyncService storageSyncServiceResource = storageSyncManagementClient.StorageSyncServices.Create(resourceGroupName, storageSyncServiceName, storageSyncServiceParameters); + Assert.NotNull(storageSyncServiceResource); + StorageSyncManagementTestUtilities.VerifyStorageSyncServiceProperties(storageSyncServiceResource, true); + + SyncGroup syncGroupResource = storageSyncManagementClient.SyncGroups.Create(resourceGroupName, storageSyncServiceResource.Name, syncGroupName, syncGroupParameters); + Assert.NotNull(syncGroupResource); + StorageSyncManagementTestUtilities.VerifySyncGroupProperties(syncGroupResource, true); + + CloudEndpoint cloudEndpointResource = storageSyncManagementClient.CloudEndpoints.Create(resourceGroupName, storageSyncServiceResource.Name, syncGroupResource.Name, cloudEndpointName, cloudEndpointParameters); + Assert.NotNull(cloudEndpointResource); + StorageSyncManagementTestUtilities.VerifyCloudEndpointProperties(cloudEndpointResource, true); + + IEnumerable cloudEndpointResources = storageSyncManagementClient.CloudEndpoints.ListBySyncGroup(resourceGroupName, storageSyncServiceResource.Name, syncGroupResource.Name); + + Assert.NotNull(cloudEndpointResources); + Assert.Single(cloudEndpointResources); + + StorageSyncManagementTestUtilities.VerifyCloudEndpointProperties(cloudEndpointResources.First(), false); + + storageSyncManagementClient.CloudEndpoints.Delete(resourceGroupName, storageSyncServiceResource.Name, syncGroupName, cloudEndpointName); + storageSyncManagementClient.SyncGroups.Delete(resourceGroupName, storageSyncServiceResource.Name, syncGroupName); + storageSyncManagementClient.StorageSyncServices.Delete(resourceGroupName, storageSyncServiceResource.Name); + StorageSyncManagementTestUtilities.RemoveResourceGroup(resourcesClient, resourceGroupName); + } + } + + [Fact] + public void CloudEndpointDeleteTest() + { + var handler = new RecordedDelegatingHandler { StatusCodeToReturn = HttpStatusCode.OK }; + + using (MockContext context = MockContext.Start(this.GetType().FullName)) + { + IResourceManagementClient resourcesClient = StorageSyncManagementTestUtilities.GetResourceManagementClient(context, handler); + IStorageSyncManagementClient storageSyncManagementClient = StorageSyncManagementTestUtilities.GetStorageSyncManagementClient(context, handler); + + // Create ResourceGroup + string resourceGroupName = StorageSyncManagementTestUtilities.CreateResourceGroup(resourcesClient); + + // Create CloudEndpoint Name + string storageSyncServiceName = TestUtilities.GenerateName("sss-cepdelete"); + string syncGroupName = TestUtilities.GenerateName("sg-cepdelete"); + string cloudEndpointName = TestUtilities.GenerateName("cepdelete"); + + var storageSyncServiceParameters = StorageSyncManagementTestUtilities.GetDefaultStorageSyncServiceParameters(); + var syncGroupParameters = StorageSyncManagementTestUtilities.GetDefaultSyncGroupParameters(); + var cloudEndpointParameters = StorageSyncManagementTestUtilities.GetDefaultCloudEndpointParameters(); + + StorageSyncService storageSyncServiceResource = storageSyncManagementClient.StorageSyncServices.Create(resourceGroupName, storageSyncServiceName, storageSyncServiceParameters); + Assert.NotNull(storageSyncServiceResource); + StorageSyncManagementTestUtilities.VerifyStorageSyncServiceProperties(storageSyncServiceResource, true); + + SyncGroup syncGroupResource = storageSyncManagementClient.SyncGroups.Create(resourceGroupName, storageSyncServiceResource.Name, syncGroupName, syncGroupParameters); + Assert.NotNull(syncGroupResource); + StorageSyncManagementTestUtilities.VerifySyncGroupProperties(syncGroupResource, true); + + // Delete CloudEndpoint before its created. + storageSyncManagementClient.CloudEndpoints.Delete(resourceGroupName, storageSyncServiceResource.Name, syncGroupResource.Name, cloudEndpointName); + + CloudEndpoint cloudEndpointResource = storageSyncManagementClient.CloudEndpoints.Create(resourceGroupName, storageSyncServiceResource.Name, syncGroupResource.Name, cloudEndpointName, cloudEndpointParameters); + Assert.NotNull(cloudEndpointResource); + StorageSyncManagementTestUtilities.VerifyCloudEndpointProperties(cloudEndpointResource, true); + + // Delete CloudEndpoint + storageSyncManagementClient.CloudEndpoints.Delete(resourceGroupName, storageSyncServiceResource.Name, syncGroupResource.Name, cloudEndpointName); + + // Delete CloudEndpoint which was just deleted + storageSyncManagementClient.CloudEndpoints.Delete(resourceGroupName, storageSyncServiceResource.Name, syncGroupResource.Name, cloudEndpointName); + + storageSyncManagementClient.SyncGroups.Delete(resourceGroupName, storageSyncServiceResource.Name, syncGroupName); + storageSyncManagementClient.StorageSyncServices.Delete(resourceGroupName, storageSyncServiceResource.Name); + StorageSyncManagementTestUtilities.RemoveResourceGroup(resourcesClient, resourceGroupName); + } + } + } +} diff --git a/src/SDKs/StorageSync/StorageSync.Tests/Tests/RegisteredServerTests.cs b/src/SDKs/StorageSync/StorageSync.Tests/Tests/RegisteredServerTests.cs new file mode 100644 index 000000000000..83ec4740e45e --- /dev/null +++ b/src/SDKs/StorageSync/StorageSync.Tests/Tests/RegisteredServerTests.cs @@ -0,0 +1,179 @@ +using Microsoft.Azure.Management.ResourceManager; +using Microsoft.Azure.Management.Storage; +using Microsoft.Azure.Management.Storage.Models; +using Microsoft.Azure.Management.StorageSync.Models; +using Microsoft.Azure.Management.Tests.Common; +using Microsoft.Rest.ClientRuntime.Azure.TestFramework; +using System.Collections.Generic; +using System.Net; +using Xunit; +using System.Linq; +using System; +using Microsoft.Rest.Azure; + +namespace Microsoft.Azure.Management.StorageSync.Tests +{ + public class RegisteredServerTests + { + [Fact] + public void RegisteredServerCreateTest() + { + var handler = new RecordedDelegatingHandler { StatusCodeToReturn = HttpStatusCode.OK }; + + using (MockContext context = MockContext.Start(this.GetType().FullName)) + { + IResourceManagementClient resourcesClient = StorageSyncManagementTestUtilities.GetResourceManagementClient(context, handler); + IStorageSyncManagementClient storageSyncManagementClient = StorageSyncManagementTestUtilities.GetStorageSyncManagementClient(context, handler); + + // Create ResourceGroup + string resourceGroupName = StorageSyncManagementTestUtilities.CreateResourceGroup(resourcesClient); + + // Create RegisteredServer Name + string storageSyncServiceName = TestUtilities.GenerateName("sss-rscreate"); + Guid serverGuid = TestUtilities.GenerateGuid(); + + var storageSyncServiceParameters = StorageSyncManagementTestUtilities.GetDefaultStorageSyncServiceParameters(); + var registeredServerParameters = StorageSyncManagementTestUtilities.GetDefaultRegisteredServerParameters(serverGuid); + + StorageSyncService storageSyncServiceResource = storageSyncManagementClient.StorageSyncServices.Create(resourceGroupName, storageSyncServiceName, storageSyncServiceParameters); + Assert.NotNull(storageSyncServiceResource); + StorageSyncManagementTestUtilities.VerifyStorageSyncServiceProperties(storageSyncServiceResource, true); + + RegisteredServer resource = storageSyncManagementClient.RegisteredServers.Create(resourceGroupName, storageSyncServiceResource.Name, serverGuid.ToString(), registeredServerParameters); + Assert.NotNull(resource); + StorageSyncManagementTestUtilities.VerifyRegisteredServerProperties(resource, true); + + storageSyncManagementClient.RegisteredServers.Delete(resourceGroupName, storageSyncServiceResource.Name, serverGuid.ToString()); + storageSyncManagementClient.StorageSyncServices.Delete(resourceGroupName, storageSyncServiceResource.Name); + StorageSyncManagementTestUtilities.RemoveResourceGroup(resourcesClient, resourceGroupName); + } + } + + [Fact] + public void RegisteredServerGetTest() + { + var handler = new RecordedDelegatingHandler { StatusCodeToReturn = HttpStatusCode.OK }; + + using (MockContext context = MockContext.Start(this.GetType().FullName)) + { + IResourceManagementClient resourcesClient = StorageSyncManagementTestUtilities.GetResourceManagementClient(context, handler); + IStorageSyncManagementClient storageSyncManagementClient = StorageSyncManagementTestUtilities.GetStorageSyncManagementClient(context, handler); + + // Create ResourceGroup + string resourceGroupName = StorageSyncManagementTestUtilities.CreateResourceGroup(resourcesClient); + + // Create RegisteredServer Name + string storageSyncServiceName = TestUtilities.GenerateName("sss-rsget"); + Guid serverGuid = TestUtilities.GenerateGuid(); + + var storageSyncServiceParameters = StorageSyncManagementTestUtilities.GetDefaultStorageSyncServiceParameters(); + var registeredServerParameters = StorageSyncManagementTestUtilities.GetDefaultRegisteredServerParameters(serverGuid); + + StorageSyncService storageSyncServiceResource = storageSyncManagementClient.StorageSyncServices.Create(resourceGroupName, storageSyncServiceName, storageSyncServiceParameters); + Assert.NotNull(storageSyncServiceResource); + StorageSyncManagementTestUtilities.VerifyStorageSyncServiceProperties(storageSyncServiceResource, true); + + RegisteredServer registeredServerResource = storageSyncManagementClient.RegisteredServers.Create(resourceGroupName, storageSyncServiceResource.Name, serverGuid.ToString(), registeredServerParameters); + Assert.NotNull(registeredServerResource); + StorageSyncManagementTestUtilities.VerifyRegisteredServerProperties(registeredServerResource, true); + + registeredServerResource = storageSyncManagementClient.RegisteredServers.Get(resourceGroupName, storageSyncServiceResource.Name, serverGuid.ToString()); + StorageSyncManagementTestUtilities.VerifyRegisteredServerProperties(registeredServerResource, true); + + storageSyncManagementClient.RegisteredServers.Delete(resourceGroupName, storageSyncServiceResource.Name, serverGuid.ToString()); + storageSyncManagementClient.StorageSyncServices.Delete(resourceGroupName, storageSyncServiceResource.Name); + StorageSyncManagementTestUtilities.RemoveResourceGroup(resourcesClient, resourceGroupName); + } + } + + [Fact] + public void RegisteredServerListTest() + { + var handler = new RecordedDelegatingHandler { StatusCodeToReturn = HttpStatusCode.OK }; + + using (MockContext context = MockContext.Start(this.GetType().FullName)) + { + IResourceManagementClient resourcesClient = StorageSyncManagementTestUtilities.GetResourceManagementClient(context, handler); + IStorageSyncManagementClient storageSyncManagementClient = StorageSyncManagementTestUtilities.GetStorageSyncManagementClient(context, handler); + + // Create ResourceGroup + string resourceGroupName = StorageSyncManagementTestUtilities.CreateResourceGroup(resourcesClient); + + // Create RegisteredServer Name + string storageSyncServiceName = TestUtilities.GenerateName("sss-rslist"); + Guid serverGuid = TestUtilities.GenerateGuid(); + + var storageSyncServiceParameters = StorageSyncManagementTestUtilities.GetDefaultStorageSyncServiceParameters(); + var registeredServerParameters = StorageSyncManagementTestUtilities.GetDefaultRegisteredServerParameters(serverGuid); + + StorageSyncService storageSyncServiceResource = storageSyncManagementClient.StorageSyncServices.Create(resourceGroupName, storageSyncServiceName, storageSyncServiceParameters); + Assert.NotNull(storageSyncServiceResource); + StorageSyncManagementTestUtilities.VerifyStorageSyncServiceProperties(storageSyncServiceResource, true); + + RegisteredServer registeredServerResource = storageSyncManagementClient.RegisteredServers.Create(resourceGroupName, storageSyncServiceResource.Name, serverGuid.ToString(), registeredServerParameters); + Assert.NotNull(registeredServerResource); + StorageSyncManagementTestUtilities.VerifyRegisteredServerProperties(registeredServerResource, true); + + IEnumerable registeredServerResources = storageSyncManagementClient.RegisteredServers.ListByStorageSyncService(resourceGroupName, storageSyncServiceResource.Name); + Assert.True(1 <= registeredServerResources.Count()); + StorageSyncManagementTestUtilities.VerifyRegisteredServerProperties(registeredServerResources.Single(r => r.ServerId.Contains(serverGuid.ToString())), true); + + storageSyncManagementClient.RegisteredServers.Delete(resourceGroupName, storageSyncServiceResource.Name, serverGuid.ToString()); + storageSyncManagementClient.StorageSyncServices.Delete(resourceGroupName, storageSyncServiceResource.Name); + StorageSyncManagementTestUtilities.RemoveResourceGroup(resourcesClient, resourceGroupName); + } + } + + [Fact] + public void RegisteredServerDeleteTest() + { + var handler = new RecordedDelegatingHandler { StatusCodeToReturn = HttpStatusCode.OK }; + + using (MockContext context = MockContext.Start(this.GetType().FullName)) + { + IResourceManagementClient resourcesClient = StorageSyncManagementTestUtilities.GetResourceManagementClient(context, handler); + IStorageSyncManagementClient storageSyncManagementClient = StorageSyncManagementTestUtilities.GetStorageSyncManagementClient(context, handler); + + // Create ResourceGroup + string resourceGroupName = StorageSyncManagementTestUtilities.CreateResourceGroup(resourcesClient); + + // Create RegisteredServer Name + string storageSyncServiceName = TestUtilities.GenerateName("sss-rscreate"); + Guid serverGuid = TestUtilities.GenerateGuid(); + + var storageSyncServiceParameters = StorageSyncManagementTestUtilities.GetDefaultStorageSyncServiceParameters(); + var registeredServerParameters = StorageSyncManagementTestUtilities.GetDefaultRegisteredServerParameters(serverGuid); + + // Delete RegisteredServer when it does not exists + // storageSyncManagementClient.RegisteredServers.Delete(resourceGroupName, storageSyncServiceName, serverGuid.ToString()); + + StorageSyncService storageSyncServiceResource = storageSyncManagementClient.StorageSyncServices.Create(resourceGroupName, storageSyncServiceName, storageSyncServiceParameters); + Assert.NotNull(storageSyncServiceResource); + StorageSyncManagementTestUtilities.VerifyStorageSyncServiceProperties(storageSyncServiceResource, true); + + // TODO : Prepare a QFE to return 204 + try + { + // Delete RegisteredServer when it does not exists + storageSyncManagementClient.RegisteredServers.Delete(resourceGroupName, storageSyncServiceResource.Name, serverGuid.ToString()); + } + catch (CloudException e) + { + Assert.Equal("MgmtNotFound", e.Body.Code); + Assert.Equal($"Server '{serverGuid}' does not exist.", e.Body.Message); + } + + RegisteredServer registeredServerResource = storageSyncManagementClient.RegisteredServers.Create(resourceGroupName, storageSyncServiceResource.Name, serverGuid.ToString(), registeredServerParameters); + Assert.NotNull(registeredServerResource); + StorageSyncManagementTestUtilities.VerifyRegisteredServerProperties(registeredServerResource, true); + + storageSyncManagementClient.RegisteredServers.Delete(resourceGroupName, storageSyncServiceResource.Name, serverGuid.ToString()); + + // Delete RegisteredServer when it's been already deleted. + storageSyncManagementClient.RegisteredServers.Delete(resourceGroupName, storageSyncServiceResource.Name, serverGuid.ToString()); + storageSyncManagementClient.StorageSyncServices.Delete(resourceGroupName, storageSyncServiceResource.Name); + StorageSyncManagementTestUtilities.RemoveResourceGroup(resourcesClient, resourceGroupName); + } + } + } +} diff --git a/src/SDKs/StorageSync/StorageSync.Tests/Tests/ServerEndpointTests.cs b/src/SDKs/StorageSync/StorageSync.Tests/Tests/ServerEndpointTests.cs new file mode 100644 index 000000000000..02b0e73aa8cd --- /dev/null +++ b/src/SDKs/StorageSync/StorageSync.Tests/Tests/ServerEndpointTests.cs @@ -0,0 +1,120 @@ +using Microsoft.Azure.Management.ResourceManager; +using Microsoft.Azure.Management.Storage; +using Microsoft.Azure.Management.Storage.Models; +using Microsoft.Azure.Management.StorageSync.Models; +using Microsoft.Azure.Management.Tests.Common; +using Microsoft.Rest.ClientRuntime.Azure.TestFramework; +using System.Collections.Generic; +using System.Net; +using Xunit; +using System.Linq; +using System; + +namespace Microsoft.Azure.Management.StorageSync.Tests +{ + public class ServerEndpointTests + { + [Fact] + public void ServerEndpointAllOperationsTest() + { + var handler = new RecordedDelegatingHandler { StatusCodeToReturn = HttpStatusCode.OK }; + + using (MockContext context = MockContext.Start(this.GetType().FullName)) + { + IResourceManagementClient resourcesClient = StorageSyncManagementTestUtilities.GetResourceManagementClient(context, handler); + IStorageSyncManagementClient storageSyncManagementClient = StorageSyncManagementTestUtilities.GetStorageSyncManagementClient(context, handler); + + // Create ResourceGroup + string resourceGroupName = StorageSyncManagementTestUtilities.CreateResourceGroup(resourcesClient); + + // Create ServerEndpoint + string storageSyncServiceName = TestUtilities.GenerateName("sss-sepall"); + string syncGroupName = TestUtilities.GenerateName("sg-sepall"); + string resourceName = TestUtilities.GenerateName("sepall"); + + var storageSyncServiceParameters = StorageSyncManagementTestUtilities.GetDefaultStorageSyncServiceParameters(); + var syncGroupParameters = StorageSyncManagementTestUtilities.GetDefaultSyncGroupParameters(); + var cloudEndpointParameters = StorageSyncManagementTestUtilities.GetDefaultCloudEndpointParameters(); + + StorageSyncService storageSyncServiceResource = storageSyncManagementClient.StorageSyncServices.Create(resourceGroupName, storageSyncServiceName, storageSyncServiceParameters); + Assert.NotNull(storageSyncServiceResource); + StorageSyncManagementTestUtilities.VerifyStorageSyncServiceProperties(storageSyncServiceResource, true); + + SyncGroup syncGroupResource = storageSyncManagementClient.SyncGroups.Create(resourceGroupName, storageSyncServiceResource.Name, syncGroupName, syncGroupParameters); + Assert.NotNull(syncGroupResource); + StorageSyncManagementTestUtilities.VerifySyncGroupProperties(syncGroupResource, true); + + CloudEndpoint cloudEndpointResource = storageSyncManagementClient.CloudEndpoints.Create(resourceGroupName, storageSyncServiceResource.Name, syncGroupResource.Name, resourceName, cloudEndpointParameters); + Assert.NotNull(cloudEndpointResource); + StorageSyncManagementTestUtilities.VerifyCloudEndpointProperties(cloudEndpointResource, true); + + RegisteredServer registeredServerResource = EnsureRegisteredServerResource(storageSyncManagementClient, resourceGroupName, storageSyncServiceName, syncGroupName, storageSyncServiceResource); + Assert.NotNull(registeredServerResource); + + StorageSyncManagementTestUtilities.VerifyRegisteredServerProperties(registeredServerResource, true); + + var serverEndpointParameters = StorageSyncManagementTestUtilities.GetDefaultServerEndpointParameters(registeredServerResource.Id); + var serverEndpointUpdateParameters = StorageSyncManagementTestUtilities.GetDefaultServerEndpointUpdateParameters(); + + // Delete Test before it exists. + storageSyncManagementClient.ServerEndpoints.Delete(resourceGroupName, storageSyncServiceResource.Name, syncGroupResource.Name, resourceName); + + ServerEndpoint serverEndpointResource = storageSyncManagementClient.ServerEndpoints.Create(resourceGroupName, storageSyncServiceResource.Name, syncGroupResource.Name, resourceName, serverEndpointParameters); + Assert.NotNull(serverEndpointResource); + StorageSyncManagementTestUtilities.VerifyServerEndpointProperties(serverEndpointResource, true); + + // GET Test + serverEndpointResource = storageSyncManagementClient.ServerEndpoints.Get(resourceGroupName, storageSyncServiceResource.Name, syncGroupResource.Name, resourceName); + Assert.NotNull(serverEndpointResource); + StorageSyncManagementTestUtilities.VerifyServerEndpointProperties(serverEndpointResource, true); + + // List Test + IEnumerable serverEndpoints = storageSyncManagementClient.ServerEndpoints.ListBySyncGroup(resourceGroupName, storageSyncServiceResource.Name, syncGroupResource.Name); + Assert.Single(serverEndpoints); + Assert.NotNull(serverEndpoints.Single()); + StorageSyncManagementTestUtilities.VerifyServerEndpointProperties(serverEndpoints.Single(), true); + + // Recall Test + RecallActionParameters recallActionParameters = StorageSyncManagementTestUtilities.GetDefaultRecallActionParameters(); + ServerEndpointsRecallActionHeaders serverEndpointsRecallActionHeaders = storageSyncManagementClient.ServerEndpoints.RecallAction(resourceGroupName, storageSyncServiceResource.Name, syncGroupResource.Name, resourceName, recallActionParameters); + Assert.NotNull(serverEndpointsRecallActionHeaders); + Assert.NotEmpty(serverEndpointsRecallActionHeaders.XMsCorrelationRequestId); + Assert.NotEmpty(serverEndpointsRecallActionHeaders.XMsRequestId); + + // Update Test + serverEndpointResource = storageSyncManagementClient.ServerEndpoints.Update(resourceGroupName, storageSyncServiceResource.Name, syncGroupResource.Name, resourceName, serverEndpointUpdateParameters); + Assert.NotNull(serverEndpointResource); + StorageSyncManagementTestUtilities.VerifyServerEndpointUpdateProperties(serverEndpointResource, true); + + // Delete Test + storageSyncManagementClient.ServerEndpoints.Delete(resourceGroupName, storageSyncServiceResource.Name, syncGroupResource.Name, resourceName); + + storageSyncManagementClient.ServerEndpoints.Delete(resourceGroupName, storageSyncServiceResource.Name, syncGroupName, resourceName); + storageSyncManagementClient.CloudEndpoints.Delete(resourceGroupName, storageSyncServiceResource.Name, syncGroupName, resourceName); + storageSyncManagementClient.SyncGroups.Delete(resourceGroupName, storageSyncServiceResource.Name, syncGroupName); + storageSyncManagementClient.RegisteredServers.Delete(resourceGroupName, storageSyncServiceResource.Name, registeredServerResource.ServerId.Trim('"')); + storageSyncManagementClient.StorageSyncServices.Delete(resourceGroupName, storageSyncServiceResource.Name); + StorageSyncManagementTestUtilities.RemoveResourceGroup(resourcesClient, resourceGroupName); + } + } + + private RegisteredServer EnsureRegisteredServerResource(IStorageSyncManagementClient storageSyncManagementClient, string resourceGroupName, string storageSyncServiceName, string syncGroupName, StorageSyncService storageSyncServiceResource) + { + //Guid serverGuid = Guid.NewGuid(); + //var registeredServerParameters = StorageSyncManagementTestUtilities.GetDefaultRegisteredServerParameters(serverGuid); + //RegisteredServer registeredServerResource = storageSyncManagementClient.RegisteredServers.Create(resourceGroupName, storageSyncServiceResource.Name, serverGuid.ToString(), registeredServerParameters); + //Assert.NotNull(registeredServerResource); + //StorageSyncManagementTestUtilities.VerifyRegisteredServerProperties(registeredServerResource, true); + + string message = $"$ResourceGroupName = \"{resourceGroupName}\";" + Environment.NewLine + + $"$StorageSyncServiceName = \"{storageSyncServiceName}\";" + Environment.NewLine + + $"$SyncGroupName = \"{syncGroupName}\";"; + + // For Record : PLACE A BREAKPOINT HERE , REGISTER SERVER AND CONITNUE. + IEnumerable registeredServers = storageSyncManagementClient.RegisteredServers.ListByStorageSyncService(resourceGroupName, storageSyncServiceResource.Name); + Assert.Single(registeredServers); + + return registeredServers.Single(); + } + } +} diff --git a/src/SDKs/StorageSync/StorageSync.Tests/Tests/StorageSyncServiceTests.cs b/src/SDKs/StorageSync/StorageSync.Tests/Tests/StorageSyncServiceTests.cs new file mode 100644 index 000000000000..14923419f8b7 --- /dev/null +++ b/src/SDKs/StorageSync/StorageSync.Tests/Tests/StorageSyncServiceTests.cs @@ -0,0 +1,243 @@ +using Microsoft.Azure.Management.ResourceManager; +using Microsoft.Azure.Management.Storage; +using Microsoft.Azure.Management.Storage.Models; +using Microsoft.Azure.Management.StorageSync.Models; +using Microsoft.Azure.Management.Tests.Common; +using Microsoft.Rest.ClientRuntime.Azure.TestFramework; +using System.Collections.Generic; +using System.Net; +using Xunit; +using System.Linq; + +namespace Microsoft.Azure.Management.StorageSync.Tests +{ + public class StorageSyncServiceTests + { + [Fact] + public void StorageSyncServiceCreateTest() + { + var handler = new RecordedDelegatingHandler { StatusCodeToReturn = HttpStatusCode.OK }; + + using (MockContext context = MockContext.Start(this.GetType().FullName)) + { + IResourceManagementClient resourcesClient = StorageSyncManagementTestUtilities.GetResourceManagementClient(context, handler); + IStorageSyncManagementClient storageSyncManagementClient = StorageSyncManagementTestUtilities.GetStorageSyncManagementClient(context, handler); + + // Create ResourceGroup + string resourceGroupName = StorageSyncManagementTestUtilities.CreateResourceGroup(resourcesClient); + + // Create StorageSyncService Name + string resourceName = TestUtilities.GenerateName("ssscreate"); + + var parameters = StorageSyncManagementTestUtilities.GetDefaultStorageSyncServiceParameters(); + + StorageSyncService resource = storageSyncManagementClient.StorageSyncServices.Create(resourceGroupName, resourceName, parameters); + + StorageSyncManagementTestUtilities.VerifyStorageSyncServiceProperties(resource, true); + + storageSyncManagementClient.StorageSyncServices.Delete(resourceGroupName, resourceName); + + StorageSyncManagementTestUtilities.RemoveResourceGroup(resourcesClient, resourceGroupName); + } + } + + [Fact] + public void StorageSyncServiceUpdateTest() + { + var handler = new RecordedDelegatingHandler { StatusCodeToReturn = HttpStatusCode.OK }; + + using (MockContext context = MockContext.Start(this.GetType().FullName)) + { + IResourceManagementClient resourcesClient = StorageSyncManagementTestUtilities.GetResourceManagementClient(context, handler); + IStorageSyncManagementClient storageSyncManagementClient = StorageSyncManagementTestUtilities.GetStorageSyncManagementClient(context, handler); + + // Create ResourceGroup + string resourceGroupName = StorageSyncManagementTestUtilities.CreateResourceGroup(resourcesClient); + + // Create StorageSyncService Name + string resourceName = TestUtilities.GenerateName("ssscreate"); + + var parameters = StorageSyncManagementTestUtilities.GetDefaultStorageSyncServiceParameters(); + var updateParameters = StorageSyncManagementTestUtilities.GetDefaultStorageSyncServiceUpdateParameters(); + + StorageSyncService resource = storageSyncManagementClient.StorageSyncServices.Create(resourceGroupName, resourceName, parameters); + + StorageSyncManagementTestUtilities.VerifyStorageSyncServiceProperties(resource, true); + + resource = storageSyncManagementClient.StorageSyncServices.Update(resourceGroupName, resourceName, updateParameters); + + StorageSyncManagementTestUtilities.VerifyStorageSyncServiceProperties(resource, true); + + storageSyncManagementClient.StorageSyncServices.Delete(resourceGroupName, resourceName); + StorageSyncManagementTestUtilities.RemoveResourceGroup(resourcesClient, resourceGroupName); + } + } + [Fact] + public void StorageSyncServiceGetTest() + { + + var handler = new RecordedDelegatingHandler { StatusCodeToReturn = HttpStatusCode.OK }; + + using (MockContext context = MockContext.Start(this.GetType().FullName)) + { + IResourceManagementClient resourcesClient = StorageSyncManagementTestUtilities.GetResourceManagementClient(context, handler); + IStorageSyncManagementClient storageSyncManagementClient = StorageSyncManagementTestUtilities.GetStorageSyncManagementClient(context, handler); + + // Create ResourceGroup + string resourceGroupName = StorageSyncManagementTestUtilities.CreateResourceGroup(resourcesClient); + + // Create StorageSyncService Name + string resourceName = TestUtilities.GenerateName("sssget"); + + var parameters = StorageSyncManagementTestUtilities.GetDefaultStorageSyncServiceParameters(); + + StorageSyncService resource = storageSyncManagementClient.StorageSyncServices.Create(resourceGroupName, resourceName, parameters); + resource = storageSyncManagementClient.StorageSyncServices.Get(resourceGroupName, resourceName); + StorageSyncManagementTestUtilities.VerifyStorageSyncServiceProperties(resource, false); + + storageSyncManagementClient.StorageSyncServices.Delete(resourceGroupName, resourceName); + StorageSyncManagementTestUtilities.RemoveResourceGroup(resourcesClient, resourceGroupName); + } + } + + [Fact] + public void StorageSyncServiceListTest() + { + var handler = new RecordedDelegatingHandler { StatusCodeToReturn = HttpStatusCode.OK }; + + using (MockContext context = MockContext.Start(this.GetType().FullName)) + { + IResourceManagementClient resourcesClient = StorageSyncManagementTestUtilities.GetResourceManagementClient(context, handler); + IStorageSyncManagementClient storageSyncManagementClient = StorageSyncManagementTestUtilities.GetStorageSyncManagementClient(context, handler); + + // Create ResourceGroup + string resourceGroupName = StorageSyncManagementTestUtilities.CreateResourceGroup(resourcesClient); + + // Create StorageSyncService Name + string resourceName = TestUtilities.GenerateName("ssslist"); + + var parameters = StorageSyncManagementTestUtilities.GetDefaultStorageSyncServiceParameters(); + + StorageSyncService resource = storageSyncManagementClient.StorageSyncServices.Create(resourceGroupName, resourceName, parameters); + + IEnumerable resources = storageSyncManagementClient.StorageSyncServices.ListByResourceGroup(resourceGroupName); + + Assert.NotNull(resources); + Assert.Single(resources); + + StorageSyncManagementTestUtilities.VerifyStorageSyncServiceProperties(resources.First(), false); + + resources = storageSyncManagementClient.StorageSyncServices.ListBySubscription(); + + Assert.NotNull(resources); + + // Change the number if json has more results under this subscription. + Assert.True(1 <= resources.Count()); + + StorageSyncManagementTestUtilities.VerifyStorageSyncServiceProperties(resources.Single(r => r.Name == resourceName), false); + + storageSyncManagementClient.StorageSyncServices.Delete(resourceGroupName, resourceName); + + StorageSyncManagementTestUtilities.RemoveResourceGroup(resourcesClient, resourceGroupName); + } + } + + [Fact] + public void StorageSyncServiceDeleteTest() + { + var handler = new RecordedDelegatingHandler { StatusCodeToReturn = HttpStatusCode.OK }; + + using (MockContext context = MockContext.Start(this.GetType().FullName)) + { + IResourceManagementClient resourcesClient = StorageSyncManagementTestUtilities.GetResourceManagementClient(context, handler); + IStorageSyncManagementClient storageSyncManagementClient = StorageSyncManagementTestUtilities.GetStorageSyncManagementClient(context, handler); + + // Create ResourceGroup + string resourceGroupName = StorageSyncManagementTestUtilities.CreateResourceGroup(resourcesClient); + + // Create StorageSyncService Name + string resourceName = TestUtilities.GenerateName("sssdelete"); + + // Delete an account which does not exist + storageSyncManagementClient.StorageSyncServices.Delete(resourceGroupName, resourceName); + + var parameters = StorageSyncManagementTestUtilities.GetDefaultStorageSyncServiceParameters(); + + // Create StorageSyncService + StorageSyncService resource = storageSyncManagementClient.StorageSyncServices.Create(resourceGroupName, resourceName, parameters); + + // Delete StorageSyncService + storageSyncManagementClient.StorageSyncServices.Delete(resourceGroupName, resourceName); + + // Delete StorageSyncService which was just deleted + storageSyncManagementClient.StorageSyncServices.Delete(resourceGroupName, resourceName); + + StorageSyncManagementTestUtilities.RemoveResourceGroup(resourcesClient, resourceGroupName); + } + } + + [Fact] + public void StorageSyncServiceCheckNameAvailabilityTest() + { + var handler = new RecordedDelegatingHandler { StatusCodeToReturn = HttpStatusCode.OK }; + + using (MockContext context = MockContext.Start(this.GetType().FullName)) + { + IResourceManagementClient resourcesClient = StorageSyncManagementTestUtilities.GetResourceManagementClient(context, handler); + IStorageSyncManagementClient storageSyncManagementClient = StorageSyncManagementTestUtilities.GetStorageSyncManagementClient(context, handler); + + // Create ResourceGroup + string resourceGroupName = StorageSyncManagementTestUtilities.CreateResourceGroup(resourcesClient); + string locationName = StorageSyncManagementTestUtilities.DefaultLocation; + + // Create StorageSyncService Name + string resourceName = TestUtilities.GenerateName("ssscheckName"); + + // Check Name Availability which does not exists + Models.CheckNameAvailabilityResult checkNameAvailabilityResult = storageSyncManagementClient.StorageSyncServices.CheckNameAvailability(locationName, resourceName); + + Assert.True(checkNameAvailabilityResult.NameAvailable.HasValue); + Assert.True(checkNameAvailabilityResult.NameAvailable.Value); + + var parameters = StorageSyncManagementTestUtilities.GetDefaultStorageSyncServiceParameters(); + + // Create StorageSyncService + StorageSyncService resource = storageSyncManagementClient.StorageSyncServices.Create(resourceGroupName, resourceName, parameters); + + // Check Name Availability which does exists + checkNameAvailabilityResult = storageSyncManagementClient.StorageSyncServices.CheckNameAvailability(locationName, resourceName); + + Assert.True(checkNameAvailabilityResult.NameAvailable.HasValue); + Assert.False(checkNameAvailabilityResult.NameAvailable.Value); + + storageSyncManagementClient.StorageSyncServices.Delete(resourceGroupName, resourceName); + StorageSyncManagementTestUtilities.RemoveResourceGroup(resourcesClient, resourceGroupName); + } + } + + [Fact] + public void StorageSyncServiceBadRequestTest() + { + var handler = new RecordedDelegatingHandler { StatusCodeToReturn = HttpStatusCode.OK }; + + using (MockContext context = MockContext.Start(this.GetType().FullName)) + { + IResourceManagementClient resourcesClient = StorageSyncManagementTestUtilities.GetResourceManagementClient(context, handler); + IStorageSyncManagementClient storageSyncManagementClient = StorageSyncManagementTestUtilities.GetStorageSyncManagementClient(context, handler); + + // Create ResourceGroup + string resourceGroupName = StorageSyncManagementTestUtilities.CreateResourceGroup(resourcesClient); + + // Create StorageSyncService Name + string resourceName = TestUtilities.GenerateName("#$%badsss"); + + var parameters = StorageSyncManagementTestUtilities.GetDefaultStorageSyncServiceParameters(); + + // Try Create StorageSyncService + Assert.Throws(() => storageSyncManagementClient.StorageSyncServices.Create(resourceGroupName, resourceName, parameters)); + + StorageSyncManagementTestUtilities.RemoveResourceGroup(resourcesClient, resourceGroupName); + } + } + } +} diff --git a/src/SDKs/StorageSync/StorageSync.Tests/Tests/SyncGroupTests.cs b/src/SDKs/StorageSync/StorageSync.Tests/Tests/SyncGroupTests.cs new file mode 100644 index 000000000000..b2fb7b6ba72e --- /dev/null +++ b/src/SDKs/StorageSync/StorageSync.Tests/Tests/SyncGroupTests.cs @@ -0,0 +1,166 @@ +using Microsoft.Azure.Management.ResourceManager; +using Microsoft.Azure.Management.Storage; +using Microsoft.Azure.Management.Storage.Models; +using Microsoft.Azure.Management.StorageSync.Models; +using Microsoft.Azure.Management.Tests.Common; +using Microsoft.Rest.ClientRuntime.Azure.TestFramework; +using System.Collections.Generic; +using System.Net; +using Xunit; +using System.Linq; + +namespace Microsoft.Azure.Management.StorageSync.Tests +{ + public class SyncGroupTests + { + [Fact] + public void SyncGroupCreateTest() + { + var handler = new RecordedDelegatingHandler { StatusCodeToReturn = HttpStatusCode.OK }; + + using (MockContext context = MockContext.Start(this.GetType().FullName)) + { + IResourceManagementClient resourcesClient = StorageSyncManagementTestUtilities.GetResourceManagementClient(context, handler); + IStorageSyncManagementClient storageSyncManagementClient = StorageSyncManagementTestUtilities.GetStorageSyncManagementClient(context, handler); + + // Create ResourceGroup + string resourceGroupName = StorageSyncManagementTestUtilities.CreateResourceGroup(resourcesClient); + + // Create SyncGroup Name + string storageSyncServiceName = TestUtilities.GenerateName("ssscreate-sgcreate"); + string syncGroupName = TestUtilities.GenerateName("sgcreate"); + + var storageSyncServiceParameters = StorageSyncManagementTestUtilities.GetDefaultStorageSyncServiceParameters(); + var syncGroupParameters = StorageSyncManagementTestUtilities.GetDefaultSyncGroupParameters(); + + StorageSyncService storageSyncServiceResource = storageSyncManagementClient.StorageSyncServices.Create(resourceGroupName, storageSyncServiceName, storageSyncServiceParameters); + Assert.NotNull(storageSyncServiceResource); + StorageSyncManagementTestUtilities.VerifyStorageSyncServiceProperties(storageSyncServiceResource, true); + + SyncGroup syncGroupResource = storageSyncManagementClient.SyncGroups.Create(resourceGroupName, storageSyncServiceResource.Name, syncGroupName, syncGroupParameters); + + StorageSyncManagementTestUtilities.VerifySyncGroupProperties(syncGroupResource, true); + + storageSyncManagementClient.SyncGroups.Delete(resourceGroupName, storageSyncServiceResource.Name, syncGroupName); + storageSyncManagementClient.StorageSyncServices.Delete(resourceGroupName, storageSyncServiceResource.Name); + StorageSyncManagementTestUtilities.RemoveResourceGroup(resourcesClient, resourceGroupName); + } + } + + [Fact] + public void SyncGroupGetTest() + { + + var handler = new RecordedDelegatingHandler { StatusCodeToReturn = HttpStatusCode.OK }; + + using (MockContext context = MockContext.Start(this.GetType().FullName)) + { + IResourceManagementClient resourcesClient = StorageSyncManagementTestUtilities.GetResourceManagementClient(context, handler); + IStorageSyncManagementClient storageSyncManagementClient = StorageSyncManagementTestUtilities.GetStorageSyncManagementClient(context, handler); + + // Create ResourceGroup + string resourceGroupName = StorageSyncManagementTestUtilities.CreateResourceGroup(resourcesClient); + + // Create SyncGroup Name + string storageSyncServiceName = TestUtilities.GenerateName("ssscreate-sgget"); + string syncGroupName = TestUtilities.GenerateName("sgget"); + + var storageSyncServiceParameters = StorageSyncManagementTestUtilities.GetDefaultStorageSyncServiceParameters(); + var syncGroupParameters = StorageSyncManagementTestUtilities.GetDefaultSyncGroupParameters(); + + StorageSyncService storageSyncServiceResource = storageSyncManagementClient.StorageSyncServices.Create(resourceGroupName, storageSyncServiceName, storageSyncServiceParameters); + Assert.NotNull(storageSyncServiceResource); + StorageSyncManagementTestUtilities.VerifyStorageSyncServiceProperties(storageSyncServiceResource, true); + + SyncGroup syncGroupResource = storageSyncManagementClient.SyncGroups.Create(resourceGroupName, storageSyncServiceResource.Name, syncGroupName, syncGroupParameters); + syncGroupResource = storageSyncManagementClient.SyncGroups.Get(resourceGroupName, storageSyncServiceResource.Name, syncGroupName); + StorageSyncManagementTestUtilities.VerifySyncGroupProperties(syncGroupResource, false); + + storageSyncManagementClient.SyncGroups.Delete(resourceGroupName, storageSyncServiceResource.Name, syncGroupName); + storageSyncManagementClient.StorageSyncServices.Delete(resourceGroupName, storageSyncServiceResource.Name); + StorageSyncManagementTestUtilities.RemoveResourceGroup(resourcesClient, resourceGroupName); + } + } + + [Fact] + public void SyncGroupListTest() + { + var handler = new RecordedDelegatingHandler { StatusCodeToReturn = HttpStatusCode.OK }; + + using (MockContext context = MockContext.Start(this.GetType().FullName)) + { + IResourceManagementClient resourcesClient = StorageSyncManagementTestUtilities.GetResourceManagementClient(context, handler); + IStorageSyncManagementClient storageSyncManagementClient = StorageSyncManagementTestUtilities.GetStorageSyncManagementClient(context, handler); + + // Create ResourceGroup + string resourceGroupName = StorageSyncManagementTestUtilities.CreateResourceGroup(resourcesClient); + + // Create SyncGroup Name + string storageSyncServiceName = TestUtilities.GenerateName("ssscreate-sglist"); + string syncGroupName = TestUtilities.GenerateName("sglist"); + + var storageSyncServiceParameters = StorageSyncManagementTestUtilities.GetDefaultStorageSyncServiceParameters(); + var syncGroupParameters = StorageSyncManagementTestUtilities.GetDefaultSyncGroupParameters(); + + StorageSyncService storageSyncServiceResource = storageSyncManagementClient.StorageSyncServices.Create(resourceGroupName, storageSyncServiceName, storageSyncServiceParameters); + Assert.NotNull(storageSyncServiceResource); + StorageSyncManagementTestUtilities.VerifyStorageSyncServiceProperties(storageSyncServiceResource, true); + + SyncGroup syncGroupResource = storageSyncManagementClient.SyncGroups.Create(resourceGroupName, storageSyncServiceResource.Name, syncGroupName, syncGroupParameters); + + IEnumerable syncGroupResources = storageSyncManagementClient.SyncGroups.ListByStorageSyncService(resourceGroupName, storageSyncServiceResource.Name); + + Assert.NotNull(syncGroupResources); + Assert.Single(syncGroupResources); + + StorageSyncManagementTestUtilities.VerifySyncGroupProperties(syncGroupResources.First(), false); + + storageSyncManagementClient.SyncGroups.Delete(resourceGroupName, storageSyncServiceResource.Name, syncGroupName); + storageSyncManagementClient.StorageSyncServices.Delete(resourceGroupName, storageSyncServiceResource.Name); + StorageSyncManagementTestUtilities.RemoveResourceGroup(resourcesClient, resourceGroupName); + } + } + + [Fact] + public void SyncGroupDeleteTest() + { + var handler = new RecordedDelegatingHandler { StatusCodeToReturn = HttpStatusCode.OK }; + + using (MockContext context = MockContext.Start(this.GetType().FullName)) + { + IResourceManagementClient resourcesClient = StorageSyncManagementTestUtilities.GetResourceManagementClient(context, handler); + IStorageSyncManagementClient storageSyncManagementClient = StorageSyncManagementTestUtilities.GetStorageSyncManagementClient(context, handler); + + // Create ResourceGroup + string resourceGroupName = StorageSyncManagementTestUtilities.CreateResourceGroup(resourcesClient); + + // Create SyncGroup Name + string storageSyncServiceName = TestUtilities.GenerateName("sss-sgdelete"); + string syncGroupName = TestUtilities.GenerateName("sgdelete"); + + var storageSyncServiceParameters = StorageSyncManagementTestUtilities.GetDefaultStorageSyncServiceParameters(); + var syncGroupParameters = StorageSyncManagementTestUtilities.GetDefaultSyncGroupParameters(); + + StorageSyncService storageSyncServiceResource = storageSyncManagementClient.StorageSyncServices.Create(resourceGroupName, storageSyncServiceName, storageSyncServiceParameters); + Assert.NotNull(storageSyncServiceResource); + StorageSyncManagementTestUtilities.VerifyStorageSyncServiceProperties(storageSyncServiceResource, true); + + // Delete SyncGroup which does not exists + storageSyncManagementClient.SyncGroups.Delete(resourceGroupName, storageSyncServiceResource.Name, syncGroupName); + + SyncGroup syncGroupResource = storageSyncManagementClient.SyncGroups.Create(resourceGroupName, storageSyncServiceResource.Name, syncGroupName, syncGroupParameters); + + // Delete SyncGroup + storageSyncManagementClient.SyncGroups.Delete(resourceGroupName, storageSyncServiceResource.Name, syncGroupName); + + // Delete SyncGroup which was just deleted + storageSyncManagementClient.SyncGroups.Delete(resourceGroupName, storageSyncServiceResource.Name, syncGroupName); + + storageSyncManagementClient.SyncGroups.Delete(resourceGroupName, storageSyncServiceResource.Name, syncGroupName); + storageSyncManagementClient.StorageSyncServices.Delete(resourceGroupName, storageSyncServiceResource.Name); + StorageSyncManagementTestUtilities.RemoveResourceGroup(resourcesClient, resourceGroupName); + } + } + + } +} diff --git a/src/SDKs/StorageSync/StorageSync.sln b/src/SDKs/StorageSync/StorageSync.sln new file mode 100644 index 000000000000..22ebf7888321 --- /dev/null +++ b/src/SDKs/StorageSync/StorageSync.sln @@ -0,0 +1,31 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio 15 +VisualStudioVersion = 15.0.27703.2000 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.Azure.Management.StorageSync", "Management.StorageSync\Microsoft.Azure.Management.StorageSync.csproj", "{8C229545-FC4F-4813-B294-535BA99E09D9}" +EndProject +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "StorageSync.Tests", "StorageSync.Tests\StorageSync.Tests.csproj", "{0A343E3E-7D7E-4E9A-BD0D-1A58589FA773}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {8C229545-FC4F-4813-B294-535BA99E09D9}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {8C229545-FC4F-4813-B294-535BA99E09D9}.Debug|Any CPU.Build.0 = Debug|Any CPU + {8C229545-FC4F-4813-B294-535BA99E09D9}.Release|Any CPU.ActiveCfg = Release|Any CPU + {8C229545-FC4F-4813-B294-535BA99E09D9}.Release|Any CPU.Build.0 = Release|Any CPU + {0A343E3E-7D7E-4E9A-BD0D-1A58589FA773}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {0A343E3E-7D7E-4E9A-BD0D-1A58589FA773}.Debug|Any CPU.Build.0 = Debug|Any CPU + {0A343E3E-7D7E-4E9A-BD0D-1A58589FA773}.Release|Any CPU.ActiveCfg = Release|Any CPU + {0A343E3E-7D7E-4E9A-BD0D-1A58589FA773}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {45A49004-1EA1-44C0-B308-15DDF36241B4} + EndGlobalSection +EndGlobal diff --git a/src/SDKs/StorageSync/changelog.md b/src/SDKs/StorageSync/changelog.md new file mode 100644 index 000000000000..2f97417c4932 --- /dev/null +++ b/src/SDKs/StorageSync/changelog.md @@ -0,0 +1,5 @@ +## Microsoft.Azure.Management.StorageSync release notes + +### Changes in 2018-04-02 + +- First version containing provisioning and deprovisioning of StorageSyncService, SyncGroup, CloudEndpoint , RegisteredServer and ServerEndpoint. It includes Recall operation as well. \ No newline at end of file diff --git a/src/SDKs/_metadata/storagesync_resource-manager.txt b/src/SDKs/_metadata/storagesync_resource-manager.txt new file mode 100644 index 000000000000..f15e3cf20621 --- /dev/null +++ b/src/SDKs/_metadata/storagesync_resource-manager.txt @@ -0,0 +1,14 @@ +Installing AutoRest version: latest +AutoRest installed successfully. +Commencing code generation +Generating CSharp code +Executing AutoRest command +cmd.exe /c autorest.cmd https://github.com/Azure/azure-rest-api-specs/blob/master/specification/storagesync/resource-manager/readme.md --csharp --version=latest --reflect-api-versions --csharp-sdks-folder=H:\csharpsdk\azure-sdk-for-net\src\SDKs +2018-09-17 23:31:43 UTC +Azure-rest-api-specs repository information +GitHub fork: Azure +Branch: master +Commit: 03757d26912ec4e36205e2792a24f73bd3707786 +AutoRest information +Requested version: latest +Bootstrapper version: autorest@2.0.4283