diff --git a/sdk/dashboard/Azure.ResourceManager.Dashboard/Azure.ResourceManager.Dashboard.sln b/sdk/dashboard/Azure.ResourceManager.Dashboard/Azure.ResourceManager.Dashboard.sln
new file mode 100644
index 000000000000..cc14a6d049e2
--- /dev/null
+++ b/sdk/dashboard/Azure.ResourceManager.Dashboard/Azure.ResourceManager.Dashboard.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("{9ADA06F6-85A7-4F31-993B-99B16043CD8D}") = "Azure.ResourceManager.Dashboard", "src\Azure.ResourceManager.Dashboard.csproj", "{6C5CAC0C-9EB2-4C1C-AB3A-78ECB18661B0}"
+EndProject
+Project("{9ADA06F6-85A7-4F31-993B-99B16043CD8D}") = "Azure.ResourceManager.Dashboard.Tests", "tests\Azure.ResourceManager.Dashboard.Tests.csproj", "{629CC637-3D84-4E85-99BE-1BE4A3E3B205}"
+EndProject
+Project("{9ADA06F6-85A7-4F31-993B-99B16043CD8D}") = "Azure.ResourceManager.Dashboard.Samples", "samples\Azure.ResourceManager.Dashboard.Samples.csproj", "{D567C2CE-AF7E-45A4-87E0-6C59630165C3}"
+EndProject
+Global
+ GlobalSection(SolutionProperties) = preSolution
+ HideSolutionNode = FALSE
+ EndGlobalSection
+ GlobalSection(ExtensibilityGlobals) = postSolution
+ SolutionGuid = {E7D3BB78-F506-4170-A7F6-E1E8EAE9A3FF}
+ 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
+ {6C5CAC0C-9EB2-4C1C-AB3A-78ECB18661B0}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {6C5CAC0C-9EB2-4C1C-AB3A-78ECB18661B0}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {6C5CAC0C-9EB2-4C1C-AB3A-78ECB18661B0}.Debug|x64.ActiveCfg = Debug|Any CPU
+ {6C5CAC0C-9EB2-4C1C-AB3A-78ECB18661B0}.Debug|x64.Build.0 = Debug|Any CPU
+ {6C5CAC0C-9EB2-4C1C-AB3A-78ECB18661B0}.Debug|x86.ActiveCfg = Debug|Any CPU
+ {6C5CAC0C-9EB2-4C1C-AB3A-78ECB18661B0}.Debug|x86.Build.0 = Debug|Any CPU
+ {6C5CAC0C-9EB2-4C1C-AB3A-78ECB18661B0}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {6C5CAC0C-9EB2-4C1C-AB3A-78ECB18661B0}.Release|Any CPU.Build.0 = Release|Any CPU
+ {6C5CAC0C-9EB2-4C1C-AB3A-78ECB18661B0}.Release|x64.ActiveCfg = Release|Any CPU
+ {6C5CAC0C-9EB2-4C1C-AB3A-78ECB18661B0}.Release|x64.Build.0 = Release|Any CPU
+ {6C5CAC0C-9EB2-4C1C-AB3A-78ECB18661B0}.Release|x86.ActiveCfg = Release|Any CPU
+ {6C5CAC0C-9EB2-4C1C-AB3A-78ECB18661B0}.Release|x86.Build.0 = Release|Any CPU
+ {629CC637-3D84-4E85-99BE-1BE4A3E3B205}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {629CC637-3D84-4E85-99BE-1BE4A3E3B205}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {629CC637-3D84-4E85-99BE-1BE4A3E3B205}.Debug|x64.ActiveCfg = Debug|Any CPU
+ {629CC637-3D84-4E85-99BE-1BE4A3E3B205}.Debug|x64.Build.0 = Debug|Any CPU
+ {629CC637-3D84-4E85-99BE-1BE4A3E3B205}.Debug|x86.ActiveCfg = Debug|Any CPU
+ {629CC637-3D84-4E85-99BE-1BE4A3E3B205}.Debug|x86.Build.0 = Debug|Any CPU
+ {629CC637-3D84-4E85-99BE-1BE4A3E3B205}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {629CC637-3D84-4E85-99BE-1BE4A3E3B205}.Release|Any CPU.Build.0 = Release|Any CPU
+ {629CC637-3D84-4E85-99BE-1BE4A3E3B205}.Release|x64.ActiveCfg = Release|Any CPU
+ {629CC637-3D84-4E85-99BE-1BE4A3E3B205}.Release|x64.Build.0 = Release|Any CPU
+ {629CC637-3D84-4E85-99BE-1BE4A3E3B205}.Release|x86.ActiveCfg = Release|Any CPU
+ {629CC637-3D84-4E85-99BE-1BE4A3E3B205}.Release|x86.Build.0 = Release|Any CPU
+ {D567C2CE-AF7E-45A4-87E0-6C59630165C3}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {D567C2CE-AF7E-45A4-87E0-6C59630165C3}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {D567C2CE-AF7E-45A4-87E0-6C59630165C3}.Debug|x64.ActiveCfg = Debug|Any CPU
+ {D567C2CE-AF7E-45A4-87E0-6C59630165C3}.Debug|x64.Build.0 = Debug|Any CPU
+ {D567C2CE-AF7E-45A4-87E0-6C59630165C3}.Debug|x86.ActiveCfg = Debug|Any CPU
+ {D567C2CE-AF7E-45A4-87E0-6C59630165C3}.Debug|x86.Build.0 = Debug|Any CPU
+ {D567C2CE-AF7E-45A4-87E0-6C59630165C3}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {D567C2CE-AF7E-45A4-87E0-6C59630165C3}.Release|Any CPU.Build.0 = Release|Any CPU
+ {D567C2CE-AF7E-45A4-87E0-6C59630165C3}.Release|x64.ActiveCfg = Release|Any CPU
+ {D567C2CE-AF7E-45A4-87E0-6C59630165C3}.Release|x64.Build.0 = Release|Any CPU
+ {D567C2CE-AF7E-45A4-87E0-6C59630165C3}.Release|x86.ActiveCfg = Release|Any CPU
+ {D567C2CE-AF7E-45A4-87E0-6C59630165C3}.Release|x86.Build.0 = Release|Any CPU
+ EndGlobalSection
+EndGlobal
diff --git a/sdk/dashboard/Azure.ResourceManager.Dashboard/CHANGELOG.md b/sdk/dashboard/Azure.ResourceManager.Dashboard/CHANGELOG.md
new file mode 100644
index 000000000000..23f86d1e896e
--- /dev/null
+++ b/sdk/dashboard/Azure.ResourceManager.Dashboard/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/dashboard/Azure.ResourceManager.Dashboard/Directory.Build.props b/sdk/dashboard/Azure.ResourceManager.Dashboard/Directory.Build.props
new file mode 100644
index 000000000000..1a9611bd4924
--- /dev/null
+++ b/sdk/dashboard/Azure.ResourceManager.Dashboard/Directory.Build.props
@@ -0,0 +1,6 @@
+
+
+
+
diff --git a/sdk/dashboard/Azure.ResourceManager.Dashboard/README.md b/sdk/dashboard/Azure.ResourceManager.Dashboard/README.md
new file mode 100644
index 000000000000..e355e95e1542
--- /dev/null
+++ b/sdk/dashboard/Azure.ResourceManager.Dashboard/README.md
@@ -0,0 +1,80 @@
+# Microsoft Azure dashboard 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 dashboard management library for .NET with [NuGet](https://www.nuget.org/):
+
+```dotnetcli
+dotnet add package Azure.ResourceManager.Dashboard --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/dashboard/Azure.ResourceManager.Dashboard/api/Azure.ResourceManager.Dashboard.netstandard2.0.cs b/sdk/dashboard/Azure.ResourceManager.Dashboard/api/Azure.ResourceManager.Dashboard.netstandard2.0.cs
new file mode 100644
index 000000000000..e379db02436d
--- /dev/null
+++ b/sdk/dashboard/Azure.ResourceManager.Dashboard/api/Azure.ResourceManager.Dashboard.netstandard2.0.cs
@@ -0,0 +1,562 @@
+namespace Azure.ResourceManager.Dashboard
+{
+ public static partial class DashboardExtensions
+ {
+ public static Azure.ResourceManager.Dashboard.DashboardPrivateEndpointConnectionResource GetDashboardPrivateEndpointConnectionResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; }
+ public static Azure.ResourceManager.Dashboard.DashboardPrivateLinkResource GetDashboardPrivateLinkResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; }
+ public static Azure.Response GetManagedGrafana(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string workspaceName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public static System.Threading.Tasks.Task> GetManagedGrafanaAsync(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string workspaceName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public static Azure.ResourceManager.Dashboard.ManagedGrafanaResource GetManagedGrafanaResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; }
+ public static Azure.ResourceManager.Dashboard.ManagedGrafanaCollection GetManagedGrafanas(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource) { throw null; }
+ public static Azure.Pageable GetManagedGrafanas(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public static Azure.AsyncPageable GetManagedGrafanasAsync(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public static Azure.ResourceManager.Dashboard.ManagedPrivateEndpointModelResource GetManagedPrivateEndpointModelResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; }
+ }
+ public partial class DashboardPrivateEndpointConnectionCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable
+ {
+ protected DashboardPrivateEndpointConnectionCollection() { }
+ public virtual Azure.ResourceManager.ArmOperation CreateOrUpdate(Azure.WaitUntil waitUntil, string privateEndpointConnectionName, Azure.ResourceManager.Dashboard.DashboardPrivateEndpointConnectionData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public virtual System.Threading.Tasks.Task> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, string privateEndpointConnectionName, Azure.ResourceManager.Dashboard.DashboardPrivateEndpointConnectionData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public virtual Azure.Response Exists(string privateEndpointConnectionName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public virtual System.Threading.Tasks.Task> ExistsAsync(string privateEndpointConnectionName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public virtual Azure.Response Get(string privateEndpointConnectionName, 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 privateEndpointConnectionName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public virtual Azure.NullableResponse GetIfExists(string privateEndpointConnectionName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public virtual System.Threading.Tasks.Task> GetIfExistsAsync(string privateEndpointConnectionName, 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 DashboardPrivateEndpointConnectionData : Azure.ResourceManager.Models.ResourceData
+ {
+ public DashboardPrivateEndpointConnectionData() { }
+ public Azure.ResourceManager.Dashboard.Models.DashboardPrivateLinkServiceConnectionState ConnectionState { get { throw null; } set { } }
+ public System.Collections.Generic.IList GroupIds { get { throw null; } }
+ public Azure.Core.ResourceIdentifier PrivateEndpointId { get { throw null; } }
+ public Azure.ResourceManager.Dashboard.Models.DashboardPrivateEndpointConnectionProvisioningState? ProvisioningState { get { throw null; } }
+ }
+ public partial class DashboardPrivateEndpointConnectionResource : Azure.ResourceManager.ArmResource
+ {
+ public static readonly Azure.Core.ResourceType ResourceType;
+ protected DashboardPrivateEndpointConnectionResource() { }
+ public virtual Azure.ResourceManager.Dashboard.DashboardPrivateEndpointConnectionData Data { get { throw null; } }
+ public virtual bool HasData { get { throw null; } }
+ public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string workspaceName, string privateEndpointConnectionName) { 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.Dashboard.DashboardPrivateEndpointConnectionData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.Dashboard.DashboardPrivateEndpointConnectionData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ }
+ public partial class DashboardPrivateLinkResource : Azure.ResourceManager.ArmResource
+ {
+ public static readonly Azure.Core.ResourceType ResourceType;
+ protected DashboardPrivateLinkResource() { }
+ public virtual Azure.ResourceManager.Dashboard.DashboardPrivateLinkResourceData Data { get { throw null; } }
+ public virtual bool HasData { get { throw null; } }
+ public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string workspaceName, string privateLinkResourceName) { 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 partial class DashboardPrivateLinkResourceCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable
+ {
+ protected DashboardPrivateLinkResourceCollection() { }
+ public virtual Azure.Response Exists(string privateLinkResourceName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public virtual System.Threading.Tasks.Task> ExistsAsync(string privateLinkResourceName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public virtual Azure.Response Get(string privateLinkResourceName, 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 privateLinkResourceName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public virtual Azure.NullableResponse GetIfExists(string privateLinkResourceName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public virtual System.Threading.Tasks.Task> GetIfExistsAsync(string privateLinkResourceName, 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 DashboardPrivateLinkResourceData : Azure.ResourceManager.Models.ResourceData
+ {
+ public DashboardPrivateLinkResourceData() { }
+ public string GroupId { get { throw null; } }
+ public Azure.ResourceManager.Dashboard.Models.ProvisioningState? ProvisioningState { get { throw null; } }
+ public System.Collections.Generic.IReadOnlyList RequiredMembers { get { throw null; } }
+ public System.Collections.Generic.IList RequiredZoneNames { get { throw null; } }
+ }
+ public partial class ManagedGrafanaCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable
+ {
+ protected ManagedGrafanaCollection() { }
+ public virtual Azure.ResourceManager.ArmOperation CreateOrUpdate(Azure.WaitUntil waitUntil, string workspaceName, Azure.ResourceManager.Dashboard.ManagedGrafanaData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public virtual System.Threading.Tasks.Task> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, string workspaceName, Azure.ResourceManager.Dashboard.ManagedGrafanaData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public virtual Azure.Response Exists(string workspaceName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public virtual System.Threading.Tasks.Task> ExistsAsync(string workspaceName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public virtual Azure.Response Get(string workspaceName, 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 workspaceName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public virtual Azure.NullableResponse GetIfExists(string workspaceName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public virtual System.Threading.Tasks.Task> GetIfExistsAsync(string workspaceName, 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 ManagedGrafanaData : Azure.ResourceManager.Models.TrackedResourceData
+ {
+ public ManagedGrafanaData(Azure.Core.AzureLocation location) : base (default(Azure.Core.AzureLocation)) { }
+ public Azure.ResourceManager.Models.ManagedServiceIdentity Identity { get { throw null; } set { } }
+ public Azure.ResourceManager.Dashboard.Models.ManagedGrafanaProperties Properties { get { throw null; } set { } }
+ public string SkuName { get { throw null; } set { } }
+ }
+ public partial class ManagedGrafanaResource : Azure.ResourceManager.ArmResource
+ {
+ public static readonly Azure.Core.ResourceType ResourceType;
+ protected ManagedGrafanaResource() { }
+ public virtual Azure.ResourceManager.Dashboard.ManagedGrafanaData 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 CheckEnterpriseDetails(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public virtual System.Threading.Tasks.Task> CheckEnterpriseDetailsAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string workspaceName) { 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 FetchAvailablePlugins(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public virtual Azure.AsyncPageable FetchAvailablePluginsAsync(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 GetDashboardPrivateEndpointConnection(string privateEndpointConnectionName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public virtual System.Threading.Tasks.Task> GetDashboardPrivateEndpointConnectionAsync(string privateEndpointConnectionName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public virtual Azure.ResourceManager.Dashboard.DashboardPrivateEndpointConnectionCollection GetDashboardPrivateEndpointConnections() { throw null; }
+ public virtual Azure.Response GetDashboardPrivateLinkResource(string privateLinkResourceName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public virtual System.Threading.Tasks.Task> GetDashboardPrivateLinkResourceAsync(string privateLinkResourceName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public virtual Azure.ResourceManager.Dashboard.DashboardPrivateLinkResourceCollection GetDashboardPrivateLinkResources() { throw null; }
+ public virtual Azure.Response GetManagedPrivateEndpointModel(string managedPrivateEndpointName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public virtual System.Threading.Tasks.Task> GetManagedPrivateEndpointModelAsync(string managedPrivateEndpointName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public virtual Azure.ResourceManager.Dashboard.ManagedPrivateEndpointModelCollection GetManagedPrivateEndpointModels() { throw null; }
+ public virtual Azure.ResourceManager.ArmOperation RefreshManagedPrivateEndpoint(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public virtual System.Threading.Tasks.Task RefreshManagedPrivateEndpointAsync(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { 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.Dashboard.Models.ManagedGrafanaPatch patch, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.ResourceManager.Dashboard.Models.ManagedGrafanaPatch patch, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ }
+ public partial class ManagedPrivateEndpointModelCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable
+ {
+ protected ManagedPrivateEndpointModelCollection() { }
+ public virtual Azure.ResourceManager.ArmOperation CreateOrUpdate(Azure.WaitUntil waitUntil, string managedPrivateEndpointName, Azure.ResourceManager.Dashboard.ManagedPrivateEndpointModelData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public virtual System.Threading.Tasks.Task> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, string managedPrivateEndpointName, Azure.ResourceManager.Dashboard.ManagedPrivateEndpointModelData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public virtual Azure.Response Exists(string managedPrivateEndpointName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public virtual System.Threading.Tasks.Task> ExistsAsync(string managedPrivateEndpointName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public virtual Azure.Response Get(string managedPrivateEndpointName, 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 managedPrivateEndpointName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public virtual Azure.NullableResponse GetIfExists(string managedPrivateEndpointName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public virtual System.Threading.Tasks.Task> GetIfExistsAsync(string managedPrivateEndpointName, 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 ManagedPrivateEndpointModelData : Azure.ResourceManager.Models.TrackedResourceData
+ {
+ public ManagedPrivateEndpointModelData(Azure.Core.AzureLocation location) : base (default(Azure.Core.AzureLocation)) { }
+ public Azure.ResourceManager.Dashboard.Models.ManagedPrivateEndpointConnectionState ConnectionState { get { throw null; } }
+ public System.Collections.Generic.IList GroupIds { get { throw null; } }
+ public string PrivateLinkResourceId { get { throw null; } set { } }
+ public string PrivateLinkResourceRegion { get { throw null; } set { } }
+ public string PrivateLinkServicePrivateIP { get { throw null; } }
+ public System.Uri PrivateLinkServiceUri { get { throw null; } set { } }
+ public Azure.ResourceManager.Dashboard.Models.ProvisioningState? ProvisioningState { get { throw null; } }
+ public string RequestMessage { get { throw null; } set { } }
+ }
+ public partial class ManagedPrivateEndpointModelResource : Azure.ResourceManager.ArmResource
+ {
+ public static readonly Azure.Core.ResourceType ResourceType;
+ protected ManagedPrivateEndpointModelResource() { }
+ public virtual Azure.ResourceManager.Dashboard.ManagedPrivateEndpointModelData Data { get { throw null; } }
+ public virtual bool HasData { get { throw null; } }
+ public virtual Azure.Response AddTag(string key, string value, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public virtual System.Threading.Tasks.Task> AddTagAsync(string key, string value, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string workspaceName, string managedPrivateEndpointName) { 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 RemoveTag(string key, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public virtual System.Threading.Tasks.Task> RemoveTagAsync(string key, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public virtual Azure.Response SetTags(System.Collections.Generic.IDictionary tags, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public virtual System.Threading.Tasks.Task> SetTagsAsync(System.Collections.Generic.IDictionary tags, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public virtual Azure.ResourceManager.ArmOperation Update(Azure.WaitUntil waitUntil, Azure.ResourceManager.Dashboard.Models.ManagedPrivateEndpointModelPatch patch, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.Dashboard.Models.ManagedPrivateEndpointModelPatch patch, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ }
+}
+namespace Azure.ResourceManager.Dashboard.Models
+{
+ [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)]
+ public readonly partial struct ApiKey : System.IEquatable
+ {
+ private readonly object _dummy;
+ private readonly int _dummyPrimitive;
+ public ApiKey(string value) { throw null; }
+ public static Azure.ResourceManager.Dashboard.Models.ApiKey Disabled { get { throw null; } }
+ public static Azure.ResourceManager.Dashboard.Models.ApiKey Enabled { get { throw null; } }
+ public bool Equals(Azure.ResourceManager.Dashboard.Models.ApiKey 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.Dashboard.Models.ApiKey left, Azure.ResourceManager.Dashboard.Models.ApiKey right) { throw null; }
+ public static implicit operator Azure.ResourceManager.Dashboard.Models.ApiKey (string value) { throw null; }
+ public static bool operator !=(Azure.ResourceManager.Dashboard.Models.ApiKey left, Azure.ResourceManager.Dashboard.Models.ApiKey right) { throw null; }
+ public override string ToString() { throw null; }
+ }
+ public static partial class ArmDashboardModelFactory
+ {
+ public static Azure.ResourceManager.Dashboard.DashboardPrivateEndpointConnectionData DashboardPrivateEndpointConnectionData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.Core.ResourceIdentifier privateEndpointId = null, Azure.ResourceManager.Dashboard.Models.DashboardPrivateLinkServiceConnectionState connectionState = null, System.Collections.Generic.IEnumerable groupIds = null, Azure.ResourceManager.Dashboard.Models.DashboardPrivateEndpointConnectionProvisioningState? provisioningState = default(Azure.ResourceManager.Dashboard.Models.DashboardPrivateEndpointConnectionProvisioningState?)) { throw null; }
+ public static Azure.ResourceManager.Dashboard.DashboardPrivateLinkResourceData DashboardPrivateLinkResourceData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.Dashboard.Models.ProvisioningState? provisioningState = default(Azure.ResourceManager.Dashboard.Models.ProvisioningState?), string groupId = null, System.Collections.Generic.IEnumerable requiredMembers = null, System.Collections.Generic.IEnumerable requiredZoneNames = null) { throw null; }
+ public static Azure.ResourceManager.Dashboard.Models.EnterpriseDetails EnterpriseDetails(Azure.ResourceManager.Dashboard.Models.SaasSubscriptionDetails saasSubscriptionDetails = null, Azure.ResourceManager.Dashboard.Models.MarketplaceTrialQuota marketplaceTrialQuota = null) { throw null; }
+ public static Azure.ResourceManager.Dashboard.Models.GrafanaAvailablePlugin GrafanaAvailablePlugin(string pluginId = null, string name = null) { throw null; }
+ public static Azure.ResourceManager.Dashboard.Models.GrafanaPlugin GrafanaPlugin(string pluginId = null) { throw null; }
+ public static Azure.ResourceManager.Dashboard.ManagedGrafanaData ManagedGrafanaData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, System.Collections.Generic.IDictionary tags = null, Azure.Core.AzureLocation location = default(Azure.Core.AzureLocation), string skuName = null, Azure.ResourceManager.Dashboard.Models.ManagedGrafanaProperties properties = null, Azure.ResourceManager.Models.ManagedServiceIdentity identity = null) { throw null; }
+ public static Azure.ResourceManager.Dashboard.Models.ManagedGrafanaProperties ManagedGrafanaProperties(Azure.ResourceManager.Dashboard.Models.ProvisioningState? provisioningState = default(Azure.ResourceManager.Dashboard.Models.ProvisioningState?), string grafanaVersion = null, string endpoint = null, Azure.ResourceManager.Dashboard.Models.PublicNetworkAccess? publicNetworkAccess = default(Azure.ResourceManager.Dashboard.Models.PublicNetworkAccess?), Azure.ResourceManager.Dashboard.Models.ZoneRedundancy? zoneRedundancy = default(Azure.ResourceManager.Dashboard.Models.ZoneRedundancy?), Azure.ResourceManager.Dashboard.Models.ApiKey? apiKey = default(Azure.ResourceManager.Dashboard.Models.ApiKey?), Azure.ResourceManager.Dashboard.Models.DeterministicOutboundIP? deterministicOutboundIP = default(Azure.ResourceManager.Dashboard.Models.DeterministicOutboundIP?), System.Collections.Generic.IEnumerable outboundIPs = null, System.Collections.Generic.IEnumerable privateEndpointConnections = null, Azure.ResourceManager.Dashboard.Models.AutoGeneratedDomainNameLabelScope? autoGeneratedDomainNameLabelScope = default(Azure.ResourceManager.Dashboard.Models.AutoGeneratedDomainNameLabelScope?), System.Collections.Generic.IEnumerable azureMonitorWorkspaceIntegrations = null, Azure.ResourceManager.Dashboard.Models.EnterpriseConfigurations enterpriseConfigurations = null, Azure.ResourceManager.Dashboard.Models.Smtp grafanaConfigurationsSmtp = null, System.Collections.Generic.IDictionary grafanaPlugins = null, string grafanaMajorVersion = null) { throw null; }
+ public static Azure.ResourceManager.Dashboard.Models.ManagedPrivateEndpointConnectionState ManagedPrivateEndpointConnectionState(Azure.ResourceManager.Dashboard.Models.ManagedPrivateEndpointConnectionStatus? status = default(Azure.ResourceManager.Dashboard.Models.ManagedPrivateEndpointConnectionStatus?), string description = null) { throw null; }
+ public static Azure.ResourceManager.Dashboard.ManagedPrivateEndpointModelData ManagedPrivateEndpointModelData(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.Dashboard.Models.ProvisioningState? provisioningState = default(Azure.ResourceManager.Dashboard.Models.ProvisioningState?), string privateLinkResourceId = null, string privateLinkResourceRegion = null, System.Collections.Generic.IEnumerable groupIds = null, string requestMessage = null, Azure.ResourceManager.Dashboard.Models.ManagedPrivateEndpointConnectionState connectionState = null, System.Uri privateLinkServiceUri = null, string privateLinkServicePrivateIP = null) { throw null; }
+ public static Azure.ResourceManager.Dashboard.Models.MarketplaceTrialQuota MarketplaceTrialQuota(Azure.ResourceManager.Dashboard.Models.AvailablePromotion? availablePromotion = default(Azure.ResourceManager.Dashboard.Models.AvailablePromotion?), Azure.Core.ResourceIdentifier grafanaResourceId = null, System.DateTimeOffset? trialStartOn = default(System.DateTimeOffset?), System.DateTimeOffset? trialEndOn = default(System.DateTimeOffset?)) { throw null; }
+ public static Azure.ResourceManager.Dashboard.Models.SaasSubscriptionDetails SaasSubscriptionDetails(string planId = null, string offerId = null, string publisherId = null, Azure.ResourceManager.Dashboard.Models.SubscriptionTerm term = null) { throw null; }
+ public static Azure.ResourceManager.Dashboard.Models.SubscriptionTerm SubscriptionTerm(string termUnit = null, System.DateTimeOffset? startOn = default(System.DateTimeOffset?), System.DateTimeOffset? endOn = default(System.DateTimeOffset?)) { throw null; }
+ }
+ [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)]
+ public readonly partial struct AutoGeneratedDomainNameLabelScope : System.IEquatable
+ {
+ private readonly object _dummy;
+ private readonly int _dummyPrimitive;
+ public AutoGeneratedDomainNameLabelScope(string value) { throw null; }
+ public static Azure.ResourceManager.Dashboard.Models.AutoGeneratedDomainNameLabelScope TenantReuse { get { throw null; } }
+ public bool Equals(Azure.ResourceManager.Dashboard.Models.AutoGeneratedDomainNameLabelScope 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.Dashboard.Models.AutoGeneratedDomainNameLabelScope left, Azure.ResourceManager.Dashboard.Models.AutoGeneratedDomainNameLabelScope right) { throw null; }
+ public static implicit operator Azure.ResourceManager.Dashboard.Models.AutoGeneratedDomainNameLabelScope (string value) { throw null; }
+ public static bool operator !=(Azure.ResourceManager.Dashboard.Models.AutoGeneratedDomainNameLabelScope left, Azure.ResourceManager.Dashboard.Models.AutoGeneratedDomainNameLabelScope right) { throw null; }
+ public override string ToString() { throw null; }
+ }
+ [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)]
+ public readonly partial struct AvailablePromotion : System.IEquatable
+ {
+ private readonly object _dummy;
+ private readonly int _dummyPrimitive;
+ public AvailablePromotion(string value) { throw null; }
+ public static Azure.ResourceManager.Dashboard.Models.AvailablePromotion FreeTrial { get { throw null; } }
+ public static Azure.ResourceManager.Dashboard.Models.AvailablePromotion None { get { throw null; } }
+ public bool Equals(Azure.ResourceManager.Dashboard.Models.AvailablePromotion 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.Dashboard.Models.AvailablePromotion left, Azure.ResourceManager.Dashboard.Models.AvailablePromotion right) { throw null; }
+ public static implicit operator Azure.ResourceManager.Dashboard.Models.AvailablePromotion (string value) { throw null; }
+ public static bool operator !=(Azure.ResourceManager.Dashboard.Models.AvailablePromotion left, Azure.ResourceManager.Dashboard.Models.AvailablePromotion right) { throw null; }
+ public override string ToString() { throw null; }
+ }
+ public partial class AzureMonitorWorkspaceIntegration
+ {
+ public AzureMonitorWorkspaceIntegration() { }
+ public string AzureMonitorWorkspaceResourceId { get { throw null; } set { } }
+ }
+ [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)]
+ public readonly partial struct DashboardPrivateEndpointConnectionProvisioningState : System.IEquatable
+ {
+ private readonly object _dummy;
+ private readonly int _dummyPrimitive;
+ public DashboardPrivateEndpointConnectionProvisioningState(string value) { throw null; }
+ public static Azure.ResourceManager.Dashboard.Models.DashboardPrivateEndpointConnectionProvisioningState Creating { get { throw null; } }
+ public static Azure.ResourceManager.Dashboard.Models.DashboardPrivateEndpointConnectionProvisioningState Deleting { get { throw null; } }
+ public static Azure.ResourceManager.Dashboard.Models.DashboardPrivateEndpointConnectionProvisioningState Failed { get { throw null; } }
+ public static Azure.ResourceManager.Dashboard.Models.DashboardPrivateEndpointConnectionProvisioningState Succeeded { get { throw null; } }
+ public bool Equals(Azure.ResourceManager.Dashboard.Models.DashboardPrivateEndpointConnectionProvisioningState 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.Dashboard.Models.DashboardPrivateEndpointConnectionProvisioningState left, Azure.ResourceManager.Dashboard.Models.DashboardPrivateEndpointConnectionProvisioningState right) { throw null; }
+ public static implicit operator Azure.ResourceManager.Dashboard.Models.DashboardPrivateEndpointConnectionProvisioningState (string value) { throw null; }
+ public static bool operator !=(Azure.ResourceManager.Dashboard.Models.DashboardPrivateEndpointConnectionProvisioningState left, Azure.ResourceManager.Dashboard.Models.DashboardPrivateEndpointConnectionProvisioningState right) { throw null; }
+ public override string ToString() { throw null; }
+ }
+ [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)]
+ public readonly partial struct DashboardPrivateEndpointServiceConnectionStatus : System.IEquatable
+ {
+ private readonly object _dummy;
+ private readonly int _dummyPrimitive;
+ public DashboardPrivateEndpointServiceConnectionStatus(string value) { throw null; }
+ public static Azure.ResourceManager.Dashboard.Models.DashboardPrivateEndpointServiceConnectionStatus Approved { get { throw null; } }
+ public static Azure.ResourceManager.Dashboard.Models.DashboardPrivateEndpointServiceConnectionStatus Pending { get { throw null; } }
+ public static Azure.ResourceManager.Dashboard.Models.DashboardPrivateEndpointServiceConnectionStatus Rejected { get { throw null; } }
+ public bool Equals(Azure.ResourceManager.Dashboard.Models.DashboardPrivateEndpointServiceConnectionStatus 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.Dashboard.Models.DashboardPrivateEndpointServiceConnectionStatus left, Azure.ResourceManager.Dashboard.Models.DashboardPrivateEndpointServiceConnectionStatus right) { throw null; }
+ public static implicit operator Azure.ResourceManager.Dashboard.Models.DashboardPrivateEndpointServiceConnectionStatus (string value) { throw null; }
+ public static bool operator !=(Azure.ResourceManager.Dashboard.Models.DashboardPrivateEndpointServiceConnectionStatus left, Azure.ResourceManager.Dashboard.Models.DashboardPrivateEndpointServiceConnectionStatus right) { throw null; }
+ public override string ToString() { throw null; }
+ }
+ public partial class DashboardPrivateLinkServiceConnectionState
+ {
+ public DashboardPrivateLinkServiceConnectionState() { }
+ public string ActionsRequired { get { throw null; } set { } }
+ public string Description { get { throw null; } set { } }
+ public Azure.ResourceManager.Dashboard.Models.DashboardPrivateEndpointServiceConnectionStatus? Status { get { throw null; } set { } }
+ }
+ [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)]
+ public readonly partial struct DeterministicOutboundIP : System.IEquatable
+ {
+ private readonly object _dummy;
+ private readonly int _dummyPrimitive;
+ public DeterministicOutboundIP(string value) { throw null; }
+ public static Azure.ResourceManager.Dashboard.Models.DeterministicOutboundIP Disabled { get { throw null; } }
+ public static Azure.ResourceManager.Dashboard.Models.DeterministicOutboundIP Enabled { get { throw null; } }
+ public bool Equals(Azure.ResourceManager.Dashboard.Models.DeterministicOutboundIP 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.Dashboard.Models.DeterministicOutboundIP left, Azure.ResourceManager.Dashboard.Models.DeterministicOutboundIP right) { throw null; }
+ public static implicit operator Azure.ResourceManager.Dashboard.Models.DeterministicOutboundIP (string value) { throw null; }
+ public static bool operator !=(Azure.ResourceManager.Dashboard.Models.DeterministicOutboundIP left, Azure.ResourceManager.Dashboard.Models.DeterministicOutboundIP right) { throw null; }
+ public override string ToString() { throw null; }
+ }
+ public partial class EnterpriseConfigurations
+ {
+ public EnterpriseConfigurations() { }
+ public Azure.ResourceManager.Dashboard.Models.MarketplaceAutoRenew? MarketplaceAutoRenew { get { throw null; } set { } }
+ public string MarketplacePlanId { get { throw null; } set { } }
+ }
+ public partial class EnterpriseDetails
+ {
+ internal EnterpriseDetails() { }
+ public Azure.ResourceManager.Dashboard.Models.MarketplaceTrialQuota MarketplaceTrialQuota { get { throw null; } }
+ public Azure.ResourceManager.Dashboard.Models.SaasSubscriptionDetails SaasSubscriptionDetails { get { throw null; } }
+ }
+ public partial class GrafanaAvailablePlugin
+ {
+ internal GrafanaAvailablePlugin() { }
+ public string Name { get { throw null; } }
+ public string PluginId { get { throw null; } }
+ }
+ public partial class GrafanaPlugin
+ {
+ public GrafanaPlugin() { }
+ public string PluginId { get { throw null; } }
+ }
+ public partial class ManagedGrafanaPatch
+ {
+ public ManagedGrafanaPatch() { }
+ public Azure.ResourceManager.Models.ManagedServiceIdentity Identity { get { throw null; } set { } }
+ public Azure.ResourceManager.Dashboard.Models.ManagedGrafanaPropertiesUpdateParameters Properties { get { throw null; } set { } }
+ public string SkuName { get { throw null; } set { } }
+ public System.Collections.Generic.IDictionary Tags { get { throw null; } }
+ }
+ public partial class ManagedGrafanaProperties
+ {
+ public ManagedGrafanaProperties() { }
+ public Azure.ResourceManager.Dashboard.Models.ApiKey? ApiKey { get { throw null; } set { } }
+ public Azure.ResourceManager.Dashboard.Models.AutoGeneratedDomainNameLabelScope? AutoGeneratedDomainNameLabelScope { get { throw null; } set { } }
+ public System.Collections.Generic.IList AzureMonitorWorkspaceIntegrations { get { throw null; } }
+ public Azure.ResourceManager.Dashboard.Models.DeterministicOutboundIP? DeterministicOutboundIP { get { throw null; } set { } }
+ public string Endpoint { get { throw null; } }
+ public Azure.ResourceManager.Dashboard.Models.EnterpriseConfigurations EnterpriseConfigurations { get { throw null; } set { } }
+ public Azure.ResourceManager.Dashboard.Models.Smtp GrafanaConfigurationsSmtp { get { throw null; } set { } }
+ public string GrafanaMajorVersion { get { throw null; } set { } }
+ public System.Collections.Generic.IDictionary GrafanaPlugins { get { throw null; } }
+ public string GrafanaVersion { get { throw null; } }
+ public System.Collections.Generic.IReadOnlyList OutboundIPs { get { throw null; } }
+ public System.Collections.Generic.IReadOnlyList PrivateEndpointConnections { get { throw null; } }
+ public Azure.ResourceManager.Dashboard.Models.ProvisioningState? ProvisioningState { get { throw null; } }
+ public Azure.ResourceManager.Dashboard.Models.PublicNetworkAccess? PublicNetworkAccess { get { throw null; } set { } }
+ public Azure.ResourceManager.Dashboard.Models.ZoneRedundancy? ZoneRedundancy { get { throw null; } set { } }
+ }
+ public partial class ManagedGrafanaPropertiesUpdateParameters
+ {
+ public ManagedGrafanaPropertiesUpdateParameters() { }
+ public Azure.ResourceManager.Dashboard.Models.ApiKey? ApiKey { get { throw null; } set { } }
+ public System.Collections.Generic.IList AzureMonitorWorkspaceIntegrations { get { throw null; } }
+ public Azure.ResourceManager.Dashboard.Models.DeterministicOutboundIP? DeterministicOutboundIP { get { throw null; } set { } }
+ public Azure.ResourceManager.Dashboard.Models.EnterpriseConfigurations EnterpriseConfigurations { get { throw null; } set { } }
+ public Azure.ResourceManager.Dashboard.Models.Smtp GrafanaConfigurationsSmtp { get { throw null; } set { } }
+ public string GrafanaMajorVersion { get { throw null; } set { } }
+ public System.Collections.Generic.IDictionary GrafanaPlugins { get { throw null; } }
+ public Azure.ResourceManager.Dashboard.Models.PublicNetworkAccess? PublicNetworkAccess { get { throw null; } set { } }
+ public Azure.ResourceManager.Dashboard.Models.ZoneRedundancy? ZoneRedundancy { get { throw null; } set { } }
+ }
+ public partial class ManagedPrivateEndpointConnectionState
+ {
+ internal ManagedPrivateEndpointConnectionState() { }
+ public string Description { get { throw null; } }
+ public Azure.ResourceManager.Dashboard.Models.ManagedPrivateEndpointConnectionStatus? Status { get { throw null; } }
+ }
+ [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)]
+ public readonly partial struct ManagedPrivateEndpointConnectionStatus : System.IEquatable
+ {
+ private readonly object _dummy;
+ private readonly int _dummyPrimitive;
+ public ManagedPrivateEndpointConnectionStatus(string value) { throw null; }
+ public static Azure.ResourceManager.Dashboard.Models.ManagedPrivateEndpointConnectionStatus Approved { get { throw null; } }
+ public static Azure.ResourceManager.Dashboard.Models.ManagedPrivateEndpointConnectionStatus Disconnected { get { throw null; } }
+ public static Azure.ResourceManager.Dashboard.Models.ManagedPrivateEndpointConnectionStatus Pending { get { throw null; } }
+ public static Azure.ResourceManager.Dashboard.Models.ManagedPrivateEndpointConnectionStatus Rejected { get { throw null; } }
+ public bool Equals(Azure.ResourceManager.Dashboard.Models.ManagedPrivateEndpointConnectionStatus 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.Dashboard.Models.ManagedPrivateEndpointConnectionStatus left, Azure.ResourceManager.Dashboard.Models.ManagedPrivateEndpointConnectionStatus right) { throw null; }
+ public static implicit operator Azure.ResourceManager.Dashboard.Models.ManagedPrivateEndpointConnectionStatus (string value) { throw null; }
+ public static bool operator !=(Azure.ResourceManager.Dashboard.Models.ManagedPrivateEndpointConnectionStatus left, Azure.ResourceManager.Dashboard.Models.ManagedPrivateEndpointConnectionStatus right) { throw null; }
+ public override string ToString() { throw null; }
+ }
+ public partial class ManagedPrivateEndpointModelPatch
+ {
+ public ManagedPrivateEndpointModelPatch() { }
+ public System.Collections.Generic.IDictionary Tags { get { throw null; } }
+ }
+ [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)]
+ public readonly partial struct MarketplaceAutoRenew : System.IEquatable
+ {
+ private readonly object _dummy;
+ private readonly int _dummyPrimitive;
+ public MarketplaceAutoRenew(string value) { throw null; }
+ public static Azure.ResourceManager.Dashboard.Models.MarketplaceAutoRenew Disabled { get { throw null; } }
+ public static Azure.ResourceManager.Dashboard.Models.MarketplaceAutoRenew Enabled { get { throw null; } }
+ public bool Equals(Azure.ResourceManager.Dashboard.Models.MarketplaceAutoRenew 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.Dashboard.Models.MarketplaceAutoRenew left, Azure.ResourceManager.Dashboard.Models.MarketplaceAutoRenew right) { throw null; }
+ public static implicit operator Azure.ResourceManager.Dashboard.Models.MarketplaceAutoRenew (string value) { throw null; }
+ public static bool operator !=(Azure.ResourceManager.Dashboard.Models.MarketplaceAutoRenew left, Azure.ResourceManager.Dashboard.Models.MarketplaceAutoRenew right) { throw null; }
+ public override string ToString() { throw null; }
+ }
+ public partial class MarketplaceTrialQuota
+ {
+ internal MarketplaceTrialQuota() { }
+ public Azure.ResourceManager.Dashboard.Models.AvailablePromotion? AvailablePromotion { get { throw null; } }
+ public Azure.Core.ResourceIdentifier GrafanaResourceId { get { throw null; } }
+ public System.DateTimeOffset? TrialEndOn { get { throw null; } }
+ public System.DateTimeOffset? TrialStartOn { get { throw null; } }
+ }
+ [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.Dashboard.Models.ProvisioningState Accepted { get { throw null; } }
+ public static Azure.ResourceManager.Dashboard.Models.ProvisioningState Canceled { get { throw null; } }
+ public static Azure.ResourceManager.Dashboard.Models.ProvisioningState Creating { get { throw null; } }
+ public static Azure.ResourceManager.Dashboard.Models.ProvisioningState Deleted { get { throw null; } }
+ public static Azure.ResourceManager.Dashboard.Models.ProvisioningState Deleting { get { throw null; } }
+ public static Azure.ResourceManager.Dashboard.Models.ProvisioningState Failed { get { throw null; } }
+ public static Azure.ResourceManager.Dashboard.Models.ProvisioningState NotSpecified { get { throw null; } }
+ public static Azure.ResourceManager.Dashboard.Models.ProvisioningState Succeeded { get { throw null; } }
+ public static Azure.ResourceManager.Dashboard.Models.ProvisioningState Updating { get { throw null; } }
+ public bool Equals(Azure.ResourceManager.Dashboard.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.Dashboard.Models.ProvisioningState left, Azure.ResourceManager.Dashboard.Models.ProvisioningState right) { throw null; }
+ public static implicit operator Azure.ResourceManager.Dashboard.Models.ProvisioningState (string value) { throw null; }
+ public static bool operator !=(Azure.ResourceManager.Dashboard.Models.ProvisioningState left, Azure.ResourceManager.Dashboard.Models.ProvisioningState right) { throw null; }
+ public override string ToString() { throw null; }
+ }
+ [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)]
+ public readonly partial struct PublicNetworkAccess : System.IEquatable
+ {
+ private readonly object _dummy;
+ private readonly int _dummyPrimitive;
+ public PublicNetworkAccess(string value) { throw null; }
+ public static Azure.ResourceManager.Dashboard.Models.PublicNetworkAccess Disabled { get { throw null; } }
+ public static Azure.ResourceManager.Dashboard.Models.PublicNetworkAccess Enabled { get { throw null; } }
+ public bool Equals(Azure.ResourceManager.Dashboard.Models.PublicNetworkAccess 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.Dashboard.Models.PublicNetworkAccess left, Azure.ResourceManager.Dashboard.Models.PublicNetworkAccess right) { throw null; }
+ public static implicit operator Azure.ResourceManager.Dashboard.Models.PublicNetworkAccess (string value) { throw null; }
+ public static bool operator !=(Azure.ResourceManager.Dashboard.Models.PublicNetworkAccess left, Azure.ResourceManager.Dashboard.Models.PublicNetworkAccess right) { throw null; }
+ public override string ToString() { throw null; }
+ }
+ public partial class SaasSubscriptionDetails
+ {
+ internal SaasSubscriptionDetails() { }
+ public string OfferId { get { throw null; } }
+ public string PlanId { get { throw null; } }
+ public string PublisherId { get { throw null; } }
+ public Azure.ResourceManager.Dashboard.Models.SubscriptionTerm Term { get { throw null; } }
+ }
+ public partial class Smtp
+ {
+ public Smtp() { }
+ public bool? Enabled { get { throw null; } set { } }
+ public string FromAddress { get { throw null; } set { } }
+ public string FromName { get { throw null; } set { } }
+ public string Host { get { throw null; } set { } }
+ public string Password { get { throw null; } set { } }
+ public bool? SkipVerify { get { throw null; } set { } }
+ public Azure.ResourceManager.Dashboard.Models.StartTLSPolicy? StartTLSPolicy { get { throw null; } set { } }
+ public string User { get { throw null; } set { } }
+ }
+ [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)]
+ public readonly partial struct StartTLSPolicy : System.IEquatable
+ {
+ private readonly object _dummy;
+ private readonly int _dummyPrimitive;
+ public StartTLSPolicy(string value) { throw null; }
+ public static Azure.ResourceManager.Dashboard.Models.StartTLSPolicy MandatoryStartTLS { get { throw null; } }
+ public static Azure.ResourceManager.Dashboard.Models.StartTLSPolicy NoStartTLS { get { throw null; } }
+ public static Azure.ResourceManager.Dashboard.Models.StartTLSPolicy OpportunisticStartTLS { get { throw null; } }
+ public bool Equals(Azure.ResourceManager.Dashboard.Models.StartTLSPolicy 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.Dashboard.Models.StartTLSPolicy left, Azure.ResourceManager.Dashboard.Models.StartTLSPolicy right) { throw null; }
+ public static implicit operator Azure.ResourceManager.Dashboard.Models.StartTLSPolicy (string value) { throw null; }
+ public static bool operator !=(Azure.ResourceManager.Dashboard.Models.StartTLSPolicy left, Azure.ResourceManager.Dashboard.Models.StartTLSPolicy right) { throw null; }
+ public override string ToString() { throw null; }
+ }
+ public partial class SubscriptionTerm
+ {
+ internal SubscriptionTerm() { }
+ public System.DateTimeOffset? EndOn { get { throw null; } }
+ public System.DateTimeOffset? StartOn { get { throw null; } }
+ public string TermUnit { get { throw null; } }
+ }
+ [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)]
+ public readonly partial struct ZoneRedundancy : System.IEquatable
+ {
+ private readonly object _dummy;
+ private readonly int _dummyPrimitive;
+ public ZoneRedundancy(string value) { throw null; }
+ public static Azure.ResourceManager.Dashboard.Models.ZoneRedundancy Disabled { get { throw null; } }
+ public static Azure.ResourceManager.Dashboard.Models.ZoneRedundancy Enabled { get { throw null; } }
+ public bool Equals(Azure.ResourceManager.Dashboard.Models.ZoneRedundancy 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.Dashboard.Models.ZoneRedundancy left, Azure.ResourceManager.Dashboard.Models.ZoneRedundancy right) { throw null; }
+ public static implicit operator Azure.ResourceManager.Dashboard.Models.ZoneRedundancy (string value) { throw null; }
+ public static bool operator !=(Azure.ResourceManager.Dashboard.Models.ZoneRedundancy left, Azure.ResourceManager.Dashboard.Models.ZoneRedundancy right) { throw null; }
+ public override string ToString() { throw null; }
+ }
+}
diff --git a/sdk/dashboard/Azure.ResourceManager.Dashboard/assets.json b/sdk/dashboard/Azure.ResourceManager.Dashboard/assets.json
new file mode 100644
index 000000000000..7645c272e3f8
--- /dev/null
+++ b/sdk/dashboard/Azure.ResourceManager.Dashboard/assets.json
@@ -0,0 +1,6 @@
+{
+ "AssetsRepo": "Azure/azure-sdk-assets",
+ "AssetsRepoPrefixPath": "net",
+ "TagPrefix": "net//Azure.ResourceManager.Dashboard",
+ "Tag": ""
+}
diff --git a/sdk/dashboard/Azure.ResourceManager.Dashboard/samples/Azure.ResourceManager.Dashboard.Samples.csproj b/sdk/dashboard/Azure.ResourceManager.Dashboard/samples/Azure.ResourceManager.Dashboard.Samples.csproj
new file mode 100644
index 000000000000..eecb58b82b68
--- /dev/null
+++ b/sdk/dashboard/Azure.ResourceManager.Dashboard/samples/Azure.ResourceManager.Dashboard.Samples.csproj
@@ -0,0 +1,10 @@
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/sdk/dashboard/Azure.ResourceManager.Dashboard/samples/Generated/Samples/Sample_DashboardPrivateEndpointConnectionCollection.cs b/sdk/dashboard/Azure.ResourceManager.Dashboard/samples/Generated/Samples/Sample_DashboardPrivateEndpointConnectionCollection.cs
new file mode 100644
index 000000000000..7ce13ea9267b
--- /dev/null
+++ b/sdk/dashboard/Azure.ResourceManager.Dashboard/samples/Generated/Samples/Sample_DashboardPrivateEndpointConnectionCollection.cs
@@ -0,0 +1,203 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.Threading.Tasks;
+using Azure;
+using Azure.Core;
+using Azure.Identity;
+using Azure.ResourceManager;
+using Azure.ResourceManager.Dashboard;
+
+namespace Azure.ResourceManager.Dashboard.Samples
+{
+ public partial class Sample_DashboardPrivateEndpointConnectionCollection
+ {
+ // PrivateEndpointConnections_Get
+ [NUnit.Framework.Test]
+ [NUnit.Framework.Ignore("Only verifying that the sample builds")]
+ public async Task Get_PrivateEndpointConnectionsGet()
+ {
+ // Generated from example definition: specification/dashboard/resource-manager/Microsoft.Dashboard/stable/2023-09-01/examples/PrivateEndpointConnections_Get.json
+ // this example is just showing the usage of "PrivateEndpointConnections_Get" operation, for the dependent resources, they will have to be created separately.
+
+ // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this ManagedGrafanaResource created on azure
+ // for more information of creating ManagedGrafanaResource, please refer to the document of ManagedGrafanaResource
+ string subscriptionId = "00000000-0000-0000-0000-000000000000";
+ string resourceGroupName = "myResourceGroup";
+ string workspaceName = "myWorkspace";
+ ResourceIdentifier managedGrafanaResourceId = ManagedGrafanaResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName);
+ ManagedGrafanaResource managedGrafana = client.GetManagedGrafanaResource(managedGrafanaResourceId);
+
+ // get the collection of this DashboardPrivateEndpointConnectionResource
+ DashboardPrivateEndpointConnectionCollection collection = managedGrafana.GetDashboardPrivateEndpointConnections();
+
+ // invoke the operation
+ string privateEndpointConnectionName = "myConnection";
+ DashboardPrivateEndpointConnectionResource result = await collection.GetAsync(privateEndpointConnectionName);
+
+ // the variable result is a resource, you could call other operations on this instance as well
+ // but just for demo, we get its data from this resource instance
+ DashboardPrivateEndpointConnectionData resourceData = result.Data;
+ // for demo we just print out the id
+ Console.WriteLine($"Succeeded on id: {resourceData.Id}");
+ }
+
+ // PrivateEndpointConnections_Get
+ [NUnit.Framework.Test]
+ [NUnit.Framework.Ignore("Only verifying that the sample builds")]
+ public async Task Exists_PrivateEndpointConnectionsGet()
+ {
+ // Generated from example definition: specification/dashboard/resource-manager/Microsoft.Dashboard/stable/2023-09-01/examples/PrivateEndpointConnections_Get.json
+ // this example is just showing the usage of "PrivateEndpointConnections_Get" operation, for the dependent resources, they will have to be created separately.
+
+ // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this ManagedGrafanaResource created on azure
+ // for more information of creating ManagedGrafanaResource, please refer to the document of ManagedGrafanaResource
+ string subscriptionId = "00000000-0000-0000-0000-000000000000";
+ string resourceGroupName = "myResourceGroup";
+ string workspaceName = "myWorkspace";
+ ResourceIdentifier managedGrafanaResourceId = ManagedGrafanaResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName);
+ ManagedGrafanaResource managedGrafana = client.GetManagedGrafanaResource(managedGrafanaResourceId);
+
+ // get the collection of this DashboardPrivateEndpointConnectionResource
+ DashboardPrivateEndpointConnectionCollection collection = managedGrafana.GetDashboardPrivateEndpointConnections();
+
+ // invoke the operation
+ string privateEndpointConnectionName = "myConnection";
+ bool result = await collection.ExistsAsync(privateEndpointConnectionName);
+
+ Console.WriteLine($"Succeeded: {result}");
+ }
+
+ // PrivateEndpointConnections_Get
+ [NUnit.Framework.Test]
+ [NUnit.Framework.Ignore("Only verifying that the sample builds")]
+ public async Task GetIfExists_PrivateEndpointConnectionsGet()
+ {
+ // Generated from example definition: specification/dashboard/resource-manager/Microsoft.Dashboard/stable/2023-09-01/examples/PrivateEndpointConnections_Get.json
+ // this example is just showing the usage of "PrivateEndpointConnections_Get" operation, for the dependent resources, they will have to be created separately.
+
+ // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this ManagedGrafanaResource created on azure
+ // for more information of creating ManagedGrafanaResource, please refer to the document of ManagedGrafanaResource
+ string subscriptionId = "00000000-0000-0000-0000-000000000000";
+ string resourceGroupName = "myResourceGroup";
+ string workspaceName = "myWorkspace";
+ ResourceIdentifier managedGrafanaResourceId = ManagedGrafanaResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName);
+ ManagedGrafanaResource managedGrafana = client.GetManagedGrafanaResource(managedGrafanaResourceId);
+
+ // get the collection of this DashboardPrivateEndpointConnectionResource
+ DashboardPrivateEndpointConnectionCollection collection = managedGrafana.GetDashboardPrivateEndpointConnections();
+
+ // invoke the operation
+ string privateEndpointConnectionName = "myConnection";
+ NullableResponse response = await collection.GetIfExistsAsync(privateEndpointConnectionName);
+ DashboardPrivateEndpointConnectionResource result = response.HasValue ? response.Value : null;
+
+ if (result == null)
+ {
+ Console.WriteLine($"Succeeded with null as result");
+ }
+ else
+ {
+ // the variable result is a resource, you could call other operations on this instance as well
+ // but just for demo, we get its data from this resource instance
+ DashboardPrivateEndpointConnectionData resourceData = result.Data;
+ // for demo we just print out the id
+ Console.WriteLine($"Succeeded on id: {resourceData.Id}");
+ }
+ }
+
+ // PrivateEndpointConnections_Approve
+ [NUnit.Framework.Test]
+ [NUnit.Framework.Ignore("Only verifying that the sample builds")]
+ public async Task CreateOrUpdate_PrivateEndpointConnectionsApprove()
+ {
+ // Generated from example definition: specification/dashboard/resource-manager/Microsoft.Dashboard/stable/2023-09-01/examples/PrivateEndpointConnections_Approve.json
+ // this example is just showing the usage of "PrivateEndpointConnections_Approve" operation, for the dependent resources, they will have to be created separately.
+
+ // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this ManagedGrafanaResource created on azure
+ // for more information of creating ManagedGrafanaResource, please refer to the document of ManagedGrafanaResource
+ string subscriptionId = "00000000-0000-0000-0000-000000000000";
+ string resourceGroupName = "myResourceGroup";
+ string workspaceName = "myWorkspace";
+ ResourceIdentifier managedGrafanaResourceId = ManagedGrafanaResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName);
+ ManagedGrafanaResource managedGrafana = client.GetManagedGrafanaResource(managedGrafanaResourceId);
+
+ // get the collection of this DashboardPrivateEndpointConnectionResource
+ DashboardPrivateEndpointConnectionCollection collection = managedGrafana.GetDashboardPrivateEndpointConnections();
+
+ // invoke the operation
+ string privateEndpointConnectionName = "myConnection";
+ DashboardPrivateEndpointConnectionData data = new DashboardPrivateEndpointConnectionData();
+ ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, privateEndpointConnectionName, data);
+ DashboardPrivateEndpointConnectionResource result = lro.Value;
+
+ // the variable result is a resource, you could call other operations on this instance as well
+ // but just for demo, we get its data from this resource instance
+ DashboardPrivateEndpointConnectionData resourceData = result.Data;
+ // for demo we just print out the id
+ Console.WriteLine($"Succeeded on id: {resourceData.Id}");
+ }
+
+ // PrivateEndpointConnections_List
+ [NUnit.Framework.Test]
+ [NUnit.Framework.Ignore("Only verifying that the sample builds")]
+ public async Task GetAll_PrivateEndpointConnectionsList()
+ {
+ // Generated from example definition: specification/dashboard/resource-manager/Microsoft.Dashboard/stable/2023-09-01/examples/PrivateEndpointConnections_List.json
+ // this example is just showing the usage of "PrivateEndpointConnections_List" operation, for the dependent resources, they will have to be created separately.
+
+ // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this ManagedGrafanaResource created on azure
+ // for more information of creating ManagedGrafanaResource, please refer to the document of ManagedGrafanaResource
+ string subscriptionId = "00000000-0000-0000-0000-000000000000";
+ string resourceGroupName = "myResourceGroup";
+ string workspaceName = "myWorkspace";
+ ResourceIdentifier managedGrafanaResourceId = ManagedGrafanaResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName);
+ ManagedGrafanaResource managedGrafana = client.GetManagedGrafanaResource(managedGrafanaResourceId);
+
+ // get the collection of this DashboardPrivateEndpointConnectionResource
+ DashboardPrivateEndpointConnectionCollection collection = managedGrafana.GetDashboardPrivateEndpointConnections();
+
+ // invoke the operation and iterate over the result
+ await foreach (DashboardPrivateEndpointConnectionResource item in collection.GetAllAsync())
+ {
+ // the variable item is a resource, you could call other operations on this instance as well
+ // but just for demo, we get its data from this resource instance
+ DashboardPrivateEndpointConnectionData resourceData = item.Data;
+ // for demo we just print out the id
+ Console.WriteLine($"Succeeded on id: {resourceData.Id}");
+ }
+
+ Console.WriteLine($"Succeeded");
+ }
+ }
+}
diff --git a/sdk/dashboard/Azure.ResourceManager.Dashboard/samples/Generated/Samples/Sample_DashboardPrivateEndpointConnectionResource.cs b/sdk/dashboard/Azure.ResourceManager.Dashboard/samples/Generated/Samples/Sample_DashboardPrivateEndpointConnectionResource.cs
new file mode 100644
index 000000000000..c11caf1c2720
--- /dev/null
+++ b/sdk/dashboard/Azure.ResourceManager.Dashboard/samples/Generated/Samples/Sample_DashboardPrivateEndpointConnectionResource.cs
@@ -0,0 +1,114 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.Threading.Tasks;
+using Azure;
+using Azure.Core;
+using Azure.Identity;
+using Azure.ResourceManager;
+using Azure.ResourceManager.Dashboard;
+
+namespace Azure.ResourceManager.Dashboard.Samples
+{
+ public partial class Sample_DashboardPrivateEndpointConnectionResource
+ {
+ // PrivateEndpointConnections_Get
+ [NUnit.Framework.Test]
+ [NUnit.Framework.Ignore("Only verifying that the sample builds")]
+ public async Task Get_PrivateEndpointConnectionsGet()
+ {
+ // Generated from example definition: specification/dashboard/resource-manager/Microsoft.Dashboard/stable/2023-09-01/examples/PrivateEndpointConnections_Get.json
+ // this example is just showing the usage of "PrivateEndpointConnections_Get" operation, for the dependent resources, they will have to be created separately.
+
+ // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this DashboardPrivateEndpointConnectionResource created on azure
+ // for more information of creating DashboardPrivateEndpointConnectionResource, please refer to the document of DashboardPrivateEndpointConnectionResource
+ string subscriptionId = "00000000-0000-0000-0000-000000000000";
+ string resourceGroupName = "myResourceGroup";
+ string workspaceName = "myWorkspace";
+ string privateEndpointConnectionName = "myConnection";
+ ResourceIdentifier dashboardPrivateEndpointConnectionResourceId = DashboardPrivateEndpointConnectionResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, privateEndpointConnectionName);
+ DashboardPrivateEndpointConnectionResource dashboardPrivateEndpointConnection = client.GetDashboardPrivateEndpointConnectionResource(dashboardPrivateEndpointConnectionResourceId);
+
+ // invoke the operation
+ DashboardPrivateEndpointConnectionResource result = await dashboardPrivateEndpointConnection.GetAsync();
+
+ // the variable result is a resource, you could call other operations on this instance as well
+ // but just for demo, we get its data from this resource instance
+ DashboardPrivateEndpointConnectionData resourceData = result.Data;
+ // for demo we just print out the id
+ Console.WriteLine($"Succeeded on id: {resourceData.Id}");
+ }
+
+ // PrivateEndpointConnections_Approve
+ [NUnit.Framework.Test]
+ [NUnit.Framework.Ignore("Only verifying that the sample builds")]
+ public async Task Update_PrivateEndpointConnectionsApprove()
+ {
+ // Generated from example definition: specification/dashboard/resource-manager/Microsoft.Dashboard/stable/2023-09-01/examples/PrivateEndpointConnections_Approve.json
+ // this example is just showing the usage of "PrivateEndpointConnections_Approve" operation, for the dependent resources, they will have to be created separately.
+
+ // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this DashboardPrivateEndpointConnectionResource created on azure
+ // for more information of creating DashboardPrivateEndpointConnectionResource, please refer to the document of DashboardPrivateEndpointConnectionResource
+ string subscriptionId = "00000000-0000-0000-0000-000000000000";
+ string resourceGroupName = "myResourceGroup";
+ string workspaceName = "myWorkspace";
+ string privateEndpointConnectionName = "myConnection";
+ ResourceIdentifier dashboardPrivateEndpointConnectionResourceId = DashboardPrivateEndpointConnectionResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, privateEndpointConnectionName);
+ DashboardPrivateEndpointConnectionResource dashboardPrivateEndpointConnection = client.GetDashboardPrivateEndpointConnectionResource(dashboardPrivateEndpointConnectionResourceId);
+
+ // invoke the operation
+ DashboardPrivateEndpointConnectionData data = new DashboardPrivateEndpointConnectionData();
+ ArmOperation lro = await dashboardPrivateEndpointConnection.UpdateAsync(WaitUntil.Completed, data);
+ DashboardPrivateEndpointConnectionResource result = lro.Value;
+
+ // the variable result is a resource, you could call other operations on this instance as well
+ // but just for demo, we get its data from this resource instance
+ DashboardPrivateEndpointConnectionData resourceData = result.Data;
+ // for demo we just print out the id
+ Console.WriteLine($"Succeeded on id: {resourceData.Id}");
+ }
+
+ // PrivateEndpointConnections_Delete
+ [NUnit.Framework.Test]
+ [NUnit.Framework.Ignore("Only verifying that the sample builds")]
+ public async Task Delete_PrivateEndpointConnectionsDelete()
+ {
+ // Generated from example definition: specification/dashboard/resource-manager/Microsoft.Dashboard/stable/2023-09-01/examples/PrivateEndpointConnections_Delete.json
+ // this example is just showing the usage of "PrivateEndpointConnections_Delete" operation, for the dependent resources, they will have to be created separately.
+
+ // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this DashboardPrivateEndpointConnectionResource created on azure
+ // for more information of creating DashboardPrivateEndpointConnectionResource, please refer to the document of DashboardPrivateEndpointConnectionResource
+ string subscriptionId = "00000000-0000-0000-0000-000000000000";
+ string resourceGroupName = "myResourceGroup";
+ string workspaceName = "myWorkspace";
+ string privateEndpointConnectionName = "myConnection";
+ ResourceIdentifier dashboardPrivateEndpointConnectionResourceId = DashboardPrivateEndpointConnectionResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, privateEndpointConnectionName);
+ DashboardPrivateEndpointConnectionResource dashboardPrivateEndpointConnection = client.GetDashboardPrivateEndpointConnectionResource(dashboardPrivateEndpointConnectionResourceId);
+
+ // invoke the operation
+ await dashboardPrivateEndpointConnection.DeleteAsync(WaitUntil.Completed);
+
+ Console.WriteLine($"Succeeded");
+ }
+ }
+}
diff --git a/sdk/dashboard/Azure.ResourceManager.Dashboard/samples/Generated/Samples/Sample_DashboardPrivateLinkResource.cs b/sdk/dashboard/Azure.ResourceManager.Dashboard/samples/Generated/Samples/Sample_DashboardPrivateLinkResource.cs
new file mode 100644
index 000000000000..5a82fb2fa584
--- /dev/null
+++ b/sdk/dashboard/Azure.ResourceManager.Dashboard/samples/Generated/Samples/Sample_DashboardPrivateLinkResource.cs
@@ -0,0 +1,51 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.Threading.Tasks;
+using Azure.Core;
+using Azure.Identity;
+using Azure.ResourceManager;
+using Azure.ResourceManager.Dashboard;
+
+namespace Azure.ResourceManager.Dashboard.Samples
+{
+ public partial class Sample_DashboardPrivateLinkResource
+ {
+ // PrivateLinkResources_Get
+ [NUnit.Framework.Test]
+ [NUnit.Framework.Ignore("Only verifying that the sample builds")]
+ public async Task Get_PrivateLinkResourcesGet()
+ {
+ // Generated from example definition: specification/dashboard/resource-manager/Microsoft.Dashboard/stable/2023-09-01/examples/PrivateLinkResources_Get.json
+ // this example is just showing the usage of "PrivateLinkResources_Get" operation, for the dependent resources, they will have to be created separately.
+
+ // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this DashboardPrivateLinkResource created on azure
+ // for more information of creating DashboardPrivateLinkResource, please refer to the document of DashboardPrivateLinkResource
+ string subscriptionId = "00000000-0000-0000-0000-000000000000";
+ string resourceGroupName = "myResourceGroup";
+ string workspaceName = "myWorkspace";
+ string privateLinkResourceName = "grafana";
+ ResourceIdentifier dashboardPrivateLinkResourceId = DashboardPrivateLinkResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, privateLinkResourceName);
+ DashboardPrivateLinkResource dashboardPrivateLinkResource = client.GetDashboardPrivateLinkResource(dashboardPrivateLinkResourceId);
+
+ // invoke the operation
+ DashboardPrivateLinkResource result = await dashboardPrivateLinkResource.GetAsync();
+
+ // the variable result is a resource, you could call other operations on this instance as well
+ // but just for demo, we get its data from this resource instance
+ DashboardPrivateLinkResourceData resourceData = result.Data;
+ // for demo we just print out the id
+ Console.WriteLine($"Succeeded on id: {resourceData.Id}");
+ }
+ }
+}
diff --git a/sdk/dashboard/Azure.ResourceManager.Dashboard/samples/Generated/Samples/Sample_DashboardPrivateLinkResourceCollection.cs b/sdk/dashboard/Azure.ResourceManager.Dashboard/samples/Generated/Samples/Sample_DashboardPrivateLinkResourceCollection.cs
new file mode 100644
index 000000000000..40dac0671493
--- /dev/null
+++ b/sdk/dashboard/Azure.ResourceManager.Dashboard/samples/Generated/Samples/Sample_DashboardPrivateLinkResourceCollection.cs
@@ -0,0 +1,166 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.Threading.Tasks;
+using Azure;
+using Azure.Core;
+using Azure.Identity;
+using Azure.ResourceManager;
+using Azure.ResourceManager.Dashboard;
+
+namespace Azure.ResourceManager.Dashboard.Samples
+{
+ public partial class Sample_DashboardPrivateLinkResourceCollection
+ {
+ // PrivateLinkResources_List
+ [NUnit.Framework.Test]
+ [NUnit.Framework.Ignore("Only verifying that the sample builds")]
+ public async Task GetAll_PrivateLinkResourcesList()
+ {
+ // Generated from example definition: specification/dashboard/resource-manager/Microsoft.Dashboard/stable/2023-09-01/examples/PrivateLinkResources_List.json
+ // this example is just showing the usage of "PrivateLinkResources_List" operation, for the dependent resources, they will have to be created separately.
+
+ // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this ManagedGrafanaResource created on azure
+ // for more information of creating ManagedGrafanaResource, please refer to the document of ManagedGrafanaResource
+ string subscriptionId = "00000000-0000-0000-0000-000000000000";
+ string resourceGroupName = "myResourceGroup";
+ string workspaceName = "myWorkspace";
+ ResourceIdentifier managedGrafanaResourceId = ManagedGrafanaResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName);
+ ManagedGrafanaResource managedGrafana = client.GetManagedGrafanaResource(managedGrafanaResourceId);
+
+ // get the collection of this DashboardPrivateLinkResource
+ DashboardPrivateLinkResourceCollection collection = managedGrafana.GetDashboardPrivateLinkResources();
+
+ // invoke the operation and iterate over the result
+ await foreach (DashboardPrivateLinkResource item in collection.GetAllAsync())
+ {
+ // the variable item is a resource, you could call other operations on this instance as well
+ // but just for demo, we get its data from this resource instance
+ DashboardPrivateLinkResourceData resourceData = item.Data;
+ // for demo we just print out the id
+ Console.WriteLine($"Succeeded on id: {resourceData.Id}");
+ }
+
+ Console.WriteLine($"Succeeded");
+ }
+
+ // PrivateLinkResources_Get
+ [NUnit.Framework.Test]
+ [NUnit.Framework.Ignore("Only verifying that the sample builds")]
+ public async Task Get_PrivateLinkResourcesGet()
+ {
+ // Generated from example definition: specification/dashboard/resource-manager/Microsoft.Dashboard/stable/2023-09-01/examples/PrivateLinkResources_Get.json
+ // this example is just showing the usage of "PrivateLinkResources_Get" operation, for the dependent resources, they will have to be created separately.
+
+ // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this ManagedGrafanaResource created on azure
+ // for more information of creating ManagedGrafanaResource, please refer to the document of ManagedGrafanaResource
+ string subscriptionId = "00000000-0000-0000-0000-000000000000";
+ string resourceGroupName = "myResourceGroup";
+ string workspaceName = "myWorkspace";
+ ResourceIdentifier managedGrafanaResourceId = ManagedGrafanaResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName);
+ ManagedGrafanaResource managedGrafana = client.GetManagedGrafanaResource(managedGrafanaResourceId);
+
+ // get the collection of this DashboardPrivateLinkResource
+ DashboardPrivateLinkResourceCollection collection = managedGrafana.GetDashboardPrivateLinkResources();
+
+ // invoke the operation
+ string privateLinkResourceName = "grafana";
+ DashboardPrivateLinkResource result = await collection.GetAsync(privateLinkResourceName);
+
+ // the variable result is a resource, you could call other operations on this instance as well
+ // but just for demo, we get its data from this resource instance
+ DashboardPrivateLinkResourceData resourceData = result.Data;
+ // for demo we just print out the id
+ Console.WriteLine($"Succeeded on id: {resourceData.Id}");
+ }
+
+ // PrivateLinkResources_Get
+ [NUnit.Framework.Test]
+ [NUnit.Framework.Ignore("Only verifying that the sample builds")]
+ public async Task Exists_PrivateLinkResourcesGet()
+ {
+ // Generated from example definition: specification/dashboard/resource-manager/Microsoft.Dashboard/stable/2023-09-01/examples/PrivateLinkResources_Get.json
+ // this example is just showing the usage of "PrivateLinkResources_Get" operation, for the dependent resources, they will have to be created separately.
+
+ // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this ManagedGrafanaResource created on azure
+ // for more information of creating ManagedGrafanaResource, please refer to the document of ManagedGrafanaResource
+ string subscriptionId = "00000000-0000-0000-0000-000000000000";
+ string resourceGroupName = "myResourceGroup";
+ string workspaceName = "myWorkspace";
+ ResourceIdentifier managedGrafanaResourceId = ManagedGrafanaResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName);
+ ManagedGrafanaResource managedGrafana = client.GetManagedGrafanaResource(managedGrafanaResourceId);
+
+ // get the collection of this DashboardPrivateLinkResource
+ DashboardPrivateLinkResourceCollection collection = managedGrafana.GetDashboardPrivateLinkResources();
+
+ // invoke the operation
+ string privateLinkResourceName = "grafana";
+ bool result = await collection.ExistsAsync(privateLinkResourceName);
+
+ Console.WriteLine($"Succeeded: {result}");
+ }
+
+ // PrivateLinkResources_Get
+ [NUnit.Framework.Test]
+ [NUnit.Framework.Ignore("Only verifying that the sample builds")]
+ public async Task GetIfExists_PrivateLinkResourcesGet()
+ {
+ // Generated from example definition: specification/dashboard/resource-manager/Microsoft.Dashboard/stable/2023-09-01/examples/PrivateLinkResources_Get.json
+ // this example is just showing the usage of "PrivateLinkResources_Get" operation, for the dependent resources, they will have to be created separately.
+
+ // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this ManagedGrafanaResource created on azure
+ // for more information of creating ManagedGrafanaResource, please refer to the document of ManagedGrafanaResource
+ string subscriptionId = "00000000-0000-0000-0000-000000000000";
+ string resourceGroupName = "myResourceGroup";
+ string workspaceName = "myWorkspace";
+ ResourceIdentifier managedGrafanaResourceId = ManagedGrafanaResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName);
+ ManagedGrafanaResource managedGrafana = client.GetManagedGrafanaResource(managedGrafanaResourceId);
+
+ // get the collection of this DashboardPrivateLinkResource
+ DashboardPrivateLinkResourceCollection collection = managedGrafana.GetDashboardPrivateLinkResources();
+
+ // invoke the operation
+ string privateLinkResourceName = "grafana";
+ NullableResponse response = await collection.GetIfExistsAsync(privateLinkResourceName);
+ DashboardPrivateLinkResource result = response.HasValue ? response.Value : null;
+
+ if (result == null)
+ {
+ Console.WriteLine($"Succeeded with null as result");
+ }
+ else
+ {
+ // the variable result is a resource, you could call other operations on this instance as well
+ // but just for demo, we get its data from this resource instance
+ DashboardPrivateLinkResourceData resourceData = result.Data;
+ // for demo we just print out the id
+ Console.WriteLine($"Succeeded on id: {resourceData.Id}");
+ }
+ }
+ }
+}
diff --git a/sdk/dashboard/Azure.ResourceManager.Dashboard/samples/Generated/Samples/Sample_ManagedGrafanaCollection.cs b/sdk/dashboard/Azure.ResourceManager.Dashboard/samples/Generated/Samples/Sample_ManagedGrafanaCollection.cs
new file mode 100644
index 000000000000..38325adb1e4d
--- /dev/null
+++ b/sdk/dashboard/Azure.ResourceManager.Dashboard/samples/Generated/Samples/Sample_ManagedGrafanaCollection.cs
@@ -0,0 +1,244 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.Threading.Tasks;
+using Azure;
+using Azure.Core;
+using Azure.Identity;
+using Azure.ResourceManager;
+using Azure.ResourceManager.Dashboard;
+using Azure.ResourceManager.Dashboard.Models;
+using Azure.ResourceManager.Models;
+using Azure.ResourceManager.Resources;
+
+namespace Azure.ResourceManager.Dashboard.Samples
+{
+ public partial class Sample_ManagedGrafanaCollection
+ {
+ // Grafana_ListByResourceGroup
+ [NUnit.Framework.Test]
+ [NUnit.Framework.Ignore("Only verifying that the sample builds")]
+ public async Task GetAll_GrafanaListByResourceGroup()
+ {
+ // Generated from example definition: specification/dashboard/resource-manager/Microsoft.Dashboard/stable/2023-09-01/examples/Grafana_ListByResourceGroup.json
+ // this example is just showing the usage of "Grafana_ListByResourceGroup" operation, for the dependent resources, they will have to be created separately.
+
+ // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this ResourceGroupResource created on azure
+ // for more information of creating ResourceGroupResource, please refer to the document of ResourceGroupResource
+ string subscriptionId = "00000000-0000-0000-0000-000000000000";
+ string resourceGroupName = "myResourceGroup";
+ ResourceIdentifier resourceGroupResourceId = ResourceGroupResource.CreateResourceIdentifier(subscriptionId, resourceGroupName);
+ ResourceGroupResource resourceGroupResource = client.GetResourceGroupResource(resourceGroupResourceId);
+
+ // get the collection of this ManagedGrafanaResource
+ ManagedGrafanaCollection collection = resourceGroupResource.GetManagedGrafanas();
+
+ // invoke the operation and iterate over the result
+ await foreach (ManagedGrafanaResource item in collection.GetAllAsync())
+ {
+ // the variable item is a resource, you could call other operations on this instance as well
+ // but just for demo, we get its data from this resource instance
+ ManagedGrafanaData resourceData = item.Data;
+ // for demo we just print out the id
+ Console.WriteLine($"Succeeded on id: {resourceData.Id}");
+ }
+
+ Console.WriteLine($"Succeeded");
+ }
+
+ // Grafana_Get
+ [NUnit.Framework.Test]
+ [NUnit.Framework.Ignore("Only verifying that the sample builds")]
+ public async Task Get_GrafanaGet()
+ {
+ // Generated from example definition: specification/dashboard/resource-manager/Microsoft.Dashboard/stable/2023-09-01/examples/Grafana_Get.json
+ // this example is just showing the usage of "Grafana_Get" operation, for the dependent resources, they will have to be created separately.
+
+ // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this ResourceGroupResource created on azure
+ // for more information of creating ResourceGroupResource, please refer to the document of ResourceGroupResource
+ string subscriptionId = "00000000-0000-0000-0000-000000000000";
+ string resourceGroupName = "myResourceGroup";
+ ResourceIdentifier resourceGroupResourceId = ResourceGroupResource.CreateResourceIdentifier(subscriptionId, resourceGroupName);
+ ResourceGroupResource resourceGroupResource = client.GetResourceGroupResource(resourceGroupResourceId);
+
+ // get the collection of this ManagedGrafanaResource
+ ManagedGrafanaCollection collection = resourceGroupResource.GetManagedGrafanas();
+
+ // invoke the operation
+ string workspaceName = "myWorkspace";
+ ManagedGrafanaResource result = await collection.GetAsync(workspaceName);
+
+ // the variable result is a resource, you could call other operations on this instance as well
+ // but just for demo, we get its data from this resource instance
+ ManagedGrafanaData resourceData = result.Data;
+ // for demo we just print out the id
+ Console.WriteLine($"Succeeded on id: {resourceData.Id}");
+ }
+
+ // Grafana_Get
+ [NUnit.Framework.Test]
+ [NUnit.Framework.Ignore("Only verifying that the sample builds")]
+ public async Task Exists_GrafanaGet()
+ {
+ // Generated from example definition: specification/dashboard/resource-manager/Microsoft.Dashboard/stable/2023-09-01/examples/Grafana_Get.json
+ // this example is just showing the usage of "Grafana_Get" operation, for the dependent resources, they will have to be created separately.
+
+ // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this ResourceGroupResource created on azure
+ // for more information of creating ResourceGroupResource, please refer to the document of ResourceGroupResource
+ string subscriptionId = "00000000-0000-0000-0000-000000000000";
+ string resourceGroupName = "myResourceGroup";
+ ResourceIdentifier resourceGroupResourceId = ResourceGroupResource.CreateResourceIdentifier(subscriptionId, resourceGroupName);
+ ResourceGroupResource resourceGroupResource = client.GetResourceGroupResource(resourceGroupResourceId);
+
+ // get the collection of this ManagedGrafanaResource
+ ManagedGrafanaCollection collection = resourceGroupResource.GetManagedGrafanas();
+
+ // invoke the operation
+ string workspaceName = "myWorkspace";
+ bool result = await collection.ExistsAsync(workspaceName);
+
+ Console.WriteLine($"Succeeded: {result}");
+ }
+
+ // Grafana_Get
+ [NUnit.Framework.Test]
+ [NUnit.Framework.Ignore("Only verifying that the sample builds")]
+ public async Task GetIfExists_GrafanaGet()
+ {
+ // Generated from example definition: specification/dashboard/resource-manager/Microsoft.Dashboard/stable/2023-09-01/examples/Grafana_Get.json
+ // this example is just showing the usage of "Grafana_Get" operation, for the dependent resources, they will have to be created separately.
+
+ // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this ResourceGroupResource created on azure
+ // for more information of creating ResourceGroupResource, please refer to the document of ResourceGroupResource
+ string subscriptionId = "00000000-0000-0000-0000-000000000000";
+ string resourceGroupName = "myResourceGroup";
+ ResourceIdentifier resourceGroupResourceId = ResourceGroupResource.CreateResourceIdentifier(subscriptionId, resourceGroupName);
+ ResourceGroupResource resourceGroupResource = client.GetResourceGroupResource(resourceGroupResourceId);
+
+ // get the collection of this ManagedGrafanaResource
+ ManagedGrafanaCollection collection = resourceGroupResource.GetManagedGrafanas();
+
+ // invoke the operation
+ string workspaceName = "myWorkspace";
+ NullableResponse response = await collection.GetIfExistsAsync(workspaceName);
+ ManagedGrafanaResource result = response.HasValue ? response.Value : null;
+
+ if (result == null)
+ {
+ Console.WriteLine($"Succeeded with null as result");
+ }
+ else
+ {
+ // the variable result is a resource, you could call other operations on this instance as well
+ // but just for demo, we get its data from this resource instance
+ ManagedGrafanaData resourceData = result.Data;
+ // for demo we just print out the id
+ Console.WriteLine($"Succeeded on id: {resourceData.Id}");
+ }
+ }
+
+ // Grafana_Create
+ [NUnit.Framework.Test]
+ [NUnit.Framework.Ignore("Only verifying that the sample builds")]
+ public async Task CreateOrUpdate_GrafanaCreate()
+ {
+ // Generated from example definition: specification/dashboard/resource-manager/Microsoft.Dashboard/stable/2023-09-01/examples/Grafana_Create.json
+ // this example is just showing the usage of "Grafana_Create" operation, for the dependent resources, they will have to be created separately.
+
+ // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this ResourceGroupResource created on azure
+ // for more information of creating ResourceGroupResource, please refer to the document of ResourceGroupResource
+ string subscriptionId = "00000000-0000-0000-0000-000000000000";
+ string resourceGroupName = "myResourceGroup";
+ ResourceIdentifier resourceGroupResourceId = ResourceGroupResource.CreateResourceIdentifier(subscriptionId, resourceGroupName);
+ ResourceGroupResource resourceGroupResource = client.GetResourceGroupResource(resourceGroupResourceId);
+
+ // get the collection of this ManagedGrafanaResource
+ ManagedGrafanaCollection collection = resourceGroupResource.GetManagedGrafanas();
+
+ // invoke the operation
+ string workspaceName = "myWorkspace";
+ ManagedGrafanaData data = new ManagedGrafanaData(new AzureLocation("West US"))
+ {
+ SkuName = "Standard",
+ Properties = new ManagedGrafanaProperties()
+ {
+ PublicNetworkAccess = PublicNetworkAccess.Enabled,
+ ZoneRedundancy = ZoneRedundancy.Enabled,
+ ApiKey = ApiKey.Enabled,
+ DeterministicOutboundIP = DeterministicOutboundIP.Enabled,
+ AzureMonitorWorkspaceIntegrations =
+{
+new AzureMonitorWorkspaceIntegration()
+{
+AzureMonitorWorkspaceResourceId = "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/myResourceGroup/providers/microsoft.monitor/accounts/myAzureMonitorWorkspace",
+}
+},
+ EnterpriseConfigurations = new EnterpriseConfigurations()
+ {
+ MarketplacePlanId = "myPlanId",
+ MarketplaceAutoRenew = MarketplaceAutoRenew.Enabled,
+ },
+ GrafanaConfigurationsSmtp = new Smtp()
+ {
+ Enabled = true,
+ Host = "smtp.sendemail.com:587",
+ User = "username",
+ Password = "",
+ FromAddress = "test@sendemail.com",
+ FromName = "emailsender",
+ StartTLSPolicy = StartTLSPolicy.OpportunisticStartTLS,
+ SkipVerify = true,
+ },
+ GrafanaPlugins =
+{
+["sample-plugin-id"] = new GrafanaPlugin(),
+},
+ GrafanaMajorVersion = "9",
+ },
+ Identity = new ManagedServiceIdentity("SystemAssigned"),
+ Tags =
+{
+["Environment"] = "Dev",
+},
+ };
+ ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, workspaceName, data);
+ ManagedGrafanaResource result = lro.Value;
+
+ // the variable result is a resource, you could call other operations on this instance as well
+ // but just for demo, we get its data from this resource instance
+ ManagedGrafanaData resourceData = result.Data;
+ // for demo we just print out the id
+ Console.WriteLine($"Succeeded on id: {resourceData.Id}");
+ }
+ }
+}
diff --git a/sdk/dashboard/Azure.ResourceManager.Dashboard/samples/Generated/Samples/Sample_ManagedGrafanaResource.cs b/sdk/dashboard/Azure.ResourceManager.Dashboard/samples/Generated/Samples/Sample_ManagedGrafanaResource.cs
new file mode 100644
index 000000000000..bc365b7ae368
--- /dev/null
+++ b/sdk/dashboard/Azure.ResourceManager.Dashboard/samples/Generated/Samples/Sample_ManagedGrafanaResource.cs
@@ -0,0 +1,268 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.Threading.Tasks;
+using Azure;
+using Azure.Core;
+using Azure.Identity;
+using Azure.ResourceManager;
+using Azure.ResourceManager.Dashboard;
+using Azure.ResourceManager.Dashboard.Models;
+using Azure.ResourceManager.Resources;
+
+namespace Azure.ResourceManager.Dashboard.Samples
+{
+ public partial class Sample_ManagedGrafanaResource
+ {
+ // Grafana_List
+ [NUnit.Framework.Test]
+ [NUnit.Framework.Ignore("Only verifying that the sample builds")]
+ public async Task GetManagedGrafanas_GrafanaList()
+ {
+ // Generated from example definition: specification/dashboard/resource-manager/Microsoft.Dashboard/stable/2023-09-01/examples/Grafana_List.json
+ // this example is just showing the usage of "Grafana_List" operation, for the dependent resources, they will have to be created separately.
+
+ // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this SubscriptionResource created on azure
+ // for more information of creating SubscriptionResource, please refer to the document of SubscriptionResource
+ string subscriptionId = "00000000-0000-0000-0000-000000000000";
+ ResourceIdentifier subscriptionResourceId = SubscriptionResource.CreateResourceIdentifier(subscriptionId);
+ SubscriptionResource subscriptionResource = client.GetSubscriptionResource(subscriptionResourceId);
+
+ // invoke the operation and iterate over the result
+ await foreach (ManagedGrafanaResource item in subscriptionResource.GetManagedGrafanasAsync())
+ {
+ // the variable item is a resource, you could call other operations on this instance as well
+ // but just for demo, we get its data from this resource instance
+ ManagedGrafanaData resourceData = item.Data;
+ // for demo we just print out the id
+ Console.WriteLine($"Succeeded on id: {resourceData.Id}");
+ }
+
+ Console.WriteLine($"Succeeded");
+ }
+
+ // Grafana_Get
+ [NUnit.Framework.Test]
+ [NUnit.Framework.Ignore("Only verifying that the sample builds")]
+ public async Task Get_GrafanaGet()
+ {
+ // Generated from example definition: specification/dashboard/resource-manager/Microsoft.Dashboard/stable/2023-09-01/examples/Grafana_Get.json
+ // this example is just showing the usage of "Grafana_Get" operation, for the dependent resources, they will have to be created separately.
+
+ // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this ManagedGrafanaResource created on azure
+ // for more information of creating ManagedGrafanaResource, please refer to the document of ManagedGrafanaResource
+ string subscriptionId = "00000000-0000-0000-0000-000000000000";
+ string resourceGroupName = "myResourceGroup";
+ string workspaceName = "myWorkspace";
+ ResourceIdentifier managedGrafanaResourceId = ManagedGrafanaResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName);
+ ManagedGrafanaResource managedGrafana = client.GetManagedGrafanaResource(managedGrafanaResourceId);
+
+ // invoke the operation
+ ManagedGrafanaResource result = await managedGrafana.GetAsync();
+
+ // the variable result is a resource, you could call other operations on this instance as well
+ // but just for demo, we get its data from this resource instance
+ ManagedGrafanaData resourceData = result.Data;
+ // for demo we just print out the id
+ Console.WriteLine($"Succeeded on id: {resourceData.Id}");
+ }
+
+ // Grafana_Update
+ [NUnit.Framework.Test]
+ [NUnit.Framework.Ignore("Only verifying that the sample builds")]
+ public async Task Update_GrafanaUpdate()
+ {
+ // Generated from example definition: specification/dashboard/resource-manager/Microsoft.Dashboard/stable/2023-09-01/examples/Grafana_Update.json
+ // this example is just showing the usage of "Grafana_Update" operation, for the dependent resources, they will have to be created separately.
+
+ // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this ManagedGrafanaResource created on azure
+ // for more information of creating ManagedGrafanaResource, please refer to the document of ManagedGrafanaResource
+ string subscriptionId = "00000000-0000-0000-0000-000000000000";
+ string resourceGroupName = "myResourceGroup";
+ string workspaceName = "myWorkspace";
+ ResourceIdentifier managedGrafanaResourceId = ManagedGrafanaResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName);
+ ManagedGrafanaResource managedGrafana = client.GetManagedGrafanaResource(managedGrafanaResourceId);
+
+ // invoke the operation
+ ManagedGrafanaPatch patch = new ManagedGrafanaPatch()
+ {
+ SkuName = "Standard",
+ Tags =
+{
+["Environment"] = "Dev 2",
+},
+ Properties = new ManagedGrafanaPropertiesUpdateParameters()
+ {
+ ApiKey = ApiKey.Enabled,
+ DeterministicOutboundIP = DeterministicOutboundIP.Enabled,
+ AzureMonitorWorkspaceIntegrations =
+{
+new AzureMonitorWorkspaceIntegration()
+{
+AzureMonitorWorkspaceResourceId = "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/myResourceGroup/providers/microsoft.monitor/accounts/myAzureMonitorWorkspace",
+}
+},
+ EnterpriseConfigurations = new EnterpriseConfigurations()
+ {
+ MarketplacePlanId = "myPlanId",
+ MarketplaceAutoRenew = MarketplaceAutoRenew.Enabled,
+ },
+ GrafanaConfigurationsSmtp = new Smtp()
+ {
+ Enabled = true,
+ Host = "smtp.sendemail.com:587",
+ User = "username",
+ Password = "",
+ FromAddress = "test@sendemail.com",
+ FromName = "emailsender",
+ StartTLSPolicy = StartTLSPolicy.OpportunisticStartTLS,
+ SkipVerify = true,
+ },
+ GrafanaPlugins =
+{
+["sample-plugin-id"] = new GrafanaPlugin(),
+},
+ GrafanaMajorVersion = "9",
+ },
+ };
+ ManagedGrafanaResource result = await managedGrafana.UpdateAsync(patch);
+
+ // the variable result is a resource, you could call other operations on this instance as well
+ // but just for demo, we get its data from this resource instance
+ ManagedGrafanaData resourceData = result.Data;
+ // for demo we just print out the id
+ Console.WriteLine($"Succeeded on id: {resourceData.Id}");
+ }
+
+ // Grafana_Delete
+ [NUnit.Framework.Test]
+ [NUnit.Framework.Ignore("Only verifying that the sample builds")]
+ public async Task Delete_GrafanaDelete()
+ {
+ // Generated from example definition: specification/dashboard/resource-manager/Microsoft.Dashboard/stable/2023-09-01/examples/Grafana_Delete.json
+ // this example is just showing the usage of "Grafana_Delete" operation, for the dependent resources, they will have to be created separately.
+
+ // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this ManagedGrafanaResource created on azure
+ // for more information of creating ManagedGrafanaResource, please refer to the document of ManagedGrafanaResource
+ string subscriptionId = "00000000-0000-0000-0000-000000000000";
+ string resourceGroupName = "myResourceGroup";
+ string workspaceName = "myWorkspace";
+ ResourceIdentifier managedGrafanaResourceId = ManagedGrafanaResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName);
+ ManagedGrafanaResource managedGrafana = client.GetManagedGrafanaResource(managedGrafanaResourceId);
+
+ // invoke the operation
+ await managedGrafana.DeleteAsync(WaitUntil.Completed);
+
+ Console.WriteLine($"Succeeded");
+ }
+
+ // EnterpriseDetails_Post
+ [NUnit.Framework.Test]
+ [NUnit.Framework.Ignore("Only verifying that the sample builds")]
+ public async Task CheckEnterpriseDetails_EnterpriseDetailsPost()
+ {
+ // Generated from example definition: specification/dashboard/resource-manager/Microsoft.Dashboard/stable/2023-09-01/examples/EnterpriseDetails_Post.json
+ // this example is just showing the usage of "Grafana_CheckEnterpriseDetails" operation, for the dependent resources, they will have to be created separately.
+
+ // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this ManagedGrafanaResource created on azure
+ // for more information of creating ManagedGrafanaResource, please refer to the document of ManagedGrafanaResource
+ string subscriptionId = "00000000-0000-0000-0000-000000000000";
+ string resourceGroupName = "myResourceGroup";
+ string workspaceName = "myWorkspace";
+ ResourceIdentifier managedGrafanaResourceId = ManagedGrafanaResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName);
+ ManagedGrafanaResource managedGrafana = client.GetManagedGrafanaResource(managedGrafanaResourceId);
+
+ // invoke the operation
+ EnterpriseDetails result = await managedGrafana.CheckEnterpriseDetailsAsync();
+
+ Console.WriteLine($"Succeeded: {result}");
+ }
+
+ // Grafana_FetchAvailablePlugins
+ [NUnit.Framework.Test]
+ [NUnit.Framework.Ignore("Only verifying that the sample builds")]
+ public async Task FetchAvailablePlugins_GrafanaFetchAvailablePlugins()
+ {
+ // Generated from example definition: specification/dashboard/resource-manager/Microsoft.Dashboard/stable/2023-09-01/examples/Grafana_FetchAvailablePlugins.json
+ // this example is just showing the usage of "Grafana_FetchAvailablePlugins" operation, for the dependent resources, they will have to be created separately.
+
+ // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this ManagedGrafanaResource created on azure
+ // for more information of creating ManagedGrafanaResource, please refer to the document of ManagedGrafanaResource
+ string subscriptionId = "00000000-0000-0000-0000-000000000000";
+ string resourceGroupName = "myResourceGroup";
+ string workspaceName = "myWorkspace";
+ ResourceIdentifier managedGrafanaResourceId = ManagedGrafanaResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName);
+ ManagedGrafanaResource managedGrafana = client.GetManagedGrafanaResource(managedGrafanaResourceId);
+
+ // invoke the operation and iterate over the result
+ await foreach (GrafanaAvailablePlugin item in managedGrafana.FetchAvailablePluginsAsync())
+ {
+ Console.WriteLine($"Succeeded: {item}");
+ }
+
+ Console.WriteLine($"Succeeded");
+ }
+
+ // ManagedPrivateEndpoint_Refresh
+ [NUnit.Framework.Test]
+ [NUnit.Framework.Ignore("Only verifying that the sample builds")]
+ public async Task RefreshManagedPrivateEndpoint_ManagedPrivateEndpointRefresh()
+ {
+ // Generated from example definition: specification/dashboard/resource-manager/Microsoft.Dashboard/stable/2023-09-01/examples/ManagedPrivateEndpoints_Refresh.json
+ // this example is just showing the usage of "ManagedPrivateEndpoints_Refresh" operation, for the dependent resources, they will have to be created separately.
+
+ // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this ManagedGrafanaResource created on azure
+ // for more information of creating ManagedGrafanaResource, please refer to the document of ManagedGrafanaResource
+ string subscriptionId = "00000000-0000-0000-0000-000000000000";
+ string resourceGroupName = "myResourceGroup";
+ string workspaceName = "myWorkspace";
+ ResourceIdentifier managedGrafanaResourceId = ManagedGrafanaResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName);
+ ManagedGrafanaResource managedGrafana = client.GetManagedGrafanaResource(managedGrafanaResourceId);
+
+ // invoke the operation
+ await managedGrafana.RefreshManagedPrivateEndpointAsync(WaitUntil.Completed);
+
+ Console.WriteLine($"Succeeded");
+ }
+ }
+}
diff --git a/sdk/dashboard/Azure.ResourceManager.Dashboard/samples/Generated/Samples/Sample_ManagedPrivateEndpointModelCollection.cs b/sdk/dashboard/Azure.ResourceManager.Dashboard/samples/Generated/Samples/Sample_ManagedPrivateEndpointModelCollection.cs
new file mode 100644
index 000000000000..23717a7b087f
--- /dev/null
+++ b/sdk/dashboard/Azure.ResourceManager.Dashboard/samples/Generated/Samples/Sample_ManagedPrivateEndpointModelCollection.cs
@@ -0,0 +1,213 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.Threading.Tasks;
+using Azure;
+using Azure.Core;
+using Azure.Identity;
+using Azure.ResourceManager;
+using Azure.ResourceManager.Dashboard;
+
+namespace Azure.ResourceManager.Dashboard.Samples
+{
+ public partial class Sample_ManagedPrivateEndpointModelCollection
+ {
+ // ManagedPrivateEndpoint_List
+ [NUnit.Framework.Test]
+ [NUnit.Framework.Ignore("Only verifying that the sample builds")]
+ public async Task GetAll_ManagedPrivateEndpointList()
+ {
+ // Generated from example definition: specification/dashboard/resource-manager/Microsoft.Dashboard/stable/2023-09-01/examples/ManagedPrivateEndpoints_List.json
+ // this example is just showing the usage of "ManagedPrivateEndpoints_List" operation, for the dependent resources, they will have to be created separately.
+
+ // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this ManagedGrafanaResource created on azure
+ // for more information of creating ManagedGrafanaResource, please refer to the document of ManagedGrafanaResource
+ string subscriptionId = "00000000-0000-0000-0000-000000000000";
+ string resourceGroupName = "myResourceGroup";
+ string workspaceName = "myWorkspace";
+ ResourceIdentifier managedGrafanaResourceId = ManagedGrafanaResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName);
+ ManagedGrafanaResource managedGrafana = client.GetManagedGrafanaResource(managedGrafanaResourceId);
+
+ // get the collection of this ManagedPrivateEndpointModelResource
+ ManagedPrivateEndpointModelCollection collection = managedGrafana.GetManagedPrivateEndpointModels();
+
+ // invoke the operation and iterate over the result
+ await foreach (ManagedPrivateEndpointModelResource item in collection.GetAllAsync())
+ {
+ // the variable item is a resource, you could call other operations on this instance as well
+ // but just for demo, we get its data from this resource instance
+ ManagedPrivateEndpointModelData resourceData = item.Data;
+ // for demo we just print out the id
+ Console.WriteLine($"Succeeded on id: {resourceData.Id}");
+ }
+
+ Console.WriteLine($"Succeeded");
+ }
+
+ // ManagedPrivateEndpoint_Get
+ [NUnit.Framework.Test]
+ [NUnit.Framework.Ignore("Only verifying that the sample builds")]
+ public async Task Get_ManagedPrivateEndpointGet()
+ {
+ // Generated from example definition: specification/dashboard/resource-manager/Microsoft.Dashboard/stable/2023-09-01/examples/ManagedPrivateEndpoints_Get.json
+ // this example is just showing the usage of "ManagedPrivateEndpoints_Get" operation, for the dependent resources, they will have to be created separately.
+
+ // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this ManagedGrafanaResource created on azure
+ // for more information of creating ManagedGrafanaResource, please refer to the document of ManagedGrafanaResource
+ string subscriptionId = "00000000-0000-0000-0000-000000000000";
+ string resourceGroupName = "myResourceGroup";
+ string workspaceName = "myWorkspace";
+ ResourceIdentifier managedGrafanaResourceId = ManagedGrafanaResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName);
+ ManagedGrafanaResource managedGrafana = client.GetManagedGrafanaResource(managedGrafanaResourceId);
+
+ // get the collection of this ManagedPrivateEndpointModelResource
+ ManagedPrivateEndpointModelCollection collection = managedGrafana.GetManagedPrivateEndpointModels();
+
+ // invoke the operation
+ string managedPrivateEndpointName = "myMPEName";
+ ManagedPrivateEndpointModelResource result = await collection.GetAsync(managedPrivateEndpointName);
+
+ // the variable result is a resource, you could call other operations on this instance as well
+ // but just for demo, we get its data from this resource instance
+ ManagedPrivateEndpointModelData resourceData = result.Data;
+ // for demo we just print out the id
+ Console.WriteLine($"Succeeded on id: {resourceData.Id}");
+ }
+
+ // ManagedPrivateEndpoint_Get
+ [NUnit.Framework.Test]
+ [NUnit.Framework.Ignore("Only verifying that the sample builds")]
+ public async Task Exists_ManagedPrivateEndpointGet()
+ {
+ // Generated from example definition: specification/dashboard/resource-manager/Microsoft.Dashboard/stable/2023-09-01/examples/ManagedPrivateEndpoints_Get.json
+ // this example is just showing the usage of "ManagedPrivateEndpoints_Get" operation, for the dependent resources, they will have to be created separately.
+
+ // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this ManagedGrafanaResource created on azure
+ // for more information of creating ManagedGrafanaResource, please refer to the document of ManagedGrafanaResource
+ string subscriptionId = "00000000-0000-0000-0000-000000000000";
+ string resourceGroupName = "myResourceGroup";
+ string workspaceName = "myWorkspace";
+ ResourceIdentifier managedGrafanaResourceId = ManagedGrafanaResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName);
+ ManagedGrafanaResource managedGrafana = client.GetManagedGrafanaResource(managedGrafanaResourceId);
+
+ // get the collection of this ManagedPrivateEndpointModelResource
+ ManagedPrivateEndpointModelCollection collection = managedGrafana.GetManagedPrivateEndpointModels();
+
+ // invoke the operation
+ string managedPrivateEndpointName = "myMPEName";
+ bool result = await collection.ExistsAsync(managedPrivateEndpointName);
+
+ Console.WriteLine($"Succeeded: {result}");
+ }
+
+ // ManagedPrivateEndpoint_Get
+ [NUnit.Framework.Test]
+ [NUnit.Framework.Ignore("Only verifying that the sample builds")]
+ public async Task GetIfExists_ManagedPrivateEndpointGet()
+ {
+ // Generated from example definition: specification/dashboard/resource-manager/Microsoft.Dashboard/stable/2023-09-01/examples/ManagedPrivateEndpoints_Get.json
+ // this example is just showing the usage of "ManagedPrivateEndpoints_Get" operation, for the dependent resources, they will have to be created separately.
+
+ // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this ManagedGrafanaResource created on azure
+ // for more information of creating ManagedGrafanaResource, please refer to the document of ManagedGrafanaResource
+ string subscriptionId = "00000000-0000-0000-0000-000000000000";
+ string resourceGroupName = "myResourceGroup";
+ string workspaceName = "myWorkspace";
+ ResourceIdentifier managedGrafanaResourceId = ManagedGrafanaResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName);
+ ManagedGrafanaResource managedGrafana = client.GetManagedGrafanaResource(managedGrafanaResourceId);
+
+ // get the collection of this ManagedPrivateEndpointModelResource
+ ManagedPrivateEndpointModelCollection collection = managedGrafana.GetManagedPrivateEndpointModels();
+
+ // invoke the operation
+ string managedPrivateEndpointName = "myMPEName";
+ NullableResponse response = await collection.GetIfExistsAsync(managedPrivateEndpointName);
+ ManagedPrivateEndpointModelResource result = response.HasValue ? response.Value : null;
+
+ if (result == null)
+ {
+ Console.WriteLine($"Succeeded with null as result");
+ }
+ else
+ {
+ // the variable result is a resource, you could call other operations on this instance as well
+ // but just for demo, we get its data from this resource instance
+ ManagedPrivateEndpointModelData resourceData = result.Data;
+ // for demo we just print out the id
+ Console.WriteLine($"Succeeded on id: {resourceData.Id}");
+ }
+ }
+
+ // ManagedPrivateEndpoint_Create
+ [NUnit.Framework.Test]
+ [NUnit.Framework.Ignore("Only verifying that the sample builds")]
+ public async Task CreateOrUpdate_ManagedPrivateEndpointCreate()
+ {
+ // Generated from example definition: specification/dashboard/resource-manager/Microsoft.Dashboard/stable/2023-09-01/examples/ManagedPrivateEndpoints_Create.json
+ // this example is just showing the usage of "ManagedPrivateEndpoints_Create" operation, for the dependent resources, they will have to be created separately.
+
+ // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this ManagedGrafanaResource created on azure
+ // for more information of creating ManagedGrafanaResource, please refer to the document of ManagedGrafanaResource
+ string subscriptionId = "00000000-0000-0000-0000-000000000000";
+ string resourceGroupName = "myResourceGroup";
+ string workspaceName = "myWorkspace";
+ ResourceIdentifier managedGrafanaResourceId = ManagedGrafanaResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName);
+ ManagedGrafanaResource managedGrafana = client.GetManagedGrafanaResource(managedGrafanaResourceId);
+
+ // get the collection of this ManagedPrivateEndpointModelResource
+ ManagedPrivateEndpointModelCollection collection = managedGrafana.GetManagedPrivateEndpointModels();
+
+ // invoke the operation
+ string managedPrivateEndpointName = "myMPEName";
+ ManagedPrivateEndpointModelData data = new ManagedPrivateEndpointModelData(new AzureLocation("West US"))
+ {
+ PrivateLinkResourceId = "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-000000000000/resourceGroups/xx-rg/providers/Microsoft.Kusto/Clusters/sampleKustoResource",
+ PrivateLinkResourceRegion = "West US",
+ GroupIds =
+{
+"grafana"
+},
+ RequestMessage = "Example Request Message",
+ PrivateLinkServiceUri = new Uri("my-self-hosted-influxdb.westus.mydomain.com"),
+ };
+ ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, managedPrivateEndpointName, data);
+ ManagedPrivateEndpointModelResource result = lro.Value;
+
+ // the variable result is a resource, you could call other operations on this instance as well
+ // but just for demo, we get its data from this resource instance
+ ManagedPrivateEndpointModelData resourceData = result.Data;
+ // for demo we just print out the id
+ Console.WriteLine($"Succeeded on id: {resourceData.Id}");
+ }
+ }
+}
diff --git a/sdk/dashboard/Azure.ResourceManager.Dashboard/samples/Generated/Samples/Sample_ManagedPrivateEndpointModelResource.cs b/sdk/dashboard/Azure.ResourceManager.Dashboard/samples/Generated/Samples/Sample_ManagedPrivateEndpointModelResource.cs
new file mode 100644
index 000000000000..e9383090171c
--- /dev/null
+++ b/sdk/dashboard/Azure.ResourceManager.Dashboard/samples/Generated/Samples/Sample_ManagedPrivateEndpointModelResource.cs
@@ -0,0 +1,121 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.Threading.Tasks;
+using Azure;
+using Azure.Core;
+using Azure.Identity;
+using Azure.ResourceManager;
+using Azure.ResourceManager.Dashboard;
+using Azure.ResourceManager.Dashboard.Models;
+
+namespace Azure.ResourceManager.Dashboard.Samples
+{
+ public partial class Sample_ManagedPrivateEndpointModelResource
+ {
+ // ManagedPrivateEndpoint_Get
+ [NUnit.Framework.Test]
+ [NUnit.Framework.Ignore("Only verifying that the sample builds")]
+ public async Task Get_ManagedPrivateEndpointGet()
+ {
+ // Generated from example definition: specification/dashboard/resource-manager/Microsoft.Dashboard/stable/2023-09-01/examples/ManagedPrivateEndpoints_Get.json
+ // this example is just showing the usage of "ManagedPrivateEndpoints_Get" operation, for the dependent resources, they will have to be created separately.
+
+ // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this ManagedPrivateEndpointModelResource created on azure
+ // for more information of creating ManagedPrivateEndpointModelResource, please refer to the document of ManagedPrivateEndpointModelResource
+ string subscriptionId = "00000000-0000-0000-0000-000000000000";
+ string resourceGroupName = "myResourceGroup";
+ string workspaceName = "myWorkspace";
+ string managedPrivateEndpointName = "myMPEName";
+ ResourceIdentifier managedPrivateEndpointModelResourceId = ManagedPrivateEndpointModelResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, managedPrivateEndpointName);
+ ManagedPrivateEndpointModelResource managedPrivateEndpointModel = client.GetManagedPrivateEndpointModelResource(managedPrivateEndpointModelResourceId);
+
+ // invoke the operation
+ ManagedPrivateEndpointModelResource result = await managedPrivateEndpointModel.GetAsync();
+
+ // the variable result is a resource, you could call other operations on this instance as well
+ // but just for demo, we get its data from this resource instance
+ ManagedPrivateEndpointModelData resourceData = result.Data;
+ // for demo we just print out the id
+ Console.WriteLine($"Succeeded on id: {resourceData.Id}");
+ }
+
+ // ManagedPrivateEndpoints_Patch
+ [NUnit.Framework.Test]
+ [NUnit.Framework.Ignore("Only verifying that the sample builds")]
+ public async Task Update_ManagedPrivateEndpointsPatch()
+ {
+ // Generated from example definition: specification/dashboard/resource-manager/Microsoft.Dashboard/stable/2023-09-01/examples/ManagedPrivateEndpoints_Patch.json
+ // this example is just showing the usage of "ManagedPrivateEndpoints_Update" operation, for the dependent resources, they will have to be created separately.
+
+ // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this ManagedPrivateEndpointModelResource created on azure
+ // for more information of creating ManagedPrivateEndpointModelResource, please refer to the document of ManagedPrivateEndpointModelResource
+ string subscriptionId = "00000000-0000-0000-0000-000000000000";
+ string resourceGroupName = "myResourceGroup";
+ string workspaceName = "myWorkspace";
+ string managedPrivateEndpointName = "myMPEName";
+ ResourceIdentifier managedPrivateEndpointModelResourceId = ManagedPrivateEndpointModelResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, managedPrivateEndpointName);
+ ManagedPrivateEndpointModelResource managedPrivateEndpointModel = client.GetManagedPrivateEndpointModelResource(managedPrivateEndpointModelResourceId);
+
+ // invoke the operation
+ ManagedPrivateEndpointModelPatch patch = new ManagedPrivateEndpointModelPatch()
+ {
+ Tags =
+{
+["Environment"] = "Dev 2",
+},
+ };
+ ArmOperation lro = await managedPrivateEndpointModel.UpdateAsync(WaitUntil.Completed, patch);
+ ManagedPrivateEndpointModelResource result = lro.Value;
+
+ // the variable result is a resource, you could call other operations on this instance as well
+ // but just for demo, we get its data from this resource instance
+ ManagedPrivateEndpointModelData resourceData = result.Data;
+ // for demo we just print out the id
+ Console.WriteLine($"Succeeded on id: {resourceData.Id}");
+ }
+
+ // ManagedPrivateEndpoint_Delete
+ [NUnit.Framework.Test]
+ [NUnit.Framework.Ignore("Only verifying that the sample builds")]
+ public async Task Delete_ManagedPrivateEndpointDelete()
+ {
+ // Generated from example definition: specification/dashboard/resource-manager/Microsoft.Dashboard/stable/2023-09-01/examples/ManagedPrivateEndpoints_Delete.json
+ // this example is just showing the usage of "ManagedPrivateEndpoints_Delete" operation, for the dependent resources, they will have to be created separately.
+
+ // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this ManagedPrivateEndpointModelResource created on azure
+ // for more information of creating ManagedPrivateEndpointModelResource, please refer to the document of ManagedPrivateEndpointModelResource
+ string subscriptionId = "00000000-0000-0000-0000-000000000000";
+ string resourceGroupName = "myResourceGroup";
+ string workspaceName = "myWorkspace";
+ string managedPrivateEndpointName = "myMPEName";
+ ResourceIdentifier managedPrivateEndpointModelResourceId = ManagedPrivateEndpointModelResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, managedPrivateEndpointName);
+ ManagedPrivateEndpointModelResource managedPrivateEndpointModel = client.GetManagedPrivateEndpointModelResource(managedPrivateEndpointModelResourceId);
+
+ // invoke the operation
+ await managedPrivateEndpointModel.DeleteAsync(WaitUntil.Completed);
+
+ Console.WriteLine($"Succeeded");
+ }
+ }
+}
diff --git a/sdk/dashboard/Azure.ResourceManager.Dashboard/src/Azure.ResourceManager.Dashboard.csproj b/sdk/dashboard/Azure.ResourceManager.Dashboard/src/Azure.ResourceManager.Dashboard.csproj
new file mode 100644
index 000000000000..897ab6c3c39e
--- /dev/null
+++ b/sdk/dashboard/Azure.ResourceManager.Dashboard/src/Azure.ResourceManager.Dashboard.csproj
@@ -0,0 +1,8 @@
+
+
+ 1.0.0-beta.1
+ Azure.ResourceManager.Dashboard
+ Azure Resource Manager client SDK for Azure resource provider dashboard.
+ azure;management;arm;resource manager;dashboard
+
+
diff --git a/sdk/dashboard/Azure.ResourceManager.Dashboard/src/Generated/ArmDashboardModelFactory.cs b/sdk/dashboard/Azure.ResourceManager.Dashboard/src/Generated/ArmDashboardModelFactory.cs
new file mode 100644
index 000000000000..eeb2cb3560c1
--- /dev/null
+++ b/sdk/dashboard/Azure.ResourceManager.Dashboard/src/Generated/ArmDashboardModelFactory.cs
@@ -0,0 +1,191 @@
+// 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.Dashboard;
+using Azure.ResourceManager.Models;
+
+namespace Azure.ResourceManager.Dashboard.Models
+{
+ /// Model factory for models.
+ public static partial class ArmDashboardModelFactory
+ {
+ /// Initializes a new instance of ManagedGrafanaData.
+ /// The id.
+ /// The name.
+ /// The resourceType.
+ /// The systemData.
+ /// The tags.
+ /// The location.
+ /// The Sku of the grafana resource.
+ /// Properties specific to the grafana resource.
+ /// The managed identity of the grafana resource.
+ /// A new instance for mocking.
+ public static ManagedGrafanaData ManagedGrafanaData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, string skuName = null, ManagedGrafanaProperties properties = null, ManagedServiceIdentity identity = null)
+ {
+ tags ??= new Dictionary();
+
+ return new ManagedGrafanaData(id, name, resourceType, systemData, tags, location, skuName != null ? new ResourceSku(skuName) : null, properties, identity);
+ }
+
+ /// Initializes a new instance of ManagedGrafanaProperties.
+ /// Provisioning state of the resource.
+ /// The Grafana software version.
+ /// The endpoint of the Grafana instance.
+ /// Indicate the state for enable or disable traffic over the public interface.
+ /// The zone redundancy setting of the Grafana instance.
+ /// The api key setting of the Grafana instance.
+ /// Whether a Grafana instance uses deterministic outbound IPs.
+ /// List of outbound IPs if deterministicOutboundIP is enabled.
+ /// The private endpoint connections of the Grafana instance.
+ /// Scope for dns deterministic name hash calculation.
+ /// GrafanaIntegrations is a bundled observability experience (e.g. pre-configured data source, tailored Grafana dashboards, alerting defaults) for common monitoring scenarios.
+ /// Enterprise settings of a Grafana instance.
+ /// Server configurations of a Grafana instance.
+ /// Installed plugin list of the Grafana instance. Key is plugin id, value is plugin definition.
+ /// The major Grafana software version to target.
+ /// A new instance for mocking.
+ public static ManagedGrafanaProperties ManagedGrafanaProperties(ProvisioningState? provisioningState = null, string grafanaVersion = null, string endpoint = null, PublicNetworkAccess? publicNetworkAccess = null, ZoneRedundancy? zoneRedundancy = null, ApiKey? apiKey = null, DeterministicOutboundIP? deterministicOutboundIP = null, IEnumerable outboundIPs = null, IEnumerable privateEndpointConnections = null, AutoGeneratedDomainNameLabelScope? autoGeneratedDomainNameLabelScope = null, IEnumerable azureMonitorWorkspaceIntegrations = null, EnterpriseConfigurations enterpriseConfigurations = null, Smtp grafanaConfigurationsSmtp = null, IDictionary grafanaPlugins = null, string grafanaMajorVersion = null)
+ {
+ outboundIPs ??= new List();
+ privateEndpointConnections ??= new List();
+ azureMonitorWorkspaceIntegrations ??= new List();
+ grafanaPlugins ??= new Dictionary();
+
+ return new ManagedGrafanaProperties(provisioningState, grafanaVersion, endpoint, publicNetworkAccess, zoneRedundancy, apiKey, deterministicOutboundIP, outboundIPs?.ToList(), privateEndpointConnections?.ToList(), autoGeneratedDomainNameLabelScope, azureMonitorWorkspaceIntegrations != null ? new GrafanaIntegrations(azureMonitorWorkspaceIntegrations?.ToList()) : null, enterpriseConfigurations, grafanaConfigurationsSmtp != null ? new GrafanaConfigurations(grafanaConfigurationsSmtp) : null, grafanaPlugins, grafanaMajorVersion);
+ }
+
+ /// Initializes a new instance of DashboardPrivateEndpointConnectionData.
+ /// The id.
+ /// The name.
+ /// The resourceType.
+ /// The systemData.
+ /// The resource of private end point.
+ /// A collection of information about the state of the connection between service consumer and provider.
+ /// The private endpoint connection group ids.
+ /// The provisioning state of the private endpoint connection resource.
+ /// A new instance for mocking.
+ public static DashboardPrivateEndpointConnectionData DashboardPrivateEndpointConnectionData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, ResourceIdentifier privateEndpointId = null, DashboardPrivateLinkServiceConnectionState connectionState = null, IEnumerable groupIds = null, DashboardPrivateEndpointConnectionProvisioningState? provisioningState = null)
+ {
+ groupIds ??= new List();
+
+ return new DashboardPrivateEndpointConnectionData(id, name, resourceType, systemData, privateEndpointId != null ? ResourceManagerModelFactory.SubResource(privateEndpointId) : null, connectionState, groupIds?.ToList(), provisioningState);
+ }
+
+ /// Initializes a new instance of GrafanaPlugin.
+ /// Grafana plugin id.
+ /// A new instance for mocking.
+ public static GrafanaPlugin GrafanaPlugin(string pluginId = null)
+ {
+ return new GrafanaPlugin(pluginId);
+ }
+
+ /// Initializes a new instance of DashboardPrivateLinkResourceData.
+ /// The id.
+ /// The name.
+ /// The resourceType.
+ /// The systemData.
+ /// Provisioning state of the resource.
+ /// The private link resource group id.
+ /// The private link resource required member names.
+ /// The private link resource Private link DNS zone name.
+ /// A new instance for mocking.
+ public static DashboardPrivateLinkResourceData DashboardPrivateLinkResourceData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, ProvisioningState? provisioningState = null, string groupId = null, IEnumerable requiredMembers = null, IEnumerable requiredZoneNames = null)
+ {
+ requiredMembers ??= new List();
+ requiredZoneNames ??= new List();
+
+ return new DashboardPrivateLinkResourceData(id, name, resourceType, systemData, provisioningState, groupId, requiredMembers?.ToList(), requiredZoneNames?.ToList());
+ }
+
+ /// Initializes a new instance of EnterpriseDetails.
+ /// SaaS subscription details of a Grafana instance.
+ /// The allocation details of the per subscription free trial slot of the subscription.
+ /// A new instance for mocking.
+ public static EnterpriseDetails EnterpriseDetails(SaasSubscriptionDetails saasSubscriptionDetails = null, MarketplaceTrialQuota marketplaceTrialQuota = null)
+ {
+ return new EnterpriseDetails(saasSubscriptionDetails, marketplaceTrialQuota);
+ }
+
+ /// Initializes a new instance of SaasSubscriptionDetails.
+ /// The plan Id of the SaaS subscription.
+ /// The offer Id of the SaaS subscription.
+ /// The publisher Id of the SaaS subscription.
+ /// The billing term of the SaaS Subscription.
+ /// A new instance for mocking.
+ public static SaasSubscriptionDetails SaasSubscriptionDetails(string planId = null, string offerId = null, string publisherId = null, SubscriptionTerm term = null)
+ {
+ return new SaasSubscriptionDetails(planId, offerId, publisherId, term);
+ }
+
+ /// Initializes a new instance of SubscriptionTerm.
+ /// The unit of the billing term.
+ /// The date and time in UTC of when the billing term starts.
+ /// The date and time in UTC of when the billing term ends.
+ /// A new instance for mocking.
+ public static SubscriptionTerm SubscriptionTerm(string termUnit = null, DateTimeOffset? startOn = null, DateTimeOffset? endOn = null)
+ {
+ return new SubscriptionTerm(termUnit, startOn, endOn);
+ }
+
+ /// Initializes a new instance of MarketplaceTrialQuota.
+ /// Available enterprise promotion for the subscription.
+ /// Resource Id of the Grafana resource which is doing the trial.
+ /// The date and time in UTC of when the trial starts.
+ /// The date and time in UTC of when the trial ends.
+ /// A new instance for mocking.
+ public static MarketplaceTrialQuota MarketplaceTrialQuota(AvailablePromotion? availablePromotion = null, ResourceIdentifier grafanaResourceId = null, DateTimeOffset? trialStartOn = null, DateTimeOffset? trialEndOn = null)
+ {
+ return new MarketplaceTrialQuota(availablePromotion, grafanaResourceId, trialStartOn, trialEndOn);
+ }
+
+ /// Initializes a new instance of GrafanaAvailablePlugin.
+ /// Grafana plugin id.
+ /// Grafana plugin display name.
+ /// A new instance for mocking.
+ public static GrafanaAvailablePlugin GrafanaAvailablePlugin(string pluginId = null, string name = null)
+ {
+ return new GrafanaAvailablePlugin(pluginId, name);
+ }
+
+ /// Initializes a new instance of ManagedPrivateEndpointModelData.
+ /// The id.
+ /// The name.
+ /// The resourceType.
+ /// The systemData.
+ /// The tags.
+ /// The location.
+ /// Provisioning state of the resource.
+ /// The ARM resource ID of the resource for which the managed private endpoint is pointing to.
+ /// The region of the resource to which the managed private endpoint is pointing to.
+ /// The group Ids of the managed private endpoint.
+ /// User input request message of the managed private endpoint.
+ /// The state of managed private endpoint connection.
+ /// The URL of the data store behind the private link service. It would be the URL in the Grafana data source configuration page without the protocol and port.
+ /// The private IP of private endpoint after approval. This property is empty before connection is approved.
+ /// A new instance for mocking.
+ public static ManagedPrivateEndpointModelData ManagedPrivateEndpointModelData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, ProvisioningState? provisioningState = null, string privateLinkResourceId = null, string privateLinkResourceRegion = null, IEnumerable groupIds = null, string requestMessage = null, ManagedPrivateEndpointConnectionState connectionState = null, Uri privateLinkServiceUri = null, string privateLinkServicePrivateIP = null)
+ {
+ tags ??= new Dictionary();
+ groupIds ??= new List();
+
+ return new ManagedPrivateEndpointModelData(id, name, resourceType, systemData, tags, location, provisioningState, privateLinkResourceId, privateLinkResourceRegion, groupIds?.ToList(), requestMessage, connectionState, privateLinkServiceUri, privateLinkServicePrivateIP);
+ }
+
+ /// Initializes a new instance of ManagedPrivateEndpointConnectionState.
+ /// The approval/rejection status of managed private endpoint connection.
+ /// Gets or sets the reason for approval/rejection of the connection.
+ /// A new instance for mocking.
+ public static ManagedPrivateEndpointConnectionState ManagedPrivateEndpointConnectionState(ManagedPrivateEndpointConnectionStatus? status = null, string description = null)
+ {
+ return new ManagedPrivateEndpointConnectionState(status, description);
+ }
+ }
+}
diff --git a/sdk/dashboard/Azure.ResourceManager.Dashboard/src/Generated/DashboardPrivateEndpointConnectionCollection.cs b/sdk/dashboard/Azure.ResourceManager.Dashboard/src/Generated/DashboardPrivateEndpointConnectionCollection.cs
new file mode 100644
index 000000000000..30933749f1d1
--- /dev/null
+++ b/sdk/dashboard/Azure.ResourceManager.Dashboard/src/Generated/DashboardPrivateEndpointConnectionCollection.cs
@@ -0,0 +1,415 @@
+// 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 Autorest.CSharp.Core;
+using Azure;
+using Azure.Core;
+using Azure.Core.Pipeline;
+using Azure.ResourceManager;
+
+namespace Azure.ResourceManager.Dashboard
+{
+ ///
+ /// 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 GetDashboardPrivateEndpointConnections method from an instance of .
+ ///
+ public partial class DashboardPrivateEndpointConnectionCollection : ArmCollection, IEnumerable, IAsyncEnumerable
+ {
+ private readonly ClientDiagnostics _dashboardPrivateEndpointConnectionPrivateEndpointConnectionsClientDiagnostics;
+ private readonly PrivateEndpointConnectionsRestOperations _dashboardPrivateEndpointConnectionPrivateEndpointConnectionsRestClient;
+
+ /// Initializes a new instance of the class for mocking.
+ protected DashboardPrivateEndpointConnectionCollection()
+ {
+ }
+
+ /// 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 DashboardPrivateEndpointConnectionCollection(ArmClient client, ResourceIdentifier id) : base(client, id)
+ {
+ _dashboardPrivateEndpointConnectionPrivateEndpointConnectionsClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.Dashboard", DashboardPrivateEndpointConnectionResource.ResourceType.Namespace, Diagnostics);
+ TryGetApiVersion(DashboardPrivateEndpointConnectionResource.ResourceType, out string dashboardPrivateEndpointConnectionPrivateEndpointConnectionsApiVersion);
+ _dashboardPrivateEndpointConnectionPrivateEndpointConnectionsRestClient = new PrivateEndpointConnectionsRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, dashboardPrivateEndpointConnectionPrivateEndpointConnectionsApiVersion);
+#if DEBUG
+ ValidateResourceId(Id);
+#endif
+ }
+
+ internal static void ValidateResourceId(ResourceIdentifier id)
+ {
+ if (id.ResourceType != ManagedGrafanaResource.ResourceType)
+ throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "Invalid resource type {0} expected {1}", id.ResourceType, ManagedGrafanaResource.ResourceType), nameof(id));
+ }
+
+ ///
+ /// Manual approve private endpoint connection
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Dashboard/grafana/{workspaceName}/privateEndpointConnections/{privateEndpointConnectionName}
+ ///
+ /// -
+ /// Operation Id
+ /// PrivateEndpointConnections_Approve
+ ///
+ ///
+ ///
+ /// 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 private endpoint connection name of Azure Managed Grafana.
+ /// The DashboardPrivateEndpointConnection to use.
+ /// 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 privateEndpointConnectionName, DashboardPrivateEndpointConnectionData data, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNullOrEmpty(privateEndpointConnectionName, nameof(privateEndpointConnectionName));
+ Argument.AssertNotNull(data, nameof(data));
+
+ using var scope = _dashboardPrivateEndpointConnectionPrivateEndpointConnectionsClientDiagnostics.CreateScope("DashboardPrivateEndpointConnectionCollection.CreateOrUpdate");
+ scope.Start();
+ try
+ {
+ var response = await _dashboardPrivateEndpointConnectionPrivateEndpointConnectionsRestClient.ApproveAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, privateEndpointConnectionName, data, cancellationToken).ConfigureAwait(false);
+ var operation = new DashboardArmOperation(new DashboardPrivateEndpointConnectionOperationSource(Client), _dashboardPrivateEndpointConnectionPrivateEndpointConnectionsClientDiagnostics, Pipeline, _dashboardPrivateEndpointConnectionPrivateEndpointConnectionsRestClient.CreateApproveRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, privateEndpointConnectionName, data).Request, response, OperationFinalStateVia.AzureAsyncOperation);
+ if (waitUntil == WaitUntil.Completed)
+ await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false);
+ return operation;
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+
+ ///
+ /// Manual approve private endpoint connection
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Dashboard/grafana/{workspaceName}/privateEndpointConnections/{privateEndpointConnectionName}
+ ///
+ /// -
+ /// Operation Id
+ /// PrivateEndpointConnections_Approve
+ ///
+ ///
+ ///
+ /// 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 private endpoint connection name of Azure Managed Grafana.
+ /// The DashboardPrivateEndpointConnection to use.
+ /// 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 privateEndpointConnectionName, DashboardPrivateEndpointConnectionData data, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNullOrEmpty(privateEndpointConnectionName, nameof(privateEndpointConnectionName));
+ Argument.AssertNotNull(data, nameof(data));
+
+ using var scope = _dashboardPrivateEndpointConnectionPrivateEndpointConnectionsClientDiagnostics.CreateScope("DashboardPrivateEndpointConnectionCollection.CreateOrUpdate");
+ scope.Start();
+ try
+ {
+ var response = _dashboardPrivateEndpointConnectionPrivateEndpointConnectionsRestClient.Approve(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, privateEndpointConnectionName, data, cancellationToken);
+ var operation = new DashboardArmOperation(new DashboardPrivateEndpointConnectionOperationSource(Client), _dashboardPrivateEndpointConnectionPrivateEndpointConnectionsClientDiagnostics, Pipeline, _dashboardPrivateEndpointConnectionPrivateEndpointConnectionsRestClient.CreateApproveRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, privateEndpointConnectionName, data).Request, response, OperationFinalStateVia.AzureAsyncOperation);
+ if (waitUntil == WaitUntil.Completed)
+ operation.WaitForCompletion(cancellationToken);
+ return operation;
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+
+ ///
+ /// Get private endpoint connections.
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Dashboard/grafana/{workspaceName}/privateEndpointConnections/{privateEndpointConnectionName}
+ ///
+ /// -
+ /// Operation Id
+ /// PrivateEndpointConnections_Get
+ ///
+ ///
+ ///
+ /// The private endpoint connection name of Azure Managed Grafana.
+ /// The cancellation token to use.
+ /// is an empty string, and was expected to be non-empty.
+ /// is null.
+ public virtual async Task> GetAsync(string privateEndpointConnectionName, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNullOrEmpty(privateEndpointConnectionName, nameof(privateEndpointConnectionName));
+
+ using var scope = _dashboardPrivateEndpointConnectionPrivateEndpointConnectionsClientDiagnostics.CreateScope("DashboardPrivateEndpointConnectionCollection.Get");
+ scope.Start();
+ try
+ {
+ var response = await _dashboardPrivateEndpointConnectionPrivateEndpointConnectionsRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, privateEndpointConnectionName, cancellationToken).ConfigureAwait(false);
+ if (response.Value == null)
+ throw new RequestFailedException(response.GetRawResponse());
+ return Response.FromValue(new DashboardPrivateEndpointConnectionResource(Client, response.Value), response.GetRawResponse());
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+
+ ///
+ /// Get private endpoint connections.
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Dashboard/grafana/{workspaceName}/privateEndpointConnections/{privateEndpointConnectionName}
+ ///
+ /// -
+ /// Operation Id
+ /// PrivateEndpointConnections_Get
+ ///
+ ///
+ ///
+ /// The private endpoint connection name of Azure Managed Grafana.
+ /// The cancellation token to use.
+ /// is an empty string, and was expected to be non-empty.
+ /// is null.
+ public virtual Response Get(string privateEndpointConnectionName, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNullOrEmpty(privateEndpointConnectionName, nameof(privateEndpointConnectionName));
+
+ using var scope = _dashboardPrivateEndpointConnectionPrivateEndpointConnectionsClientDiagnostics.CreateScope("DashboardPrivateEndpointConnectionCollection.Get");
+ scope.Start();
+ try
+ {
+ var response = _dashboardPrivateEndpointConnectionPrivateEndpointConnectionsRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, privateEndpointConnectionName, cancellationToken);
+ if (response.Value == null)
+ throw new RequestFailedException(response.GetRawResponse());
+ return Response.FromValue(new DashboardPrivateEndpointConnectionResource(Client, response.Value), response.GetRawResponse());
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+
+ ///
+ /// Get private endpoint connection
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Dashboard/grafana/{workspaceName}/privateEndpointConnections
+ ///
+ /// -
+ /// Operation Id
+ /// PrivateEndpointConnections_List
+ ///
+ ///
+ ///
+ /// 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) => _dashboardPrivateEndpointConnectionPrivateEndpointConnectionsRestClient.CreateListRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name);
+ HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _dashboardPrivateEndpointConnectionPrivateEndpointConnectionsRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name);
+ return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => new DashboardPrivateEndpointConnectionResource(Client, DashboardPrivateEndpointConnectionData.DeserializeDashboardPrivateEndpointConnectionData(e)), _dashboardPrivateEndpointConnectionPrivateEndpointConnectionsClientDiagnostics, Pipeline, "DashboardPrivateEndpointConnectionCollection.GetAll", "value", "nextLink", cancellationToken);
+ }
+
+ ///
+ /// Get private endpoint connection
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Dashboard/grafana/{workspaceName}/privateEndpointConnections
+ ///
+ /// -
+ /// Operation Id
+ /// PrivateEndpointConnections_List
+ ///
+ ///
+ ///
+ /// 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) => _dashboardPrivateEndpointConnectionPrivateEndpointConnectionsRestClient.CreateListRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name);
+ HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _dashboardPrivateEndpointConnectionPrivateEndpointConnectionsRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name);
+ return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new DashboardPrivateEndpointConnectionResource(Client, DashboardPrivateEndpointConnectionData.DeserializeDashboardPrivateEndpointConnectionData(e)), _dashboardPrivateEndpointConnectionPrivateEndpointConnectionsClientDiagnostics, Pipeline, "DashboardPrivateEndpointConnectionCollection.GetAll", "value", "nextLink", cancellationToken);
+ }
+
+ ///
+ /// Checks to see if the resource exists in azure.
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Dashboard/grafana/{workspaceName}/privateEndpointConnections/{privateEndpointConnectionName}
+ ///
+ /// -
+ /// Operation Id
+ /// PrivateEndpointConnections_Get
+ ///
+ ///
+ ///
+ /// The private endpoint connection name of Azure Managed Grafana.
+ /// The cancellation token to use.
+ /// is an empty string, and was expected to be non-empty.
+ /// is null.
+ public virtual async Task> ExistsAsync(string privateEndpointConnectionName, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNullOrEmpty(privateEndpointConnectionName, nameof(privateEndpointConnectionName));
+
+ using var scope = _dashboardPrivateEndpointConnectionPrivateEndpointConnectionsClientDiagnostics.CreateScope("DashboardPrivateEndpointConnectionCollection.Exists");
+ scope.Start();
+ try
+ {
+ var response = await _dashboardPrivateEndpointConnectionPrivateEndpointConnectionsRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, privateEndpointConnectionName, 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.Dashboard/grafana/{workspaceName}/privateEndpointConnections/{privateEndpointConnectionName}
+ ///
+ /// -
+ /// Operation Id
+ /// PrivateEndpointConnections_Get
+ ///
+ ///
+ ///
+ /// The private endpoint connection name of Azure Managed Grafana.
+ /// The cancellation token to use.
+ /// is an empty string, and was expected to be non-empty.
+ /// is null.
+ public virtual Response Exists(string privateEndpointConnectionName, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNullOrEmpty(privateEndpointConnectionName, nameof(privateEndpointConnectionName));
+
+ using var scope = _dashboardPrivateEndpointConnectionPrivateEndpointConnectionsClientDiagnostics.CreateScope("DashboardPrivateEndpointConnectionCollection.Exists");
+ scope.Start();
+ try
+ {
+ var response = _dashboardPrivateEndpointConnectionPrivateEndpointConnectionsRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, privateEndpointConnectionName, cancellationToken: cancellationToken);
+ return Response.FromValue(response.Value != null, response.GetRawResponse());
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+
+ ///
+ /// Tries to get details for this resource from the service.
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Dashboard/grafana/{workspaceName}/privateEndpointConnections/{privateEndpointConnectionName}
+ ///
+ /// -
+ /// Operation Id
+ /// PrivateEndpointConnections_Get
+ ///
+ ///
+ ///
+ /// The private endpoint connection name of Azure Managed Grafana.
+ /// The cancellation token to use.
+ /// is an empty string, and was expected to be non-empty.
+ /// is null.
+ public virtual async Task> GetIfExistsAsync(string privateEndpointConnectionName, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNullOrEmpty(privateEndpointConnectionName, nameof(privateEndpointConnectionName));
+
+ using var scope = _dashboardPrivateEndpointConnectionPrivateEndpointConnectionsClientDiagnostics.CreateScope("DashboardPrivateEndpointConnectionCollection.GetIfExists");
+ scope.Start();
+ try
+ {
+ var response = await _dashboardPrivateEndpointConnectionPrivateEndpointConnectionsRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, privateEndpointConnectionName, cancellationToken: cancellationToken).ConfigureAwait(false);
+ if (response.Value == null)
+ return new NoValueResponse(response.GetRawResponse());
+ return Response.FromValue(new DashboardPrivateEndpointConnectionResource(Client, response.Value), response.GetRawResponse());
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+
+ ///
+ /// Tries to get details for this resource from the service.
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Dashboard/grafana/{workspaceName}/privateEndpointConnections/{privateEndpointConnectionName}
+ ///
+ /// -
+ /// Operation Id
+ /// PrivateEndpointConnections_Get
+ ///
+ ///
+ ///
+ /// The private endpoint connection name of Azure Managed Grafana.
+ /// The cancellation token to use.
+ /// is an empty string, and was expected to be non-empty.
+ /// is null.
+ public virtual NullableResponse GetIfExists(string privateEndpointConnectionName, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNullOrEmpty(privateEndpointConnectionName, nameof(privateEndpointConnectionName));
+
+ using var scope = _dashboardPrivateEndpointConnectionPrivateEndpointConnectionsClientDiagnostics.CreateScope("DashboardPrivateEndpointConnectionCollection.GetIfExists");
+ scope.Start();
+ try
+ {
+ var response = _dashboardPrivateEndpointConnectionPrivateEndpointConnectionsRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, privateEndpointConnectionName, cancellationToken: cancellationToken);
+ if (response.Value == null)
+ return new NoValueResponse(response.GetRawResponse());
+ return Response.FromValue(new DashboardPrivateEndpointConnectionResource(Client, response.Value), 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/dashboard/Azure.ResourceManager.Dashboard/src/Generated/DashboardPrivateEndpointConnectionData.cs b/sdk/dashboard/Azure.ResourceManager.Dashboard/src/Generated/DashboardPrivateEndpointConnectionData.cs
new file mode 100644
index 000000000000..bd245a491d47
--- /dev/null
+++ b/sdk/dashboard/Azure.ResourceManager.Dashboard/src/Generated/DashboardPrivateEndpointConnectionData.cs
@@ -0,0 +1,60 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System.Collections.Generic;
+using Azure.Core;
+using Azure.ResourceManager.Dashboard.Models;
+using Azure.ResourceManager.Models;
+using Azure.ResourceManager.Resources.Models;
+
+namespace Azure.ResourceManager.Dashboard
+{
+ ///
+ /// A class representing the DashboardPrivateEndpointConnection data model.
+ /// The Private Endpoint Connection resource.
+ ///
+ public partial class DashboardPrivateEndpointConnectionData : ResourceData
+ {
+ /// Initializes a new instance of DashboardPrivateEndpointConnectionData.
+ public DashboardPrivateEndpointConnectionData()
+ {
+ GroupIds = new ChangeTrackingList();
+ }
+
+ /// Initializes a new instance of DashboardPrivateEndpointConnectionData.
+ /// The id.
+ /// The name.
+ /// The resourceType.
+ /// The systemData.
+ /// The resource of private end point.
+ /// A collection of information about the state of the connection between service consumer and provider.
+ /// The private endpoint connection group ids.
+ /// The provisioning state of the private endpoint connection resource.
+ internal DashboardPrivateEndpointConnectionData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, SubResource privateEndpoint, DashboardPrivateLinkServiceConnectionState connectionState, IList groupIds, DashboardPrivateEndpointConnectionProvisioningState? provisioningState) : base(id, name, resourceType, systemData)
+ {
+ PrivateEndpoint = privateEndpoint;
+ ConnectionState = connectionState;
+ GroupIds = groupIds;
+ ProvisioningState = provisioningState;
+ }
+
+ /// The resource of private end point.
+ internal SubResource PrivateEndpoint { get; set; }
+ /// Gets Id.
+ public ResourceIdentifier PrivateEndpointId
+ {
+ get => PrivateEndpoint is null ? default : PrivateEndpoint.Id;
+ }
+
+ /// A collection of information about the state of the connection between service consumer and provider.
+ public DashboardPrivateLinkServiceConnectionState ConnectionState { get; set; }
+ /// The private endpoint connection group ids.
+ public IList GroupIds { get; }
+ /// The provisioning state of the private endpoint connection resource.
+ public DashboardPrivateEndpointConnectionProvisioningState? ProvisioningState { get; }
+ }
+}
diff --git a/sdk/dashboard/Azure.ResourceManager.Dashboard/src/Generated/DashboardPrivateEndpointConnectionResource.cs b/sdk/dashboard/Azure.ResourceManager.Dashboard/src/Generated/DashboardPrivateEndpointConnectionResource.cs
new file mode 100644
index 000000000000..14ee52858cd7
--- /dev/null
+++ b/sdk/dashboard/Azure.ResourceManager.Dashboard/src/Generated/DashboardPrivateEndpointConnectionResource.cs
@@ -0,0 +1,297 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+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.Dashboard
+{
+ ///
+ /// A Class representing a DashboardPrivateEndpointConnection 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 GetDashboardPrivateEndpointConnectionResource method.
+ /// Otherwise you can get one from its parent resource using the GetDashboardPrivateEndpointConnection method.
+ ///
+ public partial class DashboardPrivateEndpointConnectionResource : ArmResource
+ {
+ /// Generate the resource identifier of a instance.
+ public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string workspaceName, string privateEndpointConnectionName)
+ {
+ var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Dashboard/grafana/{workspaceName}/privateEndpointConnections/{privateEndpointConnectionName}";
+ return new ResourceIdentifier(resourceId);
+ }
+
+ private readonly ClientDiagnostics _dashboardPrivateEndpointConnectionPrivateEndpointConnectionsClientDiagnostics;
+ private readonly PrivateEndpointConnectionsRestOperations _dashboardPrivateEndpointConnectionPrivateEndpointConnectionsRestClient;
+ private readonly DashboardPrivateEndpointConnectionData _data;
+
+ /// Initializes a new instance of the class for mocking.
+ protected DashboardPrivateEndpointConnectionResource()
+ {
+ }
+
+ /// Initializes a new instance of the class.
+ /// The client parameters to use in these operations.
+ /// The resource that is the target of operations.
+ internal DashboardPrivateEndpointConnectionResource(ArmClient client, DashboardPrivateEndpointConnectionData 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 DashboardPrivateEndpointConnectionResource(ArmClient client, ResourceIdentifier id) : base(client, id)
+ {
+ _dashboardPrivateEndpointConnectionPrivateEndpointConnectionsClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.Dashboard", ResourceType.Namespace, Diagnostics);
+ TryGetApiVersion(ResourceType, out string dashboardPrivateEndpointConnectionPrivateEndpointConnectionsApiVersion);
+ _dashboardPrivateEndpointConnectionPrivateEndpointConnectionsRestClient = new PrivateEndpointConnectionsRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, dashboardPrivateEndpointConnectionPrivateEndpointConnectionsApiVersion);
+#if DEBUG
+ ValidateResourceId(Id);
+#endif
+ }
+
+ /// Gets the resource type for the operations.
+ public static readonly ResourceType ResourceType = "Microsoft.Dashboard/grafana/privateEndpointConnections";
+
+ /// 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 DashboardPrivateEndpointConnectionData 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));
+ }
+
+ ///
+ /// Get private endpoint connections.
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Dashboard/grafana/{workspaceName}/privateEndpointConnections/{privateEndpointConnectionName}
+ ///
+ /// -
+ /// Operation Id
+ /// PrivateEndpointConnections_Get
+ ///
+ ///
+ ///
+ /// The cancellation token to use.
+ public virtual async Task> GetAsync(CancellationToken cancellationToken = default)
+ {
+ using var scope = _dashboardPrivateEndpointConnectionPrivateEndpointConnectionsClientDiagnostics.CreateScope("DashboardPrivateEndpointConnectionResource.Get");
+ scope.Start();
+ try
+ {
+ var response = await _dashboardPrivateEndpointConnectionPrivateEndpointConnectionsRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false);
+ if (response.Value == null)
+ throw new RequestFailedException(response.GetRawResponse());
+ return Response.FromValue(new DashboardPrivateEndpointConnectionResource(Client, response.Value), response.GetRawResponse());
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+
+ ///
+ /// Get private endpoint connections.
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Dashboard/grafana/{workspaceName}/privateEndpointConnections/{privateEndpointConnectionName}
+ ///
+ /// -
+ /// Operation Id
+ /// PrivateEndpointConnections_Get
+ ///
+ ///
+ ///
+ /// The cancellation token to use.
+ public virtual Response Get(CancellationToken cancellationToken = default)
+ {
+ using var scope = _dashboardPrivateEndpointConnectionPrivateEndpointConnectionsClientDiagnostics.CreateScope("DashboardPrivateEndpointConnectionResource.Get");
+ scope.Start();
+ try
+ {
+ var response = _dashboardPrivateEndpointConnectionPrivateEndpointConnectionsRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken);
+ if (response.Value == null)
+ throw new RequestFailedException(response.GetRawResponse());
+ return Response.FromValue(new DashboardPrivateEndpointConnectionResource(Client, response.Value), response.GetRawResponse());
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+
+ ///
+ /// Delete private endpoint connection
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Dashboard/grafana/{workspaceName}/privateEndpointConnections/{privateEndpointConnectionName}
+ ///
+ /// -
+ /// Operation Id
+ /// PrivateEndpointConnections_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 = _dashboardPrivateEndpointConnectionPrivateEndpointConnectionsClientDiagnostics.CreateScope("DashboardPrivateEndpointConnectionResource.Delete");
+ scope.Start();
+ try
+ {
+ var response = await _dashboardPrivateEndpointConnectionPrivateEndpointConnectionsRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false);
+ var operation = new DashboardArmOperation(_dashboardPrivateEndpointConnectionPrivateEndpointConnectionsClientDiagnostics, Pipeline, _dashboardPrivateEndpointConnectionPrivateEndpointConnectionsRestClient.CreateDeleteRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, 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 private endpoint connection
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Dashboard/grafana/{workspaceName}/privateEndpointConnections/{privateEndpointConnectionName}
+ ///
+ /// -
+ /// Operation Id
+ /// PrivateEndpointConnections_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 = _dashboardPrivateEndpointConnectionPrivateEndpointConnectionsClientDiagnostics.CreateScope("DashboardPrivateEndpointConnectionResource.Delete");
+ scope.Start();
+ try
+ {
+ var response = _dashboardPrivateEndpointConnectionPrivateEndpointConnectionsRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken);
+ var operation = new DashboardArmOperation(_dashboardPrivateEndpointConnectionPrivateEndpointConnectionsClientDiagnostics, Pipeline, _dashboardPrivateEndpointConnectionPrivateEndpointConnectionsRestClient.CreateDeleteRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name).Request, response, OperationFinalStateVia.AzureAsyncOperation);
+ if (waitUntil == WaitUntil.Completed)
+ operation.WaitForCompletionResponse(cancellationToken);
+ return operation;
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+
+ ///
+ /// Manual approve private endpoint connection
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Dashboard/grafana/{workspaceName}/privateEndpointConnections/{privateEndpointConnectionName}
+ ///
+ /// -
+ /// Operation Id
+ /// PrivateEndpointConnections_Approve
+ ///
+ ///
+ ///
+ /// 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 DashboardPrivateEndpointConnection to use.
+ /// The cancellation token to use.
+ /// is null.
+ public virtual async Task> UpdateAsync(WaitUntil waitUntil, DashboardPrivateEndpointConnectionData data, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNull(data, nameof(data));
+
+ using var scope = _dashboardPrivateEndpointConnectionPrivateEndpointConnectionsClientDiagnostics.CreateScope("DashboardPrivateEndpointConnectionResource.Update");
+ scope.Start();
+ try
+ {
+ var response = await _dashboardPrivateEndpointConnectionPrivateEndpointConnectionsRestClient.ApproveAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken).ConfigureAwait(false);
+ var operation = new DashboardArmOperation(new DashboardPrivateEndpointConnectionOperationSource(Client), _dashboardPrivateEndpointConnectionPrivateEndpointConnectionsClientDiagnostics, Pipeline, _dashboardPrivateEndpointConnectionPrivateEndpointConnectionsRestClient.CreateApproveRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data).Request, response, OperationFinalStateVia.AzureAsyncOperation);
+ if (waitUntil == WaitUntil.Completed)
+ await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false);
+ return operation;
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+
+ ///
+ /// Manual approve private endpoint connection
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Dashboard/grafana/{workspaceName}/privateEndpointConnections/{privateEndpointConnectionName}
+ ///
+ /// -
+ /// Operation Id
+ /// PrivateEndpointConnections_Approve
+ ///
+ ///
+ ///
+ /// 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 DashboardPrivateEndpointConnection to use.
+ /// The cancellation token to use.
+ /// is null.
+ public virtual ArmOperation Update(WaitUntil waitUntil, DashboardPrivateEndpointConnectionData data, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNull(data, nameof(data));
+
+ using var scope = _dashboardPrivateEndpointConnectionPrivateEndpointConnectionsClientDiagnostics.CreateScope("DashboardPrivateEndpointConnectionResource.Update");
+ scope.Start();
+ try
+ {
+ var response = _dashboardPrivateEndpointConnectionPrivateEndpointConnectionsRestClient.Approve(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken);
+ var operation = new DashboardArmOperation(new DashboardPrivateEndpointConnectionOperationSource(Client), _dashboardPrivateEndpointConnectionPrivateEndpointConnectionsClientDiagnostics, Pipeline, _dashboardPrivateEndpointConnectionPrivateEndpointConnectionsRestClient.CreateApproveRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data).Request, response, OperationFinalStateVia.AzureAsyncOperation);
+ if (waitUntil == WaitUntil.Completed)
+ operation.WaitForCompletion(cancellationToken);
+ return operation;
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+ }
+}
diff --git a/sdk/dashboard/Azure.ResourceManager.Dashboard/src/Generated/DashboardPrivateLinkResource.cs b/sdk/dashboard/Azure.ResourceManager.Dashboard/src/Generated/DashboardPrivateLinkResource.cs
new file mode 100644
index 000000000000..68e5a471d6ab
--- /dev/null
+++ b/sdk/dashboard/Azure.ResourceManager.Dashboard/src/Generated/DashboardPrivateLinkResource.cs
@@ -0,0 +1,153 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+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.Dashboard
+{
+ ///
+ /// A Class representing a DashboardPrivateLinkResource 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 GetDashboardPrivateLinkResource method.
+ /// Otherwise you can get one from its parent resource using the GetDashboardPrivateLinkResource method.
+ ///
+ public partial class DashboardPrivateLinkResource : ArmResource
+ {
+ /// Generate the resource identifier of a instance.
+ public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string workspaceName, string privateLinkResourceName)
+ {
+ var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Dashboard/grafana/{workspaceName}/privateLinkResources/{privateLinkResourceName}";
+ return new ResourceIdentifier(resourceId);
+ }
+
+ private readonly ClientDiagnostics _dashboardPrivateLinkResourcePrivateLinkResourcesClientDiagnostics;
+ private readonly PrivateLinkResourcesRestOperations _dashboardPrivateLinkResourcePrivateLinkResourcesRestClient;
+ private readonly DashboardPrivateLinkResourceData _data;
+
+ /// Initializes a new instance of the class for mocking.
+ protected DashboardPrivateLinkResource()
+ {
+ }
+
+ /// Initializes a new instance of the class.
+ /// The client parameters to use in these operations.
+ /// The resource that is the target of operations.
+ internal DashboardPrivateLinkResource(ArmClient client, DashboardPrivateLinkResourceData 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 DashboardPrivateLinkResource(ArmClient client, ResourceIdentifier id) : base(client, id)
+ {
+ _dashboardPrivateLinkResourcePrivateLinkResourcesClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.Dashboard", ResourceType.Namespace, Diagnostics);
+ TryGetApiVersion(ResourceType, out string dashboardPrivateLinkResourcePrivateLinkResourcesApiVersion);
+ _dashboardPrivateLinkResourcePrivateLinkResourcesRestClient = new PrivateLinkResourcesRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, dashboardPrivateLinkResourcePrivateLinkResourcesApiVersion);
+#if DEBUG
+ ValidateResourceId(Id);
+#endif
+ }
+
+ /// Gets the resource type for the operations.
+ public static readonly ResourceType ResourceType = "Microsoft.Dashboard/grafana/privateLinkResources";
+
+ /// 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 DashboardPrivateLinkResourceData 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));
+ }
+
+ ///
+ /// Get specific private link resource information for this grafana resource
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Dashboard/grafana/{workspaceName}/privateLinkResources/{privateLinkResourceName}
+ ///
+ /// -
+ /// Operation Id
+ /// PrivateLinkResources_Get
+ ///
+ ///
+ ///
+ /// The cancellation token to use.
+ public virtual async Task> GetAsync(CancellationToken cancellationToken = default)
+ {
+ using var scope = _dashboardPrivateLinkResourcePrivateLinkResourcesClientDiagnostics.CreateScope("DashboardPrivateLinkResource.Get");
+ scope.Start();
+ try
+ {
+ var response = await _dashboardPrivateLinkResourcePrivateLinkResourcesRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false);
+ if (response.Value == null)
+ throw new RequestFailedException(response.GetRawResponse());
+ return Response.FromValue(new DashboardPrivateLinkResource(Client, response.Value), response.GetRawResponse());
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+
+ ///
+ /// Get specific private link resource information for this grafana resource
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Dashboard/grafana/{workspaceName}/privateLinkResources/{privateLinkResourceName}
+ ///
+ /// -
+ /// Operation Id
+ /// PrivateLinkResources_Get
+ ///
+ ///
+ ///
+ /// The cancellation token to use.
+ public virtual Response Get(CancellationToken cancellationToken = default)
+ {
+ using var scope = _dashboardPrivateLinkResourcePrivateLinkResourcesClientDiagnostics.CreateScope("DashboardPrivateLinkResource.Get");
+ scope.Start();
+ try
+ {
+ var response = _dashboardPrivateLinkResourcePrivateLinkResourcesRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken);
+ if (response.Value == null)
+ throw new RequestFailedException(response.GetRawResponse());
+ return Response.FromValue(new DashboardPrivateLinkResource(Client, response.Value), response.GetRawResponse());
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+ }
+}
diff --git a/sdk/dashboard/Azure.ResourceManager.Dashboard/src/Generated/DashboardPrivateLinkResourceCollection.cs b/sdk/dashboard/Azure.ResourceManager.Dashboard/src/Generated/DashboardPrivateLinkResourceCollection.cs
new file mode 100644
index 000000000000..dceb0205ad23
--- /dev/null
+++ b/sdk/dashboard/Azure.ResourceManager.Dashboard/src/Generated/DashboardPrivateLinkResourceCollection.cs
@@ -0,0 +1,333 @@
+// 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 Autorest.CSharp.Core;
+using Azure;
+using Azure.Core;
+using Azure.Core.Pipeline;
+using Azure.ResourceManager;
+
+namespace Azure.ResourceManager.Dashboard
+{
+ ///
+ /// 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 GetDashboardPrivateLinkResources method from an instance of .
+ ///
+ public partial class DashboardPrivateLinkResourceCollection : ArmCollection, IEnumerable, IAsyncEnumerable
+ {
+ private readonly ClientDiagnostics _dashboardPrivateLinkResourcePrivateLinkResourcesClientDiagnostics;
+ private readonly PrivateLinkResourcesRestOperations _dashboardPrivateLinkResourcePrivateLinkResourcesRestClient;
+
+ /// Initializes a new instance of the class for mocking.
+ protected DashboardPrivateLinkResourceCollection()
+ {
+ }
+
+ /// 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 DashboardPrivateLinkResourceCollection(ArmClient client, ResourceIdentifier id) : base(client, id)
+ {
+ _dashboardPrivateLinkResourcePrivateLinkResourcesClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.Dashboard", DashboardPrivateLinkResource.ResourceType.Namespace, Diagnostics);
+ TryGetApiVersion(DashboardPrivateLinkResource.ResourceType, out string dashboardPrivateLinkResourcePrivateLinkResourcesApiVersion);
+ _dashboardPrivateLinkResourcePrivateLinkResourcesRestClient = new PrivateLinkResourcesRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, dashboardPrivateLinkResourcePrivateLinkResourcesApiVersion);
+#if DEBUG
+ ValidateResourceId(Id);
+#endif
+ }
+
+ internal static void ValidateResourceId(ResourceIdentifier id)
+ {
+ if (id.ResourceType != ManagedGrafanaResource.ResourceType)
+ throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "Invalid resource type {0} expected {1}", id.ResourceType, ManagedGrafanaResource.ResourceType), nameof(id));
+ }
+
+ ///
+ /// Get specific private link resource information for this grafana resource
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Dashboard/grafana/{workspaceName}/privateLinkResources/{privateLinkResourceName}
+ ///
+ /// -
+ /// Operation Id
+ /// PrivateLinkResources_Get
+ ///
+ ///
+ ///
+ /// The String to use.
+ /// The cancellation token to use.
+ /// is an empty string, and was expected to be non-empty.
+ /// is null.
+ public virtual async Task> GetAsync(string privateLinkResourceName, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNullOrEmpty(privateLinkResourceName, nameof(privateLinkResourceName));
+
+ using var scope = _dashboardPrivateLinkResourcePrivateLinkResourcesClientDiagnostics.CreateScope("DashboardPrivateLinkResourceCollection.Get");
+ scope.Start();
+ try
+ {
+ var response = await _dashboardPrivateLinkResourcePrivateLinkResourcesRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, privateLinkResourceName, cancellationToken).ConfigureAwait(false);
+ if (response.Value == null)
+ throw new RequestFailedException(response.GetRawResponse());
+ return Response.FromValue(new DashboardPrivateLinkResource(Client, response.Value), response.GetRawResponse());
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+
+ ///
+ /// Get specific private link resource information for this grafana resource
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Dashboard/grafana/{workspaceName}/privateLinkResources/{privateLinkResourceName}
+ ///
+ /// -
+ /// Operation Id
+ /// PrivateLinkResources_Get
+ ///
+ ///
+ ///
+ /// The String to use.
+ /// The cancellation token to use.
+ /// is an empty string, and was expected to be non-empty.
+ /// is null.
+ public virtual Response Get(string privateLinkResourceName, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNullOrEmpty(privateLinkResourceName, nameof(privateLinkResourceName));
+
+ using var scope = _dashboardPrivateLinkResourcePrivateLinkResourcesClientDiagnostics.CreateScope("DashboardPrivateLinkResourceCollection.Get");
+ scope.Start();
+ try
+ {
+ var response = _dashboardPrivateLinkResourcePrivateLinkResourcesRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, privateLinkResourceName, cancellationToken);
+ if (response.Value == null)
+ throw new RequestFailedException(response.GetRawResponse());
+ return Response.FromValue(new DashboardPrivateLinkResource(Client, response.Value), response.GetRawResponse());
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+
+ ///
+ /// List all private link resources information for this grafana resource
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Dashboard/grafana/{workspaceName}/privateLinkResources
+ ///
+ /// -
+ /// Operation Id
+ /// PrivateLinkResources_List
+ ///
+ ///
+ ///
+ /// 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) => _dashboardPrivateLinkResourcePrivateLinkResourcesRestClient.CreateListRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name);
+ HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _dashboardPrivateLinkResourcePrivateLinkResourcesRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name);
+ return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => new DashboardPrivateLinkResource(Client, DashboardPrivateLinkResourceData.DeserializeDashboardPrivateLinkResourceData(e)), _dashboardPrivateLinkResourcePrivateLinkResourcesClientDiagnostics, Pipeline, "DashboardPrivateLinkResourceCollection.GetAll", "value", "nextLink", cancellationToken);
+ }
+
+ ///
+ /// List all private link resources information for this grafana resource
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Dashboard/grafana/{workspaceName}/privateLinkResources
+ ///
+ /// -
+ /// Operation Id
+ /// PrivateLinkResources_List
+ ///
+ ///
+ ///
+ /// 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) => _dashboardPrivateLinkResourcePrivateLinkResourcesRestClient.CreateListRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name);
+ HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _dashboardPrivateLinkResourcePrivateLinkResourcesRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name);
+ return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new DashboardPrivateLinkResource(Client, DashboardPrivateLinkResourceData.DeserializeDashboardPrivateLinkResourceData(e)), _dashboardPrivateLinkResourcePrivateLinkResourcesClientDiagnostics, Pipeline, "DashboardPrivateLinkResourceCollection.GetAll", "value", "nextLink", cancellationToken);
+ }
+
+ ///
+ /// Checks to see if the resource exists in azure.
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Dashboard/grafana/{workspaceName}/privateLinkResources/{privateLinkResourceName}
+ ///
+ /// -
+ /// Operation Id
+ /// PrivateLinkResources_Get
+ ///
+ ///
+ ///
+ /// The String to use.
+ /// The cancellation token to use.
+ /// is an empty string, and was expected to be non-empty.
+ /// is null.
+ public virtual async Task> ExistsAsync(string privateLinkResourceName, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNullOrEmpty(privateLinkResourceName, nameof(privateLinkResourceName));
+
+ using var scope = _dashboardPrivateLinkResourcePrivateLinkResourcesClientDiagnostics.CreateScope("DashboardPrivateLinkResourceCollection.Exists");
+ scope.Start();
+ try
+ {
+ var response = await _dashboardPrivateLinkResourcePrivateLinkResourcesRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, privateLinkResourceName, 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.Dashboard/grafana/{workspaceName}/privateLinkResources/{privateLinkResourceName}
+ ///
+ /// -
+ /// Operation Id
+ /// PrivateLinkResources_Get
+ ///
+ ///
+ ///
+ /// The String to use.
+ /// The cancellation token to use.
+ /// is an empty string, and was expected to be non-empty.
+ /// is null.
+ public virtual Response Exists(string privateLinkResourceName, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNullOrEmpty(privateLinkResourceName, nameof(privateLinkResourceName));
+
+ using var scope = _dashboardPrivateLinkResourcePrivateLinkResourcesClientDiagnostics.CreateScope("DashboardPrivateLinkResourceCollection.Exists");
+ scope.Start();
+ try
+ {
+ var response = _dashboardPrivateLinkResourcePrivateLinkResourcesRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, privateLinkResourceName, cancellationToken: cancellationToken);
+ return Response.FromValue(response.Value != null, response.GetRawResponse());
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+
+ ///
+ /// Tries to get details for this resource from the service.
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Dashboard/grafana/{workspaceName}/privateLinkResources/{privateLinkResourceName}
+ ///
+ /// -
+ /// Operation Id
+ /// PrivateLinkResources_Get
+ ///
+ ///
+ ///
+ /// The String to use.
+ /// The cancellation token to use.
+ /// is an empty string, and was expected to be non-empty.
+ /// is null.
+ public virtual async Task> GetIfExistsAsync(string privateLinkResourceName, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNullOrEmpty(privateLinkResourceName, nameof(privateLinkResourceName));
+
+ using var scope = _dashboardPrivateLinkResourcePrivateLinkResourcesClientDiagnostics.CreateScope("DashboardPrivateLinkResourceCollection.GetIfExists");
+ scope.Start();
+ try
+ {
+ var response = await _dashboardPrivateLinkResourcePrivateLinkResourcesRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, privateLinkResourceName, cancellationToken: cancellationToken).ConfigureAwait(false);
+ if (response.Value == null)
+ return new NoValueResponse(response.GetRawResponse());
+ return Response.FromValue(new DashboardPrivateLinkResource(Client, response.Value), response.GetRawResponse());
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+
+ ///
+ /// Tries to get details for this resource from the service.
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Dashboard/grafana/{workspaceName}/privateLinkResources/{privateLinkResourceName}
+ ///
+ /// -
+ /// Operation Id
+ /// PrivateLinkResources_Get
+ ///
+ ///
+ ///
+ /// The String to use.
+ /// The cancellation token to use.
+ /// is an empty string, and was expected to be non-empty.
+ /// is null.
+ public virtual NullableResponse GetIfExists(string privateLinkResourceName, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNullOrEmpty(privateLinkResourceName, nameof(privateLinkResourceName));
+
+ using var scope = _dashboardPrivateLinkResourcePrivateLinkResourcesClientDiagnostics.CreateScope("DashboardPrivateLinkResourceCollection.GetIfExists");
+ scope.Start();
+ try
+ {
+ var response = _dashboardPrivateLinkResourcePrivateLinkResourcesRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, privateLinkResourceName, cancellationToken: cancellationToken);
+ if (response.Value == null)
+ return new NoValueResponse(response.GetRawResponse());
+ return Response.FromValue(new DashboardPrivateLinkResource(Client, response.Value), 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/dashboard/Azure.ResourceManager.Dashboard/src/Generated/DashboardPrivateLinkResourceData.cs b/sdk/dashboard/Azure.ResourceManager.Dashboard/src/Generated/DashboardPrivateLinkResourceData.cs
new file mode 100644
index 000000000000..9a907c8d5c09
--- /dev/null
+++ b/sdk/dashboard/Azure.ResourceManager.Dashboard/src/Generated/DashboardPrivateLinkResourceData.cs
@@ -0,0 +1,54 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System.Collections.Generic;
+using Azure.Core;
+using Azure.ResourceManager.Dashboard.Models;
+using Azure.ResourceManager.Models;
+
+namespace Azure.ResourceManager.Dashboard
+{
+ ///
+ /// A class representing the DashboardPrivateLinkResource data model.
+ /// A private link resource
+ ///
+ public partial class DashboardPrivateLinkResourceData : ResourceData
+ {
+ /// Initializes a new instance of DashboardPrivateLinkResourceData.
+ public DashboardPrivateLinkResourceData()
+ {
+ RequiredMembers = new ChangeTrackingList();
+ RequiredZoneNames = new ChangeTrackingList();
+ }
+
+ /// Initializes a new instance of DashboardPrivateLinkResourceData.
+ /// The id.
+ /// The name.
+ /// The resourceType.
+ /// The systemData.
+ /// Provisioning state of the resource.
+ /// The private link resource group id.
+ /// The private link resource required member names.
+ /// The private link resource Private link DNS zone name.
+ internal DashboardPrivateLinkResourceData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, ProvisioningState? provisioningState, string groupId, IReadOnlyList requiredMembers, IList requiredZoneNames) : base(id, name, resourceType, systemData)
+ {
+ ProvisioningState = provisioningState;
+ GroupId = groupId;
+ RequiredMembers = requiredMembers;
+ RequiredZoneNames = requiredZoneNames;
+ }
+
+ /// Provisioning state of the resource.
+ public ProvisioningState? ProvisioningState { get; }
+ /// The private link resource group id.
+ public string GroupId { get; }
+ /// The private link resource required member names.
+ public IReadOnlyList RequiredMembers { get; }
+ /// The private link resource Private link DNS zone name.
+ public IList RequiredZoneNames { get; }
+ }
+}
diff --git a/sdk/dashboard/Azure.ResourceManager.Dashboard/src/Generated/Extensions/DashboardExtensions.cs b/sdk/dashboard/Azure.ResourceManager.Dashboard/src/Generated/Extensions/DashboardExtensions.cs
new file mode 100644
index 000000000000..3118bb096832
--- /dev/null
+++ b/sdk/dashboard/Azure.ResourceManager.Dashboard/src/Generated/Extensions/DashboardExtensions.cs
@@ -0,0 +1,226 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.Threading;
+using System.Threading.Tasks;
+using Azure;
+using Azure.Core;
+using Azure.ResourceManager;
+using Azure.ResourceManager.Resources;
+
+namespace Azure.ResourceManager.Dashboard
+{
+ /// A class to add extension methods to Azure.ResourceManager.Dashboard.
+ public static partial class DashboardExtensions
+ {
+ private static ResourceGroupResourceExtensionClient GetResourceGroupResourceExtensionClient(ArmResource resource)
+ {
+ return resource.GetCachedClient(client =>
+ {
+ return new ResourceGroupResourceExtensionClient(client, resource.Id);
+ });
+ }
+
+ private static ResourceGroupResourceExtensionClient GetResourceGroupResourceExtensionClient(ArmClient client, ResourceIdentifier scope)
+ {
+ return client.GetResourceClient(() =>
+ {
+ return new ResourceGroupResourceExtensionClient(client, scope);
+ });
+ }
+
+ private static SubscriptionResourceExtensionClient GetSubscriptionResourceExtensionClient(ArmResource resource)
+ {
+ return resource.GetCachedClient(client =>
+ {
+ return new SubscriptionResourceExtensionClient(client, resource.Id);
+ });
+ }
+
+ private static SubscriptionResourceExtensionClient GetSubscriptionResourceExtensionClient(ArmClient client, ResourceIdentifier scope)
+ {
+ return client.GetResourceClient(() =>
+ {
+ return new SubscriptionResourceExtensionClient(client, scope);
+ });
+ }
+ #region ManagedGrafanaResource
+ ///
+ /// Gets an object representing a along with the instance operations that can be performed on it but with no data.
+ /// You can use to create a from its components.
+ ///
+ /// The instance the method will execute against.
+ /// The resource ID of the resource to get.
+ /// Returns a object.
+ public static ManagedGrafanaResource GetManagedGrafanaResource(this ArmClient client, ResourceIdentifier id)
+ {
+ return client.GetResourceClient(() =>
+ {
+ ManagedGrafanaResource.ValidateResourceId(id);
+ return new ManagedGrafanaResource(client, id);
+ }
+ );
+ }
+ #endregion
+
+ #region DashboardPrivateEndpointConnectionResource
+ ///
+ /// Gets an object representing a along with the instance operations that can be performed on it but with no data.
+ /// You can use to create a from its components.
+ ///
+ /// The instance the method will execute against.
+ /// The resource ID of the resource to get.
+ /// Returns a object.
+ public static DashboardPrivateEndpointConnectionResource GetDashboardPrivateEndpointConnectionResource(this ArmClient client, ResourceIdentifier id)
+ {
+ return client.GetResourceClient(() =>
+ {
+ DashboardPrivateEndpointConnectionResource.ValidateResourceId(id);
+ return new DashboardPrivateEndpointConnectionResource(client, id);
+ }
+ );
+ }
+ #endregion
+
+ #region DashboardPrivateLinkResource
+ ///
+ /// Gets an object representing a along with the instance operations that can be performed on it but with no data.
+ /// You can use to create a from its components.
+ ///
+ /// The instance the method will execute against.
+ /// The resource ID of the resource to get.
+ /// Returns a object.
+ public static DashboardPrivateLinkResource GetDashboardPrivateLinkResource(this ArmClient client, ResourceIdentifier id)
+ {
+ return client.GetResourceClient(() =>
+ {
+ DashboardPrivateLinkResource.ValidateResourceId(id);
+ return new DashboardPrivateLinkResource(client, id);
+ }
+ );
+ }
+ #endregion
+
+ #region ManagedPrivateEndpointModelResource
+ ///
+ /// Gets an object representing a along with the instance operations that can be performed on it but with no data.
+ /// You can use to create a from its components.
+ ///
+ /// The instance the method will execute against.
+ /// The resource ID of the resource to get.
+ /// Returns a object.
+ public static ManagedPrivateEndpointModelResource GetManagedPrivateEndpointModelResource(this ArmClient client, ResourceIdentifier id)
+ {
+ return client.GetResourceClient(() =>
+ {
+ ManagedPrivateEndpointModelResource.ValidateResourceId(id);
+ return new ManagedPrivateEndpointModelResource(client, id);
+ }
+ );
+ }
+ #endregion
+
+ /// Gets a collection of ManagedGrafanaResources in the ResourceGroupResource.
+ /// The instance the method will execute against.
+ /// An object representing collection of ManagedGrafanaResources and their operations over a ManagedGrafanaResource.
+ public static ManagedGrafanaCollection GetManagedGrafanas(this ResourceGroupResource resourceGroupResource)
+ {
+ return GetResourceGroupResourceExtensionClient(resourceGroupResource).GetManagedGrafanas();
+ }
+
+ ///
+ /// Get the properties of a specific workspace for Grafana resource.
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Dashboard/grafana/{workspaceName}
+ ///
+ /// -
+ /// Operation Id
+ /// Grafana_Get
+ ///
+ ///
+ ///
+ /// The instance the method will execute against.
+ /// The workspace name of Azure Managed Grafana.
+ /// The cancellation token to use.
+ /// is an empty string, and was expected to be non-empty.
+ /// is null.
+ [ForwardsClientCalls]
+ public static async Task> GetManagedGrafanaAsync(this ResourceGroupResource resourceGroupResource, string workspaceName, CancellationToken cancellationToken = default)
+ {
+ return await resourceGroupResource.GetManagedGrafanas().GetAsync(workspaceName, cancellationToken).ConfigureAwait(false);
+ }
+
+ ///
+ /// Get the properties of a specific workspace for Grafana resource.
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Dashboard/grafana/{workspaceName}
+ ///
+ /// -
+ /// Operation Id
+ /// Grafana_Get
+ ///
+ ///
+ ///
+ /// The instance the method will execute against.
+ /// The workspace name of Azure Managed Grafana.
+ /// The cancellation token to use.
+ /// is an empty string, and was expected to be non-empty.
+ /// is null.
+ [ForwardsClientCalls]
+ public static Response GetManagedGrafana(this ResourceGroupResource resourceGroupResource, string workspaceName, CancellationToken cancellationToken = default)
+ {
+ return resourceGroupResource.GetManagedGrafanas().Get(workspaceName, cancellationToken);
+ }
+
+ ///
+ /// List all resources of workspaces for Grafana under the specified subscription.
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/providers/Microsoft.Dashboard/grafana
+ ///
+ /// -
+ /// Operation Id
+ /// Grafana_List
+ ///
+ ///
+ ///
+ /// The instance the method will execute against.
+ /// The cancellation token to use.
+ /// An async collection of that may take multiple service requests to iterate over.
+ public static AsyncPageable GetManagedGrafanasAsync(this SubscriptionResource subscriptionResource, CancellationToken cancellationToken = default)
+ {
+ return GetSubscriptionResourceExtensionClient(subscriptionResource).GetManagedGrafanasAsync(cancellationToken);
+ }
+
+ ///
+ /// List all resources of workspaces for Grafana under the specified subscription.
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/providers/Microsoft.Dashboard/grafana
+ ///
+ /// -
+ /// Operation Id
+ /// Grafana_List
+ ///
+ ///
+ ///
+ /// The instance the method will execute against.
+ /// The cancellation token to use.
+ /// A collection of that may take multiple service requests to iterate over.
+ public static Pageable GetManagedGrafanas(this SubscriptionResource subscriptionResource, CancellationToken cancellationToken = default)
+ {
+ return GetSubscriptionResourceExtensionClient(subscriptionResource).GetManagedGrafanas(cancellationToken);
+ }
+ }
+}
diff --git a/sdk/dashboard/Azure.ResourceManager.Dashboard/src/Generated/Extensions/ResourceGroupResourceExtensionClient.cs b/sdk/dashboard/Azure.ResourceManager.Dashboard/src/Generated/Extensions/ResourceGroupResourceExtensionClient.cs
new file mode 100644
index 000000000000..7a5d6b3576f4
--- /dev/null
+++ b/sdk/dashboard/Azure.ResourceManager.Dashboard/src/Generated/Extensions/ResourceGroupResourceExtensionClient.cs
@@ -0,0 +1,41 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using Azure.Core;
+using Azure.ResourceManager;
+
+namespace Azure.ResourceManager.Dashboard
+{
+ /// A class to add extension methods to ResourceGroupResource.
+ internal partial class ResourceGroupResourceExtensionClient : ArmResource
+ {
+ /// Initializes a new instance of the class for mocking.
+ protected ResourceGroupResourceExtensionClient()
+ {
+ }
+
+ /// 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 ResourceGroupResourceExtensionClient(ArmClient client, ResourceIdentifier id) : base(client, id)
+ {
+ }
+
+ private string GetApiVersionOrNull(ResourceType resourceType)
+ {
+ TryGetApiVersion(resourceType, out string apiVersion);
+ return apiVersion;
+ }
+
+ /// Gets a collection of ManagedGrafanaResources in the ResourceGroupResource.
+ /// An object representing collection of ManagedGrafanaResources and their operations over a ManagedGrafanaResource.
+ public virtual ManagedGrafanaCollection GetManagedGrafanas()
+ {
+ return GetCachedClient(Client => new ManagedGrafanaCollection(Client, Id));
+ }
+ }
+}
diff --git a/sdk/dashboard/Azure.ResourceManager.Dashboard/src/Generated/Extensions/SubscriptionResourceExtensionClient.cs b/sdk/dashboard/Azure.ResourceManager.Dashboard/src/Generated/Extensions/SubscriptionResourceExtensionClient.cs
new file mode 100644
index 000000000000..43eb82611c00
--- /dev/null
+++ b/sdk/dashboard/Azure.ResourceManager.Dashboard/src/Generated/Extensions/SubscriptionResourceExtensionClient.cs
@@ -0,0 +1,88 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System.Threading;
+using Autorest.CSharp.Core;
+using Azure;
+using Azure.Core;
+using Azure.Core.Pipeline;
+using Azure.ResourceManager;
+
+namespace Azure.ResourceManager.Dashboard
+{
+ /// A class to add extension methods to SubscriptionResource.
+ internal partial class SubscriptionResourceExtensionClient : ArmResource
+ {
+ private ClientDiagnostics _managedGrafanaGrafanaClientDiagnostics;
+ private GrafanaRestOperations _managedGrafanaGrafanaRestClient;
+
+ /// Initializes a new instance of the class for mocking.
+ protected SubscriptionResourceExtensionClient()
+ {
+ }
+
+ /// 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 SubscriptionResourceExtensionClient(ArmClient client, ResourceIdentifier id) : base(client, id)
+ {
+ }
+
+ private ClientDiagnostics ManagedGrafanaGrafanaClientDiagnostics => _managedGrafanaGrafanaClientDiagnostics ??= new ClientDiagnostics("Azure.ResourceManager.Dashboard", ManagedGrafanaResource.ResourceType.Namespace, Diagnostics);
+ private GrafanaRestOperations ManagedGrafanaGrafanaRestClient => _managedGrafanaGrafanaRestClient ??= new GrafanaRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, GetApiVersionOrNull(ManagedGrafanaResource.ResourceType));
+
+ private string GetApiVersionOrNull(ResourceType resourceType)
+ {
+ TryGetApiVersion(resourceType, out string apiVersion);
+ return apiVersion;
+ }
+
+ ///
+ /// List all resources of workspaces for Grafana under the specified subscription.
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/providers/Microsoft.Dashboard/grafana
+ ///
+ /// -
+ /// Operation Id
+ /// Grafana_List
+ ///
+ ///
+ ///
+ /// The cancellation token to use.
+ /// An async collection of that may take multiple service requests to iterate over.
+ public virtual AsyncPageable GetManagedGrafanasAsync(CancellationToken cancellationToken = default)
+ {
+ HttpMessage FirstPageRequest(int? pageSizeHint) => ManagedGrafanaGrafanaRestClient.CreateListRequest(Id.SubscriptionId);
+ HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => ManagedGrafanaGrafanaRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId);
+ return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => new ManagedGrafanaResource(Client, ManagedGrafanaData.DeserializeManagedGrafanaData(e)), ManagedGrafanaGrafanaClientDiagnostics, Pipeline, "SubscriptionResourceExtensionClient.GetManagedGrafanas", "value", "nextLink", cancellationToken);
+ }
+
+ ///
+ /// List all resources of workspaces for Grafana under the specified subscription.
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/providers/Microsoft.Dashboard/grafana
+ ///
+ /// -
+ /// Operation Id
+ /// Grafana_List
+ ///
+ ///
+ ///
+ /// The cancellation token to use.
+ /// A collection of that may take multiple service requests to iterate over.
+ public virtual Pageable GetManagedGrafanas(CancellationToken cancellationToken = default)
+ {
+ HttpMessage FirstPageRequest(int? pageSizeHint) => ManagedGrafanaGrafanaRestClient.CreateListRequest(Id.SubscriptionId);
+ HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => ManagedGrafanaGrafanaRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId);
+ return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new ManagedGrafanaResource(Client, ManagedGrafanaData.DeserializeManagedGrafanaData(e)), ManagedGrafanaGrafanaClientDiagnostics, Pipeline, "SubscriptionResourceExtensionClient.GetManagedGrafanas", "value", "nextLink", cancellationToken);
+ }
+ }
+}
diff --git a/sdk/dashboard/Azure.ResourceManager.Dashboard/src/Generated/LongRunningOperation/DashboardArmOperation.cs b/sdk/dashboard/Azure.ResourceManager.Dashboard/src/Generated/LongRunningOperation/DashboardArmOperation.cs
new file mode 100644
index 000000000000..392b19157a34
--- /dev/null
+++ b/sdk/dashboard/Azure.ResourceManager.Dashboard/src/Generated/LongRunningOperation/DashboardArmOperation.cs
@@ -0,0 +1,70 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.Threading;
+using System.Threading.Tasks;
+using Azure;
+using Azure.Core;
+using Azure.Core.Pipeline;
+using Azure.ResourceManager;
+
+namespace Azure.ResourceManager.Dashboard
+{
+#pragma warning disable SA1649 // File name should match first type name
+ internal class DashboardArmOperation : ArmOperation
+#pragma warning restore SA1649 // File name should match first type name
+ {
+ private readonly OperationInternal _operation;
+
+ /// Initializes a new instance of DashboardArmOperation for mocking.
+ protected DashboardArmOperation()
+ {
+ }
+
+ internal DashboardArmOperation(Response response)
+ {
+ _operation = OperationInternal.Succeeded(response);
+ }
+
+ internal DashboardArmOperation(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null)
+ {
+ var nextLinkOperation = NextLinkOperationImplementation.Create(pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue);
+ _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "DashboardArmOperation", fallbackStrategy: new SequentialDelayStrategy());
+ }
+
+ ///
+#pragma warning disable CA1822
+ [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
+ public override string Id => throw new NotImplementedException();
+#pragma warning restore CA1822
+
+ ///
+ public override bool HasCompleted => _operation.HasCompleted;
+
+ ///
+ public override Response GetRawResponse() => _operation.RawResponse;
+
+ ///
+ public override Response UpdateStatus(CancellationToken cancellationToken = default) => _operation.UpdateStatus(cancellationToken);
+
+ ///
+ public override ValueTask UpdateStatusAsync(CancellationToken cancellationToken = default) => _operation.UpdateStatusAsync(cancellationToken);
+
+ ///
+ public override Response WaitForCompletionResponse(CancellationToken cancellationToken = default) => _operation.WaitForCompletionResponse(cancellationToken);
+
+ ///
+ public override Response WaitForCompletionResponse(TimeSpan pollingInterval, CancellationToken cancellationToken = default) => _operation.WaitForCompletionResponse(pollingInterval, cancellationToken);
+
+ ///
+ public override ValueTask WaitForCompletionResponseAsync(CancellationToken cancellationToken = default) => _operation.WaitForCompletionResponseAsync(cancellationToken);
+
+ ///
+ public override ValueTask WaitForCompletionResponseAsync(TimeSpan pollingInterval, CancellationToken cancellationToken = default) => _operation.WaitForCompletionResponseAsync(pollingInterval, cancellationToken);
+ }
+}
diff --git a/sdk/dashboard/Azure.ResourceManager.Dashboard/src/Generated/LongRunningOperation/DashboardArmOperationOfT.cs b/sdk/dashboard/Azure.ResourceManager.Dashboard/src/Generated/LongRunningOperation/DashboardArmOperationOfT.cs
new file mode 100644
index 000000000000..7e004cc2cddf
--- /dev/null
+++ b/sdk/dashboard/Azure.ResourceManager.Dashboard/src/Generated/LongRunningOperation/DashboardArmOperationOfT.cs
@@ -0,0 +1,76 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.Threading;
+using System.Threading.Tasks;
+using Azure;
+using Azure.Core;
+using Azure.Core.Pipeline;
+using Azure.ResourceManager;
+
+namespace Azure.ResourceManager.Dashboard
+{
+#pragma warning disable SA1649 // File name should match first type name
+ internal class DashboardArmOperation : ArmOperation
+#pragma warning restore SA1649 // File name should match first type name
+ {
+ private readonly OperationInternal _operation;
+
+ /// Initializes a new instance of DashboardArmOperation for mocking.
+ protected DashboardArmOperation()
+ {
+ }
+
+ internal DashboardArmOperation(Response response)
+ {
+ _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value);
+ }
+
+ internal DashboardArmOperation(IOperationSource source, ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null)
+ {
+ var nextLinkOperation = NextLinkOperationImplementation.Create(source, pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue);
+ _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "DashboardArmOperation", fallbackStrategy: new SequentialDelayStrategy());
+ }
+
+ ///
+#pragma warning disable CA1822
+ [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
+ public override string Id => throw new NotImplementedException();
+#pragma warning restore CA1822
+
+ ///
+ public override T Value => _operation.Value;
+
+ ///
+ public override bool HasValue => _operation.HasValue;
+
+ ///
+ public override bool HasCompleted => _operation.HasCompleted;
+
+ ///
+ public override Response GetRawResponse() => _operation.RawResponse;
+
+ ///
+ public override Response UpdateStatus(CancellationToken cancellationToken = default) => _operation.UpdateStatus(cancellationToken);
+
+ ///
+ public override ValueTask UpdateStatusAsync(CancellationToken cancellationToken = default) => _operation.UpdateStatusAsync(cancellationToken);
+
+ ///
+ public override Response WaitForCompletion(CancellationToken cancellationToken = default) => _operation.WaitForCompletion(cancellationToken);
+
+ ///
+ public override Response WaitForCompletion(TimeSpan pollingInterval, CancellationToken cancellationToken = default) => _operation.WaitForCompletion(pollingInterval, cancellationToken);
+
+ ///
+ public override ValueTask> WaitForCompletionAsync(CancellationToken cancellationToken = default) => _operation.WaitForCompletionAsync(cancellationToken);
+
+ ///
+ public override ValueTask> WaitForCompletionAsync(TimeSpan pollingInterval, CancellationToken cancellationToken = default) => _operation.WaitForCompletionAsync(pollingInterval, cancellationToken);
+ }
+}
diff --git a/sdk/dashboard/Azure.ResourceManager.Dashboard/src/Generated/LongRunningOperation/DashboardPrivateEndpointConnectionOperationSource.cs b/sdk/dashboard/Azure.ResourceManager.Dashboard/src/Generated/LongRunningOperation/DashboardPrivateEndpointConnectionOperationSource.cs
new file mode 100644
index 000000000000..de75443f400d
--- /dev/null
+++ b/sdk/dashboard/Azure.ResourceManager.Dashboard/src/Generated/LongRunningOperation/DashboardPrivateEndpointConnectionOperationSource.cs
@@ -0,0 +1,40 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System.Text.Json;
+using System.Threading;
+using System.Threading.Tasks;
+using Azure;
+using Azure.Core;
+using Azure.ResourceManager;
+
+namespace Azure.ResourceManager.Dashboard
+{
+ internal class DashboardPrivateEndpointConnectionOperationSource : IOperationSource
+ {
+ private readonly ArmClient _client;
+
+ internal DashboardPrivateEndpointConnectionOperationSource(ArmClient client)
+ {
+ _client = client;
+ }
+
+ DashboardPrivateEndpointConnectionResource IOperationSource