diff --git a/sdk/resourcemanager/ci.mgmt.yml b/sdk/resourcemanager/ci.mgmt.yml
index ec5cfe18a1fcc..de87a0c7650e4 100644
--- a/sdk/resourcemanager/ci.mgmt.yml
+++ b/sdk/resourcemanager/ci.mgmt.yml
@@ -184,6 +184,7 @@ trigger:
- sdk/support/Azure.ResourceManager.Support
- sdk/synapse/Azure.ResourceManager.Synapse
- sdk/trafficmanager/Azure.ResourceManager.TrafficManager
+ - sdk/trustedsigning/Azure.ResourceManager.TrustedSigning
- sdk/voiceservices/Azure.ResourceManager.VoiceServices
- sdk/webpubsub/Azure.ResourceManager.WebPubSub
- sdk/websites/Azure.ResourceManager.AppService
@@ -256,6 +257,7 @@ pr:
- sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization
- sdk/devcenter/Azure.ResourceManager.DevCenter
- sdk/deviceprovisioningservices/Azure.ResourceManager.DeviceProvisioningServices
+ - sdk/deviceregistry/Azure.ResourceManager.DeviceRegistry
- sdk/deviceupdate/Azure.ResourceManager.DeviceUpdate
- sdk/devspaces/Azure.ResourceManager.DevSpaces
- sdk/devtestlabs/Azure.ResourceManager.DevTestLabs
@@ -374,6 +376,7 @@ pr:
- sdk/support/Azure.ResourceManager.Support
- sdk/synapse/Azure.ResourceManager.Synapse
- sdk/trafficmanager/Azure.ResourceManager.TrafficManager
+ - sdk/trustedsigning/Azure.ResourceManager.TrustedSigning
- sdk/voiceservices/Azure.ResourceManager.VoiceServices
- sdk/webpubsub/Azure.ResourceManager.WebPubSub
- sdk/websites/Azure.ResourceManager.AppService
diff --git a/sdk/trustedsigning/Azure.ResourceManager.TrustedSigning/Azure.ResourceManager.TrustedSigning.sln b/sdk/trustedsigning/Azure.ResourceManager.TrustedSigning/Azure.ResourceManager.TrustedSigning.sln
new file mode 100644
index 0000000000000..c1395a297012b
--- /dev/null
+++ b/sdk/trustedsigning/Azure.ResourceManager.TrustedSigning/Azure.ResourceManager.TrustedSigning.sln
@@ -0,0 +1,65 @@
+
+Microsoft Visual Studio Solution File, Format Version 12.00
+# Visual Studio Version 16
+VisualStudioVersion = 16.0.30309.148
+MinimumVisualStudioVersion = 10.0.40219.1
+Project("{8263E172-CB04-4BDC-B98A-771ACC2C8CAA}") = "Azure.ResourceManager.TrustedSigning", "src\Azure.ResourceManager.TrustedSigning.csproj", "{7B1AB398-376A-44C7-A844-76092392AD26}"
+EndProject
+Project("{8263E172-CB04-4BDC-B98A-771ACC2C8CAA}") = "Azure.ResourceManager.TrustedSigning.Tests", "tests\Azure.ResourceManager.TrustedSigning.Tests.csproj", "{CA97DD50-D003-4629-BCEB-185A56CA5CD1}"
+EndProject
+Project("{8263E172-CB04-4BDC-B98A-771ACC2C8CAA}") = "Azure.ResourceManager.TrustedSigning.Samples", "samples\Azure.ResourceManager.TrustedSigning.Samples.csproj", "{A5AF7B73-74A0-4635-8478-8B5CBA90EEFE}"
+EndProject
+Global
+ GlobalSection(SolutionProperties) = preSolution
+ HideSolutionNode = FALSE
+ EndGlobalSection
+ GlobalSection(ExtensibilityGlobals) = postSolution
+ SolutionGuid = {D9DFBE81-A9D5-46D2-84FD-742C582C007F}
+ EndGlobalSection
+ GlobalSection(SolutionConfigurationPlatforms) = preSolution
+ Debug|Any CPU = Debug|Any CPU
+ Debug|x64 = Debug|x64
+ Debug|x86 = Debug|x86
+ Release|Any CPU = Release|Any CPU
+ Release|x64 = Release|x64
+ Release|x86 = Release|x86
+ EndGlobalSection
+ GlobalSection(ProjectConfigurationPlatforms) = postSolution
+ {7B1AB398-376A-44C7-A844-76092392AD26}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {7B1AB398-376A-44C7-A844-76092392AD26}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {7B1AB398-376A-44C7-A844-76092392AD26}.Debug|x64.ActiveCfg = Debug|Any CPU
+ {7B1AB398-376A-44C7-A844-76092392AD26}.Debug|x64.Build.0 = Debug|Any CPU
+ {7B1AB398-376A-44C7-A844-76092392AD26}.Debug|x86.ActiveCfg = Debug|Any CPU
+ {7B1AB398-376A-44C7-A844-76092392AD26}.Debug|x86.Build.0 = Debug|Any CPU
+ {7B1AB398-376A-44C7-A844-76092392AD26}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {7B1AB398-376A-44C7-A844-76092392AD26}.Release|Any CPU.Build.0 = Release|Any CPU
+ {7B1AB398-376A-44C7-A844-76092392AD26}.Release|x64.ActiveCfg = Release|Any CPU
+ {7B1AB398-376A-44C7-A844-76092392AD26}.Release|x64.Build.0 = Release|Any CPU
+ {7B1AB398-376A-44C7-A844-76092392AD26}.Release|x86.ActiveCfg = Release|Any CPU
+ {7B1AB398-376A-44C7-A844-76092392AD26}.Release|x86.Build.0 = Release|Any CPU
+ {CA97DD50-D003-4629-BCEB-185A56CA5CD1}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {CA97DD50-D003-4629-BCEB-185A56CA5CD1}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {CA97DD50-D003-4629-BCEB-185A56CA5CD1}.Debug|x64.ActiveCfg = Debug|Any CPU
+ {CA97DD50-D003-4629-BCEB-185A56CA5CD1}.Debug|x64.Build.0 = Debug|Any CPU
+ {CA97DD50-D003-4629-BCEB-185A56CA5CD1}.Debug|x86.ActiveCfg = Debug|Any CPU
+ {CA97DD50-D003-4629-BCEB-185A56CA5CD1}.Debug|x86.Build.0 = Debug|Any CPU
+ {CA97DD50-D003-4629-BCEB-185A56CA5CD1}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {CA97DD50-D003-4629-BCEB-185A56CA5CD1}.Release|Any CPU.Build.0 = Release|Any CPU
+ {CA97DD50-D003-4629-BCEB-185A56CA5CD1}.Release|x64.ActiveCfg = Release|Any CPU
+ {CA97DD50-D003-4629-BCEB-185A56CA5CD1}.Release|x64.Build.0 = Release|Any CPU
+ {CA97DD50-D003-4629-BCEB-185A56CA5CD1}.Release|x86.ActiveCfg = Release|Any CPU
+ {CA97DD50-D003-4629-BCEB-185A56CA5CD1}.Release|x86.Build.0 = Release|Any CPU
+ {A5AF7B73-74A0-4635-8478-8B5CBA90EEFE}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {A5AF7B73-74A0-4635-8478-8B5CBA90EEFE}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {A5AF7B73-74A0-4635-8478-8B5CBA90EEFE}.Debug|x64.ActiveCfg = Debug|Any CPU
+ {A5AF7B73-74A0-4635-8478-8B5CBA90EEFE}.Debug|x64.Build.0 = Debug|Any CPU
+ {A5AF7B73-74A0-4635-8478-8B5CBA90EEFE}.Debug|x86.ActiveCfg = Debug|Any CPU
+ {A5AF7B73-74A0-4635-8478-8B5CBA90EEFE}.Debug|x86.Build.0 = Debug|Any CPU
+ {A5AF7B73-74A0-4635-8478-8B5CBA90EEFE}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {A5AF7B73-74A0-4635-8478-8B5CBA90EEFE}.Release|Any CPU.Build.0 = Release|Any CPU
+ {A5AF7B73-74A0-4635-8478-8B5CBA90EEFE}.Release|x64.ActiveCfg = Release|Any CPU
+ {A5AF7B73-74A0-4635-8478-8B5CBA90EEFE}.Release|x64.Build.0 = Release|Any CPU
+ {A5AF7B73-74A0-4635-8478-8B5CBA90EEFE}.Release|x86.ActiveCfg = Release|Any CPU
+ {A5AF7B73-74A0-4635-8478-8B5CBA90EEFE}.Release|x86.Build.0 = Release|Any CPU
+ EndGlobalSection
+EndGlobal
diff --git a/sdk/trustedsigning/Azure.ResourceManager.TrustedSigning/CHANGELOG.md b/sdk/trustedsigning/Azure.ResourceManager.TrustedSigning/CHANGELOG.md
new file mode 100644
index 0000000000000..734a5b6e41379
--- /dev/null
+++ b/sdk/trustedsigning/Azure.ResourceManager.TrustedSigning/CHANGELOG.md
@@ -0,0 +1,17 @@
+# Release History
+
+## 1.0.0-beta.1 (2024-04-27)
+
+### General New Features
+
+This package follows the [new Azure SDK guidelines](https://azure.github.io/azure-sdk/general_introduction.html), and provides many core capabilities:
+
+ - Support MSAL.NET, Azure.Identity is out of box for supporting MSAL.NET.
+ - Support [OpenTelemetry](https://opentelemetry.io/) for distributed tracing.
+ - HTTP pipeline with custom policies.
+ - Better error-handling.
+ - Support uniform telemetry across all languages.
+
+This package is a Public Preview version, so expect incompatible changes in subsequent releases as we improve the product. To provide feedback, submit an issue in our [Azure SDK for .NET GitHub repo](https://github.com/Azure/azure-sdk-for-net/issues).
+
+> NOTE: For more information about unified authentication, please refer to [Microsoft Azure Identity documentation for .NET](https://docs.microsoft.com//dotnet/api/overview/azure/identity-readme?view=azure-dotnet).
diff --git a/sdk/trustedsigning/Azure.ResourceManager.TrustedSigning/Directory.Build.props b/sdk/trustedsigning/Azure.ResourceManager.TrustedSigning/Directory.Build.props
new file mode 100644
index 0000000000000..1a9611bd49242
--- /dev/null
+++ b/sdk/trustedsigning/Azure.ResourceManager.TrustedSigning/Directory.Build.props
@@ -0,0 +1,6 @@
+
+
+
+
diff --git a/sdk/trustedsigning/Azure.ResourceManager.TrustedSigning/README.md b/sdk/trustedsigning/Azure.ResourceManager.TrustedSigning/README.md
new file mode 100644
index 0000000000000..5659508fa6e99
--- /dev/null
+++ b/sdk/trustedsigning/Azure.ResourceManager.TrustedSigning/README.md
@@ -0,0 +1,87 @@
+# Microsoft Azure TrustedSigning management client library for .NET
+
+# Trusted Signing (formerly Azure Code Signing) is a Microsoft fully managed end-to-end signing solution that simplifies the process and empowers 3rd party developers to easily build and distribute applications.
+# This is part of Microsoft’s commitment to an open, inclusive, and secure ecosystem.
+# Simplifies the signing process with an intuitive experience in Azure
+# Zero-touch certificate lifecycle management that is FIPS 140-2 Level 3 compliant.
+# Integrations into leading developer toolsets.
+# Supports Public Trust, Test, Private Trust, and CI policy signing scenarios.
+# Timestamping service.
+# Content confidential signing – meaning digest signing that is fast and reliable – your file never leaves your endpoint.
+
+This library follows the [new Azure SDK guidelines](https://azure.github.io/azure-sdk/general_introduction.html), and provides many core capabilities:
+
+ - Support MSAL.NET, Azure.Identity is out of box for supporting MSAL.NET.
+ - Support [OpenTelemetry](https://opentelemetry.io/) for distributed tracing.
+ - HTTP pipeline with custom policies.
+ - Better error-handling.
+ - Support uniform telemetry across all languages.
+
+## Getting started
+
+### Install the package
+
+Install the Microsoft Azure TrustedSigning management library for .NET with [NuGet](https://www.nuget.org/):
+
+```dotnetcli
+dotnet add package Azure.ResourceManager.TrustedSigning --prerelease
+```
+
+### Prerequisites
+
+* You must have an [Microsoft Azure subscription](https://azure.microsoft.com/free/dotnet/).
+
+### Authenticate the Client
+
+To create an authenticated client and start interacting with Microsoft Azure resources, see the [quickstart guide here](https://github.com/Azure/azure-sdk-for-net/blob/main/doc/dev/mgmt_quickstart.md).
+
+## Key concepts
+
+Key concepts of the Microsoft Azure SDK for .NET can be found [here](https://azure.github.io/azure-sdk/dotnet_introduction.html)
+
+## Documentation
+
+Documentation is available to help you learn how to use this package:
+
+- [Quickstart](https://github.com/Azure/azure-sdk-for-net/blob/main/doc/dev/mgmt_quickstart.md).
+- [API References](https://docs.microsoft.com/dotnet/api/?view=azure-dotnet).
+- [Authentication](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/identity/Azure.Identity/README.md).
+
+## Examples
+
+Code samples for using the management library for .NET can be found in the following locations
+- [.NET Management Library Code Samples](https://aka.ms/azuresdk-net-mgmt-samples)
+
+## Troubleshooting
+
+- File an issue via [GitHub Issues](https://github.com/Azure/azure-sdk-for-net/issues).
+- Check [previous questions](https://stackoverflow.com/questions/tagged/azure+.net) or ask new ones on Stack Overflow using Azure and .NET tags.
+
+## Next steps
+
+For more information about Microsoft Azure SDK, see [this website](https://azure.github.io/azure-sdk/).
+
+## Contributing
+
+For details on contributing to this repository, see the [contributing
+guide][cg].
+
+This project welcomes contributions and suggestions. Most contributions
+require you to agree to a Contributor License Agreement (CLA) declaring
+that you have the right to, and actually do, grant us the rights to use
+your contribution. For details, visit .
+
+When you submit a pull request, a CLA-bot will automatically determine
+whether you need to provide a CLA and decorate the PR appropriately
+(for example, label, comment). Follow the instructions provided by the
+bot. You'll only need to do this action once across all repositories
+using our CLA.
+
+This project has adopted the [Microsoft Open Source Code of Conduct][coc]. For
+more information, see the [Code of Conduct FAQ][coc_faq] or contact
+ with any other questions or comments.
+
+
+[cg]: https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/resourcemanager/Azure.ResourceManager/docs/CONTRIBUTING.md
+[coc]: https://opensource.microsoft.com/codeofconduct/
+[coc_faq]: https://opensource.microsoft.com/codeofconduct/faq/
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
new file mode 100644
index 0000000000000..8c88edae67d12
--- /dev/null
+++ b/sdk/trustedsigning/Azure.ResourceManager.TrustedSigning/api/Azure.ResourceManager.TrustedSigning.netstandard2.0.cs
@@ -0,0 +1,367 @@
+namespace Azure.ResourceManager.TrustedSigning
+{
+ public partial class TrustedSigningAccountCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable
+ {
+ protected TrustedSigningAccountCollection() { }
+ public virtual Azure.ResourceManager.ArmOperation CreateOrUpdate(Azure.WaitUntil waitUntil, string accountName, Azure.ResourceManager.TrustedSigning.TrustedSigningAccountData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public virtual System.Threading.Tasks.Task> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, string accountName, Azure.ResourceManager.TrustedSigning.TrustedSigningAccountData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public virtual Azure.Response Exists(string accountName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public virtual System.Threading.Tasks.Task> ExistsAsync(string accountName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public virtual Azure.Response Get(string accountName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public virtual Azure.Pageable GetAll(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public virtual Azure.AsyncPageable GetAllAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public virtual System.Threading.Tasks.Task> GetAsync(string accountName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public virtual Azure.NullableResponse GetIfExists(string accountName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public virtual System.Threading.Tasks.Task> GetIfExistsAsync(string accountName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ System.Collections.Generic.IAsyncEnumerator System.Collections.Generic.IAsyncEnumerable.GetAsyncEnumerator(System.Threading.CancellationToken cancellationToken) { throw null; }
+ System.Collections.Generic.IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator() { throw null; }
+ System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { throw null; }
+ }
+ public partial class TrustedSigningAccountData : Azure.ResourceManager.Models.TrackedResourceData, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel
+ {
+ public TrustedSigningAccountData(Azure.Core.AzureLocation location) { }
+ public System.Uri AccountUri { get { throw null; } }
+ public Azure.ResourceManager.TrustedSigning.Models.TrustedSigningProvisioningState? ProvisioningState { get { throw null; } }
+ public Azure.ResourceManager.TrustedSigning.Models.TrustedSigningSkuName? SkuName { get { throw null; } set { } }
+ Azure.ResourceManager.TrustedSigning.TrustedSigningAccountData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { }
+ Azure.ResourceManager.TrustedSigning.TrustedSigningAccountData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ }
+ public partial class TrustedSigningAccountResource : Azure.ResourceManager.ArmResource
+ {
+ public static readonly Azure.Core.ResourceType ResourceType;
+ protected TrustedSigningAccountResource() { }
+ public virtual Azure.ResourceManager.TrustedSigning.TrustedSigningAccountData Data { get { throw null; } }
+ public virtual bool HasData { get { throw null; } }
+ public virtual Azure.Response AddTag(string key, string value, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public virtual System.Threading.Tasks.Task> AddTagAsync(string key, string value, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string accountName) { throw null; }
+ public virtual Azure.ResourceManager.ArmOperation Delete(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public virtual System.Threading.Tasks.Task DeleteAsync(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public virtual Azure.Response GetTrustedSigningCertificateProfile(string profileName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public virtual System.Threading.Tasks.Task> GetTrustedSigningCertificateProfileAsync(string profileName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public virtual Azure.ResourceManager.TrustedSigning.TrustedSigningCertificateProfileCollection GetTrustedSigningCertificateProfiles() { throw null; }
+ public virtual Azure.Response RemoveTag(string key, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public virtual System.Threading.Tasks.Task> RemoveTagAsync(string key, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public virtual Azure.Response SetTags(System.Collections.Generic.IDictionary tags, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public virtual System.Threading.Tasks.Task> SetTagsAsync(System.Collections.Generic.IDictionary tags, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public virtual Azure.ResourceManager.ArmOperation Update(Azure.WaitUntil waitUntil, Azure.ResourceManager.TrustedSigning.Models.TrustedSigningAccountPatch patch, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.TrustedSigning.Models.TrustedSigningAccountPatch patch, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ }
+ public partial class TrustedSigningCertificateProfileCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable
+ {
+ protected TrustedSigningCertificateProfileCollection() { }
+ public virtual Azure.ResourceManager.ArmOperation CreateOrUpdate(Azure.WaitUntil waitUntil, string profileName, Azure.ResourceManager.TrustedSigning.TrustedSigningCertificateProfileData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public virtual System.Threading.Tasks.Task> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, string profileName, Azure.ResourceManager.TrustedSigning.TrustedSigningCertificateProfileData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public virtual Azure.Response Exists(string profileName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public virtual System.Threading.Tasks.Task> ExistsAsync(string profileName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public virtual Azure.Response Get(string profileName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public virtual Azure.Pageable GetAll(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public virtual Azure.AsyncPageable GetAllAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public virtual System.Threading.Tasks.Task> GetAsync(string profileName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public virtual Azure.NullableResponse GetIfExists(string profileName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public virtual System.Threading.Tasks.Task> GetIfExistsAsync(string profileName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ System.Collections.Generic.IAsyncEnumerator System.Collections.Generic.IAsyncEnumerable.GetAsyncEnumerator(System.Threading.CancellationToken cancellationToken) { throw null; }
+ System.Collections.Generic.IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator() { throw null; }
+ System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { throw null; }
+ }
+ public partial class TrustedSigningCertificateProfileData : Azure.ResourceManager.Models.ResourceData, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel
+ {
+ 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; } }
+ 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) { }
+ Azure.ResourceManager.TrustedSigning.TrustedSigningCertificateProfileData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ }
+ public partial class TrustedSigningCertificateProfileResource : Azure.ResourceManager.ArmResource
+ {
+ public static readonly Azure.Core.ResourceType ResourceType;
+ protected TrustedSigningCertificateProfileResource() { }
+ public virtual Azure.ResourceManager.TrustedSigning.TrustedSigningCertificateProfileData Data { get { throw null; } }
+ public virtual bool HasData { get { throw null; } }
+ public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string accountName, string profileName) { throw null; }
+ public virtual Azure.ResourceManager.ArmOperation Delete(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public virtual System.Threading.Tasks.Task DeleteAsync(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public virtual Azure.Response RevokeCertificate(Azure.ResourceManager.TrustedSigning.Models.RevokeCertificateContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public virtual System.Threading.Tasks.Task RevokeCertificateAsync(Azure.ResourceManager.TrustedSigning.Models.RevokeCertificateContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public virtual Azure.ResourceManager.ArmOperation Update(Azure.WaitUntil waitUntil, Azure.ResourceManager.TrustedSigning.TrustedSigningCertificateProfileData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.TrustedSigning.TrustedSigningCertificateProfileData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ }
+ public static partial class TrustedSigningExtensions
+ {
+ public static Azure.Response CheckTrustedSigningAccountNameAvailability(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, Azure.ResourceManager.TrustedSigning.Models.TrustedSigningAccountNameAvailabilityContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public static System.Threading.Tasks.Task> CheckTrustedSigningAccountNameAvailabilityAsync(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, Azure.ResourceManager.TrustedSigning.Models.TrustedSigningAccountNameAvailabilityContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public static Azure.Response GetTrustedSigningAccount(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string accountName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public static System.Threading.Tasks.Task> GetTrustedSigningAccountAsync(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string accountName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public static Azure.ResourceManager.TrustedSigning.TrustedSigningAccountResource GetTrustedSigningAccountResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; }
+ public static Azure.ResourceManager.TrustedSigning.TrustedSigningAccountCollection GetTrustedSigningAccounts(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource) { throw null; }
+ public static Azure.Pageable GetTrustedSigningAccounts(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public static Azure.AsyncPageable GetTrustedSigningAccountsAsync(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public static Azure.ResourceManager.TrustedSigning.TrustedSigningCertificateProfileResource GetTrustedSigningCertificateProfileResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; }
+ }
+}
+namespace Azure.ResourceManager.TrustedSigning.Mocking
+{
+ public partial class MockableTrustedSigningArmClient : Azure.ResourceManager.ArmResource
+ {
+ protected MockableTrustedSigningArmClient() { }
+ public virtual Azure.ResourceManager.TrustedSigning.TrustedSigningAccountResource GetTrustedSigningAccountResource(Azure.Core.ResourceIdentifier id) { throw null; }
+ public virtual Azure.ResourceManager.TrustedSigning.TrustedSigningCertificateProfileResource GetTrustedSigningCertificateProfileResource(Azure.Core.ResourceIdentifier id) { throw null; }
+ }
+ public partial class MockableTrustedSigningResourceGroupResource : Azure.ResourceManager.ArmResource
+ {
+ protected MockableTrustedSigningResourceGroupResource() { }
+ public virtual Azure.Response GetTrustedSigningAccount(string accountName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public virtual System.Threading.Tasks.Task> GetTrustedSigningAccountAsync(string accountName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public virtual Azure.ResourceManager.TrustedSigning.TrustedSigningAccountCollection GetTrustedSigningAccounts() { throw null; }
+ }
+ public partial class MockableTrustedSigningSubscriptionResource : Azure.ResourceManager.ArmResource
+ {
+ protected MockableTrustedSigningSubscriptionResource() { }
+ public virtual Azure.Response CheckTrustedSigningAccountNameAvailability(Azure.ResourceManager.TrustedSigning.Models.TrustedSigningAccountNameAvailabilityContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public virtual System.Threading.Tasks.Task> CheckTrustedSigningAccountNameAvailabilityAsync(Azure.ResourceManager.TrustedSigning.Models.TrustedSigningAccountNameAvailabilityContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public virtual Azure.Pageable GetTrustedSigningAccounts(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public virtual Azure.AsyncPageable GetTrustedSigningAccountsAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ }
+}
+namespace Azure.ResourceManager.TrustedSigning.Models
+{
+ 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; }
+ }
+ [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)]
+ public readonly partial struct CertificateProfileStatus : System.IEquatable
+ {
+ private readonly object _dummy;
+ private readonly int _dummyPrimitive;
+ public CertificateProfileStatus(string value) { throw null; }
+ public static Azure.ResourceManager.TrustedSigning.Models.CertificateProfileStatus Active { get { throw null; } }
+ public static Azure.ResourceManager.TrustedSigning.Models.CertificateProfileStatus Disabled { get { throw null; } }
+ public static Azure.ResourceManager.TrustedSigning.Models.CertificateProfileStatus Suspended { get { throw null; } }
+ public bool Equals(Azure.ResourceManager.TrustedSigning.Models.CertificateProfileStatus other) { throw null; }
+ [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
+ public override bool Equals(object obj) { throw null; }
+ [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
+ public override int GetHashCode() { throw null; }
+ public static bool operator ==(Azure.ResourceManager.TrustedSigning.Models.CertificateProfileStatus left, Azure.ResourceManager.TrustedSigning.Models.CertificateProfileStatus right) { throw null; }
+ public static implicit operator Azure.ResourceManager.TrustedSigning.Models.CertificateProfileStatus (string value) { throw null; }
+ public static bool operator !=(Azure.ResourceManager.TrustedSigning.Models.CertificateProfileStatus left, Azure.ResourceManager.TrustedSigning.Models.CertificateProfileStatus right) { throw null; }
+ public override string ToString() { throw null; }
+ }
+ [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)]
+ public readonly partial struct CertificateProfileType : System.IEquatable
+ {
+ private readonly object _dummy;
+ private readonly int _dummyPrimitive;
+ public CertificateProfileType(string value) { throw null; }
+ public static Azure.ResourceManager.TrustedSigning.Models.CertificateProfileType PrivateTrust { get { throw null; } }
+ public static Azure.ResourceManager.TrustedSigning.Models.CertificateProfileType PrivateTrustCIPolicy { get { throw null; } }
+ public static Azure.ResourceManager.TrustedSigning.Models.CertificateProfileType PublicTrust { get { throw null; } }
+ public static Azure.ResourceManager.TrustedSigning.Models.CertificateProfileType PublicTrustTest { get { throw null; } }
+ public static Azure.ResourceManager.TrustedSigning.Models.CertificateProfileType VbsEnclave { get { throw null; } }
+ public bool Equals(Azure.ResourceManager.TrustedSigning.Models.CertificateProfileType other) { throw null; }
+ [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
+ public override bool Equals(object obj) { throw null; }
+ [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
+ public override int GetHashCode() { throw null; }
+ public static bool operator ==(Azure.ResourceManager.TrustedSigning.Models.CertificateProfileType left, Azure.ResourceManager.TrustedSigning.Models.CertificateProfileType right) { throw null; }
+ public static implicit operator Azure.ResourceManager.TrustedSigning.Models.CertificateProfileType (string value) { throw null; }
+ public static bool operator !=(Azure.ResourceManager.TrustedSigning.Models.CertificateProfileType left, Azure.ResourceManager.TrustedSigning.Models.CertificateProfileType right) { throw null; }
+ public override string ToString() { throw null; }
+ }
+ [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)]
+ public readonly partial struct CertificateRevocationStatus : System.IEquatable
+ {
+ private readonly object _dummy;
+ private readonly int _dummyPrimitive;
+ public CertificateRevocationStatus(string value) { throw null; }
+ public static Azure.ResourceManager.TrustedSigning.Models.CertificateRevocationStatus Failed { get { throw null; } }
+ public static Azure.ResourceManager.TrustedSigning.Models.CertificateRevocationStatus InProgress { get { throw null; } }
+ public static Azure.ResourceManager.TrustedSigning.Models.CertificateRevocationStatus Succeeded { get { throw null; } }
+ public bool Equals(Azure.ResourceManager.TrustedSigning.Models.CertificateRevocationStatus other) { throw null; }
+ [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
+ public override bool Equals(object obj) { throw null; }
+ [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
+ public override int GetHashCode() { throw null; }
+ public static bool operator ==(Azure.ResourceManager.TrustedSigning.Models.CertificateRevocationStatus left, Azure.ResourceManager.TrustedSigning.Models.CertificateRevocationStatus right) { throw null; }
+ public static implicit operator Azure.ResourceManager.TrustedSigning.Models.CertificateRevocationStatus (string value) { throw null; }
+ public static bool operator !=(Azure.ResourceManager.TrustedSigning.Models.CertificateRevocationStatus left, Azure.ResourceManager.TrustedSigning.Models.CertificateRevocationStatus right) { throw null; }
+ public override string ToString() { throw null; }
+ }
+ public partial class RevokeCertificateContent : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel
+ {
+ public RevokeCertificateContent(string serialNumber, string thumbprint, System.DateTimeOffset effectiveOn, string reason) { }
+ public System.DateTimeOffset EffectiveOn { get { throw null; } }
+ public string Reason { get { throw null; } }
+ public string Remarks { get { throw null; } set { } }
+ public string SerialNumber { get { throw null; } }
+ public string Thumbprint { get { throw null; } }
+ Azure.ResourceManager.TrustedSigning.Models.RevokeCertificateContent System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { }
+ Azure.ResourceManager.TrustedSigning.Models.RevokeCertificateContent System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ }
+ public partial class TrustedSigningAccountNameAvailabilityContent : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel
+ {
+ public TrustedSigningAccountNameAvailabilityContent(string name) { }
+ public string Name { get { throw null; } }
+ Azure.ResourceManager.TrustedSigning.Models.TrustedSigningAccountNameAvailabilityContent System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { }
+ Azure.ResourceManager.TrustedSigning.Models.TrustedSigningAccountNameAvailabilityContent System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ }
+ public partial class TrustedSigningAccountNameAvailabilityResult : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel
+ {
+ internal TrustedSigningAccountNameAvailabilityResult() { }
+ public bool? IsNameAvailable { get { throw null; } }
+ public string Message { get { throw null; } }
+ public Azure.ResourceManager.TrustedSigning.Models.TrustedSigningAccountNameUnavailabilityReason? Reason { get { throw null; } }
+ Azure.ResourceManager.TrustedSigning.Models.TrustedSigningAccountNameAvailabilityResult System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { }
+ Azure.ResourceManager.TrustedSigning.Models.TrustedSigningAccountNameAvailabilityResult System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ }
+ [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)]
+ public readonly partial struct TrustedSigningAccountNameUnavailabilityReason : System.IEquatable
+ {
+ private readonly object _dummy;
+ private readonly int _dummyPrimitive;
+ public TrustedSigningAccountNameUnavailabilityReason(string value) { throw null; }
+ public static Azure.ResourceManager.TrustedSigning.Models.TrustedSigningAccountNameUnavailabilityReason AccountNameInvalid { get { throw null; } }
+ public static Azure.ResourceManager.TrustedSigning.Models.TrustedSigningAccountNameUnavailabilityReason AlreadyExists { get { throw null; } }
+ public bool Equals(Azure.ResourceManager.TrustedSigning.Models.TrustedSigningAccountNameUnavailabilityReason other) { throw null; }
+ [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
+ public override bool Equals(object obj) { throw null; }
+ [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
+ public override int GetHashCode() { throw null; }
+ public static bool operator ==(Azure.ResourceManager.TrustedSigning.Models.TrustedSigningAccountNameUnavailabilityReason left, Azure.ResourceManager.TrustedSigning.Models.TrustedSigningAccountNameUnavailabilityReason right) { throw null; }
+ public static implicit operator Azure.ResourceManager.TrustedSigning.Models.TrustedSigningAccountNameUnavailabilityReason (string value) { throw null; }
+ public static bool operator !=(Azure.ResourceManager.TrustedSigning.Models.TrustedSigningAccountNameUnavailabilityReason left, Azure.ResourceManager.TrustedSigning.Models.TrustedSigningAccountNameUnavailabilityReason right) { throw null; }
+ public override string ToString() { throw null; }
+ }
+ public partial class TrustedSigningAccountPatch : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel
+ {
+ public TrustedSigningAccountPatch() { }
+ public Azure.ResourceManager.TrustedSigning.Models.TrustedSigningSkuName? SkuName { get { throw null; } set { } }
+ public System.Collections.Generic.IDictionary Tags { get { throw null; } }
+ Azure.ResourceManager.TrustedSigning.Models.TrustedSigningAccountPatch System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { }
+ Azure.ResourceManager.TrustedSigning.Models.TrustedSigningAccountPatch System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ }
+ public partial class TrustedSigningCertificate : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel
+ {
+ internal TrustedSigningCertificate() { }
+ public System.DateTimeOffset? CreateOn { get { throw null; } }
+ public System.DateTimeOffset? EffectiveOn { get { throw null; } }
+ public System.DateTimeOffset? ExpireOn { get { throw null; } }
+ public string FailureReason { get { throw null; } }
+ public string Reason { get { throw null; } }
+ public string Remarks { get { throw null; } }
+ public System.DateTimeOffset? RequestedOn { get { throw null; } }
+ public string SerialNumber { get { throw null; } }
+ public Azure.ResourceManager.TrustedSigning.Models.TrustedSigningCertificateStatus? Status { get { throw null; } }
+ public Azure.ResourceManager.TrustedSigning.Models.CertificateRevocationStatus? StatusRevocationStatus { get { throw null; } }
+ public string SubjectName { get { throw null; } }
+ public string Thumbprint { get { throw null; } }
+ Azure.ResourceManager.TrustedSigning.Models.TrustedSigningCertificate System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { }
+ Azure.ResourceManager.TrustedSigning.Models.TrustedSigningCertificate System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ }
+ [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)]
+ public readonly partial struct TrustedSigningCertificateStatus : System.IEquatable
+ {
+ private readonly object _dummy;
+ private readonly int _dummyPrimitive;
+ public TrustedSigningCertificateStatus(string value) { throw null; }
+ public static Azure.ResourceManager.TrustedSigning.Models.TrustedSigningCertificateStatus Active { get { throw null; } }
+ public static Azure.ResourceManager.TrustedSigning.Models.TrustedSigningCertificateStatus Expired { get { throw null; } }
+ public static Azure.ResourceManager.TrustedSigning.Models.TrustedSigningCertificateStatus Revoked { get { throw null; } }
+ public bool Equals(Azure.ResourceManager.TrustedSigning.Models.TrustedSigningCertificateStatus other) { throw null; }
+ [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
+ public override bool Equals(object obj) { throw null; }
+ [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
+ public override int GetHashCode() { throw null; }
+ public static bool operator ==(Azure.ResourceManager.TrustedSigning.Models.TrustedSigningCertificateStatus left, Azure.ResourceManager.TrustedSigning.Models.TrustedSigningCertificateStatus right) { throw null; }
+ public static implicit operator Azure.ResourceManager.TrustedSigning.Models.TrustedSigningCertificateStatus (string value) { throw null; }
+ public static bool operator !=(Azure.ResourceManager.TrustedSigning.Models.TrustedSigningCertificateStatus left, Azure.ResourceManager.TrustedSigning.Models.TrustedSigningCertificateStatus right) { throw null; }
+ public override string ToString() { throw null; }
+ }
+ [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)]
+ public readonly partial struct TrustedSigningProvisioningState : System.IEquatable
+ {
+ private readonly object _dummy;
+ private readonly int _dummyPrimitive;
+ public TrustedSigningProvisioningState(string value) { throw null; }
+ public static Azure.ResourceManager.TrustedSigning.Models.TrustedSigningProvisioningState Accepted { get { throw null; } }
+ public static Azure.ResourceManager.TrustedSigning.Models.TrustedSigningProvisioningState Canceled { get { throw null; } }
+ public static Azure.ResourceManager.TrustedSigning.Models.TrustedSigningProvisioningState Deleting { get { throw null; } }
+ public static Azure.ResourceManager.TrustedSigning.Models.TrustedSigningProvisioningState Failed { get { throw null; } }
+ public static Azure.ResourceManager.TrustedSigning.Models.TrustedSigningProvisioningState Succeeded { get { throw null; } }
+ public static Azure.ResourceManager.TrustedSigning.Models.TrustedSigningProvisioningState Updating { get { throw null; } }
+ public bool Equals(Azure.ResourceManager.TrustedSigning.Models.TrustedSigningProvisioningState other) { throw null; }
+ [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
+ public override bool Equals(object obj) { throw null; }
+ [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
+ public override int GetHashCode() { throw null; }
+ public static bool operator ==(Azure.ResourceManager.TrustedSigning.Models.TrustedSigningProvisioningState left, Azure.ResourceManager.TrustedSigning.Models.TrustedSigningProvisioningState right) { throw null; }
+ public static implicit operator Azure.ResourceManager.TrustedSigning.Models.TrustedSigningProvisioningState (string value) { throw null; }
+ public static bool operator !=(Azure.ResourceManager.TrustedSigning.Models.TrustedSigningProvisioningState left, Azure.ResourceManager.TrustedSigning.Models.TrustedSigningProvisioningState right) { throw null; }
+ public override string ToString() { throw null; }
+ }
+ [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)]
+ public readonly partial struct TrustedSigningSkuName : System.IEquatable
+ {
+ private readonly object _dummy;
+ private readonly int _dummyPrimitive;
+ public TrustedSigningSkuName(string value) { throw null; }
+ public static Azure.ResourceManager.TrustedSigning.Models.TrustedSigningSkuName Basic { get { throw null; } }
+ public static Azure.ResourceManager.TrustedSigning.Models.TrustedSigningSkuName Premium { get { throw null; } }
+ public bool Equals(Azure.ResourceManager.TrustedSigning.Models.TrustedSigningSkuName other) { throw null; }
+ [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
+ public override bool Equals(object obj) { throw null; }
+ [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
+ public override int GetHashCode() { throw null; }
+ public static bool operator ==(Azure.ResourceManager.TrustedSigning.Models.TrustedSigningSkuName left, Azure.ResourceManager.TrustedSigning.Models.TrustedSigningSkuName right) { throw null; }
+ public static implicit operator Azure.ResourceManager.TrustedSigning.Models.TrustedSigningSkuName (string value) { throw null; }
+ public static bool operator !=(Azure.ResourceManager.TrustedSigning.Models.TrustedSigningSkuName left, Azure.ResourceManager.TrustedSigning.Models.TrustedSigningSkuName right) { throw null; }
+ public override string ToString() { throw null; }
+ }
+}
diff --git a/sdk/trustedsigning/Azure.ResourceManager.TrustedSigning/assets.json b/sdk/trustedsigning/Azure.ResourceManager.TrustedSigning/assets.json
new file mode 100644
index 0000000000000..ebc39fdf5aefe
--- /dev/null
+++ b/sdk/trustedsigning/Azure.ResourceManager.TrustedSigning/assets.json
@@ -0,0 +1,6 @@
+{
+ "AssetsRepo": "Azure/azure-sdk-assets",
+ "AssetsRepoPrefixPath": "net",
+ "TagPrefix": "net/trustedsigning/Azure.ResourceManager.TrustedSigning",
+ "Tag": "net/trustedsigning/Azure.ResourceManager.TrustedSigning_adf858d152"
+}
diff --git a/sdk/trustedsigning/Azure.ResourceManager.TrustedSigning/samples/Azure.ResourceManager.TrustedSigning.Samples.csproj b/sdk/trustedsigning/Azure.ResourceManager.TrustedSigning/samples/Azure.ResourceManager.TrustedSigning.Samples.csproj
new file mode 100644
index 0000000000000..ea6a6694b88a2
--- /dev/null
+++ b/sdk/trustedsigning/Azure.ResourceManager.TrustedSigning/samples/Azure.ResourceManager.TrustedSigning.Samples.csproj
@@ -0,0 +1,10 @@
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
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
new file mode 100644
index 0000000000000..5f50e049a6164
--- /dev/null
+++ b/sdk/trustedsigning/Azure.ResourceManager.TrustedSigning/samples/Generated/Samples/Sample_TrustedSigningAccountCollection.cs
@@ -0,0 +1,200 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.Threading.Tasks;
+using Azure.Core;
+using Azure.Identity;
+using Azure.ResourceManager.Resources;
+using Azure.ResourceManager.TrustedSigning.Models;
+
+namespace Azure.ResourceManager.TrustedSigning.Samples
+{
+ public partial class Sample_TrustedSigningAccountCollection
+ {
+ // Lists trusted signing accounts within a resource group.
+ [NUnit.Framework.Test]
+ [NUnit.Framework.Ignore("Only verifying that the sample builds")]
+ public async Task GetAll_ListsTrustedSigningAccountsWithinAResourceGroup()
+ {
+ // Generated from example definition: specification/codesigning/resource-manager/Microsoft.CodeSigning/preview/2024-02-05-preview/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
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this ResourceGroupResource created on azure
+ // for more information of creating ResourceGroupResource, please refer to the document of ResourceGroupResource
+ string subscriptionId = "00000000-1111-2222-3333-444444444444";
+ string resourceGroupName = "MyResourceGroup";
+ ResourceIdentifier resourceGroupResourceId = ResourceGroupResource.CreateResourceIdentifier(subscriptionId, resourceGroupName);
+ ResourceGroupResource resourceGroupResource = client.GetResourceGroupResource(resourceGroupResourceId);
+
+ // get the collection of this TrustedSigningAccountResource
+ TrustedSigningAccountCollection collection = resourceGroupResource.GetTrustedSigningAccounts();
+
+ // invoke the operation and iterate over the result
+ await foreach (TrustedSigningAccountResource item in collection.GetAllAsync())
+ {
+ // the variable item is a resource, you could call other operations on this instance as well
+ // but just for demo, we get its data from this resource instance
+ TrustedSigningAccountData resourceData = item.Data;
+ // for demo we just print out the id
+ Console.WriteLine($"Succeeded on id: {resourceData.Id}");
+ }
+
+ Console.WriteLine($"Succeeded");
+ }
+
+ // Get a Trusted Signing Account
+ [NUnit.Framework.Test]
+ [NUnit.Framework.Ignore("Only verifying that the sample builds")]
+ public async Task Get_GetATrustedSigningAccount()
+ {
+ // Generated from example definition: specification/codesigning/resource-manager/Microsoft.CodeSigning/preview/2024-02-05-preview/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
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this ResourceGroupResource created on azure
+ // for more information of creating ResourceGroupResource, please refer to the document of ResourceGroupResource
+ string subscriptionId = "00000000-1111-2222-3333-444444444444";
+ string resourceGroupName = "MyResourceGroup";
+ ResourceIdentifier resourceGroupResourceId = ResourceGroupResource.CreateResourceIdentifier(subscriptionId, resourceGroupName);
+ ResourceGroupResource resourceGroupResource = client.GetResourceGroupResource(resourceGroupResourceId);
+
+ // get the collection of this TrustedSigningAccountResource
+ TrustedSigningAccountCollection collection = resourceGroupResource.GetTrustedSigningAccounts();
+
+ // invoke the operation
+ string accountName = "MyAccount";
+ TrustedSigningAccountResource result = await collection.GetAsync(accountName);
+
+ // the variable result is a resource, you could call other operations on this instance as well
+ // but just for demo, we get its data from this resource instance
+ TrustedSigningAccountData resourceData = result.Data;
+ // for demo we just print out the id
+ Console.WriteLine($"Succeeded on id: {resourceData.Id}");
+ }
+
+ // Get a Trusted Signing Account
+ [NUnit.Framework.Test]
+ [NUnit.Framework.Ignore("Only verifying that the sample builds")]
+ public async Task Exists_GetATrustedSigningAccount()
+ {
+ // Generated from example definition: specification/codesigning/resource-manager/Microsoft.CodeSigning/preview/2024-02-05-preview/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
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this ResourceGroupResource created on azure
+ // for more information of creating ResourceGroupResource, please refer to the document of ResourceGroupResource
+ string subscriptionId = "00000000-1111-2222-3333-444444444444";
+ string resourceGroupName = "MyResourceGroup";
+ ResourceIdentifier resourceGroupResourceId = ResourceGroupResource.CreateResourceIdentifier(subscriptionId, resourceGroupName);
+ ResourceGroupResource resourceGroupResource = client.GetResourceGroupResource(resourceGroupResourceId);
+
+ // get the collection of this TrustedSigningAccountResource
+ TrustedSigningAccountCollection collection = resourceGroupResource.GetTrustedSigningAccounts();
+
+ // invoke the operation
+ string accountName = "MyAccount";
+ bool result = await collection.ExistsAsync(accountName);
+
+ Console.WriteLine($"Succeeded: {result}");
+ }
+
+ // Get a Trusted Signing Account
+ [NUnit.Framework.Test]
+ [NUnit.Framework.Ignore("Only verifying that the sample builds")]
+ public async Task GetIfExists_GetATrustedSigningAccount()
+ {
+ // Generated from example definition: specification/codesigning/resource-manager/Microsoft.CodeSigning/preview/2024-02-05-preview/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
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this ResourceGroupResource created on azure
+ // for more information of creating ResourceGroupResource, please refer to the document of ResourceGroupResource
+ string subscriptionId = "00000000-1111-2222-3333-444444444444";
+ string resourceGroupName = "MyResourceGroup";
+ ResourceIdentifier resourceGroupResourceId = ResourceGroupResource.CreateResourceIdentifier(subscriptionId, resourceGroupName);
+ ResourceGroupResource resourceGroupResource = client.GetResourceGroupResource(resourceGroupResourceId);
+
+ // get the collection of this TrustedSigningAccountResource
+ TrustedSigningAccountCollection collection = resourceGroupResource.GetTrustedSigningAccounts();
+
+ // invoke the operation
+ string accountName = "MyAccount";
+ NullableResponse response = await collection.GetIfExistsAsync(accountName);
+ TrustedSigningAccountResource result = response.HasValue ? response.Value : null;
+
+ if (result == null)
+ {
+ Console.WriteLine($"Succeeded with null as result");
+ }
+ else
+ {
+ // the variable result is a resource, you could call other operations on this instance as well
+ // but just for demo, we get its data from this resource instance
+ TrustedSigningAccountData resourceData = result.Data;
+ // for demo we just print out the id
+ Console.WriteLine($"Succeeded on id: {resourceData.Id}");
+ }
+ }
+
+ // Create a trusted Signing Account.
+ [NUnit.Framework.Test]
+ [NUnit.Framework.Ignore("Only verifying that the sample builds")]
+ public async Task CreateOrUpdate_CreateATrustedSigningAccount()
+ {
+ // Generated from example definition: specification/codesigning/resource-manager/Microsoft.CodeSigning/preview/2024-02-05-preview/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
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this ResourceGroupResource created on azure
+ // for more information of creating ResourceGroupResource, please refer to the document of ResourceGroupResource
+ string subscriptionId = "00000000-1111-2222-3333-444444444444";
+ string resourceGroupName = "MyResourceGroup";
+ ResourceIdentifier resourceGroupResourceId = ResourceGroupResource.CreateResourceIdentifier(subscriptionId, resourceGroupName);
+ ResourceGroupResource resourceGroupResource = client.GetResourceGroupResource(resourceGroupResourceId);
+
+ // get the collection of this TrustedSigningAccountResource
+ TrustedSigningAccountCollection collection = resourceGroupResource.GetTrustedSigningAccounts();
+
+ // invoke the operation
+ string accountName = "MyAccount";
+ TrustedSigningAccountData data = new TrustedSigningAccountData(new AzureLocation("westus"))
+ {
+ SkuName = TrustedSigningSkuName.Basic,
+ };
+ ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, accountName, data);
+ TrustedSigningAccountResource result = lro.Value;
+
+ // the variable result is a resource, you could call other operations on this instance as well
+ // but just for demo, we get its data from this resource instance
+ TrustedSigningAccountData resourceData = result.Data;
+ // for demo we just print out the id
+ Console.WriteLine($"Succeeded on id: {resourceData.Id}");
+ }
+ }
+}
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
new file mode 100644
index 0000000000000..bf7b824bc2019
--- /dev/null
+++ b/sdk/trustedsigning/Azure.ResourceManager.TrustedSigning/samples/Generated/Samples/Sample_TrustedSigningAccountResource.cs
@@ -0,0 +1,174 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.Threading.Tasks;
+using Azure.Core;
+using Azure.Identity;
+using Azure.ResourceManager.Resources;
+using Azure.ResourceManager.TrustedSigning.Models;
+
+namespace Azure.ResourceManager.TrustedSigning.Samples
+{
+ public partial class Sample_TrustedSigningAccountResource
+ {
+ // Checks that the trusted signing account name is available.
+ [NUnit.Framework.Test]
+ [NUnit.Framework.Ignore("Only verifying that the sample builds")]
+ public async Task CheckTrustedSigningAccountNameAvailability_ChecksThatTheTrustedSigningAccountNameIsAvailable()
+ {
+ // Generated from example definition: specification/codesigning/resource-manager/Microsoft.CodeSigning/preview/2024-02-05-preview/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
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this SubscriptionResource created on azure
+ // for more information of creating SubscriptionResource, please refer to the document of SubscriptionResource
+ string subscriptionId = "00000000-1111-2222-3333-444444444444";
+ ResourceIdentifier subscriptionResourceId = SubscriptionResource.CreateResourceIdentifier(subscriptionId);
+ SubscriptionResource subscriptionResource = client.GetSubscriptionResource(subscriptionResourceId);
+
+ // invoke the operation
+ TrustedSigningAccountNameAvailabilityContent content = new TrustedSigningAccountNameAvailabilityContent("sample-account", new ResourceType("placeholder"));
+ TrustedSigningAccountNameAvailabilityResult result = await subscriptionResource.CheckTrustedSigningAccountNameAvailabilityAsync(content);
+
+ Console.WriteLine($"Succeeded: {result}");
+ }
+
+ // Lists trusted signing accounts within a subscription.
+ [NUnit.Framework.Test]
+ [NUnit.Framework.Ignore("Only verifying that the sample builds")]
+ public async Task GetTrustedSigningAccounts_ListsTrustedSigningAccountsWithinASubscription()
+ {
+ // Generated from example definition: specification/codesigning/resource-manager/Microsoft.CodeSigning/preview/2024-02-05-preview/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
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this SubscriptionResource created on azure
+ // for more information of creating SubscriptionResource, please refer to the document of SubscriptionResource
+ string subscriptionId = "00000000-1111-2222-3333-444444444444";
+ ResourceIdentifier subscriptionResourceId = SubscriptionResource.CreateResourceIdentifier(subscriptionId);
+ SubscriptionResource subscriptionResource = client.GetSubscriptionResource(subscriptionResourceId);
+
+ // invoke the operation and iterate over the result
+ await foreach (TrustedSigningAccountResource item in subscriptionResource.GetTrustedSigningAccountsAsync())
+ {
+ // the variable item is a resource, you could call other operations on this instance as well
+ // but just for demo, we get its data from this resource instance
+ TrustedSigningAccountData resourceData = item.Data;
+ // for demo we just print out the id
+ Console.WriteLine($"Succeeded on id: {resourceData.Id}");
+ }
+
+ Console.WriteLine($"Succeeded");
+ }
+
+ // Get a Trusted Signing Account
+ [NUnit.Framework.Test]
+ [NUnit.Framework.Ignore("Only verifying that the sample builds")]
+ public async Task Get_GetATrustedSigningAccount()
+ {
+ // Generated from example definition: specification/codesigning/resource-manager/Microsoft.CodeSigning/preview/2024-02-05-preview/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
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this TrustedSigningAccountResource created on azure
+ // for more information of creating TrustedSigningAccountResource, please refer to the document of TrustedSigningAccountResource
+ string subscriptionId = "00000000-1111-2222-3333-444444444444";
+ string resourceGroupName = "MyResourceGroup";
+ string accountName = "MyAccount";
+ ResourceIdentifier trustedSigningAccountResourceId = TrustedSigningAccountResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, accountName);
+ TrustedSigningAccountResource trustedSigningAccount = client.GetTrustedSigningAccountResource(trustedSigningAccountResourceId);
+
+ // invoke the operation
+ TrustedSigningAccountResource result = await trustedSigningAccount.GetAsync();
+
+ // the variable result is a resource, you could call other operations on this instance as well
+ // but just for demo, we get its data from this resource instance
+ TrustedSigningAccountData resourceData = result.Data;
+ // for demo we just print out the id
+ Console.WriteLine($"Succeeded on id: {resourceData.Id}");
+ }
+
+ // Update a trusted signing account.
+ [NUnit.Framework.Test]
+ [NUnit.Framework.Ignore("Only verifying that the sample builds")]
+ public async Task Update_UpdateATrustedSigningAccount()
+ {
+ // Generated from example definition: specification/codesigning/resource-manager/Microsoft.CodeSigning/preview/2024-02-05-preview/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
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this TrustedSigningAccountResource created on azure
+ // for more information of creating TrustedSigningAccountResource, please refer to the document of TrustedSigningAccountResource
+ string subscriptionId = "00000000-1111-2222-3333-444444444444";
+ string resourceGroupName = "MyResourceGroup";
+ string accountName = "MyAccount";
+ ResourceIdentifier trustedSigningAccountResourceId = TrustedSigningAccountResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, accountName);
+ TrustedSigningAccountResource trustedSigningAccount = client.GetTrustedSigningAccountResource(trustedSigningAccountResourceId);
+
+ // invoke the operation
+ TrustedSigningAccountPatch patch = new TrustedSigningAccountPatch()
+ {
+ Tags =
+{
+["key1"] = "value1",
+},
+ };
+ ArmOperation lro = await trustedSigningAccount.UpdateAsync(WaitUntil.Completed, patch);
+ TrustedSigningAccountResource result = lro.Value;
+
+ // the variable result is a resource, you could call other operations on this instance as well
+ // but just for demo, we get its data from this resource instance
+ TrustedSigningAccountData resourceData = result.Data;
+ // for demo we just print out the id
+ Console.WriteLine($"Succeeded on id: {resourceData.Id}");
+ }
+
+ // Delete a trusted signing account.
+ [NUnit.Framework.Test]
+ [NUnit.Framework.Ignore("Only verifying that the sample builds")]
+ public async Task Delete_DeleteATrustedSigningAccount()
+ {
+ // Generated from example definition: specification/codesigning/resource-manager/Microsoft.CodeSigning/preview/2024-02-05-preview/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
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this TrustedSigningAccountResource created on azure
+ // for more information of creating TrustedSigningAccountResource, please refer to the document of TrustedSigningAccountResource
+ string subscriptionId = "00000000-1111-2222-3333-444444444444";
+ string resourceGroupName = "MyResourceGroup";
+ string accountName = "MyAccount";
+ ResourceIdentifier trustedSigningAccountResourceId = TrustedSigningAccountResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, accountName);
+ TrustedSigningAccountResource trustedSigningAccount = client.GetTrustedSigningAccountResource(trustedSigningAccountResourceId);
+
+ // invoke the operation
+ await trustedSigningAccount.DeleteAsync(WaitUntil.Completed);
+
+ Console.WriteLine($"Succeeded");
+ }
+ }
+}
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
new file mode 100644
index 0000000000000..dd66b702f9aed
--- /dev/null
+++ b/sdk/trustedsigning/Azure.ResourceManager.TrustedSigning/samples/Generated/Samples/Sample_TrustedSigningCertificateProfileCollection.cs
@@ -0,0 +1,207 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.Threading.Tasks;
+using Azure.Core;
+using Azure.Identity;
+using Azure.ResourceManager.TrustedSigning.Models;
+
+namespace Azure.ResourceManager.TrustedSigning.Samples
+{
+ public partial class Sample_TrustedSigningCertificateProfileCollection
+ {
+ // List certificate profiles under a trusted signing account.
+ [NUnit.Framework.Test]
+ [NUnit.Framework.Ignore("Only verifying that the sample builds")]
+ public async Task GetAll_ListCertificateProfilesUnderATrustedSigningAccount()
+ {
+ // Generated from example definition: specification/codesigning/resource-manager/Microsoft.CodeSigning/preview/2024-02-05-preview/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
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this TrustedSigningAccountResource created on azure
+ // for more information of creating TrustedSigningAccountResource, please refer to the document of TrustedSigningAccountResource
+ string subscriptionId = "00000000-1111-2222-3333-444444444444";
+ string resourceGroupName = "MyResourceGroup";
+ string accountName = "MyAccount";
+ ResourceIdentifier trustedSigningAccountResourceId = TrustedSigningAccountResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, accountName);
+ TrustedSigningAccountResource trustedSigningAccount = client.GetTrustedSigningAccountResource(trustedSigningAccountResourceId);
+
+ // get the collection of this TrustedSigningCertificateProfileResource
+ TrustedSigningCertificateProfileCollection collection = trustedSigningAccount.GetTrustedSigningCertificateProfiles();
+
+ // invoke the operation and iterate over the result
+ await foreach (TrustedSigningCertificateProfileResource item in collection.GetAllAsync())
+ {
+ // the variable item is a resource, you could call other operations on this instance as well
+ // but just for demo, we get its data from this resource instance
+ TrustedSigningCertificateProfileData resourceData = item.Data;
+ // for demo we just print out the id
+ Console.WriteLine($"Succeeded on id: {resourceData.Id}");
+ }
+
+ Console.WriteLine($"Succeeded");
+ }
+
+ // Get details of a certificate profile.
+ [NUnit.Framework.Test]
+ [NUnit.Framework.Ignore("Only verifying that the sample builds")]
+ public async Task Get_GetDetailsOfACertificateProfile()
+ {
+ // Generated from example definition: specification/codesigning/resource-manager/Microsoft.CodeSigning/preview/2024-02-05-preview/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
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this TrustedSigningAccountResource created on azure
+ // for more information of creating TrustedSigningAccountResource, please refer to the document of TrustedSigningAccountResource
+ string subscriptionId = "00000000-1111-2222-3333-444444444444";
+ string resourceGroupName = "MyResourceGroup";
+ string accountName = "MyAccount";
+ ResourceIdentifier trustedSigningAccountResourceId = TrustedSigningAccountResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, accountName);
+ TrustedSigningAccountResource trustedSigningAccount = client.GetTrustedSigningAccountResource(trustedSigningAccountResourceId);
+
+ // get the collection of this TrustedSigningCertificateProfileResource
+ TrustedSigningCertificateProfileCollection collection = trustedSigningAccount.GetTrustedSigningCertificateProfiles();
+
+ // invoke the operation
+ string profileName = "profileA";
+ TrustedSigningCertificateProfileResource result = await collection.GetAsync(profileName);
+
+ // the variable result is a resource, you could call other operations on this instance as well
+ // but just for demo, we get its data from this resource instance
+ TrustedSigningCertificateProfileData resourceData = result.Data;
+ // for demo we just print out the id
+ Console.WriteLine($"Succeeded on id: {resourceData.Id}");
+ }
+
+ // Get details of a certificate profile.
+ [NUnit.Framework.Test]
+ [NUnit.Framework.Ignore("Only verifying that the sample builds")]
+ public async Task Exists_GetDetailsOfACertificateProfile()
+ {
+ // Generated from example definition: specification/codesigning/resource-manager/Microsoft.CodeSigning/preview/2024-02-05-preview/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
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this TrustedSigningAccountResource created on azure
+ // for more information of creating TrustedSigningAccountResource, please refer to the document of TrustedSigningAccountResource
+ string subscriptionId = "00000000-1111-2222-3333-444444444444";
+ string resourceGroupName = "MyResourceGroup";
+ string accountName = "MyAccount";
+ ResourceIdentifier trustedSigningAccountResourceId = TrustedSigningAccountResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, accountName);
+ TrustedSigningAccountResource trustedSigningAccount = client.GetTrustedSigningAccountResource(trustedSigningAccountResourceId);
+
+ // get the collection of this TrustedSigningCertificateProfileResource
+ TrustedSigningCertificateProfileCollection collection = trustedSigningAccount.GetTrustedSigningCertificateProfiles();
+
+ // invoke the operation
+ string profileName = "profileA";
+ bool result = await collection.ExistsAsync(profileName);
+
+ Console.WriteLine($"Succeeded: {result}");
+ }
+
+ // Get details of a certificate profile.
+ [NUnit.Framework.Test]
+ [NUnit.Framework.Ignore("Only verifying that the sample builds")]
+ public async Task GetIfExists_GetDetailsOfACertificateProfile()
+ {
+ // Generated from example definition: specification/codesigning/resource-manager/Microsoft.CodeSigning/preview/2024-02-05-preview/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
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this TrustedSigningAccountResource created on azure
+ // for more information of creating TrustedSigningAccountResource, please refer to the document of TrustedSigningAccountResource
+ string subscriptionId = "00000000-1111-2222-3333-444444444444";
+ string resourceGroupName = "MyResourceGroup";
+ string accountName = "MyAccount";
+ ResourceIdentifier trustedSigningAccountResourceId = TrustedSigningAccountResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, accountName);
+ TrustedSigningAccountResource trustedSigningAccount = client.GetTrustedSigningAccountResource(trustedSigningAccountResourceId);
+
+ // get the collection of this TrustedSigningCertificateProfileResource
+ TrustedSigningCertificateProfileCollection collection = trustedSigningAccount.GetTrustedSigningCertificateProfiles();
+
+ // invoke the operation
+ string profileName = "profileA";
+ NullableResponse response = await collection.GetIfExistsAsync(profileName);
+ TrustedSigningCertificateProfileResource result = response.HasValue ? response.Value : null;
+
+ if (result == null)
+ {
+ Console.WriteLine($"Succeeded with null as result");
+ }
+ else
+ {
+ // the variable result is a resource, you could call other operations on this instance as well
+ // but just for demo, we get its data from this resource instance
+ TrustedSigningCertificateProfileData resourceData = result.Data;
+ // for demo we just print out the id
+ Console.WriteLine($"Succeeded on id: {resourceData.Id}");
+ }
+ }
+
+ // Create a certificate profile.
+ [NUnit.Framework.Test]
+ [NUnit.Framework.Ignore("Only verifying that the sample builds")]
+ public async Task CreateOrUpdate_CreateACertificateProfile()
+ {
+ // Generated from example definition: specification/codesigning/resource-manager/Microsoft.CodeSigning/preview/2024-02-05-preview/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
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this TrustedSigningAccountResource created on azure
+ // for more information of creating TrustedSigningAccountResource, please refer to the document of TrustedSigningAccountResource
+ string subscriptionId = "00000000-1111-2222-3333-444444444444";
+ string resourceGroupName = "MyResourceGroup";
+ string accountName = "MyAccount";
+ ResourceIdentifier trustedSigningAccountResourceId = TrustedSigningAccountResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, accountName);
+ TrustedSigningAccountResource trustedSigningAccount = client.GetTrustedSigningAccountResource(trustedSigningAccountResourceId);
+
+ // get the collection of this TrustedSigningCertificateProfileResource
+ TrustedSigningCertificateProfileCollection collection = trustedSigningAccount.GetTrustedSigningCertificateProfiles();
+
+ // invoke the operation
+ string profileName = "profileA";
+ TrustedSigningCertificateProfileData data = new TrustedSigningCertificateProfileData()
+ {
+ ProfileType = CertificateProfileType.PublicTrust,
+ IncludeStreetAddress = false,
+ IncludePostalCode = true,
+ IdentityValidationId = "00000000-1234-5678-3333-444444444444",
+ };
+ ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, profileName, data);
+ TrustedSigningCertificateProfileResource result = lro.Value;
+
+ // the variable result is a resource, you could call other operations on this instance as well
+ // but just for demo, we get its data from this resource instance
+ TrustedSigningCertificateProfileData resourceData = result.Data;
+ // for demo we just print out the id
+ Console.WriteLine($"Succeeded on id: {resourceData.Id}");
+ }
+ }
+}
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
new file mode 100644
index 0000000000000..e0d74d1f52d4d
--- /dev/null
+++ b/sdk/trustedsigning/Azure.ResourceManager.TrustedSigning/samples/Generated/Samples/Sample_TrustedSigningCertificateProfileResource.cs
@@ -0,0 +1,150 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.Threading.Tasks;
+using Azure.Core;
+using Azure.Identity;
+using Azure.ResourceManager.TrustedSigning.Models;
+
+namespace Azure.ResourceManager.TrustedSigning.Samples
+{
+ public partial class Sample_TrustedSigningCertificateProfileResource
+ {
+ // Get details of a certificate profile.
+ [NUnit.Framework.Test]
+ [NUnit.Framework.Ignore("Only verifying that the sample builds")]
+ public async Task Get_GetDetailsOfACertificateProfile()
+ {
+ // Generated from example definition: specification/codesigning/resource-manager/Microsoft.CodeSigning/preview/2024-02-05-preview/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
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this TrustedSigningCertificateProfileResource created on azure
+ // for more information of creating TrustedSigningCertificateProfileResource, please refer to the document of TrustedSigningCertificateProfileResource
+ string subscriptionId = "00000000-1111-2222-3333-444444444444";
+ string resourceGroupName = "MyResourceGroup";
+ string accountName = "MyAccount";
+ string profileName = "profileA";
+ ResourceIdentifier trustedSigningCertificateProfileResourceId = TrustedSigningCertificateProfileResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, accountName, profileName);
+ TrustedSigningCertificateProfileResource trustedSigningCertificateProfile = client.GetTrustedSigningCertificateProfileResource(trustedSigningCertificateProfileResourceId);
+
+ // invoke the operation
+ TrustedSigningCertificateProfileResource result = await trustedSigningCertificateProfile.GetAsync();
+
+ // the variable result is a resource, you could call other operations on this instance as well
+ // but just for demo, we get its data from this resource instance
+ TrustedSigningCertificateProfileData resourceData = result.Data;
+ // for demo we just print out the id
+ Console.WriteLine($"Succeeded on id: {resourceData.Id}");
+ }
+
+ // Create a certificate profile.
+ [NUnit.Framework.Test]
+ [NUnit.Framework.Ignore("Only verifying that the sample builds")]
+ public async Task Update_CreateACertificateProfile()
+ {
+ // Generated from example definition: specification/codesigning/resource-manager/Microsoft.CodeSigning/preview/2024-02-05-preview/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
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this TrustedSigningCertificateProfileResource created on azure
+ // for more information of creating TrustedSigningCertificateProfileResource, please refer to the document of TrustedSigningCertificateProfileResource
+ string subscriptionId = "00000000-1111-2222-3333-444444444444";
+ string resourceGroupName = "MyResourceGroup";
+ string accountName = "MyAccount";
+ string profileName = "profileA";
+ ResourceIdentifier trustedSigningCertificateProfileResourceId = TrustedSigningCertificateProfileResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, accountName, profileName);
+ TrustedSigningCertificateProfileResource trustedSigningCertificateProfile = client.GetTrustedSigningCertificateProfileResource(trustedSigningCertificateProfileResourceId);
+
+ // invoke the operation
+ TrustedSigningCertificateProfileData data = new TrustedSigningCertificateProfileData()
+ {
+ ProfileType = CertificateProfileType.PublicTrust,
+ IncludeStreetAddress = false,
+ IncludePostalCode = true,
+ IdentityValidationId = "00000000-1234-5678-3333-444444444444",
+ };
+ ArmOperation lro = await trustedSigningCertificateProfile.UpdateAsync(WaitUntil.Completed, data);
+ TrustedSigningCertificateProfileResource result = lro.Value;
+
+ // the variable result is a resource, you could call other operations on this instance as well
+ // but just for demo, we get its data from this resource instance
+ TrustedSigningCertificateProfileData resourceData = result.Data;
+ // for demo we just print out the id
+ Console.WriteLine($"Succeeded on id: {resourceData.Id}");
+ }
+
+ // Delete a certificate profile.
+ [NUnit.Framework.Test]
+ [NUnit.Framework.Ignore("Only verifying that the sample builds")]
+ public async Task Delete_DeleteACertificateProfile()
+ {
+ // Generated from example definition: specification/codesigning/resource-manager/Microsoft.CodeSigning/preview/2024-02-05-preview/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
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this TrustedSigningCertificateProfileResource created on azure
+ // for more information of creating TrustedSigningCertificateProfileResource, please refer to the document of TrustedSigningCertificateProfileResource
+ string subscriptionId = "00000000-1111-2222-3333-444444444444";
+ string resourceGroupName = "MyResourceGroup";
+ string accountName = "MyAccount";
+ string profileName = "profileA";
+ ResourceIdentifier trustedSigningCertificateProfileResourceId = TrustedSigningCertificateProfileResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, accountName, profileName);
+ TrustedSigningCertificateProfileResource trustedSigningCertificateProfile = client.GetTrustedSigningCertificateProfileResource(trustedSigningCertificateProfileResourceId);
+
+ // invoke the operation
+ await trustedSigningCertificateProfile.DeleteAsync(WaitUntil.Completed);
+
+ Console.WriteLine($"Succeeded");
+ }
+
+ // Revoke a certificate under a certificate profile.
+ [NUnit.Framework.Test]
+ [NUnit.Framework.Ignore("Only verifying that the sample builds")]
+ public async Task RevokeCertificate_RevokeACertificateUnderACertificateProfile()
+ {
+ // Generated from example definition: specification/codesigning/resource-manager/Microsoft.CodeSigning/preview/2024-02-05-preview/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
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this TrustedSigningCertificateProfileResource created on azure
+ // for more information of creating TrustedSigningCertificateProfileResource, please refer to the document of TrustedSigningCertificateProfileResource
+ string subscriptionId = "00000000-1111-2222-3333-444444444444";
+ string resourceGroupName = "MyResourceGroup";
+ string accountName = "MyAccount";
+ string profileName = "profileA";
+ ResourceIdentifier trustedSigningCertificateProfileResourceId = TrustedSigningCertificateProfileResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, accountName, profileName);
+ TrustedSigningCertificateProfileResource trustedSigningCertificateProfile = client.GetTrustedSigningCertificateProfileResource(trustedSigningCertificateProfileResourceId);
+
+ // invoke the operation
+ RevokeCertificateContent content = new RevokeCertificateContent("xxxxxxxxxxxxxxxxxx", "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx", DateTimeOffset.Parse("2023-11-12T23:40:25+00:00"), "KeyCompromised")
+ {
+ Remarks = "test",
+ };
+ await trustedSigningCertificateProfile.RevokeCertificateAsync(content);
+
+ Console.WriteLine($"Succeeded");
+ }
+ }
+}
diff --git a/sdk/trustedsigning/Azure.ResourceManager.TrustedSigning/src/Azure.ResourceManager.TrustedSigning.csproj b/sdk/trustedsigning/Azure.ResourceManager.TrustedSigning/src/Azure.ResourceManager.TrustedSigning.csproj
new file mode 100644
index 0000000000000..ec04ed95a27b9
--- /dev/null
+++ b/sdk/trustedsigning/Azure.ResourceManager.TrustedSigning/src/Azure.ResourceManager.TrustedSigning.csproj
@@ -0,0 +1,8 @@
+
+
+ 1.0.0-beta.1
+ Azure.ResourceManager.TrustedSigning
+ Azure Resource Manager client SDK for Azure resource provider TrustedSigning.
+ azure;management;arm;resource manager;trustedsigning
+
+
diff --git a/sdk/trustedsigning/Azure.ResourceManager.TrustedSigning/src/Generated/ArmTrustedSigningModelFactory.cs b/sdk/trustedsigning/Azure.ResourceManager.TrustedSigning/src/Generated/ArmTrustedSigningModelFactory.cs
new file mode 100644
index 0000000000000..b24481989a418
--- /dev/null
+++ b/sdk/trustedsigning/Azure.ResourceManager.TrustedSigning/src/Generated/ArmTrustedSigningModelFactory.cs
@@ -0,0 +1,163 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using Azure.Core;
+using Azure.ResourceManager.Models;
+
+namespace Azure.ResourceManager.TrustedSigning.Models
+{
+ /// Model factory for models.
+ public static partial class ArmTrustedSigningModelFactory
+ {
+ /// Initializes a new instance of .
+ /// 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.
+ /// The reason that a trusted signing account name could not be used. The Reason element is only returned if nameAvailable is false.
+ /// An error message explaining the Reason value in more detail.
+ /// A new instance for mocking.
+ public static TrustedSigningAccountNameAvailabilityResult TrustedSigningAccountNameAvailabilityResult(bool? isNameAvailable = null, TrustedSigningAccountNameUnavailabilityReason? reason = null, string message = null)
+ {
+ return new TrustedSigningAccountNameAvailabilityResult(isNameAvailable, reason, message, serializedAdditionalRawData: null);
+ }
+
+ /// Initializes a new instance of .
+ /// The id.
+ /// The name.
+ /// The resourceType.
+ /// The systemData.
+ /// The tags.
+ /// The location.
+ /// The URI of the trusted signing account which is used during signing files.
+ /// SKU of the trusted signing account.
+ /// Status of the current operation on trusted signing account.
+ /// A new instance for mocking.
+ public static TrustedSigningAccountData TrustedSigningAccountData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, Uri accountUri = null, TrustedSigningSkuName? skuName = null, TrustedSigningProvisioningState? provisioningState = null)
+ {
+ tags ??= new Dictionary();
+
+ return new TrustedSigningAccountData(
+ id,
+ name,
+ resourceType,
+ systemData,
+ tags,
+ location,
+ accountUri,
+ skuName.HasValue ? new TrustedSigningAccountSku(skuName.Value, serializedAdditionalRawData: null) : null,
+ provisioningState,
+ serializedAdditionalRawData: null);
+ }
+
+ /// Initializes a new instance of .
+ /// The id.
+ /// The name.
+ /// 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)
+ {
+ certificates ??= new List();
+
+ return new TrustedSigningCertificateProfileData(
+ id,
+ name,
+ resourceType,
+ systemData,
+ profileType,
+ commonName,
+ organization,
+ organizationUnit,
+ streetAddress,
+ includeStreetAddress,
+ city,
+ includeCity,
+ state,
+ includeState,
+ country,
+ includeCountry,
+ postalCode,
+ includePostalCode,
+ enhancedKeyUsage,
+ identityValidationId,
+ provisioningState,
+ status,
+ certificates?.ToList(),
+ serializedAdditionalRawData: null);
+ }
+
+ /// Initializes a new instance of .
+ /// Serial number of the certificate.
+ /// Subject name of the certificate.
+ /// Thumbprint of the certificate.
+ /// Certificate created date.
+ /// Certificate expiry date.
+ /// Status of the certificate.
+ /// The timestamp when the revocation is requested.
+ /// The timestamp when the revocation is effective.
+ /// Reason for revocation.
+ /// Remarks for the revocation.
+ /// 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)
+ {
+ return new TrustedSigningCertificate(
+ serialNumber,
+ subjectName,
+ thumbprint,
+ createOn,
+ expireOn,
+ status,
+ requestedOn,
+ effectiveOn,
+ reason,
+ remarks,
+ statusRevocationStatus,
+ failureReason,
+ serializedAdditionalRawData: null);
+ }
+
+ /// Initializes a new instance of .
+ /// Serial number of the certificate.
+ /// Thumbprint of the certificate.
+ /// The timestamp when the revocation is effective.
+ /// Reason for the revocation.
+ /// Remarks for the revocation.
+ /// A new instance for mocking.
+ public static RevokeCertificateContent RevokeCertificateContent(string serialNumber = null, string thumbprint = null, DateTimeOffset effectiveOn = default, string reason = null, string remarks = null)
+ {
+ return new RevokeCertificateContent(
+ serialNumber,
+ thumbprint,
+ effectiveOn,
+ reason,
+ remarks,
+ serializedAdditionalRawData: null);
+ }
+ }
+}
diff --git a/sdk/trustedsigning/Azure.ResourceManager.TrustedSigning/src/Generated/Extensions/MockableTrustedSigningArmClient.cs b/sdk/trustedsigning/Azure.ResourceManager.TrustedSigning/src/Generated/Extensions/MockableTrustedSigningArmClient.cs
new file mode 100644
index 0000000000000..5ae11f82dbe99
--- /dev/null
+++ b/sdk/trustedsigning/Azure.ResourceManager.TrustedSigning/src/Generated/Extensions/MockableTrustedSigningArmClient.cs
@@ -0,0 +1,61 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using Azure.Core;
+
+namespace Azure.ResourceManager.TrustedSigning.Mocking
+{
+ /// A class to add extension methods to ArmClient.
+ public partial class MockableTrustedSigningArmClient : ArmResource
+ {
+ /// Initializes a new instance of the class for mocking.
+ protected MockableTrustedSigningArmClient()
+ {
+ }
+
+ /// Initializes a new instance of the class.
+ /// The client parameters to use in these operations.
+ /// The identifier of the resource that is the target of operations.
+ internal MockableTrustedSigningArmClient(ArmClient client, ResourceIdentifier id) : base(client, id)
+ {
+ }
+
+ internal MockableTrustedSigningArmClient(ArmClient client) : this(client, ResourceIdentifier.Root)
+ {
+ }
+
+ private string GetApiVersionOrNull(ResourceType resourceType)
+ {
+ TryGetApiVersion(resourceType, out string apiVersion);
+ return apiVersion;
+ }
+
+ ///
+ /// Gets an object representing a along with the instance operations that can be performed on it but with no data.
+ /// You can use to create a from its components.
+ ///
+ /// The resource ID of the resource to get.
+ /// Returns a object.
+ public virtual TrustedSigningAccountResource GetTrustedSigningAccountResource(ResourceIdentifier id)
+ {
+ TrustedSigningAccountResource.ValidateResourceId(id);
+ return new TrustedSigningAccountResource(Client, id);
+ }
+
+ ///
+ /// Gets an object representing a along with the instance operations that can be performed on it but with no data.
+ /// You can use to create a from its components.
+ ///
+ /// The resource ID of the resource to get.
+ /// Returns a object.
+ public virtual TrustedSigningCertificateProfileResource GetTrustedSigningCertificateProfileResource(ResourceIdentifier id)
+ {
+ TrustedSigningCertificateProfileResource.ValidateResourceId(id);
+ return new TrustedSigningCertificateProfileResource(Client, id);
+ }
+ }
+}
diff --git a/sdk/trustedsigning/Azure.ResourceManager.TrustedSigning/src/Generated/Extensions/MockableTrustedSigningResourceGroupResource.cs b/sdk/trustedsigning/Azure.ResourceManager.TrustedSigning/src/Generated/Extensions/MockableTrustedSigningResourceGroupResource.cs
new file mode 100644
index 0000000000000..8e306bbfb17cf
--- /dev/null
+++ b/sdk/trustedsigning/Azure.ResourceManager.TrustedSigning/src/Generated/Extensions/MockableTrustedSigningResourceGroupResource.cs
@@ -0,0 +1,105 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.Threading;
+using System.Threading.Tasks;
+using Azure.Core;
+
+namespace Azure.ResourceManager.TrustedSigning.Mocking
+{
+ /// A class to add extension methods to ResourceGroupResource.
+ public partial class MockableTrustedSigningResourceGroupResource : ArmResource
+ {
+ /// Initializes a new instance of the class for mocking.
+ protected MockableTrustedSigningResourceGroupResource()
+ {
+ }
+
+ /// Initializes a new instance of the class.
+ /// The client parameters to use in these operations.
+ /// The identifier of the resource that is the target of operations.
+ internal MockableTrustedSigningResourceGroupResource(ArmClient client, ResourceIdentifier id) : base(client, id)
+ {
+ }
+
+ private string GetApiVersionOrNull(ResourceType resourceType)
+ {
+ TryGetApiVersion(resourceType, out string apiVersion);
+ return apiVersion;
+ }
+
+ /// Gets a collection of TrustedSigningAccountResources in the ResourceGroupResource.
+ /// An object representing collection of TrustedSigningAccountResources and their operations over a TrustedSigningAccountResource.
+ public virtual TrustedSigningAccountCollection GetTrustedSigningAccounts()
+ {
+ return GetCachedClient(client => new TrustedSigningAccountCollection(client, Id));
+ }
+
+ ///
+ /// Get a trusted Signing Account.
+ ///
+ ///
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CodeSigning/codeSigningAccounts/{accountName}
+ ///
+ ///
+ /// Operation Id
+ /// CodeSigningAccounts_Get
+ ///
+ ///
+ /// Default Api Version
+ /// 2024-02-05-preview
+ ///
+ ///
+ /// Resource
+ ///
+ ///
+ ///
+ ///
+ /// Trusted Signing account name.
+ /// The cancellation token to use.
+ /// is null.
+ /// is an empty string, and was expected to be non-empty.
+ [ForwardsClientCalls]
+ public virtual async Task> GetTrustedSigningAccountAsync(string accountName, CancellationToken cancellationToken = default)
+ {
+ return await GetTrustedSigningAccounts().GetAsync(accountName, cancellationToken).ConfigureAwait(false);
+ }
+
+ ///
+ /// Get a trusted Signing Account.
+ ///
+ ///
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CodeSigning/codeSigningAccounts/{accountName}
+ ///
+ ///
+ /// Operation Id
+ /// CodeSigningAccounts_Get
+ ///
+ ///
+ /// Default Api Version
+ /// 2024-02-05-preview
+ ///
+ ///
+ /// Resource
+ ///
+ ///
+ ///
+ ///
+ /// Trusted Signing account name.
+ /// The cancellation token to use.
+ /// is null.
+ /// is an empty string, and was expected to be non-empty.
+ [ForwardsClientCalls]
+ public virtual Response GetTrustedSigningAccount(string accountName, CancellationToken cancellationToken = default)
+ {
+ return GetTrustedSigningAccounts().Get(accountName, cancellationToken);
+ }
+ }
+}
diff --git a/sdk/trustedsigning/Azure.ResourceManager.TrustedSigning/src/Generated/Extensions/MockableTrustedSigningSubscriptionResource.cs b/sdk/trustedsigning/Azure.ResourceManager.TrustedSigning/src/Generated/Extensions/MockableTrustedSigningSubscriptionResource.cs
new file mode 100644
index 0000000000000..c045cd4d3f9d2
--- /dev/null
+++ b/sdk/trustedsigning/Azure.ResourceManager.TrustedSigning/src/Generated/Extensions/MockableTrustedSigningSubscriptionResource.cs
@@ -0,0 +1,189 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.Threading;
+using System.Threading.Tasks;
+using Autorest.CSharp.Core;
+using Azure.Core;
+using Azure.Core.Pipeline;
+using Azure.ResourceManager.TrustedSigning.Models;
+
+namespace Azure.ResourceManager.TrustedSigning.Mocking
+{
+ /// A class to add extension methods to SubscriptionResource.
+ public partial class MockableTrustedSigningSubscriptionResource : ArmResource
+ {
+ private ClientDiagnostics _trustedSigningAccountCodeSigningAccountsClientDiagnostics;
+ private CodeSigningAccountsRestOperations _trustedSigningAccountCodeSigningAccountsRestClient;
+
+ /// Initializes a new instance of the class for mocking.
+ protected MockableTrustedSigningSubscriptionResource()
+ {
+ }
+
+ /// Initializes a new instance of the class.
+ /// The client parameters to use in these operations.
+ /// The identifier of the resource that is the target of operations.
+ internal MockableTrustedSigningSubscriptionResource(ArmClient client, ResourceIdentifier id) : base(client, id)
+ {
+ }
+
+ private ClientDiagnostics TrustedSigningAccountCodeSigningAccountsClientDiagnostics => _trustedSigningAccountCodeSigningAccountsClientDiagnostics ??= new ClientDiagnostics("Azure.ResourceManager.TrustedSigning", TrustedSigningAccountResource.ResourceType.Namespace, Diagnostics);
+ private CodeSigningAccountsRestOperations TrustedSigningAccountCodeSigningAccountsRestClient => _trustedSigningAccountCodeSigningAccountsRestClient ??= new CodeSigningAccountsRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, GetApiVersionOrNull(TrustedSigningAccountResource.ResourceType));
+
+ private string GetApiVersionOrNull(ResourceType resourceType)
+ {
+ TryGetApiVersion(resourceType, out string apiVersion);
+ return apiVersion;
+ }
+
+ ///
+ /// Checks that the trusted signing account name is valid and is not already in use.
+ ///
+ ///
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/providers/Microsoft.CodeSigning/checkNameAvailability
+ ///
+ ///
+ /// Operation Id
+ /// CodeSigningAccounts_CheckNameAvailability
+ ///
+ ///
+ /// Default Api Version
+ /// 2024-02-05-preview
+ ///
+ ///
+ /// Resource
+ ///
+ ///
+ ///
+ ///
+ /// The CheckAvailability request.
+ /// The cancellation token to use.
+ /// is null.
+ public virtual async Task> CheckTrustedSigningAccountNameAvailabilityAsync(TrustedSigningAccountNameAvailabilityContent content, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNull(content, nameof(content));
+
+ using var scope = TrustedSigningAccountCodeSigningAccountsClientDiagnostics.CreateScope("MockableTrustedSigningSubscriptionResource.CheckTrustedSigningAccountNameAvailability");
+ scope.Start();
+ try
+ {
+ var response = await TrustedSigningAccountCodeSigningAccountsRestClient.CheckNameAvailabilityAsync(Id.SubscriptionId, content, cancellationToken).ConfigureAwait(false);
+ return response;
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+
+ ///
+ /// Checks that the trusted signing account name is valid and is not already in use.
+ ///
+ ///
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/providers/Microsoft.CodeSigning/checkNameAvailability
+ ///
+ ///
+ /// Operation Id
+ /// CodeSigningAccounts_CheckNameAvailability
+ ///
+ ///
+ /// Default Api Version
+ /// 2024-02-05-preview
+ ///
+ ///
+ /// Resource
+ ///
+ ///
+ ///
+ ///
+ /// The CheckAvailability request.
+ /// The cancellation token to use.
+ /// is null.
+ public virtual Response CheckTrustedSigningAccountNameAvailability(TrustedSigningAccountNameAvailabilityContent content, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNull(content, nameof(content));
+
+ using var scope = TrustedSigningAccountCodeSigningAccountsClientDiagnostics.CreateScope("MockableTrustedSigningSubscriptionResource.CheckTrustedSigningAccountNameAvailability");
+ scope.Start();
+ try
+ {
+ var response = TrustedSigningAccountCodeSigningAccountsRestClient.CheckNameAvailability(Id.SubscriptionId, content, cancellationToken);
+ return response;
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+
+ ///
+ /// Lists trusted signing accounts within a subscription.
+ ///
+ ///
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/providers/Microsoft.CodeSigning/codeSigningAccounts
+ ///
+ ///
+ /// Operation Id
+ /// CodeSigningAccounts_ListBySubscription
+ ///
+ ///
+ /// Default Api Version
+ /// 2024-02-05-preview
+ ///
+ ///
+ /// Resource
+ ///
+ ///
+ ///
+ ///
+ /// The cancellation token to use.
+ /// An async collection of that may take multiple service requests to iterate over.
+ public virtual AsyncPageable GetTrustedSigningAccountsAsync(CancellationToken cancellationToken = default)
+ {
+ HttpMessage FirstPageRequest(int? pageSizeHint) => TrustedSigningAccountCodeSigningAccountsRestClient.CreateListBySubscriptionRequest(Id.SubscriptionId);
+ HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => TrustedSigningAccountCodeSigningAccountsRestClient.CreateListBySubscriptionNextPageRequest(nextLink, Id.SubscriptionId);
+ return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => new TrustedSigningAccountResource(Client, TrustedSigningAccountData.DeserializeTrustedSigningAccountData(e)), TrustedSigningAccountCodeSigningAccountsClientDiagnostics, Pipeline, "MockableTrustedSigningSubscriptionResource.GetTrustedSigningAccounts", "value", "nextLink", cancellationToken);
+ }
+
+ ///
+ /// Lists trusted signing accounts within a subscription.
+ ///
+ ///
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/providers/Microsoft.CodeSigning/codeSigningAccounts
+ ///
+ ///
+ /// Operation Id
+ /// CodeSigningAccounts_ListBySubscription
+ ///
+ ///
+ /// Default Api Version
+ /// 2024-02-05-preview
+ ///
+ ///
+ /// Resource
+ ///
+ ///
+ ///
+ ///
+ /// The cancellation token to use.
+ /// A collection of that may take multiple service requests to iterate over.
+ public virtual Pageable GetTrustedSigningAccounts(CancellationToken cancellationToken = default)
+ {
+ HttpMessage FirstPageRequest(int? pageSizeHint) => TrustedSigningAccountCodeSigningAccountsRestClient.CreateListBySubscriptionRequest(Id.SubscriptionId);
+ HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => TrustedSigningAccountCodeSigningAccountsRestClient.CreateListBySubscriptionNextPageRequest(nextLink, Id.SubscriptionId);
+ return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new TrustedSigningAccountResource(Client, TrustedSigningAccountData.DeserializeTrustedSigningAccountData(e)), TrustedSigningAccountCodeSigningAccountsClientDiagnostics, Pipeline, "MockableTrustedSigningSubscriptionResource.GetTrustedSigningAccounts", "value", "nextLink", cancellationToken);
+ }
+ }
+}
diff --git a/sdk/trustedsigning/Azure.ResourceManager.TrustedSigning/src/Generated/Extensions/TrustedSigningExtensions.cs b/sdk/trustedsigning/Azure.ResourceManager.TrustedSigning/src/Generated/Extensions/TrustedSigningExtensions.cs
new file mode 100644
index 0000000000000..eb40875d5f75f
--- /dev/null
+++ b/sdk/trustedsigning/Azure.ResourceManager.TrustedSigning/src/Generated/Extensions/TrustedSigningExtensions.cs
@@ -0,0 +1,311 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.Threading;
+using System.Threading.Tasks;
+using Azure.Core;
+using Azure.ResourceManager.Resources;
+using Azure.ResourceManager.TrustedSigning.Mocking;
+using Azure.ResourceManager.TrustedSigning.Models;
+
+namespace Azure.ResourceManager.TrustedSigning
+{
+ /// A class to add extension methods to Azure.ResourceManager.TrustedSigning.
+ public static partial class TrustedSigningExtensions
+ {
+ private static MockableTrustedSigningArmClient GetMockableTrustedSigningArmClient(ArmClient client)
+ {
+ return client.GetCachedClient(client0 => new MockableTrustedSigningArmClient(client0));
+ }
+
+ private static MockableTrustedSigningResourceGroupResource GetMockableTrustedSigningResourceGroupResource(ArmResource resource)
+ {
+ return resource.GetCachedClient(client => new MockableTrustedSigningResourceGroupResource(client, resource.Id));
+ }
+
+ private static MockableTrustedSigningSubscriptionResource GetMockableTrustedSigningSubscriptionResource(ArmResource resource)
+ {
+ return resource.GetCachedClient(client => new MockableTrustedSigningSubscriptionResource(client, resource.Id));
+ }
+
+ ///
+ /// Gets an object representing a along with the instance operations that can be performed on it but with no data.
+ /// You can use to create a from its components.
+ ///
+ /// Mocking
+ /// To mock this method, please mock instead.
+ ///
+ ///
+ /// The instance the method will execute against.
+ /// The resource ID of the resource to get.
+ /// is null.
+ /// Returns a object.
+ public static TrustedSigningAccountResource GetTrustedSigningAccountResource(this ArmClient client, ResourceIdentifier id)
+ {
+ Argument.AssertNotNull(client, nameof(client));
+
+ return GetMockableTrustedSigningArmClient(client).GetTrustedSigningAccountResource(id);
+ }
+
+ ///
+ /// Gets an object representing a along with the instance operations that can be performed on it but with no data.
+ /// You can use to create a from its components.
+ ///
+ /// Mocking
+ /// To mock this method, please mock instead.
+ ///
+ ///
+ /// The instance the method will execute against.
+ /// The resource ID of the resource to get.
+ /// is null.
+ /// Returns a object.
+ public static TrustedSigningCertificateProfileResource GetTrustedSigningCertificateProfileResource(this ArmClient client, ResourceIdentifier id)
+ {
+ Argument.AssertNotNull(client, nameof(client));
+
+ return GetMockableTrustedSigningArmClient(client).GetTrustedSigningCertificateProfileResource(id);
+ }
+
+ ///
+ /// Gets a collection of TrustedSigningAccountResources in the ResourceGroupResource.
+ ///
+ /// Mocking
+ /// To mock this method, please mock instead.
+ ///
+ ///
+ /// The instance the method will execute against.
+ /// is null.
+ /// An object representing collection of TrustedSigningAccountResources and their operations over a TrustedSigningAccountResource.
+ public static TrustedSigningAccountCollection GetTrustedSigningAccounts(this ResourceGroupResource resourceGroupResource)
+ {
+ Argument.AssertNotNull(resourceGroupResource, nameof(resourceGroupResource));
+
+ return GetMockableTrustedSigningResourceGroupResource(resourceGroupResource).GetTrustedSigningAccounts();
+ }
+
+ ///
+ /// Get a trusted Signing Account.
+ ///
+ ///
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CodeSigning/codeSigningAccounts/{accountName}
+ ///
+ ///
+ /// Operation Id
+ /// CodeSigningAccounts_Get
+ ///
+ ///
+ /// Default Api Version
+ /// 2024-02-05-preview
+ ///
+ ///
+ /// Resource
+ ///
+ ///
+ ///
+ ///
+ /// Mocking
+ /// To mock this method, please mock instead.
+ ///
+ ///
+ /// The instance the method will execute against.
+ /// Trusted Signing account name.
+ /// The cancellation token to use.
+ /// or is null.
+ /// is an empty string, and was expected to be non-empty.
+ [ForwardsClientCalls]
+ public static async Task> GetTrustedSigningAccountAsync(this ResourceGroupResource resourceGroupResource, string accountName, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNull(resourceGroupResource, nameof(resourceGroupResource));
+
+ return await GetMockableTrustedSigningResourceGroupResource(resourceGroupResource).GetTrustedSigningAccountAsync(accountName, cancellationToken).ConfigureAwait(false);
+ }
+
+ ///
+ /// Get a trusted Signing Account.
+ ///
+ ///
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CodeSigning/codeSigningAccounts/{accountName}
+ ///
+ ///
+ /// Operation Id
+ /// CodeSigningAccounts_Get
+ ///
+ ///
+ /// Default Api Version
+ /// 2024-02-05-preview
+ ///
+ ///
+ /// Resource
+ ///
+ ///
+ ///
+ ///
+ /// Mocking
+ /// To mock this method, please mock instead.
+ ///
+ ///
+ /// The instance the method will execute against.
+ /// Trusted Signing account name.
+ /// The cancellation token to use.
+ /// or is null.
+ /// is an empty string, and was expected to be non-empty.
+ [ForwardsClientCalls]
+ public static Response GetTrustedSigningAccount(this ResourceGroupResource resourceGroupResource, string accountName, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNull(resourceGroupResource, nameof(resourceGroupResource));
+
+ return GetMockableTrustedSigningResourceGroupResource(resourceGroupResource).GetTrustedSigningAccount(accountName, cancellationToken);
+ }
+
+ ///
+ /// Checks that the trusted signing account name is valid and is not already in use.
+ ///
+ ///
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/providers/Microsoft.CodeSigning/checkNameAvailability
+ ///
+ ///
+ /// Operation Id
+ /// CodeSigningAccounts_CheckNameAvailability
+ ///
+ ///
+ /// Default Api Version
+ /// 2024-02-05-preview
+ ///
+ ///
+ /// Resource
+ ///
+ ///
+ ///
+ ///
+ /// Mocking
+ /// To mock this method, please mock instead.
+ ///
+ ///
+ /// The instance the method will execute against.
+ /// The CheckAvailability request.
+ /// The cancellation token to use.
+ /// or is null.
+ public static async Task> CheckTrustedSigningAccountNameAvailabilityAsync(this SubscriptionResource subscriptionResource, TrustedSigningAccountNameAvailabilityContent content, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNull(subscriptionResource, nameof(subscriptionResource));
+
+ return await GetMockableTrustedSigningSubscriptionResource(subscriptionResource).CheckTrustedSigningAccountNameAvailabilityAsync(content, cancellationToken).ConfigureAwait(false);
+ }
+
+ ///
+ /// Checks that the trusted signing account name is valid and is not already in use.
+ ///
+ ///
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/providers/Microsoft.CodeSigning/checkNameAvailability
+ ///
+ ///
+ /// Operation Id
+ /// CodeSigningAccounts_CheckNameAvailability
+ ///
+ ///
+ /// Default Api Version
+ /// 2024-02-05-preview
+ ///
+ ///
+ /// Resource
+ ///
+ ///
+ ///
+ ///
+ /// Mocking
+ /// To mock this method, please mock instead.
+ ///
+ ///
+ /// The instance the method will execute against.
+ /// The CheckAvailability request.
+ /// The cancellation token to use.
+ /// or is null.
+ public static Response CheckTrustedSigningAccountNameAvailability(this SubscriptionResource subscriptionResource, TrustedSigningAccountNameAvailabilityContent content, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNull(subscriptionResource, nameof(subscriptionResource));
+
+ return GetMockableTrustedSigningSubscriptionResource(subscriptionResource).CheckTrustedSigningAccountNameAvailability(content, cancellationToken);
+ }
+
+ ///
+ /// Lists trusted signing accounts within a subscription.
+ ///
+ ///
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/providers/Microsoft.CodeSigning/codeSigningAccounts
+ ///
+ ///
+ /// Operation Id
+ /// CodeSigningAccounts_ListBySubscription
+ ///
+ ///
+ /// Default Api Version
+ /// 2024-02-05-preview
+ ///
+ ///
+ /// Resource
+ ///
+ ///
+ ///
+ ///
+ /// Mocking
+ /// To mock this method, please mock instead.
+ ///
+ ///
+ /// The instance the method will execute against.
+ /// The cancellation token to use.
+ /// is null.
+ /// An async collection of that may take multiple service requests to iterate over.
+ public static AsyncPageable GetTrustedSigningAccountsAsync(this SubscriptionResource subscriptionResource, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNull(subscriptionResource, nameof(subscriptionResource));
+
+ return GetMockableTrustedSigningSubscriptionResource(subscriptionResource).GetTrustedSigningAccountsAsync(cancellationToken);
+ }
+
+ ///
+ /// Lists trusted signing accounts within a subscription.
+ ///
+ ///
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/providers/Microsoft.CodeSigning/codeSigningAccounts
+ ///
+ ///
+ /// Operation Id
+ /// CodeSigningAccounts_ListBySubscription
+ ///
+ ///
+ /// Default Api Version
+ /// 2024-02-05-preview
+ ///
+ ///
+ /// Resource
+ ///
+ ///
+ ///
+ ///
+ /// Mocking
+ /// To mock this method, please mock instead.
+ ///
+ ///
+ /// The instance the method will execute against.
+ /// The cancellation token to use.
+ /// is null.
+ /// A collection of that may take multiple service requests to iterate over.
+ public static Pageable GetTrustedSigningAccounts(this SubscriptionResource subscriptionResource, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNull(subscriptionResource, nameof(subscriptionResource));
+
+ return GetMockableTrustedSigningSubscriptionResource(subscriptionResource).GetTrustedSigningAccounts(cancellationToken);
+ }
+ }
+}
diff --git a/sdk/trustedsigning/Azure.ResourceManager.TrustedSigning/src/Generated/Internal/Argument.cs b/sdk/trustedsigning/Azure.ResourceManager.TrustedSigning/src/Generated/Internal/Argument.cs
new file mode 100644
index 0000000000000..ce5b5dbb3d29b
--- /dev/null
+++ b/sdk/trustedsigning/Azure.ResourceManager.TrustedSigning/src/Generated/Internal/Argument.cs
@@ -0,0 +1,129 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.Collections;
+using System.Collections.Generic;
+
+namespace Azure.ResourceManager.TrustedSigning
+{
+ internal static class Argument
+ {
+ public static void AssertNotNull(T value, string name)
+ {
+ if (value is null)
+ {
+ throw new ArgumentNullException(name);
+ }
+ }
+
+ public static void AssertNotNull(T? value, string name)
+ where T : struct
+ {
+ if (!value.HasValue)
+ {
+ throw new ArgumentNullException(name);
+ }
+ }
+
+ public static void AssertNotNullOrEmpty(IEnumerable value, string name)
+ {
+ if (value is null)
+ {
+ throw new ArgumentNullException(name);
+ }
+ if (value is ICollection collectionOfT && collectionOfT.Count == 0)
+ {
+ throw new ArgumentException("Value cannot be an empty collection.", name);
+ }
+ if (value is ICollection collection && collection.Count == 0)
+ {
+ throw new ArgumentException("Value cannot be an empty collection.", name);
+ }
+ using IEnumerator e = value.GetEnumerator();
+ if (!e.MoveNext())
+ {
+ throw new ArgumentException("Value cannot be an empty collection.", name);
+ }
+ }
+
+ public static void AssertNotNullOrEmpty(string value, string name)
+ {
+ if (value is null)
+ {
+ throw new ArgumentNullException(name);
+ }
+ if (value.Length == 0)
+ {
+ throw new ArgumentException("Value cannot be an empty string.", name);
+ }
+ }
+
+ public static void AssertNotNullOrWhiteSpace(string value, string name)
+ {
+ if (value is null)
+ {
+ throw new ArgumentNullException(name);
+ }
+ if (string.IsNullOrWhiteSpace(value))
+ {
+ throw new ArgumentException("Value cannot be empty or contain only white-space characters.", name);
+ }
+ }
+
+ public static void AssertNotDefault(ref T value, string name)
+ where T : struct, IEquatable
+ {
+ if (value.Equals(default))
+ {
+ throw new ArgumentException("Value cannot be empty.", name);
+ }
+ }
+
+ public static void AssertInRange(T value, T minimum, T maximum, string name)
+ where T : notnull, IComparable
+ {
+ if (minimum.CompareTo(value) > 0)
+ {
+ throw new ArgumentOutOfRangeException(name, "Value is less than the minimum allowed.");
+ }
+ if (maximum.CompareTo(value) < 0)
+ {
+ throw new ArgumentOutOfRangeException(name, "Value is greater than the maximum allowed.");
+ }
+ }
+
+ public static void AssertEnumDefined(Type enumType, object value, string name)
+ {
+ if (!Enum.IsDefined(enumType, value))
+ {
+ throw new ArgumentException($"Value not defined for {enumType.FullName}.", name);
+ }
+ }
+
+ public static T CheckNotNull(T value, string name)
+ where T : class
+ {
+ AssertNotNull(value, name);
+ return value;
+ }
+
+ public static string CheckNotNullOrEmpty(string value, string name)
+ {
+ AssertNotNullOrEmpty(value, name);
+ return value;
+ }
+
+ public static void AssertNull(T value, string name, string message = null)
+ {
+ if (value != null)
+ {
+ throw new ArgumentException(message ?? "Value must be null.", name);
+ }
+ }
+ }
+}
diff --git a/sdk/trustedsigning/Azure.ResourceManager.TrustedSigning/src/Generated/Internal/ChangeTrackingDictionary.cs b/sdk/trustedsigning/Azure.ResourceManager.TrustedSigning/src/Generated/Internal/ChangeTrackingDictionary.cs
new file mode 100644
index 0000000000000..609fd8263ab19
--- /dev/null
+++ b/sdk/trustedsigning/Azure.ResourceManager.TrustedSigning/src/Generated/Internal/ChangeTrackingDictionary.cs
@@ -0,0 +1,167 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.Collections;
+using System.Collections.Generic;
+
+namespace Azure.ResourceManager.TrustedSigning
+{
+ internal class ChangeTrackingDictionary : IDictionary, IReadOnlyDictionary where TKey : notnull
+ {
+ private IDictionary _innerDictionary;
+
+ public ChangeTrackingDictionary()
+ {
+ }
+
+ public ChangeTrackingDictionary(IDictionary dictionary)
+ {
+ if (dictionary == null)
+ {
+ return;
+ }
+ _innerDictionary = new Dictionary(dictionary);
+ }
+
+ public ChangeTrackingDictionary(IReadOnlyDictionary dictionary)
+ {
+ if (dictionary == null)
+ {
+ return;
+ }
+ _innerDictionary = new Dictionary();
+ foreach (var pair in dictionary)
+ {
+ _innerDictionary.Add(pair);
+ }
+ }
+
+ public bool IsUndefined => _innerDictionary == null;
+
+ public int Count => IsUndefined ? 0 : EnsureDictionary().Count;
+
+ public bool IsReadOnly => IsUndefined ? false : EnsureDictionary().IsReadOnly;
+
+ public ICollection Keys => IsUndefined ? Array.Empty() : EnsureDictionary().Keys;
+
+ public ICollection Values => IsUndefined ? Array.Empty() : EnsureDictionary().Values;
+
+ public TValue this[TKey key]
+ {
+ get
+ {
+ if (IsUndefined)
+ {
+ throw new KeyNotFoundException(nameof(key));
+ }
+ return EnsureDictionary()[key];
+ }
+ set
+ {
+ EnsureDictionary()[key] = value;
+ }
+ }
+
+ IEnumerable IReadOnlyDictionary.Keys => Keys;
+
+ IEnumerable IReadOnlyDictionary.Values => Values;
+
+ public IEnumerator> GetEnumerator()
+ {
+ if (IsUndefined)
+ {
+ IEnumerator> enumerateEmpty()
+ {
+ yield break;
+ }
+ return enumerateEmpty();
+ }
+ return EnsureDictionary().GetEnumerator();
+ }
+
+ IEnumerator IEnumerable.GetEnumerator()
+ {
+ return GetEnumerator();
+ }
+
+ public void Add(KeyValuePair item)
+ {
+ EnsureDictionary().Add(item);
+ }
+
+ public void Clear()
+ {
+ EnsureDictionary().Clear();
+ }
+
+ public bool Contains(KeyValuePair item)
+ {
+ if (IsUndefined)
+ {
+ return false;
+ }
+ return EnsureDictionary().Contains(item);
+ }
+
+ public void CopyTo(KeyValuePair[] array, int index)
+ {
+ if (IsUndefined)
+ {
+ return;
+ }
+ EnsureDictionary().CopyTo(array, index);
+ }
+
+ public bool Remove(KeyValuePair item)
+ {
+ if (IsUndefined)
+ {
+ return false;
+ }
+ return EnsureDictionary().Remove(item);
+ }
+
+ public void Add(TKey key, TValue value)
+ {
+ EnsureDictionary().Add(key, value);
+ }
+
+ public bool ContainsKey(TKey key)
+ {
+ if (IsUndefined)
+ {
+ return false;
+ }
+ return EnsureDictionary().ContainsKey(key);
+ }
+
+ public bool Remove(TKey key)
+ {
+ if (IsUndefined)
+ {
+ return false;
+ }
+ return EnsureDictionary().Remove(key);
+ }
+
+ public bool TryGetValue(TKey key, out TValue value)
+ {
+ if (IsUndefined)
+ {
+ value = default;
+ return false;
+ }
+ return EnsureDictionary().TryGetValue(key, out value);
+ }
+
+ public IDictionary EnsureDictionary()
+ {
+ return _innerDictionary ??= new Dictionary();
+ }
+ }
+}
diff --git a/sdk/trustedsigning/Azure.ResourceManager.TrustedSigning/src/Generated/Internal/ChangeTrackingList.cs b/sdk/trustedsigning/Azure.ResourceManager.TrustedSigning/src/Generated/Internal/ChangeTrackingList.cs
new file mode 100644
index 0000000000000..3f69a4d4fae92
--- /dev/null
+++ b/sdk/trustedsigning/Azure.ResourceManager.TrustedSigning/src/Generated/Internal/ChangeTrackingList.cs
@@ -0,0 +1,153 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.Collections;
+using System.Collections.Generic;
+using System.Linq;
+
+namespace Azure.ResourceManager.TrustedSigning
+{
+ internal class ChangeTrackingList : IList, IReadOnlyList
+ {
+ private IList _innerList;
+
+ public ChangeTrackingList()
+ {
+ }
+
+ public ChangeTrackingList(IList innerList)
+ {
+ if (innerList != null)
+ {
+ _innerList = innerList;
+ }
+ }
+
+ public ChangeTrackingList(IReadOnlyList innerList)
+ {
+ if (innerList != null)
+ {
+ _innerList = innerList.ToList();
+ }
+ }
+
+ public bool IsUndefined => _innerList == null;
+
+ public int Count => IsUndefined ? 0 : EnsureList().Count;
+
+ public bool IsReadOnly => IsUndefined ? false : EnsureList().IsReadOnly;
+
+ public T this[int index]
+ {
+ get
+ {
+ if (IsUndefined)
+ {
+ throw new ArgumentOutOfRangeException(nameof(index));
+ }
+ return EnsureList()[index];
+ }
+ set
+ {
+ if (IsUndefined)
+ {
+ throw new ArgumentOutOfRangeException(nameof(index));
+ }
+ EnsureList()[index] = value;
+ }
+ }
+
+ public void Reset()
+ {
+ _innerList = null;
+ }
+
+ public IEnumerator GetEnumerator()
+ {
+ if (IsUndefined)
+ {
+ IEnumerator enumerateEmpty()
+ {
+ yield break;
+ }
+ return enumerateEmpty();
+ }
+ return EnsureList().GetEnumerator();
+ }
+
+ IEnumerator IEnumerable.GetEnumerator()
+ {
+ return GetEnumerator();
+ }
+
+ public void Add(T item)
+ {
+ EnsureList().Add(item);
+ }
+
+ public void Clear()
+ {
+ EnsureList().Clear();
+ }
+
+ public bool Contains(T item)
+ {
+ if (IsUndefined)
+ {
+ return false;
+ }
+ return EnsureList().Contains(item);
+ }
+
+ public void CopyTo(T[] array, int arrayIndex)
+ {
+ if (IsUndefined)
+ {
+ return;
+ }
+ EnsureList().CopyTo(array, arrayIndex);
+ }
+
+ public bool Remove(T item)
+ {
+ if (IsUndefined)
+ {
+ return false;
+ }
+ return EnsureList().Remove(item);
+ }
+
+ public int IndexOf(T item)
+ {
+ if (IsUndefined)
+ {
+ return -1;
+ }
+ return EnsureList().IndexOf(item);
+ }
+
+ public void Insert(int index, T item)
+ {
+ EnsureList().Insert(index, item);
+ }
+
+ public void RemoveAt(int index)
+ {
+ if (IsUndefined)
+ {
+ throw new ArgumentOutOfRangeException(nameof(index));
+ }
+ EnsureList().RemoveAt(index);
+ }
+
+ public IList EnsureList()
+ {
+ return _innerList ??= new List();
+ }
+ }
+}
diff --git a/sdk/trustedsigning/Azure.ResourceManager.TrustedSigning/src/Generated/Internal/ModelSerializationExtensions.cs b/sdk/trustedsigning/Azure.ResourceManager.TrustedSigning/src/Generated/Internal/ModelSerializationExtensions.cs
new file mode 100644
index 0000000000000..bb5af249757f8
--- /dev/null
+++ b/sdk/trustedsigning/Azure.ResourceManager.TrustedSigning/src/Generated/Internal/ModelSerializationExtensions.cs
@@ -0,0 +1,396 @@
+// 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.Diagnostics;
+using System.Globalization;
+using System.Text.Json;
+using System.Xml;
+using Azure.Core;
+
+namespace Azure.ResourceManager.TrustedSigning
+{
+ internal static class ModelSerializationExtensions
+ {
+ public static object GetObject(this JsonElement element)
+ {
+ switch (element.ValueKind)
+ {
+ case JsonValueKind.String:
+ return element.GetString();
+ case JsonValueKind.Number:
+ if (element.TryGetInt32(out int intValue))
+ {
+ return intValue;
+ }
+ if (element.TryGetInt64(out long longValue))
+ {
+ return longValue;
+ }
+ return element.GetDouble();
+ case JsonValueKind.True:
+ return true;
+ case JsonValueKind.False:
+ return false;
+ case JsonValueKind.Undefined:
+ case JsonValueKind.Null:
+ return null;
+ case JsonValueKind.Object:
+ var dictionary = new Dictionary();
+ foreach (var jsonProperty in element.EnumerateObject())
+ {
+ dictionary.Add(jsonProperty.Name, jsonProperty.Value.GetObject());
+ }
+ return dictionary;
+ case JsonValueKind.Array:
+ var list = new List