diff --git a/sdk/hybriddatamanager/Azure.ResourceManager.HybridData/Azure.ResourceManager.HybridData.sln b/sdk/hybriddatamanager/Azure.ResourceManager.HybridData/Azure.ResourceManager.HybridData.sln
deleted file mode 100644
index f93e8ccd076b..000000000000
--- a/sdk/hybriddatamanager/Azure.ResourceManager.HybridData/Azure.ResourceManager.HybridData.sln
+++ /dev/null
@@ -1,53 +0,0 @@
-
-Microsoft Visual Studio Solution File, Format Version 12.00
-# Visual Studio Version 16
-VisualStudioVersion = 16.0.30309.148
-MinimumVisualStudioVersion = 10.0.40219.1
-Project("{C847C6EC-5FD5-4345-BAF4-9711EF3F9ED9}") = "Azure.ResourceManager.HybridData", "src\Azure.ResourceManager.HybridData.csproj", "{8CE7134C-B2F1-4497-BE4E-54DB5012267A}"
-EndProject
-Project("{C847C6EC-5FD5-4345-BAF4-9711EF3F9ED9}") = "Azure.ResourceManager.HybridData.Tests", "tests\Azure.ResourceManager.HybridData.Tests.csproj", "{D8AC3A0D-D0FB-4AE0-8451-6213278E7F2F}"
-EndProject
-Project("{C847C6EC-5FD5-4345-BAF4-9711EF3F9ED9}") = "Azure.ResourceManager.HybridData.Samples", "samples\Azure.ResourceManager.HybridData.Samples.csproj", "{7938CA22-B6A8-4D28-93D1-F4657C260608}"
-EndProject
-Global
- GlobalSection(SolutionProperties) = preSolution
- HideSolutionNode = FALSE
- EndGlobalSection
- GlobalSection(ExtensibilityGlobals) = postSolution
- SolutionGuid = {A2A8D6CF-F96E-4425-A1AA-1DD7230A776D}
- 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
- {8CE7134C-B2F1-4497-BE4E-54DB5012267A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {8CE7134C-B2F1-4497-BE4E-54DB5012267A}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {8CE7134C-B2F1-4497-BE4E-54DB5012267A}.Debug|x64.ActiveCfg = Debug|Any CPU
- {8CE7134C-B2F1-4497-BE4E-54DB5012267A}.Debug|x64.Build.0 = Debug|Any CPU
- {8CE7134C-B2F1-4497-BE4E-54DB5012267A}.Debug|x86.ActiveCfg = Debug|Any CPU
- {8CE7134C-B2F1-4497-BE4E-54DB5012267A}.Debug|x86.Build.0 = Debug|Any CPU
- {8CE7134C-B2F1-4497-BE4E-54DB5012267A}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {8CE7134C-B2F1-4497-BE4E-54DB5012267A}.Release|Any CPU.Build.0 = Release|Any CPU
- {8CE7134C-B2F1-4497-BE4E-54DB5012267A}.Release|x64.ActiveCfg = Release|Any CPU
- {8CE7134C-B2F1-4497-BE4E-54DB5012267A}.Release|x64.Build.0 = Release|Any CPU
- {8CE7134C-B2F1-4497-BE4E-54DB5012267A}.Release|x86.ActiveCfg = Release|Any CPU
- {8CE7134C-B2F1-4497-BE4E-54DB5012267A}.Release|x86.Build.0 = Release|Any CPU
- {D8AC3A0D-D0FB-4AE0-8451-6213278E7F2F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {D8AC3A0D-D0FB-4AE0-8451-6213278E7F2F}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {D8AC3A0D-D0FB-4AE0-8451-6213278E7F2F}.Debug|x64.ActiveCfg = Debug|Any CPU
- {D8AC3A0D-D0FB-4AE0-8451-6213278E7F2F}.Debug|x64.Build.0 = Debug|Any CPU
- {D8AC3A0D-D0FB-4AE0-8451-6213278E7F2F}.Debug|x86.ActiveCfg = Debug|Any CPU
- {D8AC3A0D-D0FB-4AE0-8451-6213278E7F2F}.Debug|x86.Build.0 = Debug|Any CPU
- {D8AC3A0D-D0FB-4AE0-8451-6213278E7F2F}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {D8AC3A0D-D0FB-4AE0-8451-6213278E7F2F}.Release|Any CPU.Build.0 = Release|Any CPU
- {D8AC3A0D-D0FB-4AE0-8451-6213278E7F2F}.Release|x64.ActiveCfg = Release|Any CPU
- {D8AC3A0D-D0FB-4AE0-8451-6213278E7F2F}.Release|x64.Build.0 = Release|Any CPU
- {D8AC3A0D-D0FB-4AE0-8451-6213278E7F2F}.Release|x86.ActiveCfg = Release|Any CPU
- {D8AC3A0D-D0FB-4AE0-8451-6213278E7F2F}.Release|x86.Build.0 = Release|Any CPU
- EndGlobalSection
-EndGlobal
diff --git a/sdk/hybriddatamanager/Azure.ResourceManager.HybridData/CHANGELOG.md b/sdk/hybriddatamanager/Azure.ResourceManager.HybridData/CHANGELOG.md
deleted file mode 100644
index ba9cf2d09b7d..000000000000
--- a/sdk/hybriddatamanager/Azure.ResourceManager.HybridData/CHANGELOG.md
+++ /dev/null
@@ -1,62 +0,0 @@
-# Release History
-
-## 1.1.0-beta.2 (Unreleased)
-
-### Features Added
-
-### Breaking Changes
-
-### Bugs Fixed
-
-### Other Changes
-
-## 1.1.0-beta.1 (2023-05-30)
-
-### Features Added
-
-- Enable the model factory feature for model mocking, more information can be found [here](https://azure.github.io/azure-sdk/dotnet_introduction.html#dotnet-mocking-factory-builder).
-
-### Other Changes
-
-- Upgraded dependent Azure.Core to 1.32.0.
-- Upgraded dependent Azure.ResourceManager to 1.6.0.
-
-## 1.0.1 (2023-02-17)
-
-### Other Changes
-
-- Upgraded dependent `Azure.Core` to `1.28.0`.
-- Upgraded dependent `Azure.ResourceManager` to `1.4.0`.
-
-## 1.0.0 (2022-11-04)
-
-This package is the first stable release of the Microsoft Azure Hybrid Data management client library.
-
-### Other Changes
-
-- Updated the README file according to Azure SDK documentation guidelines.
-
-## 1.0.0-beta.1 (2022-10-26)
-
-### Breaking Changes
-
-New design of track 2 initial commit.
-
-### Package Name
-
-The package name has been changed from `Microsoft.Azure.Management.HybridData` to `Azure.ResourceManager.HybridData`.
-
-### 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/hybriddatamanager/Azure.ResourceManager.HybridData/Directory.Build.props b/sdk/hybriddatamanager/Azure.ResourceManager.HybridData/Directory.Build.props
deleted file mode 100644
index 1a9611bd4924..000000000000
--- a/sdk/hybriddatamanager/Azure.ResourceManager.HybridData/Directory.Build.props
+++ /dev/null
@@ -1,6 +0,0 @@
-
-
-
-
diff --git a/sdk/hybriddatamanager/Azure.ResourceManager.HybridData/README.md b/sdk/hybriddatamanager/Azure.ResourceManager.HybridData/README.md
deleted file mode 100644
index 8884d10bce04..000000000000
--- a/sdk/hybriddatamanager/Azure.ResourceManager.HybridData/README.md
+++ /dev/null
@@ -1,80 +0,0 @@
-# Microsoft Azure Hybrid Data management client library for .NET
-
-This library supports managing Microsoft Azure Hybrid Data resources.
-
-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 Hybrid Data management library for .NET with [NuGet](https://www.nuget.org/):
-
-```dotnetcli
-dotnet add package Azure.ResourceManager.HybridData
-```
-
-### Prerequisites
-
-* You must have an [Microsoft Azure subscription](https://azure.microsoft.com/free/dotnet/).
-
-### Authenticate the Client
-
-To create an authenticated client and start interacting with Microsoft Azure resources, see the [quickstart guide here](https://github.com/Azure/azure-sdk-for-net/blob/main/doc/dev/mgmt_quickstart.md).
-
-## Key concepts
-
-Key concepts of the Microsoft Azure SDK for .NET can be found [here](https://azure.github.io/azure-sdk/dotnet_introduction.html).
-
-## Documentation
-
-Documentation is available to help you learn how to use this package:
-
-- [Quickstart](https://github.com/Azure/azure-sdk-for-net/blob/main/doc/dev/mgmt_quickstart.md).
-- [API References](https://docs.microsoft.com/dotnet/api/?view=azure-dotnet).
-- [Authentication](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/identity/Azure.Identity/README.md).
-
-## Examples
-
-Code samples for using the management library for .NET can be found in the following locations
-- [.NET Management Library Code Samples](https://aka.ms/azuresdk-net-mgmt-samples)
-
-## Troubleshooting
-
-- File an issue via [GitHub Issues](https://github.com/Azure/azure-sdk-for-net/issues).
-- Check [previous questions](https://stackoverflow.com/questions/tagged/azure+.net) or ask new ones on Stack Overflow using Azure and .NET tags.
-
-## Next steps
-
-For more information about Microsoft Azure SDK, see [this website](https://azure.github.io/azure-sdk/).
-
-## Contributing
-
-For details on contributing to this repository, see the [contributing
-guide][cg].
-
-This project welcomes contributions and suggestions. Most contributions
-require you to agree to a Contributor License Agreement (CLA) declaring
-that you have the right to, and actually do, grant us the rights to use
-your contribution. For details, visit .
-
-When you submit a pull request, a CLA-bot will automatically determine
-whether you need to provide a CLA and decorate the PR appropriately
-(for example, label, comment). Follow the instructions provided by the
-bot. You'll only need to do this action once across all repositories
-using our CLA.
-
-This project has adopted the [Microsoft Open Source Code of Conduct][coc]. For
-more information, see the [Code of Conduct FAQ][coc_faq] or contact
- with any other questions or comments.
-
-
-[cg]: https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/resourcemanager/Azure.ResourceManager/docs/CONTRIBUTING.md
-[coc]: https://opensource.microsoft.com/codeofconduct/
-[coc_faq]: https://opensource.microsoft.com/codeofconduct/faq/
\ No newline at end of file
diff --git a/sdk/hybriddatamanager/Azure.ResourceManager.HybridData/api/Azure.ResourceManager.HybridData.netstandard2.0.cs b/sdk/hybriddatamanager/Azure.ResourceManager.HybridData/api/Azure.ResourceManager.HybridData.netstandard2.0.cs
deleted file mode 100644
index fc92ba6e08a5..000000000000
--- a/sdk/hybriddatamanager/Azure.ResourceManager.HybridData/api/Azure.ResourceManager.HybridData.netstandard2.0.cs
+++ /dev/null
@@ -1,444 +0,0 @@
-namespace Azure.ResourceManager.HybridData
-{
- public static partial class HybridDataExtensions
- {
- public static Azure.ResourceManager.HybridData.HybridDataJobDefinitionResource GetHybridDataJobDefinitionResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; }
- public static Azure.ResourceManager.HybridData.HybridDataJobResource GetHybridDataJobResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; }
- public static Azure.Response GetHybridDataManager(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string dataManagerName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
- public static System.Threading.Tasks.Task> GetHybridDataManagerAsync(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string dataManagerName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
- public static Azure.ResourceManager.HybridData.HybridDataManagerResource GetHybridDataManagerResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; }
- public static Azure.ResourceManager.HybridData.HybridDataManagerCollection GetHybridDataManagers(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource) { throw null; }
- public static Azure.Pageable GetHybridDataManagers(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
- public static Azure.AsyncPageable GetHybridDataManagersAsync(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
- public static Azure.ResourceManager.HybridData.HybridDataPublicKeyResource GetHybridDataPublicKeyResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; }
- public static Azure.ResourceManager.HybridData.HybridDataServiceResource GetHybridDataServiceResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; }
- public static Azure.ResourceManager.HybridData.HybridDataStoreResource GetHybridDataStoreResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; }
- public static Azure.ResourceManager.HybridData.HybridDataStoreTypeResource GetHybridDataStoreTypeResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; }
- }
- public partial class HybridDataJobCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable
- {
- protected HybridDataJobCollection() { }
- public virtual Azure.Response Exists(string jobId, string expand = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
- public virtual System.Threading.Tasks.Task> ExistsAsync(string jobId, string expand = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
- public virtual Azure.Response Get(string jobId, string expand = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
- public virtual Azure.Pageable GetAll(string filter = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
- public virtual Azure.AsyncPageable GetAllAsync(string filter = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
- public virtual System.Threading.Tasks.Task> GetAsync(string jobId, string expand = null, 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 HybridDataJobData : Azure.ResourceManager.Models.ResourceData
- {
- public HybridDataJobData(Azure.ResourceManager.HybridData.Models.HybridDataJobStatus status, System.DateTimeOffset startOn, Azure.ResourceManager.HybridData.Models.JobCancellationSetting isCancellable) { }
- public long? BytesProcessed { get { throw null; } set { } }
- public string DataSinkName { get { throw null; } set { } }
- public string DataSourceName { get { throw null; } set { } }
- public Azure.ResourceManager.HybridData.Models.HybridDataJobDetails Details { get { throw null; } set { } }
- public System.DateTimeOffset? EndOn { get { throw null; } set { } }
- public Azure.ResourceManager.HybridData.Models.HybridDataJobTopLevelError Error { get { throw null; } set { } }
- public Azure.ResourceManager.HybridData.Models.JobCancellationSetting IsCancellable { get { throw null; } set { } }
- public long? ItemsProcessed { get { throw null; } set { } }
- public System.DateTimeOffset StartOn { get { throw null; } set { } }
- public Azure.ResourceManager.HybridData.Models.HybridDataJobStatus Status { get { throw null; } set { } }
- public long? TotalBytesToProcess { get { throw null; } set { } }
- public long? TotalItemsToProcess { get { throw null; } set { } }
- }
- public partial class HybridDataJobDefinitionCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable
- {
- protected HybridDataJobDefinitionCollection() { }
- public virtual Azure.ResourceManager.ArmOperation CreateOrUpdate(Azure.WaitUntil waitUntil, string jobDefinitionName, Azure.ResourceManager.HybridData.HybridDataJobDefinitionData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
- public virtual System.Threading.Tasks.Task> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, string jobDefinitionName, Azure.ResourceManager.HybridData.HybridDataJobDefinitionData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
- public virtual Azure.Response Exists(string jobDefinitionName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
- public virtual System.Threading.Tasks.Task> ExistsAsync(string jobDefinitionName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
- public virtual Azure.Response Get(string jobDefinitionName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
- public virtual Azure.Pageable GetAll(string filter = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
- public virtual Azure.AsyncPageable GetAllAsync(string filter = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
- public virtual System.Threading.Tasks.Task> GetAsync(string jobDefinitionName, 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 HybridDataJobDefinitionData : Azure.ResourceManager.Models.ResourceData
- {
- public HybridDataJobDefinitionData(string dataSourceId, string dataSinkId, Azure.ResourceManager.HybridData.Models.HybridDataState state) { }
- public System.Collections.Generic.IList CustomerSecrets { get { throw null; } }
- public System.BinaryData DataServiceInput { get { throw null; } set { } }
- public string DataSinkId { get { throw null; } set { } }
- public string DataSourceId { get { throw null; } set { } }
- public System.DateTimeOffset? LastModifiedOn { get { throw null; } set { } }
- public Azure.ResourceManager.HybridData.Models.HybridDataJobRunLocation? RunLocation { get { throw null; } set { } }
- public System.Collections.Generic.IList Schedules { get { throw null; } }
- public Azure.ResourceManager.HybridData.Models.HybridDataState State { get { throw null; } set { } }
- public Azure.ResourceManager.HybridData.Models.UserConfirmationSetting? UserConfirmation { get { throw null; } set { } }
- }
- public partial class HybridDataJobDefinitionResource : Azure.ResourceManager.ArmResource
- {
- public static readonly Azure.Core.ResourceType ResourceType;
- protected HybridDataJobDefinitionResource() { }
- public virtual Azure.ResourceManager.HybridData.HybridDataJobDefinitionData Data { get { throw null; } }
- public virtual bool HasData { get { throw null; } }
- public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string dataManagerName, string dataServiceName, string jobDefinitionName) { throw null; }
- public virtual Azure.ResourceManager.ArmOperation Delete(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
- public virtual System.Threading.Tasks.Task DeleteAsync(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
- public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
- public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
- public virtual Azure.Response GetHybridDataJob(string jobId, string expand = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
- public virtual System.Threading.Tasks.Task> GetHybridDataJobAsync(string jobId, string expand = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
- public virtual Azure.ResourceManager.HybridData.HybridDataJobCollection GetHybridDataJobs() { throw null; }
- public virtual Azure.ResourceManager.ArmOperation Run(Azure.WaitUntil waitUntil, Azure.ResourceManager.HybridData.Models.HybridDataJobRunContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
- public virtual System.Threading.Tasks.Task RunAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.HybridData.Models.HybridDataJobRunContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
- public virtual Azure.ResourceManager.ArmOperation Update(Azure.WaitUntil waitUntil, Azure.ResourceManager.HybridData.HybridDataJobDefinitionData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
- public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.HybridData.HybridDataJobDefinitionData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
- }
- public partial class HybridDataJobResource : Azure.ResourceManager.ArmResource
- {
- public static readonly Azure.Core.ResourceType ResourceType;
- protected HybridDataJobResource() { }
- public virtual Azure.ResourceManager.HybridData.HybridDataJobData Data { get { throw null; } }
- public virtual bool HasData { get { throw null; } }
- public virtual Azure.ResourceManager.ArmOperation Cancel(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
- public virtual System.Threading.Tasks.Task CancelAsync(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
- public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string dataManagerName, string dataServiceName, string jobDefinitionName, string jobId) { throw null; }
- public virtual Azure.Response Get(string expand = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
- public virtual System.Threading.Tasks.Task> GetAsync(string expand = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
- public virtual Azure.ResourceManager.ArmOperation Resume(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
- public virtual System.Threading.Tasks.Task ResumeAsync(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
- }
- public partial class HybridDataManagerCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable
- {
- protected HybridDataManagerCollection() { }
- public virtual Azure.ResourceManager.ArmOperation CreateOrUpdate(Azure.WaitUntil waitUntil, string dataManagerName, Azure.ResourceManager.HybridData.HybridDataManagerData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
- public virtual System.Threading.Tasks.Task> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, string dataManagerName, Azure.ResourceManager.HybridData.HybridDataManagerData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
- public virtual Azure.Response Exists(string dataManagerName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
- public virtual System.Threading.Tasks.Task> ExistsAsync(string dataManagerName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
- public virtual Azure.Response Get(string dataManagerName, 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 dataManagerName, 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 HybridDataManagerData : Azure.ResourceManager.Models.TrackedResourceData
- {
- public HybridDataManagerData(Azure.Core.AzureLocation location) : base (default(Azure.Core.AzureLocation)) { }
- public Azure.ETag? ETag { get { throw null; } set { } }
- public Azure.ResourceManager.HybridData.Models.HybridDataSku Sku { get { throw null; } set { } }
- }
- public partial class HybridDataManagerResource : Azure.ResourceManager.ArmResource
- {
- public static readonly Azure.Core.ResourceType ResourceType;
- protected HybridDataManagerResource() { }
- public virtual Azure.ResourceManager.HybridData.HybridDataManagerData Data { get { throw null; } }
- public virtual bool HasData { get { throw null; } }
- public virtual Azure.Response AddTag(string key, string value, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
- public virtual System.Threading.Tasks.Task> AddTagAsync(string key, string value, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
- public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string dataManagerName) { throw null; }
- public virtual Azure.ResourceManager.ArmOperation Delete(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
- public virtual System.Threading.Tasks.Task DeleteAsync(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
- public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
- public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
- public virtual Azure.Response GetHybridDataPublicKey(string publicKeyName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
- public virtual System.Threading.Tasks.Task> GetHybridDataPublicKeyAsync(string publicKeyName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
- public virtual Azure.ResourceManager.HybridData.HybridDataPublicKeyCollection GetHybridDataPublicKeys() { throw null; }
- public virtual Azure.Response GetHybridDataService(string dataServiceName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
- public virtual System.Threading.Tasks.Task> GetHybridDataServiceAsync(string dataServiceName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
- public virtual Azure.ResourceManager.HybridData.HybridDataServiceCollection GetHybridDataServices() { throw null; }
- public virtual Azure.Response GetHybridDataStore(string dataStoreName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
- public virtual System.Threading.Tasks.Task> GetHybridDataStoreAsync(string dataStoreName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
- public virtual Azure.ResourceManager.HybridData.HybridDataStoreCollection GetHybridDataStores() { throw null; }
- public virtual Azure.Response GetHybridDataStoreType(string dataStoreTypeName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
- public virtual System.Threading.Tasks.Task> GetHybridDataStoreTypeAsync(string dataStoreTypeName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
- public virtual Azure.ResourceManager.HybridData.HybridDataStoreTypeCollection GetHybridDataStoreTypes() { throw null; }
- public virtual Azure.Pageable GetJobDefinitions(string filter = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
- public virtual Azure.AsyncPageable GetJobDefinitionsAsync(string filter = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
- public virtual Azure.Pageable GetJobs(string filter = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
- public virtual Azure.AsyncPageable GetJobsAsync(string filter = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
- public virtual Azure.Response RemoveTag(string key, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
- public virtual System.Threading.Tasks.Task> RemoveTagAsync(string key, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
- public virtual Azure.Response SetTags(System.Collections.Generic.IDictionary tags, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
- public virtual System.Threading.Tasks.Task> SetTagsAsync(System.Collections.Generic.IDictionary tags, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
- public virtual Azure.ResourceManager.ArmOperation Update(Azure.WaitUntil waitUntil, Azure.ResourceManager.HybridData.Models.HybridDataManagerPatch patch, string ifMatch = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
- public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.HybridData.Models.HybridDataManagerPatch patch, string ifMatch = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
- }
- public partial class HybridDataPublicKeyCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable
- {
- protected HybridDataPublicKeyCollection() { }
- public virtual Azure.Response Exists(string publicKeyName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
- public virtual System.Threading.Tasks.Task> ExistsAsync(string publicKeyName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
- public virtual Azure.Response Get(string publicKeyName, 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 publicKeyName, 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 HybridDataPublicKeyData : Azure.ResourceManager.Models.ResourceData
- {
- public HybridDataPublicKeyData(Azure.ResourceManager.HybridData.Models.HybridDataEncryptionKey dataServiceLevel1Key, Azure.ResourceManager.HybridData.Models.HybridDataEncryptionKey dataServiceLevel2Key) { }
- public Azure.ResourceManager.HybridData.Models.HybridDataEncryptionKey DataServiceLevel1Key { get { throw null; } set { } }
- public Azure.ResourceManager.HybridData.Models.HybridDataEncryptionKey DataServiceLevel2Key { get { throw null; } set { } }
- }
- public partial class HybridDataPublicKeyResource : Azure.ResourceManager.ArmResource
- {
- public static readonly Azure.Core.ResourceType ResourceType;
- protected HybridDataPublicKeyResource() { }
- public virtual Azure.ResourceManager.HybridData.HybridDataPublicKeyData Data { get { throw null; } }
- public virtual bool HasData { get { throw null; } }
- public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string dataManagerName, string publicKeyName) { throw null; }
- public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
- public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
- }
- public partial class HybridDataServiceCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable
- {
- protected HybridDataServiceCollection() { }
- public virtual Azure.Response Exists(string dataServiceName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
- public virtual System.Threading.Tasks.Task> ExistsAsync(string dataServiceName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
- public virtual Azure.Response Get(string dataServiceName, 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 dataServiceName, 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 HybridDataServiceData : Azure.ResourceManager.Models.ResourceData
- {
- public HybridDataServiceData(Azure.ResourceManager.HybridData.Models.HybridDataState state) { }
- public Azure.ResourceManager.HybridData.Models.HybridDataState State { get { throw null; } set { } }
- public System.Collections.Generic.IList SupportedDataSinkTypes { get { throw null; } }
- public System.Collections.Generic.IList SupportedDataSourceTypes { get { throw null; } }
- }
- public partial class HybridDataServiceResource : Azure.ResourceManager.ArmResource
- {
- public static readonly Azure.Core.ResourceType ResourceType;
- protected HybridDataServiceResource() { }
- public virtual Azure.ResourceManager.HybridData.HybridDataServiceData Data { get { throw null; } }
- public virtual bool HasData { get { throw null; } }
- public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string dataManagerName, string dataServiceName) { throw null; }
- public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
- public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
- public virtual Azure.Response GetHybridDataJobDefinition(string jobDefinitionName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
- public virtual System.Threading.Tasks.Task> GetHybridDataJobDefinitionAsync(string jobDefinitionName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
- public virtual Azure.ResourceManager.HybridData.HybridDataJobDefinitionCollection GetHybridDataJobDefinitions() { throw null; }
- public virtual Azure.Pageable GetJobs(string filter = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
- public virtual Azure.AsyncPageable GetJobsAsync(string filter = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
- }
- public partial class HybridDataStoreCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable
- {
- protected HybridDataStoreCollection() { }
- public virtual Azure.ResourceManager.ArmOperation CreateOrUpdate(Azure.WaitUntil waitUntil, string dataStoreName, Azure.ResourceManager.HybridData.HybridDataStoreData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
- public virtual System.Threading.Tasks.Task> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, string dataStoreName, Azure.ResourceManager.HybridData.HybridDataStoreData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
- public virtual Azure.Response Exists(string dataStoreName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
- public virtual System.Threading.Tasks.Task> ExistsAsync(string dataStoreName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
- public virtual Azure.Response Get(string dataStoreName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
- public virtual Azure.Pageable GetAll(string filter = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
- public virtual Azure.AsyncPageable GetAllAsync(string filter = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
- public virtual System.Threading.Tasks.Task> GetAsync(string dataStoreName, 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 HybridDataStoreData : Azure.ResourceManager.Models.ResourceData
- {
- public HybridDataStoreData(Azure.ResourceManager.HybridData.Models.HybridDataState state, Azure.Core.ResourceIdentifier dataStoreTypeId) { }
- public System.Collections.Generic.IList CustomerSecrets { get { throw null; } }
- public Azure.Core.ResourceIdentifier DataStoreTypeId { get { throw null; } set { } }
- public System.BinaryData ExtendedProperties { get { throw null; } set { } }
- public Azure.Core.ResourceIdentifier RepositoryId { get { throw null; } set { } }
- public Azure.ResourceManager.HybridData.Models.HybridDataState State { get { throw null; } set { } }
- }
- public partial class HybridDataStoreResource : Azure.ResourceManager.ArmResource
- {
- public static readonly Azure.Core.ResourceType ResourceType;
- protected HybridDataStoreResource() { }
- public virtual Azure.ResourceManager.HybridData.HybridDataStoreData Data { get { throw null; } }
- public virtual bool HasData { get { throw null; } }
- public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string dataManagerName, string dataStoreName) { throw null; }
- public virtual Azure.ResourceManager.ArmOperation Delete(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
- public virtual System.Threading.Tasks.Task DeleteAsync(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
- public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
- public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
- public virtual Azure.ResourceManager.ArmOperation Update(Azure.WaitUntil waitUntil, Azure.ResourceManager.HybridData.HybridDataStoreData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
- public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.HybridData.HybridDataStoreData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
- }
- public partial class HybridDataStoreTypeCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable
- {
- protected HybridDataStoreTypeCollection() { }
- public virtual Azure.Response Exists(string dataStoreTypeName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
- public virtual System.Threading.Tasks.Task> ExistsAsync(string dataStoreTypeName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
- public virtual Azure.Response Get(string dataStoreTypeName, 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 dataStoreTypeName, 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 HybridDataStoreTypeData : Azure.ResourceManager.Models.ResourceData
- {
- public HybridDataStoreTypeData(Azure.ResourceManager.HybridData.Models.HybridDataState state) { }
- public Azure.Core.ResourceType? RepositoryType { get { throw null; } set { } }
- public Azure.ResourceManager.HybridData.Models.HybridDataState State { get { throw null; } set { } }
- public System.Collections.Generic.IList SupportedDataServicesAsSink { get { throw null; } }
- public System.Collections.Generic.IList SupportedDataServicesAsSource { get { throw null; } }
- }
- public partial class HybridDataStoreTypeResource : Azure.ResourceManager.ArmResource
- {
- public static readonly Azure.Core.ResourceType ResourceType;
- protected HybridDataStoreTypeResource() { }
- public virtual Azure.ResourceManager.HybridData.HybridDataStoreTypeData Data { get { throw null; } }
- public virtual bool HasData { get { throw null; } }
- public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string dataManagerName, string dataStoreTypeName) { 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; }
- }
-}
-namespace Azure.ResourceManager.HybridData.Models
-{
- public static partial class ArmHybridDataModelFactory
- {
- public static Azure.ResourceManager.HybridData.HybridDataJobData HybridDataJobData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.HybridData.Models.HybridDataJobStatus status = Azure.ResourceManager.HybridData.Models.HybridDataJobStatus.None, System.DateTimeOffset startOn = default(System.DateTimeOffset), System.DateTimeOffset? endOn = default(System.DateTimeOffset?), Azure.ResourceManager.HybridData.Models.HybridDataJobTopLevelError error = null, Azure.ResourceManager.HybridData.Models.JobCancellationSetting isCancellable = Azure.ResourceManager.HybridData.Models.JobCancellationSetting.NotCancellable, long? bytesProcessed = default(long?), long? itemsProcessed = default(long?), long? totalBytesToProcess = default(long?), long? totalItemsToProcess = default(long?), Azure.ResourceManager.HybridData.Models.HybridDataJobDetails details = null, string dataSourceName = null, string dataSinkName = null) { throw null; }
- public static Azure.ResourceManager.HybridData.HybridDataJobDefinitionData HybridDataJobDefinitionData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, string dataSourceId = null, string dataSinkId = null, System.Collections.Generic.IEnumerable schedules = null, Azure.ResourceManager.HybridData.Models.HybridDataState state = Azure.ResourceManager.HybridData.Models.HybridDataState.Disabled, System.DateTimeOffset? lastModifiedOn = default(System.DateTimeOffset?), Azure.ResourceManager.HybridData.Models.HybridDataJobRunLocation? runLocation = default(Azure.ResourceManager.HybridData.Models.HybridDataJobRunLocation?), Azure.ResourceManager.HybridData.Models.UserConfirmationSetting? userConfirmation = default(Azure.ResourceManager.HybridData.Models.UserConfirmationSetting?), System.BinaryData dataServiceInput = null, System.Collections.Generic.IEnumerable customerSecrets = null) { throw null; }
- public static Azure.ResourceManager.HybridData.HybridDataManagerData HybridDataManagerData(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.ETag? etag = default(Azure.ETag?), Azure.ResourceManager.HybridData.Models.HybridDataSku sku = null) { throw null; }
- public static Azure.ResourceManager.HybridData.HybridDataPublicKeyData HybridDataPublicKeyData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.HybridData.Models.HybridDataEncryptionKey dataServiceLevel1Key = null, Azure.ResourceManager.HybridData.Models.HybridDataEncryptionKey dataServiceLevel2Key = null) { throw null; }
- public static Azure.ResourceManager.HybridData.HybridDataServiceData HybridDataServiceData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.HybridData.Models.HybridDataState state = Azure.ResourceManager.HybridData.Models.HybridDataState.Disabled, System.Collections.Generic.IEnumerable supportedDataSinkTypes = null, System.Collections.Generic.IEnumerable supportedDataSourceTypes = null) { throw null; }
- public static Azure.ResourceManager.HybridData.HybridDataStoreData HybridDataStoreData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.Core.ResourceIdentifier repositoryId = null, Azure.ResourceManager.HybridData.Models.HybridDataState state = Azure.ResourceManager.HybridData.Models.HybridDataState.Disabled, System.BinaryData extendedProperties = null, Azure.Core.ResourceIdentifier dataStoreTypeId = null, System.Collections.Generic.IEnumerable customerSecrets = null) { throw null; }
- public static Azure.ResourceManager.HybridData.HybridDataStoreTypeData HybridDataStoreTypeData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.Core.ResourceType? repositoryType = default(Azure.Core.ResourceType?), Azure.ResourceManager.HybridData.Models.HybridDataState state = Azure.ResourceManager.HybridData.Models.HybridDataState.Disabled, System.Collections.Generic.IEnumerable supportedDataServicesAsSink = null, System.Collections.Generic.IEnumerable supportedDataServicesAsSource = null) { throw null; }
- }
- public partial class HybridDataCustomerSecret
- {
- public HybridDataCustomerSecret(string keyIdentifier, string keyValue, Azure.ResourceManager.HybridData.Models.SupportedEncryptionAlgorithm algorithm) { }
- public Azure.ResourceManager.HybridData.Models.SupportedEncryptionAlgorithm Algorithm { get { throw null; } set { } }
- public string KeyIdentifier { get { throw null; } set { } }
- public string KeyValue { get { throw null; } set { } }
- }
- public partial class HybridDataEncryptionKey
- {
- public HybridDataEncryptionKey(string keyModulus, string keyExponent, int encryptionChunkSizeInBytes) { }
- public int EncryptionChunkSizeInBytes { get { throw null; } set { } }
- public string KeyExponent { get { throw null; } set { } }
- public string KeyModulus { get { throw null; } set { } }
- }
- public partial class HybridDataJobDetails
- {
- public HybridDataJobDetails() { }
- public System.Collections.Generic.IList ErrorDetails { get { throw null; } }
- public string ItemDetailsLink { get { throw null; } set { } }
- public Azure.ResourceManager.HybridData.HybridDataJobDefinitionData JobDefinition { get { throw null; } set { } }
- public System.Collections.Generic.IList JobStages { get { throw null; } }
- }
- public partial class HybridDataJobErrorDetails
- {
- public HybridDataJobErrorDetails() { }
- public int? ErrorCode { get { throw null; } set { } }
- public string ErrorMessage { get { throw null; } set { } }
- public string ExceptionMessage { get { throw null; } set { } }
- public string RecommendedAction { get { throw null; } set { } }
- }
- public partial class HybridDataJobRunContent
- {
- public HybridDataJobRunContent() { }
- public System.Collections.Generic.IList CustomerSecrets { get { throw null; } }
- public System.BinaryData DataServiceInput { get { throw null; } set { } }
- public Azure.ResourceManager.HybridData.Models.UserConfirmationSetting? UserConfirmation { get { throw null; } set { } }
- }
- public enum HybridDataJobRunLocation
- {
- None = 0,
- AustraliaEast = 1,
- AustraliaSoutheast = 2,
- BrazilSouth = 3,
- CanadaCentral = 4,
- CanadaEast = 5,
- CentralIndia = 6,
- CentralUS = 7,
- EastAsia = 8,
- EastUS = 9,
- EastUS2 = 10,
- JapanEast = 11,
- JapanWest = 12,
- KoreaCentral = 13,
- KoreaSouth = 14,
- SoutheastAsia = 15,
- SouthCentralUS = 16,
- SouthIndia = 17,
- NorthCentralUS = 18,
- NorthEurope = 19,
- UKSouth = 20,
- UKWest = 21,
- WestCentralUS = 22,
- WestEurope = 23,
- WestIndia = 24,
- WestUS = 25,
- WestUS2 = 26,
- }
- public partial class HybridDataJobRunSchedule
- {
- public HybridDataJobRunSchedule() { }
- public string Name { get { throw null; } set { } }
- public System.Collections.Generic.IList PolicyList { get { throw null; } }
- }
- public partial class HybridDataJobStage
- {
- public HybridDataJobStage(Azure.ResourceManager.HybridData.Models.HybridDataJobStatus stageStatus) { }
- public System.Collections.Generic.IList ErrorDetails { get { throw null; } }
- public System.BinaryData JobStageDetails { get { throw null; } set { } }
- public string StageName { get { throw null; } set { } }
- public Azure.ResourceManager.HybridData.Models.HybridDataJobStatus StageStatus { get { throw null; } set { } }
- }
- public enum HybridDataJobStatus
- {
- None = 0,
- InProgress = 1,
- Succeeded = 2,
- WaitingForAction = 3,
- Failed = 4,
- Cancelled = 5,
- Cancelling = 6,
- PartiallySucceeded = 7,
- }
- public partial class HybridDataJobTopLevelError
- {
- public HybridDataJobTopLevelError(string code) { }
- public string Code { get { throw null; } set { } }
- public string Message { get { throw null; } set { } }
- }
- public partial class HybridDataManagerPatch
- {
- public HybridDataManagerPatch() { }
- public Azure.ResourceManager.HybridData.Models.HybridDataSku Sku { get { throw null; } set { } }
- public System.Collections.Generic.IDictionary Tags { get { throw null; } }
- }
- public partial class HybridDataSku
- {
- public HybridDataSku() { }
- public string Name { get { throw null; } set { } }
- public string Tier { get { throw null; } set { } }
- }
- public enum HybridDataState
- {
- Disabled = 0,
- Enabled = 1,
- Supported = 2,
- }
- public enum JobCancellationSetting
- {
- NotCancellable = 0,
- Cancellable = 1,
- }
- public enum SupportedEncryptionAlgorithm
- {
- None = 0,
- Rsa1_5 = 1,
- Rsa_Oaep = 2,
- PlainText = 3,
- }
- public enum UserConfirmationSetting
- {
- NotRequired = 0,
- Required = 1,
- }
-}
diff --git a/sdk/hybriddatamanager/Azure.ResourceManager.HybridData/assets.json b/sdk/hybriddatamanager/Azure.ResourceManager.HybridData/assets.json
deleted file mode 100644
index d1f49e268f2c..000000000000
--- a/sdk/hybriddatamanager/Azure.ResourceManager.HybridData/assets.json
+++ /dev/null
@@ -1,6 +0,0 @@
-{
- "AssetsRepo": "Azure/azure-sdk-assets",
- "AssetsRepoPrefixPath": "net",
- "TagPrefix": "net/hybriddatamanager/Azure.ResourceManager.HybridData",
- "Tag": ""
-}
diff --git a/sdk/hybriddatamanager/Azure.ResourceManager.HybridData/samples/Azure.ResourceManager.HybridData.Samples.csproj b/sdk/hybriddatamanager/Azure.ResourceManager.HybridData/samples/Azure.ResourceManager.HybridData.Samples.csproj
deleted file mode 100644
index 5dfb98fd843e..000000000000
--- a/sdk/hybriddatamanager/Azure.ResourceManager.HybridData/samples/Azure.ResourceManager.HybridData.Samples.csproj
+++ /dev/null
@@ -1,10 +0,0 @@
-
-
-
-
-
-
-
-
-
-
diff --git a/sdk/hybriddatamanager/Azure.ResourceManager.HybridData/samples/Generated/Samples/Sample_HybridDataJobCollection.cs b/sdk/hybriddatamanager/Azure.ResourceManager.HybridData/samples/Generated/Samples/Sample_HybridDataJobCollection.cs
deleted file mode 100644
index 83344f34a49f..000000000000
--- a/sdk/hybriddatamanager/Azure.ResourceManager.HybridData/samples/Generated/Samples/Sample_HybridDataJobCollection.cs
+++ /dev/null
@@ -1,128 +0,0 @@
-// 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.HybridData;
-
-namespace Azure.ResourceManager.HybridData.Samples
-{
- public partial class Sample_HybridDataJobCollection
- {
- // Jobs_ListByJobDefinitionGET91
- [NUnit.Framework.Test]
- [NUnit.Framework.Ignore("Only verifying that the sample builds")]
- public async Task GetAll_JobsListByJobDefinitionGET91()
- {
- // Generated from example definition: specification/hybriddatamanager/resource-manager/Microsoft.HybridData/stable/2019-06-01/examples/Jobs_ListByJobDefinition-GET-example-91.json
- // this example is just showing the usage of "Jobs_ListByJobDefinition" 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 HybridDataJobDefinitionResource created on azure
- // for more information of creating HybridDataJobDefinitionResource, please refer to the document of HybridDataJobDefinitionResource
- string subscriptionId = "6e0219f5-327a-4365-904f-05eed4227ad7";
- string resourceGroupName = "ResourceGroupForSDKTest";
- string dataManagerName = "TestAzureSDKOperations";
- string dataServiceName = "DataTransformation";
- string jobDefinitionName = "jobdeffromtestcode1";
- ResourceIdentifier hybridDataJobDefinitionResourceId = HybridDataJobDefinitionResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, dataManagerName, dataServiceName, jobDefinitionName);
- HybridDataJobDefinitionResource hybridDataJobDefinition = client.GetHybridDataJobDefinitionResource(hybridDataJobDefinitionResourceId);
-
- // get the collection of this HybridDataJobResource
- HybridDataJobCollection collection = hybridDataJobDefinition.GetHybridDataJobs();
-
- // invoke the operation and iterate over the result
- await foreach (HybridDataJobResource 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
- HybridDataJobData resourceData = item.Data;
- // for demo we just print out the id
- Console.WriteLine($"Succeeded on id: {resourceData.Id}");
- }
-
- Console.WriteLine($"Succeeded");
- }
-
- // Jobs_GetGET101
- [NUnit.Framework.Test]
- [NUnit.Framework.Ignore("Only verifying that the sample builds")]
- public async Task Get_JobsGetGET101()
- {
- // Generated from example definition: specification/hybriddatamanager/resource-manager/Microsoft.HybridData/stable/2019-06-01/examples/Jobs_Get-GET-example-101.json
- // this example is just showing the usage of "Jobs_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 HybridDataJobDefinitionResource created on azure
- // for more information of creating HybridDataJobDefinitionResource, please refer to the document of HybridDataJobDefinitionResource
- string subscriptionId = "6e0219f5-327a-4365-904f-05eed4227ad7";
- string resourceGroupName = "ResourceGroupForSDKTest";
- string dataManagerName = "TestAzureSDKOperations";
- string dataServiceName = "DataTransformation";
- string jobDefinitionName = "jobdeffromtestcode1";
- ResourceIdentifier hybridDataJobDefinitionResourceId = HybridDataJobDefinitionResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, dataManagerName, dataServiceName, jobDefinitionName);
- HybridDataJobDefinitionResource hybridDataJobDefinition = client.GetHybridDataJobDefinitionResource(hybridDataJobDefinitionResourceId);
-
- // get the collection of this HybridDataJobResource
- HybridDataJobCollection collection = hybridDataJobDefinition.GetHybridDataJobs();
-
- // invoke the operation
- string jobId = "99ef93fe-36be-43e4-bebf-de6746730601";
- HybridDataJobResource result = await collection.GetAsync(jobId);
-
- // 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
- HybridDataJobData resourceData = result.Data;
- // for demo we just print out the id
- Console.WriteLine($"Succeeded on id: {resourceData.Id}");
- }
-
- // Jobs_GetGET101
- [NUnit.Framework.Test]
- [NUnit.Framework.Ignore("Only verifying that the sample builds")]
- public async Task Exists_JobsGetGET101()
- {
- // Generated from example definition: specification/hybriddatamanager/resource-manager/Microsoft.HybridData/stable/2019-06-01/examples/Jobs_Get-GET-example-101.json
- // this example is just showing the usage of "Jobs_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 HybridDataJobDefinitionResource created on azure
- // for more information of creating HybridDataJobDefinitionResource, please refer to the document of HybridDataJobDefinitionResource
- string subscriptionId = "6e0219f5-327a-4365-904f-05eed4227ad7";
- string resourceGroupName = "ResourceGroupForSDKTest";
- string dataManagerName = "TestAzureSDKOperations";
- string dataServiceName = "DataTransformation";
- string jobDefinitionName = "jobdeffromtestcode1";
- ResourceIdentifier hybridDataJobDefinitionResourceId = HybridDataJobDefinitionResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, dataManagerName, dataServiceName, jobDefinitionName);
- HybridDataJobDefinitionResource hybridDataJobDefinition = client.GetHybridDataJobDefinitionResource(hybridDataJobDefinitionResourceId);
-
- // get the collection of this HybridDataJobResource
- HybridDataJobCollection collection = hybridDataJobDefinition.GetHybridDataJobs();
-
- // invoke the operation
- string jobId = "99ef93fe-36be-43e4-bebf-de6746730601";
- bool result = await collection.ExistsAsync(jobId);
-
- Console.WriteLine($"Succeeded: {result}");
- }
- }
-}
diff --git a/sdk/hybriddatamanager/Azure.ResourceManager.HybridData/samples/Generated/Samples/Sample_HybridDataJobDefinitionCollection.cs b/sdk/hybriddatamanager/Azure.ResourceManager.HybridData/samples/Generated/Samples/Sample_HybridDataJobDefinitionCollection.cs
deleted file mode 100644
index a122b13a7632..000000000000
--- a/sdk/hybriddatamanager/Azure.ResourceManager.HybridData/samples/Generated/Samples/Sample_HybridDataJobDefinitionCollection.cs
+++ /dev/null
@@ -1,181 +0,0 @@
-// 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.HybridData;
-using Azure.ResourceManager.HybridData.Models;
-
-namespace Azure.ResourceManager.HybridData.Samples
-{
- public partial class Sample_HybridDataJobDefinitionCollection
- {
- // JobDefinitions_ListByDataServiceGET71
- [NUnit.Framework.Test]
- [NUnit.Framework.Ignore("Only verifying that the sample builds")]
- public async Task GetAll_JobDefinitionsListByDataServiceGET71()
- {
- // Generated from example definition: specification/hybriddatamanager/resource-manager/Microsoft.HybridData/stable/2019-06-01/examples/JobDefinitions_ListByDataService-GET-example-71.json
- // this example is just showing the usage of "JobDefinitions_ListByDataService" 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 HybridDataServiceResource created on azure
- // for more information of creating HybridDataServiceResource, please refer to the document of HybridDataServiceResource
- string subscriptionId = "6e0219f5-327a-4365-904f-05eed4227ad7";
- string resourceGroupName = "ResourceGroupForSDKTest";
- string dataManagerName = "TestAzureSDKOperations";
- string dataServiceName = "DataTransformation";
- ResourceIdentifier hybridDataServiceResourceId = HybridDataServiceResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, dataManagerName, dataServiceName);
- HybridDataServiceResource hybridDataService = client.GetHybridDataServiceResource(hybridDataServiceResourceId);
-
- // get the collection of this HybridDataJobDefinitionResource
- HybridDataJobDefinitionCollection collection = hybridDataService.GetHybridDataJobDefinitions();
-
- // invoke the operation and iterate over the result
- await foreach (HybridDataJobDefinitionResource 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
- HybridDataJobDefinitionData resourceData = item.Data;
- // for demo we just print out the id
- Console.WriteLine($"Succeeded on id: {resourceData.Id}");
- }
-
- Console.WriteLine($"Succeeded");
- }
-
- // JobDefinitions_GetGET81
- [NUnit.Framework.Test]
- [NUnit.Framework.Ignore("Only verifying that the sample builds")]
- public async Task Get_JobDefinitionsGetGET81()
- {
- // Generated from example definition: specification/hybriddatamanager/resource-manager/Microsoft.HybridData/stable/2019-06-01/examples/JobDefinitions_Get-GET-example-81.json
- // this example is just showing the usage of "JobDefinitions_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 HybridDataServiceResource created on azure
- // for more information of creating HybridDataServiceResource, please refer to the document of HybridDataServiceResource
- string subscriptionId = "6e0219f5-327a-4365-904f-05eed4227ad7";
- string resourceGroupName = "ResourceGroupForSDKTest";
- string dataManagerName = "TestAzureSDKOperations";
- string dataServiceName = "DataTransformation";
- ResourceIdentifier hybridDataServiceResourceId = HybridDataServiceResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, dataManagerName, dataServiceName);
- HybridDataServiceResource hybridDataService = client.GetHybridDataServiceResource(hybridDataServiceResourceId);
-
- // get the collection of this HybridDataJobDefinitionResource
- HybridDataJobDefinitionCollection collection = hybridDataService.GetHybridDataJobDefinitions();
-
- // invoke the operation
- string jobDefinitionName = "jobdeffromtestcode1";
- HybridDataJobDefinitionResource result = await collection.GetAsync(jobDefinitionName);
-
- // 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
- HybridDataJobDefinitionData resourceData = result.Data;
- // for demo we just print out the id
- Console.WriteLine($"Succeeded on id: {resourceData.Id}");
- }
-
- // JobDefinitions_GetGET81
- [NUnit.Framework.Test]
- [NUnit.Framework.Ignore("Only verifying that the sample builds")]
- public async Task Exists_JobDefinitionsGetGET81()
- {
- // Generated from example definition: specification/hybriddatamanager/resource-manager/Microsoft.HybridData/stable/2019-06-01/examples/JobDefinitions_Get-GET-example-81.json
- // this example is just showing the usage of "JobDefinitions_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 HybridDataServiceResource created on azure
- // for more information of creating HybridDataServiceResource, please refer to the document of HybridDataServiceResource
- string subscriptionId = "6e0219f5-327a-4365-904f-05eed4227ad7";
- string resourceGroupName = "ResourceGroupForSDKTest";
- string dataManagerName = "TestAzureSDKOperations";
- string dataServiceName = "DataTransformation";
- ResourceIdentifier hybridDataServiceResourceId = HybridDataServiceResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, dataManagerName, dataServiceName);
- HybridDataServiceResource hybridDataService = client.GetHybridDataServiceResource(hybridDataServiceResourceId);
-
- // get the collection of this HybridDataJobDefinitionResource
- HybridDataJobDefinitionCollection collection = hybridDataService.GetHybridDataJobDefinitions();
-
- // invoke the operation
- string jobDefinitionName = "jobdeffromtestcode1";
- bool result = await collection.ExistsAsync(jobDefinitionName);
-
- Console.WriteLine($"Succeeded: {result}");
- }
-
- // JobDefinitions_CreateOrUpdatePUT83
- [NUnit.Framework.Test]
- [NUnit.Framework.Ignore("Only verifying that the sample builds")]
- public async Task CreateOrUpdate_JobDefinitionsCreateOrUpdatePUT83()
- {
- // Generated from example definition: specification/hybriddatamanager/resource-manager/Microsoft.HybridData/stable/2019-06-01/examples/JobDefinitions_CreateOrUpdate-PUT-example-83.json
- // this example is just showing the usage of "JobDefinitions_CreateOrUpdate" 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 HybridDataServiceResource created on azure
- // for more information of creating HybridDataServiceResource, please refer to the document of HybridDataServiceResource
- string subscriptionId = "6e0219f5-327a-4365-904f-05eed4227ad7";
- string resourceGroupName = "ResourceGroupForSDKTest";
- string dataManagerName = "TestAzureSDKOperations";
- string dataServiceName = "DataTransformation";
- ResourceIdentifier hybridDataServiceResourceId = HybridDataServiceResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, dataManagerName, dataServiceName);
- HybridDataServiceResource hybridDataService = client.GetHybridDataServiceResource(hybridDataServiceResourceId);
-
- // get the collection of this HybridDataJobDefinitionResource
- HybridDataJobDefinitionCollection collection = hybridDataService.GetHybridDataJobDefinitions();
-
- // invoke the operation
- string jobDefinitionName = "jobdeffromtestcode1";
- HybridDataJobDefinitionData data = new HybridDataJobDefinitionData("/subscriptions/6e0219f5-327a-4365-904f-05eed4227ad7/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.HybridData/dataManagers/TestAzureSDKOperations/dataStores/TestStorSimpleSource1", "/subscriptions/6e0219f5-327a-4365-904f-05eed4227ad7/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.HybridData/dataManagers/TestAzureSDKOperations/dataStores/TestAzureStorage1", HybridDataState.Enabled)
- {
- RunLocation = HybridDataJobRunLocation.WestUS,
- UserConfirmation = UserConfirmationSetting.Required,
- DataServiceInput = BinaryData.FromObjectAsJson(new Dictionary()
- {
- ["AzureStorageType"] = "Blob",
- ["BackupChoice"] = "UseExistingLatest",
- ["ContainerName"] = "containerfromtest",
- ["DeviceName"] = "8600-SHG0997877L71FC",
- ["FileNameFilter"] = "*",
- ["IsDirectoryMode"] = "false",
- ["RootDirectories"] = new object[] { "\\" },
- ["VolumeNames"] = new object[] { "TestAutomation" }
- }),
- };
- ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, jobDefinitionName, data);
- HybridDataJobDefinitionResource 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
- HybridDataJobDefinitionData resourceData = result.Data;
- // for demo we just print out the id
- Console.WriteLine($"Succeeded on id: {resourceData.Id}");
- }
- }
-}
diff --git a/sdk/hybriddatamanager/Azure.ResourceManager.HybridData/samples/Generated/Samples/Sample_HybridDataJobDefinitionResource.cs b/sdk/hybriddatamanager/Azure.ResourceManager.HybridData/samples/Generated/Samples/Sample_HybridDataJobDefinitionResource.cs
deleted file mode 100644
index d6e4938817d6..000000000000
--- a/sdk/hybriddatamanager/Azure.ResourceManager.HybridData/samples/Generated/Samples/Sample_HybridDataJobDefinitionResource.cs
+++ /dev/null
@@ -1,181 +0,0 @@
-// 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.HybridData;
-using Azure.ResourceManager.HybridData.Models;
-
-namespace Azure.ResourceManager.HybridData.Samples
-{
- public partial class Sample_HybridDataJobDefinitionResource
- {
- // JobDefinitions_GetGET81
- [NUnit.Framework.Test]
- [NUnit.Framework.Ignore("Only verifying that the sample builds")]
- public async Task Get_JobDefinitionsGetGET81()
- {
- // Generated from example definition: specification/hybriddatamanager/resource-manager/Microsoft.HybridData/stable/2019-06-01/examples/JobDefinitions_Get-GET-example-81.json
- // this example is just showing the usage of "JobDefinitions_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 HybridDataJobDefinitionResource created on azure
- // for more information of creating HybridDataJobDefinitionResource, please refer to the document of HybridDataJobDefinitionResource
- string subscriptionId = "6e0219f5-327a-4365-904f-05eed4227ad7";
- string resourceGroupName = "ResourceGroupForSDKTest";
- string dataManagerName = "TestAzureSDKOperations";
- string dataServiceName = "DataTransformation";
- string jobDefinitionName = "jobdeffromtestcode1";
- ResourceIdentifier hybridDataJobDefinitionResourceId = HybridDataJobDefinitionResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, dataManagerName, dataServiceName, jobDefinitionName);
- HybridDataJobDefinitionResource hybridDataJobDefinition = client.GetHybridDataJobDefinitionResource(hybridDataJobDefinitionResourceId);
-
- // invoke the operation
- HybridDataJobDefinitionResource result = await hybridDataJobDefinition.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
- HybridDataJobDefinitionData resourceData = result.Data;
- // for demo we just print out the id
- Console.WriteLine($"Succeeded on id: {resourceData.Id}");
- }
-
- // JobDefinitions_CreateOrUpdatePUT83
- [NUnit.Framework.Test]
- [NUnit.Framework.Ignore("Only verifying that the sample builds")]
- public async Task Update_JobDefinitionsCreateOrUpdatePUT83()
- {
- // Generated from example definition: specification/hybriddatamanager/resource-manager/Microsoft.HybridData/stable/2019-06-01/examples/JobDefinitions_CreateOrUpdate-PUT-example-83.json
- // this example is just showing the usage of "JobDefinitions_CreateOrUpdate" 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 HybridDataJobDefinitionResource created on azure
- // for more information of creating HybridDataJobDefinitionResource, please refer to the document of HybridDataJobDefinitionResource
- string subscriptionId = "6e0219f5-327a-4365-904f-05eed4227ad7";
- string resourceGroupName = "ResourceGroupForSDKTest";
- string dataManagerName = "TestAzureSDKOperations";
- string dataServiceName = "DataTransformation";
- string jobDefinitionName = "jobdeffromtestcode1";
- ResourceIdentifier hybridDataJobDefinitionResourceId = HybridDataJobDefinitionResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, dataManagerName, dataServiceName, jobDefinitionName);
- HybridDataJobDefinitionResource hybridDataJobDefinition = client.GetHybridDataJobDefinitionResource(hybridDataJobDefinitionResourceId);
-
- // invoke the operation
- HybridDataJobDefinitionData data = new HybridDataJobDefinitionData("/subscriptions/6e0219f5-327a-4365-904f-05eed4227ad7/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.HybridData/dataManagers/TestAzureSDKOperations/dataStores/TestStorSimpleSource1", "/subscriptions/6e0219f5-327a-4365-904f-05eed4227ad7/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.HybridData/dataManagers/TestAzureSDKOperations/dataStores/TestAzureStorage1", HybridDataState.Enabled)
- {
- RunLocation = HybridDataJobRunLocation.WestUS,
- UserConfirmation = UserConfirmationSetting.Required,
- DataServiceInput = BinaryData.FromObjectAsJson(new Dictionary()
- {
- ["AzureStorageType"] = "Blob",
- ["BackupChoice"] = "UseExistingLatest",
- ["ContainerName"] = "containerfromtest",
- ["DeviceName"] = "8600-SHG0997877L71FC",
- ["FileNameFilter"] = "*",
- ["IsDirectoryMode"] = "false",
- ["RootDirectories"] = new object[] { "\\" },
- ["VolumeNames"] = new object[] { "TestAutomation" }
- }),
- };
- ArmOperation lro = await hybridDataJobDefinition.UpdateAsync(WaitUntil.Completed, data);
- HybridDataJobDefinitionResource 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
- HybridDataJobDefinitionData resourceData = result.Data;
- // for demo we just print out the id
- Console.WriteLine($"Succeeded on id: {resourceData.Id}");
- }
-
- // JobDefinitions_DeleteDELETE81
- [NUnit.Framework.Test]
- [NUnit.Framework.Ignore("Only verifying that the sample builds")]
- public async Task Delete_JobDefinitionsDeleteDELETE81()
- {
- // Generated from example definition: specification/hybriddatamanager/resource-manager/Microsoft.HybridData/stable/2019-06-01/examples/JobDefinitions_Delete-DELETE-example-81.json
- // this example is just showing the usage of "JobDefinitions_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 HybridDataJobDefinitionResource created on azure
- // for more information of creating HybridDataJobDefinitionResource, please refer to the document of HybridDataJobDefinitionResource
- string subscriptionId = "6e0219f5-327a-4365-904f-05eed4227ad7";
- string resourceGroupName = "ResourceGroupForSDKTest";
- string dataManagerName = "TestAzureSDKOperations";
- string dataServiceName = "DataTransformation";
- string jobDefinitionName = "jobdeffromtestcode1";
- ResourceIdentifier hybridDataJobDefinitionResourceId = HybridDataJobDefinitionResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, dataManagerName, dataServiceName, jobDefinitionName);
- HybridDataJobDefinitionResource hybridDataJobDefinition = client.GetHybridDataJobDefinitionResource(hybridDataJobDefinitionResourceId);
-
- // invoke the operation
- await hybridDataJobDefinition.DeleteAsync(WaitUntil.Completed);
-
- Console.WriteLine($"Succeeded");
- }
-
- // JobDefinitions_RunPOST132
- [NUnit.Framework.Test]
- [NUnit.Framework.Ignore("Only verifying that the sample builds")]
- public async Task Run_JobDefinitionsRunPOST132()
- {
- // Generated from example definition: specification/hybriddatamanager/resource-manager/Microsoft.HybridData/stable/2019-06-01/examples/JobDefinitions_Run-POST-example-132.json
- // this example is just showing the usage of "JobDefinitions_Run" 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 HybridDataJobDefinitionResource created on azure
- // for more information of creating HybridDataJobDefinitionResource, please refer to the document of HybridDataJobDefinitionResource
- string subscriptionId = "6e0219f5-327a-4365-904f-05eed4227ad7";
- string resourceGroupName = "ResourceGroupForSDKTest";
- string dataManagerName = "TestAzureSDKOperations";
- string dataServiceName = "DataTransformation";
- string jobDefinitionName = "jobdeffromtestcode1";
- ResourceIdentifier hybridDataJobDefinitionResourceId = HybridDataJobDefinitionResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, dataManagerName, dataServiceName, jobDefinitionName);
- HybridDataJobDefinitionResource hybridDataJobDefinition = client.GetHybridDataJobDefinitionResource(hybridDataJobDefinitionResourceId);
-
- // invoke the operation
- HybridDataJobRunContent content = new HybridDataJobRunContent()
- {
- UserConfirmation = UserConfirmationSetting.NotRequired,
- DataServiceInput = BinaryData.FromObjectAsJson(new Dictionary()
- {
- ["AzureStorageType"] = "Blob",
- ["BackupChoice"] = "UseExistingLatest",
- ["ContainerName"] = "containerfromtest",
- ["DeviceName"] = "8600-SHG0997877L71FC",
- ["FileNameFilter"] = "*",
- ["IsDirectoryMode"] = "false",
- ["RootDirectories"] = new object[] { "\\" },
- ["VolumeNames"] = new object[] { "TestAutomation" }
- }),
- CustomerSecrets =
-{
-},
- };
- await hybridDataJobDefinition.RunAsync(WaitUntil.Completed, content);
-
- Console.WriteLine($"Succeeded");
- }
- }
-}
diff --git a/sdk/hybriddatamanager/Azure.ResourceManager.HybridData/samples/Generated/Samples/Sample_HybridDataJobResource.cs b/sdk/hybriddatamanager/Azure.ResourceManager.HybridData/samples/Generated/Samples/Sample_HybridDataJobResource.cs
deleted file mode 100644
index fb6a548bb5e7..000000000000
--- a/sdk/hybriddatamanager/Azure.ResourceManager.HybridData/samples/Generated/Samples/Sample_HybridDataJobResource.cs
+++ /dev/null
@@ -1,114 +0,0 @@
-// 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.HybridData;
-
-namespace Azure.ResourceManager.HybridData.Samples
-{
- public partial class Sample_HybridDataJobResource
- {
- // Jobs_GetGET101
- [NUnit.Framework.Test]
- [NUnit.Framework.Ignore("Only verifying that the sample builds")]
- public async Task Get_JobsGetGET101()
- {
- // Generated from example definition: specification/hybriddatamanager/resource-manager/Microsoft.HybridData/stable/2019-06-01/examples/Jobs_Get-GET-example-101.json
- // this example is just showing the usage of "Jobs_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 HybridDataJobResource created on azure
- // for more information of creating HybridDataJobResource, please refer to the document of HybridDataJobResource
- string subscriptionId = "6e0219f5-327a-4365-904f-05eed4227ad7";
- string resourceGroupName = "ResourceGroupForSDKTest";
- string dataManagerName = "TestAzureSDKOperations";
- string dataServiceName = "DataTransformation";
- string jobDefinitionName = "jobdeffromtestcode1";
- string jobId = "99ef93fe-36be-43e4-bebf-de6746730601";
- ResourceIdentifier hybridDataJobResourceId = HybridDataJobResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, dataManagerName, dataServiceName, jobDefinitionName, jobId);
- HybridDataJobResource hybridDataJob = client.GetHybridDataJobResource(hybridDataJobResourceId);
-
- // invoke the operation
- HybridDataJobResource result = await hybridDataJob.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
- HybridDataJobData resourceData = result.Data;
- // for demo we just print out the id
- Console.WriteLine($"Succeeded on id: {resourceData.Id}");
- }
-
- // Jobs_CancelPOST111
- [NUnit.Framework.Test]
- [NUnit.Framework.Ignore("Only verifying that the sample builds")]
- public async Task Cancel_JobsCancelPOST111()
- {
- // Generated from example definition: specification/hybriddatamanager/resource-manager/Microsoft.HybridData/stable/2019-06-01/examples/Jobs_Cancel-POST-example-111.json
- // this example is just showing the usage of "Jobs_Cancel" 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 HybridDataJobResource created on azure
- // for more information of creating HybridDataJobResource, please refer to the document of HybridDataJobResource
- string subscriptionId = "6e0219f5-327a-4365-904f-05eed4227ad7";
- string resourceGroupName = "ResourceGroupForSDKTest";
- string dataManagerName = "TestAzureSDKOperations";
- string dataServiceName = "DataTransformation";
- string jobDefinitionName = "jobdeffromtestcode1";
- string jobId = "6eca9b3d-5ffe-4b44-9607-1ba838371ff7";
- ResourceIdentifier hybridDataJobResourceId = HybridDataJobResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, dataManagerName, dataServiceName, jobDefinitionName, jobId);
- HybridDataJobResource hybridDataJob = client.GetHybridDataJobResource(hybridDataJobResourceId);
-
- // invoke the operation
- await hybridDataJob.CancelAsync(WaitUntil.Completed);
-
- Console.WriteLine($"Succeeded");
- }
-
- // Jobs_ResumePOST121
- [NUnit.Framework.Test]
- [NUnit.Framework.Ignore("Only verifying that the sample builds")]
- public async Task Resume_JobsResumePOST121()
- {
- // Generated from example definition: specification/hybriddatamanager/resource-manager/Microsoft.HybridData/stable/2019-06-01/examples/Jobs_Resume-POST-example-121.json
- // this example is just showing the usage of "Jobs_Resume" 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 HybridDataJobResource created on azure
- // for more information of creating HybridDataJobResource, please refer to the document of HybridDataJobResource
- string subscriptionId = "6e0219f5-327a-4365-904f-05eed4227ad7";
- string resourceGroupName = "ResourceGroupForSDKTest";
- string dataManagerName = "TestAzureSDKOperations";
- string dataServiceName = "DataTransformation";
- string jobDefinitionName = "jobdeffromtestcode1";
- string jobId = "99ef93fe-36be-43e4-bebf-de6746730601";
- ResourceIdentifier hybridDataJobResourceId = HybridDataJobResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, dataManagerName, dataServiceName, jobDefinitionName, jobId);
- HybridDataJobResource hybridDataJob = client.GetHybridDataJobResource(hybridDataJobResourceId);
-
- // invoke the operation
- await hybridDataJob.ResumeAsync(WaitUntil.Completed);
-
- Console.WriteLine($"Succeeded");
- }
- }
-}
diff --git a/sdk/hybriddatamanager/Azure.ResourceManager.HybridData/samples/Generated/Samples/Sample_HybridDataManagerCollection.cs b/sdk/hybriddatamanager/Azure.ResourceManager.HybridData/samples/Generated/Samples/Sample_HybridDataManagerCollection.cs
deleted file mode 100644
index 285ccb3dfaa9..000000000000
--- a/sdk/hybriddatamanager/Azure.ResourceManager.HybridData/samples/Generated/Samples/Sample_HybridDataManagerCollection.cs
+++ /dev/null
@@ -1,157 +0,0 @@
-// 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.HybridData;
-using Azure.ResourceManager.Resources;
-
-namespace Azure.ResourceManager.HybridData.Samples
-{
- public partial class Sample_HybridDataManagerCollection
- {
- // DataManagers_ListByResourceGroupGET31
- [NUnit.Framework.Test]
- [NUnit.Framework.Ignore("Only verifying that the sample builds")]
- public async Task GetAll_DataManagersListByResourceGroupGET31()
- {
- // Generated from example definition: specification/hybriddatamanager/resource-manager/Microsoft.HybridData/stable/2019-06-01/examples/DataManagers_ListByResourceGroup-GET-example-31.json
- // this example is just showing the usage of "DataManagers_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 = "6e0219f5-327a-4365-904f-05eed4227ad7";
- string resourceGroupName = "ResourceGroupForSDKTest";
- ResourceIdentifier resourceGroupResourceId = ResourceGroupResource.CreateResourceIdentifier(subscriptionId, resourceGroupName);
- ResourceGroupResource resourceGroupResource = client.GetResourceGroupResource(resourceGroupResourceId);
-
- // get the collection of this HybridDataManagerResource
- HybridDataManagerCollection collection = resourceGroupResource.GetHybridDataManagers();
-
- // invoke the operation and iterate over the result
- await foreach (HybridDataManagerResource 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
- HybridDataManagerData resourceData = item.Data;
- // for demo we just print out the id
- Console.WriteLine($"Succeeded on id: {resourceData.Id}");
- }
-
- Console.WriteLine($"Succeeded");
- }
-
- // DataManagers_GetGET41
- [NUnit.Framework.Test]
- [NUnit.Framework.Ignore("Only verifying that the sample builds")]
- public async Task Get_DataManagersGetGET41()
- {
- // Generated from example definition: specification/hybriddatamanager/resource-manager/Microsoft.HybridData/stable/2019-06-01/examples/DataManagers_Get-GET-example-41.json
- // this example is just showing the usage of "DataManagers_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 = "6e0219f5-327a-4365-904f-05eed4227ad7";
- string resourceGroupName = "ResourceGroupForSDKTest";
- ResourceIdentifier resourceGroupResourceId = ResourceGroupResource.CreateResourceIdentifier(subscriptionId, resourceGroupName);
- ResourceGroupResource resourceGroupResource = client.GetResourceGroupResource(resourceGroupResourceId);
-
- // get the collection of this HybridDataManagerResource
- HybridDataManagerCollection collection = resourceGroupResource.GetHybridDataManagers();
-
- // invoke the operation
- string dataManagerName = "TestAzureSDKOperations";
- HybridDataManagerResource result = await collection.GetAsync(dataManagerName);
-
- // 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
- HybridDataManagerData resourceData = result.Data;
- // for demo we just print out the id
- Console.WriteLine($"Succeeded on id: {resourceData.Id}");
- }
-
- // DataManagers_GetGET41
- [NUnit.Framework.Test]
- [NUnit.Framework.Ignore("Only verifying that the sample builds")]
- public async Task Exists_DataManagersGetGET41()
- {
- // Generated from example definition: specification/hybriddatamanager/resource-manager/Microsoft.HybridData/stable/2019-06-01/examples/DataManagers_Get-GET-example-41.json
- // this example is just showing the usage of "DataManagers_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 = "6e0219f5-327a-4365-904f-05eed4227ad7";
- string resourceGroupName = "ResourceGroupForSDKTest";
- ResourceIdentifier resourceGroupResourceId = ResourceGroupResource.CreateResourceIdentifier(subscriptionId, resourceGroupName);
- ResourceGroupResource resourceGroupResource = client.GetResourceGroupResource(resourceGroupResourceId);
-
- // get the collection of this HybridDataManagerResource
- HybridDataManagerCollection collection = resourceGroupResource.GetHybridDataManagers();
-
- // invoke the operation
- string dataManagerName = "TestAzureSDKOperations";
- bool result = await collection.ExistsAsync(dataManagerName);
-
- Console.WriteLine($"Succeeded: {result}");
- }
-
- // DataManagers_CreatePUT41
- [NUnit.Framework.Test]
- [NUnit.Framework.Ignore("Only verifying that the sample builds")]
- public async Task CreateOrUpdate_DataManagersCreatePUT41()
- {
- // Generated from example definition: specification/hybriddatamanager/resource-manager/Microsoft.HybridData/stable/2019-06-01/examples/DataManagers_Create-PUT-example-41.json
- // this example is just showing the usage of "DataManagers_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 = "6e0219f5-327a-4365-904f-05eed4227ad7";
- string resourceGroupName = "ResourceGroupForSDKTest";
- ResourceIdentifier resourceGroupResourceId = ResourceGroupResource.CreateResourceIdentifier(subscriptionId, resourceGroupName);
- ResourceGroupResource resourceGroupResource = client.GetResourceGroupResource(resourceGroupResourceId);
-
- // get the collection of this HybridDataManagerResource
- HybridDataManagerCollection collection = resourceGroupResource.GetHybridDataManagers();
-
- // invoke the operation
- string dataManagerName = "TestAzureSDKOperations";
- HybridDataManagerData data = new HybridDataManagerData(new AzureLocation("westus"));
- ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, dataManagerName, data);
- HybridDataManagerResource 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
- HybridDataManagerData resourceData = result.Data;
- // for demo we just print out the id
- Console.WriteLine($"Succeeded on id: {resourceData.Id}");
- }
- }
-}
diff --git a/sdk/hybriddatamanager/Azure.ResourceManager.HybridData/samples/Generated/Samples/Sample_HybridDataManagerResource.cs b/sdk/hybriddatamanager/Azure.ResourceManager.HybridData/samples/Generated/Samples/Sample_HybridDataManagerResource.cs
deleted file mode 100644
index 2b63576a3f5e..000000000000
--- a/sdk/hybriddatamanager/Azure.ResourceManager.HybridData/samples/Generated/Samples/Sample_HybridDataManagerResource.cs
+++ /dev/null
@@ -1,224 +0,0 @@
-// 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.HybridData;
-using Azure.ResourceManager.HybridData.Models;
-using Azure.ResourceManager.Resources;
-
-namespace Azure.ResourceManager.HybridData.Samples
-{
- public partial class Sample_HybridDataManagerResource
- {
- // DataManagers_ListGET21
- [NUnit.Framework.Test]
- [NUnit.Framework.Ignore("Only verifying that the sample builds")]
- public async Task GetHybridDataManagers_DataManagersListGET21()
- {
- // Generated from example definition: specification/hybriddatamanager/resource-manager/Microsoft.HybridData/stable/2019-06-01/examples/DataManagers_List-GET-example-21.json
- // this example is just showing the usage of "DataManagers_List" operation, for the dependent resources, they will have to be created separately.
-
- // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
- TokenCredential cred = new DefaultAzureCredential();
- // authenticate your client
- ArmClient client = new ArmClient(cred);
-
- // this example assumes you already have this SubscriptionResource created on azure
- // for more information of creating SubscriptionResource, please refer to the document of SubscriptionResource
- string subscriptionId = "6e0219f5-327a-4365-904f-05eed4227ad7";
- ResourceIdentifier subscriptionResourceId = SubscriptionResource.CreateResourceIdentifier(subscriptionId);
- SubscriptionResource subscriptionResource = client.GetSubscriptionResource(subscriptionResourceId);
-
- // invoke the operation and iterate over the result
- await foreach (HybridDataManagerResource item in subscriptionResource.GetHybridDataManagersAsync())
- {
- // 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
- HybridDataManagerData resourceData = item.Data;
- // for demo we just print out the id
- Console.WriteLine($"Succeeded on id: {resourceData.Id}");
- }
-
- Console.WriteLine($"Succeeded");
- }
-
- // DataManagers_GetGET41
- [NUnit.Framework.Test]
- [NUnit.Framework.Ignore("Only verifying that the sample builds")]
- public async Task Get_DataManagersGetGET41()
- {
- // Generated from example definition: specification/hybriddatamanager/resource-manager/Microsoft.HybridData/stable/2019-06-01/examples/DataManagers_Get-GET-example-41.json
- // this example is just showing the usage of "DataManagers_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 HybridDataManagerResource created on azure
- // for more information of creating HybridDataManagerResource, please refer to the document of HybridDataManagerResource
- string subscriptionId = "6e0219f5-327a-4365-904f-05eed4227ad7";
- string resourceGroupName = "ResourceGroupForSDKTest";
- string dataManagerName = "TestAzureSDKOperations";
- ResourceIdentifier hybridDataManagerResourceId = HybridDataManagerResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, dataManagerName);
- HybridDataManagerResource hybridDataManager = client.GetHybridDataManagerResource(hybridDataManagerResourceId);
-
- // invoke the operation
- HybridDataManagerResource result = await hybridDataManager.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
- HybridDataManagerData resourceData = result.Data;
- // for demo we just print out the id
- Console.WriteLine($"Succeeded on id: {resourceData.Id}");
- }
-
- // DataManagers_DeleteDELETE41
- [NUnit.Framework.Test]
- [NUnit.Framework.Ignore("Only verifying that the sample builds")]
- public async Task Delete_DataManagersDeleteDELETE41()
- {
- // Generated from example definition: specification/hybriddatamanager/resource-manager/Microsoft.HybridData/stable/2019-06-01/examples/DataManagers_Delete-DELETE-example-41.json
- // this example is just showing the usage of "DataManagers_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 HybridDataManagerResource created on azure
- // for more information of creating HybridDataManagerResource, please refer to the document of HybridDataManagerResource
- string subscriptionId = "6e0219f5-327a-4365-904f-05eed4227ad7";
- string resourceGroupName = "ResourceGroupForSDKTest";
- string dataManagerName = "TestAzureSDKOperations";
- ResourceIdentifier hybridDataManagerResourceId = HybridDataManagerResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, dataManagerName);
- HybridDataManagerResource hybridDataManager = client.GetHybridDataManagerResource(hybridDataManagerResourceId);
-
- // invoke the operation
- await hybridDataManager.DeleteAsync(WaitUntil.Completed);
-
- Console.WriteLine($"Succeeded");
- }
-
- // DataManagers_UpdatePATCH43
- [NUnit.Framework.Test]
- [NUnit.Framework.Ignore("Only verifying that the sample builds")]
- public async Task Update_DataManagersUpdatePATCH43()
- {
- // Generated from example definition: specification/hybriddatamanager/resource-manager/Microsoft.HybridData/stable/2019-06-01/examples/DataManagers_Update-PATCH-example-43.json
- // this example is just showing the usage of "DataManagers_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 HybridDataManagerResource created on azure
- // for more information of creating HybridDataManagerResource, please refer to the document of HybridDataManagerResource
- string subscriptionId = "6e0219f5-327a-4365-904f-05eed4227ad7";
- string resourceGroupName = "ResourceGroupForSDKTest";
- string dataManagerName = "TestAzureSDKOperations";
- ResourceIdentifier hybridDataManagerResourceId = HybridDataManagerResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, dataManagerName);
- HybridDataManagerResource hybridDataManager = client.GetHybridDataManagerResource(hybridDataManagerResourceId);
-
- // invoke the operation
- HybridDataManagerPatch patch = new HybridDataManagerPatch()
- {
- Sku = new HybridDataSku()
- {
- Name = "DS0",
- Tier = "Standard",
- },
- Tags =
-{
-["UpdateDateTime"] = "05-Feb-20 2:17:22 PM",
-},
- };
- ArmOperation lro = await hybridDataManager.UpdateAsync(WaitUntil.Completed, patch);
- HybridDataManagerResource 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
- HybridDataManagerData resourceData = result.Data;
- // for demo we just print out the id
- Console.WriteLine($"Succeeded on id: {resourceData.Id}");
- }
-
- // JobDefinitions_ListByDataManagerGET191
- [NUnit.Framework.Test]
- [NUnit.Framework.Ignore("Only verifying that the sample builds")]
- public async Task GetJobDefinitions_JobDefinitionsListByDataManagerGET191()
- {
- // Generated from example definition: specification/hybriddatamanager/resource-manager/Microsoft.HybridData/stable/2019-06-01/examples/JobDefinitions_ListByDataManager-GET-example-191.json
- // this example is just showing the usage of "JobDefinitions_ListByDataManager" 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 HybridDataManagerResource created on azure
- // for more information of creating HybridDataManagerResource, please refer to the document of HybridDataManagerResource
- string subscriptionId = "6e0219f5-327a-4365-904f-05eed4227ad7";
- string resourceGroupName = "ResourceGroupForSDKTest";
- string dataManagerName = "TestAzureSDKOperations";
- ResourceIdentifier hybridDataManagerResourceId = HybridDataManagerResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, dataManagerName);
- HybridDataManagerResource hybridDataManager = client.GetHybridDataManagerResource(hybridDataManagerResourceId);
-
- // invoke the operation and iterate over the result
- await foreach (HybridDataJobDefinitionResource item in hybridDataManager.GetJobDefinitionsAsync())
- {
- // 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
- HybridDataJobDefinitionData resourceData = item.Data;
- // for demo we just print out the id
- Console.WriteLine($"Succeeded on id: {resourceData.Id}");
- }
-
- Console.WriteLine($"Succeeded");
- }
-
- // Jobs_ListByDataManagerGET201
- [NUnit.Framework.Test]
- [NUnit.Framework.Ignore("Only verifying that the sample builds")]
- public async Task GetJobs_JobsListByDataManagerGET201()
- {
- // Generated from example definition: specification/hybriddatamanager/resource-manager/Microsoft.HybridData/stable/2019-06-01/examples/Jobs_ListByDataManager-GET-example-201.json
- // this example is just showing the usage of "Jobs_ListByDataManager" 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 HybridDataManagerResource created on azure
- // for more information of creating HybridDataManagerResource, please refer to the document of HybridDataManagerResource
- string subscriptionId = "6e0219f5-327a-4365-904f-05eed4227ad7";
- string resourceGroupName = "ResourceGroupForSDKTest";
- string dataManagerName = "TestAzureSDKOperations";
- ResourceIdentifier hybridDataManagerResourceId = HybridDataManagerResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, dataManagerName);
- HybridDataManagerResource hybridDataManager = client.GetHybridDataManagerResource(hybridDataManagerResourceId);
-
- // invoke the operation and iterate over the result
- await foreach (HybridDataJobResource item in hybridDataManager.GetJobsAsync())
- {
- // 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
- HybridDataJobData resourceData = item.Data;
- // for demo we just print out the id
- Console.WriteLine($"Succeeded on id: {resourceData.Id}");
- }
-
- Console.WriteLine($"Succeeded");
- }
- }
-}
diff --git a/sdk/hybriddatamanager/Azure.ResourceManager.HybridData/samples/Generated/Samples/Sample_HybridDataPublicKeyCollection.cs b/sdk/hybriddatamanager/Azure.ResourceManager.HybridData/samples/Generated/Samples/Sample_HybridDataPublicKeyCollection.cs
deleted file mode 100644
index 53180c59548f..000000000000
--- a/sdk/hybriddatamanager/Azure.ResourceManager.HybridData/samples/Generated/Samples/Sample_HybridDataPublicKeyCollection.cs
+++ /dev/null
@@ -1,122 +0,0 @@
-// 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.HybridData;
-
-namespace Azure.ResourceManager.HybridData.Samples
-{
- public partial class Sample_HybridDataPublicKeyCollection
- {
- // PublicKeys_ListByDataManagerGET211
- [NUnit.Framework.Test]
- [NUnit.Framework.Ignore("Only verifying that the sample builds")]
- public async Task GetAll_PublicKeysListByDataManagerGET211()
- {
- // Generated from example definition: specification/hybriddatamanager/resource-manager/Microsoft.HybridData/stable/2019-06-01/examples/PublicKeys_ListByDataManager-GET-example-211.json
- // this example is just showing the usage of "PublicKeys_ListByDataManager" 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 HybridDataManagerResource created on azure
- // for more information of creating HybridDataManagerResource, please refer to the document of HybridDataManagerResource
- string subscriptionId = "6e0219f5-327a-4365-904f-05eed4227ad7";
- string resourceGroupName = "ResourceGroupForSDKTest";
- string dataManagerName = "TestAzureSDKOperations";
- ResourceIdentifier hybridDataManagerResourceId = HybridDataManagerResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, dataManagerName);
- HybridDataManagerResource hybridDataManager = client.GetHybridDataManagerResource(hybridDataManagerResourceId);
-
- // get the collection of this HybridDataPublicKeyResource
- HybridDataPublicKeyCollection collection = hybridDataManager.GetHybridDataPublicKeys();
-
- // invoke the operation and iterate over the result
- await foreach (HybridDataPublicKeyResource 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
- HybridDataPublicKeyData resourceData = item.Data;
- // for demo we just print out the id
- Console.WriteLine($"Succeeded on id: {resourceData.Id}");
- }
-
- Console.WriteLine($"Succeeded");
- }
-
- // PublicKeys_GetGET222
- [NUnit.Framework.Test]
- [NUnit.Framework.Ignore("Only verifying that the sample builds")]
- public async Task Get_PublicKeysGetGET222()
- {
- // Generated from example definition: specification/hybriddatamanager/resource-manager/Microsoft.HybridData/stable/2019-06-01/examples/PublicKeys_Get-GET-example-222.json
- // this example is just showing the usage of "PublicKeys_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 HybridDataManagerResource created on azure
- // for more information of creating HybridDataManagerResource, please refer to the document of HybridDataManagerResource
- string subscriptionId = "6e0219f5-327a-4365-904f-05eed4227ad7";
- string resourceGroupName = "ResourceGroupForSDKTest";
- string dataManagerName = "TestAzureSDKOperations";
- ResourceIdentifier hybridDataManagerResourceId = HybridDataManagerResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, dataManagerName);
- HybridDataManagerResource hybridDataManager = client.GetHybridDataManagerResource(hybridDataManagerResourceId);
-
- // get the collection of this HybridDataPublicKeyResource
- HybridDataPublicKeyCollection collection = hybridDataManager.GetHybridDataPublicKeys();
-
- // invoke the operation
- string publicKeyName = "default";
- HybridDataPublicKeyResource result = await collection.GetAsync(publicKeyName);
-
- // 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
- HybridDataPublicKeyData resourceData = result.Data;
- // for demo we just print out the id
- Console.WriteLine($"Succeeded on id: {resourceData.Id}");
- }
-
- // PublicKeys_GetGET222
- [NUnit.Framework.Test]
- [NUnit.Framework.Ignore("Only verifying that the sample builds")]
- public async Task Exists_PublicKeysGetGET222()
- {
- // Generated from example definition: specification/hybriddatamanager/resource-manager/Microsoft.HybridData/stable/2019-06-01/examples/PublicKeys_Get-GET-example-222.json
- // this example is just showing the usage of "PublicKeys_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 HybridDataManagerResource created on azure
- // for more information of creating HybridDataManagerResource, please refer to the document of HybridDataManagerResource
- string subscriptionId = "6e0219f5-327a-4365-904f-05eed4227ad7";
- string resourceGroupName = "ResourceGroupForSDKTest";
- string dataManagerName = "TestAzureSDKOperations";
- ResourceIdentifier hybridDataManagerResourceId = HybridDataManagerResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, dataManagerName);
- HybridDataManagerResource hybridDataManager = client.GetHybridDataManagerResource(hybridDataManagerResourceId);
-
- // get the collection of this HybridDataPublicKeyResource
- HybridDataPublicKeyCollection collection = hybridDataManager.GetHybridDataPublicKeys();
-
- // invoke the operation
- string publicKeyName = "default";
- bool result = await collection.ExistsAsync(publicKeyName);
-
- Console.WriteLine($"Succeeded: {result}");
- }
- }
-}
diff --git a/sdk/hybriddatamanager/Azure.ResourceManager.HybridData/samples/Generated/Samples/Sample_HybridDataPublicKeyResource.cs b/sdk/hybriddatamanager/Azure.ResourceManager.HybridData/samples/Generated/Samples/Sample_HybridDataPublicKeyResource.cs
deleted file mode 100644
index b416323fa44e..000000000000
--- a/sdk/hybriddatamanager/Azure.ResourceManager.HybridData/samples/Generated/Samples/Sample_HybridDataPublicKeyResource.cs
+++ /dev/null
@@ -1,51 +0,0 @@
-// 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.HybridData;
-
-namespace Azure.ResourceManager.HybridData.Samples
-{
- public partial class Sample_HybridDataPublicKeyResource
- {
- // PublicKeys_GetGET222
- [NUnit.Framework.Test]
- [NUnit.Framework.Ignore("Only verifying that the sample builds")]
- public async Task Get_PublicKeysGetGET222()
- {
- // Generated from example definition: specification/hybriddatamanager/resource-manager/Microsoft.HybridData/stable/2019-06-01/examples/PublicKeys_Get-GET-example-222.json
- // this example is just showing the usage of "PublicKeys_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 HybridDataPublicKeyResource created on azure
- // for more information of creating HybridDataPublicKeyResource, please refer to the document of HybridDataPublicKeyResource
- string subscriptionId = "6e0219f5-327a-4365-904f-05eed4227ad7";
- string resourceGroupName = "ResourceGroupForSDKTest";
- string dataManagerName = "TestAzureSDKOperations";
- string publicKeyName = "default";
- ResourceIdentifier hybridDataPublicKeyResourceId = HybridDataPublicKeyResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, dataManagerName, publicKeyName);
- HybridDataPublicKeyResource hybridDataPublicKey = client.GetHybridDataPublicKeyResource(hybridDataPublicKeyResourceId);
-
- // invoke the operation
- HybridDataPublicKeyResource result = await hybridDataPublicKey.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
- HybridDataPublicKeyData resourceData = result.Data;
- // for demo we just print out the id
- Console.WriteLine($"Succeeded on id: {resourceData.Id}");
- }
- }
-}
diff --git a/sdk/hybriddatamanager/Azure.ResourceManager.HybridData/samples/Generated/Samples/Sample_HybridDataServiceCollection.cs b/sdk/hybriddatamanager/Azure.ResourceManager.HybridData/samples/Generated/Samples/Sample_HybridDataServiceCollection.cs
deleted file mode 100644
index 67522b79bed4..000000000000
--- a/sdk/hybriddatamanager/Azure.ResourceManager.HybridData/samples/Generated/Samples/Sample_HybridDataServiceCollection.cs
+++ /dev/null
@@ -1,122 +0,0 @@
-// 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.HybridData;
-
-namespace Azure.ResourceManager.HybridData.Samples
-{
- public partial class Sample_HybridDataServiceCollection
- {
- // DataServices_ListByDataManagerGET51
- [NUnit.Framework.Test]
- [NUnit.Framework.Ignore("Only verifying that the sample builds")]
- public async Task GetAll_DataServicesListByDataManagerGET51()
- {
- // Generated from example definition: specification/hybriddatamanager/resource-manager/Microsoft.HybridData/stable/2019-06-01/examples/DataServices_ListByDataManager-GET-example-51.json
- // this example is just showing the usage of "DataServices_ListByDataManager" 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 HybridDataManagerResource created on azure
- // for more information of creating HybridDataManagerResource, please refer to the document of HybridDataManagerResource
- string subscriptionId = "6e0219f5-327a-4365-904f-05eed4227ad7";
- string resourceGroupName = "ResourceGroupForSDKTest";
- string dataManagerName = "TestAzureSDKOperations";
- ResourceIdentifier hybridDataManagerResourceId = HybridDataManagerResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, dataManagerName);
- HybridDataManagerResource hybridDataManager = client.GetHybridDataManagerResource(hybridDataManagerResourceId);
-
- // get the collection of this HybridDataServiceResource
- HybridDataServiceCollection collection = hybridDataManager.GetHybridDataServices();
-
- // invoke the operation and iterate over the result
- await foreach (HybridDataServiceResource 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
- HybridDataServiceData resourceData = item.Data;
- // for demo we just print out the id
- Console.WriteLine($"Succeeded on id: {resourceData.Id}");
- }
-
- Console.WriteLine($"Succeeded");
- }
-
- // DataServices_GetGET62
- [NUnit.Framework.Test]
- [NUnit.Framework.Ignore("Only verifying that the sample builds")]
- public async Task Get_DataServicesGetGET62()
- {
- // Generated from example definition: specification/hybriddatamanager/resource-manager/Microsoft.HybridData/stable/2019-06-01/examples/DataServices_Get-GET-example-62.json
- // this example is just showing the usage of "DataServices_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 HybridDataManagerResource created on azure
- // for more information of creating HybridDataManagerResource, please refer to the document of HybridDataManagerResource
- string subscriptionId = "6e0219f5-327a-4365-904f-05eed4227ad7";
- string resourceGroupName = "ResourceGroupForSDKTest";
- string dataManagerName = "TestAzureSDKOperations";
- ResourceIdentifier hybridDataManagerResourceId = HybridDataManagerResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, dataManagerName);
- HybridDataManagerResource hybridDataManager = client.GetHybridDataManagerResource(hybridDataManagerResourceId);
-
- // get the collection of this HybridDataServiceResource
- HybridDataServiceCollection collection = hybridDataManager.GetHybridDataServices();
-
- // invoke the operation
- string dataServiceName = "DataTransformation";
- HybridDataServiceResource result = await collection.GetAsync(dataServiceName);
-
- // 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
- HybridDataServiceData resourceData = result.Data;
- // for demo we just print out the id
- Console.WriteLine($"Succeeded on id: {resourceData.Id}");
- }
-
- // DataServices_GetGET62
- [NUnit.Framework.Test]
- [NUnit.Framework.Ignore("Only verifying that the sample builds")]
- public async Task Exists_DataServicesGetGET62()
- {
- // Generated from example definition: specification/hybriddatamanager/resource-manager/Microsoft.HybridData/stable/2019-06-01/examples/DataServices_Get-GET-example-62.json
- // this example is just showing the usage of "DataServices_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 HybridDataManagerResource created on azure
- // for more information of creating HybridDataManagerResource, please refer to the document of HybridDataManagerResource
- string subscriptionId = "6e0219f5-327a-4365-904f-05eed4227ad7";
- string resourceGroupName = "ResourceGroupForSDKTest";
- string dataManagerName = "TestAzureSDKOperations";
- ResourceIdentifier hybridDataManagerResourceId = HybridDataManagerResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, dataManagerName);
- HybridDataManagerResource hybridDataManager = client.GetHybridDataManagerResource(hybridDataManagerResourceId);
-
- // get the collection of this HybridDataServiceResource
- HybridDataServiceCollection collection = hybridDataManager.GetHybridDataServices();
-
- // invoke the operation
- string dataServiceName = "DataTransformation";
- bool result = await collection.ExistsAsync(dataServiceName);
-
- Console.WriteLine($"Succeeded: {result}");
- }
- }
-}
diff --git a/sdk/hybriddatamanager/Azure.ResourceManager.HybridData/samples/Generated/Samples/Sample_HybridDataServiceResource.cs b/sdk/hybriddatamanager/Azure.ResourceManager.HybridData/samples/Generated/Samples/Sample_HybridDataServiceResource.cs
deleted file mode 100644
index f7f2af148163..000000000000
--- a/sdk/hybriddatamanager/Azure.ResourceManager.HybridData/samples/Generated/Samples/Sample_HybridDataServiceResource.cs
+++ /dev/null
@@ -1,86 +0,0 @@
-// 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.HybridData;
-
-namespace Azure.ResourceManager.HybridData.Samples
-{
- public partial class Sample_HybridDataServiceResource
- {
- // DataServices_GetGET62
- [NUnit.Framework.Test]
- [NUnit.Framework.Ignore("Only verifying that the sample builds")]
- public async Task Get_DataServicesGetGET62()
- {
- // Generated from example definition: specification/hybriddatamanager/resource-manager/Microsoft.HybridData/stable/2019-06-01/examples/DataServices_Get-GET-example-62.json
- // this example is just showing the usage of "DataServices_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 HybridDataServiceResource created on azure
- // for more information of creating HybridDataServiceResource, please refer to the document of HybridDataServiceResource
- string subscriptionId = "6e0219f5-327a-4365-904f-05eed4227ad7";
- string resourceGroupName = "ResourceGroupForSDKTest";
- string dataManagerName = "TestAzureSDKOperations";
- string dataServiceName = "DataTransformation";
- ResourceIdentifier hybridDataServiceResourceId = HybridDataServiceResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, dataManagerName, dataServiceName);
- HybridDataServiceResource hybridDataService = client.GetHybridDataServiceResource(hybridDataServiceResourceId);
-
- // invoke the operation
- HybridDataServiceResource result = await hybridDataService.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
- HybridDataServiceData resourceData = result.Data;
- // for demo we just print out the id
- Console.WriteLine($"Succeeded on id: {resourceData.Id}");
- }
-
- // Jobs_ListByDataServiceGET141
- [NUnit.Framework.Test]
- [NUnit.Framework.Ignore("Only verifying that the sample builds")]
- public async Task GetJobs_JobsListByDataServiceGET141()
- {
- // Generated from example definition: specification/hybriddatamanager/resource-manager/Microsoft.HybridData/stable/2019-06-01/examples/Jobs_ListByDataService-GET-example-141.json
- // this example is just showing the usage of "Jobs_ListByDataService" 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 HybridDataServiceResource created on azure
- // for more information of creating HybridDataServiceResource, please refer to the document of HybridDataServiceResource
- string subscriptionId = "6e0219f5-327a-4365-904f-05eed4227ad7";
- string resourceGroupName = "ResourceGroupForSDKTest";
- string dataManagerName = "TestAzureSDKOperations";
- string dataServiceName = "DataTransformation";
- ResourceIdentifier hybridDataServiceResourceId = HybridDataServiceResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, dataManagerName, dataServiceName);
- HybridDataServiceResource hybridDataService = client.GetHybridDataServiceResource(hybridDataServiceResourceId);
-
- // invoke the operation and iterate over the result
- await foreach (HybridDataJobResource item in hybridDataService.GetJobsAsync())
- {
- // 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
- HybridDataJobData resourceData = item.Data;
- // for demo we just print out the id
- Console.WriteLine($"Succeeded on id: {resourceData.Id}");
- }
-
- Console.WriteLine($"Succeeded");
- }
- }
-}
diff --git a/sdk/hybriddatamanager/Azure.ResourceManager.HybridData/samples/Generated/Samples/Sample_HybridDataStoreCollection.cs b/sdk/hybriddatamanager/Azure.ResourceManager.HybridData/samples/Generated/Samples/Sample_HybridDataStoreCollection.cs
deleted file mode 100644
index 107245925e01..000000000000
--- a/sdk/hybriddatamanager/Azure.ResourceManager.HybridData/samples/Generated/Samples/Sample_HybridDataStoreCollection.cs
+++ /dev/null
@@ -1,290 +0,0 @@
-// 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.HybridData;
-using Azure.ResourceManager.HybridData.Models;
-
-namespace Azure.ResourceManager.HybridData.Samples
-{
- public partial class Sample_HybridDataStoreCollection
- {
- // DataStores_ListByDataManagerGET151
- [NUnit.Framework.Test]
- [NUnit.Framework.Ignore("Only verifying that the sample builds")]
- public async Task GetAll_DataStoresListByDataManagerGET151()
- {
- // Generated from example definition: specification/hybriddatamanager/resource-manager/Microsoft.HybridData/stable/2019-06-01/examples/DataStores_ListByDataManager-GET-example-151.json
- // this example is just showing the usage of "DataStores_ListByDataManager" 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 HybridDataManagerResource created on azure
- // for more information of creating HybridDataManagerResource, please refer to the document of HybridDataManagerResource
- string subscriptionId = "6e0219f5-327a-4365-904f-05eed4227ad7";
- string resourceGroupName = "ResourceGroupForSDKTest";
- string dataManagerName = "TestAzureSDKOperations";
- ResourceIdentifier hybridDataManagerResourceId = HybridDataManagerResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, dataManagerName);
- HybridDataManagerResource hybridDataManager = client.GetHybridDataManagerResource(hybridDataManagerResourceId);
-
- // get the collection of this HybridDataStoreResource
- HybridDataStoreCollection collection = hybridDataManager.GetHybridDataStores();
-
- // invoke the operation and iterate over the result
- await foreach (HybridDataStoreResource 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
- HybridDataStoreData resourceData = item.Data;
- // for demo we just print out the id
- Console.WriteLine($"Succeeded on id: {resourceData.Id}");
- }
-
- Console.WriteLine($"Succeeded");
- }
-
- // DataStores_GetGET161
- [NUnit.Framework.Test]
- [NUnit.Framework.Ignore("Only verifying that the sample builds")]
- public async Task Get_DataStoresGetGET161()
- {
- // Generated from example definition: specification/hybriddatamanager/resource-manager/Microsoft.HybridData/stable/2019-06-01/examples/DataStores_Get-GET-example-161.json
- // this example is just showing the usage of "DataStores_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 HybridDataManagerResource created on azure
- // for more information of creating HybridDataManagerResource, please refer to the document of HybridDataManagerResource
- string subscriptionId = "6e0219f5-327a-4365-904f-05eed4227ad7";
- string resourceGroupName = "ResourceGroupForSDKTest";
- string dataManagerName = "TestAzureSDKOperations";
- ResourceIdentifier hybridDataManagerResourceId = HybridDataManagerResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, dataManagerName);
- HybridDataManagerResource hybridDataManager = client.GetHybridDataManagerResource(hybridDataManagerResourceId);
-
- // get the collection of this HybridDataStoreResource
- HybridDataStoreCollection collection = hybridDataManager.GetHybridDataStores();
-
- // invoke the operation
- string dataStoreName = "TestStorSimpleSource1";
- HybridDataStoreResource result = await collection.GetAsync(dataStoreName);
-
- // 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
- HybridDataStoreData resourceData = result.Data;
- // for demo we just print out the id
- Console.WriteLine($"Succeeded on id: {resourceData.Id}");
- }
-
- // DataStores_GetGET161
- [NUnit.Framework.Test]
- [NUnit.Framework.Ignore("Only verifying that the sample builds")]
- public async Task Exists_DataStoresGetGET161()
- {
- // Generated from example definition: specification/hybriddatamanager/resource-manager/Microsoft.HybridData/stable/2019-06-01/examples/DataStores_Get-GET-example-161.json
- // this example is just showing the usage of "DataStores_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 HybridDataManagerResource created on azure
- // for more information of creating HybridDataManagerResource, please refer to the document of HybridDataManagerResource
- string subscriptionId = "6e0219f5-327a-4365-904f-05eed4227ad7";
- string resourceGroupName = "ResourceGroupForSDKTest";
- string dataManagerName = "TestAzureSDKOperations";
- ResourceIdentifier hybridDataManagerResourceId = HybridDataManagerResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, dataManagerName);
- HybridDataManagerResource hybridDataManager = client.GetHybridDataManagerResource(hybridDataManagerResourceId);
-
- // get the collection of this HybridDataStoreResource
- HybridDataStoreCollection collection = hybridDataManager.GetHybridDataStores();
-
- // invoke the operation
- string dataStoreName = "TestStorSimpleSource1";
- bool result = await collection.ExistsAsync(dataStoreName);
-
- Console.WriteLine($"Succeeded: {result}");
- }
-
- // DataStores_GetGET162
- [NUnit.Framework.Test]
- [NUnit.Framework.Ignore("Only verifying that the sample builds")]
- public async Task Get_DataStoresGetGET162()
- {
- // Generated from example definition: specification/hybriddatamanager/resource-manager/Microsoft.HybridData/stable/2019-06-01/examples/DataStores_Get-GET-example-162.json
- // this example is just showing the usage of "DataStores_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 HybridDataManagerResource created on azure
- // for more information of creating HybridDataManagerResource, please refer to the document of HybridDataManagerResource
- string subscriptionId = "6e0219f5-327a-4365-904f-05eed4227ad7";
- string resourceGroupName = "ResourceGroupForSDKTest";
- string dataManagerName = "TestAzureSDKOperations";
- ResourceIdentifier hybridDataManagerResourceId = HybridDataManagerResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, dataManagerName);
- HybridDataManagerResource hybridDataManager = client.GetHybridDataManagerResource(hybridDataManagerResourceId);
-
- // get the collection of this HybridDataStoreResource
- HybridDataStoreCollection collection = hybridDataManager.GetHybridDataStores();
-
- // invoke the operation
- string dataStoreName = "TestAzureStorage1";
- HybridDataStoreResource result = await collection.GetAsync(dataStoreName);
-
- // 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
- HybridDataStoreData resourceData = result.Data;
- // for demo we just print out the id
- Console.WriteLine($"Succeeded on id: {resourceData.Id}");
- }
-
- // DataStores_GetGET162
- [NUnit.Framework.Test]
- [NUnit.Framework.Ignore("Only verifying that the sample builds")]
- public async Task Exists_DataStoresGetGET162()
- {
- // Generated from example definition: specification/hybriddatamanager/resource-manager/Microsoft.HybridData/stable/2019-06-01/examples/DataStores_Get-GET-example-162.json
- // this example is just showing the usage of "DataStores_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 HybridDataManagerResource created on azure
- // for more information of creating HybridDataManagerResource, please refer to the document of HybridDataManagerResource
- string subscriptionId = "6e0219f5-327a-4365-904f-05eed4227ad7";
- string resourceGroupName = "ResourceGroupForSDKTest";
- string dataManagerName = "TestAzureSDKOperations";
- ResourceIdentifier hybridDataManagerResourceId = HybridDataManagerResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, dataManagerName);
- HybridDataManagerResource hybridDataManager = client.GetHybridDataManagerResource(hybridDataManagerResourceId);
-
- // get the collection of this HybridDataStoreResource
- HybridDataStoreCollection collection = hybridDataManager.GetHybridDataStores();
-
- // invoke the operation
- string dataStoreName = "TestAzureStorage1";
- bool result = await collection.ExistsAsync(dataStoreName);
-
- Console.WriteLine($"Succeeded: {result}");
- }
-
- // DataStores_CreateOrUpdate_DataSinkPUT162
- [NUnit.Framework.Test]
- [NUnit.Framework.Ignore("Only verifying that the sample builds")]
- public async Task CreateOrUpdate_DataStoresCreateOrUpdateDataSinkPUT162()
- {
- // Generated from example definition: specification/hybriddatamanager/resource-manager/Microsoft.HybridData/stable/2019-06-01/examples/DataStores_CreateOrUpdate_DataSink-PUT-example-162.json
- // this example is just showing the usage of "DataStores_CreateOrUpdate" 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 HybridDataManagerResource created on azure
- // for more information of creating HybridDataManagerResource, please refer to the document of HybridDataManagerResource
- string subscriptionId = "6e0219f5-327a-4365-904f-05eed4227ad7";
- string resourceGroupName = "ResourceGroupForSDKTest";
- string dataManagerName = "TestAzureSDKOperations";
- ResourceIdentifier hybridDataManagerResourceId = HybridDataManagerResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, dataManagerName);
- HybridDataManagerResource hybridDataManager = client.GetHybridDataManagerResource(hybridDataManagerResourceId);
-
- // get the collection of this HybridDataStoreResource
- HybridDataStoreCollection collection = hybridDataManager.GetHybridDataStores();
-
- // invoke the operation
- string dataStoreName = "TestAzureStorage1";
- HybridDataStoreData data = new HybridDataStoreData(HybridDataState.Enabled, new ResourceIdentifier("/subscriptions/6e0219f5-327a-4365-904f-05eed4227ad7/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.HybridData/dataManagers/TestAzureSDKOperations/dataStoreTypes/AzureStorageAccount"))
- {
- RepositoryId = new ResourceIdentifier("/subscriptions/6e0219f5-327a-4365-904f-05eed4227ad7/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.Storage/storageAccounts/dmsdatasink"),
- ExtendedProperties = BinaryData.FromObjectAsJson(new Dictionary()
- {
- ["extendedSaKey"] = null,
- ["extendedSaName"] = "/subscriptions/6e0219f5-327a-4365-904f-05eed4227ad7/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.Storage/storageAccounts/dmsdatasink",
- ["storageAccountNameForQueue"] = "/subscriptions/6e0219f5-327a-4365-904f-05eed4227ad7/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.Storage/storageAccounts/dmsdatasink"
- }),
- CustomerSecrets =
-{
-new HybridDataCustomerSecret("StorageAccountAccessKey","Of4H9eF03G8QuxvkZQEbFWv3YdN3U//WugzuqReQekbXXQyg+QSicVKrwSOOKVi1zWMYGbKg7d5/ES2gdz+O5ZEw89bvE4mJD/wQmkIsqhPnbN0gyVK6nZePXVUU1A+UzjLfvhSA6KyUQfzNAZ5/TLt6fo1JyQrKTtkvnkLFyfv1AqBZ+dw8JK3RZi/rEN8HD3R3qsBwUYfyEuGLGiujy2CGrr/1uPiUVMR6QuFWRsjm39eMSHa4maLg4tQ0IY/jIy8rMlx3KjF3CcCbPzAqEq5vXy37wkjZbus771te1gLSrzcpVKIMg4DrmgaoJ02jAu+izBjNgLXAFPSUneQ8yw==:ezMkh4PMhCnjJtYkpTaP0SdblP5VAeRe4glW2PgIzICHw3T8ZyGDoaTrCv4/m5wtcEhWdtxhta+j1MQWlK5MIA+hvf8QjIDIjQv696ov5y+pcFe/upd2ekGOei7FCwB2u7I8WnkAtIKTUkf6eDQBZXm26DjfG1Dlc+Mjjq+AerukEa6WpOyqrD7Qub26Pgmj4AsuBx19X1EAmTZacubkoiNagXM8V+IDanHOhLMvfgQ7rw8oZhWfofxi4m+eJqjOXXaqSyorNK8UEcqP6P9pDP8AN8ulXEx6rZy2B5Oi0vSV+wlRLbUuQslga4ItOGxctW/ZX8uWozt+5A3k4URt6A==",SupportedEncryptionAlgorithm.Rsa1_5),new HybridDataCustomerSecret("StorageAccountAccessKeyForQueue","Of4H9eF03G8QuxvkZQEbFWv3YdN3U//WugzuqReQekbXXQyg+QSicVKrwSOOKVi1zWMYGbKg7d5/ES2gdz+O5ZEw89bvE4mJD/wQmkIsqhPnbN0gyVK6nZePXVUU1A+UzjLfvhSA6KyUQfzNAZ5/TLt6fo1JyQrKTtkvnkLFyfv1AqBZ+dw8JK3RZi/rEN8HD3R3qsBwUYfyEuGLGiujy2CGrr/1uPiUVMR6QuFWRsjm39eMSHa4maLg4tQ0IY/jIy8rMlx3KjF3CcCbPzAqEq5vXy37wkjZbus771te1gLSrzcpVKIMg4DrmgaoJ02jAu+izBjNgLXAFPSUneQ8yw==:ezMkh4PMhCnjJtYkpTaP0SdblP5VAeRe4glW2PgIzICHw3T8ZyGDoaTrCv4/m5wtcEhWdtxhta+j1MQWlK5MIA+hvf8QjIDIjQv696ov5y+pcFe/upd2ekGOei7FCwB2u7I8WnkAtIKTUkf6eDQBZXm26DjfG1Dlc+Mjjq+AerukEa6WpOyqrD7Qub26Pgmj4AsuBx19X1EAmTZacubkoiNagXM8V+IDanHOhLMvfgQ7rw8oZhWfofxi4m+eJqjOXXaqSyorNK8UEcqP6P9pDP8AN8ulXEx6rZy2B5Oi0vSV+wlRLbUuQslga4ItOGxctW/ZX8uWozt+5A3k4URt6A==",SupportedEncryptionAlgorithm.Rsa1_5)
-},
- };
- ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, dataStoreName, data);
- HybridDataStoreResource 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
- HybridDataStoreData resourceData = result.Data;
- // for demo we just print out the id
- Console.WriteLine($"Succeeded on id: {resourceData.Id}");
- }
-
- // DataStores_CreateOrUpdate_DataSourcePUT162
- [NUnit.Framework.Test]
- [NUnit.Framework.Ignore("Only verifying that the sample builds")]
- public async Task CreateOrUpdate_DataStoresCreateOrUpdateDataSourcePUT162()
- {
- // Generated from example definition: specification/hybriddatamanager/resource-manager/Microsoft.HybridData/stable/2019-06-01/examples/DataStores_CreateOrUpdate_DataSource-PUT-example-162.json
- // this example is just showing the usage of "DataStores_CreateOrUpdate" 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 HybridDataManagerResource created on azure
- // for more information of creating HybridDataManagerResource, please refer to the document of HybridDataManagerResource
- string subscriptionId = "6e0219f5-327a-4365-904f-05eed4227ad7";
- string resourceGroupName = "ResourceGroupForSDKTest";
- string dataManagerName = "TestAzureSDKOperations";
- ResourceIdentifier hybridDataManagerResourceId = HybridDataManagerResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, dataManagerName);
- HybridDataManagerResource hybridDataManager = client.GetHybridDataManagerResource(hybridDataManagerResourceId);
-
- // get the collection of this HybridDataStoreResource
- HybridDataStoreCollection collection = hybridDataManager.GetHybridDataStores();
-
- // invoke the operation
- string dataStoreName = "TestStorSimpleSource1";
- HybridDataStoreData data = new HybridDataStoreData(HybridDataState.Enabled, new ResourceIdentifier("/subscriptions/6e0219f5-327a-4365-904f-05eed4227ad7/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.HybridData/dataManagers/TestAzureSDKOperations/dataStoreTypes/StorSimple8000Series"))
- {
- RepositoryId = new ResourceIdentifier("/subscriptions/c5fc377d-0085-41b9-86b7-cc96dc56d1e9/resourceGroups/ForDMS/providers/Microsoft.StorSimple/managers/BLR8600"),
- ExtendedProperties = BinaryData.FromObjectAsJson(new Dictionary()
- {
- ["extendedSaKey"] = null,
- ["resourceId"] = "/subscriptions/c5fc377d-0085-41b9-86b7-cc96dc56d1e9/resourceGroups/ForDMS/providers/Microsoft.StorSimple/managers/BLR8600"
- }),
- CustomerSecrets =
-{
-new HybridDataCustomerSecret("ServiceEncryptionKey","EVuEBV40qv23xDRL4NZBuMms4e3So6ikHjrQYRvG9NloqxdgPOg+ZYzpho5lytI4fmv0ANmRIvDiDboRXcUVSjbB9T2gm19fMIuwZa4FK2+LYEgMqKK1GaLkk7xC8f5IeFUXLo6KyBBpaAiayTnWDcHuYEpMiGrV7trDDcbhMRefO3CHecmH3Z7ye8L0RQ/e7WW8GlCKZj3m0BaG7OrJgjai8gyDfMfGAG5rTqEhDVh2hLQ+TjvUjcOFwHvJusqKTENtbJTNQYmL9wZXsnwBvUwxqrGieILNB7V3GD1Ow9OiV0UCDW1e9LnMueukg+l7YJCU9FUhIPh/nSif6p32zw==:jCfio+pDtY3BSPZDpDJ0L6QdXLYMeOmxaFWtYTOZkNqNTgT8Loc/KSQRjtWS5K4N4btbznuSJ/dzg0aZEzlXgKDSuZgMfd4Ch92ZwAC/BkeCmVrTjiKJsoQXO1IICCUf7GHGBbYnnpsNJcEn4vyc9NXyKwOBjeU+I9AyK7PtYiC03RLpTS6xttFCICteBV0uoBHAiV0chZ5VIIUUMjO9u8EhHqRY7NNcGbWdVJeAb6J3vH4E/DHkQj+DXlpjcLvmK/uqBwxfNju30RJhR04Nmz6zcv/zTcvS0uN5hEPQoHLyv84hjnc4omg/gmNjo2cDW64QxA3RTJ5Sl///4xTBkg==",SupportedEncryptionAlgorithm.Rsa1_5)
-},
- };
- ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, dataStoreName, data);
- HybridDataStoreResource 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
- HybridDataStoreData resourceData = result.Data;
- // for demo we just print out the id
- Console.WriteLine($"Succeeded on id: {resourceData.Id}");
- }
- }
-}
diff --git a/sdk/hybriddatamanager/Azure.ResourceManager.HybridData/samples/Generated/Samples/Sample_HybridDataStoreResource.cs b/sdk/hybriddatamanager/Azure.ResourceManager.HybridData/samples/Generated/Samples/Sample_HybridDataStoreResource.cs
deleted file mode 100644
index a50a0b62ed3b..000000000000
--- a/sdk/hybriddatamanager/Azure.ResourceManager.HybridData/samples/Generated/Samples/Sample_HybridDataStoreResource.cs
+++ /dev/null
@@ -1,235 +0,0 @@
-// 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.HybridData;
-using Azure.ResourceManager.HybridData.Models;
-
-namespace Azure.ResourceManager.HybridData.Samples
-{
- public partial class Sample_HybridDataStoreResource
- {
- // DataStores_GetGET161
- [NUnit.Framework.Test]
- [NUnit.Framework.Ignore("Only verifying that the sample builds")]
- public async Task Get_DataStoresGetGET161()
- {
- // Generated from example definition: specification/hybriddatamanager/resource-manager/Microsoft.HybridData/stable/2019-06-01/examples/DataStores_Get-GET-example-161.json
- // this example is just showing the usage of "DataStores_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 HybridDataStoreResource created on azure
- // for more information of creating HybridDataStoreResource, please refer to the document of HybridDataStoreResource
- string subscriptionId = "6e0219f5-327a-4365-904f-05eed4227ad7";
- string resourceGroupName = "ResourceGroupForSDKTest";
- string dataManagerName = "TestAzureSDKOperations";
- string dataStoreName = "TestStorSimpleSource1";
- ResourceIdentifier hybridDataStoreResourceId = HybridDataStoreResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, dataManagerName, dataStoreName);
- HybridDataStoreResource hybridDataStore = client.GetHybridDataStoreResource(hybridDataStoreResourceId);
-
- // invoke the operation
- HybridDataStoreResource result = await hybridDataStore.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
- HybridDataStoreData resourceData = result.Data;
- // for demo we just print out the id
- Console.WriteLine($"Succeeded on id: {resourceData.Id}");
- }
-
- // DataStores_GetGET162
- [NUnit.Framework.Test]
- [NUnit.Framework.Ignore("Only verifying that the sample builds")]
- public async Task Get_DataStoresGetGET162()
- {
- // Generated from example definition: specification/hybriddatamanager/resource-manager/Microsoft.HybridData/stable/2019-06-01/examples/DataStores_Get-GET-example-162.json
- // this example is just showing the usage of "DataStores_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 HybridDataStoreResource created on azure
- // for more information of creating HybridDataStoreResource, please refer to the document of HybridDataStoreResource
- string subscriptionId = "6e0219f5-327a-4365-904f-05eed4227ad7";
- string resourceGroupName = "ResourceGroupForSDKTest";
- string dataManagerName = "TestAzureSDKOperations";
- string dataStoreName = "TestAzureStorage1";
- ResourceIdentifier hybridDataStoreResourceId = HybridDataStoreResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, dataManagerName, dataStoreName);
- HybridDataStoreResource hybridDataStore = client.GetHybridDataStoreResource(hybridDataStoreResourceId);
-
- // invoke the operation
- HybridDataStoreResource result = await hybridDataStore.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
- HybridDataStoreData resourceData = result.Data;
- // for demo we just print out the id
- Console.WriteLine($"Succeeded on id: {resourceData.Id}");
- }
-
- // DataStores_CreateOrUpdate_DataSinkPUT162
- [NUnit.Framework.Test]
- [NUnit.Framework.Ignore("Only verifying that the sample builds")]
- public async Task Update_DataStoresCreateOrUpdateDataSinkPUT162()
- {
- // Generated from example definition: specification/hybriddatamanager/resource-manager/Microsoft.HybridData/stable/2019-06-01/examples/DataStores_CreateOrUpdate_DataSink-PUT-example-162.json
- // this example is just showing the usage of "DataStores_CreateOrUpdate" 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 HybridDataStoreResource created on azure
- // for more information of creating HybridDataStoreResource, please refer to the document of HybridDataStoreResource
- string subscriptionId = "6e0219f5-327a-4365-904f-05eed4227ad7";
- string resourceGroupName = "ResourceGroupForSDKTest";
- string dataManagerName = "TestAzureSDKOperations";
- string dataStoreName = "TestAzureStorage1";
- ResourceIdentifier hybridDataStoreResourceId = HybridDataStoreResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, dataManagerName, dataStoreName);
- HybridDataStoreResource hybridDataStore = client.GetHybridDataStoreResource(hybridDataStoreResourceId);
-
- // invoke the operation
- HybridDataStoreData data = new HybridDataStoreData(HybridDataState.Enabled, new ResourceIdentifier("/subscriptions/6e0219f5-327a-4365-904f-05eed4227ad7/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.HybridData/dataManagers/TestAzureSDKOperations/dataStoreTypes/AzureStorageAccount"))
- {
- RepositoryId = new ResourceIdentifier("/subscriptions/6e0219f5-327a-4365-904f-05eed4227ad7/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.Storage/storageAccounts/dmsdatasink"),
- ExtendedProperties = BinaryData.FromObjectAsJson(new Dictionary()
- {
- ["extendedSaKey"] = null,
- ["extendedSaName"] = "/subscriptions/6e0219f5-327a-4365-904f-05eed4227ad7/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.Storage/storageAccounts/dmsdatasink",
- ["storageAccountNameForQueue"] = "/subscriptions/6e0219f5-327a-4365-904f-05eed4227ad7/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.Storage/storageAccounts/dmsdatasink"
- }),
- CustomerSecrets =
-{
-new HybridDataCustomerSecret("StorageAccountAccessKey","Of4H9eF03G8QuxvkZQEbFWv3YdN3U//WugzuqReQekbXXQyg+QSicVKrwSOOKVi1zWMYGbKg7d5/ES2gdz+O5ZEw89bvE4mJD/wQmkIsqhPnbN0gyVK6nZePXVUU1A+UzjLfvhSA6KyUQfzNAZ5/TLt6fo1JyQrKTtkvnkLFyfv1AqBZ+dw8JK3RZi/rEN8HD3R3qsBwUYfyEuGLGiujy2CGrr/1uPiUVMR6QuFWRsjm39eMSHa4maLg4tQ0IY/jIy8rMlx3KjF3CcCbPzAqEq5vXy37wkjZbus771te1gLSrzcpVKIMg4DrmgaoJ02jAu+izBjNgLXAFPSUneQ8yw==:ezMkh4PMhCnjJtYkpTaP0SdblP5VAeRe4glW2PgIzICHw3T8ZyGDoaTrCv4/m5wtcEhWdtxhta+j1MQWlK5MIA+hvf8QjIDIjQv696ov5y+pcFe/upd2ekGOei7FCwB2u7I8WnkAtIKTUkf6eDQBZXm26DjfG1Dlc+Mjjq+AerukEa6WpOyqrD7Qub26Pgmj4AsuBx19X1EAmTZacubkoiNagXM8V+IDanHOhLMvfgQ7rw8oZhWfofxi4m+eJqjOXXaqSyorNK8UEcqP6P9pDP8AN8ulXEx6rZy2B5Oi0vSV+wlRLbUuQslga4ItOGxctW/ZX8uWozt+5A3k4URt6A==",SupportedEncryptionAlgorithm.Rsa1_5),new HybridDataCustomerSecret("StorageAccountAccessKeyForQueue","Of4H9eF03G8QuxvkZQEbFWv3YdN3U//WugzuqReQekbXXQyg+QSicVKrwSOOKVi1zWMYGbKg7d5/ES2gdz+O5ZEw89bvE4mJD/wQmkIsqhPnbN0gyVK6nZePXVUU1A+UzjLfvhSA6KyUQfzNAZ5/TLt6fo1JyQrKTtkvnkLFyfv1AqBZ+dw8JK3RZi/rEN8HD3R3qsBwUYfyEuGLGiujy2CGrr/1uPiUVMR6QuFWRsjm39eMSHa4maLg4tQ0IY/jIy8rMlx3KjF3CcCbPzAqEq5vXy37wkjZbus771te1gLSrzcpVKIMg4DrmgaoJ02jAu+izBjNgLXAFPSUneQ8yw==:ezMkh4PMhCnjJtYkpTaP0SdblP5VAeRe4glW2PgIzICHw3T8ZyGDoaTrCv4/m5wtcEhWdtxhta+j1MQWlK5MIA+hvf8QjIDIjQv696ov5y+pcFe/upd2ekGOei7FCwB2u7I8WnkAtIKTUkf6eDQBZXm26DjfG1Dlc+Mjjq+AerukEa6WpOyqrD7Qub26Pgmj4AsuBx19X1EAmTZacubkoiNagXM8V+IDanHOhLMvfgQ7rw8oZhWfofxi4m+eJqjOXXaqSyorNK8UEcqP6P9pDP8AN8ulXEx6rZy2B5Oi0vSV+wlRLbUuQslga4ItOGxctW/ZX8uWozt+5A3k4URt6A==",SupportedEncryptionAlgorithm.Rsa1_5)
-},
- };
- ArmOperation lro = await hybridDataStore.UpdateAsync(WaitUntil.Completed, data);
- HybridDataStoreResource 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
- HybridDataStoreData resourceData = result.Data;
- // for demo we just print out the id
- Console.WriteLine($"Succeeded on id: {resourceData.Id}");
- }
-
- // DataStores_CreateOrUpdate_DataSourcePUT162
- [NUnit.Framework.Test]
- [NUnit.Framework.Ignore("Only verifying that the sample builds")]
- public async Task Update_DataStoresCreateOrUpdateDataSourcePUT162()
- {
- // Generated from example definition: specification/hybriddatamanager/resource-manager/Microsoft.HybridData/stable/2019-06-01/examples/DataStores_CreateOrUpdate_DataSource-PUT-example-162.json
- // this example is just showing the usage of "DataStores_CreateOrUpdate" 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 HybridDataStoreResource created on azure
- // for more information of creating HybridDataStoreResource, please refer to the document of HybridDataStoreResource
- string subscriptionId = "6e0219f5-327a-4365-904f-05eed4227ad7";
- string resourceGroupName = "ResourceGroupForSDKTest";
- string dataManagerName = "TestAzureSDKOperations";
- string dataStoreName = "TestStorSimpleSource1";
- ResourceIdentifier hybridDataStoreResourceId = HybridDataStoreResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, dataManagerName, dataStoreName);
- HybridDataStoreResource hybridDataStore = client.GetHybridDataStoreResource(hybridDataStoreResourceId);
-
- // invoke the operation
- HybridDataStoreData data = new HybridDataStoreData(HybridDataState.Enabled, new ResourceIdentifier("/subscriptions/6e0219f5-327a-4365-904f-05eed4227ad7/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.HybridData/dataManagers/TestAzureSDKOperations/dataStoreTypes/StorSimple8000Series"))
- {
- RepositoryId = new ResourceIdentifier("/subscriptions/c5fc377d-0085-41b9-86b7-cc96dc56d1e9/resourceGroups/ForDMS/providers/Microsoft.StorSimple/managers/BLR8600"),
- ExtendedProperties = BinaryData.FromObjectAsJson(new Dictionary()
- {
- ["extendedSaKey"] = null,
- ["resourceId"] = "/subscriptions/c5fc377d-0085-41b9-86b7-cc96dc56d1e9/resourceGroups/ForDMS/providers/Microsoft.StorSimple/managers/BLR8600"
- }),
- CustomerSecrets =
-{
-new HybridDataCustomerSecret("ServiceEncryptionKey","EVuEBV40qv23xDRL4NZBuMms4e3So6ikHjrQYRvG9NloqxdgPOg+ZYzpho5lytI4fmv0ANmRIvDiDboRXcUVSjbB9T2gm19fMIuwZa4FK2+LYEgMqKK1GaLkk7xC8f5IeFUXLo6KyBBpaAiayTnWDcHuYEpMiGrV7trDDcbhMRefO3CHecmH3Z7ye8L0RQ/e7WW8GlCKZj3m0BaG7OrJgjai8gyDfMfGAG5rTqEhDVh2hLQ+TjvUjcOFwHvJusqKTENtbJTNQYmL9wZXsnwBvUwxqrGieILNB7V3GD1Ow9OiV0UCDW1e9LnMueukg+l7YJCU9FUhIPh/nSif6p32zw==:jCfio+pDtY3BSPZDpDJ0L6QdXLYMeOmxaFWtYTOZkNqNTgT8Loc/KSQRjtWS5K4N4btbznuSJ/dzg0aZEzlXgKDSuZgMfd4Ch92ZwAC/BkeCmVrTjiKJsoQXO1IICCUf7GHGBbYnnpsNJcEn4vyc9NXyKwOBjeU+I9AyK7PtYiC03RLpTS6xttFCICteBV0uoBHAiV0chZ5VIIUUMjO9u8EhHqRY7NNcGbWdVJeAb6J3vH4E/DHkQj+DXlpjcLvmK/uqBwxfNju30RJhR04Nmz6zcv/zTcvS0uN5hEPQoHLyv84hjnc4omg/gmNjo2cDW64QxA3RTJ5Sl///4xTBkg==",SupportedEncryptionAlgorithm.Rsa1_5)
-},
- };
- ArmOperation lro = await hybridDataStore.UpdateAsync(WaitUntil.Completed, data);
- HybridDataStoreResource 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
- HybridDataStoreData resourceData = result.Data;
- // for demo we just print out the id
- Console.WriteLine($"Succeeded on id: {resourceData.Id}");
- }
-
- // DataStores_Delete_DataSinkDELETE161
- [NUnit.Framework.Test]
- [NUnit.Framework.Ignore("Only verifying that the sample builds")]
- public async Task Delete_DataStoresDeleteDataSinkDELETE161()
- {
- // Generated from example definition: specification/hybriddatamanager/resource-manager/Microsoft.HybridData/stable/2019-06-01/examples/DataStores_Delete_DataSink-DELETE-example-161.json
- // this example is just showing the usage of "DataStores_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 HybridDataStoreResource created on azure
- // for more information of creating HybridDataStoreResource, please refer to the document of HybridDataStoreResource
- string subscriptionId = "6e0219f5-327a-4365-904f-05eed4227ad7";
- string resourceGroupName = "ResourceGroupForSDKTest";
- string dataManagerName = "TestAzureSDKOperations";
- string dataStoreName = "TestAzureStorage1";
- ResourceIdentifier hybridDataStoreResourceId = HybridDataStoreResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, dataManagerName, dataStoreName);
- HybridDataStoreResource hybridDataStore = client.GetHybridDataStoreResource(hybridDataStoreResourceId);
-
- // invoke the operation
- await hybridDataStore.DeleteAsync(WaitUntil.Completed);
-
- Console.WriteLine($"Succeeded");
- }
-
- // DataStores_Delete_DataSourceDELETE161
- [NUnit.Framework.Test]
- [NUnit.Framework.Ignore("Only verifying that the sample builds")]
- public async Task Delete_DataStoresDeleteDataSourceDELETE161()
- {
- // Generated from example definition: specification/hybriddatamanager/resource-manager/Microsoft.HybridData/stable/2019-06-01/examples/DataStores_Delete_DataSource-DELETE-example-161.json
- // this example is just showing the usage of "DataStores_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 HybridDataStoreResource created on azure
- // for more information of creating HybridDataStoreResource, please refer to the document of HybridDataStoreResource
- string subscriptionId = "6e0219f5-327a-4365-904f-05eed4227ad7";
- string resourceGroupName = "ResourceGroupForSDKTest";
- string dataManagerName = "TestAzureSDKOperations";
- string dataStoreName = "TestStorSimpleSource1";
- ResourceIdentifier hybridDataStoreResourceId = HybridDataStoreResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, dataManagerName, dataStoreName);
- HybridDataStoreResource hybridDataStore = client.GetHybridDataStoreResource(hybridDataStoreResourceId);
-
- // invoke the operation
- await hybridDataStore.DeleteAsync(WaitUntil.Completed);
-
- Console.WriteLine($"Succeeded");
- }
- }
-}
diff --git a/sdk/hybriddatamanager/Azure.ResourceManager.HybridData/samples/Generated/Samples/Sample_HybridDataStoreTypeCollection.cs b/sdk/hybriddatamanager/Azure.ResourceManager.HybridData/samples/Generated/Samples/Sample_HybridDataStoreTypeCollection.cs
deleted file mode 100644
index 2092b61f599e..000000000000
--- a/sdk/hybriddatamanager/Azure.ResourceManager.HybridData/samples/Generated/Samples/Sample_HybridDataStoreTypeCollection.cs
+++ /dev/null
@@ -1,188 +0,0 @@
-// 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.HybridData;
-
-namespace Azure.ResourceManager.HybridData.Samples
-{
- public partial class Sample_HybridDataStoreTypeCollection
- {
- // DataStoreTypes_ListByDataManagerGET171
- [NUnit.Framework.Test]
- [NUnit.Framework.Ignore("Only verifying that the sample builds")]
- public async Task GetAll_DataStoreTypesListByDataManagerGET171()
- {
- // Generated from example definition: specification/hybriddatamanager/resource-manager/Microsoft.HybridData/stable/2019-06-01/examples/DataStoreTypes_ListByDataManager-GET-example-171.json
- // this example is just showing the usage of "DataStoreTypes_ListByDataManager" 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 HybridDataManagerResource created on azure
- // for more information of creating HybridDataManagerResource, please refer to the document of HybridDataManagerResource
- string subscriptionId = "6e0219f5-327a-4365-904f-05eed4227ad7";
- string resourceGroupName = "ResourceGroupForSDKTest";
- string dataManagerName = "TestAzureSDKOperations";
- ResourceIdentifier hybridDataManagerResourceId = HybridDataManagerResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, dataManagerName);
- HybridDataManagerResource hybridDataManager = client.GetHybridDataManagerResource(hybridDataManagerResourceId);
-
- // get the collection of this HybridDataStoreTypeResource
- HybridDataStoreTypeCollection collection = hybridDataManager.GetHybridDataStoreTypes();
-
- // invoke the operation and iterate over the result
- await foreach (HybridDataStoreTypeResource 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
- HybridDataStoreTypeData resourceData = item.Data;
- // for demo we just print out the id
- Console.WriteLine($"Succeeded on id: {resourceData.Id}");
- }
-
- Console.WriteLine($"Succeeded");
- }
-
- // DataStoreTypes_GetGET182
- [NUnit.Framework.Test]
- [NUnit.Framework.Ignore("Only verifying that the sample builds")]
- public async Task Get_DataStoreTypesGetGET182()
- {
- // Generated from example definition: specification/hybriddatamanager/resource-manager/Microsoft.HybridData/stable/2019-06-01/examples/DataStoreTypes_Get-GET-example-182.json
- // this example is just showing the usage of "DataStoreTypes_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 HybridDataManagerResource created on azure
- // for more information of creating HybridDataManagerResource, please refer to the document of HybridDataManagerResource
- string subscriptionId = "6e0219f5-327a-4365-904f-05eed4227ad7";
- string resourceGroupName = "ResourceGroupForSDKTest";
- string dataManagerName = "TestAzureSDKOperations";
- ResourceIdentifier hybridDataManagerResourceId = HybridDataManagerResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, dataManagerName);
- HybridDataManagerResource hybridDataManager = client.GetHybridDataManagerResource(hybridDataManagerResourceId);
-
- // get the collection of this HybridDataStoreTypeResource
- HybridDataStoreTypeCollection collection = hybridDataManager.GetHybridDataStoreTypes();
-
- // invoke the operation
- string dataStoreTypeName = "StorSimple8000Series";
- HybridDataStoreTypeResource result = await collection.GetAsync(dataStoreTypeName);
-
- // 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
- HybridDataStoreTypeData resourceData = result.Data;
- // for demo we just print out the id
- Console.WriteLine($"Succeeded on id: {resourceData.Id}");
- }
-
- // DataStoreTypes_GetGET182
- [NUnit.Framework.Test]
- [NUnit.Framework.Ignore("Only verifying that the sample builds")]
- public async Task Exists_DataStoreTypesGetGET182()
- {
- // Generated from example definition: specification/hybriddatamanager/resource-manager/Microsoft.HybridData/stable/2019-06-01/examples/DataStoreTypes_Get-GET-example-182.json
- // this example is just showing the usage of "DataStoreTypes_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 HybridDataManagerResource created on azure
- // for more information of creating HybridDataManagerResource, please refer to the document of HybridDataManagerResource
- string subscriptionId = "6e0219f5-327a-4365-904f-05eed4227ad7";
- string resourceGroupName = "ResourceGroupForSDKTest";
- string dataManagerName = "TestAzureSDKOperations";
- ResourceIdentifier hybridDataManagerResourceId = HybridDataManagerResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, dataManagerName);
- HybridDataManagerResource hybridDataManager = client.GetHybridDataManagerResource(hybridDataManagerResourceId);
-
- // get the collection of this HybridDataStoreTypeResource
- HybridDataStoreTypeCollection collection = hybridDataManager.GetHybridDataStoreTypes();
-
- // invoke the operation
- string dataStoreTypeName = "StorSimple8000Series";
- bool result = await collection.ExistsAsync(dataStoreTypeName);
-
- Console.WriteLine($"Succeeded: {result}");
- }
-
- // DataStoreTypes_GetGET183
- [NUnit.Framework.Test]
- [NUnit.Framework.Ignore("Only verifying that the sample builds")]
- public async Task Get_DataStoreTypesGetGET183()
- {
- // Generated from example definition: specification/hybriddatamanager/resource-manager/Microsoft.HybridData/stable/2019-06-01/examples/DataStoreTypes_Get-GET-example-183.json
- // this example is just showing the usage of "DataStoreTypes_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 HybridDataManagerResource created on azure
- // for more information of creating HybridDataManagerResource, please refer to the document of HybridDataManagerResource
- string subscriptionId = "6e0219f5-327a-4365-904f-05eed4227ad7";
- string resourceGroupName = "ResourceGroupForSDKTest";
- string dataManagerName = "TestAzureSDKOperations";
- ResourceIdentifier hybridDataManagerResourceId = HybridDataManagerResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, dataManagerName);
- HybridDataManagerResource hybridDataManager = client.GetHybridDataManagerResource(hybridDataManagerResourceId);
-
- // get the collection of this HybridDataStoreTypeResource
- HybridDataStoreTypeCollection collection = hybridDataManager.GetHybridDataStoreTypes();
-
- // invoke the operation
- string dataStoreTypeName = "AzureStorageAccount";
- HybridDataStoreTypeResource result = await collection.GetAsync(dataStoreTypeName);
-
- // 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
- HybridDataStoreTypeData resourceData = result.Data;
- // for demo we just print out the id
- Console.WriteLine($"Succeeded on id: {resourceData.Id}");
- }
-
- // DataStoreTypes_GetGET183
- [NUnit.Framework.Test]
- [NUnit.Framework.Ignore("Only verifying that the sample builds")]
- public async Task Exists_DataStoreTypesGetGET183()
- {
- // Generated from example definition: specification/hybriddatamanager/resource-manager/Microsoft.HybridData/stable/2019-06-01/examples/DataStoreTypes_Get-GET-example-183.json
- // this example is just showing the usage of "DataStoreTypes_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 HybridDataManagerResource created on azure
- // for more information of creating HybridDataManagerResource, please refer to the document of HybridDataManagerResource
- string subscriptionId = "6e0219f5-327a-4365-904f-05eed4227ad7";
- string resourceGroupName = "ResourceGroupForSDKTest";
- string dataManagerName = "TestAzureSDKOperations";
- ResourceIdentifier hybridDataManagerResourceId = HybridDataManagerResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, dataManagerName);
- HybridDataManagerResource hybridDataManager = client.GetHybridDataManagerResource(hybridDataManagerResourceId);
-
- // get the collection of this HybridDataStoreTypeResource
- HybridDataStoreTypeCollection collection = hybridDataManager.GetHybridDataStoreTypes();
-
- // invoke the operation
- string dataStoreTypeName = "AzureStorageAccount";
- bool result = await collection.ExistsAsync(dataStoreTypeName);
-
- Console.WriteLine($"Succeeded: {result}");
- }
- }
-}
diff --git a/sdk/hybriddatamanager/Azure.ResourceManager.HybridData/samples/Generated/Samples/Sample_HybridDataStoreTypeResource.cs b/sdk/hybriddatamanager/Azure.ResourceManager.HybridData/samples/Generated/Samples/Sample_HybridDataStoreTypeResource.cs
deleted file mode 100644
index e95592f52d46..000000000000
--- a/sdk/hybriddatamanager/Azure.ResourceManager.HybridData/samples/Generated/Samples/Sample_HybridDataStoreTypeResource.cs
+++ /dev/null
@@ -1,83 +0,0 @@
-// 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.HybridData;
-
-namespace Azure.ResourceManager.HybridData.Samples
-{
- public partial class Sample_HybridDataStoreTypeResource
- {
- // DataStoreTypes_GetGET182
- [NUnit.Framework.Test]
- [NUnit.Framework.Ignore("Only verifying that the sample builds")]
- public async Task Get_DataStoreTypesGetGET182()
- {
- // Generated from example definition: specification/hybriddatamanager/resource-manager/Microsoft.HybridData/stable/2019-06-01/examples/DataStoreTypes_Get-GET-example-182.json
- // this example is just showing the usage of "DataStoreTypes_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 HybridDataStoreTypeResource created on azure
- // for more information of creating HybridDataStoreTypeResource, please refer to the document of HybridDataStoreTypeResource
- string subscriptionId = "6e0219f5-327a-4365-904f-05eed4227ad7";
- string resourceGroupName = "ResourceGroupForSDKTest";
- string dataManagerName = "TestAzureSDKOperations";
- string dataStoreTypeName = "StorSimple8000Series";
- ResourceIdentifier hybridDataStoreTypeResourceId = HybridDataStoreTypeResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, dataManagerName, dataStoreTypeName);
- HybridDataStoreTypeResource hybridDataStoreType = client.GetHybridDataStoreTypeResource(hybridDataStoreTypeResourceId);
-
- // invoke the operation
- HybridDataStoreTypeResource result = await hybridDataStoreType.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
- HybridDataStoreTypeData resourceData = result.Data;
- // for demo we just print out the id
- Console.WriteLine($"Succeeded on id: {resourceData.Id}");
- }
-
- // DataStoreTypes_GetGET183
- [NUnit.Framework.Test]
- [NUnit.Framework.Ignore("Only verifying that the sample builds")]
- public async Task Get_DataStoreTypesGetGET183()
- {
- // Generated from example definition: specification/hybriddatamanager/resource-manager/Microsoft.HybridData/stable/2019-06-01/examples/DataStoreTypes_Get-GET-example-183.json
- // this example is just showing the usage of "DataStoreTypes_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 HybridDataStoreTypeResource created on azure
- // for more information of creating HybridDataStoreTypeResource, please refer to the document of HybridDataStoreTypeResource
- string subscriptionId = "6e0219f5-327a-4365-904f-05eed4227ad7";
- string resourceGroupName = "ResourceGroupForSDKTest";
- string dataManagerName = "TestAzureSDKOperations";
- string dataStoreTypeName = "AzureStorageAccount";
- ResourceIdentifier hybridDataStoreTypeResourceId = HybridDataStoreTypeResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, dataManagerName, dataStoreTypeName);
- HybridDataStoreTypeResource hybridDataStoreType = client.GetHybridDataStoreTypeResource(hybridDataStoreTypeResourceId);
-
- // invoke the operation
- HybridDataStoreTypeResource result = await hybridDataStoreType.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
- HybridDataStoreTypeData resourceData = result.Data;
- // for demo we just print out the id
- Console.WriteLine($"Succeeded on id: {resourceData.Id}");
- }
- }
-}
diff --git a/sdk/hybriddatamanager/Azure.ResourceManager.HybridData/samples/autorest.tests.md b/sdk/hybriddatamanager/Azure.ResourceManager.HybridData/samples/autorest.tests.md
deleted file mode 100644
index 6f47dbfd181f..000000000000
--- a/sdk/hybriddatamanager/Azure.ResourceManager.HybridData/samples/autorest.tests.md
+++ /dev/null
@@ -1,13 +0,0 @@
-# Generated code configuration
-
-Run `dotnet build /t:GenerateTests` to generate code.
-
-# Azure.ResourceManager.HybridData.Tests
-
-> see https://aka.ms/autorest
-``` yaml
-require: ../src/autorest.md
-include-x-ms-examples-original-file: true
-testgen:
- sample: true
-```
\ No newline at end of file
diff --git a/sdk/hybriddatamanager/Azure.ResourceManager.HybridData/src/Azure.ResourceManager.HybridData.csproj b/sdk/hybriddatamanager/Azure.ResourceManager.HybridData/src/Azure.ResourceManager.HybridData.csproj
deleted file mode 100644
index bf48fb070cd3..000000000000
--- a/sdk/hybriddatamanager/Azure.ResourceManager.HybridData/src/Azure.ResourceManager.HybridData.csproj
+++ /dev/null
@@ -1,10 +0,0 @@
-
-
- 1.1.0-beta.2
-
- 1.0.1
- Azure.ResourceManager.HybridData
- Microsoft Azure Resource Manager client SDK for Azure resource provider Microsoft.HybridData.
- azure;management;arm;resource manager;hybriddata
-
-
diff --git a/sdk/hybriddatamanager/Azure.ResourceManager.HybridData/src/Customized/Models/SupportedEncryptionAlgorithm.cs b/sdk/hybriddatamanager/Azure.ResourceManager.HybridData/src/Customized/Models/SupportedEncryptionAlgorithm.cs
deleted file mode 100644
index 4e784b125491..000000000000
--- a/sdk/hybriddatamanager/Azure.ResourceManager.HybridData/src/Customized/Models/SupportedEncryptionAlgorithm.cs
+++ /dev/null
@@ -1,26 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-
-#nullable disable
-
-using Azure.Core;
-
-namespace Azure.ResourceManager.HybridData.Models
-{
- /// The encryption algorithm used to encrypt data.
- public enum SupportedEncryptionAlgorithm
- {
- /// None.
- None,
-#pragma warning disable CA1707
- /// RSA1_5.
- [CodeGenMember("RSA15")]
- Rsa1_5,
- /// RSA_OAEP.
- [CodeGenMember("RsaOaep")]
- Rsa_Oaep,
-#pragma warning restore CA1707
- /// PlainText.
- PlainText
- }
-}
diff --git a/sdk/hybriddatamanager/Azure.ResourceManager.HybridData/src/Generated/ArmHybridDataModelFactory.cs b/sdk/hybriddatamanager/Azure.ResourceManager.HybridData/src/Generated/ArmHybridDataModelFactory.cs
deleted file mode 100644
index 71ecd9cbea9c..000000000000
--- a/sdk/hybriddatamanager/Azure.ResourceManager.HybridData/src/Generated/ArmHybridDataModelFactory.cs
+++ /dev/null
@@ -1,150 +0,0 @@
-// 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;
-using Azure.Core;
-using Azure.ResourceManager.HybridData;
-using Azure.ResourceManager.Models;
-
-namespace Azure.ResourceManager.HybridData.Models
-{
- /// Model factory for models.
- public static partial class ArmHybridDataModelFactory
- {
- /// Initializes a new instance of HybridDataManagerData.
- /// The id.
- /// The name.
- /// The resourceType.
- /// The systemData.
- /// The tags.
- /// The location.
- /// Etag of the Resource.
- /// The sku type.
- /// A new instance for mocking.
- public static HybridDataManagerData HybridDataManagerData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, ETag? etag = null, HybridDataSku sku = null)
- {
- tags ??= new Dictionary();
-
- return new HybridDataManagerData(id, name, resourceType, systemData, tags, location, etag, sku);
- }
-
- /// Initializes a new instance of HybridDataServiceData.
- /// The id.
- /// The name.
- /// The resourceType.
- /// The systemData.
- /// State of the data service.
- /// Supported data store types which can be used as a sink.
- /// Supported data store types which can be used as a source.
- /// A new instance for mocking.
- public static HybridDataServiceData HybridDataServiceData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, HybridDataState state = default, IEnumerable supportedDataSinkTypes = null, IEnumerable supportedDataSourceTypes = null)
- {
- supportedDataSinkTypes ??= new List();
- supportedDataSourceTypes ??= new List();
-
- return new HybridDataServiceData(id, name, resourceType, systemData, state, supportedDataSinkTypes?.ToList(), supportedDataSourceTypes?.ToList());
- }
-
- /// Initializes a new instance of HybridDataJobDefinitionData.
- /// The id.
- /// The name.
- /// The resourceType.
- /// The systemData.
- /// Data Source Id associated to the job definition.
- /// Data Sink Id associated to the job definition.
- /// Schedule for running the job definition.
- /// State of the job definition.
- /// Last modified time of the job definition.
- /// This is the preferred geo location for the job to run.
- /// Enum to detect if user confirmation is required. If not passed will default to NotRequired.
- /// A generic json used differently by each data service type.
- /// List of customer secrets containing a key identifier and key value. The key identifier is a way for the specific data source to understand the key. Value contains customer secret encrypted by the encryptionKeys.
- /// A new instance for mocking.
- public static HybridDataJobDefinitionData HybridDataJobDefinitionData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, string dataSourceId = null, string dataSinkId = null, IEnumerable schedules = null, HybridDataState state = default, DateTimeOffset? lastModifiedOn = null, HybridDataJobRunLocation? runLocation = null, UserConfirmationSetting? userConfirmation = null, BinaryData dataServiceInput = null, IEnumerable customerSecrets = null)
- {
- schedules ??= new List();
- customerSecrets ??= new List();
-
- return new HybridDataJobDefinitionData(id, name, resourceType, systemData, dataSourceId, dataSinkId, schedules?.ToList(), state, lastModifiedOn, runLocation, userConfirmation, dataServiceInput, customerSecrets?.ToList());
- }
-
- /// Initializes a new instance of HybridDataJobData.
- /// The id.
- /// The name.
- /// The resourceType.
- /// The systemData.
- /// Status of the job.
- /// Time at which the job was started in UTC ISO 8601 format.
- /// Time at which the job ended in UTC ISO 8601 format.
- /// Top level error for the job.
- /// Describes whether the job is cancellable.
- /// Number of bytes processed by the job as of now.
- /// Number of items processed by the job as of now.
- /// Number of bytes to be processed by the job in total.
- /// Number of items to be processed by the job in total.
- /// Details of a job run. This field will only be sent for expand details filter.
- /// Name of the data source on which the job was triggered.
- /// Name of the data sink on which the job was triggered.
- /// A new instance for mocking.
- public static HybridDataJobData HybridDataJobData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, HybridDataJobStatus status = default, DateTimeOffset startOn = default, DateTimeOffset? endOn = null, HybridDataJobTopLevelError error = null, JobCancellationSetting isCancellable = default, long? bytesProcessed = null, long? itemsProcessed = null, long? totalBytesToProcess = null, long? totalItemsToProcess = null, HybridDataJobDetails details = null, string dataSourceName = null, string dataSinkName = null)
- {
- return new HybridDataJobData(id, name, resourceType, systemData, status, startOn, endOn, error, isCancellable, bytesProcessed, itemsProcessed, totalBytesToProcess, totalItemsToProcess, details, dataSourceName, dataSinkName);
- }
-
- /// Initializes a new instance of HybridDataStoreData.
- /// The id.
- /// The name.
- /// The resourceType.
- /// The systemData.
- /// Arm Id for the manager resource to which the data source is associated. This is optional.
- /// State of the data source.
- /// A generic json used differently by each data source type.
- /// The arm id of the data store type.
- /// List of customer secrets containing a key identifier and key value. The key identifier is a way for the specific data source to understand the key. Value contains customer secret encrypted by the encryptionKeys.
- /// A new instance for mocking.
- public static HybridDataStoreData HybridDataStoreData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, ResourceIdentifier repositoryId = null, HybridDataState state = default, BinaryData extendedProperties = null, ResourceIdentifier dataStoreTypeId = null, IEnumerable customerSecrets = null)
- {
- customerSecrets ??= new List();
-
- return new HybridDataStoreData(id, name, resourceType, systemData, repositoryId, state, extendedProperties, dataStoreTypeId, customerSecrets?.ToList());
- }
-
- /// Initializes a new instance of HybridDataStoreTypeData.
- /// The id.
- /// The name.
- /// The resourceType.
- /// The systemData.
- /// Arm type for the manager resource to which the data source type is associated. This is optional.
- /// State of the data store type.
- /// Supported data services where it can be used as a sink.
- /// Supported data services where it can be used as a source.
- /// A new instance for mocking.
- public static HybridDataStoreTypeData HybridDataStoreTypeData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, ResourceType? repositoryType = null, HybridDataState state = default, IEnumerable supportedDataServicesAsSink = null, IEnumerable supportedDataServicesAsSource = null)
- {
- supportedDataServicesAsSink ??= new List();
- supportedDataServicesAsSource ??= new List();
-
- return new HybridDataStoreTypeData(id, name, resourceType, systemData, repositoryType, state, supportedDataServicesAsSink?.ToList(), supportedDataServicesAsSource?.ToList());
- }
-
- /// Initializes a new instance of HybridDataPublicKeyData.
- /// The id.
- /// The name.
- /// The resourceType.
- /// The systemData.
- /// Level one public key for encryption.
- /// Level two public key for encryption.
- /// A new instance for mocking.
- public static HybridDataPublicKeyData HybridDataPublicKeyData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, HybridDataEncryptionKey dataServiceLevel1Key = null, HybridDataEncryptionKey dataServiceLevel2Key = null)
- {
- return new HybridDataPublicKeyData(id, name, resourceType, systemData, dataServiceLevel1Key, dataServiceLevel2Key);
- }
- }
-}
diff --git a/sdk/hybriddatamanager/Azure.ResourceManager.HybridData/src/Generated/Extensions/HybridDataExtensions.cs b/sdk/hybriddatamanager/Azure.ResourceManager.HybridData/src/Generated/Extensions/HybridDataExtensions.cs
deleted file mode 100644
index 985f757def8b..000000000000
--- a/sdk/hybriddatamanager/Azure.ResourceManager.HybridData/src/Generated/Extensions/HybridDataExtensions.cs
+++ /dev/null
@@ -1,283 +0,0 @@
-// 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.HybridData
-{
- /// A class to add extension methods to Azure.ResourceManager.HybridData.
- public static partial class HybridDataExtensions
- {
- 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 HybridDataManagerResource
- ///
- /// 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 HybridDataManagerResource GetHybridDataManagerResource(this ArmClient client, ResourceIdentifier id)
- {
- return client.GetResourceClient(() =>
- {
- HybridDataManagerResource.ValidateResourceId(id);
- return new HybridDataManagerResource(client, id);
- }
- );
- }
- #endregion
-
- #region HybridDataServiceResource
- ///
- /// 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 HybridDataServiceResource GetHybridDataServiceResource(this ArmClient client, ResourceIdentifier id)
- {
- return client.GetResourceClient(() =>
- {
- HybridDataServiceResource.ValidateResourceId(id);
- return new HybridDataServiceResource(client, id);
- }
- );
- }
- #endregion
-
- #region HybridDataJobDefinitionResource
- ///
- /// 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 HybridDataJobDefinitionResource GetHybridDataJobDefinitionResource(this ArmClient client, ResourceIdentifier id)
- {
- return client.GetResourceClient(() =>
- {
- HybridDataJobDefinitionResource.ValidateResourceId(id);
- return new HybridDataJobDefinitionResource(client, id);
- }
- );
- }
- #endregion
-
- #region HybridDataJobResource
- ///
- /// 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 HybridDataJobResource GetHybridDataJobResource(this ArmClient client, ResourceIdentifier id)
- {
- return client.GetResourceClient(() =>
- {
- HybridDataJobResource.ValidateResourceId(id);
- return new HybridDataJobResource(client, id);
- }
- );
- }
- #endregion
-
- #region HybridDataStoreResource
- ///
- /// 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 HybridDataStoreResource GetHybridDataStoreResource(this ArmClient client, ResourceIdentifier id)
- {
- return client.GetResourceClient(() =>
- {
- HybridDataStoreResource.ValidateResourceId(id);
- return new HybridDataStoreResource(client, id);
- }
- );
- }
- #endregion
-
- #region HybridDataStoreTypeResource
- ///
- /// 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 HybridDataStoreTypeResource GetHybridDataStoreTypeResource(this ArmClient client, ResourceIdentifier id)
- {
- return client.GetResourceClient(() =>
- {
- HybridDataStoreTypeResource.ValidateResourceId(id);
- return new HybridDataStoreTypeResource(client, id);
- }
- );
- }
- #endregion
-
- #region HybridDataPublicKeyResource
- ///
- /// 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 HybridDataPublicKeyResource GetHybridDataPublicKeyResource(this ArmClient client, ResourceIdentifier id)
- {
- return client.GetResourceClient(() =>
- {
- HybridDataPublicKeyResource.ValidateResourceId(id);
- return new HybridDataPublicKeyResource(client, id);
- }
- );
- }
- #endregion
-
- /// Gets a collection of HybridDataManagerResources in the ResourceGroupResource.
- /// The instance the method will execute against.
- /// An object representing collection of HybridDataManagerResources and their operations over a HybridDataManagerResource.
- public static HybridDataManagerCollection GetHybridDataManagers(this ResourceGroupResource resourceGroupResource)
- {
- return GetResourceGroupResourceExtensionClient(resourceGroupResource).GetHybridDataManagers();
- }
-
- ///
- /// Gets information about the specified data manager resource.
- ///
- /// -
- /// Request Path
- /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridData/dataManagers/{dataManagerName}
- ///
- /// -
- /// Operation Id
- /// DataManagers_Get
- ///
- ///
- ///
- /// The instance the method will execute against.
- /// The name of the DataManager Resource within the specified resource group. DataManager names must be between 3 and 24 characters in length and use any alphanumeric and underscore only.
- /// The cancellation token to use.
- /// is an empty string, and was expected to be non-empty.
- /// is null.
- [ForwardsClientCalls]
- public static async Task> GetHybridDataManagerAsync(this ResourceGroupResource resourceGroupResource, string dataManagerName, CancellationToken cancellationToken = default)
- {
- return await resourceGroupResource.GetHybridDataManagers().GetAsync(dataManagerName, cancellationToken).ConfigureAwait(false);
- }
-
- ///
- /// Gets information about the specified data manager resource.
- ///
- /// -
- /// Request Path
- /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridData/dataManagers/{dataManagerName}
- ///
- /// -
- /// Operation Id
- /// DataManagers_Get
- ///
- ///
- ///
- /// The instance the method will execute against.
- /// The name of the DataManager Resource within the specified resource group. DataManager names must be between 3 and 24 characters in length and use any alphanumeric and underscore only.
- /// The cancellation token to use.
- /// is an empty string, and was expected to be non-empty.
- /// is null.
- [ForwardsClientCalls]
- public static Response GetHybridDataManager(this ResourceGroupResource resourceGroupResource, string dataManagerName, CancellationToken cancellationToken = default)
- {
- return resourceGroupResource.GetHybridDataManagers().Get(dataManagerName, cancellationToken);
- }
-
- ///
- /// Lists all the data manager resources available under the subscription.
- ///
- /// -
- /// Request Path
- /// /subscriptions/{subscriptionId}/providers/Microsoft.HybridData/dataManagers
- ///
- /// -
- /// Operation Id
- /// DataManagers_List
- ///
- ///
- ///
- /// The instance the method will execute against.
- /// The cancellation token to use.
- /// An async collection of that may take multiple service requests to iterate over.
- public static AsyncPageable GetHybridDataManagersAsync(this SubscriptionResource subscriptionResource, CancellationToken cancellationToken = default)
- {
- return GetSubscriptionResourceExtensionClient(subscriptionResource).GetHybridDataManagersAsync(cancellationToken);
- }
-
- ///
- /// Lists all the data manager resources available under the subscription.
- ///
- /// -
- /// Request Path
- /// /subscriptions/{subscriptionId}/providers/Microsoft.HybridData/dataManagers
- ///
- /// -
- /// Operation Id
- /// DataManagers_List
- ///
- ///
- ///
- /// The instance the method will execute against.
- /// The cancellation token to use.
- /// A collection of that may take multiple service requests to iterate over.
- public static Pageable GetHybridDataManagers(this SubscriptionResource subscriptionResource, CancellationToken cancellationToken = default)
- {
- return GetSubscriptionResourceExtensionClient(subscriptionResource).GetHybridDataManagers(cancellationToken);
- }
- }
-}
diff --git a/sdk/hybriddatamanager/Azure.ResourceManager.HybridData/src/Generated/Extensions/ResourceGroupResourceExtensionClient.cs b/sdk/hybriddatamanager/Azure.ResourceManager.HybridData/src/Generated/Extensions/ResourceGroupResourceExtensionClient.cs
deleted file mode 100644
index b67ff921541f..000000000000
--- a/sdk/hybriddatamanager/Azure.ResourceManager.HybridData/src/Generated/Extensions/ResourceGroupResourceExtensionClient.cs
+++ /dev/null
@@ -1,41 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-
-//
-
-#nullable disable
-
-using Azure.Core;
-using Azure.ResourceManager;
-
-namespace Azure.ResourceManager.HybridData
-{
- /// 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 HybridDataManagerResources in the ResourceGroupResource.
- /// An object representing collection of HybridDataManagerResources and their operations over a HybridDataManagerResource.
- public virtual HybridDataManagerCollection GetHybridDataManagers()
- {
- return GetCachedClient(Client => new HybridDataManagerCollection(Client, Id));
- }
- }
-}
diff --git a/sdk/hybriddatamanager/Azure.ResourceManager.HybridData/src/Generated/Extensions/SubscriptionResourceExtensionClient.cs b/sdk/hybriddatamanager/Azure.ResourceManager.HybridData/src/Generated/Extensions/SubscriptionResourceExtensionClient.cs
deleted file mode 100644
index 925c48e7f54e..000000000000
--- a/sdk/hybriddatamanager/Azure.ResourceManager.HybridData/src/Generated/Extensions/SubscriptionResourceExtensionClient.cs
+++ /dev/null
@@ -1,85 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-
-//
-
-#nullable disable
-
-using System.Threading;
-using Azure;
-using Azure.Core;
-using Azure.Core.Pipeline;
-using Azure.ResourceManager;
-
-namespace Azure.ResourceManager.HybridData
-{
- /// A class to add extension methods to SubscriptionResource.
- internal partial class SubscriptionResourceExtensionClient : ArmResource
- {
- private ClientDiagnostics _hybridDataManagerDataManagersClientDiagnostics;
- private DataManagersRestOperations _hybridDataManagerDataManagersRestClient;
-
- /// 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 HybridDataManagerDataManagersClientDiagnostics => _hybridDataManagerDataManagersClientDiagnostics ??= new ClientDiagnostics("Azure.ResourceManager.HybridData", HybridDataManagerResource.ResourceType.Namespace, Diagnostics);
- private DataManagersRestOperations HybridDataManagerDataManagersRestClient => _hybridDataManagerDataManagersRestClient ??= new DataManagersRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, GetApiVersionOrNull(HybridDataManagerResource.ResourceType));
-
- private string GetApiVersionOrNull(ResourceType resourceType)
- {
- TryGetApiVersion(resourceType, out string apiVersion);
- return apiVersion;
- }
-
- ///
- /// Lists all the data manager resources available under the subscription.
- ///
- /// -
- /// Request Path
- /// /subscriptions/{subscriptionId}/providers/Microsoft.HybridData/dataManagers
- ///
- /// -
- /// Operation Id
- /// DataManagers_List
- ///
- ///
- ///
- /// The cancellation token to use.
- /// An async collection of that may take multiple service requests to iterate over.
- public virtual AsyncPageable GetHybridDataManagersAsync(CancellationToken cancellationToken = default)
- {
- HttpMessage FirstPageRequest(int? pageSizeHint) => HybridDataManagerDataManagersRestClient.CreateListRequest(Id.SubscriptionId);
- return PageableHelpers.CreateAsyncPageable(FirstPageRequest, null, e => new HybridDataManagerResource(Client, HybridDataManagerData.DeserializeHybridDataManagerData(e)), HybridDataManagerDataManagersClientDiagnostics, Pipeline, "SubscriptionResourceExtensionClient.GetHybridDataManagers", "value", null, cancellationToken);
- }
-
- ///
- /// Lists all the data manager resources available under the subscription.
- ///
- /// -
- /// Request Path
- /// /subscriptions/{subscriptionId}/providers/Microsoft.HybridData/dataManagers
- ///
- /// -
- /// Operation Id
- /// DataManagers_List
- ///
- ///
- ///
- /// The cancellation token to use.
- /// A collection of that may take multiple service requests to iterate over.
- public virtual Pageable GetHybridDataManagers(CancellationToken cancellationToken = default)
- {
- HttpMessage FirstPageRequest(int? pageSizeHint) => HybridDataManagerDataManagersRestClient.CreateListRequest(Id.SubscriptionId);
- return PageableHelpers.CreatePageable(FirstPageRequest, null, e => new HybridDataManagerResource(Client, HybridDataManagerData.DeserializeHybridDataManagerData(e)), HybridDataManagerDataManagersClientDiagnostics, Pipeline, "SubscriptionResourceExtensionClient.GetHybridDataManagers", "value", null, cancellationToken);
- }
- }
-}
diff --git a/sdk/hybriddatamanager/Azure.ResourceManager.HybridData/src/Generated/HybridDataJobCollection.cs b/sdk/hybriddatamanager/Azure.ResourceManager.HybridData/src/Generated/HybridDataJobCollection.cs
deleted file mode 100644
index e621c3b31036..000000000000
--- a/sdk/hybriddatamanager/Azure.ResourceManager.HybridData/src/Generated/HybridDataJobCollection.cs
+++ /dev/null
@@ -1,264 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-
-//
-
-#nullable disable
-
-using System;
-using System.Collections;
-using System.Collections.Generic;
-using System.Globalization;
-using System.Threading;
-using System.Threading.Tasks;
-using Azure;
-using Azure.Core;
-using Azure.Core.Pipeline;
-using Azure.ResourceManager;
-
-namespace Azure.ResourceManager.HybridData
-{
- ///
- /// 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 GetHybridDataJobs method from an instance of .
- ///
- public partial class HybridDataJobCollection : ArmCollection, IEnumerable, IAsyncEnumerable
- {
- private readonly ClientDiagnostics _hybridDataJobJobsClientDiagnostics;
- private readonly JobsRestOperations _hybridDataJobJobsRestClient;
-
- /// Initializes a new instance of the class for mocking.
- protected HybridDataJobCollection()
- {
- }
-
- /// 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 HybridDataJobCollection(ArmClient client, ResourceIdentifier id) : base(client, id)
- {
- _hybridDataJobJobsClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.HybridData", HybridDataJobResource.ResourceType.Namespace, Diagnostics);
- TryGetApiVersion(HybridDataJobResource.ResourceType, out string hybridDataJobJobsApiVersion);
- _hybridDataJobJobsRestClient = new JobsRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, hybridDataJobJobsApiVersion);
-#if DEBUG
- ValidateResourceId(Id);
-#endif
- }
-
- internal static void ValidateResourceId(ResourceIdentifier id)
- {
- if (id.ResourceType != HybridDataJobDefinitionResource.ResourceType)
- throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "Invalid resource type {0} expected {1}", id.ResourceType, HybridDataJobDefinitionResource.ResourceType), nameof(id));
- }
-
- ///
- /// This method gets a data manager job given the jobId.
- ///
- /// -
- /// Request Path
- /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridData/dataManagers/{dataManagerName}/dataServices/{dataServiceName}/jobDefinitions/{jobDefinitionName}/jobs/{jobId}
- ///
- /// -
- /// Operation Id
- /// Jobs_Get
- ///
- ///
- ///
- /// The job id of the job queried.
- /// $expand is supported on details parameter for job, which provides details on the job stages.
- /// The cancellation token to use.
- /// is an empty string, and was expected to be non-empty.
- /// is null.
- public virtual async Task> GetAsync(string jobId, string expand = null, CancellationToken cancellationToken = default)
- {
- Argument.AssertNotNullOrEmpty(jobId, nameof(jobId));
-
- using var scope = _hybridDataJobJobsClientDiagnostics.CreateScope("HybridDataJobCollection.Get");
- scope.Start();
- try
- {
- var response = await _hybridDataJobJobsRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, jobId, expand, cancellationToken).ConfigureAwait(false);
- if (response.Value == null)
- throw new RequestFailedException(response.GetRawResponse());
- return Response.FromValue(new HybridDataJobResource(Client, response.Value), response.GetRawResponse());
- }
- catch (Exception e)
- {
- scope.Failed(e);
- throw;
- }
- }
-
- ///
- /// This method gets a data manager job given the jobId.
- ///
- /// -
- /// Request Path
- /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridData/dataManagers/{dataManagerName}/dataServices/{dataServiceName}/jobDefinitions/{jobDefinitionName}/jobs/{jobId}
- ///
- /// -
- /// Operation Id
- /// Jobs_Get
- ///
- ///
- ///
- /// The job id of the job queried.
- /// $expand is supported on details parameter for job, which provides details on the job stages.
- /// The cancellation token to use.
- /// is an empty string, and was expected to be non-empty.
- /// is null.
- public virtual Response Get(string jobId, string expand = null, CancellationToken cancellationToken = default)
- {
- Argument.AssertNotNullOrEmpty(jobId, nameof(jobId));
-
- using var scope = _hybridDataJobJobsClientDiagnostics.CreateScope("HybridDataJobCollection.Get");
- scope.Start();
- try
- {
- var response = _hybridDataJobJobsRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, jobId, expand, cancellationToken);
- if (response.Value == null)
- throw new RequestFailedException(response.GetRawResponse());
- return Response.FromValue(new HybridDataJobResource(Client, response.Value), response.GetRawResponse());
- }
- catch (Exception e)
- {
- scope.Failed(e);
- throw;
- }
- }
-
- ///
- /// This method gets all the jobs of a given job definition.
- ///
- /// -
- /// Request Path
- /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridData/dataManagers/{dataManagerName}/dataServices/{dataServiceName}/jobDefinitions/{jobDefinitionName}/jobs
- ///
- /// -
- /// Operation Id
- /// Jobs_ListByJobDefinition
- ///
- ///
- ///
- /// OData Filter options.
- /// The cancellation token to use.
- /// An async collection of that may take multiple service requests to iterate over.
- public virtual AsyncPageable GetAllAsync(string filter = null, CancellationToken cancellationToken = default)
- {
- HttpMessage FirstPageRequest(int? pageSizeHint) => _hybridDataJobJobsRestClient.CreateListByJobDefinitionRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, filter);
- HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _hybridDataJobJobsRestClient.CreateListByJobDefinitionNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, filter);
- return PageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => new HybridDataJobResource(Client, HybridDataJobData.DeserializeHybridDataJobData(e)), _hybridDataJobJobsClientDiagnostics, Pipeline, "HybridDataJobCollection.GetAll", "value", "nextLink", cancellationToken);
- }
-
- ///
- /// This method gets all the jobs of a given job definition.
- ///
- /// -
- /// Request Path
- /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridData/dataManagers/{dataManagerName}/dataServices/{dataServiceName}/jobDefinitions/{jobDefinitionName}/jobs
- ///
- /// -
- /// Operation Id
- /// Jobs_ListByJobDefinition
- ///
- ///
- ///
- /// OData Filter options.
- /// The cancellation token to use.
- /// A collection of that may take multiple service requests to iterate over.
- public virtual Pageable GetAll(string filter = null, CancellationToken cancellationToken = default)
- {
- HttpMessage FirstPageRequest(int? pageSizeHint) => _hybridDataJobJobsRestClient.CreateListByJobDefinitionRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, filter);
- HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _hybridDataJobJobsRestClient.CreateListByJobDefinitionNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, filter);
- return PageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new HybridDataJobResource(Client, HybridDataJobData.DeserializeHybridDataJobData(e)), _hybridDataJobJobsClientDiagnostics, Pipeline, "HybridDataJobCollection.GetAll", "value", "nextLink", cancellationToken);
- }
-
- ///
- /// Checks to see if the resource exists in azure.
- ///
- /// -
- /// Request Path
- /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridData/dataManagers/{dataManagerName}/dataServices/{dataServiceName}/jobDefinitions/{jobDefinitionName}/jobs/{jobId}
- ///
- /// -
- /// Operation Id
- /// Jobs_Get
- ///
- ///
- ///
- /// The job id of the job queried.
- /// $expand is supported on details parameter for job, which provides details on the job stages.
- /// The cancellation token to use.
- /// is an empty string, and was expected to be non-empty.
- /// is null.
- public virtual async Task> ExistsAsync(string jobId, string expand = null, CancellationToken cancellationToken = default)
- {
- Argument.AssertNotNullOrEmpty(jobId, nameof(jobId));
-
- using var scope = _hybridDataJobJobsClientDiagnostics.CreateScope("HybridDataJobCollection.Exists");
- scope.Start();
- try
- {
- var response = await _hybridDataJobJobsRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, jobId, expand, 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.HybridData/dataManagers/{dataManagerName}/dataServices/{dataServiceName}/jobDefinitions/{jobDefinitionName}/jobs/{jobId}
- ///
- /// -
- /// Operation Id
- /// Jobs_Get
- ///
- ///
- ///
- /// The job id of the job queried.
- /// $expand is supported on details parameter for job, which provides details on the job stages.
- /// The cancellation token to use.
- /// is an empty string, and was expected to be non-empty.
- /// is null.
- public virtual Response Exists(string jobId, string expand = null, CancellationToken cancellationToken = default)
- {
- Argument.AssertNotNullOrEmpty(jobId, nameof(jobId));
-
- using var scope = _hybridDataJobJobsClientDiagnostics.CreateScope("HybridDataJobCollection.Exists");
- scope.Start();
- try
- {
- var response = _hybridDataJobJobsRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, jobId, expand, cancellationToken: cancellationToken);
- return Response.FromValue(response.Value != null, response.GetRawResponse());
- }
- catch (Exception e)
- {
- scope.Failed(e);
- throw;
- }
- }
-
- IEnumerator IEnumerable.GetEnumerator()
- {
- return GetAll().GetEnumerator();
- }
-
- IEnumerator IEnumerable.GetEnumerator()
- {
- return GetAll().GetEnumerator();
- }
-
- IAsyncEnumerator IAsyncEnumerable.GetAsyncEnumerator(CancellationToken cancellationToken)
- {
- return GetAllAsync(cancellationToken: cancellationToken).GetAsyncEnumerator(cancellationToken);
- }
- }
-}
diff --git a/sdk/hybriddatamanager/Azure.ResourceManager.HybridData/src/Generated/HybridDataJobData.cs b/sdk/hybriddatamanager/Azure.ResourceManager.HybridData/src/Generated/HybridDataJobData.cs
deleted file mode 100644
index 6da8da0d0e2f..000000000000
--- a/sdk/hybriddatamanager/Azure.ResourceManager.HybridData/src/Generated/HybridDataJobData.cs
+++ /dev/null
@@ -1,90 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-
-//
-
-#nullable disable
-
-using System;
-using Azure.Core;
-using Azure.ResourceManager.HybridData.Models;
-using Azure.ResourceManager.Models;
-
-namespace Azure.ResourceManager.HybridData
-{
- ///
- /// A class representing the HybridDataJob data model.
- /// Data service job.
- ///
- public partial class HybridDataJobData : ResourceData
- {
- /// Initializes a new instance of HybridDataJobData.
- /// Status of the job.
- /// Time at which the job was started in UTC ISO 8601 format.
- /// Describes whether the job is cancellable.
- public HybridDataJobData(HybridDataJobStatus status, DateTimeOffset startOn, JobCancellationSetting isCancellable)
- {
- Status = status;
- StartOn = startOn;
- IsCancellable = isCancellable;
- }
-
- /// Initializes a new instance of HybridDataJobData.
- /// The id.
- /// The name.
- /// The resourceType.
- /// The systemData.
- /// Status of the job.
- /// Time at which the job was started in UTC ISO 8601 format.
- /// Time at which the job ended in UTC ISO 8601 format.
- /// Top level error for the job.
- /// Describes whether the job is cancellable.
- /// Number of bytes processed by the job as of now.
- /// Number of items processed by the job as of now.
- /// Number of bytes to be processed by the job in total.
- /// Number of items to be processed by the job in total.
- /// Details of a job run. This field will only be sent for expand details filter.
- /// Name of the data source on which the job was triggered.
- /// Name of the data sink on which the job was triggered.
- internal HybridDataJobData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, HybridDataJobStatus status, DateTimeOffset startOn, DateTimeOffset? endOn, HybridDataJobTopLevelError error, JobCancellationSetting isCancellable, long? bytesProcessed, long? itemsProcessed, long? totalBytesToProcess, long? totalItemsToProcess, HybridDataJobDetails details, string dataSourceName, string dataSinkName) : base(id, name, resourceType, systemData)
- {
- Status = status;
- StartOn = startOn;
- EndOn = endOn;
- Error = error;
- IsCancellable = isCancellable;
- BytesProcessed = bytesProcessed;
- ItemsProcessed = itemsProcessed;
- TotalBytesToProcess = totalBytesToProcess;
- TotalItemsToProcess = totalItemsToProcess;
- Details = details;
- DataSourceName = dataSourceName;
- DataSinkName = dataSinkName;
- }
-
- /// Status of the job.
- public HybridDataJobStatus Status { get; set; }
- /// Time at which the job was started in UTC ISO 8601 format.
- public DateTimeOffset StartOn { get; set; }
- /// Time at which the job ended in UTC ISO 8601 format.
- public DateTimeOffset? EndOn { get; set; }
- /// Top level error for the job.
- public HybridDataJobTopLevelError Error { get; set; }
- /// Describes whether the job is cancellable.
- public JobCancellationSetting IsCancellable { get; set; }
- /// Number of bytes processed by the job as of now.
- public long? BytesProcessed { get; set; }
- /// Number of items processed by the job as of now.
- public long? ItemsProcessed { get; set; }
- /// Number of bytes to be processed by the job in total.
- public long? TotalBytesToProcess { get; set; }
- /// Number of items to be processed by the job in total.
- public long? TotalItemsToProcess { get; set; }
- /// Details of a job run. This field will only be sent for expand details filter.
- public HybridDataJobDetails Details { get; set; }
- /// Name of the data source on which the job was triggered.
- public string DataSourceName { get; set; }
- /// Name of the data sink on which the job was triggered.
- public string DataSinkName { get; set; }
- }
-}
diff --git a/sdk/hybriddatamanager/Azure.ResourceManager.HybridData/src/Generated/HybridDataJobDefinitionCollection.cs b/sdk/hybriddatamanager/Azure.ResourceManager.HybridData/src/Generated/HybridDataJobDefinitionCollection.cs
deleted file mode 100644
index 39e59f8db874..000000000000
--- a/sdk/hybriddatamanager/Azure.ResourceManager.HybridData/src/Generated/HybridDataJobDefinitionCollection.cs
+++ /dev/null
@@ -1,342 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-
-//
-
-#nullable disable
-
-using System;
-using System.Collections;
-using System.Collections.Generic;
-using System.Globalization;
-using System.Threading;
-using System.Threading.Tasks;
-using Azure;
-using Azure.Core;
-using Azure.Core.Pipeline;
-using Azure.ResourceManager;
-
-namespace Azure.ResourceManager.HybridData
-{
- ///
- /// 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 GetHybridDataJobDefinitions method from an instance of .
- ///
- public partial class HybridDataJobDefinitionCollection : ArmCollection, IEnumerable, IAsyncEnumerable
- {
- private readonly ClientDiagnostics _hybridDataJobDefinitionJobDefinitionsClientDiagnostics;
- private readonly JobDefinitionsRestOperations _hybridDataJobDefinitionJobDefinitionsRestClient;
-
- /// Initializes a new instance of the class for mocking.
- protected HybridDataJobDefinitionCollection()
- {
- }
-
- /// 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 HybridDataJobDefinitionCollection(ArmClient client, ResourceIdentifier id) : base(client, id)
- {
- _hybridDataJobDefinitionJobDefinitionsClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.HybridData", HybridDataJobDefinitionResource.ResourceType.Namespace, Diagnostics);
- TryGetApiVersion(HybridDataJobDefinitionResource.ResourceType, out string hybridDataJobDefinitionJobDefinitionsApiVersion);
- _hybridDataJobDefinitionJobDefinitionsRestClient = new JobDefinitionsRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, hybridDataJobDefinitionJobDefinitionsApiVersion);
-#if DEBUG
- ValidateResourceId(Id);
-#endif
- }
-
- internal static void ValidateResourceId(ResourceIdentifier id)
- {
- if (id.ResourceType != HybridDataServiceResource.ResourceType)
- throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "Invalid resource type {0} expected {1}", id.ResourceType, HybridDataServiceResource.ResourceType), nameof(id));
- }
-
- ///
- /// Creates or updates a job definition.
- ///
- /// -
- /// Request Path
- /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridData/dataManagers/{dataManagerName}/dataServices/{dataServiceName}/jobDefinitions/{jobDefinitionName}
- ///
- /// -
- /// Operation Id
- /// JobDefinitions_CreateOrUpdate
- ///
- ///
- ///
- /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples.
- /// The job definition name to be created or updated.
- /// Job Definition object to be created or updated.
- /// 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 jobDefinitionName, HybridDataJobDefinitionData data, CancellationToken cancellationToken = default)
- {
- Argument.AssertNotNullOrEmpty(jobDefinitionName, nameof(jobDefinitionName));
- Argument.AssertNotNull(data, nameof(data));
-
- using var scope = _hybridDataJobDefinitionJobDefinitionsClientDiagnostics.CreateScope("HybridDataJobDefinitionCollection.CreateOrUpdate");
- scope.Start();
- try
- {
- var response = await _hybridDataJobDefinitionJobDefinitionsRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, jobDefinitionName, data, cancellationToken).ConfigureAwait(false);
- var operation = new HybridDataArmOperation(new HybridDataJobDefinitionOperationSource(Client), _hybridDataJobDefinitionJobDefinitionsClientDiagnostics, Pipeline, _hybridDataJobDefinitionJobDefinitionsRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, jobDefinitionName, data).Request, response, OperationFinalStateVia.Location);
- if (waitUntil == WaitUntil.Completed)
- await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false);
- return operation;
- }
- catch (Exception e)
- {
- scope.Failed(e);
- throw;
- }
- }
-
- ///
- /// Creates or updates a job definition.
- ///
- /// -
- /// Request Path
- /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridData/dataManagers/{dataManagerName}/dataServices/{dataServiceName}/jobDefinitions/{jobDefinitionName}
- ///
- /// -
- /// Operation Id
- /// JobDefinitions_CreateOrUpdate
- ///
- ///
- ///
- /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples.
- /// The job definition name to be created or updated.
- /// Job Definition object to be created or updated.
- /// 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 jobDefinitionName, HybridDataJobDefinitionData data, CancellationToken cancellationToken = default)
- {
- Argument.AssertNotNullOrEmpty(jobDefinitionName, nameof(jobDefinitionName));
- Argument.AssertNotNull(data, nameof(data));
-
- using var scope = _hybridDataJobDefinitionJobDefinitionsClientDiagnostics.CreateScope("HybridDataJobDefinitionCollection.CreateOrUpdate");
- scope.Start();
- try
- {
- var response = _hybridDataJobDefinitionJobDefinitionsRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, jobDefinitionName, data, cancellationToken);
- var operation = new HybridDataArmOperation(new HybridDataJobDefinitionOperationSource(Client), _hybridDataJobDefinitionJobDefinitionsClientDiagnostics, Pipeline, _hybridDataJobDefinitionJobDefinitionsRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, jobDefinitionName, data).Request, response, OperationFinalStateVia.Location);
- if (waitUntil == WaitUntil.Completed)
- operation.WaitForCompletion(cancellationToken);
- return operation;
- }
- catch (Exception e)
- {
- scope.Failed(e);
- throw;
- }
- }
-
- ///
- /// This method gets job definition object by name.
- ///
- /// -
- /// Request Path
- /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridData/dataManagers/{dataManagerName}/dataServices/{dataServiceName}/jobDefinitions/{jobDefinitionName}
- ///
- /// -
- /// Operation Id
- /// JobDefinitions_Get
- ///
- ///
- ///
- /// The job definition name that is being queried.
- /// The cancellation token to use.
- /// is an empty string, and was expected to be non-empty.
- /// is null.
- public virtual async Task> GetAsync(string jobDefinitionName, CancellationToken cancellationToken = default)
- {
- Argument.AssertNotNullOrEmpty(jobDefinitionName, nameof(jobDefinitionName));
-
- using var scope = _hybridDataJobDefinitionJobDefinitionsClientDiagnostics.CreateScope("HybridDataJobDefinitionCollection.Get");
- scope.Start();
- try
- {
- var response = await _hybridDataJobDefinitionJobDefinitionsRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, jobDefinitionName, cancellationToken).ConfigureAwait(false);
- if (response.Value == null)
- throw new RequestFailedException(response.GetRawResponse());
- return Response.FromValue(new HybridDataJobDefinitionResource(Client, response.Value), response.GetRawResponse());
- }
- catch (Exception e)
- {
- scope.Failed(e);
- throw;
- }
- }
-
- ///
- /// This method gets job definition object by name.
- ///
- /// -
- /// Request Path
- /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridData/dataManagers/{dataManagerName}/dataServices/{dataServiceName}/jobDefinitions/{jobDefinitionName}
- ///
- /// -
- /// Operation Id
- /// JobDefinitions_Get
- ///
- ///
- ///
- /// The job definition name that is being queried.
- /// The cancellation token to use.
- /// is an empty string, and was expected to be non-empty.
- /// is null.
- public virtual Response Get(string jobDefinitionName, CancellationToken cancellationToken = default)
- {
- Argument.AssertNotNullOrEmpty(jobDefinitionName, nameof(jobDefinitionName));
-
- using var scope = _hybridDataJobDefinitionJobDefinitionsClientDiagnostics.CreateScope("HybridDataJobDefinitionCollection.Get");
- scope.Start();
- try
- {
- var response = _hybridDataJobDefinitionJobDefinitionsRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, jobDefinitionName, cancellationToken);
- if (response.Value == null)
- throw new RequestFailedException(response.GetRawResponse());
- return Response.FromValue(new HybridDataJobDefinitionResource(Client, response.Value), response.GetRawResponse());
- }
- catch (Exception e)
- {
- scope.Failed(e);
- throw;
- }
- }
-
- ///
- /// This method gets all the job definitions of the given data service name.
- ///
- /// -
- /// Request Path
- /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridData/dataManagers/{dataManagerName}/dataServices/{dataServiceName}/jobDefinitions
- ///
- /// -
- /// Operation Id
- /// JobDefinitions_ListByDataService
- ///
- ///
- ///
- /// OData Filter options.
- /// The cancellation token to use.
- /// An async collection of that may take multiple service requests to iterate over.
- public virtual AsyncPageable GetAllAsync(string filter = null, CancellationToken cancellationToken = default)
- {
- HttpMessage FirstPageRequest(int? pageSizeHint) => _hybridDataJobDefinitionJobDefinitionsRestClient.CreateListByDataServiceRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, filter);
- HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _hybridDataJobDefinitionJobDefinitionsRestClient.CreateListByDataServiceNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, filter);
- return PageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => new HybridDataJobDefinitionResource(Client, HybridDataJobDefinitionData.DeserializeHybridDataJobDefinitionData(e)), _hybridDataJobDefinitionJobDefinitionsClientDiagnostics, Pipeline, "HybridDataJobDefinitionCollection.GetAll", "value", "nextLink", cancellationToken);
- }
-
- ///
- /// This method gets all the job definitions of the given data service name.
- ///
- /// -
- /// Request Path
- /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridData/dataManagers/{dataManagerName}/dataServices/{dataServiceName}/jobDefinitions
- ///
- /// -
- /// Operation Id
- /// JobDefinitions_ListByDataService
- ///
- ///
- ///
- /// OData Filter options.
- /// The cancellation token to use.
- /// A collection of that may take multiple service requests to iterate over.
- public virtual Pageable GetAll(string filter = null, CancellationToken cancellationToken = default)
- {
- HttpMessage FirstPageRequest(int? pageSizeHint) => _hybridDataJobDefinitionJobDefinitionsRestClient.CreateListByDataServiceRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, filter);
- HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _hybridDataJobDefinitionJobDefinitionsRestClient.CreateListByDataServiceNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, filter);
- return PageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new HybridDataJobDefinitionResource(Client, HybridDataJobDefinitionData.DeserializeHybridDataJobDefinitionData(e)), _hybridDataJobDefinitionJobDefinitionsClientDiagnostics, Pipeline, "HybridDataJobDefinitionCollection.GetAll", "value", "nextLink", cancellationToken);
- }
-
- ///
- /// Checks to see if the resource exists in azure.
- ///
- /// -
- /// Request Path
- /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridData/dataManagers/{dataManagerName}/dataServices/{dataServiceName}/jobDefinitions/{jobDefinitionName}
- ///
- /// -
- /// Operation Id
- /// JobDefinitions_Get
- ///
- ///
- ///
- /// The job definition name that is being queried.
- /// The cancellation token to use.
- /// is an empty string, and was expected to be non-empty.
- /// is null.
- public virtual async Task> ExistsAsync(string jobDefinitionName, CancellationToken cancellationToken = default)
- {
- Argument.AssertNotNullOrEmpty(jobDefinitionName, nameof(jobDefinitionName));
-
- using var scope = _hybridDataJobDefinitionJobDefinitionsClientDiagnostics.CreateScope("HybridDataJobDefinitionCollection.Exists");
- scope.Start();
- try
- {
- var response = await _hybridDataJobDefinitionJobDefinitionsRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, jobDefinitionName, 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.HybridData/dataManagers/{dataManagerName}/dataServices/{dataServiceName}/jobDefinitions/{jobDefinitionName}
- ///
- /// -
- /// Operation Id
- /// JobDefinitions_Get
- ///
- ///
- ///
- /// The job definition name that is being queried.
- /// The cancellation token to use.
- /// is an empty string, and was expected to be non-empty.
- /// is null.
- public virtual Response Exists(string jobDefinitionName, CancellationToken cancellationToken = default)
- {
- Argument.AssertNotNullOrEmpty(jobDefinitionName, nameof(jobDefinitionName));
-
- using var scope = _hybridDataJobDefinitionJobDefinitionsClientDiagnostics.CreateScope("HybridDataJobDefinitionCollection.Exists");
- scope.Start();
- try
- {
- var response = _hybridDataJobDefinitionJobDefinitionsRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, jobDefinitionName, cancellationToken: cancellationToken);
- return Response.FromValue(response.Value != null, response.GetRawResponse());
- }
- catch (Exception e)
- {
- scope.Failed(e);
- throw;
- }
- }
-
- IEnumerator IEnumerable.GetEnumerator()
- {
- return GetAll().GetEnumerator();
- }
-
- IEnumerator IEnumerable.GetEnumerator()
- {
- return GetAll().GetEnumerator();
- }
-
- IAsyncEnumerator IAsyncEnumerable.GetAsyncEnumerator(CancellationToken cancellationToken)
- {
- return GetAllAsync(cancellationToken: cancellationToken).GetAsyncEnumerator(cancellationToken);
- }
- }
-}
diff --git a/sdk/hybriddatamanager/Azure.ResourceManager.HybridData/src/Generated/HybridDataJobDefinitionData.cs b/sdk/hybriddatamanager/Azure.ResourceManager.HybridData/src/Generated/HybridDataJobDefinitionData.cs
deleted file mode 100644
index afe740eda2bb..000000000000
--- a/sdk/hybriddatamanager/Azure.ResourceManager.HybridData/src/Generated/HybridDataJobDefinitionData.cs
+++ /dev/null
@@ -1,114 +0,0 @@
-// 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.HybridData.Models;
-using Azure.ResourceManager.Models;
-
-namespace Azure.ResourceManager.HybridData
-{
- ///
- /// A class representing the HybridDataJobDefinition data model.
- /// Job Definition.
- ///
- public partial class HybridDataJobDefinitionData : ResourceData
- {
- /// Initializes a new instance of HybridDataJobDefinitionData.
- /// Data Source Id associated to the job definition.
- /// Data Sink Id associated to the job definition.
- /// State of the job definition.
- /// or is null.
- public HybridDataJobDefinitionData(string dataSourceId, string dataSinkId, HybridDataState state)
- {
- Argument.AssertNotNull(dataSourceId, nameof(dataSourceId));
- Argument.AssertNotNull(dataSinkId, nameof(dataSinkId));
-
- DataSourceId = dataSourceId;
- DataSinkId = dataSinkId;
- Schedules = new ChangeTrackingList();
- State = state;
- CustomerSecrets = new ChangeTrackingList();
- }
-
- /// Initializes a new instance of HybridDataJobDefinitionData.
- /// The id.
- /// The name.
- /// The resourceType.
- /// The systemData.
- /// Data Source Id associated to the job definition.
- /// Data Sink Id associated to the job definition.
- /// Schedule for running the job definition.
- /// State of the job definition.
- /// Last modified time of the job definition.
- /// This is the preferred geo location for the job to run.
- /// Enum to detect if user confirmation is required. If not passed will default to NotRequired.
- /// A generic json used differently by each data service type.
- /// List of customer secrets containing a key identifier and key value. The key identifier is a way for the specific data source to understand the key. Value contains customer secret encrypted by the encryptionKeys.
- internal HybridDataJobDefinitionData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, string dataSourceId, string dataSinkId, IList schedules, HybridDataState state, DateTimeOffset? lastModifiedOn, HybridDataJobRunLocation? runLocation, UserConfirmationSetting? userConfirmation, BinaryData dataServiceInput, IList customerSecrets) : base(id, name, resourceType, systemData)
- {
- DataSourceId = dataSourceId;
- DataSinkId = dataSinkId;
- Schedules = schedules;
- State = state;
- LastModifiedOn = lastModifiedOn;
- RunLocation = runLocation;
- UserConfirmation = userConfirmation;
- DataServiceInput = dataServiceInput;
- CustomerSecrets = customerSecrets;
- }
-
- /// Data Source Id associated to the job definition.
- public string DataSourceId { get; set; }
- /// Data Sink Id associated to the job definition.
- public string DataSinkId { get; set; }
- /// Schedule for running the job definition.
- public IList Schedules { get; }
- /// State of the job definition.
- public HybridDataState State { get; set; }
- /// Last modified time of the job definition.
- public DateTimeOffset? LastModifiedOn { get; set; }
- /// This is the preferred geo location for the job to run.
- public HybridDataJobRunLocation? RunLocation { get; set; }
- /// Enum to detect if user confirmation is required. If not passed will default to NotRequired.
- public UserConfirmationSetting? UserConfirmation { get; set; }
- ///
- /// A generic json used differently by each data service type.
- ///
- /// To assign an object to this property use .
- ///
- ///
- /// To assign an already formated json string to this property use .
- ///
- ///
- /// Examples:
- ///
- /// -
- /// BinaryData.FromObjectAsJson("foo")
- /// Creates a payload of "foo".
- ///
- /// -
- /// BinaryData.FromString("\"foo\"")
- /// Creates a payload of "foo".
- ///
- /// -
- /// BinaryData.FromObjectAsJson(new { key = "value" })
- /// Creates a payload of { "key": "value" }.
- ///
- /// -
- /// BinaryData.FromString("{\"key\": \"value\"}")
- /// Creates a payload of { "key": "value" }.
- ///
- ///
- ///
- ///
- public BinaryData DataServiceInput { get; set; }
- /// List of customer secrets containing a key identifier and key value. The key identifier is a way for the specific data source to understand the key. Value contains customer secret encrypted by the encryptionKeys.
- public IList CustomerSecrets { get; }
- }
-}
diff --git a/sdk/hybriddatamanager/Azure.ResourceManager.HybridData/src/Generated/HybridDataJobDefinitionResource.cs b/sdk/hybriddatamanager/Azure.ResourceManager.HybridData/src/Generated/HybridDataJobDefinitionResource.cs
deleted file mode 100644
index a5b78db5721d..000000000000
--- a/sdk/hybriddatamanager/Azure.ResourceManager.HybridData/src/Generated/HybridDataJobDefinitionResource.cs
+++ /dev/null
@@ -1,429 +0,0 @@
-// 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.HybridData.Models;
-
-namespace Azure.ResourceManager.HybridData
-{
- ///
- /// A Class representing a HybridDataJobDefinition 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 GetHybridDataJobDefinitionResource method.
- /// Otherwise you can get one from its parent resource using the GetHybridDataJobDefinition method.
- ///
- public partial class HybridDataJobDefinitionResource : ArmResource
- {
- /// Generate the resource identifier of a instance.
- public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string dataManagerName, string dataServiceName, string jobDefinitionName)
- {
- var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridData/dataManagers/{dataManagerName}/dataServices/{dataServiceName}/jobDefinitions/{jobDefinitionName}";
- return new ResourceIdentifier(resourceId);
- }
-
- private readonly ClientDiagnostics _hybridDataJobDefinitionJobDefinitionsClientDiagnostics;
- private readonly JobDefinitionsRestOperations _hybridDataJobDefinitionJobDefinitionsRestClient;
- private readonly HybridDataJobDefinitionData _data;
-
- /// Initializes a new instance of the class for mocking.
- protected HybridDataJobDefinitionResource()
- {
- }
-
- /// Initializes a new instance of the class.
- /// The client parameters to use in these operations.
- /// The resource that is the target of operations.
- internal HybridDataJobDefinitionResource(ArmClient client, HybridDataJobDefinitionData 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 HybridDataJobDefinitionResource(ArmClient client, ResourceIdentifier id) : base(client, id)
- {
- _hybridDataJobDefinitionJobDefinitionsClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.HybridData", ResourceType.Namespace, Diagnostics);
- TryGetApiVersion(ResourceType, out string hybridDataJobDefinitionJobDefinitionsApiVersion);
- _hybridDataJobDefinitionJobDefinitionsRestClient = new JobDefinitionsRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, hybridDataJobDefinitionJobDefinitionsApiVersion);
-#if DEBUG
- ValidateResourceId(Id);
-#endif
- }
-
- /// Gets the resource type for the operations.
- public static readonly ResourceType ResourceType = "Microsoft.HybridData/dataManagers/dataServices/jobDefinitions";
-
- /// 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 HybridDataJobDefinitionData Data
- {
- get
- {
- if (!HasData)
- throw new InvalidOperationException("The current instance does not have data, you must call Get first.");
- return _data;
- }
- }
-
- internal static void ValidateResourceId(ResourceIdentifier id)
- {
- if (id.ResourceType != ResourceType)
- throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "Invalid resource type {0} expected {1}", id.ResourceType, ResourceType), nameof(id));
- }
-
- /// Gets a collection of HybridDataJobResources in the HybridDataJobDefinition.
- /// An object representing collection of HybridDataJobResources and their operations over a HybridDataJobResource.
- public virtual HybridDataJobCollection GetHybridDataJobs()
- {
- return GetCachedClient(Client => new HybridDataJobCollection(Client, Id));
- }
-
- ///
- /// This method gets a data manager job given the jobId.
- ///
- /// -
- /// Request Path
- /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridData/dataManagers/{dataManagerName}/dataServices/{dataServiceName}/jobDefinitions/{jobDefinitionName}/jobs/{jobId}
- ///
- /// -
- /// Operation Id
- /// Jobs_Get
- ///
- ///
- ///
- /// The job id of the job queried.
- /// $expand is supported on details parameter for job, which provides details on the job stages.
- /// The cancellation token to use.
- /// is an empty string, and was expected to be non-empty.
- /// is null.
- [ForwardsClientCalls]
- public virtual async Task> GetHybridDataJobAsync(string jobId, string expand = null, CancellationToken cancellationToken = default)
- {
- return await GetHybridDataJobs().GetAsync(jobId, expand, cancellationToken).ConfigureAwait(false);
- }
-
- ///
- /// This method gets a data manager job given the jobId.
- ///
- /// -
- /// Request Path
- /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridData/dataManagers/{dataManagerName}/dataServices/{dataServiceName}/jobDefinitions/{jobDefinitionName}/jobs/{jobId}
- ///
- /// -
- /// Operation Id
- /// Jobs_Get
- ///
- ///
- ///
- /// The job id of the job queried.
- /// $expand is supported on details parameter for job, which provides details on the job stages.
- /// The cancellation token to use.
- /// is an empty string, and was expected to be non-empty.
- /// is null.
- [ForwardsClientCalls]
- public virtual Response GetHybridDataJob(string jobId, string expand = null, CancellationToken cancellationToken = default)
- {
- return GetHybridDataJobs().Get(jobId, expand, cancellationToken);
- }
-
- ///
- /// This method gets job definition object by name.
- ///
- /// -
- /// Request Path
- /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridData/dataManagers/{dataManagerName}/dataServices/{dataServiceName}/jobDefinitions/{jobDefinitionName}
- ///
- /// -
- /// Operation Id
- /// JobDefinitions_Get
- ///
- ///
- ///
- /// The cancellation token to use.
- public virtual async Task> GetAsync(CancellationToken cancellationToken = default)
- {
- using var scope = _hybridDataJobDefinitionJobDefinitionsClientDiagnostics.CreateScope("HybridDataJobDefinitionResource.Get");
- scope.Start();
- try
- {
- var response = await _hybridDataJobDefinitionJobDefinitionsRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false);
- if (response.Value == null)
- throw new RequestFailedException(response.GetRawResponse());
- return Response.FromValue(new HybridDataJobDefinitionResource(Client, response.Value), response.GetRawResponse());
- }
- catch (Exception e)
- {
- scope.Failed(e);
- throw;
- }
- }
-
- ///
- /// This method gets job definition object by name.
- ///
- /// -
- /// Request Path
- /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridData/dataManagers/{dataManagerName}/dataServices/{dataServiceName}/jobDefinitions/{jobDefinitionName}
- ///
- /// -
- /// Operation Id
- /// JobDefinitions_Get
- ///
- ///
- ///
- /// The cancellation token to use.
- public virtual Response Get(CancellationToken cancellationToken = default)
- {
- using var scope = _hybridDataJobDefinitionJobDefinitionsClientDiagnostics.CreateScope("HybridDataJobDefinitionResource.Get");
- scope.Start();
- try
- {
- var response = _hybridDataJobDefinitionJobDefinitionsRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken);
- if (response.Value == null)
- throw new RequestFailedException(response.GetRawResponse());
- return Response.FromValue(new HybridDataJobDefinitionResource(Client, response.Value), response.GetRawResponse());
- }
- catch (Exception e)
- {
- scope.Failed(e);
- throw;
- }
- }
-
- ///
- /// This method deletes the given job definition.
- ///
- /// -
- /// Request Path
- /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridData/dataManagers/{dataManagerName}/dataServices/{dataServiceName}/jobDefinitions/{jobDefinitionName}
- ///
- /// -
- /// Operation Id
- /// JobDefinitions_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 = _hybridDataJobDefinitionJobDefinitionsClientDiagnostics.CreateScope("HybridDataJobDefinitionResource.Delete");
- scope.Start();
- try
- {
- var response = await _hybridDataJobDefinitionJobDefinitionsRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false);
- var operation = new HybridDataArmOperation(_hybridDataJobDefinitionJobDefinitionsClientDiagnostics, Pipeline, _hybridDataJobDefinitionJobDefinitionsRestClient.CreateDeleteRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, 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;
- }
- }
-
- ///
- /// This method deletes the given job definition.
- ///
- /// -
- /// Request Path
- /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridData/dataManagers/{dataManagerName}/dataServices/{dataServiceName}/jobDefinitions/{jobDefinitionName}
- ///
- /// -
- /// Operation Id
- /// JobDefinitions_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 = _hybridDataJobDefinitionJobDefinitionsClientDiagnostics.CreateScope("HybridDataJobDefinitionResource.Delete");
- scope.Start();
- try
- {
- var response = _hybridDataJobDefinitionJobDefinitionsRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken);
- var operation = new HybridDataArmOperation(_hybridDataJobDefinitionJobDefinitionsClientDiagnostics, Pipeline, _hybridDataJobDefinitionJobDefinitionsRestClient.CreateDeleteRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name).Request, response, OperationFinalStateVia.Location);
- if (waitUntil == WaitUntil.Completed)
- operation.WaitForCompletionResponse(cancellationToken);
- return operation;
- }
- catch (Exception e)
- {
- scope.Failed(e);
- throw;
- }
- }
-
- ///
- /// Creates or updates a job definition.
- ///
- /// -
- /// Request Path
- /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridData/dataManagers/{dataManagerName}/dataServices/{dataServiceName}/jobDefinitions/{jobDefinitionName}
- ///
- /// -
- /// Operation Id
- /// JobDefinitions_CreateOrUpdate
- ///
- ///
- ///
- /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples.
- /// Job Definition object to be created or updated.
- /// The cancellation token to use.
- /// is null.
- public virtual async Task> UpdateAsync(WaitUntil waitUntil, HybridDataJobDefinitionData data, CancellationToken cancellationToken = default)
- {
- Argument.AssertNotNull(data, nameof(data));
-
- using var scope = _hybridDataJobDefinitionJobDefinitionsClientDiagnostics.CreateScope("HybridDataJobDefinitionResource.Update");
- scope.Start();
- try
- {
- var response = await _hybridDataJobDefinitionJobDefinitionsRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data, cancellationToken).ConfigureAwait(false);
- var operation = new HybridDataArmOperation(new HybridDataJobDefinitionOperationSource(Client), _hybridDataJobDefinitionJobDefinitionsClientDiagnostics, Pipeline, _hybridDataJobDefinitionJobDefinitionsRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data).Request, response, OperationFinalStateVia.Location);
- if (waitUntil == WaitUntil.Completed)
- await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false);
- return operation;
- }
- catch (Exception e)
- {
- scope.Failed(e);
- throw;
- }
- }
-
- ///
- /// Creates or updates a job definition.
- ///
- /// -
- /// Request Path
- /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridData/dataManagers/{dataManagerName}/dataServices/{dataServiceName}/jobDefinitions/{jobDefinitionName}
- ///
- /// -
- /// Operation Id
- /// JobDefinitions_CreateOrUpdate
- ///
- ///
- ///
- /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples.
- /// Job Definition object to be created or updated.
- /// The cancellation token to use.
- /// is null.
- public virtual ArmOperation Update(WaitUntil waitUntil, HybridDataJobDefinitionData data, CancellationToken cancellationToken = default)
- {
- Argument.AssertNotNull(data, nameof(data));
-
- using var scope = _hybridDataJobDefinitionJobDefinitionsClientDiagnostics.CreateScope("HybridDataJobDefinitionResource.Update");
- scope.Start();
- try
- {
- var response = _hybridDataJobDefinitionJobDefinitionsRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data, cancellationToken);
- var operation = new HybridDataArmOperation(new HybridDataJobDefinitionOperationSource(Client), _hybridDataJobDefinitionJobDefinitionsClientDiagnostics, Pipeline, _hybridDataJobDefinitionJobDefinitionsRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data).Request, response, OperationFinalStateVia.Location);
- if (waitUntil == WaitUntil.Completed)
- operation.WaitForCompletion(cancellationToken);
- return operation;
- }
- catch (Exception e)
- {
- scope.Failed(e);
- throw;
- }
- }
-
- ///
- /// This method runs a job instance of the given job definition.
- ///
- /// -
- /// Request Path
- /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridData/dataManagers/{dataManagerName}/dataServices/{dataServiceName}/jobDefinitions/{jobDefinitionName}/run
- ///
- /// -
- /// Operation Id
- /// JobDefinitions_Run
- ///
- ///
- ///
- /// 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.
- /// Run time parameters for the job definition.
- /// The cancellation token to use.
- /// is null.
- public virtual async Task RunAsync(WaitUntil waitUntil, HybridDataJobRunContent content, CancellationToken cancellationToken = default)
- {
- Argument.AssertNotNull(content, nameof(content));
-
- using var scope = _hybridDataJobDefinitionJobDefinitionsClientDiagnostics.CreateScope("HybridDataJobDefinitionResource.Run");
- scope.Start();
- try
- {
- var response = await _hybridDataJobDefinitionJobDefinitionsRestClient.RunAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, content, cancellationToken).ConfigureAwait(false);
- var operation = new HybridDataArmOperation(_hybridDataJobDefinitionJobDefinitionsClientDiagnostics, Pipeline, _hybridDataJobDefinitionJobDefinitionsRestClient.CreateRunRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, content).Request, response, OperationFinalStateVia.Location);
- if (waitUntil == WaitUntil.Completed)
- await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false);
- return operation;
- }
- catch (Exception e)
- {
- scope.Failed(e);
- throw;
- }
- }
-
- ///
- /// This method runs a job instance of the given job definition.
- ///
- /// -
- /// Request Path
- /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridData/dataManagers/{dataManagerName}/dataServices/{dataServiceName}/jobDefinitions/{jobDefinitionName}/run
- ///
- /// -
- /// Operation Id
- /// JobDefinitions_Run
- ///
- ///
- ///
- /// 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.
- /// Run time parameters for the job definition.
- /// The cancellation token to use.
- /// is null.
- public virtual ArmOperation Run(WaitUntil waitUntil, HybridDataJobRunContent content, CancellationToken cancellationToken = default)
- {
- Argument.AssertNotNull(content, nameof(content));
-
- using var scope = _hybridDataJobDefinitionJobDefinitionsClientDiagnostics.CreateScope("HybridDataJobDefinitionResource.Run");
- scope.Start();
- try
- {
- var response = _hybridDataJobDefinitionJobDefinitionsRestClient.Run(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, content, cancellationToken);
- var operation = new HybridDataArmOperation(_hybridDataJobDefinitionJobDefinitionsClientDiagnostics, Pipeline, _hybridDataJobDefinitionJobDefinitionsRestClient.CreateRunRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, content).Request, response, OperationFinalStateVia.Location);
- if (waitUntil == WaitUntil.Completed)
- operation.WaitForCompletionResponse(cancellationToken);
- return operation;
- }
- catch (Exception e)
- {
- scope.Failed(e);
- throw;
- }
- }
- }
-}
diff --git a/sdk/hybriddatamanager/Azure.ResourceManager.HybridData/src/Generated/HybridDataJobResource.cs b/sdk/hybriddatamanager/Azure.ResourceManager.HybridData/src/Generated/HybridDataJobResource.cs
deleted file mode 100644
index e28f99646344..000000000000
--- a/sdk/hybriddatamanager/Azure.ResourceManager.HybridData/src/Generated/HybridDataJobResource.cs
+++ /dev/null
@@ -1,291 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-
-//
-
-#nullable disable
-
-using System;
-using System.Globalization;
-using System.Threading;
-using System.Threading.Tasks;
-using Azure;
-using Azure.Core;
-using Azure.Core.Pipeline;
-using Azure.ResourceManager;
-
-namespace Azure.ResourceManager.HybridData
-{
- ///
- /// A Class representing a HybridDataJob 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 GetHybridDataJobResource method.
- /// Otherwise you can get one from its parent resource using the GetHybridDataJob method.
- ///
- public partial class HybridDataJobResource : ArmResource
- {
- /// Generate the resource identifier of a instance.
- public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string dataManagerName, string dataServiceName, string jobDefinitionName, string jobId)
- {
- var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridData/dataManagers/{dataManagerName}/dataServices/{dataServiceName}/jobDefinitions/{jobDefinitionName}/jobs/{jobId}";
- return new ResourceIdentifier(resourceId);
- }
-
- private readonly ClientDiagnostics _hybridDataJobJobsClientDiagnostics;
- private readonly JobsRestOperations _hybridDataJobJobsRestClient;
- private readonly HybridDataJobData _data;
-
- /// Initializes a new instance of the class for mocking.
- protected HybridDataJobResource()
- {
- }
-
- /// Initializes a new instance of the class.
- /// The client parameters to use in these operations.
- /// The resource that is the target of operations.
- internal HybridDataJobResource(ArmClient client, HybridDataJobData 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 HybridDataJobResource(ArmClient client, ResourceIdentifier id) : base(client, id)
- {
- _hybridDataJobJobsClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.HybridData", ResourceType.Namespace, Diagnostics);
- TryGetApiVersion(ResourceType, out string hybridDataJobJobsApiVersion);
- _hybridDataJobJobsRestClient = new JobsRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, hybridDataJobJobsApiVersion);
-#if DEBUG
- ValidateResourceId(Id);
-#endif
- }
-
- /// Gets the resource type for the operations.
- public static readonly ResourceType ResourceType = "Microsoft.HybridData/dataManagers/dataServices/jobDefinitions/jobs";
-
- /// 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 HybridDataJobData 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));
- }
-
- ///
- /// This method gets a data manager job given the jobId.
- ///
- /// -
- /// Request Path
- /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridData/dataManagers/{dataManagerName}/dataServices/{dataServiceName}/jobDefinitions/{jobDefinitionName}/jobs/{jobId}
- ///
- /// -
- /// Operation Id
- /// Jobs_Get
- ///
- ///
- ///
- /// $expand is supported on details parameter for job, which provides details on the job stages.
- /// The cancellation token to use.
- public virtual async Task> GetAsync(string expand = null, CancellationToken cancellationToken = default)
- {
- using var scope = _hybridDataJobJobsClientDiagnostics.CreateScope("HybridDataJobResource.Get");
- scope.Start();
- try
- {
- var response = await _hybridDataJobJobsRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, expand, cancellationToken).ConfigureAwait(false);
- if (response.Value == null)
- throw new RequestFailedException(response.GetRawResponse());
- return Response.FromValue(new HybridDataJobResource(Client, response.Value), response.GetRawResponse());
- }
- catch (Exception e)
- {
- scope.Failed(e);
- throw;
- }
- }
-
- ///
- /// This method gets a data manager job given the jobId.
- ///
- /// -
- ///