diff --git a/eng/mgmt/mgmtmetadata/attestation_resource-manager.txt b/eng/mgmt/mgmtmetadata/attestation_resource-manager.txt index 8ae306790eeb..9b5959513204 100644 --- a/eng/mgmt/mgmtmetadata/attestation_resource-manager.txt +++ b/eng/mgmt/mgmtmetadata/attestation_resource-manager.txt @@ -3,12 +3,12 @@ AutoRest installed successfully. Commencing code generation Generating CSharp code Executing AutoRest command -cmd.exe /c autorest.cmd https://github.com/Azure/azure-rest-api-specs/blob/master/specification/attestation/resource-manager/readme.md --csharp --version=latest --reflect-api-versions --csharp-sdks-folder=C:\azure-sdk-for-net\sdk -2019-11-20 19:18:25 UTC +cmd.exe /c autorest.cmd https://github.com/Azure/azure-rest-api-specs/blob/master/specification/attestation/resource-manager/readme.md --csharp --version=latest --reflect-api-versions --csharp-sdks-folder=C:\github\gkostal\azure-sdk-for-net\sdk +2020-02-28 13:33:27 UTC Azure-rest-api-specs repository information GitHub fork: Azure Branch: master -Commit: 65862acc6ca8d117bff3258d409d8a9d8244f773 +Commit: 719827a2f6560db22a873828100b8aff1317c483 AutoRest information Requested version: latest -Bootstrapper version: autorest@2.0.4407 +Bootstrapper version: autorest@2.0.4413 diff --git a/sdk/attestation/Microsoft.Azure.Management.Attestation/src/Generated/AttestationProvidersOperations.cs b/sdk/attestation/Microsoft.Azure.Management.Attestation/src/Generated/AttestationProvidersOperations.cs index 144126363202..707cec80ae88 100644 --- a/sdk/attestation/Microsoft.Azure.Management.Attestation/src/Generated/AttestationProvidersOperations.cs +++ b/sdk/attestation/Microsoft.Azure.Management.Attestation/src/Generated/AttestationProvidersOperations.cs @@ -116,6 +116,7 @@ internal AttestationProvidersOperations(AttestationManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "providerName"); } + string apiVersion = "2018-09-01-preview"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -125,6 +126,7 @@ internal AttestationProvidersOperations(AttestationManagementClient client) Dictionary tracingParameters = new Dictionary(); tracingParameters.Add("resourceGroupName", resourceGroupName); tracingParameters.Add("providerName", providerName); + tracingParameters.Add("apiVersion", apiVersion); tracingParameters.Add("cancellationToken", cancellationToken); ServiceClientTracing.Enter(_invocationId, this, "Get", tracingParameters); } @@ -135,9 +137,9 @@ internal AttestationProvidersOperations(AttestationManagementClient client) _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); _url = _url.Replace("{providerName}", System.Uri.EscapeDataString(providerName)); List _queryParameters = new List(); - if (Client.ApiVersion != null) + if (apiVersion != null) { - _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion))); } if (_queryParameters.Count > 0) { @@ -297,7 +299,7 @@ internal AttestationProvidersOperations(AttestationManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task> CreateWithHttpMessagesAsync(string resourceGroupName, string providerName, AttestationServiceCreationParams creationParams = default(AttestationServiceCreationParams), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> CreateWithHttpMessagesAsync(string resourceGroupName, string providerName, AttestationServiceCreationParams creationParams, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (Client.SubscriptionId == null) { @@ -333,6 +335,15 @@ internal AttestationProvidersOperations(AttestationManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "providerName"); } + if (creationParams == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "creationParams"); + } + if (creationParams != null) + { + creationParams.Validate(); + } + string apiVersion = "2018-09-01-preview"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -342,6 +353,7 @@ internal AttestationProvidersOperations(AttestationManagementClient client) Dictionary tracingParameters = new Dictionary(); tracingParameters.Add("resourceGroupName", resourceGroupName); tracingParameters.Add("providerName", providerName); + tracingParameters.Add("apiVersion", apiVersion); tracingParameters.Add("creationParams", creationParams); tracingParameters.Add("cancellationToken", cancellationToken); ServiceClientTracing.Enter(_invocationId, this, "Create", tracingParameters); @@ -353,9 +365,9 @@ internal AttestationProvidersOperations(AttestationManagementClient client) _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); _url = _url.Replace("{providerName}", System.Uri.EscapeDataString(providerName)); List _queryParameters = new List(); - if (Client.ApiVersion != null) + if (apiVersion != null) { - _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion))); } if (_queryParameters.Count > 0) { @@ -506,6 +518,236 @@ internal AttestationProvidersOperations(AttestationManagementClient client) return _result; } + /// + /// Updates the Attestation Provider. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the attestation service + /// + /// + /// Client supplied parameters. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task> UpdateWithHttpMessagesAsync(string resourceGroupName, string providerName, AttestationServicePatchParams updateParams, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (Client.SubscriptionId != null) + { + if (Client.SubscriptionId.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "Client.SubscriptionId", 1); + } + } + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (resourceGroupName != null) + { + if (resourceGroupName.Length > 90) + { + throw new ValidationException(ValidationRules.MaxLength, "resourceGroupName", 90); + } + if (resourceGroupName.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); + } + if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$")) + { + throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$"); + } + } + if (providerName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "providerName"); + } + if (updateParams == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "updateParams"); + } + string apiVersion = "2018-09-01-preview"; + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("providerName", providerName); + tracingParameters.Add("apiVersion", apiVersion); + tracingParameters.Add("updateParams", updateParams); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "Update", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Attestation/attestationProviders/{providerName}").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{providerName}", System.Uri.EscapeDataString(providerName)); + 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("PATCH"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + if(updateParams != null) + { + _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(updateParams, Client.SerializationSettings); + _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); + _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); + } + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + /// /// Delete Attestation Service. /// @@ -569,6 +811,7 @@ internal AttestationProvidersOperations(AttestationManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "providerName"); } + string apiVersion = "2018-09-01-preview"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -578,6 +821,7 @@ internal AttestationProvidersOperations(AttestationManagementClient client) Dictionary tracingParameters = new Dictionary(); tracingParameters.Add("resourceGroupName", resourceGroupName); tracingParameters.Add("providerName", providerName); + tracingParameters.Add("apiVersion", apiVersion); tracingParameters.Add("cancellationToken", cancellationToken); ServiceClientTracing.Enter(_invocationId, this, "Delete", tracingParameters); } @@ -588,9 +832,9 @@ internal AttestationProvidersOperations(AttestationManagementClient client) _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); _url = _url.Replace("{providerName}", System.Uri.EscapeDataString(providerName)); List _queryParameters = new List(); - if (Client.ApiVersion != null) + if (apiVersion != null) { - _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion))); } if (_queryParameters.Count > 0) { @@ -736,6 +980,7 @@ internal AttestationProvidersOperations(AttestationManagementClient client) throw new ValidationException(ValidationRules.MinLength, "Client.SubscriptionId", 1); } } + string apiVersion = "2018-09-01-preview"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -743,6 +988,7 @@ internal AttestationProvidersOperations(AttestationManagementClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("apiVersion", apiVersion); tracingParameters.Add("cancellationToken", cancellationToken); ServiceClientTracing.Enter(_invocationId, this, "List", tracingParameters); } @@ -751,9 +997,9 @@ internal AttestationProvidersOperations(AttestationManagementClient client) var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/providers/Microsoft.Attestation/attestationProviders").ToString(); _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); List _queryParameters = new List(); - if (Client.ApiVersion != null) + if (apiVersion != null) { - _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion))); } if (_queryParameters.Count > 0) { @@ -939,6 +1185,7 @@ internal AttestationProvidersOperations(AttestationManagementClient client) throw new ValidationException(ValidationRules.MinLength, "Client.SubscriptionId", 1); } } + string apiVersion = "2018-09-01-preview"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -947,6 +1194,7 @@ internal AttestationProvidersOperations(AttestationManagementClient client) _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("apiVersion", apiVersion); tracingParameters.Add("cancellationToken", cancellationToken); ServiceClientTracing.Enter(_invocationId, this, "ListByResourceGroup", tracingParameters); } @@ -956,9 +1204,9 @@ internal AttestationProvidersOperations(AttestationManagementClient client) _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); List _queryParameters = new List(); - if (Client.ApiVersion != null) + if (apiVersion != null) { - _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion))); } if (_queryParameters.Count > 0) { diff --git a/sdk/attestation/Microsoft.Azure.Management.Attestation/src/Generated/AttestationProvidersOperationsExtensions.cs b/sdk/attestation/Microsoft.Azure.Management.Attestation/src/Generated/AttestationProvidersOperationsExtensions.cs index b72ced3bf742..f1cc4c0daca7 100644 --- a/sdk/attestation/Microsoft.Azure.Management.Attestation/src/Generated/AttestationProvidersOperationsExtensions.cs +++ b/sdk/attestation/Microsoft.Azure.Management.Attestation/src/Generated/AttestationProvidersOperationsExtensions.cs @@ -76,7 +76,7 @@ public static AttestationProvider Get(this IAttestationProvidersOperations opera /// /// Client supplied parameters. /// - public static AttestationProvider Create(this IAttestationProvidersOperations operations, string resourceGroupName, string providerName, AttestationServiceCreationParams creationParams = default(AttestationServiceCreationParams)) + public static AttestationProvider Create(this IAttestationProvidersOperations operations, string resourceGroupName, string providerName, AttestationServiceCreationParams creationParams) { return operations.CreateAsync(resourceGroupName, providerName, creationParams).GetAwaiter().GetResult(); } @@ -99,7 +99,7 @@ public static AttestationProvider Get(this IAttestationProvidersOperations opera /// /// The cancellation token. /// - public static async Task CreateAsync(this IAttestationProvidersOperations operations, string resourceGroupName, string providerName, AttestationServiceCreationParams creationParams = default(AttestationServiceCreationParams), CancellationToken cancellationToken = default(CancellationToken)) + public static async Task CreateAsync(this IAttestationProvidersOperations operations, string resourceGroupName, string providerName, AttestationServiceCreationParams creationParams, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.CreateWithHttpMessagesAsync(resourceGroupName, providerName, creationParams, null, cancellationToken).ConfigureAwait(false)) { @@ -107,6 +107,52 @@ public static AttestationProvider Get(this IAttestationProvidersOperations opera } } + /// + /// Updates the Attestation Provider. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the attestation service + /// + /// + /// Client supplied parameters. + /// + public static AttestationProvider Update(this IAttestationProvidersOperations operations, string resourceGroupName, string providerName, AttestationServicePatchParams updateParams) + { + return operations.UpdateAsync(resourceGroupName, providerName, updateParams).GetAwaiter().GetResult(); + } + + /// + /// Updates the Attestation Provider. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the attestation service + /// + /// + /// Client supplied parameters. + /// + /// + /// The cancellation token. + /// + public static async Task UpdateAsync(this IAttestationProvidersOperations operations, string resourceGroupName, string providerName, AttestationServicePatchParams updateParams, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.UpdateWithHttpMessagesAsync(resourceGroupName, providerName, updateParams, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + /// /// Delete Attestation Service. /// diff --git a/sdk/attestation/Microsoft.Azure.Management.Attestation/src/Generated/IAttestationProvidersOperations.cs b/sdk/attestation/Microsoft.Azure.Management.Attestation/src/Generated/IAttestationProvidersOperations.cs index 697445043c27..be889a17ae2c 100644 --- a/sdk/attestation/Microsoft.Azure.Management.Attestation/src/Generated/IAttestationProvidersOperations.cs +++ b/sdk/attestation/Microsoft.Azure.Management.Attestation/src/Generated/IAttestationProvidersOperations.cs @@ -75,7 +75,35 @@ public partial interface IAttestationProvidersOperations /// /// Thrown when a required parameter is null /// - Task> CreateWithHttpMessagesAsync(string resourceGroupName, string providerName, AttestationServiceCreationParams creationParams = default(AttestationServiceCreationParams), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> CreateWithHttpMessagesAsync(string resourceGroupName, string providerName, AttestationServiceCreationParams creationParams, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Updates the Attestation Provider. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the attestation service + /// + /// + /// Client supplied parameters. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> UpdateWithHttpMessagesAsync(string resourceGroupName, string providerName, AttestationServicePatchParams updateParams, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Delete Attestation Service. /// diff --git a/sdk/attestation/Microsoft.Azure.Management.Attestation/src/Generated/Models/AttestationProvider.cs b/sdk/attestation/Microsoft.Azure.Management.Attestation/src/Generated/Models/AttestationProvider.cs index f695ddc18d4b..f62c9c9d8376 100644 --- a/sdk/attestation/Microsoft.Azure.Management.Attestation/src/Generated/Models/AttestationProvider.cs +++ b/sdk/attestation/Microsoft.Azure.Management.Attestation/src/Generated/Models/AttestationProvider.cs @@ -13,13 +13,15 @@ namespace Microsoft.Azure.Management.Attestation.Models using Microsoft.Rest; using Microsoft.Rest.Serialization; using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; using System.Linq; /// /// Attestation service response message. /// [Rest.Serialization.JsonTransformation] - public partial class AttestationProvider : Resource + public partial class AttestationProvider : TrackedResource { /// /// Initializes a new instance of the AttestationProvider class. @@ -32,6 +34,8 @@ public AttestationProvider() /// /// Initializes a new instance of the AttestationProvider class. /// + /// The geo-location where the resource + /// lives /// Status of attestation service. Possible values /// include: 'Ready', 'NotReady', 'Error' /// Fully qualified resource Id for the resource. Ex - @@ -40,10 +44,14 @@ public AttestationProvider() /// The type of the resource. Ex- /// Microsoft.Compute/virtualMachines or /// Microsoft.Storage/storageAccounts. + /// Resource tags. + /// Trust model for the attestation service + /// instance. /// Gets the uri of attestation service - public AttestationProvider(string status, string id = default(string), string name = default(string), string type = default(string), string attestUri = default(string)) - : base(id, name, type) + public AttestationProvider(string location, string status, string id = default(string), string name = default(string), string type = default(string), IDictionary tags = default(IDictionary), string trustModel = default(string), string attestUri = default(string)) + : base(location, id, name, type, tags) { + TrustModel = trustModel; Status = status; AttestUri = attestUri; CustomInit(); @@ -54,6 +62,12 @@ public AttestationProvider() /// partial void CustomInit(); + /// + /// Gets or sets trust model for the attestation service instance. + /// + [JsonProperty(PropertyName = "properties.trustModel")] + public string TrustModel { get; set; } + /// /// Gets or sets status of attestation service. Possible values /// include: 'Ready', 'NotReady', 'Error' @@ -73,8 +87,9 @@ public AttestationProvider() /// /// Thrown if validation fails /// - public virtual void Validate() + public override void Validate() { + base.Validate(); if (Status == null) { throw new ValidationException(ValidationRules.CannotBeNull, "Status"); diff --git a/sdk/attestation/Microsoft.Azure.Management.Attestation/src/Generated/Models/AttestationServiceCreationParams.cs b/sdk/attestation/Microsoft.Azure.Management.Attestation/src/Generated/Models/AttestationServiceCreationParams.cs index c60d0e0f78de..8f6f8d969aaa 100644 --- a/sdk/attestation/Microsoft.Azure.Management.Attestation/src/Generated/Models/AttestationServiceCreationParams.cs +++ b/sdk/attestation/Microsoft.Azure.Management.Attestation/src/Generated/Models/AttestationServiceCreationParams.cs @@ -10,13 +10,17 @@ namespace Microsoft.Azure.Management.Attestation.Models { + using Microsoft.Rest; + using Microsoft.Rest.Azure; using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; using System.Linq; /// - /// Client supplied parameters passed to attestation service. + /// Parameters for creating an attestation service instance /// - public partial class AttestationServiceCreationParams + public partial class AttestationServiceCreationParams : IResource { /// /// Initializes a new instance of the AttestationServiceCreationParams @@ -31,15 +35,17 @@ public AttestationServiceCreationParams() /// Initializes a new instance of the AttestationServiceCreationParams /// class. /// - /// Name of attestation policy. - /// JSON Web Key Set defining a - /// set of X.509 Certificates that will represent the parent - /// certificate for the signing certificate used for policy - /// operations - public AttestationServiceCreationParams(string attestationPolicy = default(string), JSONWebKeySet policySigningCertificates = default(JSONWebKeySet)) + /// The supported Azure location where the + /// attestation service instance should be created. + /// Properties of the attestation service + /// instance + /// The tags that will be assigned to the + /// attestation service instance. + public AttestationServiceCreationParams(string location, AttestationServiceCreationSpecificParams properties, IDictionary tags = default(IDictionary)) { - AttestationPolicy = attestationPolicy; - PolicySigningCertificates = policySigningCertificates; + Location = location; + Tags = tags; + Properties = properties; CustomInit(); } @@ -49,18 +55,41 @@ public AttestationServiceCreationParams() partial void CustomInit(); /// - /// Gets or sets name of attestation policy. + /// Gets or sets the supported Azure location where the attestation + /// service instance should be created. /// - [JsonProperty(PropertyName = "attestationPolicy")] - public string AttestationPolicy { get; set; } + [JsonProperty(PropertyName = "location")] + public string Location { get; set; } /// - /// Gets or sets JSON Web Key Set defining a set of X.509 Certificates - /// that will represent the parent certificate for the signing - /// certificate used for policy operations + /// Gets or sets the tags that will be assigned to the attestation + /// service instance. /// - [JsonProperty(PropertyName = "policySigningCertificates")] - public JSONWebKeySet PolicySigningCertificates { get; set; } + [JsonProperty(PropertyName = "tags")] + public IDictionary Tags { get; set; } + /// + /// Gets or sets properties of the attestation service instance + /// + [JsonProperty(PropertyName = "properties")] + public AttestationServiceCreationSpecificParams Properties { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (Location == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "Location"); + } + if (Properties == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "Properties"); + } + } } } diff --git a/sdk/attestation/Microsoft.Azure.Management.Attestation/src/Generated/Models/AttestationServiceCreationSpecificParams.cs b/sdk/attestation/Microsoft.Azure.Management.Attestation/src/Generated/Models/AttestationServiceCreationSpecificParams.cs new file mode 100644 index 000000000000..b9ba66c064bd --- /dev/null +++ b/sdk/attestation/Microsoft.Azure.Management.Attestation/src/Generated/Models/AttestationServiceCreationSpecificParams.cs @@ -0,0 +1,67 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Attestation.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// Client supplied parameters used to create a new attestation service + /// instance. + /// + public partial class AttestationServiceCreationSpecificParams + { + /// + /// Initializes a new instance of the + /// AttestationServiceCreationSpecificParams class. + /// + public AttestationServiceCreationSpecificParams() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the + /// AttestationServiceCreationSpecificParams class. + /// + /// Name of attestation policy. + /// JSON Web Key Set defining a + /// set of X.509 Certificates that will represent the parent + /// certificate for the signing certificate used for policy + /// operations + public AttestationServiceCreationSpecificParams(string attestationPolicy = default(string), JSONWebKeySet policySigningCertificates = default(JSONWebKeySet)) + { + AttestationPolicy = attestationPolicy; + PolicySigningCertificates = policySigningCertificates; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets name of attestation policy. + /// + [JsonProperty(PropertyName = "attestationPolicy")] + public string AttestationPolicy { get; set; } + + /// + /// Gets or sets JSON Web Key Set defining a set of X.509 Certificates + /// that will represent the parent certificate for the signing + /// certificate used for policy operations + /// + [JsonProperty(PropertyName = "policySigningCertificates")] + public JSONWebKeySet PolicySigningCertificates { get; set; } + + } +} diff --git a/sdk/attestation/Microsoft.Azure.Management.Attestation/src/Generated/Models/AttestationServicePatchParams.cs b/sdk/attestation/Microsoft.Azure.Management.Attestation/src/Generated/Models/AttestationServicePatchParams.cs new file mode 100644 index 000000000000..4aedda355225 --- /dev/null +++ b/sdk/attestation/Microsoft.Azure.Management.Attestation/src/Generated/Models/AttestationServicePatchParams.cs @@ -0,0 +1,59 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Attestation.Models +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// Parameters for patching an attestation service instance + /// + public partial class AttestationServicePatchParams : IResource + { + /// + /// Initializes a new instance of the AttestationServicePatchParams + /// class. + /// + public AttestationServicePatchParams() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the AttestationServicePatchParams + /// class. + /// + /// The tags that will be assigned to the + /// attestation service instance. + public AttestationServicePatchParams(IDictionary tags = default(IDictionary)) + { + Tags = tags; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the tags that will be assigned to the attestation + /// service instance. + /// + [JsonProperty(PropertyName = "tags")] + public IDictionary Tags { get; set; } + + } +} diff --git a/sdk/attestation/Microsoft.Azure.Management.Attestation/src/Generated/Operations.cs b/sdk/attestation/Microsoft.Azure.Management.Attestation/src/Generated/Operations.cs index 01412dc4fd9c..c4b00688b788 100644 --- a/sdk/attestation/Microsoft.Azure.Management.Attestation/src/Generated/Operations.cs +++ b/sdk/attestation/Microsoft.Azure.Management.Attestation/src/Generated/Operations.cs @@ -70,6 +70,7 @@ internal Operations(AttestationManagementClient client) /// public async Task> ListWithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { + string apiVersion = "2018-09-01-preview"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -77,6 +78,7 @@ internal Operations(AttestationManagementClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("apiVersion", apiVersion); tracingParameters.Add("cancellationToken", cancellationToken); ServiceClientTracing.Enter(_invocationId, this, "List", tracingParameters); } @@ -84,9 +86,9 @@ internal Operations(AttestationManagementClient client) var _baseUrl = Client.BaseUri.AbsoluteUri; var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "providers/Microsoft.Attestation/operations").ToString(); List _queryParameters = new List(); - if (Client.ApiVersion != null) + if (apiVersion != null) { - _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion))); } if (_queryParameters.Count > 0) { diff --git a/sdk/attestation/Microsoft.Azure.Management.Attestation/src/Generated/SdkInfo_AttestationManagementClient.cs b/sdk/attestation/Microsoft.Azure.Management.Attestation/src/Generated/SdkInfo_AttestationManagementClient.cs index c2eacf299139..9a96bf6dcaef 100644 --- a/sdk/attestation/Microsoft.Azure.Management.Attestation/src/Generated/SdkInfo_AttestationManagementClient.cs +++ b/sdk/attestation/Microsoft.Azure.Management.Attestation/src/Generated/SdkInfo_AttestationManagementClient.cs @@ -26,11 +26,11 @@ public static IEnumerable> ApiInfo_AttestationMana } // BEGIN: Code Generation Metadata Section public static readonly String AutoRestVersion = "latest"; - public static readonly String AutoRestBootStrapperVersion = "autorest@2.0.4407"; - public static readonly String AutoRestCmdExecuted = "cmd.exe /c autorest.cmd https://github.com/Azure/azure-rest-api-specs/blob/master/specification/attestation/resource-manager/readme.md --csharp --version=latest --reflect-api-versions --csharp-sdks-folder=C:\\azure-sdk-for-net\\sdk"; + public static readonly String AutoRestBootStrapperVersion = "autorest@2.0.4413"; + public static readonly String AutoRestCmdExecuted = "cmd.exe /c autorest.cmd https://github.com/Azure/azure-rest-api-specs/blob/master/specification/attestation/resource-manager/readme.md --csharp --version=latest --reflect-api-versions --csharp-sdks-folder=C:\\github\\gkostal\\azure-sdk-for-net\\sdk"; public static readonly String GithubForkName = "Azure"; public static readonly String GithubBranchName = "master"; - public static readonly String GithubCommidId = "65862acc6ca8d117bff3258d409d8a9d8244f773"; + public static readonly String GithubCommidId = "719827a2f6560db22a873828100b8aff1317c483"; public static readonly String CodeGenerationErrors = ""; public static readonly String GithubRepoName = "azure-rest-api-specs"; // END: Code Generation Metadata Section diff --git a/sdk/attestation/Microsoft.Azure.Management.Attestation/src/Microsoft.Azure.Management.Attestation.csproj b/sdk/attestation/Microsoft.Azure.Management.Attestation/src/Microsoft.Azure.Management.Attestation.csproj index ff02a5dd9a46..f3042f4bb7dd 100644 --- a/sdk/attestation/Microsoft.Azure.Management.Attestation/src/Microsoft.Azure.Management.Attestation.csproj +++ b/sdk/attestation/Microsoft.Azure.Management.Attestation/src/Microsoft.Azure.Management.Attestation.csproj @@ -6,12 +6,12 @@ Microsoft Azure Attestation Library Microsoft.Azure.Management.Attestation - 0.10.0-preview + 0.11.0-preview Microsoft.Azure.Management.Attestation Management.Attestation;Attestation;recommendations; $(SdkTargetFx) diff --git a/sdk/attestation/Microsoft.Azure.Management.Attestation/src/Properties/AssemblyInfo.cs b/sdk/attestation/Microsoft.Azure.Management.Attestation/src/Properties/AssemblyInfo.cs index 12d7715f8743..17a8ecee5df8 100644 --- a/sdk/attestation/Microsoft.Azure.Management.Attestation/src/Properties/AssemblyInfo.cs +++ b/sdk/attestation/Microsoft.Azure.Management.Attestation/src/Properties/AssemblyInfo.cs @@ -7,8 +7,8 @@ [assembly: AssemblyTitle("Microsoft Azure Attestation Management Library")] [assembly: AssemblyDescription("Provides management functionality for Microsoft Azure Attestation recommendations.")] -[assembly: AssemblyVersion("0.9.6.0")] -[assembly: AssemblyFileVersion("0.9.6.0")] +[assembly: AssemblyVersion("0.11.0.0")] +[assembly: AssemblyFileVersion("0.11.0.0")] [assembly: AssemblyConfiguration("")] [assembly: AssemblyCompany("Microsoft")] [assembly: AssemblyProduct("Microsoft Azure .NET SDK")] diff --git a/sdk/attestation/Microsoft.Azure.Management.Attestation/tests/BasicTests/AttestationOperationsTests.cs b/sdk/attestation/Microsoft.Azure.Management.Attestation/tests/BasicTests/AttestationOperationsTests.cs index 392b1b37a46c..f6855c816fdf 100644 --- a/sdk/attestation/Microsoft.Azure.Management.Attestation/tests/BasicTests/AttestationOperationsTests.cs +++ b/sdk/attestation/Microsoft.Azure.Management.Attestation/tests/BasicTests/AttestationOperationsTests.cs @@ -37,18 +37,31 @@ public void AttestationManagementAttestationCreateDelete() jwk.X5c = new List() { System.Convert.ToBase64String(certificate.Export(X509ContentType.Cert)) }; jwks.Keys = new List() { jwk }; - var instanceParams = new AttestationServiceCreationParams { PolicySigningCertificates = jwks}; + var creationParams = new AttestationServiceCreationParams + { + Location = testBase.location, + Tags = new Dictionary + { + { "Key1", "Value1" }, + { "Key2", "Value2" } + }, + Properties = new AttestationServiceCreationSpecificParams + { + PolicySigningCertificates = jwks + } + }; try { var createdAttestation = testBase.client.AttestationProviders.Create( resourceGroupName: testBase.rgName, providerName: testBase.attestationName, - creationParams: instanceParams + creationParams: creationParams ); ValidateAttestationProvider(createdAttestation, testBase.attestationName, testBase.rgName, - testBase.subscriptionId); + testBase.subscriptionId, + creationParams); testBase.client.AttestationProviders.Get( resourceGroupName: testBase.rgName, @@ -65,16 +78,31 @@ public void AttestationManagementAttestationCreateDelete() } private void ValidateAttestationProvider( - AttestationProvider attestaton, + AttestationProvider attestation, string expectedAttestationName, string expectedResourceGroupName, - string expectedSubId) + string expectedSubId, + AttestationServiceCreationParams creationParams) { - Assert.NotNull(attestaton); - Assert.Equal(expectedAttestationName, attestaton.Name); + Assert.NotNull(attestation); + Assert.Equal(expectedAttestationName, attestation.Name); + string resourceIdFormat = "subscriptions/{0}/resourceGroups/{1}/providers/Microsoft.Attestation/attestationProviders/{2}"; string expectedResourceId = string.Format(resourceIdFormat, expectedSubId, expectedResourceGroupName, expectedAttestationName); - Assert.Equal(expectedResourceId, attestaton.Id); + Assert.Equal(expectedResourceId, attestation.Id); + + if (creationParams.Tags != null) + { + Assert.Equal(attestation.Tags.Count, creationParams.Tags.Count); + Assert.False(creationParams.Tags.Except(attestation.Tags).Any()); + Assert.False(attestation.Tags.Except(creationParams.Tags).Any()); + } + else + { + Assert.Null(attestation.Tags); + } + + Assert.True(creationParams.Location.Equals(attestation.Location, StringComparison.InvariantCultureIgnoreCase)); } } } diff --git a/sdk/attestation/Microsoft.Azure.Management.Attestation/tests/Properties/AssemblyInfo.cs b/sdk/attestation/Microsoft.Azure.Management.Attestation/tests/Properties/AssemblyInfo.cs index 2962bffba4e7..0bb2df999857 100644 --- a/sdk/attestation/Microsoft.Azure.Management.Attestation/tests/Properties/AssemblyInfo.cs +++ b/sdk/attestation/Microsoft.Azure.Management.Attestation/tests/Properties/AssemblyInfo.cs @@ -35,5 +35,5 @@ // You can specify all the values or you can default the Build and Revision Numbers // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("0.10.0.0")] -[assembly: AssemblyFileVersion("0.10.0.0")] +[assembly: AssemblyVersion("0.11.0.0")] +[assembly: AssemblyFileVersion("0.11.0.0")] diff --git a/sdk/attestation/Microsoft.Azure.Management.Attestation/tests/SessionRecords/AttestationOperationsTests/AttestationManagementAttestationCreateDelete.json b/sdk/attestation/Microsoft.Azure.Management.Attestation/tests/SessionRecords/AttestationOperationsTests/AttestationManagementAttestationCreateDelete.json index 92cf9d0b289a..204545b818ca 100644 --- a/sdk/attestation/Microsoft.Azure.Management.Attestation/tests/SessionRecords/AttestationOperationsTests/AttestationManagementAttestationCreateDelete.json +++ b/sdk/attestation/Microsoft.Azure.Management.Attestation/tests/SessionRecords/AttestationOperationsTests/AttestationManagementAttestationCreateDelete.json @@ -7,13 +7,13 @@ "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "4b275224-2ea6-4125-bf00-eb7761b26691" + "5b17a242-29a9-4ad4-9dc9-9a48de04272a" ], "Accept-Language": [ "en-US" ], "User-Agent": [ - "FxVersion/4.6.28008.01", + "FxVersion/4.6.28325.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.18363.", "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.9.1.0" @@ -27,16 +27,16 @@ "no-cache" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11999" + "11998" ], "x-ms-request-id": [ - "e5ee01e7-787c-4b63-ba12-5226988d1647" + "9ff912ca-df6d-4ffe-8d2f-8d855adbfaeb" ], "x-ms-correlation-request-id": [ - "e5ee01e7-787c-4b63-ba12-5226988d1647" + "9ff912ca-df6d-4ffe-8d2f-8d855adbfaeb" ], "x-ms-routing-request-id": [ - "WESTUS:20191120T191948Z:e5ee01e7-787c-4b63-ba12-5226988d1647" + "BRAZILUS:20200228T141700Z:9ff912ca-df6d-4ffe-8d2f-8d855adbfaeb" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -45,7 +45,7 @@ "nosniff" ], "Date": [ - "Wed, 20 Nov 2019 19:19:48 GMT" + "Fri, 28 Feb 2020 14:16:59 GMT" ], "Content-Type": [ "application/json; charset=utf-8" @@ -54,26 +54,26 @@ "-1" ], "Content-Length": [ - "505" + "391" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/a724c543-53ce-44a6-b633-e11ef27839b7/providers/Microsoft.Attestation\",\r\n \"namespace\": \"Microsoft.Attestation\",\r\n \"authorizations\": [\r\n {\r\n \"applicationId\": \"c61423b7-1d1f-430d-b444-0eee53298103\",\r\n \"roleDefinitionId\": \"7299b0b1-11da-4858-8943-7db197005959\"\r\n }\r\n ],\r\n \"resourceTypes\": [\r\n {\r\n \"resourceType\": \"attestationProviders\",\r\n \"locations\": [\r\n \"East US\"\r\n ],\r\n \"apiVersions\": [\r\n \"2018-09-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"operations\",\r\n \"locations\": [\r\n \"East US\"\r\n ],\r\n \"apiVersions\": [\r\n \"2018-09-01-preview\"\r\n ]\r\n }\r\n ],\r\n \"registrationState\": \"Registered\"\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/a724c543-53ce-44a6-b633-e11ef27839b7/providers/Microsoft.Attestation\",\r\n \"namespace\": \"Microsoft.Attestation\",\r\n \"resourceTypes\": [\r\n {\r\n \"resourceType\": \"attestationProviders\",\r\n \"locations\": [\r\n \"East US\",\r\n \"West US\"\r\n ],\r\n \"apiVersions\": [\r\n \"2018-09-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"operations\",\r\n \"locations\": [\r\n \"East US\",\r\n \"West US\"\r\n ],\r\n \"apiVersions\": [\r\n \"2018-09-01-preview\"\r\n ]\r\n }\r\n ],\r\n \"registrationState\": \"Registered\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/a724c543-53ce-44a6-b633-e11ef27839b7/resourcegroups/testattestationrg9855?api-version=2018-05-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYTcyNGM1NDMtNTNjZS00NGE2LWI2MzMtZTExZWYyNzgzOWI3L3Jlc291cmNlZ3JvdXBzL3Rlc3RhdHRlc3RhdGlvbnJnOTg1NT9hcGktdmVyc2lvbj0yMDE4LTA1LTAx", + "RequestUri": "/subscriptions/a724c543-53ce-44a6-b633-e11ef27839b7/resourcegroups/testattestationrg6818?api-version=2018-05-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYTcyNGM1NDMtNTNjZS00NGE2LWI2MzMtZTExZWYyNzgzOWI3L3Jlc291cmNlZ3JvdXBzL3Rlc3RhdHRlc3RhdGlvbnJnNjgxOD9hcGktdmVyc2lvbj0yMDE4LTA1LTAx", "RequestMethod": "PUT", "RequestBody": "{\r\n \"location\": \"East US\"\r\n}", "RequestHeaders": { "x-ms-client-request-id": [ - "83895c0e-72d2-4b35-9c26-15d0ee23f35f" + "c399feb8-59ce-4038-97e6-6c97d6d4d09b" ], "Accept-Language": [ "en-US" ], "User-Agent": [ - "FxVersion/4.6.28008.01", + "FxVersion/4.6.28325.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.18363.", "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.9.1.0" @@ -93,16 +93,16 @@ "no-cache" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1199" + "1198" ], "x-ms-request-id": [ - "b1558e00-daa4-4ce2-aab8-dc04ca59e5fb" + "81e95951-0052-4368-a59b-f6f6cb089c61" ], "x-ms-correlation-request-id": [ - "b1558e00-daa4-4ce2-aab8-dc04ca59e5fb" + "81e95951-0052-4368-a59b-f6f6cb089c61" ], "x-ms-routing-request-id": [ - "WESTUS:20191120T191950Z:b1558e00-daa4-4ce2-aab8-dc04ca59e5fb" + "BRAZILUS:20200228T141701Z:81e95951-0052-4368-a59b-f6f6cb089c61" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -111,7 +111,7 @@ "nosniff" ], "Date": [ - "Wed, 20 Nov 2019 19:19:50 GMT" + "Fri, 28 Feb 2020 14:17:01 GMT" ], "Content-Length": [ "195" @@ -123,32 +123,32 @@ "-1" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/a724c543-53ce-44a6-b633-e11ef27839b7/resourceGroups/testattestationrg9855\",\r\n \"name\": \"testattestationrg9855\",\r\n \"location\": \"eastus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/a724c543-53ce-44a6-b633-e11ef27839b7/resourceGroups/testattestationrg6818\",\r\n \"name\": \"testattestationrg6818\",\r\n \"location\": \"eastus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", "StatusCode": 201 }, { - "RequestUri": "/subscriptions/a724c543-53ce-44a6-b633-e11ef27839b7/resourceGroups/testattestationrg9855/providers/Microsoft.Attestation/attestationProviders/testattestation9429?api-version=2018-09-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYTcyNGM1NDMtNTNjZS00NGE2LWI2MzMtZTExZWYyNzgzOWI3L3Jlc291cmNlR3JvdXBzL3Rlc3RhdHRlc3RhdGlvbnJnOTg1NS9wcm92aWRlcnMvTWljcm9zb2Z0LkF0dGVzdGF0aW9uL2F0dGVzdGF0aW9uUHJvdmlkZXJzL3Rlc3RhdHRlc3RhdGlvbjk0Mjk/YXBpLXZlcnNpb249MjAxOC0wOS0wMS1wcmV2aWV3", + "RequestUri": "/subscriptions/a724c543-53ce-44a6-b633-e11ef27839b7/resourceGroups/testattestationrg6818/providers/Microsoft.Attestation/attestationProviders/testattestation1640?api-version=2018-09-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYTcyNGM1NDMtNTNjZS00NGE2LWI2MzMtZTExZWYyNzgzOWI3L3Jlc291cmNlR3JvdXBzL3Rlc3RhdHRlc3RhdGlvbnJnNjgxOC9wcm92aWRlcnMvTWljcm9zb2Z0LkF0dGVzdGF0aW9uL2F0dGVzdGF0aW9uUHJvdmlkZXJzL3Rlc3RhdHRlc3RhdGlvbjE2NDA/YXBpLXZlcnNpb249MjAxOC0wOS0wMS1wcmV2aWV3", "RequestMethod": "PUT", - "RequestBody": "{\r\n \"policySigningCertificates\": {\r\n \"keys\": [\r\n {\r\n \"kty\": \"RSA\",\r\n \"x5c\": [\r\n \"MIICjzCCAjSgAwIBAgIUImUM1lqdNInzg7SVUr9QGzknBqwwCgYIKoZIzj0EAwIwaDEaMBgGA1UEAwwRSW50ZWwgU0dYIFJvb3QgQ0ExGjAYBgNVBAoMEUludGVsIENvcnBvcmF0aW9uMRQwEgYDVQQHDAtTYW50YSBDbGFyYTELMAkGA1UECAwCQ0ExCzAJBgNVBAYTAlVTMB4XDTE4MDUyMTEwNDExMVoXDTMzMDUyMTEwNDExMFowaDEaMBgGA1UEAwwRSW50ZWwgU0dYIFJvb3QgQ0ExGjAYBgNVBAoMEUludGVsIENvcnBvcmF0aW9uMRQwEgYDVQQHDAtTYW50YSBDbGFyYTELMAkGA1UECAwCQ0ExCzAJBgNVBAYTAlVTMFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEC6nEwMDIYZOj/iPWsCzaEKi71OiOSLRFhWGjbnBVJfVnkY4u3IjkDYYL0MxO4mqsyYjlBalTVYxFP2sJBK5zlKOBuzCBuDAfBgNVHSMEGDAWgBQiZQzWWp00ifODtJVSv1AbOScGrDBSBgNVHR8ESzBJMEegRaBDhkFodHRwczovL2NlcnRpZmljYXRlcy50cnVzdGVkc2VydmljZXMuaW50ZWwuY29tL0ludGVsU0dYUm9vdENBLmNybDAdBgNVHQ4EFgQUImUM1lqdNInzg7SVUr9QGzknBqwwDgYDVR0PAQH/BAQDAgEGMBIGA1UdEwEB/wQIMAYBAf8CAQAwCgYIKoZIzj0EAwIDSQAwRgIhAIpQ/KlO1XE4hH8cw5Ol/E0yzs8PToJe9Pclt+bhfLUgAiEAss0qf7FlMmAMet+gbpLD97ldYy/wqjjmwN7yHRVr2AM=\"\r\n ]\r\n }\r\n ]\r\n }\r\n}", + "RequestBody": "{\r\n \"location\": \"East US\",\r\n \"tags\": {\r\n \"Key1\": \"Value1\",\r\n \"Key2\": \"Value2\"\r\n },\r\n \"properties\": {\r\n \"policySigningCertificates\": {\r\n \"keys\": [\r\n {\r\n \"kty\": \"RSA\",\r\n \"x5c\": [\r\n \"MIICjzCCAjSgAwIBAgIUImUM1lqdNInzg7SVUr9QGzknBqwwCgYIKoZIzj0EAwIwaDEaMBgGA1UEAwwRSW50ZWwgU0dYIFJvb3QgQ0ExGjAYBgNVBAoMEUludGVsIENvcnBvcmF0aW9uMRQwEgYDVQQHDAtTYW50YSBDbGFyYTELMAkGA1UECAwCQ0ExCzAJBgNVBAYTAlVTMB4XDTE4MDUyMTEwNDExMVoXDTMzMDUyMTEwNDExMFowaDEaMBgGA1UEAwwRSW50ZWwgU0dYIFJvb3QgQ0ExGjAYBgNVBAoMEUludGVsIENvcnBvcmF0aW9uMRQwEgYDVQQHDAtTYW50YSBDbGFyYTELMAkGA1UECAwCQ0ExCzAJBgNVBAYTAlVTMFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEC6nEwMDIYZOj/iPWsCzaEKi71OiOSLRFhWGjbnBVJfVnkY4u3IjkDYYL0MxO4mqsyYjlBalTVYxFP2sJBK5zlKOBuzCBuDAfBgNVHSMEGDAWgBQiZQzWWp00ifODtJVSv1AbOScGrDBSBgNVHR8ESzBJMEegRaBDhkFodHRwczovL2NlcnRpZmljYXRlcy50cnVzdGVkc2VydmljZXMuaW50ZWwuY29tL0ludGVsU0dYUm9vdENBLmNybDAdBgNVHQ4EFgQUImUM1lqdNInzg7SVUr9QGzknBqwwDgYDVR0PAQH/BAQDAgEGMBIGA1UdEwEB/wQIMAYBAf8CAQAwCgYIKoZIzj0EAwIDSQAwRgIhAIpQ/KlO1XE4hH8cw5Ol/E0yzs8PToJe9Pclt+bhfLUgAiEAss0qf7FlMmAMet+gbpLD97ldYy/wqjjmwN7yHRVr2AM=\"\r\n ]\r\n }\r\n ]\r\n }\r\n }\r\n}", "RequestHeaders": { "x-ms-client-request-id": [ - "63508af1-2d7d-4d68-b7ef-04e269557343" + "5b0c805e-8114-4d5f-b425-656defe12492" ], "Accept-Language": [ "en-US" ], "User-Agent": [ - "FxVersion/4.6.28008.01", + "FxVersion/4.6.28325.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.18363.", - "Microsoft.Azure.Management.Attestation.AttestationManagementClient/0.9.6.0" + "Microsoft.Azure.Management.Attestation.AttestationManagementClient/0.10.0.0" ], "Content-Type": [ "application/json; charset=utf-8" ], "Content-Length": [ - "1029" + "1163" ] }, "ResponseHeaders": { @@ -159,7 +159,7 @@ "no-cache" ], "Location": [ - "fabric:/AttestationService/Tenant/testattestation9429" + "https://testattestation1640.us.test.attest.azure.net/" ], "x-ms-ratelimit-remaining-subscription-writes": [ "1199" @@ -171,13 +171,13 @@ "Bearer authorization_uri=\"https://login.windows.net/72f988bf-86f1-41af-91ab-2d7cd011db47\", resource=\"https://attest.azure.net\"" ], "x-ms-request-id": [ - "a78c9f29-d2e8-4dfe-8658-923d25a55ab3" + "8e74ee70-b5f5-4702-854f-a7426ae38e74" ], "x-ms-correlation-request-id": [ - "a78c9f29-d2e8-4dfe-8658-923d25a55ab3" + "8e74ee70-b5f5-4702-854f-a7426ae38e74" ], "x-ms-routing-request-id": [ - "WESTUS:20191120T191952Z:a78c9f29-d2e8-4dfe-8658-923d25a55ab3" + "BRAZILUS:20200228T141705Z:8e74ee70-b5f5-4702-854f-a7426ae38e74" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -186,10 +186,10 @@ "nosniff" ], "Date": [ - "Wed, 20 Nov 2019 19:19:51 GMT" + "Fri, 28 Feb 2020 14:17:05 GMT" ], "Content-Length": [ - "347" + "435" ], "Content-Type": [ "application/json; charset=utf-8" @@ -198,26 +198,26 @@ "-1" ] }, - "ResponseBody": "{\r\n \"id\": \"subscriptions/a724c543-53ce-44a6-b633-e11ef27839b7/resourceGroups/testattestationrg9855/providers/Microsoft.Attestation/attestationProviders/testattestation9429\",\r\n \"name\": \"testattestation9429\",\r\n \"type\": \"Microsoft.Attestation/attestationProviders\",\r\n \"properties\": {\r\n \"status\": \"NotReady\",\r\n \"attestUri\": \"https://testattestation9429.us.attest.azure.net\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"subscriptions/a724c543-53ce-44a6-b633-e11ef27839b7/resourceGroups/testattestationrg6818/providers/Microsoft.Attestation/attestationProviders/testattestation1640\",\r\n \"name\": \"testattestation1640\",\r\n \"type\": \"Microsoft.Attestation/attestationProviders\",\r\n \"location\": \"East US\",\r\n \"tags\": {\r\n \"Key1\": \"Value1\",\r\n \"Key2\": \"Value2\"\r\n },\r\n \"properties\": {\r\n \"trustModel\": \"Isolated\",\r\n \"status\": \"Ready\",\r\n \"attestUri\": \"https://testattestation1640.us.test.attest.azure.net\"\r\n }\r\n}", "StatusCode": 201 }, { - "RequestUri": "/subscriptions/a724c543-53ce-44a6-b633-e11ef27839b7/resourceGroups/testattestationrg9855/providers/Microsoft.Attestation/attestationProviders/testattestation9429?api-version=2018-09-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYTcyNGM1NDMtNTNjZS00NGE2LWI2MzMtZTExZWYyNzgzOWI3L3Jlc291cmNlR3JvdXBzL3Rlc3RhdHRlc3RhdGlvbnJnOTg1NS9wcm92aWRlcnMvTWljcm9zb2Z0LkF0dGVzdGF0aW9uL2F0dGVzdGF0aW9uUHJvdmlkZXJzL3Rlc3RhdHRlc3RhdGlvbjk0Mjk/YXBpLXZlcnNpb249MjAxOC0wOS0wMS1wcmV2aWV3", + "RequestUri": "/subscriptions/a724c543-53ce-44a6-b633-e11ef27839b7/resourceGroups/testattestationrg6818/providers/Microsoft.Attestation/attestationProviders/testattestation1640?api-version=2018-09-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYTcyNGM1NDMtNTNjZS00NGE2LWI2MzMtZTExZWYyNzgzOWI3L3Jlc291cmNlR3JvdXBzL3Rlc3RhdHRlc3RhdGlvbnJnNjgxOC9wcm92aWRlcnMvTWljcm9zb2Z0LkF0dGVzdGF0aW9uL2F0dGVzdGF0aW9uUHJvdmlkZXJzL3Rlc3RhdHRlc3RhdGlvbjE2NDA/YXBpLXZlcnNpb249MjAxOC0wOS0wMS1wcmV2aWV3", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "9c1080ff-787f-4536-9928-13a2258359ae" + "d72244eb-aeb5-4b95-a011-ebd5bee5a5b1" ], "Accept-Language": [ "en-US" ], "User-Agent": [ - "FxVersion/4.6.28008.01", + "FxVersion/4.6.28325.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.18363.", - "Microsoft.Azure.Management.Attestation.AttestationManagementClient/0.9.6.0" + "Microsoft.Azure.Management.Attestation.AttestationManagementClient/0.10.0.0" ] }, "ResponseHeaders": { @@ -237,13 +237,13 @@ "Bearer authorization_uri=\"https://login.windows.net/72f988bf-86f1-41af-91ab-2d7cd011db47\", resource=\"https://attest.azure.net\"" ], "x-ms-request-id": [ - "4653ce09-53e9-47fe-b925-2a84aa6d03e5" + "edcb457b-f415-487c-917f-db480e5db88b" ], "x-ms-correlation-request-id": [ - "4653ce09-53e9-47fe-b925-2a84aa6d03e5" + "edcb457b-f415-487c-917f-db480e5db88b" ], "x-ms-routing-request-id": [ - "WESTUS:20191120T191952Z:4653ce09-53e9-47fe-b925-2a84aa6d03e5" + "BRAZILUS:20200228T141705Z:edcb457b-f415-487c-917f-db480e5db88b" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -252,10 +252,10 @@ "nosniff" ], "Date": [ - "Wed, 20 Nov 2019 19:19:52 GMT" + "Fri, 28 Feb 2020 14:17:05 GMT" ], "Content-Length": [ - "347" + "435" ], "Content-Type": [ "application/json; charset=utf-8" @@ -264,26 +264,26 @@ "-1" ] }, - "ResponseBody": "{\r\n \"id\": \"subscriptions/a724c543-53ce-44a6-b633-e11ef27839b7/resourceGroups/testattestationrg9855/providers/Microsoft.Attestation/attestationProviders/testattestation9429\",\r\n \"name\": \"testattestation9429\",\r\n \"type\": \"Microsoft.Attestation/attestationProviders\",\r\n \"properties\": {\r\n \"status\": \"NotReady\",\r\n \"attestUri\": \"https://testattestation9429.us.attest.azure.net\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"subscriptions/a724c543-53ce-44a6-b633-e11ef27839b7/resourceGroups/testattestationrg6818/providers/Microsoft.Attestation/attestationProviders/testattestation1640\",\r\n \"name\": \"testattestation1640\",\r\n \"type\": \"Microsoft.Attestation/attestationProviders\",\r\n \"location\": \"East US\",\r\n \"tags\": {\r\n \"Key1\": \"Value1\",\r\n \"Key2\": \"Value2\"\r\n },\r\n \"properties\": {\r\n \"trustModel\": \"Isolated\",\r\n \"status\": \"Ready\",\r\n \"attestUri\": \"https://testattestation1640.us.test.attest.azure.net\"\r\n }\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/a724c543-53ce-44a6-b633-e11ef27839b7/resourceGroups/testattestationrg9855/providers/Microsoft.Attestation/attestationProviders/testattestation9429?api-version=2018-09-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYTcyNGM1NDMtNTNjZS00NGE2LWI2MzMtZTExZWYyNzgzOWI3L3Jlc291cmNlR3JvdXBzL3Rlc3RhdHRlc3RhdGlvbnJnOTg1NS9wcm92aWRlcnMvTWljcm9zb2Z0LkF0dGVzdGF0aW9uL2F0dGVzdGF0aW9uUHJvdmlkZXJzL3Rlc3RhdHRlc3RhdGlvbjk0Mjk/YXBpLXZlcnNpb249MjAxOC0wOS0wMS1wcmV2aWV3", + "RequestUri": "/subscriptions/a724c543-53ce-44a6-b633-e11ef27839b7/resourceGroups/testattestationrg6818/providers/Microsoft.Attestation/attestationProviders/testattestation1640?api-version=2018-09-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYTcyNGM1NDMtNTNjZS00NGE2LWI2MzMtZTExZWYyNzgzOWI3L3Jlc291cmNlR3JvdXBzL3Rlc3RhdHRlc3RhdGlvbnJnNjgxOC9wcm92aWRlcnMvTWljcm9zb2Z0LkF0dGVzdGF0aW9uL2F0dGVzdGF0aW9uUHJvdmlkZXJzL3Rlc3RhdHRlc3RhdGlvbjE2NDA/YXBpLXZlcnNpb249MjAxOC0wOS0wMS1wcmV2aWV3", "RequestMethod": "DELETE", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "ca2f3ef9-e5d2-49dc-ab9c-7de65f973103" + "8b95b99c-1f9a-4b5b-8910-cb61363b66e2" ], "Accept-Language": [ "en-US" ], "User-Agent": [ - "FxVersion/4.6.28008.01", + "FxVersion/4.6.28325.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.18363.", - "Microsoft.Azure.Management.Attestation.AttestationManagementClient/0.9.6.0" + "Microsoft.Azure.Management.Attestation.AttestationManagementClient/0.10.0.0" ] }, "ResponseHeaders": { @@ -300,16 +300,16 @@ "Bearer authorization_uri=\"https://login.windows.net/72f988bf-86f1-41af-91ab-2d7cd011db47\", resource=\"https://attest.azure.net\"" ], "x-ms-ratelimit-remaining-subscription-deletes": [ - "14999" + "14998" ], "x-ms-request-id": [ - "264adb68-de18-45cf-84fe-9dc5b862ffb5" + "26544a1c-582e-4905-bc4e-624f7e7f42d0" ], "x-ms-correlation-request-id": [ - "264adb68-de18-45cf-84fe-9dc5b862ffb5" + "26544a1c-582e-4905-bc4e-624f7e7f42d0" ], "x-ms-routing-request-id": [ - "WESTUS:20191120T191952Z:264adb68-de18-45cf-84fe-9dc5b862ffb5" + "BRAZILUS:20200228T141706Z:26544a1c-582e-4905-bc4e-624f7e7f42d0" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -318,7 +318,7 @@ "nosniff" ], "Date": [ - "Wed, 20 Nov 2019 19:19:52 GMT" + "Fri, 28 Feb 2020 14:17:05 GMT" ], "Expires": [ "-1" @@ -333,9 +333,9 @@ ], "Names": { "Initialize": [ - "testattestationrg9855", - "testattestation9429", - "attestationpolicynametest5273" + "testattestationrg6818", + "testattestation1640", + "attestationpolicynametest4608" ] }, "Variables": {