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..88f8b6ae368b
--- /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("{21FA931C-C6FA-4B65-B2F5-D5E3D7B1A07A}") = "Azure.ResourceManager.Dashboard", "src\Azure.ResourceManager.Dashboard.csproj", "{021A0DC3-36FA-44A5-8A53-DFD761B8DD2D}"
+EndProject
+Project("{21FA931C-C6FA-4B65-B2F5-D5E3D7B1A07A}") = "Azure.ResourceManager.Dashboard.Tests", "tests\Azure.ResourceManager.Dashboard.Tests.csproj", "{2A70FAB7-1C1A-4961-B746-B683C4612A24}"
+EndProject
+Project("{21FA931C-C6FA-4B65-B2F5-D5E3D7B1A07A}") = "Azure.ResourceManager.Dashboard.Samples", "samples\Azure.ResourceManager.Dashboard.Samples.csproj", "{B27EDBB5-1E8B-4727-88D8-9F46310EFA9A}"
+EndProject
+Global
+ GlobalSection(SolutionProperties) = preSolution
+ HideSolutionNode = FALSE
+ EndGlobalSection
+ GlobalSection(ExtensibilityGlobals) = postSolution
+ SolutionGuid = {10ECCAA8-CC4F-4DA8-8ABF-0CFFFFA677C1}
+ 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
+ {021A0DC3-36FA-44A5-8A53-DFD761B8DD2D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {021A0DC3-36FA-44A5-8A53-DFD761B8DD2D}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {021A0DC3-36FA-44A5-8A53-DFD761B8DD2D}.Debug|x64.ActiveCfg = Debug|Any CPU
+ {021A0DC3-36FA-44A5-8A53-DFD761B8DD2D}.Debug|x64.Build.0 = Debug|Any CPU
+ {021A0DC3-36FA-44A5-8A53-DFD761B8DD2D}.Debug|x86.ActiveCfg = Debug|Any CPU
+ {021A0DC3-36FA-44A5-8A53-DFD761B8DD2D}.Debug|x86.Build.0 = Debug|Any CPU
+ {021A0DC3-36FA-44A5-8A53-DFD761B8DD2D}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {021A0DC3-36FA-44A5-8A53-DFD761B8DD2D}.Release|Any CPU.Build.0 = Release|Any CPU
+ {021A0DC3-36FA-44A5-8A53-DFD761B8DD2D}.Release|x64.ActiveCfg = Release|Any CPU
+ {021A0DC3-36FA-44A5-8A53-DFD761B8DD2D}.Release|x64.Build.0 = Release|Any CPU
+ {021A0DC3-36FA-44A5-8A53-DFD761B8DD2D}.Release|x86.ActiveCfg = Release|Any CPU
+ {021A0DC3-36FA-44A5-8A53-DFD761B8DD2D}.Release|x86.Build.0 = Release|Any CPU
+ {2A70FAB7-1C1A-4961-B746-B683C4612A24}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {2A70FAB7-1C1A-4961-B746-B683C4612A24}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {2A70FAB7-1C1A-4961-B746-B683C4612A24}.Debug|x64.ActiveCfg = Debug|Any CPU
+ {2A70FAB7-1C1A-4961-B746-B683C4612A24}.Debug|x64.Build.0 = Debug|Any CPU
+ {2A70FAB7-1C1A-4961-B746-B683C4612A24}.Debug|x86.ActiveCfg = Debug|Any CPU
+ {2A70FAB7-1C1A-4961-B746-B683C4612A24}.Debug|x86.Build.0 = Debug|Any CPU
+ {2A70FAB7-1C1A-4961-B746-B683C4612A24}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {2A70FAB7-1C1A-4961-B746-B683C4612A24}.Release|Any CPU.Build.0 = Release|Any CPU
+ {2A70FAB7-1C1A-4961-B746-B683C4612A24}.Release|x64.ActiveCfg = Release|Any CPU
+ {2A70FAB7-1C1A-4961-B746-B683C4612A24}.Release|x64.Build.0 = Release|Any CPU
+ {2A70FAB7-1C1A-4961-B746-B683C4612A24}.Release|x86.ActiveCfg = Release|Any CPU
+ {2A70FAB7-1C1A-4961-B746-B683C4612A24}.Release|x86.Build.0 = Release|Any CPU
+ {B27EDBB5-1E8B-4727-88D8-9F46310EFA9A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {B27EDBB5-1E8B-4727-88D8-9F46310EFA9A}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {B27EDBB5-1E8B-4727-88D8-9F46310EFA9A}.Debug|x64.ActiveCfg = Debug|Any CPU
+ {B27EDBB5-1E8B-4727-88D8-9F46310EFA9A}.Debug|x64.Build.0 = Debug|Any CPU
+ {B27EDBB5-1E8B-4727-88D8-9F46310EFA9A}.Debug|x86.ActiveCfg = Debug|Any CPU
+ {B27EDBB5-1E8B-4727-88D8-9F46310EFA9A}.Debug|x86.Build.0 = Debug|Any CPU
+ {B27EDBB5-1E8B-4727-88D8-9F46310EFA9A}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {B27EDBB5-1E8B-4727-88D8-9F46310EFA9A}.Release|Any CPU.Build.0 = Release|Any CPU
+ {B27EDBB5-1E8B-4727-88D8-9F46310EFA9A}.Release|x64.ActiveCfg = Release|Any CPU
+ {B27EDBB5-1E8B-4727-88D8-9F46310EFA9A}.Release|x64.Build.0 = Release|Any CPU
+ {B27EDBB5-1E8B-4727-88D8-9F46310EFA9A}.Release|x86.ActiveCfg = Release|Any CPU
+ {B27EDBB5-1E8B-4727-88D8-9F46310EFA9A}.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..1a85987a15b9
--- /dev/null
+++ b/sdk/dashboard/Azure.ResourceManager.Dashboard/CHANGELOG.md
@@ -0,0 +1,19 @@
+# Release History
+
+## 1.0.0-beta.1 (Unreleased)
+
+
+
+### Features Added
+
+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/assets.json b/sdk/dashboard/Azure.ResourceManager.Dashboard/assets.json
new file mode 100644
index 000000000000..630a09b11156
--- /dev/null
+++ b/sdk/dashboard/Azure.ResourceManager.Dashboard/assets.json
@@ -0,0 +1,6 @@
+{
+ "AssetsRepo": "Azure/azure-sdk-assets",
+ "AssetsRepoPrefixPath": "net",
+ "TagPrefix": "net/dashboard/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/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/Properties/AssemblyInfo.cs b/sdk/dashboard/Azure.ResourceManager.Dashboard/src/Properties/AssemblyInfo.cs
new file mode 100644
index 000000000000..78a000daad71
--- /dev/null
+++ b/sdk/dashboard/Azure.ResourceManager.Dashboard/src/Properties/AssemblyInfo.cs
@@ -0,0 +1,9 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+using System.Runtime.CompilerServices;
+
+[assembly: Azure.Core.AzureResourceProviderNamespace("dashboard")]
+
+[assembly: InternalsVisibleTo("DynamicProxyGenAssembly2, PublicKey=0024000004800000940000000602000000240000525341310004000001000100c547cac37abd99c8db225ef2f6c8a3602f3b3606cc9891605d02baa56104f4cfc0734aa39b93bf7852f7d9266654753cc297e7d2edfe0bac1cdcf9f717241550e0a7b191195b7667bb4f64bcb8e2121380fd1d9d46ad2d92d2d15605093924cceaf74c4861eff62abf69b9291ed0a340e113be11e6a7d3113e92484cf7045cc7")]
+[assembly: InternalsVisibleTo("Azure.ResourceManager.Dashboard.Tests, PublicKey=0024000004800000940000000602000000240000525341310004000001000100d15ddcb29688295338af4b7686603fe614abd555e09efba8fb88ee09e1f7b1ccaeed2e8f823fa9eef3fdd60217fc012ea67d2479751a0b8c087a4185541b851bd8b16f8d91b840e51b1cb0ba6fe647997e57429265e85ef62d565db50a69ae1647d54d7bd855e4db3d8a91510e5bcbd0edfbbecaa20a7bd9ae74593daa7b11b4")]
diff --git a/sdk/dashboard/Azure.ResourceManager.Dashboard/tests/Azure.ResourceManager.Dashboard.Tests.csproj b/sdk/dashboard/Azure.ResourceManager.Dashboard/tests/Azure.ResourceManager.Dashboard.Tests.csproj
new file mode 100644
index 000000000000..60b6f01df3e7
--- /dev/null
+++ b/sdk/dashboard/Azure.ResourceManager.Dashboard/tests/Azure.ResourceManager.Dashboard.Tests.csproj
@@ -0,0 +1,5 @@
+
+
+
+
+
diff --git a/sdk/dashboard/Azure.ResourceManager.Dashboard/tests/dashboardManagementTestBase.cs b/sdk/dashboard/Azure.ResourceManager.Dashboard/tests/dashboardManagementTestBase.cs
new file mode 100644
index 000000000000..5230f8059857
--- /dev/null
+++ b/sdk/dashboard/Azure.ResourceManager.Dashboard/tests/dashboardManagementTestBase.cs
@@ -0,0 +1,43 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+using Azure.Core;
+using Azure.Core.TestFramework;
+using Azure.ResourceManager.Resources;
+using Azure.ResourceManager.TestFramework;
+using NUnit.Framework;
+using System.Threading.Tasks;
+
+namespace Azure.ResourceManager.Dashboard.Tests
+{
+ public class dashboardManagementTestBase : ManagementRecordedTestBase
+ {
+ protected ArmClient Client { get; private set; }
+ protected SubscriptionResource DefaultSubscription { get; private set; }
+
+ protected dashboardManagementTestBase(bool isAsync, RecordedTestMode mode)
+ : base(isAsync, mode)
+ {
+ }
+
+ protected dashboardManagementTestBase(bool isAsync)
+ : base(isAsync)
+ {
+ }
+
+ [SetUp]
+ public async Task CreateCommonClient()
+ {
+ Client = GetArmClient();
+ DefaultSubscription = await Client.GetDefaultSubscriptionAsync().ConfigureAwait(false);
+ }
+
+ protected async Task CreateResourceGroup(SubscriptionResource subscription, string rgNamePrefix, AzureLocation location)
+ {
+ string rgName = Recording.GenerateAssetName(rgNamePrefix);
+ ResourceGroupData input = new ResourceGroupData(location);
+ var lro = await subscription.GetResourceGroups().CreateOrUpdateAsync(WaitUntil.Completed, rgName, input);
+ return lro.Value;
+ }
+ }
+}
diff --git a/sdk/dashboard/Azure.ResourceManager.Dashboard/tests/dashboardManagementTestEnvironment.cs b/sdk/dashboard/Azure.ResourceManager.Dashboard/tests/dashboardManagementTestEnvironment.cs
new file mode 100644
index 000000000000..68a9a746a231
--- /dev/null
+++ b/sdk/dashboard/Azure.ResourceManager.Dashboard/tests/dashboardManagementTestEnvironment.cs
@@ -0,0 +1,11 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+using Azure.Core.TestFramework;
+
+namespace Azure.ResourceManager.Dashboard.Tests
+{
+ public class dashboardManagementTestEnvironment : TestEnvironment
+ {
+ }
+}
\ No newline at end of file
diff --git a/sdk/dashboard/Azure.ResourceManager.Dashboard/tsp-location.yaml b/sdk/dashboard/Azure.ResourceManager.Dashboard/tsp-location.yaml
new file mode 100644
index 000000000000..22e38baaa107
--- /dev/null
+++ b/sdk/dashboard/Azure.ResourceManager.Dashboard/tsp-location.yaml
@@ -0,0 +1,3 @@
+directory: specification/dashboard/TypeSpecDirectory
+commit: CommitId
+repo: Azure/azure-rest-api-specs
\ No newline at end of file
diff --git a/sdk/dashboard/ci.mgmt.yml b/sdk/dashboard/ci.mgmt.yml
new file mode 100644
index 000000000000..661af42f8233
--- /dev/null
+++ b/sdk/dashboard/ci.mgmt.yml
@@ -0,0 +1,24 @@
+# NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file.
+
+trigger: none
+
+pr:
+ branches:
+ include:
+ - main
+ - feature/*
+ - hotfix/*
+ - release/*
+ paths:
+ include:
+ - sdk/dashboard/ci.mgmt.yml
+ - sdk/dashboard/Azure.ResourceManager.Dashboard/
+
+extends:
+ template: /eng/pipelines/templates/stages/archetype-sdk-client.yml
+ parameters:
+ ServiceDirectory: dashboard
+ LimitForPullRequest: true
+ Artifacts:
+ - name: Azure.ResourceManager.Dashboard
+ safeName: AzureResourceManagerDashboard
diff --git a/sdk/grafana/Azure.ResourceManager.Grafana/api/Azure.ResourceManager.Grafana.netstandard2.0.cs b/sdk/grafana/Azure.ResourceManager.Grafana/api/Azure.ResourceManager.Grafana.netstandard2.0.cs
index 930d055dd63c..34c852659ee3 100644
--- a/sdk/grafana/Azure.ResourceManager.Grafana/api/Azure.ResourceManager.Grafana.netstandard2.0.cs
+++ b/sdk/grafana/Azure.ResourceManager.Grafana/api/Azure.ResourceManager.Grafana.netstandard2.0.cs
@@ -4,6 +4,7 @@ public static partial class GrafanaExtensions
{
public static Azure.ResourceManager.Grafana.GrafanaPrivateEndpointConnectionResource GetGrafanaPrivateEndpointConnectionResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; }
public static Azure.ResourceManager.Grafana.GrafanaPrivateLinkResource GetGrafanaPrivateLinkResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; }
+ public static Azure.ResourceManager.Grafana.IntegrationFabricResource GetIntegrationFabricResource(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.Grafana.ManagedGrafanaResource GetManagedGrafanaResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; }
@@ -106,6 +107,59 @@ protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter write
string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
}
+ public partial class IntegrationFabricCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable
+ {
+ protected IntegrationFabricCollection() { }
+ public virtual Azure.ResourceManager.ArmOperation CreateOrUpdate(Azure.WaitUntil waitUntil, string integrationFabricName, Azure.ResourceManager.Grafana.IntegrationFabricData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public virtual System.Threading.Tasks.Task> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, string integrationFabricName, Azure.ResourceManager.Grafana.IntegrationFabricData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public virtual Azure.Response Exists(string integrationFabricName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public virtual System.Threading.Tasks.Task> ExistsAsync(string integrationFabricName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public virtual Azure.Response Get(string integrationFabricName, 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 integrationFabricName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public virtual Azure.NullableResponse GetIfExists(string integrationFabricName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public virtual System.Threading.Tasks.Task> GetIfExistsAsync(string integrationFabricName, 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 IntegrationFabricData : Azure.ResourceManager.Models.TrackedResourceData, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel
+ {
+ public IntegrationFabricData(Azure.Core.AzureLocation location) { }
+ public Azure.ResourceManager.Grafana.Models.IntegrationFabricProperties Properties { get { throw null; } set { } }
+ protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { }
+ Azure.ResourceManager.Grafana.IntegrationFabricData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { }
+ Azure.ResourceManager.Grafana.IntegrationFabricData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ }
+ public partial class IntegrationFabricResource : Azure.ResourceManager.ArmResource, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel
+ {
+ public static readonly Azure.Core.ResourceType ResourceType;
+ protected IntegrationFabricResource() { }
+ public virtual Azure.ResourceManager.Grafana.IntegrationFabricData 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 integrationFabricName) { 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; }
+ Azure.ResourceManager.Grafana.IntegrationFabricData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { }
+ Azure.ResourceManager.Grafana.IntegrationFabricData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ public virtual Azure.ResourceManager.ArmOperation Update(Azure.WaitUntil waitUntil, Azure.ResourceManager.Grafana.Models.IntegrationFabricPatch patch, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.Grafana.Models.IntegrationFabricPatch patch, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ }
public partial class ManagedGrafanaCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable
{
protected ManagedGrafanaCollection() { }
@@ -159,6 +213,9 @@ protected ManagedGrafanaResource() { }
public virtual Azure.Response GetGrafanaPrivateLinkResource(string privateLinkResourceName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
public virtual System.Threading.Tasks.Task> GetGrafanaPrivateLinkResourceAsync(string privateLinkResourceName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
public virtual Azure.ResourceManager.Grafana.GrafanaPrivateLinkResourceCollection GetGrafanaPrivateLinkResources() { throw null; }
+ public virtual Azure.Response GetIntegrationFabric(string integrationFabricName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public virtual System.Threading.Tasks.Task> GetIntegrationFabricAsync(string integrationFabricName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public virtual Azure.ResourceManager.Grafana.IntegrationFabricCollection GetIntegrationFabrics() { 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.Grafana.ManagedPrivateEndpointModelCollection GetManagedPrivateEndpointModels() { throw null; }
@@ -244,6 +301,7 @@ public partial class MockableGrafanaArmClient : Azure.ResourceManager.ArmResourc
protected MockableGrafanaArmClient() { }
public virtual Azure.ResourceManager.Grafana.GrafanaPrivateEndpointConnectionResource GetGrafanaPrivateEndpointConnectionResource(Azure.Core.ResourceIdentifier id) { throw null; }
public virtual Azure.ResourceManager.Grafana.GrafanaPrivateLinkResource GetGrafanaPrivateLinkResource(Azure.Core.ResourceIdentifier id) { throw null; }
+ public virtual Azure.ResourceManager.Grafana.IntegrationFabricResource GetIntegrationFabricResource(Azure.Core.ResourceIdentifier id) { throw null; }
public virtual Azure.ResourceManager.Grafana.ManagedGrafanaResource GetManagedGrafanaResource(Azure.Core.ResourceIdentifier id) { throw null; }
public virtual Azure.ResourceManager.Grafana.ManagedPrivateEndpointModelResource GetManagedPrivateEndpointModelResource(Azure.Core.ResourceIdentifier id) { throw null; }
}
@@ -270,8 +328,10 @@ public static partial class ArmGrafanaModelFactory
public static Azure.ResourceManager.Grafana.Models.GrafanaPlugin GrafanaPlugin(string pluginId = null) { throw null; }
public static Azure.ResourceManager.Grafana.GrafanaPrivateEndpointConnectionData GrafanaPrivateEndpointConnectionData(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.Grafana.Models.GrafanaPrivateLinkServiceConnectionState connectionState = null, System.Collections.Generic.IEnumerable groupIds = null, Azure.ResourceManager.Grafana.Models.GrafanaPrivateEndpointConnectionProvisioningState? provisioningState = default(Azure.ResourceManager.Grafana.Models.GrafanaPrivateEndpointConnectionProvisioningState?)) { throw null; }
public static Azure.ResourceManager.Grafana.GrafanaPrivateLinkResourceData GrafanaPrivateLinkResourceData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.Grafana.Models.GrafanaProvisioningState? provisioningState = default(Azure.ResourceManager.Grafana.Models.GrafanaProvisioningState?), string groupId = null, System.Collections.Generic.IEnumerable requiredMembers = null, System.Collections.Generic.IEnumerable requiredZoneNames = null) { throw null; }
+ public static Azure.ResourceManager.Grafana.IntegrationFabricData IntegrationFabricData(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.Grafana.Models.IntegrationFabricProperties properties = null) { throw null; }
+ public static Azure.ResourceManager.Grafana.Models.IntegrationFabricProperties IntegrationFabricProperties(Azure.ResourceManager.Grafana.Models.GrafanaProvisioningState? provisioningState = default(Azure.ResourceManager.Grafana.Models.GrafanaProvisioningState?), Azure.Core.ResourceIdentifier targetResourceId = null, Azure.Core.ResourceIdentifier dataSourceResourceId = null, System.Collections.Generic.IEnumerable scenarios = null) { throw null; }
public static Azure.ResourceManager.Grafana.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.Grafana.Models.ManagedGrafanaProperties properties = null, Azure.ResourceManager.Models.ManagedServiceIdentity identity = null) { throw null; }
- public static Azure.ResourceManager.Grafana.Models.ManagedGrafanaProperties ManagedGrafanaProperties(Azure.ResourceManager.Grafana.Models.GrafanaProvisioningState? provisioningState = default(Azure.ResourceManager.Grafana.Models.GrafanaProvisioningState?), string grafanaVersion = null, string endpoint = null, Azure.ResourceManager.Grafana.Models.GrafanaPublicNetworkAccess? publicNetworkAccess = default(Azure.ResourceManager.Grafana.Models.GrafanaPublicNetworkAccess?), Azure.ResourceManager.Grafana.Models.GrafanaZoneRedundancy? zoneRedundancy = default(Azure.ResourceManager.Grafana.Models.GrafanaZoneRedundancy?), Azure.ResourceManager.Grafana.Models.GrafanaApiKey? apiKey = default(Azure.ResourceManager.Grafana.Models.GrafanaApiKey?), Azure.ResourceManager.Grafana.Models.DeterministicOutboundIP? deterministicOutboundIP = default(Azure.ResourceManager.Grafana.Models.DeterministicOutboundIP?), System.Collections.Generic.IEnumerable outboundIPs = null, System.Collections.Generic.IEnumerable privateEndpointConnections = null, Azure.ResourceManager.Grafana.Models.AutoGeneratedDomainNameLabelScope? autoGeneratedDomainNameLabelScope = default(Azure.ResourceManager.Grafana.Models.AutoGeneratedDomainNameLabelScope?), System.Collections.Generic.IEnumerable monitorWorkspaceIntegrations = null, Azure.ResourceManager.Grafana.Models.EnterpriseConfigurations enterpriseConfigurations = null, Azure.ResourceManager.Grafana.Models.Smtp grafanaConfigurationsSmtp = null, System.Collections.Generic.IDictionary grafanaPlugins = null, string grafanaMajorVersion = null) { throw null; }
+ public static Azure.ResourceManager.Grafana.Models.ManagedGrafanaProperties ManagedGrafanaProperties(Azure.ResourceManager.Grafana.Models.GrafanaProvisioningState? provisioningState = default(Azure.ResourceManager.Grafana.Models.GrafanaProvisioningState?), string grafanaVersion = null, string endpoint = null, Azure.ResourceManager.Grafana.Models.GrafanaPublicNetworkAccess? publicNetworkAccess = default(Azure.ResourceManager.Grafana.Models.GrafanaPublicNetworkAccess?), Azure.ResourceManager.Grafana.Models.GrafanaZoneRedundancy? zoneRedundancy = default(Azure.ResourceManager.Grafana.Models.GrafanaZoneRedundancy?), Azure.ResourceManager.Grafana.Models.GrafanaApiKey? apiKey = default(Azure.ResourceManager.Grafana.Models.GrafanaApiKey?), Azure.ResourceManager.Grafana.Models.DeterministicOutboundIP? deterministicOutboundIP = default(Azure.ResourceManager.Grafana.Models.DeterministicOutboundIP?), System.Collections.Generic.IEnumerable outboundIPs = null, System.Collections.Generic.IEnumerable privateEndpointConnections = null, Azure.ResourceManager.Grafana.Models.AutoGeneratedDomainNameLabelScope? autoGeneratedDomainNameLabelScope = default(Azure.ResourceManager.Grafana.Models.AutoGeneratedDomainNameLabelScope?), System.Collections.Generic.IEnumerable monitorWorkspaceIntegrations = null, Azure.ResourceManager.Grafana.Models.EnterpriseConfigurations enterpriseConfigurations = null, Azure.ResourceManager.Grafana.Models.GrafanaConfigurations grafanaConfigurations = null, System.Collections.Generic.IDictionary grafanaPlugins = null, string grafanaMajorVersion = null) { throw null; }
public static Azure.ResourceManager.Grafana.Models.ManagedPrivateEndpointConnectionState ManagedPrivateEndpointConnectionState(Azure.ResourceManager.Grafana.Models.ManagedPrivateEndpointConnectionStatus? status = default(Azure.ResourceManager.Grafana.Models.ManagedPrivateEndpointConnectionStatus?), string description = null) { throw null; }
public static Azure.ResourceManager.Grafana.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.Grafana.Models.GrafanaProvisioningState? provisioningState = default(Azure.ResourceManager.Grafana.Models.GrafanaProvisioningState?), Azure.Core.ResourceIdentifier privateLinkResourceId = null, string privateLinkResourceRegion = null, System.Collections.Generic.IEnumerable groupIds = null, string requestMessage = null, Azure.ResourceManager.Grafana.Models.ManagedPrivateEndpointConnectionState connectionState = null, System.Uri privateLinkServiceUri = null, string privateLinkServicePrivateIP = null) { throw null; }
public static Azure.ResourceManager.Grafana.Models.MarketplaceTrialQuota MarketplaceTrialQuota(Azure.ResourceManager.Grafana.Models.AvailablePromotion? availablePromotion = default(Azure.ResourceManager.Grafana.Models.AvailablePromotion?), Azure.Core.ResourceIdentifier grafanaResourceId = null, System.DateTimeOffset? trialStartOn = default(System.DateTimeOffset?), System.DateTimeOffset? trialEndOn = default(System.DateTimeOffset?)) { throw null; }
@@ -385,6 +445,19 @@ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer
string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
}
+ public partial class GrafanaConfigurations : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel
+ {
+ public GrafanaConfigurations() { }
+ public bool? ExternalEnabled { get { throw null; } set { } }
+ public Azure.ResourceManager.Grafana.Models.Smtp Smtp { get { throw null; } set { } }
+ public bool? ViewersCanEdit { get { throw null; } set { } }
+ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { }
+ Azure.ResourceManager.Grafana.Models.GrafanaConfigurations System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { }
+ Azure.ResourceManager.Grafana.Models.GrafanaConfigurations System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ }
public partial class GrafanaPlugin : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel
{
public GrafanaPlugin() { }
@@ -509,6 +582,32 @@ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer
public static bool operator !=(Azure.ResourceManager.Grafana.Models.GrafanaZoneRedundancy left, Azure.ResourceManager.Grafana.Models.GrafanaZoneRedundancy right) { throw null; }
public override string ToString() { throw null; }
}
+ public partial class IntegrationFabricPatch : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel
+ {
+ public IntegrationFabricPatch() { }
+ public System.Collections.Generic.IList IntegrationFabricPropertiesUpdateParametersScenarios { get { throw null; } }
+ public System.Collections.Generic.IDictionary Tags { get { throw null; } }
+ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { }
+ Azure.ResourceManager.Grafana.Models.IntegrationFabricPatch System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { }
+ Azure.ResourceManager.Grafana.Models.IntegrationFabricPatch System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ }
+ public partial class IntegrationFabricProperties : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel
+ {
+ public IntegrationFabricProperties() { }
+ public Azure.Core.ResourceIdentifier DataSourceResourceId { get { throw null; } set { } }
+ public Azure.ResourceManager.Grafana.Models.GrafanaProvisioningState? ProvisioningState { get { throw null; } }
+ public System.Collections.Generic.IList Scenarios { get { throw null; } }
+ public Azure.Core.ResourceIdentifier TargetResourceId { get { throw null; } set { } }
+ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { }
+ Azure.ResourceManager.Grafana.Models.IntegrationFabricProperties System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { }
+ Azure.ResourceManager.Grafana.Models.IntegrationFabricProperties System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ }
public partial class ManagedGrafanaPatch : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel
{
public ManagedGrafanaPatch() { }
@@ -529,7 +628,7 @@ public ManagedGrafanaPatchProperties() { }
public Azure.ResourceManager.Grafana.Models.GrafanaApiKey? ApiKey { get { throw null; } set { } }
public Azure.ResourceManager.Grafana.Models.DeterministicOutboundIP? DeterministicOutboundIP { get { throw null; } set { } }
public Azure.ResourceManager.Grafana.Models.EnterpriseConfigurations EnterpriseConfigurations { get { throw null; } set { } }
- public Azure.ResourceManager.Grafana.Models.Smtp GrafanaConfigurationsSmtp { get { throw null; } set { } }
+ public Azure.ResourceManager.Grafana.Models.GrafanaConfigurations GrafanaConfigurations { get { throw null; } set { } }
public string GrafanaMajorVersion { get { throw null; } set { } }
public System.Collections.Generic.IDictionary GrafanaPlugins { get { throw null; } }
public System.Collections.Generic.IList MonitorWorkspaceIntegrations { get { throw null; } }
@@ -550,7 +649,7 @@ public ManagedGrafanaProperties() { }
public Azure.ResourceManager.Grafana.Models.DeterministicOutboundIP? DeterministicOutboundIP { get { throw null; } set { } }
public string Endpoint { get { throw null; } }
public Azure.ResourceManager.Grafana.Models.EnterpriseConfigurations EnterpriseConfigurations { get { throw null; } set { } }
- public Azure.ResourceManager.Grafana.Models.Smtp GrafanaConfigurationsSmtp { get { throw null; } set { } }
+ public Azure.ResourceManager.Grafana.Models.GrafanaConfigurations GrafanaConfigurations { 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; } }
diff --git a/sdk/grafana/Azure.ResourceManager.Grafana/samples/Generated/Samples/Sample_GrafanaPrivateEndpointConnectionCollection.cs b/sdk/grafana/Azure.ResourceManager.Grafana/samples/Generated/Samples/Sample_GrafanaPrivateEndpointConnectionCollection.cs
index 6bfc947ad441..be477d1ce351 100644
--- a/sdk/grafana/Azure.ResourceManager.Grafana/samples/Generated/Samples/Sample_GrafanaPrivateEndpointConnectionCollection.cs
+++ b/sdk/grafana/Azure.ResourceManager.Grafana/samples/Generated/Samples/Sample_GrafanaPrivateEndpointConnectionCollection.cs
@@ -19,7 +19,7 @@ public partial class Sample_GrafanaPrivateEndpointConnectionCollection
[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
+ // Generated from example definition: specification/dashboard/resource-manager/Microsoft.Dashboard/preview/2023-10-01-preview/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
@@ -54,7 +54,7 @@ public async Task Get_PrivateEndpointConnectionsGet()
[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
+ // Generated from example definition: specification/dashboard/resource-manager/Microsoft.Dashboard/preview/2023-10-01-preview/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
@@ -85,7 +85,7 @@ public async Task Exists_PrivateEndpointConnectionsGet()
[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
+ // Generated from example definition: specification/dashboard/resource-manager/Microsoft.Dashboard/preview/2023-10-01-preview/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
@@ -128,7 +128,7 @@ public async Task GetIfExists_PrivateEndpointConnectionsGet()
[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
+ // Generated from example definition: specification/dashboard/resource-manager/Microsoft.Dashboard/preview/2023-10-01-preview/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
@@ -165,7 +165,7 @@ public async Task CreateOrUpdate_PrivateEndpointConnectionsApprove()
[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
+ // Generated from example definition: specification/dashboard/resource-manager/Microsoft.Dashboard/preview/2023-10-01-preview/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
diff --git a/sdk/grafana/Azure.ResourceManager.Grafana/samples/Generated/Samples/Sample_GrafanaPrivateEndpointConnectionResource.cs b/sdk/grafana/Azure.ResourceManager.Grafana/samples/Generated/Samples/Sample_GrafanaPrivateEndpointConnectionResource.cs
index bbc84b41eb82..016a7a579443 100644
--- a/sdk/grafana/Azure.ResourceManager.Grafana/samples/Generated/Samples/Sample_GrafanaPrivateEndpointConnectionResource.cs
+++ b/sdk/grafana/Azure.ResourceManager.Grafana/samples/Generated/Samples/Sample_GrafanaPrivateEndpointConnectionResource.cs
@@ -19,7 +19,7 @@ public partial class Sample_GrafanaPrivateEndpointConnectionResource
[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
+ // Generated from example definition: specification/dashboard/resource-manager/Microsoft.Dashboard/preview/2023-10-01-preview/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
@@ -51,7 +51,7 @@ public async Task Get_PrivateEndpointConnectionsGet()
[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
+ // Generated from example definition: specification/dashboard/resource-manager/Microsoft.Dashboard/preview/2023-10-01-preview/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
@@ -85,7 +85,7 @@ public async Task Update_PrivateEndpointConnectionsApprove()
[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
+ // Generated from example definition: specification/dashboard/resource-manager/Microsoft.Dashboard/preview/2023-10-01-preview/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
diff --git a/sdk/grafana/Azure.ResourceManager.Grafana/samples/Generated/Samples/Sample_GrafanaPrivateLinkResource.cs b/sdk/grafana/Azure.ResourceManager.Grafana/samples/Generated/Samples/Sample_GrafanaPrivateLinkResource.cs
index 81be2893c4fe..16681d5053a8 100644
--- a/sdk/grafana/Azure.ResourceManager.Grafana/samples/Generated/Samples/Sample_GrafanaPrivateLinkResource.cs
+++ b/sdk/grafana/Azure.ResourceManager.Grafana/samples/Generated/Samples/Sample_GrafanaPrivateLinkResource.cs
@@ -19,7 +19,7 @@ public partial class Sample_GrafanaPrivateLinkResource
[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
+ // Generated from example definition: specification/dashboard/resource-manager/Microsoft.Dashboard/preview/2023-10-01-preview/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
diff --git a/sdk/grafana/Azure.ResourceManager.Grafana/samples/Generated/Samples/Sample_GrafanaPrivateLinkResourceCollection.cs b/sdk/grafana/Azure.ResourceManager.Grafana/samples/Generated/Samples/Sample_GrafanaPrivateLinkResourceCollection.cs
index a7f98beb593d..aaf505560263 100644
--- a/sdk/grafana/Azure.ResourceManager.Grafana/samples/Generated/Samples/Sample_GrafanaPrivateLinkResourceCollection.cs
+++ b/sdk/grafana/Azure.ResourceManager.Grafana/samples/Generated/Samples/Sample_GrafanaPrivateLinkResourceCollection.cs
@@ -19,7 +19,7 @@ public partial class Sample_GrafanaPrivateLinkResourceCollection
[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
+ // Generated from example definition: specification/dashboard/resource-manager/Microsoft.Dashboard/preview/2023-10-01-preview/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
@@ -56,7 +56,7 @@ public async Task GetAll_PrivateLinkResourcesList()
[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
+ // Generated from example definition: specification/dashboard/resource-manager/Microsoft.Dashboard/preview/2023-10-01-preview/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
@@ -91,7 +91,7 @@ public async Task Get_PrivateLinkResourcesGet()
[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
+ // Generated from example definition: specification/dashboard/resource-manager/Microsoft.Dashboard/preview/2023-10-01-preview/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
@@ -122,7 +122,7 @@ public async Task Exists_PrivateLinkResourcesGet()
[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
+ // Generated from example definition: specification/dashboard/resource-manager/Microsoft.Dashboard/preview/2023-10-01-preview/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
diff --git a/sdk/grafana/Azure.ResourceManager.Grafana/samples/Generated/Samples/Sample_IntegrationFabricCollection.cs b/sdk/grafana/Azure.ResourceManager.Grafana/samples/Generated/Samples/Sample_IntegrationFabricCollection.cs
new file mode 100644
index 000000000000..e5a93639235b
--- /dev/null
+++ b/sdk/grafana/Azure.ResourceManager.Grafana/samples/Generated/Samples/Sample_IntegrationFabricCollection.cs
@@ -0,0 +1,212 @@
+// 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.Grafana.Models;
+
+namespace Azure.ResourceManager.Grafana.Samples
+{
+ public partial class Sample_IntegrationFabricCollection
+ {
+ // IntegrationFabrics_List
+ [NUnit.Framework.Test]
+ [NUnit.Framework.Ignore("Only verifying that the sample builds")]
+ public async Task GetAll_IntegrationFabricsList()
+ {
+ // Generated from example definition: specification/dashboard/resource-manager/Microsoft.Dashboard/preview/2023-10-01-preview/examples/IntegrationFabrics_List.json
+ // this example is just showing the usage of "IntegrationFabrics_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 IntegrationFabricResource
+ IntegrationFabricCollection collection = managedGrafana.GetIntegrationFabrics();
+
+ // invoke the operation and iterate over the result
+ await foreach (IntegrationFabricResource 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
+ IntegrationFabricData resourceData = item.Data;
+ // for demo we just print out the id
+ Console.WriteLine($"Succeeded on id: {resourceData.Id}");
+ }
+
+ Console.WriteLine($"Succeeded");
+ }
+
+ // IntegrationFabrics_Get
+ [NUnit.Framework.Test]
+ [NUnit.Framework.Ignore("Only verifying that the sample builds")]
+ public async Task Get_IntegrationFabricsGet()
+ {
+ // Generated from example definition: specification/dashboard/resource-manager/Microsoft.Dashboard/preview/2023-10-01-preview/examples/IntegrationFabrics_Get.json
+ // this example is just showing the usage of "IntegrationFabrics_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 IntegrationFabricResource
+ IntegrationFabricCollection collection = managedGrafana.GetIntegrationFabrics();
+
+ // invoke the operation
+ string integrationFabricName = "sampleIntegration";
+ IntegrationFabricResource result = await collection.GetAsync(integrationFabricName);
+
+ // 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
+ IntegrationFabricData resourceData = result.Data;
+ // for demo we just print out the id
+ Console.WriteLine($"Succeeded on id: {resourceData.Id}");
+ }
+
+ // IntegrationFabrics_Get
+ [NUnit.Framework.Test]
+ [NUnit.Framework.Ignore("Only verifying that the sample builds")]
+ public async Task Exists_IntegrationFabricsGet()
+ {
+ // Generated from example definition: specification/dashboard/resource-manager/Microsoft.Dashboard/preview/2023-10-01-preview/examples/IntegrationFabrics_Get.json
+ // this example is just showing the usage of "IntegrationFabrics_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 IntegrationFabricResource
+ IntegrationFabricCollection collection = managedGrafana.GetIntegrationFabrics();
+
+ // invoke the operation
+ string integrationFabricName = "sampleIntegration";
+ bool result = await collection.ExistsAsync(integrationFabricName);
+
+ Console.WriteLine($"Succeeded: {result}");
+ }
+
+ // IntegrationFabrics_Get
+ [NUnit.Framework.Test]
+ [NUnit.Framework.Ignore("Only verifying that the sample builds")]
+ public async Task GetIfExists_IntegrationFabricsGet()
+ {
+ // Generated from example definition: specification/dashboard/resource-manager/Microsoft.Dashboard/preview/2023-10-01-preview/examples/IntegrationFabrics_Get.json
+ // this example is just showing the usage of "IntegrationFabrics_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 IntegrationFabricResource
+ IntegrationFabricCollection collection = managedGrafana.GetIntegrationFabrics();
+
+ // invoke the operation
+ string integrationFabricName = "sampleIntegration";
+ NullableResponse response = await collection.GetIfExistsAsync(integrationFabricName);
+ IntegrationFabricResource 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
+ IntegrationFabricData resourceData = result.Data;
+ // for demo we just print out the id
+ Console.WriteLine($"Succeeded on id: {resourceData.Id}");
+ }
+ }
+
+ // IntegrationFabrics_Create
+ [NUnit.Framework.Test]
+ [NUnit.Framework.Ignore("Only verifying that the sample builds")]
+ public async Task CreateOrUpdate_IntegrationFabricsCreate()
+ {
+ // Generated from example definition: specification/dashboard/resource-manager/Microsoft.Dashboard/preview/2023-10-01-preview/examples/IntegrationFabrics_Create.json
+ // this example is just showing the usage of "IntegrationFabrics_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 IntegrationFabricResource
+ IntegrationFabricCollection collection = managedGrafana.GetIntegrationFabrics();
+
+ // invoke the operation
+ string integrationFabricName = "sampleIntegration";
+ IntegrationFabricData data = new IntegrationFabricData(new AzureLocation("West US"))
+ {
+ Properties = new IntegrationFabricProperties()
+ {
+ TargetResourceId = new ResourceIdentifier("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ContainerService/managedClusters/myAks"),
+ DataSourceResourceId = new ResourceIdentifier("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Monitor/accounts/myAmw"),
+ Scenarios =
+{
+"scenario1","scenario2"
+},
+ },
+ };
+ ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, integrationFabricName, data);
+ IntegrationFabricResource 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
+ IntegrationFabricData resourceData = result.Data;
+ // for demo we just print out the id
+ Console.WriteLine($"Succeeded on id: {resourceData.Id}");
+ }
+ }
+}
diff --git a/sdk/grafana/Azure.ResourceManager.Grafana/samples/Generated/Samples/Sample_IntegrationFabricResource.cs b/sdk/grafana/Azure.ResourceManager.Grafana/samples/Generated/Samples/Sample_IntegrationFabricResource.cs
new file mode 100644
index 000000000000..b2367bb8821f
--- /dev/null
+++ b/sdk/grafana/Azure.ResourceManager.Grafana/samples/Generated/Samples/Sample_IntegrationFabricResource.cs
@@ -0,0 +1,122 @@
+// 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.Grafana.Models;
+
+namespace Azure.ResourceManager.Grafana.Samples
+{
+ public partial class Sample_IntegrationFabricResource
+ {
+ // IntegrationFabrics_Get
+ [NUnit.Framework.Test]
+ [NUnit.Framework.Ignore("Only verifying that the sample builds")]
+ public async Task Get_IntegrationFabricsGet()
+ {
+ // Generated from example definition: specification/dashboard/resource-manager/Microsoft.Dashboard/preview/2023-10-01-preview/examples/IntegrationFabrics_Get.json
+ // this example is just showing the usage of "IntegrationFabrics_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 IntegrationFabricResource created on azure
+ // for more information of creating IntegrationFabricResource, please refer to the document of IntegrationFabricResource
+ string subscriptionId = "00000000-0000-0000-0000-000000000000";
+ string resourceGroupName = "myResourceGroup";
+ string workspaceName = "myWorkspace";
+ string integrationFabricName = "sampleIntegration";
+ ResourceIdentifier integrationFabricResourceId = IntegrationFabricResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, integrationFabricName);
+ IntegrationFabricResource integrationFabric = client.GetIntegrationFabricResource(integrationFabricResourceId);
+
+ // invoke the operation
+ IntegrationFabricResource result = await integrationFabric.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
+ IntegrationFabricData resourceData = result.Data;
+ // for demo we just print out the id
+ Console.WriteLine($"Succeeded on id: {resourceData.Id}");
+ }
+
+ // IntegrationFabrics_Update
+ [NUnit.Framework.Test]
+ [NUnit.Framework.Ignore("Only verifying that the sample builds")]
+ public async Task Update_IntegrationFabricsUpdate()
+ {
+ // Generated from example definition: specification/dashboard/resource-manager/Microsoft.Dashboard/preview/2023-10-01-preview/examples/IntegrationFabrics_Update.json
+ // this example is just showing the usage of "IntegrationFabrics_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 IntegrationFabricResource created on azure
+ // for more information of creating IntegrationFabricResource, please refer to the document of IntegrationFabricResource
+ string subscriptionId = "00000000-0000-0000-0000-000000000000";
+ string resourceGroupName = "myResourceGroup";
+ string workspaceName = "myWorkspace";
+ string integrationFabricName = "sampleIntegration";
+ ResourceIdentifier integrationFabricResourceId = IntegrationFabricResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, integrationFabricName);
+ IntegrationFabricResource integrationFabric = client.GetIntegrationFabricResource(integrationFabricResourceId);
+
+ // invoke the operation
+ IntegrationFabricPatch patch = new IntegrationFabricPatch()
+ {
+ Tags =
+{
+["Environment"] = "Dev 2",
+},
+ IntegrationFabricPropertiesUpdateParametersScenarios =
+{
+"scenario1"
+},
+ };
+ ArmOperation lro = await integrationFabric.UpdateAsync(WaitUntil.Completed, patch);
+ IntegrationFabricResource 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
+ IntegrationFabricData resourceData = result.Data;
+ // for demo we just print out the id
+ Console.WriteLine($"Succeeded on id: {resourceData.Id}");
+ }
+
+ // IntegrationFabrics_Delete
+ [NUnit.Framework.Test]
+ [NUnit.Framework.Ignore("Only verifying that the sample builds")]
+ public async Task Delete_IntegrationFabricsDelete()
+ {
+ // Generated from example definition: specification/dashboard/resource-manager/Microsoft.Dashboard/preview/2023-10-01-preview/examples/IntegrationFabrics_Delete.json
+ // this example is just showing the usage of "IntegrationFabrics_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 IntegrationFabricResource created on azure
+ // for more information of creating IntegrationFabricResource, please refer to the document of IntegrationFabricResource
+ string subscriptionId = "00000000-0000-0000-0000-000000000000";
+ string resourceGroupName = "myResourceGroup";
+ string workspaceName = "myWorkspace";
+ string integrationFabricName = "sampleIntegration";
+ ResourceIdentifier integrationFabricResourceId = IntegrationFabricResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, integrationFabricName);
+ IntegrationFabricResource integrationFabric = client.GetIntegrationFabricResource(integrationFabricResourceId);
+
+ // invoke the operation
+ await integrationFabric.DeleteAsync(WaitUntil.Completed);
+
+ Console.WriteLine($"Succeeded");
+ }
+ }
+}
diff --git a/sdk/grafana/Azure.ResourceManager.Grafana/samples/Generated/Samples/Sample_ManagedGrafanaCollection.cs b/sdk/grafana/Azure.ResourceManager.Grafana/samples/Generated/Samples/Sample_ManagedGrafanaCollection.cs
index 4f38777dfce1..19f583df52ea 100644
--- a/sdk/grafana/Azure.ResourceManager.Grafana/samples/Generated/Samples/Sample_ManagedGrafanaCollection.cs
+++ b/sdk/grafana/Azure.ResourceManager.Grafana/samples/Generated/Samples/Sample_ManagedGrafanaCollection.cs
@@ -22,7 +22,7 @@ public partial class Sample_ManagedGrafanaCollection
[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
+ // Generated from example definition: specification/dashboard/resource-manager/Microsoft.Dashboard/preview/2023-10-01-preview/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
@@ -58,7 +58,7 @@ public async Task GetAll_GrafanaListByResourceGroup()
[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
+ // Generated from example definition: specification/dashboard/resource-manager/Microsoft.Dashboard/preview/2023-10-01-preview/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
@@ -92,7 +92,7 @@ public async Task Get_GrafanaGet()
[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
+ // Generated from example definition: specification/dashboard/resource-manager/Microsoft.Dashboard/preview/2023-10-01-preview/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
@@ -122,7 +122,7 @@ public async Task Exists_GrafanaGet()
[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
+ // Generated from example definition: specification/dashboard/resource-manager/Microsoft.Dashboard/preview/2023-10-01-preview/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
@@ -164,7 +164,7 @@ public async Task GetIfExists_GrafanaGet()
[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
+ // Generated from example definition: specification/dashboard/resource-manager/Microsoft.Dashboard/preview/2023-10-01-preview/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
@@ -205,16 +205,21 @@ public async Task CreateOrUpdate_GrafanaCreate()
MarketplacePlanId = "myPlanId",
MarketplaceAutoRenew = MarketplaceAutoRenew.Enabled,
},
- GrafanaConfigurationsSmtp = new Smtp()
+ GrafanaConfigurations = new GrafanaConfigurations()
{
- Enabled = true,
- Host = "smtp.sendemail.com:587",
- User = "username",
- Password = "",
- FromAddress = "test@sendemail.com",
- FromName = "emailsender",
- StartTLSPolicy = StartTLSPolicy.OpportunisticStartTLS,
- SkipVerify = true,
+ Smtp = new Smtp()
+ {
+ Enabled = true,
+ Host = "smtp.sendemail.com:587",
+ User = "username",
+ Password = "",
+ FromAddress = "test@sendemail.com",
+ FromName = "emailsender",
+ StartTLSPolicy = StartTLSPolicy.OpportunisticStartTLS,
+ SkipVerify = true,
+ },
+ ExternalEnabled = true,
+ ViewersCanEdit = true,
},
GrafanaPlugins =
{
diff --git a/sdk/grafana/Azure.ResourceManager.Grafana/samples/Generated/Samples/Sample_ManagedGrafanaResource.cs b/sdk/grafana/Azure.ResourceManager.Grafana/samples/Generated/Samples/Sample_ManagedGrafanaResource.cs
index 5ca2303ba320..a12a3f31b36a 100644
--- a/sdk/grafana/Azure.ResourceManager.Grafana/samples/Generated/Samples/Sample_ManagedGrafanaResource.cs
+++ b/sdk/grafana/Azure.ResourceManager.Grafana/samples/Generated/Samples/Sample_ManagedGrafanaResource.cs
@@ -21,7 +21,7 @@ public partial class Sample_ManagedGrafanaResource
[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
+ // Generated from example definition: specification/dashboard/resource-manager/Microsoft.Dashboard/preview/2023-10-01-preview/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
@@ -53,7 +53,7 @@ public async Task GetManagedGrafanas_GrafanaList()
[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
+ // Generated from example definition: specification/dashboard/resource-manager/Microsoft.Dashboard/preview/2023-10-01-preview/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
@@ -84,7 +84,7 @@ public async Task Get_GrafanaGet()
[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
+ // Generated from example definition: specification/dashboard/resource-manager/Microsoft.Dashboard/preview/2023-10-01-preview/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
@@ -124,16 +124,21 @@ public async Task Update_GrafanaUpdate()
MarketplacePlanId = "myPlanId",
MarketplaceAutoRenew = MarketplaceAutoRenew.Enabled,
},
- GrafanaConfigurationsSmtp = new Smtp()
+ GrafanaConfigurations = new GrafanaConfigurations()
{
- Enabled = true,
- Host = "smtp.sendemail.com:587",
- User = "username",
- Password = "",
- FromAddress = "test@sendemail.com",
- FromName = "emailsender",
- StartTLSPolicy = StartTLSPolicy.OpportunisticStartTLS,
- SkipVerify = true,
+ Smtp = new Smtp()
+ {
+ Enabled = true,
+ Host = "smtp.sendemail.com:587",
+ User = "username",
+ Password = "",
+ FromAddress = "test@sendemail.com",
+ FromName = "emailsender",
+ StartTLSPolicy = StartTLSPolicy.OpportunisticStartTLS,
+ SkipVerify = true,
+ },
+ ExternalEnabled = true,
+ ViewersCanEdit = true,
},
GrafanaPlugins =
{
@@ -156,7 +161,7 @@ public async Task Update_GrafanaUpdate()
[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
+ // Generated from example definition: specification/dashboard/resource-manager/Microsoft.Dashboard/preview/2023-10-01-preview/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
@@ -183,7 +188,7 @@ public async Task Delete_GrafanaDelete()
[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
+ // Generated from example definition: specification/dashboard/resource-manager/Microsoft.Dashboard/preview/2023-10-01-preview/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
@@ -210,7 +215,7 @@ public async Task CheckEnterpriseDetails_EnterpriseDetailsPost()
[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
+ // Generated from example definition: specification/dashboard/resource-manager/Microsoft.Dashboard/preview/2023-10-01-preview/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
@@ -240,7 +245,7 @@ public async Task FetchAvailablePlugins_GrafanaFetchAvailablePlugins()
[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
+ // Generated from example definition: specification/dashboard/resource-manager/Microsoft.Dashboard/preview/2023-10-01-preview/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
diff --git a/sdk/grafana/Azure.ResourceManager.Grafana/samples/Generated/Samples/Sample_ManagedPrivateEndpointModelCollection.cs b/sdk/grafana/Azure.ResourceManager.Grafana/samples/Generated/Samples/Sample_ManagedPrivateEndpointModelCollection.cs
index 48f3702f65a2..c6731b7250b7 100644
--- a/sdk/grafana/Azure.ResourceManager.Grafana/samples/Generated/Samples/Sample_ManagedPrivateEndpointModelCollection.cs
+++ b/sdk/grafana/Azure.ResourceManager.Grafana/samples/Generated/Samples/Sample_ManagedPrivateEndpointModelCollection.cs
@@ -19,7 +19,7 @@ public partial class Sample_ManagedPrivateEndpointModelCollection
[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
+ // Generated from example definition: specification/dashboard/resource-manager/Microsoft.Dashboard/preview/2023-10-01-preview/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
@@ -56,7 +56,7 @@ public async Task GetAll_ManagedPrivateEndpointList()
[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
+ // Generated from example definition: specification/dashboard/resource-manager/Microsoft.Dashboard/preview/2023-10-01-preview/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
@@ -91,7 +91,7 @@ public async Task Get_ManagedPrivateEndpointGet()
[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
+ // Generated from example definition: specification/dashboard/resource-manager/Microsoft.Dashboard/preview/2023-10-01-preview/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
@@ -122,7 +122,7 @@ public async Task Exists_ManagedPrivateEndpointGet()
[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
+ // Generated from example definition: specification/dashboard/resource-manager/Microsoft.Dashboard/preview/2023-10-01-preview/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
@@ -165,7 +165,7 @@ public async Task GetIfExists_ManagedPrivateEndpointGet()
[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
+ // Generated from example definition: specification/dashboard/resource-manager/Microsoft.Dashboard/preview/2023-10-01-preview/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
diff --git a/sdk/grafana/Azure.ResourceManager.Grafana/samples/Generated/Samples/Sample_ManagedPrivateEndpointModelResource.cs b/sdk/grafana/Azure.ResourceManager.Grafana/samples/Generated/Samples/Sample_ManagedPrivateEndpointModelResource.cs
index cafd5b288dce..249a7a92f302 100644
--- a/sdk/grafana/Azure.ResourceManager.Grafana/samples/Generated/Samples/Sample_ManagedPrivateEndpointModelResource.cs
+++ b/sdk/grafana/Azure.ResourceManager.Grafana/samples/Generated/Samples/Sample_ManagedPrivateEndpointModelResource.cs
@@ -20,7 +20,7 @@ public partial class Sample_ManagedPrivateEndpointModelResource
[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
+ // Generated from example definition: specification/dashboard/resource-manager/Microsoft.Dashboard/preview/2023-10-01-preview/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
@@ -52,7 +52,7 @@ public async Task Get_ManagedPrivateEndpointGet()
[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
+ // Generated from example definition: specification/dashboard/resource-manager/Microsoft.Dashboard/preview/2023-10-01-preview/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
@@ -92,7 +92,7 @@ public async Task Update_ManagedPrivateEndpointsPatch()
[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
+ // Generated from example definition: specification/dashboard/resource-manager/Microsoft.Dashboard/preview/2023-10-01-preview/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
diff --git a/sdk/grafana/Azure.ResourceManager.Grafana/src/Generated/ArmGrafanaModelFactory.cs b/sdk/grafana/Azure.ResourceManager.Grafana/src/Generated/ArmGrafanaModelFactory.cs
index 8ad862200c5b..bcdf5ab21b67 100644
--- a/sdk/grafana/Azure.ResourceManager.Grafana/src/Generated/ArmGrafanaModelFactory.cs
+++ b/sdk/grafana/Azure.ResourceManager.Grafana/src/Generated/ArmGrafanaModelFactory.cs
@@ -57,11 +57,11 @@ public static ManagedGrafanaData ManagedGrafanaData(ResourceIdentifier id = null
/// 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.
+ /// 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(GrafanaProvisioningState? provisioningState = null, string grafanaVersion = null, string endpoint = null, GrafanaPublicNetworkAccess? publicNetworkAccess = null, GrafanaZoneRedundancy? zoneRedundancy = null, GrafanaApiKey? apiKey = null, DeterministicOutboundIP? deterministicOutboundIP = null, IEnumerable outboundIPs = null, IEnumerable privateEndpointConnections = null, AutoGeneratedDomainNameLabelScope? autoGeneratedDomainNameLabelScope = null, IEnumerable monitorWorkspaceIntegrations = null, EnterpriseConfigurations enterpriseConfigurations = null, Smtp grafanaConfigurationsSmtp = null, IDictionary grafanaPlugins = null, string grafanaMajorVersion = null)
+ public static ManagedGrafanaProperties ManagedGrafanaProperties(GrafanaProvisioningState? provisioningState = null, string grafanaVersion = null, string endpoint = null, GrafanaPublicNetworkAccess? publicNetworkAccess = null, GrafanaZoneRedundancy? zoneRedundancy = null, GrafanaApiKey? apiKey = null, DeterministicOutboundIP? deterministicOutboundIP = null, IEnumerable outboundIPs = null, IEnumerable privateEndpointConnections = null, AutoGeneratedDomainNameLabelScope? autoGeneratedDomainNameLabelScope = null, IEnumerable monitorWorkspaceIntegrations = null, EnterpriseConfigurations enterpriseConfigurations = null, GrafanaConfigurations grafanaConfigurations = null, IDictionary grafanaPlugins = null, string grafanaMajorVersion = null)
{
outboundIPs ??= new List();
privateEndpointConnections ??= new List();
@@ -81,7 +81,7 @@ public static ManagedGrafanaProperties ManagedGrafanaProperties(GrafanaProvision
autoGeneratedDomainNameLabelScope,
monitorWorkspaceIntegrations != null ? new GrafanaIntegrations(monitorWorkspaceIntegrations?.ToList(), serializedAdditionalRawData: null) : null,
enterpriseConfigurations,
- grafanaConfigurationsSmtp != null ? new GrafanaConfigurations(grafanaConfigurationsSmtp, serializedAdditionalRawData: null) : null,
+ grafanaConfigurations,
grafanaPlugins,
grafanaMajorVersion,
serializedAdditionalRawData: null);
@@ -245,5 +245,42 @@ public static ManagedPrivateEndpointConnectionState ManagedPrivateEndpointConnec
{
return new ManagedPrivateEndpointConnectionState(status, description, serializedAdditionalRawData: null);
}
+
+ /// Initializes a new instance of .
+ /// The id.
+ /// The name.
+ /// The resourceType.
+ /// The systemData.
+ /// The tags.
+ /// The location.
+ ///
+ /// A new instance for mocking.
+ public static IntegrationFabricData IntegrationFabricData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, IntegrationFabricProperties properties = null)
+ {
+ tags ??= new Dictionary();
+
+ return new IntegrationFabricData(
+ id,
+ name,
+ resourceType,
+ systemData,
+ tags,
+ location,
+ properties,
+ serializedAdditionalRawData: null);
+ }
+
+ /// Initializes a new instance of .
+ /// Provisioning state of the resource.
+ /// The resource Id of the Azure resource being integrated with Azure Managed Grafana. E.g., an Azure Kubernetes Service cluster.
+ /// The resource Id of the Azure resource which is used to configure Grafana data source. E.g., an Azure Monitor Workspace, an Azure Data Explorer cluster, etc.
+ /// A list of integration scenarios covered by this integration fabric.
+ /// A new instance for mocking.
+ public static IntegrationFabricProperties IntegrationFabricProperties(GrafanaProvisioningState? provisioningState = null, ResourceIdentifier targetResourceId = null, ResourceIdentifier dataSourceResourceId = null, IEnumerable scenarios = null)
+ {
+ scenarios ??= new List();
+
+ return new IntegrationFabricProperties(provisioningState, targetResourceId, dataSourceResourceId, scenarios?.ToList(), serializedAdditionalRawData: null);
+ }
}
}
diff --git a/sdk/grafana/Azure.ResourceManager.Grafana/src/Generated/Extensions/GrafanaExtensions.cs b/sdk/grafana/Azure.ResourceManager.Grafana/src/Generated/Extensions/GrafanaExtensions.cs
index db7dc62a5ebc..952da07d35ab 100644
--- a/sdk/grafana/Azure.ResourceManager.Grafana/src/Generated/Extensions/GrafanaExtensions.cs
+++ b/sdk/grafana/Azure.ResourceManager.Grafana/src/Generated/Extensions/GrafanaExtensions.cs
@@ -108,6 +108,25 @@ public static ManagedPrivateEndpointModelResource GetManagedPrivateEndpointModel
return GetMockableGrafanaArmClient(client).GetManagedPrivateEndpointModelResource(id);
}
+ ///
+ /// Gets an object representing an along with the instance operations that can be performed on it but with no data.
+ /// You can use to create an from its components.
+ /// -
+ /// Mocking
+ /// To mock this method, please mock instead.
+ ///
+ ///
+ /// The instance the method will execute against.
+ /// The resource ID of the resource to get.
+ /// is null.
+ /// Returns a object.
+ public static IntegrationFabricResource GetIntegrationFabricResource(this ArmClient client, ResourceIdentifier id)
+ {
+ Argument.AssertNotNull(client, nameof(client));
+
+ return GetMockableGrafanaArmClient(client).GetIntegrationFabricResource(id);
+ }
+
///
/// Gets a collection of ManagedGrafanaResources in the ResourceGroupResource.
/// -
@@ -138,7 +157,7 @@ public static ManagedGrafanaCollection GetManagedGrafanas(this ResourceGroupReso
///
/// -
/// Default Api Version
- /// 2023-09-01
+ /// 2023-10-01-preview
///
/// -
/// Resource
@@ -176,7 +195,7 @@ public static async Task> GetManagedGrafanaAsyn
///
/// -
/// Default Api Version
- /// 2023-09-01
+ /// 2023-10-01-preview
///
/// -
/// Resource
@@ -214,7 +233,7 @@ public static Response GetManagedGrafana(this ResourceGr
///
/// -
/// Default Api Version
- /// 2023-09-01
+ /// 2023-10-01-preview
///
/// -
/// Resource
@@ -250,7 +269,7 @@ public static AsyncPageable GetManagedGrafanasAsync(this
///
/// -
/// Default Api Version
- /// 2023-09-01
+ /// 2023-10-01-preview
///
/// -
/// Resource
diff --git a/sdk/grafana/Azure.ResourceManager.Grafana/src/Generated/Extensions/MockableGrafanaArmClient.cs b/sdk/grafana/Azure.ResourceManager.Grafana/src/Generated/Extensions/MockableGrafanaArmClient.cs
index 70c0dd7354c8..618e8bdd1fd8 100644
--- a/sdk/grafana/Azure.ResourceManager.Grafana/src/Generated/Extensions/MockableGrafanaArmClient.cs
+++ b/sdk/grafana/Azure.ResourceManager.Grafana/src/Generated/Extensions/MockableGrafanaArmClient.cs
@@ -81,5 +81,17 @@ public virtual ManagedPrivateEndpointModelResource GetManagedPrivateEndpointMode
ManagedPrivateEndpointModelResource.ValidateResourceId(id);
return new ManagedPrivateEndpointModelResource(Client, id);
}
+
+ ///
+ /// Gets an object representing an along with the instance operations that can be performed on it but with no data.
+ /// You can use to create an from its components.
+ ///
+ /// The resource ID of the resource to get.
+ /// Returns a object.
+ public virtual IntegrationFabricResource GetIntegrationFabricResource(ResourceIdentifier id)
+ {
+ IntegrationFabricResource.ValidateResourceId(id);
+ return new IntegrationFabricResource(Client, id);
+ }
}
}
diff --git a/sdk/grafana/Azure.ResourceManager.Grafana/src/Generated/Extensions/MockableGrafanaResourceGroupResource.cs b/sdk/grafana/Azure.ResourceManager.Grafana/src/Generated/Extensions/MockableGrafanaResourceGroupResource.cs
index b7a6c6637b1a..9772418a9bd2 100644
--- a/sdk/grafana/Azure.ResourceManager.Grafana/src/Generated/Extensions/MockableGrafanaResourceGroupResource.cs
+++ b/sdk/grafana/Azure.ResourceManager.Grafana/src/Generated/Extensions/MockableGrafanaResourceGroupResource.cs
@@ -53,7 +53,7 @@ public virtual ManagedGrafanaCollection GetManagedGrafanas()
///
/// -
/// Default Api Version
- /// 2023-09-01
+ /// 2023-10-01-preview
///
/// -
/// Resource
@@ -84,7 +84,7 @@ public virtual async Task> GetManagedGrafanaAsy
///
/// -
/// Default Api Version
- /// 2023-09-01
+ /// 2023-10-01-preview
///
/// -
/// Resource
diff --git a/sdk/grafana/Azure.ResourceManager.Grafana/src/Generated/Extensions/MockableGrafanaSubscriptionResource.cs b/sdk/grafana/Azure.ResourceManager.Grafana/src/Generated/Extensions/MockableGrafanaSubscriptionResource.cs
index b5f94905db5c..3fd518577f65 100644
--- a/sdk/grafana/Azure.ResourceManager.Grafana/src/Generated/Extensions/MockableGrafanaSubscriptionResource.cs
+++ b/sdk/grafana/Azure.ResourceManager.Grafana/src/Generated/Extensions/MockableGrafanaSubscriptionResource.cs
@@ -52,7 +52,7 @@ private string GetApiVersionOrNull(ResourceType resourceType)
///
/// -
/// Default Api Version
- /// 2023-09-01
+ /// 2023-10-01-preview
///
/// -
/// Resource
@@ -82,7 +82,7 @@ public virtual AsyncPageable GetManagedGrafanasAsync(Can
///
/// -
/// Default Api Version
- /// 2023-09-01
+ /// 2023-10-01-preview
///
/// -
/// Resource
diff --git a/sdk/grafana/Azure.ResourceManager.Grafana/src/Generated/GrafanaPrivateEndpointConnectionCollection.cs b/sdk/grafana/Azure.ResourceManager.Grafana/src/Generated/GrafanaPrivateEndpointConnectionCollection.cs
index d077361ec365..af58216c0f88 100644
--- a/sdk/grafana/Azure.ResourceManager.Grafana/src/Generated/GrafanaPrivateEndpointConnectionCollection.cs
+++ b/sdk/grafana/Azure.ResourceManager.Grafana/src/Generated/GrafanaPrivateEndpointConnectionCollection.cs
@@ -64,7 +64,7 @@ internal static void ValidateResourceId(ResourceIdentifier id)
///
/// -
/// Default Api Version
- /// 2023-09-01
+ /// 2023-10-01-preview
///
/// -
/// Resource
@@ -113,7 +113,7 @@ public virtual async Task
///
/// -
/// Default Api Version
- /// 2023-09-01
+ /// 2023-10-01-preview
///
/// -
/// Resource
@@ -162,7 +162,7 @@ public virtual ArmOperation CreateOrUp
///
/// -
/// Default Api Version
- /// 2023-09-01
+ /// 2023-10-01-preview
///
/// -
/// Resource
@@ -207,7 +207,7 @@ public virtual async Task> Ge
///
/// -
/// Default Api Version
- /// 2023-09-01
+ /// 2023-10-01-preview
///
/// -
/// Resource
@@ -252,7 +252,7 @@ public virtual Response Get(string pri
///
/// -
/// Default Api Version
- /// 2023-09-01
+ /// 2023-10-01-preview
///
/// -
/// Resource
@@ -282,7 +282,7 @@ public virtual AsyncPageable GetAllAsy
///
/// -
/// Default Api Version
- /// 2023-09-01
+ /// 2023-10-01-preview
///
/// -
/// Resource
@@ -312,7 +312,7 @@ public virtual Pageable GetAll(Cancell
///
/// -
/// Default Api Version
- /// 2023-09-01
+ /// 2023-10-01-preview
///
/// -
/// Resource
@@ -355,7 +355,7 @@ public virtual async Task> ExistsAsync(string privateEndpointConn
///
/// -
/// Default Api Version
- /// 2023-09-01
+ /// 2023-10-01-preview
///
/// -
/// Resource
@@ -398,7 +398,7 @@ public virtual Response Exists(string privateEndpointConnectionName, Cance
///
/// -
/// Default Api Version
- /// 2023-09-01
+ /// 2023-10-01-preview
///
/// -
/// Resource
@@ -443,7 +443,7 @@ public virtual async Task
///
-
/// Default Api Version
- /// 2023-09-01
+ /// 2023-10-01-preview
///
/// -
/// Resource
diff --git a/sdk/grafana/Azure.ResourceManager.Grafana/src/Generated/GrafanaPrivateEndpointConnectionResource.cs b/sdk/grafana/Azure.ResourceManager.Grafana/src/Generated/GrafanaPrivateEndpointConnectionResource.cs
index 8233180d0898..a0f18a0fde89 100644
--- a/sdk/grafana/Azure.ResourceManager.Grafana/src/Generated/GrafanaPrivateEndpointConnectionResource.cs
+++ b/sdk/grafana/Azure.ResourceManager.Grafana/src/Generated/GrafanaPrivateEndpointConnectionResource.cs
@@ -101,7 +101,7 @@ internal static void ValidateResourceId(ResourceIdentifier id)
///
/// -
/// Default Api Version
- /// 2023-09-01
+ /// 2023-10-01-preview
///
/// -
/// Resource
@@ -141,7 +141,7 @@ public virtual async Task> Ge
///
/// -
/// Default Api Version
- /// 2023-09-01
+ /// 2023-10-01-preview
///
/// -
/// Resource
@@ -181,7 +181,7 @@ public virtual Response Get(Cancellati
///
/// -
/// Default Api Version
- /// 2023-09-01
+ /// 2023-10-01-preview
///
/// -
/// Resource
@@ -223,7 +223,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell
///
/// -
/// Default Api Version
- /// 2023-09-01
+ /// 2023-10-01-preview
///
/// -
/// Resource
@@ -265,7 +265,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel
///
/// -
/// Default Api Version
- /// 2023-09-01
+ /// 2023-10-01-preview
///
/// -
/// Resource
@@ -311,7 +311,7 @@ public virtual async Task
///
/// -
/// Default Api Version
- /// 2023-09-01
+ /// 2023-10-01-preview
///
/// -
/// Resource
diff --git a/sdk/grafana/Azure.ResourceManager.Grafana/src/Generated/GrafanaPrivateLinkResource.cs b/sdk/grafana/Azure.ResourceManager.Grafana/src/Generated/GrafanaPrivateLinkResource.cs
index 821523c267e8..4141d8e1207e 100644
--- a/sdk/grafana/Azure.ResourceManager.Grafana/src/Generated/GrafanaPrivateLinkResource.cs
+++ b/sdk/grafana/Azure.ResourceManager.Grafana/src/Generated/GrafanaPrivateLinkResource.cs
@@ -101,7 +101,7 @@ internal static void ValidateResourceId(ResourceIdentifier id)
///
/// -
/// Default Api Version
- /// 2023-09-01
+ /// 2023-10-01-preview
///
/// -
/// Resource
@@ -141,7 +141,7 @@ public virtual async Task> GetAsync(Cancell
///
/// -
/// Default Api Version
- /// 2023-09-01
+ /// 2023-10-01-preview
///
/// -
/// Resource
diff --git a/sdk/grafana/Azure.ResourceManager.Grafana/src/Generated/GrafanaPrivateLinkResourceCollection.cs b/sdk/grafana/Azure.ResourceManager.Grafana/src/Generated/GrafanaPrivateLinkResourceCollection.cs
index a2ec377c4da4..a3be18a1440b 100644
--- a/sdk/grafana/Azure.ResourceManager.Grafana/src/Generated/GrafanaPrivateLinkResourceCollection.cs
+++ b/sdk/grafana/Azure.ResourceManager.Grafana/src/Generated/GrafanaPrivateLinkResourceCollection.cs
@@ -64,7 +64,7 @@ internal static void ValidateResourceId(ResourceIdentifier id)
///
/// -
/// Default Api Version
- /// 2023-09-01
+ /// 2023-10-01-preview
///
/// -
/// Resource
@@ -109,7 +109,7 @@ public virtual async Task> GetAsync(string
///
/// -
/// Default Api Version
- /// 2023-09-01
+ /// 2023-10-01-preview
///
/// -
/// Resource
@@ -154,7 +154,7 @@ public virtual Response Get(string privateLinkResour
///
/// -
/// Default Api Version
- /// 2023-09-01
+ /// 2023-10-01-preview
///
/// -
/// Resource
@@ -184,7 +184,7 @@ public virtual AsyncPageable GetAllAsync(Cancellatio
///
/// -
/// Default Api Version
- /// 2023-09-01
+ /// 2023-10-01-preview
///
/// -
/// Resource
@@ -214,7 +214,7 @@ public virtual Pageable GetAll(CancellationToken can
///
/// -
/// Default Api Version
- /// 2023-09-01
+ /// 2023-10-01-preview
///
/// -
/// Resource
@@ -257,7 +257,7 @@ public virtual async Task> ExistsAsync(string privateLinkResource
///
/// -
/// Default Api Version
- /// 2023-09-01
+ /// 2023-10-01-preview
///
/// -
/// Resource
@@ -300,7 +300,7 @@ public virtual Response Exists(string privateLinkResourceName, Cancellatio
///
/// -
/// Default Api Version
- /// 2023-09-01
+ /// 2023-10-01-preview
///
/// -
/// Resource
@@ -345,7 +345,7 @@ public virtual async Task> GetIfExi
///
/// -
/// Default Api Version
- /// 2023-09-01
+ /// 2023-10-01-preview
///
/// -
/// Resource
diff --git a/sdk/grafana/Azure.ResourceManager.Grafana/src/Generated/IntegrationFabricCollection.cs b/sdk/grafana/Azure.ResourceManager.Grafana/src/Generated/IntegrationFabricCollection.cs
new file mode 100644
index 000000000000..83a5a021d2ba
--- /dev/null
+++ b/sdk/grafana/Azure.ResourceManager.Grafana/src/Generated/IntegrationFabricCollection.cs
@@ -0,0 +1,487 @@
+// 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.Core;
+using Azure.Core.Pipeline;
+
+namespace Azure.ResourceManager.Grafana
+{
+ ///
+ /// A class representing a collection of and their operations.
+ /// Each in the collection will belong to the same instance of .
+ /// To get an instance call the GetIntegrationFabrics method from an instance of .
+ ///
+ public partial class IntegrationFabricCollection : ArmCollection, IEnumerable, IAsyncEnumerable
+ {
+ private readonly ClientDiagnostics _integrationFabricClientDiagnostics;
+ private readonly IntegrationFabricsRestOperations _integrationFabricRestClient;
+
+ /// Initializes a new instance of the class for mocking.
+ protected IntegrationFabricCollection()
+ {
+ }
+
+ /// 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 IntegrationFabricCollection(ArmClient client, ResourceIdentifier id) : base(client, id)
+ {
+ _integrationFabricClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.Grafana", IntegrationFabricResource.ResourceType.Namespace, Diagnostics);
+ TryGetApiVersion(IntegrationFabricResource.ResourceType, out string integrationFabricApiVersion);
+ _integrationFabricRestClient = new IntegrationFabricsRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, integrationFabricApiVersion);
+#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));
+ }
+
+ ///
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Dashboard/grafana/{workspaceName}/integrationFabrics/{integrationFabricName}
+ ///
+ /// -
+ /// Operation Id
+ /// IntegrationFabrics_Create
+ ///
+ /// -
+ /// Default Api Version
+ /// 2023-10-01-preview
+ ///
+ /// -
+ /// Resource
+ ///
+ ///
+ ///
+ ///
+ /// 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 integration fabric name of Azure Managed Grafana.
+ /// The 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 integrationFabricName, IntegrationFabricData data, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNullOrEmpty(integrationFabricName, nameof(integrationFabricName));
+ Argument.AssertNotNull(data, nameof(data));
+
+ using var scope = _integrationFabricClientDiagnostics.CreateScope("IntegrationFabricCollection.CreateOrUpdate");
+ scope.Start();
+ try
+ {
+ var response = await _integrationFabricRestClient.CreateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, integrationFabricName, data, cancellationToken).ConfigureAwait(false);
+ var operation = new GrafanaArmOperation(new IntegrationFabricOperationSource(Client), _integrationFabricClientDiagnostics, Pipeline, _integrationFabricRestClient.CreateCreateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, integrationFabricName, data).Request, response, OperationFinalStateVia.AzureAsyncOperation);
+ if (waitUntil == WaitUntil.Completed)
+ await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false);
+ return operation;
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+
+ ///
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Dashboard/grafana/{workspaceName}/integrationFabrics/{integrationFabricName}
+ ///
+ /// -
+ /// Operation Id
+ /// IntegrationFabrics_Create
+ ///
+ /// -
+ /// Default Api Version
+ /// 2023-10-01-preview
+ ///
+ /// -
+ /// Resource
+ ///
+ ///
+ ///
+ ///
+ /// 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 integration fabric name of Azure Managed Grafana.
+ /// The 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 integrationFabricName, IntegrationFabricData data, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNullOrEmpty(integrationFabricName, nameof(integrationFabricName));
+ Argument.AssertNotNull(data, nameof(data));
+
+ using var scope = _integrationFabricClientDiagnostics.CreateScope("IntegrationFabricCollection.CreateOrUpdate");
+ scope.Start();
+ try
+ {
+ var response = _integrationFabricRestClient.Create(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, integrationFabricName, data, cancellationToken);
+ var operation = new GrafanaArmOperation(new IntegrationFabricOperationSource(Client), _integrationFabricClientDiagnostics, Pipeline, _integrationFabricRestClient.CreateCreateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, integrationFabricName, data).Request, response, OperationFinalStateVia.AzureAsyncOperation);
+ if (waitUntil == WaitUntil.Completed)
+ operation.WaitForCompletion(cancellationToken);
+ return operation;
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+
+ ///
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Dashboard/grafana/{workspaceName}/integrationFabrics/{integrationFabricName}
+ ///
+ /// -
+ /// Operation Id
+ /// IntegrationFabrics_Get
+ ///
+ /// -
+ /// Default Api Version
+ /// 2023-10-01-preview
+ ///
+ /// -
+ /// Resource
+ ///
+ ///
+ ///
+ ///
+ /// The integration fabric 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 integrationFabricName, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNullOrEmpty(integrationFabricName, nameof(integrationFabricName));
+
+ using var scope = _integrationFabricClientDiagnostics.CreateScope("IntegrationFabricCollection.Get");
+ scope.Start();
+ try
+ {
+ var response = await _integrationFabricRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, integrationFabricName, cancellationToken).ConfigureAwait(false);
+ if (response.Value == null)
+ throw new RequestFailedException(response.GetRawResponse());
+ return Response.FromValue(new IntegrationFabricResource(Client, response.Value), response.GetRawResponse());
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+
+ ///
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Dashboard/grafana/{workspaceName}/integrationFabrics/{integrationFabricName}
+ ///
+ /// -
+ /// Operation Id
+ /// IntegrationFabrics_Get
+ ///
+ /// -
+ /// Default Api Version
+ /// 2023-10-01-preview
+ ///
+ /// -
+ /// Resource
+ ///
+ ///
+ ///
+ ///
+ /// The integration fabric 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 integrationFabricName, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNullOrEmpty(integrationFabricName, nameof(integrationFabricName));
+
+ using var scope = _integrationFabricClientDiagnostics.CreateScope("IntegrationFabricCollection.Get");
+ scope.Start();
+ try
+ {
+ var response = _integrationFabricRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, integrationFabricName, cancellationToken);
+ if (response.Value == null)
+ throw new RequestFailedException(response.GetRawResponse());
+ return Response.FromValue(new IntegrationFabricResource(Client, response.Value), response.GetRawResponse());
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+
+ ///
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Dashboard/grafana/{workspaceName}/integrationFabrics
+ ///
+ /// -
+ /// Operation Id
+ /// IntegrationFabrics_List
+ ///
+ /// -
+ /// Default Api Version
+ /// 2023-10-01-preview
+ ///
+ /// -
+ /// Resource
+ ///
+ ///
+ ///
+ ///
+ /// 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) => _integrationFabricRestClient.CreateListRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name);
+ HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _integrationFabricRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name);
+ return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => new IntegrationFabricResource(Client, IntegrationFabricData.DeserializeIntegrationFabricData(e)), _integrationFabricClientDiagnostics, Pipeline, "IntegrationFabricCollection.GetAll", "value", "nextLink", cancellationToken);
+ }
+
+ ///
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Dashboard/grafana/{workspaceName}/integrationFabrics
+ ///
+ /// -
+ /// Operation Id
+ /// IntegrationFabrics_List
+ ///
+ /// -
+ /// Default Api Version
+ /// 2023-10-01-preview
+ ///
+ /// -
+ /// Resource
+ ///
+ ///
+ ///
+ ///
+ /// 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) => _integrationFabricRestClient.CreateListRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name);
+ HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _integrationFabricRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name);
+ return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new IntegrationFabricResource(Client, IntegrationFabricData.DeserializeIntegrationFabricData(e)), _integrationFabricClientDiagnostics, Pipeline, "IntegrationFabricCollection.GetAll", "value", "nextLink", cancellationToken);
+ }
+
+ ///
+ /// Checks to see if the resource exists in azure.
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Dashboard/grafana/{workspaceName}/integrationFabrics/{integrationFabricName}
+ ///
+ /// -
+ /// Operation Id
+ /// IntegrationFabrics_Get
+ ///
+ /// -
+ /// Default Api Version
+ /// 2023-10-01-preview
+ ///
+ /// -
+ /// Resource
+ ///
+ ///
+ ///
+ ///
+ /// The integration fabric 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 integrationFabricName, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNullOrEmpty(integrationFabricName, nameof(integrationFabricName));
+
+ using var scope = _integrationFabricClientDiagnostics.CreateScope("IntegrationFabricCollection.Exists");
+ scope.Start();
+ try
+ {
+ var response = await _integrationFabricRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, integrationFabricName, 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}/integrationFabrics/{integrationFabricName}
+ ///
+ /// -
+ /// Operation Id
+ /// IntegrationFabrics_Get
+ ///
+ /// -
+ /// Default Api Version
+ /// 2023-10-01-preview
+ ///
+ /// -
+ /// Resource
+ ///
+ ///
+ ///
+ ///
+ /// The integration fabric 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 integrationFabricName, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNullOrEmpty(integrationFabricName, nameof(integrationFabricName));
+
+ using var scope = _integrationFabricClientDiagnostics.CreateScope("IntegrationFabricCollection.Exists");
+ scope.Start();
+ try
+ {
+ var response = _integrationFabricRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, integrationFabricName, 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}/integrationFabrics/{integrationFabricName}
+ ///
+ /// -
+ /// Operation Id
+ /// IntegrationFabrics_Get
+ ///
+ /// -
+ /// Default Api Version
+ /// 2023-10-01-preview
+ ///
+ /// -
+ /// Resource
+ ///
+ ///
+ ///
+ ///
+ /// The integration fabric 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 integrationFabricName, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNullOrEmpty(integrationFabricName, nameof(integrationFabricName));
+
+ using var scope = _integrationFabricClientDiagnostics.CreateScope("IntegrationFabricCollection.GetIfExists");
+ scope.Start();
+ try
+ {
+ var response = await _integrationFabricRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, integrationFabricName, cancellationToken: cancellationToken).ConfigureAwait(false);
+ if (response.Value == null)
+ return new NoValueResponse(response.GetRawResponse());
+ return Response.FromValue(new IntegrationFabricResource(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}/integrationFabrics/{integrationFabricName}
+ ///
+ /// -
+ /// Operation Id
+ /// IntegrationFabrics_Get
+ ///
+ /// -
+ /// Default Api Version
+ /// 2023-10-01-preview
+ ///
+ /// -
+ /// Resource
+ ///
+ ///
+ ///
+ ///
+ /// The integration fabric 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 integrationFabricName, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNullOrEmpty(integrationFabricName, nameof(integrationFabricName));
+
+ using var scope = _integrationFabricClientDiagnostics.CreateScope("IntegrationFabricCollection.GetIfExists");
+ scope.Start();
+ try
+ {
+ var response = _integrationFabricRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, integrationFabricName, cancellationToken: cancellationToken);
+ if (response.Value == null)
+ return new NoValueResponse(response.GetRawResponse());
+ return Response.FromValue(new IntegrationFabricResource(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/grafana/Azure.ResourceManager.Grafana/src/Generated/IntegrationFabricData.Serialization.cs b/sdk/grafana/Azure.ResourceManager.Grafana/src/Generated/IntegrationFabricData.Serialization.cs
new file mode 100644
index 000000000000..1fed3fc1735b
--- /dev/null
+++ b/sdk/grafana/Azure.ResourceManager.Grafana/src/Generated/IntegrationFabricData.Serialization.cs
@@ -0,0 +1,178 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.ClientModel.Primitives;
+using System.Collections.Generic;
+using System.Text.Json;
+using Azure.Core;
+using Azure.ResourceManager.Grafana.Models;
+using Azure.ResourceManager.Models;
+
+namespace Azure.ResourceManager.Grafana
+{
+ public partial class IntegrationFabricData : IUtf8JsonSerializable, IJsonModel
+ {
+ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions);
+
+ void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options)
+ {
+ writer.WriteStartObject();
+ JsonModelWriteCore(writer, options);
+ writer.WriteEndObject();
+ }
+
+ /// The JSON writer.
+ /// The client options for reading and writing models.
+ protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options)
+ {
+ var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format;
+ if (format != "J")
+ {
+ throw new FormatException($"The model {nameof(IntegrationFabricData)} does not support writing '{format}' format.");
+ }
+
+ base.JsonModelWriteCore(writer, options);
+ if (Optional.IsDefined(Properties))
+ {
+ writer.WritePropertyName("properties"u8);
+ writer.WriteObjectValue(Properties, options);
+ }
+ }
+
+ IntegrationFabricData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options)
+ {
+ var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format;
+ if (format != "J")
+ {
+ throw new FormatException($"The model {nameof(IntegrationFabricData)} does not support reading '{format}' format.");
+ }
+
+ using JsonDocument document = JsonDocument.ParseValue(ref reader);
+ return DeserializeIntegrationFabricData(document.RootElement, options);
+ }
+
+ internal static IntegrationFabricData DeserializeIntegrationFabricData(JsonElement element, ModelReaderWriterOptions options = null)
+ {
+ options ??= ModelSerializationExtensions.WireOptions;
+
+ if (element.ValueKind == JsonValueKind.Null)
+ {
+ return null;
+ }
+ IntegrationFabricProperties properties = default;
+ IDictionary tags = default;
+ AzureLocation location = default;
+ ResourceIdentifier id = default;
+ string name = default;
+ ResourceType type = default;
+ SystemData systemData = default;
+ IDictionary serializedAdditionalRawData = default;
+ Dictionary rawDataDictionary = new Dictionary();
+ foreach (var property in element.EnumerateObject())
+ {
+ if (property.NameEquals("properties"u8))
+ {
+ if (property.Value.ValueKind == JsonValueKind.Null)
+ {
+ continue;
+ }
+ properties = IntegrationFabricProperties.DeserializeIntegrationFabricProperties(property.Value, options);
+ continue;
+ }
+ if (property.NameEquals("tags"u8))
+ {
+ if (property.Value.ValueKind == JsonValueKind.Null)
+ {
+ continue;
+ }
+ Dictionary dictionary = new Dictionary();
+ foreach (var property0 in property.Value.EnumerateObject())
+ {
+ dictionary.Add(property0.Name, property0.Value.GetString());
+ }
+ tags = dictionary;
+ continue;
+ }
+ if (property.NameEquals("location"u8))
+ {
+ location = new AzureLocation(property.Value.GetString());
+ continue;
+ }
+ if (property.NameEquals("id"u8))
+ {
+ id = new ResourceIdentifier(property.Value.GetString());
+ continue;
+ }
+ if (property.NameEquals("name"u8))
+ {
+ name = property.Value.GetString();
+ continue;
+ }
+ if (property.NameEquals("type"u8))
+ {
+ type = new ResourceType(property.Value.GetString());
+ continue;
+ }
+ if (property.NameEquals("systemData"u8))
+ {
+ if (property.Value.ValueKind == JsonValueKind.Null)
+ {
+ continue;
+ }
+ systemData = JsonSerializer.Deserialize(property.Value.GetRawText());
+ continue;
+ }
+ if (options.Format != "W")
+ {
+ rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText()));
+ }
+ }
+ serializedAdditionalRawData = rawDataDictionary;
+ return new IntegrationFabricData(
+ id,
+ name,
+ type,
+ systemData,
+ tags ?? new ChangeTrackingDictionary(),
+ location,
+ properties,
+ serializedAdditionalRawData);
+ }
+
+ BinaryData IPersistableModel.Write(ModelReaderWriterOptions options)
+ {
+ var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format;
+
+ switch (format)
+ {
+ case "J":
+ return ModelReaderWriter.Write(this, options);
+ default:
+ throw new FormatException($"The model {nameof(IntegrationFabricData)} does not support writing '{options.Format}' format.");
+ }
+ }
+
+ IntegrationFabricData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options)
+ {
+ var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format;
+
+ switch (format)
+ {
+ case "J":
+ {
+ using JsonDocument document = JsonDocument.Parse(data);
+ return DeserializeIntegrationFabricData(document.RootElement, options);
+ }
+ default:
+ throw new FormatException($"The model {nameof(IntegrationFabricData)} does not support reading '{options.Format}' format.");
+ }
+ }
+
+ string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J";
+ }
+}
diff --git a/sdk/grafana/Azure.ResourceManager.Grafana/src/Generated/IntegrationFabricData.cs b/sdk/grafana/Azure.ResourceManager.Grafana/src/Generated/IntegrationFabricData.cs
new file mode 100644
index 000000000000..8727ae54dc3c
--- /dev/null
+++ b/sdk/grafana/Azure.ResourceManager.Grafana/src/Generated/IntegrationFabricData.cs
@@ -0,0 +1,83 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.Collections.Generic;
+using Azure.Core;
+using Azure.ResourceManager.Grafana.Models;
+using Azure.ResourceManager.Models;
+
+namespace Azure.ResourceManager.Grafana
+{
+ ///
+ /// A class representing the IntegrationFabric data model.
+ /// The integration fabric resource type.
+ ///
+ public partial class IntegrationFabricData : TrackedResourceData
+ {
+ ///
+ /// Keeps track of any properties unknown to the library.
+ ///
+ /// To assign an object to the value of this property use .
+ ///
+ ///
+ /// To assign an already formatted json string to this property use .
+ ///
+ ///
+ /// Examples:
+ ///
+ /// -
+ /// BinaryData.FromObjectAsJson("foo")
+ /// Creates a payload of "foo".
+ ///
+ /// -
+ /// BinaryData.FromString("\"foo\"")
+ /// Creates a payload of "foo".
+ ///
+ /// -
+ /// BinaryData.FromObjectAsJson(new { key = "value" })
+ /// Creates a payload of { "key": "value" }.
+ ///
+ /// -
+ /// BinaryData.FromString("{\"key\": \"value\"}")
+ /// Creates a payload of { "key": "value" }.
+ ///
+ ///
+ ///
+ ///
+ private IDictionary _serializedAdditionalRawData;
+
+ /// Initializes a new instance of .
+ /// The location.
+ public IntegrationFabricData(AzureLocation location) : base(location)
+ {
+ }
+
+ /// Initializes a new instance of .
+ /// The id.
+ /// The name.
+ /// The resourceType.
+ /// The systemData.
+ /// The tags.
+ /// The location.
+ ///
+ /// Keeps track of any properties unknown to the library.
+ internal IntegrationFabricData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary tags, AzureLocation location, IntegrationFabricProperties properties, IDictionary serializedAdditionalRawData) : base(id, name, resourceType, systemData, tags, location)
+ {
+ Properties = properties;
+ _serializedAdditionalRawData = serializedAdditionalRawData;
+ }
+
+ /// Initializes a new instance of for deserialization.
+ internal IntegrationFabricData()
+ {
+ }
+
+ /// Gets or sets the properties.
+ public IntegrationFabricProperties Properties { get; set; }
+ }
+}
diff --git a/sdk/grafana/Azure.ResourceManager.Grafana/src/Generated/IntegrationFabricResource.Serialization.cs b/sdk/grafana/Azure.ResourceManager.Grafana/src/Generated/IntegrationFabricResource.Serialization.cs
new file mode 100644
index 000000000000..7214f74b1ae7
--- /dev/null
+++ b/sdk/grafana/Azure.ResourceManager.Grafana/src/Generated/IntegrationFabricResource.Serialization.cs
@@ -0,0 +1,26 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.ClientModel.Primitives;
+using System.Text.Json;
+
+namespace Azure.ResourceManager.Grafana
+{
+ public partial class IntegrationFabricResource : IJsonModel
+ {
+ void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) => ((IJsonModel)Data).Write(writer, options);
+
+ IntegrationFabricData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => ((IJsonModel)Data).Create(ref reader, options);
+
+ BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) => ModelReaderWriter.Write(Data, options);
+
+ IntegrationFabricData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => ModelReaderWriter.Read(data, options);
+
+ string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => ((IPersistableModel)Data).GetFormatFromOptions(options);
+ }
+}
diff --git a/sdk/grafana/Azure.ResourceManager.Grafana/src/Generated/IntegrationFabricResource.cs b/sdk/grafana/Azure.ResourceManager.Grafana/src/Generated/IntegrationFabricResource.cs
new file mode 100644
index 000000000000..37fc9f7efb15
--- /dev/null
+++ b/sdk/grafana/Azure.ResourceManager.Grafana/src/Generated/IntegrationFabricResource.cs
@@ -0,0 +1,701 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.Collections.Generic;
+using System.Globalization;
+using System.Threading;
+using System.Threading.Tasks;
+using Azure.Core;
+using Azure.Core.Pipeline;
+using Azure.ResourceManager.Grafana.Models;
+
+namespace Azure.ResourceManager.Grafana
+{
+ ///
+ /// A Class representing an IntegrationFabric along with the instance operations that can be performed on it.
+ /// If you have a you can construct an
+ /// from an instance of using the GetIntegrationFabricResource method.
+ /// Otherwise you can get one from its parent resource using the GetIntegrationFabric method.
+ ///
+ public partial class IntegrationFabricResource : ArmResource
+ {
+ /// Generate the resource identifier of a instance.
+ /// The subscriptionId.
+ /// The resourceGroupName.
+ /// The workspaceName.
+ /// The integrationFabricName.
+ public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string workspaceName, string integrationFabricName)
+ {
+ var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Dashboard/grafana/{workspaceName}/integrationFabrics/{integrationFabricName}";
+ return new ResourceIdentifier(resourceId);
+ }
+
+ private readonly ClientDiagnostics _integrationFabricClientDiagnostics;
+ private readonly IntegrationFabricsRestOperations _integrationFabricRestClient;
+ private readonly IntegrationFabricData _data;
+
+ /// Gets the resource type for the operations.
+ public static readonly ResourceType ResourceType = "Microsoft.Dashboard/grafana/integrationFabrics";
+
+ /// Initializes a new instance of the class for mocking.
+ protected IntegrationFabricResource()
+ {
+ }
+
+ /// Initializes a new instance of the class.
+ /// The client parameters to use in these operations.
+ /// The resource that is the target of operations.
+ internal IntegrationFabricResource(ArmClient client, IntegrationFabricData 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 IntegrationFabricResource(ArmClient client, ResourceIdentifier id) : base(client, id)
+ {
+ _integrationFabricClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.Grafana", ResourceType.Namespace, Diagnostics);
+ TryGetApiVersion(ResourceType, out string integrationFabricApiVersion);
+ _integrationFabricRestClient = new IntegrationFabricsRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, integrationFabricApiVersion);
+#if DEBUG
+ ValidateResourceId(Id);
+#endif
+ }
+
+ /// 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 IntegrationFabricData 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));
+ }
+
+ ///
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Dashboard/grafana/{workspaceName}/integrationFabrics/{integrationFabricName}
+ ///
+ /// -
+ /// Operation Id
+ /// IntegrationFabrics_Get
+ ///
+ /// -
+ /// Default Api Version
+ /// 2023-10-01-preview
+ ///
+ /// -
+ /// Resource
+ ///
+ ///
+ ///
+ ///
+ /// The cancellation token to use.
+ public virtual async Task> GetAsync(CancellationToken cancellationToken = default)
+ {
+ using var scope = _integrationFabricClientDiagnostics.CreateScope("IntegrationFabricResource.Get");
+ scope.Start();
+ try
+ {
+ var response = await _integrationFabricRestClient.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 IntegrationFabricResource(Client, response.Value), response.GetRawResponse());
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+
+ ///
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Dashboard/grafana/{workspaceName}/integrationFabrics/{integrationFabricName}
+ ///
+ /// -
+ /// Operation Id
+ /// IntegrationFabrics_Get
+ ///
+ /// -
+ /// Default Api Version
+ /// 2023-10-01-preview
+ ///
+ /// -
+ /// Resource
+ ///
+ ///
+ ///
+ ///
+ /// The cancellation token to use.
+ public virtual Response Get(CancellationToken cancellationToken = default)
+ {
+ using var scope = _integrationFabricClientDiagnostics.CreateScope("IntegrationFabricResource.Get");
+ scope.Start();
+ try
+ {
+ var response = _integrationFabricRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken);
+ if (response.Value == null)
+ throw new RequestFailedException(response.GetRawResponse());
+ return Response.FromValue(new IntegrationFabricResource(Client, response.Value), response.GetRawResponse());
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+
+ ///
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Dashboard/grafana/{workspaceName}/integrationFabrics/{integrationFabricName}
+ ///
+ /// -
+ /// Operation Id
+ /// IntegrationFabrics_Delete
+ ///
+ /// -
+ /// Default Api Version
+ /// 2023-10-01-preview
+ ///
+ /// -
+ /// Resource
+ ///
+ ///
+ ///
+ ///
+ /// 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 = _integrationFabricClientDiagnostics.CreateScope("IntegrationFabricResource.Delete");
+ scope.Start();
+ try
+ {
+ var response = await _integrationFabricRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false);
+ var operation = new GrafanaArmOperation(_integrationFabricClientDiagnostics, Pipeline, _integrationFabricRestClient.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;
+ }
+ }
+
+ ///
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Dashboard/grafana/{workspaceName}/integrationFabrics/{integrationFabricName}
+ ///
+ /// -
+ /// Operation Id
+ /// IntegrationFabrics_Delete
+ ///
+ /// -
+ /// Default Api Version
+ /// 2023-10-01-preview
+ ///
+ /// -
+ /// Resource
+ ///
+ ///
+ ///
+ ///
+ /// 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 = _integrationFabricClientDiagnostics.CreateScope("IntegrationFabricResource.Delete");
+ scope.Start();
+ try
+ {
+ var response = _integrationFabricRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken);
+ var operation = new GrafanaArmOperation(_integrationFabricClientDiagnostics, Pipeline, _integrationFabricRestClient.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;
+ }
+ }
+
+ ///
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Dashboard/grafana/{workspaceName}/integrationFabrics/{integrationFabricName}
+ ///
+ /// -
+ /// Operation Id
+ /// IntegrationFabrics_Update
+ ///
+ /// -
+ /// Default Api Version
+ /// 2023-10-01-preview
+ ///
+ /// -
+ /// Resource
+ ///
+ ///
+ ///
+ ///
+ /// 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 to use.
+ /// The cancellation token to use.
+ /// is null.
+ public virtual async Task> UpdateAsync(WaitUntil waitUntil, IntegrationFabricPatch patch, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNull(patch, nameof(patch));
+
+ using var scope = _integrationFabricClientDiagnostics.CreateScope("IntegrationFabricResource.Update");
+ scope.Start();
+ try
+ {
+ var response = await _integrationFabricRestClient.UpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, patch, cancellationToken).ConfigureAwait(false);
+ var operation = new GrafanaArmOperation(new IntegrationFabricOperationSource(Client), _integrationFabricClientDiagnostics, Pipeline, _integrationFabricRestClient.CreateUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, patch).Request, response, OperationFinalStateVia.AzureAsyncOperation);
+ if (waitUntil == WaitUntil.Completed)
+ await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false);
+ return operation;
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+
+ ///
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Dashboard/grafana/{workspaceName}/integrationFabrics/{integrationFabricName}
+ ///
+ /// -
+ /// Operation Id
+ /// IntegrationFabrics_Update
+ ///
+ /// -
+ /// Default Api Version
+ /// 2023-10-01-preview
+ ///
+ /// -
+ /// Resource
+ ///
+ ///
+ ///
+ ///
+ /// 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 to use.
+ /// The cancellation token to use.
+ /// is null.
+ public virtual ArmOperation Update(WaitUntil waitUntil, IntegrationFabricPatch patch, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNull(patch, nameof(patch));
+
+ using var scope = _integrationFabricClientDiagnostics.CreateScope("IntegrationFabricResource.Update");
+ scope.Start();
+ try
+ {
+ var response = _integrationFabricRestClient.Update(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, patch, cancellationToken);
+ var operation = new GrafanaArmOperation(new IntegrationFabricOperationSource(Client), _integrationFabricClientDiagnostics, Pipeline, _integrationFabricRestClient.CreateUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, patch).Request, response, OperationFinalStateVia.AzureAsyncOperation);
+ if (waitUntil == WaitUntil.Completed)
+ operation.WaitForCompletion(cancellationToken);
+ return operation;
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+
+ ///
+ /// Add a tag to the current resource.
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Dashboard/grafana/{workspaceName}/integrationFabrics/{integrationFabricName}
+ ///
+ /// -
+ /// Operation Id
+ /// IntegrationFabrics_Get
+ ///
+ /// -
+ /// Default Api Version
+ /// 2023-10-01-preview
+ ///
+ /// -
+ /// Resource
+ ///
+ ///
+ ///
+ ///
+ /// The key for the tag.
+ /// The value for the tag.
+ /// The cancellation token to use.
+ /// or is null.
+ public virtual async Task> AddTagAsync(string key, string value, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNull(key, nameof(key));
+ Argument.AssertNotNull(value, nameof(value));
+
+ using var scope = _integrationFabricClientDiagnostics.CreateScope("IntegrationFabricResource.AddTag");
+ scope.Start();
+ try
+ {
+ if (await CanUseTagResourceAsync(cancellationToken: cancellationToken).ConfigureAwait(false))
+ {
+ var originalTags = await GetTagResource().GetAsync(cancellationToken).ConfigureAwait(false);
+ originalTags.Value.Data.TagValues[key] = value;
+ await GetTagResource().CreateOrUpdateAsync(WaitUntil.Completed, originalTags.Value.Data, cancellationToken: cancellationToken).ConfigureAwait(false);
+ var originalResponse = await _integrationFabricRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false);
+ return Response.FromValue(new IntegrationFabricResource(Client, originalResponse.Value), originalResponse.GetRawResponse());
+ }
+ else
+ {
+ var current = (await GetAsync(cancellationToken: cancellationToken).ConfigureAwait(false)).Value.Data;
+ var patch = new IntegrationFabricPatch();
+ foreach (var tag in current.Tags)
+ {
+ patch.Tags.Add(tag);
+ }
+ patch.Tags[key] = value;
+ var result = await UpdateAsync(WaitUntil.Completed, patch, cancellationToken: cancellationToken).ConfigureAwait(false);
+ return Response.FromValue(result.Value, result.GetRawResponse());
+ }
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+
+ ///
+ /// Add a tag to the current resource.
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Dashboard/grafana/{workspaceName}/integrationFabrics/{integrationFabricName}
+ ///
+ /// -
+ /// Operation Id
+ /// IntegrationFabrics_Get
+ ///
+ /// -
+ /// Default Api Version
+ /// 2023-10-01-preview
+ ///
+ /// -
+ /// Resource
+ ///
+ ///
+ ///
+ ///
+ /// The key for the tag.
+ /// The value for the tag.
+ /// The cancellation token to use.
+ /// or is null.
+ public virtual Response AddTag(string key, string value, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNull(key, nameof(key));
+ Argument.AssertNotNull(value, nameof(value));
+
+ using var scope = _integrationFabricClientDiagnostics.CreateScope("IntegrationFabricResource.AddTag");
+ scope.Start();
+ try
+ {
+ if (CanUseTagResource(cancellationToken: cancellationToken))
+ {
+ var originalTags = GetTagResource().Get(cancellationToken);
+ originalTags.Value.Data.TagValues[key] = value;
+ GetTagResource().CreateOrUpdate(WaitUntil.Completed, originalTags.Value.Data, cancellationToken: cancellationToken);
+ var originalResponse = _integrationFabricRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken);
+ return Response.FromValue(new IntegrationFabricResource(Client, originalResponse.Value), originalResponse.GetRawResponse());
+ }
+ else
+ {
+ var current = Get(cancellationToken: cancellationToken).Value.Data;
+ var patch = new IntegrationFabricPatch();
+ foreach (var tag in current.Tags)
+ {
+ patch.Tags.Add(tag);
+ }
+ patch.Tags[key] = value;
+ var result = Update(WaitUntil.Completed, patch, cancellationToken: cancellationToken);
+ return Response.FromValue(result.Value, result.GetRawResponse());
+ }
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+
+ ///
+ /// Replace the tags on the resource with the given set.
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Dashboard/grafana/{workspaceName}/integrationFabrics/{integrationFabricName}
+ ///
+ /// -
+ /// Operation Id
+ /// IntegrationFabrics_Get
+ ///
+ /// -
+ /// Default Api Version
+ /// 2023-10-01-preview
+ ///
+ /// -
+ /// Resource
+ ///
+ ///
+ ///
+ ///
+ /// The set of tags to use as replacement.
+ /// The cancellation token to use.
+ /// is null.
+ public virtual async Task> SetTagsAsync(IDictionary tags, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNull(tags, nameof(tags));
+
+ using var scope = _integrationFabricClientDiagnostics.CreateScope("IntegrationFabricResource.SetTags");
+ scope.Start();
+ try
+ {
+ if (await CanUseTagResourceAsync(cancellationToken: cancellationToken).ConfigureAwait(false))
+ {
+ await GetTagResource().DeleteAsync(WaitUntil.Completed, cancellationToken: cancellationToken).ConfigureAwait(false);
+ var originalTags = await GetTagResource().GetAsync(cancellationToken).ConfigureAwait(false);
+ originalTags.Value.Data.TagValues.ReplaceWith(tags);
+ await GetTagResource().CreateOrUpdateAsync(WaitUntil.Completed, originalTags.Value.Data, cancellationToken: cancellationToken).ConfigureAwait(false);
+ var originalResponse = await _integrationFabricRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false);
+ return Response.FromValue(new IntegrationFabricResource(Client, originalResponse.Value), originalResponse.GetRawResponse());
+ }
+ else
+ {
+ var current = (await GetAsync(cancellationToken: cancellationToken).ConfigureAwait(false)).Value.Data;
+ var patch = new IntegrationFabricPatch();
+ patch.Tags.ReplaceWith(tags);
+ var result = await UpdateAsync(WaitUntil.Completed, patch, cancellationToken: cancellationToken).ConfigureAwait(false);
+ return Response.FromValue(result.Value, result.GetRawResponse());
+ }
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+
+ ///
+ /// Replace the tags on the resource with the given set.
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Dashboard/grafana/{workspaceName}/integrationFabrics/{integrationFabricName}
+ ///
+ /// -
+ /// Operation Id
+ /// IntegrationFabrics_Get
+ ///
+ /// -
+ /// Default Api Version
+ /// 2023-10-01-preview
+ ///
+ /// -
+ /// Resource
+ ///
+ ///
+ ///
+ ///
+ /// The set of tags to use as replacement.
+ /// The cancellation token to use.
+ /// is null.
+ public virtual Response SetTags(IDictionary tags, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNull(tags, nameof(tags));
+
+ using var scope = _integrationFabricClientDiagnostics.CreateScope("IntegrationFabricResource.SetTags");
+ scope.Start();
+ try
+ {
+ if (CanUseTagResource(cancellationToken: cancellationToken))
+ {
+ GetTagResource().Delete(WaitUntil.Completed, cancellationToken: cancellationToken);
+ var originalTags = GetTagResource().Get(cancellationToken);
+ originalTags.Value.Data.TagValues.ReplaceWith(tags);
+ GetTagResource().CreateOrUpdate(WaitUntil.Completed, originalTags.Value.Data, cancellationToken: cancellationToken);
+ var originalResponse = _integrationFabricRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken);
+ return Response.FromValue(new IntegrationFabricResource(Client, originalResponse.Value), originalResponse.GetRawResponse());
+ }
+ else
+ {
+ var current = Get(cancellationToken: cancellationToken).Value.Data;
+ var patch = new IntegrationFabricPatch();
+ patch.Tags.ReplaceWith(tags);
+ var result = Update(WaitUntil.Completed, patch, cancellationToken: cancellationToken);
+ return Response.FromValue(result.Value, result.GetRawResponse());
+ }
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+
+ ///
+ /// Removes a tag by key from the resource.
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Dashboard/grafana/{workspaceName}/integrationFabrics/{integrationFabricName}
+ ///
+ /// -
+ /// Operation Id
+ /// IntegrationFabrics_Get
+ ///
+ /// -
+ /// Default Api Version
+ /// 2023-10-01-preview
+ ///
+ /// -
+ /// Resource
+ ///
+ ///
+ ///
+ ///
+ /// The key for the tag.
+ /// The cancellation token to use.
+ /// is null.
+ public virtual async Task> RemoveTagAsync(string key, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNull(key, nameof(key));
+
+ using var scope = _integrationFabricClientDiagnostics.CreateScope("IntegrationFabricResource.RemoveTag");
+ scope.Start();
+ try
+ {
+ if (await CanUseTagResourceAsync(cancellationToken: cancellationToken).ConfigureAwait(false))
+ {
+ var originalTags = await GetTagResource().GetAsync(cancellationToken).ConfigureAwait(false);
+ originalTags.Value.Data.TagValues.Remove(key);
+ await GetTagResource().CreateOrUpdateAsync(WaitUntil.Completed, originalTags.Value.Data, cancellationToken: cancellationToken).ConfigureAwait(false);
+ var originalResponse = await _integrationFabricRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false);
+ return Response.FromValue(new IntegrationFabricResource(Client, originalResponse.Value), originalResponse.GetRawResponse());
+ }
+ else
+ {
+ var current = (await GetAsync(cancellationToken: cancellationToken).ConfigureAwait(false)).Value.Data;
+ var patch = new IntegrationFabricPatch();
+ foreach (var tag in current.Tags)
+ {
+ patch.Tags.Add(tag);
+ }
+ patch.Tags.Remove(key);
+ var result = await UpdateAsync(WaitUntil.Completed, patch, cancellationToken: cancellationToken).ConfigureAwait(false);
+ return Response.FromValue(result.Value, result.GetRawResponse());
+ }
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+
+ ///
+ /// Removes a tag by key from the resource.
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Dashboard/grafana/{workspaceName}/integrationFabrics/{integrationFabricName}
+ ///
+ /// -
+ /// Operation Id
+ /// IntegrationFabrics_Get
+ ///
+ /// -
+ /// Default Api Version
+ /// 2023-10-01-preview
+ ///
+ /// -
+ /// Resource
+ ///
+ ///
+ ///
+ ///
+ /// The key for the tag.
+ /// The cancellation token to use.
+ /// is null.
+ public virtual Response RemoveTag(string key, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNull(key, nameof(key));
+
+ using var scope = _integrationFabricClientDiagnostics.CreateScope("IntegrationFabricResource.RemoveTag");
+ scope.Start();
+ try
+ {
+ if (CanUseTagResource(cancellationToken: cancellationToken))
+ {
+ var originalTags = GetTagResource().Get(cancellationToken);
+ originalTags.Value.Data.TagValues.Remove(key);
+ GetTagResource().CreateOrUpdate(WaitUntil.Completed, originalTags.Value.Data, cancellationToken: cancellationToken);
+ var originalResponse = _integrationFabricRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken);
+ return Response.FromValue(new IntegrationFabricResource(Client, originalResponse.Value), originalResponse.GetRawResponse());
+ }
+ else
+ {
+ var current = Get(cancellationToken: cancellationToken).Value.Data;
+ var patch = new IntegrationFabricPatch();
+ foreach (var tag in current.Tags)
+ {
+ patch.Tags.Add(tag);
+ }
+ patch.Tags.Remove(key);
+ var result = Update(WaitUntil.Completed, patch, cancellationToken: cancellationToken);
+ return Response.FromValue(result.Value, result.GetRawResponse());
+ }
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+ }
+}
diff --git a/sdk/grafana/Azure.ResourceManager.Grafana/src/Generated/LongRunningOperation/IntegrationFabricOperationSource.cs b/sdk/grafana/Azure.ResourceManager.Grafana/src/Generated/LongRunningOperation/IntegrationFabricOperationSource.cs
new file mode 100644
index 000000000000..d0a356ba03ea
--- /dev/null
+++ b/sdk/grafana/Azure.ResourceManager.Grafana/src/Generated/LongRunningOperation/IntegrationFabricOperationSource.cs
@@ -0,0 +1,38 @@
+// 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.Core;
+
+namespace Azure.ResourceManager.Grafana
+{
+ internal class IntegrationFabricOperationSource : IOperationSource
+ {
+ private readonly ArmClient _client;
+
+ internal IntegrationFabricOperationSource(ArmClient client)
+ {
+ _client = client;
+ }
+
+ IntegrationFabricResource IOperationSource.CreateResult(Response response, CancellationToken cancellationToken)
+ {
+ using var document = JsonDocument.Parse(response.ContentStream);
+ var data = IntegrationFabricData.DeserializeIntegrationFabricData(document.RootElement);
+ return new IntegrationFabricResource(_client, data);
+ }
+
+ async ValueTask IOperationSource.CreateResultAsync(Response response, CancellationToken cancellationToken)
+ {
+ using var document = await JsonDocument.ParseAsync(response.ContentStream, default, cancellationToken).ConfigureAwait(false);
+ var data = IntegrationFabricData.DeserializeIntegrationFabricData(document.RootElement);
+ return new IntegrationFabricResource(_client, data);
+ }
+ }
+}
diff --git a/sdk/grafana/Azure.ResourceManager.Grafana/src/Generated/ManagedGrafanaCollection.cs b/sdk/grafana/Azure.ResourceManager.Grafana/src/Generated/ManagedGrafanaCollection.cs
index 021e9bee94f4..387e04df1866 100644
--- a/sdk/grafana/Azure.ResourceManager.Grafana/src/Generated/ManagedGrafanaCollection.cs
+++ b/sdk/grafana/Azure.ResourceManager.Grafana/src/Generated/ManagedGrafanaCollection.cs
@@ -65,7 +65,7 @@ internal static void ValidateResourceId(ResourceIdentifier id)
///
/// -
/// Default Api Version
- /// 2023-09-01
+ /// 2023-10-01-preview
///
/// -
/// Resource
@@ -114,7 +114,7 @@ public virtual async Task> CreateOrUpdateAs
///
/// -
/// Default Api Version
- /// 2023-09-01
+ /// 2023-10-01-preview
///
/// -
/// Resource
@@ -163,7 +163,7 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil wai
///
/// -
/// Default Api Version
- /// 2023-09-01
+ /// 2023-10-01-preview
///
/// -
/// Resource
@@ -208,7 +208,7 @@ public virtual async Task> GetAsync(string work
///
/// -
/// Default Api Version
- /// 2023-09-01
+ /// 2023-10-01-preview
///
/// -
/// Resource
@@ -253,7 +253,7 @@ public virtual Response Get(string workspaceName, Cancel
///
/// -
/// Default Api Version
- /// 2023-09-01
+ /// 2023-10-01-preview
///
/// -
/// Resource
@@ -283,7 +283,7 @@ public virtual AsyncPageable GetAllAsync(CancellationTok
///
/// -
/// Default Api Version
- /// 2023-09-01
+ /// 2023-10-01-preview
///
/// -
/// Resource
@@ -313,7 +313,7 @@ public virtual Pageable GetAll(CancellationToken cancell
///
/// -
/// Default Api Version
- /// 2023-09-01
+ /// 2023-10-01-preview
///
/// -
/// Resource
@@ -356,7 +356,7 @@ public virtual async Task> ExistsAsync(string workspaceName, Canc
///
/// -
/// Default Api Version
- /// 2023-09-01
+ /// 2023-10-01-preview
///
/// -
/// Resource
@@ -399,7 +399,7 @@ public virtual Response Exists(string workspaceName, CancellationToken can
///
/// -
/// Default Api Version
- /// 2023-09-01
+ /// 2023-10-01-preview
///
/// -
/// Resource
@@ -444,7 +444,7 @@ public virtual async Task> GetIfExistsA
///
/// -
/// Default Api Version
- /// 2023-09-01
+ /// 2023-10-01-preview
///
/// -
/// Resource
diff --git a/sdk/grafana/Azure.ResourceManager.Grafana/src/Generated/ManagedGrafanaResource.cs b/sdk/grafana/Azure.ResourceManager.Grafana/src/Generated/ManagedGrafanaResource.cs
index 55deab669011..50fbe7212c9d 100644
--- a/sdk/grafana/Azure.ResourceManager.Grafana/src/Generated/ManagedGrafanaResource.cs
+++ b/sdk/grafana/Azure.ResourceManager.Grafana/src/Generated/ManagedGrafanaResource.cs
@@ -116,7 +116,7 @@ public virtual GrafanaPrivateEndpointConnectionCollection GetGrafanaPrivateEndpo
///
/// -
/// Default Api Version
- /// 2023-09-01
+ /// 2023-10-01-preview
///
/// -
/// Resource
@@ -147,7 +147,7 @@ public virtual async Task> Ge
///
/// -
/// Default Api Version
- /// 2023-09-01
+ /// 2023-10-01-preview
///
/// -
/// Resource
@@ -185,7 +185,7 @@ public virtual GrafanaPrivateLinkResourceCollection GetGrafanaPrivateLinkResourc
///
/// -
/// Default Api Version
- /// 2023-09-01
+ /// 2023-10-01-preview
///
/// -
/// Resource
@@ -216,7 +216,7 @@ public virtual async Task> GetGrafanaPrivat
///
/// -
/// Default Api Version
- /// 2023-09-01
+ /// 2023-10-01-preview
///
/// -
/// Resource
@@ -254,7 +254,7 @@ public virtual ManagedPrivateEndpointModelCollection GetManagedPrivateEndpointMo
///
/// -
/// Default Api Version
- /// 2023-09-01
+ /// 2023-10-01-preview
///
/// -
/// Resource
@@ -285,7 +285,7 @@ public virtual async Task> GetMana
///
/// -
/// Default Api Version
- /// 2023-09-01
+ /// 2023-10-01-preview
///
/// -
/// Resource
@@ -303,6 +303,73 @@ public virtual Response GetManagedPrivateEn
return GetManagedPrivateEndpointModels().Get(managedPrivateEndpointName, cancellationToken);
}
+ /// Gets a collection of IntegrationFabricResources in the ManagedGrafana.
+ /// An object representing collection of IntegrationFabricResources and their operations over a IntegrationFabricResource.
+ public virtual IntegrationFabricCollection GetIntegrationFabrics()
+ {
+ return GetCachedClient(client => new IntegrationFabricCollection(client, Id));
+ }
+
+ ///
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Dashboard/grafana/{workspaceName}/integrationFabrics/{integrationFabricName}
+ ///
+ /// -
+ /// Operation Id
+ /// IntegrationFabrics_Get
+ ///
+ /// -
+ /// Default Api Version
+ /// 2023-10-01-preview
+ ///
+ /// -
+ /// Resource
+ ///
+ ///
+ ///
+ ///
+ /// The integration fabric name of Azure Managed Grafana.
+ /// The cancellation token to use.
+ /// is null.
+ /// is an empty string, and was expected to be non-empty.
+ [ForwardsClientCalls]
+ public virtual async Task> GetIntegrationFabricAsync(string integrationFabricName, CancellationToken cancellationToken = default)
+ {
+ return await GetIntegrationFabrics().GetAsync(integrationFabricName, cancellationToken).ConfigureAwait(false);
+ }
+
+ ///
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Dashboard/grafana/{workspaceName}/integrationFabrics/{integrationFabricName}
+ ///
+ /// -
+ /// Operation Id
+ /// IntegrationFabrics_Get
+ ///
+ /// -
+ /// Default Api Version
+ /// 2023-10-01-preview
+ ///
+ /// -
+ /// Resource
+ ///
+ ///
+ ///
+ ///
+ /// The integration fabric name of Azure Managed Grafana.
+ /// The cancellation token to use.
+ /// is null.
+ /// is an empty string, and was expected to be non-empty.
+ [ForwardsClientCalls]
+ public virtual Response GetIntegrationFabric(string integrationFabricName, CancellationToken cancellationToken = default)
+ {
+ return GetIntegrationFabrics().Get(integrationFabricName, cancellationToken);
+ }
+
///
/// Get the properties of a specific workspace for Grafana resource.
///
@@ -316,7 +383,7 @@ public virtual Response GetManagedPrivateEn
///
/// -
/// Default Api Version
- /// 2023-09-01
+ /// 2023-10-01-preview
///
/// -
/// Resource
@@ -356,7 +423,7 @@ public virtual async Task> GetAsync(Cancellatio
///
/// -
/// Default Api Version
- /// 2023-09-01
+ /// 2023-10-01-preview
///
/// -
/// Resource
@@ -396,7 +463,7 @@ public virtual Response Get(CancellationToken cancellati
///
/// -
/// Default Api Version
- /// 2023-09-01
+ /// 2023-10-01-preview
///
/// -
/// Resource
@@ -438,7 +505,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell
///
/// -
/// Default Api Version
- /// 2023-09-01
+ /// 2023-10-01-preview
///
/// -
/// Resource
@@ -480,7 +547,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel
///
/// -
/// Default Api Version
- /// 2023-09-01
+ /// 2023-10-01-preview
///
/// -
/// Resource
@@ -522,7 +589,7 @@ public virtual async Task> UpdateAsync(ManagedG
///
/// -
/// Default Api Version
- /// 2023-09-01
+ /// 2023-10-01-preview
///
/// -
/// Resource
@@ -564,7 +631,7 @@ public virtual Response Update(ManagedGrafanaPatch patch
///
/// -
/// Default Api Version
- /// 2023-09-01
+ /// 2023-10-01-preview
///
/// -
/// Resource
@@ -602,7 +669,7 @@ public virtual async Task> CheckEnterpriseDetailsAsy
///
/// -
/// Default Api Version
- /// 2023-09-01
+ /// 2023-10-01-preview
///
/// -
/// Resource
@@ -639,7 +706,7 @@ public virtual Response CheckEnterpriseDetails(CancellationTo
///
/// -
/// Default Api Version
- /// 2023-09-01
+ /// 2023-10-01-preview
///
/// -
/// Resource
@@ -667,7 +734,7 @@ public virtual AsyncPageable FetchAvailablePluginsAsync(
///
/// -
/// Default Api Version
- /// 2023-09-01
+ /// 2023-10-01-preview
///
/// -
/// Resource
@@ -696,7 +763,7 @@ public virtual Pageable FetchAvailablePlugins(Cancellati
///
/// -
/// Default Api Version
- /// 2023-09-01
+ /// 2023-10-01-preview
///
/// -
/// Resource
@@ -738,7 +805,7 @@ public virtual async Task RefreshManagedPrivateEndpointAsync(WaitU
///
/// -
/// Default Api Version
- /// 2023-09-01
+ /// 2023-10-01-preview
///
/// -
/// Resource
@@ -780,7 +847,7 @@ public virtual ArmOperation RefreshManagedPrivateEndpoint(WaitUntil waitUntil, C
///
/// -
/// Default Api Version
- /// 2023-09-01
+ /// 2023-10-01-preview
///
/// -
/// Resource
@@ -842,7 +909,7 @@ public virtual async Task> AddTagAsync(string k
///
/// -
/// Default Api Version
- /// 2023-09-01
+ /// 2023-10-01-preview
///
/// -
/// Resource
@@ -904,7 +971,7 @@ public virtual Response AddTag(string key, string value,
///
/// -
/// Default Api Version
- /// 2023-09-01
+ /// 2023-10-01-preview
///
/// -
/// Resource
@@ -961,7 +1028,7 @@ public virtual async Task> SetTagsAsync(IDictio
///
/// -
/// Default Api Version
- /// 2023-09-01
+ /// 2023-10-01-preview
///
/// -
/// Resource
@@ -1018,7 +1085,7 @@ public virtual Response SetTags(IDictionary
///
-
/// Default Api Version
- /// 2023-09-01
+ /// 2023-10-01-preview
///
/// -
/// Resource
@@ -1078,7 +1145,7 @@ public virtual async Task> RemoveTagAsync(strin
///
/// -
/// Default Api Version
- /// 2023-09-01
+ /// 2023-10-01-preview
///
/// -
/// Resource
diff --git a/sdk/grafana/Azure.ResourceManager.Grafana/src/Generated/ManagedPrivateEndpointModelCollection.cs b/sdk/grafana/Azure.ResourceManager.Grafana/src/Generated/ManagedPrivateEndpointModelCollection.cs
index cf468d932502..b816eb9f989f 100644
--- a/sdk/grafana/Azure.ResourceManager.Grafana/src/Generated/ManagedPrivateEndpointModelCollection.cs
+++ b/sdk/grafana/Azure.ResourceManager.Grafana/src/Generated/ManagedPrivateEndpointModelCollection.cs
@@ -64,7 +64,7 @@ internal static void ValidateResourceId(ResourceIdentifier id)
///
/// -
/// Default Api Version
- /// 2023-09-01
+ /// 2023-10-01-preview
///
/// -
/// Resource
@@ -113,7 +113,7 @@ public virtual async Task> Cre
///
/// -
/// Default Api Version
- /// 2023-09-01
+ /// 2023-10-01-preview
///
/// -
/// Resource
@@ -162,7 +162,7 @@ public virtual ArmOperation CreateOrUpdate(
///
/// -
/// Default Api Version
- /// 2023-09-01
+ /// 2023-10-01-preview
///
/// -
/// Resource
@@ -207,7 +207,7 @@ public virtual async Task> GetAsyn
///
/// -
/// Default Api Version
- /// 2023-09-01
+ /// 2023-10-01-preview
///
/// -
/// Resource
@@ -252,7 +252,7 @@ public virtual Response Get(string managedP
///
/// -
/// Default Api Version
- /// 2023-09-01
+ /// 2023-10-01-preview
///
/// -
/// Resource
@@ -282,7 +282,7 @@ public virtual AsyncPageable GetAllAsync(Ca
///
/// -
/// Default Api Version
- /// 2023-09-01
+ /// 2023-10-01-preview
///
/// -
/// Resource
@@ -312,7 +312,7 @@ public virtual Pageable GetAll(Cancellation
///
/// -
/// Default Api Version
- /// 2023-09-01
+ /// 2023-10-01-preview
///
/// -
/// Resource
@@ -355,7 +355,7 @@ public virtual async Task> ExistsAsync(string managedPrivateEndpo
///
/// -
/// Default Api Version
- /// 2023-09-01
+ /// 2023-10-01-preview
///
/// -
/// Resource
@@ -398,7 +398,7 @@ public virtual Response Exists(string managedPrivateEndpointName, Cancella
///
/// -
/// Default Api Version
- /// 2023-09-01
+ /// 2023-10-01-preview
///
/// -
/// Resource
@@ -443,7 +443,7 @@ public virtual async Task>
///
/// -
/// Default Api Version
- /// 2023-09-01
+ /// 2023-10-01-preview
///
/// -
/// Resource
diff --git a/sdk/grafana/Azure.ResourceManager.Grafana/src/Generated/ManagedPrivateEndpointModelResource.cs b/sdk/grafana/Azure.ResourceManager.Grafana/src/Generated/ManagedPrivateEndpointModelResource.cs
index b8c25ca7e898..4b74427b5c90 100644
--- a/sdk/grafana/Azure.ResourceManager.Grafana/src/Generated/ManagedPrivateEndpointModelResource.cs
+++ b/sdk/grafana/Azure.ResourceManager.Grafana/src/Generated/ManagedPrivateEndpointModelResource.cs
@@ -103,7 +103,7 @@ internal static void ValidateResourceId(ResourceIdentifier id)
///
/// -
/// Default Api Version
- /// 2023-09-01
+ /// 2023-10-01-preview
///
/// -
/// Resource
@@ -143,7 +143,7 @@ public virtual async Task> GetAsyn
///
/// -
/// Default Api Version
- /// 2023-09-01
+ /// 2023-10-01-preview
///
/// -
/// Resource
@@ -183,7 +183,7 @@ public virtual Response Get(CancellationTok
///
/// -
/// Default Api Version
- /// 2023-09-01
+ /// 2023-10-01-preview
///
/// -
/// Resource
@@ -225,7 +225,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell
///
/// -
/// Default Api Version
- /// 2023-09-01
+ /// 2023-10-01-preview
///
/// -
/// Resource
@@ -267,7 +267,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel
///
/// -
/// Default Api Version
- /// 2023-09-01
+ /// 2023-10-01-preview
///
/// -
/// Resource
@@ -313,7 +313,7 @@ public virtual async Task> Upd
///
/// -
/// Default Api Version
- /// 2023-09-01
+ /// 2023-10-01-preview
///
/// -
/// Resource
@@ -359,7 +359,7 @@ public virtual ArmOperation Update(WaitUnti
///
/// -
/// Default Api Version
- /// 2023-09-01
+ /// 2023-10-01-preview
///
/// -
/// Resource
@@ -421,7 +421,7 @@ public virtual async Task> AddTagA
///
/// -
/// Default Api Version
- /// 2023-09-01
+ /// 2023-10-01-preview
///
/// -
/// Resource
@@ -483,7 +483,7 @@ public virtual Response AddTag(string key,
///
/// -
/// Default Api Version
- /// 2023-09-01
+ /// 2023-10-01-preview
///
/// -
/// Resource
@@ -540,7 +540,7 @@ public virtual async Task> SetTags
///
/// -
/// Default Api Version
- /// 2023-09-01
+ /// 2023-10-01-preview
///
/// -
/// Resource
@@ -597,7 +597,7 @@ public virtual Response SetTags(IDictionary
///
/// -
/// Default Api Version
- /// 2023-09-01
+ /// 2023-10-01-preview
///
/// -
/// Resource
@@ -657,7 +657,7 @@ public virtual async Task> RemoveT
///
/// -
/// Default Api Version
- /// 2023-09-01
+ /// 2023-10-01-preview
///
/// -
/// Resource
diff --git a/sdk/grafana/Azure.ResourceManager.Grafana/src/Generated/Models/GrafanaConfigurations.Serialization.cs b/sdk/grafana/Azure.ResourceManager.Grafana/src/Generated/Models/GrafanaConfigurations.Serialization.cs
index 3e18ebdaaea7..31ead4d0d3d8 100644
--- a/sdk/grafana/Azure.ResourceManager.Grafana/src/Generated/Models/GrafanaConfigurations.Serialization.cs
+++ b/sdk/grafana/Azure.ResourceManager.Grafana/src/Generated/Models/GrafanaConfigurations.Serialization.cs
@@ -13,7 +13,7 @@
namespace Azure.ResourceManager.Grafana.Models
{
- internal partial class GrafanaConfigurations : IUtf8JsonSerializable, IJsonModel
+ public partial class GrafanaConfigurations : IUtf8JsonSerializable, IJsonModel
{
void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions);
@@ -39,6 +39,16 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit
writer.WritePropertyName("smtp"u8);
writer.WriteObjectValue(Smtp, options);
}
+ if (Optional.IsDefined(Snapshots))
+ {
+ writer.WritePropertyName("snapshots"u8);
+ writer.WriteObjectValue(Snapshots, options);
+ }
+ if (Optional.IsDefined(Users))
+ {
+ writer.WritePropertyName("users"u8);
+ writer.WriteObjectValue(Users, options);
+ }
if (options.Format != "W" && _serializedAdditionalRawData != null)
{
foreach (var item in _serializedAdditionalRawData)
@@ -77,6 +87,8 @@ internal static GrafanaConfigurations DeserializeGrafanaConfigurations(JsonEleme
return null;
}
Smtp smtp = default;
+ Snapshots snapshots = default;
+ Users users = default;
IDictionary serializedAdditionalRawData = default;
Dictionary rawDataDictionary = new Dictionary();
foreach (var property in element.EnumerateObject())
@@ -90,13 +102,31 @@ internal static GrafanaConfigurations DeserializeGrafanaConfigurations(JsonEleme
smtp = Smtp.DeserializeSmtp(property.Value, options);
continue;
}
+ if (property.NameEquals("snapshots"u8))
+ {
+ if (property.Value.ValueKind == JsonValueKind.Null)
+ {
+ continue;
+ }
+ snapshots = Snapshots.DeserializeSnapshots(property.Value, options);
+ continue;
+ }
+ if (property.NameEquals("users"u8))
+ {
+ if (property.Value.ValueKind == JsonValueKind.Null)
+ {
+ continue;
+ }
+ users = Users.DeserializeUsers(property.Value, options);
+ continue;
+ }
if (options.Format != "W")
{
rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText()));
}
}
serializedAdditionalRawData = rawDataDictionary;
- return new GrafanaConfigurations(smtp, serializedAdditionalRawData);
+ return new GrafanaConfigurations(smtp, snapshots, users, serializedAdditionalRawData);
}
BinaryData IPersistableModel.Write(ModelReaderWriterOptions options)
diff --git a/sdk/grafana/Azure.ResourceManager.Grafana/src/Generated/Models/GrafanaConfigurations.cs b/sdk/grafana/Azure.ResourceManager.Grafana/src/Generated/Models/GrafanaConfigurations.cs
index 352f5475820f..c655614ab258 100644
--- a/sdk/grafana/Azure.ResourceManager.Grafana/src/Generated/Models/GrafanaConfigurations.cs
+++ b/sdk/grafana/Azure.ResourceManager.Grafana/src/Generated/Models/GrafanaConfigurations.cs
@@ -11,7 +11,7 @@
namespace Azure.ResourceManager.Grafana.Models
{
/// Server configurations of a Grafana instance.
- internal partial class GrafanaConfigurations
+ public partial class GrafanaConfigurations
{
///
/// Keeps track of any properties unknown to the library.
@@ -55,10 +55,14 @@ public GrafanaConfigurations()
/// Email server settings.
/// https://grafana.com/docs/grafana/v9.0/setup-grafana/configure-grafana/#smtp
///
+ /// Grafana Snapshots settings.
+ /// Grafana users settings.
/// Keeps track of any properties unknown to the library.
- internal GrafanaConfigurations(Smtp smtp, IDictionary serializedAdditionalRawData)
+ internal GrafanaConfigurations(Smtp smtp, Snapshots snapshots, Users users, IDictionary serializedAdditionalRawData)
{
Smtp = smtp;
+ Snapshots = snapshots;
+ Users = users;
_serializedAdditionalRawData = serializedAdditionalRawData;
}
@@ -67,5 +71,32 @@ internal GrafanaConfigurations(Smtp smtp, IDictionary serial
/// https://grafana.com/docs/grafana/v9.0/setup-grafana/configure-grafana/#smtp
///
public Smtp Smtp { get; set; }
+ /// Grafana Snapshots settings.
+ internal Snapshots Snapshots { get; set; }
+ /// Set to false to disable external snapshot publish endpoint.
+ public bool? ExternalEnabled
+ {
+ get => Snapshots is null ? default : Snapshots.ExternalEnabled;
+ set
+ {
+ if (Snapshots is null)
+ Snapshots = new Snapshots();
+ Snapshots.ExternalEnabled = value;
+ }
+ }
+
+ /// Grafana users settings.
+ internal Users Users { get; set; }
+ /// Set to true so viewers can access and use explore and perform temporary edits on panels in dashboards they have access to. They cannot save their changes.
+ public bool? ViewersCanEdit
+ {
+ get => Users is null ? default : Users.ViewersCanEdit;
+ set
+ {
+ if (Users is null)
+ Users = new Users();
+ Users.ViewersCanEdit = value;
+ }
+ }
}
}
diff --git a/sdk/grafana/Azure.ResourceManager.Grafana/src/Generated/Models/IntegrationFabricListResponse.Serialization.cs b/sdk/grafana/Azure.ResourceManager.Grafana/src/Generated/Models/IntegrationFabricListResponse.Serialization.cs
new file mode 100644
index 000000000000..b20a49453688
--- /dev/null
+++ b/sdk/grafana/Azure.ResourceManager.Grafana/src/Generated/Models/IntegrationFabricListResponse.Serialization.cs
@@ -0,0 +1,154 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.ClientModel.Primitives;
+using System.Collections.Generic;
+using System.Text.Json;
+using Azure.Core;
+
+namespace Azure.ResourceManager.Grafana.Models
+{
+ internal partial class IntegrationFabricListResponse : IUtf8JsonSerializable, IJsonModel
+ {
+ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions);
+
+ void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options)
+ {
+ writer.WriteStartObject();
+ JsonModelWriteCore(writer, options);
+ writer.WriteEndObject();
+ }
+
+ /// The JSON writer.
+ /// The client options for reading and writing models.
+ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options)
+ {
+ var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format;
+ if (format != "J")
+ {
+ throw new FormatException($"The model {nameof(IntegrationFabricListResponse)} does not support writing '{format}' format.");
+ }
+
+ if (Optional.IsCollectionDefined(Value))
+ {
+ writer.WritePropertyName("value"u8);
+ writer.WriteStartArray();
+ foreach (var item in Value)
+ {
+ writer.WriteObjectValue(item, options);
+ }
+ writer.WriteEndArray();
+ }
+ if (Optional.IsDefined(NextLink))
+ {
+ writer.WritePropertyName("nextLink"u8);
+ writer.WriteStringValue(NextLink);
+ }
+ if (options.Format != "W" && _serializedAdditionalRawData != null)
+ {
+ foreach (var item in _serializedAdditionalRawData)
+ {
+ writer.WritePropertyName(item.Key);
+#if NET6_0_OR_GREATER
+ writer.WriteRawValue(item.Value);
+#else
+ using (JsonDocument document = JsonDocument.Parse(item.Value))
+ {
+ JsonSerializer.Serialize(writer, document.RootElement);
+ }
+#endif
+ }
+ }
+ }
+
+ IntegrationFabricListResponse IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options)
+ {
+ var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format;
+ if (format != "J")
+ {
+ throw new FormatException($"The model {nameof(IntegrationFabricListResponse)} does not support reading '{format}' format.");
+ }
+
+ using JsonDocument document = JsonDocument.ParseValue(ref reader);
+ return DeserializeIntegrationFabricListResponse(document.RootElement, options);
+ }
+
+ internal static IntegrationFabricListResponse DeserializeIntegrationFabricListResponse(JsonElement element, ModelReaderWriterOptions options = null)
+ {
+ options ??= ModelSerializationExtensions.WireOptions;
+
+ if (element.ValueKind == JsonValueKind.Null)
+ {
+ return null;
+ }
+ IReadOnlyList value = default;
+ string nextLink = default;
+ IDictionary serializedAdditionalRawData = default;
+ Dictionary rawDataDictionary = new Dictionary();
+ foreach (var property in element.EnumerateObject())
+ {
+ if (property.NameEquals("value"u8))
+ {
+ if (property.Value.ValueKind == JsonValueKind.Null)
+ {
+ continue;
+ }
+ List array = new List();
+ foreach (var item in property.Value.EnumerateArray())
+ {
+ array.Add(IntegrationFabricData.DeserializeIntegrationFabricData(item, options));
+ }
+ value = array;
+ continue;
+ }
+ if (property.NameEquals("nextLink"u8))
+ {
+ nextLink = property.Value.GetString();
+ continue;
+ }
+ if (options.Format != "W")
+ {
+ rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText()));
+ }
+ }
+ serializedAdditionalRawData = rawDataDictionary;
+ return new IntegrationFabricListResponse(value ?? new ChangeTrackingList(), nextLink, serializedAdditionalRawData);
+ }
+
+ BinaryData IPersistableModel.Write(ModelReaderWriterOptions options)
+ {
+ var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format;
+
+ switch (format)
+ {
+ case "J":
+ return ModelReaderWriter.Write(this, options);
+ default:
+ throw new FormatException($"The model {nameof(IntegrationFabricListResponse)} does not support writing '{options.Format}' format.");
+ }
+ }
+
+ IntegrationFabricListResponse IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options)
+ {
+ var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format;
+
+ switch (format)
+ {
+ case "J":
+ {
+ using JsonDocument document = JsonDocument.Parse(data);
+ return DeserializeIntegrationFabricListResponse(document.RootElement, options);
+ }
+ default:
+ throw new FormatException($"The model {nameof(IntegrationFabricListResponse)} does not support reading '{options.Format}' format.");
+ }
+ }
+
+ string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J";
+ }
+}
diff --git a/sdk/grafana/Azure.ResourceManager.Grafana/src/Generated/Models/IntegrationFabricListResponse.cs b/sdk/grafana/Azure.ResourceManager.Grafana/src/Generated/Models/IntegrationFabricListResponse.cs
new file mode 100644
index 000000000000..5e004201d169
--- /dev/null
+++ b/sdk/grafana/Azure.ResourceManager.Grafana/src/Generated/Models/IntegrationFabricListResponse.cs
@@ -0,0 +1,70 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.Collections.Generic;
+
+namespace Azure.ResourceManager.Grafana.Models
+{
+ /// The IntegrationFabricListResponse.
+ internal partial class IntegrationFabricListResponse
+ {
+ ///
+ /// Keeps track of any properties unknown to the library.
+ ///
+ /// To assign an object to the value of this property use .
+ ///
+ ///
+ /// To assign an already formatted json string to this property use .
+ ///
+ ///
+ /// Examples:
+ ///
+ /// -
+ /// BinaryData.FromObjectAsJson("foo")
+ /// Creates a payload of "foo".
+ ///
+ /// -
+ /// BinaryData.FromString("\"foo\"")
+ /// Creates a payload of "foo".
+ ///
+ /// -
+ /// BinaryData.FromObjectAsJson(new { key = "value" })
+ /// Creates a payload of { "key": "value" }.
+ ///
+ /// -
+ /// BinaryData.FromString("{\"key\": \"value\"}")
+ /// Creates a payload of { "key": "value" }.
+ ///
+ ///
+ ///
+ ///
+ private IDictionary _serializedAdditionalRawData;
+
+ /// Initializes a new instance of .
+ internal IntegrationFabricListResponse()
+ {
+ Value = new ChangeTrackingList();
+ }
+
+ /// Initializes a new instance of .
+ ///
+ ///
+ /// Keeps track of any properties unknown to the library.
+ internal IntegrationFabricListResponse(IReadOnlyList value, string nextLink, IDictionary serializedAdditionalRawData)
+ {
+ Value = value;
+ NextLink = nextLink;
+ _serializedAdditionalRawData = serializedAdditionalRawData;
+ }
+
+ /// Gets the value.
+ public IReadOnlyList Value { get; }
+ /// Gets the next link.
+ public string NextLink { get; }
+ }
+}
diff --git a/sdk/grafana/Azure.ResourceManager.Grafana/src/Generated/Models/IntegrationFabricPatch.Serialization.cs b/sdk/grafana/Azure.ResourceManager.Grafana/src/Generated/Models/IntegrationFabricPatch.Serialization.cs
new file mode 100644
index 000000000000..ee500186a217
--- /dev/null
+++ b/sdk/grafana/Azure.ResourceManager.Grafana/src/Generated/Models/IntegrationFabricPatch.Serialization.cs
@@ -0,0 +1,159 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.ClientModel.Primitives;
+using System.Collections.Generic;
+using System.Text.Json;
+using Azure.Core;
+
+namespace Azure.ResourceManager.Grafana.Models
+{
+ public partial class IntegrationFabricPatch : IUtf8JsonSerializable, IJsonModel
+ {
+ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions);
+
+ void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options)
+ {
+ writer.WriteStartObject();
+ JsonModelWriteCore(writer, options);
+ writer.WriteEndObject();
+ }
+
+ /// The JSON writer.
+ /// The client options for reading and writing models.
+ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options)
+ {
+ var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format;
+ if (format != "J")
+ {
+ throw new FormatException($"The model {nameof(IntegrationFabricPatch)} does not support writing '{format}' format.");
+ }
+
+ if (Optional.IsCollectionDefined(Tags))
+ {
+ writer.WritePropertyName("tags"u8);
+ writer.WriteStartObject();
+ foreach (var item in Tags)
+ {
+ writer.WritePropertyName(item.Key);
+ writer.WriteStringValue(item.Value);
+ }
+ writer.WriteEndObject();
+ }
+ if (Optional.IsDefined(Properties))
+ {
+ writer.WritePropertyName("properties"u8);
+ writer.WriteObjectValue(Properties, options);
+ }
+ if (options.Format != "W" && _serializedAdditionalRawData != null)
+ {
+ foreach (var item in _serializedAdditionalRawData)
+ {
+ writer.WritePropertyName(item.Key);
+#if NET6_0_OR_GREATER
+ writer.WriteRawValue(item.Value);
+#else
+ using (JsonDocument document = JsonDocument.Parse(item.Value))
+ {
+ JsonSerializer.Serialize(writer, document.RootElement);
+ }
+#endif
+ }
+ }
+ }
+
+ IntegrationFabricPatch IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options)
+ {
+ var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format;
+ if (format != "J")
+ {
+ throw new FormatException($"The model {nameof(IntegrationFabricPatch)} does not support reading '{format}' format.");
+ }
+
+ using JsonDocument document = JsonDocument.ParseValue(ref reader);
+ return DeserializeIntegrationFabricPatch(document.RootElement, options);
+ }
+
+ internal static IntegrationFabricPatch DeserializeIntegrationFabricPatch(JsonElement element, ModelReaderWriterOptions options = null)
+ {
+ options ??= ModelSerializationExtensions.WireOptions;
+
+ if (element.ValueKind == JsonValueKind.Null)
+ {
+ return null;
+ }
+ IDictionary tags = default;
+ IntegrationFabricPropertiesUpdateParameters properties = default;
+ IDictionary serializedAdditionalRawData = default;
+ Dictionary rawDataDictionary = new Dictionary();
+ foreach (var property in element.EnumerateObject())
+ {
+ if (property.NameEquals("tags"u8))
+ {
+ if (property.Value.ValueKind == JsonValueKind.Null)
+ {
+ continue;
+ }
+ Dictionary dictionary = new Dictionary();
+ foreach (var property0 in property.Value.EnumerateObject())
+ {
+ dictionary.Add(property0.Name, property0.Value.GetString());
+ }
+ tags = dictionary;
+ continue;
+ }
+ if (property.NameEquals("properties"u8))
+ {
+ if (property.Value.ValueKind == JsonValueKind.Null)
+ {
+ continue;
+ }
+ properties = IntegrationFabricPropertiesUpdateParameters.DeserializeIntegrationFabricPropertiesUpdateParameters(property.Value, options);
+ continue;
+ }
+ if (options.Format != "W")
+ {
+ rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText()));
+ }
+ }
+ serializedAdditionalRawData = rawDataDictionary;
+ return new IntegrationFabricPatch(tags ?? new ChangeTrackingDictionary(), properties, serializedAdditionalRawData);
+ }
+
+ BinaryData IPersistableModel.Write(ModelReaderWriterOptions options)
+ {
+ var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format;
+
+ switch (format)
+ {
+ case "J":
+ return ModelReaderWriter.Write(this, options);
+ default:
+ throw new FormatException($"The model {nameof(IntegrationFabricPatch)} does not support writing '{options.Format}' format.");
+ }
+ }
+
+ IntegrationFabricPatch IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options)
+ {
+ var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format;
+
+ switch (format)
+ {
+ case "J":
+ {
+ using JsonDocument document = JsonDocument.Parse(data);
+ return DeserializeIntegrationFabricPatch(document.RootElement, options);
+ }
+ default:
+ throw new FormatException($"The model {nameof(IntegrationFabricPatch)} does not support reading '{options.Format}' format.");
+ }
+ }
+
+ string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J";
+ }
+}
diff --git a/sdk/grafana/Azure.ResourceManager.Grafana/src/Generated/Models/IntegrationFabricPatch.cs b/sdk/grafana/Azure.ResourceManager.Grafana/src/Generated/Models/IntegrationFabricPatch.cs
new file mode 100644
index 000000000000..0397440b5074
--- /dev/null
+++ b/sdk/grafana/Azure.ResourceManager.Grafana/src/Generated/Models/IntegrationFabricPatch.cs
@@ -0,0 +1,80 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.Collections.Generic;
+
+namespace Azure.ResourceManager.Grafana.Models
+{
+ /// The parameters for a PATCH request to a Integration Fabric resource.
+ public partial class IntegrationFabricPatch
+ {
+ ///
+ /// Keeps track of any properties unknown to the library.
+ ///
+ /// To assign an object to the value of this property use .
+ ///
+ ///
+ /// To assign an already formatted json string to this property use .
+ ///
+ ///
+ /// Examples:
+ ///
+ /// -
+ /// BinaryData.FromObjectAsJson("foo")
+ /// Creates a payload of "foo".
+ ///
+ /// -
+ /// BinaryData.FromString("\"foo\"")
+ /// Creates a payload of "foo".
+ ///
+ /// -
+ /// BinaryData.FromObjectAsJson(new { key = "value" })
+ /// Creates a payload of { "key": "value" }.
+ ///
+ /// -
+ /// BinaryData.FromString("{\"key\": \"value\"}")
+ /// Creates a payload of { "key": "value" }.
+ ///
+ ///
+ ///
+ ///
+ private IDictionary _serializedAdditionalRawData;
+
+ /// Initializes a new instance of .
+ public IntegrationFabricPatch()
+ {
+ Tags = new ChangeTrackingDictionary();
+ }
+
+ /// Initializes a new instance of .
+ /// The new tags of the Integration Fabric resource.
+ /// The new properties of this Integration Fabric resource.
+ /// Keeps track of any properties unknown to the library.
+ internal IntegrationFabricPatch(IDictionary tags, IntegrationFabricPropertiesUpdateParameters properties, IDictionary serializedAdditionalRawData)
+ {
+ Tags = tags;
+ Properties = properties;
+ _serializedAdditionalRawData = serializedAdditionalRawData;
+ }
+
+ /// The new tags of the Integration Fabric resource.
+ public IDictionary Tags { get; }
+ /// The new properties of this Integration Fabric resource.
+ internal IntegrationFabricPropertiesUpdateParameters Properties { get; set; }
+ /// The new integration scenarios covered by this integration fabric.
+ public IList IntegrationFabricPropertiesUpdateParametersScenarios
+ {
+ get
+ {
+ if (Properties is null)
+ Properties = new IntegrationFabricPropertiesUpdateParameters();
+ return Properties.Scenarios;
+ }
+ }
+ }
+}
diff --git a/sdk/grafana/Azure.ResourceManager.Grafana/src/Generated/Models/IntegrationFabricProperties.Serialization.cs b/sdk/grafana/Azure.ResourceManager.Grafana/src/Generated/Models/IntegrationFabricProperties.Serialization.cs
new file mode 100644
index 000000000000..9233ce0d3203
--- /dev/null
+++ b/sdk/grafana/Azure.ResourceManager.Grafana/src/Generated/Models/IntegrationFabricProperties.Serialization.cs
@@ -0,0 +1,188 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.ClientModel.Primitives;
+using System.Collections.Generic;
+using System.Text.Json;
+using Azure.Core;
+
+namespace Azure.ResourceManager.Grafana.Models
+{
+ public partial class IntegrationFabricProperties : IUtf8JsonSerializable, IJsonModel
+ {
+ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions);
+
+ void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options)
+ {
+ writer.WriteStartObject();
+ JsonModelWriteCore(writer, options);
+ writer.WriteEndObject();
+ }
+
+ /// The JSON writer.
+ /// The client options for reading and writing models.
+ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options)
+ {
+ var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format;
+ if (format != "J")
+ {
+ throw new FormatException($"The model {nameof(IntegrationFabricProperties)} does not support writing '{format}' format.");
+ }
+
+ if (options.Format != "W" && Optional.IsDefined(ProvisioningState))
+ {
+ writer.WritePropertyName("provisioningState"u8);
+ writer.WriteStringValue(ProvisioningState.Value.ToString());
+ }
+ if (Optional.IsDefined(TargetResourceId))
+ {
+ writer.WritePropertyName("targetResourceId"u8);
+ writer.WriteStringValue(TargetResourceId);
+ }
+ if (Optional.IsDefined(DataSourceResourceId))
+ {
+ writer.WritePropertyName("dataSourceResourceId"u8);
+ writer.WriteStringValue(DataSourceResourceId);
+ }
+ if (Optional.IsCollectionDefined(Scenarios))
+ {
+ writer.WritePropertyName("scenarios"u8);
+ writer.WriteStartArray();
+ foreach (var item in Scenarios)
+ {
+ writer.WriteStringValue(item);
+ }
+ writer.WriteEndArray();
+ }
+ if (options.Format != "W" && _serializedAdditionalRawData != null)
+ {
+ foreach (var item in _serializedAdditionalRawData)
+ {
+ writer.WritePropertyName(item.Key);
+#if NET6_0_OR_GREATER
+ writer.WriteRawValue(item.Value);
+#else
+ using (JsonDocument document = JsonDocument.Parse(item.Value))
+ {
+ JsonSerializer.Serialize(writer, document.RootElement);
+ }
+#endif
+ }
+ }
+ }
+
+ IntegrationFabricProperties IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options)
+ {
+ var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format;
+ if (format != "J")
+ {
+ throw new FormatException($"The model {nameof(IntegrationFabricProperties)} does not support reading '{format}' format.");
+ }
+
+ using JsonDocument document = JsonDocument.ParseValue(ref reader);
+ return DeserializeIntegrationFabricProperties(document.RootElement, options);
+ }
+
+ internal static IntegrationFabricProperties DeserializeIntegrationFabricProperties(JsonElement element, ModelReaderWriterOptions options = null)
+ {
+ options ??= ModelSerializationExtensions.WireOptions;
+
+ if (element.ValueKind == JsonValueKind.Null)
+ {
+ return null;
+ }
+ GrafanaProvisioningState? provisioningState = default;
+ ResourceIdentifier targetResourceId = default;
+ ResourceIdentifier dataSourceResourceId = default;
+ IList scenarios = default;
+ IDictionary serializedAdditionalRawData = default;
+ Dictionary rawDataDictionary = new Dictionary();
+ foreach (var property in element.EnumerateObject())
+ {
+ if (property.NameEquals("provisioningState"u8))
+ {
+ if (property.Value.ValueKind == JsonValueKind.Null)
+ {
+ continue;
+ }
+ provisioningState = new GrafanaProvisioningState(property.Value.GetString());
+ continue;
+ }
+ if (property.NameEquals("targetResourceId"u8))
+ {
+ if (property.Value.ValueKind == JsonValueKind.Null)
+ {
+ continue;
+ }
+ targetResourceId = new ResourceIdentifier(property.Value.GetString());
+ continue;
+ }
+ if (property.NameEquals("dataSourceResourceId"u8))
+ {
+ if (property.Value.ValueKind == JsonValueKind.Null)
+ {
+ continue;
+ }
+ dataSourceResourceId = new ResourceIdentifier(property.Value.GetString());
+ continue;
+ }
+ if (property.NameEquals("scenarios"u8))
+ {
+ if (property.Value.ValueKind == JsonValueKind.Null)
+ {
+ continue;
+ }
+ List array = new List();
+ foreach (var item in property.Value.EnumerateArray())
+ {
+ array.Add(item.GetString());
+ }
+ scenarios = array;
+ continue;
+ }
+ if (options.Format != "W")
+ {
+ rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText()));
+ }
+ }
+ serializedAdditionalRawData = rawDataDictionary;
+ return new IntegrationFabricProperties(provisioningState, targetResourceId, dataSourceResourceId, scenarios ?? new ChangeTrackingList(), serializedAdditionalRawData);
+ }
+
+ BinaryData IPersistableModel.Write(ModelReaderWriterOptions options)
+ {
+ var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format;
+
+ switch (format)
+ {
+ case "J":
+ return ModelReaderWriter.Write(this, options);
+ default:
+ throw new FormatException($"The model {nameof(IntegrationFabricProperties)} does not support writing '{options.Format}' format.");
+ }
+ }
+
+ IntegrationFabricProperties IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options)
+ {
+ var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format;
+
+ switch (format)
+ {
+ case "J":
+ {
+ using JsonDocument document = JsonDocument.Parse(data);
+ return DeserializeIntegrationFabricProperties(document.RootElement, options);
+ }
+ default:
+ throw new FormatException($"The model {nameof(IntegrationFabricProperties)} does not support reading '{options.Format}' format.");
+ }
+ }
+
+ string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J";
+ }
+}
diff --git a/sdk/grafana/Azure.ResourceManager.Grafana/src/Generated/Models/IntegrationFabricProperties.cs b/sdk/grafana/Azure.ResourceManager.Grafana/src/Generated/Models/IntegrationFabricProperties.cs
new file mode 100644
index 000000000000..81442bcc585a
--- /dev/null
+++ b/sdk/grafana/Azure.ResourceManager.Grafana/src/Generated/Models/IntegrationFabricProperties.cs
@@ -0,0 +1,79 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.Collections.Generic;
+using Azure.Core;
+
+namespace Azure.ResourceManager.Grafana.Models
+{
+ /// The IntegrationFabricProperties.
+ public partial class IntegrationFabricProperties
+ {
+ ///
+ /// Keeps track of any properties unknown to the library.
+ ///
+ /// To assign an object to the value of this property use .
+ ///
+ ///
+ /// To assign an already formatted json string to this property use .
+ ///
+ ///
+ /// Examples:
+ ///
+ /// -
+ /// BinaryData.FromObjectAsJson("foo")
+ /// Creates a payload of "foo".
+ ///
+ /// -
+ /// BinaryData.FromString("\"foo\"")
+ /// Creates a payload of "foo".
+ ///
+ /// -
+ /// BinaryData.FromObjectAsJson(new { key = "value" })
+ /// Creates a payload of { "key": "value" }.
+ ///
+ /// -
+ /// BinaryData.FromString("{\"key\": \"value\"}")
+ /// Creates a payload of { "key": "value" }.
+ ///
+ ///
+ ///
+ ///
+ private IDictionary _serializedAdditionalRawData;
+
+ /// Initializes a new instance of .
+ public IntegrationFabricProperties()
+ {
+ Scenarios = new ChangeTrackingList();
+ }
+
+ /// Initializes a new instance of .
+ /// Provisioning state of the resource.
+ /// The resource Id of the Azure resource being integrated with Azure Managed Grafana. E.g., an Azure Kubernetes Service cluster.
+ /// The resource Id of the Azure resource which is used to configure Grafana data source. E.g., an Azure Monitor Workspace, an Azure Data Explorer cluster, etc.
+ /// A list of integration scenarios covered by this integration fabric.
+ /// Keeps track of any properties unknown to the library.
+ internal IntegrationFabricProperties(GrafanaProvisioningState? provisioningState, ResourceIdentifier targetResourceId, ResourceIdentifier dataSourceResourceId, IList scenarios, IDictionary serializedAdditionalRawData)
+ {
+ ProvisioningState = provisioningState;
+ TargetResourceId = targetResourceId;
+ DataSourceResourceId = dataSourceResourceId;
+ Scenarios = scenarios;
+ _serializedAdditionalRawData = serializedAdditionalRawData;
+ }
+
+ /// Provisioning state of the resource.
+ public GrafanaProvisioningState? ProvisioningState { get; }
+ /// The resource Id of the Azure resource being integrated with Azure Managed Grafana. E.g., an Azure Kubernetes Service cluster.
+ public ResourceIdentifier TargetResourceId { get; set; }
+ /// The resource Id of the Azure resource which is used to configure Grafana data source. E.g., an Azure Monitor Workspace, an Azure Data Explorer cluster, etc.
+ public ResourceIdentifier DataSourceResourceId { get; set; }
+ /// A list of integration scenarios covered by this integration fabric.
+ public IList Scenarios { get; }
+ }
+}
diff --git a/sdk/grafana/Azure.ResourceManager.Grafana/src/Generated/Models/IntegrationFabricPropertiesUpdateParameters.Serialization.cs b/sdk/grafana/Azure.ResourceManager.Grafana/src/Generated/Models/IntegrationFabricPropertiesUpdateParameters.Serialization.cs
new file mode 100644
index 000000000000..09121cfa3c0e
--- /dev/null
+++ b/sdk/grafana/Azure.ResourceManager.Grafana/src/Generated/Models/IntegrationFabricPropertiesUpdateParameters.Serialization.cs
@@ -0,0 +1,143 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.ClientModel.Primitives;
+using System.Collections.Generic;
+using System.Text.Json;
+using Azure.Core;
+
+namespace Azure.ResourceManager.Grafana.Models
+{
+ internal partial class IntegrationFabricPropertiesUpdateParameters : IUtf8JsonSerializable, IJsonModel
+ {
+ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions);
+
+ void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options)
+ {
+ writer.WriteStartObject();
+ JsonModelWriteCore(writer, options);
+ writer.WriteEndObject();
+ }
+
+ /// The JSON writer.
+ /// The client options for reading and writing models.
+ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options)
+ {
+ var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format;
+ if (format != "J")
+ {
+ throw new FormatException($"The model {nameof(IntegrationFabricPropertiesUpdateParameters)} does not support writing '{format}' format.");
+ }
+
+ if (Optional.IsCollectionDefined(Scenarios))
+ {
+ writer.WritePropertyName("scenarios"u8);
+ writer.WriteStartArray();
+ foreach (var item in Scenarios)
+ {
+ writer.WriteStringValue(item);
+ }
+ writer.WriteEndArray();
+ }
+ if (options.Format != "W" && _serializedAdditionalRawData != null)
+ {
+ foreach (var item in _serializedAdditionalRawData)
+ {
+ writer.WritePropertyName(item.Key);
+#if NET6_0_OR_GREATER
+ writer.WriteRawValue(item.Value);
+#else
+ using (JsonDocument document = JsonDocument.Parse(item.Value))
+ {
+ JsonSerializer.Serialize(writer, document.RootElement);
+ }
+#endif
+ }
+ }
+ }
+
+ IntegrationFabricPropertiesUpdateParameters IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options)
+ {
+ var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format;
+ if (format != "J")
+ {
+ throw new FormatException($"The model {nameof(IntegrationFabricPropertiesUpdateParameters)} does not support reading '{format}' format.");
+ }
+
+ using JsonDocument document = JsonDocument.ParseValue(ref reader);
+ return DeserializeIntegrationFabricPropertiesUpdateParameters(document.RootElement, options);
+ }
+
+ internal static IntegrationFabricPropertiesUpdateParameters DeserializeIntegrationFabricPropertiesUpdateParameters(JsonElement element, ModelReaderWriterOptions options = null)
+ {
+ options ??= ModelSerializationExtensions.WireOptions;
+
+ if (element.ValueKind == JsonValueKind.Null)
+ {
+ return null;
+ }
+ IList scenarios = default;
+ IDictionary serializedAdditionalRawData = default;
+ Dictionary rawDataDictionary = new Dictionary();
+ foreach (var property in element.EnumerateObject())
+ {
+ if (property.NameEquals("scenarios"u8))
+ {
+ if (property.Value.ValueKind == JsonValueKind.Null)
+ {
+ continue;
+ }
+ List array = new List();
+ foreach (var item in property.Value.EnumerateArray())
+ {
+ array.Add(item.GetString());
+ }
+ scenarios = array;
+ continue;
+ }
+ if (options.Format != "W")
+ {
+ rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText()));
+ }
+ }
+ serializedAdditionalRawData = rawDataDictionary;
+ return new IntegrationFabricPropertiesUpdateParameters(scenarios ?? new ChangeTrackingList(), serializedAdditionalRawData);
+ }
+
+ BinaryData IPersistableModel.Write(ModelReaderWriterOptions options)
+ {
+ var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format;
+
+ switch (format)
+ {
+ case "J":
+ return ModelReaderWriter.Write(this, options);
+ default:
+ throw new FormatException($"The model {nameof(IntegrationFabricPropertiesUpdateParameters)} does not support writing '{options.Format}' format.");
+ }
+ }
+
+ IntegrationFabricPropertiesUpdateParameters IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options)
+ {
+ var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format;
+
+ switch (format)
+ {
+ case "J":
+ {
+ using JsonDocument document = JsonDocument.Parse(data);
+ return DeserializeIntegrationFabricPropertiesUpdateParameters(document.RootElement, options);
+ }
+ default:
+ throw new FormatException($"The model {nameof(IntegrationFabricPropertiesUpdateParameters)} does not support reading '{options.Format}' format.");
+ }
+ }
+
+ string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J";
+ }
+}
diff --git a/sdk/grafana/Azure.ResourceManager.Grafana/src/Generated/Models/IntegrationFabricPropertiesUpdateParameters.cs b/sdk/grafana/Azure.ResourceManager.Grafana/src/Generated/Models/IntegrationFabricPropertiesUpdateParameters.cs
new file mode 100644
index 000000000000..f170c39b6005
--- /dev/null
+++ b/sdk/grafana/Azure.ResourceManager.Grafana/src/Generated/Models/IntegrationFabricPropertiesUpdateParameters.cs
@@ -0,0 +1,66 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.Collections.Generic;
+
+namespace Azure.ResourceManager.Grafana.Models
+{
+ /// The IntegrationFabricPropertiesUpdateParameters.
+ internal partial class IntegrationFabricPropertiesUpdateParameters
+ {
+ ///
+ /// Keeps track of any properties unknown to the library.
+ ///
+ /// To assign an object to the value of this property use .
+ ///
+ ///
+ /// To assign an already formatted json string to this property use .
+ ///
+ ///
+ /// Examples:
+ ///
+ /// -
+ /// BinaryData.FromObjectAsJson("foo")
+ /// Creates a payload of "foo".
+ ///
+ /// -
+ /// BinaryData.FromString("\"foo\"")
+ /// Creates a payload of "foo".
+ ///
+ /// -
+ /// BinaryData.FromObjectAsJson(new { key = "value" })
+ /// Creates a payload of { "key": "value" }.
+ ///
+ /// -
+ /// BinaryData.FromString("{\"key\": \"value\"}")
+ /// Creates a payload of { "key": "value" }.
+ ///
+ ///
+ ///
+ ///
+ private IDictionary _serializedAdditionalRawData;
+
+ /// Initializes a new instance of .
+ public IntegrationFabricPropertiesUpdateParameters()
+ {
+ Scenarios = new ChangeTrackingList();
+ }
+
+ /// Initializes a new instance of .
+ /// The new integration scenarios covered by this integration fabric.
+ /// Keeps track of any properties unknown to the library.
+ internal IntegrationFabricPropertiesUpdateParameters(IList scenarios, IDictionary serializedAdditionalRawData)
+ {
+ Scenarios = scenarios;
+ _serializedAdditionalRawData = serializedAdditionalRawData;
+ }
+
+ /// The new integration scenarios covered by this integration fabric.
+ public IList Scenarios { get; }
+ }
+}
diff --git a/sdk/grafana/Azure.ResourceManager.Grafana/src/Generated/Models/ManagedGrafanaPatchProperties.cs b/sdk/grafana/Azure.ResourceManager.Grafana/src/Generated/Models/ManagedGrafanaPatchProperties.cs
index 5b0c8d5d4c98..9c372741beea 100644
--- a/sdk/grafana/Azure.ResourceManager.Grafana/src/Generated/Models/ManagedGrafanaPatchProperties.cs
+++ b/sdk/grafana/Azure.ResourceManager.Grafana/src/Generated/Models/ManagedGrafanaPatchProperties.cs
@@ -100,22 +100,7 @@ public IList MonitorWorkspaceIntegrations
/// Enterprise settings of a Grafana instance.
public EnterpriseConfigurations EnterpriseConfigurations { get; set; }
/// Server configurations of a Grafana instance.
- internal GrafanaConfigurations GrafanaConfigurations { get; set; }
- ///
- /// Email server settings.
- /// https://grafana.com/docs/grafana/v9.0/setup-grafana/configure-grafana/#smtp
- ///
- public Smtp GrafanaConfigurationsSmtp
- {
- get => GrafanaConfigurations is null ? default : GrafanaConfigurations.Smtp;
- set
- {
- if (GrafanaConfigurations is null)
- GrafanaConfigurations = new GrafanaConfigurations();
- GrafanaConfigurations.Smtp = value;
- }
- }
-
+ public GrafanaConfigurations GrafanaConfigurations { get; set; }
/// Update of Grafana plugin. Key is plugin id, value is plugin definition. If plugin definition is null, plugin with given plugin id will be removed. Otherwise, given plugin will be installed.
public IDictionary GrafanaPlugins { get; }
/// The major Grafana software version to target.
diff --git a/sdk/grafana/Azure.ResourceManager.Grafana/src/Generated/Models/ManagedGrafanaProperties.cs b/sdk/grafana/Azure.ResourceManager.Grafana/src/Generated/Models/ManagedGrafanaProperties.cs
index 16e7e2a89ef7..835932233838 100644
--- a/sdk/grafana/Azure.ResourceManager.Grafana/src/Generated/Models/ManagedGrafanaProperties.cs
+++ b/sdk/grafana/Azure.ResourceManager.Grafana/src/Generated/Models/ManagedGrafanaProperties.cs
@@ -126,22 +126,7 @@ public IList MonitorWorkspaceIntegrations
/// Enterprise settings of a Grafana instance.
public EnterpriseConfigurations EnterpriseConfigurations { get; set; }
/// Server configurations of a Grafana instance.
- internal GrafanaConfigurations GrafanaConfigurations { get; set; }
- ///
- /// Email server settings.
- /// https://grafana.com/docs/grafana/v9.0/setup-grafana/configure-grafana/#smtp
- ///
- public Smtp GrafanaConfigurationsSmtp
- {
- get => GrafanaConfigurations is null ? default : GrafanaConfigurations.Smtp;
- set
- {
- if (GrafanaConfigurations is null)
- GrafanaConfigurations = new GrafanaConfigurations();
- GrafanaConfigurations.Smtp = value;
- }
- }
-
+ public GrafanaConfigurations GrafanaConfigurations { get; set; }
/// Installed plugin list of the Grafana instance. Key is plugin id, value is plugin definition.
public IDictionary GrafanaPlugins { get; }
/// The major Grafana software version to target.
diff --git a/sdk/grafana/Azure.ResourceManager.Grafana/src/Generated/Models/Snapshots.Serialization.cs b/sdk/grafana/Azure.ResourceManager.Grafana/src/Generated/Models/Snapshots.Serialization.cs
new file mode 100644
index 000000000000..0119e4c8fb16
--- /dev/null
+++ b/sdk/grafana/Azure.ResourceManager.Grafana/src/Generated/Models/Snapshots.Serialization.cs
@@ -0,0 +1,133 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.ClientModel.Primitives;
+using System.Collections.Generic;
+using System.Text.Json;
+using Azure.Core;
+
+namespace Azure.ResourceManager.Grafana.Models
+{
+ internal partial class Snapshots : IUtf8JsonSerializable, IJsonModel
+ {
+ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions);
+
+ void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options)
+ {
+ writer.WriteStartObject();
+ JsonModelWriteCore(writer, options);
+ writer.WriteEndObject();
+ }
+
+ /// The JSON writer.
+ /// The client options for reading and writing models.
+ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options)
+ {
+ var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format;
+ if (format != "J")
+ {
+ throw new FormatException($"The model {nameof(Snapshots)} does not support writing '{format}' format.");
+ }
+
+ if (Optional.IsDefined(ExternalEnabled))
+ {
+ writer.WritePropertyName("externalEnabled"u8);
+ writer.WriteBooleanValue(ExternalEnabled.Value);
+ }
+ if (options.Format != "W" && _serializedAdditionalRawData != null)
+ {
+ foreach (var item in _serializedAdditionalRawData)
+ {
+ writer.WritePropertyName(item.Key);
+#if NET6_0_OR_GREATER
+ writer.WriteRawValue(item.Value);
+#else
+ using (JsonDocument document = JsonDocument.Parse(item.Value))
+ {
+ JsonSerializer.Serialize(writer, document.RootElement);
+ }
+#endif
+ }
+ }
+ }
+
+ Snapshots IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options)
+ {
+ var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format;
+ if (format != "J")
+ {
+ throw new FormatException($"The model {nameof(Snapshots)} does not support reading '{format}' format.");
+ }
+
+ using JsonDocument document = JsonDocument.ParseValue(ref reader);
+ return DeserializeSnapshots(document.RootElement, options);
+ }
+
+ internal static Snapshots DeserializeSnapshots(JsonElement element, ModelReaderWriterOptions options = null)
+ {
+ options ??= ModelSerializationExtensions.WireOptions;
+
+ if (element.ValueKind == JsonValueKind.Null)
+ {
+ return null;
+ }
+ bool? externalEnabled = default;
+ IDictionary serializedAdditionalRawData = default;
+ Dictionary rawDataDictionary = new Dictionary();
+ foreach (var property in element.EnumerateObject())
+ {
+ if (property.NameEquals("externalEnabled"u8))
+ {
+ if (property.Value.ValueKind == JsonValueKind.Null)
+ {
+ continue;
+ }
+ externalEnabled = property.Value.GetBoolean();
+ continue;
+ }
+ if (options.Format != "W")
+ {
+ rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText()));
+ }
+ }
+ serializedAdditionalRawData = rawDataDictionary;
+ return new Snapshots(externalEnabled, serializedAdditionalRawData);
+ }
+
+ BinaryData IPersistableModel.Write(ModelReaderWriterOptions options)
+ {
+ var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format;
+
+ switch (format)
+ {
+ case "J":
+ return ModelReaderWriter.Write(this, options);
+ default:
+ throw new FormatException($"The model {nameof(Snapshots)} does not support writing '{options.Format}' format.");
+ }
+ }
+
+ Snapshots IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options)
+ {
+ var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format;
+
+ switch (format)
+ {
+ case "J":
+ {
+ using JsonDocument document = JsonDocument.Parse(data);
+ return DeserializeSnapshots(document.RootElement, options);
+ }
+ default:
+ throw new FormatException($"The model {nameof(Snapshots)} does not support reading '{options.Format}' format.");
+ }
+ }
+
+ string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J";
+ }
+}
diff --git a/sdk/grafana/Azure.ResourceManager.Grafana/src/Generated/Models/Snapshots.cs b/sdk/grafana/Azure.ResourceManager.Grafana/src/Generated/Models/Snapshots.cs
new file mode 100644
index 000000000000..2e5ee390bc0e
--- /dev/null
+++ b/sdk/grafana/Azure.ResourceManager.Grafana/src/Generated/Models/Snapshots.cs
@@ -0,0 +1,65 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//