diff --git a/sdk/attestation/Azure.ResourceManager.Attestation/api/Azure.ResourceManager.Attestation.net8.0.cs b/sdk/attestation/Azure.ResourceManager.Attestation/api/Azure.ResourceManager.Attestation.net8.0.cs index 2636b94c1687..1520d6cd6f8b 100644 --- a/sdk/attestation/Azure.ResourceManager.Attestation/api/Azure.ResourceManager.Attestation.net8.0.cs +++ b/sdk/attestation/Azure.ResourceManager.Attestation/api/Azure.ResourceManager.Attestation.net8.0.cs @@ -87,6 +87,7 @@ public AttestationProviderData(Azure.Core.AzureLocation location) { } public System.Collections.Generic.IReadOnlyList PrivateEndpointConnections { get { throw null; } } public Azure.ResourceManager.Attestation.Models.PublicNetworkAccessType? PublicNetworkAccess { get { throw null; } set { } } public Azure.ResourceManager.Attestation.Models.AttestationServiceStatus? Status { get { throw null; } set { } } + public Azure.ResourceManager.Attestation.Models.TpmAttestationAuthenticationType? TpmAttestationAuthentication { get { throw null; } set { } } public string TrustModel { get { throw null; } set { } } protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.ResourceManager.Attestation.AttestationProviderData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -159,7 +160,7 @@ public static partial class ArmAttestationModelFactory public static Azure.ResourceManager.Attestation.AttestationPrivateEndpointConnectionData AttestationPrivateEndpointConnectionData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, string privateEndpointStringId = null, Azure.ResourceManager.Attestation.Models.AttestationPrivateLinkServiceConnectionState connectionState = null, Azure.ResourceManager.Attestation.Models.AttestationPrivateEndpointConnectionProvisioningState? provisioningState = default(Azure.ResourceManager.Attestation.Models.AttestationPrivateEndpointConnectionProvisioningState?)) { throw null; } public static Azure.ResourceManager.Attestation.Models.AttestationPrivateLinkResource AttestationPrivateLinkResource(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, string groupId = null, System.Collections.Generic.IEnumerable requiredMembers = null, System.Collections.Generic.IEnumerable requiredZoneNames = null) { throw null; } public static Azure.ResourceManager.Attestation.Models.AttestationProviderCreateOrUpdateContent AttestationProviderCreateOrUpdateContent(Azure.Core.AzureLocation location = default(Azure.Core.AzureLocation), System.Collections.Generic.IDictionary tags = null, Azure.ResourceManager.Attestation.Models.AttestationServiceCreationSpecificParams properties = null) { throw null; } - public static Azure.ResourceManager.Attestation.AttestationProviderData AttestationProviderData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, System.Collections.Generic.IDictionary tags = null, Azure.Core.AzureLocation location = default(Azure.Core.AzureLocation), string trustModel = null, Azure.ResourceManager.Attestation.Models.AttestationServiceStatus? status = default(Azure.ResourceManager.Attestation.Models.AttestationServiceStatus?), System.Uri attestUri = null, Azure.ResourceManager.Attestation.Models.PublicNetworkAccessType? publicNetworkAccess = default(Azure.ResourceManager.Attestation.Models.PublicNetworkAccessType?), System.Collections.Generic.IEnumerable privateEndpointConnections = null) { throw null; } + public static Azure.ResourceManager.Attestation.AttestationProviderData AttestationProviderData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, System.Collections.Generic.IDictionary tags = null, Azure.Core.AzureLocation location = default(Azure.Core.AzureLocation), string trustModel = null, Azure.ResourceManager.Attestation.Models.AttestationServiceStatus? status = default(Azure.ResourceManager.Attestation.Models.AttestationServiceStatus?), System.Uri attestUri = null, Azure.ResourceManager.Attestation.Models.PublicNetworkAccessType? publicNetworkAccess = default(Azure.ResourceManager.Attestation.Models.PublicNetworkAccessType?), System.Collections.Generic.IEnumerable privateEndpointConnections = null, Azure.ResourceManager.Attestation.Models.TpmAttestationAuthenticationType? tpmAttestationAuthentication = default(Azure.ResourceManager.Attestation.Models.TpmAttestationAuthenticationType?)) { throw null; } public static Azure.ResourceManager.Attestation.Models.JsonWebKey JsonWebKey(string alg = null, string crv = null, string d = null, string dp = null, string dq = null, string e = null, string k = null, string kid = null, string kty = null, string n = null, string p = null, string q = null, string qi = null, string use = null, string x = null, System.Collections.Generic.IEnumerable x5C = null, string y = null) { throw null; } } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] @@ -243,7 +244,7 @@ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer public partial class AttestationProviderPatch : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { public AttestationProviderPatch() { } - public Azure.ResourceManager.Attestation.Models.PublicNetworkAccessType? AttestationServicePatchSpecificParamsPublicNetworkAccess { get { throw null; } set { } } + public Azure.ResourceManager.Attestation.Models.AttestationServicePatchSpecificParams Properties { get { throw null; } set { } } public System.Collections.Generic.IDictionary Tags { get { throw null; } } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.ResourceManager.Attestation.Models.AttestationProviderPatch System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -257,6 +258,7 @@ public partial class AttestationServiceCreationSpecificParams : System.ClientMod public AttestationServiceCreationSpecificParams() { } public System.Collections.Generic.IList PolicySigningCertificatesKeys { get { throw null; } } public Azure.ResourceManager.Attestation.Models.PublicNetworkAccessType? PublicNetworkAccess { get { throw null; } set { } } + public Azure.ResourceManager.Attestation.Models.TpmAttestationAuthenticationType? TpmAttestationAuthentication { get { throw null; } set { } } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.ResourceManager.Attestation.Models.AttestationServiceCreationSpecificParams System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } @@ -264,6 +266,18 @@ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } } + public partial class AttestationServicePatchSpecificParams : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public AttestationServicePatchSpecificParams() { } + public Azure.ResourceManager.Attestation.Models.PublicNetworkAccessType? PublicNetworkAccess { get { throw null; } set { } } + public Azure.ResourceManager.Attestation.Models.TpmAttestationAuthenticationType? TpmAttestationAuthentication { get { throw null; } set { } } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.Attestation.Models.AttestationServicePatchSpecificParams System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.Attestation.Models.AttestationServicePatchSpecificParams System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] public readonly partial struct AttestationServiceStatus : System.IEquatable { @@ -328,4 +342,22 @@ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer public static bool operator !=(Azure.ResourceManager.Attestation.Models.PublicNetworkAccessType left, Azure.ResourceManager.Attestation.Models.PublicNetworkAccessType right) { throw null; } public override string ToString() { throw null; } } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct TpmAttestationAuthenticationType : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public TpmAttestationAuthenticationType(string value) { throw null; } + public static Azure.ResourceManager.Attestation.Models.TpmAttestationAuthenticationType Disabled { get { throw null; } } + public static Azure.ResourceManager.Attestation.Models.TpmAttestationAuthenticationType Enabled { get { throw null; } } + public bool Equals(Azure.ResourceManager.Attestation.Models.TpmAttestationAuthenticationType other) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.ResourceManager.Attestation.Models.TpmAttestationAuthenticationType left, Azure.ResourceManager.Attestation.Models.TpmAttestationAuthenticationType right) { throw null; } + public static implicit operator Azure.ResourceManager.Attestation.Models.TpmAttestationAuthenticationType (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.Attestation.Models.TpmAttestationAuthenticationType left, Azure.ResourceManager.Attestation.Models.TpmAttestationAuthenticationType right) { throw null; } + public override string ToString() { throw null; } + } } diff --git a/sdk/attestation/Azure.ResourceManager.Attestation/api/Azure.ResourceManager.Attestation.netstandard2.0.cs b/sdk/attestation/Azure.ResourceManager.Attestation/api/Azure.ResourceManager.Attestation.netstandard2.0.cs index 2636b94c1687..1520d6cd6f8b 100644 --- a/sdk/attestation/Azure.ResourceManager.Attestation/api/Azure.ResourceManager.Attestation.netstandard2.0.cs +++ b/sdk/attestation/Azure.ResourceManager.Attestation/api/Azure.ResourceManager.Attestation.netstandard2.0.cs @@ -87,6 +87,7 @@ public AttestationProviderData(Azure.Core.AzureLocation location) { } public System.Collections.Generic.IReadOnlyList PrivateEndpointConnections { get { throw null; } } public Azure.ResourceManager.Attestation.Models.PublicNetworkAccessType? PublicNetworkAccess { get { throw null; } set { } } public Azure.ResourceManager.Attestation.Models.AttestationServiceStatus? Status { get { throw null; } set { } } + public Azure.ResourceManager.Attestation.Models.TpmAttestationAuthenticationType? TpmAttestationAuthentication { get { throw null; } set { } } public string TrustModel { get { throw null; } set { } } protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.ResourceManager.Attestation.AttestationProviderData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -159,7 +160,7 @@ public static partial class ArmAttestationModelFactory public static Azure.ResourceManager.Attestation.AttestationPrivateEndpointConnectionData AttestationPrivateEndpointConnectionData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, string privateEndpointStringId = null, Azure.ResourceManager.Attestation.Models.AttestationPrivateLinkServiceConnectionState connectionState = null, Azure.ResourceManager.Attestation.Models.AttestationPrivateEndpointConnectionProvisioningState? provisioningState = default(Azure.ResourceManager.Attestation.Models.AttestationPrivateEndpointConnectionProvisioningState?)) { throw null; } public static Azure.ResourceManager.Attestation.Models.AttestationPrivateLinkResource AttestationPrivateLinkResource(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, string groupId = null, System.Collections.Generic.IEnumerable requiredMembers = null, System.Collections.Generic.IEnumerable requiredZoneNames = null) { throw null; } public static Azure.ResourceManager.Attestation.Models.AttestationProviderCreateOrUpdateContent AttestationProviderCreateOrUpdateContent(Azure.Core.AzureLocation location = default(Azure.Core.AzureLocation), System.Collections.Generic.IDictionary tags = null, Azure.ResourceManager.Attestation.Models.AttestationServiceCreationSpecificParams properties = null) { throw null; } - public static Azure.ResourceManager.Attestation.AttestationProviderData AttestationProviderData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, System.Collections.Generic.IDictionary tags = null, Azure.Core.AzureLocation location = default(Azure.Core.AzureLocation), string trustModel = null, Azure.ResourceManager.Attestation.Models.AttestationServiceStatus? status = default(Azure.ResourceManager.Attestation.Models.AttestationServiceStatus?), System.Uri attestUri = null, Azure.ResourceManager.Attestation.Models.PublicNetworkAccessType? publicNetworkAccess = default(Azure.ResourceManager.Attestation.Models.PublicNetworkAccessType?), System.Collections.Generic.IEnumerable privateEndpointConnections = null) { throw null; } + public static Azure.ResourceManager.Attestation.AttestationProviderData AttestationProviderData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, System.Collections.Generic.IDictionary tags = null, Azure.Core.AzureLocation location = default(Azure.Core.AzureLocation), string trustModel = null, Azure.ResourceManager.Attestation.Models.AttestationServiceStatus? status = default(Azure.ResourceManager.Attestation.Models.AttestationServiceStatus?), System.Uri attestUri = null, Azure.ResourceManager.Attestation.Models.PublicNetworkAccessType? publicNetworkAccess = default(Azure.ResourceManager.Attestation.Models.PublicNetworkAccessType?), System.Collections.Generic.IEnumerable privateEndpointConnections = null, Azure.ResourceManager.Attestation.Models.TpmAttestationAuthenticationType? tpmAttestationAuthentication = default(Azure.ResourceManager.Attestation.Models.TpmAttestationAuthenticationType?)) { throw null; } public static Azure.ResourceManager.Attestation.Models.JsonWebKey JsonWebKey(string alg = null, string crv = null, string d = null, string dp = null, string dq = null, string e = null, string k = null, string kid = null, string kty = null, string n = null, string p = null, string q = null, string qi = null, string use = null, string x = null, System.Collections.Generic.IEnumerable x5C = null, string y = null) { throw null; } } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] @@ -243,7 +244,7 @@ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer public partial class AttestationProviderPatch : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { public AttestationProviderPatch() { } - public Azure.ResourceManager.Attestation.Models.PublicNetworkAccessType? AttestationServicePatchSpecificParamsPublicNetworkAccess { get { throw null; } set { } } + public Azure.ResourceManager.Attestation.Models.AttestationServicePatchSpecificParams Properties { get { throw null; } set { } } public System.Collections.Generic.IDictionary Tags { get { throw null; } } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.ResourceManager.Attestation.Models.AttestationProviderPatch System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -257,6 +258,7 @@ public partial class AttestationServiceCreationSpecificParams : System.ClientMod public AttestationServiceCreationSpecificParams() { } public System.Collections.Generic.IList PolicySigningCertificatesKeys { get { throw null; } } public Azure.ResourceManager.Attestation.Models.PublicNetworkAccessType? PublicNetworkAccess { get { throw null; } set { } } + public Azure.ResourceManager.Attestation.Models.TpmAttestationAuthenticationType? TpmAttestationAuthentication { get { throw null; } set { } } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.ResourceManager.Attestation.Models.AttestationServiceCreationSpecificParams System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } @@ -264,6 +266,18 @@ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } } + public partial class AttestationServicePatchSpecificParams : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public AttestationServicePatchSpecificParams() { } + public Azure.ResourceManager.Attestation.Models.PublicNetworkAccessType? PublicNetworkAccess { get { throw null; } set { } } + public Azure.ResourceManager.Attestation.Models.TpmAttestationAuthenticationType? TpmAttestationAuthentication { get { throw null; } set { } } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.Attestation.Models.AttestationServicePatchSpecificParams System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.Attestation.Models.AttestationServicePatchSpecificParams System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] public readonly partial struct AttestationServiceStatus : System.IEquatable { @@ -328,4 +342,22 @@ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer public static bool operator !=(Azure.ResourceManager.Attestation.Models.PublicNetworkAccessType left, Azure.ResourceManager.Attestation.Models.PublicNetworkAccessType right) { throw null; } public override string ToString() { throw null; } } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct TpmAttestationAuthenticationType : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public TpmAttestationAuthenticationType(string value) { throw null; } + public static Azure.ResourceManager.Attestation.Models.TpmAttestationAuthenticationType Disabled { get { throw null; } } + public static Azure.ResourceManager.Attestation.Models.TpmAttestationAuthenticationType Enabled { get { throw null; } } + public bool Equals(Azure.ResourceManager.Attestation.Models.TpmAttestationAuthenticationType other) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.ResourceManager.Attestation.Models.TpmAttestationAuthenticationType left, Azure.ResourceManager.Attestation.Models.TpmAttestationAuthenticationType right) { throw null; } + public static implicit operator Azure.ResourceManager.Attestation.Models.TpmAttestationAuthenticationType (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.Attestation.Models.TpmAttestationAuthenticationType left, Azure.ResourceManager.Attestation.Models.TpmAttestationAuthenticationType right) { throw null; } + public override string ToString() { throw null; } + } } diff --git a/sdk/attestation/Azure.ResourceManager.Attestation/samples/Generated/Samples/Sample_AttestationPrivateEndpointConnectionCollection.cs b/sdk/attestation/Azure.ResourceManager.Attestation/samples/Generated/Samples/Sample_AttestationPrivateEndpointConnectionCollection.cs index 92764ecd40a0..bbc78f2910ea 100644 --- a/sdk/attestation/Azure.ResourceManager.Attestation/samples/Generated/Samples/Sample_AttestationPrivateEndpointConnectionCollection.cs +++ b/sdk/attestation/Azure.ResourceManager.Attestation/samples/Generated/Samples/Sample_AttestationPrivateEndpointConnectionCollection.cs @@ -20,7 +20,7 @@ public partial class Sample_AttestationPrivateEndpointConnectionCollection [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_AttestationProviderPutPrivateEndpointConnection() { - // Generated from example definition: specification/attestation/resource-manager/Microsoft.Attestation/preview/2021-06-01-preview/examples/AttestationProviderPutPrivateEndpointConnection.json + // Generated from example definition: specification/attestation/resource-manager/Microsoft.Attestation/stable/2021-06-01/examples/AttestationProviderPutPrivateEndpointConnection.json // this example is just showing the usage of "PrivateEndpointConnections_Create" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -63,7 +63,7 @@ public async Task CreateOrUpdate_AttestationProviderPutPrivateEndpointConnection [Ignore("Only validating compilation of examples")] public async Task Get_AttestationProviderGetPrivateEndpointConnection() { - // Generated from example definition: specification/attestation/resource-manager/Microsoft.Attestation/preview/2021-06-01-preview/examples/AttestationProviderGetPrivateEndpointConnection.json + // Generated from example definition: specification/attestation/resource-manager/Microsoft.Attestation/stable/2021-06-01/examples/AttestationProviderGetPrivateEndpointConnection.json // this example is just showing the usage of "PrivateEndpointConnections_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -97,7 +97,7 @@ public async Task Get_AttestationProviderGetPrivateEndpointConnection() [Ignore("Only validating compilation of examples")] public async Task GetAll_AttestationProviderListPrivateEndpointConnections() { - // Generated from example definition: specification/attestation/resource-manager/Microsoft.Attestation/preview/2021-06-01-preview/examples/AttestationProviderListPrivateEndpointConnections.json + // Generated from example definition: specification/attestation/resource-manager/Microsoft.Attestation/stable/2021-06-01/examples/AttestationProviderListPrivateEndpointConnections.json // this example is just showing the usage of "PrivateEndpointConnections_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -133,7 +133,7 @@ public async Task GetAll_AttestationProviderListPrivateEndpointConnections() [Ignore("Only validating compilation of examples")] public async Task Exists_AttestationProviderGetPrivateEndpointConnection() { - // Generated from example definition: specification/attestation/resource-manager/Microsoft.Attestation/preview/2021-06-01-preview/examples/AttestationProviderGetPrivateEndpointConnection.json + // Generated from example definition: specification/attestation/resource-manager/Microsoft.Attestation/stable/2021-06-01/examples/AttestationProviderGetPrivateEndpointConnection.json // this example is just showing the usage of "PrivateEndpointConnections_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -163,7 +163,7 @@ public async Task Exists_AttestationProviderGetPrivateEndpointConnection() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_AttestationProviderGetPrivateEndpointConnection() { - // Generated from example definition: specification/attestation/resource-manager/Microsoft.Attestation/preview/2021-06-01-preview/examples/AttestationProviderGetPrivateEndpointConnection.json + // Generated from example definition: specification/attestation/resource-manager/Microsoft.Attestation/stable/2021-06-01/examples/AttestationProviderGetPrivateEndpointConnection.json // this example is just showing the usage of "PrivateEndpointConnections_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/attestation/Azure.ResourceManager.Attestation/samples/Generated/Samples/Sample_AttestationPrivateEndpointConnectionResource.cs b/sdk/attestation/Azure.ResourceManager.Attestation/samples/Generated/Samples/Sample_AttestationPrivateEndpointConnectionResource.cs index b936ba53f910..953ca6c73df5 100644 --- a/sdk/attestation/Azure.ResourceManager.Attestation/samples/Generated/Samples/Sample_AttestationPrivateEndpointConnectionResource.cs +++ b/sdk/attestation/Azure.ResourceManager.Attestation/samples/Generated/Samples/Sample_AttestationPrivateEndpointConnectionResource.cs @@ -20,7 +20,7 @@ public partial class Sample_AttestationPrivateEndpointConnectionResource [Ignore("Only validating compilation of examples")] public async Task Get_AttestationProviderGetPrivateEndpointConnection() { - // Generated from example definition: specification/attestation/resource-manager/Microsoft.Attestation/preview/2021-06-01-preview/examples/AttestationProviderGetPrivateEndpointConnection.json + // Generated from example definition: specification/attestation/resource-manager/Microsoft.Attestation/stable/2021-06-01/examples/AttestationProviderGetPrivateEndpointConnection.json // this example is just showing the usage of "PrivateEndpointConnections_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -51,7 +51,7 @@ public async Task Get_AttestationProviderGetPrivateEndpointConnection() [Ignore("Only validating compilation of examples")] public async Task Delete_AttestationProviderDeletePrivateEndpointConnection() { - // Generated from example definition: specification/attestation/resource-manager/Microsoft.Attestation/preview/2021-06-01-preview/examples/AttestationProviderDeletePrivateEndpointConnection.json + // Generated from example definition: specification/attestation/resource-manager/Microsoft.Attestation/stable/2021-06-01/examples/AttestationProviderDeletePrivateEndpointConnection.json // this example is just showing the usage of "PrivateEndpointConnections_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -78,7 +78,7 @@ public async Task Delete_AttestationProviderDeletePrivateEndpointConnection() [Ignore("Only validating compilation of examples")] public async Task Update_AttestationProviderPutPrivateEndpointConnection() { - // Generated from example definition: specification/attestation/resource-manager/Microsoft.Attestation/preview/2021-06-01-preview/examples/AttestationProviderPutPrivateEndpointConnection.json + // Generated from example definition: specification/attestation/resource-manager/Microsoft.Attestation/stable/2021-06-01/examples/AttestationProviderPutPrivateEndpointConnection.json // this example is just showing the usage of "PrivateEndpointConnections_Create" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/attestation/Azure.ResourceManager.Attestation/samples/Generated/Samples/Sample_AttestationProviderCollection.cs b/sdk/attestation/Azure.ResourceManager.Attestation/samples/Generated/Samples/Sample_AttestationProviderCollection.cs index ff7c0818083a..8f98a14dd20a 100644 --- a/sdk/attestation/Azure.ResourceManager.Attestation/samples/Generated/Samples/Sample_AttestationProviderCollection.cs +++ b/sdk/attestation/Azure.ResourceManager.Attestation/samples/Generated/Samples/Sample_AttestationProviderCollection.cs @@ -21,7 +21,7 @@ public partial class Sample_AttestationProviderCollection [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_AttestationProvidersCreate() { - // Generated from example definition: specification/attestation/resource-manager/Microsoft.Attestation/preview/2021-06-01-preview/examples/Create_AttestationProvider.json + // Generated from example definition: specification/attestation/resource-manager/Microsoft.Attestation/stable/2021-06-01/examples/Create_AttestationProvider.json // this example is just showing the usage of "AttestationProviders_Create" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -44,6 +44,7 @@ public async Task CreateOrUpdate_AttestationProvidersCreate() AttestationProviderCreateOrUpdateContent content = new AttestationProviderCreateOrUpdateContent(new AzureLocation("East US"), new AttestationServiceCreationSpecificParams { PublicNetworkAccess = PublicNetworkAccessType.Enabled, + TpmAttestationAuthentication = TpmAttestationAuthenticationType.Enabled, }) { Tags = @@ -67,7 +68,7 @@ public async Task CreateOrUpdate_AttestationProvidersCreate() [Ignore("Only validating compilation of examples")] public async Task Get_AttestationProvidersGet() { - // Generated from example definition: specification/attestation/resource-manager/Microsoft.Attestation/preview/2021-06-01-preview/examples/Get_AttestationProvider.json + // Generated from example definition: specification/attestation/resource-manager/Microsoft.Attestation/stable/2021-06-01/examples/Get_AttestationProvider.json // this example is just showing the usage of "AttestationProviders_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -100,7 +101,7 @@ public async Task Get_AttestationProvidersGet() [Ignore("Only validating compilation of examples")] public async Task GetAll_AttestationProvidersListByResourceGroup() { - // Generated from example definition: specification/attestation/resource-manager/Microsoft.Attestation/preview/2021-06-01-preview/examples/Get_AttestationProvidersListByResourceGroup.json + // Generated from example definition: specification/attestation/resource-manager/Microsoft.Attestation/stable/2021-06-01/examples/Get_AttestationProvidersListByResourceGroup.json // this example is just showing the usage of "AttestationProviders_ListByResourceGroup" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -135,7 +136,7 @@ public async Task GetAll_AttestationProvidersListByResourceGroup() [Ignore("Only validating compilation of examples")] public async Task Exists_AttestationProvidersGet() { - // Generated from example definition: specification/attestation/resource-manager/Microsoft.Attestation/preview/2021-06-01-preview/examples/Get_AttestationProvider.json + // Generated from example definition: specification/attestation/resource-manager/Microsoft.Attestation/stable/2021-06-01/examples/Get_AttestationProvider.json // this example is just showing the usage of "AttestationProviders_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -164,7 +165,7 @@ public async Task Exists_AttestationProvidersGet() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_AttestationProvidersGet() { - // Generated from example definition: specification/attestation/resource-manager/Microsoft.Attestation/preview/2021-06-01-preview/examples/Get_AttestationProvider.json + // Generated from example definition: specification/attestation/resource-manager/Microsoft.Attestation/stable/2021-06-01/examples/Get_AttestationProvider.json // this example is just showing the usage of "AttestationProviders_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/attestation/Azure.ResourceManager.Attestation/samples/Generated/Samples/Sample_AttestationProviderResource.cs b/sdk/attestation/Azure.ResourceManager.Attestation/samples/Generated/Samples/Sample_AttestationProviderResource.cs index 3bf46d9e0f3c..53304acc0ff2 100644 --- a/sdk/attestation/Azure.ResourceManager.Attestation/samples/Generated/Samples/Sample_AttestationProviderResource.cs +++ b/sdk/attestation/Azure.ResourceManager.Attestation/samples/Generated/Samples/Sample_AttestationProviderResource.cs @@ -20,7 +20,7 @@ public partial class Sample_AttestationProviderResource [Ignore("Only validating compilation of examples")] public async Task Get_AttestationProvidersGet() { - // Generated from example definition: specification/attestation/resource-manager/Microsoft.Attestation/preview/2021-06-01-preview/examples/Get_AttestationProvider.json + // Generated from example definition: specification/attestation/resource-manager/Microsoft.Attestation/stable/2021-06-01/examples/Get_AttestationProvider.json // this example is just showing the usage of "AttestationProviders_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -50,7 +50,7 @@ public async Task Get_AttestationProvidersGet() [Ignore("Only validating compilation of examples")] public async Task Delete_AttestationProvidersDelete() { - // Generated from example definition: specification/attestation/resource-manager/Microsoft.Attestation/preview/2021-06-01-preview/examples/Delete_AttestationProvider.json + // Generated from example definition: specification/attestation/resource-manager/Microsoft.Attestation/stable/2021-06-01/examples/Delete_AttestationProvider.json // this example is just showing the usage of "AttestationProviders_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -76,7 +76,7 @@ public async Task Delete_AttestationProvidersDelete() [Ignore("Only validating compilation of examples")] public async Task Update_AttestationProvidersUpdate() { - // Generated from example definition: specification/attestation/resource-manager/Microsoft.Attestation/preview/2021-06-01-preview/examples/Update_AttestationProvider.json + // Generated from example definition: specification/attestation/resource-manager/Microsoft.Attestation/stable/2021-06-01/examples/Update_AttestationProvider.json // this example is just showing the usage of "AttestationProviders_Update" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -101,7 +101,11 @@ public async Task Update_AttestationProvidersUpdate() ["Property2"] = "Value2", ["Property3"] = "Value3" }, - AttestationServicePatchSpecificParamsPublicNetworkAccess = PublicNetworkAccessType.Disabled, + Properties = new AttestationServicePatchSpecificParams + { + PublicNetworkAccess = PublicNetworkAccessType.Disabled, + TpmAttestationAuthentication = TpmAttestationAuthenticationType.Disabled, + }, }; AttestationProviderResource result = await attestationProvider.UpdateAsync(patch); @@ -116,7 +120,7 @@ public async Task Update_AttestationProvidersUpdate() [Ignore("Only validating compilation of examples")] public async Task GetPrivateLinkResourcesByProvider_AttestationProviderListPrivateLinkResources() { - // Generated from example definition: specification/attestation/resource-manager/Microsoft.Attestation/preview/2021-06-01-preview/examples/AttestationProviderListPrivateLinkResources.json + // Generated from example definition: specification/attestation/resource-manager/Microsoft.Attestation/stable/2021-06-01/examples/AttestationProviderListPrivateLinkResources.json // this example is just showing the usage of "PrivateLinkResources_ListByProvider" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/attestation/Azure.ResourceManager.Attestation/samples/Generated/Samples/Sample_SubscriptionResourceExtensions.cs b/sdk/attestation/Azure.ResourceManager.Attestation/samples/Generated/Samples/Sample_SubscriptionResourceExtensions.cs index 038759246606..5e6c8dd9b43e 100644 --- a/sdk/attestation/Azure.ResourceManager.Attestation/samples/Generated/Samples/Sample_SubscriptionResourceExtensions.cs +++ b/sdk/attestation/Azure.ResourceManager.Attestation/samples/Generated/Samples/Sample_SubscriptionResourceExtensions.cs @@ -20,7 +20,7 @@ public partial class Sample_SubscriptionResourceExtensions [Ignore("Only validating compilation of examples")] public async Task GetAttestationProviders_AttestationProvidersList() { - // Generated from example definition: specification/attestation/resource-manager/Microsoft.Attestation/preview/2021-06-01-preview/examples/Get_AttestationProvidersList.json + // Generated from example definition: specification/attestation/resource-manager/Microsoft.Attestation/stable/2021-06-01/examples/Get_AttestationProvidersList.json // this example is just showing the usage of "AttestationProviders_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -51,7 +51,7 @@ public async Task GetAttestationProviders_AttestationProvidersList() [Ignore("Only validating compilation of examples")] public async Task GetAttestationProvidersByDefaultProvider_AttestationProvidersGetDefault() { - // Generated from example definition: specification/attestation/resource-manager/Microsoft.Attestation/preview/2021-06-01-preview/examples/Get_DefaultProviders.json + // Generated from example definition: specification/attestation/resource-manager/Microsoft.Attestation/stable/2021-06-01/examples/Get_DefaultProviders.json // this example is just showing the usage of "AttestationProviders_ListDefault" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -82,7 +82,7 @@ public async Task GetAttestationProvidersByDefaultProvider_AttestationProvidersG [Ignore("Only validating compilation of examples")] public async Task GetDefaultByLocationAttestationProvider_AttestationProvidersGetDefaultWithLocation() { - // Generated from example definition: specification/attestation/resource-manager/Microsoft.Attestation/preview/2021-06-01-preview/examples/Get_DefaultProviderByLocation.json + // Generated from example definition: specification/attestation/resource-manager/Microsoft.Attestation/stable/2021-06-01/examples/Get_DefaultProviderByLocation.json // this example is just showing the usage of "AttestationProviders_GetDefaultByLocation" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/attestation/Azure.ResourceManager.Attestation/src/Generated/ArmAttestationModelFactory.cs b/sdk/attestation/Azure.ResourceManager.Attestation/src/Generated/ArmAttestationModelFactory.cs index eb7b662d223e..2fac01eef316 100644 --- a/sdk/attestation/Azure.ResourceManager.Attestation/src/Generated/ArmAttestationModelFactory.cs +++ b/sdk/attestation/Azure.ResourceManager.Attestation/src/Generated/ArmAttestationModelFactory.cs @@ -28,8 +28,9 @@ public static partial class ArmAttestationModelFactory /// Gets the uri of attestation service. /// Controls whether traffic from the public network is allowed to access the Attestation Provider APIs. /// List of private endpoint connections associated with the attestation provider. + /// The setting that controls whether authentication is enabled or disabled for TPM Attestation REST APIs. /// A new instance for mocking. - public static AttestationProviderData AttestationProviderData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, string trustModel = null, AttestationServiceStatus? status = null, Uri attestUri = null, PublicNetworkAccessType? publicNetworkAccess = null, IEnumerable privateEndpointConnections = null) + public static AttestationProviderData AttestationProviderData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, string trustModel = null, AttestationServiceStatus? status = null, Uri attestUri = null, PublicNetworkAccessType? publicNetworkAccess = null, IEnumerable privateEndpointConnections = null, TpmAttestationAuthenticationType? tpmAttestationAuthentication = null) { tags ??= new Dictionary(); privateEndpointConnections ??= new List(); @@ -46,6 +47,7 @@ public static AttestationProviderData AttestationProviderData(ResourceIdentifier attestUri, publicNetworkAccess, privateEndpointConnections?.ToList(), + tpmAttestationAuthentication, serializedAdditionalRawData: null); } diff --git a/sdk/attestation/Azure.ResourceManager.Attestation/src/Generated/AttestationPrivateEndpointConnectionCollection.cs b/sdk/attestation/Azure.ResourceManager.Attestation/src/Generated/AttestationPrivateEndpointConnectionCollection.cs index fc0e3c4afe3d..e9d27431e0ab 100644 --- a/sdk/attestation/Azure.ResourceManager.Attestation/src/Generated/AttestationPrivateEndpointConnectionCollection.cs +++ b/sdk/attestation/Azure.ResourceManager.Attestation/src/Generated/AttestationPrivateEndpointConnectionCollection.cs @@ -64,7 +64,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2021-06-01-preview + /// 2021-06-01 /// /// /// Resource @@ -115,7 +115,7 @@ public virtual async Task /// /// Default Api Version - /// 2021-06-01-preview + /// 2021-06-01 /// /// /// Resource @@ -166,7 +166,7 @@ public virtual ArmOperation Create /// /// /// Default Api Version - /// 2021-06-01-preview + /// 2021-06-01 /// /// /// Resource @@ -211,7 +211,7 @@ public virtual async Task /// /// /// Default Api Version - /// 2021-06-01-preview + /// 2021-06-01 /// /// /// Resource @@ -256,7 +256,7 @@ public virtual Response Get(string /// /// /// Default Api Version - /// 2021-06-01-preview + /// 2021-06-01 /// /// /// Resource @@ -285,7 +285,7 @@ public virtual AsyncPageable GetAl /// /// /// Default Api Version - /// 2021-06-01-preview + /// 2021-06-01 /// /// /// Resource @@ -314,7 +314,7 @@ public virtual Pageable GetAll(Can /// /// /// Default Api Version - /// 2021-06-01-preview + /// 2021-06-01 /// /// /// Resource @@ -357,7 +357,7 @@ public virtual async Task> ExistsAsync(string privateEndpointConn /// /// /// Default Api Version - /// 2021-06-01-preview + /// 2021-06-01 /// /// /// Resource @@ -400,7 +400,7 @@ public virtual Response Exists(string privateEndpointConnectionName, Cance /// /// /// Default Api Version - /// 2021-06-01-preview + /// 2021-06-01 /// /// /// Resource @@ -445,7 +445,7 @@ public virtual async Task /// /// Default Api Version - /// 2021-06-01-preview + /// 2021-06-01 /// /// /// Resource diff --git a/sdk/attestation/Azure.ResourceManager.Attestation/src/Generated/AttestationPrivateEndpointConnectionResource.cs b/sdk/attestation/Azure.ResourceManager.Attestation/src/Generated/AttestationPrivateEndpointConnectionResource.cs index 9b0fe9a725e8..69beb28135c1 100644 --- a/sdk/attestation/Azure.ResourceManager.Attestation/src/Generated/AttestationPrivateEndpointConnectionResource.cs +++ b/sdk/attestation/Azure.ResourceManager.Attestation/src/Generated/AttestationPrivateEndpointConnectionResource.cs @@ -101,7 +101,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2021-06-01-preview + /// 2021-06-01 /// /// /// Resource @@ -141,7 +141,7 @@ public virtual async Task /// /// /// Default Api Version - /// 2021-06-01-preview + /// 2021-06-01 /// /// /// Resource @@ -181,7 +181,7 @@ public virtual Response Get(Cancel /// /// /// Default Api Version - /// 2021-06-01-preview + /// 2021-06-01 /// /// /// Resource @@ -225,7 +225,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2021-06-01-preview + /// 2021-06-01 /// /// /// Resource @@ -269,7 +269,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2021-06-01-preview + /// 2021-06-01 /// /// /// Resource @@ -317,7 +317,7 @@ public virtual async Task /// /// Default Api Version - /// 2021-06-01-preview + /// 2021-06-01 /// /// /// Resource diff --git a/sdk/attestation/Azure.ResourceManager.Attestation/src/Generated/AttestationProviderCollection.cs b/sdk/attestation/Azure.ResourceManager.Attestation/src/Generated/AttestationProviderCollection.cs index 14a9c223a49a..c005808b254d 100644 --- a/sdk/attestation/Azure.ResourceManager.Attestation/src/Generated/AttestationProviderCollection.cs +++ b/sdk/attestation/Azure.ResourceManager.Attestation/src/Generated/AttestationProviderCollection.cs @@ -54,7 +54,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) } /// - /// Creates a new Attestation Provider. + /// Creates or updates an Attestation Provider. /// /// /// Request Path @@ -66,7 +66,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2021-06-01-preview + /// 2021-06-01 /// /// /// Resource @@ -105,7 +105,7 @@ public virtual async Task> CreateOrUpd } /// - /// Creates a new Attestation Provider. + /// Creates or updates an Attestation Provider. /// /// /// Request Path @@ -117,7 +117,7 @@ public virtual async Task> CreateOrUpd /// /// /// Default Api Version - /// 2021-06-01-preview + /// 2021-06-01 /// /// /// Resource @@ -168,7 +168,7 @@ public virtual ArmOperation CreateOrUpdate(WaitUnti /// /// /// Default Api Version - /// 2021-06-01-preview + /// 2021-06-01 /// /// /// Resource @@ -213,7 +213,7 @@ public virtual async Task> GetAsync(string /// /// /// Default Api Version - /// 2021-06-01-preview + /// 2021-06-01 /// /// /// Resource @@ -258,7 +258,7 @@ public virtual Response Get(string providerName, Ca /// /// /// Default Api Version - /// 2021-06-01-preview + /// 2021-06-01 /// /// /// Resource @@ -287,7 +287,7 @@ public virtual AsyncPageable GetAllAsync(Cancellati /// /// /// Default Api Version - /// 2021-06-01-preview + /// 2021-06-01 /// /// /// Resource @@ -316,7 +316,7 @@ public virtual Pageable GetAll(CancellationToken ca /// /// /// Default Api Version - /// 2021-06-01-preview + /// 2021-06-01 /// /// /// Resource @@ -359,7 +359,7 @@ public virtual async Task> ExistsAsync(string providerName, Cance /// /// /// Default Api Version - /// 2021-06-01-preview + /// 2021-06-01 /// /// /// Resource @@ -402,7 +402,7 @@ public virtual Response Exists(string providerName, CancellationToken canc /// /// /// Default Api Version - /// 2021-06-01-preview + /// 2021-06-01 /// /// /// Resource @@ -447,7 +447,7 @@ public virtual async Task> GetIfEx /// /// /// Default Api Version - /// 2021-06-01-preview + /// 2021-06-01 /// /// /// Resource diff --git a/sdk/attestation/Azure.ResourceManager.Attestation/src/Generated/AttestationProviderData.Serialization.cs b/sdk/attestation/Azure.ResourceManager.Attestation/src/Generated/AttestationProviderData.Serialization.cs index 5636f5a9ecae..76c7742e5e4a 100644 --- a/sdk/attestation/Azure.ResourceManager.Attestation/src/Generated/AttestationProviderData.Serialization.cs +++ b/sdk/attestation/Azure.ResourceManager.Attestation/src/Generated/AttestationProviderData.Serialization.cs @@ -69,6 +69,11 @@ protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWri } writer.WriteEndArray(); } + if (Optional.IsDefined(TpmAttestationAuthentication)) + { + writer.WritePropertyName("tpmAttestationAuthentication"u8); + writer.WriteStringValue(TpmAttestationAuthentication.Value.ToString()); + } writer.WriteEndObject(); } @@ -103,6 +108,7 @@ internal static AttestationProviderData DeserializeAttestationProviderData(JsonE Uri attestUri = default; PublicNetworkAccessType? publicNetworkAccess = default; IReadOnlyList privateEndpointConnections = default; + TpmAttestationAuthenticationType? tpmAttestationAuthentication = default; IDictionary serializedAdditionalRawData = default; Dictionary rawDataDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) @@ -205,6 +211,15 @@ internal static AttestationProviderData DeserializeAttestationProviderData(JsonE privateEndpointConnections = array; continue; } + if (property0.NameEquals("tpmAttestationAuthentication"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + tpmAttestationAuthentication = new TpmAttestationAuthenticationType(property0.Value.GetString()); + continue; + } } continue; } @@ -226,6 +241,7 @@ internal static AttestationProviderData DeserializeAttestationProviderData(JsonE attestUri, publicNetworkAccess, privateEndpointConnections ?? new ChangeTrackingList(), + tpmAttestationAuthentication, serializedAdditionalRawData); } diff --git a/sdk/attestation/Azure.ResourceManager.Attestation/src/Generated/AttestationProviderData.cs b/sdk/attestation/Azure.ResourceManager.Attestation/src/Generated/AttestationProviderData.cs index 095695205626..07efe0a49414 100644 --- a/sdk/attestation/Azure.ResourceManager.Attestation/src/Generated/AttestationProviderData.cs +++ b/sdk/attestation/Azure.ResourceManager.Attestation/src/Generated/AttestationProviderData.cs @@ -70,14 +70,16 @@ public AttestationProviderData(AzureLocation location) : base(location) /// Gets the uri of attestation service. /// Controls whether traffic from the public network is allowed to access the Attestation Provider APIs. /// List of private endpoint connections associated with the attestation provider. + /// The setting that controls whether authentication is enabled or disabled for TPM Attestation REST APIs. /// Keeps track of any properties unknown to the library. - internal AttestationProviderData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary tags, AzureLocation location, string trustModel, AttestationServiceStatus? status, Uri attestUri, PublicNetworkAccessType? publicNetworkAccess, IReadOnlyList privateEndpointConnections, IDictionary serializedAdditionalRawData) : base(id, name, resourceType, systemData, tags, location) + internal AttestationProviderData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary tags, AzureLocation location, string trustModel, AttestationServiceStatus? status, Uri attestUri, PublicNetworkAccessType? publicNetworkAccess, IReadOnlyList privateEndpointConnections, TpmAttestationAuthenticationType? tpmAttestationAuthentication, IDictionary serializedAdditionalRawData) : base(id, name, resourceType, systemData, tags, location) { TrustModel = trustModel; Status = status; AttestUri = attestUri; PublicNetworkAccess = publicNetworkAccess; PrivateEndpointConnections = privateEndpointConnections; + TpmAttestationAuthentication = tpmAttestationAuthentication; _serializedAdditionalRawData = serializedAdditionalRawData; } @@ -96,5 +98,7 @@ internal AttestationProviderData() public PublicNetworkAccessType? PublicNetworkAccess { get; set; } /// List of private endpoint connections associated with the attestation provider. public IReadOnlyList PrivateEndpointConnections { get; } + /// The setting that controls whether authentication is enabled or disabled for TPM Attestation REST APIs. + public TpmAttestationAuthenticationType? TpmAttestationAuthentication { get; set; } } } diff --git a/sdk/attestation/Azure.ResourceManager.Attestation/src/Generated/AttestationProviderResource.cs b/sdk/attestation/Azure.ResourceManager.Attestation/src/Generated/AttestationProviderResource.cs index 0b32392e72c9..110c1f488d90 100644 --- a/sdk/attestation/Azure.ResourceManager.Attestation/src/Generated/AttestationProviderResource.cs +++ b/sdk/attestation/Azure.ResourceManager.Attestation/src/Generated/AttestationProviderResource.cs @@ -115,7 +115,7 @@ public virtual AttestationPrivateEndpointConnectionCollection GetAttestationPriv /// /// /// Default Api Version - /// 2021-06-01-preview + /// 2021-06-01 /// /// /// Resource @@ -146,7 +146,7 @@ public virtual async Task /// /// /// Default Api Version - /// 2021-06-01-preview + /// 2021-06-01 /// /// /// Resource @@ -177,7 +177,7 @@ public virtual Response GetAttesta /// /// /// Default Api Version - /// 2021-06-01-preview + /// 2021-06-01 /// /// /// Resource @@ -217,7 +217,7 @@ public virtual async Task> GetAsync(Cancel /// /// /// Default Api Version - /// 2021-06-01-preview + /// 2021-06-01 /// /// /// Resource @@ -257,7 +257,7 @@ public virtual Response Get(CancellationToken cance /// /// /// Default Api Version - /// 2021-06-01-preview + /// 2021-06-01 /// /// /// Resource @@ -301,7 +301,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2021-06-01-preview + /// 2021-06-01 /// /// /// Resource @@ -345,7 +345,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2021-06-01-preview + /// 2021-06-01 /// /// /// Resource @@ -387,7 +387,7 @@ public virtual async Task> UpdateAsync(Att /// /// /// Default Api Version - /// 2021-06-01-preview + /// 2021-06-01 /// /// /// Resource @@ -429,7 +429,7 @@ public virtual Response Update(AttestationProviderP /// /// /// Default Api Version - /// 2021-06-01-preview + /// 2021-06-01 /// /// /// @@ -454,7 +454,7 @@ public virtual AsyncPageable GetPrivateLinkResou /// /// /// Default Api Version - /// 2021-06-01-preview + /// 2021-06-01 /// /// /// @@ -479,7 +479,7 @@ public virtual Pageable GetPrivateLinkResourcesB /// /// /// Default Api Version - /// 2021-06-01-preview + /// 2021-06-01 /// /// /// Resource @@ -541,7 +541,7 @@ public virtual async Task> AddTagAsync(str /// /// /// Default Api Version - /// 2021-06-01-preview + /// 2021-06-01 /// /// /// Resource @@ -603,7 +603,7 @@ public virtual Response AddTag(string key, string v /// /// /// Default Api Version - /// 2021-06-01-preview + /// 2021-06-01 /// /// /// Resource @@ -660,7 +660,7 @@ public virtual async Task> SetTagsAsync(ID /// /// /// Default Api Version - /// 2021-06-01-preview + /// 2021-06-01 /// /// /// Resource @@ -717,7 +717,7 @@ public virtual Response SetTags(IDictionary /// /// Default Api Version - /// 2021-06-01-preview + /// 2021-06-01 /// /// /// Resource @@ -777,7 +777,7 @@ public virtual async Task> RemoveTagAsync( /// /// /// Default Api Version - /// 2021-06-01-preview + /// 2021-06-01 /// /// /// Resource diff --git a/sdk/attestation/Azure.ResourceManager.Attestation/src/Generated/Extensions/AttestationExtensions.cs b/sdk/attestation/Azure.ResourceManager.Attestation/src/Generated/Extensions/AttestationExtensions.cs index c8e35f06d1cf..ae012ccb37f0 100644 --- a/sdk/attestation/Azure.ResourceManager.Attestation/src/Generated/Extensions/AttestationExtensions.cs +++ b/sdk/attestation/Azure.ResourceManager.Attestation/src/Generated/Extensions/AttestationExtensions.cs @@ -100,7 +100,7 @@ public static AttestationProviderCollection GetAttestationProviders(this Resourc /// /// /// Default Api Version - /// 2021-06-01-preview + /// 2021-06-01 /// /// /// Resource @@ -138,7 +138,7 @@ public static async Task> GetAttestationPr /// /// /// Default Api Version - /// 2021-06-01-preview + /// 2021-06-01 /// /// /// Resource @@ -176,7 +176,7 @@ public static Response GetAttestationProvider(this /// /// /// Default Api Version - /// 2021-06-01-preview + /// 2021-06-01 /// /// /// Resource @@ -212,7 +212,7 @@ public static AsyncPageable GetAttestationProviders /// /// /// Default Api Version - /// 2021-06-01-preview + /// 2021-06-01 /// /// /// Resource @@ -248,7 +248,7 @@ public static Pageable GetAttestationProviders(this /// /// /// Default Api Version - /// 2021-06-01-preview + /// 2021-06-01 /// /// /// Resource @@ -284,7 +284,7 @@ public static AsyncPageable GetAttestationProviders /// /// /// Default Api Version - /// 2021-06-01-preview + /// 2021-06-01 /// /// /// Resource @@ -320,7 +320,7 @@ public static Pageable GetAttestationProvidersByDef /// /// /// Default Api Version - /// 2021-06-01-preview + /// 2021-06-01 /// /// /// Resource @@ -356,7 +356,7 @@ public static async Task> GetDefaultByLoca /// /// /// Default Api Version - /// 2021-06-01-preview + /// 2021-06-01 /// /// /// Resource diff --git a/sdk/attestation/Azure.ResourceManager.Attestation/src/Generated/Extensions/MockableAttestationResourceGroupResource.cs b/sdk/attestation/Azure.ResourceManager.Attestation/src/Generated/Extensions/MockableAttestationResourceGroupResource.cs index 73a9a51e458c..b376ed2882e8 100644 --- a/sdk/attestation/Azure.ResourceManager.Attestation/src/Generated/Extensions/MockableAttestationResourceGroupResource.cs +++ b/sdk/attestation/Azure.ResourceManager.Attestation/src/Generated/Extensions/MockableAttestationResourceGroupResource.cs @@ -53,7 +53,7 @@ public virtual AttestationProviderCollection GetAttestationProviders() /// /// /// Default Api Version - /// 2021-06-01-preview + /// 2021-06-01 /// /// /// Resource @@ -84,7 +84,7 @@ public virtual async Task> GetAttestationP /// /// /// Default Api Version - /// 2021-06-01-preview + /// 2021-06-01 /// /// /// Resource diff --git a/sdk/attestation/Azure.ResourceManager.Attestation/src/Generated/Extensions/MockableAttestationSubscriptionResource.cs b/sdk/attestation/Azure.ResourceManager.Attestation/src/Generated/Extensions/MockableAttestationSubscriptionResource.cs index ba946f6e6456..d2016c7f28d6 100644 --- a/sdk/attestation/Azure.ResourceManager.Attestation/src/Generated/Extensions/MockableAttestationSubscriptionResource.cs +++ b/sdk/attestation/Azure.ResourceManager.Attestation/src/Generated/Extensions/MockableAttestationSubscriptionResource.cs @@ -54,7 +54,7 @@ private string GetApiVersionOrNull(ResourceType resourceType) /// /// /// Default Api Version - /// 2021-06-01-preview + /// 2021-06-01 /// /// /// Resource @@ -83,7 +83,7 @@ public virtual AsyncPageable GetAttestationProvider /// /// /// Default Api Version - /// 2021-06-01-preview + /// 2021-06-01 /// /// /// Resource @@ -112,7 +112,7 @@ public virtual Pageable GetAttestationProviders(Can /// /// /// Default Api Version - /// 2021-06-01-preview + /// 2021-06-01 /// /// /// Resource @@ -141,7 +141,7 @@ public virtual AsyncPageable GetAttestationProvider /// /// /// Default Api Version - /// 2021-06-01-preview + /// 2021-06-01 /// /// /// Resource @@ -170,7 +170,7 @@ public virtual Pageable GetAttestationProvidersByDe /// /// /// Default Api Version - /// 2021-06-01-preview + /// 2021-06-01 /// /// /// Resource @@ -209,7 +209,7 @@ public virtual async Task> GetDefaultByLoc /// /// /// Default Api Version - /// 2021-06-01-preview + /// 2021-06-01 /// /// /// Resource diff --git a/sdk/attestation/Azure.ResourceManager.Attestation/src/Generated/Models/AttestationProviderPatch.cs b/sdk/attestation/Azure.ResourceManager.Attestation/src/Generated/Models/AttestationProviderPatch.cs index 2d0eff7aa080..1bdb66a070e1 100644 --- a/sdk/attestation/Azure.ResourceManager.Attestation/src/Generated/Models/AttestationProviderPatch.cs +++ b/sdk/attestation/Azure.ResourceManager.Attestation/src/Generated/Models/AttestationProviderPatch.cs @@ -65,17 +65,6 @@ internal AttestationProviderPatch(IDictionary tags, AttestationS /// The tags that will be assigned to the attestation provider. public IDictionary Tags { get; } /// Properties of the attestation provider. - internal AttestationServicePatchSpecificParams Properties { get; set; } - /// Controls whether traffic from the public network is allowed to access the Attestation Provider APIs. - public PublicNetworkAccessType? AttestationServicePatchSpecificParamsPublicNetworkAccess - { - get => Properties is null ? default : Properties.PublicNetworkAccess; - set - { - if (Properties is null) - Properties = new AttestationServicePatchSpecificParams(); - Properties.PublicNetworkAccess = value; - } - } + public AttestationServicePatchSpecificParams Properties { get; set; } } } diff --git a/sdk/attestation/Azure.ResourceManager.Attestation/src/Generated/Models/AttestationServiceCreationSpecificParams.Serialization.cs b/sdk/attestation/Azure.ResourceManager.Attestation/src/Generated/Models/AttestationServiceCreationSpecificParams.Serialization.cs index 2c62194b33b4..85a5384cd035 100644 --- a/sdk/attestation/Azure.ResourceManager.Attestation/src/Generated/Models/AttestationServiceCreationSpecificParams.Serialization.cs +++ b/sdk/attestation/Azure.ResourceManager.Attestation/src/Generated/Models/AttestationServiceCreationSpecificParams.Serialization.cs @@ -44,6 +44,11 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit writer.WritePropertyName("policySigningCertificates"u8); writer.WriteObjectValue(PolicySigningCertificates, options); } + if (Optional.IsDefined(TpmAttestationAuthentication)) + { + writer.WritePropertyName("tpmAttestationAuthentication"u8); + writer.WriteStringValue(TpmAttestationAuthentication.Value.ToString()); + } if (options.Format != "W" && _serializedAdditionalRawData != null) { foreach (var item in _serializedAdditionalRawData) @@ -83,6 +88,7 @@ internal static AttestationServiceCreationSpecificParams DeserializeAttestationS } PublicNetworkAccessType? publicNetworkAccess = default; JsonWebKeySet policySigningCertificates = default; + TpmAttestationAuthenticationType? tpmAttestationAuthentication = default; IDictionary serializedAdditionalRawData = default; Dictionary rawDataDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) @@ -105,13 +111,22 @@ internal static AttestationServiceCreationSpecificParams DeserializeAttestationS policySigningCertificates = JsonWebKeySet.DeserializeJsonWebKeySet(property.Value, options); continue; } + if (property.NameEquals("tpmAttestationAuthentication"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + tpmAttestationAuthentication = new TpmAttestationAuthenticationType(property.Value.GetString()); + continue; + } if (options.Format != "W") { rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); } } serializedAdditionalRawData = rawDataDictionary; - return new AttestationServiceCreationSpecificParams(publicNetworkAccess, policySigningCertificates, serializedAdditionalRawData); + return new AttestationServiceCreationSpecificParams(publicNetworkAccess, policySigningCertificates, tpmAttestationAuthentication, serializedAdditionalRawData); } BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) diff --git a/sdk/attestation/Azure.ResourceManager.Attestation/src/Generated/Models/AttestationServiceCreationSpecificParams.cs b/sdk/attestation/Azure.ResourceManager.Attestation/src/Generated/Models/AttestationServiceCreationSpecificParams.cs index b940cfbe0c7e..838877a73691 100644 --- a/sdk/attestation/Azure.ResourceManager.Attestation/src/Generated/Models/AttestationServiceCreationSpecificParams.cs +++ b/sdk/attestation/Azure.ResourceManager.Attestation/src/Generated/Models/AttestationServiceCreationSpecificParams.cs @@ -53,11 +53,13 @@ public AttestationServiceCreationSpecificParams() /// Initializes a new instance of . /// Controls whether traffic from the public network is allowed to access the Attestation Provider APIs. /// 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. + /// The setting that controls whether authentication is enabled or disabled for TPM Attestation REST APIs. /// Keeps track of any properties unknown to the library. - internal AttestationServiceCreationSpecificParams(PublicNetworkAccessType? publicNetworkAccess, JsonWebKeySet policySigningCertificates, IDictionary serializedAdditionalRawData) + internal AttestationServiceCreationSpecificParams(PublicNetworkAccessType? publicNetworkAccess, JsonWebKeySet policySigningCertificates, TpmAttestationAuthenticationType? tpmAttestationAuthentication, IDictionary serializedAdditionalRawData) { PublicNetworkAccess = publicNetworkAccess; PolicySigningCertificates = policySigningCertificates; + TpmAttestationAuthentication = tpmAttestationAuthentication; _serializedAdditionalRawData = serializedAdditionalRawData; } @@ -81,5 +83,8 @@ public IList PolicySigningCertificatesKeys return PolicySigningCertificates.Keys; } } + + /// The setting that controls whether authentication is enabled or disabled for TPM Attestation REST APIs. + public TpmAttestationAuthenticationType? TpmAttestationAuthentication { get; set; } } } diff --git a/sdk/attestation/Azure.ResourceManager.Attestation/src/Generated/Models/AttestationServicePatchSpecificParams.Serialization.cs b/sdk/attestation/Azure.ResourceManager.Attestation/src/Generated/Models/AttestationServicePatchSpecificParams.Serialization.cs index 4be6865c0776..ab190b656e29 100644 --- a/sdk/attestation/Azure.ResourceManager.Attestation/src/Generated/Models/AttestationServicePatchSpecificParams.Serialization.cs +++ b/sdk/attestation/Azure.ResourceManager.Attestation/src/Generated/Models/AttestationServicePatchSpecificParams.Serialization.cs @@ -13,7 +13,7 @@ namespace Azure.ResourceManager.Attestation.Models { - internal partial class AttestationServicePatchSpecificParams : IUtf8JsonSerializable, IJsonModel + public partial class AttestationServicePatchSpecificParams : IUtf8JsonSerializable, IJsonModel { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); @@ -39,6 +39,11 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit writer.WritePropertyName("publicNetworkAccess"u8); writer.WriteStringValue(PublicNetworkAccess.Value.ToString()); } + if (Optional.IsDefined(TpmAttestationAuthentication)) + { + writer.WritePropertyName("tpmAttestationAuthentication"u8); + writer.WriteStringValue(TpmAttestationAuthentication.Value.ToString()); + } if (options.Format != "W" && _serializedAdditionalRawData != null) { foreach (var item in _serializedAdditionalRawData) @@ -77,6 +82,7 @@ internal static AttestationServicePatchSpecificParams DeserializeAttestationServ return null; } PublicNetworkAccessType? publicNetworkAccess = default; + TpmAttestationAuthenticationType? tpmAttestationAuthentication = default; IDictionary serializedAdditionalRawData = default; Dictionary rawDataDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) @@ -90,13 +96,22 @@ internal static AttestationServicePatchSpecificParams DeserializeAttestationServ publicNetworkAccess = new PublicNetworkAccessType(property.Value.GetString()); continue; } + if (property.NameEquals("tpmAttestationAuthentication"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + tpmAttestationAuthentication = new TpmAttestationAuthenticationType(property.Value.GetString()); + continue; + } if (options.Format != "W") { rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); } } serializedAdditionalRawData = rawDataDictionary; - return new AttestationServicePatchSpecificParams(publicNetworkAccess, serializedAdditionalRawData); + return new AttestationServicePatchSpecificParams(publicNetworkAccess, tpmAttestationAuthentication, serializedAdditionalRawData); } BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) diff --git a/sdk/attestation/Azure.ResourceManager.Attestation/src/Generated/Models/AttestationServicePatchSpecificParams.cs b/sdk/attestation/Azure.ResourceManager.Attestation/src/Generated/Models/AttestationServicePatchSpecificParams.cs index 48397d01b653..8ff40450d93c 100644 --- a/sdk/attestation/Azure.ResourceManager.Attestation/src/Generated/Models/AttestationServicePatchSpecificParams.cs +++ b/sdk/attestation/Azure.ResourceManager.Attestation/src/Generated/Models/AttestationServicePatchSpecificParams.cs @@ -11,7 +11,7 @@ namespace Azure.ResourceManager.Attestation.Models { /// Client supplied parameters used to patch an existing attestation provider. - internal partial class AttestationServicePatchSpecificParams + public partial class AttestationServicePatchSpecificParams { /// /// Keeps track of any properties unknown to the library. @@ -52,14 +52,18 @@ public AttestationServicePatchSpecificParams() /// Initializes a new instance of . /// Controls whether traffic from the public network is allowed to access the Attestation Provider APIs. + /// The setting that controls whether authentication is enabled or disabled for TPM Attestation REST APIs. /// Keeps track of any properties unknown to the library. - internal AttestationServicePatchSpecificParams(PublicNetworkAccessType? publicNetworkAccess, IDictionary serializedAdditionalRawData) + internal AttestationServicePatchSpecificParams(PublicNetworkAccessType? publicNetworkAccess, TpmAttestationAuthenticationType? tpmAttestationAuthentication, IDictionary serializedAdditionalRawData) { PublicNetworkAccess = publicNetworkAccess; + TpmAttestationAuthentication = tpmAttestationAuthentication; _serializedAdditionalRawData = serializedAdditionalRawData; } /// Controls whether traffic from the public network is allowed to access the Attestation Provider APIs. public PublicNetworkAccessType? PublicNetworkAccess { get; set; } + /// The setting that controls whether authentication is enabled or disabled for TPM Attestation REST APIs. + public TpmAttestationAuthenticationType? TpmAttestationAuthentication { get; set; } } } diff --git a/sdk/attestation/Azure.ResourceManager.Attestation/src/Generated/Models/TpmAttestationAuthenticationType.cs b/sdk/attestation/Azure.ResourceManager.Attestation/src/Generated/Models/TpmAttestationAuthenticationType.cs new file mode 100644 index 000000000000..b5ae932f573c --- /dev/null +++ b/sdk/attestation/Azure.ResourceManager.Attestation/src/Generated/Models/TpmAttestationAuthenticationType.cs @@ -0,0 +1,51 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.ResourceManager.Attestation.Models +{ + /// The type for specifying the requirement of authentication for TPM Attestation REST APIs. + public readonly partial struct TpmAttestationAuthenticationType : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public TpmAttestationAuthenticationType(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string EnabledValue = "Enabled"; + private const string DisabledValue = "Disabled"; + + /// Enables the requirement of authentication for TPM Attestation REST APIs. + public static TpmAttestationAuthenticationType Enabled { get; } = new TpmAttestationAuthenticationType(EnabledValue); + /// Disables the requirement of authentication for TPM Attestation REST APIs. + public static TpmAttestationAuthenticationType Disabled { get; } = new TpmAttestationAuthenticationType(DisabledValue); + /// Determines if two values are the same. + public static bool operator ==(TpmAttestationAuthenticationType left, TpmAttestationAuthenticationType right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(TpmAttestationAuthenticationType left, TpmAttestationAuthenticationType right) => !left.Equals(right); + /// Converts a to a . + public static implicit operator TpmAttestationAuthenticationType(string value) => new TpmAttestationAuthenticationType(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is TpmAttestationAuthenticationType other && Equals(other); + /// + public bool Equals(TpmAttestationAuthenticationType other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value != null ? StringComparer.InvariantCultureIgnoreCase.GetHashCode(_value) : 0; + /// + public override string ToString() => _value; + } +} diff --git a/sdk/attestation/Azure.ResourceManager.Attestation/src/Generated/RestOperations/AttestationProvidersRestOperations.cs b/sdk/attestation/Azure.ResourceManager.Attestation/src/Generated/RestOperations/AttestationProvidersRestOperations.cs index 0363ddd7df0a..24a418cc167e 100644 --- a/sdk/attestation/Azure.ResourceManager.Attestation/src/Generated/RestOperations/AttestationProvidersRestOperations.cs +++ b/sdk/attestation/Azure.ResourceManager.Attestation/src/Generated/RestOperations/AttestationProvidersRestOperations.cs @@ -32,7 +32,7 @@ public AttestationProvidersRestOperations(HttpPipeline pipeline, string applicat { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2021-06-01-preview"; + _apiVersion = apiVersion ?? "2021-06-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } @@ -170,7 +170,7 @@ internal HttpMessage CreateCreateRequest(string subscriptionId, string resourceG return message; } - /// Creates a new Attestation Provider. + /// Creates or updates an Attestation Provider. /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. /// Name of the attestation provider. @@ -202,7 +202,7 @@ public async Task> CreateAsync(string subscrip } } - /// Creates a new Attestation Provider. + /// Creates or updates an Attestation Provider. /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. /// Name of the attestation provider. diff --git a/sdk/attestation/Azure.ResourceManager.Attestation/src/Generated/RestOperations/PrivateEndpointConnectionsRestOperations.cs b/sdk/attestation/Azure.ResourceManager.Attestation/src/Generated/RestOperations/PrivateEndpointConnectionsRestOperations.cs index a588056b34fc..eddab7de139e 100644 --- a/sdk/attestation/Azure.ResourceManager.Attestation/src/Generated/RestOperations/PrivateEndpointConnectionsRestOperations.cs +++ b/sdk/attestation/Azure.ResourceManager.Attestation/src/Generated/RestOperations/PrivateEndpointConnectionsRestOperations.cs @@ -32,7 +32,7 @@ public PrivateEndpointConnectionsRestOperations(HttpPipeline pipeline, string ap { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2021-06-01-preview"; + _apiVersion = apiVersion ?? "2021-06-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/attestation/Azure.ResourceManager.Attestation/src/Generated/RestOperations/PrivateLinkResourcesRestOperations.cs b/sdk/attestation/Azure.ResourceManager.Attestation/src/Generated/RestOperations/PrivateLinkResourcesRestOperations.cs index 8c19b11392e0..c412e3b24cfd 100644 --- a/sdk/attestation/Azure.ResourceManager.Attestation/src/Generated/RestOperations/PrivateLinkResourcesRestOperations.cs +++ b/sdk/attestation/Azure.ResourceManager.Attestation/src/Generated/RestOperations/PrivateLinkResourcesRestOperations.cs @@ -32,7 +32,7 @@ public PrivateLinkResourcesRestOperations(HttpPipeline pipeline, string applicat { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2021-06-01-preview"; + _apiVersion = apiVersion ?? "2021-06-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/attestation/Azure.ResourceManager.Attestation/src/autorest.md b/sdk/attestation/Azure.ResourceManager.Attestation/src/autorest.md index 01e49a1f6602..f82c8687edf0 100644 --- a/sdk/attestation/Azure.ResourceManager.Attestation/src/autorest.md +++ b/sdk/attestation/Azure.ResourceManager.Attestation/src/autorest.md @@ -8,7 +8,7 @@ azure-arm: true csharp: true library-name: Attestation namespace: Azure.ResourceManager.Attestation -require: https://github.com/Azure/azure-rest-api-specs/blob/4270cc435fd2496bdb2a5f056dbddb463e52c7c2/specification/attestation/resource-manager/readme.md +require: /mnt/vss/_work/1/s/azure-rest-api-specs/specification/attestation/resource-manager/readme.md # This tag is for preview tag: package-2021-06-01 output-folder: $(this-folder)/Generated diff --git a/sdk/resourcemanager/ci.mgmt.yml b/sdk/resourcemanager/ci.mgmt.yml index d8bf790b5988..f28c28a5d39c 100644 --- a/sdk/resourcemanager/ci.mgmt.yml +++ b/sdk/resourcemanager/ci.mgmt.yml @@ -79,7 +79,6 @@ trigger: - sdk/dnsresolver/Azure.ResourceManager.DnsResolver - sdk/dynatrace/Azure.ResourceManager.Dynatrace - sdk/edgeorder/Azure.ResourceManager.EdgeOrder - - sdk/iotoperations/Azure.ResourceManager.IotOperations - sdk/edgezones/Azure.ResourceManager.EdgeZones - sdk/elastic/Azure.ResourceManager.Elastic - sdk/elasticsan/Azure.ResourceManager.ElasticSan @@ -108,6 +107,7 @@ trigger: - sdk/iot/Azure.ResourceManager.IotFirmwareDefense - sdk/iotcentral/Azure.ResourceManager.IotCentral - sdk/iothub/Azure.ResourceManager.IotHub + - sdk/iotoperations/Azure.ResourceManager.IotOperations - sdk/keyvault/Azure.ResourceManager.KeyVault - sdk/kubernetesconfiguration/Azure.ResourceManager.KubernetesConfiguration - sdk/kusto/Azure.ResourceManager.Kusto @@ -285,7 +285,6 @@ pr: - sdk/dnsresolver/Azure.ResourceManager.DnsResolver - sdk/dynatrace/Azure.ResourceManager.Dynatrace - sdk/edgeorder/Azure.ResourceManager.EdgeOrder - - sdk/iotoperations/Azure.ResourceManager.IotOperations - sdk/edgezones/Azure.ResourceManager.EdgeZones - sdk/elastic/Azure.ResourceManager.Elastic - sdk/elasticsan/Azure.ResourceManager.ElasticSan @@ -314,6 +313,7 @@ pr: - sdk/iot/Azure.ResourceManager.IotFirmwareDefense - sdk/iotcentral/Azure.ResourceManager.IotCentral - sdk/iothub/Azure.ResourceManager.IotHub + - sdk/iotoperations/Azure.ResourceManager.IotOperations - sdk/keyvault/Azure.ResourceManager.KeyVault - sdk/kubernetesconfiguration/Azure.ResourceManager.KubernetesConfiguration - sdk/kusto/Azure.ResourceManager.Kusto