diff --git a/sdk/networkanalytics/Azure.ResourceManager.NetworkAnalytics/Azure.ResourceManager.NetworkAnalytics.sln b/sdk/networkanalytics/Azure.ResourceManager.NetworkAnalytics/Azure.ResourceManager.NetworkAnalytics.sln
new file mode 100644
index 000000000000..6a54c485e6b4
--- /dev/null
+++ b/sdk/networkanalytics/Azure.ResourceManager.NetworkAnalytics/Azure.ResourceManager.NetworkAnalytics.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("{520DAA74-C653-4A05-867E-561484CCF86A}") = "Azure.ResourceManager.NetworkAnalytics", "src\Azure.ResourceManager.NetworkAnalytics.csproj", "{18A099CC-B258-421A-B5F1-7A251F05AD80}"
+EndProject
+Project("{520DAA74-C653-4A05-867E-561484CCF86A}") = "Azure.ResourceManager.NetworkAnalytics.Tests", "tests\Azure.ResourceManager.NetworkAnalytics.Tests.csproj", "{CE6B755E-8488-44D2-8AD1-44E5AE5DB9F4}"
+EndProject
+Project("{520DAA74-C653-4A05-867E-561484CCF86A}") = "Azure.ResourceManager.NetworkAnalytics.Samples", "samples\Azure.ResourceManager.NetworkAnalytics.Samples.csproj", "{A7C2A8F9-8B72-4775-B674-90413E296B7C}"
+EndProject
+Global
+ GlobalSection(SolutionProperties) = preSolution
+ HideSolutionNode = FALSE
+ EndGlobalSection
+ GlobalSection(ExtensibilityGlobals) = postSolution
+ SolutionGuid = {50550549-C271-4517-A91A-FB147A9C8CA1}
+ 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
+ {18A099CC-B258-421A-B5F1-7A251F05AD80}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {18A099CC-B258-421A-B5F1-7A251F05AD80}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {18A099CC-B258-421A-B5F1-7A251F05AD80}.Debug|x64.ActiveCfg = Debug|Any CPU
+ {18A099CC-B258-421A-B5F1-7A251F05AD80}.Debug|x64.Build.0 = Debug|Any CPU
+ {18A099CC-B258-421A-B5F1-7A251F05AD80}.Debug|x86.ActiveCfg = Debug|Any CPU
+ {18A099CC-B258-421A-B5F1-7A251F05AD80}.Debug|x86.Build.0 = Debug|Any CPU
+ {18A099CC-B258-421A-B5F1-7A251F05AD80}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {18A099CC-B258-421A-B5F1-7A251F05AD80}.Release|Any CPU.Build.0 = Release|Any CPU
+ {18A099CC-B258-421A-B5F1-7A251F05AD80}.Release|x64.ActiveCfg = Release|Any CPU
+ {18A099CC-B258-421A-B5F1-7A251F05AD80}.Release|x64.Build.0 = Release|Any CPU
+ {18A099CC-B258-421A-B5F1-7A251F05AD80}.Release|x86.ActiveCfg = Release|Any CPU
+ {18A099CC-B258-421A-B5F1-7A251F05AD80}.Release|x86.Build.0 = Release|Any CPU
+ {CE6B755E-8488-44D2-8AD1-44E5AE5DB9F4}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {CE6B755E-8488-44D2-8AD1-44E5AE5DB9F4}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {CE6B755E-8488-44D2-8AD1-44E5AE5DB9F4}.Debug|x64.ActiveCfg = Debug|Any CPU
+ {CE6B755E-8488-44D2-8AD1-44E5AE5DB9F4}.Debug|x64.Build.0 = Debug|Any CPU
+ {CE6B755E-8488-44D2-8AD1-44E5AE5DB9F4}.Debug|x86.ActiveCfg = Debug|Any CPU
+ {CE6B755E-8488-44D2-8AD1-44E5AE5DB9F4}.Debug|x86.Build.0 = Debug|Any CPU
+ {CE6B755E-8488-44D2-8AD1-44E5AE5DB9F4}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {CE6B755E-8488-44D2-8AD1-44E5AE5DB9F4}.Release|Any CPU.Build.0 = Release|Any CPU
+ {CE6B755E-8488-44D2-8AD1-44E5AE5DB9F4}.Release|x64.ActiveCfg = Release|Any CPU
+ {CE6B755E-8488-44D2-8AD1-44E5AE5DB9F4}.Release|x64.Build.0 = Release|Any CPU
+ {CE6B755E-8488-44D2-8AD1-44E5AE5DB9F4}.Release|x86.ActiveCfg = Release|Any CPU
+ {CE6B755E-8488-44D2-8AD1-44E5AE5DB9F4}.Release|x86.Build.0 = Release|Any CPU
+ {A7C2A8F9-8B72-4775-B674-90413E296B7C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {A7C2A8F9-8B72-4775-B674-90413E296B7C}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {A7C2A8F9-8B72-4775-B674-90413E296B7C}.Debug|x64.ActiveCfg = Debug|Any CPU
+ {A7C2A8F9-8B72-4775-B674-90413E296B7C}.Debug|x64.Build.0 = Debug|Any CPU
+ {A7C2A8F9-8B72-4775-B674-90413E296B7C}.Debug|x86.ActiveCfg = Debug|Any CPU
+ {A7C2A8F9-8B72-4775-B674-90413E296B7C}.Debug|x86.Build.0 = Debug|Any CPU
+ {A7C2A8F9-8B72-4775-B674-90413E296B7C}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {A7C2A8F9-8B72-4775-B674-90413E296B7C}.Release|Any CPU.Build.0 = Release|Any CPU
+ {A7C2A8F9-8B72-4775-B674-90413E296B7C}.Release|x64.ActiveCfg = Release|Any CPU
+ {A7C2A8F9-8B72-4775-B674-90413E296B7C}.Release|x64.Build.0 = Release|Any CPU
+ {A7C2A8F9-8B72-4775-B674-90413E296B7C}.Release|x86.ActiveCfg = Release|Any CPU
+ {A7C2A8F9-8B72-4775-B674-90413E296B7C}.Release|x86.Build.0 = Release|Any CPU
+ EndGlobalSection
+EndGlobal
diff --git a/sdk/networkanalytics/Azure.ResourceManager.NetworkAnalytics/CHANGELOG.md b/sdk/networkanalytics/Azure.ResourceManager.NetworkAnalytics/CHANGELOG.md
new file mode 100644
index 000000000000..3863f17d62ef
--- /dev/null
+++ b/sdk/networkanalytics/Azure.ResourceManager.NetworkAnalytics/CHANGELOG.md
@@ -0,0 +1,17 @@
+# Release History
+
+## 1.0.0-beta.1 (2023-11-01)
+
+### General New Features
+
+This package follows the [new Azure SDK guidelines](https://azure.github.io/azure-sdk/general_introduction.html), and provides many core capabilities:
+
+ - Support MSAL.NET, Azure.Identity is out of box for supporting MSAL.NET.
+ - Support [OpenTelemetry](https://opentelemetry.io/) for distributed tracing.
+ - HTTP pipeline with custom policies.
+ - Better error-handling.
+ - Support uniform telemetry across all languages.
+
+This package is a Public Preview version, so expect incompatible changes in subsequent releases as we improve the product. To provide feedback, submit an issue in our [Azure SDK for .NET GitHub repo](https://github.com/Azure/azure-sdk-for-net/issues).
+
+> NOTE: For more information about unified authentication, please refer to [Microsoft Azure Identity documentation for .NET](https://docs.microsoft.com//dotnet/api/overview/azure/identity-readme?view=azure-dotnet).
diff --git a/sdk/networkanalytics/Azure.ResourceManager.NetworkAnalytics/Directory.Build.props b/sdk/networkanalytics/Azure.ResourceManager.NetworkAnalytics/Directory.Build.props
new file mode 100644
index 000000000000..1a9611bd4924
--- /dev/null
+++ b/sdk/networkanalytics/Azure.ResourceManager.NetworkAnalytics/Directory.Build.props
@@ -0,0 +1,6 @@
+
+
+
+
diff --git a/sdk/networkanalytics/Azure.ResourceManager.NetworkAnalytics/README.md b/sdk/networkanalytics/Azure.ResourceManager.NetworkAnalytics/README.md
new file mode 100644
index 000000000000..8c81b3d605b7
--- /dev/null
+++ b/sdk/networkanalytics/Azure.ResourceManager.NetworkAnalytics/README.md
@@ -0,0 +1,80 @@
+# Microsoft Azure NetworkAnalytics management client library for .NET
+
+**Azure Operator insights is first party analytic solution, more specific to telecom vertical. Telemetry data is ingested from onPrem/Cloud and service operational Insights to customer.**
+
+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 NetworkAnalytics management library for .NET with [NuGet](https://www.nuget.org/):
+
+```dotnetcli
+dotnet add package Azure.ResourceManager.NetworkAnalytics --prerelease
+```
+
+### Prerequisites
+
+* You must have an [Microsoft Azure subscription](https://azure.microsoft.com/free/dotnet/).
+
+### Authenticate the Client
+
+To create an authenticated client and start interacting with Microsoft Azure resources, see the [quickstart guide here](https://github.com/Azure/azure-sdk-for-net/blob/main/doc/dev/mgmt_quickstart.md).
+
+## Key concepts
+
+Key concepts of the Microsoft Azure SDK for .NET can be found [here](https://azure.github.io/azure-sdk/dotnet_introduction.html)
+
+## Documentation
+
+Documentation is available to help you learn how to use this package:
+
+- [Quickstart](https://github.com/Azure/azure-sdk-for-net/blob/main/doc/dev/mgmt_quickstart.md).
+- [API References](https://docs.microsoft.com/dotnet/api/?view=azure-dotnet).
+- [Authentication](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/identity/Azure.Identity/README.md).
+
+## Examples
+
+Code samples for using the management library for .NET can be found in the following locations
+- [.NET Management Library Code Samples](https://aka.ms/azuresdk-net-mgmt-samples)
+
+## Troubleshooting
+
+- File an issue via [GitHub Issues](https://github.com/Azure/azure-sdk-for-net/issues).
+- Check [previous questions](https://stackoverflow.com/questions/tagged/azure+.net) or ask new ones on Stack Overflow using Azure and .NET tags.
+
+## Next steps
+
+For more information about Microsoft Azure SDK, see [this website](https://azure.github.io/azure-sdk/).
+
+## Contributing
+
+For details on contributing to this repository, see the [contributing
+guide][cg].
+
+This project welcomes contributions and suggestions. Most contributions
+require you to agree to a Contributor License Agreement (CLA) declaring
+that you have the right to, and actually do, grant us the rights to use
+your contribution. For details, visit .
+
+When you submit a pull request, a CLA-bot will automatically determine
+whether you need to provide a CLA and decorate the PR appropriately
+(for example, label, comment). Follow the instructions provided by the
+bot. You'll only need to do this action once across all repositories
+using our CLA.
+
+This project has adopted the [Microsoft Open Source Code of Conduct][coc]. For
+more information, see the [Code of Conduct FAQ][coc_faq] or contact
+ with any other questions or comments.
+
+
+[cg]: https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/resourcemanager/Azure.ResourceManager/docs/CONTRIBUTING.md
+[coc]: https://opensource.microsoft.com/codeofconduct/
+[coc_faq]: https://opensource.microsoft.com/codeofconduct/faq/
diff --git a/sdk/networkanalytics/Azure.ResourceManager.NetworkAnalytics/api/Azure.ResourceManager.NetworkAnalytics.netstandard2.0.cs b/sdk/networkanalytics/Azure.ResourceManager.NetworkAnalytics/api/Azure.ResourceManager.NetworkAnalytics.netstandard2.0.cs
new file mode 100644
index 000000000000..26f52ceaad00
--- /dev/null
+++ b/sdk/networkanalytics/Azure.ResourceManager.NetworkAnalytics/api/Azure.ResourceManager.NetworkAnalytics.netstandard2.0.cs
@@ -0,0 +1,341 @@
+namespace Azure.ResourceManager.NetworkAnalytics
+{
+ public partial class DataProductCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable
+ {
+ protected DataProductCollection() { }
+ public virtual Azure.ResourceManager.ArmOperation CreateOrUpdate(Azure.WaitUntil waitUntil, string dataProductName, Azure.ResourceManager.NetworkAnalytics.DataProductData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public virtual System.Threading.Tasks.Task> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, string dataProductName, Azure.ResourceManager.NetworkAnalytics.DataProductData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public virtual Azure.Response Exists(string dataProductName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public virtual System.Threading.Tasks.Task> ExistsAsync(string dataProductName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public virtual Azure.Response Get(string dataProductName, 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 dataProductName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public virtual Azure.NullableResponse GetIfExists(string dataProductName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public virtual System.Threading.Tasks.Task> GetIfExistsAsync(string dataProductName, 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 DataProductData : Azure.ResourceManager.Models.TrackedResourceData
+ {
+ public DataProductData(Azure.Core.AzureLocation location) : base (default(Azure.Core.AzureLocation)) { }
+ public System.Collections.Generic.IReadOnlyList AvailableMinorVersions { get { throw null; } }
+ public Azure.ResourceManager.NetworkAnalytics.Models.ConsumptionEndpointsProperties ConsumptionEndpoints { get { throw null; } }
+ public string CurrentMinorVersion { get { throw null; } set { } }
+ public Azure.ResourceManager.NetworkAnalytics.Models.EncryptionKeyDetails CustomerEncryptionKey { get { throw null; } set { } }
+ public Azure.ResourceManager.NetworkAnalytics.Models.DataProductControlState? CustomerManagedKeyEncryptionEnabled { get { throw null; } set { } }
+ public string Documentation { get { throw null; } }
+ public Azure.ResourceManager.Models.ManagedServiceIdentity Identity { get { throw null; } set { } }
+ public System.Uri KeyVaultUri { get { throw null; } }
+ public string MajorVersion { get { throw null; } set { } }
+ public Azure.ResourceManager.NetworkAnalytics.Models.NetworkAnalyticsManagedResourceGroupConfiguration ManagedResourceGroupConfiguration { get { throw null; } set { } }
+ public Azure.ResourceManager.NetworkAnalytics.Models.DataProductNetworkAcls Networkacls { get { throw null; } set { } }
+ public System.Collections.Generic.IList Owners { get { throw null; } }
+ public Azure.ResourceManager.NetworkAnalytics.Models.DataProductControlState? PrivateLinksEnabled { get { throw null; } set { } }
+ public string Product { get { throw null; } set { } }
+ public Azure.ResourceManager.NetworkAnalytics.Models.NetworkAnalyticsProvisioningState? ProvisioningState { get { throw null; } }
+ public Azure.ResourceManager.NetworkAnalytics.Models.DataProductControlState? PublicNetworkAccess { get { throw null; } set { } }
+ public string Publisher { get { throw null; } set { } }
+ public string PurviewAccount { get { throw null; } set { } }
+ public string PurviewCollection { get { throw null; } set { } }
+ public Azure.ResourceManager.NetworkAnalytics.Models.DataProductControlState? Redundancy { get { throw null; } set { } }
+ public string ResourceGuid { get { throw null; } }
+ }
+ public partial class DataProductResource : Azure.ResourceManager.ArmResource
+ {
+ public static readonly Azure.Core.ResourceType ResourceType;
+ protected DataProductResource() { }
+ public virtual Azure.ResourceManager.NetworkAnalytics.DataProductData Data { get { throw null; } }
+ public virtual bool HasData { get { throw null; } }
+ public virtual Azure.Response AddTag(string key, string value, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public virtual System.Threading.Tasks.Task> AddTagAsync(string key, string value, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public virtual Azure.Response AddUserRole(Azure.ResourceManager.NetworkAnalytics.Models.RoleAssignmentCommonProperties body, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public virtual System.Threading.Tasks.Task> AddUserRoleAsync(Azure.ResourceManager.NetworkAnalytics.Models.RoleAssignmentCommonProperties body, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string dataProductName) { 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 GenerateStorageAccountSasToken(Azure.ResourceManager.NetworkAnalytics.Models.AccountSasContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public virtual System.Threading.Tasks.Task> GenerateStorageAccountSasTokenAsync(Azure.ResourceManager.NetworkAnalytics.Models.AccountSasContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public virtual Azure.Pageable GetDataTypes(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public virtual Azure.AsyncPageable GetDataTypesAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public virtual Azure.Response GetRolesAssignments(System.BinaryData body, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public virtual System.Threading.Tasks.Task> GetRolesAssignmentsAsync(System.BinaryData body, 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 RemoveUserRole(Azure.ResourceManager.NetworkAnalytics.Models.RoleAssignmentDetail body, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public virtual System.Threading.Tasks.Task RemoveUserRoleAsync(Azure.ResourceManager.NetworkAnalytics.Models.RoleAssignmentDetail body, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public virtual Azure.Response RotateKey(Azure.ResourceManager.NetworkAnalytics.Models.NetworkAnalyticsKeyVaultContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public virtual System.Threading.Tasks.Task RotateKeyAsync(Azure.ResourceManager.NetworkAnalytics.Models.NetworkAnalyticsKeyVaultContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public virtual Azure.Response SetTags(System.Collections.Generic.IDictionary tags, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public virtual System.Threading.Tasks.Task> SetTagsAsync(System.Collections.Generic.IDictionary tags, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public virtual Azure.ResourceManager.ArmOperation Update(Azure.WaitUntil waitUntil, Azure.ResourceManager.NetworkAnalytics.Models.DataProductPatch patch, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.NetworkAnalytics.Models.DataProductPatch patch, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ }
+ public partial class DataProductsCatalogData : Azure.ResourceManager.Models.ResourceData
+ {
+ public DataProductsCatalogData() { }
+ public Azure.ResourceManager.NetworkAnalytics.Models.NetworkAnalyticsProvisioningState? ProvisioningState { get { throw null; } }
+ public System.Collections.Generic.IList Publishers { get { throw null; } }
+ }
+ public partial class DataProductsCatalogResource : Azure.ResourceManager.ArmResource
+ {
+ public static readonly Azure.Core.ResourceType ResourceType;
+ protected DataProductsCatalogResource() { }
+ public virtual Azure.ResourceManager.NetworkAnalytics.DataProductsCatalogData Data { get { throw null; } }
+ public virtual bool HasData { get { throw null; } }
+ public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName) { 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 static partial class NetworkAnalyticsExtensions
+ {
+ public static Azure.Response GetDataProduct(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string dataProductName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public static System.Threading.Tasks.Task> GetDataProductAsync(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string dataProductName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public static Azure.ResourceManager.NetworkAnalytics.DataProductResource GetDataProductResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; }
+ public static Azure.ResourceManager.NetworkAnalytics.DataProductCollection GetDataProducts(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource) { throw null; }
+ public static Azure.Pageable GetDataProducts(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public static Azure.AsyncPageable GetDataProductsAsync(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public static Azure.ResourceManager.NetworkAnalytics.DataProductsCatalogResource GetDataProductsCatalog(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource) { throw null; }
+ public static Azure.ResourceManager.NetworkAnalytics.DataProductsCatalogResource GetDataProductsCatalogResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; }
+ public static Azure.Pageable GetDataProductsCatalogs(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public static Azure.AsyncPageable GetDataProductsCatalogsAsync(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ }
+}
+namespace Azure.ResourceManager.NetworkAnalytics.Models
+{
+ public partial class AccountSasContent
+ {
+ public AccountSasContent(System.DateTimeOffset startTimeStamp, System.DateTimeOffset expiryTimeStamp, string ipAddress) { }
+ public System.DateTimeOffset ExpiryTimeStamp { get { throw null; } }
+ public string IPAddress { get { throw null; } }
+ public System.DateTimeOffset StartTimeStamp { get { throw null; } }
+ }
+ public partial class AccountSasToken
+ {
+ internal AccountSasToken() { }
+ public string StorageAccountSasToken { get { throw null; } }
+ }
+ public static partial class ArmNetworkAnalyticsModelFactory
+ {
+ public static Azure.ResourceManager.NetworkAnalytics.Models.AccountSasToken AccountSasToken(string storageAccountSasToken = null) { throw null; }
+ public static Azure.ResourceManager.NetworkAnalytics.Models.ConsumptionEndpointsProperties ConsumptionEndpointsProperties(System.Uri ingestionUri = null, Azure.Core.ResourceIdentifier ingestionResourceId = null, System.Uri fileAccessUri = null, Azure.Core.ResourceIdentifier fileAccessResourceId = null, System.Uri queryUri = null, Azure.Core.ResourceIdentifier queryResourceId = null) { throw null; }
+ public static Azure.ResourceManager.NetworkAnalytics.DataProductData DataProductData(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.Models.ManagedServiceIdentity identity = null, string resourceGuid = null, Azure.ResourceManager.NetworkAnalytics.Models.NetworkAnalyticsProvisioningState? provisioningState = default(Azure.ResourceManager.NetworkAnalytics.Models.NetworkAnalyticsProvisioningState?), string publisher = null, string product = null, string majorVersion = null, System.Collections.Generic.IEnumerable owners = null, Azure.ResourceManager.NetworkAnalytics.Models.DataProductControlState? redundancy = default(Azure.ResourceManager.NetworkAnalytics.Models.DataProductControlState?), string purviewAccount = null, string purviewCollection = null, Azure.ResourceManager.NetworkAnalytics.Models.DataProductControlState? privateLinksEnabled = default(Azure.ResourceManager.NetworkAnalytics.Models.DataProductControlState?), Azure.ResourceManager.NetworkAnalytics.Models.DataProductControlState? publicNetworkAccess = default(Azure.ResourceManager.NetworkAnalytics.Models.DataProductControlState?), Azure.ResourceManager.NetworkAnalytics.Models.DataProductControlState? customerManagedKeyEncryptionEnabled = default(Azure.ResourceManager.NetworkAnalytics.Models.DataProductControlState?), Azure.ResourceManager.NetworkAnalytics.Models.EncryptionKeyDetails customerEncryptionKey = null, Azure.ResourceManager.NetworkAnalytics.Models.DataProductNetworkAcls networkacls = null, Azure.ResourceManager.NetworkAnalytics.Models.NetworkAnalyticsManagedResourceGroupConfiguration managedResourceGroupConfiguration = null, System.Collections.Generic.IEnumerable availableMinorVersions = null, string currentMinorVersion = null, string documentation = null, Azure.ResourceManager.NetworkAnalytics.Models.ConsumptionEndpointsProperties consumptionEndpoints = null, System.Uri keyVaultUri = null) { throw null; }
+ public static Azure.ResourceManager.NetworkAnalytics.Models.DataProductDataType DataProductDataType(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.NetworkAnalytics.Models.NetworkAnalyticsProvisioningState? provisioningState = default(Azure.ResourceManager.NetworkAnalytics.Models.NetworkAnalyticsProvisioningState?), Azure.ResourceManager.NetworkAnalytics.Models.DataProducDataTypeState? state = default(Azure.ResourceManager.NetworkAnalytics.Models.DataProducDataTypeState?), string stateReason = null, int? storageOutputRetention = default(int?), int? databaseCacheRetention = default(int?), int? databaseRetention = default(int?), System.Uri visualizationUri = null) { throw null; }
+ public static Azure.ResourceManager.NetworkAnalytics.DataProductsCatalogData DataProductsCatalogData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.NetworkAnalytics.Models.NetworkAnalyticsProvisioningState? provisioningState = default(Azure.ResourceManager.NetworkAnalytics.Models.NetworkAnalyticsProvisioningState?), System.Collections.Generic.IEnumerable publishers = null) { throw null; }
+ public static Azure.ResourceManager.NetworkAnalytics.Models.RoleAssignmentListResult RoleAssignmentListResult(int count = 0, System.Collections.Generic.IEnumerable roleAssignmentResponse = null) { throw null; }
+ }
+ public partial class ConsumptionEndpointsProperties
+ {
+ internal ConsumptionEndpointsProperties() { }
+ public Azure.Core.ResourceIdentifier FileAccessResourceId { get { throw null; } }
+ public System.Uri FileAccessUri { get { throw null; } }
+ public Azure.Core.ResourceIdentifier IngestionResourceId { get { throw null; } }
+ public System.Uri IngestionUri { get { throw null; } }
+ public Azure.Core.ResourceIdentifier QueryResourceId { get { throw null; } }
+ public System.Uri QueryUri { get { throw null; } }
+ }
+ [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)]
+ public readonly partial struct DataProducDataTypeState : System.IEquatable
+ {
+ private readonly object _dummy;
+ private readonly int _dummyPrimitive;
+ public DataProducDataTypeState(string value) { throw null; }
+ public static Azure.ResourceManager.NetworkAnalytics.Models.DataProducDataTypeState Running { get { throw null; } }
+ public static Azure.ResourceManager.NetworkAnalytics.Models.DataProducDataTypeState Stopped { get { throw null; } }
+ public bool Equals(Azure.ResourceManager.NetworkAnalytics.Models.DataProducDataTypeState other) { throw null; }
+ [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
+ public override bool Equals(object obj) { throw null; }
+ [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
+ public override int GetHashCode() { throw null; }
+ public static bool operator ==(Azure.ResourceManager.NetworkAnalytics.Models.DataProducDataTypeState left, Azure.ResourceManager.NetworkAnalytics.Models.DataProducDataTypeState right) { throw null; }
+ public static implicit operator Azure.ResourceManager.NetworkAnalytics.Models.DataProducDataTypeState (string value) { throw null; }
+ public static bool operator !=(Azure.ResourceManager.NetworkAnalytics.Models.DataProducDataTypeState left, Azure.ResourceManager.NetworkAnalytics.Models.DataProducDataTypeState right) { throw null; }
+ public override string ToString() { throw null; }
+ }
+ [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)]
+ public readonly partial struct DataProductControlState : System.IEquatable
+ {
+ private readonly object _dummy;
+ private readonly int _dummyPrimitive;
+ public DataProductControlState(string value) { throw null; }
+ public static Azure.ResourceManager.NetworkAnalytics.Models.DataProductControlState Disabled { get { throw null; } }
+ public static Azure.ResourceManager.NetworkAnalytics.Models.DataProductControlState Enabled { get { throw null; } }
+ public bool Equals(Azure.ResourceManager.NetworkAnalytics.Models.DataProductControlState other) { throw null; }
+ [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
+ public override bool Equals(object obj) { throw null; }
+ [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
+ public override int GetHashCode() { throw null; }
+ public static bool operator ==(Azure.ResourceManager.NetworkAnalytics.Models.DataProductControlState left, Azure.ResourceManager.NetworkAnalytics.Models.DataProductControlState right) { throw null; }
+ public static implicit operator Azure.ResourceManager.NetworkAnalytics.Models.DataProductControlState (string value) { throw null; }
+ public static bool operator !=(Azure.ResourceManager.NetworkAnalytics.Models.DataProductControlState left, Azure.ResourceManager.NetworkAnalytics.Models.DataProductControlState right) { throw null; }
+ public override string ToString() { throw null; }
+ }
+ public partial class DataProductDataType : Azure.ResourceManager.Models.ResourceData
+ {
+ public DataProductDataType() { }
+ public int? DatabaseCacheRetention { get { throw null; } set { } }
+ public int? DatabaseRetention { get { throw null; } set { } }
+ public Azure.ResourceManager.NetworkAnalytics.Models.NetworkAnalyticsProvisioningState? ProvisioningState { get { throw null; } }
+ public Azure.ResourceManager.NetworkAnalytics.Models.DataProducDataTypeState? State { get { throw null; } set { } }
+ public string StateReason { get { throw null; } }
+ public int? StorageOutputRetention { get { throw null; } set { } }
+ public System.Uri VisualizationUri { get { throw null; } }
+ }
+ public partial class DataProductInformation
+ {
+ public DataProductInformation(string dataProductName, string description, System.Collections.Generic.IEnumerable dataProductVersions) { }
+ public string DataProductName { get { throw null; } set { } }
+ public System.Collections.Generic.IList DataProductVersions { get { throw null; } }
+ public string Description { get { throw null; } set { } }
+ }
+ public partial class DataProductNetworkAcls
+ {
+ public DataProductNetworkAcls(System.Collections.Generic.IEnumerable virtualNetworkRule, System.Collections.Generic.IEnumerable ipRules, System.Collections.Generic.IEnumerable allowedQueryIPRangeList, Azure.ResourceManager.NetworkAnalytics.Models.NetworkAclDefaultAction defaultAction) { }
+ public System.Collections.Generic.IList AllowedQueryIPRangeList { get { throw null; } }
+ public Azure.ResourceManager.NetworkAnalytics.Models.NetworkAclDefaultAction DefaultAction { get { throw null; } set { } }
+ public System.Collections.Generic.IList IPRules { get { throw null; } }
+ public System.Collections.Generic.IList VirtualNetworkRule { get { throw null; } }
+ }
+ public partial class DataProductPatch
+ {
+ public DataProductPatch() { }
+ public string CurrentMinorVersion { get { throw null; } set { } }
+ public Azure.ResourceManager.Models.ManagedServiceIdentity Identity { get { throw null; } set { } }
+ public System.Collections.Generic.IList Owners { get { throw null; } }
+ public Azure.ResourceManager.NetworkAnalytics.Models.DataProductControlState? PrivateLinksEnabled { get { throw null; } set { } }
+ public string PurviewAccount { get { throw null; } set { } }
+ public string PurviewCollection { get { throw null; } set { } }
+ public System.Collections.Generic.IDictionary Tags { get { throw null; } }
+ }
+ [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)]
+ public readonly partial struct DataProductUserRole : System.IEquatable
+ {
+ private readonly object _dummy;
+ private readonly int _dummyPrimitive;
+ public DataProductUserRole(string value) { throw null; }
+ public static Azure.ResourceManager.NetworkAnalytics.Models.DataProductUserRole Reader { get { throw null; } }
+ public static Azure.ResourceManager.NetworkAnalytics.Models.DataProductUserRole SensitiveReader { get { throw null; } }
+ public bool Equals(Azure.ResourceManager.NetworkAnalytics.Models.DataProductUserRole other) { throw null; }
+ [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
+ public override bool Equals(object obj) { throw null; }
+ [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
+ public override int GetHashCode() { throw null; }
+ public static bool operator ==(Azure.ResourceManager.NetworkAnalytics.Models.DataProductUserRole left, Azure.ResourceManager.NetworkAnalytics.Models.DataProductUserRole right) { throw null; }
+ public static implicit operator Azure.ResourceManager.NetworkAnalytics.Models.DataProductUserRole (string value) { throw null; }
+ public static bool operator !=(Azure.ResourceManager.NetworkAnalytics.Models.DataProductUserRole left, Azure.ResourceManager.NetworkAnalytics.Models.DataProductUserRole right) { throw null; }
+ public override string ToString() { throw null; }
+ }
+ public partial class DataProductVersion
+ {
+ public DataProductVersion(string version) { }
+ public string Version { get { throw null; } set { } }
+ }
+ public partial class EncryptionKeyDetails
+ {
+ public EncryptionKeyDetails(System.Uri keyVaultUri, string keyName, string keyVersion) { }
+ public string KeyName { get { throw null; } set { } }
+ public System.Uri KeyVaultUri { get { throw null; } set { } }
+ public string KeyVersion { get { throw null; } set { } }
+ }
+ [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)]
+ public readonly partial struct NetworkAclDefaultAction : System.IEquatable
+ {
+ private readonly object _dummy;
+ private readonly int _dummyPrimitive;
+ public NetworkAclDefaultAction(string value) { throw null; }
+ public static Azure.ResourceManager.NetworkAnalytics.Models.NetworkAclDefaultAction Allow { get { throw null; } }
+ public static Azure.ResourceManager.NetworkAnalytics.Models.NetworkAclDefaultAction Deny { get { throw null; } }
+ public bool Equals(Azure.ResourceManager.NetworkAnalytics.Models.NetworkAclDefaultAction other) { throw null; }
+ [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
+ public override bool Equals(object obj) { throw null; }
+ [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
+ public override int GetHashCode() { throw null; }
+ public static bool operator ==(Azure.ResourceManager.NetworkAnalytics.Models.NetworkAclDefaultAction left, Azure.ResourceManager.NetworkAnalytics.Models.NetworkAclDefaultAction right) { throw null; }
+ public static implicit operator Azure.ResourceManager.NetworkAnalytics.Models.NetworkAclDefaultAction (string value) { throw null; }
+ public static bool operator !=(Azure.ResourceManager.NetworkAnalytics.Models.NetworkAclDefaultAction left, Azure.ResourceManager.NetworkAnalytics.Models.NetworkAclDefaultAction right) { throw null; }
+ public override string ToString() { throw null; }
+ }
+ public partial class NetworkAnalyticsIPRules
+ {
+ public NetworkAnalyticsIPRules(string action) { }
+ public string Action { get { throw null; } set { } }
+ public string Value { get { throw null; } set { } }
+ }
+ public partial class NetworkAnalyticsKeyVaultContent
+ {
+ public NetworkAnalyticsKeyVaultContent(System.Uri keyVaultUri) { }
+ public System.Uri KeyVaultUri { get { throw null; } }
+ }
+ public partial class NetworkAnalyticsManagedResourceGroupConfiguration
+ {
+ public NetworkAnalyticsManagedResourceGroupConfiguration(string name, Azure.Core.AzureLocation location) { }
+ public Azure.Core.AzureLocation Location { get { throw null; } set { } }
+ public string Name { get { throw null; } set { } }
+ }
+ [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)]
+ public readonly partial struct NetworkAnalyticsProvisioningState : System.IEquatable
+ {
+ private readonly object _dummy;
+ private readonly int _dummyPrimitive;
+ public NetworkAnalyticsProvisioningState(string value) { throw null; }
+ public static Azure.ResourceManager.NetworkAnalytics.Models.NetworkAnalyticsProvisioningState Accepted { get { throw null; } }
+ public static Azure.ResourceManager.NetworkAnalytics.Models.NetworkAnalyticsProvisioningState Canceled { get { throw null; } }
+ public static Azure.ResourceManager.NetworkAnalytics.Models.NetworkAnalyticsProvisioningState Deleting { get { throw null; } }
+ public static Azure.ResourceManager.NetworkAnalytics.Models.NetworkAnalyticsProvisioningState Failed { get { throw null; } }
+ public static Azure.ResourceManager.NetworkAnalytics.Models.NetworkAnalyticsProvisioningState Provisioning { get { throw null; } }
+ public static Azure.ResourceManager.NetworkAnalytics.Models.NetworkAnalyticsProvisioningState Succeeded { get { throw null; } }
+ public static Azure.ResourceManager.NetworkAnalytics.Models.NetworkAnalyticsProvisioningState Updating { get { throw null; } }
+ public bool Equals(Azure.ResourceManager.NetworkAnalytics.Models.NetworkAnalyticsProvisioningState other) { throw null; }
+ [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
+ public override bool Equals(object obj) { throw null; }
+ [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
+ public override int GetHashCode() { throw null; }
+ public static bool operator ==(Azure.ResourceManager.NetworkAnalytics.Models.NetworkAnalyticsProvisioningState left, Azure.ResourceManager.NetworkAnalytics.Models.NetworkAnalyticsProvisioningState right) { throw null; }
+ public static implicit operator Azure.ResourceManager.NetworkAnalytics.Models.NetworkAnalyticsProvisioningState (string value) { throw null; }
+ public static bool operator !=(Azure.ResourceManager.NetworkAnalytics.Models.NetworkAnalyticsProvisioningState left, Azure.ResourceManager.NetworkAnalytics.Models.NetworkAnalyticsProvisioningState right) { throw null; }
+ public override string ToString() { throw null; }
+ }
+ public partial class NetworkAnalyticsVirtualNetworkRule
+ {
+ public NetworkAnalyticsVirtualNetworkRule(string id) { }
+ public string Action { get { throw null; } set { } }
+ public string Id { get { throw null; } set { } }
+ public string State { get { throw null; } set { } }
+ }
+ public partial class PublisherInformation
+ {
+ public PublisherInformation(string publisherName, System.Collections.Generic.IEnumerable dataProducts) { }
+ public System.Collections.Generic.IList DataProducts { get { throw null; } }
+ public string PublisherName { get { throw null; } set { } }
+ }
+ public partial class RoleAssignmentCommonProperties
+ {
+ public RoleAssignmentCommonProperties(string roleId, string principalId, string userName, System.Collections.Generic.IEnumerable dataTypeScope, string principalType, Azure.ResourceManager.NetworkAnalytics.Models.DataProductUserRole role) { }
+ public System.Collections.Generic.IList DataTypeScope { get { throw null; } }
+ public string PrincipalId { get { throw null; } }
+ public string PrincipalType { get { throw null; } }
+ public Azure.ResourceManager.NetworkAnalytics.Models.DataProductUserRole Role { get { throw null; } }
+ public string RoleId { get { throw null; } }
+ public string UserName { get { throw null; } }
+ }
+ public partial class RoleAssignmentDetail
+ {
+ public RoleAssignmentDetail(string roleId, string principalId, string userName, System.Collections.Generic.IEnumerable dataTypeScope, string principalType, Azure.ResourceManager.NetworkAnalytics.Models.DataProductUserRole role, string roleAssignmentId) { }
+ public System.Collections.Generic.IList DataTypeScope { get { throw null; } }
+ public string PrincipalId { get { throw null; } set { } }
+ public string PrincipalType { get { throw null; } set { } }
+ public Azure.ResourceManager.NetworkAnalytics.Models.DataProductUserRole Role { get { throw null; } set { } }
+ public string RoleAssignmentId { get { throw null; } set { } }
+ public string RoleId { get { throw null; } set { } }
+ public string UserName { get { throw null; } set { } }
+ }
+ public partial class RoleAssignmentListResult
+ {
+ internal RoleAssignmentListResult() { }
+ public int Count { get { throw null; } }
+ public System.Collections.Generic.IReadOnlyList RoleAssignmentResponse { get { throw null; } }
+ }
+}
diff --git a/sdk/networkanalytics/Azure.ResourceManager.NetworkAnalytics/assets.json b/sdk/networkanalytics/Azure.ResourceManager.NetworkAnalytics/assets.json
new file mode 100644
index 000000000000..2f73b077459e
--- /dev/null
+++ b/sdk/networkanalytics/Azure.ResourceManager.NetworkAnalytics/assets.json
@@ -0,0 +1,6 @@
+{
+ "AssetsRepo": "Azure/azure-sdk-assets",
+ "AssetsRepoPrefixPath": "net",
+ "TagPrefix": "net/networkanalytics/Azure.ResourceManager.NetworkAnalytics",
+ "Tag": "net/networkanalytics/Azure.ResourceManager.NetworkAnalytics_fd6d105c83"
+}
diff --git a/sdk/networkanalytics/Azure.ResourceManager.NetworkAnalytics/samples/Azure.ResourceManager.NetworkAnalytics.Samples.csproj b/sdk/networkanalytics/Azure.ResourceManager.NetworkAnalytics/samples/Azure.ResourceManager.NetworkAnalytics.Samples.csproj
new file mode 100644
index 000000000000..4db61c7766bb
--- /dev/null
+++ b/sdk/networkanalytics/Azure.ResourceManager.NetworkAnalytics/samples/Azure.ResourceManager.NetworkAnalytics.Samples.csproj
@@ -0,0 +1,10 @@
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/sdk/networkanalytics/Azure.ResourceManager.NetworkAnalytics/samples/Generated/Samples/Sample_DataProductCollection.cs b/sdk/networkanalytics/Azure.ResourceManager.NetworkAnalytics/samples/Generated/Samples/Sample_DataProductCollection.cs
new file mode 100644
index 000000000000..c5ac874671ec
--- /dev/null
+++ b/sdk/networkanalytics/Azure.ResourceManager.NetworkAnalytics/samples/Generated/Samples/Sample_DataProductCollection.cs
@@ -0,0 +1,434 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.Threading.Tasks;
+using Azure;
+using Azure.Core;
+using Azure.Identity;
+using Azure.ResourceManager;
+using Azure.ResourceManager.Models;
+using Azure.ResourceManager.NetworkAnalytics;
+using Azure.ResourceManager.NetworkAnalytics.Models;
+using Azure.ResourceManager.Resources;
+
+namespace Azure.ResourceManager.NetworkAnalytics.Samples
+{
+ public partial class Sample_DataProductCollection
+ {
+ // DataProducts_ListByResourceGroup_MaximumSet_Gen
+ [NUnit.Framework.Test]
+ [NUnit.Framework.Ignore("Only verifying that the sample builds")]
+ public async Task GetAll_DataProductsListByResourceGroupMaximumSetGen()
+ {
+ // Generated from example definition: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProducts_ListByResourceGroup_MaximumSet_Gen.json
+ // this example is just showing the usage of "DataProducts_ListByResourceGroup" operation, for the dependent resources, they will have to be created separately.
+
+ // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this ResourceGroupResource created on azure
+ // for more information of creating ResourceGroupResource, please refer to the document of ResourceGroupResource
+ string subscriptionId = "00000000-0000-0000-0000-00000000000";
+ string resourceGroupName = "aoiresourceGroupName";
+ ResourceIdentifier resourceGroupResourceId = ResourceGroupResource.CreateResourceIdentifier(subscriptionId, resourceGroupName);
+ ResourceGroupResource resourceGroupResource = client.GetResourceGroupResource(resourceGroupResourceId);
+
+ // get the collection of this DataProductResource
+ DataProductCollection collection = resourceGroupResource.GetDataProducts();
+
+ // invoke the operation and iterate over the result
+ await foreach (DataProductResource 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
+ DataProductData resourceData = item.Data;
+ // for demo we just print out the id
+ Console.WriteLine($"Succeeded on id: {resourceData.Id}");
+ }
+
+ Console.WriteLine($"Succeeded");
+ }
+
+ // DataProducts_ListByResourceGroup_MaximumSet_Gen - generated by [MinimumSet] rule_MinimumSet_Gen
+ [NUnit.Framework.Test]
+ [NUnit.Framework.Ignore("Only verifying that the sample builds")]
+ public async Task GetAll_DataProductsListByResourceGroupMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen()
+ {
+ // Generated from example definition: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProducts_ListByResourceGroup_MinimumSet_Gen.json
+ // this example is just showing the usage of "DataProducts_ListByResourceGroup" operation, for the dependent resources, they will have to be created separately.
+
+ // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this ResourceGroupResource created on azure
+ // for more information of creating ResourceGroupResource, please refer to the document of ResourceGroupResource
+ string subscriptionId = "00000000-0000-0000-0000-00000000000";
+ string resourceGroupName = "aoiresourceGroupName";
+ ResourceIdentifier resourceGroupResourceId = ResourceGroupResource.CreateResourceIdentifier(subscriptionId, resourceGroupName);
+ ResourceGroupResource resourceGroupResource = client.GetResourceGroupResource(resourceGroupResourceId);
+
+ // get the collection of this DataProductResource
+ DataProductCollection collection = resourceGroupResource.GetDataProducts();
+
+ // invoke the operation and iterate over the result
+ await foreach (DataProductResource 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
+ DataProductData resourceData = item.Data;
+ // for demo we just print out the id
+ Console.WriteLine($"Succeeded on id: {resourceData.Id}");
+ }
+
+ Console.WriteLine($"Succeeded");
+ }
+
+ // DataProducts_Get_MaximumSet_Gen
+ [NUnit.Framework.Test]
+ [NUnit.Framework.Ignore("Only verifying that the sample builds")]
+ public async Task Get_DataProductsGetMaximumSetGen()
+ {
+ // Generated from example definition: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProducts_Get_MaximumSet_Gen.json
+ // this example is just showing the usage of "DataProducts_Get" operation, for the dependent resources, they will have to be created separately.
+
+ // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this ResourceGroupResource created on azure
+ // for more information of creating ResourceGroupResource, please refer to the document of ResourceGroupResource
+ string subscriptionId = "00000000-0000-0000-0000-00000000000";
+ string resourceGroupName = "aoiresourceGroupName";
+ ResourceIdentifier resourceGroupResourceId = ResourceGroupResource.CreateResourceIdentifier(subscriptionId, resourceGroupName);
+ ResourceGroupResource resourceGroupResource = client.GetResourceGroupResource(resourceGroupResourceId);
+
+ // get the collection of this DataProductResource
+ DataProductCollection collection = resourceGroupResource.GetDataProducts();
+
+ // invoke the operation
+ string dataProductName = "dataproduct01";
+ DataProductResource result = await collection.GetAsync(dataProductName);
+
+ // 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
+ DataProductData resourceData = result.Data;
+ // for demo we just print out the id
+ Console.WriteLine($"Succeeded on id: {resourceData.Id}");
+ }
+
+ // DataProducts_Get_MaximumSet_Gen
+ [NUnit.Framework.Test]
+ [NUnit.Framework.Ignore("Only verifying that the sample builds")]
+ public async Task Exists_DataProductsGetMaximumSetGen()
+ {
+ // Generated from example definition: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProducts_Get_MaximumSet_Gen.json
+ // this example is just showing the usage of "DataProducts_Get" operation, for the dependent resources, they will have to be created separately.
+
+ // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this ResourceGroupResource created on azure
+ // for more information of creating ResourceGroupResource, please refer to the document of ResourceGroupResource
+ string subscriptionId = "00000000-0000-0000-0000-00000000000";
+ string resourceGroupName = "aoiresourceGroupName";
+ ResourceIdentifier resourceGroupResourceId = ResourceGroupResource.CreateResourceIdentifier(subscriptionId, resourceGroupName);
+ ResourceGroupResource resourceGroupResource = client.GetResourceGroupResource(resourceGroupResourceId);
+
+ // get the collection of this DataProductResource
+ DataProductCollection collection = resourceGroupResource.GetDataProducts();
+
+ // invoke the operation
+ string dataProductName = "dataproduct01";
+ bool result = await collection.ExistsAsync(dataProductName);
+
+ Console.WriteLine($"Succeeded: {result}");
+ }
+
+ // DataProducts_Get_MaximumSet_Gen
+ [NUnit.Framework.Test]
+ [NUnit.Framework.Ignore("Only verifying that the sample builds")]
+ public async Task GetIfExists_DataProductsGetMaximumSetGen()
+ {
+ // Generated from example definition: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProducts_Get_MaximumSet_Gen.json
+ // this example is just showing the usage of "DataProducts_Get" operation, for the dependent resources, they will have to be created separately.
+
+ // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this ResourceGroupResource created on azure
+ // for more information of creating ResourceGroupResource, please refer to the document of ResourceGroupResource
+ string subscriptionId = "00000000-0000-0000-0000-00000000000";
+ string resourceGroupName = "aoiresourceGroupName";
+ ResourceIdentifier resourceGroupResourceId = ResourceGroupResource.CreateResourceIdentifier(subscriptionId, resourceGroupName);
+ ResourceGroupResource resourceGroupResource = client.GetResourceGroupResource(resourceGroupResourceId);
+
+ // get the collection of this DataProductResource
+ DataProductCollection collection = resourceGroupResource.GetDataProducts();
+
+ // invoke the operation
+ string dataProductName = "dataproduct01";
+ NullableResponse response = await collection.GetIfExistsAsync(dataProductName);
+ DataProductResource 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
+ DataProductData resourceData = result.Data;
+ // for demo we just print out the id
+ Console.WriteLine($"Succeeded on id: {resourceData.Id}");
+ }
+ }
+
+ // DataProducts_Get_MaximumSet_Gen - generated by [MinimumSet] rule_MinimumSet_Gen
+ [NUnit.Framework.Test]
+ [NUnit.Framework.Ignore("Only verifying that the sample builds")]
+ public async Task Get_DataProductsGetMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen()
+ {
+ // Generated from example definition: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProducts_Get_MinimumSet_Gen.json
+ // this example is just showing the usage of "DataProducts_Get" operation, for the dependent resources, they will have to be created separately.
+
+ // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this ResourceGroupResource created on azure
+ // for more information of creating ResourceGroupResource, please refer to the document of ResourceGroupResource
+ string subscriptionId = "00000000-0000-0000-0000-00000000000";
+ string resourceGroupName = "aoiresourceGroupName";
+ ResourceIdentifier resourceGroupResourceId = ResourceGroupResource.CreateResourceIdentifier(subscriptionId, resourceGroupName);
+ ResourceGroupResource resourceGroupResource = client.GetResourceGroupResource(resourceGroupResourceId);
+
+ // get the collection of this DataProductResource
+ DataProductCollection collection = resourceGroupResource.GetDataProducts();
+
+ // invoke the operation
+ string dataProductName = "dataproduct01";
+ DataProductResource result = await collection.GetAsync(dataProductName);
+
+ // 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
+ DataProductData resourceData = result.Data;
+ // for demo we just print out the id
+ Console.WriteLine($"Succeeded on id: {resourceData.Id}");
+ }
+
+ // DataProducts_Get_MaximumSet_Gen - generated by [MinimumSet] rule_MinimumSet_Gen
+ [NUnit.Framework.Test]
+ [NUnit.Framework.Ignore("Only verifying that the sample builds")]
+ public async Task Exists_DataProductsGetMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen()
+ {
+ // Generated from example definition: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProducts_Get_MinimumSet_Gen.json
+ // this example is just showing the usage of "DataProducts_Get" operation, for the dependent resources, they will have to be created separately.
+
+ // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this ResourceGroupResource created on azure
+ // for more information of creating ResourceGroupResource, please refer to the document of ResourceGroupResource
+ string subscriptionId = "00000000-0000-0000-0000-00000000000";
+ string resourceGroupName = "aoiresourceGroupName";
+ ResourceIdentifier resourceGroupResourceId = ResourceGroupResource.CreateResourceIdentifier(subscriptionId, resourceGroupName);
+ ResourceGroupResource resourceGroupResource = client.GetResourceGroupResource(resourceGroupResourceId);
+
+ // get the collection of this DataProductResource
+ DataProductCollection collection = resourceGroupResource.GetDataProducts();
+
+ // invoke the operation
+ string dataProductName = "dataproduct01";
+ bool result = await collection.ExistsAsync(dataProductName);
+
+ Console.WriteLine($"Succeeded: {result}");
+ }
+
+ // DataProducts_Get_MaximumSet_Gen - generated by [MinimumSet] rule_MinimumSet_Gen
+ [NUnit.Framework.Test]
+ [NUnit.Framework.Ignore("Only verifying that the sample builds")]
+ public async Task GetIfExists_DataProductsGetMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen()
+ {
+ // Generated from example definition: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProducts_Get_MinimumSet_Gen.json
+ // this example is just showing the usage of "DataProducts_Get" operation, for the dependent resources, they will have to be created separately.
+
+ // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this ResourceGroupResource created on azure
+ // for more information of creating ResourceGroupResource, please refer to the document of ResourceGroupResource
+ string subscriptionId = "00000000-0000-0000-0000-00000000000";
+ string resourceGroupName = "aoiresourceGroupName";
+ ResourceIdentifier resourceGroupResourceId = ResourceGroupResource.CreateResourceIdentifier(subscriptionId, resourceGroupName);
+ ResourceGroupResource resourceGroupResource = client.GetResourceGroupResource(resourceGroupResourceId);
+
+ // get the collection of this DataProductResource
+ DataProductCollection collection = resourceGroupResource.GetDataProducts();
+
+ // invoke the operation
+ string dataProductName = "dataproduct01";
+ NullableResponse response = await collection.GetIfExistsAsync(dataProductName);
+ DataProductResource 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
+ DataProductData resourceData = result.Data;
+ // for demo we just print out the id
+ Console.WriteLine($"Succeeded on id: {resourceData.Id}");
+ }
+ }
+
+ // DataProducts_Create_MaximumSet_Gen
+ [NUnit.Framework.Test]
+ [NUnit.Framework.Ignore("Only verifying that the sample builds")]
+ public async Task CreateOrUpdate_DataProductsCreateMaximumSetGen()
+ {
+ // Generated from example definition: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProducts_Create_MaximumSet_Gen.json
+ // this example is just showing the usage of "DataProducts_Create" operation, for the dependent resources, they will have to be created separately.
+
+ // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this ResourceGroupResource created on azure
+ // for more information of creating ResourceGroupResource, please refer to the document of ResourceGroupResource
+ string subscriptionId = "00000000-0000-0000-0000-00000000000";
+ string resourceGroupName = "aoiresourceGroupName";
+ ResourceIdentifier resourceGroupResourceId = ResourceGroupResource.CreateResourceIdentifier(subscriptionId, resourceGroupName);
+ ResourceGroupResource resourceGroupResource = client.GetResourceGroupResource(resourceGroupResourceId);
+
+ // get the collection of this DataProductResource
+ DataProductCollection collection = resourceGroupResource.GetDataProducts();
+
+ // invoke the operation
+ string dataProductName = "dataproduct01";
+ DataProductData data = new DataProductData(new AzureLocation("eastus"))
+ {
+ Identity = new ManagedServiceIdentity("UserAssigned")
+ {
+ UserAssignedIdentities =
+{
+[new ResourceIdentifier("/subscriptions/subid/resourceGroups/resourceGroupName/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1")] = new UserAssignedIdentity(),
+},
+ },
+ Publisher = "Microsoft",
+ Product = "MCC",
+ MajorVersion = "1.0.0",
+ Owners =
+{
+"abc@micros.com"
+},
+ Redundancy = DataProductControlState.Disabled,
+ PurviewAccount = "testpurview",
+ PurviewCollection = "134567890",
+ PrivateLinksEnabled = DataProductControlState.Disabled,
+ PublicNetworkAccess = DataProductControlState.Enabled,
+ CustomerManagedKeyEncryptionEnabled = DataProductControlState.Enabled,
+ CustomerEncryptionKey = new EncryptionKeyDetails(new Uri("https://KeyVault.vault.azure.net"), "keyName", "keyVersion"),
+ Networkacls = new DataProductNetworkAcls(new NetworkAnalyticsVirtualNetworkRule[]
+ {
+new NetworkAnalyticsVirtualNetworkRule("/subscriptions/subscriptionId/resourcegroups/resourceGroupName/providers/Microsoft.Network/virtualNetworks/virtualNetworkName/subnets/subnetName")
+{
+Action = "Allow",
+State = "",
+}
+ }, new NetworkAnalyticsIPRules[]
+ {
+new NetworkAnalyticsIPRules("Allow")
+{
+Value = "1.1.1.1",
+}
+ }, new string[]
+ {
+"1.1.1.1"
+ }, NetworkAclDefaultAction.Allow),
+ ManagedResourceGroupConfiguration = new NetworkAnalyticsManagedResourceGroupConfiguration("managedResourceGroupName", new AzureLocation("eastus")),
+ CurrentMinorVersion = "1.0.1",
+ Tags =
+{
+["userSpecifiedKeyName"] = "userSpecifiedKeyValue",
+},
+ };
+ ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, dataProductName, data);
+ DataProductResource 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
+ DataProductData resourceData = result.Data;
+ // for demo we just print out the id
+ Console.WriteLine($"Succeeded on id: {resourceData.Id}");
+ }
+
+ // DataProducts_Create_MaximumSet_Gen - generated by [MinimumSet] rule_MinimumSet_Gen
+ [NUnit.Framework.Test]
+ [NUnit.Framework.Ignore("Only verifying that the sample builds")]
+ public async Task CreateOrUpdate_DataProductsCreateMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen()
+ {
+ // Generated from example definition: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProducts_Create_MinimumSet_Gen.json
+ // this example is just showing the usage of "DataProducts_Create" operation, for the dependent resources, they will have to be created separately.
+
+ // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this ResourceGroupResource created on azure
+ // for more information of creating ResourceGroupResource, please refer to the document of ResourceGroupResource
+ string subscriptionId = "00000000-0000-0000-0000-00000000000";
+ string resourceGroupName = "aoiresourceGroupName";
+ ResourceIdentifier resourceGroupResourceId = ResourceGroupResource.CreateResourceIdentifier(subscriptionId, resourceGroupName);
+ ResourceGroupResource resourceGroupResource = client.GetResourceGroupResource(resourceGroupResourceId);
+
+ // get the collection of this DataProductResource
+ DataProductCollection collection = resourceGroupResource.GetDataProducts();
+
+ // invoke the operation
+ string dataProductName = "dataproduct01";
+ DataProductData data = new DataProductData(new AzureLocation("eastus"))
+ {
+ Publisher = "Microsoft",
+ Product = "MCC",
+ MajorVersion = "1.0.0",
+ Tags =
+{
+["userSpecifiedKeyName"] = "userSpecifiedKeyValue",
+},
+ };
+ ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, dataProductName, data);
+ DataProductResource 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
+ DataProductData resourceData = result.Data;
+ // for demo we just print out the id
+ Console.WriteLine($"Succeeded on id: {resourceData.Id}");
+ }
+ }
+}
diff --git a/sdk/networkanalytics/Azure.ResourceManager.NetworkAnalytics/samples/Generated/Samples/Sample_DataProductResource.cs b/sdk/networkanalytics/Azure.ResourceManager.NetworkAnalytics/samples/Generated/Samples/Sample_DataProductResource.cs
new file mode 100644
index 000000000000..73558e152832
--- /dev/null
+++ b/sdk/networkanalytics/Azure.ResourceManager.NetworkAnalytics/samples/Generated/Samples/Sample_DataProductResource.cs
@@ -0,0 +1,647 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.Collections.Generic;
+using System.Threading.Tasks;
+using Azure;
+using Azure.Core;
+using Azure.Identity;
+using Azure.ResourceManager;
+using Azure.ResourceManager.Models;
+using Azure.ResourceManager.NetworkAnalytics;
+using Azure.ResourceManager.NetworkAnalytics.Models;
+using Azure.ResourceManager.Resources;
+
+namespace Azure.ResourceManager.NetworkAnalytics.Samples
+{
+ public partial class Sample_DataProductResource
+ {
+ // DataProducts_ListBySubscription_MaximumSet_Gen
+ [NUnit.Framework.Test]
+ [NUnit.Framework.Ignore("Only verifying that the sample builds")]
+ public async Task GetDataProducts_DataProductsListBySubscriptionMaximumSetGen()
+ {
+ // Generated from example definition: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProducts_ListBySubscription_MaximumSet_Gen.json
+ // this example is just showing the usage of "DataProducts_ListBySubscription" operation, for the dependent resources, they will have to be created separately.
+
+ // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this SubscriptionResource created on azure
+ // for more information of creating SubscriptionResource, please refer to the document of SubscriptionResource
+ string subscriptionId = "00000000-0000-0000-0000-00000000000";
+ ResourceIdentifier subscriptionResourceId = SubscriptionResource.CreateResourceIdentifier(subscriptionId);
+ SubscriptionResource subscriptionResource = client.GetSubscriptionResource(subscriptionResourceId);
+
+ // invoke the operation and iterate over the result
+ await foreach (DataProductResource item in subscriptionResource.GetDataProductsAsync())
+ {
+ // 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
+ DataProductData resourceData = item.Data;
+ // for demo we just print out the id
+ Console.WriteLine($"Succeeded on id: {resourceData.Id}");
+ }
+
+ Console.WriteLine($"Succeeded");
+ }
+
+ // DataProducts_ListBySubscription_MaximumSet_Gen - generated by [MinimumSet] rule_MinimumSet_Gen
+ [NUnit.Framework.Test]
+ [NUnit.Framework.Ignore("Only verifying that the sample builds")]
+ public async Task GetDataProducts_DataProductsListBySubscriptionMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen()
+ {
+ // Generated from example definition: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProducts_ListBySubscription_MinimumSet_Gen.json
+ // this example is just showing the usage of "DataProducts_ListBySubscription" operation, for the dependent resources, they will have to be created separately.
+
+ // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this SubscriptionResource created on azure
+ // for more information of creating SubscriptionResource, please refer to the document of SubscriptionResource
+ string subscriptionId = "00000000-0000-0000-0000-00000000000";
+ ResourceIdentifier subscriptionResourceId = SubscriptionResource.CreateResourceIdentifier(subscriptionId);
+ SubscriptionResource subscriptionResource = client.GetSubscriptionResource(subscriptionResourceId);
+
+ // invoke the operation and iterate over the result
+ await foreach (DataProductResource item in subscriptionResource.GetDataProductsAsync())
+ {
+ // 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
+ DataProductData resourceData = item.Data;
+ // for demo we just print out the id
+ Console.WriteLine($"Succeeded on id: {resourceData.Id}");
+ }
+
+ Console.WriteLine($"Succeeded");
+ }
+
+ // DataProducts_Get_MaximumSet_Gen
+ [NUnit.Framework.Test]
+ [NUnit.Framework.Ignore("Only verifying that the sample builds")]
+ public async Task Get_DataProductsGetMaximumSetGen()
+ {
+ // Generated from example definition: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProducts_Get_MaximumSet_Gen.json
+ // this example is just showing the usage of "DataProducts_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 DataProductResource created on azure
+ // for more information of creating DataProductResource, please refer to the document of DataProductResource
+ string subscriptionId = "00000000-0000-0000-0000-00000000000";
+ string resourceGroupName = "aoiresourceGroupName";
+ string dataProductName = "dataproduct01";
+ ResourceIdentifier dataProductResourceId = DataProductResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, dataProductName);
+ DataProductResource dataProduct = client.GetDataProductResource(dataProductResourceId);
+
+ // invoke the operation
+ DataProductResource result = await dataProduct.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
+ DataProductData resourceData = result.Data;
+ // for demo we just print out the id
+ Console.WriteLine($"Succeeded on id: {resourceData.Id}");
+ }
+
+ // DataProducts_Get_MaximumSet_Gen - generated by [MinimumSet] rule_MinimumSet_Gen
+ [NUnit.Framework.Test]
+ [NUnit.Framework.Ignore("Only verifying that the sample builds")]
+ public async Task Get_DataProductsGetMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen()
+ {
+ // Generated from example definition: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProducts_Get_MinimumSet_Gen.json
+ // this example is just showing the usage of "DataProducts_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 DataProductResource created on azure
+ // for more information of creating DataProductResource, please refer to the document of DataProductResource
+ string subscriptionId = "00000000-0000-0000-0000-00000000000";
+ string resourceGroupName = "aoiresourceGroupName";
+ string dataProductName = "dataproduct01";
+ ResourceIdentifier dataProductResourceId = DataProductResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, dataProductName);
+ DataProductResource dataProduct = client.GetDataProductResource(dataProductResourceId);
+
+ // invoke the operation
+ DataProductResource result = await dataProduct.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
+ DataProductData resourceData = result.Data;
+ // for demo we just print out the id
+ Console.WriteLine($"Succeeded on id: {resourceData.Id}");
+ }
+
+ // DataProducts_Update_MaximumSet_Gen
+ [NUnit.Framework.Test]
+ [NUnit.Framework.Ignore("Only verifying that the sample builds")]
+ public async Task Update_DataProductsUpdateMaximumSetGen()
+ {
+ // Generated from example definition: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProducts_Update_MaximumSet_Gen.json
+ // this example is just showing the usage of "DataProducts_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 DataProductResource created on azure
+ // for more information of creating DataProductResource, please refer to the document of DataProductResource
+ string subscriptionId = "00000000-0000-0000-0000-00000000000";
+ string resourceGroupName = "aoiresourceGroupName";
+ string dataProductName = "dataproduct01";
+ ResourceIdentifier dataProductResourceId = DataProductResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, dataProductName);
+ DataProductResource dataProduct = client.GetDataProductResource(dataProductResourceId);
+
+ // invoke the operation
+ DataProductPatch patch = new DataProductPatch()
+ {
+ Identity = new ManagedServiceIdentity("UserAssigned")
+ {
+ UserAssignedIdentities =
+{
+[new ResourceIdentifier("/subscriptions/subid/resourceGroups/resourceGroupName/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1")] = new UserAssignedIdentity(),
+},
+ },
+ Tags =
+{
+["userSpecifiedKeyName"] = "userSpecifiedKeyValue",
+},
+ Owners =
+{
+"abc@micros.com","def@micros.com"
+},
+ PurviewAccount = "testpurview",
+ PurviewCollection = "134567890",
+ PrivateLinksEnabled = DataProductControlState.Disabled,
+ CurrentMinorVersion = "1.0.1",
+ };
+ ArmOperation lro = await dataProduct.UpdateAsync(WaitUntil.Completed, patch);
+ DataProductResource 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
+ DataProductData resourceData = result.Data;
+ // for demo we just print out the id
+ Console.WriteLine($"Succeeded on id: {resourceData.Id}");
+ }
+
+ // DataProducts_Update_MaximumSet_Gen - generated by [MinimumSet] rule_MinimumSet_Gen
+ [NUnit.Framework.Test]
+ [NUnit.Framework.Ignore("Only verifying that the sample builds")]
+ public async Task Update_DataProductsUpdateMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen()
+ {
+ // Generated from example definition: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProducts_Update_MinimumSet_Gen.json
+ // this example is just showing the usage of "DataProducts_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 DataProductResource created on azure
+ // for more information of creating DataProductResource, please refer to the document of DataProductResource
+ string subscriptionId = "00000000-0000-0000-0000-00000000000";
+ string resourceGroupName = "aoiresourceGroupName";
+ string dataProductName = "dataproduct01";
+ ResourceIdentifier dataProductResourceId = DataProductResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, dataProductName);
+ DataProductResource dataProduct = client.GetDataProductResource(dataProductResourceId);
+
+ // invoke the operation
+ DataProductPatch patch = new DataProductPatch();
+ ArmOperation lro = await dataProduct.UpdateAsync(WaitUntil.Completed, patch);
+ DataProductResource 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
+ DataProductData resourceData = result.Data;
+ // for demo we just print out the id
+ Console.WriteLine($"Succeeded on id: {resourceData.Id}");
+ }
+
+ // DataProducts_Delete_MaximumSet_Gen
+ [NUnit.Framework.Test]
+ [NUnit.Framework.Ignore("Only verifying that the sample builds")]
+ public async Task Delete_DataProductsDeleteMaximumSetGen()
+ {
+ // Generated from example definition: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProducts_Delete_MaximumSet_Gen.json
+ // this example is just showing the usage of "DataProducts_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 DataProductResource created on azure
+ // for more information of creating DataProductResource, please refer to the document of DataProductResource
+ string subscriptionId = "00000000-0000-0000-0000-00000000000";
+ string resourceGroupName = "aoiresourceGroupName";
+ string dataProductName = "dataproduct01";
+ ResourceIdentifier dataProductResourceId = DataProductResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, dataProductName);
+ DataProductResource dataProduct = client.GetDataProductResource(dataProductResourceId);
+
+ // invoke the operation
+ await dataProduct.DeleteAsync(WaitUntil.Completed);
+
+ Console.WriteLine($"Succeeded");
+ }
+
+ // DataProducts_Delete_MaximumSet_Gen - generated by [MinimumSet] rule_MinimumSet_Gen
+ [NUnit.Framework.Test]
+ [NUnit.Framework.Ignore("Only verifying that the sample builds")]
+ public async Task Delete_DataProductsDeleteMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen()
+ {
+ // Generated from example definition: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProducts_Delete_MinimumSet_Gen.json
+ // this example is just showing the usage of "DataProducts_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 DataProductResource created on azure
+ // for more information of creating DataProductResource, please refer to the document of DataProductResource
+ string subscriptionId = "00000000-0000-0000-0000-00000000000";
+ string resourceGroupName = "aoiresourceGroupName";
+ string dataProductName = "dataproduct01";
+ ResourceIdentifier dataProductResourceId = DataProductResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, dataProductName);
+ DataProductResource dataProduct = client.GetDataProductResource(dataProductResourceId);
+
+ // invoke the operation
+ await dataProduct.DeleteAsync(WaitUntil.Completed);
+
+ Console.WriteLine($"Succeeded");
+ }
+
+ // DataProducts_AddUserRole_MaximumSet_Gen
+ [NUnit.Framework.Test]
+ [NUnit.Framework.Ignore("Only verifying that the sample builds")]
+ public async Task AddUserRole_DataProductsAddUserRoleMaximumSetGen()
+ {
+ // Generated from example definition: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProducts_AddUserRole_MaximumSet_Gen.json
+ // this example is just showing the usage of "DataProducts_AddUserRole" 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 DataProductResource created on azure
+ // for more information of creating DataProductResource, please refer to the document of DataProductResource
+ string subscriptionId = "00000000-0000-0000-0000-00000000000";
+ string resourceGroupName = "aoiresourceGroupName";
+ string dataProductName = "dataproduct01";
+ ResourceIdentifier dataProductResourceId = DataProductResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, dataProductName);
+ DataProductResource dataProduct = client.GetDataProductResource(dataProductResourceId);
+
+ // invoke the operation
+ RoleAssignmentCommonProperties body = new RoleAssignmentCommonProperties("00000000-0000-0000-0000-00000000000", "00000000-0000-0000-0000-00000000000", "UserName", new string[]
+ {
+"scope"
+ }, "User", DataProductUserRole.Reader);
+ RoleAssignmentDetail result = await dataProduct.AddUserRoleAsync(body);
+
+ Console.WriteLine($"Succeeded: {result}");
+ }
+
+ // DataProducts_AddUserRole_MaximumSet_Gen - generated by [MinimumSet] rule_MinimumSet_Gen
+ [NUnit.Framework.Test]
+ [NUnit.Framework.Ignore("Only verifying that the sample builds")]
+ public async Task AddUserRole_DataProductsAddUserRoleMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen()
+ {
+ // Generated from example definition: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProducts_AddUserRole_MinimumSet_Gen.json
+ // this example is just showing the usage of "DataProducts_AddUserRole" 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 DataProductResource created on azure
+ // for more information of creating DataProductResource, please refer to the document of DataProductResource
+ string subscriptionId = "00000000-0000-0000-0000-00000000000";
+ string resourceGroupName = "aoiresourceGroupName";
+ string dataProductName = "dataproduct01";
+ ResourceIdentifier dataProductResourceId = DataProductResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, dataProductName);
+ DataProductResource dataProduct = client.GetDataProductResource(dataProductResourceId);
+
+ // invoke the operation
+ RoleAssignmentCommonProperties body = new RoleAssignmentCommonProperties("00000000-0000-0000-0000-00000000000", "00000000-0000-0000-0000-00000000000", "userName", new string[]
+ {
+"scope"
+ }, "User", DataProductUserRole.Reader);
+ RoleAssignmentDetail result = await dataProduct.AddUserRoleAsync(body);
+
+ Console.WriteLine($"Succeeded: {result}");
+ }
+
+ // DataProducts_GenerateStorageAccountSasToken_MaximumSet_Gen
+ [NUnit.Framework.Test]
+ [NUnit.Framework.Ignore("Only verifying that the sample builds")]
+ public async Task GenerateStorageAccountSasToken_DataProductsGenerateStorageAccountSasTokenMaximumSetGen()
+ {
+ // Generated from example definition: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProducts_GenerateStorageAccountSasToken_MaximumSet_Gen.json
+ // this example is just showing the usage of "DataProducts_GenerateStorageAccountSasToken" 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 DataProductResource created on azure
+ // for more information of creating DataProductResource, please refer to the document of DataProductResource
+ string subscriptionId = "00000000-0000-0000-0000-00000000000";
+ string resourceGroupName = "aoiresourceGroupName";
+ string dataProductName = "dataproduct01";
+ ResourceIdentifier dataProductResourceId = DataProductResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, dataProductName);
+ DataProductResource dataProduct = client.GetDataProductResource(dataProductResourceId);
+
+ // invoke the operation
+ AccountSasContent content = new AccountSasContent(DateTimeOffset.Parse("2023-08-24T05:34:58.151Z"), DateTimeOffset.Parse("2023-08-24T05:34:58.151Z"), "1.1.1.1");
+ AccountSasToken result = await dataProduct.GenerateStorageAccountSasTokenAsync(content);
+
+ Console.WriteLine($"Succeeded: {result}");
+ }
+
+ // DataProducts_GenerateStorageAccountSasToken_MaximumSet_Gen - generated by [MinimumSet] rule_MinimumSet_Gen
+ [NUnit.Framework.Test]
+ [NUnit.Framework.Ignore("Only verifying that the sample builds")]
+ public async Task GenerateStorageAccountSasToken_DataProductsGenerateStorageAccountSasTokenMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen()
+ {
+ // Generated from example definition: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProducts_GenerateStorageAccountSasToken_MinimumSet_Gen.json
+ // this example is just showing the usage of "DataProducts_GenerateStorageAccountSasToken" 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 DataProductResource created on azure
+ // for more information of creating DataProductResource, please refer to the document of DataProductResource
+ string subscriptionId = "00000000-0000-0000-0000-00000000000";
+ string resourceGroupName = "aoiresourceGroupName";
+ string dataProductName = "dataproduct01";
+ ResourceIdentifier dataProductResourceId = DataProductResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, dataProductName);
+ DataProductResource dataProduct = client.GetDataProductResource(dataProductResourceId);
+
+ // invoke the operation
+ AccountSasContent content = new AccountSasContent(DateTimeOffset.Parse("2023-08-24T05:35:17.051Z"), DateTimeOffset.Parse("2023-08-24T05:35:17.051Z"), "1.1.1.1");
+ AccountSasToken result = await dataProduct.GenerateStorageAccountSasTokenAsync(content);
+
+ Console.WriteLine($"Succeeded: {result}");
+ }
+
+ // DataProducts_ListRolesAssignments_MaximumSet_Gen
+ [NUnit.Framework.Test]
+ [NUnit.Framework.Ignore("Only verifying that the sample builds")]
+ public async Task GetRolesAssignments_DataProductsListRolesAssignmentsMaximumSetGen()
+ {
+ // Generated from example definition: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProducts_ListRolesAssignments_MaximumSet_Gen.json
+ // this example is just showing the usage of "DataProducts_ListRolesAssignments" 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 DataProductResource created on azure
+ // for more information of creating DataProductResource, please refer to the document of DataProductResource
+ string subscriptionId = "00000000-0000-0000-0000-00000000000";
+ string resourceGroupName = "aoiresourceGroupName";
+ string dataProductName = "dataproduct01";
+ ResourceIdentifier dataProductResourceId = DataProductResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, dataProductName);
+ DataProductResource dataProduct = client.GetDataProductResource(dataProductResourceId);
+
+ // invoke the operation
+ BinaryData body = BinaryData.FromObjectAsJson(new Dictionary()
+ {
+ });
+ RoleAssignmentListResult result = await dataProduct.GetRolesAssignmentsAsync(body);
+
+ Console.WriteLine($"Succeeded: {result}");
+ }
+
+ // DataProducts_ListRolesAssignments_MaximumSet_Gen - generated by [MinimumSet] rule_MinimumSet_Gen
+ [NUnit.Framework.Test]
+ [NUnit.Framework.Ignore("Only verifying that the sample builds")]
+ public async Task GetRolesAssignments_DataProductsListRolesAssignmentsMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen()
+ {
+ // Generated from example definition: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProducts_ListRolesAssignments_MinimumSet_Gen.json
+ // this example is just showing the usage of "DataProducts_ListRolesAssignments" 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 DataProductResource created on azure
+ // for more information of creating DataProductResource, please refer to the document of DataProductResource
+ string subscriptionId = "00000000-0000-0000-0000-00000000000";
+ string resourceGroupName = "aoiresourceGroupName";
+ string dataProductName = "dataproduct01";
+ ResourceIdentifier dataProductResourceId = DataProductResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, dataProductName);
+ DataProductResource dataProduct = client.GetDataProductResource(dataProductResourceId);
+
+ // invoke the operation
+ BinaryData body = BinaryData.FromObjectAsJson(new Dictionary()
+ {
+ });
+ RoleAssignmentListResult result = await dataProduct.GetRolesAssignmentsAsync(body);
+
+ Console.WriteLine($"Succeeded: {result}");
+ }
+
+ // DataProducts_RemoveUserRole_MaximumSet_Gen
+ [NUnit.Framework.Test]
+ [NUnit.Framework.Ignore("Only verifying that the sample builds")]
+ public async Task RemoveUserRole_DataProductsRemoveUserRoleMaximumSetGen()
+ {
+ // Generated from example definition: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProducts_RemoveUserRole_MaximumSet_Gen.json
+ // this example is just showing the usage of "DataProducts_RemoveUserRole" 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 DataProductResource created on azure
+ // for more information of creating DataProductResource, please refer to the document of DataProductResource
+ string subscriptionId = "00000000-0000-0000-0000-00000000000";
+ string resourceGroupName = "aoiresourceGroupName";
+ string dataProductName = "dataproduct01";
+ ResourceIdentifier dataProductResourceId = DataProductResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, dataProductName);
+ DataProductResource dataProduct = client.GetDataProductResource(dataProductResourceId);
+
+ // invoke the operation
+ RoleAssignmentDetail body = new RoleAssignmentDetail("00000000-0000-0000-0000-00000000000", "00000000-0000-0000-0000-00000000000", "UserName", new string[]
+ {
+"scope"
+ }, "User", DataProductUserRole.Reader, "00000000-0000-0000-0000-00000000000");
+ await dataProduct.RemoveUserRoleAsync(body);
+
+ Console.WriteLine($"Succeeded");
+ }
+
+ // DataProducts_RemoveUserRole_MaximumSet_Gen - generated by [MinimumSet] rule_MinimumSet_Gen
+ [NUnit.Framework.Test]
+ [NUnit.Framework.Ignore("Only verifying that the sample builds")]
+ public async Task RemoveUserRole_DataProductsRemoveUserRoleMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen()
+ {
+ // Generated from example definition: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProducts_RemoveUserRole_MinimumSet_Gen.json
+ // this example is just showing the usage of "DataProducts_RemoveUserRole" 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 DataProductResource created on azure
+ // for more information of creating DataProductResource, please refer to the document of DataProductResource
+ string subscriptionId = "00000000-0000-0000-0000-00000000000";
+ string resourceGroupName = "aoiresourceGroupName";
+ string dataProductName = "dataproduct01";
+ ResourceIdentifier dataProductResourceId = DataProductResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, dataProductName);
+ DataProductResource dataProduct = client.GetDataProductResource(dataProductResourceId);
+
+ // invoke the operation
+ RoleAssignmentDetail body = new RoleAssignmentDetail("00000000-0000-0000-0000-00000000000", "00000000-0000-0000-0000-00000000000", "UserName", new string[]
+ {
+"scope"
+ }, "User", DataProductUserRole.Reader, "00000000-0000-0000-0000-00000000000");
+ await dataProduct.RemoveUserRoleAsync(body);
+
+ Console.WriteLine($"Succeeded");
+ }
+
+ // DataProducts_RotateKey_MaximumSet_Gen
+ [NUnit.Framework.Test]
+ [NUnit.Framework.Ignore("Only verifying that the sample builds")]
+ public async Task RotateKey_DataProductsRotateKeyMaximumSetGen()
+ {
+ // Generated from example definition: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProducts_RotateKey_MaximumSet_Gen.json
+ // this example is just showing the usage of "DataProducts_RotateKey" 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 DataProductResource created on azure
+ // for more information of creating DataProductResource, please refer to the document of DataProductResource
+ string subscriptionId = "00000000-0000-0000-0000-00000000000";
+ string resourceGroupName = "aoiresourceGroupName";
+ string dataProductName = "dataproduct01";
+ ResourceIdentifier dataProductResourceId = DataProductResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, dataProductName);
+ DataProductResource dataProduct = client.GetDataProductResource(dataProductResourceId);
+
+ // invoke the operation
+ NetworkAnalyticsKeyVaultContent content = new NetworkAnalyticsKeyVaultContent(new Uri("https://myKeyVault.vault.azure.net"));
+ await dataProduct.RotateKeyAsync(content);
+
+ Console.WriteLine($"Succeeded");
+ }
+
+ // DataProducts_RotateKey_MaximumSet_Gen - generated by [MinimumSet] rule_MinimumSet_Gen
+ [NUnit.Framework.Test]
+ [NUnit.Framework.Ignore("Only verifying that the sample builds")]
+ public async Task RotateKey_DataProductsRotateKeyMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen()
+ {
+ // Generated from example definition: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProducts_RotateKey_MinimumSet_Gen.json
+ // this example is just showing the usage of "DataProducts_RotateKey" 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 DataProductResource created on azure
+ // for more information of creating DataProductResource, please refer to the document of DataProductResource
+ string subscriptionId = "00000000-0000-0000-0000-00000000000";
+ string resourceGroupName = "aoiresourceGroupName";
+ string dataProductName = "dataproduct01";
+ ResourceIdentifier dataProductResourceId = DataProductResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, dataProductName);
+ DataProductResource dataProduct = client.GetDataProductResource(dataProductResourceId);
+
+ // invoke the operation
+ NetworkAnalyticsKeyVaultContent content = new NetworkAnalyticsKeyVaultContent(new Uri("https://myKeyVault.vault.azure.net"));
+ await dataProduct.RotateKeyAsync(content);
+
+ Console.WriteLine($"Succeeded");
+ }
+
+ // DataTypes_ListByDataProduct_MaximumSet_Gen
+ [NUnit.Framework.Test]
+ [NUnit.Framework.Ignore("Only verifying that the sample builds")]
+ public async Task GetDataTypes_DataTypesListByDataProductMaximumSetGen()
+ {
+ // Generated from example definition: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataTypes_ListByDataProduct_MaximumSet_Gen.json
+ // this example is just showing the usage of "DataTypes_ListByDataProduct" 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 DataProductResource created on azure
+ // for more information of creating DataProductResource, please refer to the document of DataProductResource
+ string subscriptionId = "00000000-0000-0000-0000-00000000000";
+ string resourceGroupName = "aoiresourceGroupName";
+ string dataProductName = "dataproduct01";
+ ResourceIdentifier dataProductResourceId = DataProductResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, dataProductName);
+ DataProductResource dataProduct = client.GetDataProductResource(dataProductResourceId);
+
+ // invoke the operation and iterate over the result
+ await foreach (DataProductDataType item in dataProduct.GetDataTypesAsync())
+ {
+ Console.WriteLine($"Succeeded: {item}");
+ }
+
+ Console.WriteLine($"Succeeded");
+ }
+
+ // DataTypes_ListByDataProduct_MaximumSet_Gen - generated by [MinimumSet] rule_MinimumSet_Gen
+ [NUnit.Framework.Test]
+ [NUnit.Framework.Ignore("Only verifying that the sample builds")]
+ public async Task GetDataTypes_DataTypesListByDataProductMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen()
+ {
+ // Generated from example definition: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataTypes_ListByDataProduct_MinimumSet_Gen.json
+ // this example is just showing the usage of "DataTypes_ListByDataProduct" 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 DataProductResource created on azure
+ // for more information of creating DataProductResource, please refer to the document of DataProductResource
+ string subscriptionId = "00000000-0000-0000-0000-00000000000";
+ string resourceGroupName = "aoiresourceGroupName";
+ string dataProductName = "dataproduct01";
+ ResourceIdentifier dataProductResourceId = DataProductResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, dataProductName);
+ DataProductResource dataProduct = client.GetDataProductResource(dataProductResourceId);
+
+ // invoke the operation and iterate over the result
+ await foreach (DataProductDataType item in dataProduct.GetDataTypesAsync())
+ {
+ Console.WriteLine($"Succeeded: {item}");
+ }
+
+ Console.WriteLine($"Succeeded");
+ }
+ }
+}
diff --git a/sdk/networkanalytics/Azure.ResourceManager.NetworkAnalytics/samples/Generated/Samples/Sample_DataProductsCatalogResource.cs b/sdk/networkanalytics/Azure.ResourceManager.NetworkAnalytics/samples/Generated/Samples/Sample_DataProductsCatalogResource.cs
new file mode 100644
index 000000000000..de62bca299f5
--- /dev/null
+++ b/sdk/networkanalytics/Azure.ResourceManager.NetworkAnalytics/samples/Generated/Samples/Sample_DataProductsCatalogResource.cs
@@ -0,0 +1,144 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.Threading.Tasks;
+using Azure.Core;
+using Azure.Identity;
+using Azure.ResourceManager;
+using Azure.ResourceManager.NetworkAnalytics;
+using Azure.ResourceManager.Resources;
+
+namespace Azure.ResourceManager.NetworkAnalytics.Samples
+{
+ public partial class Sample_DataProductsCatalogResource
+ {
+ // DataProductsCatalogs_ListBySubscription_MaximumSet_Gen
+ [NUnit.Framework.Test]
+ [NUnit.Framework.Ignore("Only verifying that the sample builds")]
+ public async Task GetDataProductsCatalogs_DataProductsCatalogsListBySubscriptionMaximumSetGen()
+ {
+ // Generated from example definition: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProductsCatalogs_ListBySubscription_MaximumSet_Gen.json
+ // this example is just showing the usage of "DataProductsCatalogs_ListBySubscription" operation, for the dependent resources, they will have to be created separately.
+
+ // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this SubscriptionResource created on azure
+ // for more information of creating SubscriptionResource, please refer to the document of SubscriptionResource
+ string subscriptionId = "00000000-0000-0000-0000-00000000000";
+ ResourceIdentifier subscriptionResourceId = SubscriptionResource.CreateResourceIdentifier(subscriptionId);
+ SubscriptionResource subscriptionResource = client.GetSubscriptionResource(subscriptionResourceId);
+
+ // invoke the operation and iterate over the result
+ await foreach (DataProductsCatalogResource item in subscriptionResource.GetDataProductsCatalogsAsync())
+ {
+ // 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
+ DataProductsCatalogData resourceData = item.Data;
+ // for demo we just print out the id
+ Console.WriteLine($"Succeeded on id: {resourceData.Id}");
+ }
+
+ Console.WriteLine($"Succeeded");
+ }
+
+ // DataProductsCatalogs_ListBySubscription_MinimumSet_Gen
+ [NUnit.Framework.Test]
+ [NUnit.Framework.Ignore("Only verifying that the sample builds")]
+ public async Task GetDataProductsCatalogs_DataProductsCatalogsListBySubscriptionMinimumSetGen()
+ {
+ // Generated from example definition: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProductsCatalogs_ListBySubscription_MinimumSet_Gen.json
+ // this example is just showing the usage of "DataProductsCatalogs_ListBySubscription" operation, for the dependent resources, they will have to be created separately.
+
+ // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this SubscriptionResource created on azure
+ // for more information of creating SubscriptionResource, please refer to the document of SubscriptionResource
+ string subscriptionId = "00000000-0000-0000-0000-00000000000";
+ ResourceIdentifier subscriptionResourceId = SubscriptionResource.CreateResourceIdentifier(subscriptionId);
+ SubscriptionResource subscriptionResource = client.GetSubscriptionResource(subscriptionResourceId);
+
+ // invoke the operation and iterate over the result
+ await foreach (DataProductsCatalogResource item in subscriptionResource.GetDataProductsCatalogsAsync())
+ {
+ // 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
+ DataProductsCatalogData resourceData = item.Data;
+ // for demo we just print out the id
+ Console.WriteLine($"Succeeded on id: {resourceData.Id}");
+ }
+
+ Console.WriteLine($"Succeeded");
+ }
+
+ // DataProductsCatalogs_Get_MaximumSet_Gen
+ [NUnit.Framework.Test]
+ [NUnit.Framework.Ignore("Only verifying that the sample builds")]
+ public async Task Get_DataProductsCatalogsGetMaximumSetGen()
+ {
+ // Generated from example definition: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProductsCatalogs_Get_MaximumSet_Gen.json
+ // this example is just showing the usage of "DataProductsCatalogs_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 DataProductsCatalogResource created on azure
+ // for more information of creating DataProductsCatalogResource, please refer to the document of DataProductsCatalogResource
+ string subscriptionId = "00000000-0000-0000-0000-00000000000";
+ string resourceGroupName = "aoiresourceGroupName";
+ ResourceIdentifier dataProductsCatalogResourceId = DataProductsCatalogResource.CreateResourceIdentifier(subscriptionId, resourceGroupName);
+ DataProductsCatalogResource dataProductsCatalog = client.GetDataProductsCatalogResource(dataProductsCatalogResourceId);
+
+ // invoke the operation
+ DataProductsCatalogResource result = await dataProductsCatalog.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
+ DataProductsCatalogData resourceData = result.Data;
+ // for demo we just print out the id
+ Console.WriteLine($"Succeeded on id: {resourceData.Id}");
+ }
+
+ // DataProductsCatalogs_Get_MaximumSet_Gen - generated by [MinimumSet] rule_MinimumSet_Gen
+ [NUnit.Framework.Test]
+ [NUnit.Framework.Ignore("Only verifying that the sample builds")]
+ public async Task Get_DataProductsCatalogsGetMaximumSetGenGeneratedByMinimumSetRuleMinimumSetGen()
+ {
+ // Generated from example definition: specification/networkanalytics/resource-manager/Microsoft.NetworkAnalytics/stable/2023-11-15/examples/DataProductsCatalogs_Get_MinimumSet_Gen.json
+ // this example is just showing the usage of "DataProductsCatalogs_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 DataProductsCatalogResource created on azure
+ // for more information of creating DataProductsCatalogResource, please refer to the document of DataProductsCatalogResource
+ string subscriptionId = "00000000-0000-0000-0000-00000000000";
+ string resourceGroupName = "aoiresourceGroupName";
+ ResourceIdentifier dataProductsCatalogResourceId = DataProductsCatalogResource.CreateResourceIdentifier(subscriptionId, resourceGroupName);
+ DataProductsCatalogResource dataProductsCatalog = client.GetDataProductsCatalogResource(dataProductsCatalogResourceId);
+
+ // invoke the operation
+ DataProductsCatalogResource result = await dataProductsCatalog.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
+ DataProductsCatalogData resourceData = result.Data;
+ // for demo we just print out the id
+ Console.WriteLine($"Succeeded on id: {resourceData.Id}");
+ }
+ }
+}
diff --git a/sdk/networkanalytics/Azure.ResourceManager.NetworkAnalytics/src/Azure.ResourceManager.NetworkAnalytics.csproj b/sdk/networkanalytics/Azure.ResourceManager.NetworkAnalytics/src/Azure.ResourceManager.NetworkAnalytics.csproj
new file mode 100644
index 000000000000..0199d3ac34b9
--- /dev/null
+++ b/sdk/networkanalytics/Azure.ResourceManager.NetworkAnalytics/src/Azure.ResourceManager.NetworkAnalytics.csproj
@@ -0,0 +1,8 @@
+
+
+ 1.0.0-beta.1
+ Azure.ResourceManager.NetworkAnalytics
+ Azure Resource Manager client SDK for Azure resource provider NetworkAnalytics.
+ azure;management;arm;resource manager;networkanalytics
+
+
diff --git a/sdk/networkanalytics/Azure.ResourceManager.NetworkAnalytics/src/Generated/ArmNetworkAnalyticsModelFactory.cs b/sdk/networkanalytics/Azure.ResourceManager.NetworkAnalytics/src/Generated/ArmNetworkAnalyticsModelFactory.cs
new file mode 100644
index 000000000000..84a266efb630
--- /dev/null
+++ b/sdk/networkanalytics/Azure.ResourceManager.NetworkAnalytics/src/Generated/ArmNetworkAnalyticsModelFactory.cs
@@ -0,0 +1,129 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using Azure.Core;
+using Azure.ResourceManager.Models;
+using Azure.ResourceManager.NetworkAnalytics;
+
+namespace Azure.ResourceManager.NetworkAnalytics.Models
+{
+ /// Model factory for models.
+ public static partial class ArmNetworkAnalyticsModelFactory
+ {
+ /// Initializes a new instance of DataProductData.
+ /// The id.
+ /// The name.
+ /// The resourceType.
+ /// The systemData.
+ /// The tags.
+ /// The location.
+ /// The managed service identities assigned to this resource.
+ /// The resource GUID property of the data product resource.
+ /// Latest provisioning state of data product.
+ /// Data product publisher name.
+ /// Product name of data product.
+ /// Major version of data product.
+ /// List of name or email associated with data product resource deployment.
+ /// Flag to enable or disable redundancy for data product.
+ /// Purview account url for data product to connect to.
+ /// Purview collection url for data product to connect to.
+ /// Flag to enable or disable private link for data product resource.
+ /// Flag to enable or disable public access of data product resource.
+ /// Flag to enable customer managed key encryption for data product.
+ /// Customer managed encryption key details for data product.
+ /// Network rule set for data product.
+ /// Managed resource group configuration.
+ /// List of available minor versions of the data product resource.
+ /// Current configured minor version of the data product resource.
+ /// Documentation link for the data product based on definition file.
+ /// Resource links which exposed to the customer to query the data.
+ /// Key vault url.
+ /// A new instance for mocking.
+ public static DataProductData DataProductData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, ManagedServiceIdentity identity = null, string resourceGuid = null, NetworkAnalyticsProvisioningState? provisioningState = null, string publisher = null, string product = null, string majorVersion = null, IEnumerable owners = null, DataProductControlState? redundancy = null, string purviewAccount = null, string purviewCollection = null, DataProductControlState? privateLinksEnabled = null, DataProductControlState? publicNetworkAccess = null, DataProductControlState? customerManagedKeyEncryptionEnabled = null, EncryptionKeyDetails customerEncryptionKey = null, DataProductNetworkAcls networkacls = null, NetworkAnalyticsManagedResourceGroupConfiguration managedResourceGroupConfiguration = null, IEnumerable availableMinorVersions = null, string currentMinorVersion = null, string documentation = null, ConsumptionEndpointsProperties consumptionEndpoints = null, Uri keyVaultUri = null)
+ {
+ tags ??= new Dictionary();
+ owners ??= new List();
+ availableMinorVersions ??= new List();
+
+ return new DataProductData(id, name, resourceType, systemData, tags, location, identity, resourceGuid, provisioningState, publisher, product, majorVersion, owners?.ToList(), redundancy, purviewAccount, purviewCollection, privateLinksEnabled, publicNetworkAccess, customerManagedKeyEncryptionEnabled, customerEncryptionKey, networkacls, managedResourceGroupConfiguration, availableMinorVersions?.ToList(), currentMinorVersion, documentation, consumptionEndpoints, keyVaultUri);
+ }
+
+ /// Initializes a new instance of ConsumptionEndpointsProperties.
+ /// Ingestion url to upload the data.
+ /// Resource Id of ingestion endpoint.
+ /// Url to consume file type.
+ /// Resource Id of file access endpoint.
+ /// Url to consume the processed data.
+ /// Resource Id of query endpoint.
+ /// A new instance for mocking.
+ public static ConsumptionEndpointsProperties ConsumptionEndpointsProperties(Uri ingestionUri = null, ResourceIdentifier ingestionResourceId = null, Uri fileAccessUri = null, ResourceIdentifier fileAccessResourceId = null, Uri queryUri = null, ResourceIdentifier queryResourceId = null)
+ {
+ return new ConsumptionEndpointsProperties(ingestionUri, ingestionResourceId, fileAccessUri, fileAccessResourceId, queryUri, queryResourceId);
+ }
+
+ /// Initializes a new instance of DataProductsCatalogData.
+ /// The id.
+ /// The name.
+ /// The resourceType.
+ /// The systemData.
+ /// The data catalog provisioning state.
+ /// The data product publisher information.
+ /// A new instance for mocking.
+ public static DataProductsCatalogData DataProductsCatalogData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, NetworkAnalyticsProvisioningState? provisioningState = null, IEnumerable publishers = null)
+ {
+ publishers ??= new List();
+
+ return new DataProductsCatalogData(id, name, resourceType, systemData, provisioningState, publishers?.ToList());
+ }
+
+ /// Initializes a new instance of DataProductDataType.
+ /// The id.
+ /// The name.
+ /// The resourceType.
+ /// The systemData.
+ /// Latest provisioning state of data product.
+ /// State of data type.
+ /// Reason for the state of data type.
+ /// Field for storage output retention in days.
+ /// Field for database cache retention in days.
+ /// Field for database data retention in days.
+ /// Url for data visualization.
+ /// A new instance for mocking.
+ public static DataProductDataType DataProductDataType(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, NetworkAnalyticsProvisioningState? provisioningState = null, DataProducDataTypeState? state = null, string stateReason = null, int? storageOutputRetention = null, int? databaseCacheRetention = null, int? databaseRetention = null, Uri visualizationUri = null)
+ {
+ return new DataProductDataType(id, name, resourceType, systemData, provisioningState, state, stateReason, storageOutputRetention, databaseCacheRetention, databaseRetention, visualizationUri);
+ }
+
+ /// Initializes a new instance of AccountSasToken.
+ /// Field to specify storage account sas token.
+ /// is null.
+ /// A new instance for mocking.
+ public static AccountSasToken AccountSasToken(string storageAccountSasToken = null)
+ {
+ if (storageAccountSasToken == null)
+ {
+ throw new ArgumentNullException(nameof(storageAccountSasToken));
+ }
+
+ return new AccountSasToken(storageAccountSasToken);
+ }
+
+ /// Initializes a new instance of RoleAssignmentListResult.
+ /// Count of role assignments.
+ /// list of role assignments.
+ /// A new instance for mocking.
+ public static RoleAssignmentListResult RoleAssignmentListResult(int count = default, IEnumerable roleAssignmentResponse = null)
+ {
+ roleAssignmentResponse ??= new List();
+
+ return new RoleAssignmentListResult(count, roleAssignmentResponse?.ToList());
+ }
+ }
+}
diff --git a/sdk/networkanalytics/Azure.ResourceManager.NetworkAnalytics/src/Generated/DataProductCollection.cs b/sdk/networkanalytics/Azure.ResourceManager.NetworkAnalytics/src/Generated/DataProductCollection.cs
new file mode 100644
index 000000000000..45c605f8a34e
--- /dev/null
+++ b/sdk/networkanalytics/Azure.ResourceManager.NetworkAnalytics/src/Generated/DataProductCollection.cs
@@ -0,0 +1,416 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.Collections;
+using System.Collections.Generic;
+using System.Globalization;
+using System.Threading;
+using System.Threading.Tasks;
+using Autorest.CSharp.Core;
+using Azure;
+using Azure.Core;
+using Azure.Core.Pipeline;
+using Azure.ResourceManager;
+using Azure.ResourceManager.Resources;
+
+namespace Azure.ResourceManager.NetworkAnalytics
+{
+ ///
+ /// A class representing a collection of and their operations.
+ /// Each in the collection will belong to the same instance of .
+ /// To get a instance call the GetDataProducts method from an instance of .
+ ///
+ public partial class DataProductCollection : ArmCollection, IEnumerable, IAsyncEnumerable
+ {
+ private readonly ClientDiagnostics _dataProductClientDiagnostics;
+ private readonly DataProductsRestOperations _dataProductRestClient;
+
+ /// Initializes a new instance of the class for mocking.
+ protected DataProductCollection()
+ {
+ }
+
+ /// 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 DataProductCollection(ArmClient client, ResourceIdentifier id) : base(client, id)
+ {
+ _dataProductClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.NetworkAnalytics", DataProductResource.ResourceType.Namespace, Diagnostics);
+ TryGetApiVersion(DataProductResource.ResourceType, out string dataProductApiVersion);
+ _dataProductRestClient = new DataProductsRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, dataProductApiVersion);
+#if DEBUG
+ ValidateResourceId(Id);
+#endif
+ }
+
+ internal static void ValidateResourceId(ResourceIdentifier id)
+ {
+ if (id.ResourceType != ResourceGroupResource.ResourceType)
+ throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "Invalid resource type {0} expected {1}", id.ResourceType, ResourceGroupResource.ResourceType), nameof(id));
+ }
+
+ ///
+ /// Create data product resource.
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts/{dataProductName}
+ ///
+ /// -
+ /// Operation Id
+ /// DataProducts_Create
+ ///
+ ///
+ ///
+ /// 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 data product resource name.
+ /// Resource create parameters.
+ /// The cancellation token to use.
+ /// is an empty string, and was expected to be non-empty.
+ /// or is null.
+ public virtual async Task> CreateOrUpdateAsync(WaitUntil waitUntil, string dataProductName, DataProductData data, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNullOrEmpty(dataProductName, nameof(dataProductName));
+ Argument.AssertNotNull(data, nameof(data));
+
+ using var scope = _dataProductClientDiagnostics.CreateScope("DataProductCollection.CreateOrUpdate");
+ scope.Start();
+ try
+ {
+ var response = await _dataProductRestClient.CreateAsync(Id.SubscriptionId, Id.ResourceGroupName, dataProductName, data, cancellationToken).ConfigureAwait(false);
+ var operation = new NetworkAnalyticsArmOperation(new DataProductOperationSource(Client), _dataProductClientDiagnostics, Pipeline, _dataProductRestClient.CreateCreateRequest(Id.SubscriptionId, Id.ResourceGroupName, dataProductName, data).Request, response, OperationFinalStateVia.AzureAsyncOperation);
+ if (waitUntil == WaitUntil.Completed)
+ await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false);
+ return operation;
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+
+ ///
+ /// Create data product resource.
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts/{dataProductName}
+ ///
+ /// -
+ /// Operation Id
+ /// DataProducts_Create
+ ///
+ ///
+ ///
+ /// 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 data product resource name.
+ /// Resource create parameters.
+ /// The cancellation token to use.
+ /// is an empty string, and was expected to be non-empty.
+ /// or is null.
+ public virtual ArmOperation CreateOrUpdate(WaitUntil waitUntil, string dataProductName, DataProductData data, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNullOrEmpty(dataProductName, nameof(dataProductName));
+ Argument.AssertNotNull(data, nameof(data));
+
+ using var scope = _dataProductClientDiagnostics.CreateScope("DataProductCollection.CreateOrUpdate");
+ scope.Start();
+ try
+ {
+ var response = _dataProductRestClient.Create(Id.SubscriptionId, Id.ResourceGroupName, dataProductName, data, cancellationToken);
+ var operation = new NetworkAnalyticsArmOperation(new DataProductOperationSource(Client), _dataProductClientDiagnostics, Pipeline, _dataProductRestClient.CreateCreateRequest(Id.SubscriptionId, Id.ResourceGroupName, dataProductName, data).Request, response, OperationFinalStateVia.AzureAsyncOperation);
+ if (waitUntil == WaitUntil.Completed)
+ operation.WaitForCompletion(cancellationToken);
+ return operation;
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+
+ ///
+ /// Retrieve data product resource.
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts/{dataProductName}
+ ///
+ /// -
+ /// Operation Id
+ /// DataProducts_Get
+ ///
+ ///
+ ///
+ /// The data product resource name.
+ /// The cancellation token to use.
+ /// is an empty string, and was expected to be non-empty.
+ /// is null.
+ public virtual async Task> GetAsync(string dataProductName, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNullOrEmpty(dataProductName, nameof(dataProductName));
+
+ using var scope = _dataProductClientDiagnostics.CreateScope("DataProductCollection.Get");
+ scope.Start();
+ try
+ {
+ var response = await _dataProductRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, dataProductName, cancellationToken).ConfigureAwait(false);
+ if (response.Value == null)
+ throw new RequestFailedException(response.GetRawResponse());
+ return Response.FromValue(new DataProductResource(Client, response.Value), response.GetRawResponse());
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+
+ ///
+ /// Retrieve data product resource.
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts/{dataProductName}
+ ///
+ /// -
+ /// Operation Id
+ /// DataProducts_Get
+ ///
+ ///
+ ///
+ /// The data product resource name.
+ /// The cancellation token to use.
+ /// is an empty string, and was expected to be non-empty.
+ /// is null.
+ public virtual Response Get(string dataProductName, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNullOrEmpty(dataProductName, nameof(dataProductName));
+
+ using var scope = _dataProductClientDiagnostics.CreateScope("DataProductCollection.Get");
+ scope.Start();
+ try
+ {
+ var response = _dataProductRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, dataProductName, cancellationToken);
+ if (response.Value == null)
+ throw new RequestFailedException(response.GetRawResponse());
+ return Response.FromValue(new DataProductResource(Client, response.Value), response.GetRawResponse());
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+
+ ///
+ /// List data products by resource group.
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts
+ ///
+ /// -
+ /// Operation Id
+ /// DataProducts_ListByResourceGroup
+ ///
+ ///
+ ///
+ /// The cancellation token to use.
+ /// An async collection of that may take multiple service requests to iterate over.
+ public virtual AsyncPageable GetAllAsync(CancellationToken cancellationToken = default)
+ {
+ HttpMessage FirstPageRequest(int? pageSizeHint) => _dataProductRestClient.CreateListByResourceGroupRequest(Id.SubscriptionId, Id.ResourceGroupName);
+ HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _dataProductRestClient.CreateListByResourceGroupNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName);
+ return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => new DataProductResource(Client, DataProductData.DeserializeDataProductData(e)), _dataProductClientDiagnostics, Pipeline, "DataProductCollection.GetAll", "value", "nextLink", cancellationToken);
+ }
+
+ ///
+ /// List data products by resource group.
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts
+ ///
+ /// -
+ /// Operation Id
+ /// DataProducts_ListByResourceGroup
+ ///
+ ///
+ ///
+ /// The cancellation token to use.
+ /// A collection of that may take multiple service requests to iterate over.
+ public virtual Pageable GetAll(CancellationToken cancellationToken = default)
+ {
+ HttpMessage FirstPageRequest(int? pageSizeHint) => _dataProductRestClient.CreateListByResourceGroupRequest(Id.SubscriptionId, Id.ResourceGroupName);
+ HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _dataProductRestClient.CreateListByResourceGroupNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName);
+ return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new DataProductResource(Client, DataProductData.DeserializeDataProductData(e)), _dataProductClientDiagnostics, Pipeline, "DataProductCollection.GetAll", "value", "nextLink", cancellationToken);
+ }
+
+ ///
+ /// Checks to see if the resource exists in azure.
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts/{dataProductName}
+ ///
+ /// -
+ /// Operation Id
+ /// DataProducts_Get
+ ///
+ ///
+ ///
+ /// The data product resource name.
+ /// The cancellation token to use.
+ /// is an empty string, and was expected to be non-empty.
+ /// is null.
+ public virtual async Task> ExistsAsync(string dataProductName, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNullOrEmpty(dataProductName, nameof(dataProductName));
+
+ using var scope = _dataProductClientDiagnostics.CreateScope("DataProductCollection.Exists");
+ scope.Start();
+ try
+ {
+ var response = await _dataProductRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, dataProductName, 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.NetworkAnalytics/dataProducts/{dataProductName}
+ ///
+ /// -
+ /// Operation Id
+ /// DataProducts_Get
+ ///
+ ///
+ ///
+ /// The data product resource name.
+ /// The cancellation token to use.
+ /// is an empty string, and was expected to be non-empty.
+ /// is null.
+ public virtual Response Exists(string dataProductName, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNullOrEmpty(dataProductName, nameof(dataProductName));
+
+ using var scope = _dataProductClientDiagnostics.CreateScope("DataProductCollection.Exists");
+ scope.Start();
+ try
+ {
+ var response = _dataProductRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, dataProductName, 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.NetworkAnalytics/dataProducts/{dataProductName}
+ ///
+ /// -
+ /// Operation Id
+ /// DataProducts_Get
+ ///
+ ///
+ ///
+ /// The data product resource name.
+ /// The cancellation token to use.
+ /// is an empty string, and was expected to be non-empty.
+ /// is null.
+ public virtual async Task> GetIfExistsAsync(string dataProductName, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNullOrEmpty(dataProductName, nameof(dataProductName));
+
+ using var scope = _dataProductClientDiagnostics.CreateScope("DataProductCollection.GetIfExists");
+ scope.Start();
+ try
+ {
+ var response = await _dataProductRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, dataProductName, cancellationToken: cancellationToken).ConfigureAwait(false);
+ if (response.Value == null)
+ return new NoValueResponse(response.GetRawResponse());
+ return Response.FromValue(new DataProductResource(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.NetworkAnalytics/dataProducts/{dataProductName}
+ ///
+ /// -
+ /// Operation Id
+ /// DataProducts_Get
+ ///
+ ///
+ ///
+ /// The data product resource name.
+ /// The cancellation token to use.
+ /// is an empty string, and was expected to be non-empty.
+ /// is null.
+ public virtual NullableResponse GetIfExists(string dataProductName, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNullOrEmpty(dataProductName, nameof(dataProductName));
+
+ using var scope = _dataProductClientDiagnostics.CreateScope("DataProductCollection.GetIfExists");
+ scope.Start();
+ try
+ {
+ var response = _dataProductRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, dataProductName, cancellationToken: cancellationToken);
+ if (response.Value == null)
+ return new NoValueResponse(response.GetRawResponse());
+ return Response.FromValue(new DataProductResource(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/networkanalytics/Azure.ResourceManager.NetworkAnalytics/src/Generated/DataProductData.cs b/sdk/networkanalytics/Azure.ResourceManager.NetworkAnalytics/src/Generated/DataProductData.cs
new file mode 100644
index 000000000000..c0d4c9dce3f9
--- /dev/null
+++ b/sdk/networkanalytics/Azure.ResourceManager.NetworkAnalytics/src/Generated/DataProductData.cs
@@ -0,0 +1,126 @@
+// 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.Models;
+using Azure.ResourceManager.NetworkAnalytics.Models;
+
+namespace Azure.ResourceManager.NetworkAnalytics
+{
+ ///
+ /// A class representing the DataProduct data model.
+ /// The data product resource.
+ ///
+ public partial class DataProductData : TrackedResourceData
+ {
+ /// Initializes a new instance of DataProductData.
+ /// The location.
+ public DataProductData(AzureLocation location) : base(location)
+ {
+ Owners = new ChangeTrackingList();
+ AvailableMinorVersions = new ChangeTrackingList();
+ }
+
+ /// Initializes a new instance of DataProductData.
+ /// The id.
+ /// The name.
+ /// The resourceType.
+ /// The systemData.
+ /// The tags.
+ /// The location.
+ /// The managed service identities assigned to this resource.
+ /// The resource GUID property of the data product resource.
+ /// Latest provisioning state of data product.
+ /// Data product publisher name.
+ /// Product name of data product.
+ /// Major version of data product.
+ /// List of name or email associated with data product resource deployment.
+ /// Flag to enable or disable redundancy for data product.
+ /// Purview account url for data product to connect to.
+ /// Purview collection url for data product to connect to.
+ /// Flag to enable or disable private link for data product resource.
+ /// Flag to enable or disable public access of data product resource.
+ /// Flag to enable customer managed key encryption for data product.
+ /// Customer managed encryption key details for data product.
+ /// Network rule set for data product.
+ /// Managed resource group configuration.
+ /// List of available minor versions of the data product resource.
+ /// Current configured minor version of the data product resource.
+ /// Documentation link for the data product based on definition file.
+ /// Resource links which exposed to the customer to query the data.
+ /// Key vault url.
+ internal DataProductData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary tags, AzureLocation location, ManagedServiceIdentity identity, string resourceGuid, NetworkAnalyticsProvisioningState? provisioningState, string publisher, string product, string majorVersion, IList owners, DataProductControlState? redundancy, string purviewAccount, string purviewCollection, DataProductControlState? privateLinksEnabled, DataProductControlState? publicNetworkAccess, DataProductControlState? customerManagedKeyEncryptionEnabled, EncryptionKeyDetails customerEncryptionKey, DataProductNetworkAcls networkacls, NetworkAnalyticsManagedResourceGroupConfiguration managedResourceGroupConfiguration, IReadOnlyList availableMinorVersions, string currentMinorVersion, string documentation, ConsumptionEndpointsProperties consumptionEndpoints, Uri keyVaultUri) : base(id, name, resourceType, systemData, tags, location)
+ {
+ Identity = identity;
+ ResourceGuid = resourceGuid;
+ ProvisioningState = provisioningState;
+ Publisher = publisher;
+ Product = product;
+ MajorVersion = majorVersion;
+ Owners = owners;
+ Redundancy = redundancy;
+ PurviewAccount = purviewAccount;
+ PurviewCollection = purviewCollection;
+ PrivateLinksEnabled = privateLinksEnabled;
+ PublicNetworkAccess = publicNetworkAccess;
+ CustomerManagedKeyEncryptionEnabled = customerManagedKeyEncryptionEnabled;
+ CustomerEncryptionKey = customerEncryptionKey;
+ Networkacls = networkacls;
+ ManagedResourceGroupConfiguration = managedResourceGroupConfiguration;
+ AvailableMinorVersions = availableMinorVersions;
+ CurrentMinorVersion = currentMinorVersion;
+ Documentation = documentation;
+ ConsumptionEndpoints = consumptionEndpoints;
+ KeyVaultUri = keyVaultUri;
+ }
+
+ /// The managed service identities assigned to this resource.
+ public ManagedServiceIdentity Identity { get; set; }
+ /// The resource GUID property of the data product resource.
+ public string ResourceGuid { get; }
+ /// Latest provisioning state of data product.
+ public NetworkAnalyticsProvisioningState? ProvisioningState { get; }
+ /// Data product publisher name.
+ public string Publisher { get; set; }
+ /// Product name of data product.
+ public string Product { get; set; }
+ /// Major version of data product.
+ public string MajorVersion { get; set; }
+ /// List of name or email associated with data product resource deployment.
+ public IList Owners { get; }
+ /// Flag to enable or disable redundancy for data product.
+ public DataProductControlState? Redundancy { get; set; }
+ /// Purview account url for data product to connect to.
+ public string PurviewAccount { get; set; }
+ /// Purview collection url for data product to connect to.
+ public string PurviewCollection { get; set; }
+ /// Flag to enable or disable private link for data product resource.
+ public DataProductControlState? PrivateLinksEnabled { get; set; }
+ /// Flag to enable or disable public access of data product resource.
+ public DataProductControlState? PublicNetworkAccess { get; set; }
+ /// Flag to enable customer managed key encryption for data product.
+ public DataProductControlState? CustomerManagedKeyEncryptionEnabled { get; set; }
+ /// Customer managed encryption key details for data product.
+ public EncryptionKeyDetails CustomerEncryptionKey { get; set; }
+ /// Network rule set for data product.
+ public DataProductNetworkAcls Networkacls { get; set; }
+ /// Managed resource group configuration.
+ public NetworkAnalyticsManagedResourceGroupConfiguration ManagedResourceGroupConfiguration { get; set; }
+ /// List of available minor versions of the data product resource.
+ public IReadOnlyList AvailableMinorVersions { get; }
+ /// Current configured minor version of the data product resource.
+ public string CurrentMinorVersion { get; set; }
+ /// Documentation link for the data product based on definition file.
+ public string Documentation { get; }
+ /// Resource links which exposed to the customer to query the data.
+ public ConsumptionEndpointsProperties ConsumptionEndpoints { get; }
+ /// Key vault url.
+ public Uri KeyVaultUri { get; }
+ }
+}
diff --git a/sdk/networkanalytics/Azure.ResourceManager.NetworkAnalytics/src/Generated/DataProductResource.cs b/sdk/networkanalytics/Azure.ResourceManager.NetworkAnalytics/src/Generated/DataProductResource.cs
new file mode 100644
index 000000000000..63ffe604931e
--- /dev/null
+++ b/sdk/networkanalytics/Azure.ResourceManager.NetworkAnalytics/src/Generated/DataProductResource.cs
@@ -0,0 +1,999 @@
+// 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 Autorest.CSharp.Core;
+using Azure;
+using Azure.Core;
+using Azure.Core.Pipeline;
+using Azure.ResourceManager;
+using Azure.ResourceManager.NetworkAnalytics.Models;
+using Azure.ResourceManager.Resources;
+
+namespace Azure.ResourceManager.NetworkAnalytics
+{
+ ///
+ /// A Class representing a DataProduct along with the instance operations that can be performed on it.
+ /// If you have a you can construct a
+ /// from an instance of using the GetDataProductResource method.
+ /// Otherwise you can get one from its parent resource using the GetDataProduct method.
+ ///
+ public partial class DataProductResource : ArmResource
+ {
+ /// Generate the resource identifier of a instance.
+ public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string dataProductName)
+ {
+ var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts/{dataProductName}";
+ return new ResourceIdentifier(resourceId);
+ }
+
+ private readonly ClientDiagnostics _dataProductClientDiagnostics;
+ private readonly DataProductsRestOperations _dataProductRestClient;
+ private readonly ClientDiagnostics _dataTypesClientDiagnostics;
+ private readonly DataTypesRestOperations _dataTypesRestClient;
+ private readonly DataProductData _data;
+
+ /// Initializes a new instance of the class for mocking.
+ protected DataProductResource()
+ {
+ }
+
+ /// Initializes a new instance of the class.
+ /// The client parameters to use in these operations.
+ /// The resource that is the target of operations.
+ internal DataProductResource(ArmClient client, DataProductData 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 DataProductResource(ArmClient client, ResourceIdentifier id) : base(client, id)
+ {
+ _dataProductClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.NetworkAnalytics", ResourceType.Namespace, Diagnostics);
+ TryGetApiVersion(ResourceType, out string dataProductApiVersion);
+ _dataProductRestClient = new DataProductsRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, dataProductApiVersion);
+ _dataTypesClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.NetworkAnalytics", ProviderConstants.DefaultProviderNamespace, Diagnostics);
+ _dataTypesRestClient = new DataTypesRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint);
+#if DEBUG
+ ValidateResourceId(Id);
+#endif
+ }
+
+ /// Gets the resource type for the operations.
+ public static readonly ResourceType ResourceType = "Microsoft.NetworkAnalytics/dataProducts";
+
+ /// 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 DataProductData 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));
+ }
+
+ ///
+ /// Retrieve data product resource.
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts/{dataProductName}
+ ///
+ /// -
+ /// Operation Id
+ /// DataProducts_Get
+ ///
+ ///
+ ///
+ /// The cancellation token to use.
+ public virtual async Task> GetAsync(CancellationToken cancellationToken = default)
+ {
+ using var scope = _dataProductClientDiagnostics.CreateScope("DataProductResource.Get");
+ scope.Start();
+ try
+ {
+ var response = await _dataProductRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken).ConfigureAwait(false);
+ if (response.Value == null)
+ throw new RequestFailedException(response.GetRawResponse());
+ return Response.FromValue(new DataProductResource(Client, response.Value), response.GetRawResponse());
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+
+ ///
+ /// Retrieve data product resource.
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts/{dataProductName}
+ ///
+ /// -
+ /// Operation Id
+ /// DataProducts_Get
+ ///
+ ///
+ ///
+ /// The cancellation token to use.
+ public virtual Response Get(CancellationToken cancellationToken = default)
+ {
+ using var scope = _dataProductClientDiagnostics.CreateScope("DataProductResource.Get");
+ scope.Start();
+ try
+ {
+ var response = _dataProductRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken);
+ if (response.Value == null)
+ throw new RequestFailedException(response.GetRawResponse());
+ return Response.FromValue(new DataProductResource(Client, response.Value), response.GetRawResponse());
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+
+ ///
+ /// Delete data product resource.
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts/{dataProductName}
+ ///
+ /// -
+ /// Operation Id
+ /// DataProducts_Delete
+ ///
+ ///
+ ///
+ /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples.
+ /// The cancellation token to use.
+ public virtual async Task DeleteAsync(WaitUntil waitUntil, CancellationToken cancellationToken = default)
+ {
+ using var scope = _dataProductClientDiagnostics.CreateScope("DataProductResource.Delete");
+ scope.Start();
+ try
+ {
+ var response = await _dataProductRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken).ConfigureAwait(false);
+ var operation = new NetworkAnalyticsArmOperation(_dataProductClientDiagnostics, Pipeline, _dataProductRestClient.CreateDeleteRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name).Request, response, OperationFinalStateVia.Location);
+ if (waitUntil == WaitUntil.Completed)
+ await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false);
+ return operation;
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+
+ ///
+ /// Delete data product resource.
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts/{dataProductName}
+ ///
+ /// -
+ /// Operation Id
+ /// DataProducts_Delete
+ ///
+ ///
+ ///
+ /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples.
+ /// The cancellation token to use.
+ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancellationToken = default)
+ {
+ using var scope = _dataProductClientDiagnostics.CreateScope("DataProductResource.Delete");
+ scope.Start();
+ try
+ {
+ var response = _dataProductRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken);
+ var operation = new NetworkAnalyticsArmOperation(_dataProductClientDiagnostics, Pipeline, _dataProductRestClient.CreateDeleteRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name).Request, response, OperationFinalStateVia.Location);
+ if (waitUntil == WaitUntil.Completed)
+ operation.WaitForCompletionResponse(cancellationToken);
+ return operation;
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+
+ ///
+ /// Update data product resource.
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts/{dataProductName}
+ ///
+ /// -
+ /// Operation Id
+ /// DataProducts_Update
+ ///
+ ///
+ ///
+ /// 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 resource properties to be updated.
+ /// The cancellation token to use.
+ /// is null.
+ public virtual async Task> UpdateAsync(WaitUntil waitUntil, DataProductPatch patch, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNull(patch, nameof(patch));
+
+ using var scope = _dataProductClientDiagnostics.CreateScope("DataProductResource.Update");
+ scope.Start();
+ try
+ {
+ var response = await _dataProductRestClient.UpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, patch, cancellationToken).ConfigureAwait(false);
+ var operation = new NetworkAnalyticsArmOperation(new DataProductOperationSource(Client), _dataProductClientDiagnostics, Pipeline, _dataProductRestClient.CreateUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, patch).Request, response, OperationFinalStateVia.Location);
+ if (waitUntil == WaitUntil.Completed)
+ await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false);
+ return operation;
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+
+ ///
+ /// Update data product resource.
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts/{dataProductName}
+ ///
+ /// -
+ /// Operation Id
+ /// DataProducts_Update
+ ///
+ ///
+ ///
+ /// 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 resource properties to be updated.
+ /// The cancellation token to use.
+ /// is null.
+ public virtual ArmOperation Update(WaitUntil waitUntil, DataProductPatch patch, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNull(patch, nameof(patch));
+
+ using var scope = _dataProductClientDiagnostics.CreateScope("DataProductResource.Update");
+ scope.Start();
+ try
+ {
+ var response = _dataProductRestClient.Update(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, patch, cancellationToken);
+ var operation = new NetworkAnalyticsArmOperation(new DataProductOperationSource(Client), _dataProductClientDiagnostics, Pipeline, _dataProductRestClient.CreateUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, patch).Request, response, OperationFinalStateVia.Location);
+ if (waitUntil == WaitUntil.Completed)
+ operation.WaitForCompletion(cancellationToken);
+ return operation;
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+
+ ///
+ /// Assign role to the data product.
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts/{dataProductName}/addUserRole
+ ///
+ /// -
+ /// Operation Id
+ /// DataProducts_AddUserRole
+ ///
+ ///
+ ///
+ /// The content of the action request.
+ /// The cancellation token to use.
+ /// is null.
+ public virtual async Task> AddUserRoleAsync(RoleAssignmentCommonProperties body, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNull(body, nameof(body));
+
+ using var scope = _dataProductClientDiagnostics.CreateScope("DataProductResource.AddUserRole");
+ scope.Start();
+ try
+ {
+ var response = await _dataProductRestClient.AddUserRoleAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, body, cancellationToken).ConfigureAwait(false);
+ return response;
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+
+ ///
+ /// Assign role to the data product.
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts/{dataProductName}/addUserRole
+ ///
+ /// -
+ /// Operation Id
+ /// DataProducts_AddUserRole
+ ///
+ ///
+ ///
+ /// The content of the action request.
+ /// The cancellation token to use.
+ /// is null.
+ public virtual Response AddUserRole(RoleAssignmentCommonProperties body, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNull(body, nameof(body));
+
+ using var scope = _dataProductClientDiagnostics.CreateScope("DataProductResource.AddUserRole");
+ scope.Start();
+ try
+ {
+ var response = _dataProductRestClient.AddUserRole(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, body, cancellationToken);
+ return response;
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+
+ ///
+ /// Generate sas token for storage account.
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts/{dataProductName}/generateStorageAccountSasToken
+ ///
+ /// -
+ /// Operation Id
+ /// DataProducts_GenerateStorageAccountSasToken
+ ///
+ ///
+ ///
+ /// The content of the action request.
+ /// The cancellation token to use.
+ /// is null.
+ public virtual async Task> GenerateStorageAccountSasTokenAsync(AccountSasContent content, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNull(content, nameof(content));
+
+ using var scope = _dataProductClientDiagnostics.CreateScope("DataProductResource.GenerateStorageAccountSasToken");
+ scope.Start();
+ try
+ {
+ var response = await _dataProductRestClient.GenerateStorageAccountSasTokenAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, content, cancellationToken).ConfigureAwait(false);
+ return response;
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+
+ ///
+ /// Generate sas token for storage account.
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts/{dataProductName}/generateStorageAccountSasToken
+ ///
+ /// -
+ /// Operation Id
+ /// DataProducts_GenerateStorageAccountSasToken
+ ///
+ ///
+ ///
+ /// The content of the action request.
+ /// The cancellation token to use.
+ /// is null.
+ public virtual Response GenerateStorageAccountSasToken(AccountSasContent content, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNull(content, nameof(content));
+
+ using var scope = _dataProductClientDiagnostics.CreateScope("DataProductResource.GenerateStorageAccountSasToken");
+ scope.Start();
+ try
+ {
+ var response = _dataProductRestClient.GenerateStorageAccountSasToken(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, content, cancellationToken);
+ return response;
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+
+ ///
+ /// List user roles associated with the data product.
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts/{dataProductName}/listRolesAssignments
+ ///
+ /// -
+ /// Operation Id
+ /// DataProducts_ListRolesAssignments
+ ///
+ ///
+ ///
+ /// The content of the action request.
+ /// The cancellation token to use.
+ /// is null.
+ public virtual async Task> GetRolesAssignmentsAsync(BinaryData body, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNull(body, nameof(body));
+
+ using var scope = _dataProductClientDiagnostics.CreateScope("DataProductResource.GetRolesAssignments");
+ scope.Start();
+ try
+ {
+ var response = await _dataProductRestClient.ListRolesAssignmentsAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, body, cancellationToken).ConfigureAwait(false);
+ return response;
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+
+ ///
+ /// List user roles associated with the data product.
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts/{dataProductName}/listRolesAssignments
+ ///
+ /// -
+ /// Operation Id
+ /// DataProducts_ListRolesAssignments
+ ///
+ ///
+ ///
+ /// The content of the action request.
+ /// The cancellation token to use.
+ /// is null.
+ public virtual Response GetRolesAssignments(BinaryData body, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNull(body, nameof(body));
+
+ using var scope = _dataProductClientDiagnostics.CreateScope("DataProductResource.GetRolesAssignments");
+ scope.Start();
+ try
+ {
+ var response = _dataProductRestClient.ListRolesAssignments(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, body, cancellationToken);
+ return response;
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+
+ ///
+ /// Remove role from the data product.
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts/{dataProductName}/removeUserRole
+ ///
+ /// -
+ /// Operation Id
+ /// DataProducts_RemoveUserRole
+ ///
+ ///
+ ///
+ /// The content of the action request.
+ /// The cancellation token to use.
+ /// is null.
+ public virtual async Task RemoveUserRoleAsync(RoleAssignmentDetail body, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNull(body, nameof(body));
+
+ using var scope = _dataProductClientDiagnostics.CreateScope("DataProductResource.RemoveUserRole");
+ scope.Start();
+ try
+ {
+ var response = await _dataProductRestClient.RemoveUserRoleAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, body, cancellationToken).ConfigureAwait(false);
+ return response;
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+
+ ///
+ /// Remove role from the data product.
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts/{dataProductName}/removeUserRole
+ ///
+ /// -
+ /// Operation Id
+ /// DataProducts_RemoveUserRole
+ ///
+ ///
+ ///
+ /// The content of the action request.
+ /// The cancellation token to use.
+ /// is null.
+ public virtual Response RemoveUserRole(RoleAssignmentDetail body, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNull(body, nameof(body));
+
+ using var scope = _dataProductClientDiagnostics.CreateScope("DataProductResource.RemoveUserRole");
+ scope.Start();
+ try
+ {
+ var response = _dataProductRestClient.RemoveUserRole(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, body, cancellationToken);
+ return response;
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+
+ ///
+ /// Initiate key rotation on Data Product.
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts/{dataProductName}/rotateKey
+ ///
+ /// -
+ /// Operation Id
+ /// DataProducts_RotateKey
+ ///
+ ///
+ ///
+ /// The content of the action request.
+ /// The cancellation token to use.
+ /// is null.
+ public virtual async Task RotateKeyAsync(NetworkAnalyticsKeyVaultContent content, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNull(content, nameof(content));
+
+ using var scope = _dataProductClientDiagnostics.CreateScope("DataProductResource.RotateKey");
+ scope.Start();
+ try
+ {
+ var response = await _dataProductRestClient.RotateKeyAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, content, cancellationToken).ConfigureAwait(false);
+ return response;
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+
+ ///
+ /// Initiate key rotation on Data Product.
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts/{dataProductName}/rotateKey
+ ///
+ /// -
+ /// Operation Id
+ /// DataProducts_RotateKey
+ ///
+ ///
+ ///
+ /// The content of the action request.
+ /// The cancellation token to use.
+ /// is null.
+ public virtual Response RotateKey(NetworkAnalyticsKeyVaultContent content, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNull(content, nameof(content));
+
+ using var scope = _dataProductClientDiagnostics.CreateScope("DataProductResource.RotateKey");
+ scope.Start();
+ try
+ {
+ var response = _dataProductRestClient.RotateKey(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, content, cancellationToken);
+ return response;
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+
+ ///
+ /// List data type by parent resource.
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts/{dataProductName}/dataTypes
+ ///
+ /// -
+ /// Operation Id
+ /// DataTypes_ListByDataProduct
+ ///
+ ///
+ ///
+ /// The cancellation token to use.
+ /// An async collection of that may take multiple service requests to iterate over.
+ public virtual AsyncPageable GetDataTypesAsync(CancellationToken cancellationToken = default)
+ {
+ HttpMessage FirstPageRequest(int? pageSizeHint) => _dataTypesRestClient.CreateListByDataProductRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name);
+ HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _dataTypesRestClient.CreateListByDataProductNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name);
+ return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, DataProductDataType.DeserializeDataProductDataType, _dataTypesClientDiagnostics, Pipeline, "DataProductResource.GetDataTypes", "value", "nextLink", cancellationToken);
+ }
+
+ ///
+ /// List data type by parent resource.
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts/{dataProductName}/dataTypes
+ ///
+ /// -
+ /// Operation Id
+ /// DataTypes_ListByDataProduct
+ ///
+ ///
+ ///
+ /// The cancellation token to use.
+ /// A collection of that may take multiple service requests to iterate over.
+ public virtual Pageable GetDataTypes(CancellationToken cancellationToken = default)
+ {
+ HttpMessage FirstPageRequest(int? pageSizeHint) => _dataTypesRestClient.CreateListByDataProductRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name);
+ HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _dataTypesRestClient.CreateListByDataProductNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name);
+ return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, DataProductDataType.DeserializeDataProductDataType, _dataTypesClientDiagnostics, Pipeline, "DataProductResource.GetDataTypes", "value", "nextLink", cancellationToken);
+ }
+
+ ///
+ /// Add a tag to the current resource.
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts/{dataProductName}
+ ///
+ /// -
+ /// Operation Id
+ /// DataProducts_Get
+ ///
+ ///
+ ///
+ /// The key for the tag.
+ /// The value for the tag.
+ /// The cancellation token to use.
+ /// or is null.
+ public virtual async Task> AddTagAsync(string key, string value, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNull(key, nameof(key));
+ Argument.AssertNotNull(value, nameof(value));
+
+ using var scope = _dataProductClientDiagnostics.CreateScope("DataProductResource.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 _dataProductRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken).ConfigureAwait(false);
+ return Response.FromValue(new DataProductResource(Client, originalResponse.Value), originalResponse.GetRawResponse());
+ }
+ else
+ {
+ var current = (await GetAsync(cancellationToken: cancellationToken).ConfigureAwait(false)).Value.Data;
+ var patch = new DataProductPatch();
+ 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.NetworkAnalytics/dataProducts/{dataProductName}
+ ///
+ /// -
+ /// Operation Id
+ /// DataProducts_Get
+ ///
+ ///
+ ///
+ /// The key for the tag.
+ /// The value for the tag.
+ /// The cancellation token to use.
+ /// or is null.
+ public virtual Response AddTag(string key, string value, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNull(key, nameof(key));
+ Argument.AssertNotNull(value, nameof(value));
+
+ using var scope = _dataProductClientDiagnostics.CreateScope("DataProductResource.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 = _dataProductRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken);
+ return Response.FromValue(new DataProductResource(Client, originalResponse.Value), originalResponse.GetRawResponse());
+ }
+ else
+ {
+ var current = Get(cancellationToken: cancellationToken).Value.Data;
+ var patch = new DataProductPatch();
+ 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.NetworkAnalytics/dataProducts/{dataProductName}
+ ///
+ /// -
+ /// Operation Id
+ /// DataProducts_Get
+ ///
+ ///
+ ///
+ /// The set of tags to use as replacement.
+ /// The cancellation token to use.
+ /// is null.
+ public virtual async Task> SetTagsAsync(IDictionary tags, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNull(tags, nameof(tags));
+
+ using var scope = _dataProductClientDiagnostics.CreateScope("DataProductResource.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 _dataProductRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken).ConfigureAwait(false);
+ return Response.FromValue(new DataProductResource(Client, originalResponse.Value), originalResponse.GetRawResponse());
+ }
+ else
+ {
+ var current = (await GetAsync(cancellationToken: cancellationToken).ConfigureAwait(false)).Value.Data;
+ var patch = new DataProductPatch();
+ 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.NetworkAnalytics/dataProducts/{dataProductName}
+ ///
+ /// -
+ /// Operation Id
+ /// DataProducts_Get
+ ///
+ ///
+ ///
+ /// The set of tags to use as replacement.
+ /// The cancellation token to use.
+ /// is null.
+ public virtual Response SetTags(IDictionary tags, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNull(tags, nameof(tags));
+
+ using var scope = _dataProductClientDiagnostics.CreateScope("DataProductResource.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 = _dataProductRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken);
+ return Response.FromValue(new DataProductResource(Client, originalResponse.Value), originalResponse.GetRawResponse());
+ }
+ else
+ {
+ var current = Get(cancellationToken: cancellationToken).Value.Data;
+ var patch = new DataProductPatch();
+ 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.NetworkAnalytics/dataProducts/{dataProductName}
+ ///
+ /// -
+ /// Operation Id
+ /// DataProducts_Get
+ ///
+ ///
+ ///
+ /// The key for the tag.
+ /// The cancellation token to use.
+ /// is null.
+ public virtual async Task> RemoveTagAsync(string key, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNull(key, nameof(key));
+
+ using var scope = _dataProductClientDiagnostics.CreateScope("DataProductResource.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 _dataProductRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken).ConfigureAwait(false);
+ return Response.FromValue(new DataProductResource(Client, originalResponse.Value), originalResponse.GetRawResponse());
+ }
+ else
+ {
+ var current = (await GetAsync(cancellationToken: cancellationToken).ConfigureAwait(false)).Value.Data;
+ var patch = new DataProductPatch();
+ 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.NetworkAnalytics/dataProducts/{dataProductName}
+ ///
+ /// -
+ /// Operation Id
+ /// DataProducts_Get
+ ///
+ ///
+ ///
+ /// The key for the tag.
+ /// The cancellation token to use.
+ /// is null.
+ public virtual Response RemoveTag(string key, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNull(key, nameof(key));
+
+ using var scope = _dataProductClientDiagnostics.CreateScope("DataProductResource.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 = _dataProductRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken);
+ return Response.FromValue(new DataProductResource(Client, originalResponse.Value), originalResponse.GetRawResponse());
+ }
+ else
+ {
+ var current = Get(cancellationToken: cancellationToken).Value.Data;
+ var patch = new DataProductPatch();
+ 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/networkanalytics/Azure.ResourceManager.NetworkAnalytics/src/Generated/DataProductsCatalogData.cs b/sdk/networkanalytics/Azure.ResourceManager.NetworkAnalytics/src/Generated/DataProductsCatalogData.cs
new file mode 100644
index 000000000000..a3c21c24f24d
--- /dev/null
+++ b/sdk/networkanalytics/Azure.ResourceManager.NetworkAnalytics/src/Generated/DataProductsCatalogData.cs
@@ -0,0 +1,45 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System.Collections.Generic;
+using Azure.Core;
+using Azure.ResourceManager.Models;
+using Azure.ResourceManager.NetworkAnalytics.Models;
+
+namespace Azure.ResourceManager.NetworkAnalytics
+{
+ ///
+ /// A class representing the DataProductsCatalog data model.
+ /// The data catalog resource.
+ ///
+ public partial class DataProductsCatalogData : ResourceData
+ {
+ /// Initializes a new instance of DataProductsCatalogData.
+ public DataProductsCatalogData()
+ {
+ Publishers = new ChangeTrackingList();
+ }
+
+ /// Initializes a new instance of DataProductsCatalogData.
+ /// The id.
+ /// The name.
+ /// The resourceType.
+ /// The systemData.
+ /// The data catalog provisioning state.
+ /// The data product publisher information.
+ internal DataProductsCatalogData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, NetworkAnalyticsProvisioningState? provisioningState, IList publishers) : base(id, name, resourceType, systemData)
+ {
+ ProvisioningState = provisioningState;
+ Publishers = publishers;
+ }
+
+ /// The data catalog provisioning state.
+ public NetworkAnalyticsProvisioningState? ProvisioningState { get; }
+ /// The data product publisher information.
+ public IList Publishers { get; }
+ }
+}
diff --git a/sdk/networkanalytics/Azure.ResourceManager.NetworkAnalytics/src/Generated/DataProductsCatalogResource.cs b/sdk/networkanalytics/Azure.ResourceManager.NetworkAnalytics/src/Generated/DataProductsCatalogResource.cs
new file mode 100644
index 000000000000..42146255f495
--- /dev/null
+++ b/sdk/networkanalytics/Azure.ResourceManager.NetworkAnalytics/src/Generated/DataProductsCatalogResource.cs
@@ -0,0 +1,154 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.Globalization;
+using System.Threading;
+using System.Threading.Tasks;
+using Azure;
+using Azure.Core;
+using Azure.Core.Pipeline;
+using Azure.ResourceManager;
+using Azure.ResourceManager.Resources;
+
+namespace Azure.ResourceManager.NetworkAnalytics
+{
+ ///
+ /// A Class representing a DataProductsCatalog along with the instance operations that can be performed on it.
+ /// If you have a you can construct a
+ /// from an instance of using the GetDataProductsCatalogResource method.
+ /// Otherwise you can get one from its parent resource using the GetDataProductsCatalog method.
+ ///
+ public partial class DataProductsCatalogResource : ArmResource
+ {
+ /// Generate the resource identifier of a instance.
+ public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName)
+ {
+ var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProductsCatalogs/default";
+ return new ResourceIdentifier(resourceId);
+ }
+
+ private readonly ClientDiagnostics _dataProductsCatalogClientDiagnostics;
+ private readonly DataProductsCatalogsRestOperations _dataProductsCatalogRestClient;
+ private readonly DataProductsCatalogData _data;
+
+ /// Initializes a new instance of the class for mocking.
+ protected DataProductsCatalogResource()
+ {
+ }
+
+ /// Initializes a new instance of the class.
+ /// The client parameters to use in these operations.
+ /// The resource that is the target of operations.
+ internal DataProductsCatalogResource(ArmClient client, DataProductsCatalogData 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 DataProductsCatalogResource(ArmClient client, ResourceIdentifier id) : base(client, id)
+ {
+ _dataProductsCatalogClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.NetworkAnalytics", ResourceType.Namespace, Diagnostics);
+ TryGetApiVersion(ResourceType, out string dataProductsCatalogApiVersion);
+ _dataProductsCatalogRestClient = new DataProductsCatalogsRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, dataProductsCatalogApiVersion);
+#if DEBUG
+ ValidateResourceId(Id);
+#endif
+ }
+
+ /// Gets the resource type for the operations.
+ public static readonly ResourceType ResourceType = "Microsoft.NetworkAnalytics/dataProductsCatalogs";
+
+ /// 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 DataProductsCatalogData 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));
+ }
+
+ ///
+ /// Retrieve data type resource.
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProductsCatalogs/default
+ ///
+ /// -
+ /// Operation Id
+ /// DataProductsCatalogs_Get
+ ///
+ ///
+ ///
+ /// The cancellation token to use.
+ public virtual async Task> GetAsync(CancellationToken cancellationToken = default)
+ {
+ using var scope = _dataProductsCatalogClientDiagnostics.CreateScope("DataProductsCatalogResource.Get");
+ scope.Start();
+ try
+ {
+ var response = await _dataProductsCatalogRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, cancellationToken).ConfigureAwait(false);
+ if (response.Value == null)
+ throw new RequestFailedException(response.GetRawResponse());
+ return Response.FromValue(new DataProductsCatalogResource(Client, response.Value), response.GetRawResponse());
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+
+ ///
+ /// Retrieve data type resource.
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProductsCatalogs/default
+ ///
+ /// -
+ /// Operation Id
+ /// DataProductsCatalogs_Get
+ ///
+ ///
+ ///
+ /// The cancellation token to use.
+ public virtual Response Get(CancellationToken cancellationToken = default)
+ {
+ using var scope = _dataProductsCatalogClientDiagnostics.CreateScope("DataProductsCatalogResource.Get");
+ scope.Start();
+ try
+ {
+ var response = _dataProductsCatalogRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, cancellationToken);
+ if (response.Value == null)
+ throw new RequestFailedException(response.GetRawResponse());
+ return Response.FromValue(new DataProductsCatalogResource(Client, response.Value), response.GetRawResponse());
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+ }
+}
diff --git a/sdk/networkanalytics/Azure.ResourceManager.NetworkAnalytics/src/Generated/Extensions/NetworkAnalyticsExtensions.cs b/sdk/networkanalytics/Azure.ResourceManager.NetworkAnalytics/src/Generated/Extensions/NetworkAnalyticsExtensions.cs
new file mode 100644
index 000000000000..906ed4ce0f61
--- /dev/null
+++ b/sdk/networkanalytics/Azure.ResourceManager.NetworkAnalytics/src/Generated/Extensions/NetworkAnalyticsExtensions.cs
@@ -0,0 +1,238 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.Threading;
+using System.Threading.Tasks;
+using Azure;
+using Azure.Core;
+using Azure.ResourceManager;
+using Azure.ResourceManager.Resources;
+
+namespace Azure.ResourceManager.NetworkAnalytics
+{
+ /// A class to add extension methods to Azure.ResourceManager.NetworkAnalytics.
+ public static partial class NetworkAnalyticsExtensions
+ {
+ private static ResourceGroupResourceExtensionClient GetResourceGroupResourceExtensionClient(ArmResource resource)
+ {
+ return resource.GetCachedClient(client =>
+ {
+ return new ResourceGroupResourceExtensionClient(client, resource.Id);
+ });
+ }
+
+ private static ResourceGroupResourceExtensionClient GetResourceGroupResourceExtensionClient(ArmClient client, ResourceIdentifier scope)
+ {
+ return client.GetResourceClient(() =>
+ {
+ return new ResourceGroupResourceExtensionClient(client, scope);
+ });
+ }
+
+ private static SubscriptionResourceExtensionClient GetSubscriptionResourceExtensionClient(ArmResource resource)
+ {
+ return resource.GetCachedClient(client =>
+ {
+ return new SubscriptionResourceExtensionClient(client, resource.Id);
+ });
+ }
+
+ private static SubscriptionResourceExtensionClient GetSubscriptionResourceExtensionClient(ArmClient client, ResourceIdentifier scope)
+ {
+ return client.GetResourceClient(() =>
+ {
+ return new SubscriptionResourceExtensionClient(client, scope);
+ });
+ }
+ #region DataProductResource
+ ///
+ /// Gets an object representing a along with the instance operations that can be performed on it but with no data.
+ /// You can use to create a from its components.
+ ///
+ /// The instance the method will execute against.
+ /// The resource ID of the resource to get.
+ /// Returns a object.
+ public static DataProductResource GetDataProductResource(this ArmClient client, ResourceIdentifier id)
+ {
+ return client.GetResourceClient(() =>
+ {
+ DataProductResource.ValidateResourceId(id);
+ return new DataProductResource(client, id);
+ }
+ );
+ }
+ #endregion
+
+ #region DataProductsCatalogResource
+ ///
+ /// Gets an object representing a along with the instance operations that can be performed on it but with no data.
+ /// You can use to create a from its components.
+ ///
+ /// The instance the method will execute against.
+ /// The resource ID of the resource to get.
+ /// Returns a object.
+ public static DataProductsCatalogResource GetDataProductsCatalogResource(this ArmClient client, ResourceIdentifier id)
+ {
+ return client.GetResourceClient(() =>
+ {
+ DataProductsCatalogResource.ValidateResourceId(id);
+ return new DataProductsCatalogResource(client, id);
+ }
+ );
+ }
+ #endregion
+
+ /// Gets a collection of DataProductResources in the ResourceGroupResource.
+ /// The instance the method will execute against.
+ /// An object representing collection of DataProductResources and their operations over a DataProductResource.
+ public static DataProductCollection GetDataProducts(this ResourceGroupResource resourceGroupResource)
+ {
+ return GetResourceGroupResourceExtensionClient(resourceGroupResource).GetDataProducts();
+ }
+
+ ///
+ /// Retrieve data product resource.
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts/{dataProductName}
+ ///
+ /// -
+ /// Operation Id
+ /// DataProducts_Get
+ ///
+ ///
+ ///
+ /// The instance the method will execute against.
+ /// The data product resource name.
+ /// The cancellation token to use.
+ /// is an empty string, and was expected to be non-empty.
+ /// is null.
+ [ForwardsClientCalls]
+ public static async Task> GetDataProductAsync(this ResourceGroupResource resourceGroupResource, string dataProductName, CancellationToken cancellationToken = default)
+ {
+ return await resourceGroupResource.GetDataProducts().GetAsync(dataProductName, cancellationToken).ConfigureAwait(false);
+ }
+
+ ///
+ /// Retrieve data product resource.
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts/{dataProductName}
+ ///
+ /// -
+ /// Operation Id
+ /// DataProducts_Get
+ ///
+ ///
+ ///
+ /// The instance the method will execute against.
+ /// The data product resource name.
+ /// The cancellation token to use.
+ /// is an empty string, and was expected to be non-empty.
+ /// is null.
+ [ForwardsClientCalls]
+ public static Response GetDataProduct(this ResourceGroupResource resourceGroupResource, string dataProductName, CancellationToken cancellationToken = default)
+ {
+ return resourceGroupResource.GetDataProducts().Get(dataProductName, cancellationToken);
+ }
+
+ /// Gets an object representing a DataProductsCatalogResource along with the instance operations that can be performed on it in the ResourceGroupResource.
+ /// The instance the method will execute against.
+ /// Returns a object.
+ public static DataProductsCatalogResource GetDataProductsCatalog(this ResourceGroupResource resourceGroupResource)
+ {
+ return GetResourceGroupResourceExtensionClient(resourceGroupResource).GetDataProductsCatalog();
+ }
+
+ ///
+ /// List data products by subscription.
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/providers/Microsoft.NetworkAnalytics/dataProducts
+ ///
+ /// -
+ /// Operation Id
+ /// DataProducts_ListBySubscription
+ ///
+ ///
+ ///
+ /// The instance the method will execute against.
+ /// The cancellation token to use.
+ /// An async collection of that may take multiple service requests to iterate over.
+ public static AsyncPageable GetDataProductsAsync(this SubscriptionResource subscriptionResource, CancellationToken cancellationToken = default)
+ {
+ return GetSubscriptionResourceExtensionClient(subscriptionResource).GetDataProductsAsync(cancellationToken);
+ }
+
+ ///
+ /// List data products by subscription.
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/providers/Microsoft.NetworkAnalytics/dataProducts
+ ///
+ /// -
+ /// Operation Id
+ /// DataProducts_ListBySubscription
+ ///
+ ///
+ ///
+ /// The instance the method will execute against.
+ /// The cancellation token to use.
+ /// A collection of that may take multiple service requests to iterate over.
+ public static Pageable GetDataProducts(this SubscriptionResource subscriptionResource, CancellationToken cancellationToken = default)
+ {
+ return GetSubscriptionResourceExtensionClient(subscriptionResource).GetDataProducts(cancellationToken);
+ }
+
+ ///
+ /// List data catalog by subscription.
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/providers/Microsoft.NetworkAnalytics/dataProductsCatalogs
+ ///
+ /// -
+ /// Operation Id
+ /// DataProductsCatalogs_ListBySubscription
+ ///
+ ///
+ ///
+ /// The instance the method will execute against.
+ /// The cancellation token to use.
+ /// An async collection of that may take multiple service requests to iterate over.
+ public static AsyncPageable GetDataProductsCatalogsAsync(this SubscriptionResource subscriptionResource, CancellationToken cancellationToken = default)
+ {
+ return GetSubscriptionResourceExtensionClient(subscriptionResource).GetDataProductsCatalogsAsync(cancellationToken);
+ }
+
+ ///
+ /// List data catalog by subscription.
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/providers/Microsoft.NetworkAnalytics/dataProductsCatalogs
+ ///
+ /// -
+ /// Operation Id
+ /// DataProductsCatalogs_ListBySubscription
+ ///
+ ///
+ ///
+ /// The instance the method will execute against.
+ /// The cancellation token to use.
+ /// A collection of that may take multiple service requests to iterate over.
+ public static Pageable GetDataProductsCatalogs(this SubscriptionResource subscriptionResource, CancellationToken cancellationToken = default)
+ {
+ return GetSubscriptionResourceExtensionClient(subscriptionResource).GetDataProductsCatalogs(cancellationToken);
+ }
+ }
+}
diff --git a/sdk/networkanalytics/Azure.ResourceManager.NetworkAnalytics/src/Generated/Extensions/ResourceGroupResourceExtensionClient.cs b/sdk/networkanalytics/Azure.ResourceManager.NetworkAnalytics/src/Generated/Extensions/ResourceGroupResourceExtensionClient.cs
new file mode 100644
index 000000000000..0d7ab7ef8bce
--- /dev/null
+++ b/sdk/networkanalytics/Azure.ResourceManager.NetworkAnalytics/src/Generated/Extensions/ResourceGroupResourceExtensionClient.cs
@@ -0,0 +1,48 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using Azure.Core;
+using Azure.ResourceManager;
+
+namespace Azure.ResourceManager.NetworkAnalytics
+{
+ /// A class to add extension methods to ResourceGroupResource.
+ internal partial class ResourceGroupResourceExtensionClient : ArmResource
+ {
+ /// Initializes a new instance of the class for mocking.
+ protected ResourceGroupResourceExtensionClient()
+ {
+ }
+
+ /// Initializes a new instance of the class.
+ /// The client parameters to use in these operations.
+ /// The identifier of the resource that is the target of operations.
+ internal ResourceGroupResourceExtensionClient(ArmClient client, ResourceIdentifier id) : base(client, id)
+ {
+ }
+
+ private string GetApiVersionOrNull(ResourceType resourceType)
+ {
+ TryGetApiVersion(resourceType, out string apiVersion);
+ return apiVersion;
+ }
+
+ /// Gets a collection of DataProductResources in the ResourceGroupResource.
+ /// An object representing collection of DataProductResources and their operations over a DataProductResource.
+ public virtual DataProductCollection GetDataProducts()
+ {
+ return GetCachedClient(Client => new DataProductCollection(Client, Id));
+ }
+
+ /// Gets an object representing a DataProductsCatalogResource along with the instance operations that can be performed on it in the ResourceGroupResource.
+ /// Returns a object.
+ public virtual DataProductsCatalogResource GetDataProductsCatalog()
+ {
+ return new DataProductsCatalogResource(Client, Id.AppendProviderResource("Microsoft.NetworkAnalytics", "dataProductsCatalogs", "default"));
+ }
+ }
+}
diff --git a/sdk/networkanalytics/Azure.ResourceManager.NetworkAnalytics/src/Generated/Extensions/SubscriptionResourceExtensionClient.cs b/sdk/networkanalytics/Azure.ResourceManager.NetworkAnalytics/src/Generated/Extensions/SubscriptionResourceExtensionClient.cs
new file mode 100644
index 000000000000..1a6aeb1dc118
--- /dev/null
+++ b/sdk/networkanalytics/Azure.ResourceManager.NetworkAnalytics/src/Generated/Extensions/SubscriptionResourceExtensionClient.cs
@@ -0,0 +1,136 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System.Threading;
+using Autorest.CSharp.Core;
+using Azure;
+using Azure.Core;
+using Azure.Core.Pipeline;
+using Azure.ResourceManager;
+
+namespace Azure.ResourceManager.NetworkAnalytics
+{
+ /// A class to add extension methods to SubscriptionResource.
+ internal partial class SubscriptionResourceExtensionClient : ArmResource
+ {
+ private ClientDiagnostics _dataProductClientDiagnostics;
+ private DataProductsRestOperations _dataProductRestClient;
+ private ClientDiagnostics _dataProductsCatalogClientDiagnostics;
+ private DataProductsCatalogsRestOperations _dataProductsCatalogRestClient;
+
+ /// Initializes a new instance of the class for mocking.
+ protected SubscriptionResourceExtensionClient()
+ {
+ }
+
+ /// Initializes a new instance of the class.
+ /// The client parameters to use in these operations.
+ /// The identifier of the resource that is the target of operations.
+ internal SubscriptionResourceExtensionClient(ArmClient client, ResourceIdentifier id) : base(client, id)
+ {
+ }
+
+ private ClientDiagnostics DataProductClientDiagnostics => _dataProductClientDiagnostics ??= new ClientDiagnostics("Azure.ResourceManager.NetworkAnalytics", DataProductResource.ResourceType.Namespace, Diagnostics);
+ private DataProductsRestOperations DataProductRestClient => _dataProductRestClient ??= new DataProductsRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, GetApiVersionOrNull(DataProductResource.ResourceType));
+ private ClientDiagnostics DataProductsCatalogClientDiagnostics => _dataProductsCatalogClientDiagnostics ??= new ClientDiagnostics("Azure.ResourceManager.NetworkAnalytics", DataProductsCatalogResource.ResourceType.Namespace, Diagnostics);
+ private DataProductsCatalogsRestOperations DataProductsCatalogRestClient => _dataProductsCatalogRestClient ??= new DataProductsCatalogsRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, GetApiVersionOrNull(DataProductsCatalogResource.ResourceType));
+
+ private string GetApiVersionOrNull(ResourceType resourceType)
+ {
+ TryGetApiVersion(resourceType, out string apiVersion);
+ return apiVersion;
+ }
+
+ ///
+ /// List data products by subscription.
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/providers/Microsoft.NetworkAnalytics/dataProducts
+ ///
+ /// -
+ /// Operation Id
+ /// DataProducts_ListBySubscription
+ ///
+ ///
+ ///
+ /// The cancellation token to use.
+ /// An async collection of that may take multiple service requests to iterate over.
+ public virtual AsyncPageable GetDataProductsAsync(CancellationToken cancellationToken = default)
+ {
+ HttpMessage FirstPageRequest(int? pageSizeHint) => DataProductRestClient.CreateListBySubscriptionRequest(Id.SubscriptionId);
+ HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => DataProductRestClient.CreateListBySubscriptionNextPageRequest(nextLink, Id.SubscriptionId);
+ return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => new DataProductResource(Client, DataProductData.DeserializeDataProductData(e)), DataProductClientDiagnostics, Pipeline, "SubscriptionResourceExtensionClient.GetDataProducts", "value", "nextLink", cancellationToken);
+ }
+
+ ///
+ /// List data products by subscription.
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/providers/Microsoft.NetworkAnalytics/dataProducts
+ ///
+ /// -
+ /// Operation Id
+ /// DataProducts_ListBySubscription
+ ///
+ ///
+ ///
+ /// The cancellation token to use.
+ /// A collection of that may take multiple service requests to iterate over.
+ public virtual Pageable GetDataProducts(CancellationToken cancellationToken = default)
+ {
+ HttpMessage FirstPageRequest(int? pageSizeHint) => DataProductRestClient.CreateListBySubscriptionRequest(Id.SubscriptionId);
+ HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => DataProductRestClient.CreateListBySubscriptionNextPageRequest(nextLink, Id.SubscriptionId);
+ return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new DataProductResource(Client, DataProductData.DeserializeDataProductData(e)), DataProductClientDiagnostics, Pipeline, "SubscriptionResourceExtensionClient.GetDataProducts", "value", "nextLink", cancellationToken);
+ }
+
+ ///
+ /// List data catalog by subscription.
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/providers/Microsoft.NetworkAnalytics/dataProductsCatalogs
+ ///
+ /// -
+ /// Operation Id
+ /// DataProductsCatalogs_ListBySubscription
+ ///
+ ///
+ ///
+ /// The cancellation token to use.
+ /// An async collection of that may take multiple service requests to iterate over.
+ public virtual AsyncPageable GetDataProductsCatalogsAsync(CancellationToken cancellationToken = default)
+ {
+ HttpMessage FirstPageRequest(int? pageSizeHint) => DataProductsCatalogRestClient.CreateListBySubscriptionRequest(Id.SubscriptionId);
+ HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => DataProductsCatalogRestClient.CreateListBySubscriptionNextPageRequest(nextLink, Id.SubscriptionId);
+ return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => new DataProductsCatalogResource(Client, DataProductsCatalogData.DeserializeDataProductsCatalogData(e)), DataProductsCatalogClientDiagnostics, Pipeline, "SubscriptionResourceExtensionClient.GetDataProductsCatalogs", "value", "nextLink", cancellationToken);
+ }
+
+ ///
+ /// List data catalog by subscription.
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/providers/Microsoft.NetworkAnalytics/dataProductsCatalogs
+ ///
+ /// -
+ /// Operation Id
+ /// DataProductsCatalogs_ListBySubscription
+ ///
+ ///
+ ///
+ /// The cancellation token to use.
+ /// A collection of that may take multiple service requests to iterate over.
+ public virtual Pageable GetDataProductsCatalogs(CancellationToken cancellationToken = default)
+ {
+ HttpMessage FirstPageRequest(int? pageSizeHint) => DataProductsCatalogRestClient.CreateListBySubscriptionRequest(Id.SubscriptionId);
+ HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => DataProductsCatalogRestClient.CreateListBySubscriptionNextPageRequest(nextLink, Id.SubscriptionId);
+ return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new DataProductsCatalogResource(Client, DataProductsCatalogData.DeserializeDataProductsCatalogData(e)), DataProductsCatalogClientDiagnostics, Pipeline, "SubscriptionResourceExtensionClient.GetDataProductsCatalogs", "value", "nextLink", cancellationToken);
+ }
+ }
+}
diff --git a/sdk/networkanalytics/Azure.ResourceManager.NetworkAnalytics/src/Generated/LongRunningOperation/DataProductOperationSource.cs b/sdk/networkanalytics/Azure.ResourceManager.NetworkAnalytics/src/Generated/LongRunningOperation/DataProductOperationSource.cs
new file mode 100644
index 000000000000..b0d935ab9c83
--- /dev/null
+++ b/sdk/networkanalytics/Azure.ResourceManager.NetworkAnalytics/src/Generated/LongRunningOperation/DataProductOperationSource.cs
@@ -0,0 +1,40 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System.Text.Json;
+using System.Threading;
+using System.Threading.Tasks;
+using Azure;
+using Azure.Core;
+using Azure.ResourceManager;
+
+namespace Azure.ResourceManager.NetworkAnalytics
+{
+ internal class DataProductOperationSource : IOperationSource
+ {
+ private readonly ArmClient _client;
+
+ internal DataProductOperationSource(ArmClient client)
+ {
+ _client = client;
+ }
+
+ DataProductResource IOperationSource.CreateResult(Response response, CancellationToken cancellationToken)
+ {
+ using var document = JsonDocument.Parse(response.ContentStream);
+ var data = DataProductData.DeserializeDataProductData(document.RootElement);
+ return new DataProductResource(_client, data);
+ }
+
+ async ValueTask IOperationSource.CreateResultAsync(Response response, CancellationToken cancellationToken)
+ {
+ using var document = await JsonDocument.ParseAsync(response.ContentStream, default, cancellationToken).ConfigureAwait(false);
+ var data = DataProductData.DeserializeDataProductData(document.RootElement);
+ return new DataProductResource(_client, data);
+ }
+ }
+}
diff --git a/sdk/networkanalytics/Azure.ResourceManager.NetworkAnalytics/src/Generated/LongRunningOperation/NetworkAnalyticsArmOperation.cs b/sdk/networkanalytics/Azure.ResourceManager.NetworkAnalytics/src/Generated/LongRunningOperation/NetworkAnalyticsArmOperation.cs
new file mode 100644
index 000000000000..f41fd3951ae6
--- /dev/null
+++ b/sdk/networkanalytics/Azure.ResourceManager.NetworkAnalytics/src/Generated/LongRunningOperation/NetworkAnalyticsArmOperation.cs
@@ -0,0 +1,70 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.Threading;
+using System.Threading.Tasks;
+using Azure;
+using Azure.Core;
+using Azure.Core.Pipeline;
+using Azure.ResourceManager;
+
+namespace Azure.ResourceManager.NetworkAnalytics
+{
+#pragma warning disable SA1649 // File name should match first type name
+ internal class NetworkAnalyticsArmOperation : ArmOperation
+#pragma warning restore SA1649 // File name should match first type name
+ {
+ private readonly OperationInternal _operation;
+
+ /// Initializes a new instance of NetworkAnalyticsArmOperation for mocking.
+ protected NetworkAnalyticsArmOperation()
+ {
+ }
+
+ internal NetworkAnalyticsArmOperation(Response response)
+ {
+ _operation = OperationInternal.Succeeded(response);
+ }
+
+ internal NetworkAnalyticsArmOperation(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null)
+ {
+ var nextLinkOperation = NextLinkOperationImplementation.Create(pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue);
+ _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "NetworkAnalyticsArmOperation", fallbackStrategy: new SequentialDelayStrategy());
+ }
+
+ ///
+#pragma warning disable CA1822
+ [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
+ public override string Id => throw new NotImplementedException();
+#pragma warning restore CA1822
+
+ ///
+ public override bool HasCompleted => _operation.HasCompleted;
+
+ ///
+ public override Response GetRawResponse() => _operation.RawResponse;
+
+ ///
+ public override Response UpdateStatus(CancellationToken cancellationToken = default) => _operation.UpdateStatus(cancellationToken);
+
+ ///
+ public override ValueTask UpdateStatusAsync(CancellationToken cancellationToken = default) => _operation.UpdateStatusAsync(cancellationToken);
+
+ ///
+ public override Response WaitForCompletionResponse(CancellationToken cancellationToken = default) => _operation.WaitForCompletionResponse(cancellationToken);
+
+ ///
+ public override Response WaitForCompletionResponse(TimeSpan pollingInterval, CancellationToken cancellationToken = default) => _operation.WaitForCompletionResponse(pollingInterval, cancellationToken);
+
+ ///
+ public override ValueTask WaitForCompletionResponseAsync(CancellationToken cancellationToken = default) => _operation.WaitForCompletionResponseAsync(cancellationToken);
+
+ ///
+ public override ValueTask WaitForCompletionResponseAsync(TimeSpan pollingInterval, CancellationToken cancellationToken = default) => _operation.WaitForCompletionResponseAsync(pollingInterval, cancellationToken);
+ }
+}
diff --git a/sdk/networkanalytics/Azure.ResourceManager.NetworkAnalytics/src/Generated/LongRunningOperation/NetworkAnalyticsArmOperationOfT.cs b/sdk/networkanalytics/Azure.ResourceManager.NetworkAnalytics/src/Generated/LongRunningOperation/NetworkAnalyticsArmOperationOfT.cs
new file mode 100644
index 000000000000..38b9ee8cb11b
--- /dev/null
+++ b/sdk/networkanalytics/Azure.ResourceManager.NetworkAnalytics/src/Generated/LongRunningOperation/NetworkAnalyticsArmOperationOfT.cs
@@ -0,0 +1,76 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.Threading;
+using System.Threading.Tasks;
+using Azure;
+using Azure.Core;
+using Azure.Core.Pipeline;
+using Azure.ResourceManager;
+
+namespace Azure.ResourceManager.NetworkAnalytics
+{
+#pragma warning disable SA1649 // File name should match first type name
+ internal class NetworkAnalyticsArmOperation : ArmOperation
+#pragma warning restore SA1649 // File name should match first type name
+ {
+ private readonly OperationInternal _operation;
+
+ /// Initializes a new instance of NetworkAnalyticsArmOperation for mocking.
+ protected NetworkAnalyticsArmOperation()
+ {
+ }
+
+ internal NetworkAnalyticsArmOperation(Response response)
+ {
+ _operation = OperationInternal.Succeeded(response.GetRawResponse(), response.Value);
+ }
+
+ internal NetworkAnalyticsArmOperation(IOperationSource source, ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response, OperationFinalStateVia finalStateVia, bool skipApiVersionOverride = false, string apiVersionOverrideValue = null)
+ {
+ var nextLinkOperation = NextLinkOperationImplementation.Create(source, pipeline, request.Method, request.Uri.ToUri(), response, finalStateVia, skipApiVersionOverride, apiVersionOverrideValue);
+ _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "NetworkAnalyticsArmOperation", fallbackStrategy: new SequentialDelayStrategy());
+ }
+
+ ///
+#pragma warning disable CA1822
+ [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
+ public override string Id => throw new NotImplementedException();
+#pragma warning restore CA1822
+
+ ///
+ public override T Value => _operation.Value;
+
+ ///
+ public override bool HasValue => _operation.HasValue;
+
+ ///
+ public override bool HasCompleted => _operation.HasCompleted;
+
+ ///
+ public override Response GetRawResponse() => _operation.RawResponse;
+
+ ///
+ public override Response UpdateStatus(CancellationToken cancellationToken = default) => _operation.UpdateStatus(cancellationToken);
+
+ ///
+ public override ValueTask UpdateStatusAsync(CancellationToken cancellationToken = default) => _operation.UpdateStatusAsync(cancellationToken);
+
+ ///
+ public override Response WaitForCompletion(CancellationToken cancellationToken = default) => _operation.WaitForCompletion(cancellationToken);
+
+ ///
+ public override Response WaitForCompletion(TimeSpan pollingInterval, CancellationToken cancellationToken = default) => _operation.WaitForCompletion(pollingInterval, cancellationToken);
+
+ ///
+ public override ValueTask> WaitForCompletionAsync(CancellationToken cancellationToken = default) => _operation.WaitForCompletionAsync(cancellationToken);
+
+ ///
+ public override ValueTask> WaitForCompletionAsync(TimeSpan pollingInterval, CancellationToken cancellationToken = default) => _operation.WaitForCompletionAsync(pollingInterval, cancellationToken);
+ }
+}
diff --git a/sdk/networkanalytics/Azure.ResourceManager.NetworkAnalytics/src/Generated/Models/AccountSasContent.Serialization.cs b/sdk/networkanalytics/Azure.ResourceManager.NetworkAnalytics/src/Generated/Models/AccountSasContent.Serialization.cs
new file mode 100644
index 000000000000..360d1298833d
--- /dev/null
+++ b/sdk/networkanalytics/Azure.ResourceManager.NetworkAnalytics/src/Generated/Models/AccountSasContent.Serialization.cs
@@ -0,0 +1,27 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System.Text.Json;
+using Azure.Core;
+
+namespace Azure.ResourceManager.NetworkAnalytics.Models
+{
+ public partial class AccountSasContent : IUtf8JsonSerializable
+ {
+ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer)
+ {
+ writer.WriteStartObject();
+ writer.WritePropertyName("startTimeStamp"u8);
+ writer.WriteStringValue(StartTimeStamp, "O");
+ writer.WritePropertyName("expiryTimeStamp"u8);
+ writer.WriteStringValue(ExpiryTimeStamp, "O");
+ writer.WritePropertyName("ipAddress"u8);
+ writer.WriteStringValue(IPAddress);
+ writer.WriteEndObject();
+ }
+ }
+}
diff --git a/sdk/networkanalytics/Azure.ResourceManager.NetworkAnalytics/src/Generated/Models/AccountSasContent.cs b/sdk/networkanalytics/Azure.ResourceManager.NetworkAnalytics/src/Generated/Models/AccountSasContent.cs
new file mode 100644
index 000000000000..7159c49b9dfa
--- /dev/null
+++ b/sdk/networkanalytics/Azure.ResourceManager.NetworkAnalytics/src/Generated/Models/AccountSasContent.cs
@@ -0,0 +1,37 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using Azure.Core;
+
+namespace Azure.ResourceManager.NetworkAnalytics.Models
+{
+ /// The details for storage account sas creation.
+ public partial class AccountSasContent
+ {
+ /// Initializes a new instance of AccountSasContent.
+ /// Sas token start timestamp.
+ /// Sas token expiry timestamp.
+ /// Ip Address.
+ /// is null.
+ public AccountSasContent(DateTimeOffset startTimeStamp, DateTimeOffset expiryTimeStamp, string ipAddress)
+ {
+ Argument.AssertNotNull(ipAddress, nameof(ipAddress));
+
+ StartTimeStamp = startTimeStamp;
+ ExpiryTimeStamp = expiryTimeStamp;
+ IPAddress = ipAddress;
+ }
+
+ /// Sas token start timestamp.
+ public DateTimeOffset StartTimeStamp { get; }
+ /// Sas token expiry timestamp.
+ public DateTimeOffset ExpiryTimeStamp { get; }
+ /// Ip Address.
+ public string IPAddress { get; }
+ }
+}
diff --git a/sdk/networkanalytics/Azure.ResourceManager.NetworkAnalytics/src/Generated/Models/AccountSasToken.Serialization.cs b/sdk/networkanalytics/Azure.ResourceManager.NetworkAnalytics/src/Generated/Models/AccountSasToken.Serialization.cs
new file mode 100644
index 000000000000..dd9f1b98f1cd
--- /dev/null
+++ b/sdk/networkanalytics/Azure.ResourceManager.NetworkAnalytics/src/Generated/Models/AccountSasToken.Serialization.cs
@@ -0,0 +1,32 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System.Text.Json;
+
+namespace Azure.ResourceManager.NetworkAnalytics.Models
+{
+ public partial class AccountSasToken
+ {
+ internal static AccountSasToken DeserializeAccountSasToken(JsonElement element)
+ {
+ if (element.ValueKind == JsonValueKind.Null)
+ {
+ return null;
+ }
+ string storageAccountSasToken = default;
+ foreach (var property in element.EnumerateObject())
+ {
+ if (property.NameEquals("storageAccountSasToken"u8))
+ {
+ storageAccountSasToken = property.Value.GetString();
+ continue;
+ }
+ }
+ return new AccountSasToken(storageAccountSasToken);
+ }
+ }
+}
diff --git a/sdk/networkanalytics/Azure.ResourceManager.NetworkAnalytics/src/Generated/Models/AccountSasToken.cs b/sdk/networkanalytics/Azure.ResourceManager.NetworkAnalytics/src/Generated/Models/AccountSasToken.cs
new file mode 100644
index 000000000000..6d28311aaabd
--- /dev/null
+++ b/sdk/networkanalytics/Azure.ResourceManager.NetworkAnalytics/src/Generated/Models/AccountSasToken.cs
@@ -0,0 +1,29 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using Azure.Core;
+
+namespace Azure.ResourceManager.NetworkAnalytics.Models
+{
+ /// Details of storage account sas token .
+ public partial class AccountSasToken
+ {
+ /// Initializes a new instance of AccountSasToken.
+ /// Field to specify storage account sas token.
+ /// is null.
+ internal AccountSasToken(string storageAccountSasToken)
+ {
+ Argument.AssertNotNull(storageAccountSasToken, nameof(storageAccountSasToken));
+
+ StorageAccountSasToken = storageAccountSasToken;
+ }
+
+ /// Field to specify storage account sas token.
+ public string StorageAccountSasToken { get; }
+ }
+}
diff --git a/sdk/networkanalytics/Azure.ResourceManager.NetworkAnalytics/src/Generated/Models/ConsumptionEndpointsProperties.Serialization.cs b/sdk/networkanalytics/Azure.ResourceManager.NetworkAnalytics/src/Generated/Models/ConsumptionEndpointsProperties.Serialization.cs
new file mode 100644
index 000000000000..50198951b1e6
--- /dev/null
+++ b/sdk/networkanalytics/Azure.ResourceManager.NetworkAnalytics/src/Generated/Models/ConsumptionEndpointsProperties.Serialization.cs
@@ -0,0 +1,88 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.Text.Json;
+using Azure.Core;
+
+namespace Azure.ResourceManager.NetworkAnalytics.Models
+{
+ public partial class ConsumptionEndpointsProperties
+ {
+ internal static ConsumptionEndpointsProperties DeserializeConsumptionEndpointsProperties(JsonElement element)
+ {
+ if (element.ValueKind == JsonValueKind.Null)
+ {
+ return null;
+ }
+ Optional ingestionUrl = default;
+ Optional ingestionResourceId = default;
+ Optional fileAccessUrl = default;
+ Optional fileAccessResourceId = default;
+ Optional queryUrl = default;
+ Optional queryResourceId = default;
+ foreach (var property in element.EnumerateObject())
+ {
+ if (property.NameEquals("ingestionUrl"u8))
+ {
+ if (property.Value.ValueKind == JsonValueKind.Null)
+ {
+ continue;
+ }
+ ingestionUrl = new Uri(property.Value.GetString());
+ continue;
+ }
+ if (property.NameEquals("ingestionResourceId"u8))
+ {
+ if (property.Value.ValueKind == JsonValueKind.Null)
+ {
+ continue;
+ }
+ ingestionResourceId = new ResourceIdentifier(property.Value.GetString());
+ continue;
+ }
+ if (property.NameEquals("fileAccessUrl"u8))
+ {
+ if (property.Value.ValueKind == JsonValueKind.Null)
+ {
+ continue;
+ }
+ fileAccessUrl = new Uri(property.Value.GetString());
+ continue;
+ }
+ if (property.NameEquals("fileAccessResourceId"u8))
+ {
+ if (property.Value.ValueKind == JsonValueKind.Null)
+ {
+ continue;
+ }
+ fileAccessResourceId = new ResourceIdentifier(property.Value.GetString());
+ continue;
+ }
+ if (property.NameEquals("queryUrl"u8))
+ {
+ if (property.Value.ValueKind == JsonValueKind.Null)
+ {
+ continue;
+ }
+ queryUrl = new Uri(property.Value.GetString());
+ continue;
+ }
+ if (property.NameEquals("queryResourceId"u8))
+ {
+ if (property.Value.ValueKind == JsonValueKind.Null)
+ {
+ continue;
+ }
+ queryResourceId = new ResourceIdentifier(property.Value.GetString());
+ continue;
+ }
+ }
+ return new ConsumptionEndpointsProperties(ingestionUrl.Value, ingestionResourceId.Value, fileAccessUrl.Value, fileAccessResourceId.Value, queryUrl.Value, queryResourceId.Value);
+ }
+ }
+}
diff --git a/sdk/networkanalytics/Azure.ResourceManager.NetworkAnalytics/src/Generated/Models/ConsumptionEndpointsProperties.cs b/sdk/networkanalytics/Azure.ResourceManager.NetworkAnalytics/src/Generated/Models/ConsumptionEndpointsProperties.cs
new file mode 100644
index 000000000000..76f76c34a3d8
--- /dev/null
+++ b/sdk/networkanalytics/Azure.ResourceManager.NetworkAnalytics/src/Generated/Models/ConsumptionEndpointsProperties.cs
@@ -0,0 +1,51 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using Azure.Core;
+
+namespace Azure.ResourceManager.NetworkAnalytics.Models
+{
+ /// Details of Consumption Properties.
+ public partial class ConsumptionEndpointsProperties
+ {
+ /// Initializes a new instance of ConsumptionEndpointsProperties.
+ internal ConsumptionEndpointsProperties()
+ {
+ }
+
+ /// Initializes a new instance of ConsumptionEndpointsProperties.
+ /// Ingestion url to upload the data.
+ /// Resource Id of ingestion endpoint.
+ /// Url to consume file type.
+ /// Resource Id of file access endpoint.
+ /// Url to consume the processed data.
+ /// Resource Id of query endpoint.
+ internal ConsumptionEndpointsProperties(Uri ingestionUri, ResourceIdentifier ingestionResourceId, Uri fileAccessUri, ResourceIdentifier fileAccessResourceId, Uri queryUri, ResourceIdentifier queryResourceId)
+ {
+ IngestionUri = ingestionUri;
+ IngestionResourceId = ingestionResourceId;
+ FileAccessUri = fileAccessUri;
+ FileAccessResourceId = fileAccessResourceId;
+ QueryUri = queryUri;
+ QueryResourceId = queryResourceId;
+ }
+
+ /// Ingestion url to upload the data.
+ public Uri IngestionUri { get; }
+ /// Resource Id of ingestion endpoint.
+ public ResourceIdentifier IngestionResourceId { get; }
+ /// Url to consume file type.
+ public Uri FileAccessUri { get; }
+ /// Resource Id of file access endpoint.
+ public ResourceIdentifier FileAccessResourceId { get; }
+ /// Url to consume the processed data.
+ public Uri QueryUri { get; }
+ /// Resource Id of query endpoint.
+ public ResourceIdentifier QueryResourceId { get; }
+ }
+}
diff --git a/sdk/networkanalytics/Azure.ResourceManager.NetworkAnalytics/src/Generated/Models/DataProducDataTypeState.cs b/sdk/networkanalytics/Azure.ResourceManager.NetworkAnalytics/src/Generated/Models/DataProducDataTypeState.cs
new file mode 100644
index 000000000000..c0553f8873c8
--- /dev/null
+++ b/sdk/networkanalytics/Azure.ResourceManager.NetworkAnalytics/src/Generated/Models/DataProducDataTypeState.cs
@@ -0,0 +1,51 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.ComponentModel;
+
+namespace Azure.ResourceManager.NetworkAnalytics.Models
+{
+ /// The data type state.
+ public readonly partial struct DataProducDataTypeState : IEquatable
+ {
+ private readonly string _value;
+
+ /// Initializes a new instance of .
+ /// is null.
+ public DataProducDataTypeState(string value)
+ {
+ _value = value ?? throw new ArgumentNullException(nameof(value));
+ }
+
+ private const string StoppedValue = "Stopped";
+ private const string RunningValue = "Running";
+
+ /// Field to specify stopped state.
+ public static DataProducDataTypeState Stopped { get; } = new DataProducDataTypeState(StoppedValue);
+ /// Field to specify running state.
+ public static DataProducDataTypeState Running { get; } = new DataProducDataTypeState(RunningValue);
+ /// Determines if two values are the same.
+ public static bool operator ==(DataProducDataTypeState left, DataProducDataTypeState right) => left.Equals(right);
+ /// Determines if two values are not the same.
+ public static bool operator !=(DataProducDataTypeState left, DataProducDataTypeState right) => !left.Equals(right);
+ /// Converts a string to a .
+ public static implicit operator DataProducDataTypeState(string value) => new DataProducDataTypeState(value);
+
+ ///
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public override bool Equals(object obj) => obj is DataProducDataTypeState other && Equals(other);
+ ///
+ public bool Equals(DataProducDataTypeState other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase);
+
+ ///
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public override int GetHashCode() => _value?.GetHashCode() ?? 0;
+ ///
+ public override string ToString() => _value;
+ }
+}
diff --git a/sdk/networkanalytics/Azure.ResourceManager.NetworkAnalytics/src/Generated/Models/DataProductControlState.cs b/sdk/networkanalytics/Azure.ResourceManager.NetworkAnalytics/src/Generated/Models/DataProductControlState.cs
new file mode 100644
index 000000000000..b6ab21df8096
--- /dev/null
+++ b/sdk/networkanalytics/Azure.ResourceManager.NetworkAnalytics/src/Generated/Models/DataProductControlState.cs
@@ -0,0 +1,51 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.ComponentModel;
+
+namespace Azure.ResourceManager.NetworkAnalytics.Models
+{
+ /// The data type state.
+ public readonly partial struct DataProductControlState : IEquatable
+ {
+ private readonly string _value;
+
+ /// Initializes a new instance of .
+ /// is null.
+ public DataProductControlState(string value)
+ {
+ _value = value ?? throw new ArgumentNullException(nameof(value));
+ }
+
+ private const string EnabledValue = "Enabled";
+ private const string DisabledValue = "Disabled";
+
+ /// Field to enable a setting.
+ public static DataProductControlState Enabled { get; } = new DataProductControlState(EnabledValue);
+ /// Field to disable a setting.
+ public static DataProductControlState Disabled { get; } = new DataProductControlState(DisabledValue);
+ /// Determines if two values are the same.
+ public static bool operator ==(DataProductControlState left, DataProductControlState right) => left.Equals(right);
+ /// Determines if two values are not the same.
+ public static bool operator !=(DataProductControlState left, DataProductControlState right) => !left.Equals(right);
+ /// Converts a string to a .
+ public static implicit operator DataProductControlState(string value) => new DataProductControlState(value);
+
+ ///
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public override bool Equals(object obj) => obj is DataProductControlState other && Equals(other);
+ ///
+ public bool Equals(DataProductControlState other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase);
+
+ ///
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public override int GetHashCode() => _value?.GetHashCode() ?? 0;
+ ///
+ public override string ToString() => _value;
+ }
+}
diff --git a/sdk/networkanalytics/Azure.ResourceManager.NetworkAnalytics/src/Generated/Models/DataProductData.Serialization.cs b/sdk/networkanalytics/Azure.ResourceManager.NetworkAnalytics/src/Generated/Models/DataProductData.Serialization.cs
new file mode 100644
index 000000000000..c7c2e807d433
--- /dev/null
+++ b/sdk/networkanalytics/Azure.ResourceManager.NetworkAnalytics/src/Generated/Models/DataProductData.Serialization.cs
@@ -0,0 +1,382 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.Collections.Generic;
+using System.Text.Json;
+using Azure.Core;
+using Azure.ResourceManager.Models;
+using Azure.ResourceManager.NetworkAnalytics.Models;
+
+namespace Azure.ResourceManager.NetworkAnalytics
+{
+ public partial class DataProductData : IUtf8JsonSerializable
+ {
+ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer)
+ {
+ writer.WriteStartObject();
+ if (Optional.IsDefined(Identity))
+ {
+ writer.WritePropertyName("identity"u8);
+ JsonSerializer.Serialize(writer, Identity);
+ }
+ 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();
+ }
+ writer.WritePropertyName("location"u8);
+ writer.WriteStringValue(Location);
+ writer.WritePropertyName("properties"u8);
+ writer.WriteStartObject();
+ if (Optional.IsDefined(Publisher))
+ {
+ writer.WritePropertyName("publisher"u8);
+ writer.WriteStringValue(Publisher);
+ }
+ if (Optional.IsDefined(Product))
+ {
+ writer.WritePropertyName("product"u8);
+ writer.WriteStringValue(Product);
+ }
+ if (Optional.IsDefined(MajorVersion))
+ {
+ writer.WritePropertyName("majorVersion"u8);
+ writer.WriteStringValue(MajorVersion);
+ }
+ if (Optional.IsCollectionDefined(Owners))
+ {
+ writer.WritePropertyName("owners"u8);
+ writer.WriteStartArray();
+ foreach (var item in Owners)
+ {
+ writer.WriteStringValue(item);
+ }
+ writer.WriteEndArray();
+ }
+ if (Optional.IsDefined(Redundancy))
+ {
+ writer.WritePropertyName("redundancy"u8);
+ writer.WriteStringValue(Redundancy.Value.ToString());
+ }
+ if (Optional.IsDefined(PurviewAccount))
+ {
+ writer.WritePropertyName("purviewAccount"u8);
+ writer.WriteStringValue(PurviewAccount);
+ }
+ if (Optional.IsDefined(PurviewCollection))
+ {
+ writer.WritePropertyName("purviewCollection"u8);
+ writer.WriteStringValue(PurviewCollection);
+ }
+ if (Optional.IsDefined(PrivateLinksEnabled))
+ {
+ writer.WritePropertyName("privateLinksEnabled"u8);
+ writer.WriteStringValue(PrivateLinksEnabled.Value.ToString());
+ }
+ if (Optional.IsDefined(PublicNetworkAccess))
+ {
+ writer.WritePropertyName("publicNetworkAccess"u8);
+ writer.WriteStringValue(PublicNetworkAccess.Value.ToString());
+ }
+ if (Optional.IsDefined(CustomerManagedKeyEncryptionEnabled))
+ {
+ writer.WritePropertyName("customerManagedKeyEncryptionEnabled"u8);
+ writer.WriteStringValue(CustomerManagedKeyEncryptionEnabled.Value.ToString());
+ }
+ if (Optional.IsDefined(CustomerEncryptionKey))
+ {
+ writer.WritePropertyName("customerEncryptionKey"u8);
+ writer.WriteObjectValue(CustomerEncryptionKey);
+ }
+ if (Optional.IsDefined(Networkacls))
+ {
+ writer.WritePropertyName("networkacls"u8);
+ writer.WriteObjectValue(Networkacls);
+ }
+ if (Optional.IsDefined(ManagedResourceGroupConfiguration))
+ {
+ writer.WritePropertyName("managedResourceGroupConfiguration"u8);
+ writer.WriteObjectValue(ManagedResourceGroupConfiguration);
+ }
+ if (Optional.IsDefined(CurrentMinorVersion))
+ {
+ writer.WritePropertyName("currentMinorVersion"u8);
+ writer.WriteStringValue(CurrentMinorVersion);
+ }
+ writer.WriteEndObject();
+ writer.WriteEndObject();
+ }
+
+ internal static DataProductData DeserializeDataProductData(JsonElement element)
+ {
+ if (element.ValueKind == JsonValueKind.Null)
+ {
+ return null;
+ }
+ Optional identity = default;
+ Optional> tags = default;
+ AzureLocation location = default;
+ ResourceIdentifier id = default;
+ string name = default;
+ ResourceType type = default;
+ Optional systemData = default;
+ Optional resourceGuid = default;
+ Optional provisioningState = default;
+ Optional publisher = default;
+ Optional product = default;
+ Optional majorVersion = default;
+ Optional> owners = default;
+ Optional redundancy = default;
+ Optional purviewAccount = default;
+ Optional purviewCollection = default;
+ Optional privateLinksEnabled = default;
+ Optional publicNetworkAccess = default;
+ Optional customerManagedKeyEncryptionEnabled = default;
+ Optional customerEncryptionKey = default;
+ Optional networkacls = default;
+ Optional managedResourceGroupConfiguration = default;
+ Optional> availableMinorVersions = default;
+ Optional currentMinorVersion = default;
+ Optional documentation = default;
+ Optional consumptionEndpoints = default;
+ Optional keyVaultUrl = default;
+ foreach (var property in element.EnumerateObject())
+ {
+ if (property.NameEquals("identity"u8))
+ {
+ if (property.Value.ValueKind == JsonValueKind.Null)
+ {
+ continue;
+ }
+ identity = JsonSerializer.Deserialize(property.Value.GetRawText());
+ 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 (property.NameEquals("properties"u8))
+ {
+ if (property.Value.ValueKind == JsonValueKind.Null)
+ {
+ property.ThrowNonNullablePropertyIsNull();
+ continue;
+ }
+ foreach (var property0 in property.Value.EnumerateObject())
+ {
+ if (property0.NameEquals("resourceGuid"u8))
+ {
+ resourceGuid = property0.Value.GetString();
+ continue;
+ }
+ if (property0.NameEquals("provisioningState"u8))
+ {
+ if (property0.Value.ValueKind == JsonValueKind.Null)
+ {
+ continue;
+ }
+ provisioningState = new NetworkAnalyticsProvisioningState(property0.Value.GetString());
+ continue;
+ }
+ if (property0.NameEquals("publisher"u8))
+ {
+ publisher = property0.Value.GetString();
+ continue;
+ }
+ if (property0.NameEquals("product"u8))
+ {
+ product = property0.Value.GetString();
+ continue;
+ }
+ if (property0.NameEquals("majorVersion"u8))
+ {
+ majorVersion = property0.Value.GetString();
+ continue;
+ }
+ if (property0.NameEquals("owners"u8))
+ {
+ if (property0.Value.ValueKind == JsonValueKind.Null)
+ {
+ continue;
+ }
+ List array = new List();
+ foreach (var item in property0.Value.EnumerateArray())
+ {
+ array.Add(item.GetString());
+ }
+ owners = array;
+ continue;
+ }
+ if (property0.NameEquals("redundancy"u8))
+ {
+ if (property0.Value.ValueKind == JsonValueKind.Null)
+ {
+ continue;
+ }
+ redundancy = new DataProductControlState(property0.Value.GetString());
+ continue;
+ }
+ if (property0.NameEquals("purviewAccount"u8))
+ {
+ purviewAccount = property0.Value.GetString();
+ continue;
+ }
+ if (property0.NameEquals("purviewCollection"u8))
+ {
+ purviewCollection = property0.Value.GetString();
+ continue;
+ }
+ if (property0.NameEquals("privateLinksEnabled"u8))
+ {
+ if (property0.Value.ValueKind == JsonValueKind.Null)
+ {
+ continue;
+ }
+ privateLinksEnabled = new DataProductControlState(property0.Value.GetString());
+ continue;
+ }
+ if (property0.NameEquals("publicNetworkAccess"u8))
+ {
+ if (property0.Value.ValueKind == JsonValueKind.Null)
+ {
+ continue;
+ }
+ publicNetworkAccess = new DataProductControlState(property0.Value.GetString());
+ continue;
+ }
+ if (property0.NameEquals("customerManagedKeyEncryptionEnabled"u8))
+ {
+ if (property0.Value.ValueKind == JsonValueKind.Null)
+ {
+ continue;
+ }
+ customerManagedKeyEncryptionEnabled = new DataProductControlState(property0.Value.GetString());
+ continue;
+ }
+ if (property0.NameEquals("customerEncryptionKey"u8))
+ {
+ if (property0.Value.ValueKind == JsonValueKind.Null)
+ {
+ continue;
+ }
+ customerEncryptionKey = EncryptionKeyDetails.DeserializeEncryptionKeyDetails(property0.Value);
+ continue;
+ }
+ if (property0.NameEquals("networkacls"u8))
+ {
+ if (property0.Value.ValueKind == JsonValueKind.Null)
+ {
+ continue;
+ }
+ networkacls = DataProductNetworkAcls.DeserializeDataProductNetworkAcls(property0.Value);
+ continue;
+ }
+ if (property0.NameEquals("managedResourceGroupConfiguration"u8))
+ {
+ if (property0.Value.ValueKind == JsonValueKind.Null)
+ {
+ continue;
+ }
+ managedResourceGroupConfiguration = NetworkAnalyticsManagedResourceGroupConfiguration.DeserializeNetworkAnalyticsManagedResourceGroupConfiguration(property0.Value);
+ continue;
+ }
+ if (property0.NameEquals("availableMinorVersions"u8))
+ {
+ if (property0.Value.ValueKind == JsonValueKind.Null)
+ {
+ continue;
+ }
+ List array = new List();
+ foreach (var item in property0.Value.EnumerateArray())
+ {
+ array.Add(item.GetString());
+ }
+ availableMinorVersions = array;
+ continue;
+ }
+ if (property0.NameEquals("currentMinorVersion"u8))
+ {
+ currentMinorVersion = property0.Value.GetString();
+ continue;
+ }
+ if (property0.NameEquals("documentation"u8))
+ {
+ documentation = property0.Value.GetString();
+ continue;
+ }
+ if (property0.NameEquals("consumptionEndpoints"u8))
+ {
+ if (property0.Value.ValueKind == JsonValueKind.Null)
+ {
+ continue;
+ }
+ consumptionEndpoints = ConsumptionEndpointsProperties.DeserializeConsumptionEndpointsProperties(property0.Value);
+ continue;
+ }
+ if (property0.NameEquals("keyVaultUrl"u8))
+ {
+ if (property0.Value.ValueKind == JsonValueKind.Null)
+ {
+ continue;
+ }
+ keyVaultUrl = new Uri(property0.Value.GetString());
+ continue;
+ }
+ }
+ continue;
+ }
+ }
+ return new DataProductData(id, name, type, systemData.Value, Optional.ToDictionary(tags), location, identity, resourceGuid.Value, Optional.ToNullable(provisioningState), publisher.Value, product.Value, majorVersion.Value, Optional.ToList(owners), Optional.ToNullable(redundancy), purviewAccount.Value, purviewCollection.Value, Optional.ToNullable(privateLinksEnabled), Optional.ToNullable(publicNetworkAccess), Optional.ToNullable(customerManagedKeyEncryptionEnabled), customerEncryptionKey.Value, networkacls.Value, managedResourceGroupConfiguration.Value, Optional.ToList(availableMinorVersions), currentMinorVersion.Value, documentation.Value, consumptionEndpoints.Value, keyVaultUrl.Value);
+ }
+ }
+}
diff --git a/sdk/networkanalytics/Azure.ResourceManager.NetworkAnalytics/src/Generated/Models/DataProductDataType.Serialization.cs b/sdk/networkanalytics/Azure.ResourceManager.NetworkAnalytics/src/Generated/Models/DataProductDataType.Serialization.cs
new file mode 100644
index 000000000000..bf7b507aaf3a
--- /dev/null
+++ b/sdk/networkanalytics/Azure.ResourceManager.NetworkAnalytics/src/Generated/Models/DataProductDataType.Serialization.cs
@@ -0,0 +1,164 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.Text.Json;
+using Azure.Core;
+using Azure.ResourceManager.Models;
+
+namespace Azure.ResourceManager.NetworkAnalytics.Models
+{
+ public partial class DataProductDataType : IUtf8JsonSerializable
+ {
+ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer)
+ {
+ writer.WriteStartObject();
+ writer.WritePropertyName("properties"u8);
+ writer.WriteStartObject();
+ if (Optional.IsDefined(State))
+ {
+ writer.WritePropertyName("state"u8);
+ writer.WriteStringValue(State.Value.ToString());
+ }
+ if (Optional.IsDefined(StorageOutputRetention))
+ {
+ writer.WritePropertyName("storageOutputRetention"u8);
+ writer.WriteNumberValue(StorageOutputRetention.Value);
+ }
+ if (Optional.IsDefined(DatabaseCacheRetention))
+ {
+ writer.WritePropertyName("databaseCacheRetention"u8);
+ writer.WriteNumberValue(DatabaseCacheRetention.Value);
+ }
+ if (Optional.IsDefined(DatabaseRetention))
+ {
+ writer.WritePropertyName("databaseRetention"u8);
+ writer.WriteNumberValue(DatabaseRetention.Value);
+ }
+ writer.WriteEndObject();
+ writer.WriteEndObject();
+ }
+
+ internal static DataProductDataType DeserializeDataProductDataType(JsonElement element)
+ {
+ if (element.ValueKind == JsonValueKind.Null)
+ {
+ return null;
+ }
+ ResourceIdentifier id = default;
+ string name = default;
+ ResourceType type = default;
+ Optional systemData = default;
+ Optional provisioningState = default;
+ Optional state = default;
+ Optional stateReason = default;
+ Optional storageOutputRetention = default;
+ Optional databaseCacheRetention = default;
+ Optional databaseRetention = default;
+ Optional visualizationUrl = default;
+ foreach (var property in element.EnumerateObject())
+ {
+ 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 (property.NameEquals("properties"u8))
+ {
+ if (property.Value.ValueKind == JsonValueKind.Null)
+ {
+ property.ThrowNonNullablePropertyIsNull();
+ continue;
+ }
+ foreach (var property0 in property.Value.EnumerateObject())
+ {
+ if (property0.NameEquals("provisioningState"u8))
+ {
+ if (property0.Value.ValueKind == JsonValueKind.Null)
+ {
+ continue;
+ }
+ provisioningState = new NetworkAnalyticsProvisioningState(property0.Value.GetString());
+ continue;
+ }
+ if (property0.NameEquals("state"u8))
+ {
+ if (property0.Value.ValueKind == JsonValueKind.Null)
+ {
+ continue;
+ }
+ state = new DataProducDataTypeState(property0.Value.GetString());
+ continue;
+ }
+ if (property0.NameEquals("stateReason"u8))
+ {
+ stateReason = property0.Value.GetString();
+ continue;
+ }
+ if (property0.NameEquals("storageOutputRetention"u8))
+ {
+ if (property0.Value.ValueKind == JsonValueKind.Null)
+ {
+ continue;
+ }
+ storageOutputRetention = property0.Value.GetInt32();
+ continue;
+ }
+ if (property0.NameEquals("databaseCacheRetention"u8))
+ {
+ if (property0.Value.ValueKind == JsonValueKind.Null)
+ {
+ continue;
+ }
+ databaseCacheRetention = property0.Value.GetInt32();
+ continue;
+ }
+ if (property0.NameEquals("databaseRetention"u8))
+ {
+ if (property0.Value.ValueKind == JsonValueKind.Null)
+ {
+ continue;
+ }
+ databaseRetention = property0.Value.GetInt32();
+ continue;
+ }
+ if (property0.NameEquals("visualizationUrl"u8))
+ {
+ if (property0.Value.ValueKind == JsonValueKind.Null)
+ {
+ continue;
+ }
+ visualizationUrl = new Uri(property0.Value.GetString());
+ continue;
+ }
+ }
+ continue;
+ }
+ }
+ return new DataProductDataType(id, name, type, systemData.Value, Optional.ToNullable(provisioningState), Optional.ToNullable(state), stateReason.Value, Optional.ToNullable(storageOutputRetention), Optional.ToNullable(databaseCacheRetention), Optional.ToNullable(databaseRetention), visualizationUrl.Value);
+ }
+ }
+}
diff --git a/sdk/networkanalytics/Azure.ResourceManager.NetworkAnalytics/src/Generated/Models/DataProductDataType.cs b/sdk/networkanalytics/Azure.ResourceManager.NetworkAnalytics/src/Generated/Models/DataProductDataType.cs
new file mode 100644
index 000000000000..edb9c7d0de3e
--- /dev/null
+++ b/sdk/networkanalytics/Azure.ResourceManager.NetworkAnalytics/src/Generated/Models/DataProductDataType.cs
@@ -0,0 +1,60 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using Azure.Core;
+using Azure.ResourceManager.Models;
+
+namespace Azure.ResourceManager.NetworkAnalytics.Models
+{
+ /// The data type resource.
+ public partial class DataProductDataType : ResourceData
+ {
+ /// Initializes a new instance of DataProductDataType.
+ public DataProductDataType()
+ {
+ }
+
+ /// Initializes a new instance of DataProductDataType.
+ /// The id.
+ /// The name.
+ /// The resourceType.
+ /// The systemData.
+ /// Latest provisioning state of data product.
+ /// State of data type.
+ /// Reason for the state of data type.
+ /// Field for storage output retention in days.
+ /// Field for database cache retention in days.
+ /// Field for database data retention in days.
+ /// Url for data visualization.
+ internal DataProductDataType(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, NetworkAnalyticsProvisioningState? provisioningState, DataProducDataTypeState? state, string stateReason, int? storageOutputRetention, int? databaseCacheRetention, int? databaseRetention, Uri visualizationUri) : base(id, name, resourceType, systemData)
+ {
+ ProvisioningState = provisioningState;
+ State = state;
+ StateReason = stateReason;
+ StorageOutputRetention = storageOutputRetention;
+ DatabaseCacheRetention = databaseCacheRetention;
+ DatabaseRetention = databaseRetention;
+ VisualizationUri = visualizationUri;
+ }
+
+ /// Latest provisioning state of data product.
+ public NetworkAnalyticsProvisioningState? ProvisioningState { get; }
+ /// State of data type.
+ public DataProducDataTypeState? State { get; set; }
+ /// Reason for the state of data type.
+ public string StateReason { get; }
+ /// Field for storage output retention in days.
+ public int? StorageOutputRetention { get; set; }
+ /// Field for database cache retention in days.
+ public int? DatabaseCacheRetention { get; set; }
+ /// Field for database data retention in days.
+ public int? DatabaseRetention { get; set; }
+ /// Url for data visualization.
+ public Uri VisualizationUri { get; }
+ }
+}
diff --git a/sdk/networkanalytics/Azure.ResourceManager.NetworkAnalytics/src/Generated/Models/DataProductInformation.Serialization.cs b/sdk/networkanalytics/Azure.ResourceManager.NetworkAnalytics/src/Generated/Models/DataProductInformation.Serialization.cs
new file mode 100644
index 000000000000..0f7486815ffd
--- /dev/null
+++ b/sdk/networkanalytics/Azure.ResourceManager.NetworkAnalytics/src/Generated/Models/DataProductInformation.Serialization.cs
@@ -0,0 +1,68 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System.Collections.Generic;
+using System.Text.Json;
+using Azure.Core;
+
+namespace Azure.ResourceManager.NetworkAnalytics.Models
+{
+ public partial class DataProductInformation : IUtf8JsonSerializable
+ {
+ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer)
+ {
+ writer.WriteStartObject();
+ writer.WritePropertyName("dataProductName"u8);
+ writer.WriteStringValue(DataProductName);
+ writer.WritePropertyName("description"u8);
+ writer.WriteStringValue(Description);
+ writer.WritePropertyName("dataProductVersions"u8);
+ writer.WriteStartArray();
+ foreach (var item in DataProductVersions)
+ {
+ writer.WriteObjectValue(item);
+ }
+ writer.WriteEndArray();
+ writer.WriteEndObject();
+ }
+
+ internal static DataProductInformation DeserializeDataProductInformation(JsonElement element)
+ {
+ if (element.ValueKind == JsonValueKind.Null)
+ {
+ return null;
+ }
+ string dataProductName = default;
+ string description = default;
+ IList dataProductVersions = default;
+ foreach (var property in element.EnumerateObject())
+ {
+ if (property.NameEquals("dataProductName"u8))
+ {
+ dataProductName = property.Value.GetString();
+ continue;
+ }
+ if (property.NameEquals("description"u8))
+ {
+ description = property.Value.GetString();
+ continue;
+ }
+ if (property.NameEquals("dataProductVersions"u8))
+ {
+ List array = new List();
+ foreach (var item in property.Value.EnumerateArray())
+ {
+ array.Add(DataProductVersion.DeserializeDataProductVersion(item));
+ }
+ dataProductVersions = array;
+ continue;
+ }
+ }
+ return new DataProductInformation(dataProductName, description, dataProductVersions);
+ }
+ }
+}
diff --git a/sdk/networkanalytics/Azure.ResourceManager.NetworkAnalytics/src/Generated/Models/DataProductInformation.cs b/sdk/networkanalytics/Azure.ResourceManager.NetworkAnalytics/src/Generated/Models/DataProductInformation.cs
new file mode 100644
index 000000000000..4ed0a169399e
--- /dev/null
+++ b/sdk/networkanalytics/Azure.ResourceManager.NetworkAnalytics/src/Generated/Models/DataProductInformation.cs
@@ -0,0 +1,52 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using Azure.Core;
+
+namespace Azure.ResourceManager.NetworkAnalytics.Models
+{
+ /// Data Product Information.
+ public partial class DataProductInformation
+ {
+ /// Initializes a new instance of DataProductInformation.
+ /// Name of data product.
+ /// Description about data product.
+ /// Version information of data product.
+ /// , or is null.
+ public DataProductInformation(string dataProductName, string description, IEnumerable dataProductVersions)
+ {
+ Argument.AssertNotNull(dataProductName, nameof(dataProductName));
+ Argument.AssertNotNull(description, nameof(description));
+ Argument.AssertNotNull(dataProductVersions, nameof(dataProductVersions));
+
+ DataProductName = dataProductName;
+ Description = description;
+ DataProductVersions = dataProductVersions.ToList();
+ }
+
+ /// Initializes a new instance of DataProductInformation.
+ /// Name of data product.
+ /// Description about data product.
+ /// Version information of data product.
+ internal DataProductInformation(string dataProductName, string description, IList dataProductVersions)
+ {
+ DataProductName = dataProductName;
+ Description = description;
+ DataProductVersions = dataProductVersions;
+ }
+
+ /// Name of data product.
+ public string DataProductName { get; set; }
+ /// Description about data product.
+ public string Description { get; set; }
+ /// Version information of data product.
+ public IList DataProductVersions { get; }
+ }
+}
diff --git a/sdk/networkanalytics/Azure.ResourceManager.NetworkAnalytics/src/Generated/Models/DataProductListResult.Serialization.cs b/sdk/networkanalytics/Azure.ResourceManager.NetworkAnalytics/src/Generated/Models/DataProductListResult.Serialization.cs
new file mode 100644
index 000000000000..8cc0a439e8e8
--- /dev/null
+++ b/sdk/networkanalytics/Azure.ResourceManager.NetworkAnalytics/src/Generated/Models/DataProductListResult.Serialization.cs
@@ -0,0 +1,51 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.Collections.Generic;
+using System.Text.Json;
+using Azure.Core;
+using Azure.ResourceManager.NetworkAnalytics;
+
+namespace Azure.ResourceManager.NetworkAnalytics.Models
+{
+ internal partial class DataProductListResult
+ {
+ internal static DataProductListResult DeserializeDataProductListResult(JsonElement element)
+ {
+ if (element.ValueKind == JsonValueKind.Null)
+ {
+ return null;
+ }
+ IReadOnlyList value = default;
+ Optional nextLink = default;
+ foreach (var property in element.EnumerateObject())
+ {
+ if (property.NameEquals("value"u8))
+ {
+ List array = new List();
+ foreach (var item in property.Value.EnumerateArray())
+ {
+ array.Add(DataProductData.DeserializeDataProductData(item));
+ }
+ value = array;
+ continue;
+ }
+ if (property.NameEquals("nextLink"u8))
+ {
+ if (property.Value.ValueKind == JsonValueKind.Null)
+ {
+ continue;
+ }
+ nextLink = new Uri(property.Value.GetString());
+ continue;
+ }
+ }
+ return new DataProductListResult(value, nextLink.Value);
+ }
+ }
+}
diff --git a/sdk/networkanalytics/Azure.ResourceManager.NetworkAnalytics/src/Generated/Models/DataProductListResult.cs b/sdk/networkanalytics/Azure.ResourceManager.NetworkAnalytics/src/Generated/Models/DataProductListResult.cs
new file mode 100644
index 000000000000..7106d17718db
--- /dev/null
+++ b/sdk/networkanalytics/Azure.ResourceManager.NetworkAnalytics/src/Generated/Models/DataProductListResult.cs
@@ -0,0 +1,43 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using Azure.Core;
+using Azure.ResourceManager.NetworkAnalytics;
+
+namespace Azure.ResourceManager.NetworkAnalytics.Models
+{
+ /// The response of a DataProduct list operation.
+ internal partial class DataProductListResult
+ {
+ /// Initializes a new instance of DataProductListResult.
+ /// The DataProduct items on this page.
+ /// is null.
+ internal DataProductListResult(IEnumerable value)
+ {
+ Argument.AssertNotNull(value, nameof(value));
+
+ Value = value.ToList();
+ }
+
+ /// Initializes a new instance of DataProductListResult.
+ /// The DataProduct items on this page.
+ /// The link to the next page of items.
+ internal DataProductListResult(IReadOnlyList value, Uri nextLink)
+ {
+ Value = value;
+ NextLink = nextLink;
+ }
+
+ /// The DataProduct items on this page.
+ public IReadOnlyList Value { get; }
+ /// The link to the next page of items.
+ public Uri NextLink { get; }
+ }
+}
diff --git a/sdk/networkanalytics/Azure.ResourceManager.NetworkAnalytics/src/Generated/Models/DataProductNetworkAcls.Serialization.cs b/sdk/networkanalytics/Azure.ResourceManager.NetworkAnalytics/src/Generated/Models/DataProductNetworkAcls.Serialization.cs
new file mode 100644
index 000000000000..b08147c474c8
--- /dev/null
+++ b/sdk/networkanalytics/Azure.ResourceManager.NetworkAnalytics/src/Generated/Models/DataProductNetworkAcls.Serialization.cs
@@ -0,0 +1,96 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System.Collections.Generic;
+using System.Text.Json;
+using Azure.Core;
+
+namespace Azure.ResourceManager.NetworkAnalytics.Models
+{
+ public partial class DataProductNetworkAcls : IUtf8JsonSerializable
+ {
+ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer)
+ {
+ writer.WriteStartObject();
+ writer.WritePropertyName("virtualNetworkRule"u8);
+ writer.WriteStartArray();
+ foreach (var item in VirtualNetworkRule)
+ {
+ writer.WriteObjectValue(item);
+ }
+ writer.WriteEndArray();
+ writer.WritePropertyName("ipRules"u8);
+ writer.WriteStartArray();
+ foreach (var item in IPRules)
+ {
+ writer.WriteObjectValue(item);
+ }
+ writer.WriteEndArray();
+ writer.WritePropertyName("allowedQueryIpRangeList"u8);
+ writer.WriteStartArray();
+ foreach (var item in AllowedQueryIPRangeList)
+ {
+ writer.WriteStringValue(item);
+ }
+ writer.WriteEndArray();
+ writer.WritePropertyName("defaultAction"u8);
+ writer.WriteStringValue(DefaultAction.ToString());
+ writer.WriteEndObject();
+ }
+
+ internal static DataProductNetworkAcls DeserializeDataProductNetworkAcls(JsonElement element)
+ {
+ if (element.ValueKind == JsonValueKind.Null)
+ {
+ return null;
+ }
+ IList virtualNetworkRule = default;
+ IList ipRules = default;
+ IList allowedQueryIPRangeList = default;
+ NetworkAclDefaultAction defaultAction = default;
+ foreach (var property in element.EnumerateObject())
+ {
+ if (property.NameEquals("virtualNetworkRule"u8))
+ {
+ List array = new List();
+ foreach (var item in property.Value.EnumerateArray())
+ {
+ array.Add(NetworkAnalyticsVirtualNetworkRule.DeserializeNetworkAnalyticsVirtualNetworkRule(item));
+ }
+ virtualNetworkRule = array;
+ continue;
+ }
+ if (property.NameEquals("ipRules"u8))
+ {
+ List array = new List();
+ foreach (var item in property.Value.EnumerateArray())
+ {
+ array.Add(NetworkAnalyticsIPRules.DeserializeNetworkAnalyticsIPRules(item));
+ }
+ ipRules = array;
+ continue;
+ }
+ if (property.NameEquals("allowedQueryIpRangeList"u8))
+ {
+ List array = new List();
+ foreach (var item in property.Value.EnumerateArray())
+ {
+ array.Add(item.GetString());
+ }
+ allowedQueryIPRangeList = array;
+ continue;
+ }
+ if (property.NameEquals("defaultAction"u8))
+ {
+ defaultAction = new NetworkAclDefaultAction(property.Value.GetString());
+ continue;
+ }
+ }
+ return new DataProductNetworkAcls(virtualNetworkRule, ipRules, allowedQueryIPRangeList, defaultAction);
+ }
+ }
+}
diff --git a/sdk/networkanalytics/Azure.ResourceManager.NetworkAnalytics/src/Generated/Models/DataProductNetworkAcls.cs b/sdk/networkanalytics/Azure.ResourceManager.NetworkAnalytics/src/Generated/Models/DataProductNetworkAcls.cs
new file mode 100644
index 000000000000..dbd1fb47489a
--- /dev/null
+++ b/sdk/networkanalytics/Azure.ResourceManager.NetworkAnalytics/src/Generated/Models/DataProductNetworkAcls.cs
@@ -0,0 +1,58 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using Azure.Core;
+
+namespace Azure.ResourceManager.NetworkAnalytics.Models
+{
+ /// Data Product Network rule set.
+ public partial class DataProductNetworkAcls
+ {
+ /// Initializes a new instance of DataProductNetworkAcls.
+ /// Virtual Network Rule.
+ /// IP rule with specific IP or IP range in CIDR format.
+ /// The list of query ips in the format of CIDR allowed to connect to query/visualization endpoint.
+ /// Default Action.
+ ///