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 144126363202d..db3f30f9f470f 100644
--- a/sdk/attestation/Microsoft.Azure.Management.Attestation/src/Generated/AttestationProvidersOperations.cs
+++ b/sdk/attestation/Microsoft.Azure.Management.Attestation/src/Generated/AttestationProvidersOperations.cs
@@ -297,7 +297,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 +333,14 @@ internal AttestationProvidersOperations(AttestationManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "providerName");
}
+ if (creationParams == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "creationParams");
+ }
+ if (creationParams != null)
+ {
+ creationParams.Validate();
+ }
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -506,6 +514,234 @@ 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");
+ }
+ // 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("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 (Client.ApiVersion != null)
+ {
+ _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion)));
+ }
+ if (_queryParameters.Count > 0)
+ {
+ _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters);
+ }
+ // Create HTTP transport objects
+ var _httpRequest = new HttpRequestMessage();
+ HttpResponseMessage _httpResponse = null;
+ _httpRequest.Method = new HttpMethod("PATCH");
+ _httpRequest.RequestUri = new System.Uri(_url);
+ // Set Headers
+ if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value)
+ {
+ _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString());
+ }
+ if (Client.AcceptLanguage != null)
+ {
+ if (_httpRequest.Headers.Contains("accept-language"))
+ {
+ _httpRequest.Headers.Remove("accept-language");
+ }
+ _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage);
+ }
+
+
+ if (customHeaders != null)
+ {
+ foreach(var _header in customHeaders)
+ {
+ if (_httpRequest.Headers.Contains(_header.Key))
+ {
+ _httpRequest.Headers.Remove(_header.Key);
+ }
+ _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value);
+ }
+ }
+
+ // Serialize Request
+ string _requestContent = null;
+ if(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.
///
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 b72ced3bf7424..f1cc4c0daca72 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 697445043c275..be889a17ae2c8 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 f695ddc18d4bd..f62c9c9d8376b 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 c60d0e0f78de7..8f6f8d969aaa1 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 0000000000000..b9ba66c064bd4
--- /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 0000000000000..4aedda3552252
--- /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/SdkInfo_AttestationManagementClient.cs b/sdk/attestation/Microsoft.Azure.Management.Attestation/src/Generated/SdkInfo_AttestationManagementClient.cs
index c2eacf2991390..d73cbdde8c921 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
@@ -24,16 +24,5 @@ public static IEnumerable> ApiInfo_AttestationMana
}.AsEnumerable();
}
}
- // 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 GithubForkName = "Azure";
- public static readonly String GithubBranchName = "master";
- public static readonly String GithubCommidId = "65862acc6ca8d117bff3258d409d8a9d8244f773";
- public static readonly String CodeGenerationErrors = "";
- public static readonly String GithubRepoName = "azure-rest-api-specs";
- // END: Code Generation Metadata Section
}
}
-