diff --git a/sdk/managedops/Azure.ResourceManager.ManagedOps/Azure.ResourceManager.ManagedOps.sln b/sdk/managedops/Azure.ResourceManager.ManagedOps/Azure.ResourceManager.ManagedOps.sln
new file mode 100644
index 000000000000..0edc8e38dfce
--- /dev/null
+++ b/sdk/managedops/Azure.ResourceManager.ManagedOps/Azure.ResourceManager.ManagedOps.sln
@@ -0,0 +1,56 @@
+Microsoft Visual Studio Solution File, Format Version 12.00
+# Visual Studio Version 16
+VisualStudioVersion = 16.0.29709.97
+MinimumVisualStudioVersion = 10.0.40219.1
+Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Azure.ResourceManager.ManagedOps.Samples", "samples\Azure.ResourceManager.ManagedOps.Samples.csproj", "{7A2DFF15-5746-49F4-BD0F-C6C35337088A}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Azure.ResourceManager.ManagedOps", "src\Azure.ResourceManager.ManagedOps.csproj", "{28FF4005-4467-4E36-92E7-DEA27DEB1519}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Azure.ResourceManager.ManagedOps.Tests", "tests\Azure.ResourceManager.ManagedOps.Tests.csproj", "{1F1CD1D4-9932-4B73-99D8-C252A67D4B46}"
+EndProject
+Global
+ GlobalSection(SolutionConfigurationPlatforms) = preSolution
+ Debug|Any CPU = Debug|Any CPU
+ Release|Any CPU = Release|Any CPU
+ EndGlobalSection
+ GlobalSection(ProjectConfigurationPlatforms) = postSolution
+ {B0C276D1-2930-4887-B29A-D1A33E7009A2}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {B0C276D1-2930-4887-B29A-D1A33E7009A2}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {B0C276D1-2930-4887-B29A-D1A33E7009A2}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {B0C276D1-2930-4887-B29A-D1A33E7009A2}.Release|Any CPU.Build.0 = Release|Any CPU
+ {8E9A77AC-792A-4432-8320-ACFD46730401}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {8E9A77AC-792A-4432-8320-ACFD46730401}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {8E9A77AC-792A-4432-8320-ACFD46730401}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {8E9A77AC-792A-4432-8320-ACFD46730401}.Release|Any CPU.Build.0 = Release|Any CPU
+ {7A2DFF15-5746-49F4-BD0F-C6C35337088A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {7A2DFF15-5746-49F4-BD0F-C6C35337088A}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {7A2DFF15-5746-49F4-BD0F-C6C35337088A}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {7A2DFF15-5746-49F4-BD0F-C6C35337088A}.Release|Any CPU.Build.0 = Release|Any CPU
+ {A4241C1F-A53D-474C-9E4E-075054407E74}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {A4241C1F-A53D-474C-9E4E-075054407E74}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {A4241C1F-A53D-474C-9E4E-075054407E74}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {A4241C1F-A53D-474C-9E4E-075054407E74}.Release|Any CPU.Build.0 = Release|Any CPU
+ {FA8BD3F1-8616-47B6-974C-7576CDF4717E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {FA8BD3F1-8616-47B6-974C-7576CDF4717E}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {FA8BD3F1-8616-47B6-974C-7576CDF4717E}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {FA8BD3F1-8616-47B6-974C-7576CDF4717E}.Release|Any CPU.Build.0 = Release|Any CPU
+ {85677AD3-C214-42FA-AE6E-49B956CAC8DC}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {85677AD3-C214-42FA-AE6E-49B956CAC8DC}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {85677AD3-C214-42FA-AE6E-49B956CAC8DC}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {85677AD3-C214-42FA-AE6E-49B956CAC8DC}.Release|Any CPU.Build.0 = Release|Any CPU
+ {28FF4005-4467-4E36-92E7-DEA27DEB1519}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {28FF4005-4467-4E36-92E7-DEA27DEB1519}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {28FF4005-4467-4E36-92E7-DEA27DEB1519}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {28FF4005-4467-4E36-92E7-DEA27DEB1519}.Release|Any CPU.Build.0 = Release|Any CPU
+ {1F1CD1D4-9932-4B73-99D8-C252A67D4B46}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {1F1CD1D4-9932-4B73-99D8-C252A67D4B46}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {1F1CD1D4-9932-4B73-99D8-C252A67D4B46}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {1F1CD1D4-9932-4B73-99D8-C252A67D4B46}.Release|Any CPU.Build.0 = Release|Any CPU
+ EndGlobalSection
+ GlobalSection(SolutionProperties) = preSolution
+ HideSolutionNode = FALSE
+ EndGlobalSection
+ GlobalSection(ExtensibilityGlobals) = postSolution
+ SolutionGuid = {A97F4B90-2591-4689-B1F8-5F21FE6D6CAE}
+ EndGlobalSection
+EndGlobal
diff --git a/sdk/managedops/Azure.ResourceManager.ManagedOps/CHANGELOG.md b/sdk/managedops/Azure.ResourceManager.ManagedOps/CHANGELOG.md
new file mode 100644
index 000000000000..8b33f0fedccc
--- /dev/null
+++ b/sdk/managedops/Azure.ResourceManager.ManagedOps/CHANGELOG.md
@@ -0,0 +1,11 @@
+# Release History
+
+## 1.0.0-beta.1 (Unreleased)
+
+### Features Added
+
+### Breaking Changes
+
+### Bugs Fixed
+
+### Other Changes
\ No newline at end of file
diff --git a/sdk/managedops/Azure.ResourceManager.ManagedOps/Directory.Build.props b/sdk/managedops/Azure.ResourceManager.ManagedOps/Directory.Build.props
new file mode 100644
index 000000000000..63bd836ad44b
--- /dev/null
+++ b/sdk/managedops/Azure.ResourceManager.ManagedOps/Directory.Build.props
@@ -0,0 +1,6 @@
+
+
+
+
diff --git a/sdk/managedops/Azure.ResourceManager.ManagedOps/README.md b/sdk/managedops/Azure.ResourceManager.ManagedOps/README.md
new file mode 100644
index 000000000000..3c946cbf7dc7
--- /dev/null
+++ b/sdk/managedops/Azure.ResourceManager.ManagedOps/README.md
@@ -0,0 +1,80 @@
+# Microsoft Azure ManagedOps management client library for .NET
+
+**[Describe the service briefly first.]**
+
+This library follows the [new Azure SDK guidelines](https://azure.github.io/azure-sdk/general_introduction.html), and provides many core capabilities:
+
+ - Support MSAL.NET, Azure.Identity is out of box for supporting MSAL.NET.
+ - Support [OpenTelemetry](https://opentelemetry.io/) for distributed tracing.
+ - HTTP pipeline with custom policies.
+ - Better error-handling.
+ - Support uniform telemetry across all languages.
+
+## Getting started
+
+### Install the package
+
+Install the Microsoft Azure ManagedOps management library for .NET with [NuGet](https://www.nuget.org/):
+
+```dotnetcli
+dotnet add package Azure.ResourceManager.ManagedOps --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://learn.microsoft.com/dotnet/api/?view=azure-dotnet).
+- [Authentication](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/identity/Azure.Identity/README.md).
+
+## Examples
+
+Code samples for using the management library for .NET can be found in the following locations
+- [.NET Management Library Code Samples](https://aka.ms/azuresdk-net-mgmt-samples)
+
+## Troubleshooting
+
+- File an issue via [GitHub Issues](https://github.com/Azure/azure-sdk-for-net/issues).
+- Check [previous questions](https://stackoverflow.com/questions/tagged/azure+.net) or ask new ones on Stack Overflow using Azure and .NET tags.
+
+## Next steps
+
+For more information about Microsoft Azure SDK, see [this website](https://azure.github.io/azure-sdk/).
+
+## Contributing
+
+For details on contributing to this repository, see the [contributing
+guide][cg].
+
+This project welcomes contributions and suggestions. Most contributions
+require you to agree to a Contributor License Agreement (CLA) declaring
+that you have the right to, and actually do, grant us the rights to use
+your contribution. For details, visit .
+
+When you submit a pull request, a CLA-bot will automatically determine
+whether you need to provide a CLA and decorate the PR appropriately
+(for example, label, comment). Follow the instructions provided by the
+bot. You'll only need to do this action once across all repositories
+using our CLA.
+
+This project has adopted the [Microsoft Open Source Code of Conduct][coc]. For
+more information, see the [Code of Conduct FAQ][coc_faq] or contact
+ with any other questions or comments.
+
+
+[cg]: https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/resourcemanager/Azure.ResourceManager/docs/CONTRIBUTING.md
+[coc]: https://opensource.microsoft.com/codeofconduct/
+[coc_faq]: https://opensource.microsoft.com/codeofconduct/faq/
\ No newline at end of file
diff --git a/sdk/managedops/Azure.ResourceManager.ManagedOps/assets.json b/sdk/managedops/Azure.ResourceManager.ManagedOps/assets.json
new file mode 100644
index 000000000000..269186ff85c5
--- /dev/null
+++ b/sdk/managedops/Azure.ResourceManager.ManagedOps/assets.json
@@ -0,0 +1,7 @@
+
+{
+ "AssetsRepo": "Azure/azure-sdk-assets",
+ "AssetsRepoPrefixPath": "net",
+ "TagPrefix": "net/managedops/Azure.ResourceManager.ManagedOps",
+ "Tag": ""
+}
diff --git a/sdk/managedops/Azure.ResourceManager.ManagedOps/samples/Azure.ResourceManager.ManagedOps.Samples.csproj b/sdk/managedops/Azure.ResourceManager.ManagedOps/samples/Azure.ResourceManager.ManagedOps.Samples.csproj
new file mode 100644
index 000000000000..e0b621579f18
--- /dev/null
+++ b/sdk/managedops/Azure.ResourceManager.ManagedOps/samples/Azure.ResourceManager.ManagedOps.Samples.csproj
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/sdk/managedops/Azure.ResourceManager.ManagedOps/src/Azure.ResourceManager.ManagedOps.csproj b/sdk/managedops/Azure.ResourceManager.ManagedOps/src/Azure.ResourceManager.ManagedOps.csproj
new file mode 100644
index 000000000000..a3b11d35f0a4
--- /dev/null
+++ b/sdk/managedops/Azure.ResourceManager.ManagedOps/src/Azure.ResourceManager.ManagedOps.csproj
@@ -0,0 +1,9 @@
+
+
+ Azure Resource Manager client SDK for Azure resource provider ManagedOps.
+ 1.0.0-beta.1
+ azure;management;arm;resource manager;managedops
+ true
+ Azure.ResourceManager.ManagedOps
+
+
diff --git a/sdk/managedops/Azure.ResourceManager.ManagedOps/src/Generated/ArmManagedOpsModelFactory.cs b/sdk/managedops/Azure.ResourceManager.ManagedOps/src/Generated/ArmManagedOpsModelFactory.cs
new file mode 100644
index 000000000000..b2d11ba60bf4
--- /dev/null
+++ b/sdk/managedops/Azure.ResourceManager.ManagedOps/src/Generated/ArmManagedOpsModelFactory.cs
@@ -0,0 +1,102 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using Azure.Core;
+using Azure.ResourceManager.Models;
+
+namespace Azure.ResourceManager.ManagedOps.Models
+{
+ /// Model factory for models.
+ public static partial class ArmManagedOpsModelFactory
+ {
+ /// Initializes a new instance of .
+ /// The id.
+ /// The name.
+ /// The resourceType.
+ /// The systemData.
+ /// The resource-specific properties for this resource.
+ /// A new instance for mocking.
+ public static ManagedOpData ManagedOpData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, ManagedOpsProperties properties = null)
+ {
+ return new ManagedOpData(
+ id,
+ name,
+ resourceType,
+ systemData,
+ properties,
+ serializedAdditionalRawData: null);
+ }
+
+ /// Initializes a new instance of .
+ /// Product plan details of this resource.
+ /// Provisioning state of the resource.
+ /// Desired configuration input by the user.
+ /// Services provisioned by this resource.
+ /// Policy assignments created for managing services.
+ /// A new instance for mocking.
+ public static ManagedOpsProperties ManagedOpsProperties(ManagedOpsSku sku = null, ProvisioningState? provisioningState = null, DesiredConfiguration desiredConfiguration = null, ServiceInformation services = null, ResourceIdentifier policyInitiativeAssignmentId = null)
+ {
+ return new ManagedOpsProperties(
+ sku,
+ provisioningState,
+ desiredConfiguration,
+ services,
+ policyInitiativeAssignmentId != null ? new PolicyAssignmentProperties(policyInitiativeAssignmentId, serializedAdditionalRawData: null) : null,
+ serializedAdditionalRawData: null);
+ }
+
+ /// Initializes a new instance of .
+ /// Name of the SKU.
+ /// Pricing tier of the SKU.
+ /// A new instance for mocking.
+ public static ManagedOpsSku ManagedOpsSku(string name = null, string tier = null)
+ {
+ return new ManagedOpsSku(name, tier, serializedAdditionalRawData: null);
+ }
+
+ /// Initializes a new instance of .
+ /// Change Tracking and Inventory service information.
+ /// Azure Monitor Insights service information.
+ /// Azure Update Manager service information.
+ /// Azure Policy and Machine Configuration service information.
+ /// Defender for Servers service information.
+ /// Defender for Cloud's Cloud security posture management (CSPM) service information.
+ /// A new instance for mocking.
+ public static ServiceInformation ServiceInformation(ChangeTrackingInformation changeTrackingAndInventory = null, AzureMonitorInformation azureMonitorInsights = null, ChangeTrackingInformationEnablementStatus? azureUpdateManagerEnablementStatus = null, ChangeTrackingInformationEnablementStatus? azurePolicyAndMachineEnablementStatus = null, ChangeTrackingInformationEnablementStatus? defenderForServersEnablementStatus = null, ChangeTrackingInformationEnablementStatus? defenderCspmEnablementStatus = null)
+ {
+ return new ServiceInformation(
+ changeTrackingAndInventory,
+ azureMonitorInsights,
+ azureUpdateManagerEnablementStatus.HasValue ? new UpdateManagerInformation(azureUpdateManagerEnablementStatus.Value, serializedAdditionalRawData: null) : null,
+ azurePolicyAndMachineEnablementStatus.HasValue ? new GuestConfigurationInformation(azurePolicyAndMachineEnablementStatus.Value, serializedAdditionalRawData: null) : null,
+ defenderForServersEnablementStatus.HasValue ? new DefenderForServersInformation(defenderForServersEnablementStatus.Value, serializedAdditionalRawData: null) : null,
+ defenderCspmEnablementStatus.HasValue ? new DefenderCspmInformation(defenderCspmEnablementStatus.Value, serializedAdditionalRawData: null) : null,
+ serializedAdditionalRawData: null);
+ }
+
+ /// Initializes a new instance of .
+ /// ID of Data Collection Rule (DCR) associated with this service.
+ /// Indicates whether the service is enabled.
+ /// A new instance for mocking.
+ public static ChangeTrackingInformation ChangeTrackingInformation(ResourceIdentifier dcrId = null, ChangeTrackingInformationEnablementStatus enablementStatus = default)
+ {
+ return new ChangeTrackingInformation(dcrId, enablementStatus, serializedAdditionalRawData: null);
+ }
+
+ /// Initializes a new instance of .
+ /// ID of Data Collection Rule (DCR) associated with this service.
+ /// Indicates whether the service is enabled.
+ /// A new instance for mocking.
+ public static AzureMonitorInformation AzureMonitorInformation(ResourceIdentifier dcrId = null, ChangeTrackingInformationEnablementStatus enablementStatus = default)
+ {
+ return new AzureMonitorInformation(dcrId, enablementStatus, serializedAdditionalRawData: null);
+ }
+ }
+}
diff --git a/sdk/managedops/Azure.ResourceManager.ManagedOps/src/Generated/Extensions/ManagedOpsExtensions.cs b/sdk/managedops/Azure.ResourceManager.ManagedOps/src/Generated/Extensions/ManagedOpsExtensions.cs
new file mode 100644
index 000000000000..6dcf82a7f326
--- /dev/null
+++ b/sdk/managedops/Azure.ResourceManager.ManagedOps/src/Generated/Extensions/ManagedOpsExtensions.cs
@@ -0,0 +1,142 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.Threading;
+using System.Threading.Tasks;
+using Azure.Core;
+using Azure.ResourceManager.ManagedOps.Mocking;
+using Azure.ResourceManager.Resources;
+
+namespace Azure.ResourceManager.ManagedOps
+{
+ /// A class to add extension methods to Azure.ResourceManager.ManagedOps.
+ public static partial class ManagedOpsExtensions
+ {
+ private static MockableManagedOpsArmClient GetMockableManagedOpsArmClient(ArmClient client)
+ {
+ return client.GetCachedClient(client0 => new MockableManagedOpsArmClient(client0));
+ }
+
+ private static MockableManagedOpsSubscriptionResource GetMockableManagedOpsSubscriptionResource(ArmResource resource)
+ {
+ return resource.GetCachedClient(client => new MockableManagedOpsSubscriptionResource(client, resource.Id));
+ }
+
+ ///
+ /// Gets an object representing a along with the instance operations that can be performed on it but with no data.
+ /// You can use to create a from its components.
+ /// -
+ /// Mocking
+ /// To mock this method, please mock instead.
+ ///
+ ///
+ /// The instance the method will execute against.
+ /// The resource ID of the resource to get.
+ /// is null.
+ /// Returns a object.
+ public static ManagedOpResource GetManagedOpResource(this ArmClient client, ResourceIdentifier id)
+ {
+ Argument.AssertNotNull(client, nameof(client));
+
+ return GetMockableManagedOpsArmClient(client).GetManagedOpResource(id);
+ }
+
+ ///
+ /// Gets a collection of ManagedOpResources in the SubscriptionResource.
+ /// -
+ /// Mocking
+ /// To mock this method, please mock instead.
+ ///
+ ///
+ /// The instance the method will execute against.
+ /// is null.
+ /// An object representing collection of ManagedOpResources and their operations over a ManagedOpResource.
+ public static ManagedOpCollection GetManagedOps(this SubscriptionResource subscriptionResource)
+ {
+ Argument.AssertNotNull(subscriptionResource, nameof(subscriptionResource));
+
+ return GetMockableManagedOpsSubscriptionResource(subscriptionResource).GetManagedOps();
+ }
+
+ ///
+ /// Gets the information of the ManagedOps instance.
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/providers/Microsoft.ManagedOps/managedOps/{managedOpsName}
+ ///
+ /// -
+ /// Operation Id
+ /// ManagedOp_Get
+ ///
+ /// -
+ /// Default Api Version
+ /// 2025-07-28-preview
+ ///
+ /// -
+ /// Resource
+ ///
+ ///
+ ///
+ /// -
+ /// Mocking
+ /// To mock this method, please mock instead.
+ ///
+ ///
+ /// The instance the method will execute against.
+ /// Name of the resource.
+ /// The cancellation token to use.
+ /// or is null.
+ /// is an empty string, and was expected to be non-empty.
+ [ForwardsClientCalls]
+ public static async Task> GetManagedOpAsync(this SubscriptionResource subscriptionResource, string managedOpsName, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNull(subscriptionResource, nameof(subscriptionResource));
+
+ return await GetMockableManagedOpsSubscriptionResource(subscriptionResource).GetManagedOpAsync(managedOpsName, cancellationToken).ConfigureAwait(false);
+ }
+
+ ///
+ /// Gets the information of the ManagedOps instance.
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/providers/Microsoft.ManagedOps/managedOps/{managedOpsName}
+ ///
+ /// -
+ /// Operation Id
+ /// ManagedOp_Get
+ ///
+ /// -
+ /// Default Api Version
+ /// 2025-07-28-preview
+ ///
+ /// -
+ /// Resource
+ ///
+ ///
+ ///
+ /// -
+ /// Mocking
+ /// To mock this method, please mock instead.
+ ///
+ ///
+ /// The instance the method will execute against.
+ /// Name of the resource.
+ /// The cancellation token to use.
+ /// or is null.
+ /// is an empty string, and was expected to be non-empty.
+ [ForwardsClientCalls]
+ public static Response GetManagedOp(this SubscriptionResource subscriptionResource, string managedOpsName, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNull(subscriptionResource, nameof(subscriptionResource));
+
+ return GetMockableManagedOpsSubscriptionResource(subscriptionResource).GetManagedOp(managedOpsName, cancellationToken);
+ }
+ }
+}
diff --git a/sdk/managedops/Azure.ResourceManager.ManagedOps/src/Generated/Extensions/MockableManagedOpsArmClient.cs b/sdk/managedops/Azure.ResourceManager.ManagedOps/src/Generated/Extensions/MockableManagedOpsArmClient.cs
new file mode 100644
index 000000000000..dc6f44bfc198
--- /dev/null
+++ b/sdk/managedops/Azure.ResourceManager.ManagedOps/src/Generated/Extensions/MockableManagedOpsArmClient.cs
@@ -0,0 +1,49 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using Azure.Core;
+
+namespace Azure.ResourceManager.ManagedOps.Mocking
+{
+ /// A class to add extension methods to ArmClient.
+ public partial class MockableManagedOpsArmClient : ArmResource
+ {
+ /// Initializes a new instance of the class for mocking.
+ protected MockableManagedOpsArmClient()
+ {
+ }
+
+ /// 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 MockableManagedOpsArmClient(ArmClient client, ResourceIdentifier id) : base(client, id)
+ {
+ }
+
+ internal MockableManagedOpsArmClient(ArmClient client) : this(client, ResourceIdentifier.Root)
+ {
+ }
+
+ private string GetApiVersionOrNull(ResourceType resourceType)
+ {
+ TryGetApiVersion(resourceType, out string apiVersion);
+ return apiVersion;
+ }
+
+ ///
+ /// Gets an object representing a along with the instance operations that can be performed on it but with no data.
+ /// You can use to create a from its components.
+ ///
+ /// The resource ID of the resource to get.
+ /// Returns a object.
+ public virtual ManagedOpResource GetManagedOpResource(ResourceIdentifier id)
+ {
+ ManagedOpResource.ValidateResourceId(id);
+ return new ManagedOpResource(Client, id);
+ }
+ }
+}
diff --git a/sdk/managedops/Azure.ResourceManager.ManagedOps/src/Generated/Extensions/MockableManagedOpsSubscriptionResource.cs b/sdk/managedops/Azure.ResourceManager.ManagedOps/src/Generated/Extensions/MockableManagedOpsSubscriptionResource.cs
new file mode 100644
index 000000000000..f0fedf40c06e
--- /dev/null
+++ b/sdk/managedops/Azure.ResourceManager.ManagedOps/src/Generated/Extensions/MockableManagedOpsSubscriptionResource.cs
@@ -0,0 +1,105 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.Threading;
+using System.Threading.Tasks;
+using Azure.Core;
+
+namespace Azure.ResourceManager.ManagedOps.Mocking
+{
+ /// A class to add extension methods to SubscriptionResource.
+ public partial class MockableManagedOpsSubscriptionResource : ArmResource
+ {
+ /// Initializes a new instance of the class for mocking.
+ protected MockableManagedOpsSubscriptionResource()
+ {
+ }
+
+ /// 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 MockableManagedOpsSubscriptionResource(ArmClient client, ResourceIdentifier id) : base(client, id)
+ {
+ }
+
+ private string GetApiVersionOrNull(ResourceType resourceType)
+ {
+ TryGetApiVersion(resourceType, out string apiVersion);
+ return apiVersion;
+ }
+
+ /// Gets a collection of ManagedOpResources in the SubscriptionResource.
+ /// An object representing collection of ManagedOpResources and their operations over a ManagedOpResource.
+ public virtual ManagedOpCollection GetManagedOps()
+ {
+ return GetCachedClient(client => new ManagedOpCollection(client, Id));
+ }
+
+ ///
+ /// Gets the information of the ManagedOps instance.
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/providers/Microsoft.ManagedOps/managedOps/{managedOpsName}
+ ///
+ /// -
+ /// Operation Id
+ /// ManagedOp_Get
+ ///
+ /// -
+ /// Default Api Version
+ /// 2025-07-28-preview
+ ///
+ /// -
+ /// Resource
+ ///
+ ///
+ ///
+ ///
+ /// Name of the resource.
+ /// The cancellation token to use.
+ /// is null.
+ /// is an empty string, and was expected to be non-empty.
+ [ForwardsClientCalls]
+ public virtual async Task> GetManagedOpAsync(string managedOpsName, CancellationToken cancellationToken = default)
+ {
+ return await GetManagedOps().GetAsync(managedOpsName, cancellationToken).ConfigureAwait(false);
+ }
+
+ ///
+ /// Gets the information of the ManagedOps instance.
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/providers/Microsoft.ManagedOps/managedOps/{managedOpsName}
+ ///
+ /// -
+ /// Operation Id
+ /// ManagedOp_Get
+ ///
+ /// -
+ /// Default Api Version
+ /// 2025-07-28-preview
+ ///
+ /// -
+ /// Resource
+ ///
+ ///
+ ///
+ ///
+ /// Name of the resource.
+ /// The cancellation token to use.
+ /// is null.
+ /// is an empty string, and was expected to be non-empty.
+ [ForwardsClientCalls]
+ public virtual Response GetManagedOp(string managedOpsName, CancellationToken cancellationToken = default)
+ {
+ return GetManagedOps().Get(managedOpsName, cancellationToken);
+ }
+ }
+}
diff --git a/sdk/managedops/Azure.ResourceManager.ManagedOps/src/Generated/Internal/Argument.cs b/sdk/managedops/Azure.ResourceManager.ManagedOps/src/Generated/Internal/Argument.cs
new file mode 100644
index 000000000000..cbfbe686da94
--- /dev/null
+++ b/sdk/managedops/Azure.ResourceManager.ManagedOps/src/Generated/Internal/Argument.cs
@@ -0,0 +1,129 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.Collections;
+using System.Collections.Generic;
+
+namespace Azure.ResourceManager.ManagedOps
+{
+ internal static class Argument
+ {
+ public static void AssertNotNull(T value, string name)
+ {
+ if (value is null)
+ {
+ throw new ArgumentNullException(name);
+ }
+ }
+
+ public static void AssertNotNull(T? value, string name)
+ where T : struct
+ {
+ if (!value.HasValue)
+ {
+ throw new ArgumentNullException(name);
+ }
+ }
+
+ public static void AssertNotNullOrEmpty(IEnumerable value, string name)
+ {
+ if (value is null)
+ {
+ throw new ArgumentNullException(name);
+ }
+ if (value is ICollection collectionOfT && collectionOfT.Count == 0)
+ {
+ throw new ArgumentException("Value cannot be an empty collection.", name);
+ }
+ if (value is ICollection collection && collection.Count == 0)
+ {
+ throw new ArgumentException("Value cannot be an empty collection.", name);
+ }
+ using IEnumerator e = value.GetEnumerator();
+ if (!e.MoveNext())
+ {
+ throw new ArgumentException("Value cannot be an empty collection.", name);
+ }
+ }
+
+ public static void AssertNotNullOrEmpty(string value, string name)
+ {
+ if (value is null)
+ {
+ throw new ArgumentNullException(name);
+ }
+ if (value.Length == 0)
+ {
+ throw new ArgumentException("Value cannot be an empty string.", name);
+ }
+ }
+
+ public static void AssertNotNullOrWhiteSpace(string value, string name)
+ {
+ if (value is null)
+ {
+ throw new ArgumentNullException(name);
+ }
+ if (string.IsNullOrWhiteSpace(value))
+ {
+ throw new ArgumentException("Value cannot be empty or contain only white-space characters.", name);
+ }
+ }
+
+ public static void AssertNotDefault(ref T value, string name)
+ where T : struct, IEquatable
+ {
+ if (value.Equals(default))
+ {
+ throw new ArgumentException("Value cannot be empty.", name);
+ }
+ }
+
+ public static void AssertInRange(T value, T minimum, T maximum, string name)
+ where T : notnull, IComparable
+ {
+ if (minimum.CompareTo(value) > 0)
+ {
+ throw new ArgumentOutOfRangeException(name, "Value is less than the minimum allowed.");
+ }
+ if (maximum.CompareTo(value) < 0)
+ {
+ throw new ArgumentOutOfRangeException(name, "Value is greater than the maximum allowed.");
+ }
+ }
+
+ public static void AssertEnumDefined(Type enumType, object value, string name)
+ {
+ if (!Enum.IsDefined(enumType, value))
+ {
+ throw new ArgumentException($"Value not defined for {enumType.FullName}.", name);
+ }
+ }
+
+ public static T CheckNotNull(T value, string name)
+ where T : class
+ {
+ AssertNotNull(value, name);
+ return value;
+ }
+
+ public static string CheckNotNullOrEmpty(string value, string name)
+ {
+ AssertNotNullOrEmpty(value, name);
+ return value;
+ }
+
+ public static void AssertNull(T value, string name, string message = null)
+ {
+ if (value != null)
+ {
+ throw new ArgumentException(message ?? "Value must be null.", name);
+ }
+ }
+ }
+}
diff --git a/sdk/managedops/Azure.ResourceManager.ManagedOps/src/Generated/Internal/ChangeTrackingDictionary.cs b/sdk/managedops/Azure.ResourceManager.ManagedOps/src/Generated/Internal/ChangeTrackingDictionary.cs
new file mode 100644
index 000000000000..ea6cf9b3faa9
--- /dev/null
+++ b/sdk/managedops/Azure.ResourceManager.ManagedOps/src/Generated/Internal/ChangeTrackingDictionary.cs
@@ -0,0 +1,167 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.Collections;
+using System.Collections.Generic;
+
+namespace Azure.ResourceManager.ManagedOps
+{
+ internal class ChangeTrackingDictionary : IDictionary, IReadOnlyDictionary where TKey : notnull
+ {
+ private IDictionary _innerDictionary;
+
+ public ChangeTrackingDictionary()
+ {
+ }
+
+ public ChangeTrackingDictionary(IDictionary dictionary)
+ {
+ if (dictionary == null)
+ {
+ return;
+ }
+ _innerDictionary = new Dictionary(dictionary);
+ }
+
+ public ChangeTrackingDictionary(IReadOnlyDictionary dictionary)
+ {
+ if (dictionary == null)
+ {
+ return;
+ }
+ _innerDictionary = new Dictionary();
+ foreach (var pair in dictionary)
+ {
+ _innerDictionary.Add(pair);
+ }
+ }
+
+ public bool IsUndefined => _innerDictionary == null;
+
+ public int Count => IsUndefined ? 0 : EnsureDictionary().Count;
+
+ public bool IsReadOnly => IsUndefined ? false : EnsureDictionary().IsReadOnly;
+
+ public ICollection Keys => IsUndefined ? Array.Empty() : EnsureDictionary().Keys;
+
+ public ICollection Values => IsUndefined ? Array.Empty() : EnsureDictionary().Values;
+
+ public TValue this[TKey key]
+ {
+ get
+ {
+ if (IsUndefined)
+ {
+ throw new KeyNotFoundException(nameof(key));
+ }
+ return EnsureDictionary()[key];
+ }
+ set
+ {
+ EnsureDictionary()[key] = value;
+ }
+ }
+
+ IEnumerable IReadOnlyDictionary.Keys => Keys;
+
+ IEnumerable IReadOnlyDictionary.Values => Values;
+
+ public IEnumerator> GetEnumerator()
+ {
+ if (IsUndefined)
+ {
+ IEnumerator> enumerateEmpty()
+ {
+ yield break;
+ }
+ return enumerateEmpty();
+ }
+ return EnsureDictionary().GetEnumerator();
+ }
+
+ IEnumerator IEnumerable.GetEnumerator()
+ {
+ return GetEnumerator();
+ }
+
+ public void Add(KeyValuePair item)
+ {
+ EnsureDictionary().Add(item);
+ }
+
+ public void Clear()
+ {
+ EnsureDictionary().Clear();
+ }
+
+ public bool Contains(KeyValuePair item)
+ {
+ if (IsUndefined)
+ {
+ return false;
+ }
+ return EnsureDictionary().Contains(item);
+ }
+
+ public void CopyTo(KeyValuePair[] array, int index)
+ {
+ if (IsUndefined)
+ {
+ return;
+ }
+ EnsureDictionary().CopyTo(array, index);
+ }
+
+ public bool Remove(KeyValuePair item)
+ {
+ if (IsUndefined)
+ {
+ return false;
+ }
+ return EnsureDictionary().Remove(item);
+ }
+
+ public void Add(TKey key, TValue value)
+ {
+ EnsureDictionary().Add(key, value);
+ }
+
+ public bool ContainsKey(TKey key)
+ {
+ if (IsUndefined)
+ {
+ return false;
+ }
+ return EnsureDictionary().ContainsKey(key);
+ }
+
+ public bool Remove(TKey key)
+ {
+ if (IsUndefined)
+ {
+ return false;
+ }
+ return EnsureDictionary().Remove(key);
+ }
+
+ public bool TryGetValue(TKey key, out TValue value)
+ {
+ if (IsUndefined)
+ {
+ value = default;
+ return false;
+ }
+ return EnsureDictionary().TryGetValue(key, out value);
+ }
+
+ public IDictionary EnsureDictionary()
+ {
+ return _innerDictionary ??= new Dictionary();
+ }
+ }
+}
diff --git a/sdk/managedops/Azure.ResourceManager.ManagedOps/src/Generated/Internal/ChangeTrackingList.cs b/sdk/managedops/Azure.ResourceManager.ManagedOps/src/Generated/Internal/ChangeTrackingList.cs
new file mode 100644
index 000000000000..854d641e505d
--- /dev/null
+++ b/sdk/managedops/Azure.ResourceManager.ManagedOps/src/Generated/Internal/ChangeTrackingList.cs
@@ -0,0 +1,153 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.Collections;
+using System.Collections.Generic;
+using System.Linq;
+
+namespace Azure.ResourceManager.ManagedOps
+{
+ internal class ChangeTrackingList : IList, IReadOnlyList
+ {
+ private IList _innerList;
+
+ public ChangeTrackingList()
+ {
+ }
+
+ public ChangeTrackingList(IList innerList)
+ {
+ if (innerList != null)
+ {
+ _innerList = innerList;
+ }
+ }
+
+ public ChangeTrackingList(IReadOnlyList innerList)
+ {
+ if (innerList != null)
+ {
+ _innerList = innerList.ToList();
+ }
+ }
+
+ public bool IsUndefined => _innerList == null;
+
+ public int Count => IsUndefined ? 0 : EnsureList().Count;
+
+ public bool IsReadOnly => IsUndefined ? false : EnsureList().IsReadOnly;
+
+ public T this[int index]
+ {
+ get
+ {
+ if (IsUndefined)
+ {
+ throw new ArgumentOutOfRangeException(nameof(index));
+ }
+ return EnsureList()[index];
+ }
+ set
+ {
+ if (IsUndefined)
+ {
+ throw new ArgumentOutOfRangeException(nameof(index));
+ }
+ EnsureList()[index] = value;
+ }
+ }
+
+ public void Reset()
+ {
+ _innerList = null;
+ }
+
+ public IEnumerator GetEnumerator()
+ {
+ if (IsUndefined)
+ {
+ IEnumerator enumerateEmpty()
+ {
+ yield break;
+ }
+ return enumerateEmpty();
+ }
+ return EnsureList().GetEnumerator();
+ }
+
+ IEnumerator IEnumerable.GetEnumerator()
+ {
+ return GetEnumerator();
+ }
+
+ public void Add(T item)
+ {
+ EnsureList().Add(item);
+ }
+
+ public void Clear()
+ {
+ EnsureList().Clear();
+ }
+
+ public bool Contains(T item)
+ {
+ if (IsUndefined)
+ {
+ return false;
+ }
+ return EnsureList().Contains(item);
+ }
+
+ public void CopyTo(T[] array, int arrayIndex)
+ {
+ if (IsUndefined)
+ {
+ return;
+ }
+ EnsureList().CopyTo(array, arrayIndex);
+ }
+
+ public bool Remove(T item)
+ {
+ if (IsUndefined)
+ {
+ return false;
+ }
+ return EnsureList().Remove(item);
+ }
+
+ public int IndexOf(T item)
+ {
+ if (IsUndefined)
+ {
+ return -1;
+ }
+ return EnsureList().IndexOf(item);
+ }
+
+ public void Insert(int index, T item)
+ {
+ EnsureList().Insert(index, item);
+ }
+
+ public void RemoveAt(int index)
+ {
+ if (IsUndefined)
+ {
+ throw new ArgumentOutOfRangeException(nameof(index));
+ }
+ EnsureList().RemoveAt(index);
+ }
+
+ public IList EnsureList()
+ {
+ return _innerList ??= new List();
+ }
+ }
+}
diff --git a/sdk/managedops/Azure.ResourceManager.ManagedOps/src/Generated/Internal/ModelSerializationExtensions.cs b/sdk/managedops/Azure.ResourceManager.ManagedOps/src/Generated/Internal/ModelSerializationExtensions.cs
new file mode 100644
index 000000000000..31ec1781682c
--- /dev/null
+++ b/sdk/managedops/Azure.ResourceManager.ManagedOps/src/Generated/Internal/ModelSerializationExtensions.cs
@@ -0,0 +1,409 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.ClientModel.Primitives;
+using System.Collections.Generic;
+using System.Diagnostics;
+using System.Globalization;
+using System.Text.Json;
+using System.Xml;
+using Azure.Core;
+
+namespace Azure.ResourceManager.ManagedOps
+{
+ internal static class ModelSerializationExtensions
+ {
+ internal static readonly JsonDocumentOptions JsonDocumentOptions = new JsonDocumentOptions { MaxDepth = 256 };
+ internal static readonly ModelReaderWriterOptions WireOptions = new ModelReaderWriterOptions("W");
+ internal static readonly ModelReaderWriterOptions WireV3Options = new ModelReaderWriterOptions("W|v3");
+ internal static readonly ModelReaderWriterOptions JsonV3Options = new ModelReaderWriterOptions("J|v3");
+ internal static readonly BinaryData SentinelValue = BinaryData.FromBytes("\"__EMPTY__\""u8.ToArray());
+
+ public static object GetObject(this JsonElement element)
+ {
+ switch (element.ValueKind)
+ {
+ case JsonValueKind.String:
+ return element.GetString();
+ case JsonValueKind.Number:
+ if (element.TryGetInt32(out int intValue))
+ {
+ return intValue;
+ }
+ if (element.TryGetInt64(out long longValue))
+ {
+ return longValue;
+ }
+ return element.GetDouble();
+ case JsonValueKind.True:
+ return true;
+ case JsonValueKind.False:
+ return false;
+ case JsonValueKind.Undefined:
+ case JsonValueKind.Null:
+ return null;
+ case JsonValueKind.Object:
+ var dictionary = new Dictionary();
+ foreach (var jsonProperty in element.EnumerateObject())
+ {
+ dictionary.Add(jsonProperty.Name, jsonProperty.Value.GetObject());
+ }
+ return dictionary;
+ case JsonValueKind.Array:
+ var list = new List