diff --git a/sdk/advisor/ci.mgmt.yml b/sdk/advisor/ci.mgmt.yml index 6b9f8d6952e6..22df99de35f2 100644 --- a/sdk/advisor/ci.mgmt.yml +++ b/sdk/advisor/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/advisor/ci.mgmt.yml - sdk/advisor/Azure.ResourceManager.Advisor/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/advisor/ci.mgmt.yml + - sdk/advisor/Azure.ResourceManager.Advisor/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/agrifood/ci.mgmt.yml b/sdk/agrifood/ci.mgmt.yml index ee27d71f9495..03a5f6399ccb 100644 --- a/sdk/agrifood/ci.mgmt.yml +++ b/sdk/agrifood/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/agrifood/ci.mgmt.yml - sdk/agrifood/Azure.ResourceManager.AgFoodPlatform/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/agrifood/ci.mgmt.yml + - sdk/agrifood/Azure.ResourceManager.AgFoodPlatform/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/alertsmanagement/ci.mgmt.yml b/sdk/alertsmanagement/ci.mgmt.yml index f33a90fffe5c..ad3a8d3d1efd 100644 --- a/sdk/alertsmanagement/ci.mgmt.yml +++ b/sdk/alertsmanagement/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/alertsmanagement/ci.mgmt.yml - sdk/alertsmanagement/Azure.ResourceManager.AlertsManagement/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/alertsmanagement/ci.mgmt.yml + - sdk/alertsmanagement/Azure.ResourceManager.AlertsManagement/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/analysisservices/ci.mgmt.yml b/sdk/analysisservices/ci.mgmt.yml index 33729b962d88..d3774b358380 100644 --- a/sdk/analysisservices/ci.mgmt.yml +++ b/sdk/analysisservices/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/analysisservices/ci.mgmt.yml - sdk/analysisservices/Azure.ResourceManager.Analysis/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/analysisservices/ci.mgmt.yml + - sdk/analysisservices/Azure.ResourceManager.Analysis/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/apicenter/ci.mgmt.yml b/sdk/apicenter/ci.mgmt.yml index 41c037327e33..4882d4409c0b 100644 --- a/sdk/apicenter/ci.mgmt.yml +++ b/sdk/apicenter/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/apicenter/ci.mgmt.yml - sdk/apicenter/Azure.ResourceManager.ApiCenter/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/apicenter/ci.mgmt.yml + - sdk/apicenter/Azure.ResourceManager.ApiCenter/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/apimanagement/ci.mgmt.yml b/sdk/apimanagement/ci.mgmt.yml index b72c80a2e0e6..2f766edb9528 100644 --- a/sdk/apimanagement/ci.mgmt.yml +++ b/sdk/apimanagement/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/apimanagement/ci.mgmt.yml - sdk/apimanagement/Azure.ResourceManager.ApiManagement/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/apimanagement/ci.mgmt.yml + - sdk/apimanagement/Azure.ResourceManager.ApiManagement/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/appcomplianceautomation/ci.mgmt.yml b/sdk/appcomplianceautomation/ci.mgmt.yml index d8a31e0139a8..7c3b00d97c17 100644 --- a/sdk/appcomplianceautomation/ci.mgmt.yml +++ b/sdk/appcomplianceautomation/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/appcomplianceautomation/ci.mgmt.yml - sdk/appcomplianceautomation/Azure.ResourceManager.AppComplianceAutomation/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/appcomplianceautomation/ci.mgmt.yml + - sdk/appcomplianceautomation/Azure.ResourceManager.AppComplianceAutomation/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/appconfiguration/ci.mgmt.yml b/sdk/appconfiguration/ci.mgmt.yml index a883eaefcd59..e53dd63aca0f 100644 --- a/sdk/appconfiguration/ci.mgmt.yml +++ b/sdk/appconfiguration/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/appconfiguration/ci.mgmt.yml - sdk/appconfiguration/Azure.ResourceManager.AppConfiguration/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/appconfiguration/ci.mgmt.yml + - sdk/appconfiguration/Azure.ResourceManager.AppConfiguration/ + # These comments should stay. extends: diff --git a/sdk/applicationinsights/ci.mgmt.yml b/sdk/applicationinsights/ci.mgmt.yml index af82b66e6952..361f4019d322 100644 --- a/sdk/applicationinsights/ci.mgmt.yml +++ b/sdk/applicationinsights/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/applicationinsights/ci.mgmt.yml - sdk/applicationinsights/Azure.ResourceManager.ApplicationInsights/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/applicationinsights/ci.mgmt.yml + - sdk/applicationinsights/Azure.ResourceManager.ApplicationInsights/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/appplatform/ci.mgmt.yml b/sdk/appplatform/ci.mgmt.yml index 1d28b9352b6c..023cebeb8d71 100644 --- a/sdk/appplatform/ci.mgmt.yml +++ b/sdk/appplatform/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/appplatform/ci.mgmt.yml - sdk/appplatform/Azure.ResourceManager.AppPlatform/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/appplatform/ci.mgmt.yml + - sdk/appplatform/Azure.ResourceManager.AppPlatform/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/arc-scvmm/ci.mgmt.yml b/sdk/arc-scvmm/ci.mgmt.yml index bbc2db0c9f63..53438df9d332 100644 --- a/sdk/arc-scvmm/ci.mgmt.yml +++ b/sdk/arc-scvmm/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/arc-scvmm/ci.mgmt.yml - sdk/arc-scvmm/Azure.ResourceManager.ScVmm/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/arc-scvmm/ci.mgmt.yml + - sdk/arc-scvmm/Azure.ResourceManager.ScVmm/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/astronomer/ci.mgmt.yml b/sdk/astronomer/ci.mgmt.yml index f6099036651c..d0de6d52b29a 100644 --- a/sdk/astronomer/ci.mgmt.yml +++ b/sdk/astronomer/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/astronomer/ci.mgmt.yml - sdk/astronomer/Azure.ResourceManager.Astro/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/astronomer/ci.mgmt.yml + - sdk/astronomer/Azure.ResourceManager.Astro/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/attestation/ci.mgmt.yml b/sdk/attestation/ci.mgmt.yml index 51d1ac0c8240..595f887b2c35 100644 --- a/sdk/attestation/ci.mgmt.yml +++ b/sdk/attestation/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/attestation/ci.mgmt.yml - sdk/attestation/Azure.ResourceManager.Attestation/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/attestation/ci.mgmt.yml + - sdk/attestation/Azure.ResourceManager.Attestation/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/authorization/ci.mgmt.yml b/sdk/authorization/ci.mgmt.yml index 7ac32fcc5543..9c9d9638348d 100644 --- a/sdk/authorization/ci.mgmt.yml +++ b/sdk/authorization/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/authorization/ci.mgmt.yml - sdk/authorization/Azure.ResourceManager.Authorization/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/authorization/ci.mgmt.yml + - sdk/authorization/Azure.ResourceManager.Authorization/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/automanage/ci.mgmt.yml b/sdk/automanage/ci.mgmt.yml index 5a2467820b85..8e45b6506aa8 100644 --- a/sdk/automanage/ci.mgmt.yml +++ b/sdk/automanage/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/automanage/ci.mgmt.yml - sdk/automanage/Azure.ResourceManager.Automanage/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/automanage/ci.mgmt.yml + - sdk/automanage/Azure.ResourceManager.Automanage/ + extends: template: ../../eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/automation/Azure.ResourceManager.Automation/api/Azure.ResourceManager.Automation.netstandard2.0.cs b/sdk/automation/Azure.ResourceManager.Automation/api/Azure.ResourceManager.Automation.netstandard2.0.cs index cbd8993425a1..0737901a23c9 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/api/Azure.ResourceManager.Automation.netstandard2.0.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/api/Azure.ResourceManager.Automation.netstandard2.0.cs @@ -43,8 +43,8 @@ protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter write public partial class AutomationAccountModuleCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable { protected AutomationAccountModuleCollection() { } - public virtual Azure.ResourceManager.ArmOperation CreateOrUpdate(Azure.WaitUntil waitUntil, string moduleName, Azure.ResourceManager.Automation.Models.AutomationAccountModuleCreateOrUpdateContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, string moduleName, Azure.ResourceManager.Automation.Models.AutomationAccountModuleCreateOrUpdateContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.ArmOperation CreateOrUpdate(Azure.WaitUntil waitUntil, string moduleName, Azure.ResourceManager.Automation.Models.ModuleCreateOrUpdateParameters moduleCreateOrUpdateParameters, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, string moduleName, Azure.ResourceManager.Automation.Models.ModuleCreateOrUpdateParameters moduleCreateOrUpdateParameters, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Response Exists(string moduleName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> ExistsAsync(string moduleName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Response Get(string moduleName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } @@ -87,14 +87,56 @@ protected AutomationAccountModuleResource() { } Azure.ResourceManager.Automation.AutomationModuleData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - public virtual Azure.Response Update(Azure.ResourceManager.Automation.Models.AutomationAccountModulePatch patch, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.ResourceManager.Automation.Models.AutomationAccountModulePatch patch, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Update(Azure.ResourceManager.Automation.Models.ModuleUpdateParameters moduleUpdateParameters, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.ResourceManager.Automation.Models.ModuleUpdateParameters moduleUpdateParameters, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + } + public partial class AutomationAccountPowerShell72ModuleCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable + { + protected AutomationAccountPowerShell72ModuleCollection() { } + public virtual Azure.ResourceManager.ArmOperation CreateOrUpdate(Azure.WaitUntil waitUntil, string moduleName, Azure.ResourceManager.Automation.Models.ModuleCreateOrUpdateParameters moduleCreateOrUpdateParameters, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, string moduleName, Azure.ResourceManager.Automation.Models.ModuleCreateOrUpdateParameters moduleCreateOrUpdateParameters, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Exists(string moduleName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> ExistsAsync(string moduleName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Get(string moduleName, 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 moduleName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.NullableResponse GetIfExists(string moduleName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetIfExistsAsync(string moduleName, 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 AutomationAccountPowerShell72ModuleResource : Azure.ResourceManager.ArmResource, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public static readonly Azure.Core.ResourceType ResourceType; + protected AutomationAccountPowerShell72ModuleResource() { } + public virtual Azure.ResourceManager.Automation.AutomationModuleData 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 automationAccountName, string moduleName) { throw null; } + public virtual Azure.ResourceManager.ArmOperation Delete(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task DeleteAsync(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response RemoveTag(string key, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> RemoveTagAsync(string key, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response SetTags(System.Collections.Generic.IDictionary tags, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> SetTagsAsync(System.Collections.Generic.IDictionary tags, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + Azure.ResourceManager.Automation.AutomationModuleData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.Automation.AutomationModuleData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + public virtual Azure.Response Update(Azure.ResourceManager.Automation.Models.ModuleUpdateParameters moduleUpdateParameters, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.ResourceManager.Automation.Models.ModuleUpdateParameters moduleUpdateParameters, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } } public partial class AutomationAccountPython2PackageCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable { protected AutomationAccountPython2PackageCollection() { } - public virtual Azure.ResourceManager.ArmOperation CreateOrUpdate(Azure.WaitUntil waitUntil, string packageName, Azure.ResourceManager.Automation.Models.AutomationAccountPython2PackageCreateOrUpdateContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, string packageName, Azure.ResourceManager.Automation.Models.AutomationAccountPython2PackageCreateOrUpdateContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.ArmOperation CreateOrUpdate(Azure.WaitUntil waitUntil, string packageName, Azure.ResourceManager.Automation.Models.PythonPackageCreateParameters pythonPackageCreateParameters, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, string packageName, Azure.ResourceManager.Automation.Models.PythonPackageCreateParameters pythonPackageCreateParameters, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Response Exists(string packageName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> ExistsAsync(string packageName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Response Get(string packageName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } @@ -129,8 +171,50 @@ protected AutomationAccountPython2PackageResource() { } Azure.ResourceManager.Automation.AutomationModuleData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - public virtual Azure.Response Update(Azure.ResourceManager.Automation.Models.AutomationAccountPython2PackagePatch patch, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.ResourceManager.Automation.Models.AutomationAccountPython2PackagePatch patch, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Update(Azure.ResourceManager.Automation.Models.PythonPackageUpdateParameters pythonPackageUpdateParameters, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.ResourceManager.Automation.Models.PythonPackageUpdateParameters pythonPackageUpdateParameters, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + } + public partial class AutomationAccountPython3PackageCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable + { + protected AutomationAccountPython3PackageCollection() { } + public virtual Azure.ResourceManager.ArmOperation CreateOrUpdate(Azure.WaitUntil waitUntil, string packageName, Azure.ResourceManager.Automation.Models.PythonPackageCreateParameters pythonPackageCreateParameters, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, string packageName, Azure.ResourceManager.Automation.Models.PythonPackageCreateParameters pythonPackageCreateParameters, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Exists(string packageName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> ExistsAsync(string packageName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Get(string packageName, 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 packageName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.NullableResponse GetIfExists(string packageName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetIfExistsAsync(string packageName, 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 AutomationAccountPython3PackageResource : Azure.ResourceManager.ArmResource, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public static readonly Azure.Core.ResourceType ResourceType; + protected AutomationAccountPython3PackageResource() { } + public virtual Azure.ResourceManager.Automation.AutomationModuleData 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 automationAccountName, string packageName) { throw null; } + public virtual Azure.ResourceManager.ArmOperation Delete(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task DeleteAsync(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response RemoveTag(string key, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> RemoveTagAsync(string key, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response SetTags(System.Collections.Generic.IDictionary tags, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> SetTagsAsync(System.Collections.Generic.IDictionary tags, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + Azure.ResourceManager.Automation.AutomationModuleData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.Automation.AutomationModuleData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + public virtual Azure.Response Update(Azure.ResourceManager.Automation.Models.PythonPackageUpdateParameters pythonPackageUpdateParameters, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.ResourceManager.Automation.Models.PythonPackageUpdateParameters pythonPackageUpdateParameters, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } } public partial class AutomationAccountResource : Azure.ResourceManager.ArmResource, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { @@ -160,9 +244,15 @@ protected AutomationAccountResource() { } public virtual Azure.Response GetAutomationAccountModule(string moduleName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> GetAutomationAccountModuleAsync(string moduleName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.ResourceManager.Automation.AutomationAccountModuleCollection GetAutomationAccountModules() { throw null; } + public virtual Azure.Response GetAutomationAccountPowerShell72Module(string moduleName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAutomationAccountPowerShell72ModuleAsync(string moduleName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.Automation.AutomationAccountPowerShell72ModuleCollection GetAutomationAccountPowerShell72Modules() { throw null; } public virtual Azure.Response GetAutomationAccountPython2Package(string packageName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> GetAutomationAccountPython2PackageAsync(string packageName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.ResourceManager.Automation.AutomationAccountPython2PackageCollection GetAutomationAccountPython2Packages() { throw null; } + public virtual Azure.Response GetAutomationAccountPython3Package(string packageName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAutomationAccountPython3PackageAsync(string packageName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.Automation.AutomationAccountPython3PackageCollection GetAutomationAccountPython3Packages() { throw null; } public virtual Azure.Response GetAutomationCertificate(string certificateName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> GetAutomationCertificateAsync(string certificateName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.ResourceManager.Automation.AutomationCertificateCollection GetAutomationCertificates() { throw null; } @@ -466,7 +556,9 @@ public static partial class AutomationExtensions public static Azure.Response GetAutomationAccount(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string automationAccountName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public static System.Threading.Tasks.Task> GetAutomationAccountAsync(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string automationAccountName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public static Azure.ResourceManager.Automation.AutomationAccountModuleResource GetAutomationAccountModuleResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } + public static Azure.ResourceManager.Automation.AutomationAccountPowerShell72ModuleResource GetAutomationAccountPowerShell72ModuleResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } public static Azure.ResourceManager.Automation.AutomationAccountPython2PackageResource GetAutomationAccountPython2PackageResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } + public static Azure.ResourceManager.Automation.AutomationAccountPython3PackageResource GetAutomationAccountPython3PackageResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } public static Azure.ResourceManager.Automation.AutomationAccountResource GetAutomationAccountResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } public static Azure.ResourceManager.Automation.AutomationAccountCollection GetAutomationAccounts(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource) { throw null; } public static Azure.Pageable GetAutomationAccounts(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } @@ -1477,7 +1569,9 @@ public partial class MockableAutomationArmClient : Azure.ResourceManager.ArmReso { protected MockableAutomationArmClient() { } public virtual Azure.ResourceManager.Automation.AutomationAccountModuleResource GetAutomationAccountModuleResource(Azure.Core.ResourceIdentifier id) { throw null; } + public virtual Azure.ResourceManager.Automation.AutomationAccountPowerShell72ModuleResource GetAutomationAccountPowerShell72ModuleResource(Azure.Core.ResourceIdentifier id) { throw null; } public virtual Azure.ResourceManager.Automation.AutomationAccountPython2PackageResource GetAutomationAccountPython2PackageResource(Azure.Core.ResourceIdentifier id) { throw null; } + public virtual Azure.ResourceManager.Automation.AutomationAccountPython3PackageResource GetAutomationAccountPython3PackageResource(Azure.Core.ResourceIdentifier id) { throw null; } public virtual Azure.ResourceManager.Automation.AutomationAccountResource GetAutomationAccountResource(Azure.Core.ResourceIdentifier id) { throw null; } public virtual Azure.ResourceManager.Automation.AutomationCertificateResource GetAutomationCertificateResource(Azure.Core.ResourceIdentifier id) { throw null; } public virtual Azure.ResourceManager.Automation.AutomationConnectionResource GetAutomationConnectionResource(Azure.Core.ResourceIdentifier id) { throw null; } @@ -1578,8 +1672,6 @@ public static partial class ArmAutomationModelFactory public static Azure.ResourceManager.Automation.Models.AgentRegistration AgentRegistration(string dscMetaConfiguration = null, System.Uri endpoint = null, Azure.ResourceManager.Automation.Models.AgentRegistrationKeys keys = null, Azure.Core.ResourceIdentifier id = null) { throw null; } public static Azure.ResourceManager.Automation.Models.AgentRegistrationKeys AgentRegistrationKeys(string primary = null, string secondary = null) { throw null; } public static Azure.ResourceManager.Automation.AutomationAccountData AutomationAccountData(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.Models.ManagedServiceIdentity identity = null, Azure.ResourceManager.Automation.Models.AutomationSku sku = null, string lastModifiedBy = null, Azure.ResourceManager.Automation.Models.AutomationAccountState? state = default(Azure.ResourceManager.Automation.Models.AutomationAccountState?), System.DateTimeOffset? createdOn = default(System.DateTimeOffset?), System.DateTimeOffset? lastModifiedOn = default(System.DateTimeOffset?), string description = null, Azure.ResourceManager.Automation.Models.AutomationEncryptionProperties encryption = null, System.Collections.Generic.IEnumerable privateEndpointConnections = null, bool? isPublicNetworkAccessAllowed = default(bool?), bool? isLocalAuthDisabled = default(bool?), System.Uri automationHybridServiceUri = null) { throw null; } - public static Azure.ResourceManager.Automation.Models.AutomationAccountModuleCreateOrUpdateContent AutomationAccountModuleCreateOrUpdateContent(string name = null, Azure.Core.AzureLocation? location = default(Azure.Core.AzureLocation?), System.Collections.Generic.IDictionary tags = null, Azure.ResourceManager.Automation.Models.AutomationContentLink contentLink = null) { throw null; } - public static Azure.ResourceManager.Automation.Models.AutomationAccountPython2PackageCreateOrUpdateContent AutomationAccountPython2PackageCreateOrUpdateContent(System.Collections.Generic.IDictionary tags = null, Azure.ResourceManager.Automation.Models.AutomationContentLink contentLink = null) { throw null; } public static Azure.ResourceManager.Automation.Models.AutomationAccountStatistics AutomationAccountStatistics(string counterProperty = null, long? counterValue = default(long?), System.DateTimeOffset? startOn = default(System.DateTimeOffset?), System.DateTimeOffset? endOn = default(System.DateTimeOffset?), string id = null) { throw null; } public static Azure.ResourceManager.Automation.Models.AutomationActivity AutomationActivity(Azure.Core.ResourceIdentifier id = null, string name = null, string definition = null, System.Collections.Generic.IEnumerable parameterSets = null, System.Collections.Generic.IEnumerable outputTypes = null, System.DateTimeOffset? createdOn = default(System.DateTimeOffset?), System.DateTimeOffset? lastModifiedOn = default(System.DateTimeOffset?), string description = null) { throw null; } public static Azure.ResourceManager.Automation.Models.AutomationActivityOutputType AutomationActivityOutputType(string name = null, string activityOutputType = null) { throw null; } @@ -1633,6 +1725,9 @@ public static partial class ArmAutomationModelFactory public static Azure.ResourceManager.Automation.Models.DscReportResourceNavigation DscReportResourceNavigation(string resourceId = null) { throw null; } public static Azure.ResourceManager.Automation.HybridRunbookWorkerData HybridRunbookWorkerData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, string ip = null, System.DateTimeOffset? registeredOn = default(System.DateTimeOffset?), System.DateTimeOffset? lastSeenOn = default(System.DateTimeOffset?), Azure.Core.ResourceIdentifier vmResourceId = null, Azure.ResourceManager.Automation.Models.HybridWorkerType? workerType = default(Azure.ResourceManager.Automation.Models.HybridWorkerType?), string workerName = null) { throw null; } public static Azure.ResourceManager.Automation.HybridRunbookWorkerGroupData HybridRunbookWorkerGroupData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.Automation.Models.HybridWorkerGroup? groupType = default(Azure.ResourceManager.Automation.Models.HybridWorkerGroup?), string credentialName = null) { throw null; } + public static Azure.ResourceManager.Automation.Models.ModuleCreateOrUpdateParameters ModuleCreateOrUpdateParameters(string name = null, Azure.Core.AzureLocation? location = default(Azure.Core.AzureLocation?), System.Collections.Generic.IDictionary tags = null, Azure.ResourceManager.Automation.Models.AutomationContentLink contentLink = null) { throw null; } + public static Azure.ResourceManager.Automation.Models.ModuleUpdateParameters ModuleUpdateParameters(string name = null, Azure.Core.AzureLocation? location = default(Azure.Core.AzureLocation?), System.Collections.Generic.IDictionary tags = null, Azure.ResourceManager.Automation.Models.AutomationContentLink contentLink = null) { throw null; } + public static Azure.ResourceManager.Automation.Models.PythonPackageCreateParameters PythonPackageCreateParameters(System.Collections.Generic.IDictionary tags = null, Azure.ResourceManager.Automation.Models.AutomationContentLink contentLink = null) { throw null; } public static Azure.ResourceManager.Automation.Models.RunbookDraftUndoEditResult RunbookDraftUndoEditResult(Azure.ResourceManager.Automation.Models.AutomationHttpStatusCode? statusCode = default(Azure.ResourceManager.Automation.Models.AutomationHttpStatusCode?), string requestId = null) { throw null; } public static Azure.ResourceManager.Automation.Models.RunbookTestJob RunbookTestJob(System.DateTimeOffset? createdOn = default(System.DateTimeOffset?), string status = null, string statusDetails = null, string runOn = null, System.DateTimeOffset? startOn = default(System.DateTimeOffset?), System.DateTimeOffset? endOn = default(System.DateTimeOffset?), string exception = null, System.DateTimeOffset? lastModifiedOn = default(System.DateTimeOffset?), System.DateTimeOffset? lastStatusModifiedOn = default(System.DateTimeOffset?), System.Collections.Generic.IReadOnlyDictionary parameters = null, int? logActivityTrace = default(int?)) { throw null; } public static Azure.ResourceManager.Automation.Models.SoftwareUpdateConfigurationCollectionItem SoftwareUpdateConfigurationCollectionItem(string name = null, Azure.Core.ResourceIdentifier id = null, Azure.ResourceManager.Automation.Models.SoftwareUpdateConfigurationSpecificProperties updateConfiguration = null, Azure.ResourceManager.Automation.Models.SoftwareUpdateConfigurationTasks tasks = null, Azure.ResourceManager.Automation.Models.AutomationScheduleFrequency? frequency = default(Azure.ResourceManager.Automation.Models.AutomationScheduleFrequency?), System.DateTimeOffset? startOn = default(System.DateTimeOffset?), System.DateTimeOffset? createdOn = default(System.DateTimeOffset?), System.DateTimeOffset? lastModifiedOn = default(System.DateTimeOffset?), string provisioningState = null, System.DateTimeOffset? nextRunOn = default(System.DateTimeOffset?)) { throw null; } @@ -1665,34 +1760,6 @@ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } } - public partial class AutomationAccountModuleCreateOrUpdateContent : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel - { - public AutomationAccountModuleCreateOrUpdateContent(Azure.ResourceManager.Automation.Models.AutomationContentLink contentLink) { } - public Azure.ResourceManager.Automation.Models.AutomationContentLink ContentLink { get { throw null; } } - public Azure.Core.AzureLocation? Location { get { throw null; } set { } } - public string Name { get { throw null; } set { } } - public System.Collections.Generic.IDictionary Tags { get { throw null; } } - protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.Automation.Models.AutomationAccountModuleCreateOrUpdateContent System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.Automation.Models.AutomationAccountModuleCreateOrUpdateContent System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - } - public partial class AutomationAccountModulePatch : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel - { - public AutomationAccountModulePatch() { } - public Azure.ResourceManager.Automation.Models.AutomationContentLink ContentLink { get { throw null; } set { } } - public Azure.Core.AzureLocation? Location { get { throw null; } set { } } - public string Name { get { throw null; } set { } } - public System.Collections.Generic.IDictionary Tags { get { throw null; } } - protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.Automation.Models.AutomationAccountModulePatch System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.Automation.Models.AutomationAccountModulePatch System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - } public partial class AutomationAccountPatch : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { public AutomationAccountPatch() { } @@ -1711,29 +1778,6 @@ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } } - public partial class AutomationAccountPython2PackageCreateOrUpdateContent : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel - { - public AutomationAccountPython2PackageCreateOrUpdateContent(Azure.ResourceManager.Automation.Models.AutomationContentLink contentLink) { } - public Azure.ResourceManager.Automation.Models.AutomationContentLink ContentLink { get { throw null; } } - public System.Collections.Generic.IDictionary Tags { get { throw null; } } - protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.Automation.Models.AutomationAccountPython2PackageCreateOrUpdateContent System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.Automation.Models.AutomationAccountPython2PackageCreateOrUpdateContent System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - } - public partial class AutomationAccountPython2PackagePatch : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel - { - public AutomationAccountPython2PackagePatch() { } - public System.Collections.Generic.IDictionary Tags { get { throw null; } } - protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.Automation.Models.AutomationAccountPython2PackagePatch System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.Automation.Models.AutomationAccountPython2PackagePatch System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] public readonly partial struct AutomationAccountState : System.IEquatable { @@ -2463,6 +2507,7 @@ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer public static Azure.ResourceManager.Automation.Models.AutomationRunbookType GraphPowerShell { get { throw null; } } public static Azure.ResourceManager.Automation.Models.AutomationRunbookType GraphPowerShellWorkflow { get { throw null; } } public static Azure.ResourceManager.Automation.Models.AutomationRunbookType PowerShell { get { throw null; } } + public static Azure.ResourceManager.Automation.Models.AutomationRunbookType PowerShell72 { get { throw null; } } public static Azure.ResourceManager.Automation.Models.AutomationRunbookType PowerShellWorkflow { get { throw null; } } public static Azure.ResourceManager.Automation.Models.AutomationRunbookType Python2 { get { throw null; } } public static Azure.ResourceManager.Automation.Models.AutomationRunbookType Python3 { get { throw null; } } @@ -3149,24 +3194,65 @@ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } } - public enum ModuleProvisioningState - { - Created = 0, - Creating = 1, - StartingImportModuleRunbook = 2, - RunningImportModuleRunbook = 3, - ContentRetrieved = 4, - ContentDownloaded = 5, - ContentValidated = 6, - ConnectionTypeImported = 7, - ContentStored = 8, - ModuleDataStored = 9, - ActivitiesStored = 10, - ModuleImportRunbookComplete = 11, - Succeeded = 12, - Failed = 13, - Cancelled = 14, - Updating = 15, + public partial class ModuleCreateOrUpdateParameters : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public ModuleCreateOrUpdateParameters(Azure.ResourceManager.Automation.Models.AutomationContentLink contentLink) { } + public Azure.ResourceManager.Automation.Models.AutomationContentLink ContentLink { get { throw null; } } + public Azure.Core.AzureLocation? Location { get { throw null; } set { } } + public string Name { get { throw null; } set { } } + public System.Collections.Generic.IDictionary Tags { get { throw null; } } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.Automation.Models.ModuleCreateOrUpdateParameters System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.Automation.Models.ModuleCreateOrUpdateParameters System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct ModuleProvisioningState : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public ModuleProvisioningState(string value) { throw null; } + public static Azure.ResourceManager.Automation.Models.ModuleProvisioningState ActivitiesStored { get { throw null; } } + public static Azure.ResourceManager.Automation.Models.ModuleProvisioningState Canceled { get { throw null; } } + public static Azure.ResourceManager.Automation.Models.ModuleProvisioningState ConnectionTypeImported { get { throw null; } } + public static Azure.ResourceManager.Automation.Models.ModuleProvisioningState ContentDownloaded { get { throw null; } } + public static Azure.ResourceManager.Automation.Models.ModuleProvisioningState ContentRetrieved { get { throw null; } } + public static Azure.ResourceManager.Automation.Models.ModuleProvisioningState ContentStored { get { throw null; } } + public static Azure.ResourceManager.Automation.Models.ModuleProvisioningState ContentValidated { get { throw null; } } + public static Azure.ResourceManager.Automation.Models.ModuleProvisioningState Created { get { throw null; } } + public static Azure.ResourceManager.Automation.Models.ModuleProvisioningState Creating { get { throw null; } } + public static Azure.ResourceManager.Automation.Models.ModuleProvisioningState Failed { get { throw null; } } + public static Azure.ResourceManager.Automation.Models.ModuleProvisioningState ModuleDataStored { get { throw null; } } + public static Azure.ResourceManager.Automation.Models.ModuleProvisioningState ModuleImportRunbookComplete { get { throw null; } } + public static Azure.ResourceManager.Automation.Models.ModuleProvisioningState RunningImportModuleRunbook { get { throw null; } } + public static Azure.ResourceManager.Automation.Models.ModuleProvisioningState StartingImportModuleRunbook { get { throw null; } } + public static Azure.ResourceManager.Automation.Models.ModuleProvisioningState Succeeded { get { throw null; } } + public static Azure.ResourceManager.Automation.Models.ModuleProvisioningState Updating { get { throw null; } } + public bool Equals(Azure.ResourceManager.Automation.Models.ModuleProvisioningState other) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.ResourceManager.Automation.Models.ModuleProvisioningState left, Azure.ResourceManager.Automation.Models.ModuleProvisioningState right) { throw null; } + public static implicit operator Azure.ResourceManager.Automation.Models.ModuleProvisioningState (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.Automation.Models.ModuleProvisioningState left, Azure.ResourceManager.Automation.Models.ModuleProvisioningState right) { throw null; } + public override string ToString() { throw null; } + } + public partial class ModuleUpdateParameters : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public ModuleUpdateParameters() { } + public Azure.ResourceManager.Automation.Models.AutomationContentLink ContentLink { get { throw null; } set { } } + public Azure.Core.AzureLocation? Location { get { throw null; } } + public string Name { get { throw null; } } + public System.Collections.Generic.IDictionary Tags { get { throw null; } } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.Automation.Models.ModuleUpdateParameters System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.Automation.Models.ModuleUpdateParameters System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } } public partial class NonAzureQueryProperties : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { @@ -3180,6 +3266,29 @@ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } } + public partial class PythonPackageCreateParameters : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public PythonPackageCreateParameters(Azure.ResourceManager.Automation.Models.AutomationContentLink contentLink) { } + public Azure.ResourceManager.Automation.Models.AutomationContentLink ContentLink { get { throw null; } } + public System.Collections.Generic.IDictionary Tags { get { throw null; } } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.Automation.Models.PythonPackageCreateParameters System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.Automation.Models.PythonPackageCreateParameters System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + public partial class PythonPackageUpdateParameters : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public PythonPackageUpdateParameters() { } + public System.Collections.Generic.IDictionary Tags { get { throw null; } } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.Automation.Models.PythonPackageUpdateParameters System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.Automation.Models.PythonPackageUpdateParameters System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } public enum QueryTagOperator { All = 0, diff --git a/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_AutomationAccountCollection.cs b/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_AutomationAccountCollection.cs index 886347a4ab9f..aee97310ffa5 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_AutomationAccountCollection.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_AutomationAccountCollection.cs @@ -21,7 +21,7 @@ public partial class Sample_AutomationAccountCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreateOrUpdateAutomationAccount() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/examples/createOrUpdateAutomationAccount.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2023-11-01/examples/createOrUpdateAutomationAccount.json // this example is just showing the usage of "AutomationAccount_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 @@ -62,7 +62,7 @@ public async Task CreateOrUpdate_CreateOrUpdateAutomationAccount() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetAutomationAccount() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/examples/getAutomationAccount.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2023-11-01/examples/getAutomationAccount.json // this example is just showing the usage of "AutomationAccount_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 @@ -96,7 +96,7 @@ public async Task Get_GetAutomationAccount() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_GetAutomationAccount() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/examples/getAutomationAccount.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2023-11-01/examples/getAutomationAccount.json // this example is just showing the usage of "AutomationAccount_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 @@ -126,7 +126,7 @@ public async Task Exists_GetAutomationAccount() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetIfExists_GetAutomationAccount() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/examples/getAutomationAccount.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2023-11-01/examples/getAutomationAccount.json // this example is just showing the usage of "AutomationAccount_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 @@ -168,7 +168,7 @@ public async Task GetIfExists_GetAutomationAccount() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_ListAutomationAccountsByResourceGroup() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/examples/listAutomationAccountsByResourceGroup.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2023-11-01/examples/listAutomationAccountsByResourceGroup.json // this example is just showing the usage of "AutomationAccount_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 diff --git a/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_AutomationAccountModuleCollection.cs b/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_AutomationAccountModuleCollection.cs index dac22aa7f032..0d5886fd109c 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_AutomationAccountModuleCollection.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_AutomationAccountModuleCollection.cs @@ -20,7 +20,7 @@ public partial class Sample_AutomationAccountModuleCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetAModule() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/getModule.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2023-11-01/examples/getModule.json // this example is just showing the usage of "Module_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 @@ -55,7 +55,7 @@ public async Task Get_GetAModule() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_GetAModule() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/getModule.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2023-11-01/examples/getModule.json // this example is just showing the usage of "Module_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 @@ -86,7 +86,7 @@ public async Task Exists_GetAModule() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetIfExists_GetAModule() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/getModule.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2023-11-01/examples/getModule.json // this example is just showing the usage of "Module_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 @@ -129,7 +129,7 @@ public async Task GetIfExists_GetAModule() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreateOrUpdateAModule() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/createOrUpdateModule.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2023-11-01/examples/createOrUpdateModule.json // this example is just showing the usage of "Module_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 @@ -150,13 +150,13 @@ public async Task CreateOrUpdate_CreateOrUpdateAModule() // invoke the operation string moduleName = "OmsCompositeResources"; - AutomationAccountModuleCreateOrUpdateContent content = new AutomationAccountModuleCreateOrUpdateContent(new AutomationContentLink() + ModuleCreateOrUpdateParameters moduleCreateOrUpdateParameters = new ModuleCreateOrUpdateParameters(new AutomationContentLink() { Uri = new Uri("https://teststorage.blob.core.windows.net/dsccomposite/OmsCompositeResources.zip"), ContentHash = new AutomationContentHash("sha265", "07E108A962B81DD9C9BAA89BB47C0F6EE52B29E83758B07795E408D258B2B87A"), Version = "1.0.0.0", }); - ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, moduleName, content); + ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, moduleName, moduleCreateOrUpdateParameters); AutomationAccountModuleResource result = lro.Value; // the variable result is a resource, you could call other operations on this instance as well @@ -171,7 +171,7 @@ public async Task CreateOrUpdate_CreateOrUpdateAModule() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_ListModulesByAutomationAccount() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/listModulesByAutomationAccount.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2023-11-01/examples/listModulesByAutomationAccount.json // this example is just showing the usage of "Module_ListByAutomationAccount" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_AutomationAccountModuleResource.cs b/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_AutomationAccountModuleResource.cs index fe4a12ebec17..67c3adb922f7 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_AutomationAccountModuleResource.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_AutomationAccountModuleResource.cs @@ -20,7 +20,7 @@ public partial class Sample_AutomationAccountModuleResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetActivity_GetActivityInAModule() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/getActivityInAModule.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2023-11-01/examples/getActivityInAModule.json // this example is just showing the usage of "Activity_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 @@ -49,7 +49,7 @@ public async Task GetActivity_GetActivityInAModule() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetActivities_ListActivitiesByAModule() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/listActivitiesByModule.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2023-11-01/examples/listActivitiesByModule.json // this example is just showing the usage of "Activity_ListByModule" 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 @@ -80,7 +80,7 @@ public async Task GetActivities_ListActivitiesByAModule() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_DeleteAModule() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/deleteModule.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2023-11-01/examples/deleteModule.json // this example is just showing the usage of "Module_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 @@ -108,7 +108,7 @@ public async Task Delete_DeleteAModule() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetAModule() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/getModule.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2023-11-01/examples/getModule.json // this example is just showing the usage of "Module_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 @@ -140,7 +140,7 @@ public async Task Get_GetAModule() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_UpdateAModule() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/updateModule.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2023-11-01/examples/updateModule.json // this example is just showing the usage of "Module_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 @@ -158,7 +158,7 @@ public async Task Update_UpdateAModule() AutomationAccountModuleResource automationAccountModule = client.GetAutomationAccountModuleResource(automationAccountModuleResourceId); // invoke the operation - AutomationAccountModulePatch patch = new AutomationAccountModulePatch() + ModuleUpdateParameters moduleUpdateParameters = new ModuleUpdateParameters() { ContentLink = new AutomationContentLink() { @@ -167,7 +167,7 @@ public async Task Update_UpdateAModule() Version = "1.0.0.0", }, }; - AutomationAccountModuleResource result = await automationAccountModule.UpdateAsync(patch); + AutomationAccountModuleResource result = await automationAccountModule.UpdateAsync(moduleUpdateParameters); // 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 @@ -181,7 +181,7 @@ public async Task Update_UpdateAModule() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetFieldsByModuleAndType_GetAListOfFieldsOfAGivenType() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/listFieldsByModuleAndType.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2023-11-01/examples/listFieldsByModuleAndType.json // this example is just showing the usage of "ObjectDataTypes_ListFieldsByModuleAndType" 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 @@ -213,7 +213,7 @@ public async Task GetFieldsByModuleAndType_GetAListOfFieldsOfAGivenType() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetFieldsByType_GetAListOfFieldsOfAGivenType() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/listFieldsByModuleAndType.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2023-11-01/examples/listFieldsByModuleAndType.json // this example is just showing the usage of "Fields_ListByType" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_AutomationAccountPowerShell72ModuleCollection.cs b/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_AutomationAccountPowerShell72ModuleCollection.cs new file mode 100644 index 000000000000..c6da0c654316 --- /dev/null +++ b/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_AutomationAccountPowerShell72ModuleCollection.cs @@ -0,0 +1,206 @@ +// 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.Automation.Models; + +namespace Azure.ResourceManager.Automation.Samples +{ + public partial class Sample_AutomationAccountPowerShell72ModuleCollection + { + // Get a module + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task Get_GetAModule() + { + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2023-11-01/examples/getPowerShell72Module.json + // this example is just showing the usage of "PowerShell72Module_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 AutomationAccountResource created on azure + // for more information of creating AutomationAccountResource, please refer to the document of AutomationAccountResource + string subscriptionId = "a6ddc3c0-ed18-45d9-9cae-d91644c46eb1"; + string resourceGroupName = "rg"; + string automationAccountName = "myAutomationAccount33"; + ResourceIdentifier automationAccountResourceId = AutomationAccountResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, automationAccountName); + AutomationAccountResource automationAccount = client.GetAutomationAccountResource(automationAccountResourceId); + + // get the collection of this AutomationAccountPowerShell72ModuleResource + AutomationAccountPowerShell72ModuleCollection collection = automationAccount.GetAutomationAccountPowerShell72Modules(); + + // invoke the operation + string moduleName = "OmsCompositeResources"; + AutomationAccountPowerShell72ModuleResource result = await collection.GetAsync(moduleName); + + // 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 + AutomationModuleData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + + // Get a module + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task Exists_GetAModule() + { + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2023-11-01/examples/getPowerShell72Module.json + // this example is just showing the usage of "PowerShell72Module_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 AutomationAccountResource created on azure + // for more information of creating AutomationAccountResource, please refer to the document of AutomationAccountResource + string subscriptionId = "a6ddc3c0-ed18-45d9-9cae-d91644c46eb1"; + string resourceGroupName = "rg"; + string automationAccountName = "myAutomationAccount33"; + ResourceIdentifier automationAccountResourceId = AutomationAccountResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, automationAccountName); + AutomationAccountResource automationAccount = client.GetAutomationAccountResource(automationAccountResourceId); + + // get the collection of this AutomationAccountPowerShell72ModuleResource + AutomationAccountPowerShell72ModuleCollection collection = automationAccount.GetAutomationAccountPowerShell72Modules(); + + // invoke the operation + string moduleName = "OmsCompositeResources"; + bool result = await collection.ExistsAsync(moduleName); + + Console.WriteLine($"Succeeded: {result}"); + } + + // Get a module + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task GetIfExists_GetAModule() + { + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2023-11-01/examples/getPowerShell72Module.json + // this example is just showing the usage of "PowerShell72Module_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 AutomationAccountResource created on azure + // for more information of creating AutomationAccountResource, please refer to the document of AutomationAccountResource + string subscriptionId = "a6ddc3c0-ed18-45d9-9cae-d91644c46eb1"; + string resourceGroupName = "rg"; + string automationAccountName = "myAutomationAccount33"; + ResourceIdentifier automationAccountResourceId = AutomationAccountResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, automationAccountName); + AutomationAccountResource automationAccount = client.GetAutomationAccountResource(automationAccountResourceId); + + // get the collection of this AutomationAccountPowerShell72ModuleResource + AutomationAccountPowerShell72ModuleCollection collection = automationAccount.GetAutomationAccountPowerShell72Modules(); + + // invoke the operation + string moduleName = "OmsCompositeResources"; + NullableResponse response = await collection.GetIfExistsAsync(moduleName); + AutomationAccountPowerShell72ModuleResource result = response.HasValue ? response.Value : null; + + if (result == null) + { + Console.WriteLine($"Succeeded with null as result"); + } + else + { + // the variable result is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + AutomationModuleData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + } + + // Create or update a module + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task CreateOrUpdate_CreateOrUpdateAModule() + { + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2023-11-01/examples/createOrUpdatePowerShell72Module.json + // this example is just showing the usage of "PowerShell72Module_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 AutomationAccountResource created on azure + // for more information of creating AutomationAccountResource, please refer to the document of AutomationAccountResource + string subscriptionId = "a6ddc3c0-ed18-45d9-9cae-d91644c46eb1"; + string resourceGroupName = "rg"; + string automationAccountName = "myAutomationAccount33"; + ResourceIdentifier automationAccountResourceId = AutomationAccountResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, automationAccountName); + AutomationAccountResource automationAccount = client.GetAutomationAccountResource(automationAccountResourceId); + + // get the collection of this AutomationAccountPowerShell72ModuleResource + AutomationAccountPowerShell72ModuleCollection collection = automationAccount.GetAutomationAccountPowerShell72Modules(); + + // invoke the operation + string moduleName = "OmsCompositeResources"; + ModuleCreateOrUpdateParameters moduleCreateOrUpdateParameters = new ModuleCreateOrUpdateParameters(new AutomationContentLink() + { + Uri = new Uri("https://teststorage.blob.core.windows.net/dsccomposite/OmsCompositeResources.zip"), + ContentHash = new AutomationContentHash("sha265", "07E108A962B81DD9C9BAA89BB47C0F6EE52B29E83758B07795E408D258B2B87B"), + Version = "1.0.0.0", + }); + ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, moduleName, moduleCreateOrUpdateParameters); + AutomationAccountPowerShell72ModuleResource 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 + AutomationModuleData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + + // List modules by automation account + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task GetAll_ListModulesByAutomationAccount() + { + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2023-11-01/examples/listPowerShell72ModulesByAutomationAccount.json + // this example is just showing the usage of "PowerShell72Module_ListByAutomationAccount" 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 AutomationAccountResource created on azure + // for more information of creating AutomationAccountResource, please refer to the document of AutomationAccountResource + string subscriptionId = "a6ddc3c0-ed18-45d9-9cae-d91644c46eb1"; + string resourceGroupName = "rg"; + string automationAccountName = "myAutomationAccount33"; + ResourceIdentifier automationAccountResourceId = AutomationAccountResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, automationAccountName); + AutomationAccountResource automationAccount = client.GetAutomationAccountResource(automationAccountResourceId); + + // get the collection of this AutomationAccountPowerShell72ModuleResource + AutomationAccountPowerShell72ModuleCollection collection = automationAccount.GetAutomationAccountPowerShell72Modules(); + + // invoke the operation and iterate over the result + await foreach (AutomationAccountPowerShell72ModuleResource 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 + AutomationModuleData 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/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_AutomationAccountPowerShell72ModuleResource.cs b/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_AutomationAccountPowerShell72ModuleResource.cs new file mode 100644 index 000000000000..bd262083dca4 --- /dev/null +++ b/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_AutomationAccountPowerShell72ModuleResource.cs @@ -0,0 +1,119 @@ +// 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.Automation.Models; + +namespace Azure.ResourceManager.Automation.Samples +{ + public partial class Sample_AutomationAccountPowerShell72ModuleResource + { + // Delete a module + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task Delete_DeleteAModule() + { + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2023-11-01/examples/deletePowerShell72Module.json + // this example is just showing the usage of "PowerShell72Module_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 AutomationAccountPowerShell72ModuleResource created on azure + // for more information of creating AutomationAccountPowerShell72ModuleResource, please refer to the document of AutomationAccountPowerShell72ModuleResource + string subscriptionId = "a6ddc3c0-ed18-45d9-9cae-d91644c46eb1"; + string resourceGroupName = "rg"; + string automationAccountName = "myAutomationAccount33"; + string moduleName = "OmsCompositeResources"; + ResourceIdentifier automationAccountPowerShell72ModuleResourceId = AutomationAccountPowerShell72ModuleResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, automationAccountName, moduleName); + AutomationAccountPowerShell72ModuleResource automationAccountPowerShell72Module = client.GetAutomationAccountPowerShell72ModuleResource(automationAccountPowerShell72ModuleResourceId); + + // invoke the operation + await automationAccountPowerShell72Module.DeleteAsync(WaitUntil.Completed); + + Console.WriteLine($"Succeeded"); + } + + // Get a module + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task Get_GetAModule() + { + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2023-11-01/examples/getPowerShell72Module.json + // this example is just showing the usage of "PowerShell72Module_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 AutomationAccountPowerShell72ModuleResource created on azure + // for more information of creating AutomationAccountPowerShell72ModuleResource, please refer to the document of AutomationAccountPowerShell72ModuleResource + string subscriptionId = "a6ddc3c0-ed18-45d9-9cae-d91644c46eb1"; + string resourceGroupName = "rg"; + string automationAccountName = "myAutomationAccount33"; + string moduleName = "OmsCompositeResources"; + ResourceIdentifier automationAccountPowerShell72ModuleResourceId = AutomationAccountPowerShell72ModuleResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, automationAccountName, moduleName); + AutomationAccountPowerShell72ModuleResource automationAccountPowerShell72Module = client.GetAutomationAccountPowerShell72ModuleResource(automationAccountPowerShell72ModuleResourceId); + + // invoke the operation + AutomationAccountPowerShell72ModuleResource result = await automationAccountPowerShell72Module.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 + AutomationModuleData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + + // Update a module + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task Update_UpdateAModule() + { + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2023-11-01/examples/updatePowerShell72Module.json + // this example is just showing the usage of "PowerShell72Module_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 AutomationAccountPowerShell72ModuleResource created on azure + // for more information of creating AutomationAccountPowerShell72ModuleResource, please refer to the document of AutomationAccountPowerShell72ModuleResource + string subscriptionId = "a6ddc3c0-ed18-45d9-9cae-d91644c46eb1"; + string resourceGroupName = "rg"; + string automationAccountName = "MyAutomationAccount"; + string moduleName = "MyModule"; + ResourceIdentifier automationAccountPowerShell72ModuleResourceId = AutomationAccountPowerShell72ModuleResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, automationAccountName, moduleName); + AutomationAccountPowerShell72ModuleResource automationAccountPowerShell72Module = client.GetAutomationAccountPowerShell72ModuleResource(automationAccountPowerShell72ModuleResourceId); + + // invoke the operation + ModuleUpdateParameters moduleUpdateParameters = new ModuleUpdateParameters() + { + ContentLink = new AutomationContentLink() + { + Uri = new Uri("https://teststorage.blob.core.windows.net/mycontainer/MyModule.zip"), + ContentHash = new AutomationContentHash("sha265", "07E108A962B81DD9C9BAA89BB47C0F6EE52B29E83758B07795E408D258B2B87A"), + Version = "1.0.0.0", + }, + }; + AutomationAccountPowerShell72ModuleResource result = await automationAccountPowerShell72Module.UpdateAsync(moduleUpdateParameters); + + // 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 + AutomationModuleData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + } +} diff --git a/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_AutomationAccountPython2PackageCollection.cs b/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_AutomationAccountPython2PackageCollection.cs index 4517e0adf177..01f25b330323 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_AutomationAccountPython2PackageCollection.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_AutomationAccountPython2PackageCollection.cs @@ -20,7 +20,7 @@ public partial class Sample_AutomationAccountPython2PackageCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetAPython2Package() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/getPython2Package.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2023-11-01/examples/getPython2Package.json // this example is just showing the usage of "Python2Package_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 @@ -55,7 +55,7 @@ public async Task Get_GetAPython2Package() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_GetAPython2Package() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/getPython2Package.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2023-11-01/examples/getPython2Package.json // this example is just showing the usage of "Python2Package_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 @@ -86,7 +86,7 @@ public async Task Exists_GetAPython2Package() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetIfExists_GetAPython2Package() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/getPython2Package.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2023-11-01/examples/getPython2Package.json // this example is just showing the usage of "Python2Package_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 @@ -129,7 +129,7 @@ public async Task GetIfExists_GetAPython2Package() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreateOrUpdateAPython2Package() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/createOrUpdatePython2Package.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2023-11-01/examples/createOrUpdatePython2Package.json // this example is just showing the usage of "Python2Package_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 @@ -150,7 +150,7 @@ public async Task CreateOrUpdate_CreateOrUpdateAPython2Package() // invoke the operation string packageName = "OmsCompositeResources"; - AutomationAccountPython2PackageCreateOrUpdateContent content = new AutomationAccountPython2PackageCreateOrUpdateContent(new AutomationContentLink() + PythonPackageCreateParameters pythonPackageCreateParameters = new PythonPackageCreateParameters(new AutomationContentLink() { Uri = new Uri("https://teststorage.blob.core.windows.net/dsccomposite/OmsCompositeResources.zip"), ContentHash = new AutomationContentHash("sha265", "07E108A962B81DD9C9BAA89BB47C0F6EE52B29E83758B07795E408D258B2B87A"), @@ -161,7 +161,7 @@ public async Task CreateOrUpdate_CreateOrUpdateAPython2Package() { }, }; - ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, packageName, content); + ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, packageName, pythonPackageCreateParameters); AutomationAccountPython2PackageResource result = lro.Value; // the variable result is a resource, you could call other operations on this instance as well @@ -176,7 +176,7 @@ public async Task CreateOrUpdate_CreateOrUpdateAPython2Package() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_ListPython2PackagesByAutomationAccount() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/listPython2PackagesByAutomationAccount.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2023-11-01/examples/listPython2PackagesByAutomationAccount.json // this example is just showing the usage of "Python2Package_ListByAutomationAccount" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_AutomationAccountPython2PackageResource.cs b/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_AutomationAccountPython2PackageResource.cs index 5d2c71b95e8f..d2242082d575 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_AutomationAccountPython2PackageResource.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_AutomationAccountPython2PackageResource.cs @@ -20,7 +20,7 @@ public partial class Sample_AutomationAccountPython2PackageResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_DeleteAPython2Package() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/deletePython2Package.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2023-11-01/examples/deletePython2Package.json // this example is just showing the usage of "Python2Package_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 @@ -48,7 +48,7 @@ public async Task Delete_DeleteAPython2Package() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetAPython2Package() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/getPython2Package.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2023-11-01/examples/getPython2Package.json // this example is just showing the usage of "Python2Package_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 @@ -80,7 +80,7 @@ public async Task Get_GetAPython2Package() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_UpdateAModule() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/updatePython2Package.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2023-11-01/examples/updatePython2Package.json // this example is just showing the usage of "Python2Package_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 @@ -98,13 +98,13 @@ public async Task Update_UpdateAModule() AutomationAccountPython2PackageResource automationAccountPython2Package = client.GetAutomationAccountPython2PackageResource(automationAccountPython2PackageResourceId); // invoke the operation - AutomationAccountPython2PackagePatch patch = new AutomationAccountPython2PackagePatch() + PythonPackageUpdateParameters pythonPackageUpdateParameters = new PythonPackageUpdateParameters() { Tags = { }, }; - AutomationAccountPython2PackageResource result = await automationAccountPython2Package.UpdateAsync(patch); + AutomationAccountPython2PackageResource result = await automationAccountPython2Package.UpdateAsync(pythonPackageUpdateParameters); // 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 diff --git a/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_AutomationAccountPython3PackageCollection.cs b/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_AutomationAccountPython3PackageCollection.cs new file mode 100644 index 000000000000..be76e8caca15 --- /dev/null +++ b/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_AutomationAccountPython3PackageCollection.cs @@ -0,0 +1,211 @@ +// 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.Automation.Models; + +namespace Azure.ResourceManager.Automation.Samples +{ + public partial class Sample_AutomationAccountPython3PackageCollection + { + // Get a python 3 package + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task Get_GetAPython3Package() + { + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2023-11-01/examples/getPython3Package.json + // this example is just showing the usage of "Python3Package_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 AutomationAccountResource created on azure + // for more information of creating AutomationAccountResource, please refer to the document of AutomationAccountResource + string subscriptionId = "subid"; + string resourceGroupName = "rg"; + string automationAccountName = "myAutomationAccount33"; + ResourceIdentifier automationAccountResourceId = AutomationAccountResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, automationAccountName); + AutomationAccountResource automationAccount = client.GetAutomationAccountResource(automationAccountResourceId); + + // get the collection of this AutomationAccountPython3PackageResource + AutomationAccountPython3PackageCollection collection = automationAccount.GetAutomationAccountPython3Packages(); + + // invoke the operation + string packageName = "OmsCompositeResources"; + AutomationAccountPython3PackageResource result = await collection.GetAsync(packageName); + + // 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 + AutomationModuleData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + + // Get a python 3 package + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task Exists_GetAPython3Package() + { + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2023-11-01/examples/getPython3Package.json + // this example is just showing the usage of "Python3Package_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 AutomationAccountResource created on azure + // for more information of creating AutomationAccountResource, please refer to the document of AutomationAccountResource + string subscriptionId = "subid"; + string resourceGroupName = "rg"; + string automationAccountName = "myAutomationAccount33"; + ResourceIdentifier automationAccountResourceId = AutomationAccountResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, automationAccountName); + AutomationAccountResource automationAccount = client.GetAutomationAccountResource(automationAccountResourceId); + + // get the collection of this AutomationAccountPython3PackageResource + AutomationAccountPython3PackageCollection collection = automationAccount.GetAutomationAccountPython3Packages(); + + // invoke the operation + string packageName = "OmsCompositeResources"; + bool result = await collection.ExistsAsync(packageName); + + Console.WriteLine($"Succeeded: {result}"); + } + + // Get a python 3 package + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task GetIfExists_GetAPython3Package() + { + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2023-11-01/examples/getPython3Package.json + // this example is just showing the usage of "Python3Package_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 AutomationAccountResource created on azure + // for more information of creating AutomationAccountResource, please refer to the document of AutomationAccountResource + string subscriptionId = "subid"; + string resourceGroupName = "rg"; + string automationAccountName = "myAutomationAccount33"; + ResourceIdentifier automationAccountResourceId = AutomationAccountResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, automationAccountName); + AutomationAccountResource automationAccount = client.GetAutomationAccountResource(automationAccountResourceId); + + // get the collection of this AutomationAccountPython3PackageResource + AutomationAccountPython3PackageCollection collection = automationAccount.GetAutomationAccountPython3Packages(); + + // invoke the operation + string packageName = "OmsCompositeResources"; + NullableResponse response = await collection.GetIfExistsAsync(packageName); + AutomationAccountPython3PackageResource result = response.HasValue ? response.Value : null; + + if (result == null) + { + Console.WriteLine($"Succeeded with null as result"); + } + else + { + // the variable result is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + AutomationModuleData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + } + + // Create or update a python 3 package + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task CreateOrUpdate_CreateOrUpdateAPython3Package() + { + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2023-11-01/examples/createOrUpdatePython3Package.json + // this example is just showing the usage of "Python3Package_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 AutomationAccountResource created on azure + // for more information of creating AutomationAccountResource, please refer to the document of AutomationAccountResource + string subscriptionId = "subid"; + string resourceGroupName = "rg"; + string automationAccountName = "myAutomationAccount33"; + ResourceIdentifier automationAccountResourceId = AutomationAccountResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, automationAccountName); + AutomationAccountResource automationAccount = client.GetAutomationAccountResource(automationAccountResourceId); + + // get the collection of this AutomationAccountPython3PackageResource + AutomationAccountPython3PackageCollection collection = automationAccount.GetAutomationAccountPython3Packages(); + + // invoke the operation + string packageName = "OmsCompositeResources"; + PythonPackageCreateParameters pythonPackageCreateParameters = new PythonPackageCreateParameters(new AutomationContentLink() + { + Uri = new Uri("https://teststorage.blob.core.windows.net/dsccomposite/OmsCompositeResources.zip"), + ContentHash = new AutomationContentHash("sha265", "07E108A962B81DD9C9BAA89BB47C0F6EE52B29E83758B07795E408D258B2B87A"), + Version = "1.0.0.0", + }) + { + Tags = +{ +}, + }; + ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, packageName, pythonPackageCreateParameters); + AutomationAccountPython3PackageResource 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 + AutomationModuleData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + + // List python 3 packages by automation account + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task GetAll_ListPython3PackagesByAutomationAccount() + { + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2023-11-01/examples/listPython3PackagesByAutomationAccount.json + // this example is just showing the usage of "Python3Package_ListByAutomationAccount" 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 AutomationAccountResource created on azure + // for more information of creating AutomationAccountResource, please refer to the document of AutomationAccountResource + string subscriptionId = "subid"; + string resourceGroupName = "rg"; + string automationAccountName = "myAutomationAccount33"; + ResourceIdentifier automationAccountResourceId = AutomationAccountResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, automationAccountName); + AutomationAccountResource automationAccount = client.GetAutomationAccountResource(automationAccountResourceId); + + // get the collection of this AutomationAccountPython3PackageResource + AutomationAccountPython3PackageCollection collection = automationAccount.GetAutomationAccountPython3Packages(); + + // invoke the operation and iterate over the result + await foreach (AutomationAccountPython3PackageResource 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 + AutomationModuleData 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/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_AutomationAccountPython3PackageResource.cs b/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_AutomationAccountPython3PackageResource.cs new file mode 100644 index 000000000000..6153ce13866c --- /dev/null +++ b/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_AutomationAccountPython3PackageResource.cs @@ -0,0 +1,116 @@ +// 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.Automation.Models; + +namespace Azure.ResourceManager.Automation.Samples +{ + public partial class Sample_AutomationAccountPython3PackageResource + { + // Delete a python 3 package + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task Delete_DeleteAPython3Package() + { + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2023-11-01/examples/deletePython3Package.json + // this example is just showing the usage of "Python3Package_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 AutomationAccountPython3PackageResource created on azure + // for more information of creating AutomationAccountPython3PackageResource, please refer to the document of AutomationAccountPython3PackageResource + string subscriptionId = "subid"; + string resourceGroupName = "rg"; + string automationAccountName = "myAutomationAccount33"; + string packageName = "OmsCompositeResources"; + ResourceIdentifier automationAccountPython3PackageResourceId = AutomationAccountPython3PackageResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, automationAccountName, packageName); + AutomationAccountPython3PackageResource automationAccountPython3Package = client.GetAutomationAccountPython3PackageResource(automationAccountPython3PackageResourceId); + + // invoke the operation + await automationAccountPython3Package.DeleteAsync(WaitUntil.Completed); + + Console.WriteLine($"Succeeded"); + } + + // Get a python 3 package + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task Get_GetAPython3Package() + { + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2023-11-01/examples/getPython3Package.json + // this example is just showing the usage of "Python3Package_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 AutomationAccountPython3PackageResource created on azure + // for more information of creating AutomationAccountPython3PackageResource, please refer to the document of AutomationAccountPython3PackageResource + string subscriptionId = "subid"; + string resourceGroupName = "rg"; + string automationAccountName = "myAutomationAccount33"; + string packageName = "OmsCompositeResources"; + ResourceIdentifier automationAccountPython3PackageResourceId = AutomationAccountPython3PackageResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, automationAccountName, packageName); + AutomationAccountPython3PackageResource automationAccountPython3Package = client.GetAutomationAccountPython3PackageResource(automationAccountPython3PackageResourceId); + + // invoke the operation + AutomationAccountPython3PackageResource result = await automationAccountPython3Package.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 + AutomationModuleData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + + // Update a module + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task Update_UpdateAModule() + { + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2023-11-01/examples/updatePython3Package.json + // this example is just showing the usage of "Python3Package_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 AutomationAccountPython3PackageResource created on azure + // for more information of creating AutomationAccountPython3PackageResource, please refer to the document of AutomationAccountPython3PackageResource + string subscriptionId = "subid"; + string resourceGroupName = "rg"; + string automationAccountName = "MyAutomationAccount"; + string packageName = "MyPython3Package"; + ResourceIdentifier automationAccountPython3PackageResourceId = AutomationAccountPython3PackageResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, automationAccountName, packageName); + AutomationAccountPython3PackageResource automationAccountPython3Package = client.GetAutomationAccountPython3PackageResource(automationAccountPython3PackageResourceId); + + // invoke the operation + PythonPackageUpdateParameters pythonPackageUpdateParameters = new PythonPackageUpdateParameters() + { + Tags = +{ +}, + }; + AutomationAccountPython3PackageResource result = await automationAccountPython3Package.UpdateAsync(pythonPackageUpdateParameters); + + // 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 + AutomationModuleData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + } +} diff --git a/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_AutomationAccountResource.cs b/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_AutomationAccountResource.cs index 4e507fc66df0..fd4753130ea8 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_AutomationAccountResource.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_AutomationAccountResource.cs @@ -223,12 +223,39 @@ public async Task GetAllNodeCountInformation_GetNodeSStatusCounts() Console.WriteLine($"Succeeded"); } + // Generate webhook uri + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task GenerateUriWebhook_GenerateWebhookUri() + { + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/examples/webhookGenerateUri.json + // this example is just showing the usage of "Webhook_GenerateUri" 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 AutomationAccountResource created on azure + // for more information of creating AutomationAccountResource, please refer to the document of AutomationAccountResource + string subscriptionId = "subid"; + string resourceGroupName = "rg"; + string automationAccountName = "myAutomationAccount33"; + ResourceIdentifier automationAccountResourceId = AutomationAccountResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, automationAccountName); + AutomationAccountResource automationAccount = client.GetAutomationAccountResource(automationAccountResourceId); + + // invoke the operation + string result = await automationAccount.GenerateUriWebhookAsync(); + + Console.WriteLine($"Succeeded: {result}"); + } + // Update an automation account [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_UpdateAnAutomationAccount() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/examples/updateAutomationAccount.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2023-11-01/examples/updateAutomationAccount.json // this example is just showing the usage of "AutomationAccount_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 @@ -265,7 +292,7 @@ public async Task Update_UpdateAnAutomationAccount() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_DeleteAutomationAccount() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/examples/deleteAutomationAccount.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2023-11-01/examples/deleteAutomationAccount.json // this example is just showing the usage of "AutomationAccount_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 @@ -292,7 +319,7 @@ public async Task Delete_DeleteAutomationAccount() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetAutomationAccount() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/examples/getAutomationAccount.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2023-11-01/examples/getAutomationAccount.json // this example is just showing the usage of "AutomationAccount_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 @@ -323,7 +350,7 @@ public async Task Get_GetAutomationAccount() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAutomationAccounts_ListAutomationAccountsByResourceGroup() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/examples/listAutomationAccountsBySubscription.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2023-11-01/examples/listAutomationAccountsBySubscription.json // this example is just showing the usage of "AutomationAccount_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 @@ -355,7 +382,7 @@ public async Task GetAutomationAccounts_ListAutomationAccountsByResourceGroup() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetStatistics_GetStatisticsOfAnAutomationAccount() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/examples/getStatisticsOfAutomationAccount.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2023-11-01/examples/getStatisticsOfAutomationAccount.json // this example is just showing the usage of "Statistics_ListByAutomationAccount" 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 @@ -385,7 +412,7 @@ public async Task GetStatistics_GetStatisticsOfAnAutomationAccount() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetUsages_GetUsagesOfAnAutomationAccount() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/examples/getUsagesOfAutomationAccount.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2023-11-01/examples/getUsagesOfAutomationAccount.json // this example is just showing the usage of "Usages_ListByAutomationAccount" 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 @@ -415,7 +442,7 @@ public async Task GetUsages_GetUsagesOfAnAutomationAccount() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAutomationAccountKeys_GetListsOfAnAutomationAccount() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/examples/listAutomationAccountKeys.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2023-11-01/examples/listAutomationAccountKeys.json // this example is just showing the usage of "Keys_ListByAutomationAccount" 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 @@ -445,7 +472,7 @@ public async Task GetAutomationAccountKeys_GetListsOfAnAutomationAccount() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetLinkedWorkspace_GetTheLinkedWorkspaceOfAnAutomationAccount() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/getLinkedWorkspace.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2023-11-01/examples/getLinkedWorkspace.json // this example is just showing the usage of "LinkedWorkspace_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 @@ -472,7 +499,7 @@ public async Task GetLinkedWorkspace_GetTheLinkedWorkspaceOfAnAutomationAccount( [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetFieldsByType_GetAListOfFieldsOfAGivenTypeAcrossAllAccessibleModules() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/listFieldsByType.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2023-11-01/examples/listFieldsByType.json // this example is just showing the usage of "ObjectDataTypes_ListFieldsByType" 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 @@ -503,7 +530,7 @@ public async Task GetFieldsByType_GetAListOfFieldsOfAGivenTypeAcrossAllAccessibl [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task ConvertGraphRunbookContent_GetGraphicalRawRunbookContentFromGraphicalRunbookJSONObject() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/examples/serializeGraphRunbookContent.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2023-11-01/examples/serializeGraphRunbookContent.json // this example is just showing the usage of "ConvertGraphRunbookContent" 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 @@ -534,7 +561,7 @@ public async Task ConvertGraphRunbookContent_GetGraphicalRawRunbookContentFromGr [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task ConvertGraphRunbookContent_GetGraphicalRunbookContentFromRawContent() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/examples/deserializeGraphRunbookContent.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2023-11-01/examples/deserializeGraphRunbookContent.json // this example is just showing the usage of "ConvertGraphRunbookContent" 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 @@ -565,13 +592,13 @@ public async Task ConvertGraphRunbookContent_GetGraphicalRunbookContentFromRawCo Console.WriteLine($"Succeeded: {result}"); } - // Get software update configuration runs by Id + // Get software update configuration machine run [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task GetSoftwareUpdateConfigurationRun_GetSoftwareUpdateConfigurationRunsById() + public async Task GetSoftwareUpdateConfigurationMachineRun_GetSoftwareUpdateConfigurationMachineRun() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2019-06-01/examples/softwareUpdateConfigurationRun/getSoftwareUpdateConfigurationRunById.json - // this example is just showing the usage of "SoftwareUpdateConfigurationRuns_GetById" operation, for the dependent resources, they will have to be created separately. + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2023-11-01/examples/softwareUpdateConfigurationMachineRun/getSoftwareUpdateConfigurationMachineRunById.json + // this example is just showing the usage of "SoftwareUpdateConfigurationMachineRuns_GetById" 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(); @@ -587,19 +614,19 @@ public async Task GetSoftwareUpdateConfigurationRun_GetSoftwareUpdateConfigurati AutomationAccountResource automationAccount = client.GetAutomationAccountResource(automationAccountResourceId); // invoke the operation - Guid softwareUpdateConfigurationRunId = Guid.Parse("2bd77cfa-2e9c-41b4-a45b-684a77cfeca9"); - SoftwareUpdateConfigurationRun result = await automationAccount.GetSoftwareUpdateConfigurationRunAsync(softwareUpdateConfigurationRunId); + Guid softwareUpdateConfigurationMachineRunId = Guid.Parse("ca440719-34a4-4234-a1a9-3f84faf7788f"); + SoftwareUpdateConfigurationMachineRun result = await automationAccount.GetSoftwareUpdateConfigurationMachineRunAsync(softwareUpdateConfigurationMachineRunId); Console.WriteLine($"Succeeded: {result}"); } - // List software update configuration machine run with status equal to 'Failed' + // List software update configuration machine runs [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task GetSoftwareUpdateConfigurationRuns_ListSoftwareUpdateConfigurationMachineRunWithStatusEqualToFailed() + public async Task GetSoftwareUpdateConfigurationMachineRuns_ListSoftwareUpdateConfigurationMachineRuns() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2019-06-01/examples/softwareUpdateConfigurationRun/listFailedSoftwareUpdateConfigurationRuns.json - // this example is just showing the usage of "SoftwareUpdateConfigurationRuns_List" operation, for the dependent resources, they will have to be created separately. + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2023-11-01/examples/softwareUpdateConfigurationMachineRun/listSoftwareUpdateConfigurationMachineRuns.json + // this example is just showing the usage of "SoftwareUpdateConfigurationMachineRuns_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(); @@ -615,8 +642,7 @@ public async Task GetSoftwareUpdateConfigurationRuns_ListSoftwareUpdateConfigura AutomationAccountResource automationAccount = client.GetAutomationAccountResource(automationAccountResourceId); // invoke the operation and iterate over the result - string filter = "properties/status%20eq%20'Failed'"; - await foreach (SoftwareUpdateConfigurationRun item in automationAccount.GetSoftwareUpdateConfigurationRunsAsync(filter: filter)) + await foreach (SoftwareUpdateConfigurationMachineRun item in automationAccount.GetSoftwareUpdateConfigurationMachineRunsAsync()) { Console.WriteLine($"Succeeded: {item}"); } @@ -624,13 +650,13 @@ public async Task GetSoftwareUpdateConfigurationRuns_ListSoftwareUpdateConfigura Console.WriteLine($"Succeeded"); } - // List software update configuration machine runs + // List software update configuration machine runs for a specific software update configuration run [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task GetSoftwareUpdateConfigurationRuns_ListSoftwareUpdateConfigurationMachineRuns() + public async Task GetSoftwareUpdateConfigurationMachineRuns_ListSoftwareUpdateConfigurationMachineRunsForASpecificSoftwareUpdateConfigurationRun() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2019-06-01/examples/softwareUpdateConfigurationRun/listSoftwareUpdateConfigurationRuns.json - // this example is just showing the usage of "SoftwareUpdateConfigurationRuns_List" operation, for the dependent resources, they will have to be created separately. + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2023-11-01/examples/softwareUpdateConfigurationMachineRun/listSoftwareUpdateConfigurationMachineRunsByRun.json + // this example is just showing the usage of "SoftwareUpdateConfigurationMachineRuns_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(); @@ -646,7 +672,8 @@ public async Task GetSoftwareUpdateConfigurationRuns_ListSoftwareUpdateConfigura AutomationAccountResource automationAccount = client.GetAutomationAccountResource(automationAccountResourceId); // invoke the operation and iterate over the result - await foreach (SoftwareUpdateConfigurationRun item in automationAccount.GetSoftwareUpdateConfigurationRunsAsync()) + string filter = "$filter=properties/correlationId%20eq%200b943e57-44d3-4f05-898c-6e92aa617e59"; + await foreach (SoftwareUpdateConfigurationMachineRun item in automationAccount.GetSoftwareUpdateConfigurationMachineRunsAsync(filter: filter)) { Console.WriteLine($"Succeeded: {item}"); } @@ -654,13 +681,13 @@ public async Task GetSoftwareUpdateConfigurationRuns_ListSoftwareUpdateConfigura Console.WriteLine($"Succeeded"); } - // Get software update configuration machine run + // Get software update configuration runs by Id [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task GetSoftwareUpdateConfigurationMachineRun_GetSoftwareUpdateConfigurationMachineRun() + public async Task GetSoftwareUpdateConfigurationRun_GetSoftwareUpdateConfigurationRunsById() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2019-06-01/examples/softwareUpdateConfigurationMachineRun/getSoftwareUpdateConfigurationMachineRunById.json - // this example is just showing the usage of "SoftwareUpdateConfigurationMachineRuns_GetById" operation, for the dependent resources, they will have to be created separately. + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2023-11-01/examples/softwareUpdateConfigurationRun/getSoftwareUpdateConfigurationRunById.json + // this example is just showing the usage of "SoftwareUpdateConfigurationRuns_GetById" 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(); @@ -676,19 +703,19 @@ public async Task GetSoftwareUpdateConfigurationMachineRun_GetSoftwareUpdateConf AutomationAccountResource automationAccount = client.GetAutomationAccountResource(automationAccountResourceId); // invoke the operation - Guid softwareUpdateConfigurationMachineRunId = Guid.Parse("ca440719-34a4-4234-a1a9-3f84faf7788f"); - SoftwareUpdateConfigurationMachineRun result = await automationAccount.GetSoftwareUpdateConfigurationMachineRunAsync(softwareUpdateConfigurationMachineRunId); + Guid softwareUpdateConfigurationRunId = Guid.Parse("2bd77cfa-2e9c-41b4-a45b-684a77cfeca9"); + SoftwareUpdateConfigurationRun result = await automationAccount.GetSoftwareUpdateConfigurationRunAsync(softwareUpdateConfigurationRunId); Console.WriteLine($"Succeeded: {result}"); } - // List software update configuration machine runs + // List software update configuration machine run with status equal to 'Failed' [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task GetSoftwareUpdateConfigurationMachineRuns_ListSoftwareUpdateConfigurationMachineRuns() + public async Task GetSoftwareUpdateConfigurationRuns_ListSoftwareUpdateConfigurationMachineRunWithStatusEqualToFailed() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2019-06-01/examples/softwareUpdateConfigurationMachineRun/listSoftwareUpdateConfigurationMachineRuns.json - // this example is just showing the usage of "SoftwareUpdateConfigurationMachineRuns_List" operation, for the dependent resources, they will have to be created separately. + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2023-11-01/examples/softwareUpdateConfigurationRun/listFailedSoftwareUpdateConfigurationRuns.json + // this example is just showing the usage of "SoftwareUpdateConfigurationRuns_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(); @@ -704,7 +731,8 @@ public async Task GetSoftwareUpdateConfigurationMachineRuns_ListSoftwareUpdateCo AutomationAccountResource automationAccount = client.GetAutomationAccountResource(automationAccountResourceId); // invoke the operation and iterate over the result - await foreach (SoftwareUpdateConfigurationMachineRun item in automationAccount.GetSoftwareUpdateConfigurationMachineRunsAsync()) + string filter = "properties/status%20eq%20'Failed'"; + await foreach (SoftwareUpdateConfigurationRun item in automationAccount.GetSoftwareUpdateConfigurationRunsAsync(filter: filter)) { Console.WriteLine($"Succeeded: {item}"); } @@ -712,13 +740,13 @@ public async Task GetSoftwareUpdateConfigurationMachineRuns_ListSoftwareUpdateCo Console.WriteLine($"Succeeded"); } - // List software update configuration machine runs for a specific software update configuration run + // List software update configuration machine runs [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task GetSoftwareUpdateConfigurationMachineRuns_ListSoftwareUpdateConfigurationMachineRunsForASpecificSoftwareUpdateConfigurationRun() + public async Task GetSoftwareUpdateConfigurationRuns_ListSoftwareUpdateConfigurationMachineRuns() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2019-06-01/examples/softwareUpdateConfigurationMachineRun/listSoftwareUpdateConfigurationMachineRunsByRun.json - // this example is just showing the usage of "SoftwareUpdateConfigurationMachineRuns_List" operation, for the dependent resources, they will have to be created separately. + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2023-11-01/examples/softwareUpdateConfigurationRun/listSoftwareUpdateConfigurationRuns.json + // this example is just showing the usage of "SoftwareUpdateConfigurationRuns_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(); @@ -734,40 +762,12 @@ public async Task GetSoftwareUpdateConfigurationMachineRuns_ListSoftwareUpdateCo AutomationAccountResource automationAccount = client.GetAutomationAccountResource(automationAccountResourceId); // invoke the operation and iterate over the result - string filter = "$filter=properties/correlationId%20eq%200b943e57-44d3-4f05-898c-6e92aa617e59"; - await foreach (SoftwareUpdateConfigurationMachineRun item in automationAccount.GetSoftwareUpdateConfigurationMachineRunsAsync(filter: filter)) + await foreach (SoftwareUpdateConfigurationRun item in automationAccount.GetSoftwareUpdateConfigurationRunsAsync()) { Console.WriteLine($"Succeeded: {item}"); } Console.WriteLine($"Succeeded"); } - - // Generate webhook uri - [NUnit.Framework.Test] - [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task GenerateUriWebhook_GenerateWebhookUri() - { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/examples/webhookGenerateUri.json - // this example is just showing the usage of "Webhook_GenerateUri" 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 AutomationAccountResource created on azure - // for more information of creating AutomationAccountResource, please refer to the document of AutomationAccountResource - string subscriptionId = "subid"; - string resourceGroupName = "rg"; - string automationAccountName = "myAutomationAccount33"; - ResourceIdentifier automationAccountResourceId = AutomationAccountResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, automationAccountName); - AutomationAccountResource automationAccount = client.GetAutomationAccountResource(automationAccountResourceId); - - // invoke the operation - string result = await automationAccount.GenerateUriWebhookAsync(); - - Console.WriteLine($"Succeeded: {result}"); - } } } diff --git a/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_AutomationCertificateCollection.cs b/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_AutomationCertificateCollection.cs index b9048ee6ca38..09647227302b 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_AutomationCertificateCollection.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_AutomationCertificateCollection.cs @@ -20,7 +20,7 @@ public partial class Sample_AutomationCertificateCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetACertificate() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/getCertificate.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2023-11-01/examples/getCertificate.json // this example is just showing the usage of "Certificate_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 @@ -55,7 +55,7 @@ public async Task Get_GetACertificate() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_GetACertificate() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/getCertificate.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2023-11-01/examples/getCertificate.json // this example is just showing the usage of "Certificate_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 @@ -86,7 +86,7 @@ public async Task Exists_GetACertificate() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetIfExists_GetACertificate() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/getCertificate.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2023-11-01/examples/getCertificate.json // this example is just showing the usage of "Certificate_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 @@ -129,7 +129,7 @@ public async Task GetIfExists_GetACertificate() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreateOrUpdateACertificate() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/createOrUpdateCertificate.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2023-11-01/examples/createOrUpdateCertificate.json // this example is just showing the usage of "Certificate_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 @@ -171,7 +171,7 @@ public async Task CreateOrUpdate_CreateOrUpdateACertificate() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_ListCertificates() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/listCertificatesByAutomationAccount.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2023-11-01/examples/listCertificatesByAutomationAccount.json // this example is just showing the usage of "Certificate_ListByAutomationAccount" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_AutomationCertificateResource.cs b/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_AutomationCertificateResource.cs index 19c9d80109cf..761c72f3efad 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_AutomationCertificateResource.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_AutomationCertificateResource.cs @@ -20,7 +20,7 @@ public partial class Sample_AutomationCertificateResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_DeleteACertificate() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/deleteCertificate.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2023-11-01/examples/deleteCertificate.json // this example is just showing the usage of "Certificate_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 @@ -48,7 +48,7 @@ public async Task Delete_DeleteACertificate() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetACertificate() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/getCertificate.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2023-11-01/examples/getCertificate.json // this example is just showing the usage of "Certificate_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 @@ -80,7 +80,7 @@ public async Task Get_GetACertificate() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_UpdateACertificate() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/updateCertificate.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2023-11-01/examples/updateCertificate.json // this example is just showing the usage of "Certificate_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 diff --git a/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_AutomationConnectionCollection.cs b/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_AutomationConnectionCollection.cs index d52e5437dcb8..03d94518055e 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_AutomationConnectionCollection.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_AutomationConnectionCollection.cs @@ -20,7 +20,7 @@ public partial class Sample_AutomationConnectionCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetAConnection() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/getConnection.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2023-11-01/examples/getConnection.json // this example is just showing the usage of "Connection_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 @@ -55,7 +55,7 @@ public async Task Get_GetAConnection() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_GetAConnection() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/getConnection.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2023-11-01/examples/getConnection.json // this example is just showing the usage of "Connection_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 @@ -86,7 +86,7 @@ public async Task Exists_GetAConnection() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetIfExists_GetAConnection() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/getConnection.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2023-11-01/examples/getConnection.json // this example is just showing the usage of "Connection_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 @@ -129,7 +129,7 @@ public async Task GetIfExists_GetAConnection() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreateOrUpdateConnection() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/createOrUpdateConnection.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2023-11-01/examples/createOrUpdateConnection.json // this example is just showing the usage of "Connection_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 @@ -177,7 +177,7 @@ public async Task CreateOrUpdate_CreateOrUpdateConnection() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_ListConnectionsByAutomationAccountFirst100() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/listConnectionsByAutomationAccount_First100.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2023-11-01/examples/listConnectionsByAutomationAccount_First100.json // this example is just showing the usage of "Connection_ListByAutomationAccount" 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 @@ -214,7 +214,7 @@ public async Task GetAll_ListConnectionsByAutomationAccountFirst100() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_ListConnectionsByAutomationAccountNext100() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/listConnectionsByAutomationAccount_Next100.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2023-11-01/examples/listConnectionsByAutomationAccount_Next100.json // this example is just showing the usage of "Connection_ListByAutomationAccount" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_AutomationConnectionResource.cs b/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_AutomationConnectionResource.cs index fa6532ee085b..970828036410 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_AutomationConnectionResource.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_AutomationConnectionResource.cs @@ -20,7 +20,7 @@ public partial class Sample_AutomationConnectionResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_DeleteAnExistingConnection() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/deleteConnection.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2023-11-01/examples/deleteConnection.json // this example is just showing the usage of "Connection_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 @@ -48,7 +48,7 @@ public async Task Delete_DeleteAnExistingConnection() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetAConnection() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/getConnection.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2023-11-01/examples/getConnection.json // this example is just showing the usage of "Connection_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 @@ -80,7 +80,7 @@ public async Task Get_GetAConnection() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_UpdateAConnection() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/updateConnection.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2023-11-01/examples/updateConnection.json // this example is just showing the usage of "Connection_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 diff --git a/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_AutomationConnectionTypeCollection.cs b/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_AutomationConnectionTypeCollection.cs index 7f627f8293dc..3a052f5b2fb7 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_AutomationConnectionTypeCollection.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_AutomationConnectionTypeCollection.cs @@ -21,7 +21,7 @@ public partial class Sample_AutomationConnectionTypeCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetConnectionType() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/getConnectionType.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2023-11-01/examples/getConnectionType.json // this example is just showing the usage of "ConnectionType_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 @@ -56,7 +56,7 @@ public async Task Get_GetConnectionType() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_GetConnectionType() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/getConnectionType.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2023-11-01/examples/getConnectionType.json // this example is just showing the usage of "ConnectionType_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 @@ -87,7 +87,7 @@ public async Task Exists_GetConnectionType() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetIfExists_GetConnectionType() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/getConnectionType.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2023-11-01/examples/getConnectionType.json // this example is just showing the usage of "ConnectionType_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 @@ -130,7 +130,7 @@ public async Task GetIfExists_GetConnectionType() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreateOrUpdateConnectionType() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/createOrUpdateConnectionType.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2023-11-01/examples/createOrUpdateConnectionType.json // this example is just showing the usage of "ConnectionType_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 @@ -187,7 +187,7 @@ public async Task CreateOrUpdate_CreateOrUpdateConnectionType() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_GetConnectionTypesFirst100() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/getAllConnectionTypes_First100.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2023-11-01/examples/getAllConnectionTypes_First100.json // this example is just showing the usage of "ConnectionType_ListByAutomationAccount" 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 @@ -224,7 +224,7 @@ public async Task GetAll_GetConnectionTypesFirst100() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_GetConnectionTypesNext100() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/getAllConnectionTypes_Next100.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2023-11-01/examples/getAllConnectionTypes_Next100.json // this example is just showing the usage of "ConnectionType_ListByAutomationAccount" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_AutomationConnectionTypeResource.cs b/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_AutomationConnectionTypeResource.cs index 2fd82765e13c..510bbc1c7eab 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_AutomationConnectionTypeResource.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_AutomationConnectionTypeResource.cs @@ -21,7 +21,7 @@ public partial class Sample_AutomationConnectionTypeResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_DeleteAnExistingConnectionType() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/deleteConnectionType.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2023-11-01/examples/deleteConnectionType.json // this example is just showing the usage of "ConnectionType_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 @@ -49,7 +49,7 @@ public async Task Delete_DeleteAnExistingConnectionType() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetConnectionType() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/getConnectionType.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2023-11-01/examples/getConnectionType.json // this example is just showing the usage of "ConnectionType_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 @@ -81,7 +81,7 @@ public async Task Get_GetConnectionType() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_CreateOrUpdateConnectionType() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/createOrUpdateConnectionType.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2023-11-01/examples/createOrUpdateConnectionType.json // this example is just showing the usage of "ConnectionType_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 diff --git a/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_AutomationCredentialCollection.cs b/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_AutomationCredentialCollection.cs index 8d595838904d..acc2a04bd160 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_AutomationCredentialCollection.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_AutomationCredentialCollection.cs @@ -20,7 +20,7 @@ public partial class Sample_AutomationCredentialCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetACredential() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/getCredential.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2023-11-01/examples/getCredential.json // this example is just showing the usage of "Credential_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 @@ -55,7 +55,7 @@ public async Task Get_GetACredential() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_GetACredential() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/getCredential.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2023-11-01/examples/getCredential.json // this example is just showing the usage of "Credential_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 @@ -86,7 +86,7 @@ public async Task Exists_GetACredential() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetIfExists_GetACredential() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/getCredential.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2023-11-01/examples/getCredential.json // this example is just showing the usage of "Credential_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 @@ -129,7 +129,7 @@ public async Task GetIfExists_GetACredential() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreateACredential() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/createOrUpdateCredential.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2023-11-01/examples/createOrUpdateCredential.json // this example is just showing the usage of "Credential_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 @@ -169,7 +169,7 @@ public async Task CreateOrUpdate_CreateACredential() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_ListCredentialsByAutomationAccountFirst100() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/listCredentialsByAutomationAccount.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2023-11-01/examples/listCredentialsByAutomationAccount.json // this example is just showing the usage of "Credential_ListByAutomationAccount" 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 @@ -206,7 +206,7 @@ public async Task GetAll_ListCredentialsByAutomationAccountFirst100() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_ListCredentialsByAutomationAccountNext100() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/listCredentialsByAutomationAccount_next100_using_nextLink.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2023-11-01/examples/listCredentialsByAutomationAccount_next100_using_nextLink.json // this example is just showing the usage of "Credential_ListByAutomationAccount" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_AutomationCredentialResource.cs b/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_AutomationCredentialResource.cs index af0c8c43bea8..922617fd8065 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_AutomationCredentialResource.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_AutomationCredentialResource.cs @@ -20,7 +20,7 @@ public partial class Sample_AutomationCredentialResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_DeleteACredential() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/deleteCredentialExisting.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2023-11-01/examples/deleteCredentialExisting.json // this example is just showing the usage of "Credential_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 @@ -48,7 +48,7 @@ public async Task Delete_DeleteACredential() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetACredential() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/getCredential.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2023-11-01/examples/getCredential.json // this example is just showing the usage of "Credential_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 @@ -80,7 +80,7 @@ public async Task Get_GetACredential() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_UpdateACredential() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/updateCredential_patch.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2023-11-01/examples/updateCredential_patch.json // this example is just showing the usage of "Credential_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 diff --git a/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_AutomationJobCollection.cs b/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_AutomationJobCollection.cs index c2d15e9b38d8..491c67b9c2ab 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_AutomationJobCollection.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_AutomationJobCollection.cs @@ -20,7 +20,7 @@ public partial class Sample_AutomationJobCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetJob() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2019-06-01/examples/job/getJob.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2023-11-01/examples/job/getJob.json // this example is just showing the usage of "Job_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 @@ -55,7 +55,7 @@ public async Task Get_GetJob() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_GetJob() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2019-06-01/examples/job/getJob.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2023-11-01/examples/job/getJob.json // this example is just showing the usage of "Job_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 @@ -86,7 +86,7 @@ public async Task Exists_GetJob() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetIfExists_GetJob() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2019-06-01/examples/job/getJob.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2023-11-01/examples/job/getJob.json // this example is just showing the usage of "Job_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 @@ -129,7 +129,7 @@ public async Task GetIfExists_GetJob() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreateJob() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2019-06-01/examples/job/createJob.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2023-11-01/examples/job/createJob.json // this example is just showing the usage of "Job_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 @@ -175,7 +175,7 @@ public async Task CreateOrUpdate_CreateJob() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_ListJobsByAutomationAccount() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2019-06-01/examples/job/listJobsByAutomationAccount.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2023-11-01/examples/job/listJobsByAutomationAccount.json // this example is just showing the usage of "Job_ListByAutomationAccount" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_AutomationJobResource.cs b/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_AutomationJobResource.cs index 3148cb0edcd4..d3ed6b6933f2 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_AutomationJobResource.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_AutomationJobResource.cs @@ -20,7 +20,7 @@ public partial class Sample_AutomationJobResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetOutput_GetJobOutput() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2019-06-01/examples/job/getJobOutput.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2023-11-01/examples/job/getJobOutput.json // this example is just showing the usage of "Job_GetOutput" 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 @@ -48,7 +48,7 @@ public async Task GetOutput_GetJobOutput() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetRunbookContent_GetJobRunbookContent() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2019-06-01/examples/job/getJobRunbookContent.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2023-11-01/examples/job/getJobRunbookContent.json // this example is just showing the usage of "Job_GetRunbookContent" 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 @@ -76,7 +76,7 @@ public async Task GetRunbookContent_GetJobRunbookContent() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Suspend_SuspendJob() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2019-06-01/examples/job/suspendJob.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2023-11-01/examples/job/suspendJob.json // this example is just showing the usage of "Job_Suspend" 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 @@ -104,7 +104,7 @@ public async Task Suspend_SuspendJob() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Stop_StopJob() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2019-06-01/examples/job/stopJob.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2023-11-01/examples/job/stopJob.json // this example is just showing the usage of "Job_Stop" 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 @@ -132,7 +132,7 @@ public async Task Stop_StopJob() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetJob() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2019-06-01/examples/job/getJob.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2023-11-01/examples/job/getJob.json // this example is just showing the usage of "Job_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -164,7 +164,7 @@ public async Task Get_GetJob() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_CreateJob() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2019-06-01/examples/job/createJob.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2023-11-01/examples/job/createJob.json // this example is just showing the usage of "Job_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 @@ -207,7 +207,7 @@ public async Task Update_CreateJob() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Resume_ResumeJob() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2019-06-01/examples/job/resumeJob.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2023-11-01/examples/job/resumeJob.json // this example is just showing the usage of "Job_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 @@ -235,7 +235,7 @@ public async Task Resume_ResumeJob() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetJobStream_GetJobStream() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2019-06-01/examples/job/getJobStream.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2023-11-01/examples/job/getJobStream.json // this example is just showing the usage of "JobStream_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 @@ -264,7 +264,7 @@ public async Task GetJobStream_GetJobStream() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetJobStreams_ListJobStreamsByJobName() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2019-06-01/examples/job/listJobStreamsByJob.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2023-11-01/examples/job/listJobStreamsByJob.json // this example is just showing the usage of "JobStream_ListByJob" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_AutomationJobScheduleCollection.cs b/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_AutomationJobScheduleCollection.cs index 77217e98e50d..0cf66ff70b3f 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_AutomationJobScheduleCollection.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_AutomationJobScheduleCollection.cs @@ -20,7 +20,7 @@ public partial class Sample_AutomationJobScheduleCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetAJobSchedule() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/getJobSchedule.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2023-11-01/examples/getJobSchedule.json // this example is just showing the usage of "JobSchedule_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 @@ -55,7 +55,7 @@ public async Task Get_GetAJobSchedule() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_GetAJobSchedule() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/getJobSchedule.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2023-11-01/examples/getJobSchedule.json // this example is just showing the usage of "JobSchedule_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 @@ -86,7 +86,7 @@ public async Task Exists_GetAJobSchedule() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetIfExists_GetAJobSchedule() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/getJobSchedule.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2023-11-01/examples/getJobSchedule.json // this example is just showing the usage of "JobSchedule_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 @@ -129,7 +129,7 @@ public async Task GetIfExists_GetAJobSchedule() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreateAJobSchedule() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/createJobSchedule.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2023-11-01/examples/createJobSchedule.json // this example is just showing the usage of "JobSchedule_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 @@ -179,7 +179,7 @@ public async Task CreateOrUpdate_CreateAJobSchedule() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_ListAllJobSchedulesByAutomationAccount() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/listAllJobSchedulesByAutomationAccount.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2023-11-01/examples/listAllJobSchedulesByAutomationAccount.json // this example is just showing the usage of "JobSchedule_ListByAutomationAccount" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_AutomationJobScheduleResource.cs b/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_AutomationJobScheduleResource.cs index 8fa1b0ea19dc..881f2dff918e 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_AutomationJobScheduleResource.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_AutomationJobScheduleResource.cs @@ -20,7 +20,7 @@ public partial class Sample_AutomationJobScheduleResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_DeleteAJobSchedule() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/deleteJobSchedule.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2023-11-01/examples/deleteJobSchedule.json // this example is just showing the usage of "JobSchedule_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 @@ -48,7 +48,7 @@ public async Task Delete_DeleteAJobSchedule() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetAJobSchedule() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/getJobSchedule.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2023-11-01/examples/getJobSchedule.json // this example is just showing the usage of "JobSchedule_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 @@ -80,7 +80,7 @@ public async Task Get_GetAJobSchedule() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_CreateAJobSchedule() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/createJobSchedule.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2023-11-01/examples/createJobSchedule.json // this example is just showing the usage of "JobSchedule_Create" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_AutomationRunbookCollection.cs b/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_AutomationRunbookCollection.cs index 1629ca0bab07..b97fb8df476a 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_AutomationRunbookCollection.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_AutomationRunbookCollection.cs @@ -20,7 +20,7 @@ public partial class Sample_AutomationRunbookCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetRunbook() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2018-06-30/examples/getRunbook.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2023-11-01/examples/getRunbook.json // this example is just showing the usage of "Runbook_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 @@ -55,7 +55,7 @@ public async Task Get_GetRunbook() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_GetRunbook() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2018-06-30/examples/getRunbook.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2023-11-01/examples/getRunbook.json // this example is just showing the usage of "Runbook_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 @@ -86,7 +86,7 @@ public async Task Exists_GetRunbook() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetIfExists_GetRunbook() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2018-06-30/examples/getRunbook.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2023-11-01/examples/getRunbook.json // this example is just showing the usage of "Runbook_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 @@ -129,7 +129,7 @@ public async Task GetIfExists_GetRunbook() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreateOrUpdateRunbookAndPublishIt() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2018-06-30/examples/createOrUpdateRunbook.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2023-11-01/examples/createOrUpdateRunbook.json // this example is just showing the usage of "Runbook_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 @@ -184,7 +184,7 @@ public async Task CreateOrUpdate_CreateOrUpdateRunbookAndPublishIt() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreateRunbookAsDraft() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2018-06-30/examples/createRunbookAsDraft.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2023-11-01/examples/createRunbookAsDraft.json // this example is just showing the usage of "Runbook_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 @@ -234,7 +234,7 @@ public async Task CreateOrUpdate_CreateRunbookAsDraft() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_ListRunbooksByAutomationAccount() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2018-06-30/examples/listRunbooksByAutomationAccount.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2023-11-01/examples/listRunbooksByAutomationAccount.json // this example is just showing the usage of "Runbook_ListByAutomationAccount" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_AutomationRunbookResource.cs b/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_AutomationRunbookResource.cs index 2f9ddf09ad27..44b91158459c 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_AutomationRunbookResource.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_AutomationRunbookResource.cs @@ -20,7 +20,7 @@ public partial class Sample_AutomationRunbookResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetContentRunbookDraft_GetRunbookDraftContent() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2018-06-30/examples/getRunbookDraftContent.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2023-11-01/examples/getRunbookDraftContent.json // this example is just showing the usage of "RunbookDraft_GetContent" 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 @@ -48,7 +48,7 @@ public async Task GetContentRunbookDraft_GetRunbookDraftContent() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetRunbookDraft_GetRunbookDraft() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2018-06-30/examples/getRunbookDraft.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2023-11-01/examples/getRunbookDraft.json // this example is just showing the usage of "RunbookDraft_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 @@ -76,7 +76,7 @@ public async Task GetRunbookDraft_GetRunbookDraft() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task UndoEditRunbookDraft_UndoDraftEditToLastKnownPublishedState() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2018-06-30/examples/undoDraftEditToLastKnownPublishedState.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2023-11-01/examples/undoDraftEditToLastKnownPublishedState.json // this example is just showing the usage of "RunbookDraft_UndoEdit" 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 @@ -104,7 +104,7 @@ public async Task UndoEditRunbookDraft_UndoDraftEditToLastKnownPublishedState() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Publish_PublishRunbookDraft() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2018-06-30/examples/publishRunbook.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2023-11-01/examples/publishRunbook.json // this example is just showing the usage of "Runbook_Publish" 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 @@ -132,7 +132,7 @@ public async Task Publish_PublishRunbookDraft() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetContent_GetRunbookContent() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2018-06-30/examples/getRunbookContent.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2023-11-01/examples/getRunbookContent.json // this example is just showing the usage of "Runbook_GetContent" 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 @@ -160,7 +160,7 @@ public async Task GetContent_GetRunbookContent() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetRunbook() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2018-06-30/examples/getRunbook.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2023-11-01/examples/getRunbook.json // this example is just showing the usage of "Runbook_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 @@ -192,7 +192,7 @@ public async Task Get_GetRunbook() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_UpdateRunbook() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2018-06-30/examples/updateRunbook.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2023-11-01/examples/updateRunbook.json // this example is just showing the usage of "Runbook_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 @@ -231,7 +231,7 @@ public async Task Update_UpdateRunbook() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_DeleteARunbook() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2018-06-30/examples/deleteRunbook.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2023-11-01/examples/deleteRunbook.json // this example is just showing the usage of "Runbook_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 @@ -259,7 +259,7 @@ public async Task Delete_DeleteARunbook() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetTestJobStream_GetTestJobStream() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2018-06-30/examples/getTestJobStream.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2023-11-01/examples/getTestJobStream.json // this example is just showing the usage of "TestJobStreams_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 @@ -288,7 +288,7 @@ public async Task GetTestJobStream_GetTestJobStream() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetTestJobStreams_ListJobStreamsByJobName() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2018-06-30/examples/listTestJobStreamsByJob.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2023-11-01/examples/listTestJobStreamsByJob.json // this example is just showing the usage of "TestJobStreams_ListByTestJob" 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 @@ -319,7 +319,7 @@ public async Task GetTestJobStreams_ListJobStreamsByJobName() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateTestJob_CreateTestJob() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2018-06-30/examples/createTestJob.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2023-11-01/examples/createTestJob.json // this example is just showing the usage of "TestJob_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 @@ -356,7 +356,7 @@ public async Task CreateTestJob_CreateTestJob() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetTestJob_GetTestJob() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2018-06-30/examples/getTestJob.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2023-11-01/examples/getTestJob.json // this example is just showing the usage of "TestJob_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 @@ -384,7 +384,7 @@ public async Task GetTestJob_GetTestJob() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task ResumeTestJob_ResumeTestJob() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2018-06-30/examples/resumeTestJob.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2023-11-01/examples/resumeTestJob.json // this example is just showing the usage of "TestJob_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 @@ -412,7 +412,7 @@ public async Task ResumeTestJob_ResumeTestJob() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task StopTestJob_StopTestJob() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2018-06-30/examples/stopTestJob.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2023-11-01/examples/stopTestJob.json // this example is just showing the usage of "TestJob_Stop" 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 @@ -440,7 +440,7 @@ public async Task StopTestJob_StopTestJob() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task SuspendTestJob_SuspendTestJob() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2018-06-30/examples/suspendTestJob.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2023-11-01/examples/suspendTestJob.json // this example is just showing the usage of "TestJob_Suspend" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_AutomationScheduleCollection.cs b/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_AutomationScheduleCollection.cs index d8beffe7ece1..15e5b32b5edc 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_AutomationScheduleCollection.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_AutomationScheduleCollection.cs @@ -20,7 +20,7 @@ public partial class Sample_AutomationScheduleCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreateOrUpdateASchedule() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/createOrUpdateSchedule.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2023-11-01/examples/createOrUpdateSchedule.json // this example is just showing the usage of "Schedule_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 @@ -63,7 +63,7 @@ public async Task CreateOrUpdate_CreateOrUpdateASchedule() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetASchedule() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/getSchedule.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2023-11-01/examples/getSchedule.json // this example is just showing the usage of "Schedule_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 @@ -98,7 +98,7 @@ public async Task Get_GetASchedule() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_GetASchedule() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/getSchedule.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2023-11-01/examples/getSchedule.json // this example is just showing the usage of "Schedule_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 @@ -129,7 +129,7 @@ public async Task Exists_GetASchedule() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetIfExists_GetASchedule() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/getSchedule.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2023-11-01/examples/getSchedule.json // this example is just showing the usage of "Schedule_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 @@ -172,7 +172,7 @@ public async Task GetIfExists_GetASchedule() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_ListSchedulesByAutomationAccountFirst100() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/listSchedulesByAutomationAccount_First100.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2023-11-01/examples/listSchedulesByAutomationAccount_First100.json // this example is just showing the usage of "Schedule_ListByAutomationAccount" 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 @@ -209,7 +209,7 @@ public async Task GetAll_ListSchedulesByAutomationAccountFirst100() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_ListSchedulesByAutomationAccountNext100() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/listSchedulesByAutomationAccount_Next100.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2023-11-01/examples/listSchedulesByAutomationAccount_Next100.json // this example is just showing the usage of "Schedule_ListByAutomationAccount" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_AutomationScheduleResource.cs b/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_AutomationScheduleResource.cs index 0bf499b05a88..615150728e5b 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_AutomationScheduleResource.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_AutomationScheduleResource.cs @@ -20,7 +20,7 @@ public partial class Sample_AutomationScheduleResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_UpdateASchedule() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/updateSchedule.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2023-11-01/examples/updateSchedule.json // this example is just showing the usage of "Schedule_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 @@ -58,7 +58,7 @@ public async Task Update_UpdateASchedule() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetASchedule() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/getSchedule.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2023-11-01/examples/getSchedule.json // this example is just showing the usage of "Schedule_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 @@ -90,7 +90,7 @@ public async Task Get_GetASchedule() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_DeleteSchedule() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/deleteSchedule.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2023-11-01/examples/deleteSchedule.json // this example is just showing the usage of "Schedule_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_AutomationSourceControlCollection.cs b/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_AutomationSourceControlCollection.cs index 5939dd3f0cc3..622edbaf5fb1 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_AutomationSourceControlCollection.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_AutomationSourceControlCollection.cs @@ -20,7 +20,7 @@ public partial class Sample_AutomationSourceControlCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreateOrUpdateASourceControl() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/sourceControl/createOrUpdateSourceControl.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2023-11-01/examples/sourceControl/createOrUpdateSourceControl.json // this example is just showing the usage of "SourceControl_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 @@ -51,7 +51,7 @@ public async Task CreateOrUpdate_CreateOrUpdateASourceControl() SourceType = SourceControlSourceType.VsoGit, SecurityToken = new SourceControlSecurityTokenProperties() { - AccessToken = "3a326f7a0dcd343ea58fee21f2fd5fb4c1234567", + AccessToken = "******", TokenType = SourceControlTokenType.PersonalAccessToken, }, Description = "my description", @@ -71,7 +71,7 @@ public async Task CreateOrUpdate_CreateOrUpdateASourceControl() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetASourceControl() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/sourceControl/getSourceControl.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2023-11-01/examples/sourceControl/getSourceControl.json // this example is just showing the usage of "SourceControl_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 @@ -106,7 +106,7 @@ public async Task Get_GetASourceControl() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_GetASourceControl() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/sourceControl/getSourceControl.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2023-11-01/examples/sourceControl/getSourceControl.json // this example is just showing the usage of "SourceControl_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 @@ -137,7 +137,7 @@ public async Task Exists_GetASourceControl() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetIfExists_GetASourceControl() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/sourceControl/getSourceControl.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2023-11-01/examples/sourceControl/getSourceControl.json // this example is just showing the usage of "SourceControl_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 @@ -180,7 +180,7 @@ public async Task GetIfExists_GetASourceControl() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_ListSourceControls() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/sourceControl/getAllSourceControls.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2023-11-01/examples/sourceControl/getAllSourceControls.json // this example is just showing the usage of "SourceControl_ListByAutomationAccount" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_AutomationSourceControlResource.cs b/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_AutomationSourceControlResource.cs index 9eb65ffff13a..d5537f52586b 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_AutomationSourceControlResource.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_AutomationSourceControlResource.cs @@ -20,7 +20,7 @@ public partial class Sample_AutomationSourceControlResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_UpdateASourceControl() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/sourceControl/updateSourceControl_patch.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2023-11-01/examples/sourceControl/updateSourceControl_patch.json // this example is just showing the usage of "SourceControl_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 @@ -46,7 +46,7 @@ public async Task Update_UpdateASourceControl() IsAutoPublishRunbookEnabled = true, SecurityToken = new SourceControlSecurityTokenProperties() { - AccessToken = "3a326f7a0dcd343ea58fee21f2fd5fb4c1234567", + AccessToken = "******", TokenType = SourceControlTokenType.PersonalAccessToken, }, Description = "my description", @@ -65,7 +65,7 @@ public async Task Update_UpdateASourceControl() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_DeleteASourceControl() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/sourceControl/deleteSourceControl.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2023-11-01/examples/sourceControl/deleteSourceControl.json // this example is just showing the usage of "SourceControl_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 @@ -93,7 +93,7 @@ public async Task Delete_DeleteASourceControl() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetASourceControl() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/sourceControl/getSourceControl.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2023-11-01/examples/sourceControl/getSourceControl.json // this example is just showing the usage of "SourceControl_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 @@ -125,7 +125,7 @@ public async Task Get_GetASourceControl() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateSourceControlSyncJob_CreateOrUpdateASourceControlSyncJob() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/sourceControlSyncJob/createSourceControlSyncJob.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2023-11-01/examples/sourceControlSyncJob/createSourceControlSyncJob.json // this example is just showing the usage of "SourceControlSyncJob_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 @@ -155,7 +155,7 @@ public async Task CreateSourceControlSyncJob_CreateOrUpdateASourceControlSyncJob [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetSourceControlSyncJob_GetASourceControlSyncJobByJobId() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/sourceControlSyncJob/getSourceControlSyncJob.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2023-11-01/examples/sourceControlSyncJob/getSourceControlSyncJob.json // this example is just showing the usage of "SourceControlSyncJob_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 @@ -184,7 +184,7 @@ public async Task GetSourceControlSyncJob_GetASourceControlSyncJobByJobId() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetSourceControlSyncJobs_GetAListOfSourceControlSyncJobs() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/sourceControlSyncJob/getAllSourceControlSyncJobs.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2023-11-01/examples/sourceControlSyncJob/getAllSourceControlSyncJobs.json // this example is just showing the usage of "SourceControlSyncJob_ListByAutomationAccount" 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 @@ -215,7 +215,7 @@ public async Task GetSourceControlSyncJobs_GetAListOfSourceControlSyncJobs() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetSourceControlSyncJobStreams_GetAListOfSyncJobStreamsIdentifiedBySyncJobId() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/sourceControlSyncJobStreams/getSourceControlSyncJobStreams.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2023-11-01/examples/sourceControlSyncJobStreams/getSourceControlSyncJobStreams.json // this example is just showing the usage of "SourceControlSyncJobStreams_ListBySyncJob" 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 @@ -247,7 +247,7 @@ public async Task GetSourceControlSyncJobStreams_GetAListOfSyncJobStreamsIdentif [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetSourceControlSyncJobStream_GetASyncJobStreamIdentifiedBySyncJobStreamId() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/sourceControlSyncJobStreams/getSourceControlSyncJobStreamsByStreamId.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2023-11-01/examples/sourceControlSyncJobStreams/getSourceControlSyncJobStreamsByStreamId.json // this example is just showing the usage of "SourceControlSyncJobStreams_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_AutomationVariableCollection.cs b/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_AutomationVariableCollection.cs index 93cf7b9bcf2b..454d6d83a8a3 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_AutomationVariableCollection.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_AutomationVariableCollection.cs @@ -20,7 +20,7 @@ public partial class Sample_AutomationVariableCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreateOrUpdateAVariable() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/createOrUpdateVariable.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2023-11-01/examples/createOrUpdateVariable.json // this example is just showing the usage of "Variable_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 @@ -62,7 +62,7 @@ public async Task CreateOrUpdate_CreateOrUpdateAVariable() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetAVariable() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/getVariable.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2023-11-01/examples/getVariable.json // this example is just showing the usage of "Variable_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 @@ -97,7 +97,7 @@ public async Task Get_GetAVariable() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_GetAVariable() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/getVariable.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2023-11-01/examples/getVariable.json // this example is just showing the usage of "Variable_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -128,7 +128,7 @@ public async Task Exists_GetAVariable() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetIfExists_GetAVariable() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/getVariable.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2023-11-01/examples/getVariable.json // this example is just showing the usage of "Variable_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 @@ -171,7 +171,7 @@ public async Task GetIfExists_GetAVariable() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_ListVariablesFirst100() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/listVariables_First100.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2023-11-01/examples/listVariables_First100.json // this example is just showing the usage of "Variable_ListByAutomationAccount" 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 @@ -208,7 +208,7 @@ public async Task GetAll_ListVariablesFirst100() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_ListVariablesNext100() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/listVariables_Next100.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2023-11-01/examples/listVariables_Next100.json // this example is just showing the usage of "Variable_ListByAutomationAccount" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_AutomationVariableResource.cs b/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_AutomationVariableResource.cs index 9a8043d74953..a0cf0c5ee1bd 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_AutomationVariableResource.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_AutomationVariableResource.cs @@ -20,7 +20,7 @@ public partial class Sample_AutomationVariableResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_UpdateAVariable() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/updateVariable_patch.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2023-11-01/examples/updateVariable_patch.json // this example is just showing the usage of "Variable_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 @@ -57,7 +57,7 @@ public async Task Update_UpdateAVariable() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_DeleteAVariable() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/deleteVariable.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2023-11-01/examples/deleteVariable.json // this example is just showing the usage of "Variable_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 @@ -85,7 +85,7 @@ public async Task Delete_DeleteAVariable() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetAVariable() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/getVariable.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2023-11-01/examples/getVariable.json // this example is just showing the usage of "Variable_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_DscConfigurationCollection.cs b/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_DscConfigurationCollection.cs index ba5f7ba3f5a9..9b3b4aa90fb9 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_DscConfigurationCollection.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_DscConfigurationCollection.cs @@ -20,7 +20,7 @@ public partial class Sample_DscConfigurationCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetADSCConfiguration() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2019-06-01/examples/getDscConfiguration.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2023-11-01/examples/getDscConfiguration.json // this example is just showing the usage of "DscConfiguration_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 @@ -55,7 +55,7 @@ public async Task Get_GetADSCConfiguration() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_GetADSCConfiguration() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2019-06-01/examples/getDscConfiguration.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2023-11-01/examples/getDscConfiguration.json // this example is just showing the usage of "DscConfiguration_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 @@ -86,7 +86,7 @@ public async Task Exists_GetADSCConfiguration() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetIfExists_GetADSCConfiguration() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2019-06-01/examples/getDscConfiguration.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2023-11-01/examples/getDscConfiguration.json // this example is just showing the usage of "DscConfiguration_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 @@ -129,7 +129,7 @@ public async Task GetIfExists_GetADSCConfiguration() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreateOrUpdateConfiguration() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2019-06-01/examples/createOrUpdateDscConfiguration.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2023-11-01/examples/createOrUpdateDscConfiguration.json // this example is just showing the usage of "DscConfiguration_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 @@ -176,7 +176,7 @@ public async Task CreateOrUpdate_CreateOrUpdateConfiguration() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_GetDSCConfiguration() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2019-06-01/examples/getAllDscConfigurations.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2023-11-01/examples/getAllDscConfigurations.json // this example is just showing the usage of "DscConfiguration_ListByAutomationAccount" 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 @@ -213,7 +213,7 @@ public async Task GetAll_GetDSCConfiguration() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_ListPagedDSCConfigurationsWithNameFilter() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2019-06-01/examples/getPagedlDscConfigurationsWithNameFilter.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2023-11-01/examples/getPagedlDscConfigurationsWithNameFilter.json // this example is just showing the usage of "DscConfiguration_ListByAutomationAccount" 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 @@ -254,7 +254,7 @@ public async Task GetAll_ListPagedDSCConfigurationsWithNameFilter() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_ListPagedDSCConfigurationsWithNoFilter() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2019-06-01/examples/getPagedDscConfigurationsWithNoFilter.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2023-11-01/examples/getPagedDscConfigurationsWithNoFilter.json // this example is just showing the usage of "DscConfiguration_ListByAutomationAccount" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_DscConfigurationResource.cs b/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_DscConfigurationResource.cs index a71ef8895e0f..0b27ef29b725 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_DscConfigurationResource.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_DscConfigurationResource.cs @@ -20,7 +20,7 @@ public partial class Sample_DscConfigurationResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_DeleteDSCConfiguration() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2019-06-01/examples/deleteDscConfiguration.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2023-11-01/examples/deleteDscConfiguration.json // this example is just showing the usage of "DscConfiguration_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 @@ -48,7 +48,7 @@ public async Task Delete_DeleteDSCConfiguration() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetADSCConfiguration() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2019-06-01/examples/getDscConfiguration.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2023-11-01/examples/getDscConfiguration.json // this example is just showing the usage of "DscConfiguration_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 @@ -80,7 +80,7 @@ public async Task Get_GetADSCConfiguration() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_CreateOrUpdateConfiguration() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2019-06-01/examples/updateDscConfiguration.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2023-11-01/examples/updateDscConfiguration.json // this example is just showing the usage of "DscConfiguration_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 @@ -120,7 +120,7 @@ public async Task Update_CreateOrUpdateConfiguration() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetContent_GetDSCConfigurationContent() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2019-06-01/examples/getDscConfigurationContent.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2023-11-01/examples/getDscConfigurationContent.json // this example is just showing the usage of "DscConfiguration_GetContent" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_DscNodeConfigurationCollection.cs b/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_DscNodeConfigurationCollection.cs index d96e183e3627..a646103075ec 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_DscNodeConfigurationCollection.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_DscNodeConfigurationCollection.cs @@ -20,7 +20,7 @@ public partial class Sample_DscNodeConfigurationCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetADSCNodeConfiguration() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/getDscNodeConfiguration.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2023-11-01/examples/getDscNodeConfiguration.json // this example is just showing the usage of "DscNodeConfiguration_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 @@ -55,7 +55,7 @@ public async Task Get_GetADSCNodeConfiguration() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_GetADSCNodeConfiguration() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/getDscNodeConfiguration.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2023-11-01/examples/getDscNodeConfiguration.json // this example is just showing the usage of "DscNodeConfiguration_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 @@ -86,7 +86,7 @@ public async Task Exists_GetADSCNodeConfiguration() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetIfExists_GetADSCNodeConfiguration() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/getDscNodeConfiguration.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2023-11-01/examples/getDscNodeConfiguration.json // this example is just showing the usage of "DscNodeConfiguration_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 @@ -129,7 +129,7 @@ public async Task GetIfExists_GetADSCNodeConfiguration() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreateNodeConfiguration() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/createOrUpdateDscNodeConfiguration.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2023-11-01/examples/createOrUpdateDscNodeConfiguration.json // this example is just showing the usage of "DscNodeConfiguration_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 @@ -173,7 +173,7 @@ public async Task CreateOrUpdate_CreateNodeConfiguration() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_ListDSCNodeConfigurationsByAutomationAccount() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/listDscNodeConfigurations.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2023-11-01/examples/listDscNodeConfigurations.json // this example is just showing the usage of "DscNodeConfiguration_ListByAutomationAccount" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -210,7 +210,7 @@ public async Task GetAll_ListDSCNodeConfigurationsByAutomationAccount() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_ListPagedDSCNodeConfigurationsByAutomationAccountWithNameFilter() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/listPagedDscNodeConfigurationsWithNameFilter.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2023-11-01/examples/listPagedDscNodeConfigurationsWithNameFilter.json // this example is just showing the usage of "DscNodeConfiguration_ListByAutomationAccount" 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 @@ -251,7 +251,7 @@ public async Task GetAll_ListPagedDSCNodeConfigurationsByAutomationAccountWithNa [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_ListPagedDSCNodeConfigurationsByAutomationAccountWithNoFilter() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/listPagedDscNodeConfigurationsWithNoFilter.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2023-11-01/examples/listPagedDscNodeConfigurationsWithNoFilter.json // this example is just showing the usage of "DscNodeConfiguration_ListByAutomationAccount" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_DscNodeConfigurationResource.cs b/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_DscNodeConfigurationResource.cs index 576e4e932da9..f87ad640def3 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_DscNodeConfigurationResource.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_DscNodeConfigurationResource.cs @@ -20,7 +20,7 @@ public partial class Sample_DscNodeConfigurationResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_DeleteADSCNodeConfiguration() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/deleteDscNodeConfiguration.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2023-11-01/examples/deleteDscNodeConfiguration.json // this example is just showing the usage of "DscNodeConfiguration_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 @@ -48,7 +48,7 @@ public async Task Delete_DeleteADSCNodeConfiguration() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetADSCNodeConfiguration() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/getDscNodeConfiguration.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2023-11-01/examples/getDscNodeConfiguration.json // this example is just showing the usage of "DscNodeConfiguration_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 @@ -80,7 +80,7 @@ public async Task Get_GetADSCNodeConfiguration() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_CreateNodeConfiguration() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/examples/createOrUpdateDscNodeConfiguration.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2023-11-01/examples/createOrUpdateDscNodeConfiguration.json // this example is just showing the usage of "DscNodeConfiguration_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 diff --git a/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_HybridRunbookWorkerCollection.cs b/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_HybridRunbookWorkerCollection.cs index 23c6583875ea..bfe7c326d2fa 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_HybridRunbookWorkerCollection.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_HybridRunbookWorkerCollection.cs @@ -20,7 +20,7 @@ public partial class Sample_HybridRunbookWorkerCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetAV2HybridRunbookWorker() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/examples/getHybridRunbookWorker.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2023-11-01/examples/getHybridRunbookWorker.json // this example is just showing the usage of "HybridRunbookWorkers_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 @@ -56,7 +56,7 @@ public async Task Get_GetAV2HybridRunbookWorker() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_GetAV2HybridRunbookWorker() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/examples/getHybridRunbookWorker.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2023-11-01/examples/getHybridRunbookWorker.json // this example is just showing the usage of "HybridRunbookWorkers_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 @@ -88,7 +88,7 @@ public async Task Exists_GetAV2HybridRunbookWorker() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetIfExists_GetAV2HybridRunbookWorker() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/examples/getHybridRunbookWorker.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2023-11-01/examples/getHybridRunbookWorker.json // this example is just showing the usage of "HybridRunbookWorkers_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 @@ -132,7 +132,7 @@ public async Task GetIfExists_GetAV2HybridRunbookWorker() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreateAV2HybridRunbookWorker() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/examples/putHybridRunbookWorker.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2023-11-01/examples/putHybridRunbookWorker.json // this example is just showing the usage of "HybridRunbookWorkers_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 @@ -173,7 +173,7 @@ public async Task CreateOrUpdate_CreateAV2HybridRunbookWorker() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_ListHybridWorkersByHybridRunbookWorkerGroup() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/examples/listHybridRunbookWorker.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2023-11-01/examples/listHybridRunbookWorker.json // this example is just showing the usage of "HybridRunbookWorkers_ListByHybridRunbookWorkerGroup" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_HybridRunbookWorkerGroupCollection.cs b/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_HybridRunbookWorkerGroupCollection.cs index 7927c038ec07..b82897e8f9c5 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_HybridRunbookWorkerGroupCollection.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_HybridRunbookWorkerGroupCollection.cs @@ -20,7 +20,7 @@ public partial class Sample_HybridRunbookWorkerGroupCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetAHybridWorkerGroup() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2022-02-22/examples/getHybridRunbookWorkerGroup.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2023-11-01/examples/getHybridRunbookWorkerGroup.json // this example is just showing the usage of "HybridRunbookWorkerGroup_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 @@ -55,7 +55,7 @@ public async Task Get_GetAHybridWorkerGroup() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_GetAHybridWorkerGroup() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2022-02-22/examples/getHybridRunbookWorkerGroup.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2023-11-01/examples/getHybridRunbookWorkerGroup.json // this example is just showing the usage of "HybridRunbookWorkerGroup_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 @@ -86,7 +86,7 @@ public async Task Exists_GetAHybridWorkerGroup() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetIfExists_GetAHybridWorkerGroup() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2022-02-22/examples/getHybridRunbookWorkerGroup.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2023-11-01/examples/getHybridRunbookWorkerGroup.json // this example is just showing the usage of "HybridRunbookWorkerGroup_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 @@ -129,7 +129,7 @@ public async Task GetIfExists_GetAHybridWorkerGroup() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreateAHybridWorkerGroup() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2022-02-22/examples/putHybridRunbookWorkerGroup.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2023-11-01/examples/putHybridRunbookWorkerGroup.json // this example is just showing the usage of "HybridRunbookWorkerGroup_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 @@ -169,7 +169,7 @@ public async Task CreateOrUpdate_CreateAHybridWorkerGroup() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_ListHybridWorkerGroupsByAutomationAccount() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2022-02-22/examples/listHybridRunbookWorkerGroup.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2023-11-01/examples/listHybridRunbookWorkerGroup.json // this example is just showing the usage of "HybridRunbookWorkerGroup_ListByAutomationAccount" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_HybridRunbookWorkerGroupResource.cs b/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_HybridRunbookWorkerGroupResource.cs index b74936bf3ee6..e9515ddb2856 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_HybridRunbookWorkerGroupResource.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_HybridRunbookWorkerGroupResource.cs @@ -20,7 +20,7 @@ public partial class Sample_HybridRunbookWorkerGroupResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_DeleteAHybridWorkerGroup() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2022-02-22/examples/deleteHybridRunbookWorkerGroup.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2023-11-01/examples/deleteHybridRunbookWorkerGroup.json // this example is just showing the usage of "HybridRunbookWorkerGroup_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 @@ -48,7 +48,7 @@ public async Task Delete_DeleteAHybridWorkerGroup() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetAHybridWorkerGroup() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2022-02-22/examples/getHybridRunbookWorkerGroup.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2023-11-01/examples/getHybridRunbookWorkerGroup.json // this example is just showing the usage of "HybridRunbookWorkerGroup_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 @@ -80,7 +80,7 @@ public async Task Get_GetAHybridWorkerGroup() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_UpdateHybridWorkerGroup() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2022-02-22/examples/updateHybridRunbookWorkerGroup.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2023-11-01/examples/updateHybridRunbookWorkerGroup.json // this example is just showing the usage of "HybridRunbookWorkerGroup_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 diff --git a/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_HybridRunbookWorkerResource.cs b/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_HybridRunbookWorkerResource.cs index 767ab7b20b0b..798c5ab23f2a 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_HybridRunbookWorkerResource.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/samples/Generated/Samples/Sample_HybridRunbookWorkerResource.cs @@ -20,7 +20,7 @@ public partial class Sample_HybridRunbookWorkerResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_DeleteAV2HybridRunbookWorker() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/examples/deleteHybridRunbookWorker.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2023-11-01/examples/deleteHybridRunbookWorker.json // this example is just showing the usage of "HybridRunbookWorkers_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 @@ -49,7 +49,7 @@ public async Task Delete_DeleteAV2HybridRunbookWorker() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetAV2HybridRunbookWorker() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/examples/getHybridRunbookWorker.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2023-11-01/examples/getHybridRunbookWorker.json // this example is just showing the usage of "HybridRunbookWorkers_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 @@ -82,7 +82,7 @@ public async Task Get_GetAV2HybridRunbookWorker() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_CreateAV2HybridRunbookWorker() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/examples/putHybridRunbookWorker.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2023-11-01/examples/putHybridRunbookWorker.json // this example is just showing the usage of "HybridRunbookWorkers_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 @@ -120,7 +120,7 @@ public async Task Update_CreateAV2HybridRunbookWorker() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Move_MoveAV2HybridWorkerToADifferentGroup() { - // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2021-06-22/examples/moveHybridRunbookWorker.json + // Generated from example definition: specification/automation/resource-manager/Microsoft.Automation/stable/2023-11-01/examples/moveHybridRunbookWorker.json // this example is just showing the usage of "HybridRunbookWorkers_Move" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/ArmAutomationModelFactory.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/ArmAutomationModelFactory.cs index e362cf74efb8..e1620743e10e 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/ArmAutomationModelFactory.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/ArmAutomationModelFactory.cs @@ -72,63 +72,6 @@ public static AutomationPrivateLinkResource AutomationPrivateLinkResource(Resour serializedAdditionalRawData: null); } - /// Initializes a new instance of . - /// The id. - /// The name. - /// The resourceType. - /// The systemData. - /// The tags. - /// The location. - /// Gets or sets the etag of the resource. - /// Gets or sets the isGlobal flag of the module. - /// Gets or sets the version of the module. - /// Gets or sets the size in bytes of the module. - /// Gets or sets the activity count of the module. - /// Gets or sets the provisioning state of the module. - /// Gets or sets the contentLink of the module. - /// Gets or sets the error info of the module. - /// Gets or sets the creation time. - /// Gets or sets the last modified time. - /// Gets or sets the description. - /// Gets or sets type of module, if its composite or not. - /// A new instance for mocking. - public static AutomationModuleData AutomationModuleData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, ETag? etag = null, bool? isGlobal = null, string version = null, long? sizeInBytes = null, int? activityCount = null, ModuleProvisioningState? provisioningState = null, AutomationContentLink contentLink = null, AutomationModuleErrorInfo error = null, DateTimeOffset? createdOn = null, DateTimeOffset? lastModifiedOn = null, string description = null, bool? isComposite = null) - { - tags ??= new Dictionary(); - - return new AutomationModuleData( - id, - name, - resourceType, - systemData, - tags, - location, - etag, - isGlobal, - version, - sizeInBytes, - activityCount, - provisioningState, - contentLink, - error, - createdOn, - lastModifiedOn, - description, - isComposite, - serializedAdditionalRawData: null); - } - - /// Initializes a new instance of . - /// Gets or sets the tags attached to the resource. - /// Gets or sets the module content link. - /// A new instance for mocking. - public static AutomationAccountPython2PackageCreateOrUpdateContent AutomationAccountPython2PackageCreateOrUpdateContent(IDictionary tags = null, AutomationContentLink contentLink = null) - { - tags ??= new Dictionary(); - - return new AutomationAccountPython2PackageCreateOrUpdateContent(tags, contentLink, serializedAdditionalRawData: null); - } - /// Initializes a new instance of . /// Gets or sets the dsc meta configuration. /// Gets or sets the dsc server endpoint. @@ -318,34 +261,6 @@ public static DscMetaConfiguration DscMetaConfiguration(int? configurationModeFr serializedAdditionalRawData: null); } - /// Initializes a new instance of . - /// The id. - /// The name. - /// The resourceType. - /// The systemData. - /// Gets or sets the last modified time. - /// Gets or sets creation time. - /// Gets or sets the configuration of the node. - /// Source of node configuration. - /// Number of nodes with this node configuration assigned. - /// If a new build version of NodeConfiguration is required. - /// A new instance for mocking. - public static DscNodeConfigurationData DscNodeConfigurationData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, DateTimeOffset? lastModifiedOn = null, DateTimeOffset? createdOn = null, string configurationName = null, string source = null, long? nodeCount = null, bool? isIncrementNodeConfigurationBuildRequired = null) - { - return new DscNodeConfigurationData( - id, - name, - resourceType, - systemData, - lastModifiedOn, - createdOn, - configurationName != null ? new DscConfigurationAssociationProperty(configurationName, serializedAdditionalRawData: null) : null, - source, - nodeCount, - isIncrementNodeConfigurationBuildRequired, - serializedAdditionalRawData: null); - } - /// Initializes a new instance of . /// Gets or sets name of the resource. /// Gets or sets the location of the resource. @@ -448,131 +363,234 @@ public static DscNodeCount DscNodeCount(string name = null, int? nameCount = nul return new DscNodeCount(name, nameCount != null ? new DscNodeCountProperties(nameCount, serializedAdditionalRawData: null) : null, serializedAdditionalRawData: null); } - /// Initializes a new instance of . + /// Initializes a new instance of . /// The id. /// The name. /// The resourceType. /// The systemData. - /// The repo url of the source control. - /// The repo branch of the source control. Include branch as empty string for VsoTfvc. - /// The folder path of the source control. - /// The auto sync of the source control. Default is false. - /// The auto publish of the source control. Default is true. - /// The source type. Must be one of VsoGit, VsoTfvc, GitHub. - /// The description. - /// The creation time. - /// The last modified time. - /// A new instance for mocking. - public static AutomationSourceControlData AutomationSourceControlData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, Uri repoUri = null, string branch = null, string folderPath = null, bool? isAutoSyncEnabled = null, bool? isAutoPublishRunbookEnabled = null, SourceControlSourceType? sourceType = null, string description = null, DateTimeOffset? createdOn = null, DateTimeOffset? lastModifiedOn = null) + /// The tags. + /// The location. + /// Gets or sets the etag of the resource. + /// Gets or sets the frequency at which the watcher is invoked. + /// Gets or sets the name of the script the watcher is attached to, i.e. the name of an existing runbook. + /// Gets or sets the parameters of the script. + /// Gets or sets the name of the hybrid worker group the watcher will run on. + /// Gets the current status of the watcher. + /// Gets or sets the creation time. + /// Gets or sets the last modified time. + /// Details of the user who last modified the watcher. + /// Gets or sets the description. + /// A new instance for mocking. + public static AutomationWatcherData AutomationWatcherData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, ETag? etag = null, long? executionFrequencyInSeconds = null, string scriptName = null, IDictionary scriptParameters = null, string scriptRunOn = null, string status = null, DateTimeOffset? createdOn = null, DateTimeOffset? lastModifiedOn = null, string lastModifiedBy = null, string description = null) { - return new AutomationSourceControlData( + tags ??= new Dictionary(); + scriptParameters ??= new Dictionary(); + + return new AutomationWatcherData( id, name, resourceType, systemData, - repoUri, - branch, - folderPath, - isAutoSyncEnabled, - isAutoPublishRunbookEnabled, - sourceType, - description, + tags, + location, + etag, + executionFrequencyInSeconds, + scriptName, + scriptParameters, + scriptRunOn, + status, createdOn, lastModifiedOn, + lastModifiedBy, + description, serializedAdditionalRawData: null); } - /// Initializes a new instance of . + /// Initializes a new instance of . /// The id. /// The name. /// The resourceType. /// The systemData. - /// The source control sync job id. - /// The creation time of the job. - /// The provisioning state of the job. - /// The start time of the job. - /// The end time of the job. - /// The sync type. - /// A new instance for mocking. - public static SourceControlSyncJob SourceControlSyncJob(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, string sourceControlSyncJobId = null, DateTimeOffset? createdOn = null, SourceControlProvisioningState? provisioningState = null, DateTimeOffset? startOn = null, DateTimeOffset? endOn = null, SourceControlSyncType? syncType = null) + /// update specific properties for the Software update configuration. + /// Schedule information for the Software update configuration. + /// Provisioning state for the software update configuration, which only appears in the response. + /// Details of provisioning error. + /// Creation time of the resource, which only appears in the response. + /// CreatedBy property, which only appears in the response. + /// Last time resource was modified, which only appears in the response. + /// LastModifiedBy property, which only appears in the response. + /// Tasks information for the Software update configuration. + /// A new instance for mocking. + public static SoftwareUpdateConfigurationData SoftwareUpdateConfigurationData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, SoftwareUpdateConfigurationSpecificProperties updateConfiguration = null, SoftwareUpdateConfigurationScheduleProperties scheduleInfo = null, string provisioningState = null, AutomationResponseError error = null, DateTimeOffset? createdOn = null, string createdBy = null, DateTimeOffset? lastModifiedOn = null, string lastModifiedBy = null, SoftwareUpdateConfigurationTasks tasks = null) { - return new SourceControlSyncJob( + return new SoftwareUpdateConfigurationData( id, name, resourceType, systemData, - sourceControlSyncJobId, - createdOn, + updateConfiguration, + scheduleInfo, provisioningState, - startOn, - endOn, - syncType, + error, + createdOn, + createdBy, + lastModifiedOn, + lastModifiedBy, + tasks, serializedAdditionalRawData: null); } - /// Initializes a new instance of . - /// The id of the job. - /// The source control sync job id. - /// The creation time of the job. - /// The provisioning state of the job. - /// The start time of the job. - /// The end time of the job. - /// The sync type. - /// The exceptions that occurred while running the sync job. - /// A new instance for mocking. - public static SourceControlSyncJobResult SourceControlSyncJobResult(ResourceIdentifier id = null, string sourceControlSyncJobId = null, DateTimeOffset? createdOn = null, SourceControlProvisioningState? provisioningState = null, DateTimeOffset? startOn = null, DateTimeOffset? endOn = null, SourceControlSyncType? syncType = null, string exception = null) + /// Initializes a new instance of . + /// Gets or sets the start time of the schedule. + /// Gets the start time's offset in minutes. + /// Gets or sets the end time of the schedule. + /// Gets or sets the expiry time's offset in minutes. + /// Gets or sets a value indicating whether this schedule is enabled. + /// Gets or sets the next run time of the schedule. + /// Gets or sets the next run time's offset in minutes. + /// Gets or sets the interval of the schedule. + /// Gets or sets the frequency of the schedule. + /// Gets or sets the time zone of the schedule. + /// Gets or sets the advanced schedule. + /// Gets or sets the creation time. + /// Gets or sets the last modified time. + /// Gets or sets the description. + /// A new instance for mocking. + public static SoftwareUpdateConfigurationScheduleProperties SoftwareUpdateConfigurationScheduleProperties(DateTimeOffset? startOn = null, double? startInMinutes = null, DateTimeOffset? expireOn = null, double? expireInMinutes = null, bool? isEnabled = null, DateTimeOffset? nextRunOn = null, double? nextRunInMinutes = null, long? interval = null, AutomationScheduleFrequency? frequency = null, string timeZone = null, AutomationAdvancedSchedule advancedSchedule = null, DateTimeOffset? createdOn = null, DateTimeOffset? lastModifiedOn = null, string description = null) { - return new SourceControlSyncJobResult( - id, - sourceControlSyncJobId, - createdOn, - provisioningState, + return new SoftwareUpdateConfigurationScheduleProperties( startOn, - endOn, - syncType, - exception, + startInMinutes, + expireOn, + expireInMinutes, + isEnabled, + nextRunOn, + nextRunInMinutes, + interval, + frequency, + timeZone, + advancedSchedule, + createdOn, + lastModifiedOn, + description, serializedAdditionalRawData: null); } - /// Initializes a new instance of . - /// Resource id. - /// The sync job stream id. - /// The summary of the sync job stream. - /// The time of the sync job stream. - /// The type of the sync job stream. - /// A new instance for mocking. - public static SourceControlSyncJobStream SourceControlSyncJobStream(ResourceIdentifier id = null, string sourceControlSyncJobStreamId = null, string summary = null, DateTimeOffset? time = null, SourceControlStreamType? streamType = null) + /// Initializes a new instance of . + /// Name of the software update configuration. + /// Resource Id of the software update configuration. + /// Update specific properties of the software update configuration. + /// Pre and Post Tasks defined. + /// execution frequency of the schedule associated with the software update configuration. + /// the start time of the update. + /// Creation time of the software update configuration, which only appears in the response. + /// Last time software update configuration was modified, which only appears in the response. + /// Provisioning state for the software update configuration, which only appears in the response. + /// ext run time of the update. + /// A new instance for mocking. + public static SoftwareUpdateConfigurationCollectionItem SoftwareUpdateConfigurationCollectionItem(string name = null, ResourceIdentifier id = null, SoftwareUpdateConfigurationSpecificProperties updateConfiguration = null, SoftwareUpdateConfigurationTasks tasks = null, AutomationScheduleFrequency? frequency = null, DateTimeOffset? startOn = null, DateTimeOffset? createdOn = null, DateTimeOffset? lastModifiedOn = null, string provisioningState = null, DateTimeOffset? nextRunOn = null) { - return new SourceControlSyncJobStream( + return new SoftwareUpdateConfigurationCollectionItem( + name, id, - sourceControlSyncJobStreamId, - summary, - time, - streamType, + updateConfiguration, + tasks, + frequency, + startOn, + createdOn, + lastModifiedOn, + provisioningState, + nextRunOn, serializedAdditionalRawData: null); } - /// Initializes a new instance of . - /// Resource id. - /// The sync job stream id. - /// The summary of the sync job stream. - /// The time of the sync job stream. - /// The type of the sync job stream. - /// The text of the sync job stream. - /// The values of the job stream. - /// A new instance for mocking. - public static SourceControlSyncJobStreamResult SourceControlSyncJobStreamResult(ResourceIdentifier id = null, string sourceControlSyncJobStreamId = null, string summary = null, DateTimeOffset? time = null, SourceControlStreamType? streamType = null, string streamText = null, IReadOnlyDictionary value = null) - { - value ??= new Dictionary(); + /// Initializes a new instance of . + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// Gets or sets the value of the enabled flag of the webhook. + /// Gets or sets the webhook uri. + /// Gets or sets the expiry time. + /// Gets or sets the last invoked time. + /// Gets or sets the parameters of the job that is created when the webhook calls the runbook it is associated with. + /// Gets or sets the runbook the webhook is associated with. + /// Gets or sets the name of the hybrid worker group the webhook job will run on. + /// Gets or sets the creation time. + /// Gets or sets the last modified time. + /// Details of the user who last modified the Webhook. + /// Gets or sets the description. + /// A new instance for mocking. + public static AutomationWebhookData AutomationWebhookData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, bool? isEnabled = null, Uri uri = null, DateTimeOffset? expireOn = null, DateTimeOffset? lastInvokedOn = null, IDictionary parameters = null, string runbookName = null, string runOn = null, DateTimeOffset? createdOn = null, DateTimeOffset? lastModifiedOn = null, string lastModifiedBy = null, string description = null) + { + parameters ??= new Dictionary(); - return new SourceControlSyncJobStreamResult( + return new AutomationWebhookData( id, - sourceControlSyncJobStreamId, - summary, - time, - streamType, - streamText, - value, + name, + resourceType, + systemData, + isEnabled, + uri, + expireOn, + lastInvokedOn, + parameters, + runbookName != null ? new RunbookAssociationProperty(runbookName, serializedAdditionalRawData: null) : null, + runOn, + createdOn, + lastModifiedOn, + lastModifiedBy, + description, + serializedAdditionalRawData: null); + } + + /// Initializes a new instance of . + /// Gets or sets the name of the webhook. + /// Gets or sets the value of the enabled flag of webhook. + /// Gets or sets the uri. + /// Gets or sets the expiry time. + /// Gets or sets the parameters of the job. + /// Gets or sets the runbook. + /// Gets or sets the name of the hybrid worker group the webhook job will run on. + /// A new instance for mocking. + public static AutomationWebhookCreateOrUpdateContent AutomationWebhookCreateOrUpdateContent(string name = null, bool? isEnabled = null, Uri uri = null, DateTimeOffset? expireOn = null, IDictionary parameters = null, string runbookName = null, string runOn = null) + { + parameters ??= new Dictionary(); + + return new AutomationWebhookCreateOrUpdateContent( + name, + isEnabled, + uri, + expireOn, + parameters, + runbookName != null ? new RunbookAssociationProperty(runbookName, serializedAdditionalRawData: null) : null, + runOn, + serializedAdditionalRawData: null); + } + + /// Initializes a new instance of . + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// Gets or sets the location of the resource. + /// Gets or sets the Automation Account Resource Id. + /// Gets or sets the Automation Account Id. + /// Gets or sets the location of the resource. + /// Gets the deletion time. + /// A new instance for mocking. + public static DeletedAutomationAccount DeletedAutomationAccount(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, AzureLocation? location = null, ResourceIdentifier automationAccountResourceId = null, string automationAccountId = null, string locationPropertiesLocation = null, DateTimeOffset? deletedOn = null) + { + return new DeletedAutomationAccount( + id, + name, + resourceType, + systemData, + location, + automationAccountResourceId, + automationAccountId, + locationPropertiesLocation, + deletedOn, serializedAdditionalRawData: null); } @@ -844,99 +862,327 @@ public static AutomationCredentialCreateOrUpdateContent AutomationCredentialCrea return new AutomationCredentialCreateOrUpdateContent(name, userName, password, description, serializedAdditionalRawData: null); } - /// Initializes a new instance of . + /// Initializes a new instance of . /// The id. /// The name. /// The resourceType. /// The systemData. - /// Gets or sets the id of job schedule. - /// Gets or sets the schedule. - /// Gets or sets the runbook. - /// Gets or sets the hybrid worker group that the scheduled job should run on. - /// Gets or sets the parameters of the job schedule. - /// A new instance for mocking. - public static AutomationJobScheduleData AutomationJobScheduleData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, Guid? jobScheduleId = null, string scheduleName = null, string runbookName = null, string runOn = null, IReadOnlyDictionary parameters = null) + /// The tags. + /// The location. + /// Gets or sets the etag of the resource. + /// Gets or sets the provisioning state of the configuration. + /// Gets or sets the job count of the configuration. + /// Gets or sets the configuration parameters. + /// Gets or sets the source. + /// Gets or sets the state of the configuration. + /// Gets or sets verbose log option. + /// Gets or sets the creation time. + /// Gets or sets the last modified time. + /// Gets the number of compiled node configurations. + /// Gets or sets the description. + /// A new instance for mocking. + public static DscConfigurationData DscConfigurationData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, ETag? etag = null, DscConfigurationProvisioningState? provisioningState = null, int? jobCount = null, IDictionary parameters = null, AutomationContentSource source = null, DscConfigurationState? state = null, bool? isLogVerboseEnabled = null, DateTimeOffset? createdOn = null, DateTimeOffset? lastModifiedOn = null, int? nodeConfigurationCount = null, string description = null) { - parameters ??= new Dictionary(); + tags ??= new Dictionary(); + parameters ??= new Dictionary(); - return new AutomationJobScheduleData( + return new DscConfigurationData( id, name, resourceType, systemData, - jobScheduleId, - scheduleName != null ? new ScheduleAssociationProperty(scheduleName, serializedAdditionalRawData: null) : null, - runbookName != null ? new RunbookAssociationProperty(runbookName, serializedAdditionalRawData: null) : null, - runOn, + tags, + location, + etag, + provisioningState, + jobCount, parameters, + source, + state, + isLogVerboseEnabled, + createdOn, + lastModifiedOn, + nodeConfigurationCount, + description, serializedAdditionalRawData: null); } - /// Initializes a new instance of . - /// Gets or sets the schedule. - /// Gets or sets the runbook. - /// Gets or sets the hybrid worker group that the scheduled job should run on. - /// Gets or sets a list of job properties. - /// A new instance for mocking. - public static AutomationJobScheduleCreateOrUpdateContent AutomationJobScheduleCreateOrUpdateContent(string scheduleName = null, string runbookName = null, string runOn = null, IDictionary parameters = null) + /// Initializes a new instance of . + /// Gets or sets name of the resource. + /// Gets or sets the location of the resource. + /// Gets or sets the tags attached to the resource. + /// Gets or sets verbose log option. + /// Gets or sets progress log option. + /// Gets or sets the source. + /// Gets or sets the configuration parameters. + /// Gets or sets the description of the configuration. + /// A new instance for mocking. + public static DscConfigurationCreateOrUpdateContent DscConfigurationCreateOrUpdateContent(string name = null, AzureLocation? location = null, IDictionary tags = null, bool? isLogVerboseEnabled = null, bool? isLogProgressEnabled = null, AutomationContentSource source = null, IDictionary parameters = null, string description = null) { - parameters ??= new Dictionary(); - - return new AutomationJobScheduleCreateOrUpdateContent(scheduleName != null ? new ScheduleAssociationProperty(scheduleName, serializedAdditionalRawData: null) : null, runbookName != null ? new RunbookAssociationProperty(runbookName, serializedAdditionalRawData: null) : null, runOn, parameters, serializedAdditionalRawData: null); - } + tags ??= new Dictionary(); + parameters ??= new Dictionary(); - /// Initializes a new instance of . - /// Gets the id of the linked workspace. - /// A new instance for mocking. - public static AutomationLinkedWorkspace AutomationLinkedWorkspace(string id = null) - { - return new AutomationLinkedWorkspace(id, serializedAdditionalRawData: null); + return new DscConfigurationCreateOrUpdateContent( + name, + location, + tags, + isLogVerboseEnabled, + isLogProgressEnabled, + source, + parameters, + description, + serializedAdditionalRawData: null); } - /// Initializes a new instance of . - /// Gets or sets the id of the resource. - /// Gets the name of the activity. - /// Gets or sets the user name of the activity. - /// Gets or sets the parameter sets of the activity. - /// Gets or sets the output types of the activity. - /// Gets or sets the creation time. + /// Initializes a new instance of . + /// The id. + /// The name. + /// The resourceType. + /// The systemData. /// Gets or sets the last modified time. - /// Gets or sets the description. - /// A new instance for mocking. - public static AutomationActivity AutomationActivity(ResourceIdentifier id = null, string name = null, string definition = null, IEnumerable parameterSets = null, IEnumerable outputTypes = null, DateTimeOffset? createdOn = null, DateTimeOffset? lastModifiedOn = null, string description = null) + /// Gets or sets creation time. + /// Gets or sets the configuration of the node. + /// Source of node configuration. + /// Number of nodes with this node configuration assigned. + /// If a new build version of NodeConfiguration is required. + /// A new instance for mocking. + public static DscNodeConfigurationData DscNodeConfigurationData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, DateTimeOffset? lastModifiedOn = null, DateTimeOffset? createdOn = null, string configurationName = null, string source = null, long? nodeCount = null, bool? isIncrementNodeConfigurationBuildRequired = null) { - parameterSets ??= new List(); - outputTypes ??= new List(); - - return new AutomationActivity( + return new DscNodeConfigurationData( id, name, - definition, - parameterSets?.ToList(), - outputTypes?.ToList(), - createdOn, + resourceType, + systemData, lastModifiedOn, - description, + createdOn, + configurationName != null ? new DscConfigurationAssociationProperty(configurationName, serializedAdditionalRawData: null) : null, + source, + nodeCount, + isIncrementNodeConfigurationBuildRequired, serializedAdditionalRawData: null); } - /// Initializes a new instance of . - /// Gets or sets the name of the activity parameter set. - /// Gets or sets the parameters of the activity parameter set. - /// A new instance for mocking. - public static AutomationActivityParameterSet AutomationActivityParameterSet(string name = null, IEnumerable parameters = null) + /// Initializes a new instance of . + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// Gets or sets the assigned machine IP address. + /// Gets or sets the registration time of the worker machine. + /// Last Heartbeat from the Worker. + /// Azure Resource Manager Id for a virtual machine. + /// Type of the HybridWorker. + /// Name of the HybridWorker. + /// A new instance for mocking. + public static HybridRunbookWorkerData HybridRunbookWorkerData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, string ip = null, DateTimeOffset? registeredOn = null, DateTimeOffset? lastSeenOn = null, ResourceIdentifier vmResourceId = null, HybridWorkerType? workerType = null, string workerName = null) { - parameters ??= new List(); - - return new AutomationActivityParameterSet(name, parameters?.ToList(), serializedAdditionalRawData: null); + return new HybridRunbookWorkerData( + id, + name, + resourceType, + systemData, + ip, + registeredOn, + lastSeenOn, + vmResourceId, + workerType, + workerName, + serializedAdditionalRawData: null); } - /// Initializes a new instance of . - /// Gets or sets the name of the activity parameter. - /// Gets or sets the type of the activity parameter. - /// Gets or sets a Boolean value that indicates true if the parameter is required. If the value is false, the parameter is optional. - /// Gets or sets a Boolean value that indicates true if the parameter is dynamic. - /// Gets or sets the position of the activity parameter. + /// Initializes a new instance of . + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// Type of the HybridWorkerGroup. + /// Sets the credential of a worker group. + /// A new instance for mocking. + public static HybridRunbookWorkerGroupData HybridRunbookWorkerGroupData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, HybridWorkerGroup? groupType = null, string credentialName = null) + { + return new HybridRunbookWorkerGroupData( + id, + name, + resourceType, + systemData, + groupType, + credentialName != null ? new RunAsCredentialAssociationProperty(credentialName, serializedAdditionalRawData: null) : null, + serializedAdditionalRawData: null); + } + + /// Initializes a new instance of . + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// Gets or sets the runbook. + /// Gets or sets the job started by. + /// Gets or sets the runOn which specifies the group name where the job is to be executed. + /// Gets or sets the id of the job. + /// Gets or sets the creation time of the job. + /// Gets or sets the status of the job. + /// Gets or sets the status details of the job. + /// Gets or sets the start time of the job. + /// Gets or sets the end time of the job. + /// Gets or sets the exception of the job. + /// Gets or sets the last modified time of the job. + /// Gets or sets the last status modified time of the job. + /// Gets or sets the parameters of the job. + /// The current provisioning state of the job. + /// A new instance for mocking. + public static AutomationJobData AutomationJobData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, string runbookName = null, string startedBy = null, string runOn = null, Guid? jobId = null, DateTimeOffset? createdOn = null, AutomationJobStatus? status = null, string statusDetails = null, DateTimeOffset? startOn = null, DateTimeOffset? endOn = null, string exception = null, DateTimeOffset? lastModifiedOn = null, DateTimeOffset? lastStatusModifiedOn = null, IDictionary parameters = null, JobProvisioningState? provisioningState = null) + { + parameters ??= new Dictionary(); + + return new AutomationJobData( + id, + name, + resourceType, + systemData, + runbookName != null ? new RunbookAssociationProperty(runbookName, serializedAdditionalRawData: null) : null, + startedBy, + runOn, + jobId, + createdOn, + status, + statusDetails, + startOn, + endOn, + exception, + lastModifiedOn, + lastStatusModifiedOn, + parameters, + provisioningState, + serializedAdditionalRawData: null); + } + + /// Initializes a new instance of . + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// The runbook association. + /// The id of the job. + /// The creation time of the job. + /// The status of the job. + /// The start time of the job. + /// The end time of the job. + /// The last modified time of the job. + /// The provisioning state of a resource. + /// Specifies the runOn group name where the job was executed. + /// A new instance for mocking. + public static AutomationJobCollectionItemData AutomationJobCollectionItemData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, string runbookName = null, Guid? jobId = null, DateTimeOffset? createdOn = null, AutomationJobStatus? status = null, DateTimeOffset? startOn = null, DateTimeOffset? endOn = null, DateTimeOffset? lastModifiedOn = null, string provisioningState = null, string runOn = null) + { + return new AutomationJobCollectionItemData( + id, + name, + resourceType, + systemData, + runbookName != null ? new RunbookAssociationProperty(runbookName, serializedAdditionalRawData: null) : null, + jobId, + createdOn, + status, + startOn, + endOn, + lastModifiedOn, + provisioningState, + runOn, + serializedAdditionalRawData: null); + } + + /// Initializes a new instance of . + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// Gets or sets the id of job schedule. + /// Gets or sets the schedule. + /// Gets or sets the runbook. + /// Gets or sets the hybrid worker group that the scheduled job should run on. + /// Gets or sets the parameters of the job schedule. + /// A new instance for mocking. + public static AutomationJobScheduleData AutomationJobScheduleData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, Guid? jobScheduleId = null, string scheduleName = null, string runbookName = null, string runOn = null, IReadOnlyDictionary parameters = null) + { + parameters ??= new Dictionary(); + + return new AutomationJobScheduleData( + id, + name, + resourceType, + systemData, + jobScheduleId, + scheduleName != null ? new ScheduleAssociationProperty(scheduleName, serializedAdditionalRawData: null) : null, + runbookName != null ? new RunbookAssociationProperty(runbookName, serializedAdditionalRawData: null) : null, + runOn, + parameters, + serializedAdditionalRawData: null); + } + + /// Initializes a new instance of . + /// Gets or sets the schedule. + /// Gets or sets the runbook. + /// Gets or sets the hybrid worker group that the scheduled job should run on. + /// Gets or sets a list of job properties. + /// A new instance for mocking. + public static AutomationJobScheduleCreateOrUpdateContent AutomationJobScheduleCreateOrUpdateContent(string scheduleName = null, string runbookName = null, string runOn = null, IDictionary parameters = null) + { + parameters ??= new Dictionary(); + + return new AutomationJobScheduleCreateOrUpdateContent(scheduleName != null ? new ScheduleAssociationProperty(scheduleName, serializedAdditionalRawData: null) : null, runbookName != null ? new RunbookAssociationProperty(runbookName, serializedAdditionalRawData: null) : null, runOn, parameters, serializedAdditionalRawData: null); + } + + /// Initializes a new instance of . + /// Gets the id of the linked workspace. + /// A new instance for mocking. + public static AutomationLinkedWorkspace AutomationLinkedWorkspace(string id = null) + { + return new AutomationLinkedWorkspace(id, serializedAdditionalRawData: null); + } + + /// Initializes a new instance of . + /// Gets or sets the id of the resource. + /// Gets the name of the activity. + /// Gets or sets the user name of the activity. + /// Gets or sets the parameter sets of the activity. + /// Gets or sets the output types of the activity. + /// Gets or sets the creation time. + /// Gets or sets the last modified time. + /// Gets or sets the description. + /// A new instance for mocking. + public static AutomationActivity AutomationActivity(ResourceIdentifier id = null, string name = null, string definition = null, IEnumerable parameterSets = null, IEnumerable outputTypes = null, DateTimeOffset? createdOn = null, DateTimeOffset? lastModifiedOn = null, string description = null) + { + parameterSets ??= new List(); + outputTypes ??= new List(); + + return new AutomationActivity( + id, + name, + definition, + parameterSets?.ToList(), + outputTypes?.ToList(), + createdOn, + lastModifiedOn, + description, + serializedAdditionalRawData: null); + } + + /// Initializes a new instance of . + /// Gets or sets the name of the activity parameter set. + /// Gets or sets the parameters of the activity parameter set. + /// A new instance for mocking. + public static AutomationActivityParameterSet AutomationActivityParameterSet(string name = null, IEnumerable parameters = null) + { + parameters ??= new List(); + + return new AutomationActivityParameterSet(name, parameters?.ToList(), serializedAdditionalRawData: null); + } + + /// Initializes a new instance of . + /// Gets or sets the name of the activity parameter. + /// Gets or sets the type of the activity parameter. + /// Gets or sets a Boolean value that indicates true if the parameter is required. If the value is false, the parameter is optional. + /// Gets or sets a Boolean value that indicates true if the parameter is dynamic. + /// Gets or sets the position of the activity parameter. /// Gets or sets a Boolean value that indicates true if the parameter can take values from the incoming pipeline objects. This setting is used if the cmdlet must access the complete input object. false indicates that the parameter cannot take values from the complete input object. /// Gets or sets a Boolean value that indicates true if the parameter can be filled from a property of the incoming pipeline object that has the same name as this parameter. false indicates that the parameter cannot be filled from the incoming pipeline object property with the same name. /// Gets or sets a Boolean value that indicates true if the cmdlet parameter accepts all the remaining command-line arguments that are associated with this parameter in the form of an array. false if the cmdlet parameter does not accept all the remaining argument values. @@ -978,17 +1224,76 @@ public static AutomationActivityOutputType AutomationActivityOutputType(string n return new AutomationActivityOutputType(name, activityOutputType, serializedAdditionalRawData: null); } - /// Initializes a new instance of . - /// Gets or sets name of the resource. - /// Gets or sets the location of the resource. - /// Gets or sets the tags attached to the resource. - /// Gets or sets the module content link. - /// A new instance for mocking. - public static AutomationAccountModuleCreateOrUpdateContent AutomationAccountModuleCreateOrUpdateContent(string name = null, AzureLocation? location = null, IDictionary tags = null, AutomationContentLink contentLink = null) + /// Initializes a new instance of . + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// The tags. + /// The location. + /// Gets the etag of the resource. + /// Gets the isGlobal flag of the module. + /// Gets the version of the module. + /// Gets the size in bytes of the module. + /// Gets the activity count of the module. + /// Gets the provisioning state of the module. + /// Gets or sets the contentLink of the module. + /// Gets the error info of the module. + /// Gets the creation time. + /// Gets the last modified time. + /// Gets or sets the description. + /// Gets type of module, if its composite or not. + /// A new instance for mocking. + public static AutomationModuleData AutomationModuleData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, ETag? etag = null, bool? isGlobal = null, string version = null, long? sizeInBytes = null, int? activityCount = null, ModuleProvisioningState? provisioningState = null, AutomationContentLink contentLink = null, AutomationModuleErrorInfo error = null, DateTimeOffset? createdOn = null, DateTimeOffset? lastModifiedOn = null, string description = null, bool? isComposite = null) + { + tags ??= new Dictionary(); + + return new AutomationModuleData( + id, + name, + resourceType, + systemData, + tags, + location, + etag, + isGlobal, + version, + sizeInBytes, + activityCount, + provisioningState, + contentLink, + error, + createdOn, + lastModifiedOn, + description, + isComposite, + serializedAdditionalRawData: null); + } + + /// Initializes a new instance of . + /// Sets name of the resource. + /// Sets the location of the resource. + /// Sets the tags attached to the resource. + /// Sets the hash. + /// A new instance for mocking. + public static ModuleCreateOrUpdateParameters ModuleCreateOrUpdateParameters(string name = null, AzureLocation? location = null, IDictionary tags = null, AutomationContentLink contentLink = null) + { + tags ??= new Dictionary(); + + return new ModuleCreateOrUpdateParameters(name, location, tags, contentLink, serializedAdditionalRawData: null); + } + + /// Initializes a new instance of . + /// Sets name of the resource. + /// Sets the location of the resource. + /// Sets the tags attached to the resource. + /// Sets the module content link. + /// A new instance for mocking. + public static ModuleUpdateParameters ModuleUpdateParameters(string name = null, AzureLocation? location = null, IDictionary tags = null, AutomationContentLink contentLink = null) { tags ??= new Dictionary(); - return new AutomationAccountModuleCreateOrUpdateContent(name, location, tags, contentLink, serializedAdditionalRawData: null); + return new ModuleUpdateParameters(name, location, tags, contentLink, serializedAdditionalRawData: null); } /// Initializes a new instance of . @@ -1000,155 +1305,27 @@ public static AutomationModuleField AutomationModuleField(string name = null, st return new AutomationModuleField(name, fieldType, serializedAdditionalRawData: null); } - /// Initializes a new instance of . - /// Gets or sets the name of the Schedule. - /// Gets or sets the description of the schedule. - /// Gets or sets the start time of the schedule. - /// Gets or sets the end time of the schedule. - /// Gets or sets the interval of the schedule. - /// Gets or sets the frequency of the schedule. - /// Gets or sets the time zone of the schedule. - /// Gets or sets the AdvancedSchedule. - /// A new instance for mocking. - public static AutomationScheduleCreateOrUpdateContent AutomationScheduleCreateOrUpdateContent(string name = null, string description = null, DateTimeOffset startOn = default, DateTimeOffset? expireOn = null, BinaryData interval = null, AutomationScheduleFrequency frequency = default, string timeZone = null, AutomationAdvancedSchedule advancedSchedule = null) + /// Initializes a new instance of . + /// Gets or sets the tags attached to the resource. + /// Gets or sets the module content link. + /// A new instance for mocking. + public static PythonPackageCreateParameters PythonPackageCreateParameters(IDictionary tags = null, AutomationContentLink contentLink = null) { - return new AutomationScheduleCreateOrUpdateContent( - name, - description, - startOn, - expireOn, - interval, - frequency, - timeZone, - advancedSchedule, - serializedAdditionalRawData: null); - } - - /// Initializes a new instance of . - /// The id. - /// The name. - /// The resourceType. - /// The systemData. - /// Gets or sets the start time of the schedule. - /// Gets the start time's offset in minutes. - /// Gets or sets the end time of the schedule. - /// Gets or sets the expiry time's offset in minutes. - /// Gets or sets a value indicating whether this schedule is enabled. - /// Gets or sets the next run time of the schedule. - /// Gets or sets the next run time's offset in minutes. - /// Gets or sets the interval of the schedule. - /// Gets or sets the frequency of the schedule. - /// Gets or sets the time zone of the schedule. - /// Gets or sets the advanced schedule. - /// Gets or sets the creation time. - /// Gets or sets the last modified time. - /// Gets or sets the description. - /// A new instance for mocking. - public static AutomationScheduleData AutomationScheduleData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, DateTimeOffset? startOn = null, double? startInMinutes = null, DateTimeOffset? expireOn = null, double? expireInMinutes = null, bool? isEnabled = null, DateTimeOffset? nextRunOn = null, double? nextRunInMinutes = null, BinaryData interval = null, AutomationScheduleFrequency? frequency = null, string timeZone = null, AutomationAdvancedSchedule advancedSchedule = null, DateTimeOffset? createdOn = null, DateTimeOffset? lastModifiedOn = null, string description = null) - { - return new AutomationScheduleData( - id, - name, - resourceType, - systemData, - startOn, - startInMinutes, - expireOn, - expireInMinutes, - isEnabled, - nextRunOn, - nextRunInMinutes, - interval, - frequency, - timeZone, - advancedSchedule, - createdOn, - lastModifiedOn, - description, - serializedAdditionalRawData: null); - } - - /// Initializes a new instance of . - /// Gets or sets the name of the variable. - /// Gets or sets the value of the variable. - /// Gets or sets the description of the variable. - /// Gets or sets the encrypted flag of the variable. - /// A new instance for mocking. - public static AutomationVariableCreateOrUpdateContent AutomationVariableCreateOrUpdateContent(string name = null, string value = null, string description = null, bool? isEncrypted = null) - { - return new AutomationVariableCreateOrUpdateContent(name, value, description, isEncrypted, serializedAdditionalRawData: null); - } + tags ??= new Dictionary(); - /// Initializes a new instance of . - /// The id. - /// The name. - /// The resourceType. - /// The systemData. - /// Gets or sets the value of the variable. - /// Gets or sets the encrypted flag of the variable. - /// Gets or sets the creation time. - /// Gets or sets the last modified time. - /// Gets or sets the description. - /// A new instance for mocking. - public static AutomationVariableData AutomationVariableData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, string value = null, bool? isEncrypted = null, DateTimeOffset? createdOn = null, DateTimeOffset? lastModifiedOn = null, string description = null) - { - return new AutomationVariableData( - id, - name, - resourceType, - systemData, - value, - isEncrypted, - createdOn, - lastModifiedOn, - description, - serializedAdditionalRawData: null); + return new PythonPackageCreateParameters(tags, contentLink, serializedAdditionalRawData: null); } - /// Initializes a new instance of . - /// The id. - /// The name. - /// The resourceType. - /// The systemData. - /// The tags. - /// The location. - /// Gets or sets the etag of the resource. - /// Gets or sets the frequency at which the watcher is invoked. - /// Gets or sets the name of the script the watcher is attached to, i.e. the name of an existing runbook. - /// Gets or sets the parameters of the script. - /// Gets or sets the name of the hybrid worker group the watcher will run on. - /// Gets the current status of the watcher. - /// Gets or sets the creation time. - /// Gets or sets the last modified time. - /// Details of the user who last modified the watcher. - /// Gets or sets the description. - /// A new instance for mocking. - public static AutomationWatcherData AutomationWatcherData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, ETag? etag = null, long? executionFrequencyInSeconds = null, string scriptName = null, IDictionary scriptParameters = null, string scriptRunOn = null, string status = null, DateTimeOffset? createdOn = null, DateTimeOffset? lastModifiedOn = null, string lastModifiedBy = null, string description = null) + /// Initializes a new instance of . + /// + /// + /// A new instance for mocking. + public static RunbookDraftUndoEditResult RunbookDraftUndoEditResult(AutomationHttpStatusCode? statusCode = null, string requestId = null) { - tags ??= new Dictionary(); - scriptParameters ??= new Dictionary(); - - return new AutomationWatcherData( - id, - name, - resourceType, - systemData, - tags, - location, - etag, - executionFrequencyInSeconds, - scriptName, - scriptParameters, - scriptRunOn, - status, - createdOn, - lastModifiedOn, - lastModifiedBy, - description, - serializedAdditionalRawData: null); + return new RunbookDraftUndoEditResult(statusCode, requestId, serializedAdditionalRawData: null); } - /// Initializes a new instance of . + /// Initializes a new instance of . /// The id. /// The name. /// The resourceType. @@ -1156,23 +1333,29 @@ public static AutomationWatcherData AutomationWatcherData(ResourceIdentifier id /// The tags. /// The location. /// Gets or sets the etag of the resource. - /// Gets or sets the provisioning state of the configuration. - /// Gets or sets the job count of the configuration. - /// Gets or sets the configuration parameters. - /// Gets or sets the source. - /// Gets or sets the state of the configuration. + /// Gets or sets the type of the runbook. + /// Gets or sets the published runbook content link. + /// Gets or sets the state of the runbook. /// Gets or sets verbose log option. + /// Gets or sets progress log option. + /// Gets or sets the option to log activity trace of the runbook. + /// Gets or sets the job count of the runbook. + /// Gets or sets the runbook parameters. + /// Gets or sets the runbook output types. + /// Gets or sets the draft runbook properties. + /// Gets or sets the provisioning state of the runbook. + /// Gets or sets the last modified by. /// Gets or sets the creation time. /// Gets or sets the last modified time. - /// Gets the number of compiled node configurations. /// Gets or sets the description. - /// A new instance for mocking. - public static DscConfigurationData DscConfigurationData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, ETag? etag = null, DscConfigurationProvisioningState? provisioningState = null, int? jobCount = null, IDictionary parameters = null, AutomationContentSource source = null, DscConfigurationState? state = null, bool? isLogVerboseEnabled = null, DateTimeOffset? createdOn = null, DateTimeOffset? lastModifiedOn = null, int? nodeConfigurationCount = null, string description = null) + /// A new instance for mocking. + public static AutomationRunbookData AutomationRunbookData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, ETag? etag = null, AutomationRunbookType? runbookType = null, AutomationContentLink publishContentLink = null, RunbookState? state = null, bool? isLogVerboseEnabled = null, bool? isLogProgressEnabled = null, int? logActivityTrace = null, int? jobCount = null, IDictionary parameters = null, IEnumerable outputTypes = null, AutomationRunbookDraft draft = null, RunbookProvisioningState? provisioningState = null, string lastModifiedBy = null, DateTimeOffset? createdOn = null, DateTimeOffset? lastModifiedOn = null, string description = null) { tags ??= new Dictionary(); - parameters ??= new Dictionary(); + parameters ??= new Dictionary(); + outputTypes ??= new List(); - return new DscConfigurationData( + return new AutomationRunbookData( id, name, resourceType, @@ -1180,161 +1363,115 @@ public static DscConfigurationData DscConfigurationData(ResourceIdentifier id = tags, location, etag, - provisioningState, - jobCount, - parameters, - source, + runbookType, + publishContentLink, state, isLogVerboseEnabled, + isLogProgressEnabled, + logActivityTrace, + jobCount, + parameters, + outputTypes?.ToList(), + draft, + provisioningState, + lastModifiedBy, createdOn, lastModifiedOn, - nodeConfigurationCount, description, serializedAdditionalRawData: null); } - /// Initializes a new instance of . - /// Gets or sets name of the resource. + /// Initializes a new instance of . + /// Gets or sets the name of the resource. /// Gets or sets the location of the resource. /// Gets or sets the tags attached to the resource. /// Gets or sets verbose log option. /// Gets or sets progress log option. - /// Gets or sets the source. - /// Gets or sets the configuration parameters. - /// Gets or sets the description of the configuration. - /// A new instance for mocking. - public static DscConfigurationCreateOrUpdateContent DscConfigurationCreateOrUpdateContent(string name = null, AzureLocation? location = null, IDictionary tags = null, bool? isLogVerboseEnabled = null, bool? isLogProgressEnabled = null, AutomationContentSource source = null, IDictionary parameters = null, string description = null) + /// Gets or sets the type of the runbook. + /// Gets or sets the draft runbook properties. + /// Gets or sets the published runbook content link. + /// Gets or sets the description of the runbook. + /// Gets or sets the activity-level tracing options of the runbook. + /// A new instance for mocking. + public static AutomationRunbookCreateOrUpdateContent AutomationRunbookCreateOrUpdateContent(string name = null, AzureLocation? location = null, IDictionary tags = null, bool? isLogVerboseEnabled = null, bool? isLogProgressEnabled = null, AutomationRunbookType runbookType = default, AutomationRunbookDraft draft = null, AutomationContentLink publishContentLink = null, string description = null, int? logActivityTrace = null) { tags ??= new Dictionary(); - parameters ??= new Dictionary(); - return new DscConfigurationCreateOrUpdateContent( + return new AutomationRunbookCreateOrUpdateContent( name, location, tags, isLogVerboseEnabled, isLogProgressEnabled, - source, - parameters, + runbookType, + draft, + publishContentLink, description, + logActivityTrace, serializedAdditionalRawData: null); } - /// Initializes a new instance of . - /// The id. - /// The name. - /// The resourceType. - /// The systemData. - /// Gets or sets the runbook. - /// Gets or sets the job started by. + /// Initializes a new instance of . + /// Gets or sets the creation time of the test job. + /// Gets or sets the status of the test job. + /// Gets or sets the status details of the test job. /// Gets or sets the runOn which specifies the group name where the job is to be executed. - /// Gets or sets the id of the job. - /// Gets or sets the creation time of the job. - /// Gets or sets the status of the job. - /// Gets or sets the status details of the job. - /// Gets or sets the start time of the job. - /// Gets or sets the end time of the job. - /// Gets or sets the exception of the job. - /// Gets or sets the last modified time of the job. - /// Gets or sets the last status modified time of the job. - /// Gets or sets the parameters of the job. - /// The current provisioning state of the job. - /// A new instance for mocking. - public static AutomationJobData AutomationJobData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, string runbookName = null, string startedBy = null, string runOn = null, Guid? jobId = null, DateTimeOffset? createdOn = null, AutomationJobStatus? status = null, string statusDetails = null, DateTimeOffset? startOn = null, DateTimeOffset? endOn = null, string exception = null, DateTimeOffset? lastModifiedOn = null, DateTimeOffset? lastStatusModifiedOn = null, IDictionary parameters = null, JobProvisioningState? provisioningState = null) + /// Gets or sets the start time of the test job. + /// Gets or sets the end time of the test job. + /// Gets or sets the exception of the test job. + /// Gets or sets the last modified time of the test job. + /// Gets or sets the last status modified time of the test job. + /// Gets or sets the parameters of the test job. + /// The activity-level tracing options of the runbook. + /// A new instance for mocking. + public static RunbookTestJob RunbookTestJob(DateTimeOffset? createdOn = null, string status = null, string statusDetails = null, string runOn = null, DateTimeOffset? startOn = null, DateTimeOffset? endOn = null, string exception = null, DateTimeOffset? lastModifiedOn = null, DateTimeOffset? lastStatusModifiedOn = null, IReadOnlyDictionary parameters = null, int? logActivityTrace = null) { parameters ??= new Dictionary(); - return new AutomationJobData( - id, - name, - resourceType, - systemData, - runbookName != null ? new RunbookAssociationProperty(runbookName, serializedAdditionalRawData: null) : null, - startedBy, - runOn, - jobId, + return new RunbookTestJob( createdOn, status, statusDetails, + runOn, startOn, endOn, exception, lastModifiedOn, lastStatusModifiedOn, parameters, - provisioningState, + logActivityTrace, serializedAdditionalRawData: null); } - /// Initializes a new instance of . - /// The id. - /// The name. - /// The resourceType. - /// The systemData. - /// The runbook association. - /// The id of the job. - /// The creation time of the job. - /// The status of the job. - /// The start time of the job. - /// The end time of the job. - /// The last modified time of the job. - /// The provisioning state of a resource. - /// Specifies the runOn group name where the job was executed. - /// A new instance for mocking. - public static AutomationJobCollectionItemData AutomationJobCollectionItemData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, string runbookName = null, Guid? jobId = null, DateTimeOffset? createdOn = null, AutomationJobStatus? status = null, DateTimeOffset? startOn = null, DateTimeOffset? endOn = null, DateTimeOffset? lastModifiedOn = null, string provisioningState = null, string runOn = null) + /// Initializes a new instance of . + /// Gets or sets the name of the Schedule. + /// Gets or sets the description of the schedule. + /// Gets or sets the start time of the schedule. + /// Gets or sets the end time of the schedule. + /// Gets or sets the interval of the schedule. + /// Gets or sets the frequency of the schedule. + /// Gets or sets the time zone of the schedule. + /// Gets or sets the AdvancedSchedule. + /// A new instance for mocking. + public static AutomationScheduleCreateOrUpdateContent AutomationScheduleCreateOrUpdateContent(string name = null, string description = null, DateTimeOffset startOn = default, DateTimeOffset? expireOn = null, BinaryData interval = null, AutomationScheduleFrequency frequency = default, string timeZone = null, AutomationAdvancedSchedule advancedSchedule = null) { - return new AutomationJobCollectionItemData( - id, + return new AutomationScheduleCreateOrUpdateContent( name, - resourceType, - systemData, - runbookName != null ? new RunbookAssociationProperty(runbookName, serializedAdditionalRawData: null) : null, - jobId, - createdOn, - status, + description, startOn, - endOn, - lastModifiedOn, - provisioningState, - runOn, + expireOn, + interval, + frequency, + timeZone, + advancedSchedule, serializedAdditionalRawData: null); } - /// Initializes a new instance of . + /// Initializes a new instance of . /// The id. /// The name. /// The resourceType. /// The systemData. - /// update specific properties for the Software update configuration. - /// Schedule information for the Software update configuration. - /// Provisioning state for the software update configuration, which only appears in the response. - /// Details of provisioning error. - /// Creation time of the resource, which only appears in the response. - /// CreatedBy property, which only appears in the response. - /// Last time resource was modified, which only appears in the response. - /// LastModifiedBy property, which only appears in the response. - /// Tasks information for the Software update configuration. - /// A new instance for mocking. - public static SoftwareUpdateConfigurationData SoftwareUpdateConfigurationData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, SoftwareUpdateConfigurationSpecificProperties updateConfiguration = null, SoftwareUpdateConfigurationScheduleProperties scheduleInfo = null, string provisioningState = null, AutomationResponseError error = null, DateTimeOffset? createdOn = null, string createdBy = null, DateTimeOffset? lastModifiedOn = null, string lastModifiedBy = null, SoftwareUpdateConfigurationTasks tasks = null) - { - return new SoftwareUpdateConfigurationData( - id, - name, - resourceType, - systemData, - updateConfiguration, - scheduleInfo, - provisioningState, - error, - createdOn, - createdBy, - lastModifiedOn, - lastModifiedBy, - tasks, - serializedAdditionalRawData: null); - } - - /// Initializes a new instance of . /// Gets or sets the start time of the schedule. /// Gets the start time's offset in minutes. /// Gets or sets the end time of the schedule. @@ -1349,10 +1486,14 @@ public static SoftwareUpdateConfigurationData SoftwareUpdateConfigurationData(Re /// Gets or sets the creation time. /// Gets or sets the last modified time. /// Gets or sets the description. - /// A new instance for mocking. - public static SoftwareUpdateConfigurationScheduleProperties SoftwareUpdateConfigurationScheduleProperties(DateTimeOffset? startOn = null, double? startInMinutes = null, DateTimeOffset? expireOn = null, double? expireInMinutes = null, bool? isEnabled = null, DateTimeOffset? nextRunOn = null, double? nextRunInMinutes = null, long? interval = null, AutomationScheduleFrequency? frequency = null, string timeZone = null, AutomationAdvancedSchedule advancedSchedule = null, DateTimeOffset? createdOn = null, DateTimeOffset? lastModifiedOn = null, string description = null) + /// A new instance for mocking. + public static AutomationScheduleData AutomationScheduleData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, DateTimeOffset? startOn = null, double? startInMinutes = null, DateTimeOffset? expireOn = null, double? expireInMinutes = null, bool? isEnabled = null, DateTimeOffset? nextRunOn = null, double? nextRunInMinutes = null, BinaryData interval = null, AutomationScheduleFrequency? frequency = null, string timeZone = null, AutomationAdvancedSchedule advancedSchedule = null, DateTimeOffset? createdOn = null, DateTimeOffset? lastModifiedOn = null, string description = null) { - return new SoftwareUpdateConfigurationScheduleProperties( + return new AutomationScheduleData( + id, + name, + resourceType, + systemData, startOn, startInMinutes, expireOn, @@ -1370,31 +1511,47 @@ public static SoftwareUpdateConfigurationScheduleProperties SoftwareUpdateConfig serializedAdditionalRawData: null); } - /// Initializes a new instance of . - /// Name of the software update configuration. - /// Resource Id of the software update configuration. - /// Update specific properties of the software update configuration. - /// Pre and Post Tasks defined. - /// execution frequency of the schedule associated with the software update configuration. - /// the start time of the update. - /// Creation time of the software update configuration, which only appears in the response. - /// Last time software update configuration was modified, which only appears in the response. - /// Provisioning state for the software update configuration, which only appears in the response. - /// ext run time of the update. - /// A new instance for mocking. - public static SoftwareUpdateConfigurationCollectionItem SoftwareUpdateConfigurationCollectionItem(string name = null, ResourceIdentifier id = null, SoftwareUpdateConfigurationSpecificProperties updateConfiguration = null, SoftwareUpdateConfigurationTasks tasks = null, AutomationScheduleFrequency? frequency = null, DateTimeOffset? startOn = null, DateTimeOffset? createdOn = null, DateTimeOffset? lastModifiedOn = null, string provisioningState = null, DateTimeOffset? nextRunOn = null) + /// Initializes a new instance of . + /// Name of the software update configuration machine run. + /// Resource Id of the software update configuration machine run. + /// name of the updated computer. + /// type of the updated computer. + /// software update configuration triggered this run. + /// Status of the software update configuration machine run. + /// Operating system target of the software update configuration triggered this run. + /// correlation id of the software update configuration machine run. + /// source computer id of the software update configuration machine run. + /// Start time of the software update configuration machine run. + /// End time of the software update configuration machine run. + /// configured duration for the software update configuration run. + /// Job associated with the software update configuration machine run. + /// Creation time of the resource, which only appears in the response. + /// createdBy property, which only appears in the response. + /// Last time resource was modified, which only appears in the response. + /// lastModifiedBy property, which only appears in the response. + /// Details of provisioning error. + /// A new instance for mocking. + public static SoftwareUpdateConfigurationMachineRun SoftwareUpdateConfigurationMachineRun(string name = null, ResourceIdentifier id = null, ResourceIdentifier targetComputerId = null, string targetComputerType = null, string softwareUpdateName = null, string status = null, string osType = null, Guid? correlationId = null, Guid? sourceComputerId = null, DateTimeOffset? startOn = null, DateTimeOffset? endOn = null, TimeSpan? configuredDuration = null, Guid? jobId = null, DateTimeOffset? createdOn = null, string createdBy = null, DateTimeOffset? lastModifiedOn = null, string lastModifiedBy = null, AutomationResponseError error = null) { - return new SoftwareUpdateConfigurationCollectionItem( + return new SoftwareUpdateConfigurationMachineRun( name, id, - updateConfiguration, - tasks, - frequency, + targetComputerId, + targetComputerType, + softwareUpdateName != null ? new SoftwareUpdateConfigurationNavigation(softwareUpdateName, serializedAdditionalRawData: null) : null, + status, + osType, + correlationId, + sourceComputerId, startOn, + endOn, + configuredDuration, + jobId != null ? new JobNavigation(jobId, serializedAdditionalRawData: null) : null, createdOn, + createdBy, lastModifiedOn, - provisioningState, - nextRunOn, + lastModifiedBy, + error, serializedAdditionalRawData: null); } @@ -1455,312 +1612,168 @@ public static SoftwareUpdateConfigurationRunTaskProperties SoftwareUpdateConfigu return new SoftwareUpdateConfigurationRunTaskProperties(status, source, jobId, serializedAdditionalRawData: null); } - /// Initializes a new instance of . - /// Name of the software update configuration machine run. - /// Resource Id of the software update configuration machine run. - /// name of the updated computer. - /// type of the updated computer. - /// software update configuration triggered this run. - /// Status of the software update configuration machine run. - /// Operating system target of the software update configuration triggered this run. - /// correlation id of the software update configuration machine run. - /// source computer id of the software update configuration machine run. - /// Start time of the software update configuration machine run. - /// End time of the software update configuration machine run. - /// configured duration for the software update configuration run. - /// Job associated with the software update configuration machine run. - /// Creation time of the resource, which only appears in the response. - /// createdBy property, which only appears in the response. - /// Last time resource was modified, which only appears in the response. - /// lastModifiedBy property, which only appears in the response. - /// Details of provisioning error. - /// A new instance for mocking. - public static SoftwareUpdateConfigurationMachineRun SoftwareUpdateConfigurationMachineRun(string name = null, ResourceIdentifier id = null, ResourceIdentifier targetComputerId = null, string targetComputerType = null, string softwareUpdateName = null, string status = null, string osType = null, Guid? correlationId = null, Guid? sourceComputerId = null, DateTimeOffset? startOn = null, DateTimeOffset? endOn = null, TimeSpan? configuredDuration = null, Guid? jobId = null, DateTimeOffset? createdOn = null, string createdBy = null, DateTimeOffset? lastModifiedOn = null, string lastModifiedBy = null, AutomationResponseError error = null) - { - return new SoftwareUpdateConfigurationMachineRun( - name, - id, - targetComputerId, - targetComputerType, - softwareUpdateName != null ? new SoftwareUpdateConfigurationNavigation(softwareUpdateName, serializedAdditionalRawData: null) : null, - status, - osType, - correlationId, - sourceComputerId, - startOn, - endOn, - configuredDuration, - jobId != null ? new JobNavigation(jobId, serializedAdditionalRawData: null) : null, - createdOn, - createdBy, - lastModifiedOn, - lastModifiedBy, - error, - serializedAdditionalRawData: null); - } - - /// Initializes a new instance of . - /// - /// - /// A new instance for mocking. - public static RunbookDraftUndoEditResult RunbookDraftUndoEditResult(AutomationHttpStatusCode? statusCode = null, string requestId = null) - { - return new RunbookDraftUndoEditResult(statusCode, requestId, serializedAdditionalRawData: null); - } - - /// Initializes a new instance of . + /// Initializes a new instance of . /// The id. /// The name. /// The resourceType. /// The systemData. - /// The tags. - /// The location. - /// Gets or sets the etag of the resource. - /// Gets or sets the type of the runbook. - /// Gets or sets the published runbook content link. - /// Gets or sets the state of the runbook. - /// Gets or sets verbose log option. - /// Gets or sets progress log option. - /// Gets or sets the option to log activity trace of the runbook. - /// Gets or sets the job count of the runbook. - /// Gets or sets the runbook parameters. - /// Gets or sets the runbook output types. - /// Gets or sets the draft runbook properties. - /// Gets or sets the provisioning state of the runbook. - /// Gets or sets the last modified by. - /// Gets or sets the creation time. - /// Gets or sets the last modified time. - /// Gets or sets the description. - /// A new instance for mocking. - public static AutomationRunbookData AutomationRunbookData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, ETag? etag = null, AutomationRunbookType? runbookType = null, AutomationContentLink publishContentLink = null, RunbookState? state = null, bool? isLogVerboseEnabled = null, bool? isLogProgressEnabled = null, int? logActivityTrace = null, int? jobCount = null, IDictionary parameters = null, IEnumerable outputTypes = null, AutomationRunbookDraft draft = null, RunbookProvisioningState? provisioningState = null, string lastModifiedBy = null, DateTimeOffset? createdOn = null, DateTimeOffset? lastModifiedOn = null, string description = null) + /// The repo url of the source control. + /// The repo branch of the source control. Include branch as empty string for VsoTfvc. + /// The folder path of the source control. + /// The auto sync of the source control. Default is false. + /// The auto publish of the source control. Default is true. + /// The source type. Must be one of VsoGit, VsoTfvc, GitHub. + /// The description. + /// The creation time. + /// The last modified time. + /// A new instance for mocking. + public static AutomationSourceControlData AutomationSourceControlData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, Uri repoUri = null, string branch = null, string folderPath = null, bool? isAutoSyncEnabled = null, bool? isAutoPublishRunbookEnabled = null, SourceControlSourceType? sourceType = null, string description = null, DateTimeOffset? createdOn = null, DateTimeOffset? lastModifiedOn = null) { - tags ??= new Dictionary(); - parameters ??= new Dictionary(); - outputTypes ??= new List(); - - return new AutomationRunbookData( + return new AutomationSourceControlData( id, name, resourceType, systemData, - tags, - location, - etag, - runbookType, - publishContentLink, - state, - isLogVerboseEnabled, - isLogProgressEnabled, - logActivityTrace, - jobCount, - parameters, - outputTypes?.ToList(), - draft, - provisioningState, - lastModifiedBy, - createdOn, - lastModifiedOn, - description, - serializedAdditionalRawData: null); - } - - /// Initializes a new instance of . - /// Gets or sets the name of the resource. - /// Gets or sets the location of the resource. - /// Gets or sets the tags attached to the resource. - /// Gets or sets verbose log option. - /// Gets or sets progress log option. - /// Gets or sets the type of the runbook. - /// Gets or sets the draft runbook properties. - /// Gets or sets the published runbook content link. - /// Gets or sets the description of the runbook. - /// Gets or sets the activity-level tracing options of the runbook. - /// A new instance for mocking. - public static AutomationRunbookCreateOrUpdateContent AutomationRunbookCreateOrUpdateContent(string name = null, AzureLocation? location = null, IDictionary tags = null, bool? isLogVerboseEnabled = null, bool? isLogProgressEnabled = null, AutomationRunbookType runbookType = default, AutomationRunbookDraft draft = null, AutomationContentLink publishContentLink = null, string description = null, int? logActivityTrace = null) - { - tags ??= new Dictionary(); - - return new AutomationRunbookCreateOrUpdateContent( - name, - location, - tags, - isLogVerboseEnabled, - isLogProgressEnabled, - runbookType, - draft, - publishContentLink, + repoUri, + branch, + folderPath, + isAutoSyncEnabled, + isAutoPublishRunbookEnabled, + sourceType, description, - logActivityTrace, - serializedAdditionalRawData: null); - } - - /// Initializes a new instance of . - /// Gets or sets the creation time of the test job. - /// Gets or sets the status of the test job. - /// Gets or sets the status details of the test job. - /// Gets or sets the runOn which specifies the group name where the job is to be executed. - /// Gets or sets the start time of the test job. - /// Gets or sets the end time of the test job. - /// Gets or sets the exception of the test job. - /// Gets or sets the last modified time of the test job. - /// Gets or sets the last status modified time of the test job. - /// Gets or sets the parameters of the test job. - /// The activity-level tracing options of the runbook. - /// A new instance for mocking. - public static RunbookTestJob RunbookTestJob(DateTimeOffset? createdOn = null, string status = null, string statusDetails = null, string runOn = null, DateTimeOffset? startOn = null, DateTimeOffset? endOn = null, string exception = null, DateTimeOffset? lastModifiedOn = null, DateTimeOffset? lastStatusModifiedOn = null, IReadOnlyDictionary parameters = null, int? logActivityTrace = null) - { - parameters ??= new Dictionary(); - - return new RunbookTestJob( createdOn, - status, - statusDetails, - runOn, - startOn, - endOn, - exception, lastModifiedOn, - lastStatusModifiedOn, - parameters, - logActivityTrace, serializedAdditionalRawData: null); } - /// Initializes a new instance of . + /// Initializes a new instance of . /// The id. /// The name. /// The resourceType. /// The systemData. - /// Gets or sets the value of the enabled flag of the webhook. - /// Gets or sets the webhook uri. - /// Gets or sets the expiry time. - /// Gets or sets the last invoked time. - /// Gets or sets the parameters of the job that is created when the webhook calls the runbook it is associated with. - /// Gets or sets the runbook the webhook is associated with. - /// Gets or sets the name of the hybrid worker group the webhook job will run on. - /// Gets or sets the creation time. - /// Gets or sets the last modified time. - /// Details of the user who last modified the Webhook. - /// Gets or sets the description. - /// A new instance for mocking. - public static AutomationWebhookData AutomationWebhookData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, bool? isEnabled = null, Uri uri = null, DateTimeOffset? expireOn = null, DateTimeOffset? lastInvokedOn = null, IDictionary parameters = null, string runbookName = null, string runOn = null, DateTimeOffset? createdOn = null, DateTimeOffset? lastModifiedOn = null, string lastModifiedBy = null, string description = null) + /// The source control sync job id. + /// The creation time of the job. + /// The provisioning state of the job. + /// The start time of the job. + /// The end time of the job. + /// The sync type. + /// A new instance for mocking. + public static SourceControlSyncJob SourceControlSyncJob(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, string sourceControlSyncJobId = null, DateTimeOffset? createdOn = null, SourceControlProvisioningState? provisioningState = null, DateTimeOffset? startOn = null, DateTimeOffset? endOn = null, SourceControlSyncType? syncType = null) { - parameters ??= new Dictionary(); - - return new AutomationWebhookData( + return new SourceControlSyncJob( id, name, resourceType, systemData, - isEnabled, - uri, - expireOn, - lastInvokedOn, - parameters, - runbookName != null ? new RunbookAssociationProperty(runbookName, serializedAdditionalRawData: null) : null, - runOn, + sourceControlSyncJobId, createdOn, - lastModifiedOn, - lastModifiedBy, - description, + provisioningState, + startOn, + endOn, + syncType, serializedAdditionalRawData: null); } - /// Initializes a new instance of . - /// Gets or sets the name of the webhook. - /// Gets or sets the value of the enabled flag of webhook. - /// Gets or sets the uri. - /// Gets or sets the expiry time. - /// Gets or sets the parameters of the job. - /// Gets or sets the runbook. - /// Gets or sets the name of the hybrid worker group the webhook job will run on. - /// A new instance for mocking. - public static AutomationWebhookCreateOrUpdateContent AutomationWebhookCreateOrUpdateContent(string name = null, bool? isEnabled = null, Uri uri = null, DateTimeOffset? expireOn = null, IDictionary parameters = null, string runbookName = null, string runOn = null) + /// Initializes a new instance of . + /// The id of the job. + /// The source control sync job id. + /// The creation time of the job. + /// The provisioning state of the job. + /// The start time of the job. + /// The end time of the job. + /// The sync type. + /// The exceptions that occurred while running the sync job. + /// A new instance for mocking. + public static SourceControlSyncJobResult SourceControlSyncJobResult(ResourceIdentifier id = null, string sourceControlSyncJobId = null, DateTimeOffset? createdOn = null, SourceControlProvisioningState? provisioningState = null, DateTimeOffset? startOn = null, DateTimeOffset? endOn = null, SourceControlSyncType? syncType = null, string exception = null) { - parameters ??= new Dictionary(); - - return new AutomationWebhookCreateOrUpdateContent( - name, - isEnabled, - uri, - expireOn, - parameters, - runbookName != null ? new RunbookAssociationProperty(runbookName, serializedAdditionalRawData: null) : null, - runOn, + return new SourceControlSyncJobResult( + id, + sourceControlSyncJobId, + createdOn, + provisioningState, + startOn, + endOn, + syncType, + exception, serializedAdditionalRawData: null); } - /// Initializes a new instance of . - /// The id. - /// The name. - /// The resourceType. - /// The systemData. - /// Gets or sets the assigned machine IP address. - /// Gets or sets the registration time of the worker machine. - /// Last Heartbeat from the Worker. - /// Azure Resource Manager Id for a virtual machine. - /// Type of the HybridWorker. - /// Name of the HybridWorker. - /// A new instance for mocking. - public static HybridRunbookWorkerData HybridRunbookWorkerData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, string ip = null, DateTimeOffset? registeredOn = null, DateTimeOffset? lastSeenOn = null, ResourceIdentifier vmResourceId = null, HybridWorkerType? workerType = null, string workerName = null) + /// Initializes a new instance of . + /// Resource id. + /// The sync job stream id. + /// The summary of the sync job stream. + /// The time of the sync job stream. + /// The type of the sync job stream. + /// A new instance for mocking. + public static SourceControlSyncJobStream SourceControlSyncJobStream(ResourceIdentifier id = null, string sourceControlSyncJobStreamId = null, string summary = null, DateTimeOffset? time = null, SourceControlStreamType? streamType = null) { - return new HybridRunbookWorkerData( + return new SourceControlSyncJobStream( id, - name, - resourceType, - systemData, - ip, - registeredOn, - lastSeenOn, - vmResourceId, - workerType, - workerName, + sourceControlSyncJobStreamId, + summary, + time, + streamType, serializedAdditionalRawData: null); } - /// Initializes a new instance of . - /// The id. - /// The name. - /// The resourceType. - /// The systemData. - /// Gets or sets the location of the resource. - /// Gets or sets the Automation Account Resource Id. - /// Gets or sets the Automation Account Id. - /// Gets or sets the location of the resource. - /// Gets the deletion time. - /// A new instance for mocking. - public static DeletedAutomationAccount DeletedAutomationAccount(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, AzureLocation? location = null, ResourceIdentifier automationAccountResourceId = null, string automationAccountId = null, string locationPropertiesLocation = null, DateTimeOffset? deletedOn = null) + /// Initializes a new instance of . + /// Resource id. + /// The sync job stream id. + /// The summary of the sync job stream. + /// The time of the sync job stream. + /// The type of the sync job stream. + /// The text of the sync job stream. + /// The values of the job stream. + /// A new instance for mocking. + public static SourceControlSyncJobStreamResult SourceControlSyncJobStreamResult(ResourceIdentifier id = null, string sourceControlSyncJobStreamId = null, string summary = null, DateTimeOffset? time = null, SourceControlStreamType? streamType = null, string streamText = null, IReadOnlyDictionary value = null) { - return new DeletedAutomationAccount( + value ??= new Dictionary(); + + return new SourceControlSyncJobStreamResult( id, - name, - resourceType, - systemData, - location, - automationAccountResourceId, - automationAccountId, - locationPropertiesLocation, - deletedOn, + sourceControlSyncJobStreamId, + summary, + time, + streamType, + streamText, + value, serializedAdditionalRawData: null); } - /// Initializes a new instance of . + /// Initializes a new instance of . + /// Gets or sets the name of the variable. + /// Gets or sets the value of the variable. + /// Gets or sets the description of the variable. + /// Gets or sets the encrypted flag of the variable. + /// A new instance for mocking. + public static AutomationVariableCreateOrUpdateContent AutomationVariableCreateOrUpdateContent(string name = null, string value = null, string description = null, bool? isEncrypted = null) + { + return new AutomationVariableCreateOrUpdateContent(name, value, description, isEncrypted, serializedAdditionalRawData: null); + } + + /// Initializes a new instance of . /// The id. /// The name. /// The resourceType. /// The systemData. - /// Type of the HybridWorkerGroup. - /// Sets the credential of a worker group. - /// A new instance for mocking. - public static HybridRunbookWorkerGroupData HybridRunbookWorkerGroupData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, HybridWorkerGroup? groupType = null, string credentialName = null) + /// Gets or sets the value of the variable. + /// Gets or sets the encrypted flag of the variable. + /// Gets or sets the creation time. + /// Gets or sets the last modified time. + /// Gets or sets the description. + /// A new instance for mocking. + public static AutomationVariableData AutomationVariableData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, string value = null, bool? isEncrypted = null, DateTimeOffset? createdOn = null, DateTimeOffset? lastModifiedOn = null, string description = null) { - return new HybridRunbookWorkerGroupData( + return new AutomationVariableData( id, name, resourceType, systemData, - groupType, - credentialName != null ? new RunAsCredentialAssociationProperty(credentialName, serializedAdditionalRawData: null) : null, + value, + isEncrypted, + createdOn, + lastModifiedOn, + description, serializedAdditionalRawData: null); } } diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationAccountCollection.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationAccountCollection.cs index 78e584da8a8a..dd043ef603ef 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationAccountCollection.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationAccountCollection.cs @@ -66,7 +66,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2021-06-22 + /// 2023-11-01 /// /// /// Resource @@ -117,7 +117,7 @@ public virtual async Task> CreateOrUpdat /// /// /// Default Api Version - /// 2021-06-22 + /// 2023-11-01 /// /// /// Resource @@ -168,7 +168,7 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil /// /// /// Default Api Version - /// 2021-06-22 + /// 2023-11-01 /// /// /// Resource @@ -213,7 +213,7 @@ public virtual async Task> GetAsync(string a /// /// /// Default Api Version - /// 2021-06-22 + /// 2023-11-01 /// /// /// Resource @@ -258,7 +258,7 @@ public virtual Response Get(string automationAccountN /// /// /// Default Api Version - /// 2021-06-22 + /// 2023-11-01 /// /// /// Resource @@ -288,7 +288,7 @@ public virtual AsyncPageable GetAllAsync(Cancellation /// /// /// Default Api Version - /// 2021-06-22 + /// 2023-11-01 /// /// /// Resource @@ -318,7 +318,7 @@ public virtual Pageable GetAll(CancellationToken canc /// /// /// Default Api Version - /// 2021-06-22 + /// 2023-11-01 /// /// /// Resource @@ -361,7 +361,7 @@ public virtual async Task> ExistsAsync(string automationAccountNa /// /// /// Default Api Version - /// 2021-06-22 + /// 2023-11-01 /// /// /// Resource @@ -404,7 +404,7 @@ public virtual Response Exists(string automationAccountName, CancellationT /// /// /// Default Api Version - /// 2021-06-22 + /// 2023-11-01 /// /// /// Resource @@ -449,7 +449,7 @@ public virtual async Task> GetIfExis /// /// /// Default Api Version - /// 2021-06-22 + /// 2023-11-01 /// /// /// Resource diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationAccountModuleCollection.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationAccountModuleCollection.cs index e3ed0d303849..4437819a67b2 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationAccountModuleCollection.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationAccountModuleCollection.cs @@ -65,7 +65,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2023-11-01 /// /// /// Resource @@ -75,21 +75,21 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// 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 name of module. - /// The create or update parameters for module. + /// The create or update parameters for module. /// 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 moduleName, AutomationAccountModuleCreateOrUpdateContent content, CancellationToken cancellationToken = default) + /// or is null. + public virtual async Task> CreateOrUpdateAsync(WaitUntil waitUntil, string moduleName, ModuleCreateOrUpdateParameters moduleCreateOrUpdateParameters, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(moduleName, nameof(moduleName)); - Argument.AssertNotNull(content, nameof(content)); + Argument.AssertNotNull(moduleCreateOrUpdateParameters, nameof(moduleCreateOrUpdateParameters)); using var scope = _automationAccountModuleModuleClientDiagnostics.CreateScope("AutomationAccountModuleCollection.CreateOrUpdate"); scope.Start(); try { - var response = await _automationAccountModuleModuleRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, moduleName, content, cancellationToken).ConfigureAwait(false); - var uri = _automationAccountModuleModuleRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, moduleName, content); + var response = await _automationAccountModuleModuleRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, moduleName, moduleCreateOrUpdateParameters, cancellationToken).ConfigureAwait(false); + var uri = _automationAccountModuleModuleRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, moduleName, moduleCreateOrUpdateParameters); var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), "None", null, OperationFinalStateVia.OriginalUri.ToString()); var operation = new AutomationArmOperation(Response.FromValue(new AutomationAccountModuleResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) @@ -116,7 +116,7 @@ public virtual async Task> CreateO /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2023-11-01 /// /// /// Resource @@ -126,21 +126,21 @@ public virtual async Task> CreateO /// /// 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 name of module. - /// The create or update parameters for module. + /// The create or update parameters for module. /// 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 moduleName, AutomationAccountModuleCreateOrUpdateContent content, CancellationToken cancellationToken = default) + /// or is null. + public virtual ArmOperation CreateOrUpdate(WaitUntil waitUntil, string moduleName, ModuleCreateOrUpdateParameters moduleCreateOrUpdateParameters, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(moduleName, nameof(moduleName)); - Argument.AssertNotNull(content, nameof(content)); + Argument.AssertNotNull(moduleCreateOrUpdateParameters, nameof(moduleCreateOrUpdateParameters)); using var scope = _automationAccountModuleModuleClientDiagnostics.CreateScope("AutomationAccountModuleCollection.CreateOrUpdate"); scope.Start(); try { - var response = _automationAccountModuleModuleRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, moduleName, content, cancellationToken); - var uri = _automationAccountModuleModuleRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, moduleName, content); + var response = _automationAccountModuleModuleRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, moduleName, moduleCreateOrUpdateParameters, cancellationToken); + var uri = _automationAccountModuleModuleRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, moduleName, moduleCreateOrUpdateParameters); var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), "None", null, OperationFinalStateVia.OriginalUri.ToString()); var operation = new AutomationArmOperation(Response.FromValue(new AutomationAccountModuleResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) @@ -167,7 +167,7 @@ public virtual ArmOperation CreateOrUpdate(Wait /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2023-11-01 /// /// /// Resource @@ -212,7 +212,7 @@ public virtual async Task> GetAsync(st /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2023-11-01 /// /// /// Resource @@ -257,7 +257,7 @@ public virtual Response Get(string moduleName, /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2023-11-01 /// /// /// Resource @@ -287,7 +287,7 @@ public virtual AsyncPageable GetAllAsync(Cancel /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2023-11-01 /// /// /// Resource @@ -317,7 +317,7 @@ public virtual Pageable GetAll(CancellationToke /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2023-11-01 /// /// /// Resource @@ -360,7 +360,7 @@ public virtual async Task> ExistsAsync(string moduleName, Cancell /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2023-11-01 /// /// /// Resource @@ -403,7 +403,7 @@ public virtual Response Exists(string moduleName, CancellationToken cancel /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2023-11-01 /// /// /// Resource @@ -448,7 +448,7 @@ public virtual async Task> Get /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2023-11-01 /// /// /// Resource diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationAccountModuleResource.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationAccountModuleResource.cs index 40bf119a3b52..4336a49aac4f 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationAccountModuleResource.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationAccountModuleResource.cs @@ -116,7 +116,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2023-11-01 /// /// /// Resource @@ -156,7 +156,7 @@ public virtual async Task> GetAsync(Ca /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2023-11-01 /// /// /// Resource @@ -196,7 +196,7 @@ public virtual Response Get(CancellationToken c /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2023-11-01 /// /// /// Resource @@ -240,7 +240,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2023-11-01 /// /// /// Resource @@ -284,7 +284,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2023-11-01 /// /// /// Resource @@ -292,18 +292,18 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// - /// The update parameters for module. + /// The update parameters for module. /// The cancellation token to use. - /// is null. - public virtual async Task> UpdateAsync(AutomationAccountModulePatch patch, CancellationToken cancellationToken = default) + /// is null. + public virtual async Task> UpdateAsync(ModuleUpdateParameters moduleUpdateParameters, CancellationToken cancellationToken = default) { - Argument.AssertNotNull(patch, nameof(patch)); + Argument.AssertNotNull(moduleUpdateParameters, nameof(moduleUpdateParameters)); using var scope = _automationAccountModuleModuleClientDiagnostics.CreateScope("AutomationAccountModuleResource.Update"); scope.Start(); try { - var response = await _automationAccountModuleModuleRestClient.UpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, patch, cancellationToken).ConfigureAwait(false); + var response = await _automationAccountModuleModuleRestClient.UpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, moduleUpdateParameters, cancellationToken).ConfigureAwait(false); return Response.FromValue(new AutomationAccountModuleResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) @@ -326,7 +326,7 @@ public virtual async Task> UpdateAsync /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2023-11-01 /// /// /// Resource @@ -334,18 +334,18 @@ public virtual async Task> UpdateAsync /// /// /// - /// The update parameters for module. + /// The update parameters for module. /// The cancellation token to use. - /// is null. - public virtual Response Update(AutomationAccountModulePatch patch, CancellationToken cancellationToken = default) + /// is null. + public virtual Response Update(ModuleUpdateParameters moduleUpdateParameters, CancellationToken cancellationToken = default) { - Argument.AssertNotNull(patch, nameof(patch)); + Argument.AssertNotNull(moduleUpdateParameters, nameof(moduleUpdateParameters)); using var scope = _automationAccountModuleModuleClientDiagnostics.CreateScope("AutomationAccountModuleResource.Update"); scope.Start(); try { - var response = _automationAccountModuleModuleRestClient.Update(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, patch, cancellationToken); + var response = _automationAccountModuleModuleRestClient.Update(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, moduleUpdateParameters, cancellationToken); return Response.FromValue(new AutomationAccountModuleResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) @@ -368,7 +368,7 @@ public virtual Response Update(AutomationAccoun /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2023-11-01 /// /// /// @@ -407,7 +407,7 @@ public virtual async Task> GetActivityAsync(string /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2023-11-01 /// /// /// @@ -446,7 +446,7 @@ public virtual Response GetActivity(string activityName, Can /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2023-11-01 /// /// /// @@ -472,7 +472,7 @@ public virtual AsyncPageable GetActivitiesAsync(Cancellation /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2023-11-01 /// /// /// @@ -498,7 +498,7 @@ public virtual Pageable GetActivities(CancellationToken canc /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2023-11-01 /// /// /// @@ -528,7 +528,7 @@ public virtual AsyncPageable GetFieldsByModuleAndTypeAsyn /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2023-11-01 /// /// /// @@ -558,7 +558,7 @@ public virtual Pageable GetFieldsByModuleAndType(string t /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2023-11-01 /// /// /// @@ -588,7 +588,7 @@ public virtual AsyncPageable GetFieldsByTypeAsync(string /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2023-11-01 /// /// /// @@ -618,7 +618,7 @@ public virtual Pageable GetFieldsByType(string typeName, /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2023-11-01 /// /// /// Resource @@ -650,7 +650,7 @@ public virtual async Task> AddTagAsync else { var current = (await GetAsync(cancellationToken: cancellationToken).ConfigureAwait(false)).Value.Data; - var patch = new AutomationAccountModulePatch(); + var patch = new ModuleUpdateParameters(); foreach (var tag in current.Tags) { patch.Tags.Add(tag); @@ -680,7 +680,7 @@ public virtual async Task> AddTagAsync /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2023-11-01 /// /// /// Resource @@ -712,7 +712,7 @@ public virtual Response AddTag(string key, stri else { var current = Get(cancellationToken: cancellationToken).Value.Data; - var patch = new AutomationAccountModulePatch(); + var patch = new ModuleUpdateParameters(); foreach (var tag in current.Tags) { patch.Tags.Add(tag); @@ -742,7 +742,7 @@ public virtual Response AddTag(string key, stri /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2023-11-01 /// /// /// Resource @@ -773,7 +773,7 @@ public virtual async Task> SetTagsAsyn else { var current = (await GetAsync(cancellationToken: cancellationToken).ConfigureAwait(false)).Value.Data; - var patch = new AutomationAccountModulePatch(); + var patch = new ModuleUpdateParameters(); patch.Tags.ReplaceWith(tags); var result = await UpdateAsync(patch, cancellationToken: cancellationToken).ConfigureAwait(false); return result; @@ -799,7 +799,7 @@ public virtual async Task> SetTagsAsyn /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2023-11-01 /// /// /// Resource @@ -830,7 +830,7 @@ public virtual Response SetTags(IDictionary SetTags(IDictionary /// /// Default Api Version - /// 2020-01-13-preview + /// 2023-11-01 /// /// /// Resource @@ -886,7 +886,7 @@ public virtual async Task> RemoveTagAs else { var current = (await GetAsync(cancellationToken: cancellationToken).ConfigureAwait(false)).Value.Data; - var patch = new AutomationAccountModulePatch(); + var patch = new ModuleUpdateParameters(); foreach (var tag in current.Tags) { patch.Tags.Add(tag); @@ -916,7 +916,7 @@ public virtual async Task> RemoveTagAs /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2023-11-01 /// /// /// Resource @@ -946,7 +946,7 @@ public virtual Response RemoveTag(string key, C else { var current = Get(cancellationToken: cancellationToken).Value.Data; - var patch = new AutomationAccountModulePatch(); + var patch = new ModuleUpdateParameters(); foreach (var tag in current.Tags) { patch.Tags.Add(tag); diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationAccountPowerShell72ModuleCollection.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationAccountPowerShell72ModuleCollection.cs new file mode 100644 index 000000000000..125d106b9547 --- /dev/null +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationAccountPowerShell72ModuleCollection.cs @@ -0,0 +1,498 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Globalization; +using System.Threading; +using System.Threading.Tasks; +using Autorest.CSharp.Core; +using Azure.Core; +using Azure.Core.Pipeline; +using Azure.ResourceManager.Automation.Models; + +namespace Azure.ResourceManager.Automation +{ + /// + /// A class representing a collection of and their operations. + /// Each in the collection will belong to the same instance of . + /// To get an instance call the GetAutomationAccountPowerShell72Modules method from an instance of . + /// + public partial class AutomationAccountPowerShell72ModuleCollection : ArmCollection, IEnumerable, IAsyncEnumerable + { + private readonly ClientDiagnostics _automationAccountPowerShell72ModulePowerShell72ModuleClientDiagnostics; + private readonly PowerShell72ModuleRestOperations _automationAccountPowerShell72ModulePowerShell72ModuleRestClient; + + /// Initializes a new instance of the class for mocking. + protected AutomationAccountPowerShell72ModuleCollection() + { + } + + /// 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 AutomationAccountPowerShell72ModuleCollection(ArmClient client, ResourceIdentifier id) : base(client, id) + { + _automationAccountPowerShell72ModulePowerShell72ModuleClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.Automation", AutomationAccountPowerShell72ModuleResource.ResourceType.Namespace, Diagnostics); + TryGetApiVersion(AutomationAccountPowerShell72ModuleResource.ResourceType, out string automationAccountPowerShell72ModulePowerShell72ModuleApiVersion); + _automationAccountPowerShell72ModulePowerShell72ModuleRestClient = new PowerShell72ModuleRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, automationAccountPowerShell72ModulePowerShell72ModuleApiVersion); +#if DEBUG + ValidateResourceId(Id); +#endif + } + + internal static void ValidateResourceId(ResourceIdentifier id) + { + if (id.ResourceType != AutomationAccountResource.ResourceType) + throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "Invalid resource type {0} expected {1}", id.ResourceType, AutomationAccountResource.ResourceType), nameof(id)); + } + + /// + /// Create or Update the module identified by module name. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/powerShell72Modules/{moduleName} + /// + /// + /// Operation Id + /// PowerShell72Module_CreateOrUpdate + /// + /// + /// Default Api Version + /// 2023-11-01 + /// + /// + /// Resource + /// + /// + /// + /// + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// The name of module. + /// The create or update parameters for module. + /// 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 moduleName, ModuleCreateOrUpdateParameters moduleCreateOrUpdateParameters, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(moduleName, nameof(moduleName)); + Argument.AssertNotNull(moduleCreateOrUpdateParameters, nameof(moduleCreateOrUpdateParameters)); + + using var scope = _automationAccountPowerShell72ModulePowerShell72ModuleClientDiagnostics.CreateScope("AutomationAccountPowerShell72ModuleCollection.CreateOrUpdate"); + scope.Start(); + try + { + var response = await _automationAccountPowerShell72ModulePowerShell72ModuleRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, moduleName, moduleCreateOrUpdateParameters, cancellationToken).ConfigureAwait(false); + var uri = _automationAccountPowerShell72ModulePowerShell72ModuleRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, moduleName, moduleCreateOrUpdateParameters); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), "None", null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AutomationArmOperation(Response.FromValue(new AutomationAccountPowerShell72ModuleResource(Client, response), response.GetRawResponse()), rehydrationToken); + if (waitUntil == WaitUntil.Completed) + await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Create or Update the module identified by module name. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/powerShell72Modules/{moduleName} + /// + /// + /// Operation Id + /// PowerShell72Module_CreateOrUpdate + /// + /// + /// Default Api Version + /// 2023-11-01 + /// + /// + /// Resource + /// + /// + /// + /// + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// The name of module. + /// The create or update parameters for module. + /// 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 moduleName, ModuleCreateOrUpdateParameters moduleCreateOrUpdateParameters, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(moduleName, nameof(moduleName)); + Argument.AssertNotNull(moduleCreateOrUpdateParameters, nameof(moduleCreateOrUpdateParameters)); + + using var scope = _automationAccountPowerShell72ModulePowerShell72ModuleClientDiagnostics.CreateScope("AutomationAccountPowerShell72ModuleCollection.CreateOrUpdate"); + scope.Start(); + try + { + var response = _automationAccountPowerShell72ModulePowerShell72ModuleRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, moduleName, moduleCreateOrUpdateParameters, cancellationToken); + var uri = _automationAccountPowerShell72ModulePowerShell72ModuleRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, moduleName, moduleCreateOrUpdateParameters); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), "None", null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AutomationArmOperation(Response.FromValue(new AutomationAccountPowerShell72ModuleResource(Client, response), response.GetRawResponse()), rehydrationToken); + if (waitUntil == WaitUntil.Completed) + operation.WaitForCompletion(cancellationToken); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Retrieve the module identified by module name. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/powerShell72Modules/{moduleName} + /// + /// + /// Operation Id + /// PowerShell72Module_Get + /// + /// + /// Default Api Version + /// 2023-11-01 + /// + /// + /// Resource + /// + /// + /// + /// + /// The name of module. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + public virtual async Task> GetAsync(string moduleName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(moduleName, nameof(moduleName)); + + using var scope = _automationAccountPowerShell72ModulePowerShell72ModuleClientDiagnostics.CreateScope("AutomationAccountPowerShell72ModuleCollection.Get"); + scope.Start(); + try + { + var response = await _automationAccountPowerShell72ModulePowerShell72ModuleRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, moduleName, cancellationToken).ConfigureAwait(false); + if (response.Value == null) + throw new RequestFailedException(response.GetRawResponse()); + return Response.FromValue(new AutomationAccountPowerShell72ModuleResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Retrieve the module identified by module name. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/powerShell72Modules/{moduleName} + /// + /// + /// Operation Id + /// PowerShell72Module_Get + /// + /// + /// Default Api Version + /// 2023-11-01 + /// + /// + /// Resource + /// + /// + /// + /// + /// The name of module. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + public virtual Response Get(string moduleName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(moduleName, nameof(moduleName)); + + using var scope = _automationAccountPowerShell72ModulePowerShell72ModuleClientDiagnostics.CreateScope("AutomationAccountPowerShell72ModuleCollection.Get"); + scope.Start(); + try + { + var response = _automationAccountPowerShell72ModulePowerShell72ModuleRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, moduleName, cancellationToken); + if (response.Value == null) + throw new RequestFailedException(response.GetRawResponse()); + return Response.FromValue(new AutomationAccountPowerShell72ModuleResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Retrieve a list of PowerShell72 modules. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/powerShell72Modules + /// + /// + /// Operation Id + /// PowerShell72Module_ListByAutomationAccount + /// + /// + /// Default Api Version + /// 2023-11-01 + /// + /// + /// Resource + /// + /// + /// + /// + /// The cancellation token to use. + /// An async collection of that may take multiple service requests to iterate over. + public virtual AsyncPageable GetAllAsync(CancellationToken cancellationToken = default) + { + HttpMessage FirstPageRequest(int? pageSizeHint) => _automationAccountPowerShell72ModulePowerShell72ModuleRestClient.CreateListByAutomationAccountRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _automationAccountPowerShell72ModulePowerShell72ModuleRestClient.CreateListByAutomationAccountNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name); + return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => new AutomationAccountPowerShell72ModuleResource(Client, AutomationModuleData.DeserializeAutomationModuleData(e)), _automationAccountPowerShell72ModulePowerShell72ModuleClientDiagnostics, Pipeline, "AutomationAccountPowerShell72ModuleCollection.GetAll", "value", "nextLink", cancellationToken); + } + + /// + /// Retrieve a list of PowerShell72 modules. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/powerShell72Modules + /// + /// + /// Operation Id + /// PowerShell72Module_ListByAutomationAccount + /// + /// + /// Default Api Version + /// 2023-11-01 + /// + /// + /// Resource + /// + /// + /// + /// + /// The cancellation token to use. + /// A collection of that may take multiple service requests to iterate over. + public virtual Pageable GetAll(CancellationToken cancellationToken = default) + { + HttpMessage FirstPageRequest(int? pageSizeHint) => _automationAccountPowerShell72ModulePowerShell72ModuleRestClient.CreateListByAutomationAccountRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _automationAccountPowerShell72ModulePowerShell72ModuleRestClient.CreateListByAutomationAccountNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name); + return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new AutomationAccountPowerShell72ModuleResource(Client, AutomationModuleData.DeserializeAutomationModuleData(e)), _automationAccountPowerShell72ModulePowerShell72ModuleClientDiagnostics, Pipeline, "AutomationAccountPowerShell72ModuleCollection.GetAll", "value", "nextLink", cancellationToken); + } + + /// + /// Checks to see if the resource exists in azure. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/powerShell72Modules/{moduleName} + /// + /// + /// Operation Id + /// PowerShell72Module_Get + /// + /// + /// Default Api Version + /// 2023-11-01 + /// + /// + /// Resource + /// + /// + /// + /// + /// The name of module. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + public virtual async Task> ExistsAsync(string moduleName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(moduleName, nameof(moduleName)); + + using var scope = _automationAccountPowerShell72ModulePowerShell72ModuleClientDiagnostics.CreateScope("AutomationAccountPowerShell72ModuleCollection.Exists"); + scope.Start(); + try + { + var response = await _automationAccountPowerShell72ModulePowerShell72ModuleRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, moduleName, 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.Automation/automationAccounts/{automationAccountName}/powerShell72Modules/{moduleName} + /// + /// + /// Operation Id + /// PowerShell72Module_Get + /// + /// + /// Default Api Version + /// 2023-11-01 + /// + /// + /// Resource + /// + /// + /// + /// + /// The name of module. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + public virtual Response Exists(string moduleName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(moduleName, nameof(moduleName)); + + using var scope = _automationAccountPowerShell72ModulePowerShell72ModuleClientDiagnostics.CreateScope("AutomationAccountPowerShell72ModuleCollection.Exists"); + scope.Start(); + try + { + var response = _automationAccountPowerShell72ModulePowerShell72ModuleRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, moduleName, cancellationToken: cancellationToken); + return Response.FromValue(response.Value != null, response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Tries to get details for this resource from the service. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/powerShell72Modules/{moduleName} + /// + /// + /// Operation Id + /// PowerShell72Module_Get + /// + /// + /// Default Api Version + /// 2023-11-01 + /// + /// + /// Resource + /// + /// + /// + /// + /// The name of module. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + public virtual async Task> GetIfExistsAsync(string moduleName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(moduleName, nameof(moduleName)); + + using var scope = _automationAccountPowerShell72ModulePowerShell72ModuleClientDiagnostics.CreateScope("AutomationAccountPowerShell72ModuleCollection.GetIfExists"); + scope.Start(); + try + { + var response = await _automationAccountPowerShell72ModulePowerShell72ModuleRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, moduleName, cancellationToken: cancellationToken).ConfigureAwait(false); + if (response.Value == null) + return new NoValueResponse(response.GetRawResponse()); + return Response.FromValue(new AutomationAccountPowerShell72ModuleResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Tries to get details for this resource from the service. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/powerShell72Modules/{moduleName} + /// + /// + /// Operation Id + /// PowerShell72Module_Get + /// + /// + /// Default Api Version + /// 2023-11-01 + /// + /// + /// Resource + /// + /// + /// + /// + /// The name of module. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + public virtual NullableResponse GetIfExists(string moduleName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(moduleName, nameof(moduleName)); + + using var scope = _automationAccountPowerShell72ModulePowerShell72ModuleClientDiagnostics.CreateScope("AutomationAccountPowerShell72ModuleCollection.GetIfExists"); + scope.Start(); + try + { + var response = _automationAccountPowerShell72ModulePowerShell72ModuleRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, moduleName, cancellationToken: cancellationToken); + if (response.Value == null) + return new NoValueResponse(response.GetRawResponse()); + return Response.FromValue(new AutomationAccountPowerShell72ModuleResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetAll().GetEnumerator(); + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetAll().GetEnumerator(); + } + + IAsyncEnumerator IAsyncEnumerable.GetAsyncEnumerator(CancellationToken cancellationToken) + { + return GetAllAsync(cancellationToken: cancellationToken).GetAsyncEnumerator(cancellationToken); + } + } +} diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationAccountPowerShell72ModuleResource.Serialization.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationAccountPowerShell72ModuleResource.Serialization.cs new file mode 100644 index 000000000000..d134530268e1 --- /dev/null +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationAccountPowerShell72ModuleResource.Serialization.cs @@ -0,0 +1,26 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Automation +{ + public partial class AutomationAccountPowerShell72ModuleResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) => ((IJsonModel)Data).Write(writer, options); + + AutomationModuleData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => ((IJsonModel)Data).Create(ref reader, options); + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) => ModelReaderWriter.Write(Data, options); + + AutomationModuleData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => ModelReaderWriter.Read(data, options); + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => ((IPersistableModel)Data).GetFormatFromOptions(options); + } +} diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationAccountPowerShell72ModuleResource.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationAccountPowerShell72ModuleResource.cs new file mode 100644 index 000000000000..755e37704e7d --- /dev/null +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationAccountPowerShell72ModuleResource.cs @@ -0,0 +1,703 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; +using System.Globalization; +using System.Threading; +using System.Threading.Tasks; +using Azure.Core; +using Azure.Core.Pipeline; +using Azure.ResourceManager.Automation.Models; + +namespace Azure.ResourceManager.Automation +{ + /// + /// A Class representing an AutomationAccountPowerShell72Module along with the instance operations that can be performed on it. + /// If you have a you can construct an + /// from an instance of using the GetAutomationAccountPowerShell72ModuleResource method. + /// Otherwise you can get one from its parent resource using the GetAutomationAccountPowerShell72Module method. + /// + public partial class AutomationAccountPowerShell72ModuleResource : ArmResource + { + /// Generate the resource identifier of a instance. + /// The subscriptionId. + /// The resourceGroupName. + /// The automationAccountName. + /// The moduleName. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string automationAccountName, string moduleName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/powerShell72Modules/{moduleName}"; + return new ResourceIdentifier(resourceId); + } + + private readonly ClientDiagnostics _automationAccountPowerShell72ModulePowerShell72ModuleClientDiagnostics; + private readonly PowerShell72ModuleRestOperations _automationAccountPowerShell72ModulePowerShell72ModuleRestClient; + private readonly AutomationModuleData _data; + + /// Gets the resource type for the operations. + public static readonly ResourceType ResourceType = "Microsoft.Automation/automationAccounts/powerShell72Modules"; + + /// Initializes a new instance of the class for mocking. + protected AutomationAccountPowerShell72ModuleResource() + { + } + + /// Initializes a new instance of the class. + /// The client parameters to use in these operations. + /// The resource that is the target of operations. + internal AutomationAccountPowerShell72ModuleResource(ArmClient client, AutomationModuleData 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 AutomationAccountPowerShell72ModuleResource(ArmClient client, ResourceIdentifier id) : base(client, id) + { + _automationAccountPowerShell72ModulePowerShell72ModuleClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.Automation", ResourceType.Namespace, Diagnostics); + TryGetApiVersion(ResourceType, out string automationAccountPowerShell72ModulePowerShell72ModuleApiVersion); + _automationAccountPowerShell72ModulePowerShell72ModuleRestClient = new PowerShell72ModuleRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, automationAccountPowerShell72ModulePowerShell72ModuleApiVersion); +#if DEBUG + ValidateResourceId(Id); +#endif + } + + /// Gets whether or not the current instance has data. + public virtual bool HasData { get; } + + /// Gets the data representing this Feature. + /// Throws if there is no data loaded in the current instance. + public virtual AutomationModuleData Data + { + get + { + if (!HasData) + throw new InvalidOperationException("The current instance does not have data, you must call Get first."); + return _data; + } + } + + internal static void ValidateResourceId(ResourceIdentifier id) + { + if (id.ResourceType != ResourceType) + throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "Invalid resource type {0} expected {1}", id.ResourceType, ResourceType), nameof(id)); + } + + /// + /// Retrieve the module identified by module name. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/powerShell72Modules/{moduleName} + /// + /// + /// Operation Id + /// PowerShell72Module_Get + /// + /// + /// Default Api Version + /// 2023-11-01 + /// + /// + /// Resource + /// + /// + /// + /// + /// The cancellation token to use. + public virtual async Task> GetAsync(CancellationToken cancellationToken = default) + { + using var scope = _automationAccountPowerShell72ModulePowerShell72ModuleClientDiagnostics.CreateScope("AutomationAccountPowerShell72ModuleResource.Get"); + scope.Start(); + try + { + var response = await _automationAccountPowerShell72ModulePowerShell72ModuleRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); + if (response.Value == null) + throw new RequestFailedException(response.GetRawResponse()); + return Response.FromValue(new AutomationAccountPowerShell72ModuleResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Retrieve the module identified by module name. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/powerShell72Modules/{moduleName} + /// + /// + /// Operation Id + /// PowerShell72Module_Get + /// + /// + /// Default Api Version + /// 2023-11-01 + /// + /// + /// Resource + /// + /// + /// + /// + /// The cancellation token to use. + public virtual Response Get(CancellationToken cancellationToken = default) + { + using var scope = _automationAccountPowerShell72ModulePowerShell72ModuleClientDiagnostics.CreateScope("AutomationAccountPowerShell72ModuleResource.Get"); + scope.Start(); + try + { + var response = _automationAccountPowerShell72ModulePowerShell72ModuleRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); + if (response.Value == null) + throw new RequestFailedException(response.GetRawResponse()); + return Response.FromValue(new AutomationAccountPowerShell72ModuleResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Delete the module by name. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/powerShell72Modules/{moduleName} + /// + /// + /// Operation Id + /// PowerShell72Module_Delete + /// + /// + /// Default Api Version + /// 2023-11-01 + /// + /// + /// Resource + /// + /// + /// + /// + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// The cancellation token to use. + public virtual async Task DeleteAsync(WaitUntil waitUntil, CancellationToken cancellationToken = default) + { + using var scope = _automationAccountPowerShell72ModulePowerShell72ModuleClientDiagnostics.CreateScope("AutomationAccountPowerShell72ModuleResource.Delete"); + scope.Start(); + try + { + var response = await _automationAccountPowerShell72ModulePowerShell72ModuleRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); + var uri = _automationAccountPowerShell72ModulePowerShell72ModuleRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), "None", null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AutomationArmOperation(response, rehydrationToken); + if (waitUntil == WaitUntil.Completed) + await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Delete the module by name. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/powerShell72Modules/{moduleName} + /// + /// + /// Operation Id + /// PowerShell72Module_Delete + /// + /// + /// Default Api Version + /// 2023-11-01 + /// + /// + /// Resource + /// + /// + /// + /// + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// The cancellation token to use. + public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancellationToken = default) + { + using var scope = _automationAccountPowerShell72ModulePowerShell72ModuleClientDiagnostics.CreateScope("AutomationAccountPowerShell72ModuleResource.Delete"); + scope.Start(); + try + { + var response = _automationAccountPowerShell72ModulePowerShell72ModuleRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); + var uri = _automationAccountPowerShell72ModulePowerShell72ModuleRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), "None", null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AutomationArmOperation(response, rehydrationToken); + if (waitUntil == WaitUntil.Completed) + operation.WaitForCompletionResponse(cancellationToken); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Update the module identified by module name. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/powerShell72Modules/{moduleName} + /// + /// + /// Operation Id + /// PowerShell72Module_Update + /// + /// + /// Default Api Version + /// 2023-11-01 + /// + /// + /// Resource + /// + /// + /// + /// + /// The update parameters for module. + /// The cancellation token to use. + /// is null. + public virtual async Task> UpdateAsync(ModuleUpdateParameters moduleUpdateParameters, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(moduleUpdateParameters, nameof(moduleUpdateParameters)); + + using var scope = _automationAccountPowerShell72ModulePowerShell72ModuleClientDiagnostics.CreateScope("AutomationAccountPowerShell72ModuleResource.Update"); + scope.Start(); + try + { + var response = await _automationAccountPowerShell72ModulePowerShell72ModuleRestClient.UpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, moduleUpdateParameters, cancellationToken).ConfigureAwait(false); + return Response.FromValue(new AutomationAccountPowerShell72ModuleResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Update the module identified by module name. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/powerShell72Modules/{moduleName} + /// + /// + /// Operation Id + /// PowerShell72Module_Update + /// + /// + /// Default Api Version + /// 2023-11-01 + /// + /// + /// Resource + /// + /// + /// + /// + /// The update parameters for module. + /// The cancellation token to use. + /// is null. + public virtual Response Update(ModuleUpdateParameters moduleUpdateParameters, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(moduleUpdateParameters, nameof(moduleUpdateParameters)); + + using var scope = _automationAccountPowerShell72ModulePowerShell72ModuleClientDiagnostics.CreateScope("AutomationAccountPowerShell72ModuleResource.Update"); + scope.Start(); + try + { + var response = _automationAccountPowerShell72ModulePowerShell72ModuleRestClient.Update(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, moduleUpdateParameters, cancellationToken); + return Response.FromValue(new AutomationAccountPowerShell72ModuleResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Add a tag to the current resource. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/powerShell72Modules/{moduleName} + /// + /// + /// Operation Id + /// PowerShell72Module_Get + /// + /// + /// Default Api Version + /// 2023-11-01 + /// + /// + /// Resource + /// + /// + /// + /// + /// The key for the tag. + /// The value for the tag. + /// The cancellation token to use. + /// or is null. + public virtual async Task> AddTagAsync(string key, string value, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(key, nameof(key)); + Argument.AssertNotNull(value, nameof(value)); + + using var scope = _automationAccountPowerShell72ModulePowerShell72ModuleClientDiagnostics.CreateScope("AutomationAccountPowerShell72ModuleResource.AddTag"); + scope.Start(); + try + { + if (await CanUseTagResourceAsync(cancellationToken: cancellationToken).ConfigureAwait(false)) + { + var originalTags = await GetTagResource().GetAsync(cancellationToken).ConfigureAwait(false); + originalTags.Value.Data.TagValues[key] = value; + await GetTagResource().CreateOrUpdateAsync(WaitUntil.Completed, originalTags.Value.Data, cancellationToken: cancellationToken).ConfigureAwait(false); + var originalResponse = await _automationAccountPowerShell72ModulePowerShell72ModuleRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); + return Response.FromValue(new AutomationAccountPowerShell72ModuleResource(Client, originalResponse.Value), originalResponse.GetRawResponse()); + } + else + { + var current = (await GetAsync(cancellationToken: cancellationToken).ConfigureAwait(false)).Value.Data; + var patch = new ModuleUpdateParameters(); + foreach (var tag in current.Tags) + { + patch.Tags.Add(tag); + } + patch.Tags[key] = value; + var result = await UpdateAsync(patch, cancellationToken: cancellationToken).ConfigureAwait(false); + return result; + } + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Add a tag to the current resource. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/powerShell72Modules/{moduleName} + /// + /// + /// Operation Id + /// PowerShell72Module_Get + /// + /// + /// Default Api Version + /// 2023-11-01 + /// + /// + /// Resource + /// + /// + /// + /// + /// The key for the tag. + /// The value for the tag. + /// The cancellation token to use. + /// or is null. + public virtual Response AddTag(string key, string value, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(key, nameof(key)); + Argument.AssertNotNull(value, nameof(value)); + + using var scope = _automationAccountPowerShell72ModulePowerShell72ModuleClientDiagnostics.CreateScope("AutomationAccountPowerShell72ModuleResource.AddTag"); + scope.Start(); + try + { + if (CanUseTagResource(cancellationToken: cancellationToken)) + { + var originalTags = GetTagResource().Get(cancellationToken); + originalTags.Value.Data.TagValues[key] = value; + GetTagResource().CreateOrUpdate(WaitUntil.Completed, originalTags.Value.Data, cancellationToken: cancellationToken); + var originalResponse = _automationAccountPowerShell72ModulePowerShell72ModuleRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); + return Response.FromValue(new AutomationAccountPowerShell72ModuleResource(Client, originalResponse.Value), originalResponse.GetRawResponse()); + } + else + { + var current = Get(cancellationToken: cancellationToken).Value.Data; + var patch = new ModuleUpdateParameters(); + foreach (var tag in current.Tags) + { + patch.Tags.Add(tag); + } + patch.Tags[key] = value; + var result = Update(patch, cancellationToken: cancellationToken); + return result; + } + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Replace the tags on the resource with the given set. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/powerShell72Modules/{moduleName} + /// + /// + /// Operation Id + /// PowerShell72Module_Get + /// + /// + /// Default Api Version + /// 2023-11-01 + /// + /// + /// Resource + /// + /// + /// + /// + /// The set of tags to use as replacement. + /// The cancellation token to use. + /// is null. + public virtual async Task> SetTagsAsync(IDictionary tags, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(tags, nameof(tags)); + + using var scope = _automationAccountPowerShell72ModulePowerShell72ModuleClientDiagnostics.CreateScope("AutomationAccountPowerShell72ModuleResource.SetTags"); + scope.Start(); + try + { + if (await CanUseTagResourceAsync(cancellationToken: cancellationToken).ConfigureAwait(false)) + { + await GetTagResource().DeleteAsync(WaitUntil.Completed, cancellationToken: cancellationToken).ConfigureAwait(false); + var originalTags = await GetTagResource().GetAsync(cancellationToken).ConfigureAwait(false); + originalTags.Value.Data.TagValues.ReplaceWith(tags); + await GetTagResource().CreateOrUpdateAsync(WaitUntil.Completed, originalTags.Value.Data, cancellationToken: cancellationToken).ConfigureAwait(false); + var originalResponse = await _automationAccountPowerShell72ModulePowerShell72ModuleRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); + return Response.FromValue(new AutomationAccountPowerShell72ModuleResource(Client, originalResponse.Value), originalResponse.GetRawResponse()); + } + else + { + var current = (await GetAsync(cancellationToken: cancellationToken).ConfigureAwait(false)).Value.Data; + var patch = new ModuleUpdateParameters(); + patch.Tags.ReplaceWith(tags); + var result = await UpdateAsync(patch, cancellationToken: cancellationToken).ConfigureAwait(false); + return result; + } + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Replace the tags on the resource with the given set. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/powerShell72Modules/{moduleName} + /// + /// + /// Operation Id + /// PowerShell72Module_Get + /// + /// + /// Default Api Version + /// 2023-11-01 + /// + /// + /// Resource + /// + /// + /// + /// + /// The set of tags to use as replacement. + /// The cancellation token to use. + /// is null. + public virtual Response SetTags(IDictionary tags, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(tags, nameof(tags)); + + using var scope = _automationAccountPowerShell72ModulePowerShell72ModuleClientDiagnostics.CreateScope("AutomationAccountPowerShell72ModuleResource.SetTags"); + scope.Start(); + try + { + if (CanUseTagResource(cancellationToken: cancellationToken)) + { + GetTagResource().Delete(WaitUntil.Completed, cancellationToken: cancellationToken); + var originalTags = GetTagResource().Get(cancellationToken); + originalTags.Value.Data.TagValues.ReplaceWith(tags); + GetTagResource().CreateOrUpdate(WaitUntil.Completed, originalTags.Value.Data, cancellationToken: cancellationToken); + var originalResponse = _automationAccountPowerShell72ModulePowerShell72ModuleRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); + return Response.FromValue(new AutomationAccountPowerShell72ModuleResource(Client, originalResponse.Value), originalResponse.GetRawResponse()); + } + else + { + var current = Get(cancellationToken: cancellationToken).Value.Data; + var patch = new ModuleUpdateParameters(); + patch.Tags.ReplaceWith(tags); + var result = Update(patch, cancellationToken: cancellationToken); + return result; + } + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Removes a tag by key from the resource. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/powerShell72Modules/{moduleName} + /// + /// + /// Operation Id + /// PowerShell72Module_Get + /// + /// + /// Default Api Version + /// 2023-11-01 + /// + /// + /// Resource + /// + /// + /// + /// + /// The key for the tag. + /// The cancellation token to use. + /// is null. + public virtual async Task> RemoveTagAsync(string key, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(key, nameof(key)); + + using var scope = _automationAccountPowerShell72ModulePowerShell72ModuleClientDiagnostics.CreateScope("AutomationAccountPowerShell72ModuleResource.RemoveTag"); + scope.Start(); + try + { + if (await CanUseTagResourceAsync(cancellationToken: cancellationToken).ConfigureAwait(false)) + { + var originalTags = await GetTagResource().GetAsync(cancellationToken).ConfigureAwait(false); + originalTags.Value.Data.TagValues.Remove(key); + await GetTagResource().CreateOrUpdateAsync(WaitUntil.Completed, originalTags.Value.Data, cancellationToken: cancellationToken).ConfigureAwait(false); + var originalResponse = await _automationAccountPowerShell72ModulePowerShell72ModuleRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); + return Response.FromValue(new AutomationAccountPowerShell72ModuleResource(Client, originalResponse.Value), originalResponse.GetRawResponse()); + } + else + { + var current = (await GetAsync(cancellationToken: cancellationToken).ConfigureAwait(false)).Value.Data; + var patch = new ModuleUpdateParameters(); + foreach (var tag in current.Tags) + { + patch.Tags.Add(tag); + } + patch.Tags.Remove(key); + var result = await UpdateAsync(patch, cancellationToken: cancellationToken).ConfigureAwait(false); + return result; + } + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Removes a tag by key from the resource. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/powerShell72Modules/{moduleName} + /// + /// + /// Operation Id + /// PowerShell72Module_Get + /// + /// + /// Default Api Version + /// 2023-11-01 + /// + /// + /// Resource + /// + /// + /// + /// + /// The key for the tag. + /// The cancellation token to use. + /// is null. + public virtual Response RemoveTag(string key, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(key, nameof(key)); + + using var scope = _automationAccountPowerShell72ModulePowerShell72ModuleClientDiagnostics.CreateScope("AutomationAccountPowerShell72ModuleResource.RemoveTag"); + scope.Start(); + try + { + if (CanUseTagResource(cancellationToken: cancellationToken)) + { + var originalTags = GetTagResource().Get(cancellationToken); + originalTags.Value.Data.TagValues.Remove(key); + GetTagResource().CreateOrUpdate(WaitUntil.Completed, originalTags.Value.Data, cancellationToken: cancellationToken); + var originalResponse = _automationAccountPowerShell72ModulePowerShell72ModuleRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); + return Response.FromValue(new AutomationAccountPowerShell72ModuleResource(Client, originalResponse.Value), originalResponse.GetRawResponse()); + } + else + { + var current = Get(cancellationToken: cancellationToken).Value.Data; + var patch = new ModuleUpdateParameters(); + foreach (var tag in current.Tags) + { + patch.Tags.Add(tag); + } + patch.Tags.Remove(key); + var result = Update(patch, cancellationToken: cancellationToken); + return result; + } + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + } +} diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationAccountPython2PackageCollection.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationAccountPython2PackageCollection.cs index d06b4e836b74..8295aae91c69 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationAccountPython2PackageCollection.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationAccountPython2PackageCollection.cs @@ -65,7 +65,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2023-11-01 /// /// /// Resource @@ -75,21 +75,21 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// 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 name of python package. - /// The create or update parameters for python package. + /// The create or update parameters for python package. /// 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 packageName, AutomationAccountPython2PackageCreateOrUpdateContent content, CancellationToken cancellationToken = default) + /// or is null. + public virtual async Task> CreateOrUpdateAsync(WaitUntil waitUntil, string packageName, PythonPackageCreateParameters pythonPackageCreateParameters, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(packageName, nameof(packageName)); - Argument.AssertNotNull(content, nameof(content)); + Argument.AssertNotNull(pythonPackageCreateParameters, nameof(pythonPackageCreateParameters)); using var scope = _automationAccountPython2PackagePython2PackageClientDiagnostics.CreateScope("AutomationAccountPython2PackageCollection.CreateOrUpdate"); scope.Start(); try { - var response = await _automationAccountPython2PackagePython2PackageRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, packageName, content, cancellationToken).ConfigureAwait(false); - var uri = _automationAccountPython2PackagePython2PackageRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, packageName, content); + var response = await _automationAccountPython2PackagePython2PackageRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, packageName, pythonPackageCreateParameters, cancellationToken).ConfigureAwait(false); + var uri = _automationAccountPython2PackagePython2PackageRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, packageName, pythonPackageCreateParameters); var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), "None", null, OperationFinalStateVia.OriginalUri.ToString()); var operation = new AutomationArmOperation(Response.FromValue(new AutomationAccountPython2PackageResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) @@ -116,7 +116,7 @@ public virtual async Task> /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2023-11-01 /// /// /// Resource @@ -126,21 +126,21 @@ public virtual async Task> /// /// 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 name of python package. - /// The create or update parameters for python package. + /// The create or update parameters for python package. /// 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 packageName, AutomationAccountPython2PackageCreateOrUpdateContent content, CancellationToken cancellationToken = default) + /// or is null. + public virtual ArmOperation CreateOrUpdate(WaitUntil waitUntil, string packageName, PythonPackageCreateParameters pythonPackageCreateParameters, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(packageName, nameof(packageName)); - Argument.AssertNotNull(content, nameof(content)); + Argument.AssertNotNull(pythonPackageCreateParameters, nameof(pythonPackageCreateParameters)); using var scope = _automationAccountPython2PackagePython2PackageClientDiagnostics.CreateScope("AutomationAccountPython2PackageCollection.CreateOrUpdate"); scope.Start(); try { - var response = _automationAccountPython2PackagePython2PackageRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, packageName, content, cancellationToken); - var uri = _automationAccountPython2PackagePython2PackageRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, packageName, content); + var response = _automationAccountPython2PackagePython2PackageRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, packageName, pythonPackageCreateParameters, cancellationToken); + var uri = _automationAccountPython2PackagePython2PackageRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, packageName, pythonPackageCreateParameters); var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), "None", null, OperationFinalStateVia.OriginalUri.ToString()); var operation = new AutomationArmOperation(Response.FromValue(new AutomationAccountPython2PackageResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) @@ -167,7 +167,7 @@ public virtual ArmOperation CreateOrUpd /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2023-11-01 /// /// /// Resource @@ -212,7 +212,7 @@ public virtual async Task> Get /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2023-11-01 /// /// /// Resource @@ -257,7 +257,7 @@ public virtual Response Get(string pack /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2023-11-01 /// /// /// Resource @@ -287,7 +287,7 @@ public virtual AsyncPageable GetAllAsyn /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2023-11-01 /// /// /// Resource @@ -317,7 +317,7 @@ public virtual Pageable GetAll(Cancella /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2023-11-01 /// /// /// Resource @@ -360,7 +360,7 @@ public virtual async Task> ExistsAsync(string packageName, Cancel /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2023-11-01 /// /// /// Resource @@ -403,7 +403,7 @@ public virtual Response Exists(string packageName, CancellationToken cance /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2023-11-01 /// /// /// Resource @@ -448,7 +448,7 @@ public virtual async Task /// /// Default Api Version - /// 2020-01-13-preview + /// 2023-11-01 /// /// /// Resource diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationAccountPython2PackageResource.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationAccountPython2PackageResource.cs index 762ecf713f55..a8d9e281d674 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationAccountPython2PackageResource.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationAccountPython2PackageResource.cs @@ -103,7 +103,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2023-11-01 /// /// /// Resource @@ -143,7 +143,7 @@ public virtual async Task> Get /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2023-11-01 /// /// /// Resource @@ -183,7 +183,7 @@ public virtual Response Get(Cancellatio /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2023-11-01 /// /// /// Resource @@ -227,7 +227,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2023-11-01 /// /// /// Resource @@ -271,7 +271,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2023-11-01 /// /// /// Resource @@ -279,18 +279,18 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// - /// The update parameters for python package. + /// The update parameters for python package. /// The cancellation token to use. - /// is null. - public virtual async Task> UpdateAsync(AutomationAccountPython2PackagePatch patch, CancellationToken cancellationToken = default) + /// is null. + public virtual async Task> UpdateAsync(PythonPackageUpdateParameters pythonPackageUpdateParameters, CancellationToken cancellationToken = default) { - Argument.AssertNotNull(patch, nameof(patch)); + Argument.AssertNotNull(pythonPackageUpdateParameters, nameof(pythonPackageUpdateParameters)); using var scope = _automationAccountPython2PackagePython2PackageClientDiagnostics.CreateScope("AutomationAccountPython2PackageResource.Update"); scope.Start(); try { - var response = await _automationAccountPython2PackagePython2PackageRestClient.UpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, patch, cancellationToken).ConfigureAwait(false); + var response = await _automationAccountPython2PackagePython2PackageRestClient.UpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, pythonPackageUpdateParameters, cancellationToken).ConfigureAwait(false); return Response.FromValue(new AutomationAccountPython2PackageResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) @@ -313,7 +313,7 @@ public virtual async Task> Upd /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2023-11-01 /// /// /// Resource @@ -321,18 +321,18 @@ public virtual async Task> Upd /// /// /// - /// The update parameters for python package. + /// The update parameters for python package. /// The cancellation token to use. - /// is null. - public virtual Response Update(AutomationAccountPython2PackagePatch patch, CancellationToken cancellationToken = default) + /// is null. + public virtual Response Update(PythonPackageUpdateParameters pythonPackageUpdateParameters, CancellationToken cancellationToken = default) { - Argument.AssertNotNull(patch, nameof(patch)); + Argument.AssertNotNull(pythonPackageUpdateParameters, nameof(pythonPackageUpdateParameters)); using var scope = _automationAccountPython2PackagePython2PackageClientDiagnostics.CreateScope("AutomationAccountPython2PackageResource.Update"); scope.Start(); try { - var response = _automationAccountPython2PackagePython2PackageRestClient.Update(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, patch, cancellationToken); + var response = _automationAccountPython2PackagePython2PackageRestClient.Update(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, pythonPackageUpdateParameters, cancellationToken); return Response.FromValue(new AutomationAccountPython2PackageResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) @@ -355,7 +355,7 @@ public virtual Response Update(Automati /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2023-11-01 /// /// /// Resource @@ -387,7 +387,7 @@ public virtual async Task> Add else { var current = (await GetAsync(cancellationToken: cancellationToken).ConfigureAwait(false)).Value.Data; - var patch = new AutomationAccountPython2PackagePatch(); + var patch = new PythonPackageUpdateParameters(); foreach (var tag in current.Tags) { patch.Tags.Add(tag); @@ -417,7 +417,7 @@ public virtual async Task> Add /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2023-11-01 /// /// /// Resource @@ -449,7 +449,7 @@ public virtual Response AddTag(string k else { var current = Get(cancellationToken: cancellationToken).Value.Data; - var patch = new AutomationAccountPython2PackagePatch(); + var patch = new PythonPackageUpdateParameters(); foreach (var tag in current.Tags) { patch.Tags.Add(tag); @@ -479,7 +479,7 @@ public virtual Response AddTag(string k /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2023-11-01 /// /// /// Resource @@ -510,7 +510,7 @@ public virtual async Task> Set else { var current = (await GetAsync(cancellationToken: cancellationToken).ConfigureAwait(false)).Value.Data; - var patch = new AutomationAccountPython2PackagePatch(); + var patch = new PythonPackageUpdateParameters(); patch.Tags.ReplaceWith(tags); var result = await UpdateAsync(patch, cancellationToken: cancellationToken).ConfigureAwait(false); return result; @@ -536,7 +536,7 @@ public virtual async Task> Set /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2023-11-01 /// /// /// Resource @@ -567,7 +567,7 @@ public virtual Response SetTags(IDictio else { var current = Get(cancellationToken: cancellationToken).Value.Data; - var patch = new AutomationAccountPython2PackagePatch(); + var patch = new PythonPackageUpdateParameters(); patch.Tags.ReplaceWith(tags); var result = Update(patch, cancellationToken: cancellationToken); return result; @@ -593,7 +593,7 @@ public virtual Response SetTags(IDictio /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2023-11-01 /// /// /// Resource @@ -623,7 +623,7 @@ public virtual async Task> Rem else { var current = (await GetAsync(cancellationToken: cancellationToken).ConfigureAwait(false)).Value.Data; - var patch = new AutomationAccountPython2PackagePatch(); + var patch = new PythonPackageUpdateParameters(); foreach (var tag in current.Tags) { patch.Tags.Add(tag); @@ -653,7 +653,7 @@ public virtual async Task> Rem /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2023-11-01 /// /// /// Resource @@ -683,7 +683,7 @@ public virtual Response RemoveTag(strin else { var current = Get(cancellationToken: cancellationToken).Value.Data; - var patch = new AutomationAccountPython2PackagePatch(); + var patch = new PythonPackageUpdateParameters(); foreach (var tag in current.Tags) { patch.Tags.Add(tag); diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationAccountPython3PackageCollection.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationAccountPython3PackageCollection.cs new file mode 100644 index 000000000000..d430b685f1be --- /dev/null +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationAccountPython3PackageCollection.cs @@ -0,0 +1,498 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Globalization; +using System.Threading; +using System.Threading.Tasks; +using Autorest.CSharp.Core; +using Azure.Core; +using Azure.Core.Pipeline; +using Azure.ResourceManager.Automation.Models; + +namespace Azure.ResourceManager.Automation +{ + /// + /// A class representing a collection of and their operations. + /// Each in the collection will belong to the same instance of . + /// To get an instance call the GetAutomationAccountPython3Packages method from an instance of . + /// + public partial class AutomationAccountPython3PackageCollection : ArmCollection, IEnumerable, IAsyncEnumerable + { + private readonly ClientDiagnostics _automationAccountPython3PackagePython3PackageClientDiagnostics; + private readonly Python3PackageRestOperations _automationAccountPython3PackagePython3PackageRestClient; + + /// Initializes a new instance of the class for mocking. + protected AutomationAccountPython3PackageCollection() + { + } + + /// 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 AutomationAccountPython3PackageCollection(ArmClient client, ResourceIdentifier id) : base(client, id) + { + _automationAccountPython3PackagePython3PackageClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.Automation", AutomationAccountPython3PackageResource.ResourceType.Namespace, Diagnostics); + TryGetApiVersion(AutomationAccountPython3PackageResource.ResourceType, out string automationAccountPython3PackagePython3PackageApiVersion); + _automationAccountPython3PackagePython3PackageRestClient = new Python3PackageRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, automationAccountPython3PackagePython3PackageApiVersion); +#if DEBUG + ValidateResourceId(Id); +#endif + } + + internal static void ValidateResourceId(ResourceIdentifier id) + { + if (id.ResourceType != AutomationAccountResource.ResourceType) + throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "Invalid resource type {0} expected {1}", id.ResourceType, AutomationAccountResource.ResourceType), nameof(id)); + } + + /// + /// Create or Update the python 3 package identified by package name. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/python3Packages/{packageName} + /// + /// + /// Operation Id + /// Python3Package_CreateOrUpdate + /// + /// + /// Default Api Version + /// 2023-11-01 + /// + /// + /// Resource + /// + /// + /// + /// + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// The name of python package. + /// The create or update parameters for python package. + /// 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 packageName, PythonPackageCreateParameters pythonPackageCreateParameters, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(packageName, nameof(packageName)); + Argument.AssertNotNull(pythonPackageCreateParameters, nameof(pythonPackageCreateParameters)); + + using var scope = _automationAccountPython3PackagePython3PackageClientDiagnostics.CreateScope("AutomationAccountPython3PackageCollection.CreateOrUpdate"); + scope.Start(); + try + { + var response = await _automationAccountPython3PackagePython3PackageRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, packageName, pythonPackageCreateParameters, cancellationToken).ConfigureAwait(false); + var uri = _automationAccountPython3PackagePython3PackageRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, packageName, pythonPackageCreateParameters); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), "None", null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AutomationArmOperation(Response.FromValue(new AutomationAccountPython3PackageResource(Client, response), response.GetRawResponse()), rehydrationToken); + if (waitUntil == WaitUntil.Completed) + await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Create or Update the python 3 package identified by package name. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/python3Packages/{packageName} + /// + /// + /// Operation Id + /// Python3Package_CreateOrUpdate + /// + /// + /// Default Api Version + /// 2023-11-01 + /// + /// + /// Resource + /// + /// + /// + /// + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// The name of python package. + /// The create or update parameters for python package. + /// 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 packageName, PythonPackageCreateParameters pythonPackageCreateParameters, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(packageName, nameof(packageName)); + Argument.AssertNotNull(pythonPackageCreateParameters, nameof(pythonPackageCreateParameters)); + + using var scope = _automationAccountPython3PackagePython3PackageClientDiagnostics.CreateScope("AutomationAccountPython3PackageCollection.CreateOrUpdate"); + scope.Start(); + try + { + var response = _automationAccountPython3PackagePython3PackageRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, packageName, pythonPackageCreateParameters, cancellationToken); + var uri = _automationAccountPython3PackagePython3PackageRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, packageName, pythonPackageCreateParameters); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), "None", null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AutomationArmOperation(Response.FromValue(new AutomationAccountPython3PackageResource(Client, response), response.GetRawResponse()), rehydrationToken); + if (waitUntil == WaitUntil.Completed) + operation.WaitForCompletion(cancellationToken); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Retrieve the python 3 package identified by package name. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/python3Packages/{packageName} + /// + /// + /// Operation Id + /// Python3Package_Get + /// + /// + /// Default Api Version + /// 2023-11-01 + /// + /// + /// Resource + /// + /// + /// + /// + /// The python package name. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + public virtual async Task> GetAsync(string packageName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(packageName, nameof(packageName)); + + using var scope = _automationAccountPython3PackagePython3PackageClientDiagnostics.CreateScope("AutomationAccountPython3PackageCollection.Get"); + scope.Start(); + try + { + var response = await _automationAccountPython3PackagePython3PackageRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, packageName, cancellationToken).ConfigureAwait(false); + if (response.Value == null) + throw new RequestFailedException(response.GetRawResponse()); + return Response.FromValue(new AutomationAccountPython3PackageResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Retrieve the python 3 package identified by package name. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/python3Packages/{packageName} + /// + /// + /// Operation Id + /// Python3Package_Get + /// + /// + /// Default Api Version + /// 2023-11-01 + /// + /// + /// Resource + /// + /// + /// + /// + /// The python package name. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + public virtual Response Get(string packageName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(packageName, nameof(packageName)); + + using var scope = _automationAccountPython3PackagePython3PackageClientDiagnostics.CreateScope("AutomationAccountPython3PackageCollection.Get"); + scope.Start(); + try + { + var response = _automationAccountPython3PackagePython3PackageRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, packageName, cancellationToken); + if (response.Value == null) + throw new RequestFailedException(response.GetRawResponse()); + return Response.FromValue(new AutomationAccountPython3PackageResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Retrieve a list of python 3 packages. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/python3Packages + /// + /// + /// Operation Id + /// Python3Package_ListByAutomationAccount + /// + /// + /// Default Api Version + /// 2023-11-01 + /// + /// + /// Resource + /// + /// + /// + /// + /// The cancellation token to use. + /// An async collection of that may take multiple service requests to iterate over. + public virtual AsyncPageable GetAllAsync(CancellationToken cancellationToken = default) + { + HttpMessage FirstPageRequest(int? pageSizeHint) => _automationAccountPython3PackagePython3PackageRestClient.CreateListByAutomationAccountRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _automationAccountPython3PackagePython3PackageRestClient.CreateListByAutomationAccountNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name); + return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => new AutomationAccountPython3PackageResource(Client, AutomationModuleData.DeserializeAutomationModuleData(e)), _automationAccountPython3PackagePython3PackageClientDiagnostics, Pipeline, "AutomationAccountPython3PackageCollection.GetAll", "value", "nextLink", cancellationToken); + } + + /// + /// Retrieve a list of python 3 packages. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/python3Packages + /// + /// + /// Operation Id + /// Python3Package_ListByAutomationAccount + /// + /// + /// Default Api Version + /// 2023-11-01 + /// + /// + /// Resource + /// + /// + /// + /// + /// The cancellation token to use. + /// A collection of that may take multiple service requests to iterate over. + public virtual Pageable GetAll(CancellationToken cancellationToken = default) + { + HttpMessage FirstPageRequest(int? pageSizeHint) => _automationAccountPython3PackagePython3PackageRestClient.CreateListByAutomationAccountRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _automationAccountPython3PackagePython3PackageRestClient.CreateListByAutomationAccountNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name); + return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new AutomationAccountPython3PackageResource(Client, AutomationModuleData.DeserializeAutomationModuleData(e)), _automationAccountPython3PackagePython3PackageClientDiagnostics, Pipeline, "AutomationAccountPython3PackageCollection.GetAll", "value", "nextLink", cancellationToken); + } + + /// + /// Checks to see if the resource exists in azure. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/python3Packages/{packageName} + /// + /// + /// Operation Id + /// Python3Package_Get + /// + /// + /// Default Api Version + /// 2023-11-01 + /// + /// + /// Resource + /// + /// + /// + /// + /// The python package name. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + public virtual async Task> ExistsAsync(string packageName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(packageName, nameof(packageName)); + + using var scope = _automationAccountPython3PackagePython3PackageClientDiagnostics.CreateScope("AutomationAccountPython3PackageCollection.Exists"); + scope.Start(); + try + { + var response = await _automationAccountPython3PackagePython3PackageRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, packageName, 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.Automation/automationAccounts/{automationAccountName}/python3Packages/{packageName} + /// + /// + /// Operation Id + /// Python3Package_Get + /// + /// + /// Default Api Version + /// 2023-11-01 + /// + /// + /// Resource + /// + /// + /// + /// + /// The python package name. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + public virtual Response Exists(string packageName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(packageName, nameof(packageName)); + + using var scope = _automationAccountPython3PackagePython3PackageClientDiagnostics.CreateScope("AutomationAccountPython3PackageCollection.Exists"); + scope.Start(); + try + { + var response = _automationAccountPython3PackagePython3PackageRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, packageName, cancellationToken: cancellationToken); + return Response.FromValue(response.Value != null, response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Tries to get details for this resource from the service. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/python3Packages/{packageName} + /// + /// + /// Operation Id + /// Python3Package_Get + /// + /// + /// Default Api Version + /// 2023-11-01 + /// + /// + /// Resource + /// + /// + /// + /// + /// The python package name. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + public virtual async Task> GetIfExistsAsync(string packageName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(packageName, nameof(packageName)); + + using var scope = _automationAccountPython3PackagePython3PackageClientDiagnostics.CreateScope("AutomationAccountPython3PackageCollection.GetIfExists"); + scope.Start(); + try + { + var response = await _automationAccountPython3PackagePython3PackageRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, packageName, cancellationToken: cancellationToken).ConfigureAwait(false); + if (response.Value == null) + return new NoValueResponse(response.GetRawResponse()); + return Response.FromValue(new AutomationAccountPython3PackageResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Tries to get details for this resource from the service. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/python3Packages/{packageName} + /// + /// + /// Operation Id + /// Python3Package_Get + /// + /// + /// Default Api Version + /// 2023-11-01 + /// + /// + /// Resource + /// + /// + /// + /// + /// The python package name. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + public virtual NullableResponse GetIfExists(string packageName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(packageName, nameof(packageName)); + + using var scope = _automationAccountPython3PackagePython3PackageClientDiagnostics.CreateScope("AutomationAccountPython3PackageCollection.GetIfExists"); + scope.Start(); + try + { + var response = _automationAccountPython3PackagePython3PackageRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, packageName, cancellationToken: cancellationToken); + if (response.Value == null) + return new NoValueResponse(response.GetRawResponse()); + return Response.FromValue(new AutomationAccountPython3PackageResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetAll().GetEnumerator(); + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetAll().GetEnumerator(); + } + + IAsyncEnumerator IAsyncEnumerable.GetAsyncEnumerator(CancellationToken cancellationToken) + { + return GetAllAsync(cancellationToken: cancellationToken).GetAsyncEnumerator(cancellationToken); + } + } +} diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationAccountPython3PackageResource.Serialization.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationAccountPython3PackageResource.Serialization.cs new file mode 100644 index 000000000000..8d11ae74a387 --- /dev/null +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationAccountPython3PackageResource.Serialization.cs @@ -0,0 +1,26 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Azure.ResourceManager.Automation +{ + public partial class AutomationAccountPython3PackageResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) => ((IJsonModel)Data).Write(writer, options); + + AutomationModuleData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => ((IJsonModel)Data).Create(ref reader, options); + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) => ModelReaderWriter.Write(Data, options); + + AutomationModuleData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => ModelReaderWriter.Read(data, options); + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => ((IPersistableModel)Data).GetFormatFromOptions(options); + } +} diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationAccountPython3PackageResource.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationAccountPython3PackageResource.cs new file mode 100644 index 000000000000..b747baa27ace --- /dev/null +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationAccountPython3PackageResource.cs @@ -0,0 +1,703 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; +using System.Globalization; +using System.Threading; +using System.Threading.Tasks; +using Azure.Core; +using Azure.Core.Pipeline; +using Azure.ResourceManager.Automation.Models; + +namespace Azure.ResourceManager.Automation +{ + /// + /// A Class representing an AutomationAccountPython3Package along with the instance operations that can be performed on it. + /// If you have a you can construct an + /// from an instance of using the GetAutomationAccountPython3PackageResource method. + /// Otherwise you can get one from its parent resource using the GetAutomationAccountPython3Package method. + /// + public partial class AutomationAccountPython3PackageResource : ArmResource + { + /// Generate the resource identifier of a instance. + /// The subscriptionId. + /// The resourceGroupName. + /// The automationAccountName. + /// The packageName. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string automationAccountName, string packageName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/python3Packages/{packageName}"; + return new ResourceIdentifier(resourceId); + } + + private readonly ClientDiagnostics _automationAccountPython3PackagePython3PackageClientDiagnostics; + private readonly Python3PackageRestOperations _automationAccountPython3PackagePython3PackageRestClient; + private readonly AutomationModuleData _data; + + /// Gets the resource type for the operations. + public static readonly ResourceType ResourceType = "Microsoft.Automation/automationAccounts/python3Packages"; + + /// Initializes a new instance of the class for mocking. + protected AutomationAccountPython3PackageResource() + { + } + + /// Initializes a new instance of the class. + /// The client parameters to use in these operations. + /// The resource that is the target of operations. + internal AutomationAccountPython3PackageResource(ArmClient client, AutomationModuleData 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 AutomationAccountPython3PackageResource(ArmClient client, ResourceIdentifier id) : base(client, id) + { + _automationAccountPython3PackagePython3PackageClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.Automation", ResourceType.Namespace, Diagnostics); + TryGetApiVersion(ResourceType, out string automationAccountPython3PackagePython3PackageApiVersion); + _automationAccountPython3PackagePython3PackageRestClient = new Python3PackageRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, automationAccountPython3PackagePython3PackageApiVersion); +#if DEBUG + ValidateResourceId(Id); +#endif + } + + /// Gets whether or not the current instance has data. + public virtual bool HasData { get; } + + /// Gets the data representing this Feature. + /// Throws if there is no data loaded in the current instance. + public virtual AutomationModuleData Data + { + get + { + if (!HasData) + throw new InvalidOperationException("The current instance does not have data, you must call Get first."); + return _data; + } + } + + internal static void ValidateResourceId(ResourceIdentifier id) + { + if (id.ResourceType != ResourceType) + throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "Invalid resource type {0} expected {1}", id.ResourceType, ResourceType), nameof(id)); + } + + /// + /// Retrieve the python 3 package identified by package name. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/python3Packages/{packageName} + /// + /// + /// Operation Id + /// Python3Package_Get + /// + /// + /// Default Api Version + /// 2023-11-01 + /// + /// + /// Resource + /// + /// + /// + /// + /// The cancellation token to use. + public virtual async Task> GetAsync(CancellationToken cancellationToken = default) + { + using var scope = _automationAccountPython3PackagePython3PackageClientDiagnostics.CreateScope("AutomationAccountPython3PackageResource.Get"); + scope.Start(); + try + { + var response = await _automationAccountPython3PackagePython3PackageRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); + if (response.Value == null) + throw new RequestFailedException(response.GetRawResponse()); + return Response.FromValue(new AutomationAccountPython3PackageResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Retrieve the python 3 package identified by package name. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/python3Packages/{packageName} + /// + /// + /// Operation Id + /// Python3Package_Get + /// + /// + /// Default Api Version + /// 2023-11-01 + /// + /// + /// Resource + /// + /// + /// + /// + /// The cancellation token to use. + public virtual Response Get(CancellationToken cancellationToken = default) + { + using var scope = _automationAccountPython3PackagePython3PackageClientDiagnostics.CreateScope("AutomationAccountPython3PackageResource.Get"); + scope.Start(); + try + { + var response = _automationAccountPython3PackagePython3PackageRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); + if (response.Value == null) + throw new RequestFailedException(response.GetRawResponse()); + return Response.FromValue(new AutomationAccountPython3PackageResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Delete the python 3 package by name. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/python3Packages/{packageName} + /// + /// + /// Operation Id + /// Python3Package_Delete + /// + /// + /// Default Api Version + /// 2023-11-01 + /// + /// + /// Resource + /// + /// + /// + /// + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// The cancellation token to use. + public virtual async Task DeleteAsync(WaitUntil waitUntil, CancellationToken cancellationToken = default) + { + using var scope = _automationAccountPython3PackagePython3PackageClientDiagnostics.CreateScope("AutomationAccountPython3PackageResource.Delete"); + scope.Start(); + try + { + var response = await _automationAccountPython3PackagePython3PackageRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); + var uri = _automationAccountPython3PackagePython3PackageRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), "None", null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AutomationArmOperation(response, rehydrationToken); + if (waitUntil == WaitUntil.Completed) + await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Delete the python 3 package by name. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/python3Packages/{packageName} + /// + /// + /// Operation Id + /// Python3Package_Delete + /// + /// + /// Default Api Version + /// 2023-11-01 + /// + /// + /// Resource + /// + /// + /// + /// + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// The cancellation token to use. + public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancellationToken = default) + { + using var scope = _automationAccountPython3PackagePython3PackageClientDiagnostics.CreateScope("AutomationAccountPython3PackageResource.Delete"); + scope.Start(); + try + { + var response = _automationAccountPython3PackagePython3PackageRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); + var uri = _automationAccountPython3PackagePython3PackageRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), "None", null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new AutomationArmOperation(response, rehydrationToken); + if (waitUntil == WaitUntil.Completed) + operation.WaitForCompletionResponse(cancellationToken); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Update the python 3 package identified by package name. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/python3Packages/{packageName} + /// + /// + /// Operation Id + /// Python3Package_Update + /// + /// + /// Default Api Version + /// 2023-11-01 + /// + /// + /// Resource + /// + /// + /// + /// + /// The update parameters for python package. + /// The cancellation token to use. + /// is null. + public virtual async Task> UpdateAsync(PythonPackageUpdateParameters pythonPackageUpdateParameters, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(pythonPackageUpdateParameters, nameof(pythonPackageUpdateParameters)); + + using var scope = _automationAccountPython3PackagePython3PackageClientDiagnostics.CreateScope("AutomationAccountPython3PackageResource.Update"); + scope.Start(); + try + { + var response = await _automationAccountPython3PackagePython3PackageRestClient.UpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, pythonPackageUpdateParameters, cancellationToken).ConfigureAwait(false); + return Response.FromValue(new AutomationAccountPython3PackageResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Update the python 3 package identified by package name. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/python3Packages/{packageName} + /// + /// + /// Operation Id + /// Python3Package_Update + /// + /// + /// Default Api Version + /// 2023-11-01 + /// + /// + /// Resource + /// + /// + /// + /// + /// The update parameters for python package. + /// The cancellation token to use. + /// is null. + public virtual Response Update(PythonPackageUpdateParameters pythonPackageUpdateParameters, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(pythonPackageUpdateParameters, nameof(pythonPackageUpdateParameters)); + + using var scope = _automationAccountPython3PackagePython3PackageClientDiagnostics.CreateScope("AutomationAccountPython3PackageResource.Update"); + scope.Start(); + try + { + var response = _automationAccountPython3PackagePython3PackageRestClient.Update(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, pythonPackageUpdateParameters, cancellationToken); + return Response.FromValue(new AutomationAccountPython3PackageResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Add a tag to the current resource. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/python3Packages/{packageName} + /// + /// + /// Operation Id + /// Python3Package_Get + /// + /// + /// Default Api Version + /// 2023-11-01 + /// + /// + /// Resource + /// + /// + /// + /// + /// The key for the tag. + /// The value for the tag. + /// The cancellation token to use. + /// or is null. + public virtual async Task> AddTagAsync(string key, string value, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(key, nameof(key)); + Argument.AssertNotNull(value, nameof(value)); + + using var scope = _automationAccountPython3PackagePython3PackageClientDiagnostics.CreateScope("AutomationAccountPython3PackageResource.AddTag"); + scope.Start(); + try + { + if (await CanUseTagResourceAsync(cancellationToken: cancellationToken).ConfigureAwait(false)) + { + var originalTags = await GetTagResource().GetAsync(cancellationToken).ConfigureAwait(false); + originalTags.Value.Data.TagValues[key] = value; + await GetTagResource().CreateOrUpdateAsync(WaitUntil.Completed, originalTags.Value.Data, cancellationToken: cancellationToken).ConfigureAwait(false); + var originalResponse = await _automationAccountPython3PackagePython3PackageRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); + return Response.FromValue(new AutomationAccountPython3PackageResource(Client, originalResponse.Value), originalResponse.GetRawResponse()); + } + else + { + var current = (await GetAsync(cancellationToken: cancellationToken).ConfigureAwait(false)).Value.Data; + var patch = new PythonPackageUpdateParameters(); + foreach (var tag in current.Tags) + { + patch.Tags.Add(tag); + } + patch.Tags[key] = value; + var result = await UpdateAsync(patch, cancellationToken: cancellationToken).ConfigureAwait(false); + return result; + } + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Add a tag to the current resource. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/python3Packages/{packageName} + /// + /// + /// Operation Id + /// Python3Package_Get + /// + /// + /// Default Api Version + /// 2023-11-01 + /// + /// + /// Resource + /// + /// + /// + /// + /// The key for the tag. + /// The value for the tag. + /// The cancellation token to use. + /// or is null. + public virtual Response AddTag(string key, string value, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(key, nameof(key)); + Argument.AssertNotNull(value, nameof(value)); + + using var scope = _automationAccountPython3PackagePython3PackageClientDiagnostics.CreateScope("AutomationAccountPython3PackageResource.AddTag"); + scope.Start(); + try + { + if (CanUseTagResource(cancellationToken: cancellationToken)) + { + var originalTags = GetTagResource().Get(cancellationToken); + originalTags.Value.Data.TagValues[key] = value; + GetTagResource().CreateOrUpdate(WaitUntil.Completed, originalTags.Value.Data, cancellationToken: cancellationToken); + var originalResponse = _automationAccountPython3PackagePython3PackageRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); + return Response.FromValue(new AutomationAccountPython3PackageResource(Client, originalResponse.Value), originalResponse.GetRawResponse()); + } + else + { + var current = Get(cancellationToken: cancellationToken).Value.Data; + var patch = new PythonPackageUpdateParameters(); + foreach (var tag in current.Tags) + { + patch.Tags.Add(tag); + } + patch.Tags[key] = value; + var result = Update(patch, cancellationToken: cancellationToken); + return result; + } + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Replace the tags on the resource with the given set. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/python3Packages/{packageName} + /// + /// + /// Operation Id + /// Python3Package_Get + /// + /// + /// Default Api Version + /// 2023-11-01 + /// + /// + /// Resource + /// + /// + /// + /// + /// The set of tags to use as replacement. + /// The cancellation token to use. + /// is null. + public virtual async Task> SetTagsAsync(IDictionary tags, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(tags, nameof(tags)); + + using var scope = _automationAccountPython3PackagePython3PackageClientDiagnostics.CreateScope("AutomationAccountPython3PackageResource.SetTags"); + scope.Start(); + try + { + if (await CanUseTagResourceAsync(cancellationToken: cancellationToken).ConfigureAwait(false)) + { + await GetTagResource().DeleteAsync(WaitUntil.Completed, cancellationToken: cancellationToken).ConfigureAwait(false); + var originalTags = await GetTagResource().GetAsync(cancellationToken).ConfigureAwait(false); + originalTags.Value.Data.TagValues.ReplaceWith(tags); + await GetTagResource().CreateOrUpdateAsync(WaitUntil.Completed, originalTags.Value.Data, cancellationToken: cancellationToken).ConfigureAwait(false); + var originalResponse = await _automationAccountPython3PackagePython3PackageRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); + return Response.FromValue(new AutomationAccountPython3PackageResource(Client, originalResponse.Value), originalResponse.GetRawResponse()); + } + else + { + var current = (await GetAsync(cancellationToken: cancellationToken).ConfigureAwait(false)).Value.Data; + var patch = new PythonPackageUpdateParameters(); + patch.Tags.ReplaceWith(tags); + var result = await UpdateAsync(patch, cancellationToken: cancellationToken).ConfigureAwait(false); + return result; + } + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Replace the tags on the resource with the given set. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/python3Packages/{packageName} + /// + /// + /// Operation Id + /// Python3Package_Get + /// + /// + /// Default Api Version + /// 2023-11-01 + /// + /// + /// Resource + /// + /// + /// + /// + /// The set of tags to use as replacement. + /// The cancellation token to use. + /// is null. + public virtual Response SetTags(IDictionary tags, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(tags, nameof(tags)); + + using var scope = _automationAccountPython3PackagePython3PackageClientDiagnostics.CreateScope("AutomationAccountPython3PackageResource.SetTags"); + scope.Start(); + try + { + if (CanUseTagResource(cancellationToken: cancellationToken)) + { + GetTagResource().Delete(WaitUntil.Completed, cancellationToken: cancellationToken); + var originalTags = GetTagResource().Get(cancellationToken); + originalTags.Value.Data.TagValues.ReplaceWith(tags); + GetTagResource().CreateOrUpdate(WaitUntil.Completed, originalTags.Value.Data, cancellationToken: cancellationToken); + var originalResponse = _automationAccountPython3PackagePython3PackageRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); + return Response.FromValue(new AutomationAccountPython3PackageResource(Client, originalResponse.Value), originalResponse.GetRawResponse()); + } + else + { + var current = Get(cancellationToken: cancellationToken).Value.Data; + var patch = new PythonPackageUpdateParameters(); + patch.Tags.ReplaceWith(tags); + var result = Update(patch, cancellationToken: cancellationToken); + return result; + } + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Removes a tag by key from the resource. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/python3Packages/{packageName} + /// + /// + /// Operation Id + /// Python3Package_Get + /// + /// + /// Default Api Version + /// 2023-11-01 + /// + /// + /// Resource + /// + /// + /// + /// + /// The key for the tag. + /// The cancellation token to use. + /// is null. + public virtual async Task> RemoveTagAsync(string key, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(key, nameof(key)); + + using var scope = _automationAccountPython3PackagePython3PackageClientDiagnostics.CreateScope("AutomationAccountPython3PackageResource.RemoveTag"); + scope.Start(); + try + { + if (await CanUseTagResourceAsync(cancellationToken: cancellationToken).ConfigureAwait(false)) + { + var originalTags = await GetTagResource().GetAsync(cancellationToken).ConfigureAwait(false); + originalTags.Value.Data.TagValues.Remove(key); + await GetTagResource().CreateOrUpdateAsync(WaitUntil.Completed, originalTags.Value.Data, cancellationToken: cancellationToken).ConfigureAwait(false); + var originalResponse = await _automationAccountPython3PackagePython3PackageRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); + return Response.FromValue(new AutomationAccountPython3PackageResource(Client, originalResponse.Value), originalResponse.GetRawResponse()); + } + else + { + var current = (await GetAsync(cancellationToken: cancellationToken).ConfigureAwait(false)).Value.Data; + var patch = new PythonPackageUpdateParameters(); + foreach (var tag in current.Tags) + { + patch.Tags.Add(tag); + } + patch.Tags.Remove(key); + var result = await UpdateAsync(patch, cancellationToken: cancellationToken).ConfigureAwait(false); + return result; + } + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Removes a tag by key from the resource. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/python3Packages/{packageName} + /// + /// + /// Operation Id + /// Python3Package_Get + /// + /// + /// Default Api Version + /// 2023-11-01 + /// + /// + /// Resource + /// + /// + /// + /// + /// The key for the tag. + /// The cancellation token to use. + /// is null. + public virtual Response RemoveTag(string key, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(key, nameof(key)); + + using var scope = _automationAccountPython3PackagePython3PackageClientDiagnostics.CreateScope("AutomationAccountPython3PackageResource.RemoveTag"); + scope.Start(); + try + { + if (CanUseTagResource(cancellationToken: cancellationToken)) + { + var originalTags = GetTagResource().Get(cancellationToken); + originalTags.Value.Data.TagValues.Remove(key); + GetTagResource().CreateOrUpdate(WaitUntil.Completed, originalTags.Value.Data, cancellationToken: cancellationToken); + var originalResponse = _automationAccountPython3PackagePython3PackageRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); + return Response.FromValue(new AutomationAccountPython3PackageResource(Client, originalResponse.Value), originalResponse.GetRawResponse()); + } + else + { + var current = Get(cancellationToken: cancellationToken).Value.Data; + var patch = new PythonPackageUpdateParameters(); + foreach (var tag in current.Tags) + { + patch.Tags.Add(tag); + } + patch.Tags.Remove(key); + var result = Update(patch, cancellationToken: cancellationToken); + return result; + } + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + } +} diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationAccountResource.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationAccountResource.cs index d62ba6b6e5b4..46a5ed007876 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationAccountResource.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationAccountResource.cs @@ -48,6 +48,8 @@ public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, private readonly DscCompilationJobStreamRestOperations _dscCompilationJobStreamRestClient; private readonly ClientDiagnostics _nodeCountInformationClientDiagnostics; private readonly NodeCountInformationRestOperations _nodeCountInformationRestClient; + private readonly ClientDiagnostics _automationWebhookWebhookClientDiagnostics; + private readonly WebhookRestOperations _automationWebhookWebhookRestClient; private readonly ClientDiagnostics _statisticsClientDiagnostics; private readonly StatisticsRestOperations _statisticsRestClient; private readonly ClientDiagnostics _usagesClientDiagnostics; @@ -60,12 +62,10 @@ public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, private readonly ObjectDataTypesRestOperations _objectDataTypesRestClient; private readonly ClientDiagnostics _defaultClientDiagnostics; private readonly AutomationRestOperations _defaultRestClient; - private readonly ClientDiagnostics _softwareUpdateConfigurationRunsClientDiagnostics; - private readonly SoftwareUpdateConfigurationRunsRestOperations _softwareUpdateConfigurationRunsRestClient; private readonly ClientDiagnostics _softwareUpdateConfigurationMachineRunsClientDiagnostics; private readonly SoftwareUpdateConfigurationMachineRunsRestOperations _softwareUpdateConfigurationMachineRunsRestClient; - private readonly ClientDiagnostics _automationWebhookWebhookClientDiagnostics; - private readonly WebhookRestOperations _automationWebhookWebhookRestClient; + private readonly ClientDiagnostics _softwareUpdateConfigurationRunsClientDiagnostics; + private readonly SoftwareUpdateConfigurationRunsRestOperations _softwareUpdateConfigurationRunsRestClient; private readonly AutomationAccountData _data; /// Gets the resource type for the operations. @@ -104,6 +104,9 @@ internal AutomationAccountResource(ArmClient client, ResourceIdentifier id) : ba _dscCompilationJobStreamRestClient = new DscCompilationJobStreamRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint); _nodeCountInformationClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.Automation", ProviderConstants.DefaultProviderNamespace, Diagnostics); _nodeCountInformationRestClient = new NodeCountInformationRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint); + _automationWebhookWebhookClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.Automation", AutomationWebhookResource.ResourceType.Namespace, Diagnostics); + TryGetApiVersion(AutomationWebhookResource.ResourceType, out string automationWebhookWebhookApiVersion); + _automationWebhookWebhookRestClient = new WebhookRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, automationWebhookWebhookApiVersion); _statisticsClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.Automation", ProviderConstants.DefaultProviderNamespace, Diagnostics); _statisticsRestClient = new StatisticsRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint); _usagesClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.Automation", ProviderConstants.DefaultProviderNamespace, Diagnostics); @@ -116,13 +119,10 @@ internal AutomationAccountResource(ArmClient client, ResourceIdentifier id) : ba _objectDataTypesRestClient = new ObjectDataTypesRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint); _defaultClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.Automation", ProviderConstants.DefaultProviderNamespace, Diagnostics); _defaultRestClient = new AutomationRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint); - _softwareUpdateConfigurationRunsClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.Automation", ProviderConstants.DefaultProviderNamespace, Diagnostics); - _softwareUpdateConfigurationRunsRestClient = new SoftwareUpdateConfigurationRunsRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint); _softwareUpdateConfigurationMachineRunsClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.Automation", ProviderConstants.DefaultProviderNamespace, Diagnostics); _softwareUpdateConfigurationMachineRunsRestClient = new SoftwareUpdateConfigurationMachineRunsRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint); - _automationWebhookWebhookClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.Automation", AutomationWebhookResource.ResourceType.Namespace, Diagnostics); - TryGetApiVersion(AutomationWebhookResource.ResourceType, out string automationWebhookWebhookApiVersion); - _automationWebhookWebhookRestClient = new WebhookRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, automationWebhookWebhookApiVersion); + _softwareUpdateConfigurationRunsClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.Automation", ProviderConstants.DefaultProviderNamespace, Diagnostics); + _softwareUpdateConfigurationRunsRestClient = new SoftwareUpdateConfigurationRunsRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint); #if DEBUG ValidateResourceId(Id); #endif @@ -218,23 +218,23 @@ public virtual Response GetAutomati return GetAutomationPrivateEndpointConnections().Get(privateEndpointConnectionName, cancellationToken); } - /// Gets a collection of AutomationAccountPython2PackageResources in the AutomationAccount. - /// An object representing collection of AutomationAccountPython2PackageResources and their operations over a AutomationAccountPython2PackageResource. - public virtual AutomationAccountPython2PackageCollection GetAutomationAccountPython2Packages() + /// Gets a collection of DscNodeResources in the AutomationAccount. + /// An object representing collection of DscNodeResources and their operations over a DscNodeResource. + public virtual DscNodeCollection GetDscNodes() { - return GetCachedClient(client => new AutomationAccountPython2PackageCollection(client, Id)); + return GetCachedClient(client => new DscNodeCollection(client, Id)); } /// - /// Retrieve the python 2 package identified by package name. + /// Retrieve the dsc node identified by node id. /// /// /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/python2Packages/{packageName} + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/nodes/{nodeId} /// /// /// Operation Id - /// Python2Package_Get + /// DscNode_Get /// /// /// Default Api Version @@ -242,30 +242,30 @@ public virtual AutomationAccountPython2PackageCollection GetAutomationAccountPyt /// /// /// Resource - /// + /// /// /// /// - /// The python package name. + /// The node id. /// The cancellation token to use. - /// is null. - /// is an empty string, and was expected to be non-empty. + /// is null. + /// is an empty string, and was expected to be non-empty. [ForwardsClientCalls] - public virtual async Task> GetAutomationAccountPython2PackageAsync(string packageName, CancellationToken cancellationToken = default) + public virtual async Task> GetDscNodeAsync(string nodeId, CancellationToken cancellationToken = default) { - return await GetAutomationAccountPython2Packages().GetAsync(packageName, cancellationToken).ConfigureAwait(false); + return await GetDscNodes().GetAsync(nodeId, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve the python 2 package identified by package name. + /// Retrieve the dsc node identified by node id. /// /// /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/python2Packages/{packageName} + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/nodes/{nodeId} /// /// /// Operation Id - /// Python2Package_Get + /// DscNode_Get /// /// /// Default Api Version @@ -273,37 +273,37 @@ public virtual async Task> Get /// /// /// Resource - /// + /// /// /// /// - /// The python package name. + /// The node id. /// The cancellation token to use. - /// is null. - /// is an empty string, and was expected to be non-empty. + /// is null. + /// is an empty string, and was expected to be non-empty. [ForwardsClientCalls] - public virtual Response GetAutomationAccountPython2Package(string packageName, CancellationToken cancellationToken = default) + public virtual Response GetDscNode(string nodeId, CancellationToken cancellationToken = default) { - return GetAutomationAccountPython2Packages().Get(packageName, cancellationToken); + return GetDscNodes().Get(nodeId, cancellationToken); } - /// Gets a collection of AutomationAccountModuleResources in the AutomationAccount. - /// An object representing collection of AutomationAccountModuleResources and their operations over a AutomationAccountModuleResource. - public virtual AutomationAccountModuleCollection GetAutomationAccountModules() + /// Gets a collection of DscCompilationJobResources in the AutomationAccount. + /// An object representing collection of DscCompilationJobResources and their operations over a DscCompilationJobResource. + public virtual DscCompilationJobCollection GetDscCompilationJobs() { - return GetCachedClient(client => new AutomationAccountModuleCollection(client, Id)); + return GetCachedClient(client => new DscCompilationJobCollection(client, Id)); } /// - /// Retrieve the module identified by module name. + /// Retrieve the Dsc configuration compilation job identified by job id. /// /// /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/modules/{moduleName} + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/compilationjobs/{compilationJobName} /// /// /// Operation Id - /// Module_Get + /// DscCompilationJob_Get /// /// /// Default Api Version @@ -311,30 +311,30 @@ public virtual AutomationAccountModuleCollection GetAutomationAccountModules() /// /// /// Resource - /// + /// /// /// /// - /// The module name. + /// The DSC configuration Id. /// The cancellation token to use. - /// is null. - /// is an empty string, and was expected to be non-empty. + /// is null. + /// is an empty string, and was expected to be non-empty. [ForwardsClientCalls] - public virtual async Task> GetAutomationAccountModuleAsync(string moduleName, CancellationToken cancellationToken = default) + public virtual async Task> GetDscCompilationJobAsync(string compilationJobName, CancellationToken cancellationToken = default) { - return await GetAutomationAccountModules().GetAsync(moduleName, cancellationToken).ConfigureAwait(false); + return await GetDscCompilationJobs().GetAsync(compilationJobName, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve the module identified by module name. + /// Retrieve the Dsc configuration compilation job identified by job id. /// /// /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/modules/{moduleName} + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/compilationjobs/{compilationJobName} /// /// /// Operation Id - /// Module_Get + /// DscCompilationJob_Get /// /// /// Default Api Version @@ -342,37 +342,37 @@ public virtual async Task> GetAutomati /// /// /// Resource - /// + /// /// /// /// - /// The module name. + /// The DSC configuration Id. /// The cancellation token to use. - /// is null. - /// is an empty string, and was expected to be non-empty. + /// is null. + /// is an empty string, and was expected to be non-empty. [ForwardsClientCalls] - public virtual Response GetAutomationAccountModule(string moduleName, CancellationToken cancellationToken = default) + public virtual Response GetDscCompilationJob(string compilationJobName, CancellationToken cancellationToken = default) { - return GetAutomationAccountModules().Get(moduleName, cancellationToken); + return GetDscCompilationJobs().Get(compilationJobName, cancellationToken); } - /// Gets a collection of DscNodeResources in the AutomationAccount. - /// An object representing collection of DscNodeResources and their operations over a DscNodeResource. - public virtual DscNodeCollection GetDscNodes() + /// Gets a collection of AutomationWatcherResources in the AutomationAccount. + /// An object representing collection of AutomationWatcherResources and their operations over a AutomationWatcherResource. + public virtual AutomationWatcherCollection GetAutomationWatchers() { - return GetCachedClient(client => new DscNodeCollection(client, Id)); + return GetCachedClient(client => new AutomationWatcherCollection(client, Id)); } /// - /// Retrieve the dsc node identified by node id. + /// Retrieve the watcher identified by watcher name. /// /// /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/nodes/{nodeId} + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/watchers/{watcherName} /// /// /// Operation Id - /// DscNode_Get + /// Watcher_Get /// /// /// Default Api Version @@ -380,30 +380,30 @@ public virtual DscNodeCollection GetDscNodes() /// /// /// Resource - /// + /// /// /// /// - /// The node id. + /// The watcher name. /// The cancellation token to use. - /// is null. - /// is an empty string, and was expected to be non-empty. + /// is null. + /// is an empty string, and was expected to be non-empty. [ForwardsClientCalls] - public virtual async Task> GetDscNodeAsync(string nodeId, CancellationToken cancellationToken = default) + public virtual async Task> GetAutomationWatcherAsync(string watcherName, CancellationToken cancellationToken = default) { - return await GetDscNodes().GetAsync(nodeId, cancellationToken).ConfigureAwait(false); + return await GetAutomationWatchers().GetAsync(watcherName, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve the dsc node identified by node id. + /// Retrieve the watcher identified by watcher name. /// /// /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/nodes/{nodeId} + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/watchers/{watcherName} /// /// /// Operation Id - /// DscNode_Get + /// Watcher_Get /// /// /// Default Api Version @@ -411,232 +411,165 @@ public virtual async Task> GetDscNodeAsync(string node /// /// /// Resource - /// + /// /// /// /// - /// The node id. + /// The watcher name. /// The cancellation token to use. - /// is null. - /// is an empty string, and was expected to be non-empty. + /// is null. + /// is an empty string, and was expected to be non-empty. [ForwardsClientCalls] - public virtual Response GetDscNode(string nodeId, CancellationToken cancellationToken = default) + public virtual Response GetAutomationWatcher(string watcherName, CancellationToken cancellationToken = default) { - return GetDscNodes().Get(nodeId, cancellationToken); + return GetAutomationWatchers().Get(watcherName, cancellationToken); } - /// Gets a collection of DscNodeConfigurationResources in the AutomationAccount. - /// An object representing collection of DscNodeConfigurationResources and their operations over a DscNodeConfigurationResource. - public virtual DscNodeConfigurationCollection GetDscNodeConfigurations() + /// Gets a collection of SoftwareUpdateConfigurationResources in the AutomationAccount. + /// An object representing collection of SoftwareUpdateConfigurationResources and their operations over a SoftwareUpdateConfigurationResource. + public virtual SoftwareUpdateConfigurationCollection GetSoftwareUpdateConfigurations() { - return GetCachedClient(client => new DscNodeConfigurationCollection(client, Id)); + return GetCachedClient(client => new SoftwareUpdateConfigurationCollection(client, Id)); } /// - /// Retrieve the Dsc node configurations by node configuration. + /// Get a single software update configuration by name. /// /// /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/nodeConfigurations/{nodeConfigurationName} + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/softwareUpdateConfigurations/{softwareUpdateConfigurationName} /// /// /// Operation Id - /// DscNodeConfiguration_Get + /// SoftwareUpdateConfigurations_GetByName /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2019-06-01 /// /// /// Resource - /// + /// /// /// /// - /// The Dsc node configuration name. + /// The name of the software update configuration to be created. + /// Identifies this specific client request. /// The cancellation token to use. - /// is null. - /// is an empty string, and was expected to be non-empty. + /// is null. + /// is an empty string, and was expected to be non-empty. [ForwardsClientCalls] - public virtual async Task> GetDscNodeConfigurationAsync(string nodeConfigurationName, CancellationToken cancellationToken = default) + public virtual async Task> GetSoftwareUpdateConfigurationAsync(string softwareUpdateConfigurationName, string clientRequestId = null, CancellationToken cancellationToken = default) { - return await GetDscNodeConfigurations().GetAsync(nodeConfigurationName, cancellationToken).ConfigureAwait(false); + return await GetSoftwareUpdateConfigurations().GetAsync(softwareUpdateConfigurationName, clientRequestId, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve the Dsc node configurations by node configuration. + /// Get a single software update configuration by name. /// /// /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/nodeConfigurations/{nodeConfigurationName} + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/softwareUpdateConfigurations/{softwareUpdateConfigurationName} /// /// /// Operation Id - /// DscNodeConfiguration_Get + /// SoftwareUpdateConfigurations_GetByName /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2019-06-01 /// /// /// Resource - /// + /// /// /// /// - /// The Dsc node configuration name. + /// The name of the software update configuration to be created. + /// Identifies this specific client request. /// The cancellation token to use. - /// is null. - /// is an empty string, and was expected to be non-empty. + /// is null. + /// is an empty string, and was expected to be non-empty. [ForwardsClientCalls] - public virtual Response GetDscNodeConfiguration(string nodeConfigurationName, CancellationToken cancellationToken = default) + public virtual Response GetSoftwareUpdateConfiguration(string softwareUpdateConfigurationName, string clientRequestId = null, CancellationToken cancellationToken = default) { - return GetDscNodeConfigurations().Get(nodeConfigurationName, cancellationToken); + return GetSoftwareUpdateConfigurations().Get(softwareUpdateConfigurationName, clientRequestId, cancellationToken); } - /// Gets a collection of DscCompilationJobResources in the AutomationAccount. - /// An object representing collection of DscCompilationJobResources and their operations over a DscCompilationJobResource. - public virtual DscCompilationJobCollection GetDscCompilationJobs() + /// Gets a collection of AutomationWebhookResources in the AutomationAccount. + /// An object representing collection of AutomationWebhookResources and their operations over a AutomationWebhookResource. + public virtual AutomationWebhookCollection GetAutomationWebhooks() { - return GetCachedClient(client => new DscCompilationJobCollection(client, Id)); + return GetCachedClient(client => new AutomationWebhookCollection(client, Id)); } /// - /// Retrieve the Dsc configuration compilation job identified by job id. + /// Retrieve the webhook identified by webhook name. /// /// /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/compilationjobs/{compilationJobName} + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/webhooks/{webhookName} /// /// /// Operation Id - /// DscCompilationJob_Get + /// Webhook_Get /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2015-10-31 /// /// /// Resource - /// + /// /// /// /// - /// The DSC configuration Id. + /// The webhook name. /// The cancellation token to use. - /// is null. - /// is an empty string, and was expected to be non-empty. + /// is null. + /// is an empty string, and was expected to be non-empty. [ForwardsClientCalls] - public virtual async Task> GetDscCompilationJobAsync(string compilationJobName, CancellationToken cancellationToken = default) + public virtual async Task> GetAutomationWebhookAsync(string webhookName, CancellationToken cancellationToken = default) { - return await GetDscCompilationJobs().GetAsync(compilationJobName, cancellationToken).ConfigureAwait(false); + return await GetAutomationWebhooks().GetAsync(webhookName, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve the Dsc configuration compilation job identified by job id. + /// Retrieve the webhook identified by webhook name. /// /// /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/compilationjobs/{compilationJobName} + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/webhooks/{webhookName} /// /// /// Operation Id - /// DscCompilationJob_Get + /// Webhook_Get /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2015-10-31 /// /// /// Resource - /// + /// /// /// /// - /// The DSC configuration Id. + /// The webhook name. /// The cancellation token to use. - /// is null. - /// is an empty string, and was expected to be non-empty. + /// is null. + /// is an empty string, and was expected to be non-empty. [ForwardsClientCalls] - public virtual Response GetDscCompilationJob(string compilationJobName, CancellationToken cancellationToken = default) + public virtual Response GetAutomationWebhook(string webhookName, CancellationToken cancellationToken = default) { - return GetDscCompilationJobs().Get(compilationJobName, cancellationToken); + return GetAutomationWebhooks().Get(webhookName, cancellationToken); } - /// Gets a collection of AutomationSourceControlResources in the AutomationAccount. - /// An object representing collection of AutomationSourceControlResources and their operations over a AutomationSourceControlResource. - public virtual AutomationSourceControlCollection GetAutomationSourceControls() + /// Gets a collection of AutomationCertificateResources in the AutomationAccount. + /// An object representing collection of AutomationCertificateResources and their operations over a AutomationCertificateResource. + public virtual AutomationCertificateCollection GetAutomationCertificates() { - return GetCachedClient(client => new AutomationSourceControlCollection(client, Id)); - } - - /// - /// Retrieve the source control identified by source control name. - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/sourceControls/{sourceControlName} - /// - /// - /// Operation Id - /// SourceControl_Get - /// - /// - /// Default Api Version - /// 2020-01-13-preview - /// - /// - /// Resource - /// - /// - /// - /// - /// The name of source control. - /// The cancellation token to use. - /// is null. - /// is an empty string, and was expected to be non-empty. - [ForwardsClientCalls] - public virtual async Task> GetAutomationSourceControlAsync(string sourceControlName, CancellationToken cancellationToken = default) - { - return await GetAutomationSourceControls().GetAsync(sourceControlName, cancellationToken).ConfigureAwait(false); - } - - /// - /// Retrieve the source control identified by source control name. - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/sourceControls/{sourceControlName} - /// - /// - /// Operation Id - /// SourceControl_Get - /// - /// - /// Default Api Version - /// 2020-01-13-preview - /// - /// - /// Resource - /// - /// - /// - /// - /// The name of source control. - /// The cancellation token to use. - /// is null. - /// is an empty string, and was expected to be non-empty. - [ForwardsClientCalls] - public virtual Response GetAutomationSourceControl(string sourceControlName, CancellationToken cancellationToken = default) - { - return GetAutomationSourceControls().Get(sourceControlName, cancellationToken); - } - - /// Gets a collection of AutomationCertificateResources in the AutomationAccount. - /// An object representing collection of AutomationCertificateResources and their operations over a AutomationCertificateResource. - public virtual AutomationCertificateCollection GetAutomationCertificates() - { - return GetCachedClient(client => new AutomationCertificateCollection(client, Id)); + return GetCachedClient(client => new AutomationCertificateCollection(client, Id)); } /// @@ -652,7 +585,7 @@ public virtual AutomationCertificateCollection GetAutomationCertificates() /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2023-11-01 /// /// /// Resource @@ -683,7 +616,7 @@ public virtual async Task> GetAutomation /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2023-11-01 /// /// /// Resource @@ -721,7 +654,7 @@ public virtual AutomationConnectionCollection GetAutomationConnections() /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2023-11-01 /// /// /// Resource @@ -752,7 +685,7 @@ public virtual async Task> GetAutomationC /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2023-11-01 /// /// /// Resource @@ -790,7 +723,7 @@ public virtual AutomationConnectionTypeCollection GetAutomationConnectionTypes() /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2023-11-01 /// /// /// Resource @@ -821,7 +754,7 @@ public virtual async Task> GetAutomat /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2023-11-01 /// /// /// Resource @@ -859,7 +792,7 @@ public virtual AutomationCredentialCollection GetAutomationCredentials() /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2023-11-01 /// /// /// Resource @@ -890,7 +823,7 @@ public virtual async Task> GetAutomationC /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2023-11-01 /// /// /// Resource @@ -908,487 +841,623 @@ public virtual Response GetAutomationCredential(st return GetAutomationCredentials().Get(credentialName, cancellationToken); } - /// Gets a collection of AutomationJobScheduleResources in the AutomationAccount. - /// An object representing collection of AutomationJobScheduleResources and their operations over a AutomationJobScheduleResource. - public virtual AutomationJobScheduleCollection GetAutomationJobSchedules() + /// Gets a collection of DscConfigurationResources in the AutomationAccount. + /// An object representing collection of DscConfigurationResources and their operations over a DscConfigurationResource. + public virtual DscConfigurationCollection GetDscConfigurations() { - return GetCachedClient(client => new AutomationJobScheduleCollection(client, Id)); + return GetCachedClient(client => new DscConfigurationCollection(client, Id)); } /// - /// Retrieve the job schedule identified by job schedule name. + /// Retrieve the configuration identified by configuration name. /// /// /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/jobSchedules/{jobScheduleId} + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/configurations/{configurationName} /// /// /// Operation Id - /// JobSchedule_Get + /// DscConfiguration_Get /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2023-11-01 /// /// /// Resource - /// + /// /// /// /// - /// The job schedule name. + /// The configuration name. /// The cancellation token to use. + /// is null. + /// is an empty string, and was expected to be non-empty. [ForwardsClientCalls] - public virtual async Task> GetAutomationJobScheduleAsync(Guid jobScheduleId, CancellationToken cancellationToken = default) + public virtual async Task> GetDscConfigurationAsync(string configurationName, CancellationToken cancellationToken = default) { - return await GetAutomationJobSchedules().GetAsync(jobScheduleId, cancellationToken).ConfigureAwait(false); + return await GetDscConfigurations().GetAsync(configurationName, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve the job schedule identified by job schedule name. + /// Retrieve the configuration identified by configuration name. /// /// /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/jobSchedules/{jobScheduleId} + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/configurations/{configurationName} /// /// /// Operation Id - /// JobSchedule_Get + /// DscConfiguration_Get /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2023-11-01 /// /// /// Resource - /// + /// /// /// /// - /// The job schedule name. + /// The configuration name. /// The cancellation token to use. + /// is null. + /// is an empty string, and was expected to be non-empty. [ForwardsClientCalls] - public virtual Response GetAutomationJobSchedule(Guid jobScheduleId, CancellationToken cancellationToken = default) + public virtual Response GetDscConfiguration(string configurationName, CancellationToken cancellationToken = default) { - return GetAutomationJobSchedules().Get(jobScheduleId, cancellationToken); + return GetDscConfigurations().Get(configurationName, cancellationToken); } - /// Gets a collection of AutomationScheduleResources in the AutomationAccount. - /// An object representing collection of AutomationScheduleResources and their operations over a AutomationScheduleResource. - public virtual AutomationScheduleCollection GetAutomationSchedules() + /// Gets a collection of DscNodeConfigurationResources in the AutomationAccount. + /// An object representing collection of DscNodeConfigurationResources and their operations over a DscNodeConfigurationResource. + public virtual DscNodeConfigurationCollection GetDscNodeConfigurations() { - return GetCachedClient(client => new AutomationScheduleCollection(client, Id)); + return GetCachedClient(client => new DscNodeConfigurationCollection(client, Id)); } /// - /// Retrieve the schedule identified by schedule name. + /// Retrieve the Dsc node configurations by node configuration. /// /// /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/schedules/{scheduleName} + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/nodeConfigurations/{nodeConfigurationName} /// /// /// Operation Id - /// Schedule_Get + /// DscNodeConfiguration_Get /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2023-11-01 /// /// /// Resource - /// + /// /// /// /// - /// The schedule name. + /// The Dsc node configuration name. /// The cancellation token to use. - /// is null. - /// is an empty string, and was expected to be non-empty. + /// is null. + /// is an empty string, and was expected to be non-empty. [ForwardsClientCalls] - public virtual async Task> GetAutomationScheduleAsync(string scheduleName, CancellationToken cancellationToken = default) + public virtual async Task> GetDscNodeConfigurationAsync(string nodeConfigurationName, CancellationToken cancellationToken = default) { - return await GetAutomationSchedules().GetAsync(scheduleName, cancellationToken).ConfigureAwait(false); + return await GetDscNodeConfigurations().GetAsync(nodeConfigurationName, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve the schedule identified by schedule name. + /// Retrieve the Dsc node configurations by node configuration. /// /// /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/schedules/{scheduleName} + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/nodeConfigurations/{nodeConfigurationName} /// /// /// Operation Id - /// Schedule_Get + /// DscNodeConfiguration_Get /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2023-11-01 /// /// /// Resource - /// + /// /// /// /// - /// The schedule name. + /// The Dsc node configuration name. /// The cancellation token to use. - /// is null. - /// is an empty string, and was expected to be non-empty. + /// is null. + /// is an empty string, and was expected to be non-empty. [ForwardsClientCalls] - public virtual Response GetAutomationSchedule(string scheduleName, CancellationToken cancellationToken = default) + public virtual Response GetDscNodeConfiguration(string nodeConfigurationName, CancellationToken cancellationToken = default) { - return GetAutomationSchedules().Get(scheduleName, cancellationToken); + return GetDscNodeConfigurations().Get(nodeConfigurationName, cancellationToken); } - /// Gets a collection of AutomationVariableResources in the AutomationAccount. - /// An object representing collection of AutomationVariableResources and their operations over a AutomationVariableResource. - public virtual AutomationVariableCollection GetAutomationVariables() + /// Gets a collection of HybridRunbookWorkerGroupResources in the AutomationAccount. + /// An object representing collection of HybridRunbookWorkerGroupResources and their operations over a HybridRunbookWorkerGroupResource. + public virtual HybridRunbookWorkerGroupCollection GetHybridRunbookWorkerGroups() { - return GetCachedClient(client => new AutomationVariableCollection(client, Id)); + return GetCachedClient(client => new HybridRunbookWorkerGroupCollection(client, Id)); } /// - /// Retrieve the variable identified by variable name. + /// Retrieve a hybrid runbook worker group. /// /// /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/variables/{variableName} + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/hybridRunbookWorkerGroups/{hybridRunbookWorkerGroupName} /// /// /// Operation Id - /// Variable_Get + /// HybridRunbookWorkerGroup_Get /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2023-11-01 /// /// /// Resource - /// + /// /// /// /// - /// The name of variable. + /// The hybrid runbook worker group name. /// The cancellation token to use. - /// is null. - /// is an empty string, and was expected to be non-empty. + /// is null. + /// is an empty string, and was expected to be non-empty. [ForwardsClientCalls] - public virtual async Task> GetAutomationVariableAsync(string variableName, CancellationToken cancellationToken = default) + public virtual async Task> GetHybridRunbookWorkerGroupAsync(string hybridRunbookWorkerGroupName, CancellationToken cancellationToken = default) { - return await GetAutomationVariables().GetAsync(variableName, cancellationToken).ConfigureAwait(false); + return await GetHybridRunbookWorkerGroups().GetAsync(hybridRunbookWorkerGroupName, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve the variable identified by variable name. + /// Retrieve a hybrid runbook worker group. /// /// /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/variables/{variableName} + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/hybridRunbookWorkerGroups/{hybridRunbookWorkerGroupName} /// /// /// Operation Id - /// Variable_Get + /// HybridRunbookWorkerGroup_Get /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2023-11-01 /// /// /// Resource - /// + /// /// /// /// - /// The name of variable. + /// The hybrid runbook worker group name. /// The cancellation token to use. - /// is null. - /// is an empty string, and was expected to be non-empty. + /// is null. + /// is an empty string, and was expected to be non-empty. [ForwardsClientCalls] - public virtual Response GetAutomationVariable(string variableName, CancellationToken cancellationToken = default) + public virtual Response GetHybridRunbookWorkerGroup(string hybridRunbookWorkerGroupName, CancellationToken cancellationToken = default) { - return GetAutomationVariables().Get(variableName, cancellationToken); + return GetHybridRunbookWorkerGroups().Get(hybridRunbookWorkerGroupName, cancellationToken); } - /// Gets a collection of AutomationWatcherResources in the AutomationAccount. - /// An object representing collection of AutomationWatcherResources and their operations over a AutomationWatcherResource. - public virtual AutomationWatcherCollection GetAutomationWatchers() + /// Gets a collection of AutomationJobResources in the AutomationAccount. + /// An object representing collection of AutomationJobResources and their operations over a AutomationJobResource. + public virtual AutomationJobCollection GetAutomationJobs() { - return GetCachedClient(client => new AutomationWatcherCollection(client, Id)); + return GetCachedClient(client => new AutomationJobCollection(client, Id)); } /// - /// Retrieve the watcher identified by watcher name. + /// Retrieve the job identified by job name. /// /// /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/watchers/{watcherName} + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/jobs/{jobName} /// /// /// Operation Id - /// Watcher_Get + /// Job_Get /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2023-11-01 /// /// /// Resource - /// + /// /// /// /// - /// The watcher name. + /// The job name. + /// Identifies this specific client request. /// The cancellation token to use. - /// is null. - /// is an empty string, and was expected to be non-empty. + /// is null. + /// is an empty string, and was expected to be non-empty. [ForwardsClientCalls] - public virtual async Task> GetAutomationWatcherAsync(string watcherName, CancellationToken cancellationToken = default) + public virtual async Task> GetAutomationJobAsync(string jobName, string clientRequestId = null, CancellationToken cancellationToken = default) { - return await GetAutomationWatchers().GetAsync(watcherName, cancellationToken).ConfigureAwait(false); + return await GetAutomationJobs().GetAsync(jobName, clientRequestId, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve the watcher identified by watcher name. + /// Retrieve the job identified by job name. /// /// /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/watchers/{watcherName} + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/jobs/{jobName} /// /// /// Operation Id - /// Watcher_Get + /// Job_Get /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2023-11-01 /// /// /// Resource - /// + /// /// /// /// - /// The watcher name. + /// The job name. + /// Identifies this specific client request. /// The cancellation token to use. - /// is null. - /// is an empty string, and was expected to be non-empty. + /// is null. + /// is an empty string, and was expected to be non-empty. [ForwardsClientCalls] - public virtual Response GetAutomationWatcher(string watcherName, CancellationToken cancellationToken = default) + public virtual Response GetAutomationJob(string jobName, string clientRequestId = null, CancellationToken cancellationToken = default) { - return GetAutomationWatchers().Get(watcherName, cancellationToken); + return GetAutomationJobs().Get(jobName, clientRequestId, cancellationToken); } - /// Gets a collection of DscConfigurationResources in the AutomationAccount. - /// An object representing collection of DscConfigurationResources and their operations over a DscConfigurationResource. - public virtual DscConfigurationCollection GetDscConfigurations() + /// Gets a collection of AutomationJobScheduleResources in the AutomationAccount. + /// An object representing collection of AutomationJobScheduleResources and their operations over a AutomationJobScheduleResource. + public virtual AutomationJobScheduleCollection GetAutomationJobSchedules() { - return GetCachedClient(client => new DscConfigurationCollection(client, Id)); + return GetCachedClient(client => new AutomationJobScheduleCollection(client, Id)); } /// - /// Retrieve the configuration identified by configuration name. + /// Retrieve the job schedule identified by job schedule name. /// /// /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/configurations/{configurationName} + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/jobSchedules/{jobScheduleId} /// /// /// Operation Id - /// DscConfiguration_Get + /// JobSchedule_Get /// /// /// Default Api Version - /// 2019-06-01 + /// 2023-11-01 /// /// /// Resource - /// + /// /// /// /// - /// The configuration name. + /// The job schedule name. /// The cancellation token to use. - /// is null. - /// is an empty string, and was expected to be non-empty. [ForwardsClientCalls] - public virtual async Task> GetDscConfigurationAsync(string configurationName, CancellationToken cancellationToken = default) + public virtual async Task> GetAutomationJobScheduleAsync(Guid jobScheduleId, CancellationToken cancellationToken = default) { - return await GetDscConfigurations().GetAsync(configurationName, cancellationToken).ConfigureAwait(false); + return await GetAutomationJobSchedules().GetAsync(jobScheduleId, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve the configuration identified by configuration name. + /// Retrieve the job schedule identified by job schedule name. /// /// /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/configurations/{configurationName} + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/jobSchedules/{jobScheduleId} /// /// /// Operation Id - /// DscConfiguration_Get + /// JobSchedule_Get /// /// /// Default Api Version - /// 2019-06-01 + /// 2023-11-01 /// /// /// Resource - /// + /// /// /// /// - /// The configuration name. + /// The job schedule name. /// The cancellation token to use. - /// is null. - /// is an empty string, and was expected to be non-empty. [ForwardsClientCalls] - public virtual Response GetDscConfiguration(string configurationName, CancellationToken cancellationToken = default) + public virtual Response GetAutomationJobSchedule(Guid jobScheduleId, CancellationToken cancellationToken = default) { - return GetDscConfigurations().Get(configurationName, cancellationToken); + return GetAutomationJobSchedules().Get(jobScheduleId, cancellationToken); } - /// Gets a collection of AutomationJobResources in the AutomationAccount. - /// An object representing collection of AutomationJobResources and their operations over a AutomationJobResource. - public virtual AutomationJobCollection GetAutomationJobs() + /// Gets a collection of AutomationAccountModuleResources in the AutomationAccount. + /// An object representing collection of AutomationAccountModuleResources and their operations over a AutomationAccountModuleResource. + public virtual AutomationAccountModuleCollection GetAutomationAccountModules() { - return GetCachedClient(client => new AutomationJobCollection(client, Id)); + return GetCachedClient(client => new AutomationAccountModuleCollection(client, Id)); } /// - /// Retrieve the job identified by job name. + /// Retrieve the module identified by module name. /// /// /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/jobs/{jobName} + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/modules/{moduleName} /// /// /// Operation Id - /// Job_Get + /// Module_Get /// /// /// Default Api Version - /// 2019-06-01 + /// 2023-11-01 /// /// /// Resource - /// + /// /// /// /// - /// The job name. - /// Identifies this specific client request. + /// The module name. /// The cancellation token to use. - /// is null. - /// is an empty string, and was expected to be non-empty. + /// is null. + /// is an empty string, and was expected to be non-empty. [ForwardsClientCalls] - public virtual async Task> GetAutomationJobAsync(string jobName, string clientRequestId = null, CancellationToken cancellationToken = default) + public virtual async Task> GetAutomationAccountModuleAsync(string moduleName, CancellationToken cancellationToken = default) { - return await GetAutomationJobs().GetAsync(jobName, clientRequestId, cancellationToken).ConfigureAwait(false); + return await GetAutomationAccountModules().GetAsync(moduleName, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve the job identified by job name. + /// Retrieve the module identified by module name. /// /// /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/jobs/{jobName} + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/modules/{moduleName} /// /// /// Operation Id - /// Job_Get + /// Module_Get /// /// /// Default Api Version - /// 2019-06-01 + /// 2023-11-01 /// /// /// Resource - /// + /// + /// + /// + /// + /// The module name. + /// The cancellation token to use. + /// is null. + /// is an empty string, and was expected to be non-empty. + [ForwardsClientCalls] + public virtual Response GetAutomationAccountModule(string moduleName, CancellationToken cancellationToken = default) + { + return GetAutomationAccountModules().Get(moduleName, cancellationToken); + } + + /// Gets a collection of AutomationAccountPowerShell72ModuleResources in the AutomationAccount. + /// An object representing collection of AutomationAccountPowerShell72ModuleResources and their operations over a AutomationAccountPowerShell72ModuleResource. + public virtual AutomationAccountPowerShell72ModuleCollection GetAutomationAccountPowerShell72Modules() + { + return GetCachedClient(client => new AutomationAccountPowerShell72ModuleCollection(client, Id)); + } + + /// + /// Retrieve the module identified by module name. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/powerShell72Modules/{moduleName} + /// + /// + /// Operation Id + /// PowerShell72Module_Get + /// + /// + /// Default Api Version + /// 2023-11-01 + /// + /// + /// Resource + /// + /// + /// + /// + /// The name of module. + /// The cancellation token to use. + /// is null. + /// is an empty string, and was expected to be non-empty. + [ForwardsClientCalls] + public virtual async Task> GetAutomationAccountPowerShell72ModuleAsync(string moduleName, CancellationToken cancellationToken = default) + { + return await GetAutomationAccountPowerShell72Modules().GetAsync(moduleName, cancellationToken).ConfigureAwait(false); + } + + /// + /// Retrieve the module identified by module name. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/powerShell72Modules/{moduleName} + /// + /// + /// Operation Id + /// PowerShell72Module_Get + /// + /// + /// Default Api Version + /// 2023-11-01 + /// + /// + /// Resource + /// + /// + /// + /// + /// The name of module. + /// The cancellation token to use. + /// is null. + /// is an empty string, and was expected to be non-empty. + [ForwardsClientCalls] + public virtual Response GetAutomationAccountPowerShell72Module(string moduleName, CancellationToken cancellationToken = default) + { + return GetAutomationAccountPowerShell72Modules().Get(moduleName, cancellationToken); + } + + /// Gets a collection of AutomationAccountPython2PackageResources in the AutomationAccount. + /// An object representing collection of AutomationAccountPython2PackageResources and their operations over a AutomationAccountPython2PackageResource. + public virtual AutomationAccountPython2PackageCollection GetAutomationAccountPython2Packages() + { + return GetCachedClient(client => new AutomationAccountPython2PackageCollection(client, Id)); + } + + /// + /// Retrieve the python 2 package identified by package name. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/python2Packages/{packageName} + /// + /// + /// Operation Id + /// Python2Package_Get + /// + /// + /// Default Api Version + /// 2023-11-01 + /// + /// + /// Resource + /// + /// + /// + /// + /// The python package name. + /// The cancellation token to use. + /// is null. + /// is an empty string, and was expected to be non-empty. + [ForwardsClientCalls] + public virtual async Task> GetAutomationAccountPython2PackageAsync(string packageName, CancellationToken cancellationToken = default) + { + return await GetAutomationAccountPython2Packages().GetAsync(packageName, cancellationToken).ConfigureAwait(false); + } + + /// + /// Retrieve the python 2 package identified by package name. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/python2Packages/{packageName} + /// + /// + /// Operation Id + /// Python2Package_Get + /// + /// + /// Default Api Version + /// 2023-11-01 + /// + /// + /// Resource + /// /// /// /// - /// The job name. - /// Identifies this specific client request. + /// The python package name. /// The cancellation token to use. - /// is null. - /// is an empty string, and was expected to be non-empty. + /// is null. + /// is an empty string, and was expected to be non-empty. [ForwardsClientCalls] - public virtual Response GetAutomationJob(string jobName, string clientRequestId = null, CancellationToken cancellationToken = default) + public virtual Response GetAutomationAccountPython2Package(string packageName, CancellationToken cancellationToken = default) { - return GetAutomationJobs().Get(jobName, clientRequestId, cancellationToken); + return GetAutomationAccountPython2Packages().Get(packageName, cancellationToken); } - /// Gets a collection of SoftwareUpdateConfigurationResources in the AutomationAccount. - /// An object representing collection of SoftwareUpdateConfigurationResources and their operations over a SoftwareUpdateConfigurationResource. - public virtual SoftwareUpdateConfigurationCollection GetSoftwareUpdateConfigurations() + /// Gets a collection of AutomationAccountPython3PackageResources in the AutomationAccount. + /// An object representing collection of AutomationAccountPython3PackageResources and their operations over a AutomationAccountPython3PackageResource. + public virtual AutomationAccountPython3PackageCollection GetAutomationAccountPython3Packages() { - return GetCachedClient(client => new SoftwareUpdateConfigurationCollection(client, Id)); + return GetCachedClient(client => new AutomationAccountPython3PackageCollection(client, Id)); } /// - /// Get a single software update configuration by name. + /// Retrieve the python 3 package identified by package name. /// /// /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/softwareUpdateConfigurations/{softwareUpdateConfigurationName} + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/python3Packages/{packageName} /// /// /// Operation Id - /// SoftwareUpdateConfigurations_GetByName + /// Python3Package_Get /// /// /// Default Api Version - /// 2019-06-01 + /// 2023-11-01 /// /// /// Resource - /// + /// /// /// /// - /// The name of the software update configuration to be created. - /// Identifies this specific client request. + /// The python package name. /// The cancellation token to use. - /// is null. - /// is an empty string, and was expected to be non-empty. + /// is null. + /// is an empty string, and was expected to be non-empty. [ForwardsClientCalls] - public virtual async Task> GetSoftwareUpdateConfigurationAsync(string softwareUpdateConfigurationName, string clientRequestId = null, CancellationToken cancellationToken = default) + public virtual async Task> GetAutomationAccountPython3PackageAsync(string packageName, CancellationToken cancellationToken = default) { - return await GetSoftwareUpdateConfigurations().GetAsync(softwareUpdateConfigurationName, clientRequestId, cancellationToken).ConfigureAwait(false); + return await GetAutomationAccountPython3Packages().GetAsync(packageName, cancellationToken).ConfigureAwait(false); } /// - /// Get a single software update configuration by name. + /// Retrieve the python 3 package identified by package name. /// /// /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/softwareUpdateConfigurations/{softwareUpdateConfigurationName} + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/python3Packages/{packageName} /// /// /// Operation Id - /// SoftwareUpdateConfigurations_GetByName + /// Python3Package_Get /// /// /// Default Api Version - /// 2019-06-01 + /// 2023-11-01 /// /// /// Resource - /// + /// /// /// /// - /// The name of the software update configuration to be created. - /// Identifies this specific client request. + /// The python package name. /// The cancellation token to use. - /// is null. - /// is an empty string, and was expected to be non-empty. + /// is null. + /// is an empty string, and was expected to be non-empty. [ForwardsClientCalls] - public virtual Response GetSoftwareUpdateConfiguration(string softwareUpdateConfigurationName, string clientRequestId = null, CancellationToken cancellationToken = default) + public virtual Response GetAutomationAccountPython3Package(string packageName, CancellationToken cancellationToken = default) { - return GetSoftwareUpdateConfigurations().Get(softwareUpdateConfigurationName, clientRequestId, cancellationToken); + return GetAutomationAccountPython3Packages().Get(packageName, cancellationToken); } /// Gets a collection of AutomationRunbookResources in the AutomationAccount. @@ -1411,7 +1480,7 @@ public virtual AutomationRunbookCollection GetAutomationRunbooks() /// /// /// Default Api Version - /// 2018-06-30 + /// 2023-11-01 /// /// /// Resource @@ -1442,7 +1511,7 @@ public virtual async Task> GetAutomationRunb /// /// /// Default Api Version - /// 2018-06-30 + /// 2023-11-01 /// /// /// Resource @@ -1460,142 +1529,211 @@ public virtual Response GetAutomationRunbook(string r return GetAutomationRunbooks().Get(runbookName, cancellationToken); } - /// Gets a collection of AutomationWebhookResources in the AutomationAccount. - /// An object representing collection of AutomationWebhookResources and their operations over a AutomationWebhookResource. - public virtual AutomationWebhookCollection GetAutomationWebhooks() + /// Gets a collection of AutomationScheduleResources in the AutomationAccount. + /// An object representing collection of AutomationScheduleResources and their operations over a AutomationScheduleResource. + public virtual AutomationScheduleCollection GetAutomationSchedules() { - return GetCachedClient(client => new AutomationWebhookCollection(client, Id)); + return GetCachedClient(client => new AutomationScheduleCollection(client, Id)); } /// - /// Retrieve the webhook identified by webhook name. + /// Retrieve the schedule identified by schedule name. /// /// /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/webhooks/{webhookName} + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/schedules/{scheduleName} /// /// /// Operation Id - /// Webhook_Get + /// Schedule_Get /// /// /// Default Api Version - /// 2015-10-31 + /// 2023-11-01 /// /// /// Resource - /// + /// /// /// /// - /// The webhook name. + /// The schedule name. /// The cancellation token to use. - /// is null. - /// is an empty string, and was expected to be non-empty. + /// is null. + /// is an empty string, and was expected to be non-empty. [ForwardsClientCalls] - public virtual async Task> GetAutomationWebhookAsync(string webhookName, CancellationToken cancellationToken = default) + public virtual async Task> GetAutomationScheduleAsync(string scheduleName, CancellationToken cancellationToken = default) { - return await GetAutomationWebhooks().GetAsync(webhookName, cancellationToken).ConfigureAwait(false); + return await GetAutomationSchedules().GetAsync(scheduleName, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve the webhook identified by webhook name. + /// Retrieve the schedule identified by schedule name. /// /// /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/webhooks/{webhookName} + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/schedules/{scheduleName} /// /// /// Operation Id - /// Webhook_Get + /// Schedule_Get /// /// /// Default Api Version - /// 2015-10-31 + /// 2023-11-01 /// /// /// Resource - /// + /// /// /// /// - /// The webhook name. + /// The schedule name. /// The cancellation token to use. - /// is null. - /// is an empty string, and was expected to be non-empty. + /// is null. + /// is an empty string, and was expected to be non-empty. [ForwardsClientCalls] - public virtual Response GetAutomationWebhook(string webhookName, CancellationToken cancellationToken = default) + public virtual Response GetAutomationSchedule(string scheduleName, CancellationToken cancellationToken = default) { - return GetAutomationWebhooks().Get(webhookName, cancellationToken); + return GetAutomationSchedules().Get(scheduleName, cancellationToken); } - /// Gets a collection of HybridRunbookWorkerGroupResources in the AutomationAccount. - /// An object representing collection of HybridRunbookWorkerGroupResources and their operations over a HybridRunbookWorkerGroupResource. - public virtual HybridRunbookWorkerGroupCollection GetHybridRunbookWorkerGroups() + /// Gets a collection of AutomationSourceControlResources in the AutomationAccount. + /// An object representing collection of AutomationSourceControlResources and their operations over a AutomationSourceControlResource. + public virtual AutomationSourceControlCollection GetAutomationSourceControls() { - return GetCachedClient(client => new HybridRunbookWorkerGroupCollection(client, Id)); + return GetCachedClient(client => new AutomationSourceControlCollection(client, Id)); } /// - /// Retrieve a hybrid runbook worker group. + /// Retrieve the source control identified by source control name. /// /// /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/hybridRunbookWorkerGroups/{hybridRunbookWorkerGroupName} + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/sourceControls/{sourceControlName} /// /// /// Operation Id - /// HybridRunbookWorkerGroup_Get + /// SourceControl_Get /// /// /// Default Api Version - /// 2022-02-22 + /// 2023-11-01 /// /// /// Resource - /// + /// /// /// /// - /// The hybrid runbook worker group name. + /// The name of source control. /// The cancellation token to use. - /// is null. - /// is an empty string, and was expected to be non-empty. + /// is null. + /// is an empty string, and was expected to be non-empty. [ForwardsClientCalls] - public virtual async Task> GetHybridRunbookWorkerGroupAsync(string hybridRunbookWorkerGroupName, CancellationToken cancellationToken = default) + public virtual async Task> GetAutomationSourceControlAsync(string sourceControlName, CancellationToken cancellationToken = default) { - return await GetHybridRunbookWorkerGroups().GetAsync(hybridRunbookWorkerGroupName, cancellationToken).ConfigureAwait(false); + return await GetAutomationSourceControls().GetAsync(sourceControlName, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a hybrid runbook worker group. + /// Retrieve the source control identified by source control name. /// /// /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/hybridRunbookWorkerGroups/{hybridRunbookWorkerGroupName} + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/sourceControls/{sourceControlName} /// /// /// Operation Id - /// HybridRunbookWorkerGroup_Get + /// SourceControl_Get /// /// /// Default Api Version - /// 2022-02-22 + /// 2023-11-01 /// /// /// Resource - /// + /// /// /// /// - /// The hybrid runbook worker group name. + /// The name of source control. /// The cancellation token to use. - /// is null. - /// is an empty string, and was expected to be non-empty. + /// is null. + /// is an empty string, and was expected to be non-empty. [ForwardsClientCalls] - public virtual Response GetHybridRunbookWorkerGroup(string hybridRunbookWorkerGroupName, CancellationToken cancellationToken = default) + public virtual Response GetAutomationSourceControl(string sourceControlName, CancellationToken cancellationToken = default) { - return GetHybridRunbookWorkerGroups().Get(hybridRunbookWorkerGroupName, cancellationToken); + return GetAutomationSourceControls().Get(sourceControlName, cancellationToken); + } + + /// Gets a collection of AutomationVariableResources in the AutomationAccount. + /// An object representing collection of AutomationVariableResources and their operations over a AutomationVariableResource. + public virtual AutomationVariableCollection GetAutomationVariables() + { + return GetCachedClient(client => new AutomationVariableCollection(client, Id)); + } + + /// + /// Retrieve the variable identified by variable name. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/variables/{variableName} + /// + /// + /// Operation Id + /// Variable_Get + /// + /// + /// Default Api Version + /// 2023-11-01 + /// + /// + /// Resource + /// + /// + /// + /// + /// The name of variable. + /// The cancellation token to use. + /// is null. + /// is an empty string, and was expected to be non-empty. + [ForwardsClientCalls] + public virtual async Task> GetAutomationVariableAsync(string variableName, CancellationToken cancellationToken = default) + { + return await GetAutomationVariables().GetAsync(variableName, cancellationToken).ConfigureAwait(false); + } + + /// + /// Retrieve the variable identified by variable name. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/variables/{variableName} + /// + /// + /// Operation Id + /// Variable_Get + /// + /// + /// Default Api Version + /// 2023-11-01 + /// + /// + /// Resource + /// + /// + /// + /// + /// The name of variable. + /// The cancellation token to use. + /// is null. + /// is an empty string, and was expected to be non-empty. + [ForwardsClientCalls] + public virtual Response GetAutomationVariable(string variableName, CancellationToken cancellationToken = default) + { + return GetAutomationVariables().Get(variableName, cancellationToken); } /// @@ -1611,7 +1749,7 @@ public virtual Response GetHybridRunbookWorker /// /// /// Default Api Version - /// 2021-06-22 + /// 2023-11-01 /// /// /// Resource @@ -1651,7 +1789,7 @@ public virtual async Task> GetAsync(Cancella /// /// /// Default Api Version - /// 2021-06-22 + /// 2023-11-01 /// /// /// Resource @@ -1691,7 +1829,7 @@ public virtual Response Get(CancellationToken cancell /// /// /// Default Api Version - /// 2021-06-22 + /// 2023-11-01 /// /// /// Resource @@ -1735,7 +1873,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2021-06-22 + /// 2023-11-01 /// /// /// Resource @@ -1779,7 +1917,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2021-06-22 + /// 2023-11-01 /// /// /// Resource @@ -1821,7 +1959,7 @@ public virtual async Task> UpdateAsync(Autom /// /// /// Default Api Version - /// 2021-06-22 + /// 2023-11-01 /// /// /// Resource @@ -2201,39 +2339,115 @@ public virtual Pageable GetDscCompilationJobStreams(Guid jo /// /// /// - /// The type of counts to retrieve. + /// The type of counts to retrieve. + /// The cancellation token to use. + /// An async collection of that may take multiple service requests to iterate over. + public virtual AsyncPageable GetAllNodeCountInformationAsync(AutomationCountType countType, CancellationToken cancellationToken = default) + { + HttpMessage FirstPageRequest(int? pageSizeHint) => _nodeCountInformationRestClient.CreateGetRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, countType); + return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, null, e => DscNodeCount.DeserializeDscNodeCount(e), _nodeCountInformationClientDiagnostics, Pipeline, "AutomationAccountResource.GetAllNodeCountInformation", "value", null, cancellationToken); + } + + /// + /// Retrieve counts for Dsc Nodes. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/nodecounts/{countType} + /// + /// + /// Operation Id + /// NodeCountInformation_Get + /// + /// + /// Default Api Version + /// 2020-01-13-preview + /// + /// + /// + /// The type of counts to retrieve. + /// The cancellation token to use. + /// A collection of that may take multiple service requests to iterate over. + public virtual Pageable GetAllNodeCountInformation(AutomationCountType countType, CancellationToken cancellationToken = default) + { + HttpMessage FirstPageRequest(int? pageSizeHint) => _nodeCountInformationRestClient.CreateGetRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, countType); + return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, null, e => DscNodeCount.DeserializeDscNodeCount(e), _nodeCountInformationClientDiagnostics, Pipeline, "AutomationAccountResource.GetAllNodeCountInformation", "value", null, cancellationToken); + } + + /// + /// Generates a Uri for use in creating a webhook. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/webhooks/generateUri + /// + /// + /// Operation Id + /// Webhook_GenerateUri + /// + /// + /// Default Api Version + /// 2015-10-31 + /// + /// + /// Resource + /// + /// + /// + /// /// The cancellation token to use. - /// An async collection of that may take multiple service requests to iterate over. - public virtual AsyncPageable GetAllNodeCountInformationAsync(AutomationCountType countType, CancellationToken cancellationToken = default) + public virtual async Task> GenerateUriWebhookAsync(CancellationToken cancellationToken = default) { - HttpMessage FirstPageRequest(int? pageSizeHint) => _nodeCountInformationRestClient.CreateGetRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, countType); - return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, null, e => DscNodeCount.DeserializeDscNodeCount(e), _nodeCountInformationClientDiagnostics, Pipeline, "AutomationAccountResource.GetAllNodeCountInformation", "value", null, cancellationToken); + using var scope = _automationWebhookWebhookClientDiagnostics.CreateScope("AutomationAccountResource.GenerateUriWebhook"); + scope.Start(); + try + { + var response = await _automationWebhookWebhookRestClient.GenerateUriAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken).ConfigureAwait(false); + return response; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } } /// - /// Retrieve counts for Dsc Nodes. + /// Generates a Uri for use in creating a webhook. /// /// /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/nodecounts/{countType} + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/webhooks/generateUri /// /// /// Operation Id - /// NodeCountInformation_Get + /// Webhook_GenerateUri /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2015-10-31 + /// + /// + /// Resource + /// /// /// /// - /// The type of counts to retrieve. /// The cancellation token to use. - /// A collection of that may take multiple service requests to iterate over. - public virtual Pageable GetAllNodeCountInformation(AutomationCountType countType, CancellationToken cancellationToken = default) + public virtual Response GenerateUriWebhook(CancellationToken cancellationToken = default) { - HttpMessage FirstPageRequest(int? pageSizeHint) => _nodeCountInformationRestClient.CreateGetRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, countType); - return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, null, e => DscNodeCount.DeserializeDscNodeCount(e), _nodeCountInformationClientDiagnostics, Pipeline, "AutomationAccountResource.GetAllNodeCountInformation", "value", null, cancellationToken); + using var scope = _automationWebhookWebhookClientDiagnostics.CreateScope("AutomationAccountResource.GenerateUriWebhook"); + scope.Start(); + try + { + var response = _automationWebhookWebhookRestClient.GenerateUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken); + return response; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } } /// @@ -2249,7 +2463,7 @@ public virtual Pageable GetAllNodeCountInformation(AutomationCount /// /// /// Default Api Version - /// 2021-06-22 + /// 2023-11-01 /// /// /// @@ -2275,7 +2489,7 @@ public virtual AsyncPageable GetStatisticsAsync(str /// /// /// Default Api Version - /// 2021-06-22 + /// 2023-11-01 /// /// /// @@ -2301,7 +2515,7 @@ public virtual Pageable GetStatistics(string filter /// /// /// Default Api Version - /// 2021-06-22 + /// 2023-11-01 /// /// /// @@ -2326,7 +2540,7 @@ public virtual AsyncPageable GetUsagesAsync(CancellationToken c /// /// /// Default Api Version - /// 2021-06-22 + /// 2023-11-01 /// /// /// @@ -2351,7 +2565,7 @@ public virtual Pageable GetUsages(CancellationToken cancellatio /// /// /// Default Api Version - /// 2021-06-22 + /// 2023-11-01 /// /// /// @@ -2376,7 +2590,7 @@ public virtual AsyncPageable GetAutomationAccountKeysAsync(Cancel /// /// /// Default Api Version - /// 2021-06-22 + /// 2023-11-01 /// /// /// @@ -2401,7 +2615,7 @@ public virtual Pageable GetAutomationAccountKeys(CancellationToke /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2023-11-01 /// /// /// @@ -2435,7 +2649,7 @@ public virtual async Task> GetLinkedWorkspac /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2023-11-01 /// /// /// @@ -2469,7 +2683,7 @@ public virtual Response GetLinkedWorkspace(Cancellati /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2023-11-01 /// /// /// @@ -2499,7 +2713,7 @@ public virtual AsyncPageable GetFieldsByTypeAsync(string /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2023-11-01 /// /// /// @@ -2529,7 +2743,7 @@ public virtual Pageable GetFieldsByType(string typeName, /// /// /// Default Api Version - /// 2021-06-22 + /// 2023-11-01 /// /// /// @@ -2567,7 +2781,7 @@ public virtual async Task> ConvertGraphRunbook /// /// /// Default Api Version - /// 2021-06-22 + /// 2023-11-01 /// /// /// @@ -2593,32 +2807,32 @@ public virtual Response ConvertGraphRunbookContent(Grap } /// - /// Get a single software update configuration Run by Id. + /// Get a single software update configuration machine run by Id. /// /// /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/softwareUpdateConfigurationRuns/{softwareUpdateConfigurationRunId} + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/softwareUpdateConfigurationMachineRuns/{softwareUpdateConfigurationMachineRunId} /// /// /// Operation Id - /// SoftwareUpdateConfigurationRuns_GetById + /// SoftwareUpdateConfigurationMachineRuns_GetById /// /// /// Default Api Version - /// 2019-06-01 + /// 2023-11-01 /// /// /// - /// The Id of the software update configuration run. + /// The Id of the software update configuration machine run. /// Identifies this specific client request. /// The cancellation token to use. - public virtual async Task> GetSoftwareUpdateConfigurationRunAsync(Guid softwareUpdateConfigurationRunId, string clientRequestId = null, CancellationToken cancellationToken = default) + public virtual async Task> GetSoftwareUpdateConfigurationMachineRunAsync(Guid softwareUpdateConfigurationMachineRunId, string clientRequestId = null, CancellationToken cancellationToken = default) { - using var scope = _softwareUpdateConfigurationRunsClientDiagnostics.CreateScope("AutomationAccountResource.GetSoftwareUpdateConfigurationRun"); + using var scope = _softwareUpdateConfigurationMachineRunsClientDiagnostics.CreateScope("AutomationAccountResource.GetSoftwareUpdateConfigurationMachineRun"); scope.Start(); try { - var response = await _softwareUpdateConfigurationRunsRestClient.GetByIdAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, softwareUpdateConfigurationRunId, clientRequestId, cancellationToken).ConfigureAwait(false); + var response = await _softwareUpdateConfigurationMachineRunsRestClient.GetByIdAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, softwareUpdateConfigurationMachineRunId, clientRequestId, cancellationToken).ConfigureAwait(false); return response; } catch (Exception e) @@ -2629,32 +2843,32 @@ public virtual async Task> GetSoftwareU } /// - /// Get a single software update configuration Run by Id. + /// Get a single software update configuration machine run by Id. /// /// /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/softwareUpdateConfigurationRuns/{softwareUpdateConfigurationRunId} + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/softwareUpdateConfigurationMachineRuns/{softwareUpdateConfigurationMachineRunId} /// /// /// Operation Id - /// SoftwareUpdateConfigurationRuns_GetById + /// SoftwareUpdateConfigurationMachineRuns_GetById /// /// /// Default Api Version - /// 2019-06-01 + /// 2023-11-01 /// /// /// - /// The Id of the software update configuration run. + /// The Id of the software update configuration machine run. /// Identifies this specific client request. /// The cancellation token to use. - public virtual Response GetSoftwareUpdateConfigurationRun(Guid softwareUpdateConfigurationRunId, string clientRequestId = null, CancellationToken cancellationToken = default) + public virtual Response GetSoftwareUpdateConfigurationMachineRun(Guid softwareUpdateConfigurationMachineRunId, string clientRequestId = null, CancellationToken cancellationToken = default) { - using var scope = _softwareUpdateConfigurationRunsClientDiagnostics.CreateScope("AutomationAccountResource.GetSoftwareUpdateConfigurationRun"); + using var scope = _softwareUpdateConfigurationMachineRunsClientDiagnostics.CreateScope("AutomationAccountResource.GetSoftwareUpdateConfigurationMachineRun"); scope.Start(); try { - var response = _softwareUpdateConfigurationRunsRestClient.GetById(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, softwareUpdateConfigurationRunId, clientRequestId, cancellationToken); + var response = _softwareUpdateConfigurationMachineRunsRestClient.GetById(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, softwareUpdateConfigurationMachineRunId, clientRequestId, cancellationToken); return response; } catch (Exception e) @@ -2665,90 +2879,90 @@ public virtual Response GetSoftwareUpdateConfigu } /// - /// Return list of software update configuration runs + /// Return list of software update configuration machine runs /// /// /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/softwareUpdateConfigurationRuns + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/softwareUpdateConfigurationMachineRuns /// /// /// Operation Id - /// SoftwareUpdateConfigurationRuns_List + /// SoftwareUpdateConfigurationMachineRuns_List /// /// /// Default Api Version - /// 2019-06-01 + /// 2023-11-01 /// /// /// /// Identifies this specific client request. /// The filter to apply on the operation. You can use the following filters: 'properties/osType', 'properties/status', 'properties/startTime', and 'properties/softwareUpdateConfiguration/name'. - /// Number of entries you skip before returning results. + /// number of entries you skip before returning results. /// Maximum number of entries returned in the results collection. /// The cancellation token to use. - /// An async collection of that may take multiple service requests to iterate over. - public virtual AsyncPageable GetSoftwareUpdateConfigurationRunsAsync(string clientRequestId = null, string filter = null, string skip = null, string top = null, CancellationToken cancellationToken = default) + /// An async collection of that may take multiple service requests to iterate over. + public virtual AsyncPageable GetSoftwareUpdateConfigurationMachineRunsAsync(string clientRequestId = null, string filter = null, string skip = null, string top = null, CancellationToken cancellationToken = default) { - HttpMessage FirstPageRequest(int? pageSizeHint) => _softwareUpdateConfigurationRunsRestClient.CreateListRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, clientRequestId, filter, skip, top); - return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, null, e => SoftwareUpdateConfigurationRun.DeserializeSoftwareUpdateConfigurationRun(e), _softwareUpdateConfigurationRunsClientDiagnostics, Pipeline, "AutomationAccountResource.GetSoftwareUpdateConfigurationRuns", "value", null, cancellationToken); + HttpMessage FirstPageRequest(int? pageSizeHint) => _softwareUpdateConfigurationMachineRunsRestClient.CreateListRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, clientRequestId, filter, skip, top); + return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, null, e => SoftwareUpdateConfigurationMachineRun.DeserializeSoftwareUpdateConfigurationMachineRun(e), _softwareUpdateConfigurationMachineRunsClientDiagnostics, Pipeline, "AutomationAccountResource.GetSoftwareUpdateConfigurationMachineRuns", "value", null, cancellationToken); } /// - /// Return list of software update configuration runs + /// Return list of software update configuration machine runs /// /// /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/softwareUpdateConfigurationRuns + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/softwareUpdateConfigurationMachineRuns /// /// /// Operation Id - /// SoftwareUpdateConfigurationRuns_List + /// SoftwareUpdateConfigurationMachineRuns_List /// /// /// Default Api Version - /// 2019-06-01 + /// 2023-11-01 /// /// /// /// Identifies this specific client request. /// The filter to apply on the operation. You can use the following filters: 'properties/osType', 'properties/status', 'properties/startTime', and 'properties/softwareUpdateConfiguration/name'. - /// Number of entries you skip before returning results. + /// number of entries you skip before returning results. /// Maximum number of entries returned in the results collection. /// The cancellation token to use. - /// A collection of that may take multiple service requests to iterate over. - public virtual Pageable GetSoftwareUpdateConfigurationRuns(string clientRequestId = null, string filter = null, string skip = null, string top = null, CancellationToken cancellationToken = default) + /// A collection of that may take multiple service requests to iterate over. + public virtual Pageable GetSoftwareUpdateConfigurationMachineRuns(string clientRequestId = null, string filter = null, string skip = null, string top = null, CancellationToken cancellationToken = default) { - HttpMessage FirstPageRequest(int? pageSizeHint) => _softwareUpdateConfigurationRunsRestClient.CreateListRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, clientRequestId, filter, skip, top); - return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, null, e => SoftwareUpdateConfigurationRun.DeserializeSoftwareUpdateConfigurationRun(e), _softwareUpdateConfigurationRunsClientDiagnostics, Pipeline, "AutomationAccountResource.GetSoftwareUpdateConfigurationRuns", "value", null, cancellationToken); + HttpMessage FirstPageRequest(int? pageSizeHint) => _softwareUpdateConfigurationMachineRunsRestClient.CreateListRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, clientRequestId, filter, skip, top); + return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, null, e => SoftwareUpdateConfigurationMachineRun.DeserializeSoftwareUpdateConfigurationMachineRun(e), _softwareUpdateConfigurationMachineRunsClientDiagnostics, Pipeline, "AutomationAccountResource.GetSoftwareUpdateConfigurationMachineRuns", "value", null, cancellationToken); } /// - /// Get a single software update configuration machine run by Id. + /// Get a single software update configuration Run by Id. /// /// /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/softwareUpdateConfigurationMachineRuns/{softwareUpdateConfigurationMachineRunId} + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/softwareUpdateConfigurationRuns/{softwareUpdateConfigurationRunId} /// /// /// Operation Id - /// SoftwareUpdateConfigurationMachineRuns_GetById + /// SoftwareUpdateConfigurationRuns_GetById /// /// /// Default Api Version - /// 2019-06-01 + /// 2023-11-01 /// /// /// - /// The Id of the software update configuration machine run. + /// The Id of the software update configuration run. /// Identifies this specific client request. /// The cancellation token to use. - public virtual async Task> GetSoftwareUpdateConfigurationMachineRunAsync(Guid softwareUpdateConfigurationMachineRunId, string clientRequestId = null, CancellationToken cancellationToken = default) + public virtual async Task> GetSoftwareUpdateConfigurationRunAsync(Guid softwareUpdateConfigurationRunId, string clientRequestId = null, CancellationToken cancellationToken = default) { - using var scope = _softwareUpdateConfigurationMachineRunsClientDiagnostics.CreateScope("AutomationAccountResource.GetSoftwareUpdateConfigurationMachineRun"); + using var scope = _softwareUpdateConfigurationRunsClientDiagnostics.CreateScope("AutomationAccountResource.GetSoftwareUpdateConfigurationRun"); scope.Start(); try { - var response = await _softwareUpdateConfigurationMachineRunsRestClient.GetByIdAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, softwareUpdateConfigurationMachineRunId, clientRequestId, cancellationToken).ConfigureAwait(false); + var response = await _softwareUpdateConfigurationRunsRestClient.GetByIdAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, softwareUpdateConfigurationRunId, clientRequestId, cancellationToken).ConfigureAwait(false); return response; } catch (Exception e) @@ -2759,32 +2973,32 @@ public virtual async Task> GetSo } /// - /// Get a single software update configuration machine run by Id. + /// Get a single software update configuration Run by Id. /// /// /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/softwareUpdateConfigurationMachineRuns/{softwareUpdateConfigurationMachineRunId} + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/softwareUpdateConfigurationRuns/{softwareUpdateConfigurationRunId} /// /// /// Operation Id - /// SoftwareUpdateConfigurationMachineRuns_GetById + /// SoftwareUpdateConfigurationRuns_GetById /// /// /// Default Api Version - /// 2019-06-01 + /// 2023-11-01 /// /// /// - /// The Id of the software update configuration machine run. + /// The Id of the software update configuration run. /// Identifies this specific client request. /// The cancellation token to use. - public virtual Response GetSoftwareUpdateConfigurationMachineRun(Guid softwareUpdateConfigurationMachineRunId, string clientRequestId = null, CancellationToken cancellationToken = default) + public virtual Response GetSoftwareUpdateConfigurationRun(Guid softwareUpdateConfigurationRunId, string clientRequestId = null, CancellationToken cancellationToken = default) { - using var scope = _softwareUpdateConfigurationMachineRunsClientDiagnostics.CreateScope("AutomationAccountResource.GetSoftwareUpdateConfigurationMachineRun"); + using var scope = _softwareUpdateConfigurationRunsClientDiagnostics.CreateScope("AutomationAccountResource.GetSoftwareUpdateConfigurationRun"); scope.Start(); try { - var response = _softwareUpdateConfigurationMachineRunsRestClient.GetById(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, softwareUpdateConfigurationMachineRunId, clientRequestId, cancellationToken); + var response = _softwareUpdateConfigurationRunsRestClient.GetById(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, softwareUpdateConfigurationRunId, clientRequestId, cancellationToken); return response; } catch (Exception e) @@ -2795,137 +3009,61 @@ public virtual Response GetSoftwareUpdate } /// - /// Return list of software update configuration machine runs + /// Return list of software update configuration runs /// /// /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/softwareUpdateConfigurationMachineRuns + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/softwareUpdateConfigurationRuns /// /// /// Operation Id - /// SoftwareUpdateConfigurationMachineRuns_List + /// SoftwareUpdateConfigurationRuns_List /// /// /// Default Api Version - /// 2019-06-01 + /// 2023-11-01 /// /// /// /// Identifies this specific client request. /// The filter to apply on the operation. You can use the following filters: 'properties/osType', 'properties/status', 'properties/startTime', and 'properties/softwareUpdateConfiguration/name'. - /// number of entries you skip before returning results. + /// Number of entries you skip before returning results. /// Maximum number of entries returned in the results collection. /// The cancellation token to use. - /// An async collection of that may take multiple service requests to iterate over. - public virtual AsyncPageable GetSoftwareUpdateConfigurationMachineRunsAsync(string clientRequestId = null, string filter = null, string skip = null, string top = null, CancellationToken cancellationToken = default) + /// An async collection of that may take multiple service requests to iterate over. + public virtual AsyncPageable GetSoftwareUpdateConfigurationRunsAsync(string clientRequestId = null, string filter = null, string skip = null, string top = null, CancellationToken cancellationToken = default) { - HttpMessage FirstPageRequest(int? pageSizeHint) => _softwareUpdateConfigurationMachineRunsRestClient.CreateListRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, clientRequestId, filter, skip, top); - return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, null, e => SoftwareUpdateConfigurationMachineRun.DeserializeSoftwareUpdateConfigurationMachineRun(e), _softwareUpdateConfigurationMachineRunsClientDiagnostics, Pipeline, "AutomationAccountResource.GetSoftwareUpdateConfigurationMachineRuns", "value", null, cancellationToken); + HttpMessage FirstPageRequest(int? pageSizeHint) => _softwareUpdateConfigurationRunsRestClient.CreateListRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, clientRequestId, filter, skip, top); + return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, null, e => SoftwareUpdateConfigurationRun.DeserializeSoftwareUpdateConfigurationRun(e), _softwareUpdateConfigurationRunsClientDiagnostics, Pipeline, "AutomationAccountResource.GetSoftwareUpdateConfigurationRuns", "value", null, cancellationToken); } /// - /// Return list of software update configuration machine runs + /// Return list of software update configuration runs /// /// /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/softwareUpdateConfigurationMachineRuns + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/softwareUpdateConfigurationRuns /// /// /// Operation Id - /// SoftwareUpdateConfigurationMachineRuns_List + /// SoftwareUpdateConfigurationRuns_List /// /// /// Default Api Version - /// 2019-06-01 + /// 2023-11-01 /// /// /// /// Identifies this specific client request. /// The filter to apply on the operation. You can use the following filters: 'properties/osType', 'properties/status', 'properties/startTime', and 'properties/softwareUpdateConfiguration/name'. - /// number of entries you skip before returning results. + /// Number of entries you skip before returning results. /// Maximum number of entries returned in the results collection. /// The cancellation token to use. - /// A collection of that may take multiple service requests to iterate over. - public virtual Pageable GetSoftwareUpdateConfigurationMachineRuns(string clientRequestId = null, string filter = null, string skip = null, string top = null, CancellationToken cancellationToken = default) - { - HttpMessage FirstPageRequest(int? pageSizeHint) => _softwareUpdateConfigurationMachineRunsRestClient.CreateListRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, clientRequestId, filter, skip, top); - return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, null, e => SoftwareUpdateConfigurationMachineRun.DeserializeSoftwareUpdateConfigurationMachineRun(e), _softwareUpdateConfigurationMachineRunsClientDiagnostics, Pipeline, "AutomationAccountResource.GetSoftwareUpdateConfigurationMachineRuns", "value", null, cancellationToken); - } - - /// - /// Generates a Uri for use in creating a webhook. - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/webhooks/generateUri - /// - /// - /// Operation Id - /// Webhook_GenerateUri - /// - /// - /// Default Api Version - /// 2015-10-31 - /// - /// - /// Resource - /// - /// - /// - /// - /// The cancellation token to use. - public virtual async Task> GenerateUriWebhookAsync(CancellationToken cancellationToken = default) - { - using var scope = _automationWebhookWebhookClientDiagnostics.CreateScope("AutomationAccountResource.GenerateUriWebhook"); - scope.Start(); - try - { - var response = await _automationWebhookWebhookRestClient.GenerateUriAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken).ConfigureAwait(false); - return response; - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - /// - /// Generates a Uri for use in creating a webhook. - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/webhooks/generateUri - /// - /// - /// Operation Id - /// Webhook_GenerateUri - /// - /// - /// Default Api Version - /// 2015-10-31 - /// - /// - /// Resource - /// - /// - /// - /// - /// The cancellation token to use. - public virtual Response GenerateUriWebhook(CancellationToken cancellationToken = default) + /// A collection of that may take multiple service requests to iterate over. + public virtual Pageable GetSoftwareUpdateConfigurationRuns(string clientRequestId = null, string filter = null, string skip = null, string top = null, CancellationToken cancellationToken = default) { - using var scope = _automationWebhookWebhookClientDiagnostics.CreateScope("AutomationAccountResource.GenerateUriWebhook"); - scope.Start(); - try - { - var response = _automationWebhookWebhookRestClient.GenerateUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken); - return response; - } - catch (Exception e) - { - scope.Failed(e); - throw; - } + HttpMessage FirstPageRequest(int? pageSizeHint) => _softwareUpdateConfigurationRunsRestClient.CreateListRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, clientRequestId, filter, skip, top); + return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, null, e => SoftwareUpdateConfigurationRun.DeserializeSoftwareUpdateConfigurationRun(e), _softwareUpdateConfigurationRunsClientDiagnostics, Pipeline, "AutomationAccountResource.GetSoftwareUpdateConfigurationRuns", "value", null, cancellationToken); } /// @@ -2941,7 +3079,7 @@ public virtual Response GenerateUriWebhook(CancellationToken cancellatio /// /// /// Default Api Version - /// 2021-06-22 + /// 2023-11-01 /// /// /// Resource @@ -3003,7 +3141,7 @@ public virtual async Task> AddTagAsync(strin /// /// /// Default Api Version - /// 2021-06-22 + /// 2023-11-01 /// /// /// Resource @@ -3065,7 +3203,7 @@ public virtual Response AddTag(string key, string val /// /// /// Default Api Version - /// 2021-06-22 + /// 2023-11-01 /// /// /// Resource @@ -3122,7 +3260,7 @@ public virtual async Task> SetTagsAsync(IDic /// /// /// Default Api Version - /// 2021-06-22 + /// 2023-11-01 /// /// /// Resource @@ -3179,7 +3317,7 @@ public virtual Response SetTags(IDictionary /// /// Default Api Version - /// 2021-06-22 + /// 2023-11-01 /// /// /// Resource @@ -3239,7 +3377,7 @@ public virtual async Task> RemoveTagAsync(st /// /// /// Default Api Version - /// 2021-06-22 + /// 2023-11-01 /// /// /// Resource diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationCertificateCollection.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationCertificateCollection.cs index d4ee4435e12f..d339284d4819 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationCertificateCollection.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationCertificateCollection.cs @@ -65,7 +65,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2023-11-01 /// /// /// Resource @@ -116,7 +116,7 @@ public virtual async Task> CreateOrU /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2023-11-01 /// /// /// Resource @@ -167,7 +167,7 @@ public virtual ArmOperation CreateOrUpdate(WaitUn /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2023-11-01 /// /// /// Resource @@ -212,7 +212,7 @@ public virtual async Task> GetAsync(stri /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2023-11-01 /// /// /// Resource @@ -257,7 +257,7 @@ public virtual Response Get(string certificateNam /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2023-11-01 /// /// /// Resource @@ -287,7 +287,7 @@ public virtual AsyncPageable GetAllAsync(Cancella /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2023-11-01 /// /// /// Resource @@ -317,7 +317,7 @@ public virtual Pageable GetAll(CancellationToken /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2023-11-01 /// /// /// Resource @@ -360,7 +360,7 @@ public virtual async Task> ExistsAsync(string certificateName, Ca /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2023-11-01 /// /// /// Resource @@ -403,7 +403,7 @@ public virtual Response Exists(string certificateName, CancellationToken c /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2023-11-01 /// /// /// Resource @@ -448,7 +448,7 @@ public virtual async Task> GetIf /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2023-11-01 /// /// /// Resource diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationCertificateResource.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationCertificateResource.cs index 20697dff115e..6133916209f6 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationCertificateResource.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationCertificateResource.cs @@ -102,7 +102,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2023-11-01 /// /// /// Resource @@ -142,7 +142,7 @@ public virtual async Task> GetAsync(Canc /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2023-11-01 /// /// /// Resource @@ -182,7 +182,7 @@ public virtual Response Get(CancellationToken can /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2023-11-01 /// /// /// Resource @@ -226,7 +226,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2023-11-01 /// /// /// Resource @@ -270,7 +270,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2023-11-01 /// /// /// Resource @@ -312,7 +312,7 @@ public virtual async Task> UpdateAsync(A /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2023-11-01 /// /// /// Resource diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationConnectionCollection.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationConnectionCollection.cs index f9160e51dfc4..719da7e7c89f 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationConnectionCollection.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationConnectionCollection.cs @@ -65,7 +65,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2023-11-01 /// /// /// Resource @@ -116,7 +116,7 @@ public virtual async Task> CreateOrUp /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2023-11-01 /// /// /// Resource @@ -167,7 +167,7 @@ public virtual ArmOperation CreateOrUpdate(WaitUnt /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2023-11-01 /// /// /// Resource @@ -212,7 +212,7 @@ public virtual async Task> GetAsync(strin /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2023-11-01 /// /// /// Resource @@ -257,7 +257,7 @@ public virtual Response Get(string connectionName, /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2023-11-01 /// /// /// Resource @@ -287,7 +287,7 @@ public virtual AsyncPageable GetAllAsync(Cancellat /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2023-11-01 /// /// /// Resource @@ -317,7 +317,7 @@ public virtual Pageable GetAll(CancellationToken c /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2023-11-01 /// /// /// Resource @@ -360,7 +360,7 @@ public virtual async Task> ExistsAsync(string connectionName, Can /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2023-11-01 /// /// /// Resource @@ -403,7 +403,7 @@ public virtual Response Exists(string connectionName, CancellationToken ca /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2023-11-01 /// /// /// Resource @@ -448,7 +448,7 @@ public virtual async Task> GetIfE /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2023-11-01 /// /// /// Resource diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationConnectionResource.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationConnectionResource.cs index 0efa3d1ccd4f..9b09ddad79bf 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationConnectionResource.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationConnectionResource.cs @@ -102,7 +102,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2023-11-01 /// /// /// Resource @@ -142,7 +142,7 @@ public virtual async Task> GetAsync(Cance /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2023-11-01 /// /// /// Resource @@ -182,7 +182,7 @@ public virtual Response Get(CancellationToken canc /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2023-11-01 /// /// /// Resource @@ -226,7 +226,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2023-11-01 /// /// /// Resource @@ -270,7 +270,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2023-11-01 /// /// /// Resource @@ -312,7 +312,7 @@ public virtual async Task> UpdateAsync(Au /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2023-11-01 /// /// /// Resource diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationConnectionTypeCollection.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationConnectionTypeCollection.cs index f91a16ae25c9..1dd808a67291 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationConnectionTypeCollection.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationConnectionTypeCollection.cs @@ -65,7 +65,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2023-11-01 /// /// /// Resource @@ -116,7 +116,7 @@ public virtual async Task> Create /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2023-11-01 /// /// /// Resource @@ -167,7 +167,7 @@ public virtual ArmOperation CreateOrUpdate(Wai /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2023-11-01 /// /// /// Resource @@ -212,7 +212,7 @@ public virtual async Task> GetAsync(s /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2023-11-01 /// /// /// Resource @@ -257,7 +257,7 @@ public virtual Response Get(string connectionT /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2023-11-01 /// /// /// Resource @@ -287,7 +287,7 @@ public virtual AsyncPageable GetAllAsync(Cance /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2023-11-01 /// /// /// Resource @@ -317,7 +317,7 @@ public virtual Pageable GetAll(CancellationTok /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2023-11-01 /// /// /// Resource @@ -360,7 +360,7 @@ public virtual async Task> ExistsAsync(string connectionTypeName, /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2023-11-01 /// /// /// Resource @@ -403,7 +403,7 @@ public virtual Response Exists(string connectionTypeName, CancellationToke /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2023-11-01 /// /// /// Resource @@ -448,7 +448,7 @@ public virtual async Task> Ge /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2023-11-01 /// /// /// Resource diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationConnectionTypeResource.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationConnectionTypeResource.cs index b275d8c67701..f9e27e1f52f7 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationConnectionTypeResource.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationConnectionTypeResource.cs @@ -102,7 +102,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2023-11-01 /// /// /// Resource @@ -142,7 +142,7 @@ public virtual async Task> GetAsync(C /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2023-11-01 /// /// /// Resource @@ -182,7 +182,7 @@ public virtual Response Get(CancellationToken /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2023-11-01 /// /// /// Resource @@ -226,7 +226,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2023-11-01 /// /// /// Resource @@ -270,7 +270,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2023-11-01 /// /// /// Resource @@ -318,7 +318,7 @@ public virtual async Task> Update /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2023-11-01 /// /// /// Resource diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationCredentialCollection.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationCredentialCollection.cs index 3686c4e813fc..5510ca6c8f4a 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationCredentialCollection.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationCredentialCollection.cs @@ -65,7 +65,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2023-11-01 /// /// /// Resource @@ -116,7 +116,7 @@ public virtual async Task> CreateOrUp /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2023-11-01 /// /// /// Resource @@ -167,7 +167,7 @@ public virtual ArmOperation CreateOrUpdate(WaitUnt /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2023-11-01 /// /// /// Resource @@ -212,7 +212,7 @@ public virtual async Task> GetAsync(strin /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2023-11-01 /// /// /// Resource @@ -257,7 +257,7 @@ public virtual Response Get(string credentialName, /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2023-11-01 /// /// /// Resource @@ -287,7 +287,7 @@ public virtual AsyncPageable GetAllAsync(Cancellat /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2023-11-01 /// /// /// Resource @@ -317,7 +317,7 @@ public virtual Pageable GetAll(CancellationToken c /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2023-11-01 /// /// /// Resource @@ -360,7 +360,7 @@ public virtual async Task> ExistsAsync(string credentialName, Can /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2023-11-01 /// /// /// Resource @@ -403,7 +403,7 @@ public virtual Response Exists(string credentialName, CancellationToken ca /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2023-11-01 /// /// /// Resource @@ -448,7 +448,7 @@ public virtual async Task> GetIfE /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2023-11-01 /// /// /// Resource diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationCredentialResource.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationCredentialResource.cs index b5c3185d843a..6369e797b736 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationCredentialResource.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationCredentialResource.cs @@ -102,7 +102,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2023-11-01 /// /// /// Resource @@ -142,7 +142,7 @@ public virtual async Task> GetAsync(Cance /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2023-11-01 /// /// /// Resource @@ -182,7 +182,7 @@ public virtual Response Get(CancellationToken canc /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2023-11-01 /// /// /// Resource @@ -226,7 +226,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2023-11-01 /// /// /// Resource @@ -270,7 +270,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2023-11-01 /// /// /// Resource @@ -312,7 +312,7 @@ public virtual async Task> UpdateAsync(Au /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2023-11-01 /// /// /// Resource diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationJobCollection.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationJobCollection.cs index c4941eb78edd..e5663ecbbc13 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationJobCollection.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationJobCollection.cs @@ -65,7 +65,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2019-06-01 + /// 2023-11-01 /// /// /// Resource @@ -117,7 +117,7 @@ public virtual async Task> CreateOrUpdateAsy /// /// /// Default Api Version - /// 2019-06-01 + /// 2023-11-01 /// /// /// Resource @@ -169,7 +169,7 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil wait /// /// /// Default Api Version - /// 2019-06-01 + /// 2023-11-01 /// /// /// Resource @@ -215,7 +215,7 @@ public virtual async Task> GetAsync(string jobNa /// /// /// Default Api Version - /// 2019-06-01 + /// 2023-11-01 /// /// /// Resource @@ -261,7 +261,7 @@ public virtual Response Get(string jobName, string client /// /// /// Default Api Version - /// 2019-06-01 + /// 2023-11-01 /// /// /// Resource @@ -293,7 +293,7 @@ public virtual AsyncPageable GetAllAsync(string /// /// /// Default Api Version - /// 2019-06-01 + /// 2023-11-01 /// /// /// Resource @@ -325,7 +325,7 @@ public virtual Pageable GetAll(string filter = /// /// /// Default Api Version - /// 2019-06-01 + /// 2023-11-01 /// /// /// Resource @@ -369,7 +369,7 @@ public virtual async Task> ExistsAsync(string jobName, string cli /// /// /// Default Api Version - /// 2019-06-01 + /// 2023-11-01 /// /// /// Resource @@ -413,7 +413,7 @@ public virtual Response Exists(string jobName, string clientRequestId = nu /// /// /// Default Api Version - /// 2019-06-01 + /// 2023-11-01 /// /// /// Resource @@ -459,7 +459,7 @@ public virtual async Task> GetIfExistsAs /// /// /// Default Api Version - /// 2019-06-01 + /// 2023-11-01 /// /// /// Resource diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationJobResource.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationJobResource.cs index c6304aca76a8..6a7e64d23042 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationJobResource.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationJobResource.cs @@ -107,7 +107,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2019-06-01 + /// 2023-11-01 /// /// /// Resource @@ -148,7 +148,7 @@ public virtual async Task> GetAsync(string clien /// /// /// Default Api Version - /// 2019-06-01 + /// 2023-11-01 /// /// /// Resource @@ -189,7 +189,7 @@ public virtual Response Get(string clientRequestId = null /// /// /// Default Api Version - /// 2019-06-01 + /// 2023-11-01 /// /// /// Resource @@ -238,7 +238,7 @@ public virtual async Task> UpdateAsync(WaitU /// /// /// Default Api Version - /// 2019-06-01 + /// 2023-11-01 /// /// /// Resource @@ -287,7 +287,7 @@ public virtual ArmOperation Update(WaitUntil waitUntil, A /// /// /// Default Api Version - /// 2019-06-01 + /// 2023-11-01 /// /// /// Resource @@ -326,7 +326,7 @@ public virtual async Task> GetOutputAsync(string clientRequestI /// /// /// Default Api Version - /// 2019-06-01 + /// 2023-11-01 /// /// /// Resource @@ -365,7 +365,7 @@ public virtual Response GetOutput(string clientRequestId = null, Cancell /// /// /// Default Api Version - /// 2019-06-01 + /// 2023-11-01 /// /// /// Resource @@ -404,7 +404,7 @@ public virtual async Task> GetRunbookContentAsync(string client /// /// /// Default Api Version - /// 2019-06-01 + /// 2023-11-01 /// /// /// Resource @@ -443,7 +443,7 @@ public virtual Response GetRunbookContent(string clientRequestId = null, /// /// /// Default Api Version - /// 2019-06-01 + /// 2023-11-01 /// /// /// Resource @@ -482,7 +482,7 @@ public virtual async Task SuspendAsync(string clientRequestId = null, /// /// /// Default Api Version - /// 2019-06-01 + /// 2023-11-01 /// /// /// Resource @@ -521,7 +521,7 @@ public virtual Response Suspend(string clientRequestId = null, CancellationToken /// /// /// Default Api Version - /// 2019-06-01 + /// 2023-11-01 /// /// /// Resource @@ -560,7 +560,7 @@ public virtual async Task StopAsync(string clientRequestId = null, Can /// /// /// Default Api Version - /// 2019-06-01 + /// 2023-11-01 /// /// /// Resource @@ -599,7 +599,7 @@ public virtual Response Stop(string clientRequestId = null, CancellationToken ca /// /// /// Default Api Version - /// 2019-06-01 + /// 2023-11-01 /// /// /// Resource @@ -638,7 +638,7 @@ public virtual async Task ResumeAsync(string clientRequestId = null, C /// /// /// Default Api Version - /// 2019-06-01 + /// 2023-11-01 /// /// /// Resource @@ -677,7 +677,7 @@ public virtual Response Resume(string clientRequestId = null, CancellationToken /// /// /// Default Api Version - /// 2019-06-01 + /// 2023-11-01 /// /// /// @@ -717,7 +717,7 @@ public virtual async Task> GetJobStreamAsync(strin /// /// /// Default Api Version - /// 2019-06-01 + /// 2023-11-01 /// /// /// @@ -757,7 +757,7 @@ public virtual Response GetJobStream(string jobStreamId, st /// /// /// Default Api Version - /// 2019-06-01 + /// 2023-11-01 /// /// /// @@ -785,7 +785,7 @@ public virtual AsyncPageable GetJobStreamsAsync(string filt /// /// /// Default Api Version - /// 2019-06-01 + /// 2023-11-01 /// /// /// diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationJobScheduleCollection.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationJobScheduleCollection.cs index f5f9a7f03cad..fe2f043ee744 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationJobScheduleCollection.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationJobScheduleCollection.cs @@ -65,7 +65,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2023-11-01 /// /// /// Resource @@ -114,7 +114,7 @@ public virtual async Task> CreateOrU /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2023-11-01 /// /// /// Resource @@ -163,7 +163,7 @@ public virtual ArmOperation CreateOrUpdate(WaitUn /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2023-11-01 /// /// /// Resource @@ -204,7 +204,7 @@ public virtual async Task> GetAsync(Guid /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2023-11-01 /// /// /// Resource @@ -245,7 +245,7 @@ public virtual Response Get(Guid jobScheduleId, C /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2023-11-01 /// /// /// Resource @@ -276,7 +276,7 @@ public virtual AsyncPageable GetAllAsync(string f /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2023-11-01 /// /// /// Resource @@ -307,7 +307,7 @@ public virtual Pageable GetAll(string filter = nu /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2023-11-01 /// /// /// Resource @@ -346,7 +346,7 @@ public virtual async Task> ExistsAsync(Guid jobScheduleId, Cancel /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2023-11-01 /// /// /// Resource @@ -385,7 +385,7 @@ public virtual Response Exists(Guid jobScheduleId, CancellationToken cance /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2023-11-01 /// /// /// Resource @@ -426,7 +426,7 @@ public virtual async Task> GetIf /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2023-11-01 /// /// /// Resource diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationJobScheduleResource.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationJobScheduleResource.cs index 7171133d63b1..f6418d57ffda 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationJobScheduleResource.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationJobScheduleResource.cs @@ -102,7 +102,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2023-11-01 /// /// /// Resource @@ -142,7 +142,7 @@ public virtual async Task> GetAsync(Canc /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2023-11-01 /// /// /// Resource @@ -182,7 +182,7 @@ public virtual Response Get(CancellationToken can /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2023-11-01 /// /// /// Resource @@ -226,7 +226,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2023-11-01 /// /// /// Resource @@ -270,7 +270,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2023-11-01 /// /// /// Resource @@ -318,7 +318,7 @@ public virtual async Task> UpdateAsy /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2023-11-01 /// /// /// Resource diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationModuleData.Serialization.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationModuleData.Serialization.cs index 95475f767cb9..ab2db4d79c3d 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationModuleData.Serialization.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationModuleData.Serialization.cs @@ -67,7 +67,7 @@ protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWri if (Optional.IsDefined(ProvisioningState)) { writer.WritePropertyName("provisioningState"u8); - writer.WriteStringValue(ProvisioningState.Value.ToSerialString()); + writer.WriteStringValue(ProvisioningState.Value.ToString()); } if (Optional.IsDefined(ContentLink)) { @@ -243,7 +243,7 @@ internal static AutomationModuleData DeserializeAutomationModuleData(JsonElement { continue; } - provisioningState = property0.Value.GetString().ToModuleProvisioningState(); + provisioningState = new ModuleProvisioningState(property0.Value.GetString()); continue; } if (property0.NameEquals("contentLink"u8)) diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationModuleData.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationModuleData.cs index 1b34c4b5fc24..2a139269de74 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationModuleData.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationModuleData.cs @@ -64,18 +64,18 @@ public AutomationModuleData(AzureLocation location) : base(location) /// The systemData. /// The tags. /// The location. - /// Gets or sets the etag of the resource. - /// Gets or sets the isGlobal flag of the module. - /// Gets or sets the version of the module. - /// Gets or sets the size in bytes of the module. - /// Gets or sets the activity count of the module. - /// Gets or sets the provisioning state of the module. + /// Gets the etag of the resource. + /// Gets the isGlobal flag of the module. + /// Gets the version of the module. + /// Gets the size in bytes of the module. + /// Gets the activity count of the module. + /// Gets the provisioning state of the module. /// Gets or sets the contentLink of the module. - /// Gets or sets the error info of the module. - /// Gets or sets the creation time. - /// Gets or sets the last modified time. + /// Gets the error info of the module. + /// Gets the creation time. + /// Gets the last modified time. /// Gets or sets the description. - /// Gets or sets type of module, if its composite or not. + /// Gets type of module, if its composite or not. /// Keeps track of any properties unknown to the library. internal AutomationModuleData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary tags, AzureLocation location, ETag? etag, bool? isGlobal, string version, long? sizeInBytes, int? activityCount, ModuleProvisioningState? provisioningState, AutomationContentLink contentLink, AutomationModuleErrorInfo error, DateTimeOffset? createdOn, DateTimeOffset? lastModifiedOn, string description, bool? isComposite, IDictionary serializedAdditionalRawData) : base(id, name, resourceType, systemData, tags, location) { @@ -99,29 +99,29 @@ internal AutomationModuleData() { } - /// Gets or sets the etag of the resource. + /// Gets the etag of the resource. public ETag? ETag { get; set; } - /// Gets or sets the isGlobal flag of the module. + /// Gets the isGlobal flag of the module. public bool? IsGlobal { get; set; } - /// Gets or sets the version of the module. + /// Gets the version of the module. public string Version { get; set; } - /// Gets or sets the size in bytes of the module. + /// Gets the size in bytes of the module. public long? SizeInBytes { get; set; } - /// Gets or sets the activity count of the module. + /// Gets the activity count of the module. public int? ActivityCount { get; set; } - /// Gets or sets the provisioning state of the module. + /// Gets the provisioning state of the module. public ModuleProvisioningState? ProvisioningState { get; set; } /// Gets or sets the contentLink of the module. public AutomationContentLink ContentLink { get; set; } - /// Gets or sets the error info of the module. + /// Gets the error info of the module. public AutomationModuleErrorInfo Error { get; set; } - /// Gets or sets the creation time. + /// Gets the creation time. public DateTimeOffset? CreatedOn { get; set; } - /// Gets or sets the last modified time. + /// Gets the last modified time. public DateTimeOffset? LastModifiedOn { get; set; } /// Gets or sets the description. public string Description { get; set; } - /// Gets or sets type of module, if its composite or not. + /// Gets type of module, if its composite or not. public bool? IsComposite { get; set; } } } diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationRunbookCollection.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationRunbookCollection.cs index 789477ce3100..bb65aaf35627 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationRunbookCollection.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationRunbookCollection.cs @@ -65,7 +65,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2018-06-30 + /// 2023-11-01 /// /// /// Resource @@ -116,7 +116,7 @@ public virtual async Task> CreateOrUpdat /// /// /// Default Api Version - /// 2018-06-30 + /// 2023-11-01 /// /// /// Resource @@ -167,7 +167,7 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil /// /// /// Default Api Version - /// 2018-06-30 + /// 2023-11-01 /// /// /// Resource @@ -212,7 +212,7 @@ public virtual async Task> GetAsync(string r /// /// /// Default Api Version - /// 2018-06-30 + /// 2023-11-01 /// /// /// Resource @@ -257,7 +257,7 @@ public virtual Response Get(string runbookName, Cance /// /// /// Default Api Version - /// 2018-06-30 + /// 2023-11-01 /// /// /// Resource @@ -287,7 +287,7 @@ public virtual AsyncPageable GetAllAsync(Cancellation /// /// /// Default Api Version - /// 2018-06-30 + /// 2023-11-01 /// /// /// Resource @@ -317,7 +317,7 @@ public virtual Pageable GetAll(CancellationToken canc /// /// /// Default Api Version - /// 2018-06-30 + /// 2023-11-01 /// /// /// Resource @@ -360,7 +360,7 @@ public virtual async Task> ExistsAsync(string runbookName, Cancel /// /// /// Default Api Version - /// 2018-06-30 + /// 2023-11-01 /// /// /// Resource @@ -403,7 +403,7 @@ public virtual Response Exists(string runbookName, CancellationToken cance /// /// /// Default Api Version - /// 2018-06-30 + /// 2023-11-01 /// /// /// Resource @@ -448,7 +448,7 @@ public virtual async Task> GetIfExis /// /// /// Default Api Version - /// 2018-06-30 + /// 2023-11-01 /// /// /// Resource diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationRunbookResource.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationRunbookResource.cs index 66b345cff346..f5d9da011046 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationRunbookResource.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationRunbookResource.cs @@ -117,7 +117,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2018-06-30 + /// 2023-11-01 /// /// /// Resource @@ -157,7 +157,7 @@ public virtual async Task> GetAsync(Cancella /// /// /// Default Api Version - /// 2018-06-30 + /// 2023-11-01 /// /// /// Resource @@ -197,7 +197,7 @@ public virtual Response Get(CancellationToken cancell /// /// /// Default Api Version - /// 2018-06-30 + /// 2023-11-01 /// /// /// Resource @@ -241,7 +241,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2018-06-30 + /// 2023-11-01 /// /// /// Resource @@ -285,7 +285,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2018-06-30 + /// 2023-11-01 /// /// /// Resource @@ -327,7 +327,7 @@ public virtual async Task> UpdateAsync(Autom /// /// /// Default Api Version - /// 2018-06-30 + /// 2023-11-01 /// /// /// Resource @@ -369,7 +369,7 @@ public virtual Response Update(AutomationRunbookPatch /// /// /// Default Api Version - /// 2018-06-30 + /// 2023-11-01 /// /// /// @@ -403,7 +403,7 @@ public virtual async Task> GetContentRunbookDraftAsync(Cancella /// /// /// Default Api Version - /// 2018-06-30 + /// 2023-11-01 /// /// /// @@ -437,7 +437,7 @@ public virtual Response GetContentRunbookDraft(CancellationToken cancell /// /// /// Default Api Version - /// 2018-06-30 + /// 2023-11-01 /// /// /// @@ -471,7 +471,7 @@ public virtual async Task> GetRunbookDraftAsync /// /// /// Default Api Version - /// 2018-06-30 + /// 2023-11-01 /// /// /// @@ -505,7 +505,7 @@ public virtual Response GetRunbookDraft(CancellationToke /// /// /// Default Api Version - /// 2018-06-30 + /// 2023-11-01 /// /// /// @@ -539,7 +539,7 @@ public virtual async Task> UndoEditRunbookD /// /// /// Default Api Version - /// 2018-06-30 + /// 2023-11-01 /// /// /// @@ -573,7 +573,7 @@ public virtual Response UndoEditRunbookDraft(Cancell /// /// /// Default Api Version - /// 2018-06-30 + /// 2023-11-01 /// /// /// Resource @@ -615,7 +615,7 @@ public virtual async Task PublishAsync(WaitUntil waitUntil, Cancel /// /// /// Default Api Version - /// 2018-06-30 + /// 2023-11-01 /// /// /// Resource @@ -657,7 +657,7 @@ public virtual ArmOperation Publish(WaitUntil waitUntil, CancellationToken cance /// /// /// Default Api Version - /// 2018-06-30 + /// 2023-11-01 /// /// /// Resource @@ -695,7 +695,7 @@ public virtual async Task> GetContentAsync(CancellationToken ca /// /// /// Default Api Version - /// 2018-06-30 + /// 2023-11-01 /// /// /// Resource @@ -733,7 +733,7 @@ public virtual Response GetContent(CancellationToken cancellationToken = /// /// /// Default Api Version - /// 2018-06-30 + /// 2023-11-01 /// /// /// @@ -772,7 +772,7 @@ public virtual async Task> GetTestJobStreamAsync(s /// /// /// Default Api Version - /// 2018-06-30 + /// 2023-11-01 /// /// /// @@ -811,7 +811,7 @@ public virtual Response GetTestJobStream(string jobStreamId /// /// /// Default Api Version - /// 2018-06-30 + /// 2023-11-01 /// /// /// @@ -838,7 +838,7 @@ public virtual AsyncPageable GetTestJobStreamsAsync(string /// /// /// Default Api Version - /// 2018-06-30 + /// 2023-11-01 /// /// /// @@ -865,7 +865,7 @@ public virtual Pageable GetTestJobStreams(string filter = n /// /// /// Default Api Version - /// 2018-06-30 + /// 2023-11-01 /// /// /// @@ -903,7 +903,7 @@ public virtual async Task> CreateTestJobAsync(RunbookTe /// /// /// Default Api Version - /// 2018-06-30 + /// 2023-11-01 /// /// /// @@ -941,7 +941,7 @@ public virtual Response CreateTestJob(RunbookTestJobCreateConten /// /// /// Default Api Version - /// 2018-06-30 + /// 2023-11-01 /// /// /// @@ -975,7 +975,7 @@ public virtual async Task> GetTestJobAsync(Cancellation /// /// /// Default Api Version - /// 2018-06-30 + /// 2023-11-01 /// /// /// @@ -1009,7 +1009,7 @@ public virtual Response GetTestJob(CancellationToken cancellatio /// /// /// Default Api Version - /// 2018-06-30 + /// 2023-11-01 /// /// /// @@ -1043,7 +1043,7 @@ public virtual async Task ResumeTestJobAsync(CancellationToken cancell /// /// /// Default Api Version - /// 2018-06-30 + /// 2023-11-01 /// /// /// @@ -1077,7 +1077,7 @@ public virtual Response ResumeTestJob(CancellationToken cancellationToken = defa /// /// /// Default Api Version - /// 2018-06-30 + /// 2023-11-01 /// /// /// @@ -1111,7 +1111,7 @@ public virtual async Task StopTestJobAsync(CancellationToken cancellat /// /// /// Default Api Version - /// 2018-06-30 + /// 2023-11-01 /// /// /// @@ -1145,7 +1145,7 @@ public virtual Response StopTestJob(CancellationToken cancellationToken = defaul /// /// /// Default Api Version - /// 2018-06-30 + /// 2023-11-01 /// /// /// @@ -1179,7 +1179,7 @@ public virtual async Task SuspendTestJobAsync(CancellationToken cancel /// /// /// Default Api Version - /// 2018-06-30 + /// 2023-11-01 /// /// /// @@ -1213,7 +1213,7 @@ public virtual Response SuspendTestJob(CancellationToken cancellationToken = def /// /// /// Default Api Version - /// 2018-06-30 + /// 2023-11-01 /// /// /// Resource @@ -1275,7 +1275,7 @@ public virtual async Task> AddTagAsync(strin /// /// /// Default Api Version - /// 2018-06-30 + /// 2023-11-01 /// /// /// Resource @@ -1337,7 +1337,7 @@ public virtual Response AddTag(string key, string val /// /// /// Default Api Version - /// 2018-06-30 + /// 2023-11-01 /// /// /// Resource @@ -1394,7 +1394,7 @@ public virtual async Task> SetTagsAsync(IDic /// /// /// Default Api Version - /// 2018-06-30 + /// 2023-11-01 /// /// /// Resource @@ -1451,7 +1451,7 @@ public virtual Response SetTags(IDictionary /// /// Default Api Version - /// 2018-06-30 + /// 2023-11-01 /// /// /// Resource @@ -1511,7 +1511,7 @@ public virtual async Task> RemoveTagAsync(st /// /// /// Default Api Version - /// 2018-06-30 + /// 2023-11-01 /// /// /// Resource diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationScheduleCollection.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationScheduleCollection.cs index 9f6c1fb58e00..4cee6c37068d 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationScheduleCollection.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationScheduleCollection.cs @@ -65,7 +65,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2023-11-01 /// /// /// Resource @@ -116,7 +116,7 @@ public virtual async Task> CreateOrUpda /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2023-11-01 /// /// /// Resource @@ -167,7 +167,7 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2023-11-01 /// /// /// Resource @@ -212,7 +212,7 @@ public virtual async Task> GetAsync(string /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2023-11-01 /// /// /// Resource @@ -257,7 +257,7 @@ public virtual Response Get(string scheduleName, Can /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2023-11-01 /// /// /// Resource @@ -287,7 +287,7 @@ public virtual AsyncPageable GetAllAsync(Cancellatio /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2023-11-01 /// /// /// Resource @@ -317,7 +317,7 @@ public virtual Pageable GetAll(CancellationToken can /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2023-11-01 /// /// /// Resource @@ -360,7 +360,7 @@ public virtual async Task> ExistsAsync(string scheduleName, Cance /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2023-11-01 /// /// /// Resource @@ -403,7 +403,7 @@ public virtual Response Exists(string scheduleName, CancellationToken canc /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2023-11-01 /// /// /// Resource @@ -448,7 +448,7 @@ public virtual async Task> GetIfExi /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2023-11-01 /// /// /// Resource diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationScheduleResource.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationScheduleResource.cs index a76dc9ac60f2..5850a0095f5a 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationScheduleResource.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationScheduleResource.cs @@ -102,7 +102,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2023-11-01 /// /// /// Resource @@ -142,7 +142,7 @@ public virtual async Task> GetAsync(Cancell /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2023-11-01 /// /// /// Resource @@ -182,7 +182,7 @@ public virtual Response Get(CancellationToken cancel /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2023-11-01 /// /// /// Resource @@ -226,7 +226,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2023-11-01 /// /// /// Resource @@ -270,7 +270,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2023-11-01 /// /// /// Resource @@ -312,7 +312,7 @@ public virtual async Task> UpdateAsync(Auto /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2023-11-01 /// /// /// Resource diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationSourceControlCollection.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationSourceControlCollection.cs index 9d7ef82901df..ff3fc3742b58 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationSourceControlCollection.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationSourceControlCollection.cs @@ -65,7 +65,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2023-11-01 /// /// /// Resource @@ -116,7 +116,7 @@ public virtual async Task> CreateO /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2023-11-01 /// /// /// Resource @@ -167,7 +167,7 @@ public virtual ArmOperation CreateOrUpdate(Wait /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2023-11-01 /// /// /// Resource @@ -212,7 +212,7 @@ public virtual async Task> GetAsync(st /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2023-11-01 /// /// /// Resource @@ -257,7 +257,7 @@ public virtual Response Get(string sourceContro /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2023-11-01 /// /// /// Resource @@ -288,7 +288,7 @@ public virtual AsyncPageable GetAllAsync(string /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2023-11-01 /// /// /// Resource @@ -319,7 +319,7 @@ public virtual Pageable GetAll(string filter = /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2023-11-01 /// /// /// Resource @@ -362,7 +362,7 @@ public virtual async Task> ExistsAsync(string sourceControlName, /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2023-11-01 /// /// /// Resource @@ -405,7 +405,7 @@ public virtual Response Exists(string sourceControlName, CancellationToken /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2023-11-01 /// /// /// Resource @@ -450,7 +450,7 @@ public virtual async Task> Get /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2023-11-01 /// /// /// Resource diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationSourceControlResource.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationSourceControlResource.cs index 3c4669f18db7..f6f4b36a46f4 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationSourceControlResource.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationSourceControlResource.cs @@ -111,7 +111,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2023-11-01 /// /// /// Resource @@ -151,7 +151,7 @@ public virtual async Task> GetAsync(Ca /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2023-11-01 /// /// /// Resource @@ -191,7 +191,7 @@ public virtual Response Get(CancellationToken c /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2023-11-01 /// /// /// Resource @@ -235,7 +235,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2023-11-01 /// /// /// Resource @@ -279,7 +279,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2023-11-01 /// /// /// Resource @@ -321,7 +321,7 @@ public virtual async Task> UpdateAsync /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2023-11-01 /// /// /// Resource @@ -363,7 +363,7 @@ public virtual Response Update(AutomationSource /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2023-11-01 /// /// /// @@ -402,7 +402,7 @@ public virtual async Task> CreateSourceControlSyn /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2023-11-01 /// /// /// @@ -441,7 +441,7 @@ public virtual Response CreateSourceControlSyncJob(Guid so /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2023-11-01 /// /// /// @@ -476,7 +476,7 @@ public virtual async Task> GetSourceControl /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2023-11-01 /// /// /// @@ -511,7 +511,7 @@ public virtual Response GetSourceControlSyncJob(Guid /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2023-11-01 /// /// /// @@ -538,7 +538,7 @@ public virtual AsyncPageable GetSourceControlSyncJobsAsync /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2023-11-01 /// /// /// @@ -565,7 +565,7 @@ public virtual Pageable GetSourceControlSyncJobs(string fi /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2023-11-01 /// /// /// @@ -593,7 +593,7 @@ public virtual AsyncPageable GetSourceControlSyncJob /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2023-11-01 /// /// /// @@ -621,7 +621,7 @@ public virtual Pageable GetSourceControlSyncJobStrea /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2023-11-01 /// /// /// @@ -661,7 +661,7 @@ public virtual async Task> GetSourceC /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2023-11-01 /// /// /// diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationVariableCollection.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationVariableCollection.cs index 376d47f56a3f..52f2dfbd2418 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationVariableCollection.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationVariableCollection.cs @@ -65,7 +65,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2023-11-01 /// /// /// Resource @@ -116,7 +116,7 @@ public virtual async Task> CreateOrUpda /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2023-11-01 /// /// /// Resource @@ -167,7 +167,7 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2023-11-01 /// /// /// Resource @@ -212,7 +212,7 @@ public virtual async Task> GetAsync(string /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2023-11-01 /// /// /// Resource @@ -257,7 +257,7 @@ public virtual Response Get(string variableName, Can /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2023-11-01 /// /// /// Resource @@ -287,7 +287,7 @@ public virtual AsyncPageable GetAllAsync(Cancellatio /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2023-11-01 /// /// /// Resource @@ -317,7 +317,7 @@ public virtual Pageable GetAll(CancellationToken can /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2023-11-01 /// /// /// Resource @@ -360,7 +360,7 @@ public virtual async Task> ExistsAsync(string variableName, Cance /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2023-11-01 /// /// /// Resource @@ -403,7 +403,7 @@ public virtual Response Exists(string variableName, CancellationToken canc /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2023-11-01 /// /// /// Resource @@ -448,7 +448,7 @@ public virtual async Task> GetIfExi /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2023-11-01 /// /// /// Resource diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationVariableResource.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationVariableResource.cs index 22c2d16dcccf..035f30d7e02c 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationVariableResource.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationVariableResource.cs @@ -102,7 +102,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2023-11-01 /// /// /// Resource @@ -142,7 +142,7 @@ public virtual async Task> GetAsync(Cancell /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2023-11-01 /// /// /// Resource @@ -182,7 +182,7 @@ public virtual Response Get(CancellationToken cancel /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2023-11-01 /// /// /// Resource @@ -226,7 +226,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2023-11-01 /// /// /// Resource @@ -270,7 +270,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2023-11-01 /// /// /// Resource @@ -312,7 +312,7 @@ public virtual async Task> UpdateAsync(Auto /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2023-11-01 /// /// /// Resource diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/DscConfigurationCollection.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/DscConfigurationCollection.cs index 3151cf3c9f3a..a74a7d87752e 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/DscConfigurationCollection.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/DscConfigurationCollection.cs @@ -65,7 +65,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2019-06-01 + /// 2023-11-01 /// /// /// Resource @@ -116,7 +116,7 @@ public virtual async Task> CreateOrUpdate /// /// /// Default Api Version - /// 2019-06-01 + /// 2023-11-01 /// /// /// Resource @@ -167,7 +167,7 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil w /// /// /// Default Api Version - /// 2019-06-01 + /// 2023-11-01 /// /// /// Resource @@ -212,7 +212,7 @@ public virtual async Task> GetAsync(string co /// /// /// Default Api Version - /// 2019-06-01 + /// 2023-11-01 /// /// /// Resource @@ -257,7 +257,7 @@ public virtual Response Get(string configurationName, /// /// /// Default Api Version - /// 2019-06-01 + /// 2023-11-01 /// /// /// Resource @@ -291,7 +291,7 @@ public virtual AsyncPageable GetAllAsync(string filter /// /// /// Default Api Version - /// 2019-06-01 + /// 2023-11-01 /// /// /// Resource @@ -325,7 +325,7 @@ public virtual Pageable GetAll(string filter = null, i /// /// /// Default Api Version - /// 2019-06-01 + /// 2023-11-01 /// /// /// Resource @@ -368,7 +368,7 @@ public virtual async Task> ExistsAsync(string configurationName, /// /// /// Default Api Version - /// 2019-06-01 + /// 2023-11-01 /// /// /// Resource @@ -411,7 +411,7 @@ public virtual Response Exists(string configurationName, CancellationToken /// /// /// Default Api Version - /// 2019-06-01 + /// 2023-11-01 /// /// /// Resource @@ -456,7 +456,7 @@ public virtual async Task> GetIfExist /// /// /// Default Api Version - /// 2019-06-01 + /// 2023-11-01 /// /// /// Resource diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/DscConfigurationResource.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/DscConfigurationResource.cs index a1c0d6f3651d..ae3052da6264 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/DscConfigurationResource.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/DscConfigurationResource.cs @@ -103,7 +103,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2019-06-01 + /// 2023-11-01 /// /// /// Resource @@ -143,7 +143,7 @@ public virtual async Task> GetAsync(Cancellat /// /// /// Default Api Version - /// 2019-06-01 + /// 2023-11-01 /// /// /// Resource @@ -183,7 +183,7 @@ public virtual Response Get(CancellationToken cancella /// /// /// Default Api Version - /// 2019-06-01 + /// 2023-11-01 /// /// /// Resource @@ -227,7 +227,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2019-06-01 + /// 2023-11-01 /// /// /// Resource @@ -271,7 +271,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2019-06-01 + /// 2023-11-01 /// /// /// Resource @@ -313,7 +313,7 @@ public virtual async Task> UpdateAsync(DscCon /// /// /// Default Api Version - /// 2019-06-01 + /// 2023-11-01 /// /// /// Resource @@ -355,7 +355,7 @@ public virtual Response Update(DscConfigurationPatch p /// /// /// Default Api Version - /// 2019-06-01 + /// 2023-11-01 /// /// /// Resource @@ -393,7 +393,7 @@ public virtual async Task> GetContentAsync(CancellationToken ca /// /// /// Default Api Version - /// 2019-06-01 + /// 2023-11-01 /// /// /// Resource @@ -431,7 +431,7 @@ public virtual Response GetContent(CancellationToken cancellationToken = /// /// /// Default Api Version - /// 2019-06-01 + /// 2023-11-01 /// /// /// Resource @@ -493,7 +493,7 @@ public virtual async Task> AddTagAsync(string /// /// /// Default Api Version - /// 2019-06-01 + /// 2023-11-01 /// /// /// Resource @@ -555,7 +555,7 @@ public virtual Response AddTag(string key, string valu /// /// /// Default Api Version - /// 2019-06-01 + /// 2023-11-01 /// /// /// Resource @@ -612,7 +612,7 @@ public virtual async Task> SetTagsAsync(IDict /// /// /// Default Api Version - /// 2019-06-01 + /// 2023-11-01 /// /// /// Resource @@ -669,7 +669,7 @@ public virtual Response SetTags(IDictionary /// /// Default Api Version - /// 2019-06-01 + /// 2023-11-01 /// /// /// Resource @@ -729,7 +729,7 @@ public virtual async Task> RemoveTagAsync(str /// /// /// Default Api Version - /// 2019-06-01 + /// 2023-11-01 /// /// /// Resource diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/DscNodeConfigurationCollection.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/DscNodeConfigurationCollection.cs index cf90b14cbe8b..a66b22759ab9 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/DscNodeConfigurationCollection.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/DscNodeConfigurationCollection.cs @@ -65,7 +65,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2023-11-01 /// /// /// Resource @@ -114,7 +114,7 @@ public virtual async Task CreateOrUpdateAsync(WaitUntil waitUntil, /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2023-11-01 /// /// /// Resource @@ -163,7 +163,7 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil waitUntil, string nodeConfi /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2023-11-01 /// /// /// Resource @@ -208,7 +208,7 @@ public virtual async Task> GetAsync(strin /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2023-11-01 /// /// /// Resource @@ -253,7 +253,7 @@ public virtual Response Get(string nodeConfigurati /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2023-11-01 /// /// /// Resource @@ -287,7 +287,7 @@ public virtual AsyncPageable GetAllAsync(string fi /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2023-11-01 /// /// /// Resource @@ -321,7 +321,7 @@ public virtual Pageable GetAll(string filter = nul /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2023-11-01 /// /// /// Resource @@ -364,7 +364,7 @@ public virtual async Task> ExistsAsync(string nodeConfigurationNa /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2023-11-01 /// /// /// Resource @@ -407,7 +407,7 @@ public virtual Response Exists(string nodeConfigurationName, CancellationT /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2023-11-01 /// /// /// Resource @@ -452,7 +452,7 @@ public virtual async Task> GetIfE /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2023-11-01 /// /// /// Resource diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/DscNodeConfigurationResource.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/DscNodeConfigurationResource.cs index 8eabc56ead9c..1c42fd6b18fd 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/DscNodeConfigurationResource.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/DscNodeConfigurationResource.cs @@ -102,7 +102,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2023-11-01 /// /// /// Resource @@ -142,7 +142,7 @@ public virtual async Task> GetAsync(Cance /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2023-11-01 /// /// /// Resource @@ -182,7 +182,7 @@ public virtual Response Get(CancellationToken canc /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2023-11-01 /// /// /// Resource @@ -226,7 +226,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2023-11-01 /// /// /// Resource @@ -270,7 +270,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2023-11-01 /// /// /// Resource @@ -316,7 +316,7 @@ public virtual async Task UpdateAsync(WaitUntil waitUntil, DscNode /// /// /// Default Api Version - /// 2020-01-13-preview + /// 2023-11-01 /// /// /// Resource diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Extensions/AutomationExtensions.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Extensions/AutomationExtensions.cs index 605cf6738e2f..03dc709a7b51 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Extensions/AutomationExtensions.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Extensions/AutomationExtensions.cs @@ -53,117 +53,98 @@ public static AutomationPrivateEndpointConnectionResource GetAutomationPrivateEn } /// - /// Gets an object representing an along with the instance operations that can be performed on it but with no data. - /// You can use to create an from its components. - /// - /// Mocking - /// To mock this method, please mock instead. - /// - /// - /// The instance the method will execute against. - /// The resource ID of the resource to get. - /// is null. - /// Returns a object. - public static AutomationAccountPython2PackageResource GetAutomationAccountPython2PackageResource(this ArmClient client, ResourceIdentifier id) - { - Argument.AssertNotNull(client, nameof(client)); - - return GetMockableAutomationArmClient(client).GetAutomationAccountPython2PackageResource(id); - } - - /// - /// Gets an object representing an along with the instance operations that can be performed on it but with no data. - /// You can use to create an from its components. + /// Gets an object representing a along with the instance operations that can be performed on it but with no data. + /// You can use to create a from its components. /// /// Mocking - /// To mock this method, please mock instead. + /// To mock this method, please mock instead. /// /// /// The instance the method will execute against. /// The resource ID of the resource to get. /// is null. - /// Returns a object. - public static AutomationAccountModuleResource GetAutomationAccountModuleResource(this ArmClient client, ResourceIdentifier id) + /// Returns a object. + public static DscNodeResource GetDscNodeResource(this ArmClient client, ResourceIdentifier id) { Argument.AssertNotNull(client, nameof(client)); - return GetMockableAutomationArmClient(client).GetAutomationAccountModuleResource(id); + return GetMockableAutomationArmClient(client).GetDscNodeResource(id); } /// - /// Gets an object representing a along with the instance operations that can be performed on it but with no data. - /// You can use to create a from its components. + /// Gets an object representing a along with the instance operations that can be performed on it but with no data. + /// You can use to create a from its components. /// /// Mocking - /// To mock this method, please mock instead. + /// To mock this method, please mock instead. /// /// /// The instance the method will execute against. /// The resource ID of the resource to get. /// is null. - /// Returns a object. - public static DscNodeResource GetDscNodeResource(this ArmClient client, ResourceIdentifier id) + /// Returns a object. + public static DscCompilationJobResource GetDscCompilationJobResource(this ArmClient client, ResourceIdentifier id) { Argument.AssertNotNull(client, nameof(client)); - return GetMockableAutomationArmClient(client).GetDscNodeResource(id); + return GetMockableAutomationArmClient(client).GetDscCompilationJobResource(id); } /// - /// Gets an object representing a along with the instance operations that can be performed on it but with no data. - /// You can use to create a from its components. + /// Gets an object representing an along with the instance operations that can be performed on it but with no data. + /// You can use to create an from its components. /// /// Mocking - /// To mock this method, please mock instead. + /// To mock this method, please mock instead. /// /// /// The instance the method will execute against. /// The resource ID of the resource to get. /// is null. - /// Returns a object. - public static DscNodeConfigurationResource GetDscNodeConfigurationResource(this ArmClient client, ResourceIdentifier id) + /// Returns a object. + public static AutomationWatcherResource GetAutomationWatcherResource(this ArmClient client, ResourceIdentifier id) { Argument.AssertNotNull(client, nameof(client)); - return GetMockableAutomationArmClient(client).GetDscNodeConfigurationResource(id); + return GetMockableAutomationArmClient(client).GetAutomationWatcherResource(id); } /// - /// Gets an object representing a along with the instance operations that can be performed on it but with no data. - /// You can use to create a from its components. + /// Gets an object representing a along with the instance operations that can be performed on it but with no data. + /// You can use to create a from its components. /// /// Mocking - /// To mock this method, please mock instead. + /// To mock this method, please mock instead. /// /// /// The instance the method will execute against. /// The resource ID of the resource to get. /// is null. - /// Returns a object. - public static DscCompilationJobResource GetDscCompilationJobResource(this ArmClient client, ResourceIdentifier id) + /// Returns a object. + public static SoftwareUpdateConfigurationResource GetSoftwareUpdateConfigurationResource(this ArmClient client, ResourceIdentifier id) { Argument.AssertNotNull(client, nameof(client)); - return GetMockableAutomationArmClient(client).GetDscCompilationJobResource(id); + return GetMockableAutomationArmClient(client).GetSoftwareUpdateConfigurationResource(id); } /// - /// Gets an object representing an along with the instance operations that can be performed on it but with no data. - /// You can use to create an from its components. + /// Gets an object representing an along with the instance operations that can be performed on it but with no data. + /// You can use to create an from its components. /// /// Mocking - /// To mock this method, please mock instead. + /// To mock this method, please mock instead. /// /// /// The instance the method will execute against. /// The resource ID of the resource to get. /// is null. - /// Returns a object. - public static AutomationSourceControlResource GetAutomationSourceControlResource(this ArmClient client, ResourceIdentifier id) + /// Returns a object. + public static AutomationWebhookResource GetAutomationWebhookResource(this ArmClient client, ResourceIdentifier id) { Argument.AssertNotNull(client, nameof(client)); - return GetMockableAutomationArmClient(client).GetAutomationSourceControlResource(id); + return GetMockableAutomationArmClient(client).GetAutomationWebhookResource(id); } /// @@ -262,136 +243,193 @@ public static AutomationCredentialResource GetAutomationCredentialResource(this } /// - /// Gets an object representing an along with the instance operations that can be performed on it but with no data. - /// You can use to create an from its components. + /// Gets an object representing a along with the instance operations that can be performed on it but with no data. + /// You can use to create a from its components. /// /// Mocking - /// To mock this method, please mock instead. + /// To mock this method, please mock instead. /// /// /// The instance the method will execute against. /// The resource ID of the resource to get. /// is null. - /// Returns a object. - public static AutomationJobScheduleResource GetAutomationJobScheduleResource(this ArmClient client, ResourceIdentifier id) + /// Returns a object. + public static DscConfigurationResource GetDscConfigurationResource(this ArmClient client, ResourceIdentifier id) { Argument.AssertNotNull(client, nameof(client)); - return GetMockableAutomationArmClient(client).GetAutomationJobScheduleResource(id); + return GetMockableAutomationArmClient(client).GetDscConfigurationResource(id); } /// - /// Gets an object representing an along with the instance operations that can be performed on it but with no data. - /// You can use to create an from its components. + /// Gets an object representing a along with the instance operations that can be performed on it but with no data. + /// You can use to create a from its components. /// /// Mocking - /// To mock this method, please mock instead. + /// To mock this method, please mock instead. /// /// /// The instance the method will execute against. /// The resource ID of the resource to get. /// is null. - /// Returns a object. - public static AutomationScheduleResource GetAutomationScheduleResource(this ArmClient client, ResourceIdentifier id) + /// Returns a object. + public static DscNodeConfigurationResource GetDscNodeConfigurationResource(this ArmClient client, ResourceIdentifier id) { Argument.AssertNotNull(client, nameof(client)); - return GetMockableAutomationArmClient(client).GetAutomationScheduleResource(id); + return GetMockableAutomationArmClient(client).GetDscNodeConfigurationResource(id); } /// - /// Gets an object representing an along with the instance operations that can be performed on it but with no data. - /// You can use to create an from its components. + /// Gets an object representing a along with the instance operations that can be performed on it but with no data. + /// You can use to create a from its components. /// /// Mocking - /// To mock this method, please mock instead. + /// To mock this method, please mock instead. /// /// /// The instance the method will execute against. /// The resource ID of the resource to get. /// is null. - /// Returns a object. - public static AutomationVariableResource GetAutomationVariableResource(this ArmClient client, ResourceIdentifier id) + /// Returns a object. + public static HybridRunbookWorkerResource GetHybridRunbookWorkerResource(this ArmClient client, ResourceIdentifier id) { Argument.AssertNotNull(client, nameof(client)); - return GetMockableAutomationArmClient(client).GetAutomationVariableResource(id); + return GetMockableAutomationArmClient(client).GetHybridRunbookWorkerResource(id); } /// - /// Gets an object representing an along with the instance operations that can be performed on it but with no data. - /// You can use to create an from its components. + /// Gets an object representing a along with the instance operations that can be performed on it but with no data. + /// You can use to create a from its components. /// /// Mocking - /// To mock this method, please mock instead. + /// To mock this method, please mock instead. /// /// /// The instance the method will execute against. /// The resource ID of the resource to get. /// is null. - /// Returns a object. - public static AutomationWatcherResource GetAutomationWatcherResource(this ArmClient client, ResourceIdentifier id) + /// Returns a object. + public static HybridRunbookWorkerGroupResource GetHybridRunbookWorkerGroupResource(this ArmClient client, ResourceIdentifier id) { Argument.AssertNotNull(client, nameof(client)); - return GetMockableAutomationArmClient(client).GetAutomationWatcherResource(id); + return GetMockableAutomationArmClient(client).GetHybridRunbookWorkerGroupResource(id); } /// - /// Gets an object representing a along with the instance operations that can be performed on it but with no data. - /// You can use to create a from its components. + /// Gets an object representing an along with the instance operations that can be performed on it but with no data. + /// You can use to create an from its components. /// /// Mocking - /// To mock this method, please mock instead. + /// To mock this method, please mock instead. /// /// /// The instance the method will execute against. /// The resource ID of the resource to get. /// is null. - /// Returns a object. - public static DscConfigurationResource GetDscConfigurationResource(this ArmClient client, ResourceIdentifier id) + /// Returns a object. + public static AutomationJobResource GetAutomationJobResource(this ArmClient client, ResourceIdentifier id) { Argument.AssertNotNull(client, nameof(client)); - return GetMockableAutomationArmClient(client).GetDscConfigurationResource(id); + return GetMockableAutomationArmClient(client).GetAutomationJobResource(id); } /// - /// Gets an object representing an along with the instance operations that can be performed on it but with no data. - /// You can use to create an from its components. + /// Gets an object representing an along with the instance operations that can be performed on it but with no data. + /// You can use to create an from its components. /// /// Mocking - /// To mock this method, please mock instead. + /// To mock this method, please mock instead. /// /// /// The instance the method will execute against. /// The resource ID of the resource to get. /// is null. - /// Returns a object. - public static AutomationJobResource GetAutomationJobResource(this ArmClient client, ResourceIdentifier id) + /// Returns a object. + public static AutomationJobScheduleResource GetAutomationJobScheduleResource(this ArmClient client, ResourceIdentifier id) { Argument.AssertNotNull(client, nameof(client)); - return GetMockableAutomationArmClient(client).GetAutomationJobResource(id); + return GetMockableAutomationArmClient(client).GetAutomationJobScheduleResource(id); } /// - /// Gets an object representing a along with the instance operations that can be performed on it but with no data. - /// You can use to create a from its components. + /// Gets an object representing an along with the instance operations that can be performed on it but with no data. + /// You can use to create an from its components. /// /// Mocking - /// To mock this method, please mock instead. + /// To mock this method, please mock instead. /// /// /// The instance the method will execute against. /// The resource ID of the resource to get. /// is null. - /// Returns a object. - public static SoftwareUpdateConfigurationResource GetSoftwareUpdateConfigurationResource(this ArmClient client, ResourceIdentifier id) + /// Returns a object. + public static AutomationAccountModuleResource GetAutomationAccountModuleResource(this ArmClient client, ResourceIdentifier id) { Argument.AssertNotNull(client, nameof(client)); - return GetMockableAutomationArmClient(client).GetSoftwareUpdateConfigurationResource(id); + return GetMockableAutomationArmClient(client).GetAutomationAccountModuleResource(id); + } + + /// + /// Gets an object representing an along with the instance operations that can be performed on it but with no data. + /// You can use to create an from its components. + /// + /// Mocking + /// To mock this method, please mock instead. + /// + /// + /// The instance the method will execute against. + /// The resource ID of the resource to get. + /// is null. + /// Returns a object. + public static AutomationAccountPowerShell72ModuleResource GetAutomationAccountPowerShell72ModuleResource(this ArmClient client, ResourceIdentifier id) + { + Argument.AssertNotNull(client, nameof(client)); + + return GetMockableAutomationArmClient(client).GetAutomationAccountPowerShell72ModuleResource(id); + } + + /// + /// Gets an object representing an along with the instance operations that can be performed on it but with no data. + /// You can use to create an from its components. + /// + /// Mocking + /// To mock this method, please mock instead. + /// + /// + /// The instance the method will execute against. + /// The resource ID of the resource to get. + /// is null. + /// Returns a object. + public static AutomationAccountPython2PackageResource GetAutomationAccountPython2PackageResource(this ArmClient client, ResourceIdentifier id) + { + Argument.AssertNotNull(client, nameof(client)); + + return GetMockableAutomationArmClient(client).GetAutomationAccountPython2PackageResource(id); + } + + /// + /// Gets an object representing an along with the instance operations that can be performed on it but with no data. + /// You can use to create an from its components. + /// + /// Mocking + /// To mock this method, please mock instead. + /// + /// + /// The instance the method will execute against. + /// The resource ID of the resource to get. + /// is null. + /// Returns a object. + public static AutomationAccountPython3PackageResource GetAutomationAccountPython3PackageResource(this ArmClient client, ResourceIdentifier id) + { + Argument.AssertNotNull(client, nameof(client)); + + return GetMockableAutomationArmClient(client).GetAutomationAccountPython3PackageResource(id); } /// @@ -414,60 +452,60 @@ public static AutomationRunbookResource GetAutomationRunbookResource(this ArmCli } /// - /// Gets an object representing an along with the instance operations that can be performed on it but with no data. - /// You can use to create an from its components. + /// Gets an object representing an along with the instance operations that can be performed on it but with no data. + /// You can use to create an from its components. /// /// Mocking - /// To mock this method, please mock instead. + /// To mock this method, please mock instead. /// /// /// The instance the method will execute against. /// The resource ID of the resource to get. /// is null. - /// Returns a object. - public static AutomationWebhookResource GetAutomationWebhookResource(this ArmClient client, ResourceIdentifier id) + /// Returns a object. + public static AutomationScheduleResource GetAutomationScheduleResource(this ArmClient client, ResourceIdentifier id) { Argument.AssertNotNull(client, nameof(client)); - return GetMockableAutomationArmClient(client).GetAutomationWebhookResource(id); + return GetMockableAutomationArmClient(client).GetAutomationScheduleResource(id); } /// - /// Gets an object representing a along with the instance operations that can be performed on it but with no data. - /// You can use to create a from its components. + /// Gets an object representing an along with the instance operations that can be performed on it but with no data. + /// You can use to create an from its components. /// /// Mocking - /// To mock this method, please mock instead. + /// To mock this method, please mock instead. /// /// /// The instance the method will execute against. /// The resource ID of the resource to get. /// is null. - /// Returns a object. - public static HybridRunbookWorkerResource GetHybridRunbookWorkerResource(this ArmClient client, ResourceIdentifier id) + /// Returns a object. + public static AutomationSourceControlResource GetAutomationSourceControlResource(this ArmClient client, ResourceIdentifier id) { Argument.AssertNotNull(client, nameof(client)); - return GetMockableAutomationArmClient(client).GetHybridRunbookWorkerResource(id); + return GetMockableAutomationArmClient(client).GetAutomationSourceControlResource(id); } /// - /// Gets an object representing a along with the instance operations that can be performed on it but with no data. - /// You can use to create a from its components. + /// Gets an object representing an along with the instance operations that can be performed on it but with no data. + /// You can use to create an from its components. /// /// Mocking - /// To mock this method, please mock instead. + /// To mock this method, please mock instead. /// /// /// The instance the method will execute against. /// The resource ID of the resource to get. /// is null. - /// Returns a object. - public static HybridRunbookWorkerGroupResource GetHybridRunbookWorkerGroupResource(this ArmClient client, ResourceIdentifier id) + /// Returns a object. + public static AutomationVariableResource GetAutomationVariableResource(this ArmClient client, ResourceIdentifier id) { Argument.AssertNotNull(client, nameof(client)); - return GetMockableAutomationArmClient(client).GetHybridRunbookWorkerGroupResource(id); + return GetMockableAutomationArmClient(client).GetAutomationVariableResource(id); } /// @@ -500,7 +538,7 @@ public static AutomationAccountCollection GetAutomationAccounts(this ResourceGro /// /// /// Default Api Version - /// 2021-06-22 + /// 2023-11-01 /// /// /// Resource @@ -538,7 +576,7 @@ public static async Task> GetAutomationAccou /// /// /// Default Api Version - /// 2021-06-22 + /// 2023-11-01 /// /// /// Resource @@ -564,139 +602,139 @@ public static Response GetAutomationAccount(this Reso } /// - /// Retrieve a list of accounts within a given subscription. + /// Retrieve deleted automation account. /// /// /// Request Path - /// /subscriptions/{subscriptionId}/providers/Microsoft.Automation/automationAccounts + /// /subscriptions/{subscriptionId}/providers/Microsoft.Automation/deletedAutomationAccounts /// /// /// Operation Id - /// AutomationAccount_List + /// deletedAutomationAccounts_ListBySubscription /// /// /// Default Api Version - /// 2021-06-22 - /// - /// - /// Resource - /// + /// 2022-01-31 /// /// /// /// Mocking - /// To mock this method, please mock instead. + /// To mock this method, please mock instead. /// /// /// The instance the method will execute against. /// The cancellation token to use. /// is null. - /// An async collection of that may take multiple service requests to iterate over. - public static AsyncPageable GetAutomationAccountsAsync(this SubscriptionResource subscriptionResource, CancellationToken cancellationToken = default) + /// An async collection of that may take multiple service requests to iterate over. + public static AsyncPageable GetDeletedAutomationAccountsBySubscriptionAsync(this SubscriptionResource subscriptionResource, CancellationToken cancellationToken = default) { Argument.AssertNotNull(subscriptionResource, nameof(subscriptionResource)); - return GetMockableAutomationSubscriptionResource(subscriptionResource).GetAutomationAccountsAsync(cancellationToken); + return GetMockableAutomationSubscriptionResource(subscriptionResource).GetDeletedAutomationAccountsBySubscriptionAsync(cancellationToken); } /// - /// Retrieve a list of accounts within a given subscription. + /// Retrieve deleted automation account. /// /// /// Request Path - /// /subscriptions/{subscriptionId}/providers/Microsoft.Automation/automationAccounts + /// /subscriptions/{subscriptionId}/providers/Microsoft.Automation/deletedAutomationAccounts /// /// /// Operation Id - /// AutomationAccount_List + /// deletedAutomationAccounts_ListBySubscription /// /// /// Default Api Version - /// 2021-06-22 - /// - /// - /// Resource - /// + /// 2022-01-31 /// /// /// /// Mocking - /// To mock this method, please mock instead. + /// To mock this method, please mock instead. /// /// /// The instance the method will execute against. /// The cancellation token to use. /// is null. - /// A collection of that may take multiple service requests to iterate over. - public static Pageable GetAutomationAccounts(this SubscriptionResource subscriptionResource, CancellationToken cancellationToken = default) + /// A collection of that may take multiple service requests to iterate over. + public static Pageable GetDeletedAutomationAccountsBySubscription(this SubscriptionResource subscriptionResource, CancellationToken cancellationToken = default) { Argument.AssertNotNull(subscriptionResource, nameof(subscriptionResource)); - return GetMockableAutomationSubscriptionResource(subscriptionResource).GetAutomationAccounts(cancellationToken); + return GetMockableAutomationSubscriptionResource(subscriptionResource).GetDeletedAutomationAccountsBySubscription(cancellationToken); } /// - /// Retrieve deleted automation account. + /// Retrieve a list of accounts within a given subscription. /// /// /// Request Path - /// /subscriptions/{subscriptionId}/providers/Microsoft.Automation/deletedAutomationAccounts + /// /subscriptions/{subscriptionId}/providers/Microsoft.Automation/automationAccounts /// /// /// Operation Id - /// deletedAutomationAccounts_ListBySubscription + /// AutomationAccount_List /// /// /// Default Api Version - /// 2022-01-31 + /// 2023-11-01 + /// + /// + /// Resource + /// /// /// /// /// Mocking - /// To mock this method, please mock instead. + /// To mock this method, please mock instead. /// /// /// The instance the method will execute against. /// The cancellation token to use. /// is null. - /// An async collection of that may take multiple service requests to iterate over. - public static AsyncPageable GetDeletedAutomationAccountsBySubscriptionAsync(this SubscriptionResource subscriptionResource, CancellationToken cancellationToken = default) + /// An async collection of that may take multiple service requests to iterate over. + public static AsyncPageable GetAutomationAccountsAsync(this SubscriptionResource subscriptionResource, CancellationToken cancellationToken = default) { Argument.AssertNotNull(subscriptionResource, nameof(subscriptionResource)); - return GetMockableAutomationSubscriptionResource(subscriptionResource).GetDeletedAutomationAccountsBySubscriptionAsync(cancellationToken); + return GetMockableAutomationSubscriptionResource(subscriptionResource).GetAutomationAccountsAsync(cancellationToken); } /// - /// Retrieve deleted automation account. + /// Retrieve a list of accounts within a given subscription. /// /// /// Request Path - /// /subscriptions/{subscriptionId}/providers/Microsoft.Automation/deletedAutomationAccounts + /// /subscriptions/{subscriptionId}/providers/Microsoft.Automation/automationAccounts /// /// /// Operation Id - /// deletedAutomationAccounts_ListBySubscription + /// AutomationAccount_List /// /// /// Default Api Version - /// 2022-01-31 + /// 2023-11-01 + /// + /// + /// Resource + /// /// /// /// /// Mocking - /// To mock this method, please mock instead. + /// To mock this method, please mock instead. /// /// /// The instance the method will execute against. /// The cancellation token to use. /// is null. - /// A collection of that may take multiple service requests to iterate over. - public static Pageable GetDeletedAutomationAccountsBySubscription(this SubscriptionResource subscriptionResource, CancellationToken cancellationToken = default) + /// A collection of that may take multiple service requests to iterate over. + public static Pageable GetAutomationAccounts(this SubscriptionResource subscriptionResource, CancellationToken cancellationToken = default) { Argument.AssertNotNull(subscriptionResource, nameof(subscriptionResource)); - return GetMockableAutomationSubscriptionResource(subscriptionResource).GetDeletedAutomationAccountsBySubscription(cancellationToken); + return GetMockableAutomationSubscriptionResource(subscriptionResource).GetAutomationAccounts(cancellationToken); } } } diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Extensions/MockableAutomationArmClient.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Extensions/MockableAutomationArmClient.cs index eb4e624b947a..e4422dc4fa1a 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Extensions/MockableAutomationArmClient.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Extensions/MockableAutomationArmClient.cs @@ -46,30 +46,6 @@ public virtual AutomationPrivateEndpointConnectionResource GetAutomationPrivateE return new AutomationPrivateEndpointConnectionResource(Client, id); } - /// - /// Gets an object representing an along with the instance operations that can be performed on it but with no data. - /// You can use to create an from its components. - /// - /// The resource ID of the resource to get. - /// Returns a object. - public virtual AutomationAccountPython2PackageResource GetAutomationAccountPython2PackageResource(ResourceIdentifier id) - { - AutomationAccountPython2PackageResource.ValidateResourceId(id); - return new AutomationAccountPython2PackageResource(Client, id); - } - - /// - /// Gets an object representing an along with the instance operations that can be performed on it but with no data. - /// You can use to create an from its components. - /// - /// The resource ID of the resource to get. - /// Returns a object. - public virtual AutomationAccountModuleResource GetAutomationAccountModuleResource(ResourceIdentifier id) - { - AutomationAccountModuleResource.ValidateResourceId(id); - return new AutomationAccountModuleResource(Client, id); - } - /// /// Gets an object representing a along with the instance operations that can be performed on it but with no data. /// You can use to create a from its components. @@ -82,18 +58,6 @@ public virtual DscNodeResource GetDscNodeResource(ResourceIdentifier id) return new DscNodeResource(Client, id); } - /// - /// Gets an object representing a along with the instance operations that can be performed on it but with no data. - /// You can use to create a from its components. - /// - /// The resource ID of the resource to get. - /// Returns a object. - public virtual DscNodeConfigurationResource GetDscNodeConfigurationResource(ResourceIdentifier id) - { - DscNodeConfigurationResource.ValidateResourceId(id); - return new DscNodeConfigurationResource(Client, id); - } - /// /// Gets an object representing a along with the instance operations that can be performed on it but with no data. /// You can use to create a from its components. @@ -107,15 +71,39 @@ public virtual DscCompilationJobResource GetDscCompilationJobResource(ResourceId } /// - /// Gets an object representing an along with the instance operations that can be performed on it but with no data. - /// You can use to create an from its components. + /// Gets an object representing an along with the instance operations that can be performed on it but with no data. + /// You can use to create an from its components. /// /// The resource ID of the resource to get. - /// Returns a object. - public virtual AutomationSourceControlResource GetAutomationSourceControlResource(ResourceIdentifier id) + /// Returns a object. + public virtual AutomationWatcherResource GetAutomationWatcherResource(ResourceIdentifier id) { - AutomationSourceControlResource.ValidateResourceId(id); - return new AutomationSourceControlResource(Client, id); + AutomationWatcherResource.ValidateResourceId(id); + return new AutomationWatcherResource(Client, id); + } + + /// + /// Gets an object representing a along with the instance operations that can be performed on it but with no data. + /// You can use to create a from its components. + /// + /// The resource ID of the resource to get. + /// Returns a object. + public virtual SoftwareUpdateConfigurationResource GetSoftwareUpdateConfigurationResource(ResourceIdentifier id) + { + SoftwareUpdateConfigurationResource.ValidateResourceId(id); + return new SoftwareUpdateConfigurationResource(Client, id); + } + + /// + /// Gets an object representing an along with the instance operations that can be performed on it but with no data. + /// You can use to create an from its components. + /// + /// The resource ID of the resource to get. + /// Returns a object. + public virtual AutomationWebhookResource GetAutomationWebhookResource(ResourceIdentifier id) + { + AutomationWebhookResource.ValidateResourceId(id); + return new AutomationWebhookResource(Client, id); } /// @@ -179,63 +167,51 @@ public virtual AutomationCredentialResource GetAutomationCredentialResource(Reso } /// - /// Gets an object representing an along with the instance operations that can be performed on it but with no data. - /// You can use to create an from its components. - /// - /// The resource ID of the resource to get. - /// Returns a object. - public virtual AutomationJobScheduleResource GetAutomationJobScheduleResource(ResourceIdentifier id) - { - AutomationJobScheduleResource.ValidateResourceId(id); - return new AutomationJobScheduleResource(Client, id); - } - - /// - /// Gets an object representing an along with the instance operations that can be performed on it but with no data. - /// You can use to create an from its components. + /// Gets an object representing a along with the instance operations that can be performed on it but with no data. + /// You can use to create a from its components. /// /// The resource ID of the resource to get. - /// Returns a object. - public virtual AutomationScheduleResource GetAutomationScheduleResource(ResourceIdentifier id) + /// Returns a object. + public virtual DscConfigurationResource GetDscConfigurationResource(ResourceIdentifier id) { - AutomationScheduleResource.ValidateResourceId(id); - return new AutomationScheduleResource(Client, id); + DscConfigurationResource.ValidateResourceId(id); + return new DscConfigurationResource(Client, id); } /// - /// Gets an object representing an along with the instance operations that can be performed on it but with no data. - /// You can use to create an from its components. + /// Gets an object representing a along with the instance operations that can be performed on it but with no data. + /// You can use to create a from its components. /// /// The resource ID of the resource to get. - /// Returns a object. - public virtual AutomationVariableResource GetAutomationVariableResource(ResourceIdentifier id) + /// Returns a object. + public virtual DscNodeConfigurationResource GetDscNodeConfigurationResource(ResourceIdentifier id) { - AutomationVariableResource.ValidateResourceId(id); - return new AutomationVariableResource(Client, id); + DscNodeConfigurationResource.ValidateResourceId(id); + return new DscNodeConfigurationResource(Client, id); } /// - /// Gets an object representing an along with the instance operations that can be performed on it but with no data. - /// You can use to create an from its components. + /// Gets an object representing a along with the instance operations that can be performed on it but with no data. + /// You can use to create a from its components. /// /// The resource ID of the resource to get. - /// Returns a object. - public virtual AutomationWatcherResource GetAutomationWatcherResource(ResourceIdentifier id) + /// Returns a object. + public virtual HybridRunbookWorkerResource GetHybridRunbookWorkerResource(ResourceIdentifier id) { - AutomationWatcherResource.ValidateResourceId(id); - return new AutomationWatcherResource(Client, id); + HybridRunbookWorkerResource.ValidateResourceId(id); + return new HybridRunbookWorkerResource(Client, id); } /// - /// Gets an object representing a along with the instance operations that can be performed on it but with no data. - /// You can use to create a from its components. + /// Gets an object representing a along with the instance operations that can be performed on it but with no data. + /// You can use to create a from its components. /// /// The resource ID of the resource to get. - /// Returns a object. - public virtual DscConfigurationResource GetDscConfigurationResource(ResourceIdentifier id) + /// Returns a object. + public virtual HybridRunbookWorkerGroupResource GetHybridRunbookWorkerGroupResource(ResourceIdentifier id) { - DscConfigurationResource.ValidateResourceId(id); - return new DscConfigurationResource(Client, id); + HybridRunbookWorkerGroupResource.ValidateResourceId(id); + return new HybridRunbookWorkerGroupResource(Client, id); } /// @@ -251,15 +227,63 @@ public virtual AutomationJobResource GetAutomationJobResource(ResourceIdentifier } /// - /// 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. + /// Gets an object representing an along with the instance operations that can be performed on it but with no data. + /// You can use to create an from its components. /// /// The resource ID of the resource to get. - /// Returns a object. - public virtual SoftwareUpdateConfigurationResource GetSoftwareUpdateConfigurationResource(ResourceIdentifier id) + /// Returns a object. + public virtual AutomationJobScheduleResource GetAutomationJobScheduleResource(ResourceIdentifier id) { - SoftwareUpdateConfigurationResource.ValidateResourceId(id); - return new SoftwareUpdateConfigurationResource(Client, id); + AutomationJobScheduleResource.ValidateResourceId(id); + return new AutomationJobScheduleResource(Client, id); + } + + /// + /// Gets an object representing an along with the instance operations that can be performed on it but with no data. + /// You can use to create an from its components. + /// + /// The resource ID of the resource to get. + /// Returns a object. + public virtual AutomationAccountModuleResource GetAutomationAccountModuleResource(ResourceIdentifier id) + { + AutomationAccountModuleResource.ValidateResourceId(id); + return new AutomationAccountModuleResource(Client, id); + } + + /// + /// Gets an object representing an along with the instance operations that can be performed on it but with no data. + /// You can use to create an from its components. + /// + /// The resource ID of the resource to get. + /// Returns a object. + public virtual AutomationAccountPowerShell72ModuleResource GetAutomationAccountPowerShell72ModuleResource(ResourceIdentifier id) + { + AutomationAccountPowerShell72ModuleResource.ValidateResourceId(id); + return new AutomationAccountPowerShell72ModuleResource(Client, id); + } + + /// + /// Gets an object representing an along with the instance operations that can be performed on it but with no data. + /// You can use to create an from its components. + /// + /// The resource ID of the resource to get. + /// Returns a object. + public virtual AutomationAccountPython2PackageResource GetAutomationAccountPython2PackageResource(ResourceIdentifier id) + { + AutomationAccountPython2PackageResource.ValidateResourceId(id); + return new AutomationAccountPython2PackageResource(Client, id); + } + + /// + /// Gets an object representing an along with the instance operations that can be performed on it but with no data. + /// You can use to create an from its components. + /// + /// The resource ID of the resource to get. + /// Returns a object. + public virtual AutomationAccountPython3PackageResource GetAutomationAccountPython3PackageResource(ResourceIdentifier id) + { + AutomationAccountPython3PackageResource.ValidateResourceId(id); + return new AutomationAccountPython3PackageResource(Client, id); } /// @@ -275,39 +299,39 @@ public virtual AutomationRunbookResource GetAutomationRunbookResource(ResourceId } /// - /// Gets an object representing an along with the instance operations that can be performed on it but with no data. - /// You can use to create an from its components. + /// Gets an object representing an along with the instance operations that can be performed on it but with no data. + /// You can use to create an from its components. /// /// The resource ID of the resource to get. - /// Returns a object. - public virtual AutomationWebhookResource GetAutomationWebhookResource(ResourceIdentifier id) + /// Returns a object. + public virtual AutomationScheduleResource GetAutomationScheduleResource(ResourceIdentifier id) { - AutomationWebhookResource.ValidateResourceId(id); - return new AutomationWebhookResource(Client, id); + AutomationScheduleResource.ValidateResourceId(id); + return new AutomationScheduleResource(Client, id); } /// - /// Gets an object representing a along with the instance operations that can be performed on it but with no data. - /// You can use to create a from its components. + /// Gets an object representing an along with the instance operations that can be performed on it but with no data. + /// You can use to create an from its components. /// /// The resource ID of the resource to get. - /// Returns a object. - public virtual HybridRunbookWorkerResource GetHybridRunbookWorkerResource(ResourceIdentifier id) + /// Returns a object. + public virtual AutomationSourceControlResource GetAutomationSourceControlResource(ResourceIdentifier id) { - HybridRunbookWorkerResource.ValidateResourceId(id); - return new HybridRunbookWorkerResource(Client, id); + AutomationSourceControlResource.ValidateResourceId(id); + return new AutomationSourceControlResource(Client, id); } /// - /// Gets an object representing a along with the instance operations that can be performed on it but with no data. - /// You can use to create a from its components. + /// Gets an object representing an along with the instance operations that can be performed on it but with no data. + /// You can use to create an from its components. /// /// The resource ID of the resource to get. - /// Returns a object. - public virtual HybridRunbookWorkerGroupResource GetHybridRunbookWorkerGroupResource(ResourceIdentifier id) + /// Returns a object. + public virtual AutomationVariableResource GetAutomationVariableResource(ResourceIdentifier id) { - HybridRunbookWorkerGroupResource.ValidateResourceId(id); - return new HybridRunbookWorkerGroupResource(Client, id); + AutomationVariableResource.ValidateResourceId(id); + return new AutomationVariableResource(Client, id); } } } diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Extensions/MockableAutomationResourceGroupResource.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Extensions/MockableAutomationResourceGroupResource.cs index e927cb8875a8..5b49c20fd1be 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Extensions/MockableAutomationResourceGroupResource.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Extensions/MockableAutomationResourceGroupResource.cs @@ -53,7 +53,7 @@ public virtual AutomationAccountCollection GetAutomationAccounts() /// /// /// Default Api Version - /// 2021-06-22 + /// 2023-11-01 /// /// /// Resource @@ -84,7 +84,7 @@ public virtual async Task> GetAutomationAcco /// /// /// Default Api Version - /// 2021-06-22 + /// 2023-11-01 /// /// /// Resource diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Extensions/MockableAutomationSubscriptionResource.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Extensions/MockableAutomationSubscriptionResource.cs index 4d3b5cd3751e..4dce5f20a930 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Extensions/MockableAutomationSubscriptionResource.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Extensions/MockableAutomationSubscriptionResource.cs @@ -16,10 +16,10 @@ namespace Azure.ResourceManager.Automation.Mocking /// A class to add extension methods to SubscriptionResource. public partial class MockableAutomationSubscriptionResource : ArmResource { - private ClientDiagnostics _automationAccountClientDiagnostics; - private AutomationAccountRestOperations _automationAccountRestClient; private ClientDiagnostics _deletedAutomationAccountsClientDiagnostics; private DeletedAutomationAccountsRestOperations _deletedAutomationAccountsRestClient; + private ClientDiagnostics _automationAccountClientDiagnostics; + private AutomationAccountRestOperations _automationAccountRestClient; /// Initializes a new instance of the class for mocking. protected MockableAutomationSubscriptionResource() @@ -33,10 +33,10 @@ internal MockableAutomationSubscriptionResource(ArmClient client, ResourceIdenti { } - private ClientDiagnostics AutomationAccountClientDiagnostics => _automationAccountClientDiagnostics ??= new ClientDiagnostics("Azure.ResourceManager.Automation", AutomationAccountResource.ResourceType.Namespace, Diagnostics); - private AutomationAccountRestOperations AutomationAccountRestClient => _automationAccountRestClient ??= new AutomationAccountRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, GetApiVersionOrNull(AutomationAccountResource.ResourceType)); private ClientDiagnostics deletedAutomationAccountsClientDiagnostics => _deletedAutomationAccountsClientDiagnostics ??= new ClientDiagnostics("Azure.ResourceManager.Automation", ProviderConstants.DefaultProviderNamespace, Diagnostics); private DeletedAutomationAccountsRestOperations deletedAutomationAccountsRestClient => _deletedAutomationAccountsRestClient ??= new DeletedAutomationAccountsRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint); + private ClientDiagnostics AutomationAccountClientDiagnostics => _automationAccountClientDiagnostics ??= new ClientDiagnostics("Azure.ResourceManager.Automation", AutomationAccountResource.ResourceType.Namespace, Diagnostics); + private AutomationAccountRestOperations AutomationAccountRestClient => _automationAccountRestClient ??= new AutomationAccountRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, GetApiVersionOrNull(AutomationAccountResource.ResourceType)); private string GetApiVersionOrNull(ResourceType resourceType) { @@ -45,113 +45,113 @@ private string GetApiVersionOrNull(ResourceType resourceType) } /// - /// Retrieve a list of accounts within a given subscription. + /// Retrieve deleted automation account. /// /// /// Request Path - /// /subscriptions/{subscriptionId}/providers/Microsoft.Automation/automationAccounts + /// /subscriptions/{subscriptionId}/providers/Microsoft.Automation/deletedAutomationAccounts /// /// /// Operation Id - /// AutomationAccount_List + /// deletedAutomationAccounts_ListBySubscription /// /// /// Default Api Version - /// 2021-06-22 - /// - /// - /// Resource - /// + /// 2022-01-31 /// /// /// /// The cancellation token to use. - /// An async collection of that may take multiple service requests to iterate over. - public virtual AsyncPageable GetAutomationAccountsAsync(CancellationToken cancellationToken = default) + /// An async collection of that may take multiple service requests to iterate over. + public virtual AsyncPageable GetDeletedAutomationAccountsBySubscriptionAsync(CancellationToken cancellationToken = default) { - HttpMessage FirstPageRequest(int? pageSizeHint) => AutomationAccountRestClient.CreateListRequest(Id.SubscriptionId); - HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => AutomationAccountRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId); - return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => new AutomationAccountResource(Client, AutomationAccountData.DeserializeAutomationAccountData(e)), AutomationAccountClientDiagnostics, Pipeline, "MockableAutomationSubscriptionResource.GetAutomationAccounts", "value", "nextLink", cancellationToken); + HttpMessage FirstPageRequest(int? pageSizeHint) => deletedAutomationAccountsRestClient.CreateListBySubscriptionRequest(Id.SubscriptionId); + return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, null, e => DeletedAutomationAccount.DeserializeDeletedAutomationAccount(e), deletedAutomationAccountsClientDiagnostics, Pipeline, "MockableAutomationSubscriptionResource.GetDeletedAutomationAccountsBySubscription", "value", null, cancellationToken); } /// - /// Retrieve a list of accounts within a given subscription. + /// Retrieve deleted automation account. /// /// /// Request Path - /// /subscriptions/{subscriptionId}/providers/Microsoft.Automation/automationAccounts + /// /subscriptions/{subscriptionId}/providers/Microsoft.Automation/deletedAutomationAccounts /// /// /// Operation Id - /// AutomationAccount_List + /// deletedAutomationAccounts_ListBySubscription /// /// /// Default Api Version - /// 2021-06-22 - /// - /// - /// Resource - /// + /// 2022-01-31 /// /// /// /// The cancellation token to use. - /// A collection of that may take multiple service requests to iterate over. - public virtual Pageable GetAutomationAccounts(CancellationToken cancellationToken = default) + /// A collection of that may take multiple service requests to iterate over. + public virtual Pageable GetDeletedAutomationAccountsBySubscription(CancellationToken cancellationToken = default) { - HttpMessage FirstPageRequest(int? pageSizeHint) => AutomationAccountRestClient.CreateListRequest(Id.SubscriptionId); - HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => AutomationAccountRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId); - return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new AutomationAccountResource(Client, AutomationAccountData.DeserializeAutomationAccountData(e)), AutomationAccountClientDiagnostics, Pipeline, "MockableAutomationSubscriptionResource.GetAutomationAccounts", "value", "nextLink", cancellationToken); + HttpMessage FirstPageRequest(int? pageSizeHint) => deletedAutomationAccountsRestClient.CreateListBySubscriptionRequest(Id.SubscriptionId); + return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, null, e => DeletedAutomationAccount.DeserializeDeletedAutomationAccount(e), deletedAutomationAccountsClientDiagnostics, Pipeline, "MockableAutomationSubscriptionResource.GetDeletedAutomationAccountsBySubscription", "value", null, cancellationToken); } /// - /// Retrieve deleted automation account. + /// Retrieve a list of accounts within a given subscription. /// /// /// Request Path - /// /subscriptions/{subscriptionId}/providers/Microsoft.Automation/deletedAutomationAccounts + /// /subscriptions/{subscriptionId}/providers/Microsoft.Automation/automationAccounts /// /// /// Operation Id - /// deletedAutomationAccounts_ListBySubscription + /// AutomationAccount_List /// /// /// Default Api Version - /// 2022-01-31 + /// 2023-11-01 + /// + /// + /// Resource + /// /// /// /// /// The cancellation token to use. - /// An async collection of that may take multiple service requests to iterate over. - public virtual AsyncPageable GetDeletedAutomationAccountsBySubscriptionAsync(CancellationToken cancellationToken = default) + /// An async collection of that may take multiple service requests to iterate over. + public virtual AsyncPageable GetAutomationAccountsAsync(CancellationToken cancellationToken = default) { - HttpMessage FirstPageRequest(int? pageSizeHint) => deletedAutomationAccountsRestClient.CreateListBySubscriptionRequest(Id.SubscriptionId); - return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, null, e => DeletedAutomationAccount.DeserializeDeletedAutomationAccount(e), deletedAutomationAccountsClientDiagnostics, Pipeline, "MockableAutomationSubscriptionResource.GetDeletedAutomationAccountsBySubscription", "value", null, cancellationToken); + HttpMessage FirstPageRequest(int? pageSizeHint) => AutomationAccountRestClient.CreateListRequest(Id.SubscriptionId); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => AutomationAccountRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId); + return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => new AutomationAccountResource(Client, AutomationAccountData.DeserializeAutomationAccountData(e)), AutomationAccountClientDiagnostics, Pipeline, "MockableAutomationSubscriptionResource.GetAutomationAccounts", "value", "nextLink", cancellationToken); } /// - /// Retrieve deleted automation account. + /// Retrieve a list of accounts within a given subscription. /// /// /// Request Path - /// /subscriptions/{subscriptionId}/providers/Microsoft.Automation/deletedAutomationAccounts + /// /subscriptions/{subscriptionId}/providers/Microsoft.Automation/automationAccounts /// /// /// Operation Id - /// deletedAutomationAccounts_ListBySubscription + /// AutomationAccount_List /// /// /// Default Api Version - /// 2022-01-31 + /// 2023-11-01 + /// + /// + /// Resource + /// /// /// /// /// The cancellation token to use. - /// A collection of that may take multiple service requests to iterate over. - public virtual Pageable GetDeletedAutomationAccountsBySubscription(CancellationToken cancellationToken = default) + /// A collection of that may take multiple service requests to iterate over. + public virtual Pageable GetAutomationAccounts(CancellationToken cancellationToken = default) { - HttpMessage FirstPageRequest(int? pageSizeHint) => deletedAutomationAccountsRestClient.CreateListBySubscriptionRequest(Id.SubscriptionId); - return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, null, e => DeletedAutomationAccount.DeserializeDeletedAutomationAccount(e), deletedAutomationAccountsClientDiagnostics, Pipeline, "MockableAutomationSubscriptionResource.GetDeletedAutomationAccountsBySubscription", "value", null, cancellationToken); + HttpMessage FirstPageRequest(int? pageSizeHint) => AutomationAccountRestClient.CreateListRequest(Id.SubscriptionId); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => AutomationAccountRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId); + return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new AutomationAccountResource(Client, AutomationAccountData.DeserializeAutomationAccountData(e)), AutomationAccountClientDiagnostics, Pipeline, "MockableAutomationSubscriptionResource.GetAutomationAccounts", "value", "nextLink", cancellationToken); } } } diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/HybridRunbookWorkerCollection.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/HybridRunbookWorkerCollection.cs index d8e935856dda..ec9bdb6f0d1f 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/HybridRunbookWorkerCollection.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/HybridRunbookWorkerCollection.cs @@ -65,7 +65,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2021-06-22 + /// 2023-11-01 /// /// /// Resource @@ -116,7 +116,7 @@ public virtual async Task> CreateOrUpd /// /// /// Default Api Version - /// 2021-06-22 + /// 2023-11-01 /// /// /// Resource @@ -167,7 +167,7 @@ public virtual ArmOperation CreateOrUpdate(WaitUnti /// /// /// Default Api Version - /// 2021-06-22 + /// 2023-11-01 /// /// /// Resource @@ -212,7 +212,7 @@ public virtual async Task> GetAsync(string /// /// /// Default Api Version - /// 2021-06-22 + /// 2023-11-01 /// /// /// Resource @@ -257,7 +257,7 @@ public virtual Response Get(string hybridRunbookWor /// /// /// Default Api Version - /// 2021-06-22 + /// 2023-11-01 /// /// /// Resource @@ -288,7 +288,7 @@ public virtual AsyncPageable GetAllAsync(string fil /// /// /// Default Api Version - /// 2021-06-22 + /// 2023-11-01 /// /// /// Resource @@ -319,7 +319,7 @@ public virtual Pageable GetAll(string filter = null /// /// /// Default Api Version - /// 2021-06-22 + /// 2023-11-01 /// /// /// Resource @@ -362,7 +362,7 @@ public virtual async Task> ExistsAsync(string hybridRunbookWorker /// /// /// Default Api Version - /// 2021-06-22 + /// 2023-11-01 /// /// /// Resource @@ -405,7 +405,7 @@ public virtual Response Exists(string hybridRunbookWorkerId, CancellationT /// /// /// Default Api Version - /// 2021-06-22 + /// 2023-11-01 /// /// /// Resource @@ -450,7 +450,7 @@ public virtual async Task> GetIfEx /// /// /// Default Api Version - /// 2021-06-22 + /// 2023-11-01 /// /// /// Resource diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/HybridRunbookWorkerGroupCollection.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/HybridRunbookWorkerGroupCollection.cs index 1e816c134dff..a3dcd53a50c1 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/HybridRunbookWorkerGroupCollection.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/HybridRunbookWorkerGroupCollection.cs @@ -65,7 +65,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2022-02-22 + /// 2023-11-01 /// /// /// Resource @@ -116,7 +116,7 @@ public virtual async Task> Create /// /// /// Default Api Version - /// 2022-02-22 + /// 2023-11-01 /// /// /// Resource @@ -167,7 +167,7 @@ public virtual ArmOperation CreateOrUpdate(Wai /// /// /// Default Api Version - /// 2022-02-22 + /// 2023-11-01 /// /// /// Resource @@ -212,7 +212,7 @@ public virtual async Task> GetAsync(s /// /// /// Default Api Version - /// 2022-02-22 + /// 2023-11-01 /// /// /// Resource @@ -257,7 +257,7 @@ public virtual Response Get(string hybridRunbo /// /// /// Default Api Version - /// 2022-02-22 + /// 2023-11-01 /// /// /// Resource @@ -288,7 +288,7 @@ public virtual AsyncPageable GetAllAsync(strin /// /// /// Default Api Version - /// 2022-02-22 + /// 2023-11-01 /// /// /// Resource @@ -319,7 +319,7 @@ public virtual Pageable GetAll(string filter = /// /// /// Default Api Version - /// 2022-02-22 + /// 2023-11-01 /// /// /// Resource @@ -362,7 +362,7 @@ public virtual async Task> ExistsAsync(string hybridRunbookWorker /// /// /// Default Api Version - /// 2022-02-22 + /// 2023-11-01 /// /// /// Resource @@ -405,7 +405,7 @@ public virtual Response Exists(string hybridRunbookWorkerGroupName, Cancel /// /// /// Default Api Version - /// 2022-02-22 + /// 2023-11-01 /// /// /// Resource @@ -450,7 +450,7 @@ public virtual async Task> Ge /// /// /// Default Api Version - /// 2022-02-22 + /// 2023-11-01 /// /// /// Resource diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/HybridRunbookWorkerGroupResource.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/HybridRunbookWorkerGroupResource.cs index 223f147b9f0e..8d47b6babe97 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/HybridRunbookWorkerGroupResource.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/HybridRunbookWorkerGroupResource.cs @@ -109,7 +109,7 @@ public virtual HybridRunbookWorkerCollection GetHybridRunbookWorkers() /// /// /// Default Api Version - /// 2021-06-22 + /// 2023-11-01 /// /// /// Resource @@ -140,7 +140,7 @@ public virtual async Task> GetHybridRunboo /// /// /// Default Api Version - /// 2021-06-22 + /// 2023-11-01 /// /// /// Resource @@ -171,7 +171,7 @@ public virtual Response GetHybridRunbookWorker(stri /// /// /// Default Api Version - /// 2022-02-22 + /// 2023-11-01 /// /// /// Resource @@ -211,7 +211,7 @@ public virtual async Task> GetAsync(C /// /// /// Default Api Version - /// 2022-02-22 + /// 2023-11-01 /// /// /// Resource @@ -251,7 +251,7 @@ public virtual Response Get(CancellationToken /// /// /// Default Api Version - /// 2022-02-22 + /// 2023-11-01 /// /// /// Resource @@ -295,7 +295,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2022-02-22 + /// 2023-11-01 /// /// /// Resource @@ -339,7 +339,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2022-02-22 + /// 2023-11-01 /// /// /// Resource @@ -381,7 +381,7 @@ public virtual async Task> UpdateAsyn /// /// /// Default Api Version - /// 2022-02-22 + /// 2023-11-01 /// /// /// Resource diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/HybridRunbookWorkerResource.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/HybridRunbookWorkerResource.cs index 2b763cecc71e..2e885d38c710 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/HybridRunbookWorkerResource.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/HybridRunbookWorkerResource.cs @@ -103,7 +103,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2021-06-22 + /// 2023-11-01 /// /// /// Resource @@ -143,7 +143,7 @@ public virtual async Task> GetAsync(Cancel /// /// /// Default Api Version - /// 2021-06-22 + /// 2023-11-01 /// /// /// Resource @@ -183,7 +183,7 @@ public virtual Response Get(CancellationToken cance /// /// /// Default Api Version - /// 2021-06-22 + /// 2023-11-01 /// /// /// Resource @@ -227,7 +227,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2021-06-22 + /// 2023-11-01 /// /// /// Resource @@ -271,7 +271,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2021-06-22 + /// 2023-11-01 /// /// /// Resource @@ -319,7 +319,7 @@ public virtual async Task> UpdateAsync /// /// /// Default Api Version - /// 2021-06-22 + /// 2023-11-01 /// /// /// Resource @@ -367,7 +367,7 @@ public virtual ArmOperation Update(WaitUntil waitUn /// /// /// Default Api Version - /// 2021-06-22 + /// 2023-11-01 /// /// /// Resource @@ -409,7 +409,7 @@ public virtual async Task MoveAsync(HybridRunbookWorkerMoveContent con /// /// /// Default Api Version - /// 2021-06-22 + /// 2023-11-01 /// /// /// Resource diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationContentLink.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationContentLink.cs index ddc475cd4bfe..32dd876ca266 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationContentLink.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationContentLink.cs @@ -51,9 +51,9 @@ public AutomationContentLink() } /// Initializes a new instance of . - /// Gets or sets the uri of the runbook content. - /// Gets or sets the hash. - /// Gets or sets the version of the content. + /// Sets the uri of the content. + /// Sets the hash. + /// Sets the version of the content. /// Keeps track of any properties unknown to the library. internal AutomationContentLink(Uri uri, AutomationContentHash contentHash, string version, IDictionary serializedAdditionalRawData) { @@ -63,11 +63,11 @@ internal AutomationContentLink(Uri uri, AutomationContentHash contentHash, strin _serializedAdditionalRawData = serializedAdditionalRawData; } - /// Gets or sets the uri of the runbook content. + /// Sets the uri of the content. public Uri Uri { get; set; } - /// Gets or sets the hash. + /// Sets the hash. public AutomationContentHash ContentHash { get; set; } - /// Gets or sets the version of the content. + /// Sets the version of the content. public string Version { get; set; } } } diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationModuleErrorInfo.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationModuleErrorInfo.cs index dd3640e6f723..d2e309eefd94 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationModuleErrorInfo.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationModuleErrorInfo.cs @@ -51,8 +51,8 @@ public AutomationModuleErrorInfo() } /// Initializes a new instance of . - /// Gets or sets the error code. - /// Gets or sets the error message. + /// Gets the error code. + /// Gets the error message. /// Keeps track of any properties unknown to the library. internal AutomationModuleErrorInfo(string code, string message, IDictionary serializedAdditionalRawData) { @@ -61,9 +61,9 @@ internal AutomationModuleErrorInfo(string code, string message, IDictionary Gets or sets the error code. + /// Gets the error code. public string Code { get; set; } - /// Gets or sets the error message. + /// Gets the error message. public string Message { get; set; } } } diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationModuleListResult.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationModuleListResult.cs index 744940b07101..7afa74ea3069 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationModuleListResult.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationModuleListResult.cs @@ -52,8 +52,8 @@ internal AutomationModuleListResult() } /// Initializes a new instance of . - /// Gets or sets a list of modules. - /// Gets or sets the next link. + /// Gets a list of modules. + /// Gets the next link. /// Keeps track of any properties unknown to the library. internal AutomationModuleListResult(IReadOnlyList value, string nextLink, IDictionary serializedAdditionalRawData) { @@ -62,9 +62,9 @@ internal AutomationModuleListResult(IReadOnlyList value, s _serializedAdditionalRawData = serializedAdditionalRawData; } - /// Gets or sets a list of modules. + /// Gets a list of modules. public IReadOnlyList Value { get; } - /// Gets or sets the next link. + /// Gets the next link. public string NextLink { get; } } } diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationRunbookType.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationRunbookType.cs index 34b69dd82c1d..63db8a7d8150 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationRunbookType.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationRunbookType.cs @@ -30,6 +30,7 @@ public AutomationRunbookType(string value) private const string GraphPowerShellValue = "GraphPowerShell"; private const string Python2Value = "Python2"; private const string Python3Value = "Python3"; + private const string PowerShell72Value = "PowerShell72"; /// Script. public static AutomationRunbookType Script { get; } = new AutomationRunbookType(ScriptValue); @@ -47,6 +48,8 @@ public AutomationRunbookType(string value) public static AutomationRunbookType Python2 { get; } = new AutomationRunbookType(Python2Value); /// Python3. public static AutomationRunbookType Python3 { get; } = new AutomationRunbookType(Python3Value); + /// PowerShell72. + public static AutomationRunbookType PowerShell72 { get; } = new AutomationRunbookType(PowerShell72Value); /// Determines if two values are the same. public static bool operator ==(AutomationRunbookType left, AutomationRunbookType right) => left.Equals(right); /// Determines if two values are not the same. diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationAccountModuleCreateOrUpdateContent.Serialization.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/ModuleCreateOrUpdateParameters.Serialization.cs similarity index 70% rename from sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationAccountModuleCreateOrUpdateContent.Serialization.cs rename to sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/ModuleCreateOrUpdateParameters.Serialization.cs index 76c2514a0dec..a78184e46a72 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationAccountModuleCreateOrUpdateContent.Serialization.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/ModuleCreateOrUpdateParameters.Serialization.cs @@ -13,11 +13,11 @@ namespace Azure.ResourceManager.Automation.Models { - public partial class AutomationAccountModuleCreateOrUpdateContent : IUtf8JsonSerializable, IJsonModel + public partial class ModuleCreateOrUpdateParameters : IUtf8JsonSerializable, IJsonModel { - void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); - void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) { writer.WriteStartObject(); JsonModelWriteCore(writer, options); @@ -28,10 +28,10 @@ void IJsonModel.Write(Utf8JsonWrit /// The client options for reading and writing models. protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") { - throw new FormatException($"The model {nameof(AutomationAccountModuleCreateOrUpdateContent)} does not support writing '{format}' format."); + throw new FormatException($"The model {nameof(ModuleCreateOrUpdateParameters)} does not support writing '{format}' format."); } if (Optional.IsDefined(Name)) @@ -77,19 +77,19 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit } } - AutomationAccountModuleCreateOrUpdateContent IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + ModuleCreateOrUpdateParameters IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") { - throw new FormatException($"The model {nameof(AutomationAccountModuleCreateOrUpdateContent)} does not support reading '{format}' format."); + throw new FormatException($"The model {nameof(ModuleCreateOrUpdateParameters)} does not support reading '{format}' format."); } using JsonDocument document = JsonDocument.ParseValue(ref reader); - return DeserializeAutomationAccountModuleCreateOrUpdateContent(document.RootElement, options); + return DeserializeModuleCreateOrUpdateParameters(document.RootElement, options); } - internal static AutomationAccountModuleCreateOrUpdateContent DeserializeAutomationAccountModuleCreateOrUpdateContent(JsonElement element, ModelReaderWriterOptions options = null) + internal static ModuleCreateOrUpdateParameters DeserializeModuleCreateOrUpdateParameters(JsonElement element, ModelReaderWriterOptions options = null) { options ??= ModelSerializationExtensions.WireOptions; @@ -156,38 +156,38 @@ internal static AutomationAccountModuleCreateOrUpdateContent DeserializeAutomati } } serializedAdditionalRawData = rawDataDictionary; - return new AutomationAccountModuleCreateOrUpdateContent(name, location, tags ?? new ChangeTrackingDictionary(), contentLink, serializedAdditionalRawData); + return new ModuleCreateOrUpdateParameters(name, location, tags ?? new ChangeTrackingDictionary(), contentLink, serializedAdditionalRawData); } - BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; switch (format) { case "J": return ModelReaderWriter.Write(this, options); default: - throw new FormatException($"The model {nameof(AutomationAccountModuleCreateOrUpdateContent)} does not support writing '{options.Format}' format."); + throw new FormatException($"The model {nameof(ModuleCreateOrUpdateParameters)} does not support writing '{options.Format}' format."); } } - AutomationAccountModuleCreateOrUpdateContent IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + ModuleCreateOrUpdateParameters IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; switch (format) { case "J": { using JsonDocument document = JsonDocument.Parse(data); - return DeserializeAutomationAccountModuleCreateOrUpdateContent(document.RootElement, options); + return DeserializeModuleCreateOrUpdateParameters(document.RootElement, options); } default: - throw new FormatException($"The model {nameof(AutomationAccountModuleCreateOrUpdateContent)} does not support reading '{options.Format}' format."); + throw new FormatException($"The model {nameof(ModuleCreateOrUpdateParameters)} does not support reading '{options.Format}' format."); } } - string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; } } diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationAccountModuleCreateOrUpdateContent.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/ModuleCreateOrUpdateParameters.cs similarity index 62% rename from sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationAccountModuleCreateOrUpdateContent.cs rename to sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/ModuleCreateOrUpdateParameters.cs index 4c9fe6888e84..0f5244b9fd46 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationAccountModuleCreateOrUpdateContent.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/ModuleCreateOrUpdateParameters.cs @@ -12,7 +12,7 @@ namespace Azure.ResourceManager.Automation.Models { /// The parameters supplied to the create or update module operation. - public partial class AutomationAccountModuleCreateOrUpdateContent + public partial class ModuleCreateOrUpdateParameters { /// /// Keeps track of any properties unknown to the library. @@ -46,10 +46,10 @@ public partial class AutomationAccountModuleCreateOrUpdateContent /// private IDictionary _serializedAdditionalRawData; - /// Initializes a new instance of . - /// Gets or sets the module content link. + /// Initializes a new instance of . + /// Sets the hash. /// is null. - public AutomationAccountModuleCreateOrUpdateContent(AutomationContentLink contentLink) + public ModuleCreateOrUpdateParameters(AutomationContentLink contentLink) { Argument.AssertNotNull(contentLink, nameof(contentLink)); @@ -57,13 +57,13 @@ public AutomationAccountModuleCreateOrUpdateContent(AutomationContentLink conten ContentLink = contentLink; } - /// Initializes a new instance of . - /// Gets or sets name of the resource. - /// Gets or sets the location of the resource. - /// Gets or sets the tags attached to the resource. - /// Gets or sets the module content link. + /// Initializes a new instance of . + /// Sets name of the resource. + /// Sets the location of the resource. + /// Sets the tags attached to the resource. + /// Sets the hash. /// Keeps track of any properties unknown to the library. - internal AutomationAccountModuleCreateOrUpdateContent(string name, AzureLocation? location, IDictionary tags, AutomationContentLink contentLink, IDictionary serializedAdditionalRawData) + internal ModuleCreateOrUpdateParameters(string name, AzureLocation? location, IDictionary tags, AutomationContentLink contentLink, IDictionary serializedAdditionalRawData) { Name = name; Location = location; @@ -72,18 +72,18 @@ internal AutomationAccountModuleCreateOrUpdateContent(string name, AzureLocation _serializedAdditionalRawData = serializedAdditionalRawData; } - /// Initializes a new instance of for deserialization. - internal AutomationAccountModuleCreateOrUpdateContent() + /// Initializes a new instance of for deserialization. + internal ModuleCreateOrUpdateParameters() { } - /// Gets or sets name of the resource. + /// Sets name of the resource. public string Name { get; set; } - /// Gets or sets the location of the resource. + /// Sets the location of the resource. public AzureLocation? Location { get; set; } - /// Gets or sets the tags attached to the resource. + /// Sets the tags attached to the resource. public IDictionary Tags { get; } - /// Gets or sets the module content link. + /// Sets the hash. public AutomationContentLink ContentLink { get; } } } diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/ModuleProvisioningState.Serialization.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/ModuleProvisioningState.Serialization.cs deleted file mode 100644 index 12f404ef471a..000000000000 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/ModuleProvisioningState.Serialization.cs +++ /dev/null @@ -1,56 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; - -namespace Azure.ResourceManager.Automation.Models -{ - internal static partial class ModuleProvisioningStateExtensions - { - public static string ToSerialString(this ModuleProvisioningState value) => value switch - { - ModuleProvisioningState.Created => "Created", - ModuleProvisioningState.Creating => "Creating", - ModuleProvisioningState.StartingImportModuleRunbook => "StartingImportModuleRunbook", - ModuleProvisioningState.RunningImportModuleRunbook => "RunningImportModuleRunbook", - ModuleProvisioningState.ContentRetrieved => "ContentRetrieved", - ModuleProvisioningState.ContentDownloaded => "ContentDownloaded", - ModuleProvisioningState.ContentValidated => "ContentValidated", - ModuleProvisioningState.ConnectionTypeImported => "ConnectionTypeImported", - ModuleProvisioningState.ContentStored => "ContentStored", - ModuleProvisioningState.ModuleDataStored => "ModuleDataStored", - ModuleProvisioningState.ActivitiesStored => "ActivitiesStored", - ModuleProvisioningState.ModuleImportRunbookComplete => "ModuleImportRunbookComplete", - ModuleProvisioningState.Succeeded => "Succeeded", - ModuleProvisioningState.Failed => "Failed", - ModuleProvisioningState.Cancelled => "Cancelled", - ModuleProvisioningState.Updating => "Updating", - _ => throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown ModuleProvisioningState value.") - }; - - public static ModuleProvisioningState ToModuleProvisioningState(this string value) - { - if (StringComparer.OrdinalIgnoreCase.Equals(value, "Created")) return ModuleProvisioningState.Created; - if (StringComparer.OrdinalIgnoreCase.Equals(value, "Creating")) return ModuleProvisioningState.Creating; - if (StringComparer.OrdinalIgnoreCase.Equals(value, "StartingImportModuleRunbook")) return ModuleProvisioningState.StartingImportModuleRunbook; - if (StringComparer.OrdinalIgnoreCase.Equals(value, "RunningImportModuleRunbook")) return ModuleProvisioningState.RunningImportModuleRunbook; - if (StringComparer.OrdinalIgnoreCase.Equals(value, "ContentRetrieved")) return ModuleProvisioningState.ContentRetrieved; - if (StringComparer.OrdinalIgnoreCase.Equals(value, "ContentDownloaded")) return ModuleProvisioningState.ContentDownloaded; - if (StringComparer.OrdinalIgnoreCase.Equals(value, "ContentValidated")) return ModuleProvisioningState.ContentValidated; - if (StringComparer.OrdinalIgnoreCase.Equals(value, "ConnectionTypeImported")) return ModuleProvisioningState.ConnectionTypeImported; - if (StringComparer.OrdinalIgnoreCase.Equals(value, "ContentStored")) return ModuleProvisioningState.ContentStored; - if (StringComparer.OrdinalIgnoreCase.Equals(value, "ModuleDataStored")) return ModuleProvisioningState.ModuleDataStored; - if (StringComparer.OrdinalIgnoreCase.Equals(value, "ActivitiesStored")) return ModuleProvisioningState.ActivitiesStored; - if (StringComparer.OrdinalIgnoreCase.Equals(value, "ModuleImportRunbookComplete")) return ModuleProvisioningState.ModuleImportRunbookComplete; - if (StringComparer.OrdinalIgnoreCase.Equals(value, "Succeeded")) return ModuleProvisioningState.Succeeded; - if (StringComparer.OrdinalIgnoreCase.Equals(value, "Failed")) return ModuleProvisioningState.Failed; - if (StringComparer.OrdinalIgnoreCase.Equals(value, "Cancelled")) return ModuleProvisioningState.Cancelled; - if (StringComparer.OrdinalIgnoreCase.Equals(value, "Updating")) return ModuleProvisioningState.Updating; - throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown ModuleProvisioningState value."); - } - } -} diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/ModuleProvisioningState.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/ModuleProvisioningState.cs index 630023c2ebd5..ac352926350f 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/ModuleProvisioningState.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/ModuleProvisioningState.cs @@ -5,42 +5,89 @@ #nullable disable +using System; +using System.ComponentModel; + namespace Azure.ResourceManager.Automation.Models { - /// Gets or sets the provisioning state of the module. - public enum ModuleProvisioningState + /// Gets the provisioning state of the module. + public readonly partial struct ModuleProvisioningState : IEquatable { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public ModuleProvisioningState(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string CreatedValue = "Created"; + private const string CreatingValue = "Creating"; + private const string StartingImportModuleRunbookValue = "StartingImportModuleRunbook"; + private const string RunningImportModuleRunbookValue = "RunningImportModuleRunbook"; + private const string ContentRetrievedValue = "ContentRetrieved"; + private const string ContentDownloadedValue = "ContentDownloaded"; + private const string ContentValidatedValue = "ContentValidated"; + private const string ConnectionTypeImportedValue = "ConnectionTypeImported"; + private const string ContentStoredValue = "ContentStored"; + private const string ModuleDataStoredValue = "ModuleDataStored"; + private const string ActivitiesStoredValue = "ActivitiesStored"; + private const string ModuleImportRunbookCompleteValue = "ModuleImportRunbookComplete"; + private const string SucceededValue = "Succeeded"; + private const string FailedValue = "Failed"; + private const string CanceledValue = "Canceled"; + private const string UpdatingValue = "Updating"; + /// Created. - Created, + public static ModuleProvisioningState Created { get; } = new ModuleProvisioningState(CreatedValue); /// Creating. - Creating, + public static ModuleProvisioningState Creating { get; } = new ModuleProvisioningState(CreatingValue); /// StartingImportModuleRunbook. - StartingImportModuleRunbook, + public static ModuleProvisioningState StartingImportModuleRunbook { get; } = new ModuleProvisioningState(StartingImportModuleRunbookValue); /// RunningImportModuleRunbook. - RunningImportModuleRunbook, + public static ModuleProvisioningState RunningImportModuleRunbook { get; } = new ModuleProvisioningState(RunningImportModuleRunbookValue); /// ContentRetrieved. - ContentRetrieved, + public static ModuleProvisioningState ContentRetrieved { get; } = new ModuleProvisioningState(ContentRetrievedValue); /// ContentDownloaded. - ContentDownloaded, + public static ModuleProvisioningState ContentDownloaded { get; } = new ModuleProvisioningState(ContentDownloadedValue); /// ContentValidated. - ContentValidated, + public static ModuleProvisioningState ContentValidated { get; } = new ModuleProvisioningState(ContentValidatedValue); /// ConnectionTypeImported. - ConnectionTypeImported, + public static ModuleProvisioningState ConnectionTypeImported { get; } = new ModuleProvisioningState(ConnectionTypeImportedValue); /// ContentStored. - ContentStored, + public static ModuleProvisioningState ContentStored { get; } = new ModuleProvisioningState(ContentStoredValue); /// ModuleDataStored. - ModuleDataStored, + public static ModuleProvisioningState ModuleDataStored { get; } = new ModuleProvisioningState(ModuleDataStoredValue); /// ActivitiesStored. - ActivitiesStored, + public static ModuleProvisioningState ActivitiesStored { get; } = new ModuleProvisioningState(ActivitiesStoredValue); /// ModuleImportRunbookComplete. - ModuleImportRunbookComplete, + public static ModuleProvisioningState ModuleImportRunbookComplete { get; } = new ModuleProvisioningState(ModuleImportRunbookCompleteValue); /// Succeeded. - Succeeded, + public static ModuleProvisioningState Succeeded { get; } = new ModuleProvisioningState(SucceededValue); /// Failed. - Failed, - /// Cancelled. - Cancelled, + public static ModuleProvisioningState Failed { get; } = new ModuleProvisioningState(FailedValue); + /// Canceled. + public static ModuleProvisioningState Canceled { get; } = new ModuleProvisioningState(CanceledValue); /// Updating. - Updating + public static ModuleProvisioningState Updating { get; } = new ModuleProvisioningState(UpdatingValue); + /// Determines if two values are the same. + public static bool operator ==(ModuleProvisioningState left, ModuleProvisioningState right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(ModuleProvisioningState left, ModuleProvisioningState right) => !left.Equals(right); + /// Converts a to a . + public static implicit operator ModuleProvisioningState(string value) => new ModuleProvisioningState(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is ModuleProvisioningState other && Equals(other); + /// + public bool Equals(ModuleProvisioningState other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value != null ? StringComparer.InvariantCultureIgnoreCase.GetHashCode(_value) : 0; + /// + public override string ToString() => _value; } } diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationAccountModulePatch.Serialization.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/ModuleUpdateParameters.Serialization.cs similarity index 73% rename from sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationAccountModulePatch.Serialization.cs rename to sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/ModuleUpdateParameters.Serialization.cs index d0ab3f453440..203f995ee9ce 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationAccountModulePatch.Serialization.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/ModuleUpdateParameters.Serialization.cs @@ -13,11 +13,11 @@ namespace Azure.ResourceManager.Automation.Models { - public partial class AutomationAccountModulePatch : IUtf8JsonSerializable, IJsonModel + public partial class ModuleUpdateParameters : IUtf8JsonSerializable, IJsonModel { - void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); - void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) { writer.WriteStartObject(); JsonModelWriteCore(writer, options); @@ -28,18 +28,18 @@ void IJsonModel.Write(Utf8JsonWriter writer, Model /// The client options for reading and writing models. protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") { - throw new FormatException($"The model {nameof(AutomationAccountModulePatch)} does not support writing '{format}' format."); + throw new FormatException($"The model {nameof(ModuleUpdateParameters)} does not support writing '{format}' format."); } - if (Optional.IsDefined(Name)) + if (options.Format != "W" && Optional.IsDefined(Name)) { writer.WritePropertyName("name"u8); writer.WriteStringValue(Name); } - if (Optional.IsDefined(Location)) + if (options.Format != "W" && Optional.IsDefined(Location)) { writer.WritePropertyName("location"u8); writer.WriteStringValue(Location.Value); @@ -80,19 +80,19 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit } } - AutomationAccountModulePatch IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + ModuleUpdateParameters IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") { - throw new FormatException($"The model {nameof(AutomationAccountModulePatch)} does not support reading '{format}' format."); + throw new FormatException($"The model {nameof(ModuleUpdateParameters)} does not support reading '{format}' format."); } using JsonDocument document = JsonDocument.ParseValue(ref reader); - return DeserializeAutomationAccountModulePatch(document.RootElement, options); + return DeserializeModuleUpdateParameters(document.RootElement, options); } - internal static AutomationAccountModulePatch DeserializeAutomationAccountModulePatch(JsonElement element, ModelReaderWriterOptions options = null) + internal static ModuleUpdateParameters DeserializeModuleUpdateParameters(JsonElement element, ModelReaderWriterOptions options = null) { options ??= ModelSerializationExtensions.WireOptions; @@ -163,38 +163,38 @@ internal static AutomationAccountModulePatch DeserializeAutomationAccountModuleP } } serializedAdditionalRawData = rawDataDictionary; - return new AutomationAccountModulePatch(name, location, tags ?? new ChangeTrackingDictionary(), contentLink, serializedAdditionalRawData); + return new ModuleUpdateParameters(name, location, tags ?? new ChangeTrackingDictionary(), contentLink, serializedAdditionalRawData); } - BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; switch (format) { case "J": return ModelReaderWriter.Write(this, options); default: - throw new FormatException($"The model {nameof(AutomationAccountModulePatch)} does not support writing '{options.Format}' format."); + throw new FormatException($"The model {nameof(ModuleUpdateParameters)} does not support writing '{options.Format}' format."); } } - AutomationAccountModulePatch IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + ModuleUpdateParameters IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; switch (format) { case "J": { using JsonDocument document = JsonDocument.Parse(data); - return DeserializeAutomationAccountModulePatch(document.RootElement, options); + return DeserializeModuleUpdateParameters(document.RootElement, options); } default: - throw new FormatException($"The model {nameof(AutomationAccountModulePatch)} does not support reading '{options.Format}' format."); + throw new FormatException($"The model {nameof(ModuleUpdateParameters)} does not support reading '{options.Format}' format."); } } - string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; } } diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationAccountModulePatch.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/ModuleUpdateParameters.cs similarity index 64% rename from sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationAccountModulePatch.cs rename to sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/ModuleUpdateParameters.cs index f95e43452467..02de1e32bbb4 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationAccountModulePatch.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/ModuleUpdateParameters.cs @@ -12,7 +12,7 @@ namespace Azure.ResourceManager.Automation.Models { /// The parameters supplied to the update module operation. - public partial class AutomationAccountModulePatch + public partial class ModuleUpdateParameters { /// /// Keeps track of any properties unknown to the library. @@ -46,19 +46,19 @@ public partial class AutomationAccountModulePatch /// private IDictionary _serializedAdditionalRawData; - /// Initializes a new instance of . - public AutomationAccountModulePatch() + /// Initializes a new instance of . + public ModuleUpdateParameters() { Tags = new ChangeTrackingDictionary(); } - /// Initializes a new instance of . - /// Gets or sets name of the resource. - /// Gets or sets the location of the resource. - /// Gets or sets the tags attached to the resource. - /// Gets or sets the module content link. + /// Initializes a new instance of . + /// Sets name of the resource. + /// Sets the location of the resource. + /// Sets the tags attached to the resource. + /// Sets the module content link. /// Keeps track of any properties unknown to the library. - internal AutomationAccountModulePatch(string name, AzureLocation? location, IDictionary tags, AutomationContentLink contentLink, IDictionary serializedAdditionalRawData) + internal ModuleUpdateParameters(string name, AzureLocation? location, IDictionary tags, AutomationContentLink contentLink, IDictionary serializedAdditionalRawData) { Name = name; Location = location; @@ -67,13 +67,13 @@ internal AutomationAccountModulePatch(string name, AzureLocation? location, IDic _serializedAdditionalRawData = serializedAdditionalRawData; } - /// Gets or sets name of the resource. - public string Name { get; set; } - /// Gets or sets the location of the resource. - public AzureLocation? Location { get; set; } - /// Gets or sets the tags attached to the resource. + /// Sets name of the resource. + public string Name { get; } + /// Sets the location of the resource. + public AzureLocation? Location { get; } + /// Sets the tags attached to the resource. public IDictionary Tags { get; } - /// Gets or sets the module content link. + /// Sets the module content link. public AutomationContentLink ContentLink { get; set; } } } diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationAccountPython2PackageCreateOrUpdateContent.Serialization.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/PythonPackageCreateParameters.Serialization.cs similarity index 65% rename from sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationAccountPython2PackageCreateOrUpdateContent.Serialization.cs rename to sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/PythonPackageCreateParameters.Serialization.cs index 681943547039..1faaa7db7077 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationAccountPython2PackageCreateOrUpdateContent.Serialization.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/PythonPackageCreateParameters.Serialization.cs @@ -13,11 +13,11 @@ namespace Azure.ResourceManager.Automation.Models { - public partial class AutomationAccountPython2PackageCreateOrUpdateContent : IUtf8JsonSerializable, IJsonModel + public partial class PythonPackageCreateParameters : IUtf8JsonSerializable, IJsonModel { - void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); - void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) { writer.WriteStartObject(); JsonModelWriteCore(writer, options); @@ -28,10 +28,10 @@ void IJsonModel.Write(Utf8 /// The client options for reading and writing models. protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") { - throw new FormatException($"The model {nameof(AutomationAccountPython2PackageCreateOrUpdateContent)} does not support writing '{format}' format."); + throw new FormatException($"The model {nameof(PythonPackageCreateParameters)} does not support writing '{format}' format."); } if (Optional.IsCollectionDefined(Tags)) @@ -67,19 +67,19 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit } } - AutomationAccountPython2PackageCreateOrUpdateContent IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + PythonPackageCreateParameters IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") { - throw new FormatException($"The model {nameof(AutomationAccountPython2PackageCreateOrUpdateContent)} does not support reading '{format}' format."); + throw new FormatException($"The model {nameof(PythonPackageCreateParameters)} does not support reading '{format}' format."); } using JsonDocument document = JsonDocument.ParseValue(ref reader); - return DeserializeAutomationAccountPython2PackageCreateOrUpdateContent(document.RootElement, options); + return DeserializePythonPackageCreateParameters(document.RootElement, options); } - internal static AutomationAccountPython2PackageCreateOrUpdateContent DeserializeAutomationAccountPython2PackageCreateOrUpdateContent(JsonElement element, ModelReaderWriterOptions options = null) + internal static PythonPackageCreateParameters DeserializePythonPackageCreateParameters(JsonElement element, ModelReaderWriterOptions options = null) { options ??= ModelSerializationExtensions.WireOptions; @@ -130,38 +130,38 @@ internal static AutomationAccountPython2PackageCreateOrUpdateContent Deserialize } } serializedAdditionalRawData = rawDataDictionary; - return new AutomationAccountPython2PackageCreateOrUpdateContent(tags ?? new ChangeTrackingDictionary(), contentLink, serializedAdditionalRawData); + return new PythonPackageCreateParameters(tags ?? new ChangeTrackingDictionary(), contentLink, serializedAdditionalRawData); } - BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; switch (format) { case "J": return ModelReaderWriter.Write(this, options); default: - throw new FormatException($"The model {nameof(AutomationAccountPython2PackageCreateOrUpdateContent)} does not support writing '{options.Format}' format."); + throw new FormatException($"The model {nameof(PythonPackageCreateParameters)} does not support writing '{options.Format}' format."); } } - AutomationAccountPython2PackageCreateOrUpdateContent IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + PythonPackageCreateParameters IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; switch (format) { case "J": { using JsonDocument document = JsonDocument.Parse(data); - return DeserializeAutomationAccountPython2PackageCreateOrUpdateContent(document.RootElement, options); + return DeserializePythonPackageCreateParameters(document.RootElement, options); } default: - throw new FormatException($"The model {nameof(AutomationAccountPython2PackageCreateOrUpdateContent)} does not support reading '{options.Format}' format."); + throw new FormatException($"The model {nameof(PythonPackageCreateParameters)} does not support reading '{options.Format}' format."); } } - string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; } } diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationAccountPython2PackageCreateOrUpdateContent.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/PythonPackageCreateParameters.cs similarity index 76% rename from sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationAccountPython2PackageCreateOrUpdateContent.cs rename to sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/PythonPackageCreateParameters.cs index 9515a1ed9c37..bd392482af72 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationAccountPython2PackageCreateOrUpdateContent.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/PythonPackageCreateParameters.cs @@ -11,7 +11,7 @@ namespace Azure.ResourceManager.Automation.Models { /// The parameters supplied to the create or update module operation. - public partial class AutomationAccountPython2PackageCreateOrUpdateContent + public partial class PythonPackageCreateParameters { /// /// Keeps track of any properties unknown to the library. @@ -45,10 +45,10 @@ public partial class AutomationAccountPython2PackageCreateOrUpdateContent /// private IDictionary _serializedAdditionalRawData; - /// Initializes a new instance of . + /// Initializes a new instance of . /// Gets or sets the module content link. /// is null. - public AutomationAccountPython2PackageCreateOrUpdateContent(AutomationContentLink contentLink) + public PythonPackageCreateParameters(AutomationContentLink contentLink) { Argument.AssertNotNull(contentLink, nameof(contentLink)); @@ -56,19 +56,19 @@ public AutomationAccountPython2PackageCreateOrUpdateContent(AutomationContentLin ContentLink = contentLink; } - /// Initializes a new instance of . + /// Initializes a new instance of . /// Gets or sets the tags attached to the resource. /// Gets or sets the module content link. /// Keeps track of any properties unknown to the library. - internal AutomationAccountPython2PackageCreateOrUpdateContent(IDictionary tags, AutomationContentLink contentLink, IDictionary serializedAdditionalRawData) + internal PythonPackageCreateParameters(IDictionary tags, AutomationContentLink contentLink, IDictionary serializedAdditionalRawData) { Tags = tags; ContentLink = contentLink; _serializedAdditionalRawData = serializedAdditionalRawData; } - /// Initializes a new instance of for deserialization. - internal AutomationAccountPython2PackageCreateOrUpdateContent() + /// Initializes a new instance of for deserialization. + internal PythonPackageCreateParameters() { } diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationAccountPython2PackagePatch.Serialization.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/PythonPackageUpdateParameters.Serialization.cs similarity index 64% rename from sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationAccountPython2PackagePatch.Serialization.cs rename to sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/PythonPackageUpdateParameters.Serialization.cs index 259199489597..2749245286a0 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationAccountPython2PackagePatch.Serialization.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/PythonPackageUpdateParameters.Serialization.cs @@ -13,11 +13,11 @@ namespace Azure.ResourceManager.Automation.Models { - public partial class AutomationAccountPython2PackagePatch : IUtf8JsonSerializable, IJsonModel + public partial class PythonPackageUpdateParameters : IUtf8JsonSerializable, IJsonModel { - void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); - void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) { writer.WriteStartObject(); JsonModelWriteCore(writer, options); @@ -28,10 +28,10 @@ void IJsonModel.Write(Utf8JsonWriter write /// The client options for reading and writing models. protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") { - throw new FormatException($"The model {nameof(AutomationAccountPython2PackagePatch)} does not support writing '{format}' format."); + throw new FormatException($"The model {nameof(PythonPackageUpdateParameters)} does not support writing '{format}' format."); } if (Optional.IsCollectionDefined(Tags)) @@ -62,19 +62,19 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit } } - AutomationAccountPython2PackagePatch IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + PythonPackageUpdateParameters IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") { - throw new FormatException($"The model {nameof(AutomationAccountPython2PackagePatch)} does not support reading '{format}' format."); + throw new FormatException($"The model {nameof(PythonPackageUpdateParameters)} does not support reading '{format}' format."); } using JsonDocument document = JsonDocument.ParseValue(ref reader); - return DeserializeAutomationAccountPython2PackagePatch(document.RootElement, options); + return DeserializePythonPackageUpdateParameters(document.RootElement, options); } - internal static AutomationAccountPython2PackagePatch DeserializeAutomationAccountPython2PackagePatch(JsonElement element, ModelReaderWriterOptions options = null) + internal static PythonPackageUpdateParameters DeserializePythonPackageUpdateParameters(JsonElement element, ModelReaderWriterOptions options = null) { options ??= ModelSerializationExtensions.WireOptions; @@ -107,38 +107,38 @@ internal static AutomationAccountPython2PackagePatch DeserializeAutomationAccoun } } serializedAdditionalRawData = rawDataDictionary; - return new AutomationAccountPython2PackagePatch(tags ?? new ChangeTrackingDictionary(), serializedAdditionalRawData); + return new PythonPackageUpdateParameters(tags ?? new ChangeTrackingDictionary(), serializedAdditionalRawData); } - BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; switch (format) { case "J": return ModelReaderWriter.Write(this, options); default: - throw new FormatException($"The model {nameof(AutomationAccountPython2PackagePatch)} does not support writing '{options.Format}' format."); + throw new FormatException($"The model {nameof(PythonPackageUpdateParameters)} does not support writing '{options.Format}' format."); } } - AutomationAccountPython2PackagePatch IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + PythonPackageUpdateParameters IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; switch (format) { case "J": { using JsonDocument document = JsonDocument.Parse(data); - return DeserializeAutomationAccountPython2PackagePatch(document.RootElement, options); + return DeserializePythonPackageUpdateParameters(document.RootElement, options); } default: - throw new FormatException($"The model {nameof(AutomationAccountPython2PackagePatch)} does not support reading '{options.Format}' format."); + throw new FormatException($"The model {nameof(PythonPackageUpdateParameters)} does not support reading '{options.Format}' format."); } } - string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; } } diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationAccountPython2PackagePatch.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/PythonPackageUpdateParameters.cs similarity index 82% rename from sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationAccountPython2PackagePatch.cs rename to sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/PythonPackageUpdateParameters.cs index 23085161f25e..191b10d42d74 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationAccountPython2PackagePatch.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/PythonPackageUpdateParameters.cs @@ -11,7 +11,7 @@ namespace Azure.ResourceManager.Automation.Models { /// The parameters supplied to the update module operation. - public partial class AutomationAccountPython2PackagePatch + public partial class PythonPackageUpdateParameters { /// /// Keeps track of any properties unknown to the library. @@ -45,16 +45,16 @@ public partial class AutomationAccountPython2PackagePatch /// private IDictionary _serializedAdditionalRawData; - /// Initializes a new instance of . - public AutomationAccountPython2PackagePatch() + /// Initializes a new instance of . + public PythonPackageUpdateParameters() { Tags = new ChangeTrackingDictionary(); } - /// Initializes a new instance of . + /// Initializes a new instance of . /// Gets or sets the tags attached to the resource. /// Keeps track of any properties unknown to the library. - internal AutomationAccountPython2PackagePatch(IDictionary tags, IDictionary serializedAdditionalRawData) + internal PythonPackageUpdateParameters(IDictionary tags, IDictionary serializedAdditionalRawData) { Tags = tags; _serializedAdditionalRawData = serializedAdditionalRawData; diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/ActivityRestOperations.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/ActivityRestOperations.cs index 4e1540950db1..b97b55bf97f7 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/ActivityRestOperations.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/ActivityRestOperations.cs @@ -32,7 +32,7 @@ public ActivityRestOperations(HttpPipeline pipeline, string applicationId, Uri e { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2020-01-13-preview"; + _apiVersion = apiVersion ?? "2023-11-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/AutomationAccountRestOperations.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/AutomationAccountRestOperations.cs index 8631d99d14b5..9936ea7ae409 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/AutomationAccountRestOperations.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/AutomationAccountRestOperations.cs @@ -32,7 +32,7 @@ public AutomationAccountRestOperations(HttpPipeline pipeline, string application { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2021-06-22"; + _apiVersion = apiVersion ?? "2023-11-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/AutomationRestOperations.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/AutomationRestOperations.cs index 494f7ffd0305..0672812272bf 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/AutomationRestOperations.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/AutomationRestOperations.cs @@ -32,7 +32,7 @@ public AutomationRestOperations(HttpPipeline pipeline, string applicationId, Uri { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2021-06-22"; + _apiVersion = apiVersion ?? "2023-11-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/CertificateRestOperations.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/CertificateRestOperations.cs index d8ac912cfc42..bed11a10f51a 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/CertificateRestOperations.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/CertificateRestOperations.cs @@ -32,7 +32,7 @@ public CertificateRestOperations(HttpPipeline pipeline, string applicationId, Ur { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2020-01-13-preview"; + _apiVersion = apiVersion ?? "2023-11-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/ConnectionRestOperations.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/ConnectionRestOperations.cs index a93ab4908473..7295b82c371a 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/ConnectionRestOperations.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/ConnectionRestOperations.cs @@ -32,7 +32,7 @@ public ConnectionRestOperations(HttpPipeline pipeline, string applicationId, Uri { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2020-01-13-preview"; + _apiVersion = apiVersion ?? "2023-11-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/ConnectionTypeRestOperations.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/ConnectionTypeRestOperations.cs index 10b0e9cf7145..f2e3165e6b08 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/ConnectionTypeRestOperations.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/ConnectionTypeRestOperations.cs @@ -32,7 +32,7 @@ public ConnectionTypeRestOperations(HttpPipeline pipeline, string applicationId, { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2020-01-13-preview"; + _apiVersion = apiVersion ?? "2023-11-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/CredentialRestOperations.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/CredentialRestOperations.cs index 3a5b09225a64..cf6a8115fb59 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/CredentialRestOperations.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/CredentialRestOperations.cs @@ -32,7 +32,7 @@ public CredentialRestOperations(HttpPipeline pipeline, string applicationId, Uri { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2020-01-13-preview"; + _apiVersion = apiVersion ?? "2023-11-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/DscConfigurationRestOperations.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/DscConfigurationRestOperations.cs index 9865abb96703..70f6a8f7f83d 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/DscConfigurationRestOperations.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/DscConfigurationRestOperations.cs @@ -33,7 +33,7 @@ public DscConfigurationRestOperations(HttpPipeline pipeline, string applicationI { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2019-06-01"; + _apiVersion = apiVersion ?? "2023-11-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/DscNodeConfigurationRestOperations.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/DscNodeConfigurationRestOperations.cs index 47336c0c6436..2b5a6ae6b92a 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/DscNodeConfigurationRestOperations.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/DscNodeConfigurationRestOperations.cs @@ -32,7 +32,7 @@ public DscNodeConfigurationRestOperations(HttpPipeline pipeline, string applicat { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2020-01-13-preview"; + _apiVersion = apiVersion ?? "2023-11-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/FieldsRestOperations.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/FieldsRestOperations.cs index 144bcbdef547..775b937e8f98 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/FieldsRestOperations.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/FieldsRestOperations.cs @@ -32,7 +32,7 @@ public FieldsRestOperations(HttpPipeline pipeline, string applicationId, Uri end { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2020-01-13-preview"; + _apiVersion = apiVersion ?? "2023-11-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/HybridRunbookWorkerGroupRestOperations.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/HybridRunbookWorkerGroupRestOperations.cs index 5fceb49b887b..5f16558634cc 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/HybridRunbookWorkerGroupRestOperations.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/HybridRunbookWorkerGroupRestOperations.cs @@ -32,7 +32,7 @@ public HybridRunbookWorkerGroupRestOperations(HttpPipeline pipeline, string appl { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-02-22"; + _apiVersion = apiVersion ?? "2023-11-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } @@ -294,6 +294,7 @@ public async Task> CreateAsync(string sub switch (message.Response.Status) { case 200: + case 201: { HybridRunbookWorkerGroupData value = default; using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); @@ -327,6 +328,7 @@ public Response Create(string subscriptionId, stri switch (message.Response.Status) { case 200: + case 201: { HybridRunbookWorkerGroupData value = default; using var document = JsonDocument.Parse(message.Response.ContentStream); diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/HybridRunbookWorkersRestOperations.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/HybridRunbookWorkersRestOperations.cs index f6490b3f116f..d5903338dbf3 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/HybridRunbookWorkersRestOperations.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/HybridRunbookWorkersRestOperations.cs @@ -32,7 +32,7 @@ public HybridRunbookWorkersRestOperations(HttpPipeline pipeline, string applicat { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2021-06-22"; + _apiVersion = apiVersion ?? "2023-11-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } @@ -318,6 +318,7 @@ public async Task> CreateAsync(string subscrip switch (message.Response.Status) { case 200: + case 201: { HybridRunbookWorkerData value = default; using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); @@ -353,6 +354,7 @@ public Response Create(string subscriptionId, string re switch (message.Response.Status) { case 200: + case 201: { HybridRunbookWorkerData value = default; using var document = JsonDocument.Parse(message.Response.ContentStream); diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/JobRestOperations.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/JobRestOperations.cs index 1a2cdfda9308..a63bb4f75406 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/JobRestOperations.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/JobRestOperations.cs @@ -33,7 +33,7 @@ public JobRestOperations(HttpPipeline pipeline, string applicationId, Uri endpoi { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2019-06-01"; + _apiVersion = apiVersion ?? "2023-11-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/JobScheduleRestOperations.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/JobScheduleRestOperations.cs index 1a8dcda42712..5703828ffb4c 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/JobScheduleRestOperations.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/JobScheduleRestOperations.cs @@ -32,7 +32,7 @@ public JobScheduleRestOperations(HttpPipeline pipeline, string applicationId, Ur { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2020-01-13-preview"; + _apiVersion = apiVersion ?? "2023-11-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/JobStreamRestOperations.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/JobStreamRestOperations.cs index acff00f87755..51245d8a8fb0 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/JobStreamRestOperations.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/JobStreamRestOperations.cs @@ -32,7 +32,7 @@ public JobStreamRestOperations(HttpPipeline pipeline, string applicationId, Uri { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2019-06-01"; + _apiVersion = apiVersion ?? "2023-11-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/KeysRestOperations.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/KeysRestOperations.cs index 8d96723cfbb5..c0cfc22b4202 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/KeysRestOperations.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/KeysRestOperations.cs @@ -32,7 +32,7 @@ public KeysRestOperations(HttpPipeline pipeline, string applicationId, Uri endpo { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2021-06-22"; + _apiVersion = apiVersion ?? "2023-11-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/LinkedWorkspaceRestOperations.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/LinkedWorkspaceRestOperations.cs index 0839229e989a..25c15994b60d 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/LinkedWorkspaceRestOperations.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/LinkedWorkspaceRestOperations.cs @@ -32,7 +32,7 @@ public LinkedWorkspaceRestOperations(HttpPipeline pipeline, string applicationId { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2020-01-13-preview"; + _apiVersion = apiVersion ?? "2023-11-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/ModuleRestOperations.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/ModuleRestOperations.cs index fce6b7268c7c..d352cdaec01b 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/ModuleRestOperations.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/ModuleRestOperations.cs @@ -32,7 +32,7 @@ public ModuleRestOperations(HttpPipeline pipeline, string applicationId, Uri end { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2020-01-13-preview"; + _apiVersion = apiVersion ?? "2023-11-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } @@ -230,7 +230,7 @@ public Response Get(string subscriptionId, string resource } } - internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string automationAccountName, string moduleName, AutomationAccountModuleCreateOrUpdateContent content) + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string automationAccountName, string moduleName, ModuleCreateOrUpdateParameters moduleCreateOrUpdateParameters) { var uri = new RawRequestUriBuilder(); uri.Reset(_endpoint); @@ -246,7 +246,7 @@ internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, return uri; } - internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string automationAccountName, string moduleName, AutomationAccountModuleCreateOrUpdateContent content) + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string automationAccountName, string moduleName, ModuleCreateOrUpdateParameters moduleCreateOrUpdateParameters) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -265,9 +265,9 @@ internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string r request.Uri = uri; request.Headers.Add("Accept", "application/json"); request.Headers.Add("Content-Type", "application/json"); - var content0 = new Utf8JsonRequestContent(); - content0.JsonWriter.WriteObjectValue(content, ModelSerializationExtensions.WireOptions); - request.Content = content0; + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(moduleCreateOrUpdateParameters, ModelSerializationExtensions.WireOptions); + request.Content = content; _userAgent.Apply(message); return message; } @@ -277,19 +277,19 @@ internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string r /// Name of an Azure Resource group. /// The name of the automation account. /// The name of module. - /// The create or update parameters for module. + /// The create or update parameters for module. /// The cancellation token to use. - /// , , , or is null. + /// , , , or is null. /// , , or is an empty string, and was expected to be non-empty. - public async Task> CreateOrUpdateAsync(string subscriptionId, string resourceGroupName, string automationAccountName, string moduleName, AutomationAccountModuleCreateOrUpdateContent content, CancellationToken cancellationToken = default) + public async Task> CreateOrUpdateAsync(string subscriptionId, string resourceGroupName, string automationAccountName, string moduleName, ModuleCreateOrUpdateParameters moduleCreateOrUpdateParameters, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); Argument.AssertNotNullOrEmpty(automationAccountName, nameof(automationAccountName)); Argument.AssertNotNullOrEmpty(moduleName, nameof(moduleName)); - Argument.AssertNotNull(content, nameof(content)); + Argument.AssertNotNull(moduleCreateOrUpdateParameters, nameof(moduleCreateOrUpdateParameters)); - using var message = CreateCreateOrUpdateRequest(subscriptionId, resourceGroupName, automationAccountName, moduleName, content); + using var message = CreateCreateOrUpdateRequest(subscriptionId, resourceGroupName, automationAccountName, moduleName, moduleCreateOrUpdateParameters); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { @@ -311,19 +311,19 @@ public async Task> CreateOrUpdateAsync(string sub /// Name of an Azure Resource group. /// The name of the automation account. /// The name of module. - /// The create or update parameters for module. + /// The create or update parameters for module. /// The cancellation token to use. - /// , , , or is null. + /// , , , or is null. /// , , or is an empty string, and was expected to be non-empty. - public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, string automationAccountName, string moduleName, AutomationAccountModuleCreateOrUpdateContent content, CancellationToken cancellationToken = default) + public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, string automationAccountName, string moduleName, ModuleCreateOrUpdateParameters moduleCreateOrUpdateParameters, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); Argument.AssertNotNullOrEmpty(automationAccountName, nameof(automationAccountName)); Argument.AssertNotNullOrEmpty(moduleName, nameof(moduleName)); - Argument.AssertNotNull(content, nameof(content)); + Argument.AssertNotNull(moduleCreateOrUpdateParameters, nameof(moduleCreateOrUpdateParameters)); - using var message = CreateCreateOrUpdateRequest(subscriptionId, resourceGroupName, automationAccountName, moduleName, content); + using var message = CreateCreateOrUpdateRequest(subscriptionId, resourceGroupName, automationAccountName, moduleName, moduleCreateOrUpdateParameters); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { @@ -340,7 +340,7 @@ public Response CreateOrUpdate(string subscriptionId, stri } } - internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string automationAccountName, string moduleName, AutomationAccountModulePatch patch) + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string automationAccountName, string moduleName, ModuleUpdateParameters moduleUpdateParameters) { var uri = new RawRequestUriBuilder(); uri.Reset(_endpoint); @@ -356,7 +356,7 @@ internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string return uri; } - internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string automationAccountName, string moduleName, AutomationAccountModulePatch patch) + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string automationAccountName, string moduleName, ModuleUpdateParameters moduleUpdateParameters) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -376,7 +376,7 @@ internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceG request.Headers.Add("Accept", "application/json"); request.Headers.Add("Content-Type", "application/json"); var content = new Utf8JsonRequestContent(); - content.JsonWriter.WriteObjectValue(patch, ModelSerializationExtensions.WireOptions); + content.JsonWriter.WriteObjectValue(moduleUpdateParameters, ModelSerializationExtensions.WireOptions); request.Content = content; _userAgent.Apply(message); return message; @@ -387,19 +387,19 @@ internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceG /// Name of an Azure Resource group. /// The name of the automation account. /// The name of module. - /// The update parameters for module. + /// The update parameters for module. /// The cancellation token to use. - /// , , , or is null. + /// , , , or is null. /// , , or is an empty string, and was expected to be non-empty. - public async Task> UpdateAsync(string subscriptionId, string resourceGroupName, string automationAccountName, string moduleName, AutomationAccountModulePatch patch, CancellationToken cancellationToken = default) + public async Task> UpdateAsync(string subscriptionId, string resourceGroupName, string automationAccountName, string moduleName, ModuleUpdateParameters moduleUpdateParameters, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); Argument.AssertNotNullOrEmpty(automationAccountName, nameof(automationAccountName)); Argument.AssertNotNullOrEmpty(moduleName, nameof(moduleName)); - Argument.AssertNotNull(patch, nameof(patch)); + Argument.AssertNotNull(moduleUpdateParameters, nameof(moduleUpdateParameters)); - using var message = CreateUpdateRequest(subscriptionId, resourceGroupName, automationAccountName, moduleName, patch); + using var message = CreateUpdateRequest(subscriptionId, resourceGroupName, automationAccountName, moduleName, moduleUpdateParameters); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { @@ -420,19 +420,19 @@ public async Task> UpdateAsync(string subscriptio /// Name of an Azure Resource group. /// The name of the automation account. /// The name of module. - /// The update parameters for module. + /// The update parameters for module. /// The cancellation token to use. - /// , , , or is null. + /// , , , or is null. /// , , or is an empty string, and was expected to be non-empty. - public Response Update(string subscriptionId, string resourceGroupName, string automationAccountName, string moduleName, AutomationAccountModulePatch patch, CancellationToken cancellationToken = default) + public Response Update(string subscriptionId, string resourceGroupName, string automationAccountName, string moduleName, ModuleUpdateParameters moduleUpdateParameters, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); Argument.AssertNotNullOrEmpty(automationAccountName, nameof(automationAccountName)); Argument.AssertNotNullOrEmpty(moduleName, nameof(moduleName)); - Argument.AssertNotNull(patch, nameof(patch)); + Argument.AssertNotNull(moduleUpdateParameters, nameof(moduleUpdateParameters)); - using var message = CreateUpdateRequest(subscriptionId, resourceGroupName, automationAccountName, moduleName, patch); + using var message = CreateUpdateRequest(subscriptionId, resourceGroupName, automationAccountName, moduleName, moduleUpdateParameters); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/ObjectDataTypesRestOperations.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/ObjectDataTypesRestOperations.cs index 8d9493ea63e9..8f61afb6459b 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/ObjectDataTypesRestOperations.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/ObjectDataTypesRestOperations.cs @@ -32,7 +32,7 @@ public ObjectDataTypesRestOperations(HttpPipeline pipeline, string applicationId { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2020-01-13-preview"; + _apiVersion = apiVersion ?? "2023-11-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/PowerShell72ModuleRestOperations.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/PowerShell72ModuleRestOperations.cs new file mode 100644 index 000000000000..b3cd0a3259fc --- /dev/null +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/PowerShell72ModuleRestOperations.cs @@ -0,0 +1,631 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Text.Json; +using System.Threading; +using System.Threading.Tasks; +using Azure.Core; +using Azure.Core.Pipeline; +using Azure.ResourceManager.Automation.Models; + +namespace Azure.ResourceManager.Automation +{ + internal partial class PowerShell72ModuleRestOperations + { + private readonly TelemetryDetails _userAgent; + private readonly HttpPipeline _pipeline; + private readonly Uri _endpoint; + private readonly string _apiVersion; + + /// Initializes a new instance of PowerShell72ModuleRestOperations. + /// The HTTP pipeline for sending and receiving REST requests and responses. + /// The application id to use for user agent. + /// server parameter. + /// Api Version. + /// or is null. + public PowerShell72ModuleRestOperations(HttpPipeline pipeline, string applicationId, Uri endpoint = null, string apiVersion = default) + { + _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); + _endpoint = endpoint ?? new Uri("https://management.azure.com"); + _apiVersion = apiVersion ?? "2023-11-01"; + _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); + } + + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string automationAccountName, string moduleName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Automation/automationAccounts/", false); + uri.AppendPath(automationAccountName, true); + uri.AppendPath("/powerShell72Modules/", false); + uri.AppendPath(moduleName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string automationAccountName, string moduleName) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Delete; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Automation/automationAccounts/", false); + uri.AppendPath(automationAccountName, true); + uri.AppendPath("/powerShell72Modules/", false); + uri.AppendPath(moduleName, true); + uri.AppendQuery("api-version", _apiVersion, true); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + _userAgent.Apply(message); + return message; + } + + /// Delete the module by name. + /// Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + /// The name of the resource group. The name is case insensitive. + /// The name of the automation account. + /// The name of module. + /// The cancellation token to use. + /// , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public async Task DeleteAsync(string subscriptionId, string resourceGroupName, string automationAccountName, string moduleName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(automationAccountName, nameof(automationAccountName)); + Argument.AssertNotNullOrEmpty(moduleName, nameof(moduleName)); + + using var message = CreateDeleteRequest(subscriptionId, resourceGroupName, automationAccountName, moduleName); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + case 204: + return message.Response; + default: + throw new RequestFailedException(message.Response); + } + } + + /// Delete the module by name. + /// Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + /// The name of the resource group. The name is case insensitive. + /// The name of the automation account. + /// The name of module. + /// The cancellation token to use. + /// , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public Response Delete(string subscriptionId, string resourceGroupName, string automationAccountName, string moduleName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(automationAccountName, nameof(automationAccountName)); + Argument.AssertNotNullOrEmpty(moduleName, nameof(moduleName)); + + using var message = CreateDeleteRequest(subscriptionId, resourceGroupName, automationAccountName, moduleName); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + case 204: + return message.Response; + default: + throw new RequestFailedException(message.Response); + } + } + + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string automationAccountName, string moduleName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Automation/automationAccounts/", false); + uri.AppendPath(automationAccountName, true); + uri.AppendPath("/powerShell72Modules/", false); + uri.AppendPath(moduleName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string automationAccountName, string moduleName) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Automation/automationAccounts/", false); + uri.AppendPath(automationAccountName, true); + uri.AppendPath("/powerShell72Modules/", false); + uri.AppendPath(moduleName, true); + uri.AppendQuery("api-version", _apiVersion, true); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + _userAgent.Apply(message); + return message; + } + + /// Retrieve the module identified by module name. + /// Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + /// The name of the resource group. The name is case insensitive. + /// The name of the automation account. + /// The name of module. + /// The cancellation token to use. + /// , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public async Task> GetAsync(string subscriptionId, string resourceGroupName, string automationAccountName, string moduleName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(automationAccountName, nameof(automationAccountName)); + Argument.AssertNotNullOrEmpty(moduleName, nameof(moduleName)); + + using var message = CreateGetRequest(subscriptionId, resourceGroupName, automationAccountName, moduleName); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + AutomationModuleData value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + value = AutomationModuleData.DeserializeAutomationModuleData(document.RootElement); + return Response.FromValue(value, message.Response); + } + case 404: + return Response.FromValue((AutomationModuleData)null, message.Response); + default: + throw new RequestFailedException(message.Response); + } + } + + /// Retrieve the module identified by module name. + /// Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + /// The name of the resource group. The name is case insensitive. + /// The name of the automation account. + /// The name of module. + /// The cancellation token to use. + /// , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public Response Get(string subscriptionId, string resourceGroupName, string automationAccountName, string moduleName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(automationAccountName, nameof(automationAccountName)); + Argument.AssertNotNullOrEmpty(moduleName, nameof(moduleName)); + + using var message = CreateGetRequest(subscriptionId, resourceGroupName, automationAccountName, moduleName); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + AutomationModuleData value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + value = AutomationModuleData.DeserializeAutomationModuleData(document.RootElement); + return Response.FromValue(value, message.Response); + } + case 404: + return Response.FromValue((AutomationModuleData)null, message.Response); + default: + throw new RequestFailedException(message.Response); + } + } + + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string automationAccountName, string moduleName, ModuleCreateOrUpdateParameters moduleCreateOrUpdateParameters) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Automation/automationAccounts/", false); + uri.AppendPath(automationAccountName, true); + uri.AppendPath("/powerShell72Modules/", false); + uri.AppendPath(moduleName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string automationAccountName, string moduleName, ModuleCreateOrUpdateParameters moduleCreateOrUpdateParameters) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Put; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Automation/automationAccounts/", false); + uri.AppendPath(automationAccountName, true); + uri.AppendPath("/powerShell72Modules/", false); + uri.AppendPath(moduleName, true); + uri.AppendQuery("api-version", _apiVersion, true); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + request.Headers.Add("Content-Type", "application/json"); + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(moduleCreateOrUpdateParameters, ModelSerializationExtensions.WireOptions); + request.Content = content; + _userAgent.Apply(message); + return message; + } + + /// Create or Update the module identified by module name. + /// Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + /// The name of the resource group. The name is case insensitive. + /// The name of the automation account. + /// The name of module. + /// The create or update parameters for module. + /// The cancellation token to use. + /// , , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public async Task> CreateOrUpdateAsync(string subscriptionId, string resourceGroupName, string automationAccountName, string moduleName, ModuleCreateOrUpdateParameters moduleCreateOrUpdateParameters, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(automationAccountName, nameof(automationAccountName)); + Argument.AssertNotNullOrEmpty(moduleName, nameof(moduleName)); + Argument.AssertNotNull(moduleCreateOrUpdateParameters, nameof(moduleCreateOrUpdateParameters)); + + using var message = CreateCreateOrUpdateRequest(subscriptionId, resourceGroupName, automationAccountName, moduleName, moduleCreateOrUpdateParameters); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + case 201: + { + AutomationModuleData value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + value = AutomationModuleData.DeserializeAutomationModuleData(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + /// Create or Update the module identified by module name. + /// Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + /// The name of the resource group. The name is case insensitive. + /// The name of the automation account. + /// The name of module. + /// The create or update parameters for module. + /// The cancellation token to use. + /// , , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, string automationAccountName, string moduleName, ModuleCreateOrUpdateParameters moduleCreateOrUpdateParameters, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(automationAccountName, nameof(automationAccountName)); + Argument.AssertNotNullOrEmpty(moduleName, nameof(moduleName)); + Argument.AssertNotNull(moduleCreateOrUpdateParameters, nameof(moduleCreateOrUpdateParameters)); + + using var message = CreateCreateOrUpdateRequest(subscriptionId, resourceGroupName, automationAccountName, moduleName, moduleCreateOrUpdateParameters); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + case 201: + { + AutomationModuleData value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + value = AutomationModuleData.DeserializeAutomationModuleData(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string automationAccountName, string moduleName, ModuleUpdateParameters moduleUpdateParameters) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Automation/automationAccounts/", false); + uri.AppendPath(automationAccountName, true); + uri.AppendPath("/powerShell72Modules/", false); + uri.AppendPath(moduleName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string automationAccountName, string moduleName, ModuleUpdateParameters moduleUpdateParameters) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Patch; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Automation/automationAccounts/", false); + uri.AppendPath(automationAccountName, true); + uri.AppendPath("/powerShell72Modules/", false); + uri.AppendPath(moduleName, true); + uri.AppendQuery("api-version", _apiVersion, true); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + request.Headers.Add("Content-Type", "application/json"); + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(moduleUpdateParameters, ModelSerializationExtensions.WireOptions); + request.Content = content; + _userAgent.Apply(message); + return message; + } + + /// Update the module identified by module name. + /// Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + /// The name of the resource group. The name is case insensitive. + /// The name of the automation account. + /// The name of module. + /// The update parameters for module. + /// The cancellation token to use. + /// , , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public async Task> UpdateAsync(string subscriptionId, string resourceGroupName, string automationAccountName, string moduleName, ModuleUpdateParameters moduleUpdateParameters, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(automationAccountName, nameof(automationAccountName)); + Argument.AssertNotNullOrEmpty(moduleName, nameof(moduleName)); + Argument.AssertNotNull(moduleUpdateParameters, nameof(moduleUpdateParameters)); + + using var message = CreateUpdateRequest(subscriptionId, resourceGroupName, automationAccountName, moduleName, moduleUpdateParameters); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + AutomationModuleData value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + value = AutomationModuleData.DeserializeAutomationModuleData(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + /// Update the module identified by module name. + /// Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + /// The name of the resource group. The name is case insensitive. + /// The name of the automation account. + /// The name of module. + /// The update parameters for module. + /// The cancellation token to use. + /// , , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public Response Update(string subscriptionId, string resourceGroupName, string automationAccountName, string moduleName, ModuleUpdateParameters moduleUpdateParameters, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(automationAccountName, nameof(automationAccountName)); + Argument.AssertNotNullOrEmpty(moduleName, nameof(moduleName)); + Argument.AssertNotNull(moduleUpdateParameters, nameof(moduleUpdateParameters)); + + using var message = CreateUpdateRequest(subscriptionId, resourceGroupName, automationAccountName, moduleName, moduleUpdateParameters); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + AutomationModuleData value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + value = AutomationModuleData.DeserializeAutomationModuleData(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + internal RequestUriBuilder CreateListByAutomationAccountRequestUri(string subscriptionId, string resourceGroupName, string automationAccountName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Automation/automationAccounts/", false); + uri.AppendPath(automationAccountName, true); + uri.AppendPath("/powerShell72Modules", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + + internal HttpMessage CreateListByAutomationAccountRequest(string subscriptionId, string resourceGroupName, string automationAccountName) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Automation/automationAccounts/", false); + uri.AppendPath(automationAccountName, true); + uri.AppendPath("/powerShell72Modules", false); + uri.AppendQuery("api-version", _apiVersion, true); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + _userAgent.Apply(message); + return message; + } + + /// Retrieve a list of PowerShell72 modules. + /// Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + /// The name of the resource group. The name is case insensitive. + /// The name of the automation account. + /// The cancellation token to use. + /// , or is null. + /// , or is an empty string, and was expected to be non-empty. + public async Task> ListByAutomationAccountAsync(string subscriptionId, string resourceGroupName, string automationAccountName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(automationAccountName, nameof(automationAccountName)); + + using var message = CreateListByAutomationAccountRequest(subscriptionId, resourceGroupName, automationAccountName); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + AutomationModuleListResult value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + value = AutomationModuleListResult.DeserializeAutomationModuleListResult(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + /// Retrieve a list of PowerShell72 modules. + /// Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + /// The name of the resource group. The name is case insensitive. + /// The name of the automation account. + /// The cancellation token to use. + /// , or is null. + /// , or is an empty string, and was expected to be non-empty. + public Response ListByAutomationAccount(string subscriptionId, string resourceGroupName, string automationAccountName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(automationAccountName, nameof(automationAccountName)); + + using var message = CreateListByAutomationAccountRequest(subscriptionId, resourceGroupName, automationAccountName); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + AutomationModuleListResult value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + value = AutomationModuleListResult.DeserializeAutomationModuleListResult(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + internal RequestUriBuilder CreateListByAutomationAccountNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string automationAccountName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + + internal HttpMessage CreateListByAutomationAccountNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string automationAccountName) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + _userAgent.Apply(message); + return message; + } + + /// Retrieve a list of PowerShell72 modules. + /// The URL to the next page of results. + /// Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + /// The name of the resource group. The name is case insensitive. + /// The name of the automation account. + /// The cancellation token to use. + /// , , or is null. + /// , or is an empty string, and was expected to be non-empty. + public async Task> ListByAutomationAccountNextPageAsync(string nextLink, string subscriptionId, string resourceGroupName, string automationAccountName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(nextLink, nameof(nextLink)); + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(automationAccountName, nameof(automationAccountName)); + + using var message = CreateListByAutomationAccountNextPageRequest(nextLink, subscriptionId, resourceGroupName, automationAccountName); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + AutomationModuleListResult value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + value = AutomationModuleListResult.DeserializeAutomationModuleListResult(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + /// Retrieve a list of PowerShell72 modules. + /// The URL to the next page of results. + /// Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + /// The name of the resource group. The name is case insensitive. + /// The name of the automation account. + /// The cancellation token to use. + /// , , or is null. + /// , or is an empty string, and was expected to be non-empty. + public Response ListByAutomationAccountNextPage(string nextLink, string subscriptionId, string resourceGroupName, string automationAccountName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(nextLink, nameof(nextLink)); + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(automationAccountName, nameof(automationAccountName)); + + using var message = CreateListByAutomationAccountNextPageRequest(nextLink, subscriptionId, resourceGroupName, automationAccountName); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + AutomationModuleListResult value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + value = AutomationModuleListResult.DeserializeAutomationModuleListResult(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + } +} diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/Python2PackageRestOperations.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/Python2PackageRestOperations.cs index f06ce5b86c94..d7e4fa0a69a6 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/Python2PackageRestOperations.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/Python2PackageRestOperations.cs @@ -32,7 +32,7 @@ public Python2PackageRestOperations(HttpPipeline pipeline, string applicationId, { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2020-01-13-preview"; + _apiVersion = apiVersion ?? "2023-11-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } @@ -230,7 +230,7 @@ public Response Get(string subscriptionId, string resource } } - internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string automationAccountName, string packageName, AutomationAccountPython2PackageCreateOrUpdateContent content) + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string automationAccountName, string packageName, PythonPackageCreateParameters pythonPackageCreateParameters) { var uri = new RawRequestUriBuilder(); uri.Reset(_endpoint); @@ -246,7 +246,7 @@ internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, return uri; } - internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string automationAccountName, string packageName, AutomationAccountPython2PackageCreateOrUpdateContent content) + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string automationAccountName, string packageName, PythonPackageCreateParameters pythonPackageCreateParameters) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -265,9 +265,9 @@ internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string r request.Uri = uri; request.Headers.Add("Accept", "application/json"); request.Headers.Add("Content-Type", "application/json"); - var content0 = new Utf8JsonRequestContent(); - content0.JsonWriter.WriteObjectValue(content, ModelSerializationExtensions.WireOptions); - request.Content = content0; + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(pythonPackageCreateParameters, ModelSerializationExtensions.WireOptions); + request.Content = content; _userAgent.Apply(message); return message; } @@ -277,19 +277,19 @@ internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string r /// Name of an Azure Resource group. /// The name of the automation account. /// The name of python package. - /// The create or update parameters for python package. + /// The create or update parameters for python package. /// The cancellation token to use. - /// , , , or is null. + /// , , , or is null. /// , , or is an empty string, and was expected to be non-empty. - public async Task> CreateOrUpdateAsync(string subscriptionId, string resourceGroupName, string automationAccountName, string packageName, AutomationAccountPython2PackageCreateOrUpdateContent content, CancellationToken cancellationToken = default) + public async Task> CreateOrUpdateAsync(string subscriptionId, string resourceGroupName, string automationAccountName, string packageName, PythonPackageCreateParameters pythonPackageCreateParameters, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); Argument.AssertNotNullOrEmpty(automationAccountName, nameof(automationAccountName)); Argument.AssertNotNullOrEmpty(packageName, nameof(packageName)); - Argument.AssertNotNull(content, nameof(content)); + Argument.AssertNotNull(pythonPackageCreateParameters, nameof(pythonPackageCreateParameters)); - using var message = CreateCreateOrUpdateRequest(subscriptionId, resourceGroupName, automationAccountName, packageName, content); + using var message = CreateCreateOrUpdateRequest(subscriptionId, resourceGroupName, automationAccountName, packageName, pythonPackageCreateParameters); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { @@ -311,19 +311,19 @@ public async Task> CreateOrUpdateAsync(string sub /// Name of an Azure Resource group. /// The name of the automation account. /// The name of python package. - /// The create or update parameters for python package. + /// The create or update parameters for python package. /// The cancellation token to use. - /// , , , or is null. + /// , , , or is null. /// , , or is an empty string, and was expected to be non-empty. - public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, string automationAccountName, string packageName, AutomationAccountPython2PackageCreateOrUpdateContent content, CancellationToken cancellationToken = default) + public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, string automationAccountName, string packageName, PythonPackageCreateParameters pythonPackageCreateParameters, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); Argument.AssertNotNullOrEmpty(automationAccountName, nameof(automationAccountName)); Argument.AssertNotNullOrEmpty(packageName, nameof(packageName)); - Argument.AssertNotNull(content, nameof(content)); + Argument.AssertNotNull(pythonPackageCreateParameters, nameof(pythonPackageCreateParameters)); - using var message = CreateCreateOrUpdateRequest(subscriptionId, resourceGroupName, automationAccountName, packageName, content); + using var message = CreateCreateOrUpdateRequest(subscriptionId, resourceGroupName, automationAccountName, packageName, pythonPackageCreateParameters); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { @@ -340,7 +340,7 @@ public Response CreateOrUpdate(string subscriptionId, stri } } - internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string automationAccountName, string packageName, AutomationAccountPython2PackagePatch patch) + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string automationAccountName, string packageName, PythonPackageUpdateParameters pythonPackageUpdateParameters) { var uri = new RawRequestUriBuilder(); uri.Reset(_endpoint); @@ -356,7 +356,7 @@ internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string return uri; } - internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string automationAccountName, string packageName, AutomationAccountPython2PackagePatch patch) + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string automationAccountName, string packageName, PythonPackageUpdateParameters pythonPackageUpdateParameters) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -376,7 +376,7 @@ internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceG request.Headers.Add("Accept", "application/json"); request.Headers.Add("Content-Type", "application/json"); var content = new Utf8JsonRequestContent(); - content.JsonWriter.WriteObjectValue(patch, ModelSerializationExtensions.WireOptions); + content.JsonWriter.WriteObjectValue(pythonPackageUpdateParameters, ModelSerializationExtensions.WireOptions); request.Content = content; _userAgent.Apply(message); return message; @@ -387,19 +387,19 @@ internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceG /// Name of an Azure Resource group. /// The name of the automation account. /// The name of python package. - /// The update parameters for python package. + /// The update parameters for python package. /// The cancellation token to use. - /// , , , or is null. + /// , , , or is null. /// , , or is an empty string, and was expected to be non-empty. - public async Task> UpdateAsync(string subscriptionId, string resourceGroupName, string automationAccountName, string packageName, AutomationAccountPython2PackagePatch patch, CancellationToken cancellationToken = default) + public async Task> UpdateAsync(string subscriptionId, string resourceGroupName, string automationAccountName, string packageName, PythonPackageUpdateParameters pythonPackageUpdateParameters, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); Argument.AssertNotNullOrEmpty(automationAccountName, nameof(automationAccountName)); Argument.AssertNotNullOrEmpty(packageName, nameof(packageName)); - Argument.AssertNotNull(patch, nameof(patch)); + Argument.AssertNotNull(pythonPackageUpdateParameters, nameof(pythonPackageUpdateParameters)); - using var message = CreateUpdateRequest(subscriptionId, resourceGroupName, automationAccountName, packageName, patch); + using var message = CreateUpdateRequest(subscriptionId, resourceGroupName, automationAccountName, packageName, pythonPackageUpdateParameters); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { @@ -420,19 +420,19 @@ public async Task> UpdateAsync(string subscriptio /// Name of an Azure Resource group. /// The name of the automation account. /// The name of python package. - /// The update parameters for python package. + /// The update parameters for python package. /// The cancellation token to use. - /// , , , or is null. + /// , , , or is null. /// , , or is an empty string, and was expected to be non-empty. - public Response Update(string subscriptionId, string resourceGroupName, string automationAccountName, string packageName, AutomationAccountPython2PackagePatch patch, CancellationToken cancellationToken = default) + public Response Update(string subscriptionId, string resourceGroupName, string automationAccountName, string packageName, PythonPackageUpdateParameters pythonPackageUpdateParameters, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); Argument.AssertNotNullOrEmpty(automationAccountName, nameof(automationAccountName)); Argument.AssertNotNullOrEmpty(packageName, nameof(packageName)); - Argument.AssertNotNull(patch, nameof(patch)); + Argument.AssertNotNull(pythonPackageUpdateParameters, nameof(pythonPackageUpdateParameters)); - using var message = CreateUpdateRequest(subscriptionId, resourceGroupName, automationAccountName, packageName, patch); + using var message = CreateUpdateRequest(subscriptionId, resourceGroupName, automationAccountName, packageName, pythonPackageUpdateParameters); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/Python3PackageRestOperations.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/Python3PackageRestOperations.cs new file mode 100644 index 000000000000..9401d8c1a3fe --- /dev/null +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/Python3PackageRestOperations.cs @@ -0,0 +1,631 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Text.Json; +using System.Threading; +using System.Threading.Tasks; +using Azure.Core; +using Azure.Core.Pipeline; +using Azure.ResourceManager.Automation.Models; + +namespace Azure.ResourceManager.Automation +{ + internal partial class Python3PackageRestOperations + { + private readonly TelemetryDetails _userAgent; + private readonly HttpPipeline _pipeline; + private readonly Uri _endpoint; + private readonly string _apiVersion; + + /// Initializes a new instance of Python3PackageRestOperations. + /// The HTTP pipeline for sending and receiving REST requests and responses. + /// The application id to use for user agent. + /// server parameter. + /// Api Version. + /// or is null. + public Python3PackageRestOperations(HttpPipeline pipeline, string applicationId, Uri endpoint = null, string apiVersion = default) + { + _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); + _endpoint = endpoint ?? new Uri("https://management.azure.com"); + _apiVersion = apiVersion ?? "2023-11-01"; + _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); + } + + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string automationAccountName, string packageName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Automation/automationAccounts/", false); + uri.AppendPath(automationAccountName, true); + uri.AppendPath("/python3Packages/", false); + uri.AppendPath(packageName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string automationAccountName, string packageName) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Delete; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Automation/automationAccounts/", false); + uri.AppendPath(automationAccountName, true); + uri.AppendPath("/python3Packages/", false); + uri.AppendPath(packageName, true); + uri.AppendQuery("api-version", _apiVersion, true); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + _userAgent.Apply(message); + return message; + } + + /// Delete the python 3 package by name. + /// Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + /// Name of an Azure Resource group. + /// The name of the automation account. + /// The python package name. + /// The cancellation token to use. + /// , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public async Task DeleteAsync(string subscriptionId, string resourceGroupName, string automationAccountName, string packageName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(automationAccountName, nameof(automationAccountName)); + Argument.AssertNotNullOrEmpty(packageName, nameof(packageName)); + + using var message = CreateDeleteRequest(subscriptionId, resourceGroupName, automationAccountName, packageName); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + case 204: + return message.Response; + default: + throw new RequestFailedException(message.Response); + } + } + + /// Delete the python 3 package by name. + /// Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + /// Name of an Azure Resource group. + /// The name of the automation account. + /// The python package name. + /// The cancellation token to use. + /// , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public Response Delete(string subscriptionId, string resourceGroupName, string automationAccountName, string packageName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(automationAccountName, nameof(automationAccountName)); + Argument.AssertNotNullOrEmpty(packageName, nameof(packageName)); + + using var message = CreateDeleteRequest(subscriptionId, resourceGroupName, automationAccountName, packageName); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + case 204: + return message.Response; + default: + throw new RequestFailedException(message.Response); + } + } + + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string automationAccountName, string packageName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Automation/automationAccounts/", false); + uri.AppendPath(automationAccountName, true); + uri.AppendPath("/python3Packages/", false); + uri.AppendPath(packageName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string automationAccountName, string packageName) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Automation/automationAccounts/", false); + uri.AppendPath(automationAccountName, true); + uri.AppendPath("/python3Packages/", false); + uri.AppendPath(packageName, true); + uri.AppendQuery("api-version", _apiVersion, true); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + _userAgent.Apply(message); + return message; + } + + /// Retrieve the python 3 package identified by package name. + /// Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + /// Name of an Azure Resource group. + /// The name of the automation account. + /// The python package name. + /// The cancellation token to use. + /// , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public async Task> GetAsync(string subscriptionId, string resourceGroupName, string automationAccountName, string packageName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(automationAccountName, nameof(automationAccountName)); + Argument.AssertNotNullOrEmpty(packageName, nameof(packageName)); + + using var message = CreateGetRequest(subscriptionId, resourceGroupName, automationAccountName, packageName); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + AutomationModuleData value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + value = AutomationModuleData.DeserializeAutomationModuleData(document.RootElement); + return Response.FromValue(value, message.Response); + } + case 404: + return Response.FromValue((AutomationModuleData)null, message.Response); + default: + throw new RequestFailedException(message.Response); + } + } + + /// Retrieve the python 3 package identified by package name. + /// Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + /// Name of an Azure Resource group. + /// The name of the automation account. + /// The python package name. + /// The cancellation token to use. + /// , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public Response Get(string subscriptionId, string resourceGroupName, string automationAccountName, string packageName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(automationAccountName, nameof(automationAccountName)); + Argument.AssertNotNullOrEmpty(packageName, nameof(packageName)); + + using var message = CreateGetRequest(subscriptionId, resourceGroupName, automationAccountName, packageName); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + AutomationModuleData value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + value = AutomationModuleData.DeserializeAutomationModuleData(document.RootElement); + return Response.FromValue(value, message.Response); + } + case 404: + return Response.FromValue((AutomationModuleData)null, message.Response); + default: + throw new RequestFailedException(message.Response); + } + } + + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string automationAccountName, string packageName, PythonPackageCreateParameters pythonPackageCreateParameters) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Automation/automationAccounts/", false); + uri.AppendPath(automationAccountName, true); + uri.AppendPath("/python3Packages/", false); + uri.AppendPath(packageName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string automationAccountName, string packageName, PythonPackageCreateParameters pythonPackageCreateParameters) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Put; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Automation/automationAccounts/", false); + uri.AppendPath(automationAccountName, true); + uri.AppendPath("/python3Packages/", false); + uri.AppendPath(packageName, true); + uri.AppendQuery("api-version", _apiVersion, true); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + request.Headers.Add("Content-Type", "application/json"); + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(pythonPackageCreateParameters, ModelSerializationExtensions.WireOptions); + request.Content = content; + _userAgent.Apply(message); + return message; + } + + /// Create or Update the python 3 package identified by package name. + /// Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + /// Name of an Azure Resource group. + /// The name of the automation account. + /// The name of python package. + /// The create or update parameters for python package. + /// The cancellation token to use. + /// , , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public async Task> CreateOrUpdateAsync(string subscriptionId, string resourceGroupName, string automationAccountName, string packageName, PythonPackageCreateParameters pythonPackageCreateParameters, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(automationAccountName, nameof(automationAccountName)); + Argument.AssertNotNullOrEmpty(packageName, nameof(packageName)); + Argument.AssertNotNull(pythonPackageCreateParameters, nameof(pythonPackageCreateParameters)); + + using var message = CreateCreateOrUpdateRequest(subscriptionId, resourceGroupName, automationAccountName, packageName, pythonPackageCreateParameters); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + case 201: + { + AutomationModuleData value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + value = AutomationModuleData.DeserializeAutomationModuleData(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + /// Create or Update the python 3 package identified by package name. + /// Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + /// Name of an Azure Resource group. + /// The name of the automation account. + /// The name of python package. + /// The create or update parameters for python package. + /// The cancellation token to use. + /// , , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, string automationAccountName, string packageName, PythonPackageCreateParameters pythonPackageCreateParameters, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(automationAccountName, nameof(automationAccountName)); + Argument.AssertNotNullOrEmpty(packageName, nameof(packageName)); + Argument.AssertNotNull(pythonPackageCreateParameters, nameof(pythonPackageCreateParameters)); + + using var message = CreateCreateOrUpdateRequest(subscriptionId, resourceGroupName, automationAccountName, packageName, pythonPackageCreateParameters); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + case 201: + { + AutomationModuleData value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + value = AutomationModuleData.DeserializeAutomationModuleData(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string automationAccountName, string packageName, PythonPackageUpdateParameters pythonPackageUpdateParameters) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Automation/automationAccounts/", false); + uri.AppendPath(automationAccountName, true); + uri.AppendPath("/python3Packages/", false); + uri.AppendPath(packageName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string automationAccountName, string packageName, PythonPackageUpdateParameters pythonPackageUpdateParameters) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Patch; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Automation/automationAccounts/", false); + uri.AppendPath(automationAccountName, true); + uri.AppendPath("/python3Packages/", false); + uri.AppendPath(packageName, true); + uri.AppendQuery("api-version", _apiVersion, true); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + request.Headers.Add("Content-Type", "application/json"); + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(pythonPackageUpdateParameters, ModelSerializationExtensions.WireOptions); + request.Content = content; + _userAgent.Apply(message); + return message; + } + + /// Update the python 3 package identified by package name. + /// Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + /// Name of an Azure Resource group. + /// The name of the automation account. + /// The name of python package. + /// The update parameters for python package. + /// The cancellation token to use. + /// , , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public async Task> UpdateAsync(string subscriptionId, string resourceGroupName, string automationAccountName, string packageName, PythonPackageUpdateParameters pythonPackageUpdateParameters, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(automationAccountName, nameof(automationAccountName)); + Argument.AssertNotNullOrEmpty(packageName, nameof(packageName)); + Argument.AssertNotNull(pythonPackageUpdateParameters, nameof(pythonPackageUpdateParameters)); + + using var message = CreateUpdateRequest(subscriptionId, resourceGroupName, automationAccountName, packageName, pythonPackageUpdateParameters); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + AutomationModuleData value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + value = AutomationModuleData.DeserializeAutomationModuleData(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + /// Update the python 3 package identified by package name. + /// Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + /// Name of an Azure Resource group. + /// The name of the automation account. + /// The name of python package. + /// The update parameters for python package. + /// The cancellation token to use. + /// , , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public Response Update(string subscriptionId, string resourceGroupName, string automationAccountName, string packageName, PythonPackageUpdateParameters pythonPackageUpdateParameters, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(automationAccountName, nameof(automationAccountName)); + Argument.AssertNotNullOrEmpty(packageName, nameof(packageName)); + Argument.AssertNotNull(pythonPackageUpdateParameters, nameof(pythonPackageUpdateParameters)); + + using var message = CreateUpdateRequest(subscriptionId, resourceGroupName, automationAccountName, packageName, pythonPackageUpdateParameters); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + AutomationModuleData value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + value = AutomationModuleData.DeserializeAutomationModuleData(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + internal RequestUriBuilder CreateListByAutomationAccountRequestUri(string subscriptionId, string resourceGroupName, string automationAccountName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Automation/automationAccounts/", false); + uri.AppendPath(automationAccountName, true); + uri.AppendPath("/python3Packages", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + + internal HttpMessage CreateListByAutomationAccountRequest(string subscriptionId, string resourceGroupName, string automationAccountName) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Automation/automationAccounts/", false); + uri.AppendPath(automationAccountName, true); + uri.AppendPath("/python3Packages", false); + uri.AppendQuery("api-version", _apiVersion, true); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + _userAgent.Apply(message); + return message; + } + + /// Retrieve a list of python 3 packages. + /// Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + /// Name of an Azure Resource group. + /// The name of the automation account. + /// The cancellation token to use. + /// , or is null. + /// , or is an empty string, and was expected to be non-empty. + public async Task> ListByAutomationAccountAsync(string subscriptionId, string resourceGroupName, string automationAccountName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(automationAccountName, nameof(automationAccountName)); + + using var message = CreateListByAutomationAccountRequest(subscriptionId, resourceGroupName, automationAccountName); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + AutomationModuleListResult value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + value = AutomationModuleListResult.DeserializeAutomationModuleListResult(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + /// Retrieve a list of python 3 packages. + /// Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + /// Name of an Azure Resource group. + /// The name of the automation account. + /// The cancellation token to use. + /// , or is null. + /// , or is an empty string, and was expected to be non-empty. + public Response ListByAutomationAccount(string subscriptionId, string resourceGroupName, string automationAccountName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(automationAccountName, nameof(automationAccountName)); + + using var message = CreateListByAutomationAccountRequest(subscriptionId, resourceGroupName, automationAccountName); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + AutomationModuleListResult value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + value = AutomationModuleListResult.DeserializeAutomationModuleListResult(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + internal RequestUriBuilder CreateListByAutomationAccountNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string automationAccountName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + + internal HttpMessage CreateListByAutomationAccountNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string automationAccountName) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + _userAgent.Apply(message); + return message; + } + + /// Retrieve a list of python 3 packages. + /// The URL to the next page of results. + /// Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + /// Name of an Azure Resource group. + /// The name of the automation account. + /// The cancellation token to use. + /// , , or is null. + /// , or is an empty string, and was expected to be non-empty. + public async Task> ListByAutomationAccountNextPageAsync(string nextLink, string subscriptionId, string resourceGroupName, string automationAccountName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(nextLink, nameof(nextLink)); + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(automationAccountName, nameof(automationAccountName)); + + using var message = CreateListByAutomationAccountNextPageRequest(nextLink, subscriptionId, resourceGroupName, automationAccountName); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + AutomationModuleListResult value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + value = AutomationModuleListResult.DeserializeAutomationModuleListResult(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + /// Retrieve a list of python 3 packages. + /// The URL to the next page of results. + /// Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + /// Name of an Azure Resource group. + /// The name of the automation account. + /// The cancellation token to use. + /// , , or is null. + /// , or is an empty string, and was expected to be non-empty. + public Response ListByAutomationAccountNextPage(string nextLink, string subscriptionId, string resourceGroupName, string automationAccountName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(nextLink, nameof(nextLink)); + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(automationAccountName, nameof(automationAccountName)); + + using var message = CreateListByAutomationAccountNextPageRequest(nextLink, subscriptionId, resourceGroupName, automationAccountName); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + AutomationModuleListResult value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + value = AutomationModuleListResult.DeserializeAutomationModuleListResult(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + } +} diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/RunbookDraftRestOperations.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/RunbookDraftRestOperations.cs index 503c8d7cfcc1..37cb81f46754 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/RunbookDraftRestOperations.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/RunbookDraftRestOperations.cs @@ -33,7 +33,7 @@ public RunbookDraftRestOperations(HttpPipeline pipeline, string applicationId, U { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2018-06-30"; + _apiVersion = apiVersion ?? "2023-11-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } @@ -159,7 +159,7 @@ internal RequestUriBuilder CreateReplaceContentRequestUri(string subscriptionId, /// Name of an Azure Resource group. /// The name of the automation account. /// The runbook name. - /// The runbook draft content. + /// The runbook draft content. /// The cancellation token to use. /// , , , or is null. /// , , or is an empty string, and was expected to be non-empty. @@ -188,7 +188,7 @@ public async Task ReplaceContentAsync(string subscriptionId, string re /// Name of an Azure Resource group. /// The name of the automation account. /// The runbook name. - /// The runbook draft content. + /// The runbook draft content. /// The cancellation token to use. /// , , , or is null. /// , , or is an empty string, and was expected to be non-empty. diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/RunbookRestOperations.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/RunbookRestOperations.cs index 033b7800786d..29053f836735 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/RunbookRestOperations.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/RunbookRestOperations.cs @@ -33,7 +33,7 @@ public RunbookRestOperations(HttpPipeline pipeline, string applicationId, Uri en { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2018-06-30"; + _apiVersion = apiVersion ?? "2023-11-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/ScheduleRestOperations.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/ScheduleRestOperations.cs index 490029886c46..a70e74c411d6 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/ScheduleRestOperations.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/ScheduleRestOperations.cs @@ -32,7 +32,7 @@ public ScheduleRestOperations(HttpPipeline pipeline, string applicationId, Uri e { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2020-01-13-preview"; + _apiVersion = apiVersion ?? "2023-11-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/SoftwareUpdateConfigurationMachineRunsRestOperations.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/SoftwareUpdateConfigurationMachineRunsRestOperations.cs index f12c55fa6986..db645f249b26 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/SoftwareUpdateConfigurationMachineRunsRestOperations.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/SoftwareUpdateConfigurationMachineRunsRestOperations.cs @@ -32,7 +32,7 @@ public SoftwareUpdateConfigurationMachineRunsRestOperations(HttpPipeline pipelin { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2019-06-01"; + _apiVersion = apiVersion ?? "2023-11-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/SoftwareUpdateConfigurationRunsRestOperations.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/SoftwareUpdateConfigurationRunsRestOperations.cs index 28f03d119237..57016f58b0ff 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/SoftwareUpdateConfigurationRunsRestOperations.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/SoftwareUpdateConfigurationRunsRestOperations.cs @@ -32,7 +32,7 @@ public SoftwareUpdateConfigurationRunsRestOperations(HttpPipeline pipeline, stri { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2019-06-01"; + _apiVersion = apiVersion ?? "2023-11-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/SourceControlRestOperations.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/SourceControlRestOperations.cs index 6814af40309f..7b3107249ea2 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/SourceControlRestOperations.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/SourceControlRestOperations.cs @@ -32,7 +32,7 @@ public SourceControlRestOperations(HttpPipeline pipeline, string applicationId, { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2020-01-13-preview"; + _apiVersion = apiVersion ?? "2023-11-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/SourceControlSyncJobRestOperations.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/SourceControlSyncJobRestOperations.cs index 05ddaf296328..a467ac5d32dd 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/SourceControlSyncJobRestOperations.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/SourceControlSyncJobRestOperations.cs @@ -32,7 +32,7 @@ public SourceControlSyncJobRestOperations(HttpPipeline pipeline, string applicat { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2020-01-13-preview"; + _apiVersion = apiVersion ?? "2023-11-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/SourceControlSyncJobStreamsRestOperations.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/SourceControlSyncJobStreamsRestOperations.cs index 6e8850a877ee..37be456735ec 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/SourceControlSyncJobStreamsRestOperations.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/SourceControlSyncJobStreamsRestOperations.cs @@ -32,7 +32,7 @@ public SourceControlSyncJobStreamsRestOperations(HttpPipeline pipeline, string a { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2020-01-13-preview"; + _apiVersion = apiVersion ?? "2023-11-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/StatisticsRestOperations.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/StatisticsRestOperations.cs index 7be0c1a1357c..3cd14ad2fd82 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/StatisticsRestOperations.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/StatisticsRestOperations.cs @@ -32,7 +32,7 @@ public StatisticsRestOperations(HttpPipeline pipeline, string applicationId, Uri { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2021-06-22"; + _apiVersion = apiVersion ?? "2023-11-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/TestJobRestOperations.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/TestJobRestOperations.cs index cbf2434f643e..11941f32d3de 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/TestJobRestOperations.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/TestJobRestOperations.cs @@ -32,7 +32,7 @@ public TestJobRestOperations(HttpPipeline pipeline, string applicationId, Uri en { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2018-06-30"; + _apiVersion = apiVersion ?? "2023-11-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/TestJobStreamsRestOperations.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/TestJobStreamsRestOperations.cs index 3dc11361175c..e689004f8e51 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/TestJobStreamsRestOperations.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/TestJobStreamsRestOperations.cs @@ -32,7 +32,7 @@ public TestJobStreamsRestOperations(HttpPipeline pipeline, string applicationId, { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2018-06-30"; + _apiVersion = apiVersion ?? "2023-11-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/UsagesRestOperations.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/UsagesRestOperations.cs index c236215170cd..f7897acf4d4a 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/UsagesRestOperations.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/UsagesRestOperations.cs @@ -32,7 +32,7 @@ public UsagesRestOperations(HttpPipeline pipeline, string applicationId, Uri end { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2021-06-22"; + _apiVersion = apiVersion ?? "2023-11-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/VariableRestOperations.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/VariableRestOperations.cs index 1f8b04b0869c..5f0f25ff13d6 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/VariableRestOperations.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/VariableRestOperations.cs @@ -32,7 +32,7 @@ public VariableRestOperations(HttpPipeline pipeline, string applicationId, Uri e { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2020-01-13-preview"; + _apiVersion = apiVersion ?? "2023-11-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/autorest.md b/sdk/automation/Azure.ResourceManager.Automation/src/autorest.md index b8562411fbf5..401eb5633f55 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/autorest.md +++ b/sdk/automation/Azure.ResourceManager.Automation/src/autorest.md @@ -8,7 +8,7 @@ azure-arm: true csharp: true library-name: Automation namespace: Azure.ResourceManager.Automation -require: https://github.com/Azure/azure-rest-api-specs/blob/d1b0569d8adbd342a1111d6a69764d099f5f717c/specification/automation/resource-manager/readme.md +require: /mnt/vss/_work/1/s/azure-rest-api-specs/specification/automation/resource-manager/readme.md output-folder: $(this-folder)/Generated clear-output-folder: true sample-gen: diff --git a/sdk/automation/ci.mgmt.yml b/sdk/automation/ci.mgmt.yml index 45bec5d1c196..b2cb0f44bf22 100644 --- a/sdk/automation/ci.mgmt.yml +++ b/sdk/automation/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/automation/ci.mgmt.yml - sdk/automation/Azure.ResourceManager.Automation/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/automation/ci.mgmt.yml + - sdk/automation/Azure.ResourceManager.Automation/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/avs/ci.mgmt.yml b/sdk/avs/ci.mgmt.yml index 6404a2ba34ce..7030303dc9f4 100644 --- a/sdk/avs/ci.mgmt.yml +++ b/sdk/avs/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/avs/ci.mgmt.yml - sdk/avs/Azure.ResourceManager.Avs/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/avs/ci.mgmt.yml + - sdk/avs/Azure.ResourceManager.Avs/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/azurelargeinstance/ci.mgmt.yml b/sdk/azurelargeinstance/ci.mgmt.yml index fbe98927ef15..d9425419d2c3 100644 --- a/sdk/azurelargeinstance/ci.mgmt.yml +++ b/sdk/azurelargeinstance/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/azurelargeinstance/ci.mgmt.yml - sdk/azurelargeinstance/Azure.ResourceManager.LargeInstance/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/azurelargeinstance/ci.mgmt.yml + - sdk/azurelargeinstance/Azure.ResourceManager.LargeInstance/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/azurestackhci/ci.mgmt.yml b/sdk/azurestackhci/ci.mgmt.yml index 89c22080e00c..167241c22e36 100644 --- a/sdk/azurestackhci/ci.mgmt.yml +++ b/sdk/azurestackhci/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/azurestackhci/ci.mgmt.yml - sdk/azurestackhci/Azure.ResourceManager.Hci/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/azurestackhci/ci.mgmt.yml + - sdk/azurestackhci/Azure.ResourceManager.Hci/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/batch/ci.mgmt.yml b/sdk/batch/ci.mgmt.yml index fdb37873525c..57a9135b3c71 100644 --- a/sdk/batch/ci.mgmt.yml +++ b/sdk/batch/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/batch/ci.mgmt.yml - sdk/batch/Azure.ResourceManager.Batch/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/batch/ci.mgmt.yml + - sdk/batch/Azure.ResourceManager.Batch/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/billing/ci.mgmt.yml b/sdk/billing/ci.mgmt.yml index 67cf904850c6..0efcab4a9c90 100644 --- a/sdk/billing/ci.mgmt.yml +++ b/sdk/billing/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/billing/ci.mgmt.yml - sdk/billing/Azure.ResourceManager.Billing/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/billing/ci.mgmt.yml + - sdk/billing/Azure.ResourceManager.Billing/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/billingbenefits/ci.mgmt.yml b/sdk/billingbenefits/ci.mgmt.yml index 9900a842be4f..d2d1e939d8cd 100644 --- a/sdk/billingbenefits/ci.mgmt.yml +++ b/sdk/billingbenefits/ci.mgmt.yml @@ -2,6 +2,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -14,6 +15,18 @@ pr: - sdk/billingbenefits/ci.mgmt.yml - sdk/billingbenefits/Azure.ResourceManager.BillingBenefits/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/billingbenefits/ci.mgmt.yml + - sdk/billingbenefits/Azure.ResourceManager.BillingBenefits/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/blueprint/ci.mgmt.yml b/sdk/blueprint/ci.mgmt.yml index 65bd23b77f51..6524937da4ee 100644 --- a/sdk/blueprint/ci.mgmt.yml +++ b/sdk/blueprint/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/blueprint/ci.mgmt.yml - sdk/blueprint/Azure.ResourceManager.Blueprint/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/blueprint/ci.mgmt.yml + - sdk/blueprint/Azure.ResourceManager.Blueprint/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/botservice/ci.mgmt.yml b/sdk/botservice/ci.mgmt.yml index 8e5444ff3f9a..3e991a6ebab1 100644 --- a/sdk/botservice/ci.mgmt.yml +++ b/sdk/botservice/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/botservice/ci.mgmt.yml - sdk/botservice/Azure.ResourceManager.BotService/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/botservice/ci.mgmt.yml + - sdk/botservice/Azure.ResourceManager.BotService/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/cdn/ci.mgmt.yml b/sdk/cdn/ci.mgmt.yml index ac2ea82249d1..f1932c6d31b9 100644 --- a/sdk/cdn/ci.mgmt.yml +++ b/sdk/cdn/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/cdn/ci.mgmt.yml - sdk/cdn/Azure.ResourceManager.Cdn/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/cdn/ci.mgmt.yml + - sdk/cdn/Azure.ResourceManager.Cdn/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/changeanalysis/ci.mgmt.yml b/sdk/changeanalysis/ci.mgmt.yml index 65c6e90d195a..aee7612c339f 100644 --- a/sdk/changeanalysis/ci.mgmt.yml +++ b/sdk/changeanalysis/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/changeanalysis/ci.mgmt.yml - sdk/changeanalysis/Azure.ResourceManager.ChangeAnalysis/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/changeanalysis/ci.mgmt.yml + - sdk/changeanalysis/Azure.ResourceManager.ChangeAnalysis/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/chaos/ci.mgmt.yml b/sdk/chaos/ci.mgmt.yml index 585591bcb6bd..a74922d27932 100644 --- a/sdk/chaos/ci.mgmt.yml +++ b/sdk/chaos/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/chaos/ci.mgmt.yml - sdk/chaos/Azure.ResourceManager.Chaos/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/chaos/ci.mgmt.yml + - sdk/chaos/Azure.ResourceManager.Chaos/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/cognitiveservices/ci.mgmt.yml b/sdk/cognitiveservices/ci.mgmt.yml index ddeb32b868ce..79dda70912e2 100644 --- a/sdk/cognitiveservices/ci.mgmt.yml +++ b/sdk/cognitiveservices/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/cognitiveservices/ci.mgmt.yml - sdk/cognitiveservices/Azure.ResourceManager.CognitiveServices/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/cognitiveservices/ci.mgmt.yml + - sdk/cognitiveservices/Azure.ResourceManager.CognitiveServices/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/communication/ci.mgmt.yml b/sdk/communication/ci.mgmt.yml index 8fc73e107745..be0c8b4b5903 100644 --- a/sdk/communication/ci.mgmt.yml +++ b/sdk/communication/ci.mgmt.yml @@ -1,5 +1,6 @@ trigger: none + pr: branches: include: @@ -12,6 +13,18 @@ pr: - sdk/communication/ci.mgmt.yml - sdk/communication/Azure.ResourceManager.Communication/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/communication/ci.mgmt.yml + - sdk/communication/Azure.ResourceManager.Communication/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/compute/ci.mgmt.yml b/sdk/compute/ci.mgmt.yml index d9520f58d12c..9736fea82d63 100644 --- a/sdk/compute/ci.mgmt.yml +++ b/sdk/compute/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/compute/ci.mgmt.yml - sdk/compute/Azure.ResourceManager.Compute/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/compute/ci.mgmt.yml + - sdk/compute/Azure.ResourceManager.Compute/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/computefleet/ci.mgmt.yml b/sdk/computefleet/ci.mgmt.yml index de169e18c599..58fc15347c98 100644 --- a/sdk/computefleet/ci.mgmt.yml +++ b/sdk/computefleet/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/computefleet/ci.mgmt.yml - sdk/computefleet/Azure.ResourceManager.ComputeFleet/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/computefleet/ci.mgmt.yml + - sdk/computefleet/Azure.ResourceManager.ComputeFleet/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/computeschedule/ci.mgmt.yml b/sdk/computeschedule/ci.mgmt.yml index d3a367f82551..01d026ef37ea 100644 --- a/sdk/computeschedule/ci.mgmt.yml +++ b/sdk/computeschedule/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/computeschedule/ci.mgmt.yml - sdk/computeschedule/Azure.ResourceManager.ComputeSchedule/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/computeschedule/ci.mgmt.yml + - sdk/computeschedule/Azure.ResourceManager.ComputeSchedule/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/confidentialledger/ci.mgmt.yml b/sdk/confidentialledger/ci.mgmt.yml index 7343d843f2ee..b61c498ed14a 100644 --- a/sdk/confidentialledger/ci.mgmt.yml +++ b/sdk/confidentialledger/ci.mgmt.yml @@ -1,5 +1,6 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -12,6 +13,18 @@ pr: - sdk/confidentialledger/ci.mgmt.yml - sdk/confidentialledger/Azure.ResourceManager.ConfidentialLedger/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/confidentialledger/ci.mgmt.yml + - sdk/confidentialledger/Azure.ResourceManager.ConfidentialLedger/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/confluent/ci.mgmt.yml b/sdk/confluent/ci.mgmt.yml index 12d37aa41bd2..757508d306f9 100644 --- a/sdk/confluent/ci.mgmt.yml +++ b/sdk/confluent/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/confluent/ci.mgmt.yml - sdk/confluent/Azure.ResourceManager.Confluent/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/confluent/ci.mgmt.yml + - sdk/confluent/Azure.ResourceManager.Confluent/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/connectedvmwarevsphere/ci.mgmt.yml b/sdk/connectedvmwarevsphere/ci.mgmt.yml index a9d0db85cf82..f8990a206c45 100644 --- a/sdk/connectedvmwarevsphere/ci.mgmt.yml +++ b/sdk/connectedvmwarevsphere/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/connectedvmwarevsphere/ci.mgmt.yml - sdk/connectedvmwarevsphere/Azure.ResourceManager.ConnectedVMwarevSphere/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/connectedvmwarevsphere/ci.mgmt.yml + - sdk/connectedvmwarevsphere/Azure.ResourceManager.ConnectedVMwarevSphere/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/consumption/ci.mgmt.yml b/sdk/consumption/ci.mgmt.yml index 6b0ebe2b2fa7..ccda85ce5789 100644 --- a/sdk/consumption/ci.mgmt.yml +++ b/sdk/consumption/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/consumption/ci.mgmt.yml - sdk/consumption/Azure.ResourceManager.Consumption/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/consumption/ci.mgmt.yml + - sdk/consumption/Azure.ResourceManager.Consumption/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/containerapps/ci.mgmt.yml b/sdk/containerapps/ci.mgmt.yml index 7715d499fa59..69564e2f1920 100644 --- a/sdk/containerapps/ci.mgmt.yml +++ b/sdk/containerapps/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/containerapps/ci.mgmt.yml - sdk/containerapps/Azure.ResourceManager.AppContainers/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/containerapps/ci.mgmt.yml + - sdk/containerapps/Azure.ResourceManager.AppContainers/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/containerinstance/ci.mgmt.yml b/sdk/containerinstance/ci.mgmt.yml index 0b4d90bf6d1c..865705313c2c 100644 --- a/sdk/containerinstance/ci.mgmt.yml +++ b/sdk/containerinstance/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/containerinstance/ci.mgmt.yml - sdk/containerinstance/Azure.ResourceManager.ContainerInstance/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/containerinstance/ci.mgmt.yml + - sdk/containerinstance/Azure.ResourceManager.ContainerInstance/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/containerorchestratorruntime/ci.mgmt.yml b/sdk/containerorchestratorruntime/ci.mgmt.yml index 0a036386143b..98ade1bcf8c6 100644 --- a/sdk/containerorchestratorruntime/ci.mgmt.yml +++ b/sdk/containerorchestratorruntime/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/containerorchestratorruntime/ci.mgmt.yml - sdk/containerorchestratorruntime/Azure.ResourceManager.ContainerOrchestratorRuntime/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/containerorchestratorruntime/ci.mgmt.yml + - sdk/containerorchestratorruntime/Azure.ResourceManager.ContainerOrchestratorRuntime/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/containerregistry/ci.mgmt.yml b/sdk/containerregistry/ci.mgmt.yml index e3f0cfb5bfa5..5fa9fce02790 100644 --- a/sdk/containerregistry/ci.mgmt.yml +++ b/sdk/containerregistry/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/containerregistry/ci.mgmt.yml - sdk/containerregistry/Azure.ResourceManager.ContainerRegistry/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/containerregistry/ci.mgmt.yml + - sdk/containerregistry/Azure.ResourceManager.ContainerRegistry/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/containerservice/ci.mgmt.yml b/sdk/containerservice/ci.mgmt.yml index 9eb58047b02e..8eb615e701f7 100644 --- a/sdk/containerservice/ci.mgmt.yml +++ b/sdk/containerservice/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/containerservice/ci.mgmt.yml - sdk/containerservice/Azure.ResourceManager.ContainerService/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/containerservice/ci.mgmt.yml + - sdk/containerservice/Azure.ResourceManager.ContainerService/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/cosmosdb/ci.mgmt.yml b/sdk/cosmosdb/ci.mgmt.yml index 1eab24b3bbf9..ac1fce954c2a 100644 --- a/sdk/cosmosdb/ci.mgmt.yml +++ b/sdk/cosmosdb/ci.mgmt.yml @@ -2,6 +2,7 @@ # This file is generated automatically and any changes will be lost. trigger: none + pr: branches: include: @@ -14,6 +15,18 @@ pr: - sdk/cosmosdb/ci.mgmt.yml - sdk/cosmosdb/Azure.ResourceManager.CosmosDB/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/cosmosdb/ci.mgmt.yml + - sdk/cosmosdb/Azure.ResourceManager.CosmosDB/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/cosmosdbforpostgresql/ci.mgmt.yml b/sdk/cosmosdbforpostgresql/ci.mgmt.yml index ef6098c3999f..bfe2761181a8 100644 --- a/sdk/cosmosdbforpostgresql/ci.mgmt.yml +++ b/sdk/cosmosdbforpostgresql/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/cosmosdbforpostgresql/ci.mgmt.yml - sdk/cosmosdbforpostgresql/Azure.ResourceManager.CosmosDBForPostgreSql/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/cosmosdbforpostgresql/ci.mgmt.yml + - sdk/cosmosdbforpostgresql/Azure.ResourceManager.CosmosDBForPostgreSql/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/costmanagement/ci.mgmt.yml b/sdk/costmanagement/ci.mgmt.yml index e59280ba6be2..cee9459831fb 100644 --- a/sdk/costmanagement/ci.mgmt.yml +++ b/sdk/costmanagement/ci.mgmt.yml @@ -2,6 +2,7 @@ # This file is generated automatically and any changes will be lost. trigger: none + pr: branches: include: @@ -14,6 +15,18 @@ pr: - sdk/costmanagement/ci.mgmt.yml - sdk/costmanagement/Azure.ResourceManager.CostManagement/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/costmanagement/ci.mgmt.yml + - sdk/costmanagement/Azure.ResourceManager.CostManagement/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/customer-insights/ci.mgmt.yml b/sdk/customer-insights/ci.mgmt.yml index 124af418dcfa..a5d4f1a60cb5 100644 --- a/sdk/customer-insights/ci.mgmt.yml +++ b/sdk/customer-insights/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/customer-insights/ci.mgmt.yml - sdk/customer-insights/Azure.ResourceManager.CustomerInsights/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/customer-insights/ci.mgmt.yml + - sdk/customer-insights/Azure.ResourceManager.CustomerInsights/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/databox/ci.mgmt.yml b/sdk/databox/ci.mgmt.yml index edd63a701700..6525b0b436cc 100644 --- a/sdk/databox/ci.mgmt.yml +++ b/sdk/databox/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/databox/ci.mgmt.yml - sdk/databox/Azure.ResourceManager.DataBox/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/databox/ci.mgmt.yml + - sdk/databox/Azure.ResourceManager.DataBox/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/databoxedge/ci.mgmt.yml b/sdk/databoxedge/ci.mgmt.yml index 29e3b1537c78..3cf952bd82f3 100644 --- a/sdk/databoxedge/ci.mgmt.yml +++ b/sdk/databoxedge/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/databoxedge/ci.mgmt.yml - sdk/databoxedge/Azure.ResourceManager.DataBoxEdge/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/databoxedge/ci.mgmt.yml + - sdk/databoxedge/Azure.ResourceManager.DataBoxEdge/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/datadog/ci.mgmt.yml b/sdk/datadog/ci.mgmt.yml index 9e9d6825d8b0..c1b66f6edb09 100644 --- a/sdk/datadog/ci.mgmt.yml +++ b/sdk/datadog/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/datadog/ci.mgmt.yml - sdk/datadog/Azure.ResourceManager.Datadog/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/datadog/ci.mgmt.yml + - sdk/datadog/Azure.ResourceManager.Datadog/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/datafactory/ci.mgmt.yml b/sdk/datafactory/ci.mgmt.yml index 85d246a5d4e7..1f1a4ba295cd 100644 --- a/sdk/datafactory/ci.mgmt.yml +++ b/sdk/datafactory/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/datafactory/ci.mgmt.yml - sdk/datafactory/Azure.ResourceManager.DataFactory/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/datafactory/ci.mgmt.yml + - sdk/datafactory/Azure.ResourceManager.DataFactory/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/datalake-analytics/ci.mgmt.yml b/sdk/datalake-analytics/ci.mgmt.yml index b8794cd18f9e..44823b2f9444 100644 --- a/sdk/datalake-analytics/ci.mgmt.yml +++ b/sdk/datalake-analytics/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/datalake-analytics/ci.mgmt.yml - sdk/datalake-analytics/Azure.ResourceManager.DataLakeAnalytics/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/datalake-analytics/ci.mgmt.yml + - sdk/datalake-analytics/Azure.ResourceManager.DataLakeAnalytics/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/datalake-store/ci.mgmt.yml b/sdk/datalake-store/ci.mgmt.yml index 469839fd3024..27295ad1c28c 100644 --- a/sdk/datalake-store/ci.mgmt.yml +++ b/sdk/datalake-store/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/datalake-store/ci.mgmt.yml - sdk/datalake-store/Azure.ResourceManager.DataLakeStore/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/datalake-store/ci.mgmt.yml + - sdk/datalake-store/Azure.ResourceManager.DataLakeStore/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/datamigration/ci.mgmt.yml b/sdk/datamigration/ci.mgmt.yml index 1e64024fed17..f26452e1de48 100644 --- a/sdk/datamigration/ci.mgmt.yml +++ b/sdk/datamigration/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/datamigration/ci.mgmt.yml - sdk/datamigration/Azure.ResourceManager.DataMigration/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/datamigration/ci.mgmt.yml + - sdk/datamigration/Azure.ResourceManager.DataMigration/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/dataprotection/ci.mgmt.yml b/sdk/dataprotection/ci.mgmt.yml index 25637090aedb..0b74e9436cc7 100644 --- a/sdk/dataprotection/ci.mgmt.yml +++ b/sdk/dataprotection/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/dataprotection/ci.mgmt.yml - sdk/dataprotection/Azure.ResourceManager.DataProtectionBackup/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/dataprotection/ci.mgmt.yml + - sdk/dataprotection/Azure.ResourceManager.DataProtectionBackup/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/datashare/ci.mgmt.yml b/sdk/datashare/ci.mgmt.yml index f6dd41e0f37f..dcb3801e3f58 100644 --- a/sdk/datashare/ci.mgmt.yml +++ b/sdk/datashare/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/datashare/ci.mgmt.yml - sdk/datashare/Azure.ResourceManager.DataShare/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/datashare/ci.mgmt.yml + - sdk/datashare/Azure.ResourceManager.DataShare/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/defendereasm/ci.mgmt.yml b/sdk/defendereasm/ci.mgmt.yml index dd90e5a46690..2dc5c04ec007 100644 --- a/sdk/defendereasm/ci.mgmt.yml +++ b/sdk/defendereasm/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/defendereasm/ci.mgmt.yml - sdk/defendereasm/Azure.ResourceManager.DefenderEasm/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/defendereasm/ci.mgmt.yml + - sdk/defendereasm/Azure.ResourceManager.DefenderEasm/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/desktopvirtualization/ci.mgmt.yml b/sdk/desktopvirtualization/ci.mgmt.yml index 3d6f40025c77..b6af32cc15c3 100644 --- a/sdk/desktopvirtualization/ci.mgmt.yml +++ b/sdk/desktopvirtualization/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/desktopvirtualization/ci.mgmt.yml - sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/desktopvirtualization/ci.mgmt.yml + - sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/devcenter/ci.mgmt.yml b/sdk/devcenter/ci.mgmt.yml index 136d77bbba6d..cfa8320239dd 100644 --- a/sdk/devcenter/ci.mgmt.yml +++ b/sdk/devcenter/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/devcenter/ci.mgmt.yml - sdk/devcenter/Azure.ResourceManager.DevCenter/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/devcenter/ci.mgmt.yml + - sdk/devcenter/Azure.ResourceManager.DevCenter/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/deviceprovisioningservices/ci.mgmt.yml b/sdk/deviceprovisioningservices/ci.mgmt.yml index f9c94973a324..733989d927dc 100644 --- a/sdk/deviceprovisioningservices/ci.mgmt.yml +++ b/sdk/deviceprovisioningservices/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/deviceprovisioningservices/ci.mgmt.yml - sdk/deviceprovisioningservices/Azure.ResourceManager.DeviceProvisioningServices/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/deviceprovisioningservices/ci.mgmt.yml + - sdk/deviceprovisioningservices/Azure.ResourceManager.DeviceProvisioningServices/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/deviceregistry/ci.mgmt.yml b/sdk/deviceregistry/ci.mgmt.yml index 05fffe301114..271e718d8676 100644 --- a/sdk/deviceregistry/ci.mgmt.yml +++ b/sdk/deviceregistry/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/deviceregistry/ci.mgmt.yml - sdk/deviceregistry/Azure.ResourceManager.DeviceRegistry/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/deviceregistry/ci.mgmt.yml + - sdk/deviceregistry/Azure.ResourceManager.DeviceRegistry/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/deviceupdate/ci.mgmt.yml b/sdk/deviceupdate/ci.mgmt.yml index c1315e462bb9..d8abd00a2256 100644 --- a/sdk/deviceupdate/ci.mgmt.yml +++ b/sdk/deviceupdate/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/deviceupdate/ci.mgmt.yml - sdk/deviceupdate/Azure.ResourceManager.DeviceUpdate/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/deviceupdate/ci.mgmt.yml + - sdk/deviceupdate/Azure.ResourceManager.DeviceUpdate/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/devopsinfrastructure/ci.mgmt.yml b/sdk/devopsinfrastructure/ci.mgmt.yml index 0f2db1225cf0..8e463b9f3794 100644 --- a/sdk/devopsinfrastructure/ci.mgmt.yml +++ b/sdk/devopsinfrastructure/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/devopsinfrastructure/ci.mgmt.yml - sdk/devopsinfrastructure/Azure.ResourceManager.DevOpsInfrastructure/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/devopsinfrastructure/ci.mgmt.yml + - sdk/devopsinfrastructure/Azure.ResourceManager.DevOpsInfrastructure/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/devspaces/ci.mgmt.yml b/sdk/devspaces/ci.mgmt.yml index b63234a64555..248d3c3143f0 100644 --- a/sdk/devspaces/ci.mgmt.yml +++ b/sdk/devspaces/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/devspaces/ci.mgmt.yml - sdk/devspaces/Azure.ResourceManager.DevSpaces/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/devspaces/ci.mgmt.yml + - sdk/devspaces/Azure.ResourceManager.DevSpaces/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/devtestlabs/ci.mgmt.yml b/sdk/devtestlabs/ci.mgmt.yml index 1946409a6b75..7ee994de378b 100644 --- a/sdk/devtestlabs/ci.mgmt.yml +++ b/sdk/devtestlabs/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/devtestlabs/ci.mgmt.yml - sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/devtestlabs/ci.mgmt.yml + - sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/digitaltwins/ci.mgmt.yml b/sdk/digitaltwins/ci.mgmt.yml index a0e8233a36cf..a8766e215b7c 100644 --- a/sdk/digitaltwins/ci.mgmt.yml +++ b/sdk/digitaltwins/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/digitaltwins/ci.mgmt.yml - sdk/digitaltwins/Azure.ResourceManager.DigitalTwins/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/digitaltwins/ci.mgmt.yml + - sdk/digitaltwins/Azure.ResourceManager.DigitalTwins/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/dns/ci.mgmt.yml b/sdk/dns/ci.mgmt.yml index 8357809b4e6f..ec6edfb21775 100644 --- a/sdk/dns/ci.mgmt.yml +++ b/sdk/dns/ci.mgmt.yml @@ -2,6 +2,7 @@ # This file is generated automatically and any changes will be lost. trigger: none + pr: branches: include: @@ -14,6 +15,18 @@ pr: - sdk/dns/ci.mgmt.yml - sdk/dns/Azure.ResourceManager.Dns/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/dns/ci.mgmt.yml + - sdk/dns/Azure.ResourceManager.Dns/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/dnsresolver/ci.mgmt.yml b/sdk/dnsresolver/ci.mgmt.yml index afa270cdc600..6b2569c11c49 100644 --- a/sdk/dnsresolver/ci.mgmt.yml +++ b/sdk/dnsresolver/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/dnsresolver/ci.mgmt.yml - sdk/dnsresolver/Azure.ResourceManager.DnsResolver/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/dnsresolver/ci.mgmt.yml + - sdk/dnsresolver/Azure.ResourceManager.DnsResolver/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/dynatrace/ci.mgmt.yml b/sdk/dynatrace/ci.mgmt.yml index f76bf3a316af..fe97a3c1f612 100644 --- a/sdk/dynatrace/ci.mgmt.yml +++ b/sdk/dynatrace/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/dynatrace/ci.mgmt.yml - sdk/dynatrace/Azure.ResourceManager.Dynatrace/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/dynatrace/ci.mgmt.yml + - sdk/dynatrace/Azure.ResourceManager.Dynatrace/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/edgeorder/ci.mgmt.yml b/sdk/edgeorder/ci.mgmt.yml index 4d1fbaa121f9..cb4d87c29a1b 100644 --- a/sdk/edgeorder/ci.mgmt.yml +++ b/sdk/edgeorder/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/edgeorder/ci.mgmt.yml - sdk/edgeorder/Azure.ResourceManager.EdgeOrder/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/edgeorder/ci.mgmt.yml + - sdk/edgeorder/Azure.ResourceManager.EdgeOrder/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/edgezones/ci.mgmt.yml b/sdk/edgezones/ci.mgmt.yml index 9dc8d79aab30..ebed00842581 100644 --- a/sdk/edgezones/ci.mgmt.yml +++ b/sdk/edgezones/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/edgezones/ci.mgmt.yml - sdk/edgezones/Azure.ResourceManager.EdgeZones/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/edgezones/ci.mgmt.yml + - sdk/edgezones/Azure.ResourceManager.EdgeZones/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/elastic/ci.mgmt.yml b/sdk/elastic/ci.mgmt.yml index 76ecd8b3923d..2e29070fce4a 100644 --- a/sdk/elastic/ci.mgmt.yml +++ b/sdk/elastic/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/elastic/ci.mgmt.yml - sdk/elastic/Azure.ResourceManager.Elastic/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/elastic/ci.mgmt.yml + - sdk/elastic/Azure.ResourceManager.Elastic/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/elasticsan/ci.mgmt.yml b/sdk/elasticsan/ci.mgmt.yml index 7e2bb35dde21..dba4416415e9 100644 --- a/sdk/elasticsan/ci.mgmt.yml +++ b/sdk/elasticsan/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/elasticsan/ci.mgmt.yml - sdk/elasticsan/Azure.ResourceManager.ElasticSan/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/elasticsan/ci.mgmt.yml + - sdk/elasticsan/Azure.ResourceManager.ElasticSan/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/eventgrid/ci.mgmt.yml b/sdk/eventgrid/ci.mgmt.yml index cb02a1b84e8b..1b2eaffc0fdd 100644 --- a/sdk/eventgrid/ci.mgmt.yml +++ b/sdk/eventgrid/ci.mgmt.yml @@ -2,6 +2,7 @@ # This is for Track 2 managment plane SDK trigger: none + pr: branches: include: @@ -14,6 +15,18 @@ pr: - sdk/eventgrid/ci.mgmt.yml - sdk/eventgrid/Azure.ResourceManager.EventGrid/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/eventgrid/ci.mgmt.yml + - sdk/eventgrid/Azure.ResourceManager.EventGrid/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/eventhub/ci.mgmt.yml b/sdk/eventhub/ci.mgmt.yml index b7c0045fffb3..dadda2db6dc5 100644 --- a/sdk/eventhub/ci.mgmt.yml +++ b/sdk/eventhub/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/eventhub/ci.mgmt.yml - sdk/eventhub/Azure.ResourceManager.EventHubs/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/eventhub/ci.mgmt.yml + - sdk/eventhub/Azure.ResourceManager.EventHubs/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/extendedlocation/ci.mgmt.yml b/sdk/extendedlocation/ci.mgmt.yml index 4fb53374be74..e9c6939e2b1d 100644 --- a/sdk/extendedlocation/ci.mgmt.yml +++ b/sdk/extendedlocation/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/extendedlocation/ci.mgmt.yml - sdk/extendedlocation/Azure.ResourceManager.ExtendedLocations/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/extendedlocation/ci.mgmt.yml + - sdk/extendedlocation/Azure.ResourceManager.ExtendedLocations/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/fabric/ci.mgmt.yml b/sdk/fabric/ci.mgmt.yml index d0bc6cea6eb9..5cc91d0c8722 100644 --- a/sdk/fabric/ci.mgmt.yml +++ b/sdk/fabric/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/fabric/ci.mgmt.yml - sdk/fabric/Azure.ResourceManager.Fabric/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/fabric/ci.mgmt.yml + - sdk/fabric/Azure.ResourceManager.Fabric/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/fleet/ci.mgmt.yml b/sdk/fleet/ci.mgmt.yml index 09a225882401..469d40cad619 100644 --- a/sdk/fleet/ci.mgmt.yml +++ b/sdk/fleet/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/fleet/ci.mgmt.yml - sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/fleet/ci.mgmt.yml + - sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/fluidrelay/ci.mgmt.yml b/sdk/fluidrelay/ci.mgmt.yml index d43dfe94d729..1673db3a9f26 100644 --- a/sdk/fluidrelay/ci.mgmt.yml +++ b/sdk/fluidrelay/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/fluidrelay/ci.mgmt.yml - sdk/fluidrelay/Azure.ResourceManager.FluidRelay/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/fluidrelay/ci.mgmt.yml + - sdk/fluidrelay/Azure.ResourceManager.FluidRelay/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/frontdoor/ci.mgmt.yml b/sdk/frontdoor/ci.mgmt.yml index bff9dbcae78c..f19923a1b43d 100644 --- a/sdk/frontdoor/ci.mgmt.yml +++ b/sdk/frontdoor/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/frontdoor/ci.mgmt.yml - sdk/frontdoor/Azure.ResourceManager.FrontDoor/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/frontdoor/ci.mgmt.yml + - sdk/frontdoor/Azure.ResourceManager.FrontDoor/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/grafana/ci.mgmt.yml b/sdk/grafana/ci.mgmt.yml index a2f22e6ee33b..848173351b4d 100644 --- a/sdk/grafana/ci.mgmt.yml +++ b/sdk/grafana/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/grafana/ci.mgmt.yml - sdk/grafana/Azure.ResourceManager.Grafana/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/grafana/ci.mgmt.yml + - sdk/grafana/Azure.ResourceManager.Grafana/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/graphservices/ci.mgmt.yml b/sdk/graphservices/ci.mgmt.yml index 717a9a4a1963..ccd14b614b43 100644 --- a/sdk/graphservices/ci.mgmt.yml +++ b/sdk/graphservices/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/graphservices/ci.mgmt.yml - sdk/graphservices/Azure.ResourceManager.GraphServices/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/graphservices/ci.mgmt.yml + - sdk/graphservices/Azure.ResourceManager.GraphServices/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/guestconfiguration/ci.mgmt.yml b/sdk/guestconfiguration/ci.mgmt.yml index 5ebc59550f58..c2d2526d488b 100644 --- a/sdk/guestconfiguration/ci.mgmt.yml +++ b/sdk/guestconfiguration/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/guestconfiguration/ci.mgmt.yml - sdk/guestconfiguration/Azure.ResourceManager.GuestConfiguration/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/guestconfiguration/ci.mgmt.yml + - sdk/guestconfiguration/Azure.ResourceManager.GuestConfiguration/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/hardwaresecuritymodules/ci.mgmt.yml b/sdk/hardwaresecuritymodules/ci.mgmt.yml index 21778711f99e..d94eea966253 100644 --- a/sdk/hardwaresecuritymodules/ci.mgmt.yml +++ b/sdk/hardwaresecuritymodules/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/hardwaresecuritymodules/ci.mgmt.yml - sdk/hardwaresecuritymodules/Azure.ResourceManager.HardwareSecurityModules/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/hardwaresecuritymodules/ci.mgmt.yml + - sdk/hardwaresecuritymodules/Azure.ResourceManager.HardwareSecurityModules/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/hdinsight/ci.mgmt.yml b/sdk/hdinsight/ci.mgmt.yml index 4df0a02f5c80..29d3b404c76a 100644 --- a/sdk/hdinsight/ci.mgmt.yml +++ b/sdk/hdinsight/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/hdinsight/ci.mgmt.yml - sdk/hdinsight/Azure.ResourceManager.HDInsight/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/hdinsight/ci.mgmt.yml + - sdk/hdinsight/Azure.ResourceManager.HDInsight/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/hdinsightcontainers/ci.mgmt.yml b/sdk/hdinsightcontainers/ci.mgmt.yml index 69a7566e0caa..66a879d8fbcd 100644 --- a/sdk/hdinsightcontainers/ci.mgmt.yml +++ b/sdk/hdinsightcontainers/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/hdinsightcontainers/ci.mgmt.yml - sdk/hdinsightcontainers/Azure.ResourceManager.HDInsight.Containers/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/hdinsightcontainers/ci.mgmt.yml + - sdk/hdinsightcontainers/Azure.ResourceManager.HDInsight.Containers/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/healthbot/ci.mgmt.yml b/sdk/healthbot/ci.mgmt.yml index 14bfc7f855e6..4c2698659502 100644 --- a/sdk/healthbot/ci.mgmt.yml +++ b/sdk/healthbot/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/healthbot/ci.mgmt.yml - sdk/healthbot/Azure.ResourceManager.HealthBot/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/healthbot/ci.mgmt.yml + - sdk/healthbot/Azure.ResourceManager.HealthBot/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/healthcareapis/ci.mgmt.yml b/sdk/healthcareapis/ci.mgmt.yml index 57030df35e56..6f02ac8fd023 100644 --- a/sdk/healthcareapis/ci.mgmt.yml +++ b/sdk/healthcareapis/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/healthcareapis/ci.mgmt.yml - sdk/healthcareapis/Azure.ResourceManager.HealthcareApis/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/healthcareapis/ci.mgmt.yml + - sdk/healthcareapis/Azure.ResourceManager.HealthcareApis/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/healthdataaiservices/ci.mgmt.yml b/sdk/healthdataaiservices/ci.mgmt.yml index 016a917c1e19..45857afa5722 100644 --- a/sdk/healthdataaiservices/ci.mgmt.yml +++ b/sdk/healthdataaiservices/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/healthdataaiservices/ci.mgmt.yml - sdk/healthdataaiservices/Azure.ResourceManager.HealthDataAIServices/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/healthdataaiservices/ci.mgmt.yml + - sdk/healthdataaiservices/Azure.ResourceManager.HealthDataAIServices/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/hybridaks/ci.mgmt.yml b/sdk/hybridaks/ci.mgmt.yml index 552eb3298d3a..af3d82703d11 100644 --- a/sdk/hybridaks/ci.mgmt.yml +++ b/sdk/hybridaks/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/hybridaks/ci.mgmt.yml - sdk/hybridaks/Azure.ResourceManager.HybridContainerService/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/hybridaks/ci.mgmt.yml + - sdk/hybridaks/Azure.ResourceManager.HybridContainerService/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/hybridcompute/ci.mgmt.yml b/sdk/hybridcompute/ci.mgmt.yml index d163a966512d..15f8656c399e 100644 --- a/sdk/hybridcompute/ci.mgmt.yml +++ b/sdk/hybridcompute/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/hybridcompute/ci.mgmt.yml - sdk/hybridcompute/Azure.ResourceManager.HybridCompute/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/hybridcompute/ci.mgmt.yml + - sdk/hybridcompute/Azure.ResourceManager.HybridCompute/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/hybridconnectivity/ci.mgmt.yml b/sdk/hybridconnectivity/ci.mgmt.yml index 9ccca42ef557..8d809d4d9633 100644 --- a/sdk/hybridconnectivity/ci.mgmt.yml +++ b/sdk/hybridconnectivity/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/hybridconnectivity/ci.mgmt.yml - sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/hybridconnectivity/ci.mgmt.yml + - sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/hybridkubernetes/ci.mgmt.yml b/sdk/hybridkubernetes/ci.mgmt.yml index fff768430c9d..bb98635a8e1c 100644 --- a/sdk/hybridkubernetes/ci.mgmt.yml +++ b/sdk/hybridkubernetes/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/hybridkubernetes/ci.mgmt.yml - sdk/hybridkubernetes/Azure.ResourceManager.Kubernetes/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/hybridkubernetes/ci.mgmt.yml + - sdk/hybridkubernetes/Azure.ResourceManager.Kubernetes/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/hybridnetwork/ci.mgmt.yml b/sdk/hybridnetwork/ci.mgmt.yml index 35f71f8ae870..39412ff81f05 100644 --- a/sdk/hybridnetwork/ci.mgmt.yml +++ b/sdk/hybridnetwork/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/hybridnetwork/ci.mgmt.yml - sdk/hybridnetwork/Azure.ResourceManager.HybridNetwork/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/hybridnetwork/ci.mgmt.yml + - sdk/hybridnetwork/Azure.ResourceManager.HybridNetwork/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/informaticadatamanagement/ci.mgmt.yml b/sdk/informaticadatamanagement/ci.mgmt.yml index 03013cc9c90b..82d3bafd3f7f 100644 --- a/sdk/informaticadatamanagement/ci.mgmt.yml +++ b/sdk/informaticadatamanagement/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/informaticadatamanagement/ci.mgmt.yml - sdk/informaticadatamanagement/Azure.ResourceManager.InformaticaDataManagement/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/informaticadatamanagement/ci.mgmt.yml + - sdk/informaticadatamanagement/Azure.ResourceManager.InformaticaDataManagement/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/iot/ci.mgmt.yml b/sdk/iot/ci.mgmt.yml index 6260cd0d71f2..199578b03331 100644 --- a/sdk/iot/ci.mgmt.yml +++ b/sdk/iot/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/iot/ci.mgmt.yml - sdk/iot/Azure.ResourceManager.IotFirmwareDefense/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/iot/ci.mgmt.yml + - sdk/iot/Azure.ResourceManager.IotFirmwareDefense/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/iotcentral/ci.mgmt.yml b/sdk/iotcentral/ci.mgmt.yml index 1702fd71c6dd..1225f99c37fd 100644 --- a/sdk/iotcentral/ci.mgmt.yml +++ b/sdk/iotcentral/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/iotcentral/ci.mgmt.yml - sdk/iotcentral/Azure.ResourceManager.IotCentral/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/iotcentral/ci.mgmt.yml + - sdk/iotcentral/Azure.ResourceManager.IotCentral/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/iothub/ci.mgmt.yml b/sdk/iothub/ci.mgmt.yml index 5eb9e999a89c..63fb10994eac 100644 --- a/sdk/iothub/ci.mgmt.yml +++ b/sdk/iothub/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/iothub/ci.mgmt.yml - sdk/iothub/Azure.ResourceManager.IotHub/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/iothub/ci.mgmt.yml + - sdk/iothub/Azure.ResourceManager.IotHub/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/keyvault/ci.mgmt.yml b/sdk/keyvault/ci.mgmt.yml index b48c2f8d4ff4..8ad905079a0a 100644 --- a/sdk/keyvault/ci.mgmt.yml +++ b/sdk/keyvault/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/keyvault/ci.mgmt.yml - sdk/keyvault/Azure.ResourceManager.KeyVault/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/keyvault/ci.mgmt.yml + - sdk/keyvault/Azure.ResourceManager.KeyVault/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/kubernetesconfiguration/ci.mgmt.yml b/sdk/kubernetesconfiguration/ci.mgmt.yml index 4249ef57fa6e..d3fb470a7b6e 100644 --- a/sdk/kubernetesconfiguration/ci.mgmt.yml +++ b/sdk/kubernetesconfiguration/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/kubernetesconfiguration/ci.mgmt.yml - sdk/kubernetesconfiguration/Azure.ResourceManager.KubernetesConfiguration/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/kubernetesconfiguration/ci.mgmt.yml + - sdk/kubernetesconfiguration/Azure.ResourceManager.KubernetesConfiguration/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/kusto/ci.mgmt.yml b/sdk/kusto/ci.mgmt.yml index 374cf1f0cb81..c410d1487d18 100644 --- a/sdk/kusto/ci.mgmt.yml +++ b/sdk/kusto/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/kusto/ci.mgmt.yml - sdk/kusto/Azure.ResourceManager.Kusto/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/kusto/ci.mgmt.yml + - sdk/kusto/Azure.ResourceManager.Kusto/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/labservices/ci.mgmt.yml b/sdk/labservices/ci.mgmt.yml index 48f80379ab14..f8a982072965 100644 --- a/sdk/labservices/ci.mgmt.yml +++ b/sdk/labservices/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/labservices/ci.mgmt.yml - sdk/labservices/Azure.ResourceManager.LabServices/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/labservices/ci.mgmt.yml + - sdk/labservices/Azure.ResourceManager.LabServices/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/loadtestservice/ci.mgmt.yml b/sdk/loadtestservice/ci.mgmt.yml index 4e3d99d42979..dfc32939e497 100644 --- a/sdk/loadtestservice/ci.mgmt.yml +++ b/sdk/loadtestservice/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/loadtestservice/ci.mgmt.yml - sdk/loadtestservice/Azure.ResourceManager.LoadTesting/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/loadtestservice/ci.mgmt.yml + - sdk/loadtestservice/Azure.ResourceManager.LoadTesting/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/logic/ci.mgmt.yml b/sdk/logic/ci.mgmt.yml index b89b224082ee..5bed51facd34 100644 --- a/sdk/logic/ci.mgmt.yml +++ b/sdk/logic/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/logic/ci.mgmt.yml - sdk/logic/Azure.ResourceManager.Logic/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/logic/ci.mgmt.yml + - sdk/logic/Azure.ResourceManager.Logic/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/machinelearningcompute/ci.mgmt.yml b/sdk/machinelearningcompute/ci.mgmt.yml index 9ea84fdf4d15..5ea619231191 100644 --- a/sdk/machinelearningcompute/ci.mgmt.yml +++ b/sdk/machinelearningcompute/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/machinelearningcompute/ci.mgmt.yml - sdk/machinelearningcompute/Azure.ResourceManager.MachineLearningCompute/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/machinelearningcompute/ci.mgmt.yml + - sdk/machinelearningcompute/Azure.ResourceManager.MachineLearningCompute/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/machinelearningservices/ci.mgmt.yml b/sdk/machinelearningservices/ci.mgmt.yml index 457299ab20b9..3a99ed224fc2 100644 --- a/sdk/machinelearningservices/ci.mgmt.yml +++ b/sdk/machinelearningservices/ci.mgmt.yml @@ -1,5 +1,6 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -12,6 +13,18 @@ pr: - sdk/machinelearningservices/ci.mgmt.yml - sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/machinelearningservices/ci.mgmt.yml + - sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/maintenance/ci.mgmt.yml b/sdk/maintenance/ci.mgmt.yml index c49cc1565d6d..94c552b69f26 100644 --- a/sdk/maintenance/ci.mgmt.yml +++ b/sdk/maintenance/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/maintenance/ci.mgmt.yml - sdk/maintenance/Azure.ResourceManager.Maintenance/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/maintenance/ci.mgmt.yml + - sdk/maintenance/Azure.ResourceManager.Maintenance/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/managednetwork/ci.mgmt.yml b/sdk/managednetwork/ci.mgmt.yml index 431d66d1245b..08c9f3d0ce55 100644 --- a/sdk/managednetwork/ci.mgmt.yml +++ b/sdk/managednetwork/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/managednetwork/ci.mgmt.yml - sdk/managednetwork/Azure.ResourceManager.ManagedNetwork/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/managednetwork/ci.mgmt.yml + - sdk/managednetwork/Azure.ResourceManager.ManagedNetwork/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/managednetworkfabric/ci.mgmt.yml b/sdk/managednetworkfabric/ci.mgmt.yml index aa6b571b04e2..3212ad45bbde 100644 --- a/sdk/managednetworkfabric/ci.mgmt.yml +++ b/sdk/managednetworkfabric/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/managednetworkfabric/ci.mgmt.yml - sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/managednetworkfabric/ci.mgmt.yml + - sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/managedserviceidentity/ci.mgmt.yml b/sdk/managedserviceidentity/ci.mgmt.yml index c8f3a187f918..c9cd4b0f235a 100644 --- a/sdk/managedserviceidentity/ci.mgmt.yml +++ b/sdk/managedserviceidentity/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/managedserviceidentity/ci.mgmt.yml - sdk/managedserviceidentity/Azure.ResourceManager.ManagedServiceIdentities/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/managedserviceidentity/ci.mgmt.yml + - sdk/managedserviceidentity/Azure.ResourceManager.ManagedServiceIdentities/ + extends: template: ../../eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/managedservices/ci.mgmt.yml b/sdk/managedservices/ci.mgmt.yml index d6c0ccd16eef..88360bb2defa 100644 --- a/sdk/managedservices/ci.mgmt.yml +++ b/sdk/managedservices/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/managedservices/ci.mgmt.yml - sdk/managedservices/Azure.ResourceManager.ManagedServices/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/managedservices/ci.mgmt.yml + - sdk/managedservices/Azure.ResourceManager.ManagedServices/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/managementpartner/ci.mgmt.yml b/sdk/managementpartner/ci.mgmt.yml index 52c8e762088e..6fdd0118e1b9 100644 --- a/sdk/managementpartner/ci.mgmt.yml +++ b/sdk/managementpartner/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/managementpartner/ci.mgmt.yml - sdk/managementpartner/Azure.ResourceManager.ManagementPartner/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/managementpartner/ci.mgmt.yml + - sdk/managementpartner/Azure.ResourceManager.ManagementPartner/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/maps/ci.mgmt.yml b/sdk/maps/ci.mgmt.yml index 2f16079cab2e..7ee4f1ddad3c 100644 --- a/sdk/maps/ci.mgmt.yml +++ b/sdk/maps/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/maps/ci.mgmt.yml - sdk/maps/Azure.ResourceManager.Maps/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/maps/ci.mgmt.yml + - sdk/maps/Azure.ResourceManager.Maps/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/marketplace/ci.mgmt.yml b/sdk/marketplace/ci.mgmt.yml index e6574bdb3039..42bc8a147b30 100644 --- a/sdk/marketplace/ci.mgmt.yml +++ b/sdk/marketplace/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/marketplace/ci.mgmt.yml - sdk/marketplace/Azure.ResourceManager.Marketplace/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/marketplace/ci.mgmt.yml + - sdk/marketplace/Azure.ResourceManager.Marketplace/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/marketplaceordering/ci.mgmt.yml b/sdk/marketplaceordering/ci.mgmt.yml index 2b1f8721902e..c602647fb32d 100644 --- a/sdk/marketplaceordering/ci.mgmt.yml +++ b/sdk/marketplaceordering/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/marketplaceordering/ci.mgmt.yml - sdk/marketplaceordering/Azure.ResourceManager.MarketplaceOrdering/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/marketplaceordering/ci.mgmt.yml + - sdk/marketplaceordering/Azure.ResourceManager.MarketplaceOrdering/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/mediaservices/ci.mgmt.yml b/sdk/mediaservices/ci.mgmt.yml index 55656f3ae48b..201ecc9d995d 100644 --- a/sdk/mediaservices/ci.mgmt.yml +++ b/sdk/mediaservices/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/mediaservices/ci.mgmt.yml - sdk/mediaservices/Azure.ResourceManager.Media/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/mediaservices/ci.mgmt.yml + - sdk/mediaservices/Azure.ResourceManager.Media/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/migrationdiscoverysap/ci.mgmt.yml b/sdk/migrationdiscoverysap/ci.mgmt.yml index f5eb354d28e7..26c079f3d6f5 100644 --- a/sdk/migrationdiscoverysap/ci.mgmt.yml +++ b/sdk/migrationdiscoverysap/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/migrationdiscoverysap/ci.mgmt.yml - sdk/migrationdiscoverysap/Azure.ResourceManager.MigrationDiscoverySap/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/migrationdiscoverysap/ci.mgmt.yml + - sdk/migrationdiscoverysap/Azure.ResourceManager.MigrationDiscoverySap/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/mixedreality/ci.mgmt.yml b/sdk/mixedreality/ci.mgmt.yml index 81c0c2744232..d342a10a32e0 100644 --- a/sdk/mixedreality/ci.mgmt.yml +++ b/sdk/mixedreality/ci.mgmt.yml @@ -1,5 +1,6 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -12,6 +13,18 @@ pr: - sdk/mixedreality/ci.mgmt.yml - sdk/mixedreality/Azure.ResourceManager.MixedReality/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/mixedreality/ci.mgmt.yml + - sdk/mixedreality/Azure.ResourceManager.MixedReality/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/mobilenetwork/ci.mgmt.yml b/sdk/mobilenetwork/ci.mgmt.yml index 8a68e6749ba7..325154bfbfb7 100644 --- a/sdk/mobilenetwork/ci.mgmt.yml +++ b/sdk/mobilenetwork/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/mobilenetwork/ci.mgmt.yml - sdk/mobilenetwork/Azure.ResourceManager.MobileNetwork/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/mobilenetwork/ci.mgmt.yml + - sdk/mobilenetwork/Azure.ResourceManager.MobileNetwork/ + extends: template: ../../eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/mongocluster/ci.mgmt.yml b/sdk/mongocluster/ci.mgmt.yml index d2eafe7877dd..10f6e93db8bc 100644 --- a/sdk/mongocluster/ci.mgmt.yml +++ b/sdk/mongocluster/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/mongocluster/ci.mgmt.yml - sdk/mongocluster/Azure.ResourceManager.MongoCluster/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/mongocluster/ci.mgmt.yml + - sdk/mongocluster/Azure.ResourceManager.MongoCluster/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/monitor/ci.mgmt.yml b/sdk/monitor/ci.mgmt.yml index 8beeded4e3b9..5933fd35d9e5 100644 --- a/sdk/monitor/ci.mgmt.yml +++ b/sdk/monitor/ci.mgmt.yml @@ -2,6 +2,7 @@ # This file is generated automatically and any changes will be lost. trigger: none + pr: branches: include: @@ -14,6 +15,18 @@ pr: - sdk/monitor/ci.mgmt.yml - sdk/monitor/Azure.ResourceManager.Monitor/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/monitor/ci.mgmt.yml + - sdk/monitor/Azure.ResourceManager.Monitor/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/mysql/ci.mgmt.yml b/sdk/mysql/ci.mgmt.yml index e1521b4ed568..2ba5627ae3fc 100644 --- a/sdk/mysql/ci.mgmt.yml +++ b/sdk/mysql/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/mysql/ci.mgmt.yml - sdk/mysql/Azure.ResourceManager.MySql/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/mysql/ci.mgmt.yml + - sdk/mysql/Azure.ResourceManager.MySql/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/netapp/ci.mgmt.yml b/sdk/netapp/ci.mgmt.yml index 05a683e910f5..5d0a3e741513 100644 --- a/sdk/netapp/ci.mgmt.yml +++ b/sdk/netapp/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/netapp/ci.mgmt.yml - sdk/netapp/Azure.ResourceManager.NetApp/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/netapp/ci.mgmt.yml + - sdk/netapp/Azure.ResourceManager.NetApp/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/network/ci.mgmt.yml b/sdk/network/ci.mgmt.yml index edf77de02a49..f69378e6c236 100644 --- a/sdk/network/ci.mgmt.yml +++ b/sdk/network/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/network/ci.mgmt.yml - sdk/network/Azure.ResourceManager.Network/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/network/ci.mgmt.yml + - sdk/network/Azure.ResourceManager.Network/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/networkanalytics/ci.mgmt.yml b/sdk/networkanalytics/ci.mgmt.yml index 9ece072ce867..52934a1bad24 100644 --- a/sdk/networkanalytics/ci.mgmt.yml +++ b/sdk/networkanalytics/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/networkanalytics/ci.mgmt.yml - sdk/networkanalytics/Azure.ResourceManager.NetworkAnalytics/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/networkanalytics/ci.mgmt.yml + - sdk/networkanalytics/Azure.ResourceManager.NetworkAnalytics/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/networkcloud/ci.mgmt.yml b/sdk/networkcloud/ci.mgmt.yml index f6c281af22a9..940f908b8c75 100644 --- a/sdk/networkcloud/ci.mgmt.yml +++ b/sdk/networkcloud/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/networkcloud/ci.mgmt.yml - sdk/networkcloud/Azure.ResourceManager.NetworkCloud/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/networkcloud/ci.mgmt.yml + - sdk/networkcloud/Azure.ResourceManager.NetworkCloud/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/networkfunction/ci.mgmt.yml b/sdk/networkfunction/ci.mgmt.yml index a3c743ef532a..b05cf6e5e1cc 100644 --- a/sdk/networkfunction/ci.mgmt.yml +++ b/sdk/networkfunction/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/networkfunction/ci.mgmt.yml - sdk/networkfunction/Azure.ResourceManager.NetworkFunction/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/networkfunction/ci.mgmt.yml + - sdk/networkfunction/Azure.ResourceManager.NetworkFunction/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/newrelicobservability/ci.mgmt.yml b/sdk/newrelicobservability/ci.mgmt.yml index d01ef74cd749..599cfd845f2c 100644 --- a/sdk/newrelicobservability/ci.mgmt.yml +++ b/sdk/newrelicobservability/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/newrelicobservability/ci.mgmt.yml - sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/newrelicobservability/ci.mgmt.yml + - sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/nginx/ci.mgmt.yml b/sdk/nginx/ci.mgmt.yml index f701b26a561a..39e047ce0015 100644 --- a/sdk/nginx/ci.mgmt.yml +++ b/sdk/nginx/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/nginx/ci.mgmt.yml - sdk/nginx/Azure.ResourceManager.Nginx/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/nginx/ci.mgmt.yml + - sdk/nginx/Azure.ResourceManager.Nginx/ + extends: template: ../../eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/notificationhubs/ci.mgmt.yml b/sdk/notificationhubs/ci.mgmt.yml index ba5a26631dd4..8d9f15f7758b 100644 --- a/sdk/notificationhubs/ci.mgmt.yml +++ b/sdk/notificationhubs/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/notificationhubs/ci.mgmt.yml - sdk/notificationhubs/Azure.ResourceManager.NotificationHubs/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/notificationhubs/ci.mgmt.yml + - sdk/notificationhubs/Azure.ResourceManager.NotificationHubs/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/openenergyplatform/ci.mgmt.yml b/sdk/openenergyplatform/ci.mgmt.yml index 1ab74128b4db..f2394b80f6b9 100644 --- a/sdk/openenergyplatform/ci.mgmt.yml +++ b/sdk/openenergyplatform/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/openenergyplatform/ci.mgmt.yml - sdk/openenergyplatform/Azure.ResourceManager.EnergyServices/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/openenergyplatform/ci.mgmt.yml + - sdk/openenergyplatform/Azure.ResourceManager.EnergyServices/ + extends: template: ../../eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/operationalinsights/ci.mgmt.yml b/sdk/operationalinsights/ci.mgmt.yml index d4c3b61dac40..9e588305c901 100644 --- a/sdk/operationalinsights/ci.mgmt.yml +++ b/sdk/operationalinsights/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/operationalinsights/ci.mgmt.yml - sdk/operationalinsights/Azure.ResourceManager.OperationalInsights/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/operationalinsights/ci.mgmt.yml + - sdk/operationalinsights/Azure.ResourceManager.OperationalInsights/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/oracle/ci.mgmt.yml b/sdk/oracle/ci.mgmt.yml index ccbd7c096ecf..760950dbd58a 100644 --- a/sdk/oracle/ci.mgmt.yml +++ b/sdk/oracle/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/oracle/ci.mgmt.yml - sdk/oracle/Azure.ResourceManager.OracleDatabase/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/oracle/ci.mgmt.yml + - sdk/oracle/Azure.ResourceManager.OracleDatabase/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/orbital/ci.mgmt.yml b/sdk/orbital/ci.mgmt.yml index 701576d2fa62..2b2102df1da3 100644 --- a/sdk/orbital/ci.mgmt.yml +++ b/sdk/orbital/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/orbital/ci.mgmt.yml - sdk/orbital/Azure.ResourceManager.Orbital/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/orbital/ci.mgmt.yml + - sdk/orbital/Azure.ResourceManager.Orbital/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/paloaltonetworks.ngfw/ci.mgmt.yml b/sdk/paloaltonetworks.ngfw/ci.mgmt.yml index 77dca48de9ef..6348d3109683 100644 --- a/sdk/paloaltonetworks.ngfw/ci.mgmt.yml +++ b/sdk/paloaltonetworks.ngfw/ci.mgmt.yml @@ -1,4 +1,5 @@ trigger: none + pr: branches: include: @@ -11,6 +12,18 @@ pr: - sdk/paloaltonetworks.ngfw/ci.mgmt.yml - sdk/paloaltonetworks.ngfw/Azure.ResourceManager.PaloAltoNetworks.Ngfw/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/paloaltonetworks.ngfw/ci.mgmt.yml + - sdk/paloaltonetworks.ngfw/Azure.ResourceManager.PaloAltoNetworks.Ngfw/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/peering/ci.mgmt.yml b/sdk/peering/ci.mgmt.yml index 4d3d67e73949..cfef409531ee 100644 --- a/sdk/peering/ci.mgmt.yml +++ b/sdk/peering/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/peering/ci.mgmt.yml - sdk/peering/Azure.ResourceManager.Peering/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/peering/ci.mgmt.yml + - sdk/peering/Azure.ResourceManager.Peering/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/playwrighttesting/ci.mgmt.yml b/sdk/playwrighttesting/ci.mgmt.yml index 79addf69162c..b6422b373563 100644 --- a/sdk/playwrighttesting/ci.mgmt.yml +++ b/sdk/playwrighttesting/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/playwrighttesting/ci.mgmt.yml - sdk/playwrighttesting/Azure.ResourceManager.PlaywrightTesting/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/playwrighttesting/ci.mgmt.yml + - sdk/playwrighttesting/Azure.ResourceManager.PlaywrightTesting/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/policyinsights/ci.mgmt.yml b/sdk/policyinsights/ci.mgmt.yml index 56fa5c3ead85..c0fa9e7dd917 100644 --- a/sdk/policyinsights/ci.mgmt.yml +++ b/sdk/policyinsights/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/policyinsights/ci.mgmt.yml - sdk/policyinsights/Azure.ResourceManager.PolicyInsights/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/policyinsights/ci.mgmt.yml + - sdk/policyinsights/Azure.ResourceManager.PolicyInsights/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/postgresql/ci.mgmt.yml b/sdk/postgresql/ci.mgmt.yml index 77dbaed301ba..08dff06cd11f 100644 --- a/sdk/postgresql/ci.mgmt.yml +++ b/sdk/postgresql/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/postgresql/ci.mgmt.yml - sdk/postgresql/Azure.ResourceManager.PostgreSql/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/postgresql/ci.mgmt.yml + - sdk/postgresql/Azure.ResourceManager.PostgreSql/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/powerbidedicated/ci.mgmt.yml b/sdk/powerbidedicated/ci.mgmt.yml index 414f2b8ef0a9..951d3e8d0434 100644 --- a/sdk/powerbidedicated/ci.mgmt.yml +++ b/sdk/powerbidedicated/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/powerbidedicated/ci.mgmt.yml - sdk/powerbidedicated/Azure.ResourceManager.PowerBIDedicated/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/powerbidedicated/ci.mgmt.yml + - sdk/powerbidedicated/Azure.ResourceManager.PowerBIDedicated/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/privatedns/ci.mgmt.yml b/sdk/privatedns/ci.mgmt.yml index 86401f2f9675..31c567bfe408 100644 --- a/sdk/privatedns/ci.mgmt.yml +++ b/sdk/privatedns/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/privatedns/ci.mgmt.yml - sdk/privatedns/Azure.ResourceManager.PrivateDns/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/privatedns/ci.mgmt.yml + - sdk/privatedns/Azure.ResourceManager.PrivateDns/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/providerhub/ci.mgmt.yml b/sdk/providerhub/ci.mgmt.yml index 2c7f6ca61d3f..3de6a7f30b80 100644 --- a/sdk/providerhub/ci.mgmt.yml +++ b/sdk/providerhub/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/providerhub/ci.mgmt.yml - sdk/providerhub/Azure.ResourceManager.ProviderHub/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/providerhub/ci.mgmt.yml + - sdk/providerhub/Azure.ResourceManager.ProviderHub/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/purview/ci.mgmt.yml b/sdk/purview/ci.mgmt.yml index 226718ca583c..d5961aa8833a 100644 --- a/sdk/purview/ci.mgmt.yml +++ b/sdk/purview/ci.mgmt.yml @@ -1,5 +1,6 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -12,6 +13,18 @@ pr: - sdk/purview/ci.mgmt.yml - sdk/purview/Azure.ResourceManager.Purview/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/purview/ci.mgmt.yml + - sdk/purview/Azure.ResourceManager.Purview/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/quantum/ci.mgmt.yml b/sdk/quantum/ci.mgmt.yml index 8562320fa7c7..6ee02d7799bd 100644 --- a/sdk/quantum/ci.mgmt.yml +++ b/sdk/quantum/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/quantum/ci.mgmt.yml - sdk/quantum/Azure.ResourceManager.Quantum/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/quantum/ci.mgmt.yml + - sdk/quantum/Azure.ResourceManager.Quantum/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/qumulo/ci.mgmt.yml b/sdk/qumulo/ci.mgmt.yml index e89c4bea0e70..fe6e1fa253d3 100644 --- a/sdk/qumulo/ci.mgmt.yml +++ b/sdk/qumulo/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/qumulo/ci.mgmt.yml - sdk/qumulo/Azure.ResourceManager.Qumulo/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/qumulo/ci.mgmt.yml + - sdk/qumulo/Azure.ResourceManager.Qumulo/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/quota/ci.mgmt.yml b/sdk/quota/ci.mgmt.yml index f1f545ad13f1..9409730d342e 100644 --- a/sdk/quota/ci.mgmt.yml +++ b/sdk/quota/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/quota/ci.mgmt.yml - sdk/quota/Azure.ResourceManager.Quota/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/quota/ci.mgmt.yml + - sdk/quota/Azure.ResourceManager.Quota/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/recoveryservices-backup/ci.mgmt.yml b/sdk/recoveryservices-backup/ci.mgmt.yml index 5edfd823e3c0..402121c0f72c 100644 --- a/sdk/recoveryservices-backup/ci.mgmt.yml +++ b/sdk/recoveryservices-backup/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/recoveryservices-backup/ci.mgmt.yml - sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/recoveryservices-backup/ci.mgmt.yml + - sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/recoveryservices-datareplication/ci.mgmt.yml b/sdk/recoveryservices-datareplication/ci.mgmt.yml index 2e3966d67a88..143f2e0317c3 100644 --- a/sdk/recoveryservices-datareplication/ci.mgmt.yml +++ b/sdk/recoveryservices-datareplication/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/recoveryservices-datareplication/ci.mgmt.yml - sdk/recoveryservices-datareplication/Azure.ResourceManager.RecoveryServicesDataReplication/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/recoveryservices-datareplication/ci.mgmt.yml + - sdk/recoveryservices-datareplication/Azure.ResourceManager.RecoveryServicesDataReplication/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/recoveryservices-siterecovery/ci.mgmt.yml b/sdk/recoveryservices-siterecovery/ci.mgmt.yml index bded800f3ee2..3a8a3179d5a5 100644 --- a/sdk/recoveryservices-siterecovery/ci.mgmt.yml +++ b/sdk/recoveryservices-siterecovery/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/recoveryservices-siterecovery/ci.mgmt.yml - sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/recoveryservices-siterecovery/ci.mgmt.yml + - sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/recoveryservices/ci.mgmt.yml b/sdk/recoveryservices/ci.mgmt.yml index 0e7e6985f21c..d4a5e482dfa7 100644 --- a/sdk/recoveryservices/ci.mgmt.yml +++ b/sdk/recoveryservices/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/recoveryservices/ci.mgmt.yml - sdk/recoveryservices/Azure.ResourceManager.RecoveryServices/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/recoveryservices/ci.mgmt.yml + - sdk/recoveryservices/Azure.ResourceManager.RecoveryServices/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/redis/ci.mgmt.yml b/sdk/redis/ci.mgmt.yml index 9e6845322580..dfc71e356b87 100644 --- a/sdk/redis/ci.mgmt.yml +++ b/sdk/redis/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/redis/ci.mgmt.yml - sdk/redis/Azure.ResourceManager.Redis/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/redis/ci.mgmt.yml + - sdk/redis/Azure.ResourceManager.Redis/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/redisenterprise/ci.mgmt.yml b/sdk/redisenterprise/ci.mgmt.yml index 93641cfe3983..294ec0377bdf 100644 --- a/sdk/redisenterprise/ci.mgmt.yml +++ b/sdk/redisenterprise/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/redisenterprise/ci.mgmt.yml - sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/redisenterprise/ci.mgmt.yml + - sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/relay/ci.mgmt.yml b/sdk/relay/ci.mgmt.yml index b69a1efbd0f9..fc5a3764ebb5 100644 --- a/sdk/relay/ci.mgmt.yml +++ b/sdk/relay/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/relay/ci.mgmt.yml - sdk/relay/Azure.ResourceManager.Relay/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/relay/ci.mgmt.yml + - sdk/relay/Azure.ResourceManager.Relay/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/reservations/ci.mgmt.yml b/sdk/reservations/ci.mgmt.yml index c46c8c69cd2e..8effbcdd4424 100644 --- a/sdk/reservations/ci.mgmt.yml +++ b/sdk/reservations/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/reservations/ci.mgmt.yml - sdk/reservations/Azure.ResourceManager.Reservations/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/reservations/ci.mgmt.yml + - sdk/reservations/Azure.ResourceManager.Reservations/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/resourceconnector/ci.mgmt.yml b/sdk/resourceconnector/ci.mgmt.yml index 81269b9113c7..149f1805dab4 100644 --- a/sdk/resourceconnector/ci.mgmt.yml +++ b/sdk/resourceconnector/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/resourceconnector/ci.mgmt.yml - sdk/resourceconnector/Azure.ResourceManager.ResourceConnector/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/resourceconnector/ci.mgmt.yml + - sdk/resourceconnector/Azure.ResourceManager.ResourceConnector/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/resourcegraph/ci.mgmt.yml b/sdk/resourcegraph/ci.mgmt.yml index 5abe050f7709..27656bcd16c2 100644 --- a/sdk/resourcegraph/ci.mgmt.yml +++ b/sdk/resourcegraph/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/resourcegraph/ci.mgmt.yml - sdk/resourcegraph/Azure.ResourceManager.ResourceGraph/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/resourcegraph/ci.mgmt.yml + - sdk/resourcegraph/Azure.ResourceManager.ResourceGraph/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/resourcehealth/ci.mgmt.yml b/sdk/resourcehealth/ci.mgmt.yml index fb0a27171a69..bf3868346c7b 100644 --- a/sdk/resourcehealth/ci.mgmt.yml +++ b/sdk/resourcehealth/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/resourcehealth/ci.mgmt.yml - sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/resourcehealth/ci.mgmt.yml + - sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/resourcemanager/ci.mgmt.yml b/sdk/resourcemanager/ci.mgmt.yml index 69d2e50d3748..ba8c277e1f58 100644 --- a/sdk/resourcemanager/ci.mgmt.yml +++ b/sdk/resourcemanager/ci.mgmt.yml @@ -11,196 +11,196 @@ trigger: - sdk/resourcemanager - common/ManagementTestShared - common/ManagementCoreShared - - sdk/advisor/Azure.ResourceManager.Advisor - - sdk/agrifood/Azure.ResourceManager.AgFoodPlatform - - sdk/alertsmanagement/Azure.ResourceManager.AlertsManagement - - sdk/analysisservices/Azure.ResourceManager.Analysis - - sdk/apicenter/Azure.ResourceManager.ApiCenter + - sdk/datamigration/Azure.ResourceManager.DataMigration + - sdk/storageactions/Azure.ResourceManager.StorageActions + - sdk/quantum/Azure.ResourceManager.Quantum + - sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric + - sdk/playwrighttesting/Azure.ResourceManager.PlaywrightTesting + - sdk/mongocluster/Azure.ResourceManager.MongoCluster + - sdk/elasticsan/Azure.ResourceManager.ElasticSan + - sdk/machinelearningcompute/Azure.ResourceManager.MachineLearningCompute + - sdk/chaos/Azure.ResourceManager.Chaos + - sdk/fabric/Azure.ResourceManager.Fabric + - sdk/marketplaceordering/Azure.ResourceManager.MarketplaceOrdering + - sdk/resourcemover/Azure.ResourceManager.ResourceMover + - sdk/workloadmonitor/Azure.ResourceManager.WorkloadMonitor + - sdk/digitaltwins/Azure.ResourceManager.DigitalTwins - sdk/apimanagement/Azure.ResourceManager.ApiManagement - - sdk/appcomplianceautomation/Azure.ResourceManager.AppComplianceAutomation - - sdk/appconfiguration/Azure.ResourceManager.AppConfiguration - - sdk/applicationinsights/Azure.ResourceManager.ApplicationInsights - - sdk/appplatform/Azure.ResourceManager.AppPlatform + - sdk/webpubsub/Azure.ResourceManager.WebPubSub + - sdk/defendereasm/Azure.ResourceManager.DefenderEasm + - sdk/networkanalytics/Azure.ResourceManager.NetworkAnalytics + - sdk/mixedreality/Azure.ResourceManager.MixedReality + - sdk/grafana/Azure.ResourceManager.Grafana + - sdk/dns/Azure.ResourceManager.Dns + - sdk/sphere/Azure.ResourceManager.Sphere + - sdk/mysql/Azure.ResourceManager.MySql + - sdk/websites/Azure.ResourceManager.AppService + - sdk/orbital/Azure.ResourceManager.Orbital + - sdk/apicenter/Azure.ResourceManager.ApiCenter + - sdk/managedserviceidentity/Azure.ResourceManager.ManagedServiceIdentities - sdk/arc-scvmm/Azure.ResourceManager.ScVmm + - sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise + - sdk/hybridcompute/Azure.ResourceManager.HybridCompute + - sdk/datafactory/Azure.ResourceManager.DataFactory + - sdk/analysisservices/Azure.ResourceManager.Analysis + - sdk/eventhub/Azure.ResourceManager.EventHubs + - sdk/synapse/Azure.ResourceManager.Synapse + - sdk/billing/Azure.ResourceManager.Billing + - sdk/frontdoor/Azure.ResourceManager.FrontDoor + - sdk/devcenter/Azure.ResourceManager.DevCenter + - sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup + - sdk/quota/Azure.ResourceManager.Quota + - sdk/maps/Azure.ResourceManager.Maps + - sdk/operationalinsights/Azure.ResourceManager.OperationalInsights + - sdk/consumption/Azure.ResourceManager.Consumption + - sdk/cosmosdb/Azure.ResourceManager.CosmosDB + - sdk/privatedns/Azure.ResourceManager.PrivateDns + - sdk/storagecache/Azure.ResourceManager.StorageCache + - sdk/managementpartner/Azure.ResourceManager.ManagementPartner + - sdk/dynatrace/Azure.ResourceManager.Dynatrace - sdk/astronomer/Azure.ResourceManager.Astro - - sdk/attestation/Azure.ResourceManager.Attestation - - sdk/authorization/Azure.ResourceManager.Authorization - - sdk/automanage/Azure.ResourceManager.Automanage - - sdk/automation/Azure.ResourceManager.Automation + - sdk/network/Azure.ResourceManager.Network + - sdk/blueprint/Azure.ResourceManager.Blueprint - sdk/avs/Azure.ResourceManager.Avs - - sdk/azurelargeinstance/Azure.ResourceManager.LargeInstance - - sdk/azurestackhci/Azure.ResourceManager.Hci + - sdk/appconfiguration/Azure.ResourceManager.AppConfiguration - sdk/batch/Azure.ResourceManager.Batch - - sdk/billing/Azure.ResourceManager.Billing - - sdk/billingbenefits/Azure.ResourceManager.BillingBenefits - - sdk/blueprint/Azure.ResourceManager.Blueprint - - sdk/botservice/Azure.ResourceManager.BotService - - sdk/cdn/Azure.ResourceManager.Cdn - - sdk/changeanalysis/Azure.ResourceManager.ChangeAnalysis - - sdk/chaos/Azure.ResourceManager.Chaos - - sdk/cognitiveservices/Azure.ResourceManager.CognitiveServices - - sdk/communication/Azure.ResourceManager.Communication - - sdk/compute/Azure.ResourceManager.Compute - - sdk/computefleet/Azure.ResourceManager.ComputeFleet - - sdk/computeschedule/Azure.ResourceManager.ComputeSchedule - - sdk/confidentialledger/Azure.ResourceManager.ConfidentialLedger - - sdk/confluent/Azure.ResourceManager.Confluent - - sdk/connectedvmwarevsphere/Azure.ResourceManager.ConnectedVMwarevSphere - - sdk/consumption/Azure.ResourceManager.Consumption - - sdk/containerapps/Azure.ResourceManager.AppContainers - - sdk/containerinstance/Azure.ResourceManager.ContainerInstance + - sdk/alertsmanagement/Azure.ResourceManager.AlertsManagement + - sdk/relay/Azure.ResourceManager.Relay + - sdk/edgeorder/Azure.ResourceManager.EdgeOrder + - sdk/powerbidedicated/Azure.ResourceManager.PowerBIDedicated + - sdk/customer-insights/Azure.ResourceManager.CustomerInsights + - sdk/fluidrelay/Azure.ResourceManager.FluidRelay + - sdk/postgresql/Azure.ResourceManager.PostgreSql + - sdk/costmanagement/Azure.ResourceManager.CostManagement - sdk/containerorchestratorruntime/Azure.ResourceManager.ContainerOrchestratorRuntime - - sdk/containerregistry/Azure.ResourceManager.ContainerRegistry + - sdk/iothub/Azure.ResourceManager.IotHub + - sdk/iot/Azure.ResourceManager.IotFirmwareDefense + - sdk/datadog/Azure.ResourceManager.Datadog + - sdk/recoveryservices-datareplication/Azure.ResourceManager.RecoveryServicesDataReplication + - sdk/marketplace/Azure.ResourceManager.Marketplace + - sdk/nginx/Azure.ResourceManager.Nginx + - sdk/subscription/Azure.ResourceManager.Subscription + - sdk/containerapps/Azure.ResourceManager.AppContainers + - sdk/notificationhubs/Azure.ResourceManager.NotificationHubs + - sdk/networkfunction/Azure.ResourceManager.NetworkFunction - sdk/containerservice/Azure.ResourceManager.ContainerService - - sdk/cosmosdb/Azure.ResourceManager.CosmosDB - - sdk/cosmosdbforpostgresql/Azure.ResourceManager.CosmosDBForPostgreSql - - sdk/costmanagement/Azure.ResourceManager.CostManagement - - sdk/customer-insights/Azure.ResourceManager.CustomerInsights - - sdk/databox/Azure.ResourceManager.DataBox + - sdk/datalake-store/Azure.ResourceManager.DataLakeStore + - sdk/devspaces/Azure.ResourceManager.DevSpaces + - sdk/labservices/Azure.ResourceManager.LabServices + - sdk/cdn/Azure.ResourceManager.Cdn + - sdk/resourceconnector/Azure.ResourceManager.ResourceConnector + - sdk/confidentialledger/Azure.ResourceManager.ConfidentialLedger + - sdk/healthdataaiservices/Azure.ResourceManager.HealthDataAIServices + - sdk/compute/Azure.ResourceManager.Compute + - sdk/azurestackhci/Azure.ResourceManager.Hci + - sdk/qumulo/Azure.ResourceManager.Qumulo + - sdk/fleet/Azure.ResourceManager.ContainerServiceFleet - sdk/databoxedge/Azure.ResourceManager.DataBoxEdge - - sdk/datadog/Azure.ResourceManager.Datadog - - sdk/datafactory/Azure.ResourceManager.DataFactory + - sdk/servicebus/Azure.ResourceManager.ServiceBus - sdk/datalake-analytics/Azure.ResourceManager.DataLakeAnalytics - - sdk/datalake-store/Azure.ResourceManager.DataLakeStore - - sdk/datamigration/Azure.ResourceManager.DataMigration - - sdk/dataprotection/Azure.ResourceManager.DataProtectionBackup - - sdk/datashare/Azure.ResourceManager.DataShare - - sdk/defendereasm/Azure.ResourceManager.DefenderEasm + - sdk/computeschedule/Azure.ResourceManager.ComputeSchedule + - sdk/appcomplianceautomation/Azure.ResourceManager.AppComplianceAutomation + - sdk/extendedlocation/Azure.ResourceManager.ExtendedLocations - sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization - - sdk/devcenter/Azure.ResourceManager.DevCenter - - sdk/deviceprovisioningservices/Azure.ResourceManager.DeviceProvisioningServices - - sdk/deviceregistry/Azure.ResourceManager.DeviceRegistry - - sdk/deviceupdate/Azure.ResourceManager.DeviceUpdate - sdk/devopsinfrastructure/Azure.ResourceManager.DevOpsInfrastructure - - sdk/devspaces/Azure.ResourceManager.DevSpaces + - sdk/advisor/Azure.ResourceManager.Advisor + - sdk/servicenetworking/Azure.ResourceManager.ServiceNetworking + - sdk/servicelinker/Azure.ResourceManager.ServiceLinker + - sdk/search/Azure.ResourceManager.Search + - sdk/eventgrid/Azure.ResourceManager.EventGrid + - sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability + - sdk/informaticadatamanagement/Azure.ResourceManager.InformaticaDataManagement - sdk/devtestlabs/Azure.ResourceManager.DevTestLabs - - sdk/digitaltwins/Azure.ResourceManager.DigitalTwins - - sdk/dns/Azure.ResourceManager.Dns - - sdk/dnsresolver/Azure.ResourceManager.DnsResolver - - sdk/dynatrace/Azure.ResourceManager.Dynatrace - - sdk/edgeorder/Azure.ResourceManager.EdgeOrder + - sdk/azurelargeinstance/Azure.ResourceManager.LargeInstance + - sdk/providerhub/Azure.ResourceManager.ProviderHub + - sdk/confluent/Azure.ResourceManager.Confluent + - sdk/machinelearningservices/Azure.ResourceManager.MachineLearning + - sdk/botservice/Azure.ResourceManager.BotService + - sdk/purview/Azure.ResourceManager.Purview + - sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters + - sdk/voiceservices/Azure.ResourceManager.VoiceServices + - sdk/databox/Azure.ResourceManager.DataBox + - sdk/healthbot/Azure.ResourceManager.HealthBot + - sdk/managednetwork/Azure.ResourceManager.ManagedNetwork + - sdk/support/Azure.ResourceManager.Support + - sdk/keyvault/Azure.ResourceManager.KeyVault + - sdk/signalr/Azure.ResourceManager.SignalR + - sdk/deviceupdate/Azure.ResourceManager.DeviceUpdate + - sdk/containerinstance/Azure.ResourceManager.ContainerInstance + - sdk/computefleet/Azure.ResourceManager.ComputeFleet + - sdk/loadtestservice/Azure.ResourceManager.LoadTesting + - sdk/automation/Azure.ResourceManager.Automation + - sdk/communication/Azure.ResourceManager.Communication + - sdk/springappdiscovery/Azure.ResourceManager.SpringAppDiscovery + - sdk/trustedsigning/Azure.ResourceManager.TrustedSigning + - sdk/sqlvirtualmachine/Azure.ResourceManager.SqlVirtualMachine + - sdk/datashare/Azure.ResourceManager.DataShare + - sdk/selfhelp/Azure.ResourceManager.SelfHelp + - sdk/changeanalysis/Azure.ResourceManager.ChangeAnalysis + - sdk/kusto/Azure.ResourceManager.Kusto + - sdk/cosmosdbforpostgresql/Azure.ResourceManager.CosmosDBForPostgreSql + - sdk/hdinsightcontainers/Azure.ResourceManager.HDInsight.Containers + - sdk/paloaltonetworks.ngfw/Azure.ResourceManager.PaloAltoNetworks.Ngfw - sdk/edgezones/Azure.ResourceManager.EdgeZones - - sdk/elastic/Azure.ResourceManager.Elastic - - sdk/elasticsan/Azure.ResourceManager.ElasticSan - - sdk/eventgrid/Azure.ResourceManager.EventGrid - - sdk/eventhub/Azure.ResourceManager.EventHubs - - sdk/extendedlocation/Azure.ResourceManager.ExtendedLocations - - sdk/fabric/Azure.ResourceManager.Fabric - - sdk/fleet/Azure.ResourceManager.ContainerServiceFleet - - sdk/fluidrelay/Azure.ResourceManager.FluidRelay - - sdk/frontdoor/Azure.ResourceManager.FrontDoor - - sdk/grafana/Azure.ResourceManager.Grafana - sdk/graphservices/Azure.ResourceManager.GraphServices + - sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery + - sdk/elastic/Azure.ResourceManager.Elastic - sdk/guestconfiguration/Azure.ResourceManager.GuestConfiguration - - sdk/hardwaresecuritymodules/Azure.ResourceManager.HardwareSecurityModules - - sdk/hdinsight/Azure.ResourceManager.HDInsight - - sdk/hdinsightcontainers/Azure.ResourceManager.HDInsight.Containers - - sdk/healthbot/Azure.ResourceManager.HealthBot - - sdk/healthcareapis/Azure.ResourceManager.HealthcareApis - - sdk/healthdataaiservices/Azure.ResourceManager.HealthDataAIServices + - sdk/netapp/Azure.ResourceManager.NetApp + - sdk/dnsresolver/Azure.ResourceManager.DnsResolver + - sdk/cognitiveservices/Azure.ResourceManager.CognitiveServices + - sdk/resourcehealth/Azure.ResourceManager.ResourceHealth - sdk/hybridaks/Azure.ResourceManager.HybridContainerService - - sdk/hybridcompute/Azure.ResourceManager.HybridCompute - - sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity - - sdk/hybridkubernetes/Azure.ResourceManager.Kubernetes - - sdk/hybridnetwork/Azure.ResourceManager.HybridNetwork - - sdk/informaticadatamanagement/Azure.ResourceManager.InformaticaDataManagement - - sdk/iot/Azure.ResourceManager.IotFirmwareDefense - - sdk/iotcentral/Azure.ResourceManager.IotCentral - - sdk/iothub/Azure.ResourceManager.IotHub - - sdk/keyvault/Azure.ResourceManager.KeyVault - - sdk/kubernetesconfiguration/Azure.ResourceManager.KubernetesConfiguration - - sdk/kusto/Azure.ResourceManager.Kusto - - sdk/labservices/Azure.ResourceManager.LabServices - - sdk/loadtestservice/Azure.ResourceManager.LoadTesting + - sdk/monitor/Azure.ResourceManager.Monitor + - sdk/storagepool/Azure.ResourceManager.StoragePool + - sdk/deviceregistry/Azure.ResourceManager.DeviceRegistry + - sdk/connectedvmwarevsphere/Azure.ResourceManager.ConnectedVMwarevSphere + - sdk/storagemover/Azure.ResourceManager.StorageMover + - sdk/appplatform/Azure.ResourceManager.AppPlatform + - sdk/recoveryservices/Azure.ResourceManager.RecoveryServices + - sdk/policyinsights/Azure.ResourceManager.PolicyInsights + - sdk/securitydevops/Azure.ResourceManager.SecurityDevOps + - sdk/securitycenter/Azure.ResourceManager.SecurityCenter + - sdk/billingbenefits/Azure.ResourceManager.BillingBenefits + - sdk/storage/Azure.ResourceManager.Storage - sdk/logic/Azure.ResourceManager.Logic - - sdk/machinelearningcompute/Azure.ResourceManager.MachineLearningCompute - - sdk/machinelearningservices/Azure.ResourceManager.MachineLearning - - sdk/maintenance/Azure.ResourceManager.Maintenance - - sdk/managednetwork/Azure.ResourceManager.ManagedNetwork - - sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric - - sdk/managedserviceidentity/Azure.ResourceManager.ManagedServiceIdentities + - sdk/reservations/Azure.ResourceManager.Reservations + - sdk/containerregistry/Azure.ResourceManager.ContainerRegistry + - sdk/sqlmanagement/Azure.ResourceManager.Sql - sdk/managedservices/Azure.ResourceManager.ManagedServices - - sdk/managementpartner/Azure.ResourceManager.ManagementPartner - - sdk/maps/Azure.ResourceManager.Maps - - sdk/marketplace/Azure.ResourceManager.Marketplace - - sdk/marketplaceordering/Azure.ResourceManager.MarketplaceOrdering - - sdk/mediaservices/Azure.ResourceManager.Media - - sdk/migrationdiscoverysap/Azure.ResourceManager.MigrationDiscoverySap - - sdk/mixedreality/Azure.ResourceManager.MixedReality - sdk/mobilenetwork/Azure.ResourceManager.MobileNetwork - - sdk/mongocluster/Azure.ResourceManager.MongoCluster - - sdk/monitor/Azure.ResourceManager.Monitor - - sdk/mysql/Azure.ResourceManager.MySql - - sdk/netapp/Azure.ResourceManager.NetApp - - sdk/network/Azure.ResourceManager.Network - - sdk/networkanalytics/Azure.ResourceManager.NetworkAnalytics + - sdk/mediaservices/Azure.ResourceManager.Media + - sdk/hybridnetwork/Azure.ResourceManager.HybridNetwork + - sdk/streamanalytics/Azure.ResourceManager.StreamAnalytics - sdk/networkcloud/Azure.ResourceManager.NetworkCloud - - sdk/networkfunction/Azure.ResourceManager.NetworkFunction - - sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability - - sdk/nginx/Azure.ResourceManager.Nginx - - sdk/notificationhubs/Azure.ResourceManager.NotificationHubs + - sdk/iotcentral/Azure.ResourceManager.IotCentral + - sdk/agrifood/Azure.ResourceManager.AgFoodPlatform + - sdk/kubernetesconfiguration/Azure.ResourceManager.KubernetesConfiguration + - sdk/standbypool/Azure.ResourceManager.StandbyPool + - sdk/maintenance/Azure.ResourceManager.Maintenance - sdk/openenergyplatform/Azure.ResourceManager.EnergyServices - - sdk/operationalinsights/Azure.ResourceManager.OperationalInsights - - sdk/oracle/Azure.ResourceManager.OracleDatabase - - sdk/orbital/Azure.ResourceManager.Orbital - - sdk/paloaltonetworks.ngfw/Azure.ResourceManager.PaloAltoNetworks.Ngfw + - sdk/hdinsight/Azure.ResourceManager.HDInsight + - sdk/automanage/Azure.ResourceManager.Automanage + - sdk/storagesync/Azure.ResourceManager.StorageSync + - sdk/trafficmanager/Azure.ResourceManager.TrafficManager + - sdk/dataprotection/Azure.ResourceManager.DataProtectionBackup + - sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity - sdk/peering/Azure.ResourceManager.Peering - - sdk/playwrighttesting/Azure.ResourceManager.PlaywrightTesting - - sdk/policyinsights/Azure.ResourceManager.PolicyInsights - - sdk/postgresql/Azure.ResourceManager.PostgreSql - - sdk/powerbidedicated/Azure.ResourceManager.PowerBIDedicated - - sdk/privatedns/Azure.ResourceManager.PrivateDns - - sdk/providerhub/Azure.ResourceManager.ProviderHub - - sdk/purview/Azure.ResourceManager.Purview - - sdk/quantum/Azure.ResourceManager.Quantum - - sdk/qumulo/Azure.ResourceManager.Qumulo - - sdk/quota/Azure.ResourceManager.Quota - - sdk/recoveryservices/Azure.ResourceManager.RecoveryServices - - sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup - - sdk/recoveryservices-datareplication/Azure.ResourceManager.RecoveryServicesDataReplication - - sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery - - sdk/redis/Azure.ResourceManager.Redis - - sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise - - sdk/relay/Azure.ResourceManager.Relay - - sdk/reservations/Azure.ResourceManager.Reservations - - sdk/resourceconnector/Azure.ResourceManager.ResourceConnector - - sdk/resourcegraph/Azure.ResourceManager.ResourceGraph - - sdk/resourcehealth/Azure.ResourceManager.ResourceHealth - - sdk/resourcemover/Azure.ResourceManager.ResourceMover - - sdk/resources/Azure.ResourceManager.Resources - - sdk/search/Azure.ResourceManager.Search - - sdk/securitycenter/Azure.ResourceManager.SecurityCenter - - sdk/securitydevops/Azure.ResourceManager.SecurityDevOps + - sdk/hybridkubernetes/Azure.ResourceManager.Kubernetes - sdk/securityinsights/Azure.ResourceManager.SecurityInsights - - sdk/selfhelp/Azure.ResourceManager.SelfHelp - - sdk/servicebus/Azure.ResourceManager.ServiceBus + - sdk/resourcegraph/Azure.ResourceManager.ResourceGraph + - sdk/healthcareapis/Azure.ResourceManager.HealthcareApis + - sdk/authorization/Azure.ResourceManager.Authorization + - sdk/migrationdiscoverysap/Azure.ResourceManager.MigrationDiscoverySap - sdk/servicefabric/Azure.ResourceManager.ServiceFabric - - sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters - - sdk/servicelinker/Azure.ResourceManager.ServiceLinker - - sdk/servicenetworking/Azure.ResourceManager.ServiceNetworking - - sdk/signalr/Azure.ResourceManager.SignalR - - sdk/sphere/Azure.ResourceManager.Sphere - - sdk/springappdiscovery/Azure.ResourceManager.SpringAppDiscovery - - sdk/sqlmanagement/Azure.ResourceManager.Sql - - sdk/sqlvirtualmachine/Azure.ResourceManager.SqlVirtualMachine - - sdk/standbypool/Azure.ResourceManager.StandbyPool - - sdk/storage/Azure.ResourceManager.Storage - - sdk/storageactions/Azure.ResourceManager.StorageActions - - sdk/storagecache/Azure.ResourceManager.StorageCache - - sdk/storagemover/Azure.ResourceManager.StorageMover - - sdk/storagepool/Azure.ResourceManager.StoragePool - - sdk/storagesync/Azure.ResourceManager.StorageSync - - sdk/streamanalytics/Azure.ResourceManager.StreamAnalytics - - sdk/subscription/Azure.ResourceManager.Subscription - - sdk/support/Azure.ResourceManager.Support - - sdk/synapse/Azure.ResourceManager.Synapse - - sdk/trafficmanager/Azure.ResourceManager.TrafficManager - - sdk/trustedsigning/Azure.ResourceManager.TrustedSigning - - sdk/voiceservices/Azure.ResourceManager.VoiceServices - - sdk/webpubsub/Azure.ResourceManager.WebPubSub - - sdk/websites/Azure.ResourceManager.AppService - - sdk/workloadmonitor/Azure.ResourceManager.WorkloadMonitor + - sdk/deviceprovisioningservices/Azure.ResourceManager.DeviceProvisioningServices + - sdk/attestation/Azure.ResourceManager.Attestation + - sdk/applicationinsights/Azure.ResourceManager.ApplicationInsights + - sdk/oracle/Azure.ResourceManager.OracleDatabase - sdk/workloads/Azure.ResourceManager.Workloads + - sdk/hardwaresecuritymodules/Azure.ResourceManager.HardwareSecurityModules + - sdk/resources/Azure.ResourceManager.Resources + - sdk/redis/Azure.ResourceManager.Redis pr: branches: @@ -214,196 +214,196 @@ pr: - sdk/resourcemanager - common/ManagementTestShared - common/ManagementCoreShared - - sdk/advisor/Azure.ResourceManager.Advisor - - sdk/agrifood/Azure.ResourceManager.AgFoodPlatform - - sdk/alertsmanagement/Azure.ResourceManager.AlertsManagement - - sdk/analysisservices/Azure.ResourceManager.Analysis - - sdk/apicenter/Azure.ResourceManager.ApiCenter + - sdk/datamigration/Azure.ResourceManager.DataMigration + - sdk/storageactions/Azure.ResourceManager.StorageActions + - sdk/quantum/Azure.ResourceManager.Quantum + - sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric + - sdk/playwrighttesting/Azure.ResourceManager.PlaywrightTesting + - sdk/mongocluster/Azure.ResourceManager.MongoCluster + - sdk/elasticsan/Azure.ResourceManager.ElasticSan + - sdk/machinelearningcompute/Azure.ResourceManager.MachineLearningCompute + - sdk/chaos/Azure.ResourceManager.Chaos + - sdk/fabric/Azure.ResourceManager.Fabric + - sdk/marketplaceordering/Azure.ResourceManager.MarketplaceOrdering + - sdk/resourcemover/Azure.ResourceManager.ResourceMover + - sdk/workloadmonitor/Azure.ResourceManager.WorkloadMonitor + - sdk/digitaltwins/Azure.ResourceManager.DigitalTwins - sdk/apimanagement/Azure.ResourceManager.ApiManagement - - sdk/appcomplianceautomation/Azure.ResourceManager.AppComplianceAutomation - - sdk/appconfiguration/Azure.ResourceManager.AppConfiguration - - sdk/applicationinsights/Azure.ResourceManager.ApplicationInsights - - sdk/appplatform/Azure.ResourceManager.AppPlatform + - sdk/webpubsub/Azure.ResourceManager.WebPubSub + - sdk/defendereasm/Azure.ResourceManager.DefenderEasm + - sdk/networkanalytics/Azure.ResourceManager.NetworkAnalytics + - sdk/mixedreality/Azure.ResourceManager.MixedReality + - sdk/grafana/Azure.ResourceManager.Grafana + - sdk/dns/Azure.ResourceManager.Dns + - sdk/sphere/Azure.ResourceManager.Sphere + - sdk/mysql/Azure.ResourceManager.MySql + - sdk/websites/Azure.ResourceManager.AppService + - sdk/orbital/Azure.ResourceManager.Orbital + - sdk/apicenter/Azure.ResourceManager.ApiCenter + - sdk/managedserviceidentity/Azure.ResourceManager.ManagedServiceIdentities - sdk/arc-scvmm/Azure.ResourceManager.ScVmm + - sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise + - sdk/hybridcompute/Azure.ResourceManager.HybridCompute + - sdk/datafactory/Azure.ResourceManager.DataFactory + - sdk/analysisservices/Azure.ResourceManager.Analysis + - sdk/eventhub/Azure.ResourceManager.EventHubs + - sdk/synapse/Azure.ResourceManager.Synapse + - sdk/billing/Azure.ResourceManager.Billing + - sdk/frontdoor/Azure.ResourceManager.FrontDoor + - sdk/devcenter/Azure.ResourceManager.DevCenter + - sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup + - sdk/quota/Azure.ResourceManager.Quota + - sdk/maps/Azure.ResourceManager.Maps + - sdk/operationalinsights/Azure.ResourceManager.OperationalInsights + - sdk/consumption/Azure.ResourceManager.Consumption + - sdk/cosmosdb/Azure.ResourceManager.CosmosDB + - sdk/privatedns/Azure.ResourceManager.PrivateDns + - sdk/storagecache/Azure.ResourceManager.StorageCache + - sdk/managementpartner/Azure.ResourceManager.ManagementPartner + - sdk/dynatrace/Azure.ResourceManager.Dynatrace - sdk/astronomer/Azure.ResourceManager.Astro - - sdk/attestation/Azure.ResourceManager.Attestation - - sdk/authorization/Azure.ResourceManager.Authorization - - sdk/automanage/Azure.ResourceManager.Automanage - - sdk/automation/Azure.ResourceManager.Automation + - sdk/network/Azure.ResourceManager.Network + - sdk/blueprint/Azure.ResourceManager.Blueprint - sdk/avs/Azure.ResourceManager.Avs - - sdk/azurelargeinstance/Azure.ResourceManager.LargeInstance - - sdk/azurestackhci/Azure.ResourceManager.Hci + - sdk/appconfiguration/Azure.ResourceManager.AppConfiguration - sdk/batch/Azure.ResourceManager.Batch - - sdk/billing/Azure.ResourceManager.Billing - - sdk/billingbenefits/Azure.ResourceManager.BillingBenefits - - sdk/blueprint/Azure.ResourceManager.Blueprint - - sdk/botservice/Azure.ResourceManager.BotService - - sdk/cdn/Azure.ResourceManager.Cdn - - sdk/changeanalysis/Azure.ResourceManager.ChangeAnalysis - - sdk/chaos/Azure.ResourceManager.Chaos - - sdk/cognitiveservices/Azure.ResourceManager.CognitiveServices - - sdk/communication/Azure.ResourceManager.Communication - - sdk/compute/Azure.ResourceManager.Compute - - sdk/computefleet/Azure.ResourceManager.ComputeFleet - - sdk/computeschedule/Azure.ResourceManager.ComputeSchedule - - sdk/confidentialledger/Azure.ResourceManager.ConfidentialLedger - - sdk/confluent/Azure.ResourceManager.Confluent - - sdk/connectedvmwarevsphere/Azure.ResourceManager.ConnectedVMwarevSphere - - sdk/consumption/Azure.ResourceManager.Consumption - - sdk/containerapps/Azure.ResourceManager.AppContainers - - sdk/containerinstance/Azure.ResourceManager.ContainerInstance + - sdk/alertsmanagement/Azure.ResourceManager.AlertsManagement + - sdk/relay/Azure.ResourceManager.Relay + - sdk/edgeorder/Azure.ResourceManager.EdgeOrder + - sdk/powerbidedicated/Azure.ResourceManager.PowerBIDedicated + - sdk/customer-insights/Azure.ResourceManager.CustomerInsights + - sdk/fluidrelay/Azure.ResourceManager.FluidRelay + - sdk/postgresql/Azure.ResourceManager.PostgreSql + - sdk/costmanagement/Azure.ResourceManager.CostManagement - sdk/containerorchestratorruntime/Azure.ResourceManager.ContainerOrchestratorRuntime - - sdk/containerregistry/Azure.ResourceManager.ContainerRegistry + - sdk/iothub/Azure.ResourceManager.IotHub + - sdk/iot/Azure.ResourceManager.IotFirmwareDefense + - sdk/datadog/Azure.ResourceManager.Datadog + - sdk/recoveryservices-datareplication/Azure.ResourceManager.RecoveryServicesDataReplication + - sdk/marketplace/Azure.ResourceManager.Marketplace + - sdk/nginx/Azure.ResourceManager.Nginx + - sdk/subscription/Azure.ResourceManager.Subscription + - sdk/containerapps/Azure.ResourceManager.AppContainers + - sdk/notificationhubs/Azure.ResourceManager.NotificationHubs + - sdk/networkfunction/Azure.ResourceManager.NetworkFunction - sdk/containerservice/Azure.ResourceManager.ContainerService - - sdk/cosmosdb/Azure.ResourceManager.CosmosDB - - sdk/cosmosdbforpostgresql/Azure.ResourceManager.CosmosDBForPostgreSql - - sdk/costmanagement/Azure.ResourceManager.CostManagement - - sdk/customer-insights/Azure.ResourceManager.CustomerInsights - - sdk/databox/Azure.ResourceManager.DataBox + - sdk/datalake-store/Azure.ResourceManager.DataLakeStore + - sdk/devspaces/Azure.ResourceManager.DevSpaces + - sdk/labservices/Azure.ResourceManager.LabServices + - sdk/cdn/Azure.ResourceManager.Cdn + - sdk/resourceconnector/Azure.ResourceManager.ResourceConnector + - sdk/confidentialledger/Azure.ResourceManager.ConfidentialLedger + - sdk/healthdataaiservices/Azure.ResourceManager.HealthDataAIServices + - sdk/compute/Azure.ResourceManager.Compute + - sdk/azurestackhci/Azure.ResourceManager.Hci + - sdk/qumulo/Azure.ResourceManager.Qumulo + - sdk/fleet/Azure.ResourceManager.ContainerServiceFleet - sdk/databoxedge/Azure.ResourceManager.DataBoxEdge - - sdk/datadog/Azure.ResourceManager.Datadog - - sdk/datafactory/Azure.ResourceManager.DataFactory + - sdk/servicebus/Azure.ResourceManager.ServiceBus - sdk/datalake-analytics/Azure.ResourceManager.DataLakeAnalytics - - sdk/datalake-store/Azure.ResourceManager.DataLakeStore - - sdk/datamigration/Azure.ResourceManager.DataMigration - - sdk/dataprotection/Azure.ResourceManager.DataProtectionBackup - - sdk/datashare/Azure.ResourceManager.DataShare - - sdk/defendereasm/Azure.ResourceManager.DefenderEasm + - sdk/computeschedule/Azure.ResourceManager.ComputeSchedule + - sdk/appcomplianceautomation/Azure.ResourceManager.AppComplianceAutomation + - sdk/extendedlocation/Azure.ResourceManager.ExtendedLocations - sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization - - sdk/devcenter/Azure.ResourceManager.DevCenter - - sdk/deviceprovisioningservices/Azure.ResourceManager.DeviceProvisioningServices - - sdk/deviceregistry/Azure.ResourceManager.DeviceRegistry - - sdk/deviceupdate/Azure.ResourceManager.DeviceUpdate - sdk/devopsinfrastructure/Azure.ResourceManager.DevOpsInfrastructure - - sdk/devspaces/Azure.ResourceManager.DevSpaces + - sdk/advisor/Azure.ResourceManager.Advisor + - sdk/servicenetworking/Azure.ResourceManager.ServiceNetworking + - sdk/servicelinker/Azure.ResourceManager.ServiceLinker + - sdk/search/Azure.ResourceManager.Search + - sdk/eventgrid/Azure.ResourceManager.EventGrid + - sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability + - sdk/informaticadatamanagement/Azure.ResourceManager.InformaticaDataManagement - sdk/devtestlabs/Azure.ResourceManager.DevTestLabs - - sdk/digitaltwins/Azure.ResourceManager.DigitalTwins - - sdk/dns/Azure.ResourceManager.Dns - - sdk/dnsresolver/Azure.ResourceManager.DnsResolver - - sdk/dynatrace/Azure.ResourceManager.Dynatrace - - sdk/edgeorder/Azure.ResourceManager.EdgeOrder + - sdk/azurelargeinstance/Azure.ResourceManager.LargeInstance + - sdk/providerhub/Azure.ResourceManager.ProviderHub + - sdk/confluent/Azure.ResourceManager.Confluent + - sdk/machinelearningservices/Azure.ResourceManager.MachineLearning + - sdk/botservice/Azure.ResourceManager.BotService + - sdk/purview/Azure.ResourceManager.Purview + - sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters + - sdk/voiceservices/Azure.ResourceManager.VoiceServices + - sdk/databox/Azure.ResourceManager.DataBox + - sdk/healthbot/Azure.ResourceManager.HealthBot + - sdk/managednetwork/Azure.ResourceManager.ManagedNetwork + - sdk/support/Azure.ResourceManager.Support + - sdk/keyvault/Azure.ResourceManager.KeyVault + - sdk/signalr/Azure.ResourceManager.SignalR + - sdk/deviceupdate/Azure.ResourceManager.DeviceUpdate + - sdk/containerinstance/Azure.ResourceManager.ContainerInstance + - sdk/computefleet/Azure.ResourceManager.ComputeFleet + - sdk/loadtestservice/Azure.ResourceManager.LoadTesting + - sdk/automation/Azure.ResourceManager.Automation + - sdk/communication/Azure.ResourceManager.Communication + - sdk/springappdiscovery/Azure.ResourceManager.SpringAppDiscovery + - sdk/trustedsigning/Azure.ResourceManager.TrustedSigning + - sdk/sqlvirtualmachine/Azure.ResourceManager.SqlVirtualMachine + - sdk/datashare/Azure.ResourceManager.DataShare + - sdk/selfhelp/Azure.ResourceManager.SelfHelp + - sdk/changeanalysis/Azure.ResourceManager.ChangeAnalysis + - sdk/kusto/Azure.ResourceManager.Kusto + - sdk/cosmosdbforpostgresql/Azure.ResourceManager.CosmosDBForPostgreSql + - sdk/hdinsightcontainers/Azure.ResourceManager.HDInsight.Containers + - sdk/paloaltonetworks.ngfw/Azure.ResourceManager.PaloAltoNetworks.Ngfw - sdk/edgezones/Azure.ResourceManager.EdgeZones - - sdk/elastic/Azure.ResourceManager.Elastic - - sdk/elasticsan/Azure.ResourceManager.ElasticSan - - sdk/eventgrid/Azure.ResourceManager.EventGrid - - sdk/eventhub/Azure.ResourceManager.EventHubs - - sdk/extendedlocation/Azure.ResourceManager.ExtendedLocations - - sdk/fabric/Azure.ResourceManager.Fabric - - sdk/fleet/Azure.ResourceManager.ContainerServiceFleet - - sdk/fluidrelay/Azure.ResourceManager.FluidRelay - - sdk/frontdoor/Azure.ResourceManager.FrontDoor - - sdk/grafana/Azure.ResourceManager.Grafana - sdk/graphservices/Azure.ResourceManager.GraphServices + - sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery + - sdk/elastic/Azure.ResourceManager.Elastic - sdk/guestconfiguration/Azure.ResourceManager.GuestConfiguration - - sdk/hardwaresecuritymodules/Azure.ResourceManager.HardwareSecurityModules - - sdk/hdinsight/Azure.ResourceManager.HDInsight - - sdk/hdinsightcontainers/Azure.ResourceManager.HDInsight.Containers - - sdk/healthbot/Azure.ResourceManager.HealthBot - - sdk/healthcareapis/Azure.ResourceManager.HealthcareApis - - sdk/healthdataaiservices/Azure.ResourceManager.HealthDataAIServices + - sdk/netapp/Azure.ResourceManager.NetApp + - sdk/dnsresolver/Azure.ResourceManager.DnsResolver + - sdk/cognitiveservices/Azure.ResourceManager.CognitiveServices + - sdk/resourcehealth/Azure.ResourceManager.ResourceHealth - sdk/hybridaks/Azure.ResourceManager.HybridContainerService - - sdk/hybridcompute/Azure.ResourceManager.HybridCompute - - sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity - - sdk/hybridkubernetes/Azure.ResourceManager.Kubernetes - - sdk/hybridnetwork/Azure.ResourceManager.HybridNetwork - - sdk/informaticadatamanagement/Azure.ResourceManager.InformaticaDataManagement - - sdk/iot/Azure.ResourceManager.IotFirmwareDefense - - sdk/iotcentral/Azure.ResourceManager.IotCentral - - sdk/iothub/Azure.ResourceManager.IotHub - - sdk/keyvault/Azure.ResourceManager.KeyVault - - sdk/kubernetesconfiguration/Azure.ResourceManager.KubernetesConfiguration - - sdk/kusto/Azure.ResourceManager.Kusto - - sdk/labservices/Azure.ResourceManager.LabServices - - sdk/loadtestservice/Azure.ResourceManager.LoadTesting + - sdk/monitor/Azure.ResourceManager.Monitor + - sdk/storagepool/Azure.ResourceManager.StoragePool + - sdk/deviceregistry/Azure.ResourceManager.DeviceRegistry + - sdk/connectedvmwarevsphere/Azure.ResourceManager.ConnectedVMwarevSphere + - sdk/storagemover/Azure.ResourceManager.StorageMover + - sdk/appplatform/Azure.ResourceManager.AppPlatform + - sdk/recoveryservices/Azure.ResourceManager.RecoveryServices + - sdk/policyinsights/Azure.ResourceManager.PolicyInsights + - sdk/securitydevops/Azure.ResourceManager.SecurityDevOps + - sdk/securitycenter/Azure.ResourceManager.SecurityCenter + - sdk/billingbenefits/Azure.ResourceManager.BillingBenefits + - sdk/storage/Azure.ResourceManager.Storage - sdk/logic/Azure.ResourceManager.Logic - - sdk/machinelearningcompute/Azure.ResourceManager.MachineLearningCompute - - sdk/machinelearningservices/Azure.ResourceManager.MachineLearning - - sdk/maintenance/Azure.ResourceManager.Maintenance - - sdk/managednetwork/Azure.ResourceManager.ManagedNetwork - - sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric - - sdk/managedserviceidentity/Azure.ResourceManager.ManagedServiceIdentities + - sdk/reservations/Azure.ResourceManager.Reservations + - sdk/containerregistry/Azure.ResourceManager.ContainerRegistry + - sdk/sqlmanagement/Azure.ResourceManager.Sql - sdk/managedservices/Azure.ResourceManager.ManagedServices - - sdk/managementpartner/Azure.ResourceManager.ManagementPartner - - sdk/maps/Azure.ResourceManager.Maps - - sdk/marketplace/Azure.ResourceManager.Marketplace - - sdk/marketplaceordering/Azure.ResourceManager.MarketplaceOrdering - - sdk/mediaservices/Azure.ResourceManager.Media - - sdk/migrationdiscoverysap/Azure.ResourceManager.MigrationDiscoverySap - - sdk/mixedreality/Azure.ResourceManager.MixedReality - sdk/mobilenetwork/Azure.ResourceManager.MobileNetwork - - sdk/mongocluster/Azure.ResourceManager.MongoCluster - - sdk/monitor/Azure.ResourceManager.Monitor - - sdk/mysql/Azure.ResourceManager.MySql - - sdk/netapp/Azure.ResourceManager.NetApp - - sdk/network/Azure.ResourceManager.Network - - sdk/networkanalytics/Azure.ResourceManager.NetworkAnalytics + - sdk/mediaservices/Azure.ResourceManager.Media + - sdk/hybridnetwork/Azure.ResourceManager.HybridNetwork + - sdk/streamanalytics/Azure.ResourceManager.StreamAnalytics - sdk/networkcloud/Azure.ResourceManager.NetworkCloud - - sdk/networkfunction/Azure.ResourceManager.NetworkFunction - - sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability - - sdk/nginx/Azure.ResourceManager.Nginx - - sdk/notificationhubs/Azure.ResourceManager.NotificationHubs + - sdk/iotcentral/Azure.ResourceManager.IotCentral + - sdk/agrifood/Azure.ResourceManager.AgFoodPlatform + - sdk/kubernetesconfiguration/Azure.ResourceManager.KubernetesConfiguration + - sdk/standbypool/Azure.ResourceManager.StandbyPool + - sdk/maintenance/Azure.ResourceManager.Maintenance - sdk/openenergyplatform/Azure.ResourceManager.EnergyServices - - sdk/operationalinsights/Azure.ResourceManager.OperationalInsights - - sdk/oracle/Azure.ResourceManager.OracleDatabase - - sdk/orbital/Azure.ResourceManager.Orbital - - sdk/paloaltonetworks.ngfw/Azure.ResourceManager.PaloAltoNetworks.Ngfw + - sdk/hdinsight/Azure.ResourceManager.HDInsight + - sdk/automanage/Azure.ResourceManager.Automanage + - sdk/storagesync/Azure.ResourceManager.StorageSync + - sdk/trafficmanager/Azure.ResourceManager.TrafficManager + - sdk/dataprotection/Azure.ResourceManager.DataProtectionBackup + - sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity - sdk/peering/Azure.ResourceManager.Peering - - sdk/playwrighttesting/Azure.ResourceManager.PlaywrightTesting - - sdk/policyinsights/Azure.ResourceManager.PolicyInsights - - sdk/postgresql/Azure.ResourceManager.PostgreSql - - sdk/powerbidedicated/Azure.ResourceManager.PowerBIDedicated - - sdk/privatedns/Azure.ResourceManager.PrivateDns - - sdk/providerhub/Azure.ResourceManager.ProviderHub - - sdk/purview/Azure.ResourceManager.Purview - - sdk/quantum/Azure.ResourceManager.Quantum - - sdk/qumulo/Azure.ResourceManager.Qumulo - - sdk/quota/Azure.ResourceManager.Quota - - sdk/recoveryservices/Azure.ResourceManager.RecoveryServices - - sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup - - sdk/recoveryservices-datareplication/Azure.ResourceManager.RecoveryServicesDataReplication - - sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery - - sdk/redis/Azure.ResourceManager.Redis - - sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise - - sdk/relay/Azure.ResourceManager.Relay - - sdk/reservations/Azure.ResourceManager.Reservations - - sdk/resourceconnector/Azure.ResourceManager.ResourceConnector - - sdk/resourcegraph/Azure.ResourceManager.ResourceGraph - - sdk/resourcehealth/Azure.ResourceManager.ResourceHealth - - sdk/resourcemover/Azure.ResourceManager.ResourceMover - - sdk/resources/Azure.ResourceManager.Resources - - sdk/search/Azure.ResourceManager.Search - - sdk/securitycenter/Azure.ResourceManager.SecurityCenter - - sdk/securitydevops/Azure.ResourceManager.SecurityDevOps + - sdk/hybridkubernetes/Azure.ResourceManager.Kubernetes - sdk/securityinsights/Azure.ResourceManager.SecurityInsights - - sdk/selfhelp/Azure.ResourceManager.SelfHelp - - sdk/servicebus/Azure.ResourceManager.ServiceBus + - sdk/resourcegraph/Azure.ResourceManager.ResourceGraph + - sdk/healthcareapis/Azure.ResourceManager.HealthcareApis + - sdk/authorization/Azure.ResourceManager.Authorization + - sdk/migrationdiscoverysap/Azure.ResourceManager.MigrationDiscoverySap - sdk/servicefabric/Azure.ResourceManager.ServiceFabric - - sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters - - sdk/servicelinker/Azure.ResourceManager.ServiceLinker - - sdk/servicenetworking/Azure.ResourceManager.ServiceNetworking - - sdk/signalr/Azure.ResourceManager.SignalR - - sdk/sphere/Azure.ResourceManager.Sphere - - sdk/springappdiscovery/Azure.ResourceManager.SpringAppDiscovery - - sdk/sqlmanagement/Azure.ResourceManager.Sql - - sdk/sqlvirtualmachine/Azure.ResourceManager.SqlVirtualMachine - - sdk/standbypool/Azure.ResourceManager.StandbyPool - - sdk/storage/Azure.ResourceManager.Storage - - sdk/storageactions/Azure.ResourceManager.StorageActions - - sdk/storagecache/Azure.ResourceManager.StorageCache - - sdk/storagemover/Azure.ResourceManager.StorageMover - - sdk/storagepool/Azure.ResourceManager.StoragePool - - sdk/storagesync/Azure.ResourceManager.StorageSync - - sdk/streamanalytics/Azure.ResourceManager.StreamAnalytics - - sdk/subscription/Azure.ResourceManager.Subscription - - sdk/support/Azure.ResourceManager.Support - - sdk/synapse/Azure.ResourceManager.Synapse - - sdk/trafficmanager/Azure.ResourceManager.TrafficManager - - sdk/trustedsigning/Azure.ResourceManager.TrustedSigning - - sdk/voiceservices/Azure.ResourceManager.VoiceServices - - sdk/webpubsub/Azure.ResourceManager.WebPubSub - - sdk/websites/Azure.ResourceManager.AppService - - sdk/workloadmonitor/Azure.ResourceManager.WorkloadMonitor + - sdk/deviceprovisioningservices/Azure.ResourceManager.DeviceProvisioningServices + - sdk/attestation/Azure.ResourceManager.Attestation + - sdk/applicationinsights/Azure.ResourceManager.ApplicationInsights + - sdk/oracle/Azure.ResourceManager.OracleDatabase - sdk/workloads/Azure.ResourceManager.Workloads + - sdk/hardwaresecuritymodules/Azure.ResourceManager.HardwareSecurityModules + - sdk/resources/Azure.ResourceManager.Resources + - sdk/redis/Azure.ResourceManager.Redis extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml diff --git a/sdk/resourcemover/ci.mgmt.yml b/sdk/resourcemover/ci.mgmt.yml index 519b8a431926..bbb814c6a4f0 100644 --- a/sdk/resourcemover/ci.mgmt.yml +++ b/sdk/resourcemover/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/resourcemover/ci.mgmt.yml - sdk/resourcemover/Azure.ResourceManager.ResourceMover/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/resourcemover/ci.mgmt.yml + - sdk/resourcemover/Azure.ResourceManager.ResourceMover/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/resources/ci.mgmt.yml b/sdk/resources/ci.mgmt.yml index 3fefd5254c85..ff65cb96d07d 100644 --- a/sdk/resources/ci.mgmt.yml +++ b/sdk/resources/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/resources/ci.mgmt.yml - sdk/resources/Azure.ResourceManager.Resources/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/resources/ci.mgmt.yml + - sdk/resources/Azure.ResourceManager.Resources/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/search/ci.mgmt.yml b/sdk/search/ci.mgmt.yml index a8c2a632c1c8..63c0e200644f 100644 --- a/sdk/search/ci.mgmt.yml +++ b/sdk/search/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/search/ci.mgmt.yml - sdk/search/Azure.ResourceManager.Search/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/search/ci.mgmt.yml + - sdk/search/Azure.ResourceManager.Search/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/securitycenter/ci.mgmt.yml b/sdk/securitycenter/ci.mgmt.yml index c728522efab2..6ed8ff4d67a9 100644 --- a/sdk/securitycenter/ci.mgmt.yml +++ b/sdk/securitycenter/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/securitycenter/ci.mgmt.yml - sdk/securitycenter/Azure.ResourceManager.SecurityCenter/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/securitycenter/ci.mgmt.yml + - sdk/securitycenter/Azure.ResourceManager.SecurityCenter/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/securitydevops/ci.mgmt.yml b/sdk/securitydevops/ci.mgmt.yml index c5a54a9ad206..972d98a7376e 100644 --- a/sdk/securitydevops/ci.mgmt.yml +++ b/sdk/securitydevops/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/securitydevops/ci.mgmt.yml - sdk/securitydevops/Azure.ResourceManager.SecurityDevOps/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/securitydevops/ci.mgmt.yml + - sdk/securitydevops/Azure.ResourceManager.SecurityDevOps/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/securityinsights/ci.mgmt.yml b/sdk/securityinsights/ci.mgmt.yml index f1d428ebef90..0659cac2858f 100644 --- a/sdk/securityinsights/ci.mgmt.yml +++ b/sdk/securityinsights/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/securityinsights/ci.mgmt.yml - sdk/securityinsights/Azure.ResourceManager.SecurityInsights/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/securityinsights/ci.mgmt.yml + - sdk/securityinsights/Azure.ResourceManager.SecurityInsights/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/selfhelp/ci.mgmt.yml b/sdk/selfhelp/ci.mgmt.yml index bb6a162210eb..ac13ec845ce7 100644 --- a/sdk/selfhelp/ci.mgmt.yml +++ b/sdk/selfhelp/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/selfhelp/ci.mgmt.yml - sdk/selfhelp/Azure.ResourceManager.SelfHelp/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/selfhelp/ci.mgmt.yml + - sdk/selfhelp/Azure.ResourceManager.SelfHelp/ + extends: template: ../../eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/servicebus/ci.mgmt.yml b/sdk/servicebus/ci.mgmt.yml index 02c45dc88e18..f2ead205ced6 100644 --- a/sdk/servicebus/ci.mgmt.yml +++ b/sdk/servicebus/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/servicebus/ci.mgmt.yml - sdk/servicebus/Azure.ResourceManager.ServiceBus/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/servicebus/ci.mgmt.yml + - sdk/servicebus/Azure.ResourceManager.ServiceBus/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/servicefabric/ci.mgmt.yml b/sdk/servicefabric/ci.mgmt.yml index 430f48c8c87b..afc886a4f7f2 100644 --- a/sdk/servicefabric/ci.mgmt.yml +++ b/sdk/servicefabric/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/servicefabric/ci.mgmt.yml - sdk/servicefabric/Azure.ResourceManager.ServiceFabric/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/servicefabric/ci.mgmt.yml + - sdk/servicefabric/Azure.ResourceManager.ServiceFabric/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/servicefabricmanagedclusters/ci.mgmt.yml b/sdk/servicefabricmanagedclusters/ci.mgmt.yml index e73289f589f4..022ac0f03cd1 100644 --- a/sdk/servicefabricmanagedclusters/ci.mgmt.yml +++ b/sdk/servicefabricmanagedclusters/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/servicefabricmanagedclusters/ci.mgmt.yml - sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/servicefabricmanagedclusters/ci.mgmt.yml + - sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/servicelinker/ci.mgmt.yml b/sdk/servicelinker/ci.mgmt.yml index 77df314e977a..6069e04a3157 100644 --- a/sdk/servicelinker/ci.mgmt.yml +++ b/sdk/servicelinker/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/servicelinker/ci.mgmt.yml - sdk/servicelinker/Azure.ResourceManager.ServiceLinker/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/servicelinker/ci.mgmt.yml + - sdk/servicelinker/Azure.ResourceManager.ServiceLinker/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/servicenetworking/ci.mgmt.yml b/sdk/servicenetworking/ci.mgmt.yml index b2332ae15224..4551f1325475 100644 --- a/sdk/servicenetworking/ci.mgmt.yml +++ b/sdk/servicenetworking/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/servicenetworking/ci.mgmt.yml - sdk/servicenetworking/Azure.ResourceManager.ServiceNetworking/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/servicenetworking/ci.mgmt.yml + - sdk/servicenetworking/Azure.ResourceManager.ServiceNetworking/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/signalr/ci.mgmt.yml b/sdk/signalr/ci.mgmt.yml index c934ed4314fa..f066849c56a1 100644 --- a/sdk/signalr/ci.mgmt.yml +++ b/sdk/signalr/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/signalr/ci.mgmt.yml - sdk/signalr/Azure.ResourceManager.SignalR/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/signalr/ci.mgmt.yml + - sdk/signalr/Azure.ResourceManager.SignalR/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/sphere/ci.mgmt.yml b/sdk/sphere/ci.mgmt.yml index f3f33e9d00f4..749774244735 100644 --- a/sdk/sphere/ci.mgmt.yml +++ b/sdk/sphere/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/sphere/ci.mgmt.yml - sdk/sphere/Azure.ResourceManager.Sphere/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/sphere/ci.mgmt.yml + - sdk/sphere/Azure.ResourceManager.Sphere/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/springappdiscovery/ci.mgmt.yml b/sdk/springappdiscovery/ci.mgmt.yml index 7676386684df..f86c14368089 100644 --- a/sdk/springappdiscovery/ci.mgmt.yml +++ b/sdk/springappdiscovery/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/springappdiscovery/ci.mgmt.yml - sdk/springappdiscovery/Azure.ResourceManager.SpringAppDiscovery/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/springappdiscovery/ci.mgmt.yml + - sdk/springappdiscovery/Azure.ResourceManager.SpringAppDiscovery/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/sqlmanagement/ci.mgmt.yml b/sdk/sqlmanagement/ci.mgmt.yml index da93d03f2d33..8377a2663681 100644 --- a/sdk/sqlmanagement/ci.mgmt.yml +++ b/sdk/sqlmanagement/ci.mgmt.yml @@ -2,6 +2,7 @@ # This file is generated automatically and any changes will be lost. trigger: none + pr: branches: include: @@ -14,6 +15,18 @@ pr: - sdk/sqlmanagement/ci.mgmt.yml - sdk/sqlmanagement/Azure.ResourceManager.Sql/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/sqlmanagement/ci.mgmt.yml + - sdk/sqlmanagement/Azure.ResourceManager.Sql/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/sqlvirtualmachine/ci.mgmt.yml b/sdk/sqlvirtualmachine/ci.mgmt.yml index 28c6192fa86b..049e315855ed 100644 --- a/sdk/sqlvirtualmachine/ci.mgmt.yml +++ b/sdk/sqlvirtualmachine/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/sqlvirtualmachine/ci.mgmt.yml - sdk/sqlvirtualmachine/Azure.ResourceManager.SqlVirtualMachine/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/sqlvirtualmachine/ci.mgmt.yml + - sdk/sqlvirtualmachine/Azure.ResourceManager.SqlVirtualMachine/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/standbypool/ci.mgmt.yml b/sdk/standbypool/ci.mgmt.yml index 0763a516e2c1..54ce1137a123 100644 --- a/sdk/standbypool/ci.mgmt.yml +++ b/sdk/standbypool/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/standbypool/ci.mgmt.yml - sdk/standbypool/Azure.ResourceManager.StandbyPool/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/standbypool/ci.mgmt.yml + - sdk/standbypool/Azure.ResourceManager.StandbyPool/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/storage/ci.mgmt.yml b/sdk/storage/ci.mgmt.yml index 95bc19b325d5..6f05608983be 100644 --- a/sdk/storage/ci.mgmt.yml +++ b/sdk/storage/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/storage/ci.mgmt.yml - sdk/storage/Azure.ResourceManager.Storage/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/storage/ci.mgmt.yml + - sdk/storage/Azure.ResourceManager.Storage/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/storageactions/ci.mgmt.yml b/sdk/storageactions/ci.mgmt.yml index 27062b4565a8..b27838343a2e 100644 --- a/sdk/storageactions/ci.mgmt.yml +++ b/sdk/storageactions/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/storageactions/ci.mgmt.yml - sdk/storageactions/Azure.ResourceManager.StorageActions/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/storageactions/ci.mgmt.yml + - sdk/storageactions/Azure.ResourceManager.StorageActions/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/storagecache/ci.mgmt.yml b/sdk/storagecache/ci.mgmt.yml index c6abf63baf2c..84c922940939 100644 --- a/sdk/storagecache/ci.mgmt.yml +++ b/sdk/storagecache/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/storagecache/ci.mgmt.yml - sdk/storagecache/Azure.ResourceManager.StorageCache/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/storagecache/ci.mgmt.yml + - sdk/storagecache/Azure.ResourceManager.StorageCache/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/storagemover/ci.mgmt.yml b/sdk/storagemover/ci.mgmt.yml index e9055f49e1a9..4e45261a60aa 100644 --- a/sdk/storagemover/ci.mgmt.yml +++ b/sdk/storagemover/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/storagemover/ci.mgmt.yml - sdk/storagemover/Azure.ResourceManager.StorageMover/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/storagemover/ci.mgmt.yml + - sdk/storagemover/Azure.ResourceManager.StorageMover/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/storagepool/ci.mgmt.yml b/sdk/storagepool/ci.mgmt.yml index 2178fc390757..6592a12a262a 100644 --- a/sdk/storagepool/ci.mgmt.yml +++ b/sdk/storagepool/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/storagepool/ci.mgmt.yml - sdk/storagepool/Azure.ResourceManager.StoragePool/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/storagepool/ci.mgmt.yml + - sdk/storagepool/Azure.ResourceManager.StoragePool/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/storagesync/ci.mgmt.yml b/sdk/storagesync/ci.mgmt.yml index a8789947c687..b9fcbb66b30f 100644 --- a/sdk/storagesync/ci.mgmt.yml +++ b/sdk/storagesync/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/storagesync/ci.mgmt.yml - sdk/storagesync/Azure.ResourceManager.StorageSync/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/storagesync/ci.mgmt.yml + - sdk/storagesync/Azure.ResourceManager.StorageSync/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/streamanalytics/ci.mgmt.yml b/sdk/streamanalytics/ci.mgmt.yml index 09d108a1a7d9..860cd851bbd1 100644 --- a/sdk/streamanalytics/ci.mgmt.yml +++ b/sdk/streamanalytics/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/streamanalytics/ci.mgmt.yml - sdk/streamanalytics/Azure.ResourceManager.StreamAnalytics/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/streamanalytics/ci.mgmt.yml + - sdk/streamanalytics/Azure.ResourceManager.StreamAnalytics/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/subscription/ci.mgmt.yml b/sdk/subscription/ci.mgmt.yml index f9067b4c0af3..a00a0e9c56ad 100644 --- a/sdk/subscription/ci.mgmt.yml +++ b/sdk/subscription/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/subscription/ci.mgmt.yml - sdk/subscription/Azure.ResourceManager.Subscription/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/subscription/ci.mgmt.yml + - sdk/subscription/Azure.ResourceManager.Subscription/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/support/ci.mgmt.yml b/sdk/support/ci.mgmt.yml index 5a947c4c4939..d5c857ad8346 100644 --- a/sdk/support/ci.mgmt.yml +++ b/sdk/support/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/support/ci.mgmt.yml - sdk/support/Azure.ResourceManager.Support/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/support/ci.mgmt.yml + - sdk/support/Azure.ResourceManager.Support/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/synapse/ci.mgmt.yml b/sdk/synapse/ci.mgmt.yml index 0a089a504291..18c8132c4803 100644 --- a/sdk/synapse/ci.mgmt.yml +++ b/sdk/synapse/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/synapse/ci.mgmt.yml - sdk/synapse/Azure.ResourceManager.Synapse/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/synapse/ci.mgmt.yml + - sdk/synapse/Azure.ResourceManager.Synapse/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/trafficmanager/ci.mgmt.yml b/sdk/trafficmanager/ci.mgmt.yml index 528f78b70b96..86b17c08ac4e 100644 --- a/sdk/trafficmanager/ci.mgmt.yml +++ b/sdk/trafficmanager/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/trafficmanager/ci.mgmt.yml - sdk/trafficmanager/Azure.ResourceManager.TrafficManager/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/trafficmanager/ci.mgmt.yml + - sdk/trafficmanager/Azure.ResourceManager.TrafficManager/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/trustedsigning/ci.mgmt.yml b/sdk/trustedsigning/ci.mgmt.yml index 5b67358a4477..07fb171ee416 100644 --- a/sdk/trustedsigning/ci.mgmt.yml +++ b/sdk/trustedsigning/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/trustedsigning/ci.mgmt.yml - sdk/trustedsigning/Azure.ResourceManager.TrustedSigning/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/trustedsigning/ci.mgmt.yml + - sdk/trustedsigning/Azure.ResourceManager.TrustedSigning/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/voiceservices/ci.mgmt.yml b/sdk/voiceservices/ci.mgmt.yml index a914d1640296..64ea2eb63c0f 100644 --- a/sdk/voiceservices/ci.mgmt.yml +++ b/sdk/voiceservices/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/voiceservices/ci.mgmt.yml - sdk/voiceservices/Azure.ResourceManager.VoiceServices/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/voiceservices/ci.mgmt.yml + - sdk/voiceservices/Azure.ResourceManager.VoiceServices/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/webpubsub/ci.mgmt.yml b/sdk/webpubsub/ci.mgmt.yml index 6bcb8439a2b0..a312a96feb5a 100644 --- a/sdk/webpubsub/ci.mgmt.yml +++ b/sdk/webpubsub/ci.mgmt.yml @@ -1,5 +1,6 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -12,6 +13,18 @@ pr: - sdk/webpubsub/ci.mgmt.yml - sdk/webpubsub/Azure.ResourceManager.WebPubSub/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/webpubsub/ci.mgmt.yml + - sdk/webpubsub/Azure.ResourceManager.WebPubSub/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/websites/ci.mgmt.yml b/sdk/websites/ci.mgmt.yml index d67c580bc414..4dbf184acc87 100644 --- a/sdk/websites/ci.mgmt.yml +++ b/sdk/websites/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/websites/ci.mgmt.yml - sdk/websites/Azure.ResourceManager.AppService/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/websites/ci.mgmt.yml + - sdk/websites/Azure.ResourceManager.AppService/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/workloadmonitor/ci.mgmt.yml b/sdk/workloadmonitor/ci.mgmt.yml index 7c6a51fbe75c..e834be340ea9 100644 --- a/sdk/workloadmonitor/ci.mgmt.yml +++ b/sdk/workloadmonitor/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/workloadmonitor/ci.mgmt.yml - sdk/workloadmonitor/Azure.ResourceManager.WorkloadMonitor/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/workloadmonitor/ci.mgmt.yml + - sdk/workloadmonitor/Azure.ResourceManager.WorkloadMonitor/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/workloads/ci.mgmt.yml b/sdk/workloads/ci.mgmt.yml index e3457d69ceaa..bf3983053473 100644 --- a/sdk/workloads/ci.mgmt.yml +++ b/sdk/workloads/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/workloads/ci.mgmt.yml - sdk/workloads/Azure.ResourceManager.Workloads/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/workloads/ci.mgmt.yml + - sdk/workloads/Azure.ResourceManager.Workloads/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: