From e29fb6e3790b225acc6c16a7121caf8654c998e9 Mon Sep 17 00:00:00 2001 From: Atanas Koralski Date: Mon, 24 Jun 2019 15:06:55 -0700 Subject: [PATCH] Add Gallery Application API --- .../src/Generated/ComputeManagementClient.cs | 12 + .../GalleryApplicationVersionsOperations.cs | 1187 ++++++++ ...ApplicationVersionsOperationsExtensions.cs | 419 +++ .../GalleryApplicationsOperations.cs | 1126 ++++++++ ...GalleryApplicationsOperationsExtensions.cs | 355 +++ .../src/Generated/IComputeManagementClient.cs | 10 + .../IGalleryApplicationVersionsOperations.cs | 260 ++ .../IGalleryApplicationsOperations.cs | 228 ++ .../Generated/Models/GalleryApplication.cs | 132 + .../Models/GalleryApplicationVersion.cs | 99 + ...leryApplicationVersionPublishingProfile.cs | 111 + .../GalleryArtifactPublishingProfileBase.cs | 85 +- .../GalleryImageVersionPublishingProfile.cs | 60 +- .../Generated/Models/UserArtifactSource.cs | 80 + .../SdkInfo_ComputeManagementClient.cs | 2 + .../tests/ScenarioTests/GalleryTests.cs | 236 ++ .../GalleryApplicationVersion_CRUD_Tests.json | 2387 +++++++++++++++++ .../GalleryApplication_CRUD_Tests.json | 872 ++++++ 18 files changed, 7586 insertions(+), 75 deletions(-) create mode 100644 sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/GalleryApplicationVersionsOperations.cs create mode 100644 sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/GalleryApplicationVersionsOperationsExtensions.cs create mode 100644 sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/GalleryApplicationsOperations.cs create mode 100644 sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/GalleryApplicationsOperationsExtensions.cs create mode 100644 sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/IGalleryApplicationVersionsOperations.cs create mode 100644 sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/IGalleryApplicationsOperations.cs create mode 100644 sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/GalleryApplication.cs create mode 100644 sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/GalleryApplicationVersion.cs create mode 100644 sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/GalleryApplicationVersionPublishingProfile.cs create mode 100644 sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/UserArtifactSource.cs create mode 100644 sdk/compute/Microsoft.Azure.Management.Compute/tests/SessionRecords/Compute.Tests.GalleryTests/GalleryApplicationVersion_CRUD_Tests.json create mode 100644 sdk/compute/Microsoft.Azure.Management.Compute/tests/SessionRecords/Compute.Tests.GalleryTests/GalleryApplication_CRUD_Tests.json diff --git a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/ComputeManagementClient.cs b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/ComputeManagementClient.cs index 00286b4a0c50..1638dad2e8f1 100644 --- a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/ComputeManagementClient.cs +++ b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/ComputeManagementClient.cs @@ -181,6 +181,16 @@ public partial class ComputeManagementClient : ServiceClient public virtual IGalleryImageVersionsOperations GalleryImageVersions { get; private set; } + /// + /// Gets the IGalleryApplicationsOperations. + /// + public virtual IGalleryApplicationsOperations GalleryApplications { get; private set; } + + /// + /// Gets the IGalleryApplicationVersionsOperations. + /// + public virtual IGalleryApplicationVersionsOperations GalleryApplicationVersions { get; private set; } + /// /// Gets the IContainerServicesOperations. /// @@ -449,6 +459,8 @@ private void Initialize() Galleries = new GalleriesOperations(this); GalleryImages = new GalleryImagesOperations(this); GalleryImageVersions = new GalleryImageVersionsOperations(this); + GalleryApplications = new GalleryApplicationsOperations(this); + GalleryApplicationVersions = new GalleryApplicationVersionsOperations(this); ContainerServices = new ContainerServicesOperations(this); BaseUri = new System.Uri("https://management.azure.com"); AcceptLanguage = "en-US"; diff --git a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/GalleryApplicationVersionsOperations.cs b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/GalleryApplicationVersionsOperations.cs new file mode 100644 index 000000000000..8d6405bd4767 --- /dev/null +++ b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/GalleryApplicationVersionsOperations.cs @@ -0,0 +1,1187 @@ +// +// 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.Compute +{ + 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; + + /// + /// GalleryApplicationVersionsOperations operations. + /// + internal partial class GalleryApplicationVersionsOperations : IServiceOperations, IGalleryApplicationVersionsOperations + { + /// + /// Initializes a new instance of the GalleryApplicationVersionsOperations class. + /// + /// + /// Reference to the service client. + /// + /// + /// Thrown when a required parameter is null + /// + internal GalleryApplicationVersionsOperations(ComputeManagementClient client) + { + if (client == null) + { + throw new System.ArgumentNullException("client"); + } + Client = client; + } + + /// + /// Gets a reference to the ComputeManagementClient + /// + public ComputeManagementClient Client { get; private set; } + + /// + /// Create or update a gallery Application Version. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the Shared Application Gallery in which the Application + /// Definition resides. + /// + /// + /// The name of the gallery Application Definition in which the Application + /// Version is to be created. + /// + /// + /// The name of the gallery Application Version to be created. Needs to follow + /// semantic version name pattern: The allowed characters are digit and period. + /// Digits must be within the range of a 32-bit integer. Format: + /// <MajorVersion>.<MinorVersion>.<Patch> + /// + /// + /// Parameters supplied to the create or update gallery Application Version + /// operation. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task> CreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string galleryName, string galleryApplicationName, string galleryApplicationVersionName, GalleryApplicationVersion galleryApplicationVersion, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send Request + AzureOperationResponse _response = await BeginCreateOrUpdateWithHttpMessagesAsync(resourceGroupName, galleryName, galleryApplicationName, galleryApplicationVersionName, galleryApplicationVersion, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPutOrPatchOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + + /// + /// Retrieves information about a gallery Application Version. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the Shared Application Gallery in which the Application + /// Definition resides. + /// + /// + /// The name of the gallery Application Definition in which the Application + /// Version resides. + /// + /// + /// The name of the gallery Application Version to be retrieved. + /// + /// + /// The expand expression to apply on the operation. Possible values include: + /// 'ReplicationStatus' + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation 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 galleryName, string galleryApplicationName, string galleryApplicationVersionName, string expand = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (galleryName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "galleryName"); + } + if (galleryApplicationName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "galleryApplicationName"); + } + if (galleryApplicationVersionName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "galleryApplicationVersionName"); + } + string apiVersion = "2019-03-01"; + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("galleryName", galleryName); + tracingParameters.Add("galleryApplicationName", galleryApplicationName); + tracingParameters.Add("galleryApplicationVersionName", galleryApplicationVersionName); + tracingParameters.Add("expand", expand); + tracingParameters.Add("apiVersion", apiVersion); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "Get", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/applications/{galleryApplicationName}/versions/{galleryApplicationVersionName}").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{galleryName}", System.Uri.EscapeDataString(galleryName)); + _url = _url.Replace("{galleryApplicationName}", System.Uri.EscapeDataString(galleryApplicationName)); + _url = _url.Replace("{galleryApplicationVersionName}", System.Uri.EscapeDataString(galleryApplicationVersionName)); + List _queryParameters = new List(); + if (expand != null) + { + _queryParameters.Add(string.Format("$expand={0}", System.Uri.EscapeDataString(expand))); + } + if (apiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Delete a gallery Application Version. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the Shared Application Gallery in which the Application + /// Definition resides. + /// + /// + /// The name of the gallery Application Definition in which the Application + /// Version resides. + /// + /// + /// The name of the gallery Application Version to be deleted. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task DeleteWithHttpMessagesAsync(string resourceGroupName, string galleryName, string galleryApplicationName, string galleryApplicationVersionName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send request + AzureOperationResponse _response = await BeginDeleteWithHttpMessagesAsync(resourceGroupName, galleryName, galleryApplicationName, galleryApplicationVersionName, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + + /// + /// List gallery Application Versions in a gallery Application Definition. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the Shared Application Gallery in which the Application + /// Definition resides. + /// + /// + /// The name of the Shared Application Gallery Application Definition from + /// which the Application Versions are to be listed. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation 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>> ListByGalleryApplicationWithHttpMessagesAsync(string resourceGroupName, string galleryName, string galleryApplicationName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (galleryName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "galleryName"); + } + if (galleryApplicationName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "galleryApplicationName"); + } + string apiVersion = "2019-03-01"; + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("galleryName", galleryName); + tracingParameters.Add("galleryApplicationName", galleryApplicationName); + tracingParameters.Add("apiVersion", apiVersion); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "ListByGalleryApplication", 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.Compute/galleries/{galleryName}/applications/{galleryApplicationName}/versions").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{galleryName}", System.Uri.EscapeDataString(galleryName)); + _url = _url.Replace("{galleryApplicationName}", System.Uri.EscapeDataString(galleryApplicationName)); + List _queryParameters = new List(); + if (apiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse>(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Create or update a gallery Application Version. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the Shared Application Gallery in which the Application + /// Definition resides. + /// + /// + /// The name of the gallery Application Definition in which the Application + /// Version is to be created. + /// + /// + /// The name of the gallery Application Version to be created. Needs to follow + /// semantic version name pattern: The allowed characters are digit and period. + /// Digits must be within the range of a 32-bit integer. Format: + /// <MajorVersion>.<MinorVersion>.<Patch> + /// + /// + /// Parameters supplied to the create or update gallery Application Version + /// 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> BeginCreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string galleryName, string galleryApplicationName, string galleryApplicationVersionName, GalleryApplicationVersion galleryApplicationVersion, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (galleryName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "galleryName"); + } + if (galleryApplicationName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "galleryApplicationName"); + } + if (galleryApplicationVersionName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "galleryApplicationVersionName"); + } + if (galleryApplicationVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "galleryApplicationVersion"); + } + if (galleryApplicationVersion != null) + { + galleryApplicationVersion.Validate(); + } + string apiVersion = "2019-03-01"; + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("galleryName", galleryName); + tracingParameters.Add("galleryApplicationName", galleryApplicationName); + tracingParameters.Add("galleryApplicationVersionName", galleryApplicationVersionName); + tracingParameters.Add("apiVersion", apiVersion); + tracingParameters.Add("galleryApplicationVersion", galleryApplicationVersion); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "BeginCreateOrUpdate", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/applications/{galleryApplicationName}/versions/{galleryApplicationVersionName}").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{galleryName}", System.Uri.EscapeDataString(galleryName)); + _url = _url.Replace("{galleryApplicationName}", System.Uri.EscapeDataString(galleryApplicationName)); + _url = _url.Replace("{galleryApplicationVersionName}", System.Uri.EscapeDataString(galleryApplicationVersionName)); + List _queryParameters = new List(); + if (apiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("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(galleryApplicationVersion != null) + { + _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(galleryApplicationVersion, Client.SerializationSettings); + _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); + _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); + } + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + // Deserialize Response + if ((int)_statusCode == 201) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + // Deserialize Response + if ((int)_statusCode == 202) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Delete a gallery Application Version. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the Shared Application Gallery in which the Application + /// Definition resides. + /// + /// + /// The name of the gallery Application Definition in which the Application + /// Version resides. + /// + /// + /// The name of the gallery Application Version to be deleted. + /// + /// + /// 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 galleryName, string galleryApplicationName, string galleryApplicationVersionName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (galleryName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "galleryName"); + } + if (galleryApplicationName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "galleryApplicationName"); + } + if (galleryApplicationVersionName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "galleryApplicationVersionName"); + } + string apiVersion = "2019-03-01"; + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("galleryName", galleryName); + tracingParameters.Add("galleryApplicationName", galleryApplicationName); + tracingParameters.Add("galleryApplicationVersionName", galleryApplicationVersionName); + tracingParameters.Add("apiVersion", apiVersion); + 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.Compute/galleries/{galleryName}/applications/{galleryApplicationName}/versions/{galleryApplicationVersionName}").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{galleryName}", System.Uri.EscapeDataString(galleryName)); + _url = _url.Replace("{galleryApplicationName}", System.Uri.EscapeDataString(galleryApplicationName)); + _url = _url.Replace("{galleryApplicationVersionName}", System.Uri.EscapeDataString(galleryApplicationVersionName)); + List _queryParameters = new List(); + if (apiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("DELETE"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200 && (int)_statusCode != 202 && (int)_statusCode != 204) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// List gallery Application Versions in a gallery Application Definition. + /// + /// + /// 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>> ListByGalleryApplicationNextWithHttpMessagesAsync(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, "ListByGalleryApplicationNext", tracingParameters); + } + // Construct URL + string _url = "{nextLink}"; + _url = _url.Replace("{nextLink}", nextPageLink); + List _queryParameters = new List(); + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse>(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + } +} diff --git a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/GalleryApplicationVersionsOperationsExtensions.cs b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/GalleryApplicationVersionsOperationsExtensions.cs new file mode 100644 index 000000000000..fa0b79fca35e --- /dev/null +++ b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/GalleryApplicationVersionsOperationsExtensions.cs @@ -0,0 +1,419 @@ +// +// 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.Compute +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using System.Threading; + using System.Threading.Tasks; + + /// + /// Extension methods for GalleryApplicationVersionsOperations. + /// + public static partial class GalleryApplicationVersionsOperationsExtensions + { + /// + /// Create or update a gallery Application Version. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the Shared Application Gallery in which the Application + /// Definition resides. + /// + /// + /// The name of the gallery Application Definition in which the Application + /// Version is to be created. + /// + /// + /// The name of the gallery Application Version to be created. Needs to follow + /// semantic version name pattern: The allowed characters are digit and period. + /// Digits must be within the range of a 32-bit integer. Format: + /// <MajorVersion>.<MinorVersion>.<Patch> + /// + /// + /// Parameters supplied to the create or update gallery Application Version + /// operation. + /// + public static GalleryApplicationVersion CreateOrUpdate(this IGalleryApplicationVersionsOperations operations, string resourceGroupName, string galleryName, string galleryApplicationName, string galleryApplicationVersionName, GalleryApplicationVersion galleryApplicationVersion) + { + return operations.CreateOrUpdateAsync(resourceGroupName, galleryName, galleryApplicationName, galleryApplicationVersionName, galleryApplicationVersion).GetAwaiter().GetResult(); + } + + /// + /// Create or update a gallery Application Version. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the Shared Application Gallery in which the Application + /// Definition resides. + /// + /// + /// The name of the gallery Application Definition in which the Application + /// Version is to be created. + /// + /// + /// The name of the gallery Application Version to be created. Needs to follow + /// semantic version name pattern: The allowed characters are digit and period. + /// Digits must be within the range of a 32-bit integer. Format: + /// <MajorVersion>.<MinorVersion>.<Patch> + /// + /// + /// Parameters supplied to the create or update gallery Application Version + /// operation. + /// + /// + /// The cancellation token. + /// + public static async Task CreateOrUpdateAsync(this IGalleryApplicationVersionsOperations operations, string resourceGroupName, string galleryName, string galleryApplicationName, string galleryApplicationVersionName, GalleryApplicationVersion galleryApplicationVersion, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.CreateOrUpdateWithHttpMessagesAsync(resourceGroupName, galleryName, galleryApplicationName, galleryApplicationVersionName, galleryApplicationVersion, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Retrieves information about a gallery Application Version. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the Shared Application Gallery in which the Application + /// Definition resides. + /// + /// + /// The name of the gallery Application Definition in which the Application + /// Version resides. + /// + /// + /// The name of the gallery Application Version to be retrieved. + /// + /// + /// The expand expression to apply on the operation. Possible values include: + /// 'ReplicationStatus' + /// + public static GalleryApplicationVersion Get(this IGalleryApplicationVersionsOperations operations, string resourceGroupName, string galleryName, string galleryApplicationName, string galleryApplicationVersionName, string expand = default(string)) + { + return operations.GetAsync(resourceGroupName, galleryName, galleryApplicationName, galleryApplicationVersionName, expand).GetAwaiter().GetResult(); + } + + /// + /// Retrieves information about a gallery Application Version. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the Shared Application Gallery in which the Application + /// Definition resides. + /// + /// + /// The name of the gallery Application Definition in which the Application + /// Version resides. + /// + /// + /// The name of the gallery Application Version to be retrieved. + /// + /// + /// The expand expression to apply on the operation. Possible values include: + /// 'ReplicationStatus' + /// + /// + /// The cancellation token. + /// + public static async Task GetAsync(this IGalleryApplicationVersionsOperations operations, string resourceGroupName, string galleryName, string galleryApplicationName, string galleryApplicationVersionName, string expand = default(string), CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.GetWithHttpMessagesAsync(resourceGroupName, galleryName, galleryApplicationName, galleryApplicationVersionName, expand, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Delete a gallery Application Version. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the Shared Application Gallery in which the Application + /// Definition resides. + /// + /// + /// The name of the gallery Application Definition in which the Application + /// Version resides. + /// + /// + /// The name of the gallery Application Version to be deleted. + /// + public static void Delete(this IGalleryApplicationVersionsOperations operations, string resourceGroupName, string galleryName, string galleryApplicationName, string galleryApplicationVersionName) + { + operations.DeleteAsync(resourceGroupName, galleryName, galleryApplicationName, galleryApplicationVersionName).GetAwaiter().GetResult(); + } + + /// + /// Delete a gallery Application Version. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the Shared Application Gallery in which the Application + /// Definition resides. + /// + /// + /// The name of the gallery Application Definition in which the Application + /// Version resides. + /// + /// + /// The name of the gallery Application Version to be deleted. + /// + /// + /// The cancellation token. + /// + public static async Task DeleteAsync(this IGalleryApplicationVersionsOperations operations, string resourceGroupName, string galleryName, string galleryApplicationName, string galleryApplicationVersionName, CancellationToken cancellationToken = default(CancellationToken)) + { + (await operations.DeleteWithHttpMessagesAsync(resourceGroupName, galleryName, galleryApplicationName, galleryApplicationVersionName, null, cancellationToken).ConfigureAwait(false)).Dispose(); + } + + /// + /// List gallery Application Versions in a gallery Application Definition. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the Shared Application Gallery in which the Application + /// Definition resides. + /// + /// + /// The name of the Shared Application Gallery Application Definition from + /// which the Application Versions are to be listed. + /// + public static IPage ListByGalleryApplication(this IGalleryApplicationVersionsOperations operations, string resourceGroupName, string galleryName, string galleryApplicationName) + { + return operations.ListByGalleryApplicationAsync(resourceGroupName, galleryName, galleryApplicationName).GetAwaiter().GetResult(); + } + + /// + /// List gallery Application Versions in a gallery Application Definition. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the Shared Application Gallery in which the Application + /// Definition resides. + /// + /// + /// The name of the Shared Application Gallery Application Definition from + /// which the Application Versions are to be listed. + /// + /// + /// The cancellation token. + /// + public static async Task> ListByGalleryApplicationAsync(this IGalleryApplicationVersionsOperations operations, string resourceGroupName, string galleryName, string galleryApplicationName, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListByGalleryApplicationWithHttpMessagesAsync(resourceGroupName, galleryName, galleryApplicationName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Create or update a gallery Application Version. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the Shared Application Gallery in which the Application + /// Definition resides. + /// + /// + /// The name of the gallery Application Definition in which the Application + /// Version is to be created. + /// + /// + /// The name of the gallery Application Version to be created. Needs to follow + /// semantic version name pattern: The allowed characters are digit and period. + /// Digits must be within the range of a 32-bit integer. Format: + /// <MajorVersion>.<MinorVersion>.<Patch> + /// + /// + /// Parameters supplied to the create or update gallery Application Version + /// operation. + /// + public static GalleryApplicationVersion BeginCreateOrUpdate(this IGalleryApplicationVersionsOperations operations, string resourceGroupName, string galleryName, string galleryApplicationName, string galleryApplicationVersionName, GalleryApplicationVersion galleryApplicationVersion) + { + return operations.BeginCreateOrUpdateAsync(resourceGroupName, galleryName, galleryApplicationName, galleryApplicationVersionName, galleryApplicationVersion).GetAwaiter().GetResult(); + } + + /// + /// Create or update a gallery Application Version. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the Shared Application Gallery in which the Application + /// Definition resides. + /// + /// + /// The name of the gallery Application Definition in which the Application + /// Version is to be created. + /// + /// + /// The name of the gallery Application Version to be created. Needs to follow + /// semantic version name pattern: The allowed characters are digit and period. + /// Digits must be within the range of a 32-bit integer. Format: + /// <MajorVersion>.<MinorVersion>.<Patch> + /// + /// + /// Parameters supplied to the create or update gallery Application Version + /// operation. + /// + /// + /// The cancellation token. + /// + public static async Task BeginCreateOrUpdateAsync(this IGalleryApplicationVersionsOperations operations, string resourceGroupName, string galleryName, string galleryApplicationName, string galleryApplicationVersionName, GalleryApplicationVersion galleryApplicationVersion, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.BeginCreateOrUpdateWithHttpMessagesAsync(resourceGroupName, galleryName, galleryApplicationName, galleryApplicationVersionName, galleryApplicationVersion, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Delete a gallery Application Version. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the Shared Application Gallery in which the Application + /// Definition resides. + /// + /// + /// The name of the gallery Application Definition in which the Application + /// Version resides. + /// + /// + /// The name of the gallery Application Version to be deleted. + /// + public static void BeginDelete(this IGalleryApplicationVersionsOperations operations, string resourceGroupName, string galleryName, string galleryApplicationName, string galleryApplicationVersionName) + { + operations.BeginDeleteAsync(resourceGroupName, galleryName, galleryApplicationName, galleryApplicationVersionName).GetAwaiter().GetResult(); + } + + /// + /// Delete a gallery Application Version. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the Shared Application Gallery in which the Application + /// Definition resides. + /// + /// + /// The name of the gallery Application Definition in which the Application + /// Version resides. + /// + /// + /// The name of the gallery Application Version to be deleted. + /// + /// + /// The cancellation token. + /// + public static async Task BeginDeleteAsync(this IGalleryApplicationVersionsOperations operations, string resourceGroupName, string galleryName, string galleryApplicationName, string galleryApplicationVersionName, CancellationToken cancellationToken = default(CancellationToken)) + { + (await operations.BeginDeleteWithHttpMessagesAsync(resourceGroupName, galleryName, galleryApplicationName, galleryApplicationVersionName, null, cancellationToken).ConfigureAwait(false)).Dispose(); + } + + /// + /// List gallery Application Versions in a gallery Application Definition. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + public static IPage ListByGalleryApplicationNext(this IGalleryApplicationVersionsOperations operations, string nextPageLink) + { + return operations.ListByGalleryApplicationNextAsync(nextPageLink).GetAwaiter().GetResult(); + } + + /// + /// List gallery Application Versions in a gallery Application Definition. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// The cancellation token. + /// + public static async Task> ListByGalleryApplicationNextAsync(this IGalleryApplicationVersionsOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListByGalleryApplicationNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + } +} diff --git a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/GalleryApplicationsOperations.cs b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/GalleryApplicationsOperations.cs new file mode 100644 index 000000000000..eb049adc389b --- /dev/null +++ b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/GalleryApplicationsOperations.cs @@ -0,0 +1,1126 @@ +// +// 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.Compute +{ + 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; + + /// + /// GalleryApplicationsOperations operations. + /// + internal partial class GalleryApplicationsOperations : IServiceOperations, IGalleryApplicationsOperations + { + /// + /// Initializes a new instance of the GalleryApplicationsOperations class. + /// + /// + /// Reference to the service client. + /// + /// + /// Thrown when a required parameter is null + /// + internal GalleryApplicationsOperations(ComputeManagementClient client) + { + if (client == null) + { + throw new System.ArgumentNullException("client"); + } + Client = client; + } + + /// + /// Gets a reference to the ComputeManagementClient + /// + public ComputeManagementClient Client { get; private set; } + + /// + /// Create or update a gallery Application Definition. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the Shared Application Gallery in which the Application + /// Definition is to be created. + /// + /// + /// The name of the gallery Application Definition to be created or updated. + /// The allowed characters are alphabets and numbers with dots, dashes, and + /// periods allowed in the middle. The maximum length is 80 characters. + /// + /// + /// Parameters supplied to the create or update gallery Application operation. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task> CreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string galleryName, string galleryApplicationName, GalleryApplication galleryApplication, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send Request + AzureOperationResponse _response = await BeginCreateOrUpdateWithHttpMessagesAsync(resourceGroupName, galleryName, galleryApplicationName, galleryApplication, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPutOrPatchOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + + /// + /// Retrieves information about a gallery Application Definition. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the Shared Application Gallery from which the Application + /// Definitions are to be retrieved. + /// + /// + /// The name of the gallery Application Definition to be retrieved. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation 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 galleryName, string galleryApplicationName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (galleryName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "galleryName"); + } + if (galleryApplicationName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "galleryApplicationName"); + } + string apiVersion = "2019-03-01"; + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("galleryName", galleryName); + tracingParameters.Add("galleryApplicationName", galleryApplicationName); + tracingParameters.Add("apiVersion", apiVersion); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "Get", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/applications/{galleryApplicationName}").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{galleryName}", System.Uri.EscapeDataString(galleryName)); + _url = _url.Replace("{galleryApplicationName}", System.Uri.EscapeDataString(galleryApplicationName)); + List _queryParameters = new List(); + if (apiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Delete a gallery Application. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the Shared Application Gallery in which the Application + /// Definition is to be deleted. + /// + /// + /// The name of the gallery Application Definition to be deleted. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task DeleteWithHttpMessagesAsync(string resourceGroupName, string galleryName, string galleryApplicationName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send request + AzureOperationResponse _response = await BeginDeleteWithHttpMessagesAsync(resourceGroupName, galleryName, galleryApplicationName, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + + /// + /// List gallery Application Definitions in a gallery. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the Shared Application Gallery from which Application + /// Definitions are to be listed. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation 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>> ListByGalleryWithHttpMessagesAsync(string resourceGroupName, string galleryName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (galleryName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "galleryName"); + } + string apiVersion = "2019-03-01"; + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("galleryName", galleryName); + tracingParameters.Add("apiVersion", apiVersion); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "ListByGallery", 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.Compute/galleries/{galleryName}/applications").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{galleryName}", System.Uri.EscapeDataString(galleryName)); + List _queryParameters = new List(); + if (apiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse>(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Create or update a gallery Application Definition. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the Shared Application Gallery in which the Application + /// Definition is to be created. + /// + /// + /// The name of the gallery Application Definition to be created or updated. + /// The allowed characters are alphabets and numbers with dots, dashes, and + /// periods allowed in the middle. The maximum length is 80 characters. + /// + /// + /// Parameters supplied to the create or update gallery Application 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> BeginCreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string galleryName, string galleryApplicationName, GalleryApplication galleryApplication, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (galleryName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "galleryName"); + } + if (galleryApplicationName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "galleryApplicationName"); + } + if (galleryApplication == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "galleryApplication"); + } + if (galleryApplication != null) + { + galleryApplication.Validate(); + } + string apiVersion = "2019-03-01"; + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("galleryName", galleryName); + tracingParameters.Add("galleryApplicationName", galleryApplicationName); + tracingParameters.Add("apiVersion", apiVersion); + tracingParameters.Add("galleryApplication", galleryApplication); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "BeginCreateOrUpdate", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/applications/{galleryApplicationName}").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{galleryName}", System.Uri.EscapeDataString(galleryName)); + _url = _url.Replace("{galleryApplicationName}", System.Uri.EscapeDataString(galleryApplicationName)); + List _queryParameters = new List(); + if (apiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("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(galleryApplication != null) + { + _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(galleryApplication, Client.SerializationSettings); + _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); + _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); + } + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + // Deserialize Response + if ((int)_statusCode == 201) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + // Deserialize Response + if ((int)_statusCode == 202) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Delete a gallery Application. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the Shared Application Gallery in which the Application + /// Definition is to be deleted. + /// + /// + /// The name of the gallery Application Definition to be deleted. + /// + /// + /// 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 galleryName, string galleryApplicationName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (galleryName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "galleryName"); + } + if (galleryApplicationName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "galleryApplicationName"); + } + string apiVersion = "2019-03-01"; + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("galleryName", galleryName); + tracingParameters.Add("galleryApplicationName", galleryApplicationName); + tracingParameters.Add("apiVersion", apiVersion); + 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.Compute/galleries/{galleryName}/applications/{galleryApplicationName}").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{galleryName}", System.Uri.EscapeDataString(galleryName)); + _url = _url.Replace("{galleryApplicationName}", System.Uri.EscapeDataString(galleryApplicationName)); + List _queryParameters = new List(); + if (apiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("DELETE"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200 && (int)_statusCode != 202 && (int)_statusCode != 204) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// List gallery Application Definitions in a gallery. + /// + /// + /// 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>> ListByGalleryNextWithHttpMessagesAsync(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, "ListByGalleryNext", tracingParameters); + } + // Construct URL + string _url = "{nextLink}"; + _url = _url.Replace("{nextLink}", nextPageLink); + List _queryParameters = new List(); + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse>(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + } +} diff --git a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/GalleryApplicationsOperationsExtensions.cs b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/GalleryApplicationsOperationsExtensions.cs new file mode 100644 index 000000000000..36dede5d5038 --- /dev/null +++ b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/GalleryApplicationsOperationsExtensions.cs @@ -0,0 +1,355 @@ +// +// 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.Compute +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using System.Threading; + using System.Threading.Tasks; + + /// + /// Extension methods for GalleryApplicationsOperations. + /// + public static partial class GalleryApplicationsOperationsExtensions + { + /// + /// Create or update a gallery Application Definition. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the Shared Application Gallery in which the Application + /// Definition is to be created. + /// + /// + /// The name of the gallery Application Definition to be created or updated. + /// The allowed characters are alphabets and numbers with dots, dashes, and + /// periods allowed in the middle. The maximum length is 80 characters. + /// + /// + /// Parameters supplied to the create or update gallery Application operation. + /// + public static GalleryApplication CreateOrUpdate(this IGalleryApplicationsOperations operations, string resourceGroupName, string galleryName, string galleryApplicationName, GalleryApplication galleryApplication) + { + return operations.CreateOrUpdateAsync(resourceGroupName, galleryName, galleryApplicationName, galleryApplication).GetAwaiter().GetResult(); + } + + /// + /// Create or update a gallery Application Definition. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the Shared Application Gallery in which the Application + /// Definition is to be created. + /// + /// + /// The name of the gallery Application Definition to be created or updated. + /// The allowed characters are alphabets and numbers with dots, dashes, and + /// periods allowed in the middle. The maximum length is 80 characters. + /// + /// + /// Parameters supplied to the create or update gallery Application operation. + /// + /// + /// The cancellation token. + /// + public static async Task CreateOrUpdateAsync(this IGalleryApplicationsOperations operations, string resourceGroupName, string galleryName, string galleryApplicationName, GalleryApplication galleryApplication, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.CreateOrUpdateWithHttpMessagesAsync(resourceGroupName, galleryName, galleryApplicationName, galleryApplication, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Retrieves information about a gallery Application Definition. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the Shared Application Gallery from which the Application + /// Definitions are to be retrieved. + /// + /// + /// The name of the gallery Application Definition to be retrieved. + /// + public static GalleryApplication Get(this IGalleryApplicationsOperations operations, string resourceGroupName, string galleryName, string galleryApplicationName) + { + return operations.GetAsync(resourceGroupName, galleryName, galleryApplicationName).GetAwaiter().GetResult(); + } + + /// + /// Retrieves information about a gallery Application Definition. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the Shared Application Gallery from which the Application + /// Definitions are to be retrieved. + /// + /// + /// The name of the gallery Application Definition to be retrieved. + /// + /// + /// The cancellation token. + /// + public static async Task GetAsync(this IGalleryApplicationsOperations operations, string resourceGroupName, string galleryName, string galleryApplicationName, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.GetWithHttpMessagesAsync(resourceGroupName, galleryName, galleryApplicationName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Delete a gallery Application. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the Shared Application Gallery in which the Application + /// Definition is to be deleted. + /// + /// + /// The name of the gallery Application Definition to be deleted. + /// + public static void Delete(this IGalleryApplicationsOperations operations, string resourceGroupName, string galleryName, string galleryApplicationName) + { + operations.DeleteAsync(resourceGroupName, galleryName, galleryApplicationName).GetAwaiter().GetResult(); + } + + /// + /// Delete a gallery Application. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the Shared Application Gallery in which the Application + /// Definition is to be deleted. + /// + /// + /// The name of the gallery Application Definition to be deleted. + /// + /// + /// The cancellation token. + /// + public static async Task DeleteAsync(this IGalleryApplicationsOperations operations, string resourceGroupName, string galleryName, string galleryApplicationName, CancellationToken cancellationToken = default(CancellationToken)) + { + (await operations.DeleteWithHttpMessagesAsync(resourceGroupName, galleryName, galleryApplicationName, null, cancellationToken).ConfigureAwait(false)).Dispose(); + } + + /// + /// List gallery Application Definitions in a gallery. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the Shared Application Gallery from which Application + /// Definitions are to be listed. + /// + public static IPage ListByGallery(this IGalleryApplicationsOperations operations, string resourceGroupName, string galleryName) + { + return operations.ListByGalleryAsync(resourceGroupName, galleryName).GetAwaiter().GetResult(); + } + + /// + /// List gallery Application Definitions in a gallery. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the Shared Application Gallery from which Application + /// Definitions are to be listed. + /// + /// + /// The cancellation token. + /// + public static async Task> ListByGalleryAsync(this IGalleryApplicationsOperations operations, string resourceGroupName, string galleryName, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListByGalleryWithHttpMessagesAsync(resourceGroupName, galleryName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Create or update a gallery Application Definition. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the Shared Application Gallery in which the Application + /// Definition is to be created. + /// + /// + /// The name of the gallery Application Definition to be created or updated. + /// The allowed characters are alphabets and numbers with dots, dashes, and + /// periods allowed in the middle. The maximum length is 80 characters. + /// + /// + /// Parameters supplied to the create or update gallery Application operation. + /// + public static GalleryApplication BeginCreateOrUpdate(this IGalleryApplicationsOperations operations, string resourceGroupName, string galleryName, string galleryApplicationName, GalleryApplication galleryApplication) + { + return operations.BeginCreateOrUpdateAsync(resourceGroupName, galleryName, galleryApplicationName, galleryApplication).GetAwaiter().GetResult(); + } + + /// + /// Create or update a gallery Application Definition. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the Shared Application Gallery in which the Application + /// Definition is to be created. + /// + /// + /// The name of the gallery Application Definition to be created or updated. + /// The allowed characters are alphabets and numbers with dots, dashes, and + /// periods allowed in the middle. The maximum length is 80 characters. + /// + /// + /// Parameters supplied to the create or update gallery Application operation. + /// + /// + /// The cancellation token. + /// + public static async Task BeginCreateOrUpdateAsync(this IGalleryApplicationsOperations operations, string resourceGroupName, string galleryName, string galleryApplicationName, GalleryApplication galleryApplication, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.BeginCreateOrUpdateWithHttpMessagesAsync(resourceGroupName, galleryName, galleryApplicationName, galleryApplication, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Delete a gallery Application. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the Shared Application Gallery in which the Application + /// Definition is to be deleted. + /// + /// + /// The name of the gallery Application Definition to be deleted. + /// + public static void BeginDelete(this IGalleryApplicationsOperations operations, string resourceGroupName, string galleryName, string galleryApplicationName) + { + operations.BeginDeleteAsync(resourceGroupName, galleryName, galleryApplicationName).GetAwaiter().GetResult(); + } + + /// + /// Delete a gallery Application. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the Shared Application Gallery in which the Application + /// Definition is to be deleted. + /// + /// + /// The name of the gallery Application Definition to be deleted. + /// + /// + /// The cancellation token. + /// + public static async Task BeginDeleteAsync(this IGalleryApplicationsOperations operations, string resourceGroupName, string galleryName, string galleryApplicationName, CancellationToken cancellationToken = default(CancellationToken)) + { + (await operations.BeginDeleteWithHttpMessagesAsync(resourceGroupName, galleryName, galleryApplicationName, null, cancellationToken).ConfigureAwait(false)).Dispose(); + } + + /// + /// List gallery Application Definitions in a gallery. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + public static IPage ListByGalleryNext(this IGalleryApplicationsOperations operations, string nextPageLink) + { + return operations.ListByGalleryNextAsync(nextPageLink).GetAwaiter().GetResult(); + } + + /// + /// List gallery Application Definitions in a gallery. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// The cancellation token. + /// + public static async Task> ListByGalleryNextAsync(this IGalleryApplicationsOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListByGalleryNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + } +} diff --git a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/IComputeManagementClient.cs b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/IComputeManagementClient.cs index 393489305f2d..b84b0d1dbb77 100644 --- a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/IComputeManagementClient.cs +++ b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/IComputeManagementClient.cs @@ -176,6 +176,16 @@ public partial interface IComputeManagementClient : System.IDisposable /// IGalleryImageVersionsOperations GalleryImageVersions { get; } + /// + /// Gets the IGalleryApplicationsOperations. + /// + IGalleryApplicationsOperations GalleryApplications { get; } + + /// + /// Gets the IGalleryApplicationVersionsOperations. + /// + IGalleryApplicationVersionsOperations GalleryApplicationVersions { get; } + /// /// Gets the IContainerServicesOperations. /// diff --git a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/IGalleryApplicationVersionsOperations.cs b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/IGalleryApplicationVersionsOperations.cs new file mode 100644 index 000000000000..a2bd11e11cb4 --- /dev/null +++ b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/IGalleryApplicationVersionsOperations.cs @@ -0,0 +1,260 @@ +// +// 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.Compute +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using System.Collections; + using System.Collections.Generic; + using System.Threading; + using System.Threading.Tasks; + + /// + /// GalleryApplicationVersionsOperations operations. + /// + public partial interface IGalleryApplicationVersionsOperations + { + /// + /// Create or update a gallery Application Version. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the Shared Application Gallery in which the Application + /// Definition resides. + /// + /// + /// The name of the gallery Application Definition in which the + /// Application Version is to be created. + /// + /// + /// The name of the gallery Application Version to be created. Needs to + /// follow semantic version name pattern: The allowed characters are + /// digit and period. Digits must be within the range of a 32-bit + /// integer. Format: + /// <MajorVersion>.<MinorVersion>.<Patch> + /// + /// + /// Parameters supplied to the create or update gallery Application + /// Version 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> CreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string galleryName, string galleryApplicationName, string galleryApplicationVersionName, GalleryApplicationVersion galleryApplicationVersion, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Retrieves information about a gallery Application Version. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the Shared Application Gallery in which the Application + /// Definition resides. + /// + /// + /// The name of the gallery Application Definition in which the + /// Application Version resides. + /// + /// + /// The name of the gallery Application Version to be retrieved. + /// + /// + /// The expand expression to apply on the operation. Possible values + /// include: 'ReplicationStatus' + /// + /// + /// 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 galleryName, string galleryApplicationName, string galleryApplicationVersionName, string expand = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Delete a gallery Application Version. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the Shared Application Gallery in which the Application + /// Definition resides. + /// + /// + /// The name of the gallery Application Definition in which the + /// Application Version resides. + /// + /// + /// The name of the gallery Application Version to be deleted. + /// + /// + /// 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 galleryName, string galleryApplicationName, string galleryApplicationVersionName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// List gallery Application Versions in a gallery Application + /// Definition. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the Shared Application Gallery in which the Application + /// Definition resides. + /// + /// + /// The name of the Shared Application Gallery Application Definition + /// from which the Application Versions are to be listed. + /// + /// + /// 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>> ListByGalleryApplicationWithHttpMessagesAsync(string resourceGroupName, string galleryName, string galleryApplicationName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Create or update a gallery Application Version. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the Shared Application Gallery in which the Application + /// Definition resides. + /// + /// + /// The name of the gallery Application Definition in which the + /// Application Version is to be created. + /// + /// + /// The name of the gallery Application Version to be created. Needs to + /// follow semantic version name pattern: The allowed characters are + /// digit and period. Digits must be within the range of a 32-bit + /// integer. Format: + /// <MajorVersion>.<MinorVersion>.<Patch> + /// + /// + /// Parameters supplied to the create or update gallery Application + /// Version 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> BeginCreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string galleryName, string galleryApplicationName, string galleryApplicationVersionName, GalleryApplicationVersion galleryApplicationVersion, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Delete a gallery Application Version. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the Shared Application Gallery in which the Application + /// Definition resides. + /// + /// + /// The name of the gallery Application Definition in which the + /// Application Version resides. + /// + /// + /// The name of the gallery Application Version to be deleted. + /// + /// + /// 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 galleryName, string galleryApplicationName, string galleryApplicationVersionName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// List gallery Application Versions in a gallery Application + /// Definition. + /// + /// + /// 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>> ListByGalleryApplicationNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + } +} diff --git a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/IGalleryApplicationsOperations.cs b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/IGalleryApplicationsOperations.cs new file mode 100644 index 000000000000..2aa406053c85 --- /dev/null +++ b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/IGalleryApplicationsOperations.cs @@ -0,0 +1,228 @@ +// +// 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.Compute +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using System.Collections; + using System.Collections.Generic; + using System.Threading; + using System.Threading.Tasks; + + /// + /// GalleryApplicationsOperations operations. + /// + public partial interface IGalleryApplicationsOperations + { + /// + /// Create or update a gallery Application Definition. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the Shared Application Gallery in which the Application + /// Definition is to be created. + /// + /// + /// The name of the gallery Application Definition to be created or + /// updated. The allowed characters are alphabets and numbers with + /// dots, dashes, and periods allowed in the middle. The maximum length + /// is 80 characters. + /// + /// + /// Parameters supplied to the create or update gallery Application + /// 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> CreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string galleryName, string galleryApplicationName, GalleryApplication galleryApplication, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Retrieves information about a gallery Application Definition. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the Shared Application Gallery from which the + /// Application Definitions are to be retrieved. + /// + /// + /// The name of the gallery Application Definition to be retrieved. + /// + /// + /// 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 galleryName, string galleryApplicationName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Delete a gallery Application. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the Shared Application Gallery in which the Application + /// Definition is to be deleted. + /// + /// + /// The name of the gallery Application Definition to be deleted. + /// + /// + /// 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 galleryName, string galleryApplicationName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// List gallery Application Definitions in a gallery. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the Shared Application Gallery from which Application + /// Definitions are to be listed. + /// + /// + /// 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>> ListByGalleryWithHttpMessagesAsync(string resourceGroupName, string galleryName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Create or update a gallery Application Definition. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the Shared Application Gallery in which the Application + /// Definition is to be created. + /// + /// + /// The name of the gallery Application Definition to be created or + /// updated. The allowed characters are alphabets and numbers with + /// dots, dashes, and periods allowed in the middle. The maximum length + /// is 80 characters. + /// + /// + /// Parameters supplied to the create or update gallery Application + /// 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> BeginCreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string galleryName, string galleryApplicationName, GalleryApplication galleryApplication, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Delete a gallery Application. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the Shared Application Gallery in which the Application + /// Definition is to be deleted. + /// + /// + /// The name of the gallery Application Definition to be deleted. + /// + /// + /// 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 galleryName, string galleryApplicationName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// List gallery Application Definitions in a gallery. + /// + /// + /// 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>> ListByGalleryNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + } +} diff --git a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/GalleryApplication.cs b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/GalleryApplication.cs new file mode 100644 index 000000000000..b491fe0fabb2 --- /dev/null +++ b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/GalleryApplication.cs @@ -0,0 +1,132 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Compute.Models +{ + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// Specifies information about the gallery Application Definition that you + /// want to create or update. + /// + [Rest.Serialization.JsonTransformation] + public partial class GalleryApplication : Resource + { + /// + /// Initializes a new instance of the GalleryApplication class. + /// + public GalleryApplication() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the GalleryApplication class. + /// + /// Resource location + /// This property allows you to specify + /// the supported type of the OS that application is built for. + /// <br><br> Possible values are: <br><br> + /// **Windows** <br><br> **Linux**. Possible values + /// include: 'Windows', 'Linux' + /// Resource Id + /// Resource name + /// Resource type + /// Resource tags + /// The description of this gallery + /// Application Definition resource. This property is + /// updatable. + /// The Eula agreement for the gallery Application + /// Definition. + /// The privacy statement + /// uri. + /// The release note uri. + /// The end of life date of the gallery + /// Application Definition. This property can be used for + /// decommissioning purposes. This property is updatable. + public GalleryApplication(string location, OperatingSystemTypes supportedOSType, string id = default(string), string name = default(string), string type = default(string), IDictionary tags = default(IDictionary), string description = default(string), string eula = default(string), string privacyStatementUri = default(string), string releaseNoteUri = default(string), System.DateTime? endOfLifeDate = default(System.DateTime?)) + : base(location, id, name, type, tags) + { + Description = description; + Eula = eula; + PrivacyStatementUri = privacyStatementUri; + ReleaseNoteUri = releaseNoteUri; + EndOfLifeDate = endOfLifeDate; + SupportedOSType = supportedOSType; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the description of this gallery Application Definition + /// resource. This property is updatable. + /// + [JsonProperty(PropertyName = "properties.description")] + public string Description { get; set; } + + /// + /// Gets or sets the Eula agreement for the gallery Application + /// Definition. + /// + [JsonProperty(PropertyName = "properties.eula")] + public string Eula { get; set; } + + /// + /// Gets or sets the privacy statement uri. + /// + [JsonProperty(PropertyName = "properties.privacyStatementUri")] + public string PrivacyStatementUri { get; set; } + + /// + /// Gets or sets the release note uri. + /// + [JsonProperty(PropertyName = "properties.releaseNoteUri")] + public string ReleaseNoteUri { get; set; } + + /// + /// Gets or sets the end of life date of the gallery Application + /// Definition. This property can be used for decommissioning purposes. + /// This property is updatable. + /// + [JsonProperty(PropertyName = "properties.endOfLifeDate")] + public System.DateTime? EndOfLifeDate { get; set; } + + /// + /// Gets or sets this property allows you to specify the supported type + /// of the OS that application is built for. + /// &lt;br&gt;&lt;br&gt; Possible values are: + /// &lt;br&gt;&lt;br&gt; **Windows** + /// &lt;br&gt;&lt;br&gt; **Linux**. Possible values + /// include: 'Windows', 'Linux' + /// + [JsonProperty(PropertyName = "properties.supportedOSType")] + public OperatingSystemTypes SupportedOSType { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public override void Validate() + { + base.Validate(); + } + } +} diff --git a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/GalleryApplicationVersion.cs b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/GalleryApplicationVersion.cs new file mode 100644 index 000000000000..b9d3829da951 --- /dev/null +++ b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/GalleryApplicationVersion.cs @@ -0,0 +1,99 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Compute.Models +{ + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// Specifies information about the gallery Application Version that you + /// want to create or update. + /// + [Rest.Serialization.JsonTransformation] + public partial class GalleryApplicationVersion : Resource + { + /// + /// Initializes a new instance of the GalleryApplicationVersion class. + /// + public GalleryApplicationVersion() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the GalleryApplicationVersion class. + /// + /// Resource location + /// Resource Id + /// Resource name + /// Resource type + /// Resource tags + /// The current state of the gallery + /// Application Version. + public GalleryApplicationVersion(string location, GalleryApplicationVersionPublishingProfile publishingProfile, string id = default(string), string name = default(string), string type = default(string), IDictionary tags = default(IDictionary), string provisioningState = default(string), ReplicationStatus replicationStatus = default(ReplicationStatus)) + : base(location, id, name, type, tags) + { + PublishingProfile = publishingProfile; + ProvisioningState = provisioningState; + ReplicationStatus = replicationStatus; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// + [JsonProperty(PropertyName = "properties.publishingProfile")] + public GalleryApplicationVersionPublishingProfile PublishingProfile { get; set; } + + /// + /// Gets the current state of the gallery Application Version. + /// + /// + /// The provisioning state, which only appears in the response. + /// Possible values include: 'Creating', 'Updating', 'Failed', + /// 'Succeeded', 'Deleting', 'Migrating' + /// + [JsonProperty(PropertyName = "properties.provisioningState")] + public string ProvisioningState { get; private set; } + + /// + /// + [JsonProperty(PropertyName = "properties.replicationStatus")] + public ReplicationStatus ReplicationStatus { get; private set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public override void Validate() + { + base.Validate(); + if (PublishingProfile == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "PublishingProfile"); + } + if (PublishingProfile != null) + { + PublishingProfile.Validate(); + } + } + } +} diff --git a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/GalleryApplicationVersionPublishingProfile.cs b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/GalleryApplicationVersionPublishingProfile.cs new file mode 100644 index 000000000000..722dd0409dfe --- /dev/null +++ b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/GalleryApplicationVersionPublishingProfile.cs @@ -0,0 +1,111 @@ +// +// 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.Compute.Models +{ + using Microsoft.Rest; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// The publishing profile of a gallery Image Version. + /// + public partial class GalleryApplicationVersionPublishingProfile : GalleryArtifactPublishingProfileBase + { + /// + /// Initializes a new instance of the + /// GalleryApplicationVersionPublishingProfile class. + /// + public GalleryApplicationVersionPublishingProfile() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the + /// GalleryApplicationVersionPublishingProfile class. + /// + /// The target regions where the Image + /// Version is going to be replicated to. This property is + /// updatable. + /// The number of replicas of the Image + /// Version to be created per region. This property would take effect + /// for a region when regionalReplicaCount is not specified. This + /// property is updatable. + /// If set to true, Virtual Machines + /// deployed from the latest version of the Image Definition won't use + /// this Image Version. + /// The timestamp for when the gallery + /// Image Version is published. + /// The end of life date of the gallery + /// Image Version. This property can be used for decommissioning + /// purposes. This property is updatable. + /// Specifies the storage account type + /// to be used to store the image. This property is not updatable. + /// Possible values include: 'Standard_LRS', 'Standard_ZRS' + /// Optional. May be used to help process + /// this file. The type of file contained in the source, e.g. zip, + /// json, etc. + /// Optional. Whether or not this + /// application reports health. + public GalleryApplicationVersionPublishingProfile(UserArtifactSource source, IList targetRegions = default(IList), int? replicaCount = default(int?), bool? excludeFromLatest = default(bool?), System.DateTime? publishedDate = default(System.DateTime?), System.DateTime? endOfLifeDate = default(System.DateTime?), string storageAccountType = default(string), string contentType = default(string), bool? enableHealthCheck = default(bool?)) + : base(targetRegions, replicaCount, excludeFromLatest, publishedDate, endOfLifeDate, storageAccountType) + { + Source = source; + ContentType = contentType; + EnableHealthCheck = enableHealthCheck; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// + [JsonProperty(PropertyName = "source")] + public UserArtifactSource Source { get; set; } + + /// + /// Gets or sets optional. May be used to help process this file. The + /// type of file contained in the source, e.g. zip, json, etc. + /// + [JsonProperty(PropertyName = "contentType")] + public string ContentType { get; set; } + + /// + /// Gets or sets optional. Whether or not this application reports + /// health. + /// + [JsonProperty(PropertyName = "enableHealthCheck")] + public bool? EnableHealthCheck { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (Source == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "Source"); + } + if (Source != null) + { + Source.Validate(); + } + } + } +} diff --git a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/GalleryArtifactPublishingProfileBase.cs b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/GalleryArtifactPublishingProfileBase.cs index fd259663234c..34815cef6ac2 100644 --- a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/GalleryArtifactPublishingProfileBase.cs +++ b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/GalleryArtifactPublishingProfileBase.cs @@ -10,7 +10,6 @@ namespace Microsoft.Azure.Management.Compute.Models { - using Microsoft.Rest; using Newtonsoft.Json; using System.Collections; using System.Collections.Generic; @@ -37,10 +36,29 @@ public GalleryArtifactPublishingProfileBase() /// The target regions where the Image /// Version is going to be replicated to. This property is /// updatable. - public GalleryArtifactPublishingProfileBase(GalleryArtifactSource source, IList targetRegions = default(IList)) + /// The number of replicas of the Image + /// Version to be created per region. This property would take effect + /// for a region when regionalReplicaCount is not specified. This + /// property is updatable. + /// If set to true, Virtual Machines + /// deployed from the latest version of the Image Definition won't use + /// this Image Version. + /// The timestamp for when the gallery + /// Image Version is published. + /// The end of life date of the gallery + /// Image Version. This property can be used for decommissioning + /// purposes. This property is updatable. + /// Specifies the storage account type + /// to be used to store the image. This property is not updatable. + /// Possible values include: 'Standard_LRS', 'Standard_ZRS' + public GalleryArtifactPublishingProfileBase(IList targetRegions = default(IList), int? replicaCount = default(int?), bool? excludeFromLatest = default(bool?), System.DateTime? publishedDate = default(System.DateTime?), System.DateTime? endOfLifeDate = default(System.DateTime?), string storageAccountType = default(string)) { TargetRegions = targetRegions; - Source = source; + ReplicaCount = replicaCount; + ExcludeFromLatest = excludeFromLatest; + PublishedDate = publishedDate; + EndOfLifeDate = endOfLifeDate; + StorageAccountType = storageAccountType; CustomInit(); } @@ -57,36 +75,43 @@ public GalleryArtifactPublishingProfileBase() public IList TargetRegions { get; set; } /// + /// Gets or sets the number of replicas of the Image Version to be + /// created per region. This property would take effect for a region + /// when regionalReplicaCount is not specified. This property is + /// updatable. /// - [JsonProperty(PropertyName = "source")] - public GalleryArtifactSource Source { get; set; } + [JsonProperty(PropertyName = "replicaCount")] + public int? ReplicaCount { get; set; } /// - /// Validate the object. + /// Gets or sets if set to true, Virtual Machines deployed from the + /// latest version of the Image Definition won't use this Image + /// Version. /// - /// - /// Thrown if validation fails - /// - public virtual void Validate() - { - if (Source == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Source"); - } - if (TargetRegions != null) - { - foreach (var element in TargetRegions) - { - if (element != null) - { - element.Validate(); - } - } - } - if (Source != null) - { - Source.Validate(); - } - } + [JsonProperty(PropertyName = "excludeFromLatest")] + public bool? ExcludeFromLatest { get; set; } + + /// + /// Gets the timestamp for when the gallery Image Version is published. + /// + [JsonProperty(PropertyName = "publishedDate")] + public System.DateTime? PublishedDate { get; private set; } + + /// + /// Gets or sets the end of life date of the gallery Image Version. + /// This property can be used for decommissioning purposes. This + /// property is updatable. + /// + [JsonProperty(PropertyName = "endOfLifeDate")] + public System.DateTime? EndOfLifeDate { get; set; } + + /// + /// Gets or sets specifies the storage account type to be used to store + /// the image. This property is not updatable. Possible values include: + /// 'Standard_LRS', 'Standard_ZRS' + /// + [JsonProperty(PropertyName = "storageAccountType")] + public string StorageAccountType { get; set; } + } } diff --git a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/GalleryImageVersionPublishingProfile.cs b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/GalleryImageVersionPublishingProfile.cs index 4fd577dc36da..4a4d6ce64866 100644 --- a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/GalleryImageVersionPublishingProfile.cs +++ b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/GalleryImageVersionPublishingProfile.cs @@ -10,6 +10,7 @@ namespace Microsoft.Azure.Management.Compute.Models { + using Microsoft.Rest; using Newtonsoft.Json; using System.Collections; using System.Collections.Generic; @@ -52,13 +53,9 @@ public GalleryImageVersionPublishingProfile() /// to be used to store the image. This property is not updatable. /// Possible values include: 'Standard_LRS', 'Standard_ZRS' public GalleryImageVersionPublishingProfile(GalleryArtifactSource source, IList targetRegions = default(IList), int? replicaCount = default(int?), bool? excludeFromLatest = default(bool?), System.DateTime? publishedDate = default(System.DateTime?), System.DateTime? endOfLifeDate = default(System.DateTime?), string storageAccountType = default(string)) - : base(source, targetRegions) + : base(targetRegions, replicaCount, excludeFromLatest, publishedDate, endOfLifeDate, storageAccountType) { - ReplicaCount = replicaCount; - ExcludeFromLatest = excludeFromLatest; - PublishedDate = publishedDate; - EndOfLifeDate = endOfLifeDate; - StorageAccountType = storageAccountType; + Source = source; CustomInit(); } @@ -68,53 +65,26 @@ public GalleryImageVersionPublishingProfile() partial void CustomInit(); /// - /// Gets or sets the number of replicas of the Image Version to be - /// created per region. This property would take effect for a region - /// when regionalReplicaCount is not specified. This property is - /// updatable. /// - [JsonProperty(PropertyName = "replicaCount")] - public int? ReplicaCount { get; set; } - - /// - /// Gets or sets if set to true, Virtual Machines deployed from the - /// latest version of the Image Definition won't use this Image - /// Version. - /// - [JsonProperty(PropertyName = "excludeFromLatest")] - public bool? ExcludeFromLatest { get; set; } - - /// - /// Gets the timestamp for when the gallery Image Version is published. - /// - [JsonProperty(PropertyName = "publishedDate")] - public System.DateTime? PublishedDate { get; private set; } - - /// - /// Gets or sets the end of life date of the gallery Image Version. - /// This property can be used for decommissioning purposes. This - /// property is updatable. - /// - [JsonProperty(PropertyName = "endOfLifeDate")] - public System.DateTime? EndOfLifeDate { get; set; } - - /// - /// Gets or sets specifies the storage account type to be used to store - /// the image. This property is not updatable. Possible values include: - /// 'Standard_LRS', 'Standard_ZRS' - /// - [JsonProperty(PropertyName = "storageAccountType")] - public string StorageAccountType { get; set; } + [JsonProperty(PropertyName = "source")] + public GalleryArtifactSource Source { get; set; } /// /// Validate the object. /// - /// + /// /// Thrown if validation fails /// - public override void Validate() + public virtual void Validate() { - base.Validate(); + if (Source == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "Source"); + } + if (Source != null) + { + Source.Validate(); + } } } } diff --git a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/UserArtifactSource.cs b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/UserArtifactSource.cs new file mode 100644 index 000000000000..a37d1ec81227 --- /dev/null +++ b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/UserArtifactSource.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.Compute.Models +{ + using Microsoft.Rest; + using Newtonsoft.Json; + using System.Linq; + + /// + /// The source image from which the Image Version is going to be created. + /// + public partial class UserArtifactSource + { + /// + /// Initializes a new instance of the UserArtifactSource class. + /// + public UserArtifactSource() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the UserArtifactSource class. + /// + /// Required. The fileName of the + /// artifact. + /// Required. The mediaLink of the artifact, + /// must be a readable storage blob. + public UserArtifactSource(string fileName, string mediaLink) + { + FileName = fileName; + MediaLink = mediaLink; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets required. The fileName of the artifact. + /// + [JsonProperty(PropertyName = "fileName")] + public string FileName { get; set; } + + /// + /// Gets or sets required. The mediaLink of the artifact, must be a + /// readable storage blob. + /// + [JsonProperty(PropertyName = "mediaLink")] + public string MediaLink { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (FileName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "FileName"); + } + if (MediaLink == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "MediaLink"); + } + } + } +} diff --git a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/SdkInfo_ComputeManagementClient.cs b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/SdkInfo_ComputeManagementClient.cs index 59285c0f7a3c..14bf1e9d17d8 100644 --- a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/SdkInfo_ComputeManagementClient.cs +++ b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/SdkInfo_ComputeManagementClient.cs @@ -22,6 +22,8 @@ public static IEnumerable> ApiInfo_ComputeManageme new Tuple("Compute", "AvailabilitySets", "2019-03-01"), new Tuple("Compute", "Disks", "2018-09-30"), new Tuple("Compute", "Galleries", "2019-03-01"), + new Tuple("Compute", "GalleryApplicationVersions", "2019-03-01"), + new Tuple("Compute", "GalleryApplications", "2019-03-01"), new Tuple("Compute", "GalleryImageVersions", "2019-03-01"), new Tuple("Compute", "GalleryImages", "2019-03-01"), new Tuple("Compute", "Images", "2019-03-01"), diff --git a/sdk/compute/Microsoft.Azure.Management.Compute/tests/ScenarioTests/GalleryTests.cs b/sdk/compute/Microsoft.Azure.Management.Compute/tests/ScenarioTests/GalleryTests.cs index 295ad6d63ed8..c0a7d712b9f3 100644 --- a/sdk/compute/Microsoft.Azure.Management.Compute/tests/ScenarioTests/GalleryTests.cs +++ b/sdk/compute/Microsoft.Azure.Management.Compute/tests/ScenarioTests/GalleryTests.cs @@ -5,13 +5,18 @@ using System.Collections.Generic; using System.Diagnostics; using System.Linq; +using System.Text; using Microsoft.Azure.Management.Compute; using Microsoft.Azure.Management.Compute.Models; using Microsoft.Azure.Management.ResourceManager; using Microsoft.Azure.Management.ResourceManager.Models; using Microsoft.Azure.Management.Storage.Models; +using Microsoft.Azure.Test.HttpRecorder; using Microsoft.Rest.Azure; using Microsoft.Rest.ClientRuntime.Azure.TestFramework; +using Microsoft.WindowsAzure.Storage; +using Microsoft.WindowsAzure.Storage.Auth; +using Microsoft.WindowsAzure.Storage.Blob; using Xunit; namespace Compute.Tests @@ -21,6 +26,7 @@ public class GalleryTests : VMTestBase protected const string ResourceGroupPrefix = "galleryPsTestRg"; protected const string GalleryNamePrefix = "galleryPsTestGallery"; protected const string GalleryImageNamePrefix = "galleryPsTestGalleryImage"; + protected const string GalleryApplicationNamePrefix = "galleryPsTestGalleryApplication"; private string galleryHomeLocation = "eastus2euap"; [Fact] @@ -216,6 +222,126 @@ public void GalleryImageVersion_CRUD_Tests() } } + [Fact] + public void GalleryApplication_CRUD_Tests() + { + using (MockContext context = MockContext.Start(this.GetType().FullName)) + { + string location = ComputeManagementTestUtilities.DefaultLocation; + EnsureClientsInitialized(context); + string rgName = ComputeManagementTestUtilities.GenerateName(ResourceGroupPrefix); + + m_ResourcesClient.ResourceGroups.CreateOrUpdate(rgName, new ResourceGroup { Location = location }); + Trace.TraceInformation("Created the resource group: " + rgName); + string galleryName = ComputeManagementTestUtilities.GenerateName(GalleryNamePrefix); + Gallery gallery = GetTestInputGallery(); + gallery.Location = location; + m_CrpClient.Galleries.CreateOrUpdate(rgName, galleryName, gallery); + Trace.TraceInformation(string.Format("Created the gallery: {0} in resource group: {1}", galleryName, rgName)); + + string galleryApplicationName = ComputeManagementTestUtilities.GenerateName(GalleryApplicationNamePrefix); + GalleryApplication inputGalleryApplication = GetTestInputGalleryApplication(); + m_CrpClient.GalleryApplications.CreateOrUpdate(rgName, galleryName, galleryApplicationName, inputGalleryApplication); + Trace.TraceInformation(string.Format("Created the gallery application: {0} in gallery: {1}", galleryApplicationName, + galleryName)); + + GalleryApplication galleryApplicationFromGet = m_CrpClient.GalleryApplications.Get(rgName, galleryName, galleryApplicationName); + Assert.NotNull(galleryApplicationFromGet); + ValidateGalleryApplication(inputGalleryApplication, galleryApplicationFromGet); + + inputGalleryApplication.Description = "Updated description."; + m_CrpClient.GalleryApplications.CreateOrUpdate(rgName, galleryName, galleryApplicationName, inputGalleryApplication); + Trace.TraceInformation(string.Format("Updated the gallery application: {0} in gallery: {1}", galleryApplicationName, + galleryName)); + galleryApplicationFromGet = m_CrpClient.GalleryApplications.Get(rgName, galleryName, galleryApplicationName); + Assert.NotNull(galleryApplicationFromGet); + ValidateGalleryApplication(inputGalleryApplication, galleryApplicationFromGet); + + m_CrpClient.GalleryApplications.Delete(rgName, galleryName, galleryApplicationName); + + Trace.TraceInformation(string.Format("Deleted the gallery application: {0} in gallery: {1}", galleryApplicationName, + galleryName)); + + m_CrpClient.Galleries.Delete(rgName, galleryName); + } + } + + [Fact] + public void GalleryApplicationVersion_CRUD_Tests() + { + string originalTestLocation = Environment.GetEnvironmentVariable("AZURE_VM_TEST_LOCATION"); + using (MockContext context = MockContext.Start(this.GetType().FullName)) + { + string location = ComputeManagementTestUtilities.DefaultLocation; + Environment.SetEnvironmentVariable("AZURE_VM_TEST_LOCATION", location); + EnsureClientsInitialized(context); + string rgName = ComputeManagementTestUtilities.GenerateName(ResourceGroupPrefix); + string applicationName = ComputeManagementTestUtilities.GenerateName("psTestSourceApplication"); + + try + { + string applicationMediaLink = CreateApplicationMediaLink(rgName, "test.txt"); + + Assert.False(string.IsNullOrEmpty(applicationMediaLink)); + Trace.TraceInformation(string.Format("Created the source application media link: {0}", applicationMediaLink)); + + string galleryName = ComputeManagementTestUtilities.GenerateName(GalleryNamePrefix); + Gallery gallery = GetTestInputGallery(); + gallery.Location = location; + m_CrpClient.Galleries.CreateOrUpdate(rgName, galleryName, gallery); + Trace.TraceInformation(string.Format("Created the gallery: {0} in resource group: {1}", galleryName, + rgName)); + string galleryApplicationName = ComputeManagementTestUtilities.GenerateName(GalleryApplicationNamePrefix); + GalleryApplication inputGalleryApplication = GetTestInputGalleryApplication(); + m_CrpClient.GalleryApplications.CreateOrUpdate(rgName, galleryName, galleryApplicationName, inputGalleryApplication); + Trace.TraceInformation(string.Format("Created the gallery application: {0} in gallery: {1}", galleryApplicationName, + galleryName)); + + string galleryApplicationVersionName = "1.0.0"; + GalleryApplicationVersion inputApplicationVersion = GetTestInputGalleryApplicationVersion(applicationMediaLink); + m_CrpClient.GalleryApplicationVersions.CreateOrUpdate(rgName, galleryName, galleryApplicationName, + galleryApplicationVersionName, inputApplicationVersion); + Trace.TraceInformation(string.Format("Created the gallery application version: {0} in gallery application: {1}", + galleryApplicationVersionName, galleryApplicationName)); + + GalleryApplicationVersion applicationVersionFromGet = m_CrpClient.GalleryApplicationVersions.Get(rgName, + galleryName, galleryApplicationName, galleryApplicationVersionName); + Assert.NotNull(applicationVersionFromGet); + ValidateGalleryApplicationVersion(inputApplicationVersion, applicationVersionFromGet); + applicationVersionFromGet = m_CrpClient.GalleryApplicationVersions.Get(rgName, galleryName, galleryApplicationName, + galleryApplicationVersionName, ReplicationStatusTypes.ReplicationStatus); + Assert.Equal(StorageAccountType.StandardLRS, applicationVersionFromGet.PublishingProfile.StorageAccountType); + Assert.Equal(StorageAccountType.StandardLRS, + applicationVersionFromGet.PublishingProfile.TargetRegions.First().StorageAccountType); + Assert.NotNull(applicationVersionFromGet.ReplicationStatus); + Assert.NotNull(applicationVersionFromGet.ReplicationStatus.Summary); + + inputApplicationVersion.PublishingProfile.EndOfLifeDate = DateTime.Now.AddDays(100).Date; + m_CrpClient.GalleryApplicationVersions.CreateOrUpdate(rgName, galleryName, galleryApplicationName, + galleryApplicationVersionName, inputApplicationVersion); + Trace.TraceInformation(string.Format("Updated the gallery application version: {0} in gallery application: {1}", + galleryApplicationVersionName, galleryApplicationName)); + applicationVersionFromGet = m_CrpClient.GalleryApplicationVersions.Get(rgName, galleryName, + galleryApplicationName, galleryApplicationVersionName); + Assert.NotNull(applicationVersionFromGet); + ValidateGalleryApplicationVersion(inputApplicationVersion, applicationVersionFromGet); + + m_CrpClient.GalleryApplicationVersions.Delete(rgName, galleryName, galleryApplicationName, galleryApplicationVersionName); + Trace.TraceInformation(string.Format("Deleted the gallery application version: {0} in gallery application: {1}", + galleryApplicationVersionName, galleryApplicationName)); + + m_CrpClient.GalleryApplications.Delete(rgName, galleryName, galleryApplicationName); + Trace.TraceInformation("Deleted the gallery application."); + m_CrpClient.Galleries.Delete(rgName, galleryName); + Trace.TraceInformation("Deleted the gallery."); + } + finally + { + Environment.SetEnvironmentVariable("AZURE_VM_TEST_LOCATION", originalTestLocation); + } + } + } + private void ValidateGallery(Gallery galleryIn, Gallery galleryOut) { Assert.False(string.IsNullOrEmpty(galleryOut.ProvisioningState)); @@ -361,5 +487,115 @@ private VirtualMachine CreateCRPImage(string rgName, string imageName, ref strin sourceImageId = getImage.Id; return createdVM; } + + private string CreateApplicationMediaLink(string rgName, string fileName) + { + string storageAccountName = ComputeManagementTestUtilities.GenerateName("saforgallery"); + string asName = ComputeManagementTestUtilities.GenerateName("asforgallery"); + StorageAccount storageAccountOutput = CreateStorageAccount(rgName, storageAccountName); // resource group is also created in this method. + string applicationMediaLink = @"https://saforgallery1969.blob.core.windows.net/sascontainer/test.txt\"; + if (HttpMockServer.Mode == HttpRecorderMode.Record) + { + var accountKeyResult = m_SrpClient.StorageAccounts.ListKeysWithHttpMessagesAsync(rgName, storageAccountName).Result; + CloudStorageAccount storageAccount = new CloudStorageAccount(new StorageCredentials(storageAccountName, accountKeyResult.Body.Key1), useHttps: true); + + var blobClient = storageAccount.CreateCloudBlobClient(); + CloudBlobContainer container = blobClient.GetContainerReference("sascontainer"); + bool created = container.CreateIfNotExistsAsync().Result; + + CloudPageBlob pageBlob = container.GetPageBlobReference(fileName); + byte[] blobContent = Encoding.UTF8.GetBytes("Application Package Test"); + byte[] bytes = new byte[512]; // Page blob must be multiple of 512 + System.Buffer.BlockCopy(blobContent, 0, bytes, 0, blobContent.Length); + pageBlob.UploadFromByteArrayAsync(bytes, 0, bytes.Length).RunSynchronously(); + + SharedAccessBlobPolicy sasConstraints = new SharedAccessBlobPolicy(); + sasConstraints.SharedAccessStartTime = DateTime.UtcNow.AddDays(-1); + sasConstraints.SharedAccessExpiryTime = DateTime.UtcNow.AddDays(2); + sasConstraints.Permissions = SharedAccessBlobPermissions.Read | SharedAccessBlobPermissions.Write; + + //Generate the shared access signature on the blob, setting the constraints directly on the signature. + string sasContainerToken = pageBlob.GetSharedAccessSignature(sasConstraints); + + //Return the URI string for the container, including the SAS token. + applicationMediaLink = pageBlob.Uri + sasContainerToken; + } + return applicationMediaLink; + } + + private GalleryApplication GetTestInputGalleryApplication() + { + return new GalleryApplication + { + Eula = "This is the gallery application EULA.", + Location = ComputeManagementTestUtilities.DefaultLocation, + SupportedOSType = OperatingSystemTypes.Windows, + PrivacyStatementUri = "www.privacystatement.com", + ReleaseNoteUri = "www.releasenote.com", + Description = "This is the gallery application description.", + }; + } + + private GalleryApplicationVersion GetTestInputGalleryApplicationVersion(string applicationMediaLink) + { + return new GalleryApplicationVersion + { + Location = ComputeManagementTestUtilities.DefaultLocation, + PublishingProfile = new GalleryApplicationVersionPublishingProfile + { + Source = new UserArtifactSource + { + FileName = "test.zip", + MediaLink = applicationMediaLink + }, + ReplicaCount = 1, + StorageAccountType = StorageAccountType.StandardLRS, + TargetRegions = new List { + new TargetRegion { Name = ComputeManagementTestUtilities.DefaultLocation, RegionalReplicaCount = 1, StorageAccountType = StorageAccountType.StandardLRS } + }, + EndOfLifeDate = DateTime.Today.AddDays(10).Date + } + }; + } + + private void ValidateGalleryApplication(GalleryApplication applicationIn, GalleryApplication applicationOut) + { + if (applicationIn.Tags != null) + { + foreach (KeyValuePair kvp in applicationIn.Tags) + { + Assert.Equal(kvp.Value, applicationOut.Tags[kvp.Key]); + } + } + Assert.Equal(applicationIn.Eula, applicationOut.Eula); + Assert.Equal(applicationIn.PrivacyStatementUri, applicationOut.PrivacyStatementUri); + Assert.Equal(applicationIn.ReleaseNoteUri, applicationOut.ReleaseNoteUri); + Assert.Equal(applicationIn.Location.ToLower(), applicationOut.Location.ToLower()); + Assert.Equal(applicationIn.SupportedOSType, applicationOut.SupportedOSType); + if (!string.IsNullOrEmpty(applicationIn.Description)) + { + Assert.Equal(applicationIn.Description, applicationOut.Description); + } + } + + private void ValidateGalleryApplicationVersion(GalleryApplicationVersion applicationVersionIn, GalleryApplicationVersion applicationVersionOut) + { + Assert.False(string.IsNullOrEmpty(applicationVersionOut.ProvisioningState)); + + if (applicationVersionIn.Tags != null) + { + foreach (KeyValuePair kvp in applicationVersionIn.Tags) + { + Assert.Equal(kvp.Value, applicationVersionOut.Tags[kvp.Key]); + } + } + + Assert.Equal(applicationVersionIn.Location.ToLower(), applicationVersionOut.Location.ToLower()); + Assert.False(string.IsNullOrEmpty(applicationVersionOut.PublishingProfile.Source.MediaLink), + "applicationVersionOut.PublishingProfile.Source.MediaLink is null or empty."); + Assert.NotNull(applicationVersionOut.PublishingProfile.EndOfLifeDate); + Assert.NotNull(applicationVersionOut.PublishingProfile.PublishedDate); + Assert.NotNull(applicationVersionOut.Id); + } } } diff --git a/sdk/compute/Microsoft.Azure.Management.Compute/tests/SessionRecords/Compute.Tests.GalleryTests/GalleryApplicationVersion_CRUD_Tests.json b/sdk/compute/Microsoft.Azure.Management.Compute/tests/SessionRecords/Compute.Tests.GalleryTests/GalleryApplicationVersion_CRUD_Tests.json new file mode 100644 index 000000000000..eb66f13e4b17 --- /dev/null +++ b/sdk/compute/Microsoft.Azure.Management.Compute/tests/SessionRecords/Compute.Tests.GalleryTests/GalleryApplicationVersion_CRUD_Tests.json @@ -0,0 +1,2387 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/01523d7c-60da-455e-adef-521b547922c4/resourcegroups/galleryPsTestRg98?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDE1MjNkN2MtNjBkYS00NTVlLWFkZWYtNTIxYjU0NzkyMmM0L3Jlc291cmNlZ3JvdXBzL2dhbGxlcnlQc1Rlc3RSZzk4P2FwaS12ZXJzaW9uPTIwMTctMDUtMTA=", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"location\": \"SoutheastAsia\",\r\n \"tags\": {\r\n \"galleryPsTestRg98\": \"2019-06-21 17:11:10Z\"\r\n }\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "103" + ], + "x-ms-client-request-id": [ + "fc3ba0e0-dc31-4222-8b2f-e2e4791f751b" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.8.3801.0", + "OSName/Windows10Enterprise", + "OSVersion/6.3.18362", + "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/01523d7c-60da-455e-adef-521b547922c4/resourceGroups/galleryPsTestRg98\",\r\n \"name\": \"galleryPsTestRg98\",\r\n \"location\": \"southeastasia\",\r\n \"tags\": {\r\n \"galleryPsTestRg98\": \"2019-06-21 17:11:10Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "246" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1199" + ], + "x-ms-request-id": [ + "e327c4e5-5bf8-4547-b937-a4bdaa239c40" + ], + "x-ms-correlation-request-id": [ + "e327c4e5-5bf8-4547-b937-a4bdaa239c40" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190621T171113Z:e327c4e5-5bf8-4547-b937-a4bdaa239c40" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 21 Jun 2019 17:11:13 GMT" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/01523d7c-60da-455e-adef-521b547922c4/resourceGroups/galleryPsTestRg98/providers/Microsoft.Storage/storageAccounts/saforgallery1969?api-version=2015-06-15", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDE1MjNkN2MtNjBkYS00NTVlLWFkZWYtNTIxYjU0NzkyMmM0L3Jlc291cmNlR3JvdXBzL2dhbGxlcnlQc1Rlc3RSZzk4L3Byb3ZpZGVycy9NaWNyb3NvZnQuU3RvcmFnZS9zdG9yYWdlQWNjb3VudHMvc2Fmb3JnYWxsZXJ5MTk2OT9hcGktdmVyc2lvbj0yMDE1LTA2LTE1", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"location\": \"SoutheastAsia\",\r\n \"properties\": {\r\n \"accountType\": \"Standard_GRS\"\r\n }\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "95" + ], + "x-ms-client-request-id": [ + "c9964c76-134e-485b-b643-c22a74dba3e5" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.8.3801.0", + "OSName/Windows10Enterprise", + "OSVersion/6.3.18362", + "Microsoft.Azure.Management.Storage.StorageManagementClient/4.0.0.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Content-Length": [ + "0" + ], + "Content-Type": [ + "text/plain; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "17" + ], + "x-ms-request-id": [ + "2bb19e29-dc90-44b2-87c5-2ad9ca46ea19" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1199" + ], + "x-ms-correlation-request-id": [ + "e5e005ba-ebc4-412d-bc7d-616524339d2a" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190621T171118Z:e5e005ba-ebc4-412d-bc7d-616524339d2a" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 21 Jun 2019 17:11:18 GMT" + ], + "Location": [ + "https://management.azure.com/subscriptions/01523d7c-60da-455e-adef-521b547922c4/providers/Microsoft.Storage/locations/southeastasia/asyncoperations/2bb19e29-dc90-44b2-87c5-2ad9ca46ea19?monitor=true&api-version=2015-06-15" + ], + "Server": [ + "Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/01523d7c-60da-455e-adef-521b547922c4/providers/Microsoft.Storage/locations/southeastasia/asyncoperations/2bb19e29-dc90-44b2-87c5-2ad9ca46ea19?monitor=true&api-version=2015-06-15", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDE1MjNkN2MtNjBkYS00NTVlLWFkZWYtNTIxYjU0NzkyMmM0L3Byb3ZpZGVycy9NaWNyb3NvZnQuU3RvcmFnZS9sb2NhdGlvbnMvc291dGhlYXN0YXNpYS9hc3luY29wZXJhdGlvbnMvMmJiMTllMjktZGM5MC00NGIyLTg3YzUtMmFkOWNhNDZlYTE5P21vbml0b3I9dHJ1ZSZhcGktdmVyc2lvbj0yMDE1LTA2LTE1", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.8.3801.0", + "OSName/Windows10Enterprise", + "OSVersion/6.3.18362", + "Microsoft.Azure.Management.Storage.StorageManagementClient/4.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"location\": \"SoutheastAsia\",\r\n \"properties\": {\r\n \"accountType\": \"Standard_GRS\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "95" + ], + "Content-Type": [ + "application/json" + ], + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "d6d6645c-45ed-42a3-8f38-e4c59ea55b9b" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11999" + ], + "x-ms-correlation-request-id": [ + "b150a931-2dd0-4ac3-8f00-13bd5f68f1f6" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190621T171135Z:b150a931-2dd0-4ac3-8f00-13bd5f68f1f6" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 21 Jun 2019 17:11:34 GMT" + ], + "Server": [ + "Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/01523d7c-60da-455e-adef-521b547922c4/resourceGroups/galleryPsTestRg98/providers/Microsoft.Storage/storageAccounts?api-version=2015-06-15", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDE1MjNkN2MtNjBkYS00NTVlLWFkZWYtNTIxYjU0NzkyMmM0L3Jlc291cmNlR3JvdXBzL2dhbGxlcnlQc1Rlc3RSZzk4L3Byb3ZpZGVycy9NaWNyb3NvZnQuU3RvcmFnZS9zdG9yYWdlQWNjb3VudHM/YXBpLXZlcnNpb249MjAxNS0wNi0xNQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "4070bd25-1ace-4632-aea5-3a6e1e86776e" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.8.3801.0", + "OSName/Windows10Enterprise", + "OSVersion/6.3.18362", + "Microsoft.Azure.Management.Storage.StorageManagementClient/4.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/01523d7c-60da-455e-adef-521b547922c4/resourceGroups/galleryPsTestRg98/providers/Microsoft.Storage/storageAccounts/saforgallery1969\",\r\n \"name\": \"saforgallery1969\",\r\n \"type\": \"Microsoft.Storage/storageAccounts\",\r\n \"location\": \"southeastasia\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"accountType\": \"Standard_GRS\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"creationTime\": \"2019-06-21T17:11:17.4132575Z\",\r\n \"primaryEndpoints\": {\r\n \"blob\": \"https://saforgallery1969.blob.core.windows.net/\",\r\n \"queue\": \"https://saforgallery1969.queue.core.windows.net/\",\r\n \"table\": \"https://saforgallery1969.table.core.windows.net/\",\r\n \"file\": \"https://saforgallery1969.file.core.windows.net/\"\r\n },\r\n \"primaryLocation\": \"southeastasia\",\r\n \"statusOfPrimary\": \"available\",\r\n \"secondaryLocation\": \"eastasia\",\r\n \"statusOfSecondary\": \"available\"\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "774" + ], + "Content-Type": [ + "application/json" + ], + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "36a5ce2a-7886-4abc-8991-8a09562055cc" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11998" + ], + "x-ms-correlation-request-id": [ + "385898bf-2aee-4c06-808e-c56be6dc052c" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190621T171146Z:385898bf-2aee-4c06-808e-c56be6dc052c" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 21 Jun 2019 17:11:46 GMT" + ], + "Server": [ + "Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/01523d7c-60da-455e-adef-521b547922c4/resourceGroups/galleryPsTestRg98/providers/Microsoft.Storage/storageAccounts/saforgallery1969?api-version=2015-06-15", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDE1MjNkN2MtNjBkYS00NTVlLWFkZWYtNTIxYjU0NzkyMmM0L3Jlc291cmNlR3JvdXBzL2dhbGxlcnlQc1Rlc3RSZzk4L3Byb3ZpZGVycy9NaWNyb3NvZnQuU3RvcmFnZS9zdG9yYWdlQWNjb3VudHMvc2Fmb3JnYWxsZXJ5MTk2OT9hcGktdmVyc2lvbj0yMDE1LTA2LTE1", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "7f939bd1-63af-4de3-ac3b-31df12340aba" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.8.3801.0", + "OSName/Windows10Enterprise", + "OSVersion/6.3.18362", + "Microsoft.Azure.Management.Storage.StorageManagementClient/4.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/01523d7c-60da-455e-adef-521b547922c4/resourceGroups/galleryPsTestRg98/providers/Microsoft.Storage/storageAccounts/saforgallery1969\",\r\n \"name\": \"saforgallery1969\",\r\n \"type\": \"Microsoft.Storage/storageAccounts\",\r\n \"location\": \"southeastasia\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"accountType\": \"Standard_GRS\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"creationTime\": \"2019-06-21T17:11:17.4132575Z\",\r\n \"primaryEndpoints\": {\r\n \"blob\": \"https://saforgallery1969.blob.core.windows.net/\",\r\n \"queue\": \"https://saforgallery1969.queue.core.windows.net/\",\r\n \"table\": \"https://saforgallery1969.table.core.windows.net/\",\r\n \"file\": \"https://saforgallery1969.file.core.windows.net/\"\r\n },\r\n \"primaryLocation\": \"southeastasia\",\r\n \"statusOfPrimary\": \"available\",\r\n \"secondaryLocation\": \"eastasia\",\r\n \"statusOfSecondary\": \"available\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "762" + ], + "Content-Type": [ + "application/json" + ], + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "7591c3d9-e359-492d-ab6e-7d7da89cb073" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11997" + ], + "x-ms-correlation-request-id": [ + "b6d3d7a3-7002-4adf-898d-1468d90decff" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190621T171146Z:b6d3d7a3-7002-4adf-898d-1468d90decff" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 21 Jun 2019 17:11:46 GMT" + ], + "Server": [ + "Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/01523d7c-60da-455e-adef-521b547922c4/resourceGroups/galleryPsTestRg98/providers/Microsoft.Storage/storageAccounts/saforgallery1969/listKeys?api-version=2015-06-15", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDE1MjNkN2MtNjBkYS00NTVlLWFkZWYtNTIxYjU0NzkyMmM0L3Jlc291cmNlR3JvdXBzL2dhbGxlcnlQc1Rlc3RSZzk4L3Byb3ZpZGVycy9NaWNyb3NvZnQuU3RvcmFnZS9zdG9yYWdlQWNjb3VudHMvc2Fmb3JnYWxsZXJ5MTk2OS9saXN0S2V5cz9hcGktdmVyc2lvbj0yMDE1LTA2LTE1", + "RequestMethod": "POST", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "b22defa5-a2c7-447a-be3f-428b949ed546" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.8.3801.0", + "OSName/Windows10Enterprise", + "OSVersion/6.3.18362", + "Microsoft.Azure.Management.Storage.StorageManagementClient/4.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"key1\": \"[key1]\",\r\n \"key2\": \"[key2]\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "197" + ], + "Content-Type": [ + "application/json" + ], + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "4a41b10b-65a5-4dd5-8a51-9f61971d887a" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1199" + ], + "x-ms-correlation-request-id": [ + "9aebf746-7d66-4d3d-9b51-447112b37f09" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190621T171146Z:9aebf746-7d66-4d3d-9b51-447112b37f09" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 21 Jun 2019 17:11:46 GMT" + ], + "Server": [ + "Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/01523d7c-60da-455e-adef-521b547922c4/resourceGroups/galleryPsTestRg98/providers/Microsoft.Compute/galleries/galleryPsTestGallery6165?api-version=2019-03-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDE1MjNkN2MtNjBkYS00NTVlLWFkZWYtNTIxYjU0NzkyMmM0L3Jlc291cmNlR3JvdXBzL2dhbGxlcnlQc1Rlc3RSZzk4L3Byb3ZpZGVycy9NaWNyb3NvZnQuQ29tcHV0ZS9nYWxsZXJpZXMvZ2FsbGVyeVBzVGVzdEdhbGxlcnk2MTY1P2FwaS12ZXJzaW9uPTIwMTktMDMtMDE=", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"description\": \"This is a sample gallery description\"\r\n },\r\n \"location\": \"SoutheastAsia\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "119" + ], + "x-ms-client-request-id": [ + "3afe9107-98f6-404b-850b-3314481a76c6" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.8.3801.0", + "OSName/Windows10Enterprise", + "OSVersion/6.3.18362", + "Microsoft.Azure.Management.Compute.ComputeManagementClient/1.0.3400.0" + ] + }, + "ResponseBody": "{\r\n \"type\": \"Microsoft.Compute/galleries\",\r\n \"location\": \"southeastasia\",\r\n \"id\": \"/subscriptions/01523d7c-60da-455e-adef-521b547922c4/resourceGroups/galleryPsTestRg98/providers/Microsoft.Compute/galleries/galleryPsTestGallery6165\",\r\n \"name\": \"galleryPsTestGallery6165\",\r\n \"properties\": {\r\n \"description\": \"This is a sample gallery description\",\r\n \"identifier\": {\r\n \"uniqueName\": \"01523d7c-60da-455e-adef-521b547922c4-GALLERYPSTESTGALLERY6165\"\r\n },\r\n \"provisioningState\": \"Creating\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "512" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/01523d7c-60da-455e-adef-521b547922c4/providers/Microsoft.Compute/locations/southeastasia/capsOperations/07ff7a5d-be03-4559-8836-ffad0df54abc?api-version=2019-03-01" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-served-by": [ + "a43bd6e5-1e2d-4891-95e2-a820cfa699e8_132042581257300306,a43bd6e5-1e2d-4891-95e2-a820cfa699e8_132042581257300306" + ], + "x-ms-request-id": [ + "07ff7a5d-be03-4559-8836-ffad0df54abc" + ], + "Cache-Control": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1199" + ], + "x-ms-correlation-request-id": [ + "0dff4738-ca63-4cad-9962-f3893d12dcb4" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190621T171255Z:0dff4738-ca63-4cad-9962-f3893d12dcb4" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 21 Jun 2019 17:12:55 GMT" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/01523d7c-60da-455e-adef-521b547922c4/providers/Microsoft.Compute/locations/southeastasia/capsOperations/07ff7a5d-be03-4559-8836-ffad0df54abc?api-version=2019-03-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDE1MjNkN2MtNjBkYS00NTVlLWFkZWYtNTIxYjU0NzkyMmM0L3Byb3ZpZGVycy9NaWNyb3NvZnQuQ29tcHV0ZS9sb2NhdGlvbnMvc291dGhlYXN0YXNpYS9jYXBzT3BlcmF0aW9ucy8wN2ZmN2E1ZC1iZTAzLTQ1NTktODgzNi1mZmFkMGRmNTRhYmM/YXBpLXZlcnNpb249MjAxOS0wMy0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.8.3801.0", + "OSName/Windows10Enterprise", + "OSVersion/6.3.18362", + "Microsoft.Azure.Management.Compute.ComputeManagementClient/1.0.3400.0" + ] + }, + "ResponseBody": "{\r\n \"startTime\": \"2019-06-21T10:12:55.1285543-07:00\",\r\n \"endTime\": \"2019-06-21T10:12:56.862944-07:00\",\r\n \"status\": \"Succeeded\",\r\n \"name\": \"07ff7a5d-be03-4559-8836-ffad0df54abc\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "183" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-served-by": [ + "a43bd6e5-1e2d-4891-95e2-a820cfa699e8_132042581257300306,a43bd6e5-1e2d-4891-95e2-a820cfa699e8_132042581257300306" + ], + "x-ms-request-id": [ + "1e5f06b1-3183-4edd-8636-22440da25bb7" + ], + "Cache-Control": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11999" + ], + "x-ms-correlation-request-id": [ + "8185a5e0-2e89-4ea7-b8ad-71867e865b40" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190621T171326Z:8185a5e0-2e89-4ea7-b8ad-71867e865b40" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 21 Jun 2019 17:13:26 GMT" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/01523d7c-60da-455e-adef-521b547922c4/resourceGroups/galleryPsTestRg98/providers/Microsoft.Compute/galleries/galleryPsTestGallery6165?api-version=2019-03-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDE1MjNkN2MtNjBkYS00NTVlLWFkZWYtNTIxYjU0NzkyMmM0L3Jlc291cmNlR3JvdXBzL2dhbGxlcnlQc1Rlc3RSZzk4L3Byb3ZpZGVycy9NaWNyb3NvZnQuQ29tcHV0ZS9nYWxsZXJpZXMvZ2FsbGVyeVBzVGVzdEdhbGxlcnk2MTY1P2FwaS12ZXJzaW9uPTIwMTktMDMtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.8.3801.0", + "OSName/Windows10Enterprise", + "OSVersion/6.3.18362", + "Microsoft.Azure.Management.Compute.ComputeManagementClient/1.0.3400.0" + ] + }, + "ResponseBody": "{\r\n \"type\": \"Microsoft.Compute/galleries\",\r\n \"location\": \"southeastasia\",\r\n \"id\": \"/subscriptions/01523d7c-60da-455e-adef-521b547922c4/resourceGroups/galleryPsTestRg98/providers/Microsoft.Compute/galleries/galleryPsTestGallery6165\",\r\n \"name\": \"galleryPsTestGallery6165\",\r\n \"properties\": {\r\n \"description\": \"This is a sample gallery description\",\r\n \"identifier\": {\r\n \"uniqueName\": \"01523d7c-60da-455e-adef-521b547922c4-GALLERYPSTESTGALLERY6165\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "513" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-served-by": [ + "a43bd6e5-1e2d-4891-95e2-a820cfa699e8_132042581257300306,a43bd6e5-1e2d-4891-95e2-a820cfa699e8_132042581257300306" + ], + "x-ms-request-id": [ + "2b6941a3-c787-4b0b-9712-a250e8d51653" + ], + "Cache-Control": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11998" + ], + "x-ms-correlation-request-id": [ + "2fc9e410-5a2f-4684-8229-c4343eb94698" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190621T171326Z:2fc9e410-5a2f-4684-8229-c4343eb94698" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 21 Jun 2019 17:13:26 GMT" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/01523d7c-60da-455e-adef-521b547922c4/resourceGroups/galleryPsTestRg98/providers/Microsoft.Compute/galleries/galleryPsTestGallery6165/applications/galleryPsTestGalleryApplication7825?api-version=2019-03-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDE1MjNkN2MtNjBkYS00NTVlLWFkZWYtNTIxYjU0NzkyMmM0L3Jlc291cmNlR3JvdXBzL2dhbGxlcnlQc1Rlc3RSZzk4L3Byb3ZpZGVycy9NaWNyb3NvZnQuQ29tcHV0ZS9nYWxsZXJpZXMvZ2FsbGVyeVBzVGVzdEdhbGxlcnk2MTY1L2FwcGxpY2F0aW9ucy9nYWxsZXJ5UHNUZXN0R2FsbGVyeUFwcGxpY2F0aW9uNzgyNT9hcGktdmVyc2lvbj0yMDE5LTAzLTAx", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"description\": \"This is the gallery application description.\",\r\n \"eula\": \"This is the gallery application EULA.\",\r\n \"privacyStatementUri\": \"www.privacystatement.com\",\r\n \"releaseNoteUri\": \"www.releasenote.com\",\r\n \"supportedOSType\": \"Windows\"\r\n },\r\n \"location\": \"SoutheastAsia\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "318" + ], + "x-ms-client-request-id": [ + "8d317bb5-5c29-4fa1-94a3-5fe014f6c463" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.8.3801.0", + "OSName/Windows10Enterprise", + "OSVersion/6.3.18362", + "Microsoft.Azure.Management.Compute.ComputeManagementClient/1.0.3400.0" + ] + }, + "ResponseBody": "{\r\n \"type\": \"Microsoft.Compute/galleries/applications\",\r\n \"location\": \"southeastasia\",\r\n \"id\": \"/subscriptions/01523d7c-60da-455e-adef-521b547922c4/resourceGroups/galleryPsTestRg98/providers/Microsoft.Compute/galleries/galleryPsTestGallery6165/applications/galleryPsTestGalleryApplication7825\",\r\n \"name\": \"galleryPsTestGalleryApplication7825\",\r\n \"properties\": {\r\n \"supportedOSType\": \"Windows\",\r\n \"description\": \"This is the gallery application description.\",\r\n \"eula\": \"This is the gallery application EULA.\",\r\n \"privacyStatementUri\": \"www.privacystatement.com\",\r\n \"releaseNoteUri\": \"www.releasenote.com\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "632" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-served-by": [ + "a43bd6e5-1e2d-4891-95e2-a820cfa699e8_132042581257300306,a43bd6e5-1e2d-4891-95e2-a820cfa699e8_132042581257300306" + ], + "x-ms-request-id": [ + "3e41ba84-9e8f-4ed8-b711-da9465d9a325" + ], + "Cache-Control": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1198" + ], + "x-ms-correlation-request-id": [ + "827f080b-ba0e-4a64-ae32-6507d93e68ae" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190621T171327Z:827f080b-ba0e-4a64-ae32-6507d93e68ae" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 21 Jun 2019 17:13:27 GMT" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/01523d7c-60da-455e-adef-521b547922c4/resourceGroups/galleryPsTestRg98/providers/Microsoft.Compute/galleries/galleryPsTestGallery6165/applications/galleryPsTestGalleryApplication7825?api-version=2019-03-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDE1MjNkN2MtNjBkYS00NTVlLWFkZWYtNTIxYjU0NzkyMmM0L3Jlc291cmNlR3JvdXBzL2dhbGxlcnlQc1Rlc3RSZzk4L3Byb3ZpZGVycy9NaWNyb3NvZnQuQ29tcHV0ZS9nYWxsZXJpZXMvZ2FsbGVyeVBzVGVzdEdhbGxlcnk2MTY1L2FwcGxpY2F0aW9ucy9nYWxsZXJ5UHNUZXN0R2FsbGVyeUFwcGxpY2F0aW9uNzgyNT9hcGktdmVyc2lvbj0yMDE5LTAzLTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.8.3801.0", + "OSName/Windows10Enterprise", + "OSVersion/6.3.18362", + "Microsoft.Azure.Management.Compute.ComputeManagementClient/1.0.3400.0" + ] + }, + "ResponseBody": "{\r\n \"type\": \"Microsoft.Compute/galleries/applications\",\r\n \"location\": \"southeastasia\",\r\n \"id\": \"/subscriptions/01523d7c-60da-455e-adef-521b547922c4/resourceGroups/galleryPsTestRg98/providers/Microsoft.Compute/galleries/galleryPsTestGallery6165/applications/galleryPsTestGalleryApplication7825\",\r\n \"name\": \"galleryPsTestGalleryApplication7825\",\r\n \"properties\": {\r\n \"supportedOSType\": \"Windows\",\r\n \"description\": \"This is the gallery application description.\",\r\n \"eula\": \"This is the gallery application EULA.\",\r\n \"privacyStatementUri\": \"www.privacystatement.com\",\r\n \"releaseNoteUri\": \"www.releasenote.com\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "632" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-served-by": [ + "a43bd6e5-1e2d-4891-95e2-a820cfa699e8_132042581257300306,a43bd6e5-1e2d-4891-95e2-a820cfa699e8_132042581257300306" + ], + "x-ms-request-id": [ + "a1ea3102-6256-410a-abb4-a0e78ed05b55" + ], + "Cache-Control": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11997" + ], + "x-ms-correlation-request-id": [ + "d2144b97-fb1f-4022-b2dd-0d8b7ef3e450" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190621T171357Z:d2144b97-fb1f-4022-b2dd-0d8b7ef3e450" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 21 Jun 2019 17:13:56 GMT" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/01523d7c-60da-455e-adef-521b547922c4/resourceGroups/galleryPsTestRg98/providers/Microsoft.Compute/galleries/galleryPsTestGallery6165/applications/galleryPsTestGalleryApplication7825/versions/1.0.0?api-version=2019-03-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDE1MjNkN2MtNjBkYS00NTVlLWFkZWYtNTIxYjU0NzkyMmM0L3Jlc291cmNlR3JvdXBzL2dhbGxlcnlQc1Rlc3RSZzk4L3Byb3ZpZGVycy9NaWNyb3NvZnQuQ29tcHV0ZS9nYWxsZXJpZXMvZ2FsbGVyeVBzVGVzdEdhbGxlcnk2MTY1L2FwcGxpY2F0aW9ucy9nYWxsZXJ5UHNUZXN0R2FsbGVyeUFwcGxpY2F0aW9uNzgyNS92ZXJzaW9ucy8xLjAuMD9hcGktdmVyc2lvbj0yMDE5LTAzLTAx", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"publishingProfile\": {\r\n \"source\": {\r\n \"fileName\": \"test.zip\",\r\n \"mediaLink\": \"https://saforgallery1969.blob.core.windows.net/sascontainer/test.txt\"\r\n },\r\n \"targetRegions\": [\r\n {\r\n \"name\": \"SoutheastAsia\",\r\n \"regionalReplicaCount\": 1,\r\n \"storageAccountType\": \"Standard_LRS\"\r\n }\r\n ],\r\n \"replicaCount\": 1,\r\n \"endOfLifeDate\": \"2019-07-01T07:00:00Z\",\r\n \"storageAccountType\": \"Standard_LRS\"\r\n }\r\n },\r\n \"location\": \"SoutheastAsia\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "682" + ], + "x-ms-client-request-id": [ + "cedc6e45-9609-4b05-b1fa-83b04f9d4ddb" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.8.3801.0", + "OSName/Windows10Enterprise", + "OSVersion/6.3.18362", + "Microsoft.Azure.Management.Compute.ComputeManagementClient/1.0.3400.0" + ] + }, + "ResponseBody": "{\r\n \"type\": \"Microsoft.Compute/galleries/applications/versions\",\r\n \"location\": \"southeastasia\",\r\n \"id\": \"/subscriptions/01523d7c-60da-455e-adef-521b547922c4/resourceGroups/galleryPsTestRg98/providers/Microsoft.Compute/galleries/galleryPsTestGallery6165/applications/galleryPsTestGalleryApplication7825/versions/1.0.0\",\r\n \"name\": \"1.0.0\",\r\n \"properties\": {\r\n \"publishingProfile\": {\r\n \"source\": {\r\n \"fileName\": \"test.zip\",\r\n \"mediaLink\": \"https://saforgallery1969.blob.core.windows.net/sascontainer/test.txt\"\r\n },\r\n \"enableHealthCheck\": false,\r\n \"targetRegions\": [\r\n {\r\n \"name\": \"Southeast Asia\",\r\n \"regionalReplicaCount\": 1,\r\n \"storageAccountType\": \"Standard_LRS\"\r\n }\r\n ],\r\n \"replicaCount\": 1,\r\n \"excludeFromLatest\": false,\r\n \"publishedDate\": \"2019-06-21T10:13:57.5972568-07:00\",\r\n \"endOfLifeDate\": \"2019-07-01T00:00:00-07:00\",\r\n \"storageAccountType\": \"Standard_LRS\"\r\n },\r\n \"provisioningState\": \"Creating\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "1165" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/01523d7c-60da-455e-adef-521b547922c4/providers/Microsoft.Compute/locations/southeastasia/capsOperations/35bc6223-3ddf-4742-b284-66c7cebc55e4?api-version=2019-03-01" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-served-by": [ + "a43bd6e5-1e2d-4891-95e2-a820cfa699e8_132042581257300306,a43bd6e5-1e2d-4891-95e2-a820cfa699e8_132042581257300306" + ], + "x-ms-request-id": [ + "35bc6223-3ddf-4742-b284-66c7cebc55e4" + ], + "Cache-Control": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1197" + ], + "x-ms-correlation-request-id": [ + "d07d0634-41a8-431b-821e-f4a78d4238ee" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190621T171357Z:d07d0634-41a8-431b-821e-f4a78d4238ee" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 21 Jun 2019 17:13:57 GMT" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/01523d7c-60da-455e-adef-521b547922c4/resourceGroups/galleryPsTestRg98/providers/Microsoft.Compute/galleries/galleryPsTestGallery6165/applications/galleryPsTestGalleryApplication7825/versions/1.0.0?api-version=2019-03-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDE1MjNkN2MtNjBkYS00NTVlLWFkZWYtNTIxYjU0NzkyMmM0L3Jlc291cmNlR3JvdXBzL2dhbGxlcnlQc1Rlc3RSZzk4L3Byb3ZpZGVycy9NaWNyb3NvZnQuQ29tcHV0ZS9nYWxsZXJpZXMvZ2FsbGVyeVBzVGVzdEdhbGxlcnk2MTY1L2FwcGxpY2F0aW9ucy9nYWxsZXJ5UHNUZXN0R2FsbGVyeUFwcGxpY2F0aW9uNzgyNS92ZXJzaW9ucy8xLjAuMD9hcGktdmVyc2lvbj0yMDE5LTAzLTAx", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"publishingProfile\": {\r\n \"source\": {\r\n \"fileName\": \"test.zip\",\r\n \"mediaLink\": \"https://saforgallery1969.blob.core.windows.net/sascontainer/test.txt\"\r\n },\r\n \"targetRegions\": [\r\n {\r\n \"name\": \"SoutheastAsia\",\r\n \"regionalReplicaCount\": 1,\r\n \"storageAccountType\": \"Standard_LRS\"\r\n }\r\n ],\r\n \"replicaCount\": 1,\r\n \"endOfLifeDate\": \"2019-09-29T07:00:00Z\",\r\n \"storageAccountType\": \"Standard_LRS\"\r\n }\r\n },\r\n \"location\": \"SoutheastAsia\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "682" + ], + "x-ms-client-request-id": [ + "e03dacb3-d47b-4e06-8c8f-816c859d6499" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.8.3801.0", + "OSName/Windows10Enterprise", + "OSVersion/6.3.18362", + "Microsoft.Azure.Management.Compute.ComputeManagementClient/1.0.3400.0" + ] + }, + "ResponseBody": "{\r\n \"type\": \"Microsoft.Compute/galleries/applications/versions\",\r\n \"location\": \"southeastasia\",\r\n \"id\": \"/subscriptions/01523d7c-60da-455e-adef-521b547922c4/resourceGroups/galleryPsTestRg98/providers/Microsoft.Compute/galleries/galleryPsTestGallery6165/applications/galleryPsTestGalleryApplication7825/versions/1.0.0\",\r\n \"name\": \"1.0.0\",\r\n \"properties\": {\r\n \"publishingProfile\": {\r\n \"source\": {\r\n \"fileName\": \"test.zip\",\r\n \"mediaLink\": \"https://saforgallery1969.blob.core.windows.net/sascontainer/test.txt\"\r\n },\r\n \"enableHealthCheck\": false,\r\n \"targetRegions\": [\r\n {\r\n \"name\": \"Southeast Asia\",\r\n \"regionalReplicaCount\": 1,\r\n \"storageAccountType\": \"Standard_LRS\"\r\n }\r\n ],\r\n \"replicaCount\": 1,\r\n \"excludeFromLatest\": false,\r\n \"publishedDate\": \"2019-06-21T10:13:57.5972568-07:00\",\r\n \"endOfLifeDate\": \"2019-09-29T00:00:00-07:00\",\r\n \"storageAccountType\": \"Standard_LRS\"\r\n },\r\n \"provisioningState\": \"Updating\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "1165" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/01523d7c-60da-455e-adef-521b547922c4/providers/Microsoft.Compute/locations/southeastasia/capsOperations/4dcbdfde-802e-455b-a5c0-1f8f23d80bda?api-version=2019-03-01" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-served-by": [ + "a43bd6e5-1e2d-4891-95e2-a820cfa699e8_132042581257300306,a43bd6e5-1e2d-4891-95e2-a820cfa699e8_132042581257300306" + ], + "x-ms-request-id": [ + "4dcbdfde-802e-455b-a5c0-1f8f23d80bda" + ], + "Cache-Control": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1196" + ], + "x-ms-correlation-request-id": [ + "8f0143e2-c81e-4b09-af5b-b2100feddec8" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190621T171804Z:8f0143e2-c81e-4b09-af5b-b2100feddec8" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 21 Jun 2019 17:18:04 GMT" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/01523d7c-60da-455e-adef-521b547922c4/providers/Microsoft.Compute/locations/southeastasia/capsOperations/35bc6223-3ddf-4742-b284-66c7cebc55e4?api-version=2019-03-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDE1MjNkN2MtNjBkYS00NTVlLWFkZWYtNTIxYjU0NzkyMmM0L3Byb3ZpZGVycy9NaWNyb3NvZnQuQ29tcHV0ZS9sb2NhdGlvbnMvc291dGhlYXN0YXNpYS9jYXBzT3BlcmF0aW9ucy8zNWJjNjIyMy0zZGRmLTQ3NDItYjI4NC02NmM3Y2ViYzU1ZTQ/YXBpLXZlcnNpb249MjAxOS0wMy0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.8.3801.0", + "OSName/Windows10Enterprise", + "OSVersion/6.3.18362", + "Microsoft.Azure.Management.Compute.ComputeManagementClient/1.0.3400.0" + ] + }, + "ResponseBody": "{\r\n \"startTime\": \"2019-06-21T10:13:57.5972568-07:00\",\r\n \"status\": \"InProgress\",\r\n \"name\": \"35bc6223-3ddf-4742-b284-66c7cebc55e4\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "134" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-served-by": [ + "a43bd6e5-1e2d-4891-95e2-a820cfa699e8_132042581257300306,a43bd6e5-1e2d-4891-95e2-a820cfa699e8_132042581257300306" + ], + "x-ms-request-id": [ + "1bfb6de2-ce98-4b8e-a9af-ba7ebbae21d4" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11996" + ], + "Cache-Control": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-correlation-request-id": [ + "3c6763be-2325-4ff5-a49f-64200455e409" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190621T171427Z:3c6763be-2325-4ff5-a49f-64200455e409" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 21 Jun 2019 17:14:27 GMT" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/01523d7c-60da-455e-adef-521b547922c4/providers/Microsoft.Compute/locations/southeastasia/capsOperations/35bc6223-3ddf-4742-b284-66c7cebc55e4?api-version=2019-03-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDE1MjNkN2MtNjBkYS00NTVlLWFkZWYtNTIxYjU0NzkyMmM0L3Byb3ZpZGVycy9NaWNyb3NvZnQuQ29tcHV0ZS9sb2NhdGlvbnMvc291dGhlYXN0YXNpYS9jYXBzT3BlcmF0aW9ucy8zNWJjNjIyMy0zZGRmLTQ3NDItYjI4NC02NmM3Y2ViYzU1ZTQ/YXBpLXZlcnNpb249MjAxOS0wMy0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.8.3801.0", + "OSName/Windows10Enterprise", + "OSVersion/6.3.18362", + "Microsoft.Azure.Management.Compute.ComputeManagementClient/1.0.3400.0" + ] + }, + "ResponseBody": "{\r\n \"startTime\": \"2019-06-21T10:13:57.5972568-07:00\",\r\n \"status\": \"InProgress\",\r\n \"name\": \"35bc6223-3ddf-4742-b284-66c7cebc55e4\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "134" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-served-by": [ + "a43bd6e5-1e2d-4891-95e2-a820cfa699e8_132042581257300306,a43bd6e5-1e2d-4891-95e2-a820cfa699e8_132042581257300306" + ], + "x-ms-request-id": [ + "03f4a600-faf0-48dc-b92e-69e20d16ea0d" + ], + "Cache-Control": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11995" + ], + "x-ms-correlation-request-id": [ + "f58a8cd0-390d-4b3d-a0a0-cf7681acf2da" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190621T171501Z:f58a8cd0-390d-4b3d-a0a0-cf7681acf2da" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 21 Jun 2019 17:15:01 GMT" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/01523d7c-60da-455e-adef-521b547922c4/providers/Microsoft.Compute/locations/southeastasia/capsOperations/35bc6223-3ddf-4742-b284-66c7cebc55e4?api-version=2019-03-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDE1MjNkN2MtNjBkYS00NTVlLWFkZWYtNTIxYjU0NzkyMmM0L3Byb3ZpZGVycy9NaWNyb3NvZnQuQ29tcHV0ZS9sb2NhdGlvbnMvc291dGhlYXN0YXNpYS9jYXBzT3BlcmF0aW9ucy8zNWJjNjIyMy0zZGRmLTQ3NDItYjI4NC02NmM3Y2ViYzU1ZTQ/YXBpLXZlcnNpb249MjAxOS0wMy0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.8.3801.0", + "OSName/Windows10Enterprise", + "OSVersion/6.3.18362", + "Microsoft.Azure.Management.Compute.ComputeManagementClient/1.0.3400.0" + ] + }, + "ResponseBody": "{\r\n \"startTime\": \"2019-06-21T10:13:57.5972568-07:00\",\r\n \"status\": \"InProgress\",\r\n \"name\": \"35bc6223-3ddf-4742-b284-66c7cebc55e4\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "134" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-served-by": [ + "a43bd6e5-1e2d-4891-95e2-a820cfa699e8_132042581257300306,a43bd6e5-1e2d-4891-95e2-a820cfa699e8_132042581257300306" + ], + "x-ms-request-id": [ + "1b25f9cf-768e-467c-aacb-c25247f34b1b" + ], + "Cache-Control": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11994" + ], + "x-ms-correlation-request-id": [ + "3d757e34-cf14-439e-9a7b-74a1cdd81a7e" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190621T171531Z:3d757e34-cf14-439e-9a7b-74a1cdd81a7e" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 21 Jun 2019 17:15:31 GMT" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/01523d7c-60da-455e-adef-521b547922c4/providers/Microsoft.Compute/locations/southeastasia/capsOperations/35bc6223-3ddf-4742-b284-66c7cebc55e4?api-version=2019-03-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDE1MjNkN2MtNjBkYS00NTVlLWFkZWYtNTIxYjU0NzkyMmM0L3Byb3ZpZGVycy9NaWNyb3NvZnQuQ29tcHV0ZS9sb2NhdGlvbnMvc291dGhlYXN0YXNpYS9jYXBzT3BlcmF0aW9ucy8zNWJjNjIyMy0zZGRmLTQ3NDItYjI4NC02NmM3Y2ViYzU1ZTQ/YXBpLXZlcnNpb249MjAxOS0wMy0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.8.3801.0", + "OSName/Windows10Enterprise", + "OSVersion/6.3.18362", + "Microsoft.Azure.Management.Compute.ComputeManagementClient/1.0.3400.0" + ] + }, + "ResponseBody": "{\r\n \"startTime\": \"2019-06-21T10:13:57.5972568-07:00\",\r\n \"status\": \"InProgress\",\r\n \"name\": \"35bc6223-3ddf-4742-b284-66c7cebc55e4\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "134" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-served-by": [ + "a43bd6e5-1e2d-4891-95e2-a820cfa699e8_132042581257300306,a43bd6e5-1e2d-4891-95e2-a820cfa699e8_132042581257300306" + ], + "x-ms-request-id": [ + "a1a6c820-ab77-432c-a5a5-ddca792baf33" + ], + "Cache-Control": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11993" + ], + "x-ms-correlation-request-id": [ + "98969312-d783-4d5b-8ede-5381b6ec48ae" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190621T171602Z:98969312-d783-4d5b-8ede-5381b6ec48ae" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 21 Jun 2019 17:16:01 GMT" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/01523d7c-60da-455e-adef-521b547922c4/providers/Microsoft.Compute/locations/southeastasia/capsOperations/35bc6223-3ddf-4742-b284-66c7cebc55e4?api-version=2019-03-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDE1MjNkN2MtNjBkYS00NTVlLWFkZWYtNTIxYjU0NzkyMmM0L3Byb3ZpZGVycy9NaWNyb3NvZnQuQ29tcHV0ZS9sb2NhdGlvbnMvc291dGhlYXN0YXNpYS9jYXBzT3BlcmF0aW9ucy8zNWJjNjIyMy0zZGRmLTQ3NDItYjI4NC02NmM3Y2ViYzU1ZTQ/YXBpLXZlcnNpb249MjAxOS0wMy0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.8.3801.0", + "OSName/Windows10Enterprise", + "OSVersion/6.3.18362", + "Microsoft.Azure.Management.Compute.ComputeManagementClient/1.0.3400.0" + ] + }, + "ResponseBody": "{\r\n \"startTime\": \"2019-06-21T10:13:57.5972568-07:00\",\r\n \"status\": \"InProgress\",\r\n \"name\": \"35bc6223-3ddf-4742-b284-66c7cebc55e4\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "134" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-served-by": [ + "a43bd6e5-1e2d-4891-95e2-a820cfa699e8_132042581257300306,a43bd6e5-1e2d-4891-95e2-a820cfa699e8_132042581257300306" + ], + "x-ms-request-id": [ + "e50926c0-7d3d-43b1-94e4-3be3e1101ff3" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11992" + ], + "Cache-Control": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-correlation-request-id": [ + "1ee86204-bbbd-4061-b457-4e51d5b585fd" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190621T171632Z:1ee86204-bbbd-4061-b457-4e51d5b585fd" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 21 Jun 2019 17:16:31 GMT" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/01523d7c-60da-455e-adef-521b547922c4/providers/Microsoft.Compute/locations/southeastasia/capsOperations/35bc6223-3ddf-4742-b284-66c7cebc55e4?api-version=2019-03-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDE1MjNkN2MtNjBkYS00NTVlLWFkZWYtNTIxYjU0NzkyMmM0L3Byb3ZpZGVycy9NaWNyb3NvZnQuQ29tcHV0ZS9sb2NhdGlvbnMvc291dGhlYXN0YXNpYS9jYXBzT3BlcmF0aW9ucy8zNWJjNjIyMy0zZGRmLTQ3NDItYjI4NC02NmM3Y2ViYzU1ZTQ/YXBpLXZlcnNpb249MjAxOS0wMy0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.8.3801.0", + "OSName/Windows10Enterprise", + "OSVersion/6.3.18362", + "Microsoft.Azure.Management.Compute.ComputeManagementClient/1.0.3400.0" + ] + }, + "ResponseBody": "{\r\n \"startTime\": \"2019-06-21T10:13:57.5972568-07:00\",\r\n \"status\": \"InProgress\",\r\n \"name\": \"35bc6223-3ddf-4742-b284-66c7cebc55e4\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "134" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-served-by": [ + "a43bd6e5-1e2d-4891-95e2-a820cfa699e8_132042581257300306,a43bd6e5-1e2d-4891-95e2-a820cfa699e8_132042581257300306" + ], + "x-ms-request-id": [ + "4b6e9da8-ee8b-4cc4-b76c-f3a182f406fa" + ], + "Cache-Control": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11991" + ], + "x-ms-correlation-request-id": [ + "ab0f2483-fda2-4b90-842a-a61e28b0fb98" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190621T171703Z:ab0f2483-fda2-4b90-842a-a61e28b0fb98" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 21 Jun 2019 17:17:02 GMT" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/01523d7c-60da-455e-adef-521b547922c4/providers/Microsoft.Compute/locations/southeastasia/capsOperations/35bc6223-3ddf-4742-b284-66c7cebc55e4?api-version=2019-03-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDE1MjNkN2MtNjBkYS00NTVlLWFkZWYtNTIxYjU0NzkyMmM0L3Byb3ZpZGVycy9NaWNyb3NvZnQuQ29tcHV0ZS9sb2NhdGlvbnMvc291dGhlYXN0YXNpYS9jYXBzT3BlcmF0aW9ucy8zNWJjNjIyMy0zZGRmLTQ3NDItYjI4NC02NmM3Y2ViYzU1ZTQ/YXBpLXZlcnNpb249MjAxOS0wMy0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.8.3801.0", + "OSName/Windows10Enterprise", + "OSVersion/6.3.18362", + "Microsoft.Azure.Management.Compute.ComputeManagementClient/1.0.3400.0" + ] + }, + "ResponseBody": "{\r\n \"startTime\": \"2019-06-21T10:13:57.5972568-07:00\",\r\n \"status\": \"InProgress\",\r\n \"name\": \"35bc6223-3ddf-4742-b284-66c7cebc55e4\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "134" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-served-by": [ + "a43bd6e5-1e2d-4891-95e2-a820cfa699e8_132042581257300306,a43bd6e5-1e2d-4891-95e2-a820cfa699e8_132042581257300306" + ], + "x-ms-request-id": [ + "2d6e56ee-05e3-46e7-bf05-5b2b09c5b186" + ], + "Cache-Control": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11990" + ], + "x-ms-correlation-request-id": [ + "f38fb895-f364-4187-8608-7b51467f6be8" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190621T171733Z:f38fb895-f364-4187-8608-7b51467f6be8" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 21 Jun 2019 17:17:32 GMT" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/01523d7c-60da-455e-adef-521b547922c4/providers/Microsoft.Compute/locations/southeastasia/capsOperations/35bc6223-3ddf-4742-b284-66c7cebc55e4?api-version=2019-03-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDE1MjNkN2MtNjBkYS00NTVlLWFkZWYtNTIxYjU0NzkyMmM0L3Byb3ZpZGVycy9NaWNyb3NvZnQuQ29tcHV0ZS9sb2NhdGlvbnMvc291dGhlYXN0YXNpYS9jYXBzT3BlcmF0aW9ucy8zNWJjNjIyMy0zZGRmLTQ3NDItYjI4NC02NmM3Y2ViYzU1ZTQ/YXBpLXZlcnNpb249MjAxOS0wMy0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.8.3801.0", + "OSName/Windows10Enterprise", + "OSVersion/6.3.18362", + "Microsoft.Azure.Management.Compute.ComputeManagementClient/1.0.3400.0" + ] + }, + "ResponseBody": "{\r\n \"startTime\": \"2019-06-21T10:13:57.5972568-07:00\",\r\n \"endTime\": \"2019-06-21T10:17:57.9097337-07:00\",\r\n \"status\": \"Succeeded\",\r\n \"name\": \"35bc6223-3ddf-4742-b284-66c7cebc55e4\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "184" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-served-by": [ + "a43bd6e5-1e2d-4891-95e2-a820cfa699e8_132042581257300306,a43bd6e5-1e2d-4891-95e2-a820cfa699e8_132042581257300306" + ], + "x-ms-request-id": [ + "fb5c24fe-796b-4d19-9db3-7ec9eb476933" + ], + "Cache-Control": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11989" + ], + "x-ms-correlation-request-id": [ + "6279bd9f-89ba-4c9d-b579-d3c24e290e5e" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190621T171803Z:6279bd9f-89ba-4c9d-b579-d3c24e290e5e" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 21 Jun 2019 17:18:03 GMT" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/01523d7c-60da-455e-adef-521b547922c4/resourceGroups/galleryPsTestRg98/providers/Microsoft.Compute/galleries/galleryPsTestGallery6165/applications/galleryPsTestGalleryApplication7825/versions/1.0.0?api-version=2019-03-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDE1MjNkN2MtNjBkYS00NTVlLWFkZWYtNTIxYjU0NzkyMmM0L3Jlc291cmNlR3JvdXBzL2dhbGxlcnlQc1Rlc3RSZzk4L3Byb3ZpZGVycy9NaWNyb3NvZnQuQ29tcHV0ZS9nYWxsZXJpZXMvZ2FsbGVyeVBzVGVzdEdhbGxlcnk2MTY1L2FwcGxpY2F0aW9ucy9nYWxsZXJ5UHNUZXN0R2FsbGVyeUFwcGxpY2F0aW9uNzgyNS92ZXJzaW9ucy8xLjAuMD9hcGktdmVyc2lvbj0yMDE5LTAzLTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.8.3801.0", + "OSName/Windows10Enterprise", + "OSVersion/6.3.18362", + "Microsoft.Azure.Management.Compute.ComputeManagementClient/1.0.3400.0" + ] + }, + "ResponseBody": "{\r\n \"type\": \"Microsoft.Compute/galleries/applications/versions\",\r\n \"location\": \"southeastasia\",\r\n \"id\": \"/subscriptions/01523d7c-60da-455e-adef-521b547922c4/resourceGroups/galleryPsTestRg98/providers/Microsoft.Compute/galleries/galleryPsTestGallery6165/applications/galleryPsTestGalleryApplication7825/versions/1.0.0\",\r\n \"name\": \"1.0.0\",\r\n \"properties\": {\r\n \"publishingProfile\": {\r\n \"source\": {\r\n \"fileName\": \"test.zip\",\r\n \"mediaLink\": \"https://saforgallery1969.blob.core.windows.net/sascontainer/test.txt\"\r\n },\r\n \"enableHealthCheck\": false,\r\n \"targetRegions\": [\r\n {\r\n \"name\": \"Southeast Asia\",\r\n \"regionalReplicaCount\": 1,\r\n \"storageAccountType\": \"Standard_LRS\"\r\n }\r\n ],\r\n \"replicaCount\": 1,\r\n \"excludeFromLatest\": false,\r\n \"publishedDate\": \"2019-06-21T10:13:57.5972568-07:00\",\r\n \"endOfLifeDate\": \"2019-07-01T00:00:00-07:00\",\r\n \"storageAccountType\": \"Standard_LRS\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "1166" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-served-by": [ + "a43bd6e5-1e2d-4891-95e2-a820cfa699e8_132042581257300306,a43bd6e5-1e2d-4891-95e2-a820cfa699e8_132042581257300306" + ], + "x-ms-request-id": [ + "ea9931d2-381a-4e16-b83d-32e03677b7e3" + ], + "Cache-Control": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11988" + ], + "x-ms-correlation-request-id": [ + "bc1cccc4-1a9f-49e5-b08e-2fbdaf9be8e3" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190621T171803Z:bc1cccc4-1a9f-49e5-b08e-2fbdaf9be8e3" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 21 Jun 2019 17:18:03 GMT" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/01523d7c-60da-455e-adef-521b547922c4/resourceGroups/galleryPsTestRg98/providers/Microsoft.Compute/galleries/galleryPsTestGallery6165/applications/galleryPsTestGalleryApplication7825/versions/1.0.0?api-version=2019-03-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDE1MjNkN2MtNjBkYS00NTVlLWFkZWYtNTIxYjU0NzkyMmM0L3Jlc291cmNlR3JvdXBzL2dhbGxlcnlQc1Rlc3RSZzk4L3Byb3ZpZGVycy9NaWNyb3NvZnQuQ29tcHV0ZS9nYWxsZXJpZXMvZ2FsbGVyeVBzVGVzdEdhbGxlcnk2MTY1L2FwcGxpY2F0aW9ucy9nYWxsZXJ5UHNUZXN0R2FsbGVyeUFwcGxpY2F0aW9uNzgyNS92ZXJzaW9ucy8xLjAuMD9hcGktdmVyc2lvbj0yMDE5LTAzLTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "8d271f17-531f-4114-9dde-4c130e58912e" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.8.3801.0", + "OSName/Windows10Enterprise", + "OSVersion/6.3.18362", + "Microsoft.Azure.Management.Compute.ComputeManagementClient/1.0.3400.0" + ] + }, + "ResponseBody": "{\r\n \"type\": \"Microsoft.Compute/galleries/applications/versions\",\r\n \"location\": \"southeastasia\",\r\n \"id\": \"/subscriptions/01523d7c-60da-455e-adef-521b547922c4/resourceGroups/galleryPsTestRg98/providers/Microsoft.Compute/galleries/galleryPsTestGallery6165/applications/galleryPsTestGalleryApplication7825/versions/1.0.0\",\r\n \"name\": \"1.0.0\",\r\n \"properties\": {\r\n \"publishingProfile\": {\r\n \"source\": {\r\n \"fileName\": \"test.zip\",\r\n \"mediaLink\": \"https://saforgallery1969.blob.core.windows.net/sascontainer/test.txt\"\r\n },\r\n \"enableHealthCheck\": false,\r\n \"targetRegions\": [\r\n {\r\n \"name\": \"Southeast Asia\",\r\n \"regionalReplicaCount\": 1,\r\n \"storageAccountType\": \"Standard_LRS\"\r\n }\r\n ],\r\n \"replicaCount\": 1,\r\n \"excludeFromLatest\": false,\r\n \"publishedDate\": \"2019-06-21T10:13:57.5972568-07:00\",\r\n \"endOfLifeDate\": \"2019-07-01T00:00:00-07:00\",\r\n \"storageAccountType\": \"Standard_LRS\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "1166" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-served-by": [ + "a43bd6e5-1e2d-4891-95e2-a820cfa699e8_132042581257300306,a43bd6e5-1e2d-4891-95e2-a820cfa699e8_132042581257300306" + ], + "x-ms-request-id": [ + "5e7f133f-0913-4b4a-9ea6-c1e2946f134d" + ], + "Cache-Control": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11987" + ], + "x-ms-correlation-request-id": [ + "374c77b7-dff8-44d1-a396-fce2b974286d" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190621T171804Z:374c77b7-dff8-44d1-a396-fce2b974286d" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 21 Jun 2019 17:18:03 GMT" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/01523d7c-60da-455e-adef-521b547922c4/resourceGroups/galleryPsTestRg98/providers/Microsoft.Compute/galleries/galleryPsTestGallery6165/applications/galleryPsTestGalleryApplication7825/versions/1.0.0?api-version=2019-03-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDE1MjNkN2MtNjBkYS00NTVlLWFkZWYtNTIxYjU0NzkyMmM0L3Jlc291cmNlR3JvdXBzL2dhbGxlcnlQc1Rlc3RSZzk4L3Byb3ZpZGVycy9NaWNyb3NvZnQuQ29tcHV0ZS9nYWxsZXJpZXMvZ2FsbGVyeVBzVGVzdEdhbGxlcnk2MTY1L2FwcGxpY2F0aW9ucy9nYWxsZXJ5UHNUZXN0R2FsbGVyeUFwcGxpY2F0aW9uNzgyNS92ZXJzaW9ucy8xLjAuMD9hcGktdmVyc2lvbj0yMDE5LTAzLTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.8.3801.0", + "OSName/Windows10Enterprise", + "OSVersion/6.3.18362", + "Microsoft.Azure.Management.Compute.ComputeManagementClient/1.0.3400.0" + ] + }, + "ResponseBody": "{\r\n \"type\": \"Microsoft.Compute/galleries/applications/versions\",\r\n \"location\": \"southeastasia\",\r\n \"id\": \"/subscriptions/01523d7c-60da-455e-adef-521b547922c4/resourceGroups/galleryPsTestRg98/providers/Microsoft.Compute/galleries/galleryPsTestGallery6165/applications/galleryPsTestGalleryApplication7825/versions/1.0.0\",\r\n \"name\": \"1.0.0\",\r\n \"properties\": {\r\n \"publishingProfile\": {\r\n \"source\": {\r\n \"fileName\": \"test.zip\",\r\n \"mediaLink\": \"https://saforgallery1969.blob.core.windows.net/sascontainer/test.txt\"\r\n },\r\n \"enableHealthCheck\": false,\r\n \"targetRegions\": [\r\n {\r\n \"name\": \"Southeast Asia\",\r\n \"regionalReplicaCount\": 1,\r\n \"storageAccountType\": \"Standard_LRS\"\r\n }\r\n ],\r\n \"replicaCount\": 1,\r\n \"excludeFromLatest\": false,\r\n \"publishedDate\": \"2019-06-21T10:13:57.5972568-07:00\",\r\n \"endOfLifeDate\": \"2019-09-29T00:00:00-07:00\",\r\n \"storageAccountType\": \"Standard_LRS\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "1166" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-served-by": [ + "a43bd6e5-1e2d-4891-95e2-a820cfa699e8_132042581257300306,a43bd6e5-1e2d-4891-95e2-a820cfa699e8_132042581257300306" + ], + "x-ms-request-id": [ + "9fc988e0-4f57-4766-a341-54127c5a7fe4" + ], + "Cache-Control": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11984" + ], + "x-ms-correlation-request-id": [ + "0c660ff8-42ef-4b18-91b3-2aa03e0ca1a5" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190621T171835Z:0c660ff8-42ef-4b18-91b3-2aa03e0ca1a5" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 21 Jun 2019 17:18:35 GMT" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/01523d7c-60da-455e-adef-521b547922c4/resourceGroups/galleryPsTestRg98/providers/Microsoft.Compute/galleries/galleryPsTestGallery6165/applications/galleryPsTestGalleryApplication7825/versions/1.0.0?api-version=2019-03-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDE1MjNkN2MtNjBkYS00NTVlLWFkZWYtNTIxYjU0NzkyMmM0L3Jlc291cmNlR3JvdXBzL2dhbGxlcnlQc1Rlc3RSZzk4L3Byb3ZpZGVycy9NaWNyb3NvZnQuQ29tcHV0ZS9nYWxsZXJpZXMvZ2FsbGVyeVBzVGVzdEdhbGxlcnk2MTY1L2FwcGxpY2F0aW9ucy9nYWxsZXJ5UHNUZXN0R2FsbGVyeUFwcGxpY2F0aW9uNzgyNS92ZXJzaW9ucy8xLjAuMD9hcGktdmVyc2lvbj0yMDE5LTAzLTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "fb88a7de-d918-456d-8484-eac8b8cde00c" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.8.3801.0", + "OSName/Windows10Enterprise", + "OSVersion/6.3.18362", + "Microsoft.Azure.Management.Compute.ComputeManagementClient/1.0.3400.0" + ] + }, + "ResponseBody": "{\r\n \"type\": \"Microsoft.Compute/galleries/applications/versions\",\r\n \"location\": \"southeastasia\",\r\n \"id\": \"/subscriptions/01523d7c-60da-455e-adef-521b547922c4/resourceGroups/galleryPsTestRg98/providers/Microsoft.Compute/galleries/galleryPsTestGallery6165/applications/galleryPsTestGalleryApplication7825/versions/1.0.0\",\r\n \"name\": \"1.0.0\",\r\n \"properties\": {\r\n \"publishingProfile\": {\r\n \"source\": {\r\n \"fileName\": \"test.zip\",\r\n \"mediaLink\": \"https://saforgallery1969.blob.core.windows.net/sascontainer/test.txt\"\r\n },\r\n \"enableHealthCheck\": false,\r\n \"targetRegions\": [\r\n {\r\n \"name\": \"Southeast Asia\",\r\n \"regionalReplicaCount\": 1,\r\n \"storageAccountType\": \"Standard_LRS\"\r\n }\r\n ],\r\n \"replicaCount\": 1,\r\n \"excludeFromLatest\": false,\r\n \"publishedDate\": \"2019-06-21T10:13:57.5972568-07:00\",\r\n \"endOfLifeDate\": \"2019-09-29T00:00:00-07:00\",\r\n \"storageAccountType\": \"Standard_LRS\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "1166" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-served-by": [ + "a43bd6e5-1e2d-4891-95e2-a820cfa699e8_132042581257300306,a43bd6e5-1e2d-4891-95e2-a820cfa699e8_132042581257300306" + ], + "x-ms-request-id": [ + "b20f1880-a7e2-4bd8-bbf1-b642fb5b8aa8" + ], + "Cache-Control": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11983" + ], + "x-ms-correlation-request-id": [ + "92df66fa-64f6-4e4b-a8a5-3cd86114c445" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190621T171835Z:92df66fa-64f6-4e4b-a8a5-3cd86114c445" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 21 Jun 2019 17:18:35 GMT" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/01523d7c-60da-455e-adef-521b547922c4/resourceGroups/galleryPsTestRg98/providers/Microsoft.Compute/galleries/galleryPsTestGallery6165/applications/galleryPsTestGalleryApplication7825/versions/1.0.0?$expand=ReplicationStatus&api-version=2019-03-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDE1MjNkN2MtNjBkYS00NTVlLWFkZWYtNTIxYjU0NzkyMmM0L3Jlc291cmNlR3JvdXBzL2dhbGxlcnlQc1Rlc3RSZzk4L3Byb3ZpZGVycy9NaWNyb3NvZnQuQ29tcHV0ZS9nYWxsZXJpZXMvZ2FsbGVyeVBzVGVzdEdhbGxlcnk2MTY1L2FwcGxpY2F0aW9ucy9nYWxsZXJ5UHNUZXN0R2FsbGVyeUFwcGxpY2F0aW9uNzgyNS92ZXJzaW9ucy8xLjAuMD8kZXhwYW5kPVJlcGxpY2F0aW9uU3RhdHVzJmFwaS12ZXJzaW9uPTIwMTktMDMtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "ff71692a-b4d4-4ed6-afb0-ea9afe15e997" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.8.3801.0", + "OSName/Windows10Enterprise", + "OSVersion/6.3.18362", + "Microsoft.Azure.Management.Compute.ComputeManagementClient/1.0.3400.0" + ] + }, + "ResponseBody": "{\r\n \"type\": \"Microsoft.Compute/galleries/applications/versions\",\r\n \"location\": \"southeastasia\",\r\n \"id\": \"/subscriptions/01523d7c-60da-455e-adef-521b547922c4/resourceGroups/galleryPsTestRg98/providers/Microsoft.Compute/galleries/galleryPsTestGallery6165/applications/galleryPsTestGalleryApplication7825/versions/1.0.0\",\r\n \"name\": \"1.0.0\",\r\n \"properties\": {\r\n \"publishingProfile\": {\r\n \"source\": {\r\n \"fileName\": \"test.zip\",\r\n \"mediaLink\": \"https://saforgallery1969.blob.core.windows.net/sascontainer/test.txt\"\r\n },\r\n \"enableHealthCheck\": false,\r\n \"targetRegions\": [\r\n {\r\n \"name\": \"Southeast Asia\",\r\n \"regionalReplicaCount\": 1,\r\n \"storageAccountType\": \"Standard_LRS\"\r\n }\r\n ],\r\n \"replicaCount\": 1,\r\n \"excludeFromLatest\": false,\r\n \"publishedDate\": \"2019-06-21T10:13:57.5972568-07:00\",\r\n \"endOfLifeDate\": \"2019-07-01T00:00:00-07:00\",\r\n \"storageAccountType\": \"Standard_LRS\"\r\n },\r\n \"provisioningState\": \"Succeeded\",\r\n \"replicationStatus\": {\r\n \"aggregatedState\": \"Completed\",\r\n \"summary\": [\r\n {\r\n \"region\": \"southeastasia\",\r\n \"state\": \"Completed\",\r\n \"progress\": 100\r\n }\r\n ]\r\n }\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "1390" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-served-by": [ + "a43bd6e5-1e2d-4891-95e2-a820cfa699e8_132042581257300306,a43bd6e5-1e2d-4891-95e2-a820cfa699e8_132042581257300306" + ], + "x-ms-request-id": [ + "ca3c326e-3905-4271-be71-03d9521cb23a" + ], + "Cache-Control": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11986" + ], + "x-ms-correlation-request-id": [ + "3274afd0-3af0-4e87-bf48-d92bcabb12a4" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190621T171804Z:3274afd0-3af0-4e87-bf48-d92bcabb12a4" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 21 Jun 2019 17:18:04 GMT" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/01523d7c-60da-455e-adef-521b547922c4/providers/Microsoft.Compute/locations/southeastasia/capsOperations/4dcbdfde-802e-455b-a5c0-1f8f23d80bda?api-version=2019-03-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDE1MjNkN2MtNjBkYS00NTVlLWFkZWYtNTIxYjU0NzkyMmM0L3Byb3ZpZGVycy9NaWNyb3NvZnQuQ29tcHV0ZS9sb2NhdGlvbnMvc291dGhlYXN0YXNpYS9jYXBzT3BlcmF0aW9ucy80ZGNiZGZkZS04MDJlLTQ1NWItYTVjMC0xZjhmMjNkODBiZGE/YXBpLXZlcnNpb249MjAxOS0wMy0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.8.3801.0", + "OSName/Windows10Enterprise", + "OSVersion/6.3.18362", + "Microsoft.Azure.Management.Compute.ComputeManagementClient/1.0.3400.0" + ] + }, + "ResponseBody": "{\r\n \"startTime\": \"2019-06-21T10:18:04.4566619-07:00\",\r\n \"endTime\": \"2019-06-21T10:18:34.6285319-07:00\",\r\n \"status\": \"Succeeded\",\r\n \"name\": \"4dcbdfde-802e-455b-a5c0-1f8f23d80bda\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "184" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-served-by": [ + "a43bd6e5-1e2d-4891-95e2-a820cfa699e8_132042581257300306,a43bd6e5-1e2d-4891-95e2-a820cfa699e8_132042581257300306" + ], + "x-ms-request-id": [ + "852fa899-542e-4a54-8dba-4bd816910538" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11985" + ], + "Cache-Control": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-correlation-request-id": [ + "4d90eb74-c2a0-4e55-b3d9-45e54511c57a" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190621T171834Z:4d90eb74-c2a0-4e55-b3d9-45e54511c57a" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 21 Jun 2019 17:18:34 GMT" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/01523d7c-60da-455e-adef-521b547922c4/resourceGroups/galleryPsTestRg98/providers/Microsoft.Compute/galleries/galleryPsTestGallery6165/applications/galleryPsTestGalleryApplication7825/versions/1.0.0?api-version=2019-03-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDE1MjNkN2MtNjBkYS00NTVlLWFkZWYtNTIxYjU0NzkyMmM0L3Jlc291cmNlR3JvdXBzL2dhbGxlcnlQc1Rlc3RSZzk4L3Byb3ZpZGVycy9NaWNyb3NvZnQuQ29tcHV0ZS9nYWxsZXJpZXMvZ2FsbGVyeVBzVGVzdEdhbGxlcnk2MTY1L2FwcGxpY2F0aW9ucy9nYWxsZXJ5UHNUZXN0R2FsbGVyeUFwcGxpY2F0aW9uNzgyNS92ZXJzaW9ucy8xLjAuMD9hcGktdmVyc2lvbj0yMDE5LTAzLTAx", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "57b7ea9f-098d-4d76-9f04-aef46a78a566" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.8.3801.0", + "OSName/Windows10Enterprise", + "OSVersion/6.3.18362", + "Microsoft.Azure.Management.Compute.ComputeManagementClient/1.0.3400.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/01523d7c-60da-455e-adef-521b547922c4/providers/Microsoft.Compute/locations/southeastasia/capsOperations/0c021175-676c-4248-b698-a7e0a00a7311?api-version=2019-03-01" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-served-by": [ + "a43bd6e5-1e2d-4891-95e2-a820cfa699e8_132042581257300306,a43bd6e5-1e2d-4891-95e2-a820cfa699e8_132042581257300306" + ], + "x-ms-request-id": [ + "0c021175-676c-4248-b698-a7e0a00a7311" + ], + "Cache-Control": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/01523d7c-60da-455e-adef-521b547922c4/providers/Microsoft.Compute/locations/southeastasia/capsOperations/0c021175-676c-4248-b698-a7e0a00a7311?monitor=true&api-version=2019-03-01" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-deletes": [ + "14999" + ], + "x-ms-correlation-request-id": [ + "6ac4c67e-fda9-46cf-8426-b49cc6849aa6" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190621T171836Z:6ac4c67e-fda9-46cf-8426-b49cc6849aa6" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 21 Jun 2019 17:18:36 GMT" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/01523d7c-60da-455e-adef-521b547922c4/providers/Microsoft.Compute/locations/southeastasia/capsOperations/0c021175-676c-4248-b698-a7e0a00a7311?api-version=2019-03-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDE1MjNkN2MtNjBkYS00NTVlLWFkZWYtNTIxYjU0NzkyMmM0L3Byb3ZpZGVycy9NaWNyb3NvZnQuQ29tcHV0ZS9sb2NhdGlvbnMvc291dGhlYXN0YXNpYS9jYXBzT3BlcmF0aW9ucy8wYzAyMTE3NS02NzZjLTQyNDgtYjY5OC1hN2UwYTAwYTczMTE/YXBpLXZlcnNpb249MjAxOS0wMy0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.8.3801.0", + "OSName/Windows10Enterprise", + "OSVersion/6.3.18362", + "Microsoft.Azure.Management.Compute.ComputeManagementClient/1.0.3400.0" + ] + }, + "ResponseBody": "{\r\n \"startTime\": \"2019-06-21T10:18:36.0972648-07:00\",\r\n \"status\": \"InProgress\",\r\n \"name\": \"0c021175-676c-4248-b698-a7e0a00a7311\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "134" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-served-by": [ + "a43bd6e5-1e2d-4891-95e2-a820cfa699e8_132042581257300306,a43bd6e5-1e2d-4891-95e2-a820cfa699e8_132042581257300306" + ], + "x-ms-request-id": [ + "7c77bc12-f172-4a6e-8ed3-6bb413b8cf3c" + ], + "Cache-Control": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11982" + ], + "x-ms-correlation-request-id": [ + "63ee1ce6-9ea8-4652-9073-c0fc338eb22e" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190621T171906Z:63ee1ce6-9ea8-4652-9073-c0fc338eb22e" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 21 Jun 2019 17:19:05 GMT" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/01523d7c-60da-455e-adef-521b547922c4/providers/Microsoft.Compute/locations/southeastasia/capsOperations/0c021175-676c-4248-b698-a7e0a00a7311?api-version=2019-03-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDE1MjNkN2MtNjBkYS00NTVlLWFkZWYtNTIxYjU0NzkyMmM0L3Byb3ZpZGVycy9NaWNyb3NvZnQuQ29tcHV0ZS9sb2NhdGlvbnMvc291dGhlYXN0YXNpYS9jYXBzT3BlcmF0aW9ucy8wYzAyMTE3NS02NzZjLTQyNDgtYjY5OC1hN2UwYTAwYTczMTE/YXBpLXZlcnNpb249MjAxOS0wMy0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.8.3801.0", + "OSName/Windows10Enterprise", + "OSVersion/6.3.18362", + "Microsoft.Azure.Management.Compute.ComputeManagementClient/1.0.3400.0" + ] + }, + "ResponseBody": "{\r\n \"startTime\": \"2019-06-21T10:18:36.0972648-07:00\",\r\n \"status\": \"InProgress\",\r\n \"name\": \"0c021175-676c-4248-b698-a7e0a00a7311\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "134" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-served-by": [ + "a43bd6e5-1e2d-4891-95e2-a820cfa699e8_132042581257300306,a43bd6e5-1e2d-4891-95e2-a820cfa699e8_132042581257300306" + ], + "x-ms-request-id": [ + "6f41ffea-b5bf-4c02-a862-a8d8935229e4" + ], + "Cache-Control": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11981" + ], + "x-ms-correlation-request-id": [ + "5eac0bd1-0b7a-4f11-abe3-4c3d11da9019" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190621T171936Z:5eac0bd1-0b7a-4f11-abe3-4c3d11da9019" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 21 Jun 2019 17:19:36 GMT" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/01523d7c-60da-455e-adef-521b547922c4/providers/Microsoft.Compute/locations/southeastasia/capsOperations/0c021175-676c-4248-b698-a7e0a00a7311?api-version=2019-03-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDE1MjNkN2MtNjBkYS00NTVlLWFkZWYtNTIxYjU0NzkyMmM0L3Byb3ZpZGVycy9NaWNyb3NvZnQuQ29tcHV0ZS9sb2NhdGlvbnMvc291dGhlYXN0YXNpYS9jYXBzT3BlcmF0aW9ucy8wYzAyMTE3NS02NzZjLTQyNDgtYjY5OC1hN2UwYTAwYTczMTE/YXBpLXZlcnNpb249MjAxOS0wMy0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.8.3801.0", + "OSName/Windows10Enterprise", + "OSVersion/6.3.18362", + "Microsoft.Azure.Management.Compute.ComputeManagementClient/1.0.3400.0" + ] + }, + "ResponseBody": "{\r\n \"startTime\": \"2019-06-21T10:18:36.0972648-07:00\",\r\n \"status\": \"InProgress\",\r\n \"name\": \"0c021175-676c-4248-b698-a7e0a00a7311\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "134" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-served-by": [ + "a43bd6e5-1e2d-4891-95e2-a820cfa699e8_132042581257300306,a43bd6e5-1e2d-4891-95e2-a820cfa699e8_132042581257300306" + ], + "x-ms-request-id": [ + "9e2e302a-8d0d-45fb-b935-22714a5e36a9" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11980" + ], + "Cache-Control": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-correlation-request-id": [ + "6ce16c8c-eb01-4969-9892-5855f3d5cfae" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190621T172006Z:6ce16c8c-eb01-4969-9892-5855f3d5cfae" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 21 Jun 2019 17:20:06 GMT" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/01523d7c-60da-455e-adef-521b547922c4/providers/Microsoft.Compute/locations/southeastasia/capsOperations/0c021175-676c-4248-b698-a7e0a00a7311?api-version=2019-03-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDE1MjNkN2MtNjBkYS00NTVlLWFkZWYtNTIxYjU0NzkyMmM0L3Byb3ZpZGVycy9NaWNyb3NvZnQuQ29tcHV0ZS9sb2NhdGlvbnMvc291dGhlYXN0YXNpYS9jYXBzT3BlcmF0aW9ucy8wYzAyMTE3NS02NzZjLTQyNDgtYjY5OC1hN2UwYTAwYTczMTE/YXBpLXZlcnNpb249MjAxOS0wMy0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.8.3801.0", + "OSName/Windows10Enterprise", + "OSVersion/6.3.18362", + "Microsoft.Azure.Management.Compute.ComputeManagementClient/1.0.3400.0" + ] + }, + "ResponseBody": "{\r\n \"startTime\": \"2019-06-21T10:18:36.0972648-07:00\",\r\n \"endTime\": \"2019-06-21T10:20:36.2699253-07:00\",\r\n \"status\": \"Succeeded\",\r\n \"name\": \"0c021175-676c-4248-b698-a7e0a00a7311\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "184" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-served-by": [ + "a43bd6e5-1e2d-4891-95e2-a820cfa699e8_132042581257300306,a43bd6e5-1e2d-4891-95e2-a820cfa699e8_132042581257300306" + ], + "x-ms-request-id": [ + "bfc2c0bb-e577-4abe-853b-8b89bd7ab2ce" + ], + "Cache-Control": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11979" + ], + "x-ms-correlation-request-id": [ + "b1d17b87-9ee3-45bc-8ebb-fa0817a4fd16" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190621T172037Z:b1d17b87-9ee3-45bc-8ebb-fa0817a4fd16" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 21 Jun 2019 17:20:37 GMT" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/01523d7c-60da-455e-adef-521b547922c4/providers/Microsoft.Compute/locations/southeastasia/capsOperations/0c021175-676c-4248-b698-a7e0a00a7311?monitor=true&api-version=2019-03-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDE1MjNkN2MtNjBkYS00NTVlLWFkZWYtNTIxYjU0NzkyMmM0L3Byb3ZpZGVycy9NaWNyb3NvZnQuQ29tcHV0ZS9sb2NhdGlvbnMvc291dGhlYXN0YXNpYS9jYXBzT3BlcmF0aW9ucy8wYzAyMTE3NS02NzZjLTQyNDgtYjY5OC1hN2UwYTAwYTczMTE/bW9uaXRvcj10cnVlJmFwaS12ZXJzaW9uPTIwMTktMDMtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.8.3801.0", + "OSName/Windows10Enterprise", + "OSVersion/6.3.18362", + "Microsoft.Azure.Management.Compute.ComputeManagementClient/1.0.3400.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-served-by": [ + "a43bd6e5-1e2d-4891-95e2-a820cfa699e8_132042581257300306,a43bd6e5-1e2d-4891-95e2-a820cfa699e8_132042581257300306" + ], + "x-ms-request-id": [ + "2b069434-6075-4c19-b26f-9d08fc6905cf" + ], + "Cache-Control": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11978" + ], + "x-ms-correlation-request-id": [ + "3694b8f6-bacf-478b-9df7-81c838d861d3" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190621T172038Z:3694b8f6-bacf-478b-9df7-81c838d861d3" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 21 Jun 2019 17:20:37 GMT" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/01523d7c-60da-455e-adef-521b547922c4/resourceGroups/galleryPsTestRg98/providers/Microsoft.Compute/galleries/galleryPsTestGallery6165/applications/galleryPsTestGalleryApplication7825?api-version=2019-03-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDE1MjNkN2MtNjBkYS00NTVlLWFkZWYtNTIxYjU0NzkyMmM0L3Jlc291cmNlR3JvdXBzL2dhbGxlcnlQc1Rlc3RSZzk4L3Byb3ZpZGVycy9NaWNyb3NvZnQuQ29tcHV0ZS9nYWxsZXJpZXMvZ2FsbGVyeVBzVGVzdEdhbGxlcnk2MTY1L2FwcGxpY2F0aW9ucy9nYWxsZXJ5UHNUZXN0R2FsbGVyeUFwcGxpY2F0aW9uNzgyNT9hcGktdmVyc2lvbj0yMDE5LTAzLTAx", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "224b12a4-63fa-4932-bbfe-4e9f8e23b750" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.8.3801.0", + "OSName/Windows10Enterprise", + "OSVersion/6.3.18362", + "Microsoft.Azure.Management.Compute.ComputeManagementClient/1.0.3400.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-served-by": [ + "a43bd6e5-1e2d-4891-95e2-a820cfa699e8_132042581257300306,a43bd6e5-1e2d-4891-95e2-a820cfa699e8_132042581257300306" + ], + "x-ms-request-id": [ + "f9d43d44-18e7-4971-97e3-c38734edddab" + ], + "Cache-Control": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-deletes": [ + "14998" + ], + "x-ms-correlation-request-id": [ + "dc69f04a-42fd-4d4d-a0a8-bd719b282990" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190621T172044Z:dc69f04a-42fd-4d4d-a0a8-bd719b282990" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 21 Jun 2019 17:20:43 GMT" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/01523d7c-60da-455e-adef-521b547922c4/resourceGroups/galleryPsTestRg98/providers/Microsoft.Compute/galleries/galleryPsTestGallery6165?api-version=2019-03-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDE1MjNkN2MtNjBkYS00NTVlLWFkZWYtNTIxYjU0NzkyMmM0L3Jlc291cmNlR3JvdXBzL2dhbGxlcnlQc1Rlc3RSZzk4L3Byb3ZpZGVycy9NaWNyb3NvZnQuQ29tcHV0ZS9nYWxsZXJpZXMvZ2FsbGVyeVBzVGVzdEdhbGxlcnk2MTY1P2FwaS12ZXJzaW9uPTIwMTktMDMtMDE=", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "53f9a74a-e6cb-402a-ac87-adb75bf06193" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.8.3801.0", + "OSName/Windows10Enterprise", + "OSVersion/6.3.18362", + "Microsoft.Azure.Management.Compute.ComputeManagementClient/1.0.3400.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/01523d7c-60da-455e-adef-521b547922c4/providers/Microsoft.Compute/locations/southeastasia/capsOperations/37bc0dcd-c826-4c62-a07d-bd0083c61f0e?api-version=2019-03-01" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-served-by": [ + "a43bd6e5-1e2d-4891-95e2-a820cfa699e8_132042581257300306,a43bd6e5-1e2d-4891-95e2-a820cfa699e8_132042581257300306" + ], + "x-ms-request-id": [ + "37bc0dcd-c826-4c62-a07d-bd0083c61f0e" + ], + "Cache-Control": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/01523d7c-60da-455e-adef-521b547922c4/providers/Microsoft.Compute/locations/southeastasia/capsOperations/37bc0dcd-c826-4c62-a07d-bd0083c61f0e?monitor=true&api-version=2019-03-01" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-deletes": [ + "14997" + ], + "x-ms-correlation-request-id": [ + "cae4400b-6ede-42de-b7cb-3882a1355b65" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190621T172052Z:cae4400b-6ede-42de-b7cb-3882a1355b65" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 21 Jun 2019 17:20:51 GMT" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/01523d7c-60da-455e-adef-521b547922c4/providers/Microsoft.Compute/locations/southeastasia/capsOperations/37bc0dcd-c826-4c62-a07d-bd0083c61f0e?api-version=2019-03-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDE1MjNkN2MtNjBkYS00NTVlLWFkZWYtNTIxYjU0NzkyMmM0L3Byb3ZpZGVycy9NaWNyb3NvZnQuQ29tcHV0ZS9sb2NhdGlvbnMvc291dGhlYXN0YXNpYS9jYXBzT3BlcmF0aW9ucy8zN2JjMGRjZC1jODI2LTRjNjItYTA3ZC1iZDAwODNjNjFmMGU/YXBpLXZlcnNpb249MjAxOS0wMy0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.8.3801.0", + "OSName/Windows10Enterprise", + "OSVersion/6.3.18362", + "Microsoft.Azure.Management.Compute.ComputeManagementClient/1.0.3400.0" + ] + }, + "ResponseBody": "{\r\n \"startTime\": \"2019-06-21T10:20:50.9419646-07:00\",\r\n \"endTime\": \"2019-06-21T10:20:53.6294944-07:00\",\r\n \"status\": \"Succeeded\",\r\n \"name\": \"37bc0dcd-c826-4c62-a07d-bd0083c61f0e\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "184" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-served-by": [ + "a43bd6e5-1e2d-4891-95e2-a820cfa699e8_132042581257300306,a43bd6e5-1e2d-4891-95e2-a820cfa699e8_132042581257300306" + ], + "x-ms-request-id": [ + "0b3e6b33-0de4-4933-a138-5f94450c3106" + ], + "Cache-Control": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11977" + ], + "x-ms-correlation-request-id": [ + "de3aeaf5-7156-467f-be94-80431b3cb232" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190621T172122Z:de3aeaf5-7156-467f-be94-80431b3cb232" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 21 Jun 2019 17:21:21 GMT" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/01523d7c-60da-455e-adef-521b547922c4/providers/Microsoft.Compute/locations/southeastasia/capsOperations/37bc0dcd-c826-4c62-a07d-bd0083c61f0e?monitor=true&api-version=2019-03-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDE1MjNkN2MtNjBkYS00NTVlLWFkZWYtNTIxYjU0NzkyMmM0L3Byb3ZpZGVycy9NaWNyb3NvZnQuQ29tcHV0ZS9sb2NhdGlvbnMvc291dGhlYXN0YXNpYS9jYXBzT3BlcmF0aW9ucy8zN2JjMGRjZC1jODI2LTRjNjItYTA3ZC1iZDAwODNjNjFmMGU/bW9uaXRvcj10cnVlJmFwaS12ZXJzaW9uPTIwMTktMDMtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.8.3801.0", + "OSName/Windows10Enterprise", + "OSVersion/6.3.18362", + "Microsoft.Azure.Management.Compute.ComputeManagementClient/1.0.3400.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-served-by": [ + "a43bd6e5-1e2d-4891-95e2-a820cfa699e8_132042581257300306,a43bd6e5-1e2d-4891-95e2-a820cfa699e8_132042581257300306" + ], + "x-ms-request-id": [ + "df279686-fb47-403f-a1ff-4a980c94e0b9" + ], + "Cache-Control": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11976" + ], + "x-ms-correlation-request-id": [ + "a6341a78-bbad-4de3-b036-f70795977cde" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190621T172122Z:a6341a78-bbad-4de3-b036-f70795977cde" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 21 Jun 2019 17:21:21 GMT" + ] + }, + "StatusCode": 200 + } + ], + "Names": { + "GalleryApplicationVersion_CRUD_Tests": [ + "galleryPsTestRg98", + "psTestSourceApplication9024", + "galleryPsTestGallery6165", + "galleryPsTestGalleryApplication7825" + ], + "CreateApplicationMediaLink": [ + "saforgallery1969", + "asforgallery6282" + ] + }, + "Variables": { + "SubscriptionId": "01523d7c-60da-455e-adef-521b547922c4" + } +} \ No newline at end of file diff --git a/sdk/compute/Microsoft.Azure.Management.Compute/tests/SessionRecords/Compute.Tests.GalleryTests/GalleryApplication_CRUD_Tests.json b/sdk/compute/Microsoft.Azure.Management.Compute/tests/SessionRecords/Compute.Tests.GalleryTests/GalleryApplication_CRUD_Tests.json new file mode 100644 index 000000000000..f35dab4a33d0 --- /dev/null +++ b/sdk/compute/Microsoft.Azure.Management.Compute/tests/SessionRecords/Compute.Tests.GalleryTests/GalleryApplication_CRUD_Tests.json @@ -0,0 +1,872 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/01523d7c-60da-455e-adef-521b547922c4/resourcegroups/galleryPsTestRg7002?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDE1MjNkN2MtNjBkYS00NTVlLWFkZWYtNTIxYjU0NzkyMmM0L3Jlc291cmNlZ3JvdXBzL2dhbGxlcnlQc1Rlc3RSZzcwMDI/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"location\": \"SoutheastAsia\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "35" + ], + "x-ms-client-request-id": [ + "cb210be9-0ca1-46fb-95a7-b0fbf3366208" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.8.3801.0", + "OSName/Windows10Enterprise", + "OSVersion/6.3.18362", + "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/01523d7c-60da-455e-adef-521b547922c4/resourceGroups/galleryPsTestRg7002\",\r\n \"name\": \"galleryPsTestRg7002\",\r\n \"location\": \"southeastasia\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "198" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1199" + ], + "x-ms-request-id": [ + "db64f885-3bae-400c-a84b-2e8132524a9d" + ], + "x-ms-correlation-request-id": [ + "db64f885-3bae-400c-a84b-2e8132524a9d" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190620T174419Z:db64f885-3bae-400c-a84b-2e8132524a9d" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Thu, 20 Jun 2019 17:44:18 GMT" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/01523d7c-60da-455e-adef-521b547922c4/resourceGroups/galleryPsTestRg7002/providers/Microsoft.Compute/galleries/galleryPsTestGallery8654?api-version=2019-03-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDE1MjNkN2MtNjBkYS00NTVlLWFkZWYtNTIxYjU0NzkyMmM0L3Jlc291cmNlR3JvdXBzL2dhbGxlcnlQc1Rlc3RSZzcwMDIvcHJvdmlkZXJzL01pY3Jvc29mdC5Db21wdXRlL2dhbGxlcmllcy9nYWxsZXJ5UHNUZXN0R2FsbGVyeTg2NTQ/YXBpLXZlcnNpb249MjAxOS0wMy0wMQ==", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"description\": \"This is a sample gallery description\"\r\n },\r\n \"location\": \"SoutheastAsia\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "119" + ], + "x-ms-client-request-id": [ + "d79628d2-f8c5-4aaf-bb18-2a9a0f6017f4" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.8.3801.0", + "OSName/Windows10Enterprise", + "OSVersion/6.3.18362", + "Microsoft.Azure.Management.Compute.ComputeManagementClient/1.0.3400.0" + ] + }, + "ResponseBody": "{\r\n \"type\": \"Microsoft.Compute/galleries\",\r\n \"location\": \"southeastasia\",\r\n \"id\": \"/subscriptions/01523d7c-60da-455e-adef-521b547922c4/resourceGroups/galleryPsTestRg7002/providers/Microsoft.Compute/galleries/galleryPsTestGallery8654\",\r\n \"name\": \"galleryPsTestGallery8654\",\r\n \"properties\": {\r\n \"description\": \"This is a sample gallery description\",\r\n \"identifier\": {\r\n \"uniqueName\": \"01523d7c-60da-455e-adef-521b547922c4-GALLERYPSTESTGALLERY8654\"\r\n },\r\n \"provisioningState\": \"Creating\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "514" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/01523d7c-60da-455e-adef-521b547922c4/providers/Microsoft.Compute/locations/southeastasia/capsOperations/208f9705-1c45-4dbe-bbaa-d958448442d6?api-version=2019-03-01" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-served-by": [ + "a43bd6e5-1e2d-4891-95e2-a820cfa699e8_132042581257300306,a43bd6e5-1e2d-4891-95e2-a820cfa699e8_132042581257300306" + ], + "x-ms-request-id": [ + "208f9705-1c45-4dbe-bbaa-d958448442d6" + ], + "Cache-Control": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1199" + ], + "x-ms-correlation-request-id": [ + "b958972d-e43b-48d2-a1e7-20742b280984" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190620T174424Z:b958972d-e43b-48d2-a1e7-20742b280984" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 20 Jun 2019 17:44:23 GMT" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/01523d7c-60da-455e-adef-521b547922c4/providers/Microsoft.Compute/locations/southeastasia/capsOperations/208f9705-1c45-4dbe-bbaa-d958448442d6?api-version=2019-03-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDE1MjNkN2MtNjBkYS00NTVlLWFkZWYtNTIxYjU0NzkyMmM0L3Byb3ZpZGVycy9NaWNyb3NvZnQuQ29tcHV0ZS9sb2NhdGlvbnMvc291dGhlYXN0YXNpYS9jYXBzT3BlcmF0aW9ucy8yMDhmOTcwNS0xYzQ1LTRkYmUtYmJhYS1kOTU4NDQ4NDQyZDY/YXBpLXZlcnNpb249MjAxOS0wMy0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.8.3801.0", + "OSName/Windows10Enterprise", + "OSVersion/6.3.18362", + "Microsoft.Azure.Management.Compute.ComputeManagementClient/1.0.3400.0" + ] + }, + "ResponseBody": "{\r\n \"startTime\": \"2019-06-20T10:44:23.6813156-07:00\",\r\n \"endTime\": \"2019-06-20T10:44:25.3688445-07:00\",\r\n \"status\": \"Succeeded\",\r\n \"name\": \"208f9705-1c45-4dbe-bbaa-d958448442d6\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "184" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-served-by": [ + "a43bd6e5-1e2d-4891-95e2-a820cfa699e8_132042581257300306,a43bd6e5-1e2d-4891-95e2-a820cfa699e8_132042581257300306" + ], + "x-ms-request-id": [ + "1eec708a-0965-4515-9775-4c9ae89d81e0" + ], + "Cache-Control": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11999" + ], + "x-ms-correlation-request-id": [ + "dcbf7f3e-e559-4e35-8f91-2d7f193652d7" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190620T174454Z:dcbf7f3e-e559-4e35-8f91-2d7f193652d7" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 20 Jun 2019 17:44:54 GMT" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/01523d7c-60da-455e-adef-521b547922c4/resourceGroups/galleryPsTestRg7002/providers/Microsoft.Compute/galleries/galleryPsTestGallery8654?api-version=2019-03-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDE1MjNkN2MtNjBkYS00NTVlLWFkZWYtNTIxYjU0NzkyMmM0L3Jlc291cmNlR3JvdXBzL2dhbGxlcnlQc1Rlc3RSZzcwMDIvcHJvdmlkZXJzL01pY3Jvc29mdC5Db21wdXRlL2dhbGxlcmllcy9nYWxsZXJ5UHNUZXN0R2FsbGVyeTg2NTQ/YXBpLXZlcnNpb249MjAxOS0wMy0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.8.3801.0", + "OSName/Windows10Enterprise", + "OSVersion/6.3.18362", + "Microsoft.Azure.Management.Compute.ComputeManagementClient/1.0.3400.0" + ] + }, + "ResponseBody": "{\r\n \"type\": \"Microsoft.Compute/galleries\",\r\n \"location\": \"southeastasia\",\r\n \"id\": \"/subscriptions/01523d7c-60da-455e-adef-521b547922c4/resourceGroups/galleryPsTestRg7002/providers/Microsoft.Compute/galleries/galleryPsTestGallery8654\",\r\n \"name\": \"galleryPsTestGallery8654\",\r\n \"properties\": {\r\n \"description\": \"This is a sample gallery description\",\r\n \"identifier\": {\r\n \"uniqueName\": \"01523d7c-60da-455e-adef-521b547922c4-GALLERYPSTESTGALLERY8654\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "515" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-served-by": [ + "a43bd6e5-1e2d-4891-95e2-a820cfa699e8_132042581257300306,a43bd6e5-1e2d-4891-95e2-a820cfa699e8_132042581257300306" + ], + "x-ms-request-id": [ + "60d0286e-885c-488c-b0c9-6c035e1ddf64" + ], + "Cache-Control": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11998" + ], + "x-ms-correlation-request-id": [ + "df331e05-dca2-495f-8af2-11f3ff188c03" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190620T174455Z:df331e05-dca2-495f-8af2-11f3ff188c03" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 20 Jun 2019 17:44:54 GMT" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/01523d7c-60da-455e-adef-521b547922c4/resourceGroups/galleryPsTestRg7002/providers/Microsoft.Compute/galleries/galleryPsTestGallery8654/applications/galleryPsTestGalleryApplication9111?api-version=2019-03-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDE1MjNkN2MtNjBkYS00NTVlLWFkZWYtNTIxYjU0NzkyMmM0L3Jlc291cmNlR3JvdXBzL2dhbGxlcnlQc1Rlc3RSZzcwMDIvcHJvdmlkZXJzL01pY3Jvc29mdC5Db21wdXRlL2dhbGxlcmllcy9nYWxsZXJ5UHNUZXN0R2FsbGVyeTg2NTQvYXBwbGljYXRpb25zL2dhbGxlcnlQc1Rlc3RHYWxsZXJ5QXBwbGljYXRpb245MTExP2FwaS12ZXJzaW9uPTIwMTktMDMtMDE=", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"description\": \"This is the gallery application description.\",\r\n \"eula\": \"This is the gallery application EULA.\",\r\n \"privacyStatementUri\": \"www.privacystatement.com\",\r\n \"releaseNoteUri\": \"www.releasenote.com\",\r\n \"supportedOSType\": \"Windows\"\r\n },\r\n \"location\": \"SoutheastAsia\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "318" + ], + "x-ms-client-request-id": [ + "c5820eec-5cac-4f96-b0af-ba083da11a83" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.8.3801.0", + "OSName/Windows10Enterprise", + "OSVersion/6.3.18362", + "Microsoft.Azure.Management.Compute.ComputeManagementClient/1.0.3400.0" + ] + }, + "ResponseBody": "{\r\n \"type\": \"Microsoft.Compute/galleries/applications\",\r\n \"location\": \"southeastasia\",\r\n \"id\": \"/subscriptions/01523d7c-60da-455e-adef-521b547922c4/resourceGroups/galleryPsTestRg7002/providers/Microsoft.Compute/galleries/galleryPsTestGallery8654/applications/galleryPsTestGalleryApplication9111\",\r\n \"name\": \"galleryPsTestGalleryApplication9111\",\r\n \"properties\": {\r\n \"supportedOSType\": \"Windows\",\r\n \"description\": \"This is the gallery application description.\",\r\n \"eula\": \"This is the gallery application EULA.\",\r\n \"privacyStatementUri\": \"www.privacystatement.com\",\r\n \"releaseNoteUri\": \"www.releasenote.com\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "634" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-served-by": [ + "a43bd6e5-1e2d-4891-95e2-a820cfa699e8_132042581257300306,a43bd6e5-1e2d-4891-95e2-a820cfa699e8_132042581257300306" + ], + "x-ms-request-id": [ + "a10a7a9b-c330-4207-8cae-87299d5061be" + ], + "Cache-Control": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1198" + ], + "x-ms-correlation-request-id": [ + "3d82e829-c49a-45e2-aefc-2ee776f3e510" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190620T174455Z:3d82e829-c49a-45e2-aefc-2ee776f3e510" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 20 Jun 2019 17:44:55 GMT" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/01523d7c-60da-455e-adef-521b547922c4/resourceGroups/galleryPsTestRg7002/providers/Microsoft.Compute/galleries/galleryPsTestGallery8654/applications/galleryPsTestGalleryApplication9111?api-version=2019-03-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDE1MjNkN2MtNjBkYS00NTVlLWFkZWYtNTIxYjU0NzkyMmM0L3Jlc291cmNlR3JvdXBzL2dhbGxlcnlQc1Rlc3RSZzcwMDIvcHJvdmlkZXJzL01pY3Jvc29mdC5Db21wdXRlL2dhbGxlcmllcy9nYWxsZXJ5UHNUZXN0R2FsbGVyeTg2NTQvYXBwbGljYXRpb25zL2dhbGxlcnlQc1Rlc3RHYWxsZXJ5QXBwbGljYXRpb245MTExP2FwaS12ZXJzaW9uPTIwMTktMDMtMDE=", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"description\": \"Updated description.\",\r\n \"eula\": \"This is the gallery application EULA.\",\r\n \"privacyStatementUri\": \"www.privacystatement.com\",\r\n \"releaseNoteUri\": \"www.releasenote.com\",\r\n \"supportedOSType\": \"Windows\"\r\n },\r\n \"location\": \"SoutheastAsia\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "294" + ], + "x-ms-client-request-id": [ + "bfe41505-2897-46fd-99fe-8758b79b0983" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.8.3801.0", + "OSName/Windows10Enterprise", + "OSVersion/6.3.18362", + "Microsoft.Azure.Management.Compute.ComputeManagementClient/1.0.3400.0" + ] + }, + "ResponseBody": "{\r\n \"type\": \"Microsoft.Compute/galleries/applications\",\r\n \"location\": \"southeastasia\",\r\n \"id\": \"/subscriptions/01523d7c-60da-455e-adef-521b547922c4/resourceGroups/galleryPsTestRg7002/providers/Microsoft.Compute/galleries/galleryPsTestGallery8654/applications/galleryPsTestGalleryApplication9111\",\r\n \"name\": \"galleryPsTestGalleryApplication9111\",\r\n \"properties\": {\r\n \"supportedOSType\": \"Windows\",\r\n \"description\": \"Updated description.\",\r\n \"eula\": \"This is the gallery application EULA.\",\r\n \"privacyStatementUri\": \"www.privacystatement.com\",\r\n \"releaseNoteUri\": \"www.releasenote.com\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "610" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-served-by": [ + "a43bd6e5-1e2d-4891-95e2-a820cfa699e8_132042581257300306,a43bd6e5-1e2d-4891-95e2-a820cfa699e8_132042581257300306" + ], + "x-ms-request-id": [ + "7c843f56-d133-4428-b664-45fd598854dc" + ], + "Cache-Control": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1197" + ], + "x-ms-correlation-request-id": [ + "5eb09126-cb08-44a3-acb2-91ae82d226b8" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190620T174526Z:5eb09126-cb08-44a3-acb2-91ae82d226b8" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 20 Jun 2019 17:45:26 GMT" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/01523d7c-60da-455e-adef-521b547922c4/resourceGroups/galleryPsTestRg7002/providers/Microsoft.Compute/galleries/galleryPsTestGallery8654/applications/galleryPsTestGalleryApplication9111?api-version=2019-03-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDE1MjNkN2MtNjBkYS00NTVlLWFkZWYtNTIxYjU0NzkyMmM0L3Jlc291cmNlR3JvdXBzL2dhbGxlcnlQc1Rlc3RSZzcwMDIvcHJvdmlkZXJzL01pY3Jvc29mdC5Db21wdXRlL2dhbGxlcmllcy9nYWxsZXJ5UHNUZXN0R2FsbGVyeTg2NTQvYXBwbGljYXRpb25zL2dhbGxlcnlQc1Rlc3RHYWxsZXJ5QXBwbGljYXRpb245MTExP2FwaS12ZXJzaW9uPTIwMTktMDMtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.8.3801.0", + "OSName/Windows10Enterprise", + "OSVersion/6.3.18362", + "Microsoft.Azure.Management.Compute.ComputeManagementClient/1.0.3400.0" + ] + }, + "ResponseBody": "{\r\n \"type\": \"Microsoft.Compute/galleries/applications\",\r\n \"location\": \"southeastasia\",\r\n \"id\": \"/subscriptions/01523d7c-60da-455e-adef-521b547922c4/resourceGroups/galleryPsTestRg7002/providers/Microsoft.Compute/galleries/galleryPsTestGallery8654/applications/galleryPsTestGalleryApplication9111\",\r\n \"name\": \"galleryPsTestGalleryApplication9111\",\r\n \"properties\": {\r\n \"supportedOSType\": \"Windows\",\r\n \"description\": \"This is the gallery application description.\",\r\n \"eula\": \"This is the gallery application EULA.\",\r\n \"privacyStatementUri\": \"www.privacystatement.com\",\r\n \"releaseNoteUri\": \"www.releasenote.com\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "634" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-served-by": [ + "a43bd6e5-1e2d-4891-95e2-a820cfa699e8_132042581257300306,a43bd6e5-1e2d-4891-95e2-a820cfa699e8_132042581257300306" + ], + "x-ms-request-id": [ + "54de5015-7e96-4723-8cab-575c7e3caf1d" + ], + "Cache-Control": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11997" + ], + "x-ms-correlation-request-id": [ + "75546e17-a673-41a1-a218-c318b84a7a2e" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190620T174526Z:75546e17-a673-41a1-a218-c318b84a7a2e" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 20 Jun 2019 17:45:25 GMT" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/01523d7c-60da-455e-adef-521b547922c4/resourceGroups/galleryPsTestRg7002/providers/Microsoft.Compute/galleries/galleryPsTestGallery8654/applications/galleryPsTestGalleryApplication9111?api-version=2019-03-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDE1MjNkN2MtNjBkYS00NTVlLWFkZWYtNTIxYjU0NzkyMmM0L3Jlc291cmNlR3JvdXBzL2dhbGxlcnlQc1Rlc3RSZzcwMDIvcHJvdmlkZXJzL01pY3Jvc29mdC5Db21wdXRlL2dhbGxlcmllcy9nYWxsZXJ5UHNUZXN0R2FsbGVyeTg2NTQvYXBwbGljYXRpb25zL2dhbGxlcnlQc1Rlc3RHYWxsZXJ5QXBwbGljYXRpb245MTExP2FwaS12ZXJzaW9uPTIwMTktMDMtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "5305f181-74be-4c30-a0b8-59f7eb3abd1b" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.8.3801.0", + "OSName/Windows10Enterprise", + "OSVersion/6.3.18362", + "Microsoft.Azure.Management.Compute.ComputeManagementClient/1.0.3400.0" + ] + }, + "ResponseBody": "{\r\n \"type\": \"Microsoft.Compute/galleries/applications\",\r\n \"location\": \"southeastasia\",\r\n \"id\": \"/subscriptions/01523d7c-60da-455e-adef-521b547922c4/resourceGroups/galleryPsTestRg7002/providers/Microsoft.Compute/galleries/galleryPsTestGallery8654/applications/galleryPsTestGalleryApplication9111\",\r\n \"name\": \"galleryPsTestGalleryApplication9111\",\r\n \"properties\": {\r\n \"supportedOSType\": \"Windows\",\r\n \"description\": \"This is the gallery application description.\",\r\n \"eula\": \"This is the gallery application EULA.\",\r\n \"privacyStatementUri\": \"www.privacystatement.com\",\r\n \"releaseNoteUri\": \"www.releasenote.com\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "634" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-served-by": [ + "a43bd6e5-1e2d-4891-95e2-a820cfa699e8_132042581257300306,a43bd6e5-1e2d-4891-95e2-a820cfa699e8_132042581257300306" + ], + "x-ms-request-id": [ + "5e3d8eeb-0b01-4d15-9275-6112f727af2a" + ], + "Cache-Control": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11996" + ], + "x-ms-correlation-request-id": [ + "2f210e91-8694-4b0e-9b2d-682b38eb03a8" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190620T174526Z:2f210e91-8694-4b0e-9b2d-682b38eb03a8" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 20 Jun 2019 17:45:25 GMT" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/01523d7c-60da-455e-adef-521b547922c4/resourceGroups/galleryPsTestRg7002/providers/Microsoft.Compute/galleries/galleryPsTestGallery8654/applications/galleryPsTestGalleryApplication9111?api-version=2019-03-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDE1MjNkN2MtNjBkYS00NTVlLWFkZWYtNTIxYjU0NzkyMmM0L3Jlc291cmNlR3JvdXBzL2dhbGxlcnlQc1Rlc3RSZzcwMDIvcHJvdmlkZXJzL01pY3Jvc29mdC5Db21wdXRlL2dhbGxlcmllcy9nYWxsZXJ5UHNUZXN0R2FsbGVyeTg2NTQvYXBwbGljYXRpb25zL2dhbGxlcnlQc1Rlc3RHYWxsZXJ5QXBwbGljYXRpb245MTExP2FwaS12ZXJzaW9uPTIwMTktMDMtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "51f8396c-8738-490e-b8e6-4bfbd7178621" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.8.3801.0", + "OSName/Windows10Enterprise", + "OSVersion/6.3.18362", + "Microsoft.Azure.Management.Compute.ComputeManagementClient/1.0.3400.0" + ] + }, + "ResponseBody": "{\r\n \"type\": \"Microsoft.Compute/galleries/applications\",\r\n \"location\": \"southeastasia\",\r\n \"id\": \"/subscriptions/01523d7c-60da-455e-adef-521b547922c4/resourceGroups/galleryPsTestRg7002/providers/Microsoft.Compute/galleries/galleryPsTestGallery8654/applications/galleryPsTestGalleryApplication9111\",\r\n \"name\": \"galleryPsTestGalleryApplication9111\",\r\n \"properties\": {\r\n \"supportedOSType\": \"Windows\",\r\n \"description\": \"Updated description.\",\r\n \"eula\": \"This is the gallery application EULA.\",\r\n \"privacyStatementUri\": \"www.privacystatement.com\",\r\n \"releaseNoteUri\": \"www.releasenote.com\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "610" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-served-by": [ + "a43bd6e5-1e2d-4891-95e2-a820cfa699e8_132042581257300306,a43bd6e5-1e2d-4891-95e2-a820cfa699e8_132042581257300306" + ], + "x-ms-request-id": [ + "16e0a56e-b83f-445f-a281-1b3fab825871" + ], + "Cache-Control": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11995" + ], + "x-ms-correlation-request-id": [ + "14efd4f6-f0a7-4e28-bc21-e6c7b0756773" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190620T174527Z:14efd4f6-f0a7-4e28-bc21-e6c7b0756773" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 20 Jun 2019 17:45:26 GMT" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/01523d7c-60da-455e-adef-521b547922c4/resourceGroups/galleryPsTestRg7002/providers/Microsoft.Compute/galleries/galleryPsTestGallery8654/applications/galleryPsTestGalleryApplication9111?api-version=2019-03-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDE1MjNkN2MtNjBkYS00NTVlLWFkZWYtNTIxYjU0NzkyMmM0L3Jlc291cmNlR3JvdXBzL2dhbGxlcnlQc1Rlc3RSZzcwMDIvcHJvdmlkZXJzL01pY3Jvc29mdC5Db21wdXRlL2dhbGxlcmllcy9nYWxsZXJ5UHNUZXN0R2FsbGVyeTg2NTQvYXBwbGljYXRpb25zL2dhbGxlcnlQc1Rlc3RHYWxsZXJ5QXBwbGljYXRpb245MTExP2FwaS12ZXJzaW9uPTIwMTktMDMtMDE=", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "9f2b835c-02b2-4814-86c0-a159d5641727" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.8.3801.0", + "OSName/Windows10Enterprise", + "OSVersion/6.3.18362", + "Microsoft.Azure.Management.Compute.ComputeManagementClient/1.0.3400.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-served-by": [ + "a43bd6e5-1e2d-4891-95e2-a820cfa699e8_132042581257300306,a43bd6e5-1e2d-4891-95e2-a820cfa699e8_132042581257300306" + ], + "x-ms-request-id": [ + "ebad65bc-8bf5-4258-8dc3-c998586cb506" + ], + "Cache-Control": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-deletes": [ + "14999" + ], + "x-ms-correlation-request-id": [ + "d0f25cb3-e8da-42f4-9e54-2b1913729f70" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190620T174527Z:d0f25cb3-e8da-42f4-9e54-2b1913729f70" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 20 Jun 2019 17:45:26 GMT" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/01523d7c-60da-455e-adef-521b547922c4/resourceGroups/galleryPsTestRg7002/providers/Microsoft.Compute/galleries/galleryPsTestGallery8654?api-version=2019-03-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDE1MjNkN2MtNjBkYS00NTVlLWFkZWYtNTIxYjU0NzkyMmM0L3Jlc291cmNlR3JvdXBzL2dhbGxlcnlQc1Rlc3RSZzcwMDIvcHJvdmlkZXJzL01pY3Jvc29mdC5Db21wdXRlL2dhbGxlcmllcy9nYWxsZXJ5UHNUZXN0R2FsbGVyeTg2NTQ/YXBpLXZlcnNpb249MjAxOS0wMy0wMQ==", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "8fc98897-626a-4f2b-bec6-8973ce542a2f" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.8.3801.0", + "OSName/Windows10Enterprise", + "OSVersion/6.3.18362", + "Microsoft.Azure.Management.Compute.ComputeManagementClient/1.0.3400.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/01523d7c-60da-455e-adef-521b547922c4/providers/Microsoft.Compute/locations/southeastasia/capsOperations/bea794f4-e10d-45a2-8d38-e61fb21dc6d3?api-version=2019-03-01" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-served-by": [ + "a43bd6e5-1e2d-4891-95e2-a820cfa699e8_132042581257300306,a43bd6e5-1e2d-4891-95e2-a820cfa699e8_132042581257300306" + ], + "x-ms-request-id": [ + "bea794f4-e10d-45a2-8d38-e61fb21dc6d3" + ], + "Cache-Control": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/01523d7c-60da-455e-adef-521b547922c4/providers/Microsoft.Compute/locations/southeastasia/capsOperations/bea794f4-e10d-45a2-8d38-e61fb21dc6d3?monitor=true&api-version=2019-03-01" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-deletes": [ + "14998" + ], + "x-ms-correlation-request-id": [ + "278b6e57-1e18-49b1-a63d-e6ddfd5bad48" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190620T174530Z:278b6e57-1e18-49b1-a63d-e6ddfd5bad48" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 20 Jun 2019 17:45:29 GMT" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/01523d7c-60da-455e-adef-521b547922c4/providers/Microsoft.Compute/locations/southeastasia/capsOperations/bea794f4-e10d-45a2-8d38-e61fb21dc6d3?api-version=2019-03-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDE1MjNkN2MtNjBkYS00NTVlLWFkZWYtNTIxYjU0NzkyMmM0L3Byb3ZpZGVycy9NaWNyb3NvZnQuQ29tcHV0ZS9sb2NhdGlvbnMvc291dGhlYXN0YXNpYS9jYXBzT3BlcmF0aW9ucy9iZWE3OTRmNC1lMTBkLTQ1YTItOGQzOC1lNjFmYjIxZGM2ZDM/YXBpLXZlcnNpb249MjAxOS0wMy0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.8.3801.0", + "OSName/Windows10Enterprise", + "OSVersion/6.3.18362", + "Microsoft.Azure.Management.Compute.ComputeManagementClient/1.0.3400.0" + ] + }, + "ResponseBody": "{\r\n \"startTime\": \"2019-06-20T10:45:28.6352692-07:00\",\r\n \"endTime\": \"2019-06-20T10:45:30.6196783-07:00\",\r\n \"status\": \"Succeeded\",\r\n \"name\": \"bea794f4-e10d-45a2-8d38-e61fb21dc6d3\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "184" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-served-by": [ + "a43bd6e5-1e2d-4891-95e2-a820cfa699e8_132042581257300306,a43bd6e5-1e2d-4891-95e2-a820cfa699e8_132042581257300306" + ], + "x-ms-request-id": [ + "017c4093-8554-471e-b30b-aeb46f57baf2" + ], + "Cache-Control": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11999" + ], + "x-ms-correlation-request-id": [ + "1360876b-cfff-4d3d-823a-d9174369e4b4" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190620T174600Z:1360876b-cfff-4d3d-823a-d9174369e4b4" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 20 Jun 2019 17:45:59 GMT" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/01523d7c-60da-455e-adef-521b547922c4/providers/Microsoft.Compute/locations/southeastasia/capsOperations/bea794f4-e10d-45a2-8d38-e61fb21dc6d3?monitor=true&api-version=2019-03-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDE1MjNkN2MtNjBkYS00NTVlLWFkZWYtNTIxYjU0NzkyMmM0L3Byb3ZpZGVycy9NaWNyb3NvZnQuQ29tcHV0ZS9sb2NhdGlvbnMvc291dGhlYXN0YXNpYS9jYXBzT3BlcmF0aW9ucy9iZWE3OTRmNC1lMTBkLTQ1YTItOGQzOC1lNjFmYjIxZGM2ZDM/bW9uaXRvcj10cnVlJmFwaS12ZXJzaW9uPTIwMTktMDMtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.8.3801.0", + "OSName/Windows10Enterprise", + "OSVersion/6.3.18362", + "Microsoft.Azure.Management.Compute.ComputeManagementClient/1.0.3400.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-served-by": [ + "a43bd6e5-1e2d-4891-95e2-a820cfa699e8_132042581257300306,a43bd6e5-1e2d-4891-95e2-a820cfa699e8_132042581257300306" + ], + "x-ms-request-id": [ + "1e1dd829-a777-48fa-8fad-c9be7e46152f" + ], + "Cache-Control": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11998" + ], + "x-ms-correlation-request-id": [ + "3b94f2ca-8136-4daf-b6d6-900b5e5f9ee0" + ], + "x-ms-routing-request-id": [ + "WESTUS:20190620T174601Z:3b94f2ca-8136-4daf-b6d6-900b5e5f9ee0" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 20 Jun 2019 17:46:01 GMT" + ] + }, + "StatusCode": 200 + } + ], + "Names": { + "GalleryApplication_CRUD_Tests": [ + "galleryPsTestRg7002", + "galleryPsTestGallery8654", + "galleryPsTestGalleryApplication9111" + ] + }, + "Variables": { + "SubscriptionId": "01523d7c-60da-455e-adef-521b547922c4" + } +} \ No newline at end of file