diff --git a/sdk/sphere/Azure.ResourceManager.Sphere/Azure.ResourceManager.Sphere.sln b/sdk/sphere/Azure.ResourceManager.Sphere/Azure.ResourceManager.Sphere.sln
new file mode 100644
index 0000000000000..ff0538fb3aa63
--- /dev/null
+++ b/sdk/sphere/Azure.ResourceManager.Sphere/Azure.ResourceManager.Sphere.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("{29997D6D-DC9A-4CE2-94C0-452E7E9ACEC6}") = "Azure.ResourceManager.Sphere", "src\Azure.ResourceManager.Sphere.csproj", "{6490C51E-3F0D-4F4C-902B-6F3D5B39657B}"
+EndProject
+Project("{29997D6D-DC9A-4CE2-94C0-452E7E9ACEC6}") = "Azure.ResourceManager.Sphere.Tests", "tests\Azure.ResourceManager.Sphere.Tests.csproj", "{39C41709-9003-4BBB-9B23-D2873A80B377}"
+EndProject
+Project("{29997D6D-DC9A-4CE2-94C0-452E7E9ACEC6}") = "Azure.ResourceManager.Sphere.Samples", "samples\Azure.ResourceManager.Sphere.Samples.csproj", "{625A8C42-AFF5-4D2C-A85D-7AD5390D0001}"
+EndProject
+Global
+ GlobalSection(SolutionProperties) = preSolution
+ HideSolutionNode = FALSE
+ EndGlobalSection
+ GlobalSection(ExtensibilityGlobals) = postSolution
+ SolutionGuid = {BC3DB41F-2150-441D-AB1D-EFE0ACD23DEB}
+ 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
+ {6490C51E-3F0D-4F4C-902B-6F3D5B39657B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {6490C51E-3F0D-4F4C-902B-6F3D5B39657B}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {6490C51E-3F0D-4F4C-902B-6F3D5B39657B}.Debug|x64.ActiveCfg = Debug|Any CPU
+ {6490C51E-3F0D-4F4C-902B-6F3D5B39657B}.Debug|x64.Build.0 = Debug|Any CPU
+ {6490C51E-3F0D-4F4C-902B-6F3D5B39657B}.Debug|x86.ActiveCfg = Debug|Any CPU
+ {6490C51E-3F0D-4F4C-902B-6F3D5B39657B}.Debug|x86.Build.0 = Debug|Any CPU
+ {6490C51E-3F0D-4F4C-902B-6F3D5B39657B}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {6490C51E-3F0D-4F4C-902B-6F3D5B39657B}.Release|Any CPU.Build.0 = Release|Any CPU
+ {6490C51E-3F0D-4F4C-902B-6F3D5B39657B}.Release|x64.ActiveCfg = Release|Any CPU
+ {6490C51E-3F0D-4F4C-902B-6F3D5B39657B}.Release|x64.Build.0 = Release|Any CPU
+ {6490C51E-3F0D-4F4C-902B-6F3D5B39657B}.Release|x86.ActiveCfg = Release|Any CPU
+ {6490C51E-3F0D-4F4C-902B-6F3D5B39657B}.Release|x86.Build.0 = Release|Any CPU
+ {39C41709-9003-4BBB-9B23-D2873A80B377}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {39C41709-9003-4BBB-9B23-D2873A80B377}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {39C41709-9003-4BBB-9B23-D2873A80B377}.Debug|x64.ActiveCfg = Debug|Any CPU
+ {39C41709-9003-4BBB-9B23-D2873A80B377}.Debug|x64.Build.0 = Debug|Any CPU
+ {39C41709-9003-4BBB-9B23-D2873A80B377}.Debug|x86.ActiveCfg = Debug|Any CPU
+ {39C41709-9003-4BBB-9B23-D2873A80B377}.Debug|x86.Build.0 = Debug|Any CPU
+ {39C41709-9003-4BBB-9B23-D2873A80B377}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {39C41709-9003-4BBB-9B23-D2873A80B377}.Release|Any CPU.Build.0 = Release|Any CPU
+ {39C41709-9003-4BBB-9B23-D2873A80B377}.Release|x64.ActiveCfg = Release|Any CPU
+ {39C41709-9003-4BBB-9B23-D2873A80B377}.Release|x64.Build.0 = Release|Any CPU
+ {39C41709-9003-4BBB-9B23-D2873A80B377}.Release|x86.ActiveCfg = Release|Any CPU
+ {39C41709-9003-4BBB-9B23-D2873A80B377}.Release|x86.Build.0 = Release|Any CPU
+ {625A8C42-AFF5-4D2C-A85D-7AD5390D0001}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {625A8C42-AFF5-4D2C-A85D-7AD5390D0001}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {625A8C42-AFF5-4D2C-A85D-7AD5390D0001}.Debug|x64.ActiveCfg = Debug|Any CPU
+ {625A8C42-AFF5-4D2C-A85D-7AD5390D0001}.Debug|x64.Build.0 = Debug|Any CPU
+ {625A8C42-AFF5-4D2C-A85D-7AD5390D0001}.Debug|x86.ActiveCfg = Debug|Any CPU
+ {625A8C42-AFF5-4D2C-A85D-7AD5390D0001}.Debug|x86.Build.0 = Debug|Any CPU
+ {625A8C42-AFF5-4D2C-A85D-7AD5390D0001}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {625A8C42-AFF5-4D2C-A85D-7AD5390D0001}.Release|Any CPU.Build.0 = Release|Any CPU
+ {625A8C42-AFF5-4D2C-A85D-7AD5390D0001}.Release|x64.ActiveCfg = Release|Any CPU
+ {625A8C42-AFF5-4D2C-A85D-7AD5390D0001}.Release|x64.Build.0 = Release|Any CPU
+ {625A8C42-AFF5-4D2C-A85D-7AD5390D0001}.Release|x86.ActiveCfg = Release|Any CPU
+ {625A8C42-AFF5-4D2C-A85D-7AD5390D0001}.Release|x86.Build.0 = Release|Any CPU
+ EndGlobalSection
+EndGlobal
diff --git a/sdk/sphere/Azure.ResourceManager.Sphere/CHANGELOG.md b/sdk/sphere/Azure.ResourceManager.Sphere/CHANGELOG.md
new file mode 100644
index 0000000000000..23f86d1e896ee
--- /dev/null
+++ b/sdk/sphere/Azure.ResourceManager.Sphere/CHANGELOG.md
@@ -0,0 +1,17 @@
+# Release History
+
+## 1.0.0-beta.1 (Unreleased)
+
+### 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).
\ No newline at end of file
diff --git a/sdk/sphere/Azure.ResourceManager.Sphere/Directory.Build.props b/sdk/sphere/Azure.ResourceManager.Sphere/Directory.Build.props
new file mode 100644
index 0000000000000..1a9611bd49242
--- /dev/null
+++ b/sdk/sphere/Azure.ResourceManager.Sphere/Directory.Build.props
@@ -0,0 +1,6 @@
+
+
+
+
diff --git a/sdk/sphere/Azure.ResourceManager.Sphere/README.md b/sdk/sphere/Azure.ResourceManager.Sphere/README.md
new file mode 100644
index 0000000000000..c65ce5755c6bc
--- /dev/null
+++ b/sdk/sphere/Azure.ResourceManager.Sphere/README.md
@@ -0,0 +1,80 @@
+# Microsoft Azure sphere management client library for .NET
+
+**[Describe the service briefly first.]**
+
+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 sphere management library for .NET with [NuGet](https://www.nuget.org/):
+
+```dotnetcli
+dotnet add package Azure.ResourceManager.Sphere --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/
\ No newline at end of file
diff --git a/sdk/sphere/Azure.ResourceManager.Sphere/api/Azure.ResourceManager.Sphere.netstandard2.0.cs b/sdk/sphere/Azure.ResourceManager.Sphere/api/Azure.ResourceManager.Sphere.netstandard2.0.cs
new file mode 100644
index 0000000000000..2d64f5012cfab
--- /dev/null
+++ b/sdk/sphere/Azure.ResourceManager.Sphere/api/Azure.ResourceManager.Sphere.netstandard2.0.cs
@@ -0,0 +1,611 @@
+namespace Azure.ResourceManager.Sphere
+{
+ public partial class CatalogCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable
+ {
+ protected CatalogCollection() { }
+ public virtual Azure.ResourceManager.ArmOperation CreateOrUpdate(Azure.WaitUntil waitUntil, string catalogName, Azure.ResourceManager.Sphere.CatalogData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public virtual System.Threading.Tasks.Task> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, string catalogName, Azure.ResourceManager.Sphere.CatalogData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public virtual Azure.Response Exists(string catalogName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public virtual System.Threading.Tasks.Task> ExistsAsync(string catalogName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public virtual Azure.Response Get(string catalogName, 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 catalogName, 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 CatalogData : Azure.ResourceManager.Models.TrackedResourceData
+ {
+ public CatalogData(Azure.Core.AzureLocation location) : base (default(Azure.Core.AzureLocation)) { }
+ public Azure.ResourceManager.Sphere.Models.ProvisioningState? ProvisioningState { get { throw null; } }
+ }
+ public partial class CatalogResource : Azure.ResourceManager.ArmResource
+ {
+ public static readonly Azure.Core.ResourceType ResourceType;
+ protected CatalogResource() { }
+ public virtual Azure.ResourceManager.Sphere.CatalogData 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 virtual Azure.Response CountDevices(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public virtual System.Threading.Tasks.Task> CountDevicesAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string catalogName) { 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 GetCertificate(string serialNumber, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public virtual System.Threading.Tasks.Task> GetCertificateAsync(string serialNumber, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public virtual Azure.ResourceManager.Sphere.CertificateCollection GetCertificates() { throw null; }
+ public virtual Azure.Pageable GetDeployments(string filter = null, int? top = default(int?), int? skip = default(int?), int? maxpagesize = default(int?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public virtual Azure.AsyncPageable GetDeploymentsAsync(string filter = null, int? top = default(int?), int? skip = default(int?), int? maxpagesize = default(int?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public virtual Azure.Pageable GetDeviceGroups(Azure.ResourceManager.Sphere.Models.ListDeviceGroupsContent content, string filter = null, int? top = default(int?), int? skip = default(int?), int? maxpagesize = default(int?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public virtual Azure.AsyncPageable GetDeviceGroupsAsync(Azure.ResourceManager.Sphere.Models.ListDeviceGroupsContent content, string filter = null, int? top = default(int?), int? skip = default(int?), int? maxpagesize = default(int?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public virtual Azure.Pageable GetDeviceInsights(string filter = null, int? top = default(int?), int? skip = default(int?), int? maxpagesize = default(int?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public virtual Azure.AsyncPageable GetDeviceInsightsAsync(string filter = null, int? top = default(int?), int? skip = default(int?), int? maxpagesize = default(int?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public virtual Azure.Pageable GetDevices(string filter = null, int? top = default(int?), int? skip = default(int?), int? maxpagesize = default(int?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public virtual Azure.AsyncPageable GetDevicesAsync(string filter = null, int? top = default(int?), int? skip = default(int?), int? maxpagesize = default(int?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public virtual Azure.Response GetImage(string imageName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public virtual System.Threading.Tasks.Task> GetImageAsync(string imageName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public virtual Azure.ResourceManager.Sphere.ImageCollection GetImages() { throw null; }
+ public virtual Azure.Response GetProduct(string productName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public virtual System.Threading.Tasks.Task> GetProductAsync(string productName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public virtual Azure.ResourceManager.Sphere.ProductCollection GetProducts() { 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.Response Update(Azure.ResourceManager.Sphere.Models.CatalogPatch patch, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.ResourceManager.Sphere.Models.CatalogPatch patch, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ }
+ public partial class CertificateCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable
+ {
+ protected CertificateCollection() { }
+ public virtual Azure.Response Exists(string serialNumber, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public virtual System.Threading.Tasks.Task> ExistsAsync(string serialNumber, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public virtual Azure.Response Get(string serialNumber, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public virtual Azure.Pageable GetAll(string filter = null, int? top = default(int?), int? skip = default(int?), int? maxpagesize = default(int?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public virtual Azure.AsyncPageable GetAllAsync(string filter = null, int? top = default(int?), int? skip = default(int?), int? maxpagesize = default(int?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public virtual System.Threading.Tasks.Task> GetAsync(string serialNumber, 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 CertificateData : Azure.ResourceManager.Models.ResourceData
+ {
+ public CertificateData() { }
+ public string Certificate { get { throw null; } }
+ public System.DateTimeOffset? ExpiryUtc { get { throw null; } }
+ public System.DateTimeOffset? NotBeforeUtc { get { throw null; } }
+ public Azure.ResourceManager.Sphere.Models.ProvisioningState? ProvisioningState { get { throw null; } }
+ public Azure.ResourceManager.Sphere.Models.CertificateStatus? Status { get { throw null; } }
+ public string Subject { get { throw null; } }
+ public string Thumbprint { get { throw null; } }
+ }
+ public partial class CertificateResource : Azure.ResourceManager.ArmResource
+ {
+ public static readonly Azure.Core.ResourceType ResourceType;
+ protected CertificateResource() { }
+ public virtual Azure.ResourceManager.Sphere.CertificateData Data { get { throw null; } }
+ public virtual bool HasData { get { throw null; } }
+ public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string catalogName, string serialNumber) { 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 RetrieveCertChain(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public virtual System.Threading.Tasks.Task> RetrieveCertChainAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public virtual Azure.Response RetrieveProofOfPossessionNonce(Azure.ResourceManager.Sphere.Models.ProofOfPossessionNonceContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public virtual System.Threading.Tasks.Task> RetrieveProofOfPossessionNonceAsync(Azure.ResourceManager.Sphere.Models.ProofOfPossessionNonceContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ }
+ public partial class DeploymentCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable
+ {
+ protected DeploymentCollection() { }
+ public virtual Azure.ResourceManager.ArmOperation CreateOrUpdate(Azure.WaitUntil waitUntil, string deploymentName, Azure.ResourceManager.Sphere.DeploymentData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public virtual System.Threading.Tasks.Task> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, string deploymentName, Azure.ResourceManager.Sphere.DeploymentData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public virtual Azure.Response Exists(string deploymentName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public virtual System.Threading.Tasks.Task> ExistsAsync(string deploymentName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public virtual Azure.Response Get(string deploymentName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public virtual Azure.Pageable GetAll(string filter = null, int? top = default(int?), int? skip = default(int?), int? maxpagesize = default(int?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public virtual Azure.AsyncPageable GetAllAsync(string filter = null, int? top = default(int?), int? skip = default(int?), int? maxpagesize = default(int?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public virtual System.Threading.Tasks.Task> GetAsync(string deploymentName, 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 DeploymentData : Azure.ResourceManager.Models.ResourceData
+ {
+ public DeploymentData() { }
+ public System.Collections.Generic.IList DeployedImages { get { throw null; } }
+ public System.DateTimeOffset? DeploymentDateUtc { get { throw null; } }
+ public string DeploymentId { get { throw null; } set { } }
+ public Azure.ResourceManager.Sphere.Models.ProvisioningState? ProvisioningState { get { throw null; } }
+ }
+ public partial class DeploymentResource : Azure.ResourceManager.ArmResource
+ {
+ public static readonly Azure.Core.ResourceType ResourceType;
+ protected DeploymentResource() { }
+ public virtual Azure.ResourceManager.Sphere.DeploymentData Data { get { throw null; } }
+ public virtual bool HasData { get { throw null; } }
+ public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string catalogName, string productName, string deviceGroupName, string deploymentName) { 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.ResourceManager.ArmOperation Update(Azure.WaitUntil waitUntil, Azure.ResourceManager.Sphere.DeploymentData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.Sphere.DeploymentData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ }
+ public partial class DeviceCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable
+ {
+ protected DeviceCollection() { }
+ public virtual Azure.ResourceManager.ArmOperation CreateOrUpdate(Azure.WaitUntil waitUntil, string deviceName, Azure.ResourceManager.Sphere.DeviceData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public virtual System.Threading.Tasks.Task> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, string deviceName, Azure.ResourceManager.Sphere.DeviceData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public virtual Azure.Response Exists(string deviceName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public virtual System.Threading.Tasks.Task> ExistsAsync(string deviceName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public virtual Azure.Response Get(string deviceName, 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 deviceName, 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 DeviceData : Azure.ResourceManager.Models.ResourceData
+ {
+ public DeviceData() { }
+ public string ChipSku { get { throw null; } }
+ public string DeviceId { get { throw null; } set { } }
+ public string LastAvailableOSVersion { get { throw null; } }
+ public string LastInstalledOSVersion { get { throw null; } }
+ public System.DateTimeOffset? LastOSUpdateUtc { get { throw null; } }
+ public System.DateTimeOffset? LastUpdateRequestUtc { get { throw null; } }
+ public Azure.ResourceManager.Sphere.Models.ProvisioningState? ProvisioningState { get { throw null; } }
+ }
+ public partial class DeviceGroupCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable
+ {
+ protected DeviceGroupCollection() { }
+ public virtual Azure.ResourceManager.ArmOperation CreateOrUpdate(Azure.WaitUntil waitUntil, string deviceGroupName, Azure.ResourceManager.Sphere.DeviceGroupData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public virtual System.Threading.Tasks.Task> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, string deviceGroupName, Azure.ResourceManager.Sphere.DeviceGroupData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public virtual Azure.Response Exists(string deviceGroupName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public virtual System.Threading.Tasks.Task> ExistsAsync(string deviceGroupName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public virtual Azure.Response Get(string deviceGroupName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public virtual Azure.Pageable GetAll(string filter = null, int? top = default(int?), int? skip = default(int?), int? maxpagesize = default(int?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public virtual Azure.AsyncPageable GetAllAsync(string filter = null, int? top = default(int?), int? skip = default(int?), int? maxpagesize = default(int?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public virtual System.Threading.Tasks.Task> GetAsync(string deviceGroupName, 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 DeviceGroupData : Azure.ResourceManager.Models.ResourceData
+ {
+ public DeviceGroupData() { }
+ public Azure.ResourceManager.Sphere.Models.AllowCrashDumpCollection? AllowCrashDumpsCollection { get { throw null; } set { } }
+ public string Description { get { throw null; } set { } }
+ public bool? HasDeployment { get { throw null; } }
+ public Azure.ResourceManager.Sphere.Models.OSFeedType? OSFeedType { get { throw null; } set { } }
+ public Azure.ResourceManager.Sphere.Models.ProvisioningState? ProvisioningState { get { throw null; } }
+ public Azure.ResourceManager.Sphere.Models.RegionalDataBoundary? RegionalDataBoundary { get { throw null; } set { } }
+ public Azure.ResourceManager.Sphere.Models.UpdatePolicy? UpdatePolicy { get { throw null; } set { } }
+ }
+ public partial class DeviceGroupResource : Azure.ResourceManager.ArmResource
+ {
+ public static readonly Azure.Core.ResourceType ResourceType;
+ protected DeviceGroupResource() { }
+ public virtual Azure.ResourceManager.Sphere.DeviceGroupData Data { get { throw null; } }
+ public virtual bool HasData { get { throw null; } }
+ public virtual Azure.ResourceManager.ArmOperation ClaimDevices(Azure.WaitUntil waitUntil, Azure.ResourceManager.Sphere.Models.ClaimDevicesContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public virtual System.Threading.Tasks.Task ClaimDevicesAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.Sphere.Models.ClaimDevicesContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public virtual Azure.Response CountDevices(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public virtual System.Threading.Tasks.Task> CountDevicesAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string catalogName, string productName, string deviceGroupName) { 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 GetDeployment(string deploymentName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public virtual System.Threading.Tasks.Task> GetDeploymentAsync(string deploymentName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public virtual Azure.ResourceManager.Sphere.DeploymentCollection GetDeployments() { throw null; }
+ public virtual Azure.Response GetDevice(string deviceName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public virtual System.Threading.Tasks.Task> GetDeviceAsync(string deviceName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public virtual Azure.ResourceManager.Sphere.DeviceCollection GetDevices() { throw null; }
+ public virtual Azure.ResourceManager.ArmOperation Update(Azure.WaitUntil waitUntil, Azure.ResourceManager.Sphere.Models.DeviceGroupPatch patch, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.Sphere.Models.DeviceGroupPatch patch, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ }
+ public partial class DeviceResource : Azure.ResourceManager.ArmResource
+ {
+ public static readonly Azure.Core.ResourceType ResourceType;
+ protected DeviceResource() { }
+ public virtual Azure.ResourceManager.Sphere.DeviceData Data { get { throw null; } }
+ public virtual bool HasData { get { throw null; } }
+ public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string catalogName, string productName, string deviceGroupName, string deviceName) { 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.ResourceManager.ArmOperation GenerateCapabilityImage(Azure.WaitUntil waitUntil, Azure.ResourceManager.Sphere.Models.GenerateCapabilityImageContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public virtual System.Threading.Tasks.Task> GenerateCapabilityImageAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.Sphere.Models.GenerateCapabilityImageContent content, 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.ResourceManager.ArmOperation Update(Azure.WaitUntil waitUntil, Azure.ResourceManager.Sphere.Models.DevicePatch patch, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.Sphere.Models.DevicePatch patch, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ }
+ public partial class ImageCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable
+ {
+ protected ImageCollection() { }
+ public virtual Azure.ResourceManager.ArmOperation CreateOrUpdate(Azure.WaitUntil waitUntil, string imageName, Azure.ResourceManager.Sphere.ImageData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public virtual System.Threading.Tasks.Task> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, string imageName, Azure.ResourceManager.Sphere.ImageData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public virtual Azure.Response Exists(string imageName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public virtual System.Threading.Tasks.Task> ExistsAsync(string imageName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public virtual Azure.Response Get(string imageName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public virtual Azure.Pageable GetAll(string filter = null, int? top = default(int?), int? skip = default(int?), int? maxpagesize = default(int?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public virtual Azure.AsyncPageable GetAllAsync(string filter = null, int? top = default(int?), int? skip = default(int?), int? maxpagesize = default(int?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public virtual System.Threading.Tasks.Task> GetAsync(string imageName, 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 ImageData : Azure.ResourceManager.Models.ResourceData
+ {
+ public ImageData() { }
+ public string ComponentId { get { throw null; } }
+ public string Description { get { throw null; } }
+ public string Image { get { throw null; } set { } }
+ public string ImageId { get { throw null; } set { } }
+ public string ImageName { get { throw null; } }
+ public Azure.ResourceManager.Sphere.Models.ImageType? ImageType { get { throw null; } }
+ public Azure.ResourceManager.Sphere.Models.ProvisioningState? ProvisioningState { get { throw null; } }
+ public Azure.ResourceManager.Sphere.Models.RegionalDataBoundary? RegionalDataBoundary { get { throw null; } set { } }
+ public System.Uri Uri { get { throw null; } }
+ }
+ public partial class ImageResource : Azure.ResourceManager.ArmResource
+ {
+ public static readonly Azure.Core.ResourceType ResourceType;
+ protected ImageResource() { }
+ public virtual Azure.ResourceManager.Sphere.ImageData Data { get { throw null; } }
+ public virtual bool HasData { get { throw null; } }
+ public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string catalogName, string imageName) { 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.ResourceManager.ArmOperation Update(Azure.WaitUntil waitUntil, Azure.ResourceManager.Sphere.ImageData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.Sphere.ImageData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ }
+ public partial class ProductCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable
+ {
+ protected ProductCollection() { }
+ public virtual Azure.ResourceManager.ArmOperation CreateOrUpdate(Azure.WaitUntil waitUntil, string productName, Azure.ResourceManager.Sphere.ProductData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public virtual System.Threading.Tasks.Task> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, string productName, Azure.ResourceManager.Sphere.ProductData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public virtual Azure.Response Exists(string productName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public virtual System.Threading.Tasks.Task> ExistsAsync(string productName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public virtual Azure.Response Get(string productName, 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 productName, 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 ProductData : Azure.ResourceManager.Models.ResourceData
+ {
+ public ProductData() { }
+ public string Description { get { throw null; } set { } }
+ public Azure.ResourceManager.Sphere.Models.ProvisioningState? ProvisioningState { get { throw null; } }
+ }
+ public partial class ProductResource : Azure.ResourceManager.ArmResource
+ {
+ public static readonly Azure.Core.ResourceType ResourceType;
+ protected ProductResource() { }
+ public virtual Azure.ResourceManager.Sphere.ProductData Data { get { throw null; } }
+ public virtual bool HasData { get { throw null; } }
+ public virtual Azure.Response CountDevices(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public virtual System.Threading.Tasks.Task> CountDevicesAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string catalogName, string productName) { 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.Pageable GenerateDefaultDeviceGroups(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public virtual Azure.AsyncPageable GenerateDefaultDeviceGroupsAsync(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 GetDeviceGroup(string deviceGroupName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public virtual System.Threading.Tasks.Task> GetDeviceGroupAsync(string deviceGroupName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public virtual Azure.ResourceManager.Sphere.DeviceGroupCollection GetDeviceGroups() { throw null; }
+ public virtual Azure.ResourceManager.ArmOperation Update(Azure.WaitUntil waitUntil, Azure.ResourceManager.Sphere.Models.ProductPatch patch, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.Sphere.Models.ProductPatch patch, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ }
+ public static partial class SphereExtensions
+ {
+ public static Azure.Response GetCatalog(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string catalogName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public static System.Threading.Tasks.Task> GetCatalogAsync(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string catalogName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public static Azure.ResourceManager.Sphere.CatalogResource GetCatalogResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; }
+ public static Azure.ResourceManager.Sphere.CatalogCollection GetCatalogs(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource) { throw null; }
+ public static Azure.Pageable GetCatalogs(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public static Azure.AsyncPageable GetCatalogsAsync(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public static Azure.ResourceManager.Sphere.CertificateResource GetCertificateResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; }
+ public static Azure.ResourceManager.Sphere.DeploymentResource GetDeploymentResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; }
+ public static Azure.ResourceManager.Sphere.DeviceGroupResource GetDeviceGroupResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; }
+ public static Azure.ResourceManager.Sphere.DeviceResource GetDeviceResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; }
+ public static Azure.ResourceManager.Sphere.ImageResource GetImageResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; }
+ public static Azure.ResourceManager.Sphere.ProductResource GetProductResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; }
+ }
+}
+namespace Azure.ResourceManager.Sphere.Models
+{
+ [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)]
+ public readonly partial struct AllowCrashDumpCollection : System.IEquatable
+ {
+ private readonly object _dummy;
+ private readonly int _dummyPrimitive;
+ public AllowCrashDumpCollection(string value) { throw null; }
+ public static Azure.ResourceManager.Sphere.Models.AllowCrashDumpCollection Disabled { get { throw null; } }
+ public static Azure.ResourceManager.Sphere.Models.AllowCrashDumpCollection Enabled { get { throw null; } }
+ public bool Equals(Azure.ResourceManager.Sphere.Models.AllowCrashDumpCollection 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.Sphere.Models.AllowCrashDumpCollection left, Azure.ResourceManager.Sphere.Models.AllowCrashDumpCollection right) { throw null; }
+ public static implicit operator Azure.ResourceManager.Sphere.Models.AllowCrashDumpCollection (string value) { throw null; }
+ public static bool operator !=(Azure.ResourceManager.Sphere.Models.AllowCrashDumpCollection left, Azure.ResourceManager.Sphere.Models.AllowCrashDumpCollection right) { throw null; }
+ public override string ToString() { throw null; }
+ }
+ public static partial class ArmSphereModelFactory
+ {
+ public static Azure.ResourceManager.Sphere.CatalogData CatalogData(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), Azure.ResourceManager.Sphere.Models.ProvisioningState? provisioningState = default(Azure.ResourceManager.Sphere.Models.ProvisioningState?)) { throw null; }
+ public static Azure.ResourceManager.Sphere.Models.CertificateChainResponse CertificateChainResponse(string certificateChain = null) { throw null; }
+ public static Azure.ResourceManager.Sphere.CertificateData CertificateData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, string certificate = null, Azure.ResourceManager.Sphere.Models.CertificateStatus? status = default(Azure.ResourceManager.Sphere.Models.CertificateStatus?), string subject = null, string thumbprint = null, System.DateTimeOffset? expiryUtc = default(System.DateTimeOffset?), System.DateTimeOffset? notBeforeUtc = default(System.DateTimeOffset?), Azure.ResourceManager.Sphere.Models.ProvisioningState? provisioningState = default(Azure.ResourceManager.Sphere.Models.ProvisioningState?)) { throw null; }
+ public static Azure.ResourceManager.Sphere.Models.CertificateProperties CertificateProperties(string certificate = null, Azure.ResourceManager.Sphere.Models.CertificateStatus? status = default(Azure.ResourceManager.Sphere.Models.CertificateStatus?), string subject = null, string thumbprint = null, System.DateTimeOffset? expiryUtc = default(System.DateTimeOffset?), System.DateTimeOffset? notBeforeUtc = default(System.DateTimeOffset?), Azure.ResourceManager.Sphere.Models.ProvisioningState? provisioningState = default(Azure.ResourceManager.Sphere.Models.ProvisioningState?)) { throw null; }
+ public static Azure.ResourceManager.Sphere.Models.CountDeviceResponse CountDeviceResponse(int value = 0) { throw null; }
+ public static Azure.ResourceManager.Sphere.Models.CountElementsResponse CountElementsResponse(int value = 0) { throw null; }
+ public static Azure.ResourceManager.Sphere.DeploymentData DeploymentData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, string deploymentId = null, System.Collections.Generic.IEnumerable deployedImages = null, System.DateTimeOffset? deploymentDateUtc = default(System.DateTimeOffset?), Azure.ResourceManager.Sphere.Models.ProvisioningState? provisioningState = default(Azure.ResourceManager.Sphere.Models.ProvisioningState?)) { throw null; }
+ public static Azure.ResourceManager.Sphere.DeviceData DeviceData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, string deviceId = null, string chipSku = null, string lastAvailableOSVersion = null, string lastInstalledOSVersion = null, System.DateTimeOffset? lastOSUpdateUtc = default(System.DateTimeOffset?), System.DateTimeOffset? lastUpdateRequestUtc = default(System.DateTimeOffset?), Azure.ResourceManager.Sphere.Models.ProvisioningState? provisioningState = default(Azure.ResourceManager.Sphere.Models.ProvisioningState?)) { throw null; }
+ public static Azure.ResourceManager.Sphere.DeviceGroupData DeviceGroupData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, string description = null, Azure.ResourceManager.Sphere.Models.OSFeedType? osFeedType = default(Azure.ResourceManager.Sphere.Models.OSFeedType?), Azure.ResourceManager.Sphere.Models.UpdatePolicy? updatePolicy = default(Azure.ResourceManager.Sphere.Models.UpdatePolicy?), Azure.ResourceManager.Sphere.Models.AllowCrashDumpCollection? allowCrashDumpsCollection = default(Azure.ResourceManager.Sphere.Models.AllowCrashDumpCollection?), Azure.ResourceManager.Sphere.Models.RegionalDataBoundary? regionalDataBoundary = default(Azure.ResourceManager.Sphere.Models.RegionalDataBoundary?), bool? hasDeployment = default(bool?), Azure.ResourceManager.Sphere.Models.ProvisioningState? provisioningState = default(Azure.ResourceManager.Sphere.Models.ProvisioningState?)) { throw null; }
+ public static Azure.ResourceManager.Sphere.Models.DeviceInsight DeviceInsight(string deviceId = null, string description = null, System.DateTimeOffset startTimestampUtc = default(System.DateTimeOffset), System.DateTimeOffset endTimestampUtc = default(System.DateTimeOffset), string eventCategory = null, string eventClass = null, string eventType = null, int eventCount = 0) { throw null; }
+ public static Azure.ResourceManager.Sphere.ImageData ImageData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, string image = null, string imageId = null, string imageName = null, Azure.ResourceManager.Sphere.Models.RegionalDataBoundary? regionalDataBoundary = default(Azure.ResourceManager.Sphere.Models.RegionalDataBoundary?), System.Uri uri = null, string description = null, string componentId = null, Azure.ResourceManager.Sphere.Models.ImageType? imageType = default(Azure.ResourceManager.Sphere.Models.ImageType?), Azure.ResourceManager.Sphere.Models.ProvisioningState? provisioningState = default(Azure.ResourceManager.Sphere.Models.ProvisioningState?)) { throw null; }
+ public static Azure.ResourceManager.Sphere.ProductData ProductData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, string description = null, Azure.ResourceManager.Sphere.Models.ProvisioningState? provisioningState = default(Azure.ResourceManager.Sphere.Models.ProvisioningState?)) { throw null; }
+ public static Azure.ResourceManager.Sphere.Models.ProofOfPossessionNonceResponse ProofOfPossessionNonceResponse(string certificate = null, Azure.ResourceManager.Sphere.Models.CertificateStatus? status = default(Azure.ResourceManager.Sphere.Models.CertificateStatus?), string subject = null, string thumbprint = null, System.DateTimeOffset? expiryUtc = default(System.DateTimeOffset?), System.DateTimeOffset? notBeforeUtc = default(System.DateTimeOffset?), Azure.ResourceManager.Sphere.Models.ProvisioningState? provisioningState = default(Azure.ResourceManager.Sphere.Models.ProvisioningState?)) { throw null; }
+ public static Azure.ResourceManager.Sphere.Models.SignedCapabilityImageResponse SignedCapabilityImageResponse(string image = null) { throw null; }
+ }
+ [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)]
+ public readonly partial struct CapabilityType : System.IEquatable
+ {
+ private readonly object _dummy;
+ private readonly int _dummyPrimitive;
+ public CapabilityType(string value) { throw null; }
+ public static Azure.ResourceManager.Sphere.Models.CapabilityType ApplicationDevelopment { get { throw null; } }
+ public static Azure.ResourceManager.Sphere.Models.CapabilityType FieldServicing { get { throw null; } }
+ public bool Equals(Azure.ResourceManager.Sphere.Models.CapabilityType 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.Sphere.Models.CapabilityType left, Azure.ResourceManager.Sphere.Models.CapabilityType right) { throw null; }
+ public static implicit operator Azure.ResourceManager.Sphere.Models.CapabilityType (string value) { throw null; }
+ public static bool operator !=(Azure.ResourceManager.Sphere.Models.CapabilityType left, Azure.ResourceManager.Sphere.Models.CapabilityType right) { throw null; }
+ public override string ToString() { throw null; }
+ }
+ public partial class CatalogPatch
+ {
+ public CatalogPatch() { }
+ public System.Collections.Generic.IDictionary Tags { get { throw null; } }
+ }
+ public partial class CertificateChainResponse
+ {
+ internal CertificateChainResponse() { }
+ public string CertificateChain { get { throw null; } }
+ }
+ public partial class CertificateProperties
+ {
+ internal CertificateProperties() { }
+ public string Certificate { get { throw null; } }
+ public System.DateTimeOffset? ExpiryUtc { get { throw null; } }
+ public System.DateTimeOffset? NotBeforeUtc { get { throw null; } }
+ public Azure.ResourceManager.Sphere.Models.ProvisioningState? ProvisioningState { get { throw null; } }
+ public Azure.ResourceManager.Sphere.Models.CertificateStatus? Status { get { throw null; } }
+ public string Subject { get { throw null; } }
+ public string Thumbprint { get { throw null; } }
+ }
+ [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)]
+ public readonly partial struct CertificateStatus : System.IEquatable
+ {
+ private readonly object _dummy;
+ private readonly int _dummyPrimitive;
+ public CertificateStatus(string value) { throw null; }
+ public static Azure.ResourceManager.Sphere.Models.CertificateStatus Active { get { throw null; } }
+ public static Azure.ResourceManager.Sphere.Models.CertificateStatus Expired { get { throw null; } }
+ public static Azure.ResourceManager.Sphere.Models.CertificateStatus Inactive { get { throw null; } }
+ public static Azure.ResourceManager.Sphere.Models.CertificateStatus Revoked { get { throw null; } }
+ public bool Equals(Azure.ResourceManager.Sphere.Models.CertificateStatus 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.Sphere.Models.CertificateStatus left, Azure.ResourceManager.Sphere.Models.CertificateStatus right) { throw null; }
+ public static implicit operator Azure.ResourceManager.Sphere.Models.CertificateStatus (string value) { throw null; }
+ public static bool operator !=(Azure.ResourceManager.Sphere.Models.CertificateStatus left, Azure.ResourceManager.Sphere.Models.CertificateStatus right) { throw null; }
+ public override string ToString() { throw null; }
+ }
+ public partial class ClaimDevicesContent
+ {
+ public ClaimDevicesContent(System.Collections.Generic.IEnumerable deviceIdentifiers) { }
+ public System.Collections.Generic.IList DeviceIdentifiers { get { throw null; } }
+ }
+ public partial class CountDeviceResponse : Azure.ResourceManager.Sphere.Models.CountElementsResponse
+ {
+ internal CountDeviceResponse() { }
+ }
+ public partial class CountElementsResponse
+ {
+ internal CountElementsResponse() { }
+ public int Value { get { throw null; } }
+ }
+ public partial class DeviceGroupPatch
+ {
+ public DeviceGroupPatch() { }
+ public Azure.ResourceManager.Sphere.Models.AllowCrashDumpCollection? AllowCrashDumpsCollection { get { throw null; } set { } }
+ public string Description { get { throw null; } set { } }
+ public Azure.ResourceManager.Sphere.Models.OSFeedType? OSFeedType { get { throw null; } set { } }
+ public Azure.ResourceManager.Sphere.Models.RegionalDataBoundary? RegionalDataBoundary { get { throw null; } set { } }
+ public Azure.ResourceManager.Sphere.Models.UpdatePolicy? UpdatePolicy { get { throw null; } set { } }
+ }
+ public partial class DeviceInsight
+ {
+ internal DeviceInsight() { }
+ public string Description { get { throw null; } }
+ public string DeviceId { get { throw null; } }
+ public System.DateTimeOffset EndTimestampUtc { get { throw null; } }
+ public string EventCategory { get { throw null; } }
+ public string EventClass { get { throw null; } }
+ public int EventCount { get { throw null; } }
+ public string EventType { get { throw null; } }
+ public System.DateTimeOffset StartTimestampUtc { get { throw null; } }
+ }
+ public partial class DevicePatch
+ {
+ public DevicePatch() { }
+ public string DeviceGroupId { get { throw null; } set { } }
+ }
+ public partial class GenerateCapabilityImageContent
+ {
+ public GenerateCapabilityImageContent(System.Collections.Generic.IEnumerable capabilities) { }
+ public System.Collections.Generic.IList Capabilities { get { throw null; } }
+ }
+ [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)]
+ public readonly partial struct ImageType : System.IEquatable
+ {
+ private readonly object _dummy;
+ private readonly int _dummyPrimitive;
+ public ImageType(string value) { throw null; }
+ public static Azure.ResourceManager.Sphere.Models.ImageType Applications { get { throw null; } }
+ public static Azure.ResourceManager.Sphere.Models.ImageType BaseSystemUpdateManifest { get { throw null; } }
+ public static Azure.ResourceManager.Sphere.Models.ImageType BootManifest { get { throw null; } }
+ public static Azure.ResourceManager.Sphere.Models.ImageType CustomerBoardConfig { get { throw null; } }
+ public static Azure.ResourceManager.Sphere.Models.ImageType CustomerUpdateManifest { get { throw null; } }
+ public static Azure.ResourceManager.Sphere.Models.ImageType FirmwareUpdateManifest { get { throw null; } }
+ public static Azure.ResourceManager.Sphere.Models.ImageType FwConfig { get { throw null; } }
+ public static Azure.ResourceManager.Sphere.Models.ImageType InvalidImageType { get { throw null; } }
+ public static Azure.ResourceManager.Sphere.Models.ImageType ManifestSet { get { throw null; } }
+ public static Azure.ResourceManager.Sphere.Models.ImageType NormalWorldDtb { get { throw null; } }
+ public static Azure.ResourceManager.Sphere.Models.ImageType NormalWorldKernel { get { throw null; } }
+ public static Azure.ResourceManager.Sphere.Models.ImageType NormalWorldLoader { get { throw null; } }
+ public static Azure.ResourceManager.Sphere.Models.ImageType Nwfs { get { throw null; } }
+ public static Azure.ResourceManager.Sphere.Models.ImageType OneBl { get { throw null; } }
+ public static Azure.ResourceManager.Sphere.Models.ImageType Other { get { throw null; } }
+ public static Azure.ResourceManager.Sphere.Models.ImageType PlutonRuntime { get { throw null; } }
+ public static Azure.ResourceManager.Sphere.Models.ImageType Policy { get { throw null; } }
+ public static Azure.ResourceManager.Sphere.Models.ImageType RecoveryManifest { get { throw null; } }
+ public static Azure.ResourceManager.Sphere.Models.ImageType RootFs { get { throw null; } }
+ public static Azure.ResourceManager.Sphere.Models.ImageType SecurityMonitor { get { throw null; } }
+ public static Azure.ResourceManager.Sphere.Models.ImageType Services { get { throw null; } }
+ public static Azure.ResourceManager.Sphere.Models.ImageType TrustedKeystore { get { throw null; } }
+ public static Azure.ResourceManager.Sphere.Models.ImageType UpdateCertStore { get { throw null; } }
+ public static Azure.ResourceManager.Sphere.Models.ImageType WifiFirmware { get { throw null; } }
+ public bool Equals(Azure.ResourceManager.Sphere.Models.ImageType 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.Sphere.Models.ImageType left, Azure.ResourceManager.Sphere.Models.ImageType right) { throw null; }
+ public static implicit operator Azure.ResourceManager.Sphere.Models.ImageType (string value) { throw null; }
+ public static bool operator !=(Azure.ResourceManager.Sphere.Models.ImageType left, Azure.ResourceManager.Sphere.Models.ImageType right) { throw null; }
+ public override string ToString() { throw null; }
+ }
+ public partial class ListDeviceGroupsContent
+ {
+ public ListDeviceGroupsContent() { }
+ public string DeviceGroupName { get { throw null; } set { } }
+ }
+ [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)]
+ public readonly partial struct OSFeedType : System.IEquatable
+ {
+ private readonly object _dummy;
+ private readonly int _dummyPrimitive;
+ public OSFeedType(string value) { throw null; }
+ public static Azure.ResourceManager.Sphere.Models.OSFeedType Retail { get { throw null; } }
+ public static Azure.ResourceManager.Sphere.Models.OSFeedType RetailEval { get { throw null; } }
+ public bool Equals(Azure.ResourceManager.Sphere.Models.OSFeedType 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.Sphere.Models.OSFeedType left, Azure.ResourceManager.Sphere.Models.OSFeedType right) { throw null; }
+ public static implicit operator Azure.ResourceManager.Sphere.Models.OSFeedType (string value) { throw null; }
+ public static bool operator !=(Azure.ResourceManager.Sphere.Models.OSFeedType left, Azure.ResourceManager.Sphere.Models.OSFeedType right) { throw null; }
+ public override string ToString() { throw null; }
+ }
+ public partial class ProductPatch
+ {
+ public ProductPatch() { }
+ public string Description { get { throw null; } set { } }
+ }
+ public partial class ProofOfPossessionNonceContent
+ {
+ public ProofOfPossessionNonceContent(string proofOfPossessionNonce) { }
+ public string ProofOfPossessionNonce { get { throw null; } }
+ }
+ public partial class ProofOfPossessionNonceResponse : Azure.ResourceManager.Sphere.Models.CertificateProperties
+ {
+ internal ProofOfPossessionNonceResponse() { }
+ }
+ [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)]
+ public readonly partial struct ProvisioningState : System.IEquatable
+ {
+ private readonly object _dummy;
+ private readonly int _dummyPrimitive;
+ public ProvisioningState(string value) { throw null; }
+ public static Azure.ResourceManager.Sphere.Models.ProvisioningState Accepted { get { throw null; } }
+ public static Azure.ResourceManager.Sphere.Models.ProvisioningState Canceled { get { throw null; } }
+ public static Azure.ResourceManager.Sphere.Models.ProvisioningState Deleting { get { throw null; } }
+ public static Azure.ResourceManager.Sphere.Models.ProvisioningState Failed { get { throw null; } }
+ public static Azure.ResourceManager.Sphere.Models.ProvisioningState Provisioning { get { throw null; } }
+ public static Azure.ResourceManager.Sphere.Models.ProvisioningState Succeeded { get { throw null; } }
+ public static Azure.ResourceManager.Sphere.Models.ProvisioningState Updating { get { throw null; } }
+ public bool Equals(Azure.ResourceManager.Sphere.Models.ProvisioningState 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.Sphere.Models.ProvisioningState left, Azure.ResourceManager.Sphere.Models.ProvisioningState right) { throw null; }
+ public static implicit operator Azure.ResourceManager.Sphere.Models.ProvisioningState (string value) { throw null; }
+ public static bool operator !=(Azure.ResourceManager.Sphere.Models.ProvisioningState left, Azure.ResourceManager.Sphere.Models.ProvisioningState right) { throw null; }
+ public override string ToString() { throw null; }
+ }
+ [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)]
+ public readonly partial struct RegionalDataBoundary : System.IEquatable
+ {
+ private readonly object _dummy;
+ private readonly int _dummyPrimitive;
+ public RegionalDataBoundary(string value) { throw null; }
+ public static Azure.ResourceManager.Sphere.Models.RegionalDataBoundary EU { get { throw null; } }
+ public static Azure.ResourceManager.Sphere.Models.RegionalDataBoundary None { get { throw null; } }
+ public bool Equals(Azure.ResourceManager.Sphere.Models.RegionalDataBoundary 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.Sphere.Models.RegionalDataBoundary left, Azure.ResourceManager.Sphere.Models.RegionalDataBoundary right) { throw null; }
+ public static implicit operator Azure.ResourceManager.Sphere.Models.RegionalDataBoundary (string value) { throw null; }
+ public static bool operator !=(Azure.ResourceManager.Sphere.Models.RegionalDataBoundary left, Azure.ResourceManager.Sphere.Models.RegionalDataBoundary right) { throw null; }
+ public override string ToString() { throw null; }
+ }
+ public partial class SignedCapabilityImageResponse
+ {
+ internal SignedCapabilityImageResponse() { }
+ public string Image { get { throw null; } }
+ }
+ [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)]
+ public readonly partial struct UpdatePolicy : System.IEquatable
+ {
+ private readonly object _dummy;
+ private readonly int _dummyPrimitive;
+ public UpdatePolicy(string value) { throw null; }
+ public static Azure.ResourceManager.Sphere.Models.UpdatePolicy No3RdPartyAppUpdates { get { throw null; } }
+ public static Azure.ResourceManager.Sphere.Models.UpdatePolicy UpdateAll { get { throw null; } }
+ public bool Equals(Azure.ResourceManager.Sphere.Models.UpdatePolicy 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.Sphere.Models.UpdatePolicy left, Azure.ResourceManager.Sphere.Models.UpdatePolicy right) { throw null; }
+ public static implicit operator Azure.ResourceManager.Sphere.Models.UpdatePolicy (string value) { throw null; }
+ public static bool operator !=(Azure.ResourceManager.Sphere.Models.UpdatePolicy left, Azure.ResourceManager.Sphere.Models.UpdatePolicy right) { throw null; }
+ public override string ToString() { throw null; }
+ }
+}
diff --git a/sdk/sphere/Azure.ResourceManager.Sphere/samples/Azure.ResourceManager.Sphere.Samples.csproj b/sdk/sphere/Azure.ResourceManager.Sphere/samples/Azure.ResourceManager.Sphere.Samples.csproj
new file mode 100644
index 0000000000000..096809cffa53e
--- /dev/null
+++ b/sdk/sphere/Azure.ResourceManager.Sphere/samples/Azure.ResourceManager.Sphere.Samples.csproj
@@ -0,0 +1,10 @@
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/sdk/sphere/Azure.ResourceManager.Sphere/samples/autorest.tests.md b/sdk/sphere/Azure.ResourceManager.Sphere/samples/autorest.tests.md
new file mode 100644
index 0000000000000..509dda31a7b61
--- /dev/null
+++ b/sdk/sphere/Azure.ResourceManager.Sphere/samples/autorest.tests.md
@@ -0,0 +1,13 @@
+# Generated code configuration
+
+Run `dotnet build /t:GenerateTests` to generate code.
+
+# Azure.ResourceManager.sphere.Tests
+
+> see https://aka.ms/autorest
+``` yaml
+require: ../src/autorest.md
+include-x-ms-examples-original-file: true
+testgen:
+ sample: true
+```
\ No newline at end of file
diff --git a/sdk/sphere/Azure.ResourceManager.Sphere/src/Azure.ResourceManager.Sphere.csproj b/sdk/sphere/Azure.ResourceManager.Sphere/src/Azure.ResourceManager.Sphere.csproj
new file mode 100644
index 0000000000000..7c0b1c94e6ee2
--- /dev/null
+++ b/sdk/sphere/Azure.ResourceManager.Sphere/src/Azure.ResourceManager.Sphere.csproj
@@ -0,0 +1,8 @@
+
+
+ 1.0.0-beta.1
+ Azure.ResourceManager.Sphere
+ Azure Resource Manager client SDK for Azure resource provider sphere.
+ azure;management;arm;resource manager;sphere
+
+
diff --git a/sdk/sphere/Azure.ResourceManager.Sphere/src/Generated/ArmSphereModelFactory.cs b/sdk/sphere/Azure.ResourceManager.Sphere/src/Generated/ArmSphereModelFactory.cs
new file mode 100644
index 0000000000000..6c57d72968d5c
--- /dev/null
+++ b/sdk/sphere/Azure.ResourceManager.Sphere/src/Generated/ArmSphereModelFactory.cs
@@ -0,0 +1,237 @@
+// 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;
+using Azure.ResourceManager.Sphere;
+
+namespace Azure.ResourceManager.Sphere.Models
+{
+ /// Model factory for models.
+ public static partial class ArmSphereModelFactory
+ {
+ /// Initializes a new instance of CatalogData.
+ /// The id.
+ /// The name.
+ /// The resourceType.
+ /// The systemData.
+ /// The tags.
+ /// The location.
+ /// The status of the last operation.
+ /// A new instance for mocking.
+ public static CatalogData CatalogData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, ProvisioningState? provisioningState = null)
+ {
+ tags ??= new Dictionary();
+
+ return new CatalogData(id, name, resourceType, systemData, tags, location, provisioningState);
+ }
+
+ /// Initializes a new instance of CertificateData.
+ /// The id.
+ /// The name.
+ /// The resourceType.
+ /// The systemData.
+ /// The certificate as a UTF-8 encoded base 64 string.
+ /// The certificate status.
+ /// The certificate subject.
+ /// The certificate thumbprint.
+ /// The certificate expiry date.
+ /// The certificate not before date.
+ /// The status of the last operation.
+ /// A new instance for mocking.
+ public static CertificateData CertificateData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, string certificate = null, CertificateStatus? status = null, string subject = null, string thumbprint = null, DateTimeOffset? expiryUtc = null, DateTimeOffset? notBeforeUtc = null, ProvisioningState? provisioningState = null)
+ {
+ return new CertificateData(id, name, resourceType, systemData, certificate, status, subject, thumbprint, expiryUtc, notBeforeUtc, provisioningState);
+ }
+
+ /// Initializes a new instance of CertificateProperties.
+ /// The certificate as a UTF-8 encoded base 64 string.
+ /// The certificate status.
+ /// The certificate subject.
+ /// The certificate thumbprint.
+ /// The certificate expiry date.
+ /// The certificate not before date.
+ /// The status of the last operation.
+ /// A new instance for mocking.
+ public static CertificateProperties CertificateProperties(string certificate = null, CertificateStatus? status = null, string subject = null, string thumbprint = null, DateTimeOffset? expiryUtc = null, DateTimeOffset? notBeforeUtc = null, ProvisioningState? provisioningState = null)
+ {
+ return new CertificateProperties(certificate, status, subject, thumbprint, expiryUtc, notBeforeUtc, provisioningState);
+ }
+
+ /// Initializes a new instance of CertificateChainResponse.
+ /// The certificate chain.
+ /// A new instance for mocking.
+ public static CertificateChainResponse CertificateChainResponse(string certificateChain = null)
+ {
+ return new CertificateChainResponse(certificateChain);
+ }
+
+ /// Initializes a new instance of ProofOfPossessionNonceResponse.
+ /// The certificate as a UTF-8 encoded base 64 string.
+ /// The certificate status.
+ /// The certificate subject.
+ /// The certificate thumbprint.
+ /// The certificate expiry date.
+ /// The certificate not before date.
+ /// The status of the last operation.
+ /// A new instance for mocking.
+ public static ProofOfPossessionNonceResponse ProofOfPossessionNonceResponse(string certificate = null, CertificateStatus? status = null, string subject = null, string thumbprint = null, DateTimeOffset? expiryUtc = null, DateTimeOffset? notBeforeUtc = null, ProvisioningState? provisioningState = null)
+ {
+ return new ProofOfPossessionNonceResponse(certificate, status, subject, thumbprint, expiryUtc, notBeforeUtc, provisioningState);
+ }
+
+ /// Initializes a new instance of CountDeviceResponse.
+ /// Number of children resources in parent resource.
+ /// A new instance for mocking.
+ public static CountDeviceResponse CountDeviceResponse(int value = default)
+ {
+ return new CountDeviceResponse(value);
+ }
+
+ /// Initializes a new instance of CountElementsResponse.
+ /// Number of children resources in parent resource.
+ /// A new instance for mocking.
+ public static CountElementsResponse CountElementsResponse(int value = default)
+ {
+ return new CountElementsResponse(value);
+ }
+
+ /// Initializes a new instance of ImageData.
+ /// The id.
+ /// The name.
+ /// The resourceType.
+ /// The systemData.
+ /// Image as a UTF-8 encoded base 64 string on image create. This field contains the image URI on image reads.
+ /// Image ID.
+ /// Image name.
+ /// Regional data boundary for an image.
+ /// Location the image.
+ /// The image description.
+ /// The image component id.
+ /// The image type.
+ /// The status of the last operation.
+ /// A new instance for mocking.
+ public static ImageData ImageData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, string image = null, string imageId = null, string imageName = null, RegionalDataBoundary? regionalDataBoundary = null, Uri uri = null, string description = null, string componentId = null, ImageType? imageType = null, ProvisioningState? provisioningState = null)
+ {
+ return new ImageData(id, name, resourceType, systemData, image, imageId, imageName, regionalDataBoundary, uri, description, componentId, imageType, provisioningState);
+ }
+
+ /// Initializes a new instance of DeploymentData.
+ /// The id.
+ /// The name.
+ /// The resourceType.
+ /// The systemData.
+ /// Deployment ID.
+ /// Images deployed.
+ /// Deployment date UTC.
+ /// The status of the last operation.
+ /// A new instance for mocking.
+ public static DeploymentData DeploymentData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, string deploymentId = null, IEnumerable deployedImages = null, DateTimeOffset? deploymentDateUtc = null, ProvisioningState? provisioningState = null)
+ {
+ deployedImages ??= new List();
+
+ return new DeploymentData(id, name, resourceType, systemData, deploymentId, deployedImages?.ToList(), deploymentDateUtc, provisioningState);
+ }
+
+ /// Initializes a new instance of DeviceGroupData.
+ /// The id.
+ /// The name.
+ /// The resourceType.
+ /// The systemData.
+ /// Description of the device group.
+ /// Operating system feed type of the device group.
+ /// Update policy of the device group.
+ /// Flag to define if the user allows for crash dump collection.
+ /// Regional data boundary for the device group.
+ /// Deployment status for the device group.
+ /// The status of the last operation.
+ /// A new instance for mocking.
+ public static DeviceGroupData DeviceGroupData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, string description = null, OSFeedType? osFeedType = null, UpdatePolicy? updatePolicy = null, AllowCrashDumpCollection? allowCrashDumpsCollection = null, RegionalDataBoundary? regionalDataBoundary = null, bool? hasDeployment = null, ProvisioningState? provisioningState = null)
+ {
+ return new DeviceGroupData(id, name, resourceType, systemData, description, osFeedType, updatePolicy, allowCrashDumpsCollection, regionalDataBoundary, hasDeployment, provisioningState);
+ }
+
+ /// Initializes a new instance of DeviceInsight.
+ /// Device ID.
+ /// Event description.
+ /// Event start timestamp.
+ /// Event end timestamp.
+ /// Event category.
+ /// Event class.
+ /// Event type.
+ /// Event count.
+ /// , , , or is null.
+ /// A new instance for mocking.
+ public static DeviceInsight DeviceInsight(string deviceId = null, string description = null, DateTimeOffset startTimestampUtc = default, DateTimeOffset endTimestampUtc = default, string eventCategory = null, string eventClass = null, string eventType = null, int eventCount = default)
+ {
+ if (deviceId == null)
+ {
+ throw new ArgumentNullException(nameof(deviceId));
+ }
+ if (description == null)
+ {
+ throw new ArgumentNullException(nameof(description));
+ }
+ if (eventCategory == null)
+ {
+ throw new ArgumentNullException(nameof(eventCategory));
+ }
+ if (eventClass == null)
+ {
+ throw new ArgumentNullException(nameof(eventClass));
+ }
+ if (eventType == null)
+ {
+ throw new ArgumentNullException(nameof(eventType));
+ }
+
+ return new DeviceInsight(deviceId, description, startTimestampUtc, endTimestampUtc, eventCategory, eventClass, eventType, eventCount);
+ }
+
+ /// Initializes a new instance of DeviceData.
+ /// The id.
+ /// The name.
+ /// The resourceType.
+ /// The systemData.
+ /// Device ID.
+ /// SKU of the chip.
+ /// OS version available for installation when update requested.
+ /// OS version running on device when update requested.
+ /// Time when update requested and new OS version available.
+ /// Time when update was last requested.
+ /// The status of the last operation.
+ /// A new instance for mocking.
+ public static DeviceData DeviceData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, string deviceId = null, string chipSku = null, string lastAvailableOSVersion = null, string lastInstalledOSVersion = null, DateTimeOffset? lastOSUpdateUtc = null, DateTimeOffset? lastUpdateRequestUtc = null, ProvisioningState? provisioningState = null)
+ {
+ return new DeviceData(id, name, resourceType, systemData, deviceId, chipSku, lastAvailableOSVersion, lastInstalledOSVersion, lastOSUpdateUtc, lastUpdateRequestUtc, provisioningState);
+ }
+
+ /// Initializes a new instance of ProductData.
+ /// The id.
+ /// The name.
+ /// The resourceType.
+ /// The systemData.
+ /// Description of the product.
+ /// The status of the last operation.
+ /// A new instance for mocking.
+ public static ProductData ProductData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, string description = null, ProvisioningState? provisioningState = null)
+ {
+ return new ProductData(id, name, resourceType, systemData, description, provisioningState);
+ }
+
+ /// Initializes a new instance of SignedCapabilityImageResponse.
+ /// The signed device capability image as a UTF-8 encoded base 64 string.
+ /// A new instance for mocking.
+ public static SignedCapabilityImageResponse SignedCapabilityImageResponse(string image = null)
+ {
+ return new SignedCapabilityImageResponse(image);
+ }
+ }
+}
diff --git a/sdk/sphere/Azure.ResourceManager.Sphere/src/Generated/CatalogCollection.cs b/sdk/sphere/Azure.ResourceManager.Sphere/src/Generated/CatalogCollection.cs
new file mode 100644
index 0000000000000..91924c8350e45
--- /dev/null
+++ b/sdk/sphere/Azure.ResourceManager.Sphere/src/Generated/CatalogCollection.cs
@@ -0,0 +1,341 @@
+// 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.Globalization;
+using System.Threading;
+using System.Threading.Tasks;
+using Azure;
+using Azure.Core;
+using Azure.Core.Pipeline;
+using Azure.ResourceManager;
+using Azure.ResourceManager.Resources;
+
+namespace Azure.ResourceManager.Sphere
+{
+ ///
+ /// A class representing a collection of and their operations.
+ /// Each in the collection will belong to the same instance of .
+ /// To get a instance call the GetCatalogs method from an instance of .
+ ///
+ public partial class CatalogCollection : ArmCollection, IEnumerable, IAsyncEnumerable
+ {
+ private readonly ClientDiagnostics _catalogClientDiagnostics;
+ private readonly CatalogsRestOperations _catalogRestClient;
+
+ /// Initializes a new instance of the class for mocking.
+ protected CatalogCollection()
+ {
+ }
+
+ /// Initializes a new instance of the class.
+ /// The client parameters to use in these operations.
+ /// The identifier of the parent resource that is the target of operations.
+ internal CatalogCollection(ArmClient client, ResourceIdentifier id) : base(client, id)
+ {
+ _catalogClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.Sphere", CatalogResource.ResourceType.Namespace, Diagnostics);
+ TryGetApiVersion(CatalogResource.ResourceType, out string catalogApiVersion);
+ _catalogRestClient = new CatalogsRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, catalogApiVersion);
+#if DEBUG
+ ValidateResourceId(Id);
+#endif
+ }
+
+ internal static void ValidateResourceId(ResourceIdentifier id)
+ {
+ if (id.ResourceType != ResourceGroupResource.ResourceType)
+ throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "Invalid resource type {0} expected {1}", id.ResourceType, ResourceGroupResource.ResourceType), nameof(id));
+ }
+
+ ///
+ /// Create a Catalog
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureSphere/catalogs/{catalogName}
+ ///
+ /// -
+ /// Operation Id
+ /// Catalogs_CreateOrUpdate
+ ///
+ ///
+ ///
+ /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples.
+ /// Name of catalog.
+ /// Resource create parameters.
+ /// The cancellation token to use.
+ /// is an empty string, and was expected to be non-empty.
+ /// or is null.
+ public virtual async Task> CreateOrUpdateAsync(WaitUntil waitUntil, string catalogName, CatalogData data, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNullOrEmpty(catalogName, nameof(catalogName));
+ Argument.AssertNotNull(data, nameof(data));
+
+ using var scope = _catalogClientDiagnostics.CreateScope("CatalogCollection.CreateOrUpdate");
+ scope.Start();
+ try
+ {
+ var response = await _catalogRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, catalogName, data, cancellationToken).ConfigureAwait(false);
+ var operation = new SphereArmOperation(new CatalogOperationSource(Client), _catalogClientDiagnostics, Pipeline, _catalogRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, catalogName, data).Request, response, OperationFinalStateVia.AzureAsyncOperation);
+ if (waitUntil == WaitUntil.Completed)
+ await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false);
+ return operation;
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+
+ ///
+ /// Create a Catalog
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureSphere/catalogs/{catalogName}
+ ///
+ /// -
+ /// Operation Id
+ /// Catalogs_CreateOrUpdate
+ ///
+ ///
+ ///
+ /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples.
+ /// Name of catalog.
+ /// Resource create parameters.
+ /// The cancellation token to use.
+ /// is an empty string, and was expected to be non-empty.
+ /// or is null.
+ public virtual ArmOperation CreateOrUpdate(WaitUntil waitUntil, string catalogName, CatalogData data, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNullOrEmpty(catalogName, nameof(catalogName));
+ Argument.AssertNotNull(data, nameof(data));
+
+ using var scope = _catalogClientDiagnostics.CreateScope("CatalogCollection.CreateOrUpdate");
+ scope.Start();
+ try
+ {
+ var response = _catalogRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, catalogName, data, cancellationToken);
+ var operation = new SphereArmOperation(new CatalogOperationSource(Client), _catalogClientDiagnostics, Pipeline, _catalogRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, catalogName, data).Request, response, OperationFinalStateVia.AzureAsyncOperation);
+ if (waitUntil == WaitUntil.Completed)
+ operation.WaitForCompletion(cancellationToken);
+ return operation;
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+
+ ///
+ /// Get a Catalog
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureSphere/catalogs/{catalogName}
+ ///
+ /// -
+ /// Operation Id
+ /// Catalogs_Get
+ ///
+ ///
+ ///
+ /// Name of catalog.
+ /// The cancellation token to use.
+ /// is an empty string, and was expected to be non-empty.
+ /// is null.
+ public virtual async Task> GetAsync(string catalogName, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNullOrEmpty(catalogName, nameof(catalogName));
+
+ using var scope = _catalogClientDiagnostics.CreateScope("CatalogCollection.Get");
+ scope.Start();
+ try
+ {
+ var response = await _catalogRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, catalogName, cancellationToken).ConfigureAwait(false);
+ if (response.Value == null)
+ throw new RequestFailedException(response.GetRawResponse());
+ return Response.FromValue(new CatalogResource(Client, response.Value), response.GetRawResponse());
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+
+ ///
+ /// Get a Catalog
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureSphere/catalogs/{catalogName}
+ ///
+ /// -
+ /// Operation Id
+ /// Catalogs_Get
+ ///
+ ///
+ ///
+ /// Name of catalog.
+ /// The cancellation token to use.
+ /// is an empty string, and was expected to be non-empty.
+ /// is null.
+ public virtual Response Get(string catalogName, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNullOrEmpty(catalogName, nameof(catalogName));
+
+ using var scope = _catalogClientDiagnostics.CreateScope("CatalogCollection.Get");
+ scope.Start();
+ try
+ {
+ var response = _catalogRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, catalogName, cancellationToken);
+ if (response.Value == null)
+ throw new RequestFailedException(response.GetRawResponse());
+ return Response.FromValue(new CatalogResource(Client, response.Value), response.GetRawResponse());
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+
+ ///
+ /// List Catalog resources by resource group
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureSphere/catalogs
+ ///
+ /// -
+ /// Operation Id
+ /// Catalogs_ListByResourceGroup
+ ///
+ ///
+ ///
+ /// The cancellation token to use.
+ /// An async collection of that may take multiple service requests to iterate over.
+ public virtual AsyncPageable GetAllAsync(CancellationToken cancellationToken = default)
+ {
+ HttpMessage FirstPageRequest(int? pageSizeHint) => _catalogRestClient.CreateListByResourceGroupRequest(Id.SubscriptionId, Id.ResourceGroupName);
+ HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _catalogRestClient.CreateListByResourceGroupNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName);
+ return PageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => new CatalogResource(Client, CatalogData.DeserializeCatalogData(e)), _catalogClientDiagnostics, Pipeline, "CatalogCollection.GetAll", "value", "nextLink", cancellationToken);
+ }
+
+ ///
+ /// List Catalog resources by resource group
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureSphere/catalogs
+ ///
+ /// -
+ /// Operation Id
+ /// Catalogs_ListByResourceGroup
+ ///
+ ///
+ ///
+ /// The cancellation token to use.
+ /// A collection of that may take multiple service requests to iterate over.
+ public virtual Pageable GetAll(CancellationToken cancellationToken = default)
+ {
+ HttpMessage FirstPageRequest(int? pageSizeHint) => _catalogRestClient.CreateListByResourceGroupRequest(Id.SubscriptionId, Id.ResourceGroupName);
+ HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _catalogRestClient.CreateListByResourceGroupNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName);
+ return PageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new CatalogResource(Client, CatalogData.DeserializeCatalogData(e)), _catalogClientDiagnostics, Pipeline, "CatalogCollection.GetAll", "value", "nextLink", cancellationToken);
+ }
+
+ ///
+ /// Checks to see if the resource exists in azure.
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureSphere/catalogs/{catalogName}
+ ///
+ /// -
+ /// Operation Id
+ /// Catalogs_Get
+ ///
+ ///
+ ///
+ /// Name of catalog.
+ /// The cancellation token to use.
+ /// is an empty string, and was expected to be non-empty.
+ /// is null.
+ public virtual async Task> ExistsAsync(string catalogName, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNullOrEmpty(catalogName, nameof(catalogName));
+
+ using var scope = _catalogClientDiagnostics.CreateScope("CatalogCollection.Exists");
+ scope.Start();
+ try
+ {
+ var response = await _catalogRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, catalogName, cancellationToken: cancellationToken).ConfigureAwait(false);
+ return Response.FromValue(response.Value != null, response.GetRawResponse());
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+
+ ///
+ /// Checks to see if the resource exists in azure.
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureSphere/catalogs/{catalogName}
+ ///
+ /// -
+ /// Operation Id
+ /// Catalogs_Get
+ ///
+ ///
+ ///
+ /// Name of catalog.
+ /// The cancellation token to use.
+ /// is an empty string, and was expected to be non-empty.
+ /// is null.
+ public virtual Response Exists(string catalogName, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNullOrEmpty(catalogName, nameof(catalogName));
+
+ using var scope = _catalogClientDiagnostics.CreateScope("CatalogCollection.Exists");
+ scope.Start();
+ try
+ {
+ var response = _catalogRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, catalogName, cancellationToken: cancellationToken);
+ return Response.FromValue(response.Value != null, response.GetRawResponse());
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+
+ IEnumerator IEnumerable.GetEnumerator()
+ {
+ return GetAll().GetEnumerator();
+ }
+
+ IEnumerator IEnumerable.GetEnumerator()
+ {
+ return GetAll().GetEnumerator();
+ }
+
+ IAsyncEnumerator IAsyncEnumerable.GetAsyncEnumerator(CancellationToken cancellationToken)
+ {
+ return GetAllAsync(cancellationToken: cancellationToken).GetAsyncEnumerator(cancellationToken);
+ }
+ }
+}
diff --git a/sdk/sphere/Azure.ResourceManager.Sphere/src/Generated/CatalogData.cs b/sdk/sphere/Azure.ResourceManager.Sphere/src/Generated/CatalogData.cs
new file mode 100644
index 0000000000000..0bb955b3edbe1
--- /dev/null
+++ b/sdk/sphere/Azure.ResourceManager.Sphere/src/Generated/CatalogData.cs
@@ -0,0 +1,43 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System.Collections.Generic;
+using Azure.Core;
+using Azure.ResourceManager.Models;
+using Azure.ResourceManager.Sphere.Models;
+
+namespace Azure.ResourceManager.Sphere
+{
+ ///
+ /// A class representing the Catalog data model.
+ /// An Azure Sphere catalog
+ ///
+ public partial class CatalogData : TrackedResourceData
+ {
+ /// Initializes a new instance of CatalogData.
+ /// The location.
+ public CatalogData(AzureLocation location) : base(location)
+ {
+ }
+
+ /// Initializes a new instance of CatalogData.
+ /// The id.
+ /// The name.
+ /// The resourceType.
+ /// The systemData.
+ /// The tags.
+ /// The location.
+ /// The status of the last operation.
+ internal CatalogData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary tags, AzureLocation location, ProvisioningState? provisioningState) : base(id, name, resourceType, systemData, tags, location)
+ {
+ ProvisioningState = provisioningState;
+ }
+
+ /// The status of the last operation.
+ public ProvisioningState? ProvisioningState { get; }
+ }
+}
diff --git a/sdk/sphere/Azure.ResourceManager.Sphere/src/Generated/CatalogResource.cs b/sdk/sphere/Azure.ResourceManager.Sphere/src/Generated/CatalogResource.cs
new file mode 100644
index 0000000000000..ee69d613cb85e
--- /dev/null
+++ b/sdk/sphere/Azure.ResourceManager.Sphere/src/Generated/CatalogResource.cs
@@ -0,0 +1,1037 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.Collections.Generic;
+using System.Globalization;
+using System.Threading;
+using System.Threading.Tasks;
+using Azure;
+using Azure.Core;
+using Azure.Core.Pipeline;
+using Azure.ResourceManager;
+using Azure.ResourceManager.Resources;
+using Azure.ResourceManager.Sphere.Models;
+
+namespace Azure.ResourceManager.Sphere
+{
+ ///
+ /// A Class representing a Catalog along with the instance operations that can be performed on it.
+ /// If you have a you can construct a
+ /// from an instance of using the GetCatalogResource method.
+ /// Otherwise you can get one from its parent resource using the GetCatalog method.
+ ///
+ public partial class CatalogResource : ArmResource
+ {
+ /// Generate the resource identifier of a instance.
+ public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string catalogName)
+ {
+ var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureSphere/catalogs/{catalogName}";
+ return new ResourceIdentifier(resourceId);
+ }
+
+ private readonly ClientDiagnostics _catalogClientDiagnostics;
+ private readonly CatalogsRestOperations _catalogRestClient;
+ private readonly CatalogData _data;
+
+ /// Initializes a new instance of the class for mocking.
+ protected CatalogResource()
+ {
+ }
+
+ /// Initializes a new instance of the class.
+ /// The client parameters to use in these operations.
+ /// The resource that is the target of operations.
+ internal CatalogResource(ArmClient client, CatalogData data) : this(client, data.Id)
+ {
+ HasData = true;
+ _data = data;
+ }
+
+ /// 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 CatalogResource(ArmClient client, ResourceIdentifier id) : base(client, id)
+ {
+ _catalogClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.Sphere", ResourceType.Namespace, Diagnostics);
+ TryGetApiVersion(ResourceType, out string catalogApiVersion);
+ _catalogRestClient = new CatalogsRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, catalogApiVersion);
+#if DEBUG
+ ValidateResourceId(Id);
+#endif
+ }
+
+ /// Gets the resource type for the operations.
+ public static readonly ResourceType ResourceType = "Microsoft.AzureSphere/catalogs";
+
+ /// Gets whether or not the current instance has data.
+ public virtual bool HasData { get; }
+
+ /// Gets the data representing this Feature.
+ /// Throws if there is no data loaded in the current instance.
+ public virtual CatalogData Data
+ {
+ get
+ {
+ if (!HasData)
+ throw new InvalidOperationException("The current instance does not have data, you must call Get first.");
+ return _data;
+ }
+ }
+
+ internal static void ValidateResourceId(ResourceIdentifier id)
+ {
+ if (id.ResourceType != ResourceType)
+ throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "Invalid resource type {0} expected {1}", id.ResourceType, ResourceType), nameof(id));
+ }
+
+ /// Gets a collection of CertificateResources in the Catalog.
+ /// An object representing collection of CertificateResources and their operations over a CertificateResource.
+ public virtual CertificateCollection GetCertificates()
+ {
+ return GetCachedClient(Client => new CertificateCollection(Client, Id));
+ }
+
+ ///
+ /// Get a Certificate
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureSphere/catalogs/{catalogName}/certificates/{serialNumber}
+ ///
+ /// -
+ /// Operation Id
+ /// Certificates_Get
+ ///
+ ///
+ ///
+ /// Serial number of the certificate. Use '.default' to get current active certificate.
+ /// The cancellation token to use.
+ /// is an empty string, and was expected to be non-empty.
+ /// is null.
+ [ForwardsClientCalls]
+ public virtual async Task> GetCertificateAsync(string serialNumber, CancellationToken cancellationToken = default)
+ {
+ return await GetCertificates().GetAsync(serialNumber, cancellationToken).ConfigureAwait(false);
+ }
+
+ ///
+ /// Get a Certificate
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureSphere/catalogs/{catalogName}/certificates/{serialNumber}
+ ///
+ /// -
+ /// Operation Id
+ /// Certificates_Get
+ ///
+ ///
+ ///
+ /// Serial number of the certificate. Use '.default' to get current active certificate.
+ /// The cancellation token to use.
+ /// is an empty string, and was expected to be non-empty.
+ /// is null.
+ [ForwardsClientCalls]
+ public virtual Response GetCertificate(string serialNumber, CancellationToken cancellationToken = default)
+ {
+ return GetCertificates().Get(serialNumber, cancellationToken);
+ }
+
+ /// Gets a collection of ImageResources in the Catalog.
+ /// An object representing collection of ImageResources and their operations over a ImageResource.
+ public virtual ImageCollection GetImages()
+ {
+ return GetCachedClient(Client => new ImageCollection(Client, Id));
+ }
+
+ ///
+ /// Get a Image
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureSphere/catalogs/{catalogName}/images/{imageName}
+ ///
+ /// -
+ /// Operation Id
+ /// Images_Get
+ ///
+ ///
+ ///
+ /// Image name. Use .default for image creation.
+ /// The cancellation token to use.
+ /// is an empty string, and was expected to be non-empty.
+ /// is null.
+ [ForwardsClientCalls]
+ public virtual async Task> GetImageAsync(string imageName, CancellationToken cancellationToken = default)
+ {
+ return await GetImages().GetAsync(imageName, cancellationToken).ConfigureAwait(false);
+ }
+
+ ///
+ /// Get a Image
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureSphere/catalogs/{catalogName}/images/{imageName}
+ ///
+ /// -
+ /// Operation Id
+ /// Images_Get
+ ///
+ ///
+ ///
+ /// Image name. Use .default for image creation.
+ /// The cancellation token to use.
+ /// is an empty string, and was expected to be non-empty.
+ /// is null.
+ [ForwardsClientCalls]
+ public virtual Response GetImage(string imageName, CancellationToken cancellationToken = default)
+ {
+ return GetImages().Get(imageName, cancellationToken);
+ }
+
+ /// Gets a collection of ProductResources in the Catalog.
+ /// An object representing collection of ProductResources and their operations over a ProductResource.
+ public virtual ProductCollection GetProducts()
+ {
+ return GetCachedClient(Client => new ProductCollection(Client, Id));
+ }
+
+ ///
+ /// Get a Product. '.default' and '.unassigned' are system defined values and cannot be used for product name.
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureSphere/catalogs/{catalogName}/products/{productName}
+ ///
+ /// -
+ /// Operation Id
+ /// Products_Get
+ ///
+ ///
+ ///
+ /// Name of product.
+ /// The cancellation token to use.
+ /// is an empty string, and was expected to be non-empty.
+ /// is null.
+ [ForwardsClientCalls]
+ public virtual async Task> GetProductAsync(string productName, CancellationToken cancellationToken = default)
+ {
+ return await GetProducts().GetAsync(productName, cancellationToken).ConfigureAwait(false);
+ }
+
+ ///
+ /// Get a Product. '.default' and '.unassigned' are system defined values and cannot be used for product name.
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureSphere/catalogs/{catalogName}/products/{productName}
+ ///
+ /// -
+ /// Operation Id
+ /// Products_Get
+ ///
+ ///
+ ///
+ /// Name of product.
+ /// The cancellation token to use.
+ /// is an empty string, and was expected to be non-empty.
+ /// is null.
+ [ForwardsClientCalls]
+ public virtual Response GetProduct(string productName, CancellationToken cancellationToken = default)
+ {
+ return GetProducts().Get(productName, cancellationToken);
+ }
+
+ ///
+ /// Get a Catalog
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureSphere/catalogs/{catalogName}
+ ///
+ /// -
+ /// Operation Id
+ /// Catalogs_Get
+ ///
+ ///
+ ///
+ /// The cancellation token to use.
+ public virtual async Task> GetAsync(CancellationToken cancellationToken = default)
+ {
+ using var scope = _catalogClientDiagnostics.CreateScope("CatalogResource.Get");
+ scope.Start();
+ try
+ {
+ var response = await _catalogRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken).ConfigureAwait(false);
+ if (response.Value == null)
+ throw new RequestFailedException(response.GetRawResponse());
+ return Response.FromValue(new CatalogResource(Client, response.Value), response.GetRawResponse());
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+
+ ///
+ /// Get a Catalog
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureSphere/catalogs/{catalogName}
+ ///
+ /// -
+ /// Operation Id
+ /// Catalogs_Get
+ ///
+ ///
+ ///
+ /// The cancellation token to use.
+ public virtual Response Get(CancellationToken cancellationToken = default)
+ {
+ using var scope = _catalogClientDiagnostics.CreateScope("CatalogResource.Get");
+ scope.Start();
+ try
+ {
+ var response = _catalogRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken);
+ if (response.Value == null)
+ throw new RequestFailedException(response.GetRawResponse());
+ return Response.FromValue(new CatalogResource(Client, response.Value), response.GetRawResponse());
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+
+ ///
+ /// Delete a Catalog
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureSphere/catalogs/{catalogName}
+ ///
+ /// -
+ /// Operation Id
+ /// Catalogs_Delete
+ ///
+ ///
+ ///
+ /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples.
+ /// The cancellation token to use.
+ public virtual async Task DeleteAsync(WaitUntil waitUntil, CancellationToken cancellationToken = default)
+ {
+ using var scope = _catalogClientDiagnostics.CreateScope("CatalogResource.Delete");
+ scope.Start();
+ try
+ {
+ var response = await _catalogRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken).ConfigureAwait(false);
+ var operation = new SphereArmOperation(_catalogClientDiagnostics, Pipeline, _catalogRestClient.CreateDeleteRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name).Request, response, OperationFinalStateVia.AzureAsyncOperation);
+ if (waitUntil == WaitUntil.Completed)
+ await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false);
+ return operation;
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+
+ ///
+ /// Delete a Catalog
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureSphere/catalogs/{catalogName}
+ ///
+ /// -
+ /// Operation Id
+ /// Catalogs_Delete
+ ///
+ ///
+ ///
+ /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples.
+ /// The cancellation token to use.
+ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancellationToken = default)
+ {
+ using var scope = _catalogClientDiagnostics.CreateScope("CatalogResource.Delete");
+ scope.Start();
+ try
+ {
+ var response = _catalogRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken);
+ var operation = new SphereArmOperation(_catalogClientDiagnostics, Pipeline, _catalogRestClient.CreateDeleteRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name).Request, response, OperationFinalStateVia.AzureAsyncOperation);
+ if (waitUntil == WaitUntil.Completed)
+ operation.WaitForCompletionResponse(cancellationToken);
+ return operation;
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+
+ ///
+ /// Update a Catalog
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureSphere/catalogs/{catalogName}
+ ///
+ /// -
+ /// Operation Id
+ /// Catalogs_Update
+ ///
+ ///
+ ///
+ /// The resource properties to be updated.
+ /// The cancellation token to use.
+ /// is null.
+ public virtual async Task> UpdateAsync(CatalogPatch patch, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNull(patch, nameof(patch));
+
+ using var scope = _catalogClientDiagnostics.CreateScope("CatalogResource.Update");
+ scope.Start();
+ try
+ {
+ var response = await _catalogRestClient.UpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, patch, cancellationToken).ConfigureAwait(false);
+ return Response.FromValue(new CatalogResource(Client, response.Value), response.GetRawResponse());
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+
+ ///
+ /// Update a Catalog
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureSphere/catalogs/{catalogName}
+ ///
+ /// -
+ /// Operation Id
+ /// Catalogs_Update
+ ///
+ ///
+ ///
+ /// The resource properties to be updated.
+ /// The cancellation token to use.
+ /// is null.
+ public virtual Response Update(CatalogPatch patch, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNull(patch, nameof(patch));
+
+ using var scope = _catalogClientDiagnostics.CreateScope("CatalogResource.Update");
+ scope.Start();
+ try
+ {
+ var response = _catalogRestClient.Update(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, patch, cancellationToken);
+ return Response.FromValue(new CatalogResource(Client, response.Value), response.GetRawResponse());
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+
+ ///
+ /// Counts devices in catalog.
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureSphere/catalogs/{catalogName}/countDevices
+ ///
+ /// -
+ /// Operation Id
+ /// Catalogs_CountDevices
+ ///
+ ///
+ ///
+ /// The cancellation token to use.
+ public virtual async Task> CountDevicesAsync(CancellationToken cancellationToken = default)
+ {
+ using var scope = _catalogClientDiagnostics.CreateScope("CatalogResource.CountDevices");
+ scope.Start();
+ try
+ {
+ var response = await _catalogRestClient.CountDevicesAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken).ConfigureAwait(false);
+ return response;
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+
+ ///
+ /// Counts devices in catalog.
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureSphere/catalogs/{catalogName}/countDevices
+ ///
+ /// -
+ /// Operation Id
+ /// Catalogs_CountDevices
+ ///
+ ///
+ ///
+ /// The cancellation token to use.
+ public virtual Response CountDevices(CancellationToken cancellationToken = default)
+ {
+ using var scope = _catalogClientDiagnostics.CreateScope("CatalogResource.CountDevices");
+ scope.Start();
+ try
+ {
+ var response = _catalogRestClient.CountDevices(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken);
+ return response;
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+
+ ///
+ /// Lists deployments for catalog.
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureSphere/catalogs/{catalogName}/listDeployments
+ ///
+ /// -
+ /// Operation Id
+ /// Catalogs_ListDeployments
+ ///
+ ///
+ ///
+ /// Filter the result list using the given expression.
+ /// The number of result items to return.
+ /// The number of result items to skip.
+ /// The maximum number of result items per page.
+ /// The cancellation token to use.
+ /// An async collection of that may take multiple service requests to iterate over.
+ public virtual AsyncPageable GetDeploymentsAsync(string filter = null, int? top = null, int? skip = null, int? maxpagesize = null, CancellationToken cancellationToken = default)
+ {
+ HttpMessage FirstPageRequest(int? pageSizeHint) => _catalogRestClient.CreateListDeploymentsRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, filter, top, skip, pageSizeHint);
+ HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _catalogRestClient.CreateListDeploymentsNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name, filter, top, skip, pageSizeHint);
+ return PageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => new DeploymentResource(Client, DeploymentData.DeserializeDeploymentData(e)), _catalogClientDiagnostics, Pipeline, "CatalogResource.GetDeployments", "value", "nextLink", cancellationToken);
+ }
+
+ ///
+ /// Lists deployments for catalog.
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureSphere/catalogs/{catalogName}/listDeployments
+ ///
+ /// -
+ /// Operation Id
+ /// Catalogs_ListDeployments
+ ///
+ ///
+ ///
+ /// Filter the result list using the given expression.
+ /// The number of result items to return.
+ /// The number of result items to skip.
+ /// The maximum number of result items per page.
+ /// The cancellation token to use.
+ /// A collection of that may take multiple service requests to iterate over.
+ public virtual Pageable GetDeployments(string filter = null, int? top = null, int? skip = null, int? maxpagesize = null, CancellationToken cancellationToken = default)
+ {
+ HttpMessage FirstPageRequest(int? pageSizeHint) => _catalogRestClient.CreateListDeploymentsRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, filter, top, skip, pageSizeHint);
+ HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _catalogRestClient.CreateListDeploymentsNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name, filter, top, skip, pageSizeHint);
+ return PageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new DeploymentResource(Client, DeploymentData.DeserializeDeploymentData(e)), _catalogClientDiagnostics, Pipeline, "CatalogResource.GetDeployments", "value", "nextLink", cancellationToken);
+ }
+
+ ///
+ /// List the device groups for the catalog.
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureSphere/catalogs/{catalogName}/listDeviceGroups
+ ///
+ /// -
+ /// Operation Id
+ /// Catalogs_ListDeviceGroups
+ ///
+ ///
+ ///
+ /// List device groups for catalog.
+ /// Filter the result list using the given expression.
+ /// The number of result items to return.
+ /// The number of result items to skip.
+ /// The maximum number of result items per page.
+ /// The cancellation token to use.
+ /// is null.
+ /// An async collection of that may take multiple service requests to iterate over.
+ public virtual AsyncPageable GetDeviceGroupsAsync(ListDeviceGroupsContent content, string filter = null, int? top = null, int? skip = null, int? maxpagesize = null, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNull(content, nameof(content));
+
+ HttpMessage FirstPageRequest(int? pageSizeHint) => _catalogRestClient.CreateListDeviceGroupsRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, content, filter, top, skip, pageSizeHint);
+ HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _catalogRestClient.CreateListDeviceGroupsNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name, content, filter, top, skip, pageSizeHint);
+ return PageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => new DeviceGroupResource(Client, DeviceGroupData.DeserializeDeviceGroupData(e)), _catalogClientDiagnostics, Pipeline, "CatalogResource.GetDeviceGroups", "value", "nextLink", cancellationToken);
+ }
+
+ ///
+ /// List the device groups for the catalog.
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureSphere/catalogs/{catalogName}/listDeviceGroups
+ ///
+ /// -
+ /// Operation Id
+ /// Catalogs_ListDeviceGroups
+ ///
+ ///
+ ///
+ /// List device groups for catalog.
+ /// Filter the result list using the given expression.
+ /// The number of result items to return.
+ /// The number of result items to skip.
+ /// The maximum number of result items per page.
+ /// The cancellation token to use.
+ /// is null.
+ /// A collection of that may take multiple service requests to iterate over.
+ public virtual Pageable GetDeviceGroups(ListDeviceGroupsContent content, string filter = null, int? top = null, int? skip = null, int? maxpagesize = null, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNull(content, nameof(content));
+
+ HttpMessage FirstPageRequest(int? pageSizeHint) => _catalogRestClient.CreateListDeviceGroupsRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, content, filter, top, skip, pageSizeHint);
+ HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _catalogRestClient.CreateListDeviceGroupsNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name, content, filter, top, skip, pageSizeHint);
+ return PageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new DeviceGroupResource(Client, DeviceGroupData.DeserializeDeviceGroupData(e)), _catalogClientDiagnostics, Pipeline, "CatalogResource.GetDeviceGroups", "value", "nextLink", cancellationToken);
+ }
+
+ ///
+ /// Lists device insights for catalog.
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureSphere/catalogs/{catalogName}/listDeviceInsights
+ ///
+ /// -
+ /// Operation Id
+ /// Catalogs_ListDeviceInsights
+ ///
+ ///
+ ///
+ /// Filter the result list using the given expression.
+ /// The number of result items to return.
+ /// The number of result items to skip.
+ /// The maximum number of result items per page.
+ /// The cancellation token to use.
+ /// An async collection of that may take multiple service requests to iterate over.
+ public virtual AsyncPageable GetDeviceInsightsAsync(string filter = null, int? top = null, int? skip = null, int? maxpagesize = null, CancellationToken cancellationToken = default)
+ {
+ HttpMessage FirstPageRequest(int? pageSizeHint) => _catalogRestClient.CreateListDeviceInsightsRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, filter, top, skip, pageSizeHint);
+ HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _catalogRestClient.CreateListDeviceInsightsNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name, filter, top, skip, pageSizeHint);
+ return PageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, DeviceInsight.DeserializeDeviceInsight, _catalogClientDiagnostics, Pipeline, "CatalogResource.GetDeviceInsights", "value", "nextLink", cancellationToken);
+ }
+
+ ///
+ /// Lists device insights for catalog.
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureSphere/catalogs/{catalogName}/listDeviceInsights
+ ///
+ /// -
+ /// Operation Id
+ /// Catalogs_ListDeviceInsights
+ ///
+ ///
+ ///
+ /// Filter the result list using the given expression.
+ /// The number of result items to return.
+ /// The number of result items to skip.
+ /// The maximum number of result items per page.
+ /// The cancellation token to use.
+ /// A collection of that may take multiple service requests to iterate over.
+ public virtual Pageable GetDeviceInsights(string filter = null, int? top = null, int? skip = null, int? maxpagesize = null, CancellationToken cancellationToken = default)
+ {
+ HttpMessage FirstPageRequest(int? pageSizeHint) => _catalogRestClient.CreateListDeviceInsightsRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, filter, top, skip, pageSizeHint);
+ HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _catalogRestClient.CreateListDeviceInsightsNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name, filter, top, skip, pageSizeHint);
+ return PageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, DeviceInsight.DeserializeDeviceInsight, _catalogClientDiagnostics, Pipeline, "CatalogResource.GetDeviceInsights", "value", "nextLink", cancellationToken);
+ }
+
+ ///
+ /// Lists devices for catalog.
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureSphere/catalogs/{catalogName}/listDevices
+ ///
+ /// -
+ /// Operation Id
+ /// Catalogs_ListDevices
+ ///
+ ///
+ ///
+ /// Filter the result list using the given expression.
+ /// The number of result items to return.
+ /// The number of result items to skip.
+ /// The maximum number of result items per page.
+ /// The cancellation token to use.
+ /// An async collection of that may take multiple service requests to iterate over.
+ public virtual AsyncPageable GetDevicesAsync(string filter = null, int? top = null, int? skip = null, int? maxpagesize = null, CancellationToken cancellationToken = default)
+ {
+ HttpMessage FirstPageRequest(int? pageSizeHint) => _catalogRestClient.CreateListDevicesRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, filter, top, skip, pageSizeHint);
+ HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _catalogRestClient.CreateListDevicesNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name, filter, top, skip, pageSizeHint);
+ return PageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => new DeviceResource(Client, DeviceData.DeserializeDeviceData(e)), _catalogClientDiagnostics, Pipeline, "CatalogResource.GetDevices", "value", "nextLink", cancellationToken);
+ }
+
+ ///
+ /// Lists devices for catalog.
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureSphere/catalogs/{catalogName}/listDevices
+ ///
+ /// -
+ /// Operation Id
+ /// Catalogs_ListDevices
+ ///
+ ///
+ ///
+ /// Filter the result list using the given expression.
+ /// The number of result items to return.
+ /// The number of result items to skip.
+ /// The maximum number of result items per page.
+ /// The cancellation token to use.
+ /// A collection of that may take multiple service requests to iterate over.
+ public virtual Pageable GetDevices(string filter = null, int? top = null, int? skip = null, int? maxpagesize = null, CancellationToken cancellationToken = default)
+ {
+ HttpMessage FirstPageRequest(int? pageSizeHint) => _catalogRestClient.CreateListDevicesRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, filter, top, skip, pageSizeHint);
+ HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _catalogRestClient.CreateListDevicesNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name, filter, top, skip, pageSizeHint);
+ return PageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new DeviceResource(Client, DeviceData.DeserializeDeviceData(e)), _catalogClientDiagnostics, Pipeline, "CatalogResource.GetDevices", "value", "nextLink", cancellationToken);
+ }
+
+ ///
+ /// Add a tag to the current resource.
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureSphere/catalogs/{catalogName}
+ ///
+ /// -
+ /// Operation Id
+ /// Catalogs_Get
+ ///
+ ///
+ ///
+ /// The key for the tag.
+ /// The value for the tag.
+ /// The cancellation token to use.
+ /// or is null.
+ public virtual async Task> AddTagAsync(string key, string value, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNull(key, nameof(key));
+ Argument.AssertNotNull(value, nameof(value));
+
+ using var scope = _catalogClientDiagnostics.CreateScope("CatalogResource.AddTag");
+ scope.Start();
+ try
+ {
+ if (await CanUseTagResourceAsync(cancellationToken: cancellationToken).ConfigureAwait(false))
+ {
+ var originalTags = await GetTagResource().GetAsync(cancellationToken).ConfigureAwait(false);
+ originalTags.Value.Data.TagValues[key] = value;
+ await GetTagResource().CreateOrUpdateAsync(WaitUntil.Completed, originalTags.Value.Data, cancellationToken: cancellationToken).ConfigureAwait(false);
+ var originalResponse = await _catalogRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken).ConfigureAwait(false);
+ return Response.FromValue(new CatalogResource(Client, originalResponse.Value), originalResponse.GetRawResponse());
+ }
+ else
+ {
+ var current = (await GetAsync(cancellationToken: cancellationToken).ConfigureAwait(false)).Value.Data;
+ var patch = new CatalogPatch();
+ foreach (var tag in current.Tags)
+ {
+ patch.Tags.Add(tag);
+ }
+ patch.Tags[key] = value;
+ var result = await UpdateAsync(patch, cancellationToken: cancellationToken).ConfigureAwait(false);
+ return result;
+ }
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+
+ ///
+ /// Add a tag to the current resource.
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureSphere/catalogs/{catalogName}
+ ///
+ /// -
+ /// Operation Id
+ /// Catalogs_Get
+ ///
+ ///
+ ///
+ /// The key for the tag.
+ /// The value for the tag.
+ /// The cancellation token to use.
+ /// or is null.
+ public virtual Response AddTag(string key, string value, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNull(key, nameof(key));
+ Argument.AssertNotNull(value, nameof(value));
+
+ using var scope = _catalogClientDiagnostics.CreateScope("CatalogResource.AddTag");
+ scope.Start();
+ try
+ {
+ if (CanUseTagResource(cancellationToken: cancellationToken))
+ {
+ var originalTags = GetTagResource().Get(cancellationToken);
+ originalTags.Value.Data.TagValues[key] = value;
+ GetTagResource().CreateOrUpdate(WaitUntil.Completed, originalTags.Value.Data, cancellationToken: cancellationToken);
+ var originalResponse = _catalogRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken);
+ return Response.FromValue(new CatalogResource(Client, originalResponse.Value), originalResponse.GetRawResponse());
+ }
+ else
+ {
+ var current = Get(cancellationToken: cancellationToken).Value.Data;
+ var patch = new CatalogPatch();
+ foreach (var tag in current.Tags)
+ {
+ patch.Tags.Add(tag);
+ }
+ patch.Tags[key] = value;
+ var result = Update(patch, cancellationToken: cancellationToken);
+ return result;
+ }
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+
+ ///
+ /// Replace the tags on the resource with the given set.
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureSphere/catalogs/{catalogName}
+ ///
+ /// -
+ /// Operation Id
+ /// Catalogs_Get
+ ///
+ ///
+ ///
+ /// The set of tags to use as replacement.
+ /// The cancellation token to use.
+ /// is null.
+ public virtual async Task> SetTagsAsync(IDictionary tags, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNull(tags, nameof(tags));
+
+ using var scope = _catalogClientDiagnostics.CreateScope("CatalogResource.SetTags");
+ scope.Start();
+ try
+ {
+ if (await CanUseTagResourceAsync(cancellationToken: cancellationToken).ConfigureAwait(false))
+ {
+ await GetTagResource().DeleteAsync(WaitUntil.Completed, cancellationToken: cancellationToken).ConfigureAwait(false);
+ var originalTags = await GetTagResource().GetAsync(cancellationToken).ConfigureAwait(false);
+ originalTags.Value.Data.TagValues.ReplaceWith(tags);
+ await GetTagResource().CreateOrUpdateAsync(WaitUntil.Completed, originalTags.Value.Data, cancellationToken: cancellationToken).ConfigureAwait(false);
+ var originalResponse = await _catalogRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken).ConfigureAwait(false);
+ return Response.FromValue(new CatalogResource(Client, originalResponse.Value), originalResponse.GetRawResponse());
+ }
+ else
+ {
+ var current = (await GetAsync(cancellationToken: cancellationToken).ConfigureAwait(false)).Value.Data;
+ var patch = new CatalogPatch();
+ patch.Tags.ReplaceWith(tags);
+ var result = await UpdateAsync(patch, cancellationToken: cancellationToken).ConfigureAwait(false);
+ return result;
+ }
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+
+ ///
+ /// Replace the tags on the resource with the given set.
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureSphere/catalogs/{catalogName}
+ ///
+ /// -
+ /// Operation Id
+ /// Catalogs_Get
+ ///
+ ///
+ ///
+ /// The set of tags to use as replacement.
+ /// The cancellation token to use.
+ /// is null.
+ public virtual Response SetTags(IDictionary tags, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNull(tags, nameof(tags));
+
+ using var scope = _catalogClientDiagnostics.CreateScope("CatalogResource.SetTags");
+ scope.Start();
+ try
+ {
+ if (CanUseTagResource(cancellationToken: cancellationToken))
+ {
+ GetTagResource().Delete(WaitUntil.Completed, cancellationToken: cancellationToken);
+ var originalTags = GetTagResource().Get(cancellationToken);
+ originalTags.Value.Data.TagValues.ReplaceWith(tags);
+ GetTagResource().CreateOrUpdate(WaitUntil.Completed, originalTags.Value.Data, cancellationToken: cancellationToken);
+ var originalResponse = _catalogRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken);
+ return Response.FromValue(new CatalogResource(Client, originalResponse.Value), originalResponse.GetRawResponse());
+ }
+ else
+ {
+ var current = Get(cancellationToken: cancellationToken).Value.Data;
+ var patch = new CatalogPatch();
+ patch.Tags.ReplaceWith(tags);
+ var result = Update(patch, cancellationToken: cancellationToken);
+ return result;
+ }
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+
+ ///
+ /// Removes a tag by key from the resource.
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureSphere/catalogs/{catalogName}
+ ///
+ /// -
+ /// Operation Id
+ /// Catalogs_Get
+ ///
+ ///
+ ///
+ /// The key for the tag.
+ /// The cancellation token to use.
+ /// is null.
+ public virtual async Task> RemoveTagAsync(string key, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNull(key, nameof(key));
+
+ using var scope = _catalogClientDiagnostics.CreateScope("CatalogResource.RemoveTag");
+ scope.Start();
+ try
+ {
+ if (await CanUseTagResourceAsync(cancellationToken: cancellationToken).ConfigureAwait(false))
+ {
+ var originalTags = await GetTagResource().GetAsync(cancellationToken).ConfigureAwait(false);
+ originalTags.Value.Data.TagValues.Remove(key);
+ await GetTagResource().CreateOrUpdateAsync(WaitUntil.Completed, originalTags.Value.Data, cancellationToken: cancellationToken).ConfigureAwait(false);
+ var originalResponse = await _catalogRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken).ConfigureAwait(false);
+ return Response.FromValue(new CatalogResource(Client, originalResponse.Value), originalResponse.GetRawResponse());
+ }
+ else
+ {
+ var current = (await GetAsync(cancellationToken: cancellationToken).ConfigureAwait(false)).Value.Data;
+ var patch = new CatalogPatch();
+ foreach (var tag in current.Tags)
+ {
+ patch.Tags.Add(tag);
+ }
+ patch.Tags.Remove(key);
+ var result = await UpdateAsync(patch, cancellationToken: cancellationToken).ConfigureAwait(false);
+ return result;
+ }
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+
+ ///
+ /// Removes a tag by key from the resource.
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureSphere/catalogs/{catalogName}
+ ///
+ /// -
+ /// Operation Id
+ /// Catalogs_Get
+ ///
+ ///
+ ///
+ /// The key for the tag.
+ /// The cancellation token to use.
+ /// is null.
+ public virtual Response RemoveTag(string key, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNull(key, nameof(key));
+
+ using var scope = _catalogClientDiagnostics.CreateScope("CatalogResource.RemoveTag");
+ scope.Start();
+ try
+ {
+ if (CanUseTagResource(cancellationToken: cancellationToken))
+ {
+ var originalTags = GetTagResource().Get(cancellationToken);
+ originalTags.Value.Data.TagValues.Remove(key);
+ GetTagResource().CreateOrUpdate(WaitUntil.Completed, originalTags.Value.Data, cancellationToken: cancellationToken);
+ var originalResponse = _catalogRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken);
+ return Response.FromValue(new CatalogResource(Client, originalResponse.Value), originalResponse.GetRawResponse());
+ }
+ else
+ {
+ var current = Get(cancellationToken: cancellationToken).Value.Data;
+ var patch = new CatalogPatch();
+ foreach (var tag in current.Tags)
+ {
+ patch.Tags.Add(tag);
+ }
+ patch.Tags.Remove(key);
+ var result = Update(patch, cancellationToken: cancellationToken);
+ return result;
+ }
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+ }
+}
diff --git a/sdk/sphere/Azure.ResourceManager.Sphere/src/Generated/CertificateCollection.cs b/sdk/sphere/Azure.ResourceManager.Sphere/src/Generated/CertificateCollection.cs
new file mode 100644
index 0000000000000..001df66c9fcee
--- /dev/null
+++ b/sdk/sphere/Azure.ResourceManager.Sphere/src/Generated/CertificateCollection.cs
@@ -0,0 +1,266 @@
+// 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.Globalization;
+using System.Threading;
+using System.Threading.Tasks;
+using Azure;
+using Azure.Core;
+using Azure.Core.Pipeline;
+using Azure.ResourceManager;
+
+namespace Azure.ResourceManager.Sphere
+{
+ ///
+ /// A class representing a collection of and their operations.
+ /// Each in the collection will belong to the same instance of .
+ /// To get a instance call the GetCertificates method from an instance of .
+ ///
+ public partial class CertificateCollection : ArmCollection, IEnumerable, IAsyncEnumerable
+ {
+ private readonly ClientDiagnostics _certificateClientDiagnostics;
+ private readonly CertificatesRestOperations _certificateRestClient;
+
+ /// Initializes a new instance of the class for mocking.
+ protected CertificateCollection()
+ {
+ }
+
+ /// Initializes a new instance of the class.
+ /// The client parameters to use in these operations.
+ /// The identifier of the parent resource that is the target of operations.
+ internal CertificateCollection(ArmClient client, ResourceIdentifier id) : base(client, id)
+ {
+ _certificateClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.Sphere", CertificateResource.ResourceType.Namespace, Diagnostics);
+ TryGetApiVersion(CertificateResource.ResourceType, out string certificateApiVersion);
+ _certificateRestClient = new CertificatesRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, certificateApiVersion);
+#if DEBUG
+ ValidateResourceId(Id);
+#endif
+ }
+
+ internal static void ValidateResourceId(ResourceIdentifier id)
+ {
+ if (id.ResourceType != CatalogResource.ResourceType)
+ throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "Invalid resource type {0} expected {1}", id.ResourceType, CatalogResource.ResourceType), nameof(id));
+ }
+
+ ///
+ /// Get a Certificate
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureSphere/catalogs/{catalogName}/certificates/{serialNumber}
+ ///
+ /// -
+ /// Operation Id
+ /// Certificates_Get
+ ///
+ ///
+ ///
+ /// Serial number of the certificate. Use '.default' to get current active certificate.
+ /// The cancellation token to use.
+ /// is an empty string, and was expected to be non-empty.
+ /// is null.
+ public virtual async Task> GetAsync(string serialNumber, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNullOrEmpty(serialNumber, nameof(serialNumber));
+
+ using var scope = _certificateClientDiagnostics.CreateScope("CertificateCollection.Get");
+ scope.Start();
+ try
+ {
+ var response = await _certificateRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, serialNumber, cancellationToken).ConfigureAwait(false);
+ if (response.Value == null)
+ throw new RequestFailedException(response.GetRawResponse());
+ return Response.FromValue(new CertificateResource(Client, response.Value), response.GetRawResponse());
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+
+ ///
+ /// Get a Certificate
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureSphere/catalogs/{catalogName}/certificates/{serialNumber}
+ ///
+ /// -
+ /// Operation Id
+ /// Certificates_Get
+ ///
+ ///
+ ///
+ /// Serial number of the certificate. Use '.default' to get current active certificate.
+ /// The cancellation token to use.
+ /// is an empty string, and was expected to be non-empty.
+ /// is null.
+ public virtual Response Get(string serialNumber, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNullOrEmpty(serialNumber, nameof(serialNumber));
+
+ using var scope = _certificateClientDiagnostics.CreateScope("CertificateCollection.Get");
+ scope.Start();
+ try
+ {
+ var response = _certificateRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, serialNumber, cancellationToken);
+ if (response.Value == null)
+ throw new RequestFailedException(response.GetRawResponse());
+ return Response.FromValue(new CertificateResource(Client, response.Value), response.GetRawResponse());
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+
+ ///
+ /// List Certificate resources by Catalog
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureSphere/catalogs/{catalogName}/certificates
+ ///
+ /// -
+ /// Operation Id
+ /// Certificates_ListByCatalog
+ ///
+ ///
+ ///
+ /// Filter the result list using the given expression.
+ /// The number of result items to return.
+ /// The number of result items to skip.
+ /// The maximum number of result items per page.
+ /// The cancellation token to use.
+ /// An async collection of that may take multiple service requests to iterate over.
+ public virtual AsyncPageable GetAllAsync(string filter = null, int? top = null, int? skip = null, int? maxpagesize = null, CancellationToken cancellationToken = default)
+ {
+ HttpMessage FirstPageRequest(int? pageSizeHint) => _certificateRestClient.CreateListByCatalogRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, filter, top, skip, pageSizeHint);
+ HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _certificateRestClient.CreateListByCatalogNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name, filter, top, skip, pageSizeHint);
+ return PageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => new CertificateResource(Client, CertificateData.DeserializeCertificateData(e)), _certificateClientDiagnostics, Pipeline, "CertificateCollection.GetAll", "value", "nextLink", cancellationToken);
+ }
+
+ ///
+ /// List Certificate resources by Catalog
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureSphere/catalogs/{catalogName}/certificates
+ ///
+ /// -
+ /// Operation Id
+ /// Certificates_ListByCatalog
+ ///
+ ///
+ ///
+ /// Filter the result list using the given expression.
+ /// The number of result items to return.
+ /// The number of result items to skip.
+ /// The maximum number of result items per page.
+ /// The cancellation token to use.
+ /// A collection of that may take multiple service requests to iterate over.
+ public virtual Pageable GetAll(string filter = null, int? top = null, int? skip = null, int? maxpagesize = null, CancellationToken cancellationToken = default)
+ {
+ HttpMessage FirstPageRequest(int? pageSizeHint) => _certificateRestClient.CreateListByCatalogRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, filter, top, skip, pageSizeHint);
+ HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _certificateRestClient.CreateListByCatalogNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name, filter, top, skip, pageSizeHint);
+ return PageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new CertificateResource(Client, CertificateData.DeserializeCertificateData(e)), _certificateClientDiagnostics, Pipeline, "CertificateCollection.GetAll", "value", "nextLink", cancellationToken);
+ }
+
+ ///
+ /// Checks to see if the resource exists in azure.
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureSphere/catalogs/{catalogName}/certificates/{serialNumber}
+ ///
+ /// -
+ /// Operation Id
+ /// Certificates_Get
+ ///
+ ///
+ ///
+ /// Serial number of the certificate. Use '.default' to get current active certificate.
+ /// The cancellation token to use.
+ /// is an empty string, and was expected to be non-empty.
+ /// is null.
+ public virtual async Task> ExistsAsync(string serialNumber, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNullOrEmpty(serialNumber, nameof(serialNumber));
+
+ using var scope = _certificateClientDiagnostics.CreateScope("CertificateCollection.Exists");
+ scope.Start();
+ try
+ {
+ var response = await _certificateRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, serialNumber, cancellationToken: cancellationToken).ConfigureAwait(false);
+ return Response.FromValue(response.Value != null, response.GetRawResponse());
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+
+ ///
+ /// Checks to see if the resource exists in azure.
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureSphere/catalogs/{catalogName}/certificates/{serialNumber}
+ ///
+ /// -
+ /// Operation Id
+ /// Certificates_Get
+ ///
+ ///
+ ///
+ /// Serial number of the certificate. Use '.default' to get current active certificate.
+ /// The cancellation token to use.
+ /// is an empty string, and was expected to be non-empty.
+ /// is null.
+ public virtual Response Exists(string serialNumber, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNullOrEmpty(serialNumber, nameof(serialNumber));
+
+ using var scope = _certificateClientDiagnostics.CreateScope("CertificateCollection.Exists");
+ scope.Start();
+ try
+ {
+ var response = _certificateRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, serialNumber, cancellationToken: cancellationToken);
+ return Response.FromValue(response.Value != null, response.GetRawResponse());
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+
+ IEnumerator IEnumerable.GetEnumerator()
+ {
+ return GetAll().GetEnumerator();
+ }
+
+ IEnumerator IEnumerable.GetEnumerator()
+ {
+ return GetAll().GetEnumerator();
+ }
+
+ IAsyncEnumerator IAsyncEnumerable