diff --git a/sdk/trustedsigning/Azure.ResourceManager.TrustedSigning/Configuration.json b/sdk/trustedsigning/Azure.ResourceManager.TrustedSigning/Configuration.json new file mode 100644 index 000000000000..59206989e6b7 --- /dev/null +++ b/sdk/trustedsigning/Azure.ResourceManager.TrustedSigning/Configuration.json @@ -0,0 +1,13 @@ +{ + "output-folder": ".", + "namespace": "Azure.ResourceManager.TrustedSigning", + "library-name": "Azure.ResourceManager.TrustedSigning", + "flavor": "azure", + "use-model-reader-writer": true, + "shared-source-folders": [ + "../../TempTypeSpecFiles/node_modules/@autorest/csharp/Generator.Shared", + "../../TempTypeSpecFiles/node_modules/@autorest/csharp/Azure.Core.Shared" + ], + "model-namespace": false, + "azure-arm": true +} diff --git a/sdk/trustedsigning/Azure.ResourceManager.TrustedSigning/api/Azure.ResourceManager.TrustedSigning.net8.0.cs b/sdk/trustedsigning/Azure.ResourceManager.TrustedSigning/api/Azure.ResourceManager.TrustedSigning.net8.0.cs index dbd33a36082b..17d196931ad2 100644 --- a/sdk/trustedsigning/Azure.ResourceManager.TrustedSigning/api/Azure.ResourceManager.TrustedSigning.net8.0.cs +++ b/sdk/trustedsigning/Azure.ResourceManager.TrustedSigning/api/Azure.ResourceManager.TrustedSigning.net8.0.cs @@ -79,24 +79,15 @@ public partial class TrustedSigningCertificateProfileData : Azure.ResourceManage { public TrustedSigningCertificateProfileData() { } public System.Collections.Generic.IReadOnlyList Certificates { get { throw null; } } - public string City { get { throw null; } } - public string CommonName { get { throw null; } } - public string Country { get { throw null; } } - public string EnhancedKeyUsage { get { throw null; } } public string IdentityValidationId { get { throw null; } set { } } public bool? IncludeCity { get { throw null; } set { } } public bool? IncludeCountry { get { throw null; } set { } } public bool? IncludePostalCode { get { throw null; } set { } } public bool? IncludeState { get { throw null; } set { } } public bool? IncludeStreetAddress { get { throw null; } set { } } - public string Organization { get { throw null; } } - public string OrganizationUnit { get { throw null; } } - public string PostalCode { get { throw null; } } public Azure.ResourceManager.TrustedSigning.Models.CertificateProfileType? ProfileType { get { throw null; } set { } } public Azure.ResourceManager.TrustedSigning.Models.TrustedSigningProvisioningState? ProvisioningState { get { throw null; } } - public string State { get { throw null; } } public Azure.ResourceManager.TrustedSigning.Models.CertificateProfileStatus? Status { get { throw null; } } - public string StreetAddress { get { throw null; } } protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.ResourceManager.TrustedSigning.TrustedSigningCertificateProfileData 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) { } @@ -169,8 +160,8 @@ public static partial class ArmTrustedSigningModelFactory public static Azure.ResourceManager.TrustedSigning.Models.RevokeCertificateContent RevokeCertificateContent(string serialNumber = null, string thumbprint = null, System.DateTimeOffset effectiveOn = default(System.DateTimeOffset), string reason = null, string remarks = null) { throw null; } public static Azure.ResourceManager.TrustedSigning.TrustedSigningAccountData TrustedSigningAccountData(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), System.Uri accountUri = null, Azure.ResourceManager.TrustedSigning.Models.TrustedSigningSkuName? skuName = default(Azure.ResourceManager.TrustedSigning.Models.TrustedSigningSkuName?), Azure.ResourceManager.TrustedSigning.Models.TrustedSigningProvisioningState? provisioningState = default(Azure.ResourceManager.TrustedSigning.Models.TrustedSigningProvisioningState?)) { throw null; } public static Azure.ResourceManager.TrustedSigning.Models.TrustedSigningAccountNameAvailabilityResult TrustedSigningAccountNameAvailabilityResult(bool? isNameAvailable = default(bool?), Azure.ResourceManager.TrustedSigning.Models.TrustedSigningAccountNameUnavailabilityReason? reason = default(Azure.ResourceManager.TrustedSigning.Models.TrustedSigningAccountNameUnavailabilityReason?), string message = null) { throw null; } - public static Azure.ResourceManager.TrustedSigning.Models.TrustedSigningCertificate TrustedSigningCertificate(string serialNumber = null, string subjectName = null, string thumbprint = null, System.DateTimeOffset? createOn = default(System.DateTimeOffset?), System.DateTimeOffset? expireOn = default(System.DateTimeOffset?), Azure.ResourceManager.TrustedSigning.Models.TrustedSigningCertificateStatus? status = default(Azure.ResourceManager.TrustedSigning.Models.TrustedSigningCertificateStatus?), System.DateTimeOffset? requestedOn = default(System.DateTimeOffset?), System.DateTimeOffset? effectiveOn = default(System.DateTimeOffset?), string reason = null, string remarks = null, Azure.ResourceManager.TrustedSigning.Models.CertificateRevocationStatus? statusRevocationStatus = default(Azure.ResourceManager.TrustedSigning.Models.CertificateRevocationStatus?), string failureReason = null) { throw null; } - public static Azure.ResourceManager.TrustedSigning.TrustedSigningCertificateProfileData TrustedSigningCertificateProfileData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.TrustedSigning.Models.CertificateProfileType? profileType = default(Azure.ResourceManager.TrustedSigning.Models.CertificateProfileType?), string commonName = null, string organization = null, string organizationUnit = null, string streetAddress = null, bool? includeStreetAddress = default(bool?), string city = null, bool? includeCity = default(bool?), string state = null, bool? includeState = default(bool?), string country = null, bool? includeCountry = default(bool?), string postalCode = null, bool? includePostalCode = default(bool?), string enhancedKeyUsage = null, string identityValidationId = null, Azure.ResourceManager.TrustedSigning.Models.TrustedSigningProvisioningState? provisioningState = default(Azure.ResourceManager.TrustedSigning.Models.TrustedSigningProvisioningState?), Azure.ResourceManager.TrustedSigning.Models.CertificateProfileStatus? status = default(Azure.ResourceManager.TrustedSigning.Models.CertificateProfileStatus?), System.Collections.Generic.IEnumerable certificates = null) { throw null; } + public static Azure.ResourceManager.TrustedSigning.Models.TrustedSigningCertificate TrustedSigningCertificate(string serialNumber = null, string enhancedKeyUsage = null, string subjectName = null, string thumbprint = null, System.DateTimeOffset? createOn = default(System.DateTimeOffset?), System.DateTimeOffset? expireOn = default(System.DateTimeOffset?), Azure.ResourceManager.TrustedSigning.Models.TrustedSigningCertificateStatus? status = default(Azure.ResourceManager.TrustedSigning.Models.TrustedSigningCertificateStatus?), System.DateTimeOffset? requestedOn = default(System.DateTimeOffset?), System.DateTimeOffset? effectiveOn = default(System.DateTimeOffset?), string reason = null, string remarks = null, Azure.ResourceManager.TrustedSigning.Models.CertificateRevocationStatus? statusRevocationStatus = default(Azure.ResourceManager.TrustedSigning.Models.CertificateRevocationStatus?), string failureReason = null) { throw null; } + public static Azure.ResourceManager.TrustedSigning.TrustedSigningCertificateProfileData TrustedSigningCertificateProfileData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.TrustedSigning.Models.CertificateProfileType? profileType = default(Azure.ResourceManager.TrustedSigning.Models.CertificateProfileType?), bool? includeStreetAddress = default(bool?), bool? includeCity = default(bool?), bool? includeState = default(bool?), bool? includeCountry = default(bool?), bool? includePostalCode = default(bool?), string identityValidationId = null, Azure.ResourceManager.TrustedSigning.Models.TrustedSigningProvisioningState? provisioningState = default(Azure.ResourceManager.TrustedSigning.Models.TrustedSigningProvisioningState?), Azure.ResourceManager.TrustedSigning.Models.CertificateProfileStatus? status = default(Azure.ResourceManager.TrustedSigning.Models.CertificateProfileStatus?), System.Collections.Generic.IEnumerable certificates = null) { throw null; } } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] public readonly partial struct CertificateProfileStatus : System.IEquatable @@ -306,6 +297,7 @@ public partial class TrustedSigningCertificate : System.ClientModel.Primitives.I internal TrustedSigningCertificate() { } public System.DateTimeOffset? CreateOn { get { throw null; } } public System.DateTimeOffset? EffectiveOn { get { throw null; } } + public string EnhancedKeyUsage { get { throw null; } } public System.DateTimeOffset? ExpireOn { get { throw null; } } public string FailureReason { get { throw null; } } public string Reason { get { throw null; } } diff --git a/sdk/trustedsigning/Azure.ResourceManager.TrustedSigning/api/Azure.ResourceManager.TrustedSigning.netstandard2.0.cs b/sdk/trustedsigning/Azure.ResourceManager.TrustedSigning/api/Azure.ResourceManager.TrustedSigning.netstandard2.0.cs index dbd33a36082b..17d196931ad2 100644 --- a/sdk/trustedsigning/Azure.ResourceManager.TrustedSigning/api/Azure.ResourceManager.TrustedSigning.netstandard2.0.cs +++ b/sdk/trustedsigning/Azure.ResourceManager.TrustedSigning/api/Azure.ResourceManager.TrustedSigning.netstandard2.0.cs @@ -79,24 +79,15 @@ public partial class TrustedSigningCertificateProfileData : Azure.ResourceManage { public TrustedSigningCertificateProfileData() { } public System.Collections.Generic.IReadOnlyList Certificates { get { throw null; } } - public string City { get { throw null; } } - public string CommonName { get { throw null; } } - public string Country { get { throw null; } } - public string EnhancedKeyUsage { get { throw null; } } public string IdentityValidationId { get { throw null; } set { } } public bool? IncludeCity { get { throw null; } set { } } public bool? IncludeCountry { get { throw null; } set { } } public bool? IncludePostalCode { get { throw null; } set { } } public bool? IncludeState { get { throw null; } set { } } public bool? IncludeStreetAddress { get { throw null; } set { } } - public string Organization { get { throw null; } } - public string OrganizationUnit { get { throw null; } } - public string PostalCode { get { throw null; } } public Azure.ResourceManager.TrustedSigning.Models.CertificateProfileType? ProfileType { get { throw null; } set { } } public Azure.ResourceManager.TrustedSigning.Models.TrustedSigningProvisioningState? ProvisioningState { get { throw null; } } - public string State { get { throw null; } } public Azure.ResourceManager.TrustedSigning.Models.CertificateProfileStatus? Status { get { throw null; } } - public string StreetAddress { get { throw null; } } protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.ResourceManager.TrustedSigning.TrustedSigningCertificateProfileData 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) { } @@ -169,8 +160,8 @@ public static partial class ArmTrustedSigningModelFactory public static Azure.ResourceManager.TrustedSigning.Models.RevokeCertificateContent RevokeCertificateContent(string serialNumber = null, string thumbprint = null, System.DateTimeOffset effectiveOn = default(System.DateTimeOffset), string reason = null, string remarks = null) { throw null; } public static Azure.ResourceManager.TrustedSigning.TrustedSigningAccountData TrustedSigningAccountData(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), System.Uri accountUri = null, Azure.ResourceManager.TrustedSigning.Models.TrustedSigningSkuName? skuName = default(Azure.ResourceManager.TrustedSigning.Models.TrustedSigningSkuName?), Azure.ResourceManager.TrustedSigning.Models.TrustedSigningProvisioningState? provisioningState = default(Azure.ResourceManager.TrustedSigning.Models.TrustedSigningProvisioningState?)) { throw null; } public static Azure.ResourceManager.TrustedSigning.Models.TrustedSigningAccountNameAvailabilityResult TrustedSigningAccountNameAvailabilityResult(bool? isNameAvailable = default(bool?), Azure.ResourceManager.TrustedSigning.Models.TrustedSigningAccountNameUnavailabilityReason? reason = default(Azure.ResourceManager.TrustedSigning.Models.TrustedSigningAccountNameUnavailabilityReason?), string message = null) { throw null; } - public static Azure.ResourceManager.TrustedSigning.Models.TrustedSigningCertificate TrustedSigningCertificate(string serialNumber = null, string subjectName = null, string thumbprint = null, System.DateTimeOffset? createOn = default(System.DateTimeOffset?), System.DateTimeOffset? expireOn = default(System.DateTimeOffset?), Azure.ResourceManager.TrustedSigning.Models.TrustedSigningCertificateStatus? status = default(Azure.ResourceManager.TrustedSigning.Models.TrustedSigningCertificateStatus?), System.DateTimeOffset? requestedOn = default(System.DateTimeOffset?), System.DateTimeOffset? effectiveOn = default(System.DateTimeOffset?), string reason = null, string remarks = null, Azure.ResourceManager.TrustedSigning.Models.CertificateRevocationStatus? statusRevocationStatus = default(Azure.ResourceManager.TrustedSigning.Models.CertificateRevocationStatus?), string failureReason = null) { throw null; } - public static Azure.ResourceManager.TrustedSigning.TrustedSigningCertificateProfileData TrustedSigningCertificateProfileData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.TrustedSigning.Models.CertificateProfileType? profileType = default(Azure.ResourceManager.TrustedSigning.Models.CertificateProfileType?), string commonName = null, string organization = null, string organizationUnit = null, string streetAddress = null, bool? includeStreetAddress = default(bool?), string city = null, bool? includeCity = default(bool?), string state = null, bool? includeState = default(bool?), string country = null, bool? includeCountry = default(bool?), string postalCode = null, bool? includePostalCode = default(bool?), string enhancedKeyUsage = null, string identityValidationId = null, Azure.ResourceManager.TrustedSigning.Models.TrustedSigningProvisioningState? provisioningState = default(Azure.ResourceManager.TrustedSigning.Models.TrustedSigningProvisioningState?), Azure.ResourceManager.TrustedSigning.Models.CertificateProfileStatus? status = default(Azure.ResourceManager.TrustedSigning.Models.CertificateProfileStatus?), System.Collections.Generic.IEnumerable certificates = null) { throw null; } + public static Azure.ResourceManager.TrustedSigning.Models.TrustedSigningCertificate TrustedSigningCertificate(string serialNumber = null, string enhancedKeyUsage = null, string subjectName = null, string thumbprint = null, System.DateTimeOffset? createOn = default(System.DateTimeOffset?), System.DateTimeOffset? expireOn = default(System.DateTimeOffset?), Azure.ResourceManager.TrustedSigning.Models.TrustedSigningCertificateStatus? status = default(Azure.ResourceManager.TrustedSigning.Models.TrustedSigningCertificateStatus?), System.DateTimeOffset? requestedOn = default(System.DateTimeOffset?), System.DateTimeOffset? effectiveOn = default(System.DateTimeOffset?), string reason = null, string remarks = null, Azure.ResourceManager.TrustedSigning.Models.CertificateRevocationStatus? statusRevocationStatus = default(Azure.ResourceManager.TrustedSigning.Models.CertificateRevocationStatus?), string failureReason = null) { throw null; } + public static Azure.ResourceManager.TrustedSigning.TrustedSigningCertificateProfileData TrustedSigningCertificateProfileData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.TrustedSigning.Models.CertificateProfileType? profileType = default(Azure.ResourceManager.TrustedSigning.Models.CertificateProfileType?), bool? includeStreetAddress = default(bool?), bool? includeCity = default(bool?), bool? includeState = default(bool?), bool? includeCountry = default(bool?), bool? includePostalCode = default(bool?), string identityValidationId = null, Azure.ResourceManager.TrustedSigning.Models.TrustedSigningProvisioningState? provisioningState = default(Azure.ResourceManager.TrustedSigning.Models.TrustedSigningProvisioningState?), Azure.ResourceManager.TrustedSigning.Models.CertificateProfileStatus? status = default(Azure.ResourceManager.TrustedSigning.Models.CertificateProfileStatus?), System.Collections.Generic.IEnumerable certificates = null) { throw null; } } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] public readonly partial struct CertificateProfileStatus : System.IEquatable @@ -306,6 +297,7 @@ public partial class TrustedSigningCertificate : System.ClientModel.Primitives.I internal TrustedSigningCertificate() { } public System.DateTimeOffset? CreateOn { get { throw null; } } public System.DateTimeOffset? EffectiveOn { get { throw null; } } + public string EnhancedKeyUsage { get { throw null; } } public System.DateTimeOffset? ExpireOn { get { throw null; } } public string FailureReason { get { throw null; } } public string Reason { get { throw null; } } diff --git a/sdk/trustedsigning/Azure.ResourceManager.TrustedSigning/samples/Generated/Samples/Sample_SubscriptionResourceExtensions.cs b/sdk/trustedsigning/Azure.ResourceManager.TrustedSigning/samples/Generated/Samples/Sample_SubscriptionResourceExtensions.cs index 856b0d8ba154..4cd317a19eaf 100644 --- a/sdk/trustedsigning/Azure.ResourceManager.TrustedSigning/samples/Generated/Samples/Sample_SubscriptionResourceExtensions.cs +++ b/sdk/trustedsigning/Azure.ResourceManager.TrustedSigning/samples/Generated/Samples/Sample_SubscriptionResourceExtensions.cs @@ -21,7 +21,7 @@ public partial class Sample_SubscriptionResourceExtensions [Ignore("Only validating compilation of examples")] public async Task CheckTrustedSigningAccountNameAvailability_ChecksThatTheTrustedSigningAccountNameIsAvailable() { - // Generated from example definition: specification/codesigning/resource-manager/Microsoft.CodeSigning/preview/2024-02-05-preview/examples/CodeSigningAccounts_CheckNameAvailability.json + // Generated from example definition: specification/codesigning/resource-manager/Microsoft.CodeSigning/stable/2025-03-30/examples/CodeSigningAccounts_CheckNameAvailability.json // this example is just showing the usage of "CodeSigningAccounts_CheckNameAvailability" 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 @@ -46,7 +46,7 @@ public async Task CheckTrustedSigningAccountNameAvailability_ChecksThatTheTruste [Ignore("Only validating compilation of examples")] public async Task GetTrustedSigningAccounts_ListsTrustedSigningAccountsWithinASubscription() { - // Generated from example definition: specification/codesigning/resource-manager/Microsoft.CodeSigning/preview/2024-02-05-preview/examples/CodeSigningAccounts_ListBySubscription.json + // Generated from example definition: specification/codesigning/resource-manager/Microsoft.CodeSigning/stable/2025-03-30/examples/CodeSigningAccounts_ListBySubscription.json // this example is just showing the usage of "CodeSigningAccounts_ListBySubscription" 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/trustedsigning/Azure.ResourceManager.TrustedSigning/samples/Generated/Samples/Sample_TrustedSigningAccountCollection.cs b/sdk/trustedsigning/Azure.ResourceManager.TrustedSigning/samples/Generated/Samples/Sample_TrustedSigningAccountCollection.cs index 0b19adcd530b..662edac1bf0b 100644 --- a/sdk/trustedsigning/Azure.ResourceManager.TrustedSigning/samples/Generated/Samples/Sample_TrustedSigningAccountCollection.cs +++ b/sdk/trustedsigning/Azure.ResourceManager.TrustedSigning/samples/Generated/Samples/Sample_TrustedSigningAccountCollection.cs @@ -21,7 +21,7 @@ public partial class Sample_TrustedSigningAccountCollection [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_CreateATrustedSigningAccount() { - // Generated from example definition: specification/codesigning/resource-manager/Microsoft.CodeSigning/preview/2024-02-05-preview/examples/CodeSigningAccounts_Create.json + // Generated from example definition: specification/codesigning/resource-manager/Microsoft.CodeSigning/stable/2025-03-30/examples/CodeSigningAccounts_Create.json // this example is just showing the usage of "CodeSigningAccounts_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 @@ -59,7 +59,7 @@ public async Task CreateOrUpdate_CreateATrustedSigningAccount() [Ignore("Only validating compilation of examples")] public async Task Get_GetATrustedSigningAccount() { - // Generated from example definition: specification/codesigning/resource-manager/Microsoft.CodeSigning/preview/2024-02-05-preview/examples/CodeSigningAccounts_Get.json + // Generated from example definition: specification/codesigning/resource-manager/Microsoft.CodeSigning/stable/2025-03-30/examples/CodeSigningAccounts_Get.json // this example is just showing the usage of "CodeSigningAccounts_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 @@ -92,7 +92,7 @@ public async Task Get_GetATrustedSigningAccount() [Ignore("Only validating compilation of examples")] public async Task GetAll_ListsTrustedSigningAccountsWithinAResourceGroup() { - // Generated from example definition: specification/codesigning/resource-manager/Microsoft.CodeSigning/preview/2024-02-05-preview/examples/CodeSigningAccounts_ListByResourceGroup.json + // Generated from example definition: specification/codesigning/resource-manager/Microsoft.CodeSigning/stable/2025-03-30/examples/CodeSigningAccounts_ListByResourceGroup.json // this example is just showing the usage of "CodeSigningAccounts_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 @@ -127,7 +127,7 @@ public async Task GetAll_ListsTrustedSigningAccountsWithinAResourceGroup() [Ignore("Only validating compilation of examples")] public async Task Exists_GetATrustedSigningAccount() { - // Generated from example definition: specification/codesigning/resource-manager/Microsoft.CodeSigning/preview/2024-02-05-preview/examples/CodeSigningAccounts_Get.json + // Generated from example definition: specification/codesigning/resource-manager/Microsoft.CodeSigning/stable/2025-03-30/examples/CodeSigningAccounts_Get.json // this example is just showing the usage of "CodeSigningAccounts_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 @@ -156,7 +156,7 @@ public async Task Exists_GetATrustedSigningAccount() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_GetATrustedSigningAccount() { - // Generated from example definition: specification/codesigning/resource-manager/Microsoft.CodeSigning/preview/2024-02-05-preview/examples/CodeSigningAccounts_Get.json + // Generated from example definition: specification/codesigning/resource-manager/Microsoft.CodeSigning/stable/2025-03-30/examples/CodeSigningAccounts_Get.json // this example is just showing the usage of "CodeSigningAccounts_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/trustedsigning/Azure.ResourceManager.TrustedSigning/samples/Generated/Samples/Sample_TrustedSigningAccountResource.cs b/sdk/trustedsigning/Azure.ResourceManager.TrustedSigning/samples/Generated/Samples/Sample_TrustedSigningAccountResource.cs index cce5514fc8a7..336f6257811d 100644 --- a/sdk/trustedsigning/Azure.ResourceManager.TrustedSigning/samples/Generated/Samples/Sample_TrustedSigningAccountResource.cs +++ b/sdk/trustedsigning/Azure.ResourceManager.TrustedSigning/samples/Generated/Samples/Sample_TrustedSigningAccountResource.cs @@ -20,7 +20,7 @@ public partial class Sample_TrustedSigningAccountResource [Ignore("Only validating compilation of examples")] public async Task Get_GetATrustedSigningAccount() { - // Generated from example definition: specification/codesigning/resource-manager/Microsoft.CodeSigning/preview/2024-02-05-preview/examples/CodeSigningAccounts_Get.json + // Generated from example definition: specification/codesigning/resource-manager/Microsoft.CodeSigning/stable/2025-03-30/examples/CodeSigningAccounts_Get.json // this example is just showing the usage of "CodeSigningAccounts_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_GetATrustedSigningAccount() [Ignore("Only validating compilation of examples")] public async Task Delete_DeleteATrustedSigningAccount() { - // Generated from example definition: specification/codesigning/resource-manager/Microsoft.CodeSigning/preview/2024-02-05-preview/examples/CodeSigningAccounts_Delete.json + // Generated from example definition: specification/codesigning/resource-manager/Microsoft.CodeSigning/stable/2025-03-30/examples/CodeSigningAccounts_Delete.json // this example is just showing the usage of "CodeSigningAccounts_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_DeleteATrustedSigningAccount() [Ignore("Only validating compilation of examples")] public async Task Update_UpdateATrustedSigningAccount() { - // Generated from example definition: specification/codesigning/resource-manager/Microsoft.CodeSigning/preview/2024-02-05-preview/examples/CodeSigningAccounts_Update.json + // Generated from example definition: specification/codesigning/resource-manager/Microsoft.CodeSigning/stable/2025-03-30/examples/CodeSigningAccounts_Update.json // this example is just showing the usage of "CodeSigningAccounts_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 diff --git a/sdk/trustedsigning/Azure.ResourceManager.TrustedSigning/samples/Generated/Samples/Sample_TrustedSigningCertificateProfileCollection.cs b/sdk/trustedsigning/Azure.ResourceManager.TrustedSigning/samples/Generated/Samples/Sample_TrustedSigningCertificateProfileCollection.cs index c2e2a7fb9d9b..f9f1d62069ef 100644 --- a/sdk/trustedsigning/Azure.ResourceManager.TrustedSigning/samples/Generated/Samples/Sample_TrustedSigningCertificateProfileCollection.cs +++ b/sdk/trustedsigning/Azure.ResourceManager.TrustedSigning/samples/Generated/Samples/Sample_TrustedSigningCertificateProfileCollection.cs @@ -20,7 +20,7 @@ public partial class Sample_TrustedSigningCertificateProfileCollection [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_CreateACertificateProfile() { - // Generated from example definition: specification/codesigning/resource-manager/Microsoft.CodeSigning/preview/2024-02-05-preview/examples/CertificateProfiles_Create.json + // Generated from example definition: specification/codesigning/resource-manager/Microsoft.CodeSigning/stable/2025-03-30/examples/CertificateProfiles_Create.json // this example is just showing the usage of "CertificateProfiles_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 @@ -62,7 +62,7 @@ public async Task CreateOrUpdate_CreateACertificateProfile() [Ignore("Only validating compilation of examples")] public async Task Get_GetDetailsOfACertificateProfile() { - // Generated from example definition: specification/codesigning/resource-manager/Microsoft.CodeSigning/preview/2024-02-05-preview/examples/CertificateProfiles_Get.json + // Generated from example definition: specification/codesigning/resource-manager/Microsoft.CodeSigning/stable/2025-03-30/examples/CertificateProfiles_Get.json // this example is just showing the usage of "CertificateProfiles_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 @@ -96,7 +96,7 @@ public async Task Get_GetDetailsOfACertificateProfile() [Ignore("Only validating compilation of examples")] public async Task GetAll_ListCertificateProfilesUnderATrustedSigningAccount() { - // Generated from example definition: specification/codesigning/resource-manager/Microsoft.CodeSigning/preview/2024-02-05-preview/examples/CertificateProfiles_ListByCodeSigningAccount.json + // Generated from example definition: specification/codesigning/resource-manager/Microsoft.CodeSigning/stable/2025-03-30/examples/CertificateProfiles_ListByCodeSigningAccount.json // this example is just showing the usage of "CertificateProfiles_ListByCodeSigningAccount" 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 @@ -132,7 +132,7 @@ public async Task GetAll_ListCertificateProfilesUnderATrustedSigningAccount() [Ignore("Only validating compilation of examples")] public async Task Exists_GetDetailsOfACertificateProfile() { - // Generated from example definition: specification/codesigning/resource-manager/Microsoft.CodeSigning/preview/2024-02-05-preview/examples/CertificateProfiles_Get.json + // Generated from example definition: specification/codesigning/resource-manager/Microsoft.CodeSigning/stable/2025-03-30/examples/CertificateProfiles_Get.json // this example is just showing the usage of "CertificateProfiles_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 @@ -162,7 +162,7 @@ public async Task Exists_GetDetailsOfACertificateProfile() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_GetDetailsOfACertificateProfile() { - // Generated from example definition: specification/codesigning/resource-manager/Microsoft.CodeSigning/preview/2024-02-05-preview/examples/CertificateProfiles_Get.json + // Generated from example definition: specification/codesigning/resource-manager/Microsoft.CodeSigning/stable/2025-03-30/examples/CertificateProfiles_Get.json // this example is just showing the usage of "CertificateProfiles_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/trustedsigning/Azure.ResourceManager.TrustedSigning/samples/Generated/Samples/Sample_TrustedSigningCertificateProfileResource.cs b/sdk/trustedsigning/Azure.ResourceManager.TrustedSigning/samples/Generated/Samples/Sample_TrustedSigningCertificateProfileResource.cs index bf6a87b710d6..ffafac096a8e 100644 --- a/sdk/trustedsigning/Azure.ResourceManager.TrustedSigning/samples/Generated/Samples/Sample_TrustedSigningCertificateProfileResource.cs +++ b/sdk/trustedsigning/Azure.ResourceManager.TrustedSigning/samples/Generated/Samples/Sample_TrustedSigningCertificateProfileResource.cs @@ -20,7 +20,7 @@ public partial class Sample_TrustedSigningCertificateProfileResource [Ignore("Only validating compilation of examples")] public async Task Get_GetDetailsOfACertificateProfile() { - // Generated from example definition: specification/codesigning/resource-manager/Microsoft.CodeSigning/preview/2024-02-05-preview/examples/CertificateProfiles_Get.json + // Generated from example definition: specification/codesigning/resource-manager/Microsoft.CodeSigning/stable/2025-03-30/examples/CertificateProfiles_Get.json // this example is just showing the usage of "CertificateProfiles_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_GetDetailsOfACertificateProfile() [Ignore("Only validating compilation of examples")] public async Task Delete_DeleteACertificateProfile() { - // Generated from example definition: specification/codesigning/resource-manager/Microsoft.CodeSigning/preview/2024-02-05-preview/examples/CertificateProfiles_Delete.json + // Generated from example definition: specification/codesigning/resource-manager/Microsoft.CodeSigning/stable/2025-03-30/examples/CertificateProfiles_Delete.json // this example is just showing the usage of "CertificateProfiles_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_DeleteACertificateProfile() [Ignore("Only validating compilation of examples")] public async Task Update_CreateACertificateProfile() { - // Generated from example definition: specification/codesigning/resource-manager/Microsoft.CodeSigning/preview/2024-02-05-preview/examples/CertificateProfiles_Create.json + // Generated from example definition: specification/codesigning/resource-manager/Microsoft.CodeSigning/stable/2025-03-30/examples/CertificateProfiles_Create.json // this example is just showing the usage of "CertificateProfiles_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 @@ -117,7 +117,7 @@ public async Task Update_CreateACertificateProfile() [Ignore("Only validating compilation of examples")] public async Task RevokeCertificate_RevokeACertificateUnderACertificateProfile() { - // Generated from example definition: specification/codesigning/resource-manager/Microsoft.CodeSigning/preview/2024-02-05-preview/examples/CertificateProfiles_RevokeCertificate.json + // Generated from example definition: specification/codesigning/resource-manager/Microsoft.CodeSigning/stable/2025-03-30/examples/CertificateProfiles_RevokeCertificate.json // this example is just showing the usage of "CertificateProfiles_RevokeCertificate" 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/trustedsigning/Azure.ResourceManager.TrustedSigning/src/Generated/ArmTrustedSigningModelFactory.cs b/sdk/trustedsigning/Azure.ResourceManager.TrustedSigning/src/Generated/ArmTrustedSigningModelFactory.cs index b24481989a41..e68a1c5d8c26 100644 --- a/sdk/trustedsigning/Azure.ResourceManager.TrustedSigning/src/Generated/ArmTrustedSigningModelFactory.cs +++ b/sdk/trustedsigning/Azure.ResourceManager.TrustedSigning/src/Generated/ArmTrustedSigningModelFactory.cs @@ -60,26 +60,17 @@ public static TrustedSigningAccountData TrustedSigningAccountData(ResourceIdenti /// The resourceType. /// The systemData. /// Profile type of the certificate. - /// Used as CN in the certificate subject name. - /// Used as O in the certificate subject name. - /// Used as OU in the private trust certificate subject name. - /// Used as STREET in the certificate subject name. /// Whether to include STREET in the certificate subject name. - /// Used as L in the certificate subject name. /// Whether to include L in the certificate subject name. Applicable only for private trust, private trust ci profile types. - /// Used as S in the certificate subject name. /// Whether to include S in the certificate subject name. Applicable only for private trust, private trust ci profile types. - /// Used as C in the certificate subject name. /// Whether to include C in the certificate subject name. Applicable only for private trust, private trust ci profile types. - /// Used as PC in the certificate subject name. /// Whether to include PC in the certificate subject name. - /// Enhanced key usage of the certificate. /// Identity validation id used for the certificate subject name. /// Status of the current operation on certificate profile. /// Status of the certificate profile. /// List of renewed certificates. /// A new instance for mocking. - public static TrustedSigningCertificateProfileData TrustedSigningCertificateProfileData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, CertificateProfileType? profileType = null, string commonName = null, string organization = null, string organizationUnit = null, string streetAddress = null, bool? includeStreetAddress = null, string city = null, bool? includeCity = null, string state = null, bool? includeState = null, string country = null, bool? includeCountry = null, string postalCode = null, bool? includePostalCode = null, string enhancedKeyUsage = null, string identityValidationId = null, TrustedSigningProvisioningState? provisioningState = null, CertificateProfileStatus? status = null, IEnumerable certificates = null) + public static TrustedSigningCertificateProfileData TrustedSigningCertificateProfileData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, CertificateProfileType? profileType = null, bool? includeStreetAddress = null, bool? includeCity = null, bool? includeState = null, bool? includeCountry = null, bool? includePostalCode = null, string identityValidationId = null, TrustedSigningProvisioningState? provisioningState = null, CertificateProfileStatus? status = null, IEnumerable certificates = null) { certificates ??= new List(); @@ -89,20 +80,11 @@ public static TrustedSigningCertificateProfileData TrustedSigningCertificateProf resourceType, systemData, profileType, - commonName, - organization, - organizationUnit, - streetAddress, includeStreetAddress, - city, includeCity, - state, includeState, - country, includeCountry, - postalCode, includePostalCode, - enhancedKeyUsage, identityValidationId, provisioningState, status, @@ -112,6 +94,7 @@ public static TrustedSigningCertificateProfileData TrustedSigningCertificateProf /// Initializes a new instance of . /// Serial number of the certificate. + /// Enhanced key usage of the certificate. /// Subject name of the certificate. /// Thumbprint of the certificate. /// Certificate created date. @@ -124,10 +107,11 @@ public static TrustedSigningCertificateProfileData TrustedSigningCertificateProf /// Status of the revocation. /// Reason for the revocation failure. /// A new instance for mocking. - public static TrustedSigningCertificate TrustedSigningCertificate(string serialNumber = null, string subjectName = null, string thumbprint = null, DateTimeOffset? createOn = null, DateTimeOffset? expireOn = null, TrustedSigningCertificateStatus? status = null, DateTimeOffset? requestedOn = null, DateTimeOffset? effectiveOn = null, string reason = null, string remarks = null, CertificateRevocationStatus? statusRevocationStatus = null, string failureReason = null) + public static TrustedSigningCertificate TrustedSigningCertificate(string serialNumber = null, string enhancedKeyUsage = null, string subjectName = null, string thumbprint = null, DateTimeOffset? createOn = null, DateTimeOffset? expireOn = null, TrustedSigningCertificateStatus? status = null, DateTimeOffset? requestedOn = null, DateTimeOffset? effectiveOn = null, string reason = null, string remarks = null, CertificateRevocationStatus? statusRevocationStatus = null, string failureReason = null) { return new TrustedSigningCertificate( serialNumber, + enhancedKeyUsage, subjectName, thumbprint, createOn, diff --git a/sdk/trustedsigning/Azure.ResourceManager.TrustedSigning/src/Generated/Extensions/MockableTrustedSigningResourceGroupResource.cs b/sdk/trustedsigning/Azure.ResourceManager.TrustedSigning/src/Generated/Extensions/MockableTrustedSigningResourceGroupResource.cs index 8e306bbfb17c..a816531b3b6a 100644 --- a/sdk/trustedsigning/Azure.ResourceManager.TrustedSigning/src/Generated/Extensions/MockableTrustedSigningResourceGroupResource.cs +++ b/sdk/trustedsigning/Azure.ResourceManager.TrustedSigning/src/Generated/Extensions/MockableTrustedSigningResourceGroupResource.cs @@ -53,7 +53,7 @@ public virtual TrustedSigningAccountCollection GetTrustedSigningAccounts() /// /// /// Default Api Version - /// 2024-02-05-preview + /// 2025-03-30 /// /// /// Resource @@ -84,7 +84,7 @@ public virtual async Task> GetTrustedSig /// /// /// Default Api Version - /// 2024-02-05-preview + /// 2025-03-30 /// /// /// Resource diff --git a/sdk/trustedsigning/Azure.ResourceManager.TrustedSigning/src/Generated/Extensions/MockableTrustedSigningSubscriptionResource.cs b/sdk/trustedsigning/Azure.ResourceManager.TrustedSigning/src/Generated/Extensions/MockableTrustedSigningSubscriptionResource.cs index c045cd4d3f9d..1eeecc23ab35 100644 --- a/sdk/trustedsigning/Azure.ResourceManager.TrustedSigning/src/Generated/Extensions/MockableTrustedSigningSubscriptionResource.cs +++ b/sdk/trustedsigning/Azure.ResourceManager.TrustedSigning/src/Generated/Extensions/MockableTrustedSigningSubscriptionResource.cs @@ -55,7 +55,7 @@ private string GetApiVersionOrNull(ResourceType resourceType) /// /// /// Default Api Version - /// 2024-02-05-preview + /// 2025-03-30 /// /// /// Resource @@ -97,7 +97,7 @@ public virtual async Task> /// /// /// Default Api Version - /// 2024-02-05-preview + /// 2025-03-30 /// /// /// Resource @@ -139,7 +139,7 @@ public virtual Response CheckTruste /// /// /// Default Api Version - /// 2024-02-05-preview + /// 2025-03-30 /// /// /// Resource @@ -169,7 +169,7 @@ public virtual AsyncPageable GetTrustedSigningAcc /// /// /// Default Api Version - /// 2024-02-05-preview + /// 2025-03-30 /// /// /// Resource diff --git a/sdk/trustedsigning/Azure.ResourceManager.TrustedSigning/src/Generated/Extensions/TrustedSigningExtensions.cs b/sdk/trustedsigning/Azure.ResourceManager.TrustedSigning/src/Generated/Extensions/TrustedSigningExtensions.cs index eb40875d5f75..897f734fadfe 100644 --- a/sdk/trustedsigning/Azure.ResourceManager.TrustedSigning/src/Generated/Extensions/TrustedSigningExtensions.cs +++ b/sdk/trustedsigning/Azure.ResourceManager.TrustedSigning/src/Generated/Extensions/TrustedSigningExtensions.cs @@ -101,7 +101,7 @@ public static TrustedSigningAccountCollection GetTrustedSigningAccounts(this Res /// /// /// Default Api Version - /// 2024-02-05-preview + /// 2025-03-30 /// /// /// Resource @@ -139,7 +139,7 @@ public static async Task> GetTrustedSign /// /// /// Default Api Version - /// 2024-02-05-preview + /// 2025-03-30 /// /// /// Resource @@ -177,7 +177,7 @@ public static Response GetTrustedSigningAccount(t /// /// /// Default Api Version - /// 2024-02-05-preview + /// 2025-03-30 /// /// /// Resource @@ -213,7 +213,7 @@ public static async Task> /// /// /// Default Api Version - /// 2024-02-05-preview + /// 2025-03-30 /// /// /// Resource @@ -249,7 +249,7 @@ public static Response CheckTrusted /// /// /// Default Api Version - /// 2024-02-05-preview + /// 2025-03-30 /// /// /// Resource @@ -285,7 +285,7 @@ public static AsyncPageable GetTrustedSigningAcco /// /// /// Default Api Version - /// 2024-02-05-preview + /// 2025-03-30 /// /// /// Resource diff --git a/sdk/trustedsigning/Azure.ResourceManager.TrustedSigning/src/Generated/Models/AccountSkuPatch.Serialization.cs b/sdk/trustedsigning/Azure.ResourceManager.TrustedSigning/src/Generated/Models/AccountSkuPatch.Serialization.cs new file mode 100644 index 000000000000..58ecf917d7fb --- /dev/null +++ b/sdk/trustedsigning/Azure.ResourceManager.TrustedSigning/src/Generated/Models/AccountSkuPatch.Serialization.cs @@ -0,0 +1,133 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.TrustedSigning.Models +{ + internal partial class AccountSkuPatch : IUtf8JsonSerializable, IJsonModel + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); + + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStartObject(); + JsonModelWriteCore(writer, options); + writer.WriteEndObject(); + } + + /// The JSON writer. + /// The client options for reading and writing models. + protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(AccountSkuPatch)} does not support writing '{format}' format."); + } + + if (Optional.IsDefined(Name)) + { + writer.WritePropertyName("name"u8); + writer.WriteStringValue(Name.Value.ToString()); + } + if (options.Format != "W" && _serializedAdditionalRawData != null) + { + foreach (var item in _serializedAdditionalRawData) + { + writer.WritePropertyName(item.Key); +#if NET6_0_OR_GREATER + writer.WriteRawValue(item.Value); +#else + using (JsonDocument document = JsonDocument.Parse(item.Value, ModelSerializationExtensions.JsonDocumentOptions)) + { + JsonSerializer.Serialize(writer, document.RootElement); + } +#endif + } + } + } + + AccountSkuPatch IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(AccountSkuPatch)} does not support reading '{format}' format."); + } + + using JsonDocument document = JsonDocument.ParseValue(ref reader); + return DeserializeAccountSkuPatch(document.RootElement, options); + } + + internal static AccountSkuPatch DeserializeAccountSkuPatch(JsonElement element, ModelReaderWriterOptions options = null) + { + options ??= ModelSerializationExtensions.WireOptions; + + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + TrustedSigningSkuName? name = default; + IDictionary serializedAdditionalRawData = default; + Dictionary rawDataDictionary = new Dictionary(); + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("name"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + name = new TrustedSigningSkuName(property.Value.GetString()); + continue; + } + if (options.Format != "W") + { + rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); + } + } + serializedAdditionalRawData = rawDataDictionary; + return new AccountSkuPatch(name, serializedAdditionalRawData); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + return ModelReaderWriter.Write(this, options); + default: + throw new FormatException($"The model {nameof(AccountSkuPatch)} does not support writing '{options.Format}' format."); + } + } + + AccountSkuPatch IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + { + using JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions); + return DeserializeAccountSkuPatch(document.RootElement, options); + } + default: + throw new FormatException($"The model {nameof(AccountSkuPatch)} does not support reading '{options.Format}' format."); + } + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/trustedsigning/Azure.ResourceManager.TrustedSigning/src/Generated/Models/AccountSkuPatch.cs b/sdk/trustedsigning/Azure.ResourceManager.TrustedSigning/src/Generated/Models/AccountSkuPatch.cs new file mode 100644 index 000000000000..585714e4777f --- /dev/null +++ b/sdk/trustedsigning/Azure.ResourceManager.TrustedSigning/src/Generated/Models/AccountSkuPatch.cs @@ -0,0 +1,65 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; + +namespace Azure.ResourceManager.TrustedSigning.Models +{ + /// SKU of the trusted signing account. + internal partial class AccountSkuPatch + { + /// + /// Keeps track of any properties unknown to the library. + /// + /// To assign an object to the value of this property use . + /// + /// + /// To assign an already formatted json string to this property use . + /// + /// + /// Examples: + /// + /// + /// BinaryData.FromObjectAsJson("foo") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromString("\"foo\"") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromObjectAsJson(new { key = "value" }) + /// Creates a payload of { "key": "value" }. + /// + /// + /// BinaryData.FromString("{\"key\": \"value\"}") + /// Creates a payload of { "key": "value" }. + /// + /// + /// + /// + private IDictionary _serializedAdditionalRawData; + + /// Initializes a new instance of . + public AccountSkuPatch() + { + } + + /// Initializes a new instance of . + /// Name of the SKU. + /// Keeps track of any properties unknown to the library. + internal AccountSkuPatch(TrustedSigningSkuName? name, IDictionary serializedAdditionalRawData) + { + Name = name; + _serializedAdditionalRawData = serializedAdditionalRawData; + } + + /// Name of the SKU. + public TrustedSigningSkuName? Name { get; set; } + } +} diff --git a/sdk/trustedsigning/Azure.ResourceManager.TrustedSigning/src/Generated/Models/CertificateProfileListResult.Serialization.cs b/sdk/trustedsigning/Azure.ResourceManager.TrustedSigning/src/Generated/Models/CertificateProfileListResult.Serialization.cs index d277981facf5..840b45c47ad7 100644 --- a/sdk/trustedsigning/Azure.ResourceManager.TrustedSigning/src/Generated/Models/CertificateProfileListResult.Serialization.cs +++ b/sdk/trustedsigning/Azure.ResourceManager.TrustedSigning/src/Generated/Models/CertificateProfileListResult.Serialization.cs @@ -41,7 +41,7 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit writer.WriteObjectValue(item, options); } writer.WriteEndArray(); - if (options.Format != "W" && Optional.IsDefined(NextLink)) + if (Optional.IsDefined(NextLink)) { writer.WritePropertyName("nextLink"u8); writer.WriteStringValue(NextLink.AbsoluteUri); diff --git a/sdk/trustedsigning/Azure.ResourceManager.TrustedSigning/src/Generated/Models/CodeSigningAccountListResult.Serialization.cs b/sdk/trustedsigning/Azure.ResourceManager.TrustedSigning/src/Generated/Models/CodeSigningAccountListResult.Serialization.cs index 37ecb7e9ea11..d721b36ddb2a 100644 --- a/sdk/trustedsigning/Azure.ResourceManager.TrustedSigning/src/Generated/Models/CodeSigningAccountListResult.Serialization.cs +++ b/sdk/trustedsigning/Azure.ResourceManager.TrustedSigning/src/Generated/Models/CodeSigningAccountListResult.Serialization.cs @@ -41,7 +41,7 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit writer.WriteObjectValue(item, options); } writer.WriteEndArray(); - if (options.Format != "W" && Optional.IsDefined(NextLink)) + if (Optional.IsDefined(NextLink)) { writer.WritePropertyName("nextLink"u8); writer.WriteStringValue(NextLink.AbsoluteUri); diff --git a/sdk/trustedsigning/Azure.ResourceManager.TrustedSigning/src/Generated/Models/TrustedSigningAccountPatch.Serialization.cs b/sdk/trustedsigning/Azure.ResourceManager.TrustedSigning/src/Generated/Models/TrustedSigningAccountPatch.Serialization.cs index bb313f9f3bf9..86103a8e91c9 100644 --- a/sdk/trustedsigning/Azure.ResourceManager.TrustedSigning/src/Generated/Models/TrustedSigningAccountPatch.Serialization.cs +++ b/sdk/trustedsigning/Azure.ResourceManager.TrustedSigning/src/Generated/Models/TrustedSigningAccountPatch.Serialization.cs @@ -91,7 +91,7 @@ internal static TrustedSigningAccountPatch DeserializeTrustedSigningAccountPatch return null; } IDictionary tags = default; - TrustedSigningAccountSku sku = default; + AccountSkuPatch sku = default; IDictionary serializedAdditionalRawData = default; Dictionary rawDataDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) @@ -125,7 +125,7 @@ internal static TrustedSigningAccountPatch DeserializeTrustedSigningAccountPatch { continue; } - sku = TrustedSigningAccountSku.DeserializeTrustedSigningAccountSku(property0.Value, options); + sku = AccountSkuPatch.DeserializeAccountSkuPatch(property0.Value, options); continue; } } diff --git a/sdk/trustedsigning/Azure.ResourceManager.TrustedSigning/src/Generated/Models/TrustedSigningAccountPatch.cs b/sdk/trustedsigning/Azure.ResourceManager.TrustedSigning/src/Generated/Models/TrustedSigningAccountPatch.cs index 16b227baeea5..9059b01b9692 100644 --- a/sdk/trustedsigning/Azure.ResourceManager.TrustedSigning/src/Generated/Models/TrustedSigningAccountPatch.cs +++ b/sdk/trustedsigning/Azure.ResourceManager.TrustedSigning/src/Generated/Models/TrustedSigningAccountPatch.cs @@ -55,7 +55,7 @@ public TrustedSigningAccountPatch() /// Resource tags. /// SKU of the trusted signing account. /// Keeps track of any properties unknown to the library. - internal TrustedSigningAccountPatch(IDictionary tags, TrustedSigningAccountSku sku, IDictionary serializedAdditionalRawData) + internal TrustedSigningAccountPatch(IDictionary tags, AccountSkuPatch sku, IDictionary serializedAdditionalRawData) { Tags = tags; Sku = sku; @@ -65,14 +65,16 @@ internal TrustedSigningAccountPatch(IDictionary tags, TrustedSig /// Resource tags. public IDictionary Tags { get; } /// SKU of the trusted signing account. - internal TrustedSigningAccountSku Sku { get; set; } + internal AccountSkuPatch Sku { get; set; } /// Name of the SKU. public TrustedSigningSkuName? SkuName { - get => Sku is null ? default(TrustedSigningSkuName?) : Sku.Name; + get => Sku is null ? default : Sku.Name; set { - Sku = value.HasValue ? new TrustedSigningAccountSku(value.Value) : null; + if (Sku is null) + Sku = new AccountSkuPatch(); + Sku.Name = value; } } } diff --git a/sdk/trustedsigning/Azure.ResourceManager.TrustedSigning/src/Generated/Models/TrustedSigningCertificate.Serialization.cs b/sdk/trustedsigning/Azure.ResourceManager.TrustedSigning/src/Generated/Models/TrustedSigningCertificate.Serialization.cs index 6c77bae1aedd..540b5dd717da 100644 --- a/sdk/trustedsigning/Azure.ResourceManager.TrustedSigning/src/Generated/Models/TrustedSigningCertificate.Serialization.cs +++ b/sdk/trustedsigning/Azure.ResourceManager.TrustedSigning/src/Generated/Models/TrustedSigningCertificate.Serialization.cs @@ -39,6 +39,11 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit writer.WritePropertyName("serialNumber"u8); writer.WriteStringValue(SerialNumber); } + if (Optional.IsDefined(EnhancedKeyUsage)) + { + writer.WritePropertyName("enhancedKeyUsage"u8); + writer.WriteStringValue(EnhancedKeyUsage); + } if (Optional.IsDefined(SubjectName)) { writer.WritePropertyName("subjectName"u8); @@ -135,6 +140,7 @@ internal static TrustedSigningCertificate DeserializeTrustedSigningCertificate(J return null; } string serialNumber = default; + string enhancedKeyUsage = default; string subjectName = default; string thumbprint = default; DateTimeOffset? createdDate = default; @@ -155,6 +161,11 @@ internal static TrustedSigningCertificate DeserializeTrustedSigningCertificate(J serialNumber = property.Value.GetString(); continue; } + if (property.NameEquals("enhancedKeyUsage"u8)) + { + enhancedKeyUsage = property.Value.GetString(); + continue; + } if (property.NameEquals("subjectName"u8)) { subjectName = property.Value.GetString(); @@ -254,6 +265,7 @@ internal static TrustedSigningCertificate DeserializeTrustedSigningCertificate(J serializedAdditionalRawData = rawDataDictionary; return new TrustedSigningCertificate( serialNumber, + enhancedKeyUsage, subjectName, thumbprint, createdDate, diff --git a/sdk/trustedsigning/Azure.ResourceManager.TrustedSigning/src/Generated/Models/TrustedSigningCertificate.cs b/sdk/trustedsigning/Azure.ResourceManager.TrustedSigning/src/Generated/Models/TrustedSigningCertificate.cs index 3f74297a0f43..a7bb9779db6f 100644 --- a/sdk/trustedsigning/Azure.ResourceManager.TrustedSigning/src/Generated/Models/TrustedSigningCertificate.cs +++ b/sdk/trustedsigning/Azure.ResourceManager.TrustedSigning/src/Generated/Models/TrustedSigningCertificate.cs @@ -52,6 +52,7 @@ internal TrustedSigningCertificate() /// Initializes a new instance of . /// Serial number of the certificate. + /// Enhanced key usage of the certificate. /// Subject name of the certificate. /// Thumbprint of the certificate. /// Certificate created date. @@ -64,9 +65,10 @@ internal TrustedSigningCertificate() /// Status of the revocation. /// Reason for the revocation failure. /// Keeps track of any properties unknown to the library. - internal TrustedSigningCertificate(string serialNumber, string subjectName, string thumbprint, DateTimeOffset? createOn, DateTimeOffset? expireOn, TrustedSigningCertificateStatus? status, DateTimeOffset? requestedOn, DateTimeOffset? effectiveOn, string reason, string remarks, CertificateRevocationStatus? statusRevocationStatus, string failureReason, IDictionary serializedAdditionalRawData) + internal TrustedSigningCertificate(string serialNumber, string enhancedKeyUsage, string subjectName, string thumbprint, DateTimeOffset? createOn, DateTimeOffset? expireOn, TrustedSigningCertificateStatus? status, DateTimeOffset? requestedOn, DateTimeOffset? effectiveOn, string reason, string remarks, CertificateRevocationStatus? statusRevocationStatus, string failureReason, IDictionary serializedAdditionalRawData) { SerialNumber = serialNumber; + EnhancedKeyUsage = enhancedKeyUsage; SubjectName = subjectName; Thumbprint = thumbprint; CreateOn = createOn; @@ -83,6 +85,8 @@ internal TrustedSigningCertificate(string serialNumber, string subjectName, stri /// Serial number of the certificate. public string SerialNumber { get; } + /// Enhanced key usage of the certificate. + public string EnhancedKeyUsage { get; } /// Subject name of the certificate. public string SubjectName { get; } /// Thumbprint of the certificate. diff --git a/sdk/trustedsigning/Azure.ResourceManager.TrustedSigning/src/Generated/RestOperations/CertificateProfilesRestOperations.cs b/sdk/trustedsigning/Azure.ResourceManager.TrustedSigning/src/Generated/RestOperations/CertificateProfilesRestOperations.cs index 01c57f557846..84378fec5fcb 100644 --- a/sdk/trustedsigning/Azure.ResourceManager.TrustedSigning/src/Generated/RestOperations/CertificateProfilesRestOperations.cs +++ b/sdk/trustedsigning/Azure.ResourceManager.TrustedSigning/src/Generated/RestOperations/CertificateProfilesRestOperations.cs @@ -32,7 +32,7 @@ public CertificateProfilesRestOperations(HttpPipeline pipeline, string applicati { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2024-02-05-preview"; + _apiVersion = apiVersion ?? "2025-03-30"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/trustedsigning/Azure.ResourceManager.TrustedSigning/src/Generated/RestOperations/CodeSigningAccountsRestOperations.cs b/sdk/trustedsigning/Azure.ResourceManager.TrustedSigning/src/Generated/RestOperations/CodeSigningAccountsRestOperations.cs index a395a9f71528..b8136f33ad70 100644 --- a/sdk/trustedsigning/Azure.ResourceManager.TrustedSigning/src/Generated/RestOperations/CodeSigningAccountsRestOperations.cs +++ b/sdk/trustedsigning/Azure.ResourceManager.TrustedSigning/src/Generated/RestOperations/CodeSigningAccountsRestOperations.cs @@ -32,7 +32,7 @@ public CodeSigningAccountsRestOperations(HttpPipeline pipeline, string applicati { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2024-02-05-preview"; + _apiVersion = apiVersion ?? "2025-03-30"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/trustedsigning/Azure.ResourceManager.TrustedSigning/src/Generated/TrustedSigningAccountCollection.cs b/sdk/trustedsigning/Azure.ResourceManager.TrustedSigning/src/Generated/TrustedSigningAccountCollection.cs index 8dae5879ef08..738d5e00b8b4 100644 --- a/sdk/trustedsigning/Azure.ResourceManager.TrustedSigning/src/Generated/TrustedSigningAccountCollection.cs +++ b/sdk/trustedsigning/Azure.ResourceManager.TrustedSigning/src/Generated/TrustedSigningAccountCollection.cs @@ -65,7 +65,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-02-05-preview + /// 2025-03-30 /// /// /// Resource @@ -114,7 +114,7 @@ public virtual async Task> CreateOrU /// /// /// Default Api Version - /// 2024-02-05-preview + /// 2025-03-30 /// /// /// Resource @@ -163,7 +163,7 @@ public virtual ArmOperation CreateOrUpdate(WaitUn /// /// /// Default Api Version - /// 2024-02-05-preview + /// 2025-03-30 /// /// /// Resource @@ -208,7 +208,7 @@ public virtual async Task> GetAsync(stri /// /// /// Default Api Version - /// 2024-02-05-preview + /// 2025-03-30 /// /// /// Resource @@ -253,7 +253,7 @@ public virtual Response Get(string accountName, C /// /// /// Default Api Version - /// 2024-02-05-preview + /// 2025-03-30 /// /// /// Resource @@ -283,7 +283,7 @@ public virtual AsyncPageable GetAllAsync(Cancella /// /// /// Default Api Version - /// 2024-02-05-preview + /// 2025-03-30 /// /// /// Resource @@ -313,7 +313,7 @@ public virtual Pageable GetAll(CancellationToken /// /// /// Default Api Version - /// 2024-02-05-preview + /// 2025-03-30 /// /// /// Resource @@ -356,7 +356,7 @@ public virtual async Task> ExistsAsync(string accountName, Cancel /// /// /// Default Api Version - /// 2024-02-05-preview + /// 2025-03-30 /// /// /// Resource @@ -399,7 +399,7 @@ public virtual Response Exists(string accountName, CancellationToken cance /// /// /// Default Api Version - /// 2024-02-05-preview + /// 2025-03-30 /// /// /// Resource @@ -444,7 +444,7 @@ public virtual async Task> GetIf /// /// /// Default Api Version - /// 2024-02-05-preview + /// 2025-03-30 /// /// /// Resource diff --git a/sdk/trustedsigning/Azure.ResourceManager.TrustedSigning/src/Generated/TrustedSigningAccountResource.cs b/sdk/trustedsigning/Azure.ResourceManager.TrustedSigning/src/Generated/TrustedSigningAccountResource.cs index e4e1053e4c0b..9a86dfe33e60 100644 --- a/sdk/trustedsigning/Azure.ResourceManager.TrustedSigning/src/Generated/TrustedSigningAccountResource.cs +++ b/sdk/trustedsigning/Azure.ResourceManager.TrustedSigning/src/Generated/TrustedSigningAccountResource.cs @@ -110,7 +110,7 @@ public virtual TrustedSigningCertificateProfileCollection GetTrustedSigningCerti /// /// /// Default Api Version - /// 2024-02-05-preview + /// 2025-03-30 /// /// /// Resource @@ -141,7 +141,7 @@ public virtual async Task> Ge /// /// /// Default Api Version - /// 2024-02-05-preview + /// 2025-03-30 /// /// /// Resource @@ -172,7 +172,7 @@ public virtual Response GetTrustedSign /// /// /// Default Api Version - /// 2024-02-05-preview + /// 2025-03-30 /// /// /// Resource @@ -212,7 +212,7 @@ public virtual async Task> GetAsync(Canc /// /// /// Default Api Version - /// 2024-02-05-preview + /// 2025-03-30 /// /// /// Resource @@ -252,7 +252,7 @@ public virtual Response Get(CancellationToken can /// /// /// Default Api Version - /// 2024-02-05-preview + /// 2025-03-30 /// /// /// Resource @@ -294,7 +294,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2024-02-05-preview + /// 2025-03-30 /// /// /// Resource @@ -336,7 +336,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2024-02-05-preview + /// 2025-03-30 /// /// /// Resource @@ -382,7 +382,7 @@ public virtual async Task> UpdateAsy /// /// /// Default Api Version - /// 2024-02-05-preview + /// 2025-03-30 /// /// /// Resource @@ -428,7 +428,7 @@ public virtual ArmOperation Update(WaitUntil wait /// /// /// Default Api Version - /// 2024-02-05-preview + /// 2025-03-30 /// /// /// Resource @@ -490,7 +490,7 @@ public virtual async Task> AddTagAsync(s /// /// /// Default Api Version - /// 2024-02-05-preview + /// 2025-03-30 /// /// /// Resource @@ -552,7 +552,7 @@ public virtual Response AddTag(string key, string /// /// /// Default Api Version - /// 2024-02-05-preview + /// 2025-03-30 /// /// /// Resource @@ -609,7 +609,7 @@ public virtual async Task> SetTagsAsync( /// /// /// Default Api Version - /// 2024-02-05-preview + /// 2025-03-30 /// /// /// Resource @@ -666,7 +666,7 @@ public virtual Response SetTags(IDictionary /// /// Default Api Version - /// 2024-02-05-preview + /// 2025-03-30 /// /// /// Resource @@ -726,7 +726,7 @@ public virtual async Task> RemoveTagAsyn /// /// /// Default Api Version - /// 2024-02-05-preview + /// 2025-03-30 /// /// /// Resource diff --git a/sdk/trustedsigning/Azure.ResourceManager.TrustedSigning/src/Generated/TrustedSigningCertificateProfileCollection.cs b/sdk/trustedsigning/Azure.ResourceManager.TrustedSigning/src/Generated/TrustedSigningCertificateProfileCollection.cs index ee2ef7d017fa..dc570959db52 100644 --- a/sdk/trustedsigning/Azure.ResourceManager.TrustedSigning/src/Generated/TrustedSigningCertificateProfileCollection.cs +++ b/sdk/trustedsigning/Azure.ResourceManager.TrustedSigning/src/Generated/TrustedSigningCertificateProfileCollection.cs @@ -64,7 +64,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-02-05-preview + /// 2025-03-30 /// /// /// Resource @@ -113,7 +113,7 @@ public virtual async Task /// /// /// Default Api Version - /// 2024-02-05-preview + /// 2025-03-30 /// /// /// Resource @@ -162,7 +162,7 @@ public virtual ArmOperation CreateOrUp /// /// /// Default Api Version - /// 2024-02-05-preview + /// 2025-03-30 /// /// /// Resource @@ -207,7 +207,7 @@ public virtual async Task> Ge /// /// /// Default Api Version - /// 2024-02-05-preview + /// 2025-03-30 /// /// /// Resource @@ -252,7 +252,7 @@ public virtual Response Get(string pro /// /// /// Default Api Version - /// 2024-02-05-preview + /// 2025-03-30 /// /// /// Resource @@ -282,7 +282,7 @@ public virtual AsyncPageable GetAllAsy /// /// /// Default Api Version - /// 2024-02-05-preview + /// 2025-03-30 /// /// /// Resource @@ -312,7 +312,7 @@ public virtual Pageable GetAll(Cancell /// /// /// Default Api Version - /// 2024-02-05-preview + /// 2025-03-30 /// /// /// Resource @@ -355,7 +355,7 @@ public virtual async Task> ExistsAsync(string profileName, Cancel /// /// /// Default Api Version - /// 2024-02-05-preview + /// 2025-03-30 /// /// /// Resource @@ -398,7 +398,7 @@ public virtual Response Exists(string profileName, CancellationToken cance /// /// /// Default Api Version - /// 2024-02-05-preview + /// 2025-03-30 /// /// /// Resource @@ -443,7 +443,7 @@ public virtual async Task /// /// Default Api Version - /// 2024-02-05-preview + /// 2025-03-30 /// /// /// Resource diff --git a/sdk/trustedsigning/Azure.ResourceManager.TrustedSigning/src/Generated/TrustedSigningCertificateProfileData.Serialization.cs b/sdk/trustedsigning/Azure.ResourceManager.TrustedSigning/src/Generated/TrustedSigningCertificateProfileData.Serialization.cs index d047a9a8c17b..819addfdf589 100644 --- a/sdk/trustedsigning/Azure.ResourceManager.TrustedSigning/src/Generated/TrustedSigningCertificateProfileData.Serialization.cs +++ b/sdk/trustedsigning/Azure.ResourceManager.TrustedSigning/src/Generated/TrustedSigningCertificateProfileData.Serialization.cs @@ -44,76 +44,31 @@ protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWri writer.WritePropertyName("profileType"u8); writer.WriteStringValue(ProfileType.Value.ToString()); } - if (options.Format != "W" && Optional.IsDefined(CommonName)) - { - writer.WritePropertyName("commonName"u8); - writer.WriteStringValue(CommonName); - } - if (options.Format != "W" && Optional.IsDefined(Organization)) - { - writer.WritePropertyName("organization"u8); - writer.WriteStringValue(Organization); - } - if (options.Format != "W" && Optional.IsDefined(OrganizationUnit)) - { - writer.WritePropertyName("organizationUnit"u8); - writer.WriteStringValue(OrganizationUnit); - } - if (options.Format != "W" && Optional.IsDefined(StreetAddress)) - { - writer.WritePropertyName("streetAddress"u8); - writer.WriteStringValue(StreetAddress); - } if (Optional.IsDefined(IncludeStreetAddress)) { writer.WritePropertyName("includeStreetAddress"u8); writer.WriteBooleanValue(IncludeStreetAddress.Value); } - if (options.Format != "W" && Optional.IsDefined(City)) - { - writer.WritePropertyName("city"u8); - writer.WriteStringValue(City); - } if (Optional.IsDefined(IncludeCity)) { writer.WritePropertyName("includeCity"u8); writer.WriteBooleanValue(IncludeCity.Value); } - if (options.Format != "W" && Optional.IsDefined(State)) - { - writer.WritePropertyName("state"u8); - writer.WriteStringValue(State); - } if (Optional.IsDefined(IncludeState)) { writer.WritePropertyName("includeState"u8); writer.WriteBooleanValue(IncludeState.Value); } - if (options.Format != "W" && Optional.IsDefined(Country)) - { - writer.WritePropertyName("country"u8); - writer.WriteStringValue(Country); - } if (Optional.IsDefined(IncludeCountry)) { writer.WritePropertyName("includeCountry"u8); writer.WriteBooleanValue(IncludeCountry.Value); } - if (options.Format != "W" && Optional.IsDefined(PostalCode)) - { - writer.WritePropertyName("postalCode"u8); - writer.WriteStringValue(PostalCode); - } if (Optional.IsDefined(IncludePostalCode)) { writer.WritePropertyName("includePostalCode"u8); writer.WriteBooleanValue(IncludePostalCode.Value); } - if (options.Format != "W" && Optional.IsDefined(EnhancedKeyUsage)) - { - writer.WritePropertyName("enhancedKeyUsage"u8); - writer.WriteStringValue(EnhancedKeyUsage); - } if (Optional.IsDefined(IdentityValidationId)) { writer.WritePropertyName("identityValidationId"u8); @@ -167,20 +122,11 @@ internal static TrustedSigningCertificateProfileData DeserializeTrustedSigningCe ResourceType type = default; SystemData systemData = default; CertificateProfileType? profileType = default; - string commonName = default; - string organization = default; - string organizationUnit = default; - string streetAddress = default; bool? includeStreetAddress = default; - string city = default; bool? includeCity = default; - string state = default; bool? includeState = default; - string country = default; bool? includeCountry = default; - string postalCode = default; bool? includePostalCode = default; - string enhancedKeyUsage = default; string identityValidationId = default; TrustedSigningProvisioningState? provisioningState = default; CertificateProfileStatus? status = default; @@ -231,26 +177,6 @@ internal static TrustedSigningCertificateProfileData DeserializeTrustedSigningCe profileType = new CertificateProfileType(property0.Value.GetString()); continue; } - if (property0.NameEquals("commonName"u8)) - { - commonName = property0.Value.GetString(); - continue; - } - if (property0.NameEquals("organization"u8)) - { - organization = property0.Value.GetString(); - continue; - } - if (property0.NameEquals("organizationUnit"u8)) - { - organizationUnit = property0.Value.GetString(); - continue; - } - if (property0.NameEquals("streetAddress"u8)) - { - streetAddress = property0.Value.GetString(); - continue; - } if (property0.NameEquals("includeStreetAddress"u8)) { if (property0.Value.ValueKind == JsonValueKind.Null) @@ -260,11 +186,6 @@ internal static TrustedSigningCertificateProfileData DeserializeTrustedSigningCe includeStreetAddress = property0.Value.GetBoolean(); continue; } - if (property0.NameEquals("city"u8)) - { - city = property0.Value.GetString(); - continue; - } if (property0.NameEquals("includeCity"u8)) { if (property0.Value.ValueKind == JsonValueKind.Null) @@ -274,11 +195,6 @@ internal static TrustedSigningCertificateProfileData DeserializeTrustedSigningCe includeCity = property0.Value.GetBoolean(); continue; } - if (property0.NameEquals("state"u8)) - { - state = property0.Value.GetString(); - continue; - } if (property0.NameEquals("includeState"u8)) { if (property0.Value.ValueKind == JsonValueKind.Null) @@ -288,11 +204,6 @@ internal static TrustedSigningCertificateProfileData DeserializeTrustedSigningCe includeState = property0.Value.GetBoolean(); continue; } - if (property0.NameEquals("country"u8)) - { - country = property0.Value.GetString(); - continue; - } if (property0.NameEquals("includeCountry"u8)) { if (property0.Value.ValueKind == JsonValueKind.Null) @@ -302,11 +213,6 @@ internal static TrustedSigningCertificateProfileData DeserializeTrustedSigningCe includeCountry = property0.Value.GetBoolean(); continue; } - if (property0.NameEquals("postalCode"u8)) - { - postalCode = property0.Value.GetString(); - continue; - } if (property0.NameEquals("includePostalCode"u8)) { if (property0.Value.ValueKind == JsonValueKind.Null) @@ -316,11 +222,6 @@ internal static TrustedSigningCertificateProfileData DeserializeTrustedSigningCe includePostalCode = property0.Value.GetBoolean(); continue; } - if (property0.NameEquals("enhancedKeyUsage"u8)) - { - enhancedKeyUsage = property0.Value.GetString(); - continue; - } if (property0.NameEquals("identityValidationId"u8)) { identityValidationId = property0.Value.GetString(); @@ -373,20 +274,11 @@ internal static TrustedSigningCertificateProfileData DeserializeTrustedSigningCe type, systemData, profileType, - commonName, - organization, - organizationUnit, - streetAddress, includeStreetAddress, - city, includeCity, - state, includeState, - country, includeCountry, - postalCode, includePostalCode, - enhancedKeyUsage, identityValidationId, provisioningState, status, diff --git a/sdk/trustedsigning/Azure.ResourceManager.TrustedSigning/src/Generated/TrustedSigningCertificateProfileData.cs b/sdk/trustedsigning/Azure.ResourceManager.TrustedSigning/src/Generated/TrustedSigningCertificateProfileData.cs index 234e6907664a..9aa853e76542 100644 --- a/sdk/trustedsigning/Azure.ResourceManager.TrustedSigning/src/Generated/TrustedSigningCertificateProfileData.cs +++ b/sdk/trustedsigning/Azure.ResourceManager.TrustedSigning/src/Generated/TrustedSigningCertificateProfileData.cs @@ -63,42 +63,24 @@ public TrustedSigningCertificateProfileData() /// The resourceType. /// The systemData. /// Profile type of the certificate. - /// Used as CN in the certificate subject name. - /// Used as O in the certificate subject name. - /// Used as OU in the private trust certificate subject name. - /// Used as STREET in the certificate subject name. /// Whether to include STREET in the certificate subject name. - /// Used as L in the certificate subject name. /// Whether to include L in the certificate subject name. Applicable only for private trust, private trust ci profile types. - /// Used as S in the certificate subject name. /// Whether to include S in the certificate subject name. Applicable only for private trust, private trust ci profile types. - /// Used as C in the certificate subject name. /// Whether to include C in the certificate subject name. Applicable only for private trust, private trust ci profile types. - /// Used as PC in the certificate subject name. /// Whether to include PC in the certificate subject name. - /// Enhanced key usage of the certificate. /// Identity validation id used for the certificate subject name. /// Status of the current operation on certificate profile. /// Status of the certificate profile. /// List of renewed certificates. /// Keeps track of any properties unknown to the library. - internal TrustedSigningCertificateProfileData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, CertificateProfileType? profileType, string commonName, string organization, string organizationUnit, string streetAddress, bool? includeStreetAddress, string city, bool? includeCity, string state, bool? includeState, string country, bool? includeCountry, string postalCode, bool? includePostalCode, string enhancedKeyUsage, string identityValidationId, TrustedSigningProvisioningState? provisioningState, CertificateProfileStatus? status, IReadOnlyList certificates, IDictionary serializedAdditionalRawData) : base(id, name, resourceType, systemData) + internal TrustedSigningCertificateProfileData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, CertificateProfileType? profileType, bool? includeStreetAddress, bool? includeCity, bool? includeState, bool? includeCountry, bool? includePostalCode, string identityValidationId, TrustedSigningProvisioningState? provisioningState, CertificateProfileStatus? status, IReadOnlyList certificates, IDictionary serializedAdditionalRawData) : base(id, name, resourceType, systemData) { ProfileType = profileType; - CommonName = commonName; - Organization = organization; - OrganizationUnit = organizationUnit; - StreetAddress = streetAddress; IncludeStreetAddress = includeStreetAddress; - City = city; IncludeCity = includeCity; - State = state; IncludeState = includeState; - Country = country; IncludeCountry = includeCountry; - PostalCode = postalCode; IncludePostalCode = includePostalCode; - EnhancedKeyUsage = enhancedKeyUsage; IdentityValidationId = identityValidationId; ProvisioningState = provisioningState; Status = status; @@ -108,34 +90,16 @@ internal TrustedSigningCertificateProfileData(ResourceIdentifier id, string name /// Profile type of the certificate. public CertificateProfileType? ProfileType { get; set; } - /// Used as CN in the certificate subject name. - public string CommonName { get; } - /// Used as O in the certificate subject name. - public string Organization { get; } - /// Used as OU in the private trust certificate subject name. - public string OrganizationUnit { get; } - /// Used as STREET in the certificate subject name. - public string StreetAddress { get; } /// Whether to include STREET in the certificate subject name. public bool? IncludeStreetAddress { get; set; } - /// Used as L in the certificate subject name. - public string City { get; } /// Whether to include L in the certificate subject name. Applicable only for private trust, private trust ci profile types. public bool? IncludeCity { get; set; } - /// Used as S in the certificate subject name. - public string State { get; } /// Whether to include S in the certificate subject name. Applicable only for private trust, private trust ci profile types. public bool? IncludeState { get; set; } - /// Used as C in the certificate subject name. - public string Country { get; } /// Whether to include C in the certificate subject name. Applicable only for private trust, private trust ci profile types. public bool? IncludeCountry { get; set; } - /// Used as PC in the certificate subject name. - public string PostalCode { get; } /// Whether to include PC in the certificate subject name. public bool? IncludePostalCode { get; set; } - /// Enhanced key usage of the certificate. - public string EnhancedKeyUsage { get; } /// Identity validation id used for the certificate subject name. public string IdentityValidationId { get; set; } /// Status of the current operation on certificate profile. diff --git a/sdk/trustedsigning/Azure.ResourceManager.TrustedSigning/src/Generated/TrustedSigningCertificateProfileResource.cs b/sdk/trustedsigning/Azure.ResourceManager.TrustedSigning/src/Generated/TrustedSigningCertificateProfileResource.cs index 8fc04f0a50c0..e02491cec61d 100644 --- a/sdk/trustedsigning/Azure.ResourceManager.TrustedSigning/src/Generated/TrustedSigningCertificateProfileResource.cs +++ b/sdk/trustedsigning/Azure.ResourceManager.TrustedSigning/src/Generated/TrustedSigningCertificateProfileResource.cs @@ -102,7 +102,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-02-05-preview + /// 2025-03-30 /// /// /// Resource @@ -142,7 +142,7 @@ public virtual async Task> Ge /// /// /// Default Api Version - /// 2024-02-05-preview + /// 2025-03-30 /// /// /// Resource @@ -182,7 +182,7 @@ public virtual Response Get(Cancellati /// /// /// Default Api Version - /// 2024-02-05-preview + /// 2025-03-30 /// /// /// Resource @@ -224,7 +224,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2024-02-05-preview + /// 2025-03-30 /// /// /// Resource @@ -266,7 +266,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2024-02-05-preview + /// 2025-03-30 /// /// /// Resource @@ -312,7 +312,7 @@ public virtual async Task /// /// /// Default Api Version - /// 2024-02-05-preview + /// 2025-03-30 /// /// /// Resource @@ -358,7 +358,7 @@ public virtual ArmOperation Update(Wai /// /// /// Default Api Version - /// 2024-02-05-preview + /// 2025-03-30 /// /// /// Resource @@ -400,7 +400,7 @@ public virtual async Task RevokeCertificateAsync(RevokeCertificateCont /// /// /// Default Api Version - /// 2024-02-05-preview + /// 2025-03-30 /// /// /// Resource diff --git a/sdk/trustedsigning/Azure.ResourceManager.TrustedSigning/src/autorest.md b/sdk/trustedsigning/Azure.ResourceManager.TrustedSigning/src/autorest.md deleted file mode 100644 index 0f39b59f88e0..000000000000 --- a/sdk/trustedsigning/Azure.ResourceManager.TrustedSigning/src/autorest.md +++ /dev/null @@ -1,92 +0,0 @@ -# Generated code configuration - -Run `dotnet build /t:GenerateCode` to generate code. - -``` yaml -azure-arm: true -csharp: true -library-name: TrustedSigning -namespace: Azure.ResourceManager.TrustedSigning -require: https://github.com/Azure/azure-rest-api-specs/blob/42e63ea88548151222ce3efa1bfce02d879fad6b/specification/codesigning/resource-manager/readme.md -#tag: package-2024-02-05-preview -output-folder: $(this-folder)/Generated -clear-output-folder: true -sample-gen: - output-folder: $(this-folder)/../samples/Generated - clear-output-folder: true -skip-csproj: true -modelerfour: - flatten-payloads: false -use-model-reader-writer: true - -#mgmt-debug: -# show-serialized-names: true - -rename-mapping: - CheckNameAvailability: TrustedSigningAccountNameAvailabilityContent - CheckNameAvailabilityResult: TrustedSigningAccountNameAvailabilityResult - CheckNameAvailabilityResult.nameAvailable: IsNameAvailable - NameUnavailabilityReason: TrustedSigningAccountNameUnavailabilityReason - Certificate.createdDate: CreateOn | datetime - Certificate.expiryDate: ExpireOn | datetime - CodeSigningAccount: TrustedSigningAccount - ProfileType: CertificateProfileType - ProfileType.VBSEnclave: VbsEnclave - RevocationStatus: CertificateRevocationStatus - RevokeCertificate: RevokeCertificateContent - -override-operation-name: - CodeSigningAccounts_CheckNameAvailability: CheckTrustedSigningAccountNameAvailability - -prepend-rp-prefix: - - AccountSku - - Certificate - - CertificateProfile - - CertificateStatus - - ProvisioningState - -format-by-name-rules: - 'tenantId': 'uuid' - 'ETag': 'etag' - 'location': 'azure-location' - '*Uri': 'Uri' - '*Uris': 'Uri' - -acronym-mapping: - CPU: Cpu - CPUs: Cpus - Os: OS - Ip: IP - Ips: IPs|ips - ID: Id - IDs: Ids - VM: Vm - VMs: Vms - Vmos: VmOS - VMScaleSet: VmScaleSet - DNS: Dns - VPN: Vpn - NAT: Nat - WAN: Wan - Ipv4: IPv4|ipv4 - Ipv6: IPv6|ipv6 - Ipsec: IPsec|ipsec - SSO: Sso - URI: Uri - Etag: ETag|etag - -directive: - # Fix the missing `type` property for CheckTrustedSigningAccountNameAvailability - - from: codeSigningAccount.json - where: $.definitions - transform: > - $.CheckNameAvailability.properties['type'] = { - 'type': 'string', - 'description': 'The type of the resource, \"Microsoft.CodeSigning/codeSigningAccounts\".', - 'x-ms-format': 'resource-type' - }; - $.CheckNameAvailability['required'] = [ - 'type', - 'name' - ]; -``` diff --git a/sdk/trustedsigning/Azure.ResourceManager.TrustedSigning/tsp-location.yaml b/sdk/trustedsigning/Azure.ResourceManager.TrustedSigning/tsp-location.yaml new file mode 100644 index 000000000000..f2a9871a9979 --- /dev/null +++ b/sdk/trustedsigning/Azure.ResourceManager.TrustedSigning/tsp-location.yaml @@ -0,0 +1,4 @@ +directory: specification/codesigning/CodeSigning.Management +commit: dc66f756d9f80e02d80b2497bd52337f38449f5b +repo: Azure/azure-rest-api-specs +additionalDirectories: diff --git a/sdk/trustedsigning/Azure.ResourceManager.TrustedSigning/tspCodeModel.json b/sdk/trustedsigning/Azure.ResourceManager.TrustedSigning/tspCodeModel.json new file mode 100644 index 000000000000..0fea2f1f349a --- /dev/null +++ b/sdk/trustedsigning/Azure.ResourceManager.TrustedSigning/tspCodeModel.json @@ -0,0 +1,9000 @@ +{ + "$id": "1", + "Name": "Microsoft.CodeSigning", + "ApiVersions": [ + "2025-03-30" + ], + "Enums": [ + { + "$id": "2", + "kind": "enum", + "name": "ProfileType", + "crossLanguageDefinitionId": "Microsoft.CodeSigning.ProfileType", + "valueType": { + "$id": "3", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "4", + "kind": "enumvalue", + "name": "PublicTrust", + "value": "PublicTrust", + "valueType": { + "$id": "5", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "enumType": { + "$ref": "2" + }, + "doc": "Used for signing files which are distributed publicly.", + "decorators": [] + }, + { + "$id": "6", + "kind": "enumvalue", + "name": "PrivateTrust", + "value": "PrivateTrust", + "valueType": { + "$id": "7", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "enumType": { + "$ref": "2" + }, + "doc": "Used for signing files which are distributed internally within organization or group boundary.", + "decorators": [] + }, + { + "$id": "8", + "kind": "enumvalue", + "name": "PrivateTrustCIPolicy", + "value": "PrivateTrustCIPolicy", + "valueType": { + "$id": "9", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "enumType": { + "$ref": "2" + }, + "doc": "Used for signing CI policy files.", + "decorators": [] + }, + { + "$id": "10", + "kind": "enumvalue", + "name": "VBSEnclave", + "value": "VBSEnclave", + "valueType": { + "$id": "11", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "enumType": { + "$ref": "2" + }, + "doc": "Used for signing files which are run in secure vbs enclave.", + "decorators": [] + }, + { + "$id": "12", + "kind": "enumvalue", + "name": "PublicTrustTest", + "value": "PublicTrustTest", + "valueType": { + "$id": "13", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "enumType": { + "$ref": "2" + }, + "doc": "Used for signing files for testing purpose.", + "decorators": [] + } + ], + "namespace": "Microsoft.CodeSigning", + "doc": "Type of the certificate", + "isFixed": false, + "isFlags": false, + "usage": "Input,Output,Json,LroInitial,LroPolling,LroFinalEnvelope", + "decorators": [] + }, + { + "$id": "14", + "kind": "enum", + "name": "ProvisioningState", + "crossLanguageDefinitionId": "Microsoft.CodeSigning.ProvisioningState", + "valueType": { + "$id": "15", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "16", + "kind": "enumvalue", + "name": "Succeeded", + "value": "Succeeded", + "valueType": { + "$id": "17", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "enumType": { + "$ref": "14" + }, + "doc": "Resource has been created.", + "decorators": [] + }, + { + "$id": "18", + "kind": "enumvalue", + "name": "Failed", + "value": "Failed", + "valueType": { + "$id": "19", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "enumType": { + "$ref": "14" + }, + "doc": "Resource creation failed.", + "decorators": [] + }, + { + "$id": "20", + "kind": "enumvalue", + "name": "Canceled", + "value": "Canceled", + "valueType": { + "$id": "21", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "enumType": { + "$ref": "14" + }, + "doc": "Resource creation was canceled.", + "decorators": [] + }, + { + "$id": "22", + "kind": "enumvalue", + "name": "Updating", + "value": "Updating", + "valueType": { + "$id": "23", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "enumType": { + "$ref": "14" + }, + "doc": "Updating in progress.", + "decorators": [] + }, + { + "$id": "24", + "kind": "enumvalue", + "name": "Deleting", + "value": "Deleting", + "valueType": { + "$id": "25", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "enumType": { + "$ref": "14" + }, + "doc": "Deletion in progress.", + "decorators": [] + }, + { + "$id": "26", + "kind": "enumvalue", + "name": "Accepted", + "value": "Accepted", + "valueType": { + "$id": "27", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "enumType": { + "$ref": "14" + }, + "doc": "Resource creation started.", + "decorators": [] + } + ], + "namespace": "Microsoft.CodeSigning", + "doc": "The status of the current operation.", + "isFixed": false, + "isFlags": false, + "usage": "Output,Json,LroInitial,LroPolling,LroFinalEnvelope", + "decorators": [] + }, + { + "$id": "28", + "kind": "enum", + "name": "CertificateProfileStatus", + "crossLanguageDefinitionId": "Microsoft.CodeSigning.CertificateProfileStatus", + "valueType": { + "$id": "29", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "30", + "kind": "enumvalue", + "name": "Active", + "value": "Active", + "valueType": { + "$id": "31", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "enumType": { + "$ref": "28" + }, + "doc": "The certificate profile is active.", + "decorators": [] + }, + { + "$id": "32", + "kind": "enumvalue", + "name": "Disabled", + "value": "Disabled", + "valueType": { + "$id": "33", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "enumType": { + "$ref": "28" + }, + "doc": "The certificate profile is disabled.", + "decorators": [] + }, + { + "$id": "34", + "kind": "enumvalue", + "name": "Suspended", + "value": "Suspended", + "valueType": { + "$id": "35", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "enumType": { + "$ref": "28" + }, + "doc": "The certificate profile is suspended.", + "decorators": [] + } + ], + "namespace": "Microsoft.CodeSigning", + "doc": "Status of the certificate profiles.", + "isFixed": false, + "isFlags": false, + "usage": "Output,Json,LroInitial,LroPolling,LroFinalEnvelope", + "decorators": [] + }, + { + "$id": "36", + "kind": "enum", + "name": "CertificateStatus", + "crossLanguageDefinitionId": "Microsoft.CodeSigning.CertificateStatus", + "valueType": { + "$id": "37", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "38", + "kind": "enumvalue", + "name": "Active", + "value": "Active", + "valueType": { + "$id": "39", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "enumType": { + "$ref": "36" + }, + "doc": "The certificate is active.", + "decorators": [] + }, + { + "$id": "40", + "kind": "enumvalue", + "name": "Expired", + "value": "Expired", + "valueType": { + "$id": "41", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "enumType": { + "$ref": "36" + }, + "doc": "The certificate is expired.", + "decorators": [] + }, + { + "$id": "42", + "kind": "enumvalue", + "name": "Revoked", + "value": "Revoked", + "valueType": { + "$id": "43", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "enumType": { + "$ref": "36" + }, + "doc": "The certificate is revoked.", + "decorators": [] + } + ], + "namespace": "Microsoft.CodeSigning", + "doc": "Status of the certificate", + "isFixed": false, + "isFlags": false, + "usage": "Output,Json,LroInitial,LroPolling,LroFinalEnvelope", + "decorators": [] + }, + { + "$id": "44", + "kind": "enum", + "name": "RevocationStatus", + "crossLanguageDefinitionId": "Microsoft.CodeSigning.RevocationStatus", + "valueType": { + "$id": "45", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "46", + "kind": "enumvalue", + "name": "Succeeded", + "value": "Succeeded", + "valueType": { + "$id": "47", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "enumType": { + "$ref": "44" + }, + "doc": "Certificate revocation succeeded.", + "decorators": [] + }, + { + "$id": "48", + "kind": "enumvalue", + "name": "InProgress", + "value": "InProgress", + "valueType": { + "$id": "49", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "enumType": { + "$ref": "44" + }, + "doc": "Certificate revocation is in progress.", + "decorators": [] + }, + { + "$id": "50", + "kind": "enumvalue", + "name": "Failed", + "value": "Failed", + "valueType": { + "$id": "51", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "enumType": { + "$ref": "44" + }, + "doc": "Certificate revocation failed.", + "decorators": [] + } + ], + "namespace": "Microsoft.CodeSigning", + "doc": "Revocation status of the certificate.", + "isFixed": false, + "isFlags": false, + "usage": "Output,Json,LroInitial,LroPolling,LroFinalEnvelope", + "decorators": [] + }, + { + "$id": "52", + "kind": "enum", + "name": "createdByType", + "crossLanguageDefinitionId": "Azure.ResourceManager.CommonTypes.createdByType", + "valueType": { + "$id": "53", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "54", + "kind": "enumvalue", + "name": "User", + "value": "User", + "valueType": { + "$id": "55", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "enumType": { + "$ref": "52" + }, + "doc": "The entity was created by a user.", + "decorators": [] + }, + { + "$id": "56", + "kind": "enumvalue", + "name": "Application", + "value": "Application", + "valueType": { + "$id": "57", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "enumType": { + "$ref": "52" + }, + "doc": "The entity was created by an application.", + "decorators": [] + }, + { + "$id": "58", + "kind": "enumvalue", + "name": "ManagedIdentity", + "value": "ManagedIdentity", + "valueType": { + "$id": "59", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "enumType": { + "$ref": "52" + }, + "doc": "The entity was created by a managed identity.", + "decorators": [] + }, + { + "$id": "60", + "kind": "enumvalue", + "name": "Key", + "value": "Key", + "valueType": { + "$id": "61", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "enumType": { + "$ref": "52" + }, + "doc": "The entity was created by a key.", + "decorators": [] + } + ], + "namespace": "Azure.ResourceManager.CommonTypes", + "doc": "The kind of entity that created the resource.", + "isFixed": false, + "isFlags": false, + "usage": "Output,Json,LroInitial,LroPolling,LroFinalEnvelope", + "decorators": [] + }, + { + "$id": "62", + "kind": "enum", + "name": "ResourceProvisioningState", + "crossLanguageDefinitionId": "Azure.ResourceManager.ResourceProvisioningState", + "valueType": { + "$id": "63", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "64", + "kind": "enumvalue", + "name": "Succeeded", + "value": "Succeeded", + "valueType": { + "$id": "65", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "enumType": { + "$ref": "62" + }, + "doc": "Resource has been created.", + "decorators": [] + }, + { + "$id": "66", + "kind": "enumvalue", + "name": "Failed", + "value": "Failed", + "valueType": { + "$id": "67", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "enumType": { + "$ref": "62" + }, + "doc": "Resource creation failed.", + "decorators": [] + }, + { + "$id": "68", + "kind": "enumvalue", + "name": "Canceled", + "value": "Canceled", + "valueType": { + "$id": "69", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "enumType": { + "$ref": "62" + }, + "doc": "Resource creation was canceled.", + "decorators": [] + } + ], + "namespace": "Azure.ResourceManager", + "doc": "The provisioning state of a resource type.", + "isFixed": false, + "isFlags": false, + "usage": "LroPolling", + "decorators": [] + }, + { + "$id": "70", + "kind": "enum", + "name": "SkuName", + "crossLanguageDefinitionId": "Microsoft.CodeSigning.SkuName", + "valueType": { + "$id": "71", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "72", + "kind": "enumvalue", + "name": "Basic", + "value": "Basic", + "valueType": { + "$id": "73", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "enumType": { + "$ref": "70" + }, + "doc": "Basic sku.", + "decorators": [] + }, + { + "$id": "74", + "kind": "enumvalue", + "name": "Premium", + "value": "Premium", + "valueType": { + "$id": "75", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "enumType": { + "$ref": "70" + }, + "doc": "Premium sku.", + "decorators": [] + } + ], + "namespace": "Microsoft.CodeSigning", + "doc": "Name of the sku.", + "isFixed": false, + "isFlags": false, + "usage": "Input,Output,Json,LroInitial,LroPolling,LroFinalEnvelope", + "decorators": [] + }, + { + "$id": "76", + "kind": "enum", + "name": "NameUnavailabilityReason", + "crossLanguageDefinitionId": "Microsoft.CodeSigning.NameUnavailabilityReason", + "valueType": { + "$id": "77", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "78", + "kind": "enumvalue", + "name": "AccountNameInvalid", + "value": "AccountNameInvalid", + "valueType": { + "$id": "79", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "enumType": { + "$ref": "76" + }, + "doc": "Account name is invalid", + "decorators": [] + }, + { + "$id": "80", + "kind": "enumvalue", + "name": "AlreadyExists", + "value": "AlreadyExists", + "valueType": { + "$id": "81", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "enumType": { + "$ref": "76" + }, + "doc": "Account name already exists", + "decorators": [] + } + ], + "namespace": "Microsoft.CodeSigning", + "doc": "The reason that a trusted signing account name could not be used. The Reason element is only returned if nameAvailable is false.", + "isFixed": false, + "isFlags": false, + "usage": "Output,Json", + "decorators": [] + }, + { + "$id": "82", + "kind": "enum", + "name": "Origin", + "crossLanguageDefinitionId": "Azure.ResourceManager.CommonTypes.Origin", + "valueType": { + "$id": "83", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "84", + "kind": "enumvalue", + "name": "user", + "value": "user", + "valueType": { + "$id": "85", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "enumType": { + "$ref": "82" + }, + "doc": "Indicates the operation is initiated by a user.", + "decorators": [] + }, + { + "$id": "86", + "kind": "enumvalue", + "name": "system", + "value": "system", + "valueType": { + "$id": "87", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "enumType": { + "$ref": "82" + }, + "doc": "Indicates the operation is initiated by a system.", + "decorators": [] + }, + { + "$id": "88", + "kind": "enumvalue", + "name": "user,system", + "value": "user,system", + "valueType": { + "$id": "89", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "enumType": { + "$ref": "82" + }, + "doc": "Indicates the operation is initiated by a user or system.", + "decorators": [] + } + ], + "namespace": "Azure.ResourceManager.CommonTypes", + "doc": "The intended executor of the operation; as in Resource Based Access Control (RBAC) and audit logs UX. Default value is \"user,system\"", + "isFixed": false, + "isFlags": false, + "usage": "Output,Json", + "decorators": [] + }, + { + "$id": "90", + "kind": "enum", + "name": "ActionType", + "crossLanguageDefinitionId": "Azure.ResourceManager.CommonTypes.ActionType", + "valueType": { + "$id": "91", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "92", + "kind": "enumvalue", + "name": "Internal", + "value": "Internal", + "valueType": { + "$id": "93", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "enumType": { + "$ref": "90" + }, + "doc": "Actions are for internal-only APIs.", + "decorators": [] + } + ], + "namespace": "Azure.ResourceManager.CommonTypes", + "doc": "Extensible enum. Indicates the action type. \"Internal\" refers to actions that are for internal only APIs.", + "isFixed": false, + "isFlags": false, + "usage": "Output,Json", + "decorators": [] + }, + { + "$id": "94", + "kind": "enum", + "name": "Versions", + "crossLanguageDefinitionId": "Microsoft.CodeSigning.Versions", + "valueType": { + "$id": "95", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "96", + "kind": "enumvalue", + "name": "v2025_03_30", + "value": "2025-03-30", + "valueType": { + "$id": "97", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "enumType": { + "$ref": "94" + }, + "doc": "The 2025-03-30 GA API version.", + "decorators": [] + } + ], + "namespace": "Microsoft.CodeSigning", + "doc": "The available API versions.", + "isFixed": true, + "isFlags": false, + "usage": "ApiVersionEnum", + "decorators": [] + } + ], + "Models": [ + { + "$id": "98", + "kind": "model", + "name": "CertificateProfile", + "namespace": "Microsoft.CodeSigning", + "crossLanguageDefinitionId": "Microsoft.CodeSigning.CertificateProfile", + "usage": "Input,Output,Json,LroInitial,LroPolling,LroFinalEnvelope", + "doc": "Certificate profile resource.", + "decorators": [], + "baseModel": { + "$id": "99", + "kind": "model", + "name": "ProxyResource", + "namespace": "Azure.ResourceManager.CommonTypes", + "crossLanguageDefinitionId": "Azure.ResourceManager.CommonTypes.ProxyResource", + "usage": "Input,Output,Json,LroInitial,LroPolling,LroFinalEnvelope", + "doc": "The resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a location", + "decorators": [], + "baseModel": { + "$id": "100", + "kind": "model", + "name": "Resource", + "namespace": "Azure.ResourceManager.CommonTypes", + "crossLanguageDefinitionId": "Azure.ResourceManager.CommonTypes.Resource", + "usage": "Input,Output,Json,LroInitial,LroPolling,LroFinalEnvelope", + "doc": "Common fields that are returned in the response for all Azure Resource Manager resources", + "decorators": [], + "properties": [ + { + "$id": "101", + "kind": "property", + "name": "id", + "serializedName": "id", + "doc": "Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}", + "type": { + "$id": "102", + "kind": "string", + "name": "armResourceIdentifier", + "crossLanguageDefinitionId": "Azure.Core.armResourceIdentifier", + "baseType": { + "$id": "103", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "decorators": [] + }, + "optional": true, + "readOnly": true, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.ResourceManager.CommonTypes.Resource.id", + "serializationOptions": { + "$id": "104", + "json": { + "$id": "105", + "name": "id" + } + } + }, + { + "$id": "106", + "kind": "property", + "name": "name", + "serializedName": "name", + "doc": "The name of the resource", + "type": { + "$id": "107", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": true, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.ResourceManager.CommonTypes.Resource.name", + "serializationOptions": { + "$id": "108", + "json": { + "$id": "109", + "name": "name" + } + } + }, + { + "$id": "110", + "kind": "property", + "name": "type", + "serializedName": "type", + "doc": "The type of the resource. E.g. \"Microsoft.Compute/virtualMachines\" or \"Microsoft.Storage/storageAccounts\"", + "type": { + "$id": "111", + "kind": "string", + "name": "armResourceType", + "crossLanguageDefinitionId": "Azure.Core.armResourceType", + "baseType": { + "$id": "112", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "decorators": [] + }, + "optional": true, + "readOnly": true, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.ResourceManager.CommonTypes.Resource.type", + "serializationOptions": { + "$id": "113", + "json": { + "$id": "114", + "name": "type" + } + } + }, + { + "$id": "115", + "kind": "property", + "name": "systemData", + "serializedName": "systemData", + "doc": "Azure Resource Manager metadata containing createdBy and modifiedBy information.", + "type": { + "$id": "116", + "kind": "model", + "name": "SystemData", + "namespace": "Azure.ResourceManager.CommonTypes", + "crossLanguageDefinitionId": "Azure.ResourceManager.CommonTypes.SystemData", + "usage": "Output,Json,LroInitial,LroPolling,LroFinalEnvelope", + "doc": "Metadata pertaining to creation and last modification of the resource.", + "decorators": [], + "properties": [ + { + "$id": "117", + "kind": "property", + "name": "createdBy", + "serializedName": "createdBy", + "doc": "The identity that created the resource.", + "type": { + "$id": "118", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.ResourceManager.CommonTypes.SystemData.createdBy", + "serializationOptions": { + "$id": "119", + "json": { + "$id": "120", + "name": "createdBy" + } + } + }, + { + "$id": "121", + "kind": "property", + "name": "createdByType", + "serializedName": "createdByType", + "doc": "The type of identity that created the resource.", + "type": { + "$ref": "52" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.ResourceManager.CommonTypes.SystemData.createdByType", + "serializationOptions": { + "$id": "122", + "json": { + "$id": "123", + "name": "createdByType" + } + } + }, + { + "$id": "124", + "kind": "property", + "name": "createdAt", + "serializedName": "createdAt", + "doc": "The timestamp of resource creation (UTC).", + "type": { + "$id": "125", + "kind": "utcDateTime", + "name": "utcDateTime", + "encode": "rfc3339", + "wireType": { + "$id": "126", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.utcDateTime", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.ResourceManager.CommonTypes.SystemData.createdAt", + "serializationOptions": { + "$id": "127", + "json": { + "$id": "128", + "name": "createdAt" + } + } + }, + { + "$id": "129", + "kind": "property", + "name": "lastModifiedBy", + "serializedName": "lastModifiedBy", + "doc": "The identity that last modified the resource.", + "type": { + "$id": "130", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.ResourceManager.CommonTypes.SystemData.lastModifiedBy", + "serializationOptions": { + "$id": "131", + "json": { + "$id": "132", + "name": "lastModifiedBy" + } + } + }, + { + "$id": "133", + "kind": "property", + "name": "lastModifiedByType", + "serializedName": "lastModifiedByType", + "doc": "The type of identity that last modified the resource.", + "type": { + "$ref": "52" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.ResourceManager.CommonTypes.SystemData.lastModifiedByType", + "serializationOptions": { + "$id": "134", + "json": { + "$id": "135", + "name": "lastModifiedByType" + } + } + }, + { + "$id": "136", + "kind": "property", + "name": "lastModifiedAt", + "serializedName": "lastModifiedAt", + "doc": "The timestamp of resource last modification (UTC)", + "type": { + "$id": "137", + "kind": "utcDateTime", + "name": "utcDateTime", + "encode": "rfc3339", + "wireType": { + "$id": "138", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.utcDateTime", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.ResourceManager.CommonTypes.SystemData.lastModifiedAt", + "serializationOptions": { + "$id": "139", + "json": { + "$id": "140", + "name": "lastModifiedAt" + } + } + } + ] + }, + "optional": true, + "readOnly": true, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.ResourceManager.CommonTypes.Resource.systemData", + "serializationOptions": { + "$id": "141", + "json": { + "$id": "142", + "name": "systemData" + } + } + } + ] + }, + "properties": [] + }, + "properties": [ + { + "$id": "143", + "kind": "property", + "name": "properties", + "serializedName": "properties", + "doc": "The resource-specific properties for this resource.", + "type": { + "$id": "144", + "kind": "model", + "name": "CertificateProfileProperties", + "namespace": "Microsoft.CodeSigning", + "crossLanguageDefinitionId": "Microsoft.CodeSigning.CertificateProfileProperties", + "usage": "Input,Output,Json,LroInitial,LroPolling,LroFinalEnvelope", + "doc": "Properties of the certificate profile.", + "decorators": [], + "properties": [ + { + "$id": "145", + "kind": "property", + "name": "profileType", + "serializedName": "profileType", + "doc": "Profile type of the certificate.", + "type": { + "$ref": "2" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Microsoft.CodeSigning.CertificateProfileProperties.profileType", + "serializationOptions": { + "$id": "146", + "json": { + "$id": "147", + "name": "profileType" + } + } + }, + { + "$id": "148", + "kind": "property", + "name": "includeStreetAddress", + "serializedName": "includeStreetAddress", + "doc": "Whether to include STREET in the certificate subject name.", + "type": { + "$id": "149", + "kind": "boolean", + "name": "boolean", + "crossLanguageDefinitionId": "TypeSpec.boolean", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Microsoft.CodeSigning.CertificateProfileProperties.includeStreetAddress", + "serializationOptions": { + "$id": "150", + "json": { + "$id": "151", + "name": "includeStreetAddress" + } + } + }, + { + "$id": "152", + "kind": "property", + "name": "includeCity", + "serializedName": "includeCity", + "doc": "Whether to include L in the certificate subject name. Applicable only for private trust, private trust ci profile types", + "type": { + "$id": "153", + "kind": "boolean", + "name": "boolean", + "crossLanguageDefinitionId": "TypeSpec.boolean", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Microsoft.CodeSigning.CertificateProfileProperties.includeCity", + "serializationOptions": { + "$id": "154", + "json": { + "$id": "155", + "name": "includeCity" + } + } + }, + { + "$id": "156", + "kind": "property", + "name": "includeState", + "serializedName": "includeState", + "doc": "Whether to include S in the certificate subject name. Applicable only for private trust, private trust ci profile types", + "type": { + "$id": "157", + "kind": "boolean", + "name": "boolean", + "crossLanguageDefinitionId": "TypeSpec.boolean", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Microsoft.CodeSigning.CertificateProfileProperties.includeState", + "serializationOptions": { + "$id": "158", + "json": { + "$id": "159", + "name": "includeState" + } + } + }, + { + "$id": "160", + "kind": "property", + "name": "includeCountry", + "serializedName": "includeCountry", + "doc": "Whether to include C in the certificate subject name. Applicable only for private trust, private trust ci profile types", + "type": { + "$id": "161", + "kind": "boolean", + "name": "boolean", + "crossLanguageDefinitionId": "TypeSpec.boolean", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Microsoft.CodeSigning.CertificateProfileProperties.includeCountry", + "serializationOptions": { + "$id": "162", + "json": { + "$id": "163", + "name": "includeCountry" + } + } + }, + { + "$id": "164", + "kind": "property", + "name": "includePostalCode", + "serializedName": "includePostalCode", + "doc": "Whether to include PC in the certificate subject name.", + "type": { + "$id": "165", + "kind": "boolean", + "name": "boolean", + "crossLanguageDefinitionId": "TypeSpec.boolean", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Microsoft.CodeSigning.CertificateProfileProperties.includePostalCode", + "serializationOptions": { + "$id": "166", + "json": { + "$id": "167", + "name": "includePostalCode" + } + } + }, + { + "$id": "168", + "kind": "property", + "name": "identityValidationId", + "serializedName": "identityValidationId", + "doc": "Identity validation id used for the certificate subject name.", + "type": { + "$id": "169", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Microsoft.CodeSigning.CertificateProfileProperties.identityValidationId", + "serializationOptions": { + "$id": "170", + "json": { + "$id": "171", + "name": "identityValidationId" + } + } + }, + { + "$id": "172", + "kind": "property", + "name": "provisioningState", + "serializedName": "provisioningState", + "doc": "Status of the current operation on certificate profile.", + "type": { + "$ref": "14" + }, + "optional": true, + "readOnly": true, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Microsoft.CodeSigning.CertificateProfileProperties.provisioningState", + "serializationOptions": { + "$id": "173", + "json": { + "$id": "174", + "name": "provisioningState" + } + } + }, + { + "$id": "175", + "kind": "property", + "name": "status", + "serializedName": "status", + "doc": "Status of the certificate profile.", + "type": { + "$ref": "28" + }, + "optional": true, + "readOnly": true, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Microsoft.CodeSigning.CertificateProfileProperties.status", + "serializationOptions": { + "$id": "176", + "json": { + "$id": "177", + "name": "status" + } + } + }, + { + "$id": "178", + "kind": "property", + "name": "certificates", + "serializedName": "certificates", + "doc": "List of renewed certificates.", + "type": { + "$id": "179", + "kind": "array", + "name": "ArrayCertificate", + "valueType": { + "$id": "180", + "kind": "model", + "name": "Certificate", + "namespace": "Microsoft.CodeSigning", + "crossLanguageDefinitionId": "Microsoft.CodeSigning.Certificate", + "usage": "Output,Json,LroInitial,LroPolling,LroFinalEnvelope", + "doc": "Properties of the certificate.", + "decorators": [], + "properties": [ + { + "$id": "181", + "kind": "property", + "name": "serialNumber", + "serializedName": "serialNumber", + "doc": "Serial number of the certificate.", + "type": { + "$id": "182", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Microsoft.CodeSigning.Certificate.serialNumber", + "serializationOptions": { + "$id": "183", + "json": { + "$id": "184", + "name": "serialNumber" + } + } + }, + { + "$id": "185", + "kind": "property", + "name": "enhancedKeyUsage", + "serializedName": "enhancedKeyUsage", + "doc": "Enhanced key usage of the certificate.", + "type": { + "$id": "186", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Microsoft.CodeSigning.Certificate.enhancedKeyUsage", + "serializationOptions": { + "$id": "187", + "json": { + "$id": "188", + "name": "enhancedKeyUsage" + } + } + }, + { + "$id": "189", + "kind": "property", + "name": "subjectName", + "serializedName": "subjectName", + "doc": "Subject name of the certificate.", + "type": { + "$id": "190", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Microsoft.CodeSigning.Certificate.subjectName", + "serializationOptions": { + "$id": "191", + "json": { + "$id": "192", + "name": "subjectName" + } + } + }, + { + "$id": "193", + "kind": "property", + "name": "thumbprint", + "serializedName": "thumbprint", + "doc": "Thumbprint of the certificate.", + "type": { + "$id": "194", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Microsoft.CodeSigning.Certificate.thumbprint", + "serializationOptions": { + "$id": "195", + "json": { + "$id": "196", + "name": "thumbprint" + } + } + }, + { + "$id": "197", + "kind": "property", + "name": "createdDate", + "serializedName": "createdDate", + "doc": "Certificate created date.", + "type": { + "$id": "198", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Microsoft.CodeSigning.Certificate.createdDate", + "serializationOptions": { + "$id": "199", + "json": { + "$id": "200", + "name": "createdDate" + } + } + }, + { + "$id": "201", + "kind": "property", + "name": "expiryDate", + "serializedName": "expiryDate", + "doc": "Certificate expiry date.", + "type": { + "$id": "202", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Microsoft.CodeSigning.Certificate.expiryDate", + "serializationOptions": { + "$id": "203", + "json": { + "$id": "204", + "name": "expiryDate" + } + } + }, + { + "$id": "205", + "kind": "property", + "name": "status", + "serializedName": "status", + "doc": "Status of the certificate.", + "type": { + "$ref": "36" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Microsoft.CodeSigning.Certificate.status", + "serializationOptions": { + "$id": "206", + "json": { + "$id": "207", + "name": "status" + } + } + }, + { + "$id": "208", + "kind": "property", + "name": "revocation", + "serializedName": "revocation", + "doc": "Revocations history of a certificate.", + "type": { + "$id": "209", + "kind": "model", + "name": "Revocation", + "namespace": "Microsoft.CodeSigning", + "crossLanguageDefinitionId": "Microsoft.CodeSigning.Revocation", + "usage": "Output,Json,LroInitial,LroPolling,LroFinalEnvelope", + "doc": "Revocation details of the certificate.", + "decorators": [], + "properties": [ + { + "$id": "210", + "kind": "property", + "name": "requestedAt", + "serializedName": "requestedAt", + "doc": "The timestamp when the revocation is requested.", + "type": { + "$id": "211", + "kind": "utcDateTime", + "name": "utcDateTime", + "encode": "rfc3339", + "wireType": { + "$id": "212", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.utcDateTime", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Microsoft.CodeSigning.Revocation.requestedAt", + "serializationOptions": { + "$id": "213", + "json": { + "$id": "214", + "name": "requestedAt" + } + } + }, + { + "$id": "215", + "kind": "property", + "name": "effectiveAt", + "serializedName": "effectiveAt", + "doc": "The timestamp when the revocation is effective.", + "type": { + "$id": "216", + "kind": "utcDateTime", + "name": "utcDateTime", + "encode": "rfc3339", + "wireType": { + "$id": "217", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.utcDateTime", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Microsoft.CodeSigning.Revocation.effectiveAt", + "serializationOptions": { + "$id": "218", + "json": { + "$id": "219", + "name": "effectiveAt" + } + } + }, + { + "$id": "220", + "kind": "property", + "name": "reason", + "serializedName": "reason", + "doc": "Reason for revocation.", + "type": { + "$id": "221", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Microsoft.CodeSigning.Revocation.reason", + "serializationOptions": { + "$id": "222", + "json": { + "$id": "223", + "name": "reason" + } + } + }, + { + "$id": "224", + "kind": "property", + "name": "remarks", + "serializedName": "remarks", + "doc": "Remarks for the revocation.", + "type": { + "$id": "225", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Microsoft.CodeSigning.Revocation.remarks", + "serializationOptions": { + "$id": "226", + "json": { + "$id": "227", + "name": "remarks" + } + } + }, + { + "$id": "228", + "kind": "property", + "name": "status", + "serializedName": "status", + "doc": "Status of the revocation.", + "type": { + "$ref": "44" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Microsoft.CodeSigning.Revocation.status", + "serializationOptions": { + "$id": "229", + "json": { + "$id": "230", + "name": "status" + } + } + }, + { + "$id": "231", + "kind": "property", + "name": "failureReason", + "serializedName": "failureReason", + "doc": "Reason for the revocation failure.", + "type": { + "$id": "232", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Microsoft.CodeSigning.Revocation.failureReason", + "serializationOptions": { + "$id": "233", + "json": { + "$id": "234", + "name": "failureReason" + } + } + } + ] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": true, + "decorators": [], + "crossLanguageDefinitionId": "Microsoft.CodeSigning.Certificate.revocation", + "serializationOptions": { + "$id": "235", + "json": { + "$id": "236", + "name": "revocation" + } + } + } + ] + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "optional": true, + "readOnly": true, + "discriminator": false, + "flatten": true, + "decorators": [], + "crossLanguageDefinitionId": "Microsoft.CodeSigning.CertificateProfileProperties.certificates", + "serializationOptions": { + "$id": "237", + "json": { + "$id": "238", + "name": "certificates" + } + } + } + ] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Microsoft.CodeSigning.CertificateProfile.properties", + "serializationOptions": { + "$id": "239", + "json": { + "$id": "240", + "name": "properties" + } + } + } + ] + }, + { + "$ref": "144" + }, + { + "$ref": "180" + }, + { + "$ref": "209" + }, + { + "$ref": "99" + }, + { + "$ref": "100" + }, + { + "$ref": "116" + }, + { + "$id": "241", + "kind": "model", + "name": "ErrorResponse", + "namespace": "Azure.ResourceManager.CommonTypes", + "crossLanguageDefinitionId": "Azure.ResourceManager.CommonTypes.ErrorResponse", + "usage": "Error,Json,Exception", + "doc": "Common error response for all Azure Resource Manager APIs to return error details for failed operations.", + "decorators": [], + "properties": [ + { + "$id": "242", + "kind": "property", + "name": "error", + "serializedName": "error", + "doc": "The error object.", + "type": { + "$id": "243", + "kind": "model", + "name": "ErrorDetail", + "namespace": "Azure.ResourceManager.CommonTypes", + "crossLanguageDefinitionId": "Azure.ResourceManager.CommonTypes.ErrorDetail", + "usage": "Json,Exception,LroPolling", + "doc": "The error detail.", + "decorators": [], + "properties": [ + { + "$id": "244", + "kind": "property", + "name": "code", + "serializedName": "code", + "doc": "The error code.", + "type": { + "$id": "245", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": true, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.ResourceManager.CommonTypes.ErrorDetail.code", + "serializationOptions": { + "$id": "246", + "json": { + "$id": "247", + "name": "code" + } + } + }, + { + "$id": "248", + "kind": "property", + "name": "message", + "serializedName": "message", + "doc": "The error message.", + "type": { + "$id": "249", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": true, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.ResourceManager.CommonTypes.ErrorDetail.message", + "serializationOptions": { + "$id": "250", + "json": { + "$id": "251", + "name": "message" + } + } + }, + { + "$id": "252", + "kind": "property", + "name": "target", + "serializedName": "target", + "doc": "The error target.", + "type": { + "$id": "253", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": true, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.ResourceManager.CommonTypes.ErrorDetail.target", + "serializationOptions": { + "$id": "254", + "json": { + "$id": "255", + "name": "target" + } + } + }, + { + "$id": "256", + "kind": "property", + "name": "details", + "serializedName": "details", + "doc": "The error details.", + "type": { + "$id": "257", + "kind": "array", + "name": "ArrayErrorDetail", + "valueType": { + "$ref": "243" + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "optional": true, + "readOnly": true, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.ResourceManager.CommonTypes.ErrorDetail.details", + "serializationOptions": { + "$id": "258", + "json": { + "$id": "259", + "name": "details" + } + } + }, + { + "$id": "260", + "kind": "property", + "name": "additionalInfo", + "serializedName": "additionalInfo", + "doc": "The error additional info.", + "type": { + "$id": "261", + "kind": "array", + "name": "ArrayErrorAdditionalInfo", + "valueType": { + "$id": "262", + "kind": "model", + "name": "ErrorAdditionalInfo", + "namespace": "Azure.ResourceManager.CommonTypes", + "crossLanguageDefinitionId": "Azure.ResourceManager.CommonTypes.ErrorAdditionalInfo", + "usage": "Json,Exception,LroPolling", + "doc": "The resource management error additional info.", + "decorators": [], + "properties": [ + { + "$id": "263", + "kind": "property", + "name": "type", + "serializedName": "type", + "doc": "The additional info type.", + "type": { + "$id": "264", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": true, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.ResourceManager.CommonTypes.ErrorAdditionalInfo.type", + "serializationOptions": { + "$id": "265", + "json": { + "$id": "266", + "name": "type" + } + } + }, + { + "$id": "267", + "kind": "property", + "name": "info", + "serializedName": "info", + "doc": "The additional info.", + "type": { + "$id": "268", + "kind": "model", + "name": "ErrorAdditionalInfoInfo", + "namespace": "Azure.ResourceManager.CommonTypes", + "crossLanguageDefinitionId": "Azure.ResourceManager.CommonTypes.ErrorAdditionalInfo.info.anonymous", + "usage": "Json,Exception,LroPolling", + "decorators": [], + "properties": [] + }, + "optional": true, + "readOnly": true, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.ResourceManager.CommonTypes.ErrorAdditionalInfo.info", + "serializationOptions": { + "$id": "269", + "json": { + "$id": "270", + "name": "info" + } + } + } + ] + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "optional": true, + "readOnly": true, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.ResourceManager.CommonTypes.ErrorDetail.additionalInfo", + "serializationOptions": { + "$id": "271", + "json": { + "$id": "272", + "name": "additionalInfo" + } + } + } + ] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.ResourceManager.CommonTypes.ErrorResponse.error", + "serializationOptions": { + "$id": "273", + "json": { + "$id": "274", + "name": "error" + } + } + } + ] + }, + { + "$ref": "243" + }, + { + "$ref": "262" + }, + { + "$ref": "268" + }, + { + "$id": "275", + "kind": "model", + "name": "ArmOperationStatusResourceProvisioningState", + "namespace": "Azure.ResourceManager", + "crossLanguageDefinitionId": "Azure.ResourceManager.ArmOperationStatus", + "usage": "LroPolling", + "doc": "Standard Azure Resource Manager operation status response", + "decorators": [], + "properties": [ + { + "$id": "276", + "kind": "property", + "name": "status", + "serializedName": "status", + "doc": "The operation status", + "type": { + "$ref": "62" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.ResourceManager.ArmOperationStatus.status", + "serializationOptions": { + "$id": "277", + "json": { + "$id": "278", + "name": "status" + } + } + }, + { + "$id": "279", + "kind": "property", + "name": "name", + "serializedName": "name", + "doc": "The name of the operationStatus resource", + "type": { + "$id": "280", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": true, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.ResourceManager.ArmOperationStatus.name", + "serializationOptions": { + "$id": "281", + "json": { + "$id": "282", + "name": "name" + } + } + }, + { + "$id": "283", + "kind": "property", + "name": "startTime", + "serializedName": "startTime", + "doc": "Operation start time", + "type": { + "$id": "284", + "kind": "utcDateTime", + "name": "utcDateTime", + "encode": "rfc3339", + "wireType": { + "$id": "285", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.utcDateTime", + "decorators": [] + }, + "optional": true, + "readOnly": true, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.ResourceManager.ArmOperationStatus.startTime", + "serializationOptions": { + "$id": "286", + "json": { + "$id": "287", + "name": "startTime" + } + } + }, + { + "$id": "288", + "kind": "property", + "name": "endTime", + "serializedName": "endTime", + "doc": "Operation complete time", + "type": { + "$id": "289", + "kind": "utcDateTime", + "name": "utcDateTime", + "encode": "rfc3339", + "wireType": { + "$id": "290", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.utcDateTime", + "decorators": [] + }, + "optional": true, + "readOnly": true, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.ResourceManager.ArmOperationStatus.endTime", + "serializationOptions": { + "$id": "291", + "json": { + "$id": "292", + "name": "endTime" + } + } + }, + { + "$id": "293", + "kind": "property", + "name": "percentComplete", + "serializedName": "percentComplete", + "doc": "The progress made toward completing the operation", + "type": { + "$id": "294", + "kind": "float64", + "name": "float64", + "crossLanguageDefinitionId": "TypeSpec.float64", + "decorators": [] + }, + "optional": true, + "readOnly": true, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.ResourceManager.ArmOperationStatus.percentComplete", + "serializationOptions": { + "$id": "295", + "json": { + "$id": "296", + "name": "percentComplete" + } + } + }, + { + "$id": "297", + "kind": "property", + "name": "error", + "serializedName": "error", + "doc": "Errors that occurred if the operation ended with Canceled or Failed status", + "type": { + "$ref": "243" + }, + "optional": true, + "readOnly": true, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.ResourceManager.ArmOperationStatus.error", + "serializationOptions": { + "$id": "298", + "json": { + "$id": "299", + "name": "error" + } + } + } + ] + }, + { + "$id": "300", + "kind": "model", + "name": "CertificateProfileListResult", + "namespace": "Azure.ResourceManager", + "crossLanguageDefinitionId": "Azure.ResourceManager.ResourceListResult", + "usage": "Output,Json", + "doc": "The response of a CertificateProfile list operation.", + "decorators": [], + "properties": [ + { + "$id": "301", + "kind": "property", + "name": "value", + "serializedName": "value", + "doc": "The CertificateProfile items on this page", + "type": { + "$id": "302", + "kind": "array", + "name": "ArrayCertificateProfile", + "valueType": { + "$ref": "98" + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.ResourceManager.ResourceListResult.value", + "serializationOptions": { + "$id": "303", + "json": { + "$id": "304", + "name": "value" + } + } + }, + { + "$id": "305", + "kind": "property", + "name": "nextLink", + "serializedName": "nextLink", + "doc": "The link to the next page of items", + "type": { + "$id": "306", + "kind": "url", + "name": "ResourceLocation", + "crossLanguageDefinitionId": "TypeSpec.Rest.ResourceLocation", + "baseType": { + "$id": "307", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url", + "decorators": [] + }, + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.ResourceManager.ResourceListResult.nextLink", + "serializationOptions": { + "$id": "308", + "json": { + "$id": "309", + "name": "nextLink" + } + } + } + ] + }, + { + "$id": "310", + "kind": "model", + "name": "RevokeCertificate", + "namespace": "Microsoft.CodeSigning", + "crossLanguageDefinitionId": "Microsoft.CodeSigning.RevokeCertificate", + "usage": "Input,Json", + "doc": "Defines the certificate revocation properties.", + "decorators": [], + "properties": [ + { + "$id": "311", + "kind": "property", + "name": "serialNumber", + "serializedName": "serialNumber", + "doc": "Serial number of the certificate.", + "type": { + "$id": "312", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Microsoft.CodeSigning.RevokeCertificate.serialNumber", + "serializationOptions": { + "$id": "313", + "json": { + "$id": "314", + "name": "serialNumber" + } + } + }, + { + "$id": "315", + "kind": "property", + "name": "thumbprint", + "serializedName": "thumbprint", + "doc": "Thumbprint of the certificate.", + "type": { + "$id": "316", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Microsoft.CodeSigning.RevokeCertificate.thumbprint", + "serializationOptions": { + "$id": "317", + "json": { + "$id": "318", + "name": "thumbprint" + } + } + }, + { + "$id": "319", + "kind": "property", + "name": "effectiveAt", + "serializedName": "effectiveAt", + "doc": "The timestamp when the revocation is effective.", + "type": { + "$id": "320", + "kind": "utcDateTime", + "name": "utcDateTime", + "encode": "rfc3339", + "wireType": { + "$id": "321", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.utcDateTime", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Microsoft.CodeSigning.RevokeCertificate.effectiveAt", + "serializationOptions": { + "$id": "322", + "json": { + "$id": "323", + "name": "effectiveAt" + } + } + }, + { + "$id": "324", + "kind": "property", + "name": "reason", + "serializedName": "reason", + "doc": "Reason for the revocation.", + "type": { + "$id": "325", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Microsoft.CodeSigning.RevokeCertificate.reason", + "serializationOptions": { + "$id": "326", + "json": { + "$id": "327", + "name": "reason" + } + } + }, + { + "$id": "328", + "kind": "property", + "name": "remarks", + "serializedName": "remarks", + "doc": "Remarks for the revocation.", + "type": { + "$id": "329", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Microsoft.CodeSigning.RevokeCertificate.remarks", + "serializationOptions": { + "$id": "330", + "json": { + "$id": "331", + "name": "remarks" + } + } + } + ] + }, + { + "$id": "332", + "kind": "model", + "name": "CodeSigningAccount", + "namespace": "Microsoft.CodeSigning", + "crossLanguageDefinitionId": "Microsoft.CodeSigning.CodeSigningAccount", + "usage": "Input,Output,Json,LroInitial,LroPolling,LroFinalEnvelope", + "doc": "Trusted signing account resource.", + "decorators": [], + "baseModel": { + "$id": "333", + "kind": "model", + "name": "TrackedResource", + "namespace": "Azure.ResourceManager.CommonTypes", + "crossLanguageDefinitionId": "Azure.ResourceManager.CommonTypes.TrackedResource", + "usage": "Input,Output,Json,LroInitial,LroPolling,LroFinalEnvelope", + "doc": "The resource model definition for an Azure Resource Manager tracked top level resource which has 'tags' and a 'location'", + "decorators": [], + "baseModel": { + "$ref": "100" + }, + "properties": [ + { + "$id": "334", + "kind": "property", + "name": "tags", + "serializedName": "tags", + "doc": "Resource tags.", + "type": { + "$id": "335", + "kind": "dict", + "keyType": { + "$id": "336", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "valueType": { + "$id": "337", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.ResourceManager.CommonTypes.TrackedResource.tags", + "serializationOptions": { + "$id": "338", + "json": { + "$id": "339", + "name": "tags" + } + } + }, + { + "$id": "340", + "kind": "property", + "name": "location", + "serializedName": "location", + "doc": "The geo-location where the resource lives", + "type": { + "$id": "341", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.ResourceManager.CommonTypes.TrackedResource.location", + "serializationOptions": { + "$id": "342", + "json": { + "$id": "343", + "name": "location" + } + } + } + ] + }, + "properties": [ + { + "$id": "344", + "kind": "property", + "name": "properties", + "serializedName": "properties", + "doc": "The resource-specific properties for this resource.", + "type": { + "$id": "345", + "kind": "model", + "name": "CodeSigningAccountProperties", + "namespace": "Microsoft.CodeSigning", + "crossLanguageDefinitionId": "Microsoft.CodeSigning.CodeSigningAccountProperties", + "usage": "Input,Output,Json,LroInitial,LroPolling,LroFinalEnvelope", + "doc": "Properties of the trusted signing account.", + "decorators": [], + "properties": [ + { + "$id": "346", + "kind": "property", + "name": "accountUri", + "serializedName": "accountUri", + "doc": "The URI of the trusted signing account which is used during signing files.", + "type": { + "$id": "347", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": true, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Microsoft.CodeSigning.CodeSigningAccountProperties.accountUri", + "serializationOptions": { + "$id": "348", + "json": { + "$id": "349", + "name": "accountUri" + } + } + }, + { + "$id": "350", + "kind": "property", + "name": "sku", + "serializedName": "sku", + "doc": "SKU of the trusted signing account.", + "type": { + "$id": "351", + "kind": "model", + "name": "AccountSku", + "namespace": "Microsoft.CodeSigning", + "crossLanguageDefinitionId": "Microsoft.CodeSigning.AccountSku", + "usage": "Input,Output,Json,LroInitial,LroPolling,LroFinalEnvelope", + "doc": "SKU of the trusted signing account.", + "decorators": [], + "properties": [ + { + "$id": "352", + "kind": "property", + "name": "name", + "serializedName": "name", + "doc": "Name of the SKU.", + "type": { + "$ref": "70" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Microsoft.CodeSigning.AccountSku.name", + "serializationOptions": { + "$id": "353", + "json": { + "$id": "354", + "name": "name" + } + } + } + ] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Microsoft.CodeSigning.CodeSigningAccountProperties.sku", + "serializationOptions": { + "$id": "355", + "json": { + "$id": "356", + "name": "sku" + } + } + }, + { + "$id": "357", + "kind": "property", + "name": "provisioningState", + "serializedName": "provisioningState", + "doc": "Status of the current operation on trusted signing account.", + "type": { + "$ref": "14" + }, + "optional": true, + "readOnly": true, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Microsoft.CodeSigning.CodeSigningAccountProperties.provisioningState", + "serializationOptions": { + "$id": "358", + "json": { + "$id": "359", + "name": "provisioningState" + } + } + } + ] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Microsoft.CodeSigning.CodeSigningAccount.properties", + "serializationOptions": { + "$id": "360", + "json": { + "$id": "361", + "name": "properties" + } + } + } + ] + }, + { + "$ref": "345" + }, + { + "$ref": "351" + }, + { + "$ref": "333" + }, + { + "$id": "362", + "kind": "model", + "name": "CodeSigningAccountPatch", + "namespace": "Microsoft.CodeSigning", + "crossLanguageDefinitionId": "Microsoft.CodeSigning.CodeSigningAccountPatch", + "usage": "Input,Json", + "doc": "Parameters for creating or updating a trusted signing account.", + "decorators": [], + "properties": [ + { + "$id": "363", + "kind": "property", + "name": "tags", + "serializedName": "tags", + "doc": "Resource tags.", + "type": { + "$id": "364", + "kind": "dict", + "keyType": { + "$id": "365", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "valueType": { + "$id": "366", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Microsoft.CodeSigning.CodeSigningAccountPatch.tags", + "serializationOptions": { + "$id": "367", + "json": { + "$id": "368", + "name": "tags" + } + } + }, + { + "$id": "369", + "kind": "property", + "name": "properties", + "serializedName": "properties", + "doc": "Properties of the trusted signing account.", + "type": { + "$id": "370", + "kind": "model", + "name": "CodeSigningAccountPatchProperties", + "namespace": "Microsoft.CodeSigning", + "crossLanguageDefinitionId": "Microsoft.CodeSigning.CodeSigningAccountPatchProperties", + "usage": "Input,Json", + "doc": "Properties of the trusted signing account.", + "decorators": [], + "properties": [ + { + "$id": "371", + "kind": "property", + "name": "sku", + "serializedName": "sku", + "doc": "SKU of the trusted signing account.", + "type": { + "$id": "372", + "kind": "model", + "name": "AccountSkuPatch", + "namespace": "Microsoft.CodeSigning", + "crossLanguageDefinitionId": "Microsoft.CodeSigning.AccountSkuPatch", + "usage": "Input,Json", + "doc": "SKU of the trusted signing account.", + "decorators": [], + "properties": [ + { + "$id": "373", + "kind": "property", + "name": "name", + "serializedName": "name", + "doc": "Name of the SKU.", + "type": { + "$ref": "70" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Microsoft.CodeSigning.AccountSkuPatch.name", + "serializationOptions": { + "$id": "374", + "json": { + "$id": "375", + "name": "name" + } + } + } + ] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Microsoft.CodeSigning.CodeSigningAccountPatchProperties.sku", + "serializationOptions": { + "$id": "376", + "json": { + "$id": "377", + "name": "sku" + } + } + } + ] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": true, + "decorators": [], + "crossLanguageDefinitionId": "Microsoft.CodeSigning.CodeSigningAccountPatch.properties", + "serializationOptions": { + "$id": "378", + "json": { + "$id": "379", + "name": "properties" + } + } + } + ] + }, + { + "$ref": "370" + }, + { + "$ref": "372" + }, + { + "$id": "380", + "kind": "model", + "name": "CodeSigningAccountListResult", + "namespace": "Azure.ResourceManager", + "crossLanguageDefinitionId": "Azure.ResourceManager.ResourceListResult", + "usage": "Output,Json", + "doc": "The response of a CodeSigningAccount list operation.", + "decorators": [], + "properties": [ + { + "$id": "381", + "kind": "property", + "name": "value", + "serializedName": "value", + "doc": "The CodeSigningAccount items on this page", + "type": { + "$id": "382", + "kind": "array", + "name": "ArrayCodeSigningAccount", + "valueType": { + "$ref": "332" + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.ResourceManager.ResourceListResult.value", + "serializationOptions": { + "$id": "383", + "json": { + "$id": "384", + "name": "value" + } + } + }, + { + "$id": "385", + "kind": "property", + "name": "nextLink", + "serializedName": "nextLink", + "doc": "The link to the next page of items", + "type": { + "$id": "386", + "kind": "url", + "name": "ResourceLocation", + "crossLanguageDefinitionId": "TypeSpec.Rest.ResourceLocation", + "baseType": { + "$id": "387", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url", + "decorators": [] + }, + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.ResourceManager.ResourceListResult.nextLink", + "serializationOptions": { + "$id": "388", + "json": { + "$id": "389", + "name": "nextLink" + } + } + } + ] + }, + { + "$id": "390", + "kind": "model", + "name": "CheckNameAvailability", + "namespace": "Microsoft.CodeSigning", + "crossLanguageDefinitionId": "Microsoft.CodeSigning.CheckNameAvailability", + "usage": "Input,Json", + "doc": "The parameters used to check the availability of the trusted signing account name.", + "decorators": [], + "properties": [ + { + "$id": "391", + "kind": "property", + "name": "name", + "serializedName": "name", + "doc": "Trusted signing account name.", + "type": { + "$id": "392", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Microsoft.CodeSigning.CheckNameAvailability.name", + "serializationOptions": { + "$id": "393", + "json": { + "$id": "394", + "name": "name" + } + } + } + ] + }, + { + "$id": "395", + "kind": "model", + "name": "CheckNameAvailabilityResult", + "namespace": "Microsoft.CodeSigning", + "crossLanguageDefinitionId": "Microsoft.CodeSigning.CheckNameAvailabilityResult", + "usage": "Output,Json", + "doc": "The CheckNameAvailability operation response.", + "decorators": [], + "properties": [ + { + "$id": "396", + "kind": "property", + "name": "nameAvailable", + "serializedName": "nameAvailable", + "doc": "A boolean value that indicates whether the name is available for you to use. If true, the name is available. If false, the name has already been taken or is invalid and cannot be used.", + "type": { + "$id": "397", + "kind": "boolean", + "name": "boolean", + "crossLanguageDefinitionId": "TypeSpec.boolean", + "decorators": [] + }, + "optional": true, + "readOnly": true, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Microsoft.CodeSigning.CheckNameAvailabilityResult.nameAvailable", + "serializationOptions": { + "$id": "398", + "json": { + "$id": "399", + "name": "nameAvailable" + } + } + }, + { + "$id": "400", + "kind": "property", + "name": "reason", + "serializedName": "reason", + "doc": "The reason that a trusted signing account name could not be used. The Reason element is only returned if nameAvailable is false.", + "type": { + "$ref": "76" + }, + "optional": true, + "readOnly": true, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Microsoft.CodeSigning.CheckNameAvailabilityResult.reason", + "serializationOptions": { + "$id": "401", + "json": { + "$id": "402", + "name": "reason" + } + } + }, + { + "$id": "403", + "kind": "property", + "name": "message", + "serializedName": "message", + "doc": "An error message explaining the Reason value in more detail.", + "type": { + "$id": "404", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": true, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Microsoft.CodeSigning.CheckNameAvailabilityResult.message", + "serializationOptions": { + "$id": "405", + "json": { + "$id": "406", + "name": "message" + } + } + } + ] + }, + { + "$id": "407", + "kind": "model", + "name": "OperationListResult", + "namespace": "Azure.ResourceManager.CommonTypes", + "crossLanguageDefinitionId": "Azure.ResourceManager.CommonTypes.OperationListResult", + "usage": "Output,Json", + "doc": "A list of REST API operations supported by an Azure Resource Provider. It contains an URL link to get the next set of results.", + "decorators": [], + "properties": [ + { + "$id": "408", + "kind": "property", + "name": "value", + "serializedName": "value", + "doc": "The Operation items on this page", + "type": { + "$id": "409", + "kind": "array", + "name": "ArrayOperation", + "valueType": { + "$id": "410", + "kind": "model", + "name": "Operation", + "namespace": "Azure.ResourceManager.CommonTypes", + "crossLanguageDefinitionId": "Azure.ResourceManager.CommonTypes.Operation", + "usage": "Output,Json", + "doc": "Details of a REST API operation, returned from the Resource Provider Operations API", + "decorators": [], + "properties": [ + { + "$id": "411", + "kind": "property", + "name": "name", + "serializedName": "name", + "doc": "The name of the operation, as per Resource-Based Access Control (RBAC). Examples: \"Microsoft.Compute/virtualMachines/write\", \"Microsoft.Compute/virtualMachines/capture/action\"", + "type": { + "$id": "412", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": true, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.ResourceManager.CommonTypes.Operation.name", + "serializationOptions": { + "$id": "413", + "json": { + "$id": "414", + "name": "name" + } + } + }, + { + "$id": "415", + "kind": "property", + "name": "isDataAction", + "serializedName": "isDataAction", + "doc": "Whether the operation applies to data-plane. This is \"true\" for data-plane operations and \"false\" for Azure Resource Manager/control-plane operations.", + "type": { + "$id": "416", + "kind": "boolean", + "name": "boolean", + "crossLanguageDefinitionId": "TypeSpec.boolean", + "decorators": [] + }, + "optional": true, + "readOnly": true, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.ResourceManager.CommonTypes.Operation.isDataAction", + "serializationOptions": { + "$id": "417", + "json": { + "$id": "418", + "name": "isDataAction" + } + } + }, + { + "$id": "419", + "kind": "property", + "name": "display", + "serializedName": "display", + "doc": "Localized display information for this particular operation.", + "type": { + "$id": "420", + "kind": "model", + "name": "OperationDisplay", + "namespace": "Azure.ResourceManager.CommonTypes", + "crossLanguageDefinitionId": "Azure.ResourceManager.CommonTypes.OperationDisplay", + "usage": "Output,Json", + "doc": "Localized display information for and operation.", + "decorators": [], + "properties": [ + { + "$id": "421", + "kind": "property", + "name": "provider", + "serializedName": "provider", + "doc": "The localized friendly form of the resource provider name, e.g. \"Microsoft Monitoring Insights\" or \"Microsoft Compute\".", + "type": { + "$id": "422", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": true, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.ResourceManager.CommonTypes.OperationDisplay.provider", + "serializationOptions": { + "$id": "423", + "json": { + "$id": "424", + "name": "provider" + } + } + }, + { + "$id": "425", + "kind": "property", + "name": "resource", + "serializedName": "resource", + "doc": "The localized friendly name of the resource type related to this operation. E.g. \"Virtual Machines\" or \"Job Schedule Collections\".", + "type": { + "$id": "426", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": true, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.ResourceManager.CommonTypes.OperationDisplay.resource", + "serializationOptions": { + "$id": "427", + "json": { + "$id": "428", + "name": "resource" + } + } + }, + { + "$id": "429", + "kind": "property", + "name": "operation", + "serializedName": "operation", + "doc": "The concise, localized friendly name for the operation; suitable for dropdowns. E.g. \"Create or Update Virtual Machine\", \"Restart Virtual Machine\".", + "type": { + "$id": "430", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": true, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.ResourceManager.CommonTypes.OperationDisplay.operation", + "serializationOptions": { + "$id": "431", + "json": { + "$id": "432", + "name": "operation" + } + } + }, + { + "$id": "433", + "kind": "property", + "name": "description", + "serializedName": "description", + "doc": "The short, localized friendly description of the operation; suitable for tool tips and detailed views.", + "type": { + "$id": "434", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": true, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.ResourceManager.CommonTypes.OperationDisplay.description", + "serializationOptions": { + "$id": "435", + "json": { + "$id": "436", + "name": "description" + } + } + } + ] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.ResourceManager.CommonTypes.Operation.display", + "serializationOptions": { + "$id": "437", + "json": { + "$id": "438", + "name": "display" + } + } + }, + { + "$id": "439", + "kind": "property", + "name": "origin", + "serializedName": "origin", + "doc": "The intended executor of the operation; as in Resource Based Access Control (RBAC) and audit logs UX. Default value is \"user,system\"", + "type": { + "$ref": "82" + }, + "optional": true, + "readOnly": true, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.ResourceManager.CommonTypes.Operation.origin", + "serializationOptions": { + "$id": "440", + "json": { + "$id": "441", + "name": "origin" + } + } + }, + { + "$id": "442", + "kind": "property", + "name": "actionType", + "serializedName": "actionType", + "doc": "Extensible enum. Indicates the action type. \"Internal\" refers to actions that are for internal only APIs.", + "type": { + "$ref": "90" + }, + "optional": true, + "readOnly": true, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.ResourceManager.CommonTypes.Operation.actionType", + "serializationOptions": { + "$id": "443", + "json": { + "$id": "444", + "name": "actionType" + } + } + } + ] + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.ResourceManager.CommonTypes.OperationListResult.value", + "serializationOptions": { + "$id": "445", + "json": { + "$id": "446", + "name": "value" + } + } + }, + { + "$id": "447", + "kind": "property", + "name": "nextLink", + "serializedName": "nextLink", + "doc": "The link to the next page of items", + "type": { + "$id": "448", + "kind": "url", + "name": "ResourceLocation", + "crossLanguageDefinitionId": "TypeSpec.Rest.ResourceLocation", + "baseType": { + "$id": "449", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url", + "decorators": [] + }, + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.ResourceManager.CommonTypes.OperationListResult.nextLink", + "serializationOptions": { + "$id": "450", + "json": { + "$id": "451", + "name": "nextLink" + } + } + } + ] + }, + { + "$ref": "410" + }, + { + "$ref": "420" + } + ], + "Clients": [ + { + "$id": "452", + "Name": "CodeSigningClient", + "Namespace": "Microsoft.CodeSigning", + "Doc": "Code Signing resource provider api.", + "Operations": [], + "Protocol": { + "$id": "453" + }, + "Parameters": [ + { + "$id": "454", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", + "Type": { + "$id": "455", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "Location": "Uri", + "IsApiVersion": false, + "IsResourceParameter": false, + "IsContentType": false, + "IsRequired": true, + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "456", + "Type": { + "$id": "457", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "https://management.azure.com" + } + } + ], + "Decorators": [], + "CrossLanguageDefinitionId": "Microsoft.CodeSigning" + }, + { + "$id": "458", + "Name": "Operations", + "Namespace": "Microsoft.CodeSigning", + "Operations": [ + { + "$id": "459", + "Name": "list", + "ResourceName": "Operations", + "Doc": "List the operations for the provider", + "Accessibility": "public", + "Parameters": [ + { + "$id": "460", + "Name": "apiVersion", + "NameInRequest": "api-version", + "Doc": "The API version to use for this operation.", + "Type": { + "$id": "461", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Query", + "IsApiVersion": true, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Client", + "DefaultValue": { + "$id": "462", + "Type": { + "$id": "463", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "2025-03-30" + }, + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "464", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "465", + "kind": "constant", + "valueType": { + "$id": "466", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "467", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "407" + }, + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "Uri": "{endpoint}", + "Path": "/providers/Microsoft.CodeSigning/operations", + "BufferResponse": true, + "Paging": { + "$id": "468", + "ItemPropertySegments": [ + "value" + ], + "NextLink": { + "$id": "469", + "ResponseSegments": [ + "nextLink" + ], + "ResponseLocation": "Body" + } + }, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Azure.ResourceManager.Operations.list", + "Decorators": [], + "Examples": [ + { + "$id": "470", + "kind": "http", + "name": "List trusted signing account operations.", + "description": "List trusted signing account operations.", + "filePath": "2025-03-30/Operations_List.json", + "parameters": [ + { + "$id": "471", + "parameter": { + "$ref": "460" + }, + "value": { + "$id": "472", + "kind": "string", + "type": { + "$ref": "461" + }, + "value": "2025-03-30" + } + } + ], + "responses": [ + { + "$id": "473", + "response": { + "$ref": "467" + }, + "statusCode": 200, + "bodyValue": { + "$id": "474", + "kind": "model", + "type": { + "$ref": "407" + }, + "value": { + "$id": "475", + "value": { + "$id": "476", + "kind": "array", + "type": { + "$ref": "409" + }, + "value": [ + { + "$id": "477", + "kind": "model", + "type": { + "$ref": "410" + }, + "value": { + "$id": "478", + "name": { + "$id": "479", + "kind": "string", + "type": { + "$ref": "412" + }, + "value": "Microsoft.CodeSigning/codeSigningAccounts/write" + }, + "display": { + "$id": "480", + "kind": "model", + "type": { + "$ref": "420" + }, + "value": { + "$id": "481", + "provider": { + "$id": "482", + "kind": "string", + "type": { + "$ref": "422" + }, + "value": "Microsoft.CodeSigning" + }, + "resource": { + "$id": "483", + "kind": "string", + "type": { + "$ref": "426" + }, + "value": "codeSigningAccounts" + }, + "operation": { + "$id": "484", + "kind": "string", + "type": { + "$ref": "430" + }, + "value": "Create CodeSigningAccount" + }, + "description": { + "$id": "485", + "kind": "string", + "type": { + "$ref": "434" + }, + "value": "Create any CodeSigningAccount" + } + } + } + } + }, + { + "$id": "486", + "kind": "model", + "type": { + "$ref": "410" + }, + "value": { + "$id": "487", + "name": { + "$id": "488", + "kind": "string", + "type": { + "$ref": "412" + }, + "value": "Microsoft.CodeSigning/codeSigningAccounts/read" + }, + "display": { + "$id": "489", + "kind": "model", + "type": { + "$ref": "420" + }, + "value": { + "$id": "490", + "provider": { + "$id": "491", + "kind": "string", + "type": { + "$ref": "422" + }, + "value": "Microsoft.CodeSigning" + }, + "resource": { + "$id": "492", + "kind": "string", + "type": { + "$ref": "426" + }, + "value": "codeSigningAccounts" + }, + "operation": { + "$id": "493", + "kind": "string", + "type": { + "$ref": "430" + }, + "value": "Get CodeSigningAccount" + }, + "description": { + "$id": "494", + "kind": "string", + "type": { + "$ref": "434" + }, + "value": "Get any CodeSigningAccount" + } + } + } + } + }, + { + "$id": "495", + "kind": "model", + "type": { + "$ref": "410" + }, + "value": { + "$id": "496", + "name": { + "$id": "497", + "kind": "string", + "type": { + "$ref": "412" + }, + "value": "Microsoft.CodeSigning/codeSigningAccounts/delete" + }, + "display": { + "$id": "498", + "kind": "model", + "type": { + "$ref": "420" + }, + "value": { + "$id": "499", + "provider": { + "$id": "500", + "kind": "string", + "type": { + "$ref": "422" + }, + "value": "Microsoft.CodeSigning" + }, + "resource": { + "$id": "501", + "kind": "string", + "type": { + "$ref": "426" + }, + "value": "codeSigningAccounts" + }, + "operation": { + "$id": "502", + "kind": "string", + "type": { + "$ref": "430" + }, + "value": "Delete CodeSigningAccount" + }, + "description": { + "$id": "503", + "kind": "string", + "type": { + "$ref": "434" + }, + "value": "Delete any CodeSigningAccount" + } + } + } + } + } + ] + } + } + } + } + ] + } + ] + } + ], + "Protocol": { + "$id": "504" + }, + "Parent": "CodeSigningClient", + "Parameters": [ + { + "$id": "505", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", + "Type": { + "$id": "506", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "Location": "Uri", + "IsApiVersion": false, + "IsResourceParameter": false, + "IsContentType": false, + "IsRequired": true, + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "507", + "Type": { + "$id": "508", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "https://management.azure.com" + } + } + ], + "Decorators": [], + "CrossLanguageDefinitionId": "Microsoft.CodeSigning.Operations" + }, + { + "$id": "509", + "Name": "CodeSigningAccounts", + "Namespace": "Microsoft.CodeSigning", + "Operations": [ + { + "$id": "510", + "Name": "get", + "ResourceName": "CodeSigningAccount", + "Doc": "Get a trusted Signing Account.", + "Accessibility": "public", + "Parameters": [ + { + "$id": "511", + "Name": "apiVersion", + "NameInRequest": "api-version", + "Doc": "The API version to use for this operation.", + "Type": { + "$id": "512", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Query", + "IsApiVersion": true, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Client", + "DefaultValue": { + "$id": "513", + "Type": { + "$id": "514", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "2025-03-30" + }, + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "515", + "Name": "subscriptionId", + "NameInRequest": "subscriptionId", + "Doc": "The ID of the target subscription. The value must be an UUID.", + "Type": { + "$id": "516", + "kind": "string", + "name": "uuid", + "crossLanguageDefinitionId": "Azure.Core.uuid", + "baseType": { + "$id": "517", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "decorators": [] + }, + "Location": "Path", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Client", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "518", + "Name": "resourceGroupName", + "NameInRequest": "resourceGroupName", + "Doc": "The name of the resource group. The name is case insensitive.", + "Type": { + "$id": "519", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Path", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "520", + "Name": "accountName", + "NameInRequest": "accountName", + "Doc": "Trusted Signing account name.", + "Type": { + "$id": "521", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Path", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "522", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "523", + "kind": "constant", + "valueType": { + "$id": "524", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "525", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "332" + }, + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "Uri": "{endpoint}", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CodeSigning/codeSigningAccounts/{accountName}", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Microsoft.CodeSigning.CodeSigningAccounts.get", + "Decorators": [], + "Examples": [ + { + "$id": "526", + "kind": "http", + "name": "Get a Trusted Signing Account", + "description": "Get a Trusted Signing Account", + "filePath": "2025-03-30/CodeSigningAccounts_Get.json", + "parameters": [ + { + "$id": "527", + "parameter": { + "$ref": "520" + }, + "value": { + "$id": "528", + "kind": "string", + "type": { + "$ref": "521" + }, + "value": "MyAccount" + } + }, + { + "$id": "529", + "parameter": { + "$ref": "511" + }, + "value": { + "$id": "530", + "kind": "string", + "type": { + "$ref": "512" + }, + "value": "2025-03-30" + } + }, + { + "$id": "531", + "parameter": { + "$ref": "518" + }, + "value": { + "$id": "532", + "kind": "string", + "type": { + "$ref": "519" + }, + "value": "MyResourceGroup" + } + }, + { + "$id": "533", + "parameter": { + "$ref": "515" + }, + "value": { + "$id": "534", + "kind": "string", + "type": { + "$ref": "516" + }, + "value": "00000000-1111-2222-3333-444444444444" + } + } + ], + "responses": [ + { + "$id": "535", + "response": { + "$ref": "525" + }, + "statusCode": 200, + "bodyValue": { + "$id": "536", + "kind": "model", + "type": { + "$ref": "332" + }, + "value": { + "$id": "537", + "name": { + "$id": "538", + "kind": "string", + "type": { + "$ref": "107" + }, + "value": "MyAccount" + }, + "type": { + "$id": "539", + "kind": "string", + "type": { + "$ref": "111" + }, + "value": "Microsoft.CodeSigning/codeSigningAccounts" + }, + "id": { + "$id": "540", + "kind": "string", + "type": { + "$ref": "102" + }, + "value": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/MyResourceGroup/providers/Microsoft.CodeSigning/codeSigningAccounts/MyAccount" + }, + "location": { + "$id": "541", + "kind": "string", + "type": { + "$ref": "341" + }, + "value": "westus" + }, + "properties": { + "$id": "542", + "kind": "model", + "type": { + "$ref": "345" + }, + "value": { + "$id": "543", + "provisioningState": { + "$id": "544", + "kind": "string", + "type": { + "$ref": "14" + }, + "value": "Succeeded" + }, + "sku": { + "$id": "545", + "kind": "model", + "type": { + "$ref": "351" + }, + "value": { + "$id": "546", + "name": { + "$id": "547", + "kind": "string", + "type": { + "$ref": "70" + }, + "value": "Basic" + } + } + } + } + }, + "tags": { + "$id": "548", + "kind": "dict", + "type": { + "$ref": "335" + }, + "value": { + "$id": "549", + "key1": { + "$id": "550", + "kind": "string", + "type": { + "$ref": "337" + }, + "value": "value1" + } + } + } + } + } + } + ] + } + ] + }, + { + "$id": "551", + "Name": "create", + "ResourceName": "CodeSigningAccount", + "Doc": "Create a trusted Signing Account.", + "Accessibility": "public", + "Parameters": [ + { + "$id": "552", + "Name": "apiVersion", + "NameInRequest": "api-version", + "Doc": "The API version to use for this operation.", + "Type": { + "$id": "553", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Query", + "IsApiVersion": true, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Client", + "DefaultValue": { + "$id": "554", + "Type": { + "$id": "555", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "2025-03-30" + }, + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "556", + "Name": "subscriptionId", + "NameInRequest": "subscriptionId", + "Doc": "The ID of the target subscription. The value must be an UUID.", + "Type": { + "$id": "557", + "kind": "string", + "name": "uuid", + "crossLanguageDefinitionId": "Azure.Core.uuid", + "baseType": { + "$id": "558", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "decorators": [] + }, + "Location": "Path", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Client", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "559", + "Name": "resourceGroupName", + "NameInRequest": "resourceGroupName", + "Doc": "The name of the resource group. The name is case insensitive.", + "Type": { + "$id": "560", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Path", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "561", + "Name": "accountName", + "NameInRequest": "accountName", + "Doc": "Trusted Signing account name.", + "Type": { + "$id": "562", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Path", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "563", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "564", + "kind": "constant", + "valueType": { + "$id": "565", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "566", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "567", + "kind": "constant", + "valueType": { + "$id": "568", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "569", + "Name": "resource", + "NameInRequest": "resource", + "Doc": "Parameters to create the trusted signing account", + "Type": { + "$ref": "332" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "570", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "332" + }, + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + }, + { + "$id": "571", + "StatusCodes": [ + 201 + ], + "BodyType": { + "$ref": "332" + }, + "Headers": [ + { + "$id": "572", + "Name": "retryAfter", + "NameInResponse": "Retry-After", + "Doc": "The Retry-After header can indicate how long the client should wait before polling the operation status.", + "Type": { + "$id": "573", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + } + } + ], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "PUT", + "Uri": "{endpoint}", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CodeSigning/codeSigningAccounts/{accountName}", + "RequestMediaTypes": [ + "application/json" + ], + "BufferResponse": true, + "LongRunning": { + "$id": "574", + "FinalStateVia": 0, + "FinalResponse": { + "$id": "575", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "332" + } + } + }, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Microsoft.CodeSigning.CodeSigningAccounts.create", + "Decorators": [ + { + "$id": "576", + "name": "Azure.Core.@useFinalStateVia", + "arguments": { + "$id": "577", + "finalState": "azure-async-operation" + } + } + ], + "Examples": [ + { + "$id": "578", + "kind": "http", + "name": "Create a trusted Signing Account.", + "description": "Create a trusted Signing Account.", + "filePath": "2025-03-30/CodeSigningAccounts_Create.json", + "parameters": [ + { + "$id": "579", + "parameter": { + "$ref": "561" + }, + "value": { + "$id": "580", + "kind": "string", + "type": { + "$ref": "562" + }, + "value": "MyAccount" + } + }, + { + "$id": "581", + "parameter": { + "$ref": "552" + }, + "value": { + "$id": "582", + "kind": "string", + "type": { + "$ref": "553" + }, + "value": "2025-03-30" + } + }, + { + "$id": "583", + "parameter": { + "$ref": "569" + }, + "value": { + "$id": "584", + "kind": "model", + "type": { + "$ref": "332" + }, + "value": { + "$id": "585", + "location": { + "$id": "586", + "kind": "string", + "type": { + "$ref": "341" + }, + "value": "westus" + }, + "properties": { + "$id": "587", + "kind": "model", + "type": { + "$ref": "345" + }, + "value": { + "$id": "588", + "sku": { + "$id": "589", + "kind": "model", + "type": { + "$ref": "351" + }, + "value": { + "$id": "590", + "name": { + "$id": "591", + "kind": "string", + "type": { + "$ref": "70" + }, + "value": "Basic" + } + } + } + } + } + } + } + }, + { + "$id": "592", + "parameter": { + "$ref": "559" + }, + "value": { + "$id": "593", + "kind": "string", + "type": { + "$ref": "560" + }, + "value": "MyResourceGroup" + } + }, + { + "$id": "594", + "parameter": { + "$ref": "556" + }, + "value": { + "$id": "595", + "kind": "string", + "type": { + "$ref": "557" + }, + "value": "00000000-1111-2222-3333-444444444444" + } + } + ], + "responses": [ + { + "$id": "596", + "response": { + "$ref": "570" + }, + "statusCode": 200, + "bodyValue": { + "$id": "597", + "kind": "model", + "type": { + "$ref": "332" + }, + "value": { + "$id": "598", + "name": { + "$id": "599", + "kind": "string", + "type": { + "$ref": "107" + }, + "value": "MyAccount" + }, + "type": { + "$id": "600", + "kind": "string", + "type": { + "$ref": "111" + }, + "value": "Microsoft.CodeSigning/codeSigningAccounts" + }, + "id": { + "$id": "601", + "kind": "string", + "type": { + "$ref": "102" + }, + "value": "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/MyResourceGroup/providers/Microsoft.CodeSigning/codeSigningAccounts/MyAccount" + }, + "location": { + "$id": "602", + "kind": "string", + "type": { + "$ref": "341" + }, + "value": "westus" + }, + "properties": { + "$id": "603", + "kind": "model", + "type": { + "$ref": "345" + }, + "value": { + "$id": "604", + "provisioningState": { + "$id": "605", + "kind": "string", + "type": { + "$ref": "14" + }, + "value": "Succeeded" + }, + "sku": { + "$id": "606", + "kind": "model", + "type": { + "$ref": "351" + }, + "value": { + "$id": "607", + "name": { + "$id": "608", + "kind": "string", + "type": { + "$ref": "70" + }, + "value": "Basic" + } + } + } + } + } + } + } + }, + { + "$id": "609", + "response": { + "$ref": "571" + }, + "statusCode": 201, + "bodyValue": { + "$id": "610", + "kind": "model", + "type": { + "$ref": "332" + }, + "value": { + "$id": "611", + "name": { + "$id": "612", + "kind": "string", + "type": { + "$ref": "107" + }, + "value": "MyAccount" + }, + "type": { + "$id": "613", + "kind": "string", + "type": { + "$ref": "111" + }, + "value": "Microsoft.CodeSigning/codeSigningAccounts" + }, + "id": { + "$id": "614", + "kind": "string", + "type": { + "$ref": "102" + }, + "value": "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/MyResourceGroup/providers/Microsoft.CodeSigning/codeSigningAccounts/MyAccount" + }, + "location": { + "$id": "615", + "kind": "string", + "type": { + "$ref": "341" + }, + "value": "westus" + }, + "properties": { + "$id": "616", + "kind": "model", + "type": { + "$ref": "345" + }, + "value": { + "$id": "617", + "provisioningState": { + "$id": "618", + "kind": "string", + "type": { + "$ref": "14" + }, + "value": "Accepted" + }, + "sku": { + "$id": "619", + "kind": "model", + "type": { + "$ref": "351" + }, + "value": { + "$id": "620", + "name": { + "$id": "621", + "kind": "string", + "type": { + "$ref": "70" + }, + "value": "Basic" + } + } + } + } + } + } + } + } + ] + } + ] + }, + { + "$id": "622", + "Name": "update", + "ResourceName": "CodeSigningAccount", + "Doc": "Update a trusted signing account.", + "Accessibility": "public", + "Parameters": [ + { + "$id": "623", + "Name": "apiVersion", + "NameInRequest": "api-version", + "Doc": "The API version to use for this operation.", + "Type": { + "$id": "624", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Query", + "IsApiVersion": true, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Client", + "DefaultValue": { + "$id": "625", + "Type": { + "$id": "626", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "2025-03-30" + }, + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "627", + "Name": "subscriptionId", + "NameInRequest": "subscriptionId", + "Doc": "The ID of the target subscription. The value must be an UUID.", + "Type": { + "$id": "628", + "kind": "string", + "name": "uuid", + "crossLanguageDefinitionId": "Azure.Core.uuid", + "baseType": { + "$id": "629", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "decorators": [] + }, + "Location": "Path", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Client", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "630", + "Name": "resourceGroupName", + "NameInRequest": "resourceGroupName", + "Doc": "The name of the resource group. The name is case insensitive.", + "Type": { + "$id": "631", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Path", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "632", + "Name": "accountName", + "NameInRequest": "accountName", + "Doc": "Trusted Signing account name.", + "Type": { + "$id": "633", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Path", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "634", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "635", + "kind": "constant", + "valueType": { + "$id": "636", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "637", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "638", + "kind": "constant", + "valueType": { + "$id": "639", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "640", + "Name": "properties", + "NameInRequest": "properties", + "Doc": "Parameters supplied to update the trusted signing account", + "Type": { + "$ref": "362" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "641", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "332" + }, + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + }, + { + "$id": "642", + "StatusCodes": [ + 202 + ], + "Headers": [ + { + "$id": "643", + "Name": "location", + "NameInResponse": "Location", + "Doc": "The Location header contains the URL where the status of the long running operation can be checked.", + "Type": { + "$id": "644", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + } + }, + { + "$id": "645", + "Name": "retryAfter", + "NameInResponse": "Retry-After", + "Doc": "The Retry-After header can indicate how long the client should wait before polling the operation status.", + "Type": { + "$id": "646", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + } + } + ], + "IsErrorResponse": false + } + ], + "HttpMethod": "PATCH", + "Uri": "{endpoint}", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CodeSigning/codeSigningAccounts/{accountName}", + "RequestMediaTypes": [ + "application/json" + ], + "BufferResponse": true, + "LongRunning": { + "$id": "647", + "FinalStateVia": 1, + "FinalResponse": { + "$id": "648", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "332" + } + } + }, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": false, + "CrossLanguageDefinitionId": "Microsoft.CodeSigning.CodeSigningAccounts.update", + "Decorators": [], + "Examples": [ + { + "$id": "649", + "kind": "http", + "name": "Update a trusted signing account.", + "description": "Update a trusted signing account.", + "filePath": "2025-03-30/CodeSigningAccounts_Update.json", + "parameters": [ + { + "$id": "650", + "parameter": { + "$ref": "632" + }, + "value": { + "$id": "651", + "kind": "string", + "type": { + "$ref": "633" + }, + "value": "MyAccount" + } + }, + { + "$id": "652", + "parameter": { + "$ref": "623" + }, + "value": { + "$id": "653", + "kind": "string", + "type": { + "$ref": "624" + }, + "value": "2025-03-30" + } + }, + { + "$id": "654", + "parameter": { + "$ref": "640" + }, + "value": { + "$id": "655", + "kind": "model", + "type": { + "$ref": "362" + }, + "value": { + "$id": "656", + "tags": { + "$id": "657", + "kind": "dict", + "type": { + "$ref": "364" + }, + "value": { + "$id": "658", + "key1": { + "$id": "659", + "kind": "string", + "type": { + "$ref": "366" + }, + "value": "value1" + } + } + } + } + } + }, + { + "$id": "660", + "parameter": { + "$ref": "630" + }, + "value": { + "$id": "661", + "kind": "string", + "type": { + "$ref": "631" + }, + "value": "MyResourceGroup" + } + }, + { + "$id": "662", + "parameter": { + "$ref": "627" + }, + "value": { + "$id": "663", + "kind": "string", + "type": { + "$ref": "628" + }, + "value": "00000000-1111-2222-3333-444444444444" + } + } + ], + "responses": [ + { + "$id": "664", + "response": { + "$ref": "641" + }, + "statusCode": 200, + "bodyValue": { + "$id": "665", + "kind": "model", + "type": { + "$ref": "332" + }, + "value": { + "$id": "666", + "name": { + "$id": "667", + "kind": "string", + "type": { + "$ref": "107" + }, + "value": "MyAccount" + }, + "type": { + "$id": "668", + "kind": "string", + "type": { + "$ref": "111" + }, + "value": "Microsoft.CodeSigning/codeSigningAccounts" + }, + "id": { + "$id": "669", + "kind": "string", + "type": { + "$ref": "102" + }, + "value": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/MyResourceGroup/providers/Microsoft.CodeSigning/codeSigningAccounts/MyAccount" + }, + "location": { + "$id": "670", + "kind": "string", + "type": { + "$ref": "341" + }, + "value": "westus" + }, + "properties": { + "$id": "671", + "kind": "model", + "type": { + "$ref": "345" + }, + "value": { + "$id": "672", + "provisioningState": { + "$id": "673", + "kind": "string", + "type": { + "$ref": "14" + }, + "value": "Succeeded" + }, + "sku": { + "$id": "674", + "kind": "model", + "type": { + "$ref": "351" + }, + "value": { + "$id": "675", + "name": { + "$id": "676", + "kind": "string", + "type": { + "$ref": "70" + }, + "value": "Basic" + } + } + } + } + }, + "tags": { + "$id": "677", + "kind": "dict", + "type": { + "$ref": "335" + }, + "value": { + "$id": "678", + "key1": { + "$id": "679", + "kind": "string", + "type": { + "$ref": "337" + }, + "value": "value1" + } + } + } + } + } + }, + { + "$id": "680", + "response": { + "$ref": "642" + }, + "statusCode": 202 + } + ] + } + ] + }, + { + "$id": "681", + "Name": "delete", + "ResourceName": "CodeSigningAccount", + "Doc": "Delete a trusted signing account.", + "Accessibility": "public", + "Parameters": [ + { + "$id": "682", + "Name": "apiVersion", + "NameInRequest": "api-version", + "Doc": "The API version to use for this operation.", + "Type": { + "$id": "683", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Query", + "IsApiVersion": true, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Client", + "DefaultValue": { + "$id": "684", + "Type": { + "$id": "685", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "2025-03-30" + }, + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "686", + "Name": "subscriptionId", + "NameInRequest": "subscriptionId", + "Doc": "The ID of the target subscription. The value must be an UUID.", + "Type": { + "$id": "687", + "kind": "string", + "name": "uuid", + "crossLanguageDefinitionId": "Azure.Core.uuid", + "baseType": { + "$id": "688", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "decorators": [] + }, + "Location": "Path", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Client", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "689", + "Name": "resourceGroupName", + "NameInRequest": "resourceGroupName", + "Doc": "The name of the resource group. The name is case insensitive.", + "Type": { + "$id": "690", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Path", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "691", + "Name": "accountName", + "NameInRequest": "accountName", + "Doc": "Trusted Signing account name.", + "Type": { + "$id": "692", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Path", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "693", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "694", + "kind": "constant", + "valueType": { + "$id": "695", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "696", + "StatusCodes": [ + 202 + ], + "Headers": [ + { + "$id": "697", + "Name": "location", + "NameInResponse": "Location", + "Doc": "The Location header contains the URL where the status of the long running operation can be checked.", + "Type": { + "$id": "698", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + } + }, + { + "$id": "699", + "Name": "retryAfter", + "NameInResponse": "Retry-After", + "Doc": "The Retry-After header can indicate how long the client should wait before polling the operation status.", + "Type": { + "$id": "700", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + } + } + ], + "IsErrorResponse": false + }, + { + "$id": "701", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "DELETE", + "Uri": "{endpoint}", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CodeSigning/codeSigningAccounts/{accountName}", + "BufferResponse": true, + "LongRunning": { + "$id": "702", + "FinalStateVia": 1, + "FinalResponse": { + "$id": "703", + "StatusCodes": [ + 204 + ] + } + }, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Microsoft.CodeSigning.CodeSigningAccounts.delete", + "Decorators": [], + "Examples": [ + { + "$id": "704", + "kind": "http", + "name": "Delete a trusted signing account.", + "description": "Delete a trusted signing account.", + "filePath": "2025-03-30/CodeSigningAccounts_Delete.json", + "parameters": [ + { + "$id": "705", + "parameter": { + "$ref": "691" + }, + "value": { + "$id": "706", + "kind": "string", + "type": { + "$ref": "692" + }, + "value": "MyAccount" + } + }, + { + "$id": "707", + "parameter": { + "$ref": "682" + }, + "value": { + "$id": "708", + "kind": "string", + "type": { + "$ref": "683" + }, + "value": "2025-03-30" + } + }, + { + "$id": "709", + "parameter": { + "$ref": "689" + }, + "value": { + "$id": "710", + "kind": "string", + "type": { + "$ref": "690" + }, + "value": "MyResourceGroup" + } + }, + { + "$id": "711", + "parameter": { + "$ref": "686" + }, + "value": { + "$id": "712", + "kind": "string", + "type": { + "$ref": "687" + }, + "value": "00000000-1111-2222-3333-444444444444" + } + } + ], + "responses": [ + { + "$id": "713", + "response": { + "$ref": "696" + }, + "statusCode": 202 + }, + { + "$id": "714", + "response": { + "$ref": "701" + }, + "statusCode": 204 + } + ] + } + ] + }, + { + "$id": "715", + "Name": "listByResourceGroup", + "ResourceName": "CodeSigningAccount", + "Doc": "Lists trusted signing accounts within a resource group.", + "Accessibility": "public", + "Parameters": [ + { + "$id": "716", + "Name": "apiVersion", + "NameInRequest": "api-version", + "Doc": "The API version to use for this operation.", + "Type": { + "$id": "717", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Query", + "IsApiVersion": true, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Client", + "DefaultValue": { + "$id": "718", + "Type": { + "$id": "719", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "2025-03-30" + }, + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "720", + "Name": "subscriptionId", + "NameInRequest": "subscriptionId", + "Doc": "The ID of the target subscription. The value must be an UUID.", + "Type": { + "$id": "721", + "kind": "string", + "name": "uuid", + "crossLanguageDefinitionId": "Azure.Core.uuid", + "baseType": { + "$id": "722", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "decorators": [] + }, + "Location": "Path", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Client", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "723", + "Name": "resourceGroupName", + "NameInRequest": "resourceGroupName", + "Doc": "The name of the resource group. The name is case insensitive.", + "Type": { + "$id": "724", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Path", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "725", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "726", + "kind": "constant", + "valueType": { + "$id": "727", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "728", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "380" + }, + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "Uri": "{endpoint}", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CodeSigning/codeSigningAccounts", + "BufferResponse": true, + "Paging": { + "$id": "729", + "ItemPropertySegments": [ + "value" + ], + "NextLink": { + "$id": "730", + "ResponseSegments": [ + "nextLink" + ], + "ResponseLocation": "Body" + } + }, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Microsoft.CodeSigning.CodeSigningAccounts.listByResourceGroup", + "Decorators": [], + "Examples": [ + { + "$id": "731", + "kind": "http", + "name": "Lists trusted signing accounts within a resource group.", + "description": "Lists trusted signing accounts within a resource group.", + "filePath": "2025-03-30/CodeSigningAccounts_ListByResourceGroup.json", + "parameters": [ + { + "$id": "732", + "parameter": { + "$ref": "716" + }, + "value": { + "$id": "733", + "kind": "string", + "type": { + "$ref": "717" + }, + "value": "2025-03-30" + } + }, + { + "$id": "734", + "parameter": { + "$ref": "723" + }, + "value": { + "$id": "735", + "kind": "string", + "type": { + "$ref": "724" + }, + "value": "MyResourceGroup" + } + }, + { + "$id": "736", + "parameter": { + "$ref": "720" + }, + "value": { + "$id": "737", + "kind": "string", + "type": { + "$ref": "721" + }, + "value": "00000000-1111-2222-3333-444444444444" + } + } + ], + "responses": [ + { + "$id": "738", + "response": { + "$ref": "728" + }, + "statusCode": 200, + "bodyValue": { + "$id": "739", + "kind": "model", + "type": { + "$ref": "380" + }, + "value": { + "$id": "740", + "value": { + "$id": "741", + "kind": "array", + "type": { + "$ref": "382" + }, + "value": [ + { + "$id": "742", + "kind": "model", + "type": { + "$ref": "332" + }, + "value": { + "$id": "743", + "name": { + "$id": "744", + "kind": "string", + "type": { + "$ref": "107" + }, + "value": "alpha" + }, + "type": { + "$id": "745", + "kind": "string", + "type": { + "$ref": "111" + }, + "value": "Microsoft.CodeSigning/codeSigningAccounts" + }, + "id": { + "$id": "746", + "kind": "string", + "type": { + "$ref": "102" + }, + "value": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/MyResourceGroup/providers/Microsoft.CodeSigning/codeSigningAccounts/MyAccount" + }, + "location": { + "$id": "747", + "kind": "string", + "type": { + "$ref": "341" + }, + "value": "westcentralus" + }, + "properties": { + "$id": "748", + "kind": "model", + "type": { + "$ref": "345" + }, + "value": { + "$id": "749", + "provisioningState": { + "$id": "750", + "kind": "string", + "type": { + "$ref": "14" + }, + "value": "Succeeded" + }, + "sku": { + "$id": "751", + "kind": "model", + "type": { + "$ref": "351" + }, + "value": { + "$id": "752", + "name": { + "$id": "753", + "kind": "string", + "type": { + "$ref": "70" + }, + "value": "Basic" + } + } + } + } + }, + "tags": { + "$id": "754", + "kind": "dict", + "type": { + "$ref": "335" + }, + "value": { + "$id": "755", + "key1": { + "$id": "756", + "kind": "string", + "type": { + "$ref": "337" + }, + "value": "value1" + } + } + } + } + } + ] + } + } + } + } + ] + } + ] + }, + { + "$id": "757", + "Name": "listBySubscription", + "ResourceName": "CodeSigningAccount", + "Doc": "Lists trusted signing accounts within a subscription.", + "Accessibility": "public", + "Parameters": [ + { + "$id": "758", + "Name": "apiVersion", + "NameInRequest": "api-version", + "Doc": "The API version to use for this operation.", + "Type": { + "$id": "759", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Query", + "IsApiVersion": true, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Client", + "DefaultValue": { + "$id": "760", + "Type": { + "$id": "761", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "2025-03-30" + }, + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "762", + "Name": "subscriptionId", + "NameInRequest": "subscriptionId", + "Doc": "The ID of the target subscription. The value must be an UUID.", + "Type": { + "$id": "763", + "kind": "string", + "name": "uuid", + "crossLanguageDefinitionId": "Azure.Core.uuid", + "baseType": { + "$id": "764", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "decorators": [] + }, + "Location": "Path", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Client", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "765", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "766", + "kind": "constant", + "valueType": { + "$id": "767", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "768", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "380" + }, + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "Uri": "{endpoint}", + "Path": "/subscriptions/{subscriptionId}/providers/Microsoft.CodeSigning/codeSigningAccounts", + "BufferResponse": true, + "Paging": { + "$id": "769", + "ItemPropertySegments": [ + "value" + ], + "NextLink": { + "$id": "770", + "ResponseSegments": [ + "nextLink" + ], + "ResponseLocation": "Body" + } + }, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Microsoft.CodeSigning.CodeSigningAccounts.listBySubscription", + "Decorators": [], + "Examples": [ + { + "$id": "771", + "kind": "http", + "name": "Lists trusted signing accounts within a subscription.", + "description": "Lists trusted signing accounts within a subscription.", + "filePath": "2025-03-30/CodeSigningAccounts_ListBySubscription.json", + "parameters": [ + { + "$id": "772", + "parameter": { + "$ref": "758" + }, + "value": { + "$id": "773", + "kind": "string", + "type": { + "$ref": "759" + }, + "value": "2025-03-30" + } + }, + { + "$id": "774", + "parameter": { + "$ref": "762" + }, + "value": { + "$id": "775", + "kind": "string", + "type": { + "$ref": "763" + }, + "value": "00000000-1111-2222-3333-444444444444" + } + } + ], + "responses": [ + { + "$id": "776", + "response": { + "$ref": "768" + }, + "statusCode": 200, + "bodyValue": { + "$id": "777", + "kind": "model", + "type": { + "$ref": "380" + }, + "value": { + "$id": "778", + "value": { + "$id": "779", + "kind": "array", + "type": { + "$ref": "382" + }, + "value": [ + { + "$id": "780", + "kind": "model", + "type": { + "$ref": "332" + }, + "value": { + "$id": "781", + "name": { + "$id": "782", + "kind": "string", + "type": { + "$ref": "107" + }, + "value": "alpha" + }, + "type": { + "$id": "783", + "kind": "string", + "type": { + "$ref": "111" + }, + "value": "Microsoft.CodeSigning/codeSigningAccounts" + }, + "id": { + "$id": "784", + "kind": "string", + "type": { + "$ref": "102" + }, + "value": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/MyResourceGroup/providers/Microsoft.CodeSigning/codeSigningAccounts/MyAccount" + }, + "location": { + "$id": "785", + "kind": "string", + "type": { + "$ref": "341" + }, + "value": "westus" + }, + "properties": { + "$id": "786", + "kind": "model", + "type": { + "$ref": "345" + }, + "value": { + "$id": "787", + "provisioningState": { + "$id": "788", + "kind": "string", + "type": { + "$ref": "14" + }, + "value": "Succeeded" + }, + "sku": { + "$id": "789", + "kind": "model", + "type": { + "$ref": "351" + }, + "value": { + "$id": "790", + "name": { + "$id": "791", + "kind": "string", + "type": { + "$ref": "70" + }, + "value": "Basic" + } + } + } + } + }, + "tags": { + "$id": "792", + "kind": "dict", + "type": { + "$ref": "335" + }, + "value": { + "$id": "793", + "key1": { + "$id": "794", + "kind": "string", + "type": { + "$ref": "337" + }, + "value": "value1" + } + } + } + } + } + ] + } + } + } + } + ] + } + ] + }, + { + "$id": "795", + "Name": "checkNameAvailability", + "ResourceName": "CodeSigningAccounts", + "Doc": "Checks that the trusted signing account name is valid and is not already in use.", + "Accessibility": "public", + "Parameters": [ + { + "$id": "796", + "Name": "apiVersion", + "NameInRequest": "api-version", + "Doc": "The API version to use for this operation.", + "Type": { + "$id": "797", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Query", + "IsApiVersion": true, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Client", + "DefaultValue": { + "$id": "798", + "Type": { + "$id": "799", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "2025-03-30" + }, + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "800", + "Name": "subscriptionId", + "NameInRequest": "subscriptionId", + "Doc": "The ID of the target subscription. The value must be an UUID.", + "Type": { + "$id": "801", + "kind": "string", + "name": "uuid", + "crossLanguageDefinitionId": "Azure.Core.uuid", + "baseType": { + "$id": "802", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "decorators": [] + }, + "Location": "Path", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Client", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "803", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "804", + "kind": "constant", + "valueType": { + "$id": "805", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "806", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "807", + "kind": "constant", + "valueType": { + "$id": "808", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "809", + "Name": "body", + "NameInRequest": "body", + "Doc": "The CheckAvailability request", + "Type": { + "$ref": "390" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "810", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "395" + }, + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "POST", + "Uri": "{endpoint}", + "Path": "/subscriptions/{subscriptionId}/providers/Microsoft.CodeSigning/checkNameAvailability", + "RequestMediaTypes": [ + "application/json" + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Microsoft.CodeSigning.CodeSigningAccounts.checkNameAvailability", + "Decorators": [], + "Examples": [ + { + "$id": "811", + "kind": "http", + "name": "Checks that the trusted signing account name is available.", + "description": "Checks that the trusted signing account name is available.", + "filePath": "2025-03-30/CodeSigningAccounts_CheckNameAvailability.json", + "parameters": [ + { + "$id": "812", + "parameter": { + "$ref": "809" + }, + "value": { + "$id": "813", + "kind": "model", + "type": { + "$ref": "390" + }, + "value": { + "$id": "814", + "name": { + "$id": "815", + "kind": "string", + "type": { + "$ref": "392" + }, + "value": "sample-account" + } + } + } + }, + { + "$id": "816", + "parameter": { + "$ref": "796" + }, + "value": { + "$id": "817", + "kind": "string", + "type": { + "$ref": "797" + }, + "value": "2025-03-30" + } + }, + { + "$id": "818", + "parameter": { + "$ref": "800" + }, + "value": { + "$id": "819", + "kind": "string", + "type": { + "$ref": "801" + }, + "value": "00000000-1111-2222-3333-444444444444" + } + } + ], + "responses": [ + { + "$id": "820", + "response": { + "$ref": "810" + }, + "statusCode": 200, + "bodyValue": { + "$id": "821", + "kind": "model", + "type": { + "$ref": "395" + }, + "value": { + "$id": "822", + "nameAvailable": { + "$id": "823", + "kind": "boolean", + "type": { + "$ref": "397" + }, + "value": true + } + } + } + } + ] + } + ] + } + ], + "Protocol": { + "$id": "824" + }, + "Parent": "CodeSigningClient", + "Parameters": [ + { + "$id": "825", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", + "Type": { + "$id": "826", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "Location": "Uri", + "IsApiVersion": false, + "IsResourceParameter": false, + "IsContentType": false, + "IsRequired": true, + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "827", + "Type": { + "$id": "828", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "https://management.azure.com" + } + } + ], + "Decorators": [], + "CrossLanguageDefinitionId": "Microsoft.CodeSigning.CodeSigningAccounts" + }, + { + "$id": "829", + "Name": "CertificateProfiles", + "Namespace": "Microsoft.CodeSigning", + "Operations": [ + { + "$id": "830", + "Name": "get", + "ResourceName": "CertificateProfile", + "Doc": "Get details of a certificate profile.", + "Accessibility": "public", + "Parameters": [ + { + "$id": "831", + "Name": "apiVersion", + "NameInRequest": "api-version", + "Doc": "The API version to use for this operation.", + "Type": { + "$id": "832", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Query", + "IsApiVersion": true, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Client", + "DefaultValue": { + "$id": "833", + "Type": { + "$id": "834", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "2025-03-30" + }, + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "835", + "Name": "subscriptionId", + "NameInRequest": "subscriptionId", + "Doc": "The ID of the target subscription. The value must be an UUID.", + "Type": { + "$id": "836", + "kind": "string", + "name": "uuid", + "crossLanguageDefinitionId": "Azure.Core.uuid", + "baseType": { + "$id": "837", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "decorators": [] + }, + "Location": "Path", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Client", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "838", + "Name": "resourceGroupName", + "NameInRequest": "resourceGroupName", + "Doc": "The name of the resource group. The name is case insensitive.", + "Type": { + "$id": "839", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Path", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "840", + "Name": "accountName", + "NameInRequest": "accountName", + "Doc": "Trusted Signing account name.", + "Type": { + "$id": "841", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Path", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "842", + "Name": "profileName", + "NameInRequest": "profileName", + "Doc": "Certificate profile name.", + "Type": { + "$id": "843", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Path", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "844", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "845", + "kind": "constant", + "valueType": { + "$id": "846", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "847", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "98" + }, + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "Uri": "{endpoint}", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CodeSigning/codeSigningAccounts/{accountName}/certificateProfiles/{profileName}", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Microsoft.CodeSigning.CertificateProfiles.get", + "Decorators": [], + "Examples": [ + { + "$id": "848", + "kind": "http", + "name": "Get details of a certificate profile.", + "description": "Get details of a certificate profile.", + "filePath": "2025-03-30/CertificateProfiles_Get.json", + "parameters": [ + { + "$id": "849", + "parameter": { + "$ref": "840" + }, + "value": { + "$id": "850", + "kind": "string", + "type": { + "$ref": "841" + }, + "value": "MyAccount" + } + }, + { + "$id": "851", + "parameter": { + "$ref": "831" + }, + "value": { + "$id": "852", + "kind": "string", + "type": { + "$ref": "832" + }, + "value": "2025-03-30" + } + }, + { + "$id": "853", + "parameter": { + "$ref": "842" + }, + "value": { + "$id": "854", + "kind": "string", + "type": { + "$ref": "843" + }, + "value": "profileA" + } + }, + { + "$id": "855", + "parameter": { + "$ref": "838" + }, + "value": { + "$id": "856", + "kind": "string", + "type": { + "$ref": "839" + }, + "value": "MyResourceGroup" + } + }, + { + "$id": "857", + "parameter": { + "$ref": "835" + }, + "value": { + "$id": "858", + "kind": "string", + "type": { + "$ref": "836" + }, + "value": "00000000-1111-2222-3333-444444444444" + } + } + ], + "responses": [ + { + "$id": "859", + "response": { + "$ref": "847" + }, + "statusCode": 200, + "bodyValue": { + "$id": "860", + "kind": "model", + "type": { + "$ref": "98" + }, + "value": { + "$id": "861", + "name": { + "$id": "862", + "kind": "string", + "type": { + "$ref": "107" + }, + "value": "profileA" + }, + "type": { + "$id": "863", + "kind": "string", + "type": { + "$ref": "111" + }, + "value": "Microsoft.CodeSigning/codeSigningAccounts/certificateProfiles" + }, + "id": { + "$id": "864", + "kind": "string", + "type": { + "$ref": "102" + }, + "value": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/MyResourceGroup/providers/Microsoft.CodeSigning/codeSigningAccounts/MyAccount/certificateProfiles/profileA" + }, + "properties": { + "$id": "865", + "kind": "model", + "type": { + "$ref": "144" + }, + "value": { + "$id": "866", + "certificates": { + "$id": "867", + "kind": "array", + "type": { + "$ref": "179" + }, + "value": [ + { + "$id": "868", + "kind": "model", + "type": { + "$ref": "180" + }, + "value": { + "$id": "869", + "createdDate": { + "$id": "870", + "kind": "string", + "type": { + "$ref": "198" + }, + "value": "3/14/2023 5:27:49 PM" + }, + "expiryDate": { + "$id": "871", + "kind": "string", + "type": { + "$ref": "202" + }, + "value": "3/17/2023 5:27:49 PM" + }, + "enhancedKeyUsage": { + "$id": "872", + "kind": "string", + "type": { + "$ref": "186" + }, + "value": "1.3.6.1.4.1.311.yy.xxxxxxxx.xxxxxxxx.xxxxxxxxx.xxxxxxxx" + }, + "serialNumber": { + "$id": "873", + "kind": "string", + "type": { + "$ref": "182" + }, + "value": "xxxxxxxxxxxxxxxxxx" + }, + "status": { + "$id": "874", + "kind": "string", + "type": { + "$ref": "36" + }, + "value": "Active" + }, + "subjectName": { + "$id": "875", + "kind": "string", + "type": { + "$ref": "190" + }, + "value": "CN=Contoso Inc, O=Contoso Inc, L=New York, S=New York, C=US" + }, + "thumbprint": { + "$id": "876", + "kind": "string", + "type": { + "$ref": "194" + }, + "value": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" + } + } + } + ] + }, + "identityValidationId": { + "$id": "877", + "kind": "string", + "type": { + "$ref": "169" + }, + "value": "123456" + }, + "includeCity": { + "$id": "878", + "kind": "boolean", + "type": { + "$ref": "153" + }, + "value": false + }, + "includeCountry": { + "$id": "879", + "kind": "boolean", + "type": { + "$ref": "161" + }, + "value": false + }, + "includePostalCode": { + "$id": "880", + "kind": "boolean", + "type": { + "$ref": "165" + }, + "value": true + }, + "includeState": { + "$id": "881", + "kind": "boolean", + "type": { + "$ref": "157" + }, + "value": false + }, + "includeStreetAddress": { + "$id": "882", + "kind": "boolean", + "type": { + "$ref": "149" + }, + "value": false + }, + "profileType": { + "$id": "883", + "kind": "string", + "type": { + "$ref": "2" + }, + "value": "PublicTrust" + }, + "provisioningState": { + "$id": "884", + "kind": "string", + "type": { + "$ref": "14" + }, + "value": "Succeeded" + }, + "status": { + "$id": "885", + "kind": "string", + "type": { + "$ref": "28" + }, + "value": "Active" + } + } + } + } + } + } + ] + } + ] + }, + { + "$id": "886", + "Name": "create", + "ResourceName": "CertificateProfile", + "Doc": "Create a certificate profile.", + "Accessibility": "public", + "Parameters": [ + { + "$id": "887", + "Name": "apiVersion", + "NameInRequest": "api-version", + "Doc": "The API version to use for this operation.", + "Type": { + "$id": "888", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Query", + "IsApiVersion": true, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Client", + "DefaultValue": { + "$id": "889", + "Type": { + "$id": "890", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "2025-03-30" + }, + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "891", + "Name": "subscriptionId", + "NameInRequest": "subscriptionId", + "Doc": "The ID of the target subscription. The value must be an UUID.", + "Type": { + "$id": "892", + "kind": "string", + "name": "uuid", + "crossLanguageDefinitionId": "Azure.Core.uuid", + "baseType": { + "$id": "893", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "decorators": [] + }, + "Location": "Path", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Client", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "894", + "Name": "resourceGroupName", + "NameInRequest": "resourceGroupName", + "Doc": "The name of the resource group. The name is case insensitive.", + "Type": { + "$id": "895", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Path", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "896", + "Name": "accountName", + "NameInRequest": "accountName", + "Doc": "Trusted Signing account name.", + "Type": { + "$id": "897", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Path", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "898", + "Name": "profileName", + "NameInRequest": "profileName", + "Doc": "Certificate profile name.", + "Type": { + "$id": "899", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Path", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "900", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "901", + "kind": "constant", + "valueType": { + "$id": "902", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "903", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "904", + "kind": "constant", + "valueType": { + "$id": "905", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "906", + "Name": "resource", + "NameInRequest": "resource", + "Doc": "Parameters to create the certificate profile", + "Type": { + "$ref": "98" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "907", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "98" + }, + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + }, + { + "$id": "908", + "StatusCodes": [ + 201 + ], + "BodyType": { + "$ref": "98" + }, + "Headers": [ + { + "$id": "909", + "Name": "retryAfter", + "NameInResponse": "Retry-After", + "Doc": "The Retry-After header can indicate how long the client should wait before polling the operation status.", + "Type": { + "$id": "910", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + } + } + ], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "PUT", + "Uri": "{endpoint}", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CodeSigning/codeSigningAccounts/{accountName}/certificateProfiles/{profileName}", + "RequestMediaTypes": [ + "application/json" + ], + "BufferResponse": true, + "LongRunning": { + "$id": "911", + "FinalStateVia": 0, + "FinalResponse": { + "$id": "912", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "98" + } + } + }, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Microsoft.CodeSigning.CertificateProfiles.create", + "Decorators": [ + { + "$id": "913", + "name": "Azure.Core.@useFinalStateVia", + "arguments": { + "$id": "914", + "finalState": "azure-async-operation" + } + } + ], + "Examples": [ + { + "$id": "915", + "kind": "http", + "name": "Create a certificate profile.", + "description": "Create a certificate profile.", + "filePath": "2025-03-30/CertificateProfiles_Create.json", + "parameters": [ + { + "$id": "916", + "parameter": { + "$ref": "896" + }, + "value": { + "$id": "917", + "kind": "string", + "type": { + "$ref": "897" + }, + "value": "MyAccount" + } + }, + { + "$id": "918", + "parameter": { + "$ref": "887" + }, + "value": { + "$id": "919", + "kind": "string", + "type": { + "$ref": "888" + }, + "value": "2025-03-30" + } + }, + { + "$id": "920", + "parameter": { + "$ref": "906" + }, + "value": { + "$id": "921", + "kind": "model", + "type": { + "$ref": "98" + }, + "value": { + "$id": "922", + "properties": { + "$id": "923", + "kind": "model", + "type": { + "$ref": "144" + }, + "value": { + "$id": "924", + "profileType": { + "$id": "925", + "kind": "string", + "type": { + "$ref": "2" + }, + "value": "PublicTrust" + }, + "identityValidationId": { + "$id": "926", + "kind": "string", + "type": { + "$ref": "169" + }, + "value": "00000000-1234-5678-3333-444444444444" + }, + "includePostalCode": { + "$id": "927", + "kind": "boolean", + "type": { + "$ref": "165" + }, + "value": true + }, + "includeStreetAddress": { + "$id": "928", + "kind": "boolean", + "type": { + "$ref": "149" + }, + "value": false + } + } + } + } + } + }, + { + "$id": "929", + "parameter": { + "$ref": "898" + }, + "value": { + "$id": "930", + "kind": "string", + "type": { + "$ref": "899" + }, + "value": "profileA" + } + }, + { + "$id": "931", + "parameter": { + "$ref": "894" + }, + "value": { + "$id": "932", + "kind": "string", + "type": { + "$ref": "895" + }, + "value": "MyResourceGroup" + } + }, + { + "$id": "933", + "parameter": { + "$ref": "891" + }, + "value": { + "$id": "934", + "kind": "string", + "type": { + "$ref": "892" + }, + "value": "00000000-1111-2222-3333-444444444444" + } + } + ], + "responses": [ + { + "$id": "935", + "response": { + "$ref": "907" + }, + "statusCode": 200, + "bodyValue": { + "$id": "936", + "kind": "model", + "type": { + "$ref": "98" + }, + "value": { + "$id": "937", + "name": { + "$id": "938", + "kind": "string", + "type": { + "$ref": "107" + }, + "value": "profileA" + }, + "type": { + "$id": "939", + "kind": "string", + "type": { + "$ref": "111" + }, + "value": "Microsoft.CodeSigning/codeSigningAccounts/certificateProfiles" + }, + "id": { + "$id": "940", + "kind": "string", + "type": { + "$ref": "102" + }, + "value": "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/MyResourceGroup/providers/Microsoft.CodeSigning/codeSigningAccounts/MyAccount/certificateProfiles/profileA" + }, + "properties": { + "$id": "941", + "kind": "model", + "type": { + "$ref": "144" + }, + "value": { + "$id": "942", + "certificates": { + "$id": "943", + "kind": "array", + "type": { + "$ref": "179" + }, + "value": [ + { + "$id": "944", + "kind": "model", + "type": { + "$ref": "180" + }, + "value": { + "$id": "945", + "createdDate": { + "$id": "946", + "kind": "string", + "type": { + "$ref": "198" + }, + "value": "3/14/2023 5:27:49 PM" + }, + "expiryDate": { + "$id": "947", + "kind": "string", + "type": { + "$ref": "202" + }, + "value": "3/17/2023 5:27:49 PM" + }, + "enhancedKeyUsage": { + "$id": "948", + "kind": "string", + "type": { + "$ref": "186" + }, + "value": "1.3.6.1.4.1.311.yy.xxxxxxxx.xxxxxxxx.xxxxxxxxx.xxxxxxxx" + }, + "serialNumber": { + "$id": "949", + "kind": "string", + "type": { + "$ref": "182" + }, + "value": "xxxxxxxxxxxxxxxxxx" + }, + "status": { + "$id": "950", + "kind": "string", + "type": { + "$ref": "36" + }, + "value": "Active" + }, + "subjectName": { + "$id": "951", + "kind": "string", + "type": { + "$ref": "190" + }, + "value": "CN=Contoso Inc, O=Contoso Inc, L=New York, S=New York, C=US" + }, + "thumbprint": { + "$id": "952", + "kind": "string", + "type": { + "$ref": "194" + }, + "value": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" + } + } + } + ] + }, + "identityValidationId": { + "$id": "953", + "kind": "string", + "type": { + "$ref": "169" + }, + "value": "00000000-1234-5678-3333-444444444444" + }, + "includeCity": { + "$id": "954", + "kind": "boolean", + "type": { + "$ref": "153" + }, + "value": false + }, + "includeCountry": { + "$id": "955", + "kind": "boolean", + "type": { + "$ref": "161" + }, + "value": false + }, + "includePostalCode": { + "$id": "956", + "kind": "boolean", + "type": { + "$ref": "165" + }, + "value": true + }, + "includeState": { + "$id": "957", + "kind": "boolean", + "type": { + "$ref": "157" + }, + "value": false + }, + "includeStreetAddress": { + "$id": "958", + "kind": "boolean", + "type": { + "$ref": "149" + }, + "value": false + }, + "profileType": { + "$id": "959", + "kind": "string", + "type": { + "$ref": "2" + }, + "value": "PublicTrust" + }, + "provisioningState": { + "$id": "960", + "kind": "string", + "type": { + "$ref": "14" + }, + "value": "Succeeded" + }, + "status": { + "$id": "961", + "kind": "string", + "type": { + "$ref": "28" + }, + "value": "Active" + } + } + } + } + } + }, + { + "$id": "962", + "response": { + "$ref": "908" + }, + "statusCode": 201, + "bodyValue": { + "$id": "963", + "kind": "model", + "type": { + "$ref": "98" + }, + "value": { + "$id": "964", + "name": { + "$id": "965", + "kind": "string", + "type": { + "$ref": "107" + }, + "value": "profileA" + }, + "type": { + "$id": "966", + "kind": "string", + "type": { + "$ref": "111" + }, + "value": "Microsoft.CodeSigning/codeSigningAccounts/certificateProfiles" + }, + "id": { + "$id": "967", + "kind": "string", + "type": { + "$ref": "102" + }, + "value": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/MyResourceGroup/providers/Microsoft.CodeSigning/codeSigningAccounts/MyAccount/certificateProfiles/profileA" + }, + "properties": { + "$id": "968", + "kind": "model", + "type": { + "$ref": "144" + }, + "value": { + "$id": "969", + "certificates": { + "$id": "970", + "kind": "array", + "type": { + "$ref": "179" + }, + "value": [] + }, + "identityValidationId": { + "$id": "971", + "kind": "string", + "type": { + "$ref": "169" + }, + "value": "00000000-1234-5678-3333-444444444444" + }, + "includeCity": { + "$id": "972", + "kind": "boolean", + "type": { + "$ref": "153" + }, + "value": false + }, + "includeCountry": { + "$id": "973", + "kind": "boolean", + "type": { + "$ref": "161" + }, + "value": false + }, + "includePostalCode": { + "$id": "974", + "kind": "boolean", + "type": { + "$ref": "165" + }, + "value": true + }, + "includeState": { + "$id": "975", + "kind": "boolean", + "type": { + "$ref": "157" + }, + "value": false + }, + "includeStreetAddress": { + "$id": "976", + "kind": "boolean", + "type": { + "$ref": "149" + }, + "value": false + }, + "profileType": { + "$id": "977", + "kind": "string", + "type": { + "$ref": "2" + }, + "value": "PublicTrust" + }, + "provisioningState": { + "$id": "978", + "kind": "string", + "type": { + "$ref": "14" + }, + "value": "Succeeded" + } + } + } + } + } + } + ] + } + ] + }, + { + "$id": "979", + "Name": "delete", + "ResourceName": "CertificateProfile", + "Doc": "Delete a certificate profile.", + "Accessibility": "public", + "Parameters": [ + { + "$id": "980", + "Name": "apiVersion", + "NameInRequest": "api-version", + "Doc": "The API version to use for this operation.", + "Type": { + "$id": "981", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Query", + "IsApiVersion": true, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Client", + "DefaultValue": { + "$id": "982", + "Type": { + "$id": "983", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "2025-03-30" + }, + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "984", + "Name": "subscriptionId", + "NameInRequest": "subscriptionId", + "Doc": "The ID of the target subscription. The value must be an UUID.", + "Type": { + "$id": "985", + "kind": "string", + "name": "uuid", + "crossLanguageDefinitionId": "Azure.Core.uuid", + "baseType": { + "$id": "986", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "decorators": [] + }, + "Location": "Path", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Client", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "987", + "Name": "resourceGroupName", + "NameInRequest": "resourceGroupName", + "Doc": "The name of the resource group. The name is case insensitive.", + "Type": { + "$id": "988", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Path", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "989", + "Name": "accountName", + "NameInRequest": "accountName", + "Doc": "Trusted Signing account name.", + "Type": { + "$id": "990", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Path", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "991", + "Name": "profileName", + "NameInRequest": "profileName", + "Doc": "Certificate profile name.", + "Type": { + "$id": "992", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Path", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "993", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "994", + "kind": "constant", + "valueType": { + "$id": "995", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "996", + "StatusCodes": [ + 202 + ], + "Headers": [ + { + "$id": "997", + "Name": "location", + "NameInResponse": "Location", + "Doc": "The Location header contains the URL where the status of the long running operation can be checked.", + "Type": { + "$id": "998", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + } + }, + { + "$id": "999", + "Name": "retryAfter", + "NameInResponse": "Retry-After", + "Doc": "The Retry-After header can indicate how long the client should wait before polling the operation status.", + "Type": { + "$id": "1000", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + } + } + ], + "IsErrorResponse": false + }, + { + "$id": "1001", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "DELETE", + "Uri": "{endpoint}", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CodeSigning/codeSigningAccounts/{accountName}/certificateProfiles/{profileName}", + "BufferResponse": true, + "LongRunning": { + "$id": "1002", + "FinalStateVia": 1, + "FinalResponse": { + "$id": "1003", + "StatusCodes": [ + 204 + ] + } + }, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Microsoft.CodeSigning.CertificateProfiles.delete", + "Decorators": [], + "Examples": [ + { + "$id": "1004", + "kind": "http", + "name": "Delete a certificate profile.", + "description": "Delete a certificate profile.", + "filePath": "2025-03-30/CertificateProfiles_Delete.json", + "parameters": [ + { + "$id": "1005", + "parameter": { + "$ref": "989" + }, + "value": { + "$id": "1006", + "kind": "string", + "type": { + "$ref": "990" + }, + "value": "MyAccount" + } + }, + { + "$id": "1007", + "parameter": { + "$ref": "980" + }, + "value": { + "$id": "1008", + "kind": "string", + "type": { + "$ref": "981" + }, + "value": "2025-03-30" + } + }, + { + "$id": "1009", + "parameter": { + "$ref": "991" + }, + "value": { + "$id": "1010", + "kind": "string", + "type": { + "$ref": "992" + }, + "value": "profileA" + } + }, + { + "$id": "1011", + "parameter": { + "$ref": "987" + }, + "value": { + "$id": "1012", + "kind": "string", + "type": { + "$ref": "988" + }, + "value": "MyResourceGroup" + } + }, + { + "$id": "1013", + "parameter": { + "$ref": "984" + }, + "value": { + "$id": "1014", + "kind": "string", + "type": { + "$ref": "985" + }, + "value": "00000000-1111-2222-3333-444444444444" + } + } + ], + "responses": [ + { + "$id": "1015", + "response": { + "$ref": "996" + }, + "statusCode": 202 + }, + { + "$id": "1016", + "response": { + "$ref": "1001" + }, + "statusCode": 204 + } + ] + } + ] + }, + { + "$id": "1017", + "Name": "listByCodeSigningAccount", + "ResourceName": "CertificateProfile", + "Doc": "List certificate profiles under a trusted signing account.", + "Accessibility": "public", + "Parameters": [ + { + "$id": "1018", + "Name": "apiVersion", + "NameInRequest": "api-version", + "Doc": "The API version to use for this operation.", + "Type": { + "$id": "1019", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Query", + "IsApiVersion": true, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Client", + "DefaultValue": { + "$id": "1020", + "Type": { + "$id": "1021", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "2025-03-30" + }, + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "1022", + "Name": "subscriptionId", + "NameInRequest": "subscriptionId", + "Doc": "The ID of the target subscription. The value must be an UUID.", + "Type": { + "$id": "1023", + "kind": "string", + "name": "uuid", + "crossLanguageDefinitionId": "Azure.Core.uuid", + "baseType": { + "$id": "1024", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "decorators": [] + }, + "Location": "Path", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Client", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "1025", + "Name": "resourceGroupName", + "NameInRequest": "resourceGroupName", + "Doc": "The name of the resource group. The name is case insensitive.", + "Type": { + "$id": "1026", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Path", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "1027", + "Name": "accountName", + "NameInRequest": "accountName", + "Doc": "Trusted Signing account name.", + "Type": { + "$id": "1028", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Path", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "1029", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "1030", + "kind": "constant", + "valueType": { + "$id": "1031", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "1032", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "300" + }, + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "Uri": "{endpoint}", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CodeSigning/codeSigningAccounts/{accountName}/certificateProfiles", + "BufferResponse": true, + "Paging": { + "$id": "1033", + "ItemPropertySegments": [ + "value" + ], + "NextLink": { + "$id": "1034", + "ResponseSegments": [ + "nextLink" + ], + "ResponseLocation": "Body" + } + }, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Microsoft.CodeSigning.CertificateProfiles.listByCodeSigningAccount", + "Decorators": [], + "Examples": [ + { + "$id": "1035", + "kind": "http", + "name": "List certificate profiles under a trusted signing account.", + "description": "List certificate profiles under a trusted signing account.", + "filePath": "2025-03-30/CertificateProfiles_ListByCodeSigningAccount.json", + "parameters": [ + { + "$id": "1036", + "parameter": { + "$ref": "1027" + }, + "value": { + "$id": "1037", + "kind": "string", + "type": { + "$ref": "1028" + }, + "value": "MyAccount" + } + }, + { + "$id": "1038", + "parameter": { + "$ref": "1018" + }, + "value": { + "$id": "1039", + "kind": "string", + "type": { + "$ref": "1019" + }, + "value": "2025-03-30" + } + }, + { + "$id": "1040", + "parameter": { + "$ref": "1025" + }, + "value": { + "$id": "1041", + "kind": "string", + "type": { + "$ref": "1026" + }, + "value": "MyResourceGroup" + } + }, + { + "$id": "1042", + "parameter": { + "$ref": "1022" + }, + "value": { + "$id": "1043", + "kind": "string", + "type": { + "$ref": "1023" + }, + "value": "00000000-1111-2222-3333-444444444444" + } + } + ], + "responses": [ + { + "$id": "1044", + "response": { + "$ref": "1032" + }, + "statusCode": 200, + "bodyValue": { + "$id": "1045", + "kind": "model", + "type": { + "$ref": "300" + }, + "value": { + "$id": "1046", + "value": { + "$id": "1047", + "kind": "array", + "type": { + "$ref": "302" + }, + "value": [ + { + "$id": "1048", + "kind": "model", + "type": { + "$ref": "98" + }, + "value": { + "$id": "1049", + "name": { + "$id": "1050", + "kind": "string", + "type": { + "$ref": "107" + }, + "value": "profileA" + }, + "type": { + "$id": "1051", + "kind": "string", + "type": { + "$ref": "111" + }, + "value": "Microsoft.CodeSigning/codeSigningAccounts/certificateProfiles" + }, + "id": { + "$id": "1052", + "kind": "string", + "type": { + "$ref": "102" + }, + "value": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/MyResourceGroup/providers/Microsoft.CodeSigning/codeSigningAccounts/profileA" + }, + "properties": { + "$id": "1053", + "kind": "model", + "type": { + "$ref": "144" + }, + "value": { + "$id": "1054", + "certificates": { + "$id": "1055", + "kind": "array", + "type": { + "$ref": "179" + }, + "value": [ + { + "$id": "1056", + "kind": "model", + "type": { + "$ref": "180" + }, + "value": { + "$id": "1057", + "createdDate": { + "$id": "1058", + "kind": "string", + "type": { + "$ref": "198" + }, + "value": "3/14/2023 5:27:49 PM" + }, + "expiryDate": { + "$id": "1059", + "kind": "string", + "type": { + "$ref": "202" + }, + "value": "3/17/2023 5:27:49 PM" + }, + "enhancedKeyUsage": { + "$id": "1060", + "kind": "string", + "type": { + "$ref": "186" + }, + "value": "1.3.6.1.4.1.311.yy.xxxxxxxx.xxxxxxxx.xxxxxxxxx.xxxxxxxx" + }, + "serialNumber": { + "$id": "1061", + "kind": "string", + "type": { + "$ref": "182" + }, + "value": "xxxxxxxxxxxxxxxxxx" + }, + "status": { + "$id": "1062", + "kind": "string", + "type": { + "$ref": "36" + }, + "value": "Active" + }, + "subjectName": { + "$id": "1063", + "kind": "string", + "type": { + "$ref": "190" + }, + "value": "CN=Contoso Inc, O=Contoso Inc, L=New York, S=New York, C=US" + }, + "thumbprint": { + "$id": "1064", + "kind": "string", + "type": { + "$ref": "194" + }, + "value": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" + } + } + } + ] + }, + "identityValidationId": { + "$id": "1065", + "kind": "string", + "type": { + "$ref": "169" + }, + "value": "123456" + }, + "includeCity": { + "$id": "1066", + "kind": "boolean", + "type": { + "$ref": "153" + }, + "value": false + }, + "includeCountry": { + "$id": "1067", + "kind": "boolean", + "type": { + "$ref": "161" + }, + "value": false + }, + "includePostalCode": { + "$id": "1068", + "kind": "boolean", + "type": { + "$ref": "165" + }, + "value": true + }, + "includeState": { + "$id": "1069", + "kind": "boolean", + "type": { + "$ref": "157" + }, + "value": false + }, + "includeStreetAddress": { + "$id": "1070", + "kind": "boolean", + "type": { + "$ref": "149" + }, + "value": false + }, + "profileType": { + "$id": "1071", + "kind": "string", + "type": { + "$ref": "2" + }, + "value": "PublicTrust" + }, + "provisioningState": { + "$id": "1072", + "kind": "string", + "type": { + "$ref": "14" + }, + "value": "Succeeded" + }, + "status": { + "$id": "1073", + "kind": "string", + "type": { + "$ref": "28" + }, + "value": "Active" + } + } + } + } + } + ] + } + } + } + } + ] + } + ] + }, + { + "$id": "1074", + "Name": "revokeCertificate", + "ResourceName": "CertificateProfiles", + "Doc": "Revoke a certificate under a certificate profile.", + "Accessibility": "public", + "Parameters": [ + { + "$id": "1075", + "Name": "apiVersion", + "NameInRequest": "api-version", + "Doc": "The API version to use for this operation.", + "Type": { + "$id": "1076", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Query", + "IsApiVersion": true, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Client", + "DefaultValue": { + "$id": "1077", + "Type": { + "$id": "1078", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "2025-03-30" + }, + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "1079", + "Name": "subscriptionId", + "NameInRequest": "subscriptionId", + "Doc": "The ID of the target subscription. The value must be an UUID.", + "Type": { + "$id": "1080", + "kind": "string", + "name": "uuid", + "crossLanguageDefinitionId": "Azure.Core.uuid", + "baseType": { + "$id": "1081", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "decorators": [] + }, + "Location": "Path", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Client", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "1082", + "Name": "resourceGroupName", + "NameInRequest": "resourceGroupName", + "Doc": "The name of the resource group. The name is case insensitive.", + "Type": { + "$id": "1083", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Path", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "1084", + "Name": "accountName", + "NameInRequest": "accountName", + "Doc": "Trusted Signing account name.", + "Type": { + "$id": "1085", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Path", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "1086", + "Name": "profileName", + "NameInRequest": "profileName", + "Doc": "Certificate profile name.", + "Type": { + "$id": "1087", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Path", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "1088", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "1089", + "kind": "constant", + "valueType": { + "$id": "1090", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "1091", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "1092", + "kind": "constant", + "valueType": { + "$id": "1093", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "1094", + "Name": "body", + "NameInRequest": "body", + "Doc": "Parameters to revoke the certificate profile", + "Type": { + "$ref": "310" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "1095", + "StatusCodes": [ + 204 + ], + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "POST", + "Uri": "{endpoint}", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CodeSigning/codeSigningAccounts/{accountName}/certificateProfiles/{profileName}/revokeCertificate", + "RequestMediaTypes": [ + "application/json" + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Microsoft.CodeSigning.CertificateProfiles.revokeCertificate", + "Decorators": [], + "Examples": [ + { + "$id": "1096", + "kind": "http", + "name": "Revoke a certificate under a certificate profile.", + "description": "Revoke a certificate under a certificate profile.", + "filePath": "2025-03-30/CertificateProfiles_RevokeCertificate.json", + "parameters": [ + { + "$id": "1097", + "parameter": { + "$ref": "1084" + }, + "value": { + "$id": "1098", + "kind": "string", + "type": { + "$ref": "1085" + }, + "value": "MyAccount" + } + }, + { + "$id": "1099", + "parameter": { + "$ref": "1075" + }, + "value": { + "$id": "1100", + "kind": "string", + "type": { + "$ref": "1076" + }, + "value": "2025-03-30" + } + }, + { + "$id": "1101", + "parameter": { + "$ref": "1086" + }, + "value": { + "$id": "1102", + "kind": "string", + "type": { + "$ref": "1087" + }, + "value": "profileA" + } + }, + { + "$id": "1103", + "parameter": { + "$ref": "1082" + }, + "value": { + "$id": "1104", + "kind": "string", + "type": { + "$ref": "1083" + }, + "value": "MyResourceGroup" + } + }, + { + "$id": "1105", + "parameter": { + "$ref": "1094" + }, + "value": { + "$id": "1106", + "kind": "model", + "type": { + "$ref": "310" + }, + "value": { + "$id": "1107", + "effectiveAt": { + "$id": "1108", + "kind": "string", + "type": { + "$ref": "320" + }, + "value": "2023-11-12T23:40:25+00:00" + }, + "reason": { + "$id": "1109", + "kind": "string", + "type": { + "$ref": "325" + }, + "value": "KeyCompromised" + }, + "remarks": { + "$id": "1110", + "kind": "string", + "type": { + "$ref": "329" + }, + "value": "test" + }, + "serialNumber": { + "$id": "1111", + "kind": "string", + "type": { + "$ref": "312" + }, + "value": "xxxxxxxxxxxxxxxxxx" + }, + "thumbprint": { + "$id": "1112", + "kind": "string", + "type": { + "$ref": "316" + }, + "value": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" + } + } + } + }, + { + "$id": "1113", + "parameter": { + "$ref": "1079" + }, + "value": { + "$id": "1114", + "kind": "string", + "type": { + "$ref": "1080" + }, + "value": "00000000-1111-2222-3333-444444444444" + } + } + ], + "responses": [ + { + "$id": "1115", + "response": { + "$ref": "1095" + }, + "statusCode": 204 + } + ] + } + ] + } + ], + "Protocol": { + "$id": "1116" + }, + "Parent": "CodeSigningClient", + "Parameters": [ + { + "$id": "1117", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "Service host", + "Type": { + "$id": "1118", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "Location": "Uri", + "IsApiVersion": false, + "IsResourceParameter": false, + "IsContentType": false, + "IsRequired": true, + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client", + "DefaultValue": { + "$id": "1119", + "Type": { + "$id": "1120", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "https://management.azure.com" + } + } + ], + "Decorators": [], + "CrossLanguageDefinitionId": "Microsoft.CodeSigning.CertificateProfiles" + } + ], + "Auth": { + "$id": "1121", + "OAuth2": { + "$id": "1122", + "Scopes": [ + "user_impersonation" + ] + } + } +}