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/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/Azure.ResourceManager.Compute/api/Azure.ResourceManager.Compute.net8.0.cs b/sdk/compute/Azure.ResourceManager.Compute/api/Azure.ResourceManager.Compute.net8.0.cs index 0558ee99e44a..8df10126bd05 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/api/Azure.ResourceManager.Compute.net8.0.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/api/Azure.ResourceManager.Compute.net8.0.cs @@ -719,6 +719,8 @@ public static partial class ComputeExtensions public static System.Threading.Tasks.Task> GetGalleryAsync(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string galleryName, Azure.ResourceManager.Compute.Models.SelectPermission? select = default(Azure.ResourceManager.Compute.Models.SelectPermission?), Azure.ResourceManager.Compute.Models.GalleryExpand? expand = default(Azure.ResourceManager.Compute.Models.GalleryExpand?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public static Azure.ResourceManager.Compute.GalleryImageResource GetGalleryImageResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } public static Azure.ResourceManager.Compute.GalleryImageVersionResource GetGalleryImageVersionResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } + public static Azure.ResourceManager.Compute.GalleryInVmAccessControlProfileResource GetGalleryInVmAccessControlProfileResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } + public static Azure.ResourceManager.Compute.GalleryInVmAccessControlProfileVersionResource GetGalleryInVmAccessControlProfileVersionResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } public static Azure.ResourceManager.Compute.GalleryResource GetGalleryResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } public static Azure.Response GetManagedDisk(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string diskName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public static System.Threading.Tasks.Task> GetManagedDiskAsync(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string diskName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } @@ -1386,6 +1388,7 @@ public partial class GalleryData : Azure.ResourceManager.Models.TrackedResourceD public GalleryData(Azure.Core.AzureLocation location) { } public string Description { get { throw null; } set { } } public string IdentifierUniqueName { get { throw null; } } + public Azure.ResourceManager.Models.ManagedServiceIdentity Identity { get { throw null; } set { } } public bool? IsSoftDeleteEnabled { get { throw null; } set { } } public Azure.ResourceManager.Compute.Models.GalleryProvisioningState? ProvisioningState { get { throw null; } } public Azure.ResourceManager.Compute.Models.SharingProfile SharingProfile { get { throw null; } set { } } @@ -1417,6 +1420,7 @@ protected GalleryImageCollection() { } public partial class GalleryImageData : Azure.ResourceManager.Models.TrackedResourceData, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { public GalleryImageData(Azure.Core.AzureLocation location) { } + public bool? AllowUpdateImage { get { throw null; } set { } } public Azure.ResourceManager.Compute.Models.ArchitectureType? Architecture { get { throw null; } set { } } public string Description { get { throw null; } set { } } public System.Collections.Generic.IList DisallowedDiskTypes { get { throw null; } } @@ -1490,9 +1494,11 @@ public GalleryImageVersionData(Azure.Core.AzureLocation location) { } public Azure.ResourceManager.Compute.Models.GalleryProvisioningState? ProvisioningState { get { throw null; } } public Azure.ResourceManager.Compute.Models.GalleryImageVersionPublishingProfile PublishingProfile { get { throw null; } set { } } public Azure.ResourceManager.Compute.Models.ReplicationStatus ReplicationStatus { get { throw null; } } + public bool? Restore { get { throw null; } set { } } public Azure.ResourceManager.Compute.Models.GalleryImageVersionSafetyProfile SafetyProfile { get { throw null; } set { } } public Azure.ResourceManager.Compute.Models.GalleryImageVersionUefiSettings SecurityUefiSettings { get { throw null; } set { } } public Azure.ResourceManager.Compute.Models.GalleryImageVersionStorageProfile StorageProfile { get { throw null; } set { } } + public Azure.ResourceManager.Compute.Models.ValidationsProfile ValidationsProfile { get { throw null; } } protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.ResourceManager.Compute.GalleryImageVersionData 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) { } @@ -1525,6 +1531,122 @@ protected GalleryImageVersionResource() { } public virtual Azure.ResourceManager.ArmOperation Update(Azure.WaitUntil waitUntil, Azure.ResourceManager.Compute.Models.GalleryImageVersionPatch patch, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.Compute.Models.GalleryImageVersionPatch patch, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } } + public partial class GalleryInVmAccessControlProfileCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable + { + protected GalleryInVmAccessControlProfileCollection() { } + public virtual Azure.ResourceManager.ArmOperation CreateOrUpdate(Azure.WaitUntil waitUntil, string inVmAccessControlProfileName, Azure.ResourceManager.Compute.GalleryInVmAccessControlProfileData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, string inVmAccessControlProfileName, Azure.ResourceManager.Compute.GalleryInVmAccessControlProfileData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Exists(string inVmAccessControlProfileName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> ExistsAsync(string inVmAccessControlProfileName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Get(string inVmAccessControlProfileName, 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 inVmAccessControlProfileName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.NullableResponse GetIfExists(string inVmAccessControlProfileName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetIfExistsAsync(string inVmAccessControlProfileName, 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 GalleryInVmAccessControlProfileData : Azure.ResourceManager.Models.TrackedResourceData, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public GalleryInVmAccessControlProfileData(Azure.Core.AzureLocation location) { } + public Azure.ResourceManager.Compute.Models.GalleryInVmAccessControlProfileProperties Properties { get { throw null; } set { } } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.Compute.GalleryInVmAccessControlProfileData 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.Compute.GalleryInVmAccessControlProfileData 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 GalleryInVmAccessControlProfileResource : Azure.ResourceManager.ArmResource, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public static readonly Azure.Core.ResourceType ResourceType; + protected GalleryInVmAccessControlProfileResource() { } + public virtual Azure.ResourceManager.Compute.GalleryInVmAccessControlProfileData 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 galleryName, string inVmAccessControlProfileName) { 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 GetGalleryInVmAccessControlProfileVersion(string inVmAccessControlProfileVersionName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetGalleryInVmAccessControlProfileVersionAsync(string inVmAccessControlProfileVersionName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.Compute.GalleryInVmAccessControlProfileVersionCollection GetGalleryInVmAccessControlProfileVersions() { 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.Compute.GalleryInVmAccessControlProfileData 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.Compute.GalleryInVmAccessControlProfileData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + public virtual Azure.ResourceManager.ArmOperation Update(Azure.WaitUntil waitUntil, Azure.ResourceManager.Compute.Models.GalleryInVmAccessControlProfilePatch patch, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.Compute.Models.GalleryInVmAccessControlProfilePatch patch, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + } + public partial class GalleryInVmAccessControlProfileVersionCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable + { + protected GalleryInVmAccessControlProfileVersionCollection() { } + public virtual Azure.ResourceManager.ArmOperation CreateOrUpdate(Azure.WaitUntil waitUntil, string inVmAccessControlProfileVersionName, Azure.ResourceManager.Compute.GalleryInVmAccessControlProfileVersionData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, string inVmAccessControlProfileVersionName, Azure.ResourceManager.Compute.GalleryInVmAccessControlProfileVersionData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Exists(string inVmAccessControlProfileVersionName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> ExistsAsync(string inVmAccessControlProfileVersionName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Get(string inVmAccessControlProfileVersionName, 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 inVmAccessControlProfileVersionName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.NullableResponse GetIfExists(string inVmAccessControlProfileVersionName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetIfExistsAsync(string inVmAccessControlProfileVersionName, 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 GalleryInVmAccessControlProfileVersionData : Azure.ResourceManager.Models.TrackedResourceData, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public GalleryInVmAccessControlProfileVersionData(Azure.Core.AzureLocation location) { } + public Azure.ResourceManager.Compute.Models.EndpointAccess? DefaultAccess { get { throw null; } set { } } + public bool? ExcludeFromLatest { get { throw null; } set { } } + public Azure.ResourceManager.Compute.Models.AccessControlRulesMode? Mode { get { throw null; } set { } } + public Azure.ResourceManager.Compute.Models.GalleryProvisioningState? ProvisioningState { get { throw null; } } + public System.DateTimeOffset? PublishedOn { get { throw null; } } + public Azure.ResourceManager.Compute.Models.ReplicationStatus ReplicationStatus { get { throw null; } } + public Azure.ResourceManager.Compute.Models.AccessControlRules Rules { get { throw null; } set { } } + public System.Collections.Generic.IList TargetLocations { get { throw null; } } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.Compute.GalleryInVmAccessControlProfileVersionData 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.Compute.GalleryInVmAccessControlProfileVersionData 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 GalleryInVmAccessControlProfileVersionResource : Azure.ResourceManager.ArmResource, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public static readonly Azure.Core.ResourceType ResourceType; + protected GalleryInVmAccessControlProfileVersionResource() { } + public virtual Azure.ResourceManager.Compute.GalleryInVmAccessControlProfileVersionData 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 galleryName, string inVmAccessControlProfileName, string inVmAccessControlProfileVersionName) { 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.Compute.GalleryInVmAccessControlProfileVersionData 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.Compute.GalleryInVmAccessControlProfileVersionData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + public virtual Azure.ResourceManager.ArmOperation Update(Azure.WaitUntil waitUntil, Azure.ResourceManager.Compute.Models.GalleryInVmAccessControlProfileVersionPatch patch, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.Compute.Models.GalleryInVmAccessControlProfileVersionPatch patch, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + } public partial class GalleryResource : Azure.ResourceManager.ArmResource, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { public static readonly Azure.Core.ResourceType ResourceType; @@ -1544,6 +1666,11 @@ protected GalleryResource() { } public virtual Azure.Response GetGalleryImage(string galleryImageName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> GetGalleryImageAsync(string galleryImageName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.ResourceManager.Compute.GalleryImageCollection GetGalleryImages() { throw null; } + public virtual Azure.Response GetGalleryInVmAccessControlProfile(string inVmAccessControlProfileName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetGalleryInVmAccessControlProfileAsync(string inVmAccessControlProfileName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.Compute.GalleryInVmAccessControlProfileCollection GetGalleryInVmAccessControlProfiles() { throw null; } + public virtual Azure.Pageable GetSoftDeletedResourcesByArtifactName(string artifactType, string artifactName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.AsyncPageable GetSoftDeletedResourcesByArtifactNameAsync(string artifactType, string artifactName, 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; } @@ -2978,6 +3105,8 @@ protected MockableComputeArmClient() { } public virtual Azure.ResourceManager.Compute.GalleryApplicationVersionResource GetGalleryApplicationVersionResource(Azure.Core.ResourceIdentifier id) { throw null; } public virtual Azure.ResourceManager.Compute.GalleryImageResource GetGalleryImageResource(Azure.Core.ResourceIdentifier id) { throw null; } public virtual Azure.ResourceManager.Compute.GalleryImageVersionResource GetGalleryImageVersionResource(Azure.Core.ResourceIdentifier id) { throw null; } + public virtual Azure.ResourceManager.Compute.GalleryInVmAccessControlProfileResource GetGalleryInVmAccessControlProfileResource(Azure.Core.ResourceIdentifier id) { throw null; } + public virtual Azure.ResourceManager.Compute.GalleryInVmAccessControlProfileVersionResource GetGalleryInVmAccessControlProfileVersionResource(Azure.Core.ResourceIdentifier id) { throw null; } public virtual Azure.ResourceManager.Compute.GalleryResource GetGalleryResource(Azure.Core.ResourceIdentifier id) { throw null; } public virtual Azure.ResourceManager.Compute.ManagedDiskResource GetManagedDiskResource(Azure.Core.ResourceIdentifier id) { throw null; } public virtual Azure.ResourceManager.Compute.ProximityPlacementGroupResource GetProximityPlacementGroupResource(Azure.Core.ResourceIdentifier id) { throw null; } @@ -3154,6 +3283,91 @@ protected MockableComputeSubscriptionResource() { } } namespace Azure.ResourceManager.Compute.Models { + public partial class AccessControlRules : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public AccessControlRules() { } + public System.Collections.Generic.IList Identities { get { throw null; } } + public System.Collections.Generic.IList Privileges { get { throw null; } } + public System.Collections.Generic.IList RoleAssignments { get { throw null; } } + public System.Collections.Generic.IList Roles { get { throw null; } } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.Compute.Models.AccessControlRules 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.Compute.Models.AccessControlRules 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 AccessControlRulesIdentity : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public AccessControlRulesIdentity(string name) { } + public string ExePath { get { throw null; } set { } } + public string GroupName { get { throw null; } set { } } + public string Name { get { throw null; } set { } } + public string ProcessName { get { throw null; } set { } } + public string UserName { get { throw null; } set { } } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.Compute.Models.AccessControlRulesIdentity 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.Compute.Models.AccessControlRulesIdentity 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 AccessControlRulesMode : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public AccessControlRulesMode(string value) { throw null; } + public static Azure.ResourceManager.Compute.Models.AccessControlRulesMode Audit { get { throw null; } } + public static Azure.ResourceManager.Compute.Models.AccessControlRulesMode Disabled { get { throw null; } } + public static Azure.ResourceManager.Compute.Models.AccessControlRulesMode Enforce { get { throw null; } } + public bool Equals(Azure.ResourceManager.Compute.Models.AccessControlRulesMode 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.Compute.Models.AccessControlRulesMode left, Azure.ResourceManager.Compute.Models.AccessControlRulesMode right) { throw null; } + public static implicit operator Azure.ResourceManager.Compute.Models.AccessControlRulesMode (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.Compute.Models.AccessControlRulesMode left, Azure.ResourceManager.Compute.Models.AccessControlRulesMode right) { throw null; } + public override string ToString() { throw null; } + } + public partial class AccessControlRulesPrivilege : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public AccessControlRulesPrivilege(string name, string path) { } + public string Name { get { throw null; } set { } } + public string Path { get { throw null; } set { } } + public System.Collections.Generic.IDictionary QueryParameters { get { throw null; } } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.Compute.Models.AccessControlRulesPrivilege 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.Compute.Models.AccessControlRulesPrivilege 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 AccessControlRulesRole : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public AccessControlRulesRole(string name, System.Collections.Generic.IEnumerable privileges) { } + public string Name { get { throw null; } set { } } + public System.Collections.Generic.IList Privileges { get { throw null; } } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.Compute.Models.AccessControlRulesRole 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.Compute.Models.AccessControlRulesRole 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 AccessControlRulesRoleAssignment : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public AccessControlRulesRoleAssignment(string role, System.Collections.Generic.IEnumerable identities) { } + public System.Collections.Generic.IList Identities { get { throw null; } } + public string Role { get { throw null; } set { } } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.Compute.Models.AccessControlRulesRoleAssignment 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.Compute.Models.AccessControlRulesRoleAssignment 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 AccessLevel : System.IEquatable { @@ -3197,6 +3411,18 @@ 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 AdditionalReplicaSet : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public AdditionalReplicaSet() { } + public int? RegionalReplicaCount { get { throw null; } set { } } + public Azure.ResourceManager.Compute.Models.ImageStorageAccountType? StorageAccountType { get { throw null; } set { } } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.Compute.Models.AdditionalReplicaSet 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.Compute.Models.AdditionalReplicaSet 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 AdditionalUnattendContent : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { public AdditionalUnattendContent() { } @@ -3332,26 +3558,48 @@ public static partial class ArmComputeModelFactory public static Azure.ResourceManager.Compute.Models.DiskRestorePointInstanceView DiskRestorePointInstanceView(string id = null, Azure.ResourceManager.Compute.Models.DiskRestorePointReplicationStatus replicationStatus = null) { throw null; } public static Azure.ResourceManager.Compute.Models.DiskRestorePointReplicationStatus DiskRestorePointReplicationStatus(Azure.ResourceManager.Compute.Models.InstanceViewStatus status = null, int? completionPercent = default(int?)) { throw null; } public static Azure.ResourceManager.Compute.Models.DiskSku DiskSku(Azure.ResourceManager.Compute.Models.DiskStorageAccountType? name = default(Azure.ResourceManager.Compute.Models.DiskStorageAccountType?), string tier = null) { throw null; } + public static Azure.ResourceManager.Compute.Models.ExecutedValidation ExecutedValidation(string executedValidationType = null, Azure.ResourceManager.Compute.Models.ValidationStatus? status = default(Azure.ResourceManager.Compute.Models.ValidationStatus?), string version = null, System.DateTimeOffset? executionOn = default(System.DateTimeOffset?)) { throw null; } public static Azure.ResourceManager.Compute.GalleryApplicationData GalleryApplicationData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, System.Collections.Generic.IDictionary tags = null, Azure.Core.AzureLocation location = default(Azure.Core.AzureLocation), string description = null, string eula = null, System.Uri privacyStatementUri = null, System.Uri releaseNoteUri = null, System.DateTimeOffset? endOfLifeOn = default(System.DateTimeOffset?), Azure.ResourceManager.Compute.Models.SupportedOperatingSystemType? supportedOSType = default(Azure.ResourceManager.Compute.Models.SupportedOperatingSystemType?), System.Collections.Generic.IEnumerable customActions = null) { throw null; } public static Azure.ResourceManager.Compute.Models.GalleryApplicationPatch GalleryApplicationPatch(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, string description = null, string eula = null, System.Uri privacyStatementUri = null, System.Uri releaseNoteUri = null, System.DateTimeOffset? endOfLifeOn = default(System.DateTimeOffset?), Azure.ResourceManager.Compute.Models.SupportedOperatingSystemType? supportedOSType = default(Azure.ResourceManager.Compute.Models.SupportedOperatingSystemType?), System.Collections.Generic.IEnumerable customActions = null, System.Collections.Generic.IDictionary tags = null) { throw null; } public static Azure.ResourceManager.Compute.GalleryApplicationVersionData GalleryApplicationVersionData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, System.Collections.Generic.IDictionary tags = null, Azure.Core.AzureLocation location = default(Azure.Core.AzureLocation), Azure.ResourceManager.Compute.Models.GalleryApplicationVersionPublishingProfile publishingProfile = null, bool? allowDeletionOfReplicatedLocations = default(bool?), Azure.ResourceManager.Compute.Models.GalleryProvisioningState? provisioningState = default(Azure.ResourceManager.Compute.Models.GalleryProvisioningState?), Azure.ResourceManager.Compute.Models.ReplicationStatus replicationStatus = null) { throw null; } public static Azure.ResourceManager.Compute.Models.GalleryApplicationVersionPatch GalleryApplicationVersionPatch(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.Compute.Models.GalleryApplicationVersionPublishingProfile publishingProfile = null, bool? allowDeletionOfReplicatedLocations = default(bool?), Azure.ResourceManager.Compute.Models.GalleryProvisioningState? provisioningState = default(Azure.ResourceManager.Compute.Models.GalleryProvisioningState?), Azure.ResourceManager.Compute.Models.ReplicationStatus replicationStatus = null, System.Collections.Generic.IDictionary tags = null) { throw null; } public static Azure.ResourceManager.Compute.Models.GalleryApplicationVersionPublishingProfile GalleryApplicationVersionPublishingProfile(System.Collections.Generic.IEnumerable targetRegions = null, int? replicaCount = default(int?), bool? isExcludedFromLatest = default(bool?), System.DateTimeOffset? publishedOn = default(System.DateTimeOffset?), System.DateTimeOffset? endOfLifeOn = default(System.DateTimeOffset?), Azure.ResourceManager.Compute.Models.ImageStorageAccountType? storageAccountType = default(Azure.ResourceManager.Compute.Models.ImageStorageAccountType?), Azure.ResourceManager.Compute.Models.GalleryReplicationMode? replicationMode = default(Azure.ResourceManager.Compute.Models.GalleryReplicationMode?), System.Collections.Generic.IEnumerable targetExtendedLocations = null, Azure.ResourceManager.Compute.Models.UserArtifactSource source = null, Azure.ResourceManager.Compute.Models.UserArtifactManagement manageActions = null, Azure.ResourceManager.Compute.Models.UserArtifactSettings settings = null, System.Collections.Generic.IDictionary advancedSettings = null, bool? enableHealthCheck = default(bool?), System.Collections.Generic.IEnumerable customActions = null) { throw null; } public static Azure.ResourceManager.Compute.Models.GalleryArtifactPublishingProfileBase GalleryArtifactPublishingProfileBase(System.Collections.Generic.IEnumerable targetRegions = null, int? replicaCount = default(int?), bool? isExcludedFromLatest = default(bool?), System.DateTimeOffset? publishedOn = default(System.DateTimeOffset?), System.DateTimeOffset? endOfLifeOn = default(System.DateTimeOffset?), Azure.ResourceManager.Compute.Models.ImageStorageAccountType? storageAccountType = default(Azure.ResourceManager.Compute.Models.ImageStorageAccountType?), Azure.ResourceManager.Compute.Models.GalleryReplicationMode? replicationMode = default(Azure.ResourceManager.Compute.Models.GalleryReplicationMode?), System.Collections.Generic.IEnumerable targetExtendedLocations = null) { throw null; } - public static Azure.ResourceManager.Compute.GalleryData GalleryData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, System.Collections.Generic.IDictionary tags = null, Azure.Core.AzureLocation location = default(Azure.Core.AzureLocation), string description = null, string identifierUniqueName = null, Azure.ResourceManager.Compute.Models.GalleryProvisioningState? provisioningState = default(Azure.ResourceManager.Compute.Models.GalleryProvisioningState?), Azure.ResourceManager.Compute.Models.SharingProfile sharingProfile = null, bool? isSoftDeleteEnabled = default(bool?), Azure.ResourceManager.Compute.Models.SharingStatus sharingStatus = null) { throw null; } + public static Azure.ResourceManager.Compute.GalleryData GalleryData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, System.Collections.Generic.IDictionary tags = null, Azure.Core.AzureLocation location = default(Azure.Core.AzureLocation), Azure.ResourceManager.Models.ManagedServiceIdentity identity = null, string description = null, string identifierUniqueName = null, Azure.ResourceManager.Compute.Models.GalleryProvisioningState? provisioningState = default(Azure.ResourceManager.Compute.Models.GalleryProvisioningState?), Azure.ResourceManager.Compute.Models.SharingProfile sharingProfile = null, bool? isSoftDeleteEnabled = default(bool?), Azure.ResourceManager.Compute.Models.SharingStatus sharingStatus = null) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public static Azure.ResourceManager.Compute.GalleryData GalleryData(Azure.Core.ResourceIdentifier id, string name, Azure.Core.ResourceType resourceType, Azure.ResourceManager.Models.SystemData systemData, System.Collections.Generic.IDictionary tags, Azure.Core.AzureLocation location, string description, string identifierUniqueName, Azure.ResourceManager.Compute.Models.GalleryProvisioningState? provisioningState, Azure.ResourceManager.Compute.Models.SharingProfile sharingProfile, bool? isSoftDeleteEnabled, Azure.ResourceManager.Compute.Models.SharingStatus sharingStatus) { throw null; } public static Azure.ResourceManager.Compute.Models.GalleryDataDiskImage GalleryDataDiskImage(int? sizeInGB = default(int?), Azure.ResourceManager.Compute.Models.HostCaching? hostCaching = default(Azure.ResourceManager.Compute.Models.HostCaching?), Azure.ResourceManager.Compute.Models.GalleryDiskImageSource gallerySource = null, int lun = 0) { throw null; } public static Azure.ResourceManager.Compute.Models.GalleryDiskImage GalleryDiskImage(int? sizeInGB = default(int?), Azure.ResourceManager.Compute.Models.HostCaching? hostCaching = default(Azure.ResourceManager.Compute.Models.HostCaching?), Azure.ResourceManager.Compute.Models.GalleryDiskImageSource gallerySource = null) { throw null; } - public static Azure.ResourceManager.Compute.GalleryImageData GalleryImageData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, System.Collections.Generic.IDictionary tags = null, Azure.Core.AzureLocation location = default(Azure.Core.AzureLocation), string description = null, string eula = null, System.Uri privacyStatementUri = null, System.Uri releaseNoteUri = null, Azure.ResourceManager.Compute.Models.SupportedOperatingSystemType? osType = default(Azure.ResourceManager.Compute.Models.SupportedOperatingSystemType?), Azure.ResourceManager.Compute.Models.OperatingSystemStateType? osState = default(Azure.ResourceManager.Compute.Models.OperatingSystemStateType?), Azure.ResourceManager.Compute.Models.HyperVGeneration? hyperVGeneration = default(Azure.ResourceManager.Compute.Models.HyperVGeneration?), System.DateTimeOffset? endOfLifeOn = default(System.DateTimeOffset?), Azure.ResourceManager.Compute.Models.GalleryImageIdentifier identifier = null, Azure.ResourceManager.Compute.Models.RecommendedMachineConfiguration recommended = null, System.Collections.Generic.IEnumerable disallowedDiskTypes = null, Azure.ResourceManager.Compute.Models.ImagePurchasePlan purchasePlan = null, Azure.ResourceManager.Compute.Models.GalleryProvisioningState? provisioningState = default(Azure.ResourceManager.Compute.Models.GalleryProvisioningState?), System.Collections.Generic.IEnumerable features = null, Azure.ResourceManager.Compute.Models.ArchitectureType? architecture = default(Azure.ResourceManager.Compute.Models.ArchitectureType?)) { throw null; } - public static Azure.ResourceManager.Compute.Models.GalleryImagePatch GalleryImagePatch(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, string description = null, string eula = null, System.Uri privacyStatementUri = null, System.Uri releaseNoteUri = null, Azure.ResourceManager.Compute.Models.SupportedOperatingSystemType? osType = default(Azure.ResourceManager.Compute.Models.SupportedOperatingSystemType?), Azure.ResourceManager.Compute.Models.OperatingSystemStateType? osState = default(Azure.ResourceManager.Compute.Models.OperatingSystemStateType?), Azure.ResourceManager.Compute.Models.HyperVGeneration? hyperVGeneration = default(Azure.ResourceManager.Compute.Models.HyperVGeneration?), System.DateTimeOffset? endOfLifeOn = default(System.DateTimeOffset?), Azure.ResourceManager.Compute.Models.GalleryImageIdentifier identifier = null, Azure.ResourceManager.Compute.Models.RecommendedMachineConfiguration recommended = null, System.Collections.Generic.IEnumerable disallowedDiskTypes = null, Azure.ResourceManager.Compute.Models.ImagePurchasePlan purchasePlan = null, Azure.ResourceManager.Compute.Models.GalleryProvisioningState? provisioningState = default(Azure.ResourceManager.Compute.Models.GalleryProvisioningState?), System.Collections.Generic.IEnumerable features = null, Azure.ResourceManager.Compute.Models.ArchitectureType? architecture = default(Azure.ResourceManager.Compute.Models.ArchitectureType?), System.Collections.Generic.IDictionary tags = null) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public static Azure.ResourceManager.Compute.GalleryImageData GalleryImageData(Azure.Core.ResourceIdentifier id, string name, Azure.Core.ResourceType resourceType, Azure.ResourceManager.Models.SystemData systemData, System.Collections.Generic.IDictionary tags, Azure.Core.AzureLocation location, string description, string eula, System.Uri privacyStatementUri, System.Uri releaseNoteUri, Azure.ResourceManager.Compute.Models.SupportedOperatingSystemType? osType, Azure.ResourceManager.Compute.Models.OperatingSystemStateType? osState, Azure.ResourceManager.Compute.Models.HyperVGeneration? hyperVGeneration, System.DateTimeOffset? endOfLifeOn, Azure.ResourceManager.Compute.Models.GalleryImageIdentifier identifier, Azure.ResourceManager.Compute.Models.RecommendedMachineConfiguration recommended, System.Collections.Generic.IEnumerable disallowedDiskTypes, Azure.ResourceManager.Compute.Models.ImagePurchasePlan purchasePlan, Azure.ResourceManager.Compute.Models.GalleryProvisioningState? provisioningState, System.Collections.Generic.IEnumerable features, Azure.ResourceManager.Compute.Models.ArchitectureType? architecture) { throw null; } + public static Azure.ResourceManager.Compute.GalleryImageData GalleryImageData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, System.Collections.Generic.IDictionary tags = null, Azure.Core.AzureLocation location = default(Azure.Core.AzureLocation), string description = null, string eula = null, System.Uri privacyStatementUri = null, System.Uri releaseNoteUri = null, Azure.ResourceManager.Compute.Models.SupportedOperatingSystemType? osType = default(Azure.ResourceManager.Compute.Models.SupportedOperatingSystemType?), Azure.ResourceManager.Compute.Models.OperatingSystemStateType? osState = default(Azure.ResourceManager.Compute.Models.OperatingSystemStateType?), Azure.ResourceManager.Compute.Models.HyperVGeneration? hyperVGeneration = default(Azure.ResourceManager.Compute.Models.HyperVGeneration?), System.DateTimeOffset? endOfLifeOn = default(System.DateTimeOffset?), Azure.ResourceManager.Compute.Models.GalleryImageIdentifier identifier = null, Azure.ResourceManager.Compute.Models.RecommendedMachineConfiguration recommended = null, System.Collections.Generic.IEnumerable disallowedDiskTypes = null, Azure.ResourceManager.Compute.Models.ImagePurchasePlan purchasePlan = null, Azure.ResourceManager.Compute.Models.GalleryProvisioningState? provisioningState = default(Azure.ResourceManager.Compute.Models.GalleryProvisioningState?), System.Collections.Generic.IEnumerable features = null, Azure.ResourceManager.Compute.Models.ArchitectureType? architecture = default(Azure.ResourceManager.Compute.Models.ArchitectureType?), bool? allowUpdateImage = default(bool?)) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public static Azure.ResourceManager.Compute.Models.GalleryImagePatch GalleryImagePatch(Azure.Core.ResourceIdentifier id, string name, Azure.Core.ResourceType resourceType, Azure.ResourceManager.Models.SystemData systemData, string description, string eula, System.Uri privacyStatementUri, System.Uri releaseNoteUri, Azure.ResourceManager.Compute.Models.SupportedOperatingSystemType? osType, Azure.ResourceManager.Compute.Models.OperatingSystemStateType? osState, Azure.ResourceManager.Compute.Models.HyperVGeneration? hyperVGeneration, System.DateTimeOffset? endOfLifeOn, Azure.ResourceManager.Compute.Models.GalleryImageIdentifier identifier, Azure.ResourceManager.Compute.Models.RecommendedMachineConfiguration recommended, System.Collections.Generic.IEnumerable disallowedDiskTypes, Azure.ResourceManager.Compute.Models.ImagePurchasePlan purchasePlan, Azure.ResourceManager.Compute.Models.GalleryProvisioningState? provisioningState, System.Collections.Generic.IEnumerable features, Azure.ResourceManager.Compute.Models.ArchitectureType? architecture, System.Collections.Generic.IDictionary tags) { throw null; } + public static Azure.ResourceManager.Compute.Models.GalleryImagePatch GalleryImagePatch(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, string description = null, string eula = null, System.Uri privacyStatementUri = null, System.Uri releaseNoteUri = null, Azure.ResourceManager.Compute.Models.SupportedOperatingSystemType? osType = default(Azure.ResourceManager.Compute.Models.SupportedOperatingSystemType?), Azure.ResourceManager.Compute.Models.OperatingSystemStateType? osState = default(Azure.ResourceManager.Compute.Models.OperatingSystemStateType?), Azure.ResourceManager.Compute.Models.HyperVGeneration? hyperVGeneration = default(Azure.ResourceManager.Compute.Models.HyperVGeneration?), System.DateTimeOffset? endOfLifeOn = default(System.DateTimeOffset?), Azure.ResourceManager.Compute.Models.GalleryImageIdentifier identifier = null, Azure.ResourceManager.Compute.Models.RecommendedMachineConfiguration recommended = null, System.Collections.Generic.IEnumerable disallowedDiskTypes = null, Azure.ResourceManager.Compute.Models.ImagePurchasePlan purchasePlan = null, Azure.ResourceManager.Compute.Models.GalleryProvisioningState? provisioningState = default(Azure.ResourceManager.Compute.Models.GalleryProvisioningState?), System.Collections.Generic.IEnumerable features = null, Azure.ResourceManager.Compute.Models.ArchitectureType? architecture = default(Azure.ResourceManager.Compute.Models.ArchitectureType?), bool? allowUpdateImage = default(bool?), System.Collections.Generic.IDictionary tags = null) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public static Azure.ResourceManager.Compute.GalleryImageVersionData GalleryImageVersionData(Azure.Core.ResourceIdentifier id, string name, Azure.Core.ResourceType resourceType, Azure.ResourceManager.Models.SystemData systemData, System.Collections.Generic.IDictionary tags, Azure.Core.AzureLocation location, Azure.ResourceManager.Compute.Models.GalleryImageVersionPublishingProfile publishingProfile, Azure.ResourceManager.Compute.Models.GalleryProvisioningState? provisioningState, Azure.ResourceManager.Compute.Models.GalleryImageVersionStorageProfile storageProfile, Azure.ResourceManager.Compute.Models.GalleryImageVersionSafetyProfile safetyProfile, Azure.ResourceManager.Compute.Models.ReplicationStatus replicationStatus) { throw null; } - public static Azure.ResourceManager.Compute.GalleryImageVersionData GalleryImageVersionData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, System.Collections.Generic.IDictionary tags = null, Azure.Core.AzureLocation location = default(Azure.Core.AzureLocation), Azure.ResourceManager.Compute.Models.GalleryImageVersionPublishingProfile publishingProfile = null, Azure.ResourceManager.Compute.Models.GalleryProvisioningState? provisioningState = default(Azure.ResourceManager.Compute.Models.GalleryProvisioningState?), Azure.ResourceManager.Compute.Models.GalleryImageVersionStorageProfile storageProfile = null, Azure.ResourceManager.Compute.Models.GalleryImageVersionSafetyProfile safetyProfile = null, Azure.ResourceManager.Compute.Models.ReplicationStatus replicationStatus = null, Azure.ResourceManager.Compute.Models.GalleryImageVersionUefiSettings securityUefiSettings = null) { throw null; } - public static Azure.ResourceManager.Compute.Models.GalleryImageVersionPatch GalleryImageVersionPatch(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.Compute.Models.GalleryImageVersionPublishingProfile publishingProfile = null, Azure.ResourceManager.Compute.Models.GalleryProvisioningState? provisioningState = default(Azure.ResourceManager.Compute.Models.GalleryProvisioningState?), Azure.ResourceManager.Compute.Models.GalleryImageVersionStorageProfile storageProfile = null, Azure.ResourceManager.Compute.Models.GalleryImageVersionSafetyProfile safetyProfile = null, Azure.ResourceManager.Compute.Models.ReplicationStatus replicationStatus = null, Azure.ResourceManager.Compute.Models.GalleryImageVersionUefiSettings securityUefiSettings = null, System.Collections.Generic.IDictionary tags = null) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public static Azure.ResourceManager.Compute.GalleryImageVersionData GalleryImageVersionData(Azure.Core.ResourceIdentifier id, string name, Azure.Core.ResourceType resourceType, Azure.ResourceManager.Models.SystemData systemData, System.Collections.Generic.IDictionary tags, Azure.Core.AzureLocation location, Azure.ResourceManager.Compute.Models.GalleryImageVersionPublishingProfile publishingProfile, Azure.ResourceManager.Compute.Models.GalleryProvisioningState? provisioningState, Azure.ResourceManager.Compute.Models.GalleryImageVersionStorageProfile storageProfile, Azure.ResourceManager.Compute.Models.GalleryImageVersionSafetyProfile safetyProfile, Azure.ResourceManager.Compute.Models.ReplicationStatus replicationStatus, Azure.ResourceManager.Compute.Models.GalleryImageVersionUefiSettings securityUefiSettings) { throw null; } + public static Azure.ResourceManager.Compute.GalleryImageVersionData GalleryImageVersionData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, System.Collections.Generic.IDictionary tags = null, Azure.Core.AzureLocation location = default(Azure.Core.AzureLocation), Azure.ResourceManager.Compute.Models.GalleryImageVersionPublishingProfile publishingProfile = null, Azure.ResourceManager.Compute.Models.GalleryProvisioningState? provisioningState = default(Azure.ResourceManager.Compute.Models.GalleryProvisioningState?), Azure.ResourceManager.Compute.Models.GalleryImageVersionStorageProfile storageProfile = null, Azure.ResourceManager.Compute.Models.GalleryImageVersionSafetyProfile safetyProfile = null, Azure.ResourceManager.Compute.Models.ReplicationStatus replicationStatus = null, Azure.ResourceManager.Compute.Models.GalleryImageVersionUefiSettings securityUefiSettings = null, bool? restore = default(bool?), Azure.ResourceManager.Compute.Models.ValidationsProfile validationsProfile = null) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public static Azure.ResourceManager.Compute.Models.GalleryImageVersionPatch GalleryImageVersionPatch(Azure.Core.ResourceIdentifier id, string name, Azure.Core.ResourceType resourceType, Azure.ResourceManager.Models.SystemData systemData, Azure.ResourceManager.Compute.Models.GalleryImageVersionPublishingProfile publishingProfile, Azure.ResourceManager.Compute.Models.GalleryProvisioningState? provisioningState, Azure.ResourceManager.Compute.Models.GalleryImageVersionStorageProfile storageProfile, Azure.ResourceManager.Compute.Models.GalleryImageVersionSafetyProfile safetyProfile, Azure.ResourceManager.Compute.Models.ReplicationStatus replicationStatus, Azure.ResourceManager.Compute.Models.GalleryImageVersionUefiSettings securityUefiSettings, System.Collections.Generic.IDictionary tags) { throw null; } + public static Azure.ResourceManager.Compute.Models.GalleryImageVersionPatch GalleryImageVersionPatch(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.Compute.Models.GalleryImageVersionPublishingProfile publishingProfile = null, Azure.ResourceManager.Compute.Models.GalleryProvisioningState? provisioningState = default(Azure.ResourceManager.Compute.Models.GalleryProvisioningState?), Azure.ResourceManager.Compute.Models.GalleryImageVersionStorageProfile storageProfile = null, Azure.ResourceManager.Compute.Models.GalleryImageVersionSafetyProfile safetyProfile = null, Azure.ResourceManager.Compute.Models.ReplicationStatus replicationStatus = null, Azure.ResourceManager.Compute.Models.GalleryImageVersionUefiSettings securityUefiSettings = null, bool? restore = default(bool?), Azure.ResourceManager.Compute.Models.ValidationsProfile validationsProfile = null, System.Collections.Generic.IDictionary tags = null) { throw null; } public static Azure.ResourceManager.Compute.Models.GalleryImageVersionPolicyViolation GalleryImageVersionPolicyViolation(Azure.ResourceManager.Compute.Models.GalleryImageVersionPolicyViolationCategory? category = default(Azure.ResourceManager.Compute.Models.GalleryImageVersionPolicyViolationCategory?), string details = null) { throw null; } public static Azure.ResourceManager.Compute.Models.GalleryImageVersionPublishingProfile GalleryImageVersionPublishingProfile(System.Collections.Generic.IEnumerable targetRegions = null, int? replicaCount = default(int?), bool? isExcludedFromLatest = default(bool?), System.DateTimeOffset? publishedOn = default(System.DateTimeOffset?), System.DateTimeOffset? endOfLifeOn = default(System.DateTimeOffset?), Azure.ResourceManager.Compute.Models.ImageStorageAccountType? storageAccountType = default(Azure.ResourceManager.Compute.Models.ImageStorageAccountType?), Azure.ResourceManager.Compute.Models.GalleryReplicationMode? replicationMode = default(Azure.ResourceManager.Compute.Models.GalleryReplicationMode?), System.Collections.Generic.IEnumerable targetExtendedLocations = null) { throw null; } - public static Azure.ResourceManager.Compute.Models.GalleryImageVersionSafetyProfile GalleryImageVersionSafetyProfile(bool? allowDeletionOfReplicatedLocations = default(bool?), bool? isReportedForPolicyViolation = default(bool?), System.Collections.Generic.IEnumerable policyViolations = null) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public static Azure.ResourceManager.Compute.Models.GalleryImageVersionSafetyProfile GalleryImageVersionSafetyProfile(bool? allowDeletionOfReplicatedLocations, bool? isReportedForPolicyViolation, System.Collections.Generic.IEnumerable policyViolations) { throw null; } + public static Azure.ResourceManager.Compute.Models.GalleryImageVersionSafetyProfile GalleryImageVersionSafetyProfile(bool? allowDeletionOfReplicatedLocations = default(bool?), bool? isReportedForPolicyViolation = default(bool?), System.Collections.Generic.IEnumerable policyViolations = null, bool? blockDeletionBeforeEndOfLife = default(bool?)) { throw null; } + public static Azure.ResourceManager.Compute.GalleryInVmAccessControlProfileData GalleryInVmAccessControlProfileData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, System.Collections.Generic.IDictionary tags = null, Azure.Core.AzureLocation location = default(Azure.Core.AzureLocation), Azure.ResourceManager.Compute.Models.GalleryInVmAccessControlProfileProperties properties = null) { throw null; } + public static Azure.ResourceManager.Compute.Models.GalleryInVmAccessControlProfilePatch GalleryInVmAccessControlProfilePatch(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.Compute.Models.GalleryInVmAccessControlProfileProperties properties = null, System.Collections.Generic.IDictionary tags = null) { throw null; } + public static Azure.ResourceManager.Compute.Models.GalleryInVmAccessControlProfileProperties GalleryInVmAccessControlProfileProperties(Azure.ResourceManager.Compute.Models.GalleryProvisioningState? provisioningState = default(Azure.ResourceManager.Compute.Models.GalleryProvisioningState?), string description = null, Azure.ResourceManager.Compute.Models.SupportedOperatingSystemType osType = Azure.ResourceManager.Compute.Models.SupportedOperatingSystemType.Windows, Azure.ResourceManager.Compute.Models.EndpointType applicableHostEndpoint = Azure.ResourceManager.Compute.Models.EndpointType.WireServer) { throw null; } + public static Azure.ResourceManager.Compute.GalleryInVmAccessControlProfileVersionData GalleryInVmAccessControlProfileVersionData(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), System.Collections.Generic.IEnumerable targetLocations = null, bool? excludeFromLatest = default(bool?), System.DateTimeOffset? publishedOn = default(System.DateTimeOffset?), Azure.ResourceManager.Compute.Models.GalleryProvisioningState? provisioningState = default(Azure.ResourceManager.Compute.Models.GalleryProvisioningState?), Azure.ResourceManager.Compute.Models.ReplicationStatus replicationStatus = null, Azure.ResourceManager.Compute.Models.AccessControlRulesMode? mode = default(Azure.ResourceManager.Compute.Models.AccessControlRulesMode?), Azure.ResourceManager.Compute.Models.EndpointAccess? defaultAccess = default(Azure.ResourceManager.Compute.Models.EndpointAccess?), Azure.ResourceManager.Compute.Models.AccessControlRules rules = null) { throw null; } + public static Azure.ResourceManager.Compute.Models.GalleryInVmAccessControlProfileVersionPatch GalleryInVmAccessControlProfileVersionPatch(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.IEnumerable targetLocations = null, bool? excludeFromLatest = default(bool?), System.DateTimeOffset? publishedOn = default(System.DateTimeOffset?), Azure.ResourceManager.Compute.Models.GalleryProvisioningState? provisioningState = default(Azure.ResourceManager.Compute.Models.GalleryProvisioningState?), Azure.ResourceManager.Compute.Models.ReplicationStatus replicationStatus = null, Azure.ResourceManager.Compute.Models.AccessControlRulesMode? mode = default(Azure.ResourceManager.Compute.Models.AccessControlRulesMode?), Azure.ResourceManager.Compute.Models.EndpointAccess? defaultAccess = default(Azure.ResourceManager.Compute.Models.EndpointAccess?), Azure.ResourceManager.Compute.Models.AccessControlRules rules = null, System.Collections.Generic.IDictionary tags = null) { throw null; } public static Azure.ResourceManager.Compute.Models.GalleryOSDiskImage GalleryOSDiskImage(int? sizeInGB = default(int?), Azure.ResourceManager.Compute.Models.HostCaching? hostCaching = default(Azure.ResourceManager.Compute.Models.HostCaching?), Azure.ResourceManager.Compute.Models.GalleryDiskImageSource gallerySource = null) { throw null; } - public static Azure.ResourceManager.Compute.Models.GalleryPatch GalleryPatch(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, string description = null, string identifierUniqueName = null, Azure.ResourceManager.Compute.Models.GalleryProvisioningState? provisioningState = default(Azure.ResourceManager.Compute.Models.GalleryProvisioningState?), Azure.ResourceManager.Compute.Models.SharingProfile sharingProfile = null, bool? isSoftDeleteEnabled = default(bool?), Azure.ResourceManager.Compute.Models.SharingStatus sharingStatus = null, System.Collections.Generic.IDictionary tags = null) { throw null; } + public static Azure.ResourceManager.Compute.Models.GalleryPatch GalleryPatch(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.Models.ManagedServiceIdentity identity = null, string description = null, string identifierUniqueName = null, Azure.ResourceManager.Compute.Models.GalleryProvisioningState? provisioningState = default(Azure.ResourceManager.Compute.Models.GalleryProvisioningState?), Azure.ResourceManager.Compute.Models.SharingProfile sharingProfile = null, bool? isSoftDeleteEnabled = default(bool?), Azure.ResourceManager.Compute.Models.SharingStatus sharingStatus = null, System.Collections.Generic.IDictionary tags = null) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public static Azure.ResourceManager.Compute.Models.GalleryPatch GalleryPatch(Azure.Core.ResourceIdentifier id, string name, Azure.Core.ResourceType resourceType, Azure.ResourceManager.Models.SystemData systemData, string description, string identifierUniqueName, Azure.ResourceManager.Compute.Models.GalleryProvisioningState? provisioningState, Azure.ResourceManager.Compute.Models.SharingProfile sharingProfile, bool? isSoftDeleteEnabled, Azure.ResourceManager.Compute.Models.SharingStatus sharingStatus, System.Collections.Generic.IDictionary tags) { throw null; } + public static Azure.ResourceManager.Compute.Models.GalleryResourceProfilePropertiesBase GalleryResourceProfilePropertiesBase(Azure.ResourceManager.Compute.Models.GalleryProvisioningState? provisioningState = default(Azure.ResourceManager.Compute.Models.GalleryProvisioningState?)) { throw null; } + public static Azure.ResourceManager.Compute.Models.GallerySoftDeletedResource GallerySoftDeletedResource(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.Core.ResourceIdentifier resourceArmId = null, Azure.ResourceManager.Compute.Models.SoftDeletedArtifactType? softDeletedArtifactType = default(Azure.ResourceManager.Compute.Models.SoftDeletedArtifactType?), string softDeletedTime = null) { throw null; } public static Azure.ResourceManager.Compute.Models.GrantAccessData GrantAccessData(Azure.ResourceManager.Compute.Models.AccessLevel access = default(Azure.ResourceManager.Compute.Models.AccessLevel), int durationInSeconds = 0, bool? getSecureVmGuestStateSas = default(bool?), Azure.ResourceManager.Compute.Models.DiskImageFileFormat? fileFormat = default(Azure.ResourceManager.Compute.Models.DiskImageFileFormat?)) { throw null; } public static Azure.ResourceManager.Compute.Models.ImageReference ImageReference(Azure.Core.ResourceIdentifier id = null, string publisher = null, string offer = null, string sku = null, string version = null, string exactVersion = null, string sharedGalleryImageUniqueId = null, string communityGalleryImageId = null) { throw null; } public static Azure.ResourceManager.Compute.Models.InnerError InnerError(string exceptiontype = null, string errordetail = null) { throw null; } @@ -3368,6 +3616,7 @@ public static partial class ArmComputeModelFactory public static Azure.ResourceManager.Compute.Models.PirCommunityGalleryResourceData PirCommunityGalleryResourceData(string name = null, Azure.Core.AzureLocation? location = default(Azure.Core.AzureLocation?), Azure.Core.ResourceType? resourceType = default(Azure.Core.ResourceType?), string uniqueId = null) { throw null; } public static Azure.ResourceManager.Compute.Models.PirResourceData PirResourceData(string name = null, Azure.Core.AzureLocation? location = default(Azure.Core.AzureLocation?)) { throw null; } public static Azure.ResourceManager.Compute.Models.PirSharedGalleryResourceData PirSharedGalleryResourceData(string name = null, Azure.Core.AzureLocation? location = default(Azure.Core.AzureLocation?), string uniqueId = null) { throw null; } + public static Azure.ResourceManager.Compute.Models.PlatformAttribute PlatformAttribute(string name = null, string value = null) { throw null; } public static Azure.ResourceManager.Compute.ProximityPlacementGroupData ProximityPlacementGroupData(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), System.Collections.Generic.IEnumerable zones = null, Azure.ResourceManager.Compute.Models.ProximityPlacementGroupType? proximityPlacementGroupType = default(Azure.ResourceManager.Compute.Models.ProximityPlacementGroupType?), System.Collections.Generic.IEnumerable virtualMachines = null, System.Collections.Generic.IEnumerable virtualMachineScaleSets = null, System.Collections.Generic.IEnumerable availabilitySets = null, Azure.ResourceManager.Compute.Models.InstanceViewStatus colocationStatus = null, System.Collections.Generic.IEnumerable intentVmSizes = null) { throw null; } public static Azure.ResourceManager.Compute.Models.RecoveryWalkResponse RecoveryWalkResponse(bool? walkPerformed = default(bool?), int? nextPlatformUpdateDomain = default(int?)) { throw null; } public static Azure.ResourceManager.Compute.Models.RegionalReplicationStatus RegionalReplicationStatus(string region = null, Azure.ResourceManager.Compute.Models.RegionalReplicationState? state = default(Azure.ResourceManager.Compute.Models.RegionalReplicationState?), string details = null, int? progress = default(int?)) { throw null; } @@ -3420,6 +3669,7 @@ public static partial class ArmComputeModelFactory public static Azure.ResourceManager.Compute.Models.UpgradeOperationHistoricalStatusInfo UpgradeOperationHistoricalStatusInfo(Azure.ResourceManager.Compute.Models.UpgradeOperationHistoricalStatusInfoProperties properties = null, string upgradeOperationHistoricalStatusInfoType = null, Azure.Core.AzureLocation? location = default(Azure.Core.AzureLocation?)) { throw null; } public static Azure.ResourceManager.Compute.Models.UpgradeOperationHistoricalStatusInfoProperties UpgradeOperationHistoricalStatusInfoProperties(Azure.ResourceManager.Compute.Models.UpgradeOperationHistoryStatus runningStatus = null, Azure.ResourceManager.Compute.Models.RollingUpgradeProgressInfo progress = null, Azure.ResourceManager.Compute.Models.ComputeApiError error = null, Azure.ResourceManager.Compute.Models.UpgradeOperationInvoker? startedBy = default(Azure.ResourceManager.Compute.Models.UpgradeOperationInvoker?), Azure.ResourceManager.Compute.Models.ImageReference targetImageReference = null, Azure.ResourceManager.Compute.Models.RollbackStatusInfo rollbackInfo = null) { throw null; } public static Azure.ResourceManager.Compute.Models.UpgradeOperationHistoryStatus UpgradeOperationHistoryStatus(Azure.ResourceManager.Compute.Models.UpgradeState? code = default(Azure.ResourceManager.Compute.Models.UpgradeState?), System.DateTimeOffset? startOn = default(System.DateTimeOffset?), System.DateTimeOffset? endOn = default(System.DateTimeOffset?)) { throw null; } + public static Azure.ResourceManager.Compute.Models.ValidationsProfile ValidationsProfile(string validationETag = null, System.Collections.Generic.IEnumerable executedValidations = null, System.Collections.Generic.IEnumerable platformAttributes = null) { throw null; } public static Azure.ResourceManager.Compute.Models.VirtualMachineAgentInstanceView VirtualMachineAgentInstanceView(string vmAgentVersion = null, System.Collections.Generic.IEnumerable extensionHandlers = null, System.Collections.Generic.IEnumerable statuses = null) { throw null; } public static Azure.ResourceManager.Compute.Models.VirtualMachineAssessPatchesResult VirtualMachineAssessPatchesResult(Azure.ResourceManager.Compute.Models.PatchOperationStatus? status = default(Azure.ResourceManager.Compute.Models.PatchOperationStatus?), string assessmentActivityId = null, bool? rebootPending = default(bool?), int? criticalAndSecurityPatchCount = default(int?), int? otherPatchCount = default(int?), System.DateTimeOffset? startOn = default(System.DateTimeOffset?), System.Collections.Generic.IEnumerable availablePatches = null, Azure.ResourceManager.Compute.Models.ComputeApiError error = null) { throw null; } public static Azure.ResourceManager.Compute.Models.VirtualMachineCaptureResult VirtualMachineCaptureResult(Azure.Core.ResourceIdentifier id = null, string schema = null, string contentVersion = null, System.BinaryData parameters = null, System.Collections.Generic.IEnumerable resources = null) { throw null; } @@ -5225,6 +5475,43 @@ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer 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 EndpointAccess : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public EndpointAccess(string value) { throw null; } + public static Azure.ResourceManager.Compute.Models.EndpointAccess Allow { get { throw null; } } + public static Azure.ResourceManager.Compute.Models.EndpointAccess Deny { get { throw null; } } + public bool Equals(Azure.ResourceManager.Compute.Models.EndpointAccess 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.Compute.Models.EndpointAccess left, Azure.ResourceManager.Compute.Models.EndpointAccess right) { throw null; } + public static implicit operator Azure.ResourceManager.Compute.Models.EndpointAccess (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.Compute.Models.EndpointAccess left, Azure.ResourceManager.Compute.Models.EndpointAccess right) { throw null; } + public override string ToString() { throw null; } + } + public enum EndpointType + { + WireServer = 0, + Imds = 1, + } + public partial class ExecutedValidation : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal ExecutedValidation() { } + public string ExecutedValidationType { get { throw null; } } + public System.DateTimeOffset? ExecutionOn { get { throw null; } } + public Azure.ResourceManager.Compute.Models.ValidationStatus? Status { get { throw null; } } + public string Version { get { throw null; } } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.Compute.Models.ExecutedValidation 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.Compute.Models.ExecutedValidation 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 ExecutionState : System.IEquatable { private readonly object _dummy; @@ -5317,6 +5604,24 @@ protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter write string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct GalleryApplicationScriptRebootBehavior : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public GalleryApplicationScriptRebootBehavior(string value) { throw null; } + public static Azure.ResourceManager.Compute.Models.GalleryApplicationScriptRebootBehavior None { get { throw null; } } + public static Azure.ResourceManager.Compute.Models.GalleryApplicationScriptRebootBehavior Rerun { get { throw null; } } + public bool Equals(Azure.ResourceManager.Compute.Models.GalleryApplicationScriptRebootBehavior 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.Compute.Models.GalleryApplicationScriptRebootBehavior left, Azure.ResourceManager.Compute.Models.GalleryApplicationScriptRebootBehavior right) { throw null; } + public static implicit operator Azure.ResourceManager.Compute.Models.GalleryApplicationScriptRebootBehavior (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.Compute.Models.GalleryApplicationScriptRebootBehavior left, Azure.ResourceManager.Compute.Models.GalleryApplicationScriptRebootBehavior right) { throw null; } + public override string ToString() { throw null; } + } public partial class GalleryApplicationVersionPatch : Azure.ResourceManager.Models.ResourceData, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { public GalleryApplicationVersionPatch() { } @@ -5493,6 +5798,7 @@ public partial class GalleryImageFeature : System.ClientModel.Primitives.IJsonMo { public GalleryImageFeature() { } public string Name { get { throw null; } set { } } + public string StartsAtVersion { get { throw null; } set { } } public string Value { get { throw null; } set { } } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.ResourceManager.Compute.Models.GalleryImageFeature System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -5517,6 +5823,7 @@ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer public partial class GalleryImagePatch : Azure.ResourceManager.Models.ResourceData, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { public GalleryImagePatch() { } + public bool? AllowUpdateImage { get { throw null; } set { } } public Azure.ResourceManager.Compute.Models.ArchitectureType? Architecture { get { throw null; } set { } } public string Description { get { throw null; } set { } } public System.Collections.Generic.IList DisallowedDiskTypes { get { throw null; } } @@ -5546,10 +5853,12 @@ public GalleryImageVersionPatch() { } public Azure.ResourceManager.Compute.Models.GalleryProvisioningState? ProvisioningState { get { throw null; } } public Azure.ResourceManager.Compute.Models.GalleryImageVersionPublishingProfile PublishingProfile { get { throw null; } set { } } public Azure.ResourceManager.Compute.Models.ReplicationStatus ReplicationStatus { get { throw null; } } + public bool? Restore { get { throw null; } set { } } public Azure.ResourceManager.Compute.Models.GalleryImageVersionSafetyProfile SafetyProfile { get { throw null; } set { } } public Azure.ResourceManager.Compute.Models.GalleryImageVersionUefiSettings SecurityUefiSettings { get { throw null; } set { } } public Azure.ResourceManager.Compute.Models.GalleryImageVersionStorageProfile StorageProfile { get { throw null; } set { } } public System.Collections.Generic.IDictionary Tags { get { throw null; } } + public Azure.ResourceManager.Compute.Models.ValidationsProfile ValidationsProfile { get { throw null; } } protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.ResourceManager.Compute.Models.GalleryImageVersionPatch 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) { } @@ -5602,6 +5911,7 @@ protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter write public partial class GalleryImageVersionSafetyProfile : Azure.ResourceManager.Compute.Models.GalleryArtifactSafetyProfileBase, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { public GalleryImageVersionSafetyProfile() { } + public bool? BlockDeletionBeforeEndOfLife { get { throw null; } set { } } public bool? IsReportedForPolicyViolation { get { throw null; } } public System.Collections.Generic.IReadOnlyList PolicyViolations { get { throw null; } } protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } @@ -5638,6 +5948,50 @@ 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 GalleryInVmAccessControlProfilePatch : Azure.ResourceManager.Models.ResourceData, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public GalleryInVmAccessControlProfilePatch() { } + public Azure.ResourceManager.Compute.Models.GalleryInVmAccessControlProfileProperties Properties { get { throw null; } set { } } + public System.Collections.Generic.IDictionary Tags { get { throw null; } } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.Compute.Models.GalleryInVmAccessControlProfilePatch 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.Compute.Models.GalleryInVmAccessControlProfilePatch 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 GalleryInVmAccessControlProfileProperties : Azure.ResourceManager.Compute.Models.GalleryResourceProfilePropertiesBase, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public GalleryInVmAccessControlProfileProperties(Azure.ResourceManager.Compute.Models.SupportedOperatingSystemType osType, Azure.ResourceManager.Compute.Models.EndpointType applicableHostEndpoint) { } + public Azure.ResourceManager.Compute.Models.EndpointType ApplicableHostEndpoint { get { throw null; } set { } } + public string Description { get { throw null; } set { } } + public Azure.ResourceManager.Compute.Models.SupportedOperatingSystemType OSType { get { throw null; } set { } } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.Compute.Models.GalleryInVmAccessControlProfileProperties 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.Compute.Models.GalleryInVmAccessControlProfileProperties 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 GalleryInVmAccessControlProfileVersionPatch : Azure.ResourceManager.Models.ResourceData, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public GalleryInVmAccessControlProfileVersionPatch() { } + public Azure.ResourceManager.Compute.Models.EndpointAccess? DefaultAccess { get { throw null; } set { } } + public bool? ExcludeFromLatest { get { throw null; } set { } } + public Azure.ResourceManager.Compute.Models.AccessControlRulesMode? Mode { get { throw null; } set { } } + public Azure.ResourceManager.Compute.Models.GalleryProvisioningState? ProvisioningState { get { throw null; } } + public System.DateTimeOffset? PublishedOn { get { throw null; } } + public Azure.ResourceManager.Compute.Models.ReplicationStatus ReplicationStatus { get { throw null; } } + public Azure.ResourceManager.Compute.Models.AccessControlRules Rules { get { throw null; } set { } } + public System.Collections.Generic.IDictionary Tags { get { throw null; } } + public System.Collections.Generic.IList TargetLocations { get { throw null; } } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.Compute.Models.GalleryInVmAccessControlProfileVersionPatch 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.Compute.Models.GalleryInVmAccessControlProfileVersionPatch 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 GalleryOSDiskImage : Azure.ResourceManager.Compute.Models.GalleryDiskImage, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { public GalleryOSDiskImage() { } @@ -5653,6 +6007,7 @@ public partial class GalleryPatch : Azure.ResourceManager.Models.ResourceData, S public GalleryPatch() { } public string Description { get { throw null; } set { } } public string IdentifierUniqueName { get { throw null; } } + public Azure.ResourceManager.Models.ManagedServiceIdentity Identity { get { throw null; } set { } } public bool? IsSoftDeleteEnabled { get { throw null; } set { } } public Azure.ResourceManager.Compute.Models.GalleryProvisioningState? ProvisioningState { get { throw null; } } public Azure.ResourceManager.Compute.Models.SharingProfile SharingProfile { get { throw null; } set { } } @@ -5705,6 +6060,17 @@ protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter write public static bool operator !=(Azure.ResourceManager.Compute.Models.GalleryReplicationMode left, Azure.ResourceManager.Compute.Models.GalleryReplicationMode right) { throw null; } public override string ToString() { throw null; } } + public partial class GalleryResourceProfilePropertiesBase : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public GalleryResourceProfilePropertiesBase() { } + public Azure.ResourceManager.Compute.Models.GalleryProvisioningState? ProvisioningState { get { throw null; } } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.Compute.Models.GalleryResourceProfilePropertiesBase 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.Compute.Models.GalleryResourceProfilePropertiesBase 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 GallerySharingPermissionType : System.IEquatable { @@ -5724,6 +6090,19 @@ protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter write public static bool operator !=(Azure.ResourceManager.Compute.Models.GallerySharingPermissionType left, Azure.ResourceManager.Compute.Models.GallerySharingPermissionType right) { throw null; } public override string ToString() { throw null; } } + public partial class GallerySoftDeletedResource : Azure.ResourceManager.Models.TrackedResourceData, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public GallerySoftDeletedResource(Azure.Core.AzureLocation location) { } + public Azure.Core.ResourceIdentifier ResourceArmId { get { throw null; } set { } } + public Azure.ResourceManager.Compute.Models.SoftDeletedArtifactType? SoftDeletedArtifactType { get { throw null; } set { } } + public string SoftDeletedTime { get { throw null; } set { } } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.Compute.Models.GallerySoftDeletedResource 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.Compute.Models.GallerySoftDeletedResource 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 GalleryTargetExtendedLocation : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { public GalleryTargetExtendedLocation() { } @@ -5950,6 +6329,7 @@ protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter write private readonly int _dummyPrimitive; public ImageStorageAccountType(string value) { throw null; } public static Azure.ResourceManager.Compute.Models.ImageStorageAccountType PremiumLrs { get { throw null; } } + public static Azure.ResourceManager.Compute.Models.ImageStorageAccountType PremiumV2Lrs { get { throw null; } } public static Azure.ResourceManager.Compute.Models.ImageStorageAccountType StandardLrs { get { throw null; } } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public static Azure.ResourceManager.Compute.Models.ImageStorageAccountType StandardSsdLrs { get { throw null; } } @@ -6723,6 +7103,18 @@ protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter write string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } } + public partial class PlatformAttribute : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal PlatformAttribute() { } + public string Name { get { throw null; } } + public string Value { get { throw null; } } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.Compute.Models.PlatformAttribute 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.Compute.Models.PlatformAttribute 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 ProvisionedBandwidthCopyOption : System.IEquatable { @@ -7741,6 +8133,23 @@ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer public static bool operator !=(Azure.ResourceManager.Compute.Models.SnapshotStorageAccountType left, Azure.ResourceManager.Compute.Models.SnapshotStorageAccountType right) { throw null; } public override string ToString() { throw null; } } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct SoftDeletedArtifactType : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public SoftDeletedArtifactType(string value) { throw null; } + public static Azure.ResourceManager.Compute.Models.SoftDeletedArtifactType Images { get { throw null; } } + public bool Equals(Azure.ResourceManager.Compute.Models.SoftDeletedArtifactType 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.Compute.Models.SoftDeletedArtifactType left, Azure.ResourceManager.Compute.Models.SoftDeletedArtifactType right) { throw null; } + public static implicit operator Azure.ResourceManager.Compute.Models.SoftDeletedArtifactType (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.Compute.Models.SoftDeletedArtifactType left, Azure.ResourceManager.Compute.Models.SoftDeletedArtifactType right) { throw null; } + public override string ToString() { throw null; } + } public partial class SpotRestorePolicy : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { public SpotRestorePolicy() { } @@ -7907,6 +8316,7 @@ public enum SupportedOperatingSystemType public partial class TargetRegion : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { public TargetRegion(string name) { } + public System.Collections.Generic.IList AdditionalReplicaSets { get { throw null; } } public Azure.ResourceManager.Compute.Models.EncryptionImages Encryption { get { throw null; } set { } } public bool? IsExcludedFromLatest { get { throw null; } set { } } public string Name { get { throw null; } set { } } @@ -8101,6 +8511,7 @@ public partial class UserArtifactSettings : System.ClientModel.Primitives.IJsonM public UserArtifactSettings() { } public string ConfigFileName { get { throw null; } set { } } public string PackageFileName { get { throw null; } set { } } + public Azure.ResourceManager.Compute.Models.GalleryApplicationScriptRebootBehavior? ScriptBehaviorAfterReboot { get { throw null; } set { } } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.ResourceManager.Compute.Models.UserArtifactSettings 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) { } @@ -8131,6 +8542,38 @@ 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 ValidationsProfile : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal ValidationsProfile() { } + public System.Collections.Generic.IReadOnlyList ExecutedValidations { get { throw null; } } + public System.Collections.Generic.IReadOnlyList PlatformAttributes { get { throw null; } } + public string ValidationETag { get { throw null; } } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.Compute.Models.ValidationsProfile 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.Compute.Models.ValidationsProfile 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 ValidationStatus : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public ValidationStatus(string value) { throw null; } + public static Azure.ResourceManager.Compute.Models.ValidationStatus Failed { get { throw null; } } + public static Azure.ResourceManager.Compute.Models.ValidationStatus Succeeded { get { throw null; } } + public static Azure.ResourceManager.Compute.Models.ValidationStatus Unknown { get { throw null; } } + public bool Equals(Azure.ResourceManager.Compute.Models.ValidationStatus 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.Compute.Models.ValidationStatus left, Azure.ResourceManager.Compute.Models.ValidationStatus right) { throw null; } + public static implicit operator Azure.ResourceManager.Compute.Models.ValidationStatus (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.Compute.Models.ValidationStatus left, Azure.ResourceManager.Compute.Models.ValidationStatus right) { throw null; } + public override string ToString() { throw null; } + } public partial class VaultCertificate : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { public VaultCertificate() { } diff --git a/sdk/compute/Azure.ResourceManager.Compute/api/Azure.ResourceManager.Compute.netstandard2.0.cs b/sdk/compute/Azure.ResourceManager.Compute/api/Azure.ResourceManager.Compute.netstandard2.0.cs index 0558ee99e44a..8df10126bd05 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/api/Azure.ResourceManager.Compute.netstandard2.0.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/api/Azure.ResourceManager.Compute.netstandard2.0.cs @@ -719,6 +719,8 @@ public static partial class ComputeExtensions public static System.Threading.Tasks.Task> GetGalleryAsync(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string galleryName, Azure.ResourceManager.Compute.Models.SelectPermission? select = default(Azure.ResourceManager.Compute.Models.SelectPermission?), Azure.ResourceManager.Compute.Models.GalleryExpand? expand = default(Azure.ResourceManager.Compute.Models.GalleryExpand?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public static Azure.ResourceManager.Compute.GalleryImageResource GetGalleryImageResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } public static Azure.ResourceManager.Compute.GalleryImageVersionResource GetGalleryImageVersionResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } + public static Azure.ResourceManager.Compute.GalleryInVmAccessControlProfileResource GetGalleryInVmAccessControlProfileResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } + public static Azure.ResourceManager.Compute.GalleryInVmAccessControlProfileVersionResource GetGalleryInVmAccessControlProfileVersionResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } public static Azure.ResourceManager.Compute.GalleryResource GetGalleryResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } public static Azure.Response GetManagedDisk(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string diskName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public static System.Threading.Tasks.Task> GetManagedDiskAsync(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string diskName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } @@ -1386,6 +1388,7 @@ public partial class GalleryData : Azure.ResourceManager.Models.TrackedResourceD public GalleryData(Azure.Core.AzureLocation location) { } public string Description { get { throw null; } set { } } public string IdentifierUniqueName { get { throw null; } } + public Azure.ResourceManager.Models.ManagedServiceIdentity Identity { get { throw null; } set { } } public bool? IsSoftDeleteEnabled { get { throw null; } set { } } public Azure.ResourceManager.Compute.Models.GalleryProvisioningState? ProvisioningState { get { throw null; } } public Azure.ResourceManager.Compute.Models.SharingProfile SharingProfile { get { throw null; } set { } } @@ -1417,6 +1420,7 @@ protected GalleryImageCollection() { } public partial class GalleryImageData : Azure.ResourceManager.Models.TrackedResourceData, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { public GalleryImageData(Azure.Core.AzureLocation location) { } + public bool? AllowUpdateImage { get { throw null; } set { } } public Azure.ResourceManager.Compute.Models.ArchitectureType? Architecture { get { throw null; } set { } } public string Description { get { throw null; } set { } } public System.Collections.Generic.IList DisallowedDiskTypes { get { throw null; } } @@ -1490,9 +1494,11 @@ public GalleryImageVersionData(Azure.Core.AzureLocation location) { } public Azure.ResourceManager.Compute.Models.GalleryProvisioningState? ProvisioningState { get { throw null; } } public Azure.ResourceManager.Compute.Models.GalleryImageVersionPublishingProfile PublishingProfile { get { throw null; } set { } } public Azure.ResourceManager.Compute.Models.ReplicationStatus ReplicationStatus { get { throw null; } } + public bool? Restore { get { throw null; } set { } } public Azure.ResourceManager.Compute.Models.GalleryImageVersionSafetyProfile SafetyProfile { get { throw null; } set { } } public Azure.ResourceManager.Compute.Models.GalleryImageVersionUefiSettings SecurityUefiSettings { get { throw null; } set { } } public Azure.ResourceManager.Compute.Models.GalleryImageVersionStorageProfile StorageProfile { get { throw null; } set { } } + public Azure.ResourceManager.Compute.Models.ValidationsProfile ValidationsProfile { get { throw null; } } protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.ResourceManager.Compute.GalleryImageVersionData 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) { } @@ -1525,6 +1531,122 @@ protected GalleryImageVersionResource() { } public virtual Azure.ResourceManager.ArmOperation Update(Azure.WaitUntil waitUntil, Azure.ResourceManager.Compute.Models.GalleryImageVersionPatch patch, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.Compute.Models.GalleryImageVersionPatch patch, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } } + public partial class GalleryInVmAccessControlProfileCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable + { + protected GalleryInVmAccessControlProfileCollection() { } + public virtual Azure.ResourceManager.ArmOperation CreateOrUpdate(Azure.WaitUntil waitUntil, string inVmAccessControlProfileName, Azure.ResourceManager.Compute.GalleryInVmAccessControlProfileData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, string inVmAccessControlProfileName, Azure.ResourceManager.Compute.GalleryInVmAccessControlProfileData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Exists(string inVmAccessControlProfileName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> ExistsAsync(string inVmAccessControlProfileName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Get(string inVmAccessControlProfileName, 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 inVmAccessControlProfileName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.NullableResponse GetIfExists(string inVmAccessControlProfileName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetIfExistsAsync(string inVmAccessControlProfileName, 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 GalleryInVmAccessControlProfileData : Azure.ResourceManager.Models.TrackedResourceData, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public GalleryInVmAccessControlProfileData(Azure.Core.AzureLocation location) { } + public Azure.ResourceManager.Compute.Models.GalleryInVmAccessControlProfileProperties Properties { get { throw null; } set { } } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.Compute.GalleryInVmAccessControlProfileData 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.Compute.GalleryInVmAccessControlProfileData 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 GalleryInVmAccessControlProfileResource : Azure.ResourceManager.ArmResource, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public static readonly Azure.Core.ResourceType ResourceType; + protected GalleryInVmAccessControlProfileResource() { } + public virtual Azure.ResourceManager.Compute.GalleryInVmAccessControlProfileData 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 galleryName, string inVmAccessControlProfileName) { 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 GetGalleryInVmAccessControlProfileVersion(string inVmAccessControlProfileVersionName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetGalleryInVmAccessControlProfileVersionAsync(string inVmAccessControlProfileVersionName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.Compute.GalleryInVmAccessControlProfileVersionCollection GetGalleryInVmAccessControlProfileVersions() { 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.Compute.GalleryInVmAccessControlProfileData 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.Compute.GalleryInVmAccessControlProfileData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + public virtual Azure.ResourceManager.ArmOperation Update(Azure.WaitUntil waitUntil, Azure.ResourceManager.Compute.Models.GalleryInVmAccessControlProfilePatch patch, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.Compute.Models.GalleryInVmAccessControlProfilePatch patch, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + } + public partial class GalleryInVmAccessControlProfileVersionCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable + { + protected GalleryInVmAccessControlProfileVersionCollection() { } + public virtual Azure.ResourceManager.ArmOperation CreateOrUpdate(Azure.WaitUntil waitUntil, string inVmAccessControlProfileVersionName, Azure.ResourceManager.Compute.GalleryInVmAccessControlProfileVersionData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, string inVmAccessControlProfileVersionName, Azure.ResourceManager.Compute.GalleryInVmAccessControlProfileVersionData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Exists(string inVmAccessControlProfileVersionName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> ExistsAsync(string inVmAccessControlProfileVersionName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Get(string inVmAccessControlProfileVersionName, 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 inVmAccessControlProfileVersionName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.NullableResponse GetIfExists(string inVmAccessControlProfileVersionName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetIfExistsAsync(string inVmAccessControlProfileVersionName, 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 GalleryInVmAccessControlProfileVersionData : Azure.ResourceManager.Models.TrackedResourceData, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public GalleryInVmAccessControlProfileVersionData(Azure.Core.AzureLocation location) { } + public Azure.ResourceManager.Compute.Models.EndpointAccess? DefaultAccess { get { throw null; } set { } } + public bool? ExcludeFromLatest { get { throw null; } set { } } + public Azure.ResourceManager.Compute.Models.AccessControlRulesMode? Mode { get { throw null; } set { } } + public Azure.ResourceManager.Compute.Models.GalleryProvisioningState? ProvisioningState { get { throw null; } } + public System.DateTimeOffset? PublishedOn { get { throw null; } } + public Azure.ResourceManager.Compute.Models.ReplicationStatus ReplicationStatus { get { throw null; } } + public Azure.ResourceManager.Compute.Models.AccessControlRules Rules { get { throw null; } set { } } + public System.Collections.Generic.IList TargetLocations { get { throw null; } } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.Compute.GalleryInVmAccessControlProfileVersionData 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.Compute.GalleryInVmAccessControlProfileVersionData 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 GalleryInVmAccessControlProfileVersionResource : Azure.ResourceManager.ArmResource, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public static readonly Azure.Core.ResourceType ResourceType; + protected GalleryInVmAccessControlProfileVersionResource() { } + public virtual Azure.ResourceManager.Compute.GalleryInVmAccessControlProfileVersionData 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 galleryName, string inVmAccessControlProfileName, string inVmAccessControlProfileVersionName) { 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.Compute.GalleryInVmAccessControlProfileVersionData 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.Compute.GalleryInVmAccessControlProfileVersionData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + public virtual Azure.ResourceManager.ArmOperation Update(Azure.WaitUntil waitUntil, Azure.ResourceManager.Compute.Models.GalleryInVmAccessControlProfileVersionPatch patch, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.Compute.Models.GalleryInVmAccessControlProfileVersionPatch patch, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + } public partial class GalleryResource : Azure.ResourceManager.ArmResource, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { public static readonly Azure.Core.ResourceType ResourceType; @@ -1544,6 +1666,11 @@ protected GalleryResource() { } public virtual Azure.Response GetGalleryImage(string galleryImageName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> GetGalleryImageAsync(string galleryImageName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.ResourceManager.Compute.GalleryImageCollection GetGalleryImages() { throw null; } + public virtual Azure.Response GetGalleryInVmAccessControlProfile(string inVmAccessControlProfileName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetGalleryInVmAccessControlProfileAsync(string inVmAccessControlProfileName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.Compute.GalleryInVmAccessControlProfileCollection GetGalleryInVmAccessControlProfiles() { throw null; } + public virtual Azure.Pageable GetSoftDeletedResourcesByArtifactName(string artifactType, string artifactName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.AsyncPageable GetSoftDeletedResourcesByArtifactNameAsync(string artifactType, string artifactName, 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; } @@ -2978,6 +3105,8 @@ protected MockableComputeArmClient() { } public virtual Azure.ResourceManager.Compute.GalleryApplicationVersionResource GetGalleryApplicationVersionResource(Azure.Core.ResourceIdentifier id) { throw null; } public virtual Azure.ResourceManager.Compute.GalleryImageResource GetGalleryImageResource(Azure.Core.ResourceIdentifier id) { throw null; } public virtual Azure.ResourceManager.Compute.GalleryImageVersionResource GetGalleryImageVersionResource(Azure.Core.ResourceIdentifier id) { throw null; } + public virtual Azure.ResourceManager.Compute.GalleryInVmAccessControlProfileResource GetGalleryInVmAccessControlProfileResource(Azure.Core.ResourceIdentifier id) { throw null; } + public virtual Azure.ResourceManager.Compute.GalleryInVmAccessControlProfileVersionResource GetGalleryInVmAccessControlProfileVersionResource(Azure.Core.ResourceIdentifier id) { throw null; } public virtual Azure.ResourceManager.Compute.GalleryResource GetGalleryResource(Azure.Core.ResourceIdentifier id) { throw null; } public virtual Azure.ResourceManager.Compute.ManagedDiskResource GetManagedDiskResource(Azure.Core.ResourceIdentifier id) { throw null; } public virtual Azure.ResourceManager.Compute.ProximityPlacementGroupResource GetProximityPlacementGroupResource(Azure.Core.ResourceIdentifier id) { throw null; } @@ -3154,6 +3283,91 @@ protected MockableComputeSubscriptionResource() { } } namespace Azure.ResourceManager.Compute.Models { + public partial class AccessControlRules : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public AccessControlRules() { } + public System.Collections.Generic.IList Identities { get { throw null; } } + public System.Collections.Generic.IList Privileges { get { throw null; } } + public System.Collections.Generic.IList RoleAssignments { get { throw null; } } + public System.Collections.Generic.IList Roles { get { throw null; } } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.Compute.Models.AccessControlRules 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.Compute.Models.AccessControlRules 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 AccessControlRulesIdentity : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public AccessControlRulesIdentity(string name) { } + public string ExePath { get { throw null; } set { } } + public string GroupName { get { throw null; } set { } } + public string Name { get { throw null; } set { } } + public string ProcessName { get { throw null; } set { } } + public string UserName { get { throw null; } set { } } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.Compute.Models.AccessControlRulesIdentity 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.Compute.Models.AccessControlRulesIdentity 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 AccessControlRulesMode : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public AccessControlRulesMode(string value) { throw null; } + public static Azure.ResourceManager.Compute.Models.AccessControlRulesMode Audit { get { throw null; } } + public static Azure.ResourceManager.Compute.Models.AccessControlRulesMode Disabled { get { throw null; } } + public static Azure.ResourceManager.Compute.Models.AccessControlRulesMode Enforce { get { throw null; } } + public bool Equals(Azure.ResourceManager.Compute.Models.AccessControlRulesMode 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.Compute.Models.AccessControlRulesMode left, Azure.ResourceManager.Compute.Models.AccessControlRulesMode right) { throw null; } + public static implicit operator Azure.ResourceManager.Compute.Models.AccessControlRulesMode (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.Compute.Models.AccessControlRulesMode left, Azure.ResourceManager.Compute.Models.AccessControlRulesMode right) { throw null; } + public override string ToString() { throw null; } + } + public partial class AccessControlRulesPrivilege : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public AccessControlRulesPrivilege(string name, string path) { } + public string Name { get { throw null; } set { } } + public string Path { get { throw null; } set { } } + public System.Collections.Generic.IDictionary QueryParameters { get { throw null; } } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.Compute.Models.AccessControlRulesPrivilege 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.Compute.Models.AccessControlRulesPrivilege 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 AccessControlRulesRole : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public AccessControlRulesRole(string name, System.Collections.Generic.IEnumerable privileges) { } + public string Name { get { throw null; } set { } } + public System.Collections.Generic.IList Privileges { get { throw null; } } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.Compute.Models.AccessControlRulesRole 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.Compute.Models.AccessControlRulesRole 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 AccessControlRulesRoleAssignment : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public AccessControlRulesRoleAssignment(string role, System.Collections.Generic.IEnumerable identities) { } + public System.Collections.Generic.IList Identities { get { throw null; } } + public string Role { get { throw null; } set { } } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.Compute.Models.AccessControlRulesRoleAssignment 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.Compute.Models.AccessControlRulesRoleAssignment 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 AccessLevel : System.IEquatable { @@ -3197,6 +3411,18 @@ 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 AdditionalReplicaSet : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public AdditionalReplicaSet() { } + public int? RegionalReplicaCount { get { throw null; } set { } } + public Azure.ResourceManager.Compute.Models.ImageStorageAccountType? StorageAccountType { get { throw null; } set { } } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.Compute.Models.AdditionalReplicaSet 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.Compute.Models.AdditionalReplicaSet 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 AdditionalUnattendContent : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { public AdditionalUnattendContent() { } @@ -3332,26 +3558,48 @@ public static partial class ArmComputeModelFactory public static Azure.ResourceManager.Compute.Models.DiskRestorePointInstanceView DiskRestorePointInstanceView(string id = null, Azure.ResourceManager.Compute.Models.DiskRestorePointReplicationStatus replicationStatus = null) { throw null; } public static Azure.ResourceManager.Compute.Models.DiskRestorePointReplicationStatus DiskRestorePointReplicationStatus(Azure.ResourceManager.Compute.Models.InstanceViewStatus status = null, int? completionPercent = default(int?)) { throw null; } public static Azure.ResourceManager.Compute.Models.DiskSku DiskSku(Azure.ResourceManager.Compute.Models.DiskStorageAccountType? name = default(Azure.ResourceManager.Compute.Models.DiskStorageAccountType?), string tier = null) { throw null; } + public static Azure.ResourceManager.Compute.Models.ExecutedValidation ExecutedValidation(string executedValidationType = null, Azure.ResourceManager.Compute.Models.ValidationStatus? status = default(Azure.ResourceManager.Compute.Models.ValidationStatus?), string version = null, System.DateTimeOffset? executionOn = default(System.DateTimeOffset?)) { throw null; } public static Azure.ResourceManager.Compute.GalleryApplicationData GalleryApplicationData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, System.Collections.Generic.IDictionary tags = null, Azure.Core.AzureLocation location = default(Azure.Core.AzureLocation), string description = null, string eula = null, System.Uri privacyStatementUri = null, System.Uri releaseNoteUri = null, System.DateTimeOffset? endOfLifeOn = default(System.DateTimeOffset?), Azure.ResourceManager.Compute.Models.SupportedOperatingSystemType? supportedOSType = default(Azure.ResourceManager.Compute.Models.SupportedOperatingSystemType?), System.Collections.Generic.IEnumerable customActions = null) { throw null; } public static Azure.ResourceManager.Compute.Models.GalleryApplicationPatch GalleryApplicationPatch(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, string description = null, string eula = null, System.Uri privacyStatementUri = null, System.Uri releaseNoteUri = null, System.DateTimeOffset? endOfLifeOn = default(System.DateTimeOffset?), Azure.ResourceManager.Compute.Models.SupportedOperatingSystemType? supportedOSType = default(Azure.ResourceManager.Compute.Models.SupportedOperatingSystemType?), System.Collections.Generic.IEnumerable customActions = null, System.Collections.Generic.IDictionary tags = null) { throw null; } public static Azure.ResourceManager.Compute.GalleryApplicationVersionData GalleryApplicationVersionData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, System.Collections.Generic.IDictionary tags = null, Azure.Core.AzureLocation location = default(Azure.Core.AzureLocation), Azure.ResourceManager.Compute.Models.GalleryApplicationVersionPublishingProfile publishingProfile = null, bool? allowDeletionOfReplicatedLocations = default(bool?), Azure.ResourceManager.Compute.Models.GalleryProvisioningState? provisioningState = default(Azure.ResourceManager.Compute.Models.GalleryProvisioningState?), Azure.ResourceManager.Compute.Models.ReplicationStatus replicationStatus = null) { throw null; } public static Azure.ResourceManager.Compute.Models.GalleryApplicationVersionPatch GalleryApplicationVersionPatch(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.Compute.Models.GalleryApplicationVersionPublishingProfile publishingProfile = null, bool? allowDeletionOfReplicatedLocations = default(bool?), Azure.ResourceManager.Compute.Models.GalleryProvisioningState? provisioningState = default(Azure.ResourceManager.Compute.Models.GalleryProvisioningState?), Azure.ResourceManager.Compute.Models.ReplicationStatus replicationStatus = null, System.Collections.Generic.IDictionary tags = null) { throw null; } public static Azure.ResourceManager.Compute.Models.GalleryApplicationVersionPublishingProfile GalleryApplicationVersionPublishingProfile(System.Collections.Generic.IEnumerable targetRegions = null, int? replicaCount = default(int?), bool? isExcludedFromLatest = default(bool?), System.DateTimeOffset? publishedOn = default(System.DateTimeOffset?), System.DateTimeOffset? endOfLifeOn = default(System.DateTimeOffset?), Azure.ResourceManager.Compute.Models.ImageStorageAccountType? storageAccountType = default(Azure.ResourceManager.Compute.Models.ImageStorageAccountType?), Azure.ResourceManager.Compute.Models.GalleryReplicationMode? replicationMode = default(Azure.ResourceManager.Compute.Models.GalleryReplicationMode?), System.Collections.Generic.IEnumerable targetExtendedLocations = null, Azure.ResourceManager.Compute.Models.UserArtifactSource source = null, Azure.ResourceManager.Compute.Models.UserArtifactManagement manageActions = null, Azure.ResourceManager.Compute.Models.UserArtifactSettings settings = null, System.Collections.Generic.IDictionary advancedSettings = null, bool? enableHealthCheck = default(bool?), System.Collections.Generic.IEnumerable customActions = null) { throw null; } public static Azure.ResourceManager.Compute.Models.GalleryArtifactPublishingProfileBase GalleryArtifactPublishingProfileBase(System.Collections.Generic.IEnumerable targetRegions = null, int? replicaCount = default(int?), bool? isExcludedFromLatest = default(bool?), System.DateTimeOffset? publishedOn = default(System.DateTimeOffset?), System.DateTimeOffset? endOfLifeOn = default(System.DateTimeOffset?), Azure.ResourceManager.Compute.Models.ImageStorageAccountType? storageAccountType = default(Azure.ResourceManager.Compute.Models.ImageStorageAccountType?), Azure.ResourceManager.Compute.Models.GalleryReplicationMode? replicationMode = default(Azure.ResourceManager.Compute.Models.GalleryReplicationMode?), System.Collections.Generic.IEnumerable targetExtendedLocations = null) { throw null; } - public static Azure.ResourceManager.Compute.GalleryData GalleryData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, System.Collections.Generic.IDictionary tags = null, Azure.Core.AzureLocation location = default(Azure.Core.AzureLocation), string description = null, string identifierUniqueName = null, Azure.ResourceManager.Compute.Models.GalleryProvisioningState? provisioningState = default(Azure.ResourceManager.Compute.Models.GalleryProvisioningState?), Azure.ResourceManager.Compute.Models.SharingProfile sharingProfile = null, bool? isSoftDeleteEnabled = default(bool?), Azure.ResourceManager.Compute.Models.SharingStatus sharingStatus = null) { throw null; } + public static Azure.ResourceManager.Compute.GalleryData GalleryData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, System.Collections.Generic.IDictionary tags = null, Azure.Core.AzureLocation location = default(Azure.Core.AzureLocation), Azure.ResourceManager.Models.ManagedServiceIdentity identity = null, string description = null, string identifierUniqueName = null, Azure.ResourceManager.Compute.Models.GalleryProvisioningState? provisioningState = default(Azure.ResourceManager.Compute.Models.GalleryProvisioningState?), Azure.ResourceManager.Compute.Models.SharingProfile sharingProfile = null, bool? isSoftDeleteEnabled = default(bool?), Azure.ResourceManager.Compute.Models.SharingStatus sharingStatus = null) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public static Azure.ResourceManager.Compute.GalleryData GalleryData(Azure.Core.ResourceIdentifier id, string name, Azure.Core.ResourceType resourceType, Azure.ResourceManager.Models.SystemData systemData, System.Collections.Generic.IDictionary tags, Azure.Core.AzureLocation location, string description, string identifierUniqueName, Azure.ResourceManager.Compute.Models.GalleryProvisioningState? provisioningState, Azure.ResourceManager.Compute.Models.SharingProfile sharingProfile, bool? isSoftDeleteEnabled, Azure.ResourceManager.Compute.Models.SharingStatus sharingStatus) { throw null; } public static Azure.ResourceManager.Compute.Models.GalleryDataDiskImage GalleryDataDiskImage(int? sizeInGB = default(int?), Azure.ResourceManager.Compute.Models.HostCaching? hostCaching = default(Azure.ResourceManager.Compute.Models.HostCaching?), Azure.ResourceManager.Compute.Models.GalleryDiskImageSource gallerySource = null, int lun = 0) { throw null; } public static Azure.ResourceManager.Compute.Models.GalleryDiskImage GalleryDiskImage(int? sizeInGB = default(int?), Azure.ResourceManager.Compute.Models.HostCaching? hostCaching = default(Azure.ResourceManager.Compute.Models.HostCaching?), Azure.ResourceManager.Compute.Models.GalleryDiskImageSource gallerySource = null) { throw null; } - public static Azure.ResourceManager.Compute.GalleryImageData GalleryImageData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, System.Collections.Generic.IDictionary tags = null, Azure.Core.AzureLocation location = default(Azure.Core.AzureLocation), string description = null, string eula = null, System.Uri privacyStatementUri = null, System.Uri releaseNoteUri = null, Azure.ResourceManager.Compute.Models.SupportedOperatingSystemType? osType = default(Azure.ResourceManager.Compute.Models.SupportedOperatingSystemType?), Azure.ResourceManager.Compute.Models.OperatingSystemStateType? osState = default(Azure.ResourceManager.Compute.Models.OperatingSystemStateType?), Azure.ResourceManager.Compute.Models.HyperVGeneration? hyperVGeneration = default(Azure.ResourceManager.Compute.Models.HyperVGeneration?), System.DateTimeOffset? endOfLifeOn = default(System.DateTimeOffset?), Azure.ResourceManager.Compute.Models.GalleryImageIdentifier identifier = null, Azure.ResourceManager.Compute.Models.RecommendedMachineConfiguration recommended = null, System.Collections.Generic.IEnumerable disallowedDiskTypes = null, Azure.ResourceManager.Compute.Models.ImagePurchasePlan purchasePlan = null, Azure.ResourceManager.Compute.Models.GalleryProvisioningState? provisioningState = default(Azure.ResourceManager.Compute.Models.GalleryProvisioningState?), System.Collections.Generic.IEnumerable features = null, Azure.ResourceManager.Compute.Models.ArchitectureType? architecture = default(Azure.ResourceManager.Compute.Models.ArchitectureType?)) { throw null; } - public static Azure.ResourceManager.Compute.Models.GalleryImagePatch GalleryImagePatch(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, string description = null, string eula = null, System.Uri privacyStatementUri = null, System.Uri releaseNoteUri = null, Azure.ResourceManager.Compute.Models.SupportedOperatingSystemType? osType = default(Azure.ResourceManager.Compute.Models.SupportedOperatingSystemType?), Azure.ResourceManager.Compute.Models.OperatingSystemStateType? osState = default(Azure.ResourceManager.Compute.Models.OperatingSystemStateType?), Azure.ResourceManager.Compute.Models.HyperVGeneration? hyperVGeneration = default(Azure.ResourceManager.Compute.Models.HyperVGeneration?), System.DateTimeOffset? endOfLifeOn = default(System.DateTimeOffset?), Azure.ResourceManager.Compute.Models.GalleryImageIdentifier identifier = null, Azure.ResourceManager.Compute.Models.RecommendedMachineConfiguration recommended = null, System.Collections.Generic.IEnumerable disallowedDiskTypes = null, Azure.ResourceManager.Compute.Models.ImagePurchasePlan purchasePlan = null, Azure.ResourceManager.Compute.Models.GalleryProvisioningState? provisioningState = default(Azure.ResourceManager.Compute.Models.GalleryProvisioningState?), System.Collections.Generic.IEnumerable features = null, Azure.ResourceManager.Compute.Models.ArchitectureType? architecture = default(Azure.ResourceManager.Compute.Models.ArchitectureType?), System.Collections.Generic.IDictionary tags = null) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public static Azure.ResourceManager.Compute.GalleryImageData GalleryImageData(Azure.Core.ResourceIdentifier id, string name, Azure.Core.ResourceType resourceType, Azure.ResourceManager.Models.SystemData systemData, System.Collections.Generic.IDictionary tags, Azure.Core.AzureLocation location, string description, string eula, System.Uri privacyStatementUri, System.Uri releaseNoteUri, Azure.ResourceManager.Compute.Models.SupportedOperatingSystemType? osType, Azure.ResourceManager.Compute.Models.OperatingSystemStateType? osState, Azure.ResourceManager.Compute.Models.HyperVGeneration? hyperVGeneration, System.DateTimeOffset? endOfLifeOn, Azure.ResourceManager.Compute.Models.GalleryImageIdentifier identifier, Azure.ResourceManager.Compute.Models.RecommendedMachineConfiguration recommended, System.Collections.Generic.IEnumerable disallowedDiskTypes, Azure.ResourceManager.Compute.Models.ImagePurchasePlan purchasePlan, Azure.ResourceManager.Compute.Models.GalleryProvisioningState? provisioningState, System.Collections.Generic.IEnumerable features, Azure.ResourceManager.Compute.Models.ArchitectureType? architecture) { throw null; } + public static Azure.ResourceManager.Compute.GalleryImageData GalleryImageData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, System.Collections.Generic.IDictionary tags = null, Azure.Core.AzureLocation location = default(Azure.Core.AzureLocation), string description = null, string eula = null, System.Uri privacyStatementUri = null, System.Uri releaseNoteUri = null, Azure.ResourceManager.Compute.Models.SupportedOperatingSystemType? osType = default(Azure.ResourceManager.Compute.Models.SupportedOperatingSystemType?), Azure.ResourceManager.Compute.Models.OperatingSystemStateType? osState = default(Azure.ResourceManager.Compute.Models.OperatingSystemStateType?), Azure.ResourceManager.Compute.Models.HyperVGeneration? hyperVGeneration = default(Azure.ResourceManager.Compute.Models.HyperVGeneration?), System.DateTimeOffset? endOfLifeOn = default(System.DateTimeOffset?), Azure.ResourceManager.Compute.Models.GalleryImageIdentifier identifier = null, Azure.ResourceManager.Compute.Models.RecommendedMachineConfiguration recommended = null, System.Collections.Generic.IEnumerable disallowedDiskTypes = null, Azure.ResourceManager.Compute.Models.ImagePurchasePlan purchasePlan = null, Azure.ResourceManager.Compute.Models.GalleryProvisioningState? provisioningState = default(Azure.ResourceManager.Compute.Models.GalleryProvisioningState?), System.Collections.Generic.IEnumerable features = null, Azure.ResourceManager.Compute.Models.ArchitectureType? architecture = default(Azure.ResourceManager.Compute.Models.ArchitectureType?), bool? allowUpdateImage = default(bool?)) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public static Azure.ResourceManager.Compute.Models.GalleryImagePatch GalleryImagePatch(Azure.Core.ResourceIdentifier id, string name, Azure.Core.ResourceType resourceType, Azure.ResourceManager.Models.SystemData systemData, string description, string eula, System.Uri privacyStatementUri, System.Uri releaseNoteUri, Azure.ResourceManager.Compute.Models.SupportedOperatingSystemType? osType, Azure.ResourceManager.Compute.Models.OperatingSystemStateType? osState, Azure.ResourceManager.Compute.Models.HyperVGeneration? hyperVGeneration, System.DateTimeOffset? endOfLifeOn, Azure.ResourceManager.Compute.Models.GalleryImageIdentifier identifier, Azure.ResourceManager.Compute.Models.RecommendedMachineConfiguration recommended, System.Collections.Generic.IEnumerable disallowedDiskTypes, Azure.ResourceManager.Compute.Models.ImagePurchasePlan purchasePlan, Azure.ResourceManager.Compute.Models.GalleryProvisioningState? provisioningState, System.Collections.Generic.IEnumerable features, Azure.ResourceManager.Compute.Models.ArchitectureType? architecture, System.Collections.Generic.IDictionary tags) { throw null; } + public static Azure.ResourceManager.Compute.Models.GalleryImagePatch GalleryImagePatch(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, string description = null, string eula = null, System.Uri privacyStatementUri = null, System.Uri releaseNoteUri = null, Azure.ResourceManager.Compute.Models.SupportedOperatingSystemType? osType = default(Azure.ResourceManager.Compute.Models.SupportedOperatingSystemType?), Azure.ResourceManager.Compute.Models.OperatingSystemStateType? osState = default(Azure.ResourceManager.Compute.Models.OperatingSystemStateType?), Azure.ResourceManager.Compute.Models.HyperVGeneration? hyperVGeneration = default(Azure.ResourceManager.Compute.Models.HyperVGeneration?), System.DateTimeOffset? endOfLifeOn = default(System.DateTimeOffset?), Azure.ResourceManager.Compute.Models.GalleryImageIdentifier identifier = null, Azure.ResourceManager.Compute.Models.RecommendedMachineConfiguration recommended = null, System.Collections.Generic.IEnumerable disallowedDiskTypes = null, Azure.ResourceManager.Compute.Models.ImagePurchasePlan purchasePlan = null, Azure.ResourceManager.Compute.Models.GalleryProvisioningState? provisioningState = default(Azure.ResourceManager.Compute.Models.GalleryProvisioningState?), System.Collections.Generic.IEnumerable features = null, Azure.ResourceManager.Compute.Models.ArchitectureType? architecture = default(Azure.ResourceManager.Compute.Models.ArchitectureType?), bool? allowUpdateImage = default(bool?), System.Collections.Generic.IDictionary tags = null) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public static Azure.ResourceManager.Compute.GalleryImageVersionData GalleryImageVersionData(Azure.Core.ResourceIdentifier id, string name, Azure.Core.ResourceType resourceType, Azure.ResourceManager.Models.SystemData systemData, System.Collections.Generic.IDictionary tags, Azure.Core.AzureLocation location, Azure.ResourceManager.Compute.Models.GalleryImageVersionPublishingProfile publishingProfile, Azure.ResourceManager.Compute.Models.GalleryProvisioningState? provisioningState, Azure.ResourceManager.Compute.Models.GalleryImageVersionStorageProfile storageProfile, Azure.ResourceManager.Compute.Models.GalleryImageVersionSafetyProfile safetyProfile, Azure.ResourceManager.Compute.Models.ReplicationStatus replicationStatus) { throw null; } - public static Azure.ResourceManager.Compute.GalleryImageVersionData GalleryImageVersionData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, System.Collections.Generic.IDictionary tags = null, Azure.Core.AzureLocation location = default(Azure.Core.AzureLocation), Azure.ResourceManager.Compute.Models.GalleryImageVersionPublishingProfile publishingProfile = null, Azure.ResourceManager.Compute.Models.GalleryProvisioningState? provisioningState = default(Azure.ResourceManager.Compute.Models.GalleryProvisioningState?), Azure.ResourceManager.Compute.Models.GalleryImageVersionStorageProfile storageProfile = null, Azure.ResourceManager.Compute.Models.GalleryImageVersionSafetyProfile safetyProfile = null, Azure.ResourceManager.Compute.Models.ReplicationStatus replicationStatus = null, Azure.ResourceManager.Compute.Models.GalleryImageVersionUefiSettings securityUefiSettings = null) { throw null; } - public static Azure.ResourceManager.Compute.Models.GalleryImageVersionPatch GalleryImageVersionPatch(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.Compute.Models.GalleryImageVersionPublishingProfile publishingProfile = null, Azure.ResourceManager.Compute.Models.GalleryProvisioningState? provisioningState = default(Azure.ResourceManager.Compute.Models.GalleryProvisioningState?), Azure.ResourceManager.Compute.Models.GalleryImageVersionStorageProfile storageProfile = null, Azure.ResourceManager.Compute.Models.GalleryImageVersionSafetyProfile safetyProfile = null, Azure.ResourceManager.Compute.Models.ReplicationStatus replicationStatus = null, Azure.ResourceManager.Compute.Models.GalleryImageVersionUefiSettings securityUefiSettings = null, System.Collections.Generic.IDictionary tags = null) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public static Azure.ResourceManager.Compute.GalleryImageVersionData GalleryImageVersionData(Azure.Core.ResourceIdentifier id, string name, Azure.Core.ResourceType resourceType, Azure.ResourceManager.Models.SystemData systemData, System.Collections.Generic.IDictionary tags, Azure.Core.AzureLocation location, Azure.ResourceManager.Compute.Models.GalleryImageVersionPublishingProfile publishingProfile, Azure.ResourceManager.Compute.Models.GalleryProvisioningState? provisioningState, Azure.ResourceManager.Compute.Models.GalleryImageVersionStorageProfile storageProfile, Azure.ResourceManager.Compute.Models.GalleryImageVersionSafetyProfile safetyProfile, Azure.ResourceManager.Compute.Models.ReplicationStatus replicationStatus, Azure.ResourceManager.Compute.Models.GalleryImageVersionUefiSettings securityUefiSettings) { throw null; } + public static Azure.ResourceManager.Compute.GalleryImageVersionData GalleryImageVersionData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, System.Collections.Generic.IDictionary tags = null, Azure.Core.AzureLocation location = default(Azure.Core.AzureLocation), Azure.ResourceManager.Compute.Models.GalleryImageVersionPublishingProfile publishingProfile = null, Azure.ResourceManager.Compute.Models.GalleryProvisioningState? provisioningState = default(Azure.ResourceManager.Compute.Models.GalleryProvisioningState?), Azure.ResourceManager.Compute.Models.GalleryImageVersionStorageProfile storageProfile = null, Azure.ResourceManager.Compute.Models.GalleryImageVersionSafetyProfile safetyProfile = null, Azure.ResourceManager.Compute.Models.ReplicationStatus replicationStatus = null, Azure.ResourceManager.Compute.Models.GalleryImageVersionUefiSettings securityUefiSettings = null, bool? restore = default(bool?), Azure.ResourceManager.Compute.Models.ValidationsProfile validationsProfile = null) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public static Azure.ResourceManager.Compute.Models.GalleryImageVersionPatch GalleryImageVersionPatch(Azure.Core.ResourceIdentifier id, string name, Azure.Core.ResourceType resourceType, Azure.ResourceManager.Models.SystemData systemData, Azure.ResourceManager.Compute.Models.GalleryImageVersionPublishingProfile publishingProfile, Azure.ResourceManager.Compute.Models.GalleryProvisioningState? provisioningState, Azure.ResourceManager.Compute.Models.GalleryImageVersionStorageProfile storageProfile, Azure.ResourceManager.Compute.Models.GalleryImageVersionSafetyProfile safetyProfile, Azure.ResourceManager.Compute.Models.ReplicationStatus replicationStatus, Azure.ResourceManager.Compute.Models.GalleryImageVersionUefiSettings securityUefiSettings, System.Collections.Generic.IDictionary tags) { throw null; } + public static Azure.ResourceManager.Compute.Models.GalleryImageVersionPatch GalleryImageVersionPatch(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.Compute.Models.GalleryImageVersionPublishingProfile publishingProfile = null, Azure.ResourceManager.Compute.Models.GalleryProvisioningState? provisioningState = default(Azure.ResourceManager.Compute.Models.GalleryProvisioningState?), Azure.ResourceManager.Compute.Models.GalleryImageVersionStorageProfile storageProfile = null, Azure.ResourceManager.Compute.Models.GalleryImageVersionSafetyProfile safetyProfile = null, Azure.ResourceManager.Compute.Models.ReplicationStatus replicationStatus = null, Azure.ResourceManager.Compute.Models.GalleryImageVersionUefiSettings securityUefiSettings = null, bool? restore = default(bool?), Azure.ResourceManager.Compute.Models.ValidationsProfile validationsProfile = null, System.Collections.Generic.IDictionary tags = null) { throw null; } public static Azure.ResourceManager.Compute.Models.GalleryImageVersionPolicyViolation GalleryImageVersionPolicyViolation(Azure.ResourceManager.Compute.Models.GalleryImageVersionPolicyViolationCategory? category = default(Azure.ResourceManager.Compute.Models.GalleryImageVersionPolicyViolationCategory?), string details = null) { throw null; } public static Azure.ResourceManager.Compute.Models.GalleryImageVersionPublishingProfile GalleryImageVersionPublishingProfile(System.Collections.Generic.IEnumerable targetRegions = null, int? replicaCount = default(int?), bool? isExcludedFromLatest = default(bool?), System.DateTimeOffset? publishedOn = default(System.DateTimeOffset?), System.DateTimeOffset? endOfLifeOn = default(System.DateTimeOffset?), Azure.ResourceManager.Compute.Models.ImageStorageAccountType? storageAccountType = default(Azure.ResourceManager.Compute.Models.ImageStorageAccountType?), Azure.ResourceManager.Compute.Models.GalleryReplicationMode? replicationMode = default(Azure.ResourceManager.Compute.Models.GalleryReplicationMode?), System.Collections.Generic.IEnumerable targetExtendedLocations = null) { throw null; } - public static Azure.ResourceManager.Compute.Models.GalleryImageVersionSafetyProfile GalleryImageVersionSafetyProfile(bool? allowDeletionOfReplicatedLocations = default(bool?), bool? isReportedForPolicyViolation = default(bool?), System.Collections.Generic.IEnumerable policyViolations = null) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public static Azure.ResourceManager.Compute.Models.GalleryImageVersionSafetyProfile GalleryImageVersionSafetyProfile(bool? allowDeletionOfReplicatedLocations, bool? isReportedForPolicyViolation, System.Collections.Generic.IEnumerable policyViolations) { throw null; } + public static Azure.ResourceManager.Compute.Models.GalleryImageVersionSafetyProfile GalleryImageVersionSafetyProfile(bool? allowDeletionOfReplicatedLocations = default(bool?), bool? isReportedForPolicyViolation = default(bool?), System.Collections.Generic.IEnumerable policyViolations = null, bool? blockDeletionBeforeEndOfLife = default(bool?)) { throw null; } + public static Azure.ResourceManager.Compute.GalleryInVmAccessControlProfileData GalleryInVmAccessControlProfileData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, System.Collections.Generic.IDictionary tags = null, Azure.Core.AzureLocation location = default(Azure.Core.AzureLocation), Azure.ResourceManager.Compute.Models.GalleryInVmAccessControlProfileProperties properties = null) { throw null; } + public static Azure.ResourceManager.Compute.Models.GalleryInVmAccessControlProfilePatch GalleryInVmAccessControlProfilePatch(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.Compute.Models.GalleryInVmAccessControlProfileProperties properties = null, System.Collections.Generic.IDictionary tags = null) { throw null; } + public static Azure.ResourceManager.Compute.Models.GalleryInVmAccessControlProfileProperties GalleryInVmAccessControlProfileProperties(Azure.ResourceManager.Compute.Models.GalleryProvisioningState? provisioningState = default(Azure.ResourceManager.Compute.Models.GalleryProvisioningState?), string description = null, Azure.ResourceManager.Compute.Models.SupportedOperatingSystemType osType = Azure.ResourceManager.Compute.Models.SupportedOperatingSystemType.Windows, Azure.ResourceManager.Compute.Models.EndpointType applicableHostEndpoint = Azure.ResourceManager.Compute.Models.EndpointType.WireServer) { throw null; } + public static Azure.ResourceManager.Compute.GalleryInVmAccessControlProfileVersionData GalleryInVmAccessControlProfileVersionData(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), System.Collections.Generic.IEnumerable targetLocations = null, bool? excludeFromLatest = default(bool?), System.DateTimeOffset? publishedOn = default(System.DateTimeOffset?), Azure.ResourceManager.Compute.Models.GalleryProvisioningState? provisioningState = default(Azure.ResourceManager.Compute.Models.GalleryProvisioningState?), Azure.ResourceManager.Compute.Models.ReplicationStatus replicationStatus = null, Azure.ResourceManager.Compute.Models.AccessControlRulesMode? mode = default(Azure.ResourceManager.Compute.Models.AccessControlRulesMode?), Azure.ResourceManager.Compute.Models.EndpointAccess? defaultAccess = default(Azure.ResourceManager.Compute.Models.EndpointAccess?), Azure.ResourceManager.Compute.Models.AccessControlRules rules = null) { throw null; } + public static Azure.ResourceManager.Compute.Models.GalleryInVmAccessControlProfileVersionPatch GalleryInVmAccessControlProfileVersionPatch(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.IEnumerable targetLocations = null, bool? excludeFromLatest = default(bool?), System.DateTimeOffset? publishedOn = default(System.DateTimeOffset?), Azure.ResourceManager.Compute.Models.GalleryProvisioningState? provisioningState = default(Azure.ResourceManager.Compute.Models.GalleryProvisioningState?), Azure.ResourceManager.Compute.Models.ReplicationStatus replicationStatus = null, Azure.ResourceManager.Compute.Models.AccessControlRulesMode? mode = default(Azure.ResourceManager.Compute.Models.AccessControlRulesMode?), Azure.ResourceManager.Compute.Models.EndpointAccess? defaultAccess = default(Azure.ResourceManager.Compute.Models.EndpointAccess?), Azure.ResourceManager.Compute.Models.AccessControlRules rules = null, System.Collections.Generic.IDictionary tags = null) { throw null; } public static Azure.ResourceManager.Compute.Models.GalleryOSDiskImage GalleryOSDiskImage(int? sizeInGB = default(int?), Azure.ResourceManager.Compute.Models.HostCaching? hostCaching = default(Azure.ResourceManager.Compute.Models.HostCaching?), Azure.ResourceManager.Compute.Models.GalleryDiskImageSource gallerySource = null) { throw null; } - public static Azure.ResourceManager.Compute.Models.GalleryPatch GalleryPatch(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, string description = null, string identifierUniqueName = null, Azure.ResourceManager.Compute.Models.GalleryProvisioningState? provisioningState = default(Azure.ResourceManager.Compute.Models.GalleryProvisioningState?), Azure.ResourceManager.Compute.Models.SharingProfile sharingProfile = null, bool? isSoftDeleteEnabled = default(bool?), Azure.ResourceManager.Compute.Models.SharingStatus sharingStatus = null, System.Collections.Generic.IDictionary tags = null) { throw null; } + public static Azure.ResourceManager.Compute.Models.GalleryPatch GalleryPatch(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.Models.ManagedServiceIdentity identity = null, string description = null, string identifierUniqueName = null, Azure.ResourceManager.Compute.Models.GalleryProvisioningState? provisioningState = default(Azure.ResourceManager.Compute.Models.GalleryProvisioningState?), Azure.ResourceManager.Compute.Models.SharingProfile sharingProfile = null, bool? isSoftDeleteEnabled = default(bool?), Azure.ResourceManager.Compute.Models.SharingStatus sharingStatus = null, System.Collections.Generic.IDictionary tags = null) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public static Azure.ResourceManager.Compute.Models.GalleryPatch GalleryPatch(Azure.Core.ResourceIdentifier id, string name, Azure.Core.ResourceType resourceType, Azure.ResourceManager.Models.SystemData systemData, string description, string identifierUniqueName, Azure.ResourceManager.Compute.Models.GalleryProvisioningState? provisioningState, Azure.ResourceManager.Compute.Models.SharingProfile sharingProfile, bool? isSoftDeleteEnabled, Azure.ResourceManager.Compute.Models.SharingStatus sharingStatus, System.Collections.Generic.IDictionary tags) { throw null; } + public static Azure.ResourceManager.Compute.Models.GalleryResourceProfilePropertiesBase GalleryResourceProfilePropertiesBase(Azure.ResourceManager.Compute.Models.GalleryProvisioningState? provisioningState = default(Azure.ResourceManager.Compute.Models.GalleryProvisioningState?)) { throw null; } + public static Azure.ResourceManager.Compute.Models.GallerySoftDeletedResource GallerySoftDeletedResource(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.Core.ResourceIdentifier resourceArmId = null, Azure.ResourceManager.Compute.Models.SoftDeletedArtifactType? softDeletedArtifactType = default(Azure.ResourceManager.Compute.Models.SoftDeletedArtifactType?), string softDeletedTime = null) { throw null; } public static Azure.ResourceManager.Compute.Models.GrantAccessData GrantAccessData(Azure.ResourceManager.Compute.Models.AccessLevel access = default(Azure.ResourceManager.Compute.Models.AccessLevel), int durationInSeconds = 0, bool? getSecureVmGuestStateSas = default(bool?), Azure.ResourceManager.Compute.Models.DiskImageFileFormat? fileFormat = default(Azure.ResourceManager.Compute.Models.DiskImageFileFormat?)) { throw null; } public static Azure.ResourceManager.Compute.Models.ImageReference ImageReference(Azure.Core.ResourceIdentifier id = null, string publisher = null, string offer = null, string sku = null, string version = null, string exactVersion = null, string sharedGalleryImageUniqueId = null, string communityGalleryImageId = null) { throw null; } public static Azure.ResourceManager.Compute.Models.InnerError InnerError(string exceptiontype = null, string errordetail = null) { throw null; } @@ -3368,6 +3616,7 @@ public static partial class ArmComputeModelFactory public static Azure.ResourceManager.Compute.Models.PirCommunityGalleryResourceData PirCommunityGalleryResourceData(string name = null, Azure.Core.AzureLocation? location = default(Azure.Core.AzureLocation?), Azure.Core.ResourceType? resourceType = default(Azure.Core.ResourceType?), string uniqueId = null) { throw null; } public static Azure.ResourceManager.Compute.Models.PirResourceData PirResourceData(string name = null, Azure.Core.AzureLocation? location = default(Azure.Core.AzureLocation?)) { throw null; } public static Azure.ResourceManager.Compute.Models.PirSharedGalleryResourceData PirSharedGalleryResourceData(string name = null, Azure.Core.AzureLocation? location = default(Azure.Core.AzureLocation?), string uniqueId = null) { throw null; } + public static Azure.ResourceManager.Compute.Models.PlatformAttribute PlatformAttribute(string name = null, string value = null) { throw null; } public static Azure.ResourceManager.Compute.ProximityPlacementGroupData ProximityPlacementGroupData(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), System.Collections.Generic.IEnumerable zones = null, Azure.ResourceManager.Compute.Models.ProximityPlacementGroupType? proximityPlacementGroupType = default(Azure.ResourceManager.Compute.Models.ProximityPlacementGroupType?), System.Collections.Generic.IEnumerable virtualMachines = null, System.Collections.Generic.IEnumerable virtualMachineScaleSets = null, System.Collections.Generic.IEnumerable availabilitySets = null, Azure.ResourceManager.Compute.Models.InstanceViewStatus colocationStatus = null, System.Collections.Generic.IEnumerable intentVmSizes = null) { throw null; } public static Azure.ResourceManager.Compute.Models.RecoveryWalkResponse RecoveryWalkResponse(bool? walkPerformed = default(bool?), int? nextPlatformUpdateDomain = default(int?)) { throw null; } public static Azure.ResourceManager.Compute.Models.RegionalReplicationStatus RegionalReplicationStatus(string region = null, Azure.ResourceManager.Compute.Models.RegionalReplicationState? state = default(Azure.ResourceManager.Compute.Models.RegionalReplicationState?), string details = null, int? progress = default(int?)) { throw null; } @@ -3420,6 +3669,7 @@ public static partial class ArmComputeModelFactory public static Azure.ResourceManager.Compute.Models.UpgradeOperationHistoricalStatusInfo UpgradeOperationHistoricalStatusInfo(Azure.ResourceManager.Compute.Models.UpgradeOperationHistoricalStatusInfoProperties properties = null, string upgradeOperationHistoricalStatusInfoType = null, Azure.Core.AzureLocation? location = default(Azure.Core.AzureLocation?)) { throw null; } public static Azure.ResourceManager.Compute.Models.UpgradeOperationHistoricalStatusInfoProperties UpgradeOperationHistoricalStatusInfoProperties(Azure.ResourceManager.Compute.Models.UpgradeOperationHistoryStatus runningStatus = null, Azure.ResourceManager.Compute.Models.RollingUpgradeProgressInfo progress = null, Azure.ResourceManager.Compute.Models.ComputeApiError error = null, Azure.ResourceManager.Compute.Models.UpgradeOperationInvoker? startedBy = default(Azure.ResourceManager.Compute.Models.UpgradeOperationInvoker?), Azure.ResourceManager.Compute.Models.ImageReference targetImageReference = null, Azure.ResourceManager.Compute.Models.RollbackStatusInfo rollbackInfo = null) { throw null; } public static Azure.ResourceManager.Compute.Models.UpgradeOperationHistoryStatus UpgradeOperationHistoryStatus(Azure.ResourceManager.Compute.Models.UpgradeState? code = default(Azure.ResourceManager.Compute.Models.UpgradeState?), System.DateTimeOffset? startOn = default(System.DateTimeOffset?), System.DateTimeOffset? endOn = default(System.DateTimeOffset?)) { throw null; } + public static Azure.ResourceManager.Compute.Models.ValidationsProfile ValidationsProfile(string validationETag = null, System.Collections.Generic.IEnumerable executedValidations = null, System.Collections.Generic.IEnumerable platformAttributes = null) { throw null; } public static Azure.ResourceManager.Compute.Models.VirtualMachineAgentInstanceView VirtualMachineAgentInstanceView(string vmAgentVersion = null, System.Collections.Generic.IEnumerable extensionHandlers = null, System.Collections.Generic.IEnumerable statuses = null) { throw null; } public static Azure.ResourceManager.Compute.Models.VirtualMachineAssessPatchesResult VirtualMachineAssessPatchesResult(Azure.ResourceManager.Compute.Models.PatchOperationStatus? status = default(Azure.ResourceManager.Compute.Models.PatchOperationStatus?), string assessmentActivityId = null, bool? rebootPending = default(bool?), int? criticalAndSecurityPatchCount = default(int?), int? otherPatchCount = default(int?), System.DateTimeOffset? startOn = default(System.DateTimeOffset?), System.Collections.Generic.IEnumerable availablePatches = null, Azure.ResourceManager.Compute.Models.ComputeApiError error = null) { throw null; } public static Azure.ResourceManager.Compute.Models.VirtualMachineCaptureResult VirtualMachineCaptureResult(Azure.Core.ResourceIdentifier id = null, string schema = null, string contentVersion = null, System.BinaryData parameters = null, System.Collections.Generic.IEnumerable resources = null) { throw null; } @@ -5225,6 +5475,43 @@ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer 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 EndpointAccess : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public EndpointAccess(string value) { throw null; } + public static Azure.ResourceManager.Compute.Models.EndpointAccess Allow { get { throw null; } } + public static Azure.ResourceManager.Compute.Models.EndpointAccess Deny { get { throw null; } } + public bool Equals(Azure.ResourceManager.Compute.Models.EndpointAccess 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.Compute.Models.EndpointAccess left, Azure.ResourceManager.Compute.Models.EndpointAccess right) { throw null; } + public static implicit operator Azure.ResourceManager.Compute.Models.EndpointAccess (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.Compute.Models.EndpointAccess left, Azure.ResourceManager.Compute.Models.EndpointAccess right) { throw null; } + public override string ToString() { throw null; } + } + public enum EndpointType + { + WireServer = 0, + Imds = 1, + } + public partial class ExecutedValidation : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal ExecutedValidation() { } + public string ExecutedValidationType { get { throw null; } } + public System.DateTimeOffset? ExecutionOn { get { throw null; } } + public Azure.ResourceManager.Compute.Models.ValidationStatus? Status { get { throw null; } } + public string Version { get { throw null; } } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.Compute.Models.ExecutedValidation 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.Compute.Models.ExecutedValidation 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 ExecutionState : System.IEquatable { private readonly object _dummy; @@ -5317,6 +5604,24 @@ protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter write string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct GalleryApplicationScriptRebootBehavior : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public GalleryApplicationScriptRebootBehavior(string value) { throw null; } + public static Azure.ResourceManager.Compute.Models.GalleryApplicationScriptRebootBehavior None { get { throw null; } } + public static Azure.ResourceManager.Compute.Models.GalleryApplicationScriptRebootBehavior Rerun { get { throw null; } } + public bool Equals(Azure.ResourceManager.Compute.Models.GalleryApplicationScriptRebootBehavior 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.Compute.Models.GalleryApplicationScriptRebootBehavior left, Azure.ResourceManager.Compute.Models.GalleryApplicationScriptRebootBehavior right) { throw null; } + public static implicit operator Azure.ResourceManager.Compute.Models.GalleryApplicationScriptRebootBehavior (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.Compute.Models.GalleryApplicationScriptRebootBehavior left, Azure.ResourceManager.Compute.Models.GalleryApplicationScriptRebootBehavior right) { throw null; } + public override string ToString() { throw null; } + } public partial class GalleryApplicationVersionPatch : Azure.ResourceManager.Models.ResourceData, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { public GalleryApplicationVersionPatch() { } @@ -5493,6 +5798,7 @@ public partial class GalleryImageFeature : System.ClientModel.Primitives.IJsonMo { public GalleryImageFeature() { } public string Name { get { throw null; } set { } } + public string StartsAtVersion { get { throw null; } set { } } public string Value { get { throw null; } set { } } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.ResourceManager.Compute.Models.GalleryImageFeature System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -5517,6 +5823,7 @@ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer public partial class GalleryImagePatch : Azure.ResourceManager.Models.ResourceData, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { public GalleryImagePatch() { } + public bool? AllowUpdateImage { get { throw null; } set { } } public Azure.ResourceManager.Compute.Models.ArchitectureType? Architecture { get { throw null; } set { } } public string Description { get { throw null; } set { } } public System.Collections.Generic.IList DisallowedDiskTypes { get { throw null; } } @@ -5546,10 +5853,12 @@ public GalleryImageVersionPatch() { } public Azure.ResourceManager.Compute.Models.GalleryProvisioningState? ProvisioningState { get { throw null; } } public Azure.ResourceManager.Compute.Models.GalleryImageVersionPublishingProfile PublishingProfile { get { throw null; } set { } } public Azure.ResourceManager.Compute.Models.ReplicationStatus ReplicationStatus { get { throw null; } } + public bool? Restore { get { throw null; } set { } } public Azure.ResourceManager.Compute.Models.GalleryImageVersionSafetyProfile SafetyProfile { get { throw null; } set { } } public Azure.ResourceManager.Compute.Models.GalleryImageVersionUefiSettings SecurityUefiSettings { get { throw null; } set { } } public Azure.ResourceManager.Compute.Models.GalleryImageVersionStorageProfile StorageProfile { get { throw null; } set { } } public System.Collections.Generic.IDictionary Tags { get { throw null; } } + public Azure.ResourceManager.Compute.Models.ValidationsProfile ValidationsProfile { get { throw null; } } protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.ResourceManager.Compute.Models.GalleryImageVersionPatch 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) { } @@ -5602,6 +5911,7 @@ protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter write public partial class GalleryImageVersionSafetyProfile : Azure.ResourceManager.Compute.Models.GalleryArtifactSafetyProfileBase, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { public GalleryImageVersionSafetyProfile() { } + public bool? BlockDeletionBeforeEndOfLife { get { throw null; } set { } } public bool? IsReportedForPolicyViolation { get { throw null; } } public System.Collections.Generic.IReadOnlyList PolicyViolations { get { throw null; } } protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } @@ -5638,6 +5948,50 @@ 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 GalleryInVmAccessControlProfilePatch : Azure.ResourceManager.Models.ResourceData, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public GalleryInVmAccessControlProfilePatch() { } + public Azure.ResourceManager.Compute.Models.GalleryInVmAccessControlProfileProperties Properties { get { throw null; } set { } } + public System.Collections.Generic.IDictionary Tags { get { throw null; } } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.Compute.Models.GalleryInVmAccessControlProfilePatch 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.Compute.Models.GalleryInVmAccessControlProfilePatch 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 GalleryInVmAccessControlProfileProperties : Azure.ResourceManager.Compute.Models.GalleryResourceProfilePropertiesBase, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public GalleryInVmAccessControlProfileProperties(Azure.ResourceManager.Compute.Models.SupportedOperatingSystemType osType, Azure.ResourceManager.Compute.Models.EndpointType applicableHostEndpoint) { } + public Azure.ResourceManager.Compute.Models.EndpointType ApplicableHostEndpoint { get { throw null; } set { } } + public string Description { get { throw null; } set { } } + public Azure.ResourceManager.Compute.Models.SupportedOperatingSystemType OSType { get { throw null; } set { } } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.Compute.Models.GalleryInVmAccessControlProfileProperties 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.Compute.Models.GalleryInVmAccessControlProfileProperties 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 GalleryInVmAccessControlProfileVersionPatch : Azure.ResourceManager.Models.ResourceData, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public GalleryInVmAccessControlProfileVersionPatch() { } + public Azure.ResourceManager.Compute.Models.EndpointAccess? DefaultAccess { get { throw null; } set { } } + public bool? ExcludeFromLatest { get { throw null; } set { } } + public Azure.ResourceManager.Compute.Models.AccessControlRulesMode? Mode { get { throw null; } set { } } + public Azure.ResourceManager.Compute.Models.GalleryProvisioningState? ProvisioningState { get { throw null; } } + public System.DateTimeOffset? PublishedOn { get { throw null; } } + public Azure.ResourceManager.Compute.Models.ReplicationStatus ReplicationStatus { get { throw null; } } + public Azure.ResourceManager.Compute.Models.AccessControlRules Rules { get { throw null; } set { } } + public System.Collections.Generic.IDictionary Tags { get { throw null; } } + public System.Collections.Generic.IList TargetLocations { get { throw null; } } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.Compute.Models.GalleryInVmAccessControlProfileVersionPatch 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.Compute.Models.GalleryInVmAccessControlProfileVersionPatch 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 GalleryOSDiskImage : Azure.ResourceManager.Compute.Models.GalleryDiskImage, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { public GalleryOSDiskImage() { } @@ -5653,6 +6007,7 @@ public partial class GalleryPatch : Azure.ResourceManager.Models.ResourceData, S public GalleryPatch() { } public string Description { get { throw null; } set { } } public string IdentifierUniqueName { get { throw null; } } + public Azure.ResourceManager.Models.ManagedServiceIdentity Identity { get { throw null; } set { } } public bool? IsSoftDeleteEnabled { get { throw null; } set { } } public Azure.ResourceManager.Compute.Models.GalleryProvisioningState? ProvisioningState { get { throw null; } } public Azure.ResourceManager.Compute.Models.SharingProfile SharingProfile { get { throw null; } set { } } @@ -5705,6 +6060,17 @@ protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter write public static bool operator !=(Azure.ResourceManager.Compute.Models.GalleryReplicationMode left, Azure.ResourceManager.Compute.Models.GalleryReplicationMode right) { throw null; } public override string ToString() { throw null; } } + public partial class GalleryResourceProfilePropertiesBase : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public GalleryResourceProfilePropertiesBase() { } + public Azure.ResourceManager.Compute.Models.GalleryProvisioningState? ProvisioningState { get { throw null; } } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.Compute.Models.GalleryResourceProfilePropertiesBase 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.Compute.Models.GalleryResourceProfilePropertiesBase 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 GallerySharingPermissionType : System.IEquatable { @@ -5724,6 +6090,19 @@ protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter write public static bool operator !=(Azure.ResourceManager.Compute.Models.GallerySharingPermissionType left, Azure.ResourceManager.Compute.Models.GallerySharingPermissionType right) { throw null; } public override string ToString() { throw null; } } + public partial class GallerySoftDeletedResource : Azure.ResourceManager.Models.TrackedResourceData, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public GallerySoftDeletedResource(Azure.Core.AzureLocation location) { } + public Azure.Core.ResourceIdentifier ResourceArmId { get { throw null; } set { } } + public Azure.ResourceManager.Compute.Models.SoftDeletedArtifactType? SoftDeletedArtifactType { get { throw null; } set { } } + public string SoftDeletedTime { get { throw null; } set { } } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.Compute.Models.GallerySoftDeletedResource 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.Compute.Models.GallerySoftDeletedResource 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 GalleryTargetExtendedLocation : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { public GalleryTargetExtendedLocation() { } @@ -5950,6 +6329,7 @@ protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter write private readonly int _dummyPrimitive; public ImageStorageAccountType(string value) { throw null; } public static Azure.ResourceManager.Compute.Models.ImageStorageAccountType PremiumLrs { get { throw null; } } + public static Azure.ResourceManager.Compute.Models.ImageStorageAccountType PremiumV2Lrs { get { throw null; } } public static Azure.ResourceManager.Compute.Models.ImageStorageAccountType StandardLrs { get { throw null; } } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public static Azure.ResourceManager.Compute.Models.ImageStorageAccountType StandardSsdLrs { get { throw null; } } @@ -6723,6 +7103,18 @@ protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter write string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } } + public partial class PlatformAttribute : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal PlatformAttribute() { } + public string Name { get { throw null; } } + public string Value { get { throw null; } } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.Compute.Models.PlatformAttribute 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.Compute.Models.PlatformAttribute 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 ProvisionedBandwidthCopyOption : System.IEquatable { @@ -7741,6 +8133,23 @@ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer public static bool operator !=(Azure.ResourceManager.Compute.Models.SnapshotStorageAccountType left, Azure.ResourceManager.Compute.Models.SnapshotStorageAccountType right) { throw null; } public override string ToString() { throw null; } } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct SoftDeletedArtifactType : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public SoftDeletedArtifactType(string value) { throw null; } + public static Azure.ResourceManager.Compute.Models.SoftDeletedArtifactType Images { get { throw null; } } + public bool Equals(Azure.ResourceManager.Compute.Models.SoftDeletedArtifactType 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.Compute.Models.SoftDeletedArtifactType left, Azure.ResourceManager.Compute.Models.SoftDeletedArtifactType right) { throw null; } + public static implicit operator Azure.ResourceManager.Compute.Models.SoftDeletedArtifactType (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.Compute.Models.SoftDeletedArtifactType left, Azure.ResourceManager.Compute.Models.SoftDeletedArtifactType right) { throw null; } + public override string ToString() { throw null; } + } public partial class SpotRestorePolicy : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { public SpotRestorePolicy() { } @@ -7907,6 +8316,7 @@ public enum SupportedOperatingSystemType public partial class TargetRegion : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { public TargetRegion(string name) { } + public System.Collections.Generic.IList AdditionalReplicaSets { get { throw null; } } public Azure.ResourceManager.Compute.Models.EncryptionImages Encryption { get { throw null; } set { } } public bool? IsExcludedFromLatest { get { throw null; } set { } } public string Name { get { throw null; } set { } } @@ -8101,6 +8511,7 @@ public partial class UserArtifactSettings : System.ClientModel.Primitives.IJsonM public UserArtifactSettings() { } public string ConfigFileName { get { throw null; } set { } } public string PackageFileName { get { throw null; } set { } } + public Azure.ResourceManager.Compute.Models.GalleryApplicationScriptRebootBehavior? ScriptBehaviorAfterReboot { get { throw null; } set { } } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.ResourceManager.Compute.Models.UserArtifactSettings 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) { } @@ -8131,6 +8542,38 @@ 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 ValidationsProfile : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal ValidationsProfile() { } + public System.Collections.Generic.IReadOnlyList ExecutedValidations { get { throw null; } } + public System.Collections.Generic.IReadOnlyList PlatformAttributes { get { throw null; } } + public string ValidationETag { get { throw null; } } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.Compute.Models.ValidationsProfile 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.Compute.Models.ValidationsProfile 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 ValidationStatus : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public ValidationStatus(string value) { throw null; } + public static Azure.ResourceManager.Compute.Models.ValidationStatus Failed { get { throw null; } } + public static Azure.ResourceManager.Compute.Models.ValidationStatus Succeeded { get { throw null; } } + public static Azure.ResourceManager.Compute.Models.ValidationStatus Unknown { get { throw null; } } + public bool Equals(Azure.ResourceManager.Compute.Models.ValidationStatus 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.Compute.Models.ValidationStatus left, Azure.ResourceManager.Compute.Models.ValidationStatus right) { throw null; } + public static implicit operator Azure.ResourceManager.Compute.Models.ValidationStatus (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.Compute.Models.ValidationStatus left, Azure.ResourceManager.Compute.Models.ValidationStatus right) { throw null; } + public override string ToString() { throw null; } + } public partial class VaultCertificate : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { public VaultCertificate() { } diff --git a/sdk/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_CommunityGalleryCollection.cs b/sdk/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_CommunityGalleryCollection.cs index d849e7493e1f..a5bc259879e4 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_CommunityGalleryCollection.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_CommunityGalleryCollection.cs @@ -20,7 +20,7 @@ public partial class Sample_CommunityGalleryCollection [Ignore("Only validating compilation of examples")] public async Task Get_GetACommunityGallery() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/communityGalleryExamples/CommunityGallery_Get.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2024-03-03/examples/communityGalleryExamples/CommunityGallery_Get.json // this example is just showing the usage of "CommunityGalleries_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 @@ -53,7 +53,7 @@ public async Task Get_GetACommunityGallery() [Ignore("Only validating compilation of examples")] public async Task Exists_GetACommunityGallery() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/communityGalleryExamples/CommunityGallery_Get.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2024-03-03/examples/communityGalleryExamples/CommunityGallery_Get.json // this example is just showing the usage of "CommunityGalleries_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 Exists_GetACommunityGallery() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_GetACommunityGallery() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/communityGalleryExamples/CommunityGallery_Get.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2024-03-03/examples/communityGalleryExamples/CommunityGallery_Get.json // this example is just showing the usage of "CommunityGalleries_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/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_CommunityGalleryImageCollection.cs b/sdk/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_CommunityGalleryImageCollection.cs index 6c6e39da5a36..cbc2d73d1c65 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_CommunityGalleryImageCollection.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_CommunityGalleryImageCollection.cs @@ -19,7 +19,7 @@ public partial class Sample_CommunityGalleryImageCollection [Ignore("Only validating compilation of examples")] public async Task Get_GetACommunityGalleryImage() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/communityGalleryExamples/CommunityGalleryImage_Get.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2024-03-03/examples/communityGalleryExamples/CommunityGalleryImage_Get.json // this example is just showing the usage of "CommunityGalleryImages_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 @@ -53,7 +53,7 @@ public async Task Get_GetACommunityGalleryImage() [Ignore("Only validating compilation of examples")] public async Task Exists_GetACommunityGalleryImage() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/communityGalleryExamples/CommunityGalleryImage_Get.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2024-03-03/examples/communityGalleryExamples/CommunityGalleryImage_Get.json // this example is just showing the usage of "CommunityGalleryImages_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 @@ -83,7 +83,7 @@ public async Task Exists_GetACommunityGalleryImage() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_GetACommunityGalleryImage() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/communityGalleryExamples/CommunityGalleryImage_Get.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2024-03-03/examples/communityGalleryExamples/CommunityGalleryImage_Get.json // this example is just showing the usage of "CommunityGalleryImages_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 GetIfExists_GetACommunityGalleryImage() [Ignore("Only validating compilation of examples")] public async Task GetAll_ListCommunityGalleryImages() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/communityGalleryExamples/CommunityGalleryImage_List.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2024-03-03/examples/communityGalleryExamples/CommunityGalleryImage_List.json // this example is just showing the usage of "CommunityGalleryImages_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_CommunityGalleryImageResource.cs b/sdk/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_CommunityGalleryImageResource.cs index 029a115f1512..5d9bf88e6edd 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_CommunityGalleryImageResource.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_CommunityGalleryImageResource.cs @@ -19,7 +19,7 @@ public partial class Sample_CommunityGalleryImageResource [Ignore("Only validating compilation of examples")] public async Task Get_GetACommunityGalleryImage() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/communityGalleryExamples/CommunityGalleryImage_Get.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2024-03-03/examples/communityGalleryExamples/CommunityGalleryImage_Get.json // this example is just showing the usage of "CommunityGalleryImages_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/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_CommunityGalleryImageVersionCollection.cs b/sdk/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_CommunityGalleryImageVersionCollection.cs index 753aa81b92e9..130353a8c67d 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_CommunityGalleryImageVersionCollection.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_CommunityGalleryImageVersionCollection.cs @@ -19,7 +19,7 @@ public partial class Sample_CommunityGalleryImageVersionCollection [Ignore("Only validating compilation of examples")] public async Task Get_GetACommunityGalleryImageVersion() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/communityGalleryExamples/CommunityGalleryImageVersion_Get.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2024-03-03/examples/communityGalleryExamples/CommunityGalleryImageVersion_Get.json // this example is just showing the usage of "CommunityGalleryImageVersions_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -54,7 +54,7 @@ public async Task Get_GetACommunityGalleryImageVersion() [Ignore("Only validating compilation of examples")] public async Task Exists_GetACommunityGalleryImageVersion() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/communityGalleryExamples/CommunityGalleryImageVersion_Get.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2024-03-03/examples/communityGalleryExamples/CommunityGalleryImageVersion_Get.json // this example is just showing the usage of "CommunityGalleryImageVersions_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -85,7 +85,7 @@ public async Task Exists_GetACommunityGalleryImageVersion() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_GetACommunityGalleryImageVersion() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/communityGalleryExamples/CommunityGalleryImageVersion_Get.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2024-03-03/examples/communityGalleryExamples/CommunityGalleryImageVersion_Get.json // this example is just showing the usage of "CommunityGalleryImageVersions_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -128,7 +128,7 @@ public async Task GetIfExists_GetACommunityGalleryImageVersion() [Ignore("Only validating compilation of examples")] public async Task GetAll_ListCommunityGalleryImageVersions() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/communityGalleryExamples/CommunityGalleryImageVersion_List.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2024-03-03/examples/communityGalleryExamples/CommunityGalleryImageVersion_List.json // this example is just showing the usage of "CommunityGalleryImageVersions_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_CommunityGalleryImageVersionResource.cs b/sdk/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_CommunityGalleryImageVersionResource.cs index 684c309125af..62674deb08e4 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_CommunityGalleryImageVersionResource.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_CommunityGalleryImageVersionResource.cs @@ -19,7 +19,7 @@ public partial class Sample_CommunityGalleryImageVersionResource [Ignore("Only validating compilation of examples")] public async Task Get_GetACommunityGalleryImageVersion() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/communityGalleryExamples/CommunityGalleryImageVersion_Get.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2024-03-03/examples/communityGalleryExamples/CommunityGalleryImageVersion_Get.json // this example is just showing the usage of "CommunityGalleryImageVersions_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/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_CommunityGalleryResource.cs b/sdk/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_CommunityGalleryResource.cs index 00f92f7af088..e6f95ddd2dbd 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_CommunityGalleryResource.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_CommunityGalleryResource.cs @@ -19,7 +19,7 @@ public partial class Sample_CommunityGalleryResource [Ignore("Only validating compilation of examples")] public async Task Get_GetACommunityGallery() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/communityGalleryExamples/CommunityGallery_Get.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2024-03-03/examples/communityGalleryExamples/CommunityGallery_Get.json // this example is just showing the usage of "CommunityGalleries_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/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_GalleryApplicationCollection.cs b/sdk/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_GalleryApplicationCollection.cs index fe9edc6e07aa..c4065f65b867 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_GalleryApplicationCollection.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_GalleryApplicationCollection.cs @@ -20,7 +20,7 @@ public partial class Sample_GalleryApplicationCollection [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_CreateOrUpdateASimpleGalleryApplication() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryApplication_Create.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2024-03-03/examples/galleryExamples/GalleryApplication_Create.json // this example is just showing the usage of "GalleryApplications_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 @@ -80,7 +80,7 @@ public async Task CreateOrUpdate_CreateOrUpdateASimpleGalleryApplication() [Ignore("Only validating compilation of examples")] public async Task Get_GetAGalleryApplication() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryApplication_Get.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2024-03-03/examples/galleryExamples/GalleryApplication_Get.json // this example is just showing the usage of "GalleryApplications_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 @@ -114,7 +114,7 @@ public async Task Get_GetAGalleryApplication() [Ignore("Only validating compilation of examples")] public async Task Exists_GetAGalleryApplication() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryApplication_Get.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2024-03-03/examples/galleryExamples/GalleryApplication_Get.json // this example is just showing the usage of "GalleryApplications_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 @@ -144,7 +144,7 @@ public async Task Exists_GetAGalleryApplication() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_GetAGalleryApplication() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryApplication_Get.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2024-03-03/examples/galleryExamples/GalleryApplication_Get.json // this example is just showing the usage of "GalleryApplications_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 @@ -186,7 +186,7 @@ public async Task GetIfExists_GetAGalleryApplication() [Ignore("Only validating compilation of examples")] public async Task GetAll_ListGalleryApplicationsInAGallery() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryApplication_ListByGallery.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2024-03-03/examples/galleryExamples/GalleryApplication_ListByGallery.json // this example is just showing the usage of "GalleryApplications_ListByGallery" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details 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/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_GalleryApplicationResource.cs b/sdk/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_GalleryApplicationResource.cs index 31eff80595aa..bd03abbd896d 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_GalleryApplicationResource.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_GalleryApplicationResource.cs @@ -20,7 +20,7 @@ public partial class Sample_GalleryApplicationResource [Ignore("Only validating compilation of examples")] public async Task Update_UpdateASimpleGalleryApplication() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryApplication_Update.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2024-03-03/examples/galleryExamples/GalleryApplication_Update.json // this example is just showing the usage of "GalleryApplications_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 @@ -77,7 +77,7 @@ public async Task Update_UpdateASimpleGalleryApplication() [Ignore("Only validating compilation of examples")] public async Task Get_GetAGalleryApplication() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryApplication_Get.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2024-03-03/examples/galleryExamples/GalleryApplication_Get.json // this example is just showing the usage of "GalleryApplications_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 @@ -108,7 +108,7 @@ public async Task Get_GetAGalleryApplication() [Ignore("Only validating compilation of examples")] public async Task Delete_DeleteAGalleryApplication() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryApplication_Delete.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2024-03-03/examples/galleryExamples/GalleryApplication_Delete.json // this example is just showing the usage of "GalleryApplications_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/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_GalleryApplicationVersionCollection.cs b/sdk/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_GalleryApplicationVersionCollection.cs index e0e54dbcb65a..dabec1c4e437 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_GalleryApplicationVersionCollection.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_GalleryApplicationVersionCollection.cs @@ -20,7 +20,7 @@ public partial class Sample_GalleryApplicationVersionCollection [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_CreateOrUpdateASimpleGalleryApplicationVersion() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryApplicationVersion_Create.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2024-03-03/examples/galleryExamples/GalleryApplicationVersion_Create.json // this example is just showing the usage of "GalleryApplicationVersions_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 @@ -93,7 +93,7 @@ public async Task CreateOrUpdate_CreateOrUpdateASimpleGalleryApplicationVersion( [Ignore("Only validating compilation of examples")] public async Task Get_GetAGalleryApplicationVersionWithReplicationStatus() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryApplicationVersion_Get_WithReplicationStatus.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2024-03-03/examples/galleryExamples/GalleryApplicationVersion_Get_WithReplicationStatus.json // this example is just showing the usage of "GalleryApplicationVersions_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 Get_GetAGalleryApplicationVersionWithReplicationStatus() [Ignore("Only validating compilation of examples")] public async Task Exists_GetAGalleryApplicationVersionWithReplicationStatus() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryApplicationVersion_Get_WithReplicationStatus.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2024-03-03/examples/galleryExamples/GalleryApplicationVersion_Get_WithReplicationStatus.json // this example is just showing the usage of "GalleryApplicationVersions_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 @@ -161,7 +161,7 @@ public async Task Exists_GetAGalleryApplicationVersionWithReplicationStatus() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_GetAGalleryApplicationVersionWithReplicationStatus() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryApplicationVersion_Get_WithReplicationStatus.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2024-03-03/examples/galleryExamples/GalleryApplicationVersion_Get_WithReplicationStatus.json // this example is just showing the usage of "GalleryApplicationVersions_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 @@ -205,7 +205,7 @@ public async Task GetIfExists_GetAGalleryApplicationVersionWithReplicationStatus [Ignore("Only validating compilation of examples")] public async Task Get_GetAGalleryApplicationVersion() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryApplicationVersion_Get.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2024-03-03/examples/galleryExamples/GalleryApplicationVersion_Get.json // this example is just showing the usage of "GalleryApplicationVersions_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 @@ -240,7 +240,7 @@ public async Task Get_GetAGalleryApplicationVersion() [Ignore("Only validating compilation of examples")] public async Task Exists_GetAGalleryApplicationVersion() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryApplicationVersion_Get.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2024-03-03/examples/galleryExamples/GalleryApplicationVersion_Get.json // this example is just showing the usage of "GalleryApplicationVersions_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 @@ -271,7 +271,7 @@ public async Task Exists_GetAGalleryApplicationVersion() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_GetAGalleryApplicationVersion() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryApplicationVersion_Get.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2024-03-03/examples/galleryExamples/GalleryApplicationVersion_Get.json // this example is just showing the usage of "GalleryApplicationVersions_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 @@ -314,7 +314,7 @@ public async Task GetIfExists_GetAGalleryApplicationVersion() [Ignore("Only validating compilation of examples")] public async Task GetAll_ListGalleryApplicationVersionsInAGalleryApplicationDefinition() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryApplicationVersion_ListByGalleryApplication.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2024-03-03/examples/galleryExamples/GalleryApplicationVersion_ListByGalleryApplication.json // this example is just showing the usage of "GalleryApplicationVersions_ListByGalleryApplication" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details 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/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_GalleryApplicationVersionResource.cs b/sdk/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_GalleryApplicationVersionResource.cs index eacdd2aecd13..9f7b4589d133 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_GalleryApplicationVersionResource.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_GalleryApplicationVersionResource.cs @@ -20,7 +20,7 @@ public partial class Sample_GalleryApplicationVersionResource [Ignore("Only validating compilation of examples")] public async Task Update_UpdateASimpleGalleryApplicationVersion() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryApplicationVersion_Update.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2024-03-03/examples/galleryExamples/GalleryApplicationVersion_Update.json // this example is just showing the usage of "GalleryApplicationVersions_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 @@ -73,7 +73,7 @@ public async Task Update_UpdateASimpleGalleryApplicationVersion() [Ignore("Only validating compilation of examples")] public async Task Get_GetAGalleryApplicationVersionWithReplicationStatus() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryApplicationVersion_Get_WithReplicationStatus.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2024-03-03/examples/galleryExamples/GalleryApplicationVersion_Get_WithReplicationStatus.json // this example is just showing the usage of "GalleryApplicationVersions_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_GetAGalleryApplicationVersionWithReplicationStatus() [Ignore("Only validating compilation of examples")] public async Task Get_GetAGalleryApplicationVersion() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryApplicationVersion_Get.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2024-03-03/examples/galleryExamples/GalleryApplicationVersion_Get.json // this example is just showing the usage of "GalleryApplicationVersions_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 @@ -138,7 +138,7 @@ public async Task Get_GetAGalleryApplicationVersion() [Ignore("Only validating compilation of examples")] public async Task Delete_DeleteAGalleryApplicationVersion() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryApplicationVersion_Delete.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2024-03-03/examples/galleryExamples/GalleryApplicationVersion_Delete.json // this example is just showing the usage of "GalleryApplicationVersions_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/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_GalleryCollection.cs b/sdk/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_GalleryCollection.cs index ee95006ffe80..03b3fa3b7060 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_GalleryCollection.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_GalleryCollection.cs @@ -10,6 +10,7 @@ using Azure.Core; using Azure.Identity; using Azure.ResourceManager.Compute.Models; +using Azure.ResourceManager.Models; using Azure.ResourceManager.Resources; using NUnit.Framework; @@ -21,7 +22,7 @@ public partial class Sample_GalleryCollection [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_CreateACommunityGallery() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/CommunityGallery_Create.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2024-03-03/examples/galleryExamples/CommunityGallery_Create.json // this example is just showing the usage of "Galleries_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 @@ -70,7 +71,7 @@ public async Task CreateOrUpdate_CreateACommunityGallery() [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_CreateOrUpdateASimpleGalleryWithSharingProfile() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/Gallery_Create_WithSharingProfile.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2024-03-03/examples/galleryExamples/Gallery_Create_WithSharingProfile.json // this example is just showing the usage of "Galleries_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 @@ -112,7 +113,7 @@ public async Task CreateOrUpdate_CreateOrUpdateASimpleGalleryWithSharingProfile( [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_CreateOrUpdateASimpleGalleryWithSoftDeletionEnabled() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/Gallery_Create_SoftDeletionEnabled.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2024-03-03/examples/galleryExamples/Gallery_Create_SoftDeletionEnabled.json // this example is just showing the usage of "Galleries_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 @@ -147,11 +148,56 @@ public async Task CreateOrUpdate_CreateOrUpdateASimpleGalleryWithSoftDeletionEna Console.WriteLine($"Succeeded on id: {resourceData.Id}"); } + [Test] + [Ignore("Only validating compilation of examples")] + public async Task CreateOrUpdate_CreateOrUpdateASimpleGalleryWithSystemAssignedAndUserAssignedManagedIdentities() + { + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2024-03-03/examples/galleryExamples/Gallery_Create_WithManagedIdentity.json + // this example is just showing the usage of "Galleries_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 ResourceGroupResource created on azure + // for more information of creating ResourceGroupResource, please refer to the document of ResourceGroupResource + string subscriptionId = "{subscription-id}"; + string resourceGroupName = "myResourceGroup"; + ResourceIdentifier resourceGroupResourceId = ResourceGroupResource.CreateResourceIdentifier(subscriptionId, resourceGroupName); + ResourceGroupResource resourceGroupResource = client.GetResourceGroupResource(resourceGroupResourceId); + + // get the collection of this GalleryResource + GalleryCollection collection = resourceGroupResource.GetGalleries(); + + // invoke the operation + string galleryName = "myGalleryName"; + GalleryData data = new GalleryData(new AzureLocation("West US")) + { + Identity = new ManagedServiceIdentity("SystemAssigned, UserAssigned") + { + UserAssignedIdentities = +{ +[new ResourceIdentifier("/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/myIdentity")] = new UserAssignedIdentity(), +}, + }, + Description = "This is the gallery description.", + }; + ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, galleryName, data); + GalleryResource 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 + GalleryData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + [Test] [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_CreateOrUpdateASimpleGallery() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/Gallery_Create.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2024-03-03/examples/galleryExamples/Gallery_Create.json // this example is just showing the usage of "Galleries_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 @@ -189,7 +235,7 @@ public async Task CreateOrUpdate_CreateOrUpdateASimpleGallery() [Ignore("Only validating compilation of examples")] public async Task Get_GetACommunityGallery() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/CommunityGallery_Get.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2024-03-03/examples/galleryExamples/CommunityGallery_Get.json // this example is just showing the usage of "Galleries_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 @@ -222,7 +268,7 @@ public async Task Get_GetACommunityGallery() [Ignore("Only validating compilation of examples")] public async Task Exists_GetACommunityGallery() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/CommunityGallery_Get.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2024-03-03/examples/galleryExamples/CommunityGallery_Get.json // this example is just showing the usage of "Galleries_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 @@ -251,7 +297,7 @@ public async Task Exists_GetACommunityGallery() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_GetACommunityGallery() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/CommunityGallery_Get.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2024-03-03/examples/galleryExamples/CommunityGallery_Get.json // this example is just showing the usage of "Galleries_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 @@ -292,7 +338,7 @@ public async Task GetIfExists_GetACommunityGallery() [Ignore("Only validating compilation of examples")] public async Task Get_GetAGalleryWithExpandSharingProfileGroups() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/Gallery_Get_WithExpandSharingProfileGroups.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2024-03-03/examples/galleryExamples/Gallery_Get_WithExpandSharingProfileGroups.json // this example is just showing the usage of "Galleries_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 @@ -326,7 +372,7 @@ public async Task Get_GetAGalleryWithExpandSharingProfileGroups() [Ignore("Only validating compilation of examples")] public async Task Exists_GetAGalleryWithExpandSharingProfileGroups() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/Gallery_Get_WithExpandSharingProfileGroups.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2024-03-03/examples/galleryExamples/Gallery_Get_WithExpandSharingProfileGroups.json // this example is just showing the usage of "Galleries_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 @@ -356,7 +402,7 @@ public async Task Exists_GetAGalleryWithExpandSharingProfileGroups() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_GetAGalleryWithExpandSharingProfileGroups() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/Gallery_Get_WithExpandSharingProfileGroups.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2024-03-03/examples/galleryExamples/Gallery_Get_WithExpandSharingProfileGroups.json // this example is just showing the usage of "Galleries_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 @@ -398,7 +444,7 @@ public async Task GetIfExists_GetAGalleryWithExpandSharingProfileGroups() [Ignore("Only validating compilation of examples")] public async Task Get_GetAGalleryWithSelectPermissions() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/Gallery_Get_WithSelectPermissions.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2024-03-03/examples/galleryExamples/Gallery_Get_WithSelectPermissions.json // this example is just showing the usage of "Galleries_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 @@ -432,7 +478,7 @@ public async Task Get_GetAGalleryWithSelectPermissions() [Ignore("Only validating compilation of examples")] public async Task Exists_GetAGalleryWithSelectPermissions() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/Gallery_Get_WithSelectPermissions.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2024-03-03/examples/galleryExamples/Gallery_Get_WithSelectPermissions.json // this example is just showing the usage of "Galleries_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 @@ -462,7 +508,7 @@ public async Task Exists_GetAGalleryWithSelectPermissions() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_GetAGalleryWithSelectPermissions() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/Gallery_Get_WithSelectPermissions.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2024-03-03/examples/galleryExamples/Gallery_Get_WithSelectPermissions.json // this example is just showing the usage of "Galleries_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 @@ -500,11 +546,114 @@ public async Task GetIfExists_GetAGalleryWithSelectPermissions() } } + [Test] + [Ignore("Only validating compilation of examples")] + public async Task Get_GetAGalleryWithSystemAssignedAndUserAssignedManagedIdentities() + { + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2024-03-03/examples/galleryExamples/Gallery_Get_WithManagedIdentity.json + // this example is just showing the usage of "Galleries_Get" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this ResourceGroupResource created on azure + // for more information of creating ResourceGroupResource, please refer to the document of ResourceGroupResource + string subscriptionId = "{subscription-id}"; + string resourceGroupName = "myResourceGroup"; + ResourceIdentifier resourceGroupResourceId = ResourceGroupResource.CreateResourceIdentifier(subscriptionId, resourceGroupName); + ResourceGroupResource resourceGroupResource = client.GetResourceGroupResource(resourceGroupResourceId); + + // get the collection of this GalleryResource + GalleryCollection collection = resourceGroupResource.GetGalleries(); + + // invoke the operation + string galleryName = "myGalleryName"; + GalleryResource result = await collection.GetAsync(galleryName); + + // 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 + GalleryData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + + [Test] + [Ignore("Only validating compilation of examples")] + public async Task Exists_GetAGalleryWithSystemAssignedAndUserAssignedManagedIdentities() + { + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2024-03-03/examples/galleryExamples/Gallery_Get_WithManagedIdentity.json + // this example is just showing the usage of "Galleries_Get" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this ResourceGroupResource created on azure + // for more information of creating ResourceGroupResource, please refer to the document of ResourceGroupResource + string subscriptionId = "{subscription-id}"; + string resourceGroupName = "myResourceGroup"; + ResourceIdentifier resourceGroupResourceId = ResourceGroupResource.CreateResourceIdentifier(subscriptionId, resourceGroupName); + ResourceGroupResource resourceGroupResource = client.GetResourceGroupResource(resourceGroupResourceId); + + // get the collection of this GalleryResource + GalleryCollection collection = resourceGroupResource.GetGalleries(); + + // invoke the operation + string galleryName = "myGalleryName"; + bool result = await collection.ExistsAsync(galleryName); + + Console.WriteLine($"Succeeded: {result}"); + } + + [Test] + [Ignore("Only validating compilation of examples")] + public async Task GetIfExists_GetAGalleryWithSystemAssignedAndUserAssignedManagedIdentities() + { + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2024-03-03/examples/galleryExamples/Gallery_Get_WithManagedIdentity.json + // this example is just showing the usage of "Galleries_Get" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this ResourceGroupResource created on azure + // for more information of creating ResourceGroupResource, please refer to the document of ResourceGroupResource + string subscriptionId = "{subscription-id}"; + string resourceGroupName = "myResourceGroup"; + ResourceIdentifier resourceGroupResourceId = ResourceGroupResource.CreateResourceIdentifier(subscriptionId, resourceGroupName); + ResourceGroupResource resourceGroupResource = client.GetResourceGroupResource(resourceGroupResourceId); + + // get the collection of this GalleryResource + GalleryCollection collection = resourceGroupResource.GetGalleries(); + + // invoke the operation + string galleryName = "myGalleryName"; + NullableResponse response = await collection.GetIfExistsAsync(galleryName); + GalleryResource 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 + GalleryData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + } + [Test] [Ignore("Only validating compilation of examples")] public async Task Get_GetAGallery() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/Gallery_Get.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2024-03-03/examples/galleryExamples/Gallery_Get.json // this example is just showing the usage of "Galleries_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 @@ -537,7 +686,7 @@ public async Task Get_GetAGallery() [Ignore("Only validating compilation of examples")] public async Task Exists_GetAGallery() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/Gallery_Get.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2024-03-03/examples/galleryExamples/Gallery_Get.json // this example is just showing the usage of "Galleries_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 @@ -566,7 +715,7 @@ public async Task Exists_GetAGallery() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_GetAGallery() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/Gallery_Get.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2024-03-03/examples/galleryExamples/Gallery_Get.json // this example is just showing the usage of "Galleries_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 @@ -607,7 +756,7 @@ public async Task GetIfExists_GetAGallery() [Ignore("Only validating compilation of examples")] public async Task GetAll_ListGalleriesInAResourceGroup() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/Gallery_ListByResourceGroup.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2024-03-03/examples/galleryExamples/Gallery_ListByResourceGroup.json // this example is just showing the usage of "Galleries_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/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_GalleryImageCollection.cs b/sdk/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_GalleryImageCollection.cs index 23fee20d2de2..c68283828046 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_GalleryImageCollection.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_GalleryImageCollection.cs @@ -20,7 +20,7 @@ public partial class Sample_GalleryImageCollection [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_CreateOrUpdateASimpleGalleryImage() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryImage_Create.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2024-03-03/examples/galleryExamples/GalleryImage_Create.json // this example is just showing the usage of "GalleryImages_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_CreateOrUpdateASimpleGalleryImage() [Ignore("Only validating compilation of examples")] public async Task Get_GetAGalleryImage() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryImage_Get.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2024-03-03/examples/galleryExamples/GalleryImage_Get.json // this example is just showing the usage of "GalleryImages_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_GetAGalleryImage() [Ignore("Only validating compilation of examples")] public async Task Exists_GetAGalleryImage() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryImage_Get.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2024-03-03/examples/galleryExamples/GalleryImage_Get.json // this example is just showing the usage of "GalleryImages_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_GetAGalleryImage() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_GetAGalleryImage() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryImage_Get.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2024-03-03/examples/galleryExamples/GalleryImage_Get.json // this example is just showing the usage of "GalleryImages_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_GetAGalleryImage() [Ignore("Only validating compilation of examples")] public async Task GetAll_ListGalleryImagesInAGallery() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryImage_ListByGallery.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2024-03-03/examples/galleryExamples/GalleryImage_ListByGallery.json // this example is just showing the usage of "GalleryImages_ListByGallery" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details 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/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_GalleryImageResource.cs b/sdk/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_GalleryImageResource.cs index d124fbc60bea..06eac9faca60 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_GalleryImageResource.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_GalleryImageResource.cs @@ -16,11 +16,60 @@ namespace Azure.ResourceManager.Compute.Samples { public partial class Sample_GalleryImageResource { + [Test] + [Ignore("Only validating compilation of examples")] + public async Task Update_UpdateAGalleryImageFeature() + { + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2024-03-03/examples/galleryExamples/GalleryImage_UpdateFeatures.json + // this example is just showing the usage of "GalleryImages_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 GalleryImageResource created on azure + // for more information of creating GalleryImageResource, please refer to the document of GalleryImageResource + string subscriptionId = "{subscription-id}"; + string resourceGroupName = "myResourceGroup"; + string galleryName = "myGalleryName"; + string galleryImageName = "myGalleryImageName"; + ResourceIdentifier galleryImageResourceId = GalleryImageResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, galleryName, galleryImageName); + GalleryImageResource galleryImage = client.GetGalleryImageResource(galleryImageResourceId); + + // invoke the operation + GalleryImagePatch patch = new GalleryImagePatch() + { + OSType = SupportedOperatingSystemType.Windows, + OSState = OperatingSystemStateType.Generalized, + HyperVGeneration = HyperVGeneration.V2, + Identifier = new GalleryImageIdentifier("myPublisherName", "myOfferName", "mySkuName"), + Features = +{ +new GalleryImageFeature() +{ +Name = "SecurityType", +Value = "TrustedLaunch", +StartsAtVersion = "2.0.0", +} +}, + AllowUpdateImage = true, + }; + ArmOperation lro = await galleryImage.UpdateAsync(WaitUntil.Completed, patch); + GalleryImageResource 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 + GalleryImageData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + [Test] [Ignore("Only validating compilation of examples")] public async Task Update_UpdateASimpleGalleryImage() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryImage_Update.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2024-03-03/examples/galleryExamples/GalleryImage_Update.json // this example is just showing the usage of "GalleryImages_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 @@ -59,7 +108,7 @@ public async Task Update_UpdateASimpleGalleryImage() [Ignore("Only validating compilation of examples")] public async Task Get_GetAGalleryImage() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryImage_Get.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2024-03-03/examples/galleryExamples/GalleryImage_Get.json // this example is just showing the usage of "GalleryImages_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 +139,7 @@ public async Task Get_GetAGalleryImage() [Ignore("Only validating compilation of examples")] public async Task Delete_DeleteAGalleryImage() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryImage_Delete.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2024-03-03/examples/galleryExamples/GalleryImage_Delete.json // this example is just showing the usage of "GalleryImages_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/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_GalleryImageVersionCollection.cs b/sdk/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_GalleryImageVersionCollection.cs index 3fd01e934a39..3c4b20552f8d 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_GalleryImageVersionCollection.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_GalleryImageVersionCollection.cs @@ -20,7 +20,7 @@ public partial class Sample_GalleryImageVersionCollection [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_CreateOrUpdateASimpleGalleryImageVersionUsingVMAsSource() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryImageVersion_Create_WithVmAsSource.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2024-03-03/examples/galleryExamples/GalleryImageVersion_Create_WithVmAsSource.json // this example is just showing the usage of "GalleryImageVersions_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 @@ -103,6 +103,7 @@ public async Task CreateOrUpdate_CreateOrUpdateASimpleGalleryImageVersionUsingVM }, SafetyProfile = new GalleryImageVersionSafetyProfile() { + BlockDeletionBeforeEndOfLife = false, AllowDeletionOfReplicatedLocations = false, }, }; @@ -120,7 +121,7 @@ public async Task CreateOrUpdate_CreateOrUpdateASimpleGalleryImageVersionUsingVM [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_CreateOrUpdateASimpleGalleryImageVersionUsingCommunityGalleryImageAsSource() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryImageVersion_Create_WithCommunityImageVersionAsSource.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2024-03-03/examples/galleryExamples/GalleryImageVersion_Create_WithCommunityImageVersionAsSource.json // this example is just showing the usage of "GalleryImageVersions_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 @@ -203,6 +204,7 @@ public async Task CreateOrUpdate_CreateOrUpdateASimpleGalleryImageVersionUsingCo }, SafetyProfile = new GalleryImageVersionSafetyProfile() { + BlockDeletionBeforeEndOfLife = false, AllowDeletionOfReplicatedLocations = false, }, }; @@ -220,7 +222,7 @@ public async Task CreateOrUpdate_CreateOrUpdateASimpleGalleryImageVersionUsingCo [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_CreateOrUpdateASimpleGalleryImageVersionUsingManagedImageAsSource() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryImageVersion_Create.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2024-03-03/examples/galleryExamples/GalleryImageVersion_Create.json // this example is just showing the usage of "GalleryImageVersions_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 @@ -303,6 +305,7 @@ public async Task CreateOrUpdate_CreateOrUpdateASimpleGalleryImageVersionUsingMa }, SafetyProfile = new GalleryImageVersionSafetyProfile() { + BlockDeletionBeforeEndOfLife = false, AllowDeletionOfReplicatedLocations = false, }, }; @@ -320,7 +323,7 @@ public async Task CreateOrUpdate_CreateOrUpdateASimpleGalleryImageVersionUsingMa [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_CreateOrUpdateASimpleGalleryImageVersionUsingMixOfDisksAndSnapshotsAsASource() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryImageVersion_Create_WithSnapshotsAsSource.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2024-03-03/examples/galleryExamples/GalleryImageVersion_Create_WithSnapshotsAsSource.json // this example is just showing the usage of "GalleryImageVersions_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 @@ -412,6 +415,7 @@ public async Task CreateOrUpdate_CreateOrUpdateASimpleGalleryImageVersionUsingMi }, SafetyProfile = new GalleryImageVersionSafetyProfile() { + BlockDeletionBeforeEndOfLife = false, AllowDeletionOfReplicatedLocations = false, }, }; @@ -429,7 +433,7 @@ public async Task CreateOrUpdate_CreateOrUpdateASimpleGalleryImageVersionUsingMi [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_CreateOrUpdateASimpleGalleryImageVersionUsingShallowReplicationMode() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryImageVersion_Create_WithShallowReplicationMode.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2024-03-03/examples/galleryExamples/GalleryImageVersion_Create_WithShallowReplicationMode.json // this example is just showing the usage of "GalleryImageVersions_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 @@ -474,6 +478,7 @@ public async Task CreateOrUpdate_CreateOrUpdateASimpleGalleryImageVersionUsingSh }, SafetyProfile = new GalleryImageVersionSafetyProfile() { + BlockDeletionBeforeEndOfLife = false, AllowDeletionOfReplicatedLocations = false, }, }; @@ -491,7 +496,7 @@ public async Task CreateOrUpdate_CreateOrUpdateASimpleGalleryImageVersionUsingSh [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_CreateOrUpdateASimpleGalleryImageVersionUsingSharedImageAsSource() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryImageVersion_Create_WithImageVersionAsSource.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2024-03-03/examples/galleryExamples/GalleryImageVersion_Create_WithImageVersionAsSource.json // this example is just showing the usage of "GalleryImageVersions_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 @@ -574,6 +579,7 @@ public async Task CreateOrUpdate_CreateOrUpdateASimpleGalleryImageVersionUsingSh }, SafetyProfile = new GalleryImageVersionSafetyProfile() { + BlockDeletionBeforeEndOfLife = false, AllowDeletionOfReplicatedLocations = false, }, }; @@ -591,7 +597,7 @@ public async Task CreateOrUpdate_CreateOrUpdateASimpleGalleryImageVersionUsingSh [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_CreateOrUpdateASimpleGalleryImageVersionUsingSnapshotsAsASource() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryImageVersion_Create_WithSnapshotsAsSource.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2024-03-03/examples/galleryExamples/GalleryImageVersion_Create_WithSnapshotsAsSource.json // this example is just showing the usage of "GalleryImageVersions_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 @@ -683,6 +689,7 @@ public async Task CreateOrUpdate_CreateOrUpdateASimpleGalleryImageVersionUsingSn }, SafetyProfile = new GalleryImageVersionSafetyProfile() { + BlockDeletionBeforeEndOfLife = false, AllowDeletionOfReplicatedLocations = false, }, }; @@ -700,7 +707,7 @@ public async Task CreateOrUpdate_CreateOrUpdateASimpleGalleryImageVersionUsingSn [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_CreateOrUpdateASimpleGalleryImageVersionUsingVhdAsASourceWithCustomUEFIKeys() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryImageVersion_Create_WithVHD_UefiSettings.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2024-03-03/examples/galleryExamples/GalleryImageVersion_Create_WithVHD_UefiSettings.json // this example is just showing the usage of "GalleryImageVersions_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 @@ -780,6 +787,7 @@ public async Task CreateOrUpdate_CreateOrUpdateASimpleGalleryImageVersionUsingVh }, SafetyProfile = new GalleryImageVersionSafetyProfile() { + BlockDeletionBeforeEndOfLife = false, AllowDeletionOfReplicatedLocations = false, }, SecurityUefiSettings = new GalleryImageVersionUefiSettings() @@ -840,7 +848,7 @@ public async Task CreateOrUpdate_CreateOrUpdateASimpleGalleryImageVersionUsingVh [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_CreateOrUpdateASimpleGalleryImageVersionUsingVhdAsASource() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryImageVersion_Create_WithVHD.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2024-03-03/examples/galleryExamples/GalleryImageVersion_Create_WithVHD.json // this example is just showing the usage of "GalleryImageVersions_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 @@ -919,6 +927,115 @@ public async Task CreateOrUpdate_CreateOrUpdateASimpleGalleryImageVersionUsingVh }, }, SafetyProfile = new GalleryImageVersionSafetyProfile() + { + BlockDeletionBeforeEndOfLife = false, + AllowDeletionOfReplicatedLocations = false, + }, + }; + ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, galleryImageVersionName, data); + GalleryImageVersionResource 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 + GalleryImageVersionData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + + [Test] + [Ignore("Only validating compilation of examples")] + public async Task CreateOrUpdate_CreateOrUpdateASimpleGalleryImageVersionWithDirectDriveReplicas() + { + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2024-03-03/examples/galleryExamples/GalleryImageVersion_Create_WithAdditionalReplicaSets.json + // this example is just showing the usage of "GalleryImageVersions_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 GalleryImageResource created on azure + // for more information of creating GalleryImageResource, please refer to the document of GalleryImageResource + string subscriptionId = "{subscription-id}"; + string resourceGroupName = "myResourceGroup"; + string galleryName = "myGalleryName"; + string galleryImageName = "myGalleryImageName"; + ResourceIdentifier galleryImageResourceId = GalleryImageResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, galleryName, galleryImageName); + GalleryImageResource galleryImage = client.GetGalleryImageResource(galleryImageResourceId); + + // get the collection of this GalleryImageVersionResource + GalleryImageVersionCollection collection = galleryImage.GetGalleryImageVersions(); + + // invoke the operation + string galleryImageVersionName = "1.0.0"; + GalleryImageVersionData data = new GalleryImageVersionData(new AzureLocation("West US")) + { + PublishingProfile = new GalleryImageVersionPublishingProfile() + { + TargetRegions = +{ +new TargetRegion("West US") +{ +RegionalReplicaCount = 1, +Encryption = new EncryptionImages() +{ +OSDiskImage = new OSDiskImageEncryption() +{ +DiskEncryptionSetId = new ResourceIdentifier("/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myWestUSDiskEncryptionSet"), +}, +DataDiskImages = +{ +new DataDiskImageEncryption(0) +{ +DiskEncryptionSetId = new ResourceIdentifier("/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myOtherWestUSDiskEncryptionSet"), +},new DataDiskImageEncryption(1) +{ +DiskEncryptionSetId = new ResourceIdentifier("/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myWestUSDiskEncryptionSet"), +} +}, +}, +IsExcludedFromLatest = false, +AdditionalReplicaSets = +{ +new AdditionalReplicaSet() +{ +StorageAccountType = new ImageStorageAccountType("PreviumV2_LRS"), +RegionalReplicaCount = 1, +} +}, +},new TargetRegion("East US") +{ +RegionalReplicaCount = 2, +StorageAccountType = ImageStorageAccountType.StandardZrs, +Encryption = new EncryptionImages() +{ +OSDiskImage = new OSDiskImageEncryption() +{ +DiskEncryptionSetId = new ResourceIdentifier("/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myEastUSDiskEncryptionSet"), +}, +DataDiskImages = +{ +new DataDiskImageEncryption(0) +{ +DiskEncryptionSetId = new ResourceIdentifier("/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myOtherEastUSDiskEncryptionSet"), +},new DataDiskImageEncryption(1) +{ +DiskEncryptionSetId = new ResourceIdentifier("/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myEastUSDiskEncryptionSet"), +} +}, +}, +IsExcludedFromLatest = false, +} +}, + }, + StorageProfile = new GalleryImageVersionStorageProfile() + { + GallerySource = new GalleryArtifactVersionFullSource() + { + Id = new ResourceIdentifier("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/images/{imageName}"), + }, + }, + SafetyProfile = new GalleryImageVersionSafetyProfile() { AllowDeletionOfReplicatedLocations = false, }, @@ -937,7 +1054,7 @@ public async Task CreateOrUpdate_CreateOrUpdateASimpleGalleryImageVersionUsingVh [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_CreateOrUpdateASimpleGalleryImageVersionWithTargetExtendedLocationsSpecified() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryImageVersion_Create_WithTargetExtendedLocations.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2024-03-03/examples/galleryExamples/GalleryImageVersion_Create_WithTargetExtendedLocations.json // this example is just showing the usage of "GalleryImageVersions_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 @@ -1020,6 +1137,7 @@ public async Task CreateOrUpdate_CreateOrUpdateASimpleGalleryImageVersionWithTar }, SafetyProfile = new GalleryImageVersionSafetyProfile() { + BlockDeletionBeforeEndOfLife = false, AllowDeletionOfReplicatedLocations = false, }, }; @@ -1037,7 +1155,7 @@ public async Task CreateOrUpdate_CreateOrUpdateASimpleGalleryImageVersionWithTar [Ignore("Only validating compilation of examples")] public async Task Get_GetAGalleryImageVersionWithReplicationStatus() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryImageVersion_Get_WithReplicationStatus.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2024-03-03/examples/galleryExamples/GalleryImageVersion_Get_WithReplicationStatus.json // this example is just showing the usage of "GalleryImageVersions_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 @@ -1073,7 +1191,7 @@ public async Task Get_GetAGalleryImageVersionWithReplicationStatus() [Ignore("Only validating compilation of examples")] public async Task Exists_GetAGalleryImageVersionWithReplicationStatus() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryImageVersion_Get_WithReplicationStatus.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2024-03-03/examples/galleryExamples/GalleryImageVersion_Get_WithReplicationStatus.json // this example is just showing the usage of "GalleryImageVersions_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 @@ -1105,7 +1223,7 @@ public async Task Exists_GetAGalleryImageVersionWithReplicationStatus() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_GetAGalleryImageVersionWithReplicationStatus() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryImageVersion_Get_WithReplicationStatus.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2024-03-03/examples/galleryExamples/GalleryImageVersion_Get_WithReplicationStatus.json // this example is just showing the usage of "GalleryImageVersions_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 @@ -1149,7 +1267,7 @@ public async Task GetIfExists_GetAGalleryImageVersionWithReplicationStatus() [Ignore("Only validating compilation of examples")] public async Task Get_GetAGalleryImageVersionWithSnapshotsAsASource() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryImageVersion_Get_WithSnapshotsAsSource.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2024-03-03/examples/galleryExamples/GalleryImageVersion_Get_WithSnapshotsAsSource.json // this example is just showing the usage of "GalleryImageVersions_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 @@ -1184,7 +1302,7 @@ public async Task Get_GetAGalleryImageVersionWithSnapshotsAsASource() [Ignore("Only validating compilation of examples")] public async Task Exists_GetAGalleryImageVersionWithSnapshotsAsASource() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryImageVersion_Get_WithSnapshotsAsSource.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2024-03-03/examples/galleryExamples/GalleryImageVersion_Get_WithSnapshotsAsSource.json // this example is just showing the usage of "GalleryImageVersions_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 @@ -1215,7 +1333,7 @@ public async Task Exists_GetAGalleryImageVersionWithSnapshotsAsASource() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_GetAGalleryImageVersionWithSnapshotsAsASource() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryImageVersion_Get_WithSnapshotsAsSource.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2024-03-03/examples/galleryExamples/GalleryImageVersion_Get_WithSnapshotsAsSource.json // this example is just showing the usage of "GalleryImageVersions_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 @@ -1254,11 +1372,235 @@ public async Task GetIfExists_GetAGalleryImageVersionWithSnapshotsAsASource() } } + [Test] + [Ignore("Only validating compilation of examples")] + public async Task Get_GetAGalleryImageVersionWithValidationProfileAndReplicationStatus() + { + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2024-03-03/examples/galleryExamples/GalleryImageVersion_Get_WithValidationProfileAndReplicationStatus.json + // this example is just showing the usage of "GalleryImageVersions_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 GalleryImageResource created on azure + // for more information of creating GalleryImageResource, please refer to the document of GalleryImageResource + string subscriptionId = "{subscription-id}"; + string resourceGroupName = "myResourceGroup"; + string galleryName = "myGalleryName"; + string galleryImageName = "myGalleryImageName"; + ResourceIdentifier galleryImageResourceId = GalleryImageResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, galleryName, galleryImageName); + GalleryImageResource galleryImage = client.GetGalleryImageResource(galleryImageResourceId); + + // get the collection of this GalleryImageVersionResource + GalleryImageVersionCollection collection = galleryImage.GetGalleryImageVersions(); + + // invoke the operation + string galleryImageVersionName = "1.0.0"; + ReplicationStatusType? expand = new ReplicationStatusType("ValidationProfile,ReplicationStatus"); + GalleryImageVersionResource result = await collection.GetAsync(galleryImageVersionName, expand: expand); + + // 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 + GalleryImageVersionData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + + [Test] + [Ignore("Only validating compilation of examples")] + public async Task Exists_GetAGalleryImageVersionWithValidationProfileAndReplicationStatus() + { + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2024-03-03/examples/galleryExamples/GalleryImageVersion_Get_WithValidationProfileAndReplicationStatus.json + // this example is just showing the usage of "GalleryImageVersions_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 GalleryImageResource created on azure + // for more information of creating GalleryImageResource, please refer to the document of GalleryImageResource + string subscriptionId = "{subscription-id}"; + string resourceGroupName = "myResourceGroup"; + string galleryName = "myGalleryName"; + string galleryImageName = "myGalleryImageName"; + ResourceIdentifier galleryImageResourceId = GalleryImageResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, galleryName, galleryImageName); + GalleryImageResource galleryImage = client.GetGalleryImageResource(galleryImageResourceId); + + // get the collection of this GalleryImageVersionResource + GalleryImageVersionCollection collection = galleryImage.GetGalleryImageVersions(); + + // invoke the operation + string galleryImageVersionName = "1.0.0"; + ReplicationStatusType? expand = new ReplicationStatusType("ValidationProfile,ReplicationStatus"); + bool result = await collection.ExistsAsync(galleryImageVersionName, expand: expand); + + Console.WriteLine($"Succeeded: {result}"); + } + + [Test] + [Ignore("Only validating compilation of examples")] + public async Task GetIfExists_GetAGalleryImageVersionWithValidationProfileAndReplicationStatus() + { + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2024-03-03/examples/galleryExamples/GalleryImageVersion_Get_WithValidationProfileAndReplicationStatus.json + // this example is just showing the usage of "GalleryImageVersions_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 GalleryImageResource created on azure + // for more information of creating GalleryImageResource, please refer to the document of GalleryImageResource + string subscriptionId = "{subscription-id}"; + string resourceGroupName = "myResourceGroup"; + string galleryName = "myGalleryName"; + string galleryImageName = "myGalleryImageName"; + ResourceIdentifier galleryImageResourceId = GalleryImageResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, galleryName, galleryImageName); + GalleryImageResource galleryImage = client.GetGalleryImageResource(galleryImageResourceId); + + // get the collection of this GalleryImageVersionResource + GalleryImageVersionCollection collection = galleryImage.GetGalleryImageVersions(); + + // invoke the operation + string galleryImageVersionName = "1.0.0"; + ReplicationStatusType? expand = new ReplicationStatusType("ValidationProfile,ReplicationStatus"); + NullableResponse response = await collection.GetIfExistsAsync(galleryImageVersionName, expand: expand); + GalleryImageVersionResource 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 + GalleryImageVersionData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + } + + [Test] + [Ignore("Only validating compilation of examples")] + public async Task Get_GetAGalleryImageVersionWithValidationProfile() + { + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2024-03-03/examples/galleryExamples/GalleryImageVersion_Get_WithValidationProfile.json + // this example is just showing the usage of "GalleryImageVersions_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 GalleryImageResource created on azure + // for more information of creating GalleryImageResource, please refer to the document of GalleryImageResource + string subscriptionId = "{subscription-id}"; + string resourceGroupName = "myResourceGroup"; + string galleryName = "myGalleryName"; + string galleryImageName = "myGalleryImageName"; + ResourceIdentifier galleryImageResourceId = GalleryImageResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, galleryName, galleryImageName); + GalleryImageResource galleryImage = client.GetGalleryImageResource(galleryImageResourceId); + + // get the collection of this GalleryImageVersionResource + GalleryImageVersionCollection collection = galleryImage.GetGalleryImageVersions(); + + // invoke the operation + string galleryImageVersionName = "1.0.0"; + ReplicationStatusType? expand = new ReplicationStatusType("ValidationProfile"); + GalleryImageVersionResource result = await collection.GetAsync(galleryImageVersionName, expand: expand); + + // 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 + GalleryImageVersionData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + + [Test] + [Ignore("Only validating compilation of examples")] + public async Task Exists_GetAGalleryImageVersionWithValidationProfile() + { + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2024-03-03/examples/galleryExamples/GalleryImageVersion_Get_WithValidationProfile.json + // this example is just showing the usage of "GalleryImageVersions_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 GalleryImageResource created on azure + // for more information of creating GalleryImageResource, please refer to the document of GalleryImageResource + string subscriptionId = "{subscription-id}"; + string resourceGroupName = "myResourceGroup"; + string galleryName = "myGalleryName"; + string galleryImageName = "myGalleryImageName"; + ResourceIdentifier galleryImageResourceId = GalleryImageResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, galleryName, galleryImageName); + GalleryImageResource galleryImage = client.GetGalleryImageResource(galleryImageResourceId); + + // get the collection of this GalleryImageVersionResource + GalleryImageVersionCollection collection = galleryImage.GetGalleryImageVersions(); + + // invoke the operation + string galleryImageVersionName = "1.0.0"; + ReplicationStatusType? expand = new ReplicationStatusType("ValidationProfile"); + bool result = await collection.ExistsAsync(galleryImageVersionName, expand: expand); + + Console.WriteLine($"Succeeded: {result}"); + } + + [Test] + [Ignore("Only validating compilation of examples")] + public async Task GetIfExists_GetAGalleryImageVersionWithValidationProfile() + { + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2024-03-03/examples/galleryExamples/GalleryImageVersion_Get_WithValidationProfile.json + // this example is just showing the usage of "GalleryImageVersions_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 GalleryImageResource created on azure + // for more information of creating GalleryImageResource, please refer to the document of GalleryImageResource + string subscriptionId = "{subscription-id}"; + string resourceGroupName = "myResourceGroup"; + string galleryName = "myGalleryName"; + string galleryImageName = "myGalleryImageName"; + ResourceIdentifier galleryImageResourceId = GalleryImageResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, galleryName, galleryImageName); + GalleryImageResource galleryImage = client.GetGalleryImageResource(galleryImageResourceId); + + // get the collection of this GalleryImageVersionResource + GalleryImageVersionCollection collection = galleryImage.GetGalleryImageVersions(); + + // invoke the operation + string galleryImageVersionName = "1.0.0"; + ReplicationStatusType? expand = new ReplicationStatusType("ValidationProfile"); + NullableResponse response = await collection.GetIfExistsAsync(galleryImageVersionName, expand: expand); + GalleryImageVersionResource 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 + GalleryImageVersionData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + } + [Test] [Ignore("Only validating compilation of examples")] public async Task Get_GetAGalleryImageVersionWithVhdAsASource() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryImageVersion_Get_WithVhdAsSource.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2024-03-03/examples/galleryExamples/GalleryImageVersion_Get_WithVhdAsSource.json // this example is just showing the usage of "GalleryImageVersions_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 @@ -1293,7 +1635,7 @@ public async Task Get_GetAGalleryImageVersionWithVhdAsASource() [Ignore("Only validating compilation of examples")] public async Task Exists_GetAGalleryImageVersionWithVhdAsASource() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryImageVersion_Get_WithVhdAsSource.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2024-03-03/examples/galleryExamples/GalleryImageVersion_Get_WithVhdAsSource.json // this example is just showing the usage of "GalleryImageVersions_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 @@ -1324,7 +1666,7 @@ public async Task Exists_GetAGalleryImageVersionWithVhdAsASource() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_GetAGalleryImageVersionWithVhdAsASource() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryImageVersion_Get_WithVhdAsSource.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2024-03-03/examples/galleryExamples/GalleryImageVersion_Get_WithVhdAsSource.json // this example is just showing the usage of "GalleryImageVersions_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 @@ -1367,7 +1709,7 @@ public async Task GetIfExists_GetAGalleryImageVersionWithVhdAsASource() [Ignore("Only validating compilation of examples")] public async Task Get_GetAGalleryImageVersion() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryImageVersion_Get.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2024-03-03/examples/galleryExamples/GalleryImageVersion_Get.json // this example is just showing the usage of "GalleryImageVersions_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 @@ -1402,7 +1744,7 @@ public async Task Get_GetAGalleryImageVersion() [Ignore("Only validating compilation of examples")] public async Task Exists_GetAGalleryImageVersion() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryImageVersion_Get.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2024-03-03/examples/galleryExamples/GalleryImageVersion_Get.json // this example is just showing the usage of "GalleryImageVersions_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 @@ -1433,7 +1775,7 @@ public async Task Exists_GetAGalleryImageVersion() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_GetAGalleryImageVersion() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryImageVersion_Get.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2024-03-03/examples/galleryExamples/GalleryImageVersion_Get.json // this example is just showing the usage of "GalleryImageVersions_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 @@ -1476,7 +1818,7 @@ public async Task GetIfExists_GetAGalleryImageVersion() [Ignore("Only validating compilation of examples")] public async Task GetAll_ListGalleryImageVersionsInAGalleryImageDefinition() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryImageVersion_ListByGalleryImage.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2024-03-03/examples/galleryExamples/GalleryImageVersion_ListByGalleryImage.json // this example is just showing the usage of "GalleryImageVersions_ListByGalleryImage" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details 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/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_GalleryImageVersionResource.cs b/sdk/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_GalleryImageVersionResource.cs index e157bdc3c61c..b6a47065dac4 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_GalleryImageVersionResource.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_GalleryImageVersionResource.cs @@ -16,11 +16,49 @@ namespace Azure.ResourceManager.Compute.Samples { public partial class Sample_GalleryImageVersionResource { + [Test] + [Ignore("Only validating compilation of examples")] + public async Task Update_RestoreASoftDeletedGalleryImageVersion() + { + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2024-03-03/examples/galleryExamples/GalleryImageVersion_Update_RestoreSoftDeleted.json + // this example is just showing the usage of "GalleryImageVersions_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 GalleryImageVersionResource created on azure + // for more information of creating GalleryImageVersionResource, please refer to the document of GalleryImageVersionResource + string subscriptionId = "{subscription-id}"; + string resourceGroupName = "myResourceGroup"; + string galleryName = "myGalleryName"; + string galleryImageName = "myGalleryImageName"; + string galleryImageVersionName = "1.0.0"; + ResourceIdentifier galleryImageVersionResourceId = GalleryImageVersionResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, galleryName, galleryImageName, galleryImageVersionName); + GalleryImageVersionResource galleryImageVersion = client.GetGalleryImageVersionResource(galleryImageVersionResourceId); + + // invoke the operation + GalleryImageVersionPatch patch = new GalleryImageVersionPatch() + { + StorageProfile = new GalleryImageVersionStorageProfile(), + Restore = true, + }; + ArmOperation lro = await galleryImageVersion.UpdateAsync(WaitUntil.Completed, patch); + GalleryImageVersionResource 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 + GalleryImageVersionData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + [Test] [Ignore("Only validating compilation of examples")] public async Task Update_UpdateASimpleGalleryImageVersionManagedImageAsSource() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryImageVersion_Update.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2024-03-03/examples/galleryExamples/GalleryImageVersion_Update.json // this example is just showing the usage of "GalleryImageVersions_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 @@ -77,7 +115,7 @@ public async Task Update_UpdateASimpleGalleryImageVersionManagedImageAsSource() [Ignore("Only validating compilation of examples")] public async Task Update_UpdateASimpleGalleryImageVersionWithoutSourceId() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryImageVersion_Update_WithoutSourceId.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2024-03-03/examples/galleryExamples/GalleryImageVersion_Update_WithoutSourceId.json // this example is just showing the usage of "GalleryImageVersions_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 @@ -128,7 +166,7 @@ public async Task Update_UpdateASimpleGalleryImageVersionWithoutSourceId() [Ignore("Only validating compilation of examples")] public async Task Get_GetAGalleryImageVersionWithReplicationStatus() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryImageVersion_Get_WithReplicationStatus.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2024-03-03/examples/galleryExamples/GalleryImageVersion_Get_WithReplicationStatus.json // this example is just showing the usage of "GalleryImageVersions_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 @@ -161,7 +199,7 @@ public async Task Get_GetAGalleryImageVersionWithReplicationStatus() [Ignore("Only validating compilation of examples")] public async Task Get_GetAGalleryImageVersionWithSnapshotsAsASource() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryImageVersion_Get_WithSnapshotsAsSource.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2024-03-03/examples/galleryExamples/GalleryImageVersion_Get_WithSnapshotsAsSource.json // this example is just showing the usage of "GalleryImageVersions_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 @@ -189,11 +227,77 @@ public async Task Get_GetAGalleryImageVersionWithSnapshotsAsASource() Console.WriteLine($"Succeeded on id: {resourceData.Id}"); } + [Test] + [Ignore("Only validating compilation of examples")] + public async Task Get_GetAGalleryImageVersionWithValidationProfileAndReplicationStatus() + { + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2024-03-03/examples/galleryExamples/GalleryImageVersion_Get_WithValidationProfileAndReplicationStatus.json + // this example is just showing the usage of "GalleryImageVersions_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 GalleryImageVersionResource created on azure + // for more information of creating GalleryImageVersionResource, please refer to the document of GalleryImageVersionResource + string subscriptionId = "{subscription-id}"; + string resourceGroupName = "myResourceGroup"; + string galleryName = "myGalleryName"; + string galleryImageName = "myGalleryImageName"; + string galleryImageVersionName = "1.0.0"; + ResourceIdentifier galleryImageVersionResourceId = GalleryImageVersionResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, galleryName, galleryImageName, galleryImageVersionName); + GalleryImageVersionResource galleryImageVersion = client.GetGalleryImageVersionResource(galleryImageVersionResourceId); + + // invoke the operation + ReplicationStatusType? expand = new ReplicationStatusType("ValidationProfile,ReplicationStatus"); + GalleryImageVersionResource result = await galleryImageVersion.GetAsync(expand: expand); + + // 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 + GalleryImageVersionData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + + [Test] + [Ignore("Only validating compilation of examples")] + public async Task Get_GetAGalleryImageVersionWithValidationProfile() + { + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2024-03-03/examples/galleryExamples/GalleryImageVersion_Get_WithValidationProfile.json + // this example is just showing the usage of "GalleryImageVersions_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 GalleryImageVersionResource created on azure + // for more information of creating GalleryImageVersionResource, please refer to the document of GalleryImageVersionResource + string subscriptionId = "{subscription-id}"; + string resourceGroupName = "myResourceGroup"; + string galleryName = "myGalleryName"; + string galleryImageName = "myGalleryImageName"; + string galleryImageVersionName = "1.0.0"; + ResourceIdentifier galleryImageVersionResourceId = GalleryImageVersionResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, galleryName, galleryImageName, galleryImageVersionName); + GalleryImageVersionResource galleryImageVersion = client.GetGalleryImageVersionResource(galleryImageVersionResourceId); + + // invoke the operation + ReplicationStatusType? expand = new ReplicationStatusType("ValidationProfile"); + GalleryImageVersionResource result = await galleryImageVersion.GetAsync(expand: expand); + + // 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 + GalleryImageVersionData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + [Test] [Ignore("Only validating compilation of examples")] public async Task Get_GetAGalleryImageVersionWithVhdAsASource() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryImageVersion_Get_WithVhdAsSource.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2024-03-03/examples/galleryExamples/GalleryImageVersion_Get_WithVhdAsSource.json // this example is just showing the usage of "GalleryImageVersions_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 @@ -225,7 +329,7 @@ public async Task Get_GetAGalleryImageVersionWithVhdAsASource() [Ignore("Only validating compilation of examples")] public async Task Get_GetAGalleryImageVersion() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryImageVersion_Get.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2024-03-03/examples/galleryExamples/GalleryImageVersion_Get.json // this example is just showing the usage of "GalleryImageVersions_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 @@ -257,7 +361,7 @@ public async Task Get_GetAGalleryImageVersion() [Ignore("Only validating compilation of examples")] public async Task Delete_DeleteAGalleryImageVersion() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryImageVersion_Delete.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2024-03-03/examples/galleryExamples/GalleryImageVersion_Delete.json // this example is just showing the usage of "GalleryImageVersions_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/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_GalleryInVmAccessControlProfileCollection.cs b/sdk/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_GalleryInVmAccessControlProfileCollection.cs new file mode 100644 index 000000000000..92e93c5100f2 --- /dev/null +++ b/sdk/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_GalleryInVmAccessControlProfileCollection.cs @@ -0,0 +1,200 @@ +// 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.Compute.Models; +using NUnit.Framework; + +namespace Azure.ResourceManager.Compute.Samples +{ + public partial class Sample_GalleryInVmAccessControlProfileCollection + { + [Test] + [Ignore("Only validating compilation of examples")] + public async Task CreateOrUpdate_CreateOrUpdateAGalleryInVMAccessControlProfile() + { + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2024-03-03/examples/galleryResourceProfileExamples/GalleryInVMAccessControlProfile_Create.json + // this example is just showing the usage of "GalleryInVMAccessControlProfiles_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 GalleryResource created on azure + // for more information of creating GalleryResource, please refer to the document of GalleryResource + string subscriptionId = "{subscription-id}"; + string resourceGroupName = "myResourceGroup"; + string galleryName = "myGalleryName"; + ResourceIdentifier galleryResourceId = GalleryResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, galleryName); + GalleryResource gallery = client.GetGalleryResource(galleryResourceId); + + // get the collection of this GalleryInVmAccessControlProfileResource + GalleryInVmAccessControlProfileCollection collection = gallery.GetGalleryInVmAccessControlProfiles(); + + // invoke the operation + string inVmAccessControlProfileName = "myInVMAccessControlProfileName"; + GalleryInVmAccessControlProfileData data = new GalleryInVmAccessControlProfileData(new AzureLocation("West US")) + { + Properties = new GalleryInVmAccessControlProfileProperties(SupportedOperatingSystemType.Linux, EndpointType.WireServer), + }; + ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, inVmAccessControlProfileName, data); + GalleryInVmAccessControlProfileResource 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 + GalleryInVmAccessControlProfileData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + + [Test] + [Ignore("Only validating compilation of examples")] + public async Task Get_GetAGalleryInVMAccessControlProfile() + { + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2024-03-03/examples/galleryResourceProfileExamples/GalleryInVMAccessControlProfile_Get.json + // this example is just showing the usage of "GalleryInVMAccessControlProfiles_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 GalleryResource created on azure + // for more information of creating GalleryResource, please refer to the document of GalleryResource + string subscriptionId = "{subscription-id}"; + string resourceGroupName = "myResourceGroup"; + string galleryName = "myGalleryName"; + ResourceIdentifier galleryResourceId = GalleryResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, galleryName); + GalleryResource gallery = client.GetGalleryResource(galleryResourceId); + + // get the collection of this GalleryInVmAccessControlProfileResource + GalleryInVmAccessControlProfileCollection collection = gallery.GetGalleryInVmAccessControlProfiles(); + + // invoke the operation + string inVmAccessControlProfileName = "myInVMAccessControlProfileName"; + GalleryInVmAccessControlProfileResource result = await collection.GetAsync(inVmAccessControlProfileName); + + // 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 + GalleryInVmAccessControlProfileData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + + [Test] + [Ignore("Only validating compilation of examples")] + public async Task Exists_GetAGalleryInVMAccessControlProfile() + { + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2024-03-03/examples/galleryResourceProfileExamples/GalleryInVMAccessControlProfile_Get.json + // this example is just showing the usage of "GalleryInVMAccessControlProfiles_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 GalleryResource created on azure + // for more information of creating GalleryResource, please refer to the document of GalleryResource + string subscriptionId = "{subscription-id}"; + string resourceGroupName = "myResourceGroup"; + string galleryName = "myGalleryName"; + ResourceIdentifier galleryResourceId = GalleryResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, galleryName); + GalleryResource gallery = client.GetGalleryResource(galleryResourceId); + + // get the collection of this GalleryInVmAccessControlProfileResource + GalleryInVmAccessControlProfileCollection collection = gallery.GetGalleryInVmAccessControlProfiles(); + + // invoke the operation + string inVmAccessControlProfileName = "myInVMAccessControlProfileName"; + bool result = await collection.ExistsAsync(inVmAccessControlProfileName); + + Console.WriteLine($"Succeeded: {result}"); + } + + [Test] + [Ignore("Only validating compilation of examples")] + public async Task GetIfExists_GetAGalleryInVMAccessControlProfile() + { + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2024-03-03/examples/galleryResourceProfileExamples/GalleryInVMAccessControlProfile_Get.json + // this example is just showing the usage of "GalleryInVMAccessControlProfiles_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 GalleryResource created on azure + // for more information of creating GalleryResource, please refer to the document of GalleryResource + string subscriptionId = "{subscription-id}"; + string resourceGroupName = "myResourceGroup"; + string galleryName = "myGalleryName"; + ResourceIdentifier galleryResourceId = GalleryResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, galleryName); + GalleryResource gallery = client.GetGalleryResource(galleryResourceId); + + // get the collection of this GalleryInVmAccessControlProfileResource + GalleryInVmAccessControlProfileCollection collection = gallery.GetGalleryInVmAccessControlProfiles(); + + // invoke the operation + string inVmAccessControlProfileName = "myInVMAccessControlProfileName"; + NullableResponse response = await collection.GetIfExistsAsync(inVmAccessControlProfileName); + GalleryInVmAccessControlProfileResource 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 + GalleryInVmAccessControlProfileData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + } + + [Test] + [Ignore("Only validating compilation of examples")] + public async Task GetAll_ListGalleryInVMAccessControlProfilesInAGallery() + { + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2024-03-03/examples/galleryResourceProfileExamples/GalleryInVMAccessControlProfile_ListByGallery.json + // this example is just showing the usage of "GalleryInVMAccessControlProfiles_ListByGallery" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details 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 GalleryResource created on azure + // for more information of creating GalleryResource, please refer to the document of GalleryResource + string subscriptionId = "{subscription-id}"; + string resourceGroupName = "myResourceGroup"; + string galleryName = "myGalleryName"; + ResourceIdentifier galleryResourceId = GalleryResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, galleryName); + GalleryResource gallery = client.GetGalleryResource(galleryResourceId); + + // get the collection of this GalleryInVmAccessControlProfileResource + GalleryInVmAccessControlProfileCollection collection = gallery.GetGalleryInVmAccessControlProfiles(); + + // invoke the operation and iterate over the result + await foreach (GalleryInVmAccessControlProfileResource 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 + GalleryInVmAccessControlProfileData 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/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_GalleryInVmAccessControlProfileResource.cs b/sdk/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_GalleryInVmAccessControlProfileResource.cs new file mode 100644 index 000000000000..d4ef5a88cd52 --- /dev/null +++ b/sdk/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_GalleryInVmAccessControlProfileResource.cs @@ -0,0 +1,113 @@ +// 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.Compute.Models; +using NUnit.Framework; + +namespace Azure.ResourceManager.Compute.Samples +{ + public partial class Sample_GalleryInVmAccessControlProfileResource + { + [Test] + [Ignore("Only validating compilation of examples")] + public async Task Update_UpdateAGalleryInVMAccessControlProfile() + { + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2024-03-03/examples/galleryResourceProfileExamples/GalleryInVMAccessControlProfile_Update.json + // this example is just showing the usage of "GalleryInVMAccessControlProfiles_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 GalleryInVmAccessControlProfileResource created on azure + // for more information of creating GalleryInVmAccessControlProfileResource, please refer to the document of GalleryInVmAccessControlProfileResource + string subscriptionId = "{subscription-id}"; + string resourceGroupName = "myResourceGroup"; + string galleryName = "myGalleryName"; + string inVmAccessControlProfileName = "myInVMAccessControlProfileName"; + ResourceIdentifier galleryInVmAccessControlProfileResourceId = GalleryInVmAccessControlProfileResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, galleryName, inVmAccessControlProfileName); + GalleryInVmAccessControlProfileResource galleryInVmAccessControlProfile = client.GetGalleryInVmAccessControlProfileResource(galleryInVmAccessControlProfileResourceId); + + // invoke the operation + GalleryInVmAccessControlProfilePatch patch = new GalleryInVmAccessControlProfilePatch() + { + Properties = new GalleryInVmAccessControlProfileProperties(SupportedOperatingSystemType.Linux, EndpointType.WireServer), + }; + ArmOperation lro = await galleryInVmAccessControlProfile.UpdateAsync(WaitUntil.Completed, patch); + GalleryInVmAccessControlProfileResource 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 + GalleryInVmAccessControlProfileData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + + [Test] + [Ignore("Only validating compilation of examples")] + public async Task Get_GetAGalleryInVMAccessControlProfile() + { + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2024-03-03/examples/galleryResourceProfileExamples/GalleryInVMAccessControlProfile_Get.json + // this example is just showing the usage of "GalleryInVMAccessControlProfiles_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 GalleryInVmAccessControlProfileResource created on azure + // for more information of creating GalleryInVmAccessControlProfileResource, please refer to the document of GalleryInVmAccessControlProfileResource + string subscriptionId = "{subscription-id}"; + string resourceGroupName = "myResourceGroup"; + string galleryName = "myGalleryName"; + string inVmAccessControlProfileName = "myInVMAccessControlProfileName"; + ResourceIdentifier galleryInVmAccessControlProfileResourceId = GalleryInVmAccessControlProfileResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, galleryName, inVmAccessControlProfileName); + GalleryInVmAccessControlProfileResource galleryInVmAccessControlProfile = client.GetGalleryInVmAccessControlProfileResource(galleryInVmAccessControlProfileResourceId); + + // invoke the operation + GalleryInVmAccessControlProfileResource result = await galleryInVmAccessControlProfile.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 + GalleryInVmAccessControlProfileData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + + [Test] + [Ignore("Only validating compilation of examples")] + public async Task Delete_DeleteAGalleryInVMAccessControlProfile() + { + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2024-03-03/examples/galleryResourceProfileExamples/GalleryInVMAccessControlProfile_Delete.json + // this example is just showing the usage of "GalleryInVMAccessControlProfiles_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 GalleryInVmAccessControlProfileResource created on azure + // for more information of creating GalleryInVmAccessControlProfileResource, please refer to the document of GalleryInVmAccessControlProfileResource + string subscriptionId = "{subscription-id}"; + string resourceGroupName = "myResourceGroup"; + string galleryName = "myGalleryName"; + string inVmAccessControlProfileName = "myInVMAccessControlProfileName"; + ResourceIdentifier galleryInVmAccessControlProfileResourceId = GalleryInVmAccessControlProfileResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, galleryName, inVmAccessControlProfileName); + GalleryInVmAccessControlProfileResource galleryInVmAccessControlProfile = client.GetGalleryInVmAccessControlProfileResource(galleryInVmAccessControlProfileResourceId); + + // invoke the operation + await galleryInVmAccessControlProfile.DeleteAsync(WaitUntil.Completed); + + Console.WriteLine("Succeeded"); + } + } +} diff --git a/sdk/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_GalleryInVmAccessControlProfileVersionCollection.cs b/sdk/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_GalleryInVmAccessControlProfileVersionCollection.cs new file mode 100644 index 000000000000..71fa04628e32 --- /dev/null +++ b/sdk/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_GalleryInVmAccessControlProfileVersionCollection.cs @@ -0,0 +1,248 @@ +// 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.Compute.Models; +using NUnit.Framework; + +namespace Azure.ResourceManager.Compute.Samples +{ + public partial class Sample_GalleryInVmAccessControlProfileVersionCollection + { + [Test] + [Ignore("Only validating compilation of examples")] + public async Task CreateOrUpdate_CreateOrUpdateAGalleryInVMAccessControlProfileVersion() + { + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2024-03-03/examples/galleryResourceProfileExamples/GalleryInVMAccessControlProfileVersion_Create.json + // this example is just showing the usage of "GalleryInVMAccessControlProfileVersions_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 GalleryInVmAccessControlProfileResource created on azure + // for more information of creating GalleryInVmAccessControlProfileResource, please refer to the document of GalleryInVmAccessControlProfileResource + string subscriptionId = "{subscription-id}"; + string resourceGroupName = "myResourceGroup"; + string galleryName = "myGalleryName"; + string inVmAccessControlProfileName = "myInVMAccessControlProfileName"; + ResourceIdentifier galleryInVmAccessControlProfileResourceId = GalleryInVmAccessControlProfileResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, galleryName, inVmAccessControlProfileName); + GalleryInVmAccessControlProfileResource galleryInVmAccessControlProfile = client.GetGalleryInVmAccessControlProfileResource(galleryInVmAccessControlProfileResourceId); + + // get the collection of this GalleryInVmAccessControlProfileVersionResource + GalleryInVmAccessControlProfileVersionCollection collection = galleryInVmAccessControlProfile.GetGalleryInVmAccessControlProfileVersions(); + + // invoke the operation + string inVmAccessControlProfileVersionName = "1.0.0"; + GalleryInVmAccessControlProfileVersionData data = new GalleryInVmAccessControlProfileVersionData(new AzureLocation("West US")) + { + TargetLocations = +{ +new TargetRegion("West US"),new TargetRegion("South Central US") +}, + ExcludeFromLatest = false, + Mode = AccessControlRulesMode.Audit, + DefaultAccess = EndpointAccess.Allow, + Rules = new AccessControlRules() + { + Privileges = +{ +new AccessControlRulesPrivilege("GoalState","/machine") +{ +QueryParameters = +{ +["comp"] = "goalstate", +}, +} +}, + Roles = +{ +new AccessControlRulesRole("Provisioning",new string[] +{ +"GoalState" +}) +}, + Identities = +{ +new AccessControlRulesIdentity("WinPA") +{ +UserName = "SYSTEM", +GroupName = "Administrators", +ExePath = "C:\\Windows\\System32\\cscript.exe", +ProcessName = "cscript", +} +}, + RoleAssignments = +{ +new AccessControlRulesRoleAssignment("Provisioning",new string[] +{ +"WinPA" +}) +}, + }, + }; + ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, inVmAccessControlProfileVersionName, data); + GalleryInVmAccessControlProfileVersionResource 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 + GalleryInVmAccessControlProfileVersionData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + + [Test] + [Ignore("Only validating compilation of examples")] + public async Task Get_GetAGalleryInVMAccessControlProfileVersion() + { + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2024-03-03/examples/galleryResourceProfileExamples/GalleryInVMAccessControlProfileVersion_Get.json + // this example is just showing the usage of "GalleryInVMAccessControlProfileVersions_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 GalleryInVmAccessControlProfileResource created on azure + // for more information of creating GalleryInVmAccessControlProfileResource, please refer to the document of GalleryInVmAccessControlProfileResource + string subscriptionId = "{subscription-id}"; + string resourceGroupName = "myResourceGroup"; + string galleryName = "myGalleryName"; + string inVmAccessControlProfileName = "myInVMAccessControlProfileName"; + ResourceIdentifier galleryInVmAccessControlProfileResourceId = GalleryInVmAccessControlProfileResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, galleryName, inVmAccessControlProfileName); + GalleryInVmAccessControlProfileResource galleryInVmAccessControlProfile = client.GetGalleryInVmAccessControlProfileResource(galleryInVmAccessControlProfileResourceId); + + // get the collection of this GalleryInVmAccessControlProfileVersionResource + GalleryInVmAccessControlProfileVersionCollection collection = galleryInVmAccessControlProfile.GetGalleryInVmAccessControlProfileVersions(); + + // invoke the operation + string inVmAccessControlProfileVersionName = "1.0.0"; + GalleryInVmAccessControlProfileVersionResource result = await collection.GetAsync(inVmAccessControlProfileVersionName); + + // 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 + GalleryInVmAccessControlProfileVersionData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + + [Test] + [Ignore("Only validating compilation of examples")] + public async Task Exists_GetAGalleryInVMAccessControlProfileVersion() + { + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2024-03-03/examples/galleryResourceProfileExamples/GalleryInVMAccessControlProfileVersion_Get.json + // this example is just showing the usage of "GalleryInVMAccessControlProfileVersions_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 GalleryInVmAccessControlProfileResource created on azure + // for more information of creating GalleryInVmAccessControlProfileResource, please refer to the document of GalleryInVmAccessControlProfileResource + string subscriptionId = "{subscription-id}"; + string resourceGroupName = "myResourceGroup"; + string galleryName = "myGalleryName"; + string inVmAccessControlProfileName = "myInVMAccessControlProfileName"; + ResourceIdentifier galleryInVmAccessControlProfileResourceId = GalleryInVmAccessControlProfileResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, galleryName, inVmAccessControlProfileName); + GalleryInVmAccessControlProfileResource galleryInVmAccessControlProfile = client.GetGalleryInVmAccessControlProfileResource(galleryInVmAccessControlProfileResourceId); + + // get the collection of this GalleryInVmAccessControlProfileVersionResource + GalleryInVmAccessControlProfileVersionCollection collection = galleryInVmAccessControlProfile.GetGalleryInVmAccessControlProfileVersions(); + + // invoke the operation + string inVmAccessControlProfileVersionName = "1.0.0"; + bool result = await collection.ExistsAsync(inVmAccessControlProfileVersionName); + + Console.WriteLine($"Succeeded: {result}"); + } + + [Test] + [Ignore("Only validating compilation of examples")] + public async Task GetIfExists_GetAGalleryInVMAccessControlProfileVersion() + { + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2024-03-03/examples/galleryResourceProfileExamples/GalleryInVMAccessControlProfileVersion_Get.json + // this example is just showing the usage of "GalleryInVMAccessControlProfileVersions_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 GalleryInVmAccessControlProfileResource created on azure + // for more information of creating GalleryInVmAccessControlProfileResource, please refer to the document of GalleryInVmAccessControlProfileResource + string subscriptionId = "{subscription-id}"; + string resourceGroupName = "myResourceGroup"; + string galleryName = "myGalleryName"; + string inVmAccessControlProfileName = "myInVMAccessControlProfileName"; + ResourceIdentifier galleryInVmAccessControlProfileResourceId = GalleryInVmAccessControlProfileResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, galleryName, inVmAccessControlProfileName); + GalleryInVmAccessControlProfileResource galleryInVmAccessControlProfile = client.GetGalleryInVmAccessControlProfileResource(galleryInVmAccessControlProfileResourceId); + + // get the collection of this GalleryInVmAccessControlProfileVersionResource + GalleryInVmAccessControlProfileVersionCollection collection = galleryInVmAccessControlProfile.GetGalleryInVmAccessControlProfileVersions(); + + // invoke the operation + string inVmAccessControlProfileVersionName = "1.0.0"; + NullableResponse response = await collection.GetIfExistsAsync(inVmAccessControlProfileVersionName); + GalleryInVmAccessControlProfileVersionResource 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 + GalleryInVmAccessControlProfileVersionData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + } + + [Test] + [Ignore("Only validating compilation of examples")] + public async Task GetAll_ListGalleryInVMAccessControlProfileVersionsInAGalleryInVMAccessControlProfile() + { + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2024-03-03/examples/galleryResourceProfileExamples/GalleryInVMAccessControlProfileVersion_ListByGalleryInVMAccessControlProfile.json + // this example is just showing the usage of "GalleryInVMAccessControlProfileVersions_ListByGalleryInVmAccessControlProfile" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details 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 GalleryInVmAccessControlProfileResource created on azure + // for more information of creating GalleryInVmAccessControlProfileResource, please refer to the document of GalleryInVmAccessControlProfileResource + string subscriptionId = "{subscription-id}"; + string resourceGroupName = "myResourceGroup"; + string galleryName = "myGalleryName"; + string inVmAccessControlProfileName = "myInVMAccessControlProfileName"; + ResourceIdentifier galleryInVmAccessControlProfileResourceId = GalleryInVmAccessControlProfileResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, galleryName, inVmAccessControlProfileName); + GalleryInVmAccessControlProfileResource galleryInVmAccessControlProfile = client.GetGalleryInVmAccessControlProfileResource(galleryInVmAccessControlProfileResourceId); + + // get the collection of this GalleryInVmAccessControlProfileVersionResource + GalleryInVmAccessControlProfileVersionCollection collection = galleryInVmAccessControlProfile.GetGalleryInVmAccessControlProfileVersions(); + + // invoke the operation and iterate over the result + await foreach (GalleryInVmAccessControlProfileVersionResource 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 + GalleryInVmAccessControlProfileVersionData 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/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_GalleryInVmAccessControlProfileVersionResource.cs b/sdk/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_GalleryInVmAccessControlProfileVersionResource.cs new file mode 100644 index 000000000000..1d8cac9eae72 --- /dev/null +++ b/sdk/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_GalleryInVmAccessControlProfileVersionResource.cs @@ -0,0 +1,122 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Threading.Tasks; +using Azure.Core; +using Azure.Identity; +using Azure.ResourceManager.Compute.Models; +using NUnit.Framework; + +namespace Azure.ResourceManager.Compute.Samples +{ + public partial class Sample_GalleryInVmAccessControlProfileVersionResource + { + [Test] + [Ignore("Only validating compilation of examples")] + public async Task Update_UpdateAGalleryInVMAccessControlProfileVersion() + { + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2024-03-03/examples/galleryResourceProfileExamples/GalleryInVMAccessControlProfileVersion_Update.json + // this example is just showing the usage of "GalleryInVMAccessControlProfileVersions_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 GalleryInVmAccessControlProfileVersionResource created on azure + // for more information of creating GalleryInVmAccessControlProfileVersionResource, please refer to the document of GalleryInVmAccessControlProfileVersionResource + string subscriptionId = "{subscription-id}"; + string resourceGroupName = "myResourceGroup"; + string galleryName = "myGalleryName"; + string inVmAccessControlProfileName = "myInVMAccessControlProfileName"; + string inVmAccessControlProfileVersionName = "1.0.0"; + ResourceIdentifier galleryInVmAccessControlProfileVersionResourceId = GalleryInVmAccessControlProfileVersionResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, galleryName, inVmAccessControlProfileName, inVmAccessControlProfileVersionName); + GalleryInVmAccessControlProfileVersionResource galleryInVmAccessControlProfileVersion = client.GetGalleryInVmAccessControlProfileVersionResource(galleryInVmAccessControlProfileVersionResourceId); + + // invoke the operation + GalleryInVmAccessControlProfileVersionPatch patch = new GalleryInVmAccessControlProfileVersionPatch() + { + TargetLocations = +{ +new TargetRegion("West US"),new TargetRegion("South Central US"),new TargetRegion("East US") +}, + ExcludeFromLatest = false, + Mode = AccessControlRulesMode.Audit, + DefaultAccess = EndpointAccess.Allow, + }; + ArmOperation lro = await galleryInVmAccessControlProfileVersion.UpdateAsync(WaitUntil.Completed, patch); + GalleryInVmAccessControlProfileVersionResource 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 + GalleryInVmAccessControlProfileVersionData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + + [Test] + [Ignore("Only validating compilation of examples")] + public async Task Get_GetAGalleryInVMAccessControlProfileVersion() + { + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2024-03-03/examples/galleryResourceProfileExamples/GalleryInVMAccessControlProfileVersion_Get.json + // this example is just showing the usage of "GalleryInVMAccessControlProfileVersions_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 GalleryInVmAccessControlProfileVersionResource created on azure + // for more information of creating GalleryInVmAccessControlProfileVersionResource, please refer to the document of GalleryInVmAccessControlProfileVersionResource + string subscriptionId = "{subscription-id}"; + string resourceGroupName = "myResourceGroup"; + string galleryName = "myGalleryName"; + string inVmAccessControlProfileName = "myInVMAccessControlProfileName"; + string inVmAccessControlProfileVersionName = "1.0.0"; + ResourceIdentifier galleryInVmAccessControlProfileVersionResourceId = GalleryInVmAccessControlProfileVersionResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, galleryName, inVmAccessControlProfileName, inVmAccessControlProfileVersionName); + GalleryInVmAccessControlProfileVersionResource galleryInVmAccessControlProfileVersion = client.GetGalleryInVmAccessControlProfileVersionResource(galleryInVmAccessControlProfileVersionResourceId); + + // invoke the operation + GalleryInVmAccessControlProfileVersionResource result = await galleryInVmAccessControlProfileVersion.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 + GalleryInVmAccessControlProfileVersionData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + + [Test] + [Ignore("Only validating compilation of examples")] + public async Task Delete_DeleteAGalleryInVMAccessControlProfileVersion() + { + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2024-03-03/examples/galleryResourceProfileExamples/GalleryInVMAccessControlProfileVersion_Delete.json + // this example is just showing the usage of "GalleryInVMAccessControlProfileVersions_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 GalleryInVmAccessControlProfileVersionResource created on azure + // for more information of creating GalleryInVmAccessControlProfileVersionResource, please refer to the document of GalleryInVmAccessControlProfileVersionResource + string subscriptionId = "{subscription-id}"; + string resourceGroupName = "myResourceGroup"; + string galleryName = "myGalleryName"; + string inVmAccessControlProfileName = "myInVMAccessControlProfileName"; + string inVmAccessControlProfileVersionName = "1.0.0"; + ResourceIdentifier galleryInVmAccessControlProfileVersionResourceId = GalleryInVmAccessControlProfileVersionResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, galleryName, inVmAccessControlProfileName, inVmAccessControlProfileVersionName); + GalleryInVmAccessControlProfileVersionResource galleryInVmAccessControlProfileVersion = client.GetGalleryInVmAccessControlProfileVersionResource(galleryInVmAccessControlProfileVersionResourceId); + + // invoke the operation + await galleryInVmAccessControlProfileVersion.DeleteAsync(WaitUntil.Completed); + + Console.WriteLine("Succeeded"); + } + } +} diff --git a/sdk/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_GalleryResource.cs b/sdk/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_GalleryResource.cs index 641e76c103a5..b6524cf2ae01 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_GalleryResource.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_GalleryResource.cs @@ -21,7 +21,7 @@ public partial class Sample_GalleryResource [Ignore("Only validating compilation of examples")] public async Task Update_UpdateASimpleGallery() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/Gallery_Update.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2024-03-03/examples/galleryExamples/Gallery_Update.json // this example is just showing the usage of "Galleries_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 @@ -56,7 +56,7 @@ public async Task Update_UpdateASimpleGallery() [Ignore("Only validating compilation of examples")] public async Task Get_GetACommunityGallery() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/CommunityGallery_Get.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2024-03-03/examples/galleryExamples/CommunityGallery_Get.json // this example is just showing the usage of "Galleries_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 Get_GetACommunityGallery() [Ignore("Only validating compilation of examples")] public async Task Get_GetAGalleryWithExpandSharingProfileGroups() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/Gallery_Get_WithExpandSharingProfileGroups.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2024-03-03/examples/galleryExamples/Gallery_Get_WithExpandSharingProfileGroups.json // this example is just showing the usage of "Galleries_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 @@ -117,7 +117,7 @@ public async Task Get_GetAGalleryWithExpandSharingProfileGroups() [Ignore("Only validating compilation of examples")] public async Task Get_GetAGalleryWithSelectPermissions() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/Gallery_Get_WithSelectPermissions.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2024-03-03/examples/galleryExamples/Gallery_Get_WithSelectPermissions.json // this example is just showing the usage of "Galleries_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 @@ -144,11 +144,41 @@ public async Task Get_GetAGalleryWithSelectPermissions() Console.WriteLine($"Succeeded on id: {resourceData.Id}"); } + [Test] + [Ignore("Only validating compilation of examples")] + public async Task Get_GetAGalleryWithSystemAssignedAndUserAssignedManagedIdentities() + { + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2024-03-03/examples/galleryExamples/Gallery_Get_WithManagedIdentity.json + // this example is just showing the usage of "Galleries_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 GalleryResource created on azure + // for more information of creating GalleryResource, please refer to the document of GalleryResource + string subscriptionId = "{subscription-id}"; + string resourceGroupName = "myResourceGroup"; + string galleryName = "myGalleryName"; + ResourceIdentifier galleryResourceId = GalleryResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, galleryName); + GalleryResource gallery = client.GetGalleryResource(galleryResourceId); + + // invoke the operation + GalleryResource result = await gallery.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 + GalleryData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + [Test] [Ignore("Only validating compilation of examples")] public async Task Get_GetAGallery() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/Gallery_Get.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2024-03-03/examples/galleryExamples/Gallery_Get.json // this example is just showing the usage of "Galleries_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 @@ -178,7 +208,7 @@ public async Task Get_GetAGallery() [Ignore("Only validating compilation of examples")] public async Task Delete_DeleteAGallery() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/Gallery_Delete.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2024-03-03/examples/galleryExamples/Gallery_Delete.json // this example is just showing the usage of "Galleries_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 @@ -204,7 +234,7 @@ public async Task Delete_DeleteAGallery() [Ignore("Only validating compilation of examples")] public async Task GetGalleries_ListGalleriesInASubscription() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/Gallery_ListBySubscription.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2024-03-03/examples/galleryExamples/Gallery_ListBySubscription.json // this example is just showing the usage of "Galleries_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 @@ -231,11 +261,42 @@ public async Task GetGalleries_ListGalleriesInASubscription() Console.WriteLine("Succeeded"); } + [Test] + [Ignore("Only validating compilation of examples")] + public async Task GetSoftDeletedResourcesByArtifactName_ListSoftDeletedResourcesOfAnArtifactInTheGallery() + { + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2024-03-03/examples/galleryExamples/GallerySoftDeletedResource_ListByArtifactName.json + // this example is just showing the usage of "SoftDeletedResource_ListByArtifactName" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details 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 GalleryResource created on azure + // for more information of creating GalleryResource, please refer to the document of GalleryResource + string subscriptionId = "{subscription-id}"; + string resourceGroupName = "myResourceGroup"; + string galleryName = "myGalleryName"; + ResourceIdentifier galleryResourceId = GalleryResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, galleryName); + GalleryResource gallery = client.GetGalleryResource(galleryResourceId); + + // invoke the operation and iterate over the result + string artifactType = "images"; + string artifactName = "myGalleryImageName"; + await foreach (GallerySoftDeletedResource item in gallery.GetSoftDeletedResourcesByArtifactNameAsync(artifactType, artifactName)) + { + Console.WriteLine($"Succeeded: {item}"); + } + + Console.WriteLine("Succeeded"); + } + [Test] [Ignore("Only validating compilation of examples")] public async Task UpdateSharingProfile_AddSharingIdToTheSharingProfileOfAGallery() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/Gallery_AddToSharingProfile.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2024-03-03/examples/galleryExamples/Gallery_AddToSharingProfile.json // this example is just showing the usage of "GallerySharingProfile_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 @@ -283,7 +344,7 @@ public async Task UpdateSharingProfile_AddSharingIdToTheSharingProfileOfAGallery [Ignore("Only validating compilation of examples")] public async Task UpdateSharingProfile_ResetSharingProfileOfAGallery() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/Gallery_ResetSharingProfile.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2024-03-03/examples/galleryExamples/Gallery_ResetSharingProfile.json // this example is just showing the usage of "GallerySharingProfile_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 @@ -311,7 +372,7 @@ public async Task UpdateSharingProfile_ResetSharingProfileOfAGallery() [Ignore("Only validating compilation of examples")] public async Task UpdateSharingProfile_ShareAGalleryToCommunity() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/Gallery_EnableCommunityGallery.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2024-03-03/examples/galleryExamples/Gallery_EnableCommunityGallery.json // this example is just showing the usage of "GallerySharingProfile_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/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_SharedGalleryCollection.cs b/sdk/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_SharedGalleryCollection.cs index 0697940c0428..ccad609c651a 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_SharedGalleryCollection.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_SharedGalleryCollection.cs @@ -20,7 +20,7 @@ public partial class Sample_SharedGalleryCollection [Ignore("Only validating compilation of examples")] public async Task GetAll_ListSharedGalleries() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/sharedGalleryExamples/SharedGallery_List.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2024-03-03/examples/sharedGalleryExamples/SharedGallery_List.json // this example is just showing the usage of "SharedGalleries_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 @@ -55,7 +55,7 @@ public async Task GetAll_ListSharedGalleries() [Ignore("Only validating compilation of examples")] public async Task Get_GetASharedGallery() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/sharedGalleryExamples/SharedGallery_Get.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2024-03-03/examples/sharedGalleryExamples/SharedGallery_Get.json // this example is just showing the usage of "SharedGalleries_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 Get_GetASharedGallery() [Ignore("Only validating compilation of examples")] public async Task Exists_GetASharedGallery() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/sharedGalleryExamples/SharedGallery_Get.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2024-03-03/examples/sharedGalleryExamples/SharedGallery_Get.json // this example is just showing the usage of "SharedGalleries_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 @@ -117,7 +117,7 @@ public async Task Exists_GetASharedGallery() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_GetASharedGallery() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/sharedGalleryExamples/SharedGallery_Get.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2024-03-03/examples/sharedGalleryExamples/SharedGallery_Get.json // this example is just showing the usage of "SharedGalleries_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/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_SharedGalleryImageCollection.cs b/sdk/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_SharedGalleryImageCollection.cs index dc030f18cb4f..37b4bb08f6b1 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_SharedGalleryImageCollection.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_SharedGalleryImageCollection.cs @@ -19,7 +19,7 @@ public partial class Sample_SharedGalleryImageCollection [Ignore("Only validating compilation of examples")] public async Task GetAll_ListSharedGalleryImages() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/sharedGalleryExamples/SharedGalleryImages_List.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2024-03-03/examples/sharedGalleryExamples/SharedGalleryImages_List.json // this example is just showing the usage of "SharedGalleryImages_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 @@ -55,7 +55,7 @@ public async Task GetAll_ListSharedGalleryImages() [Ignore("Only validating compilation of examples")] public async Task Get_GetASharedGalleryImage() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/sharedGalleryExamples/SharedGalleryImage_Get.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2024-03-03/examples/sharedGalleryExamples/SharedGalleryImage_Get.json // this example is just showing the usage of "SharedGalleryImages_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 @@ -89,7 +89,7 @@ public async Task Get_GetASharedGalleryImage() [Ignore("Only validating compilation of examples")] public async Task Exists_GetASharedGalleryImage() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/sharedGalleryExamples/SharedGalleryImage_Get.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2024-03-03/examples/sharedGalleryExamples/SharedGalleryImage_Get.json // this example is just showing the usage of "SharedGalleryImages_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 @@ -119,7 +119,7 @@ public async Task Exists_GetASharedGalleryImage() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_GetASharedGalleryImage() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/sharedGalleryExamples/SharedGalleryImage_Get.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2024-03-03/examples/sharedGalleryExamples/SharedGalleryImage_Get.json // this example is just showing the usage of "SharedGalleryImages_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/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_SharedGalleryImageResource.cs b/sdk/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_SharedGalleryImageResource.cs index 8bb853caf0bc..4853efcb0287 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_SharedGalleryImageResource.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_SharedGalleryImageResource.cs @@ -19,7 +19,7 @@ public partial class Sample_SharedGalleryImageResource [Ignore("Only validating compilation of examples")] public async Task Get_GetASharedGalleryImage() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/sharedGalleryExamples/SharedGalleryImage_Get.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2024-03-03/examples/sharedGalleryExamples/SharedGalleryImage_Get.json // this example is just showing the usage of "SharedGalleryImages_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/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_SharedGalleryImageVersionCollection.cs b/sdk/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_SharedGalleryImageVersionCollection.cs index cfc49579f0dd..b1f76738487a 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_SharedGalleryImageVersionCollection.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_SharedGalleryImageVersionCollection.cs @@ -19,7 +19,7 @@ public partial class Sample_SharedGalleryImageVersionCollection [Ignore("Only validating compilation of examples")] public async Task GetAll_ListSharedGalleryImageVersions() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/sharedGalleryExamples/SharedGalleryImageVersions_List.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2024-03-03/examples/sharedGalleryExamples/SharedGalleryImageVersions_List.json // this example is just showing the usage of "SharedGalleryImageVersions_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -56,7 +56,7 @@ public async Task GetAll_ListSharedGalleryImageVersions() [Ignore("Only validating compilation of examples")] public async Task Get_GetASharedGalleryImageVersion() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/sharedGalleryExamples/SharedGalleryImageVersion_Get.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2024-03-03/examples/sharedGalleryExamples/SharedGalleryImageVersion_Get.json // this example is just showing the usage of "SharedGalleryImageVersions_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -91,7 +91,7 @@ public async Task Get_GetASharedGalleryImageVersion() [Ignore("Only validating compilation of examples")] public async Task Exists_GetASharedGalleryImageVersion() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/sharedGalleryExamples/SharedGalleryImageVersion_Get.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2024-03-03/examples/sharedGalleryExamples/SharedGalleryImageVersion_Get.json // this example is just showing the usage of "SharedGalleryImageVersions_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -122,7 +122,7 @@ public async Task Exists_GetASharedGalleryImageVersion() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_GetASharedGalleryImageVersion() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/sharedGalleryExamples/SharedGalleryImageVersion_Get.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2024-03-03/examples/sharedGalleryExamples/SharedGalleryImageVersion_Get.json // this example is just showing the usage of "SharedGalleryImageVersions_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/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_SharedGalleryImageVersionResource.cs b/sdk/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_SharedGalleryImageVersionResource.cs index d14f41e380fa..6b14e1354bfc 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_SharedGalleryImageVersionResource.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_SharedGalleryImageVersionResource.cs @@ -19,7 +19,7 @@ public partial class Sample_SharedGalleryImageVersionResource [Ignore("Only validating compilation of examples")] public async Task Get_GetASharedGalleryImageVersion() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/sharedGalleryExamples/SharedGalleryImageVersion_Get.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2024-03-03/examples/sharedGalleryExamples/SharedGalleryImageVersion_Get.json // this example is just showing the usage of "SharedGalleryImageVersions_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/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_SharedGalleryResource.cs b/sdk/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_SharedGalleryResource.cs index 2cef562035cf..1a34cdb2bcb1 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_SharedGalleryResource.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_SharedGalleryResource.cs @@ -19,7 +19,7 @@ public partial class Sample_SharedGalleryResource [Ignore("Only validating compilation of examples")] public async Task Get_GetASharedGallery() { - // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/sharedGalleryExamples/SharedGallery_Get.json + // Generated from example definition: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2024-03-03/examples/sharedGalleryExamples/SharedGallery_Get.json // this example is just showing the usage of "SharedGalleries_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/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_VirtualMachineScaleSetCollection.cs b/sdk/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_VirtualMachineScaleSetCollection.cs index 9138cdc38247..e41df093c1a7 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_VirtualMachineScaleSetCollection.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_VirtualMachineScaleSetCollection.cs @@ -3809,7 +3809,7 @@ public async Task CreateOrUpdate_CreateAScaleSetWithPriorityMixPolicy() { Name = "Standard_A8m_v2", Tier = "Standard", - Capacity = 10L, + Capacity = 2L, }, Properties = new VirtualMachineScaleSetProperties() { @@ -3825,9 +3825,9 @@ public async Task CreateOrUpdate_CreateAScaleSetWithPriorityMixPolicy() { ImageReference = new ImageReference() { - Publisher = "MicrosoftWindowsServer", - Offer = "WindowsServer", - Sku = "2016-Datacenter", + Publisher = "Canonical", + Offer = "0001-com-ubuntu-server-focal", + Sku = "20_04-lts-gen2", Version = "latest", }, OSDisk = new VirtualMachineScaleSetOSDisk(DiskCreateOptionType.FromImage) @@ -3846,26 +3846,37 @@ public async Task CreateOrUpdate_CreateAScaleSetWithPriorityMixPolicy() new VirtualMachineScaleSetNetworkConfiguration("{vmss-name}") { Primary = true, +EnableAcceleratedNetworking = false, IPConfigurations = { new VirtualMachineScaleSetIPConfiguration("{vmss-name}") { SubnetId = new ResourceIdentifier("/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}"), +Primary = true, +PublicIPAddressConfiguration = new VirtualMachineScaleSetPublicIPAddressConfiguration("{vmss-name}") +{ +IdleTimeoutInMinutes = 15, +}, +ApplicationGatewayBackendAddressPools = +{ +}, +LoadBalancerBackendAddressPools = +{ +}, } }, EnableIPForwarding = true, } }, + NetworkApiVersion = NetworkApiVersion.TwoThousandTwenty1101, }, Priority = VirtualMachinePriorityType.Spot, - EvictionPolicy = VirtualMachineEvictionPolicyType.Deallocate, - BillingMaxPrice = -1, }, - SinglePlacementGroup = false, + PlatformFaultDomainCount = 1, OrchestrationMode = OrchestrationMode.Flexible, PriorityMixPolicy = new VirtualMachineScaleSetPriorityMixPolicy() { - BaseRegularPriorityCount = 4, + BaseRegularPriorityCount = 10, RegularPriorityPercentageAboveBase = 50, }, }, diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/ArmComputeModelFactory.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/ArmComputeModelFactory.cs index 6d06d7eba7c1..e24730a97860 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/ArmComputeModelFactory.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/ArmComputeModelFactory.cs @@ -838,7 +838,7 @@ public static BootDiagnosticsInstanceView BootDiagnosticsInstanceView(Uri consol /// Specifies whether the data disk is in process of detachment from the VirtualMachine/VirtualMachineScaleset. /// Specifies the Read-Write IOPS for the managed disk when StorageAccountType is UltraSSD_LRS. Returned only for VirtualMachine ScaleSet VM disks. Can be updated only via updates to the VirtualMachine Scale Set. /// Specifies the bandwidth in MB per second for the managed disk when StorageAccountType is UltraSSD_LRS. Returned only for VirtualMachine ScaleSet VM disks. Can be updated only via updates to the VirtualMachine Scale Set. - /// Specifies the detach behavior to be used while detaching a disk or which is already in the process of detachment from the virtual machine. Supported values: **ForceDetach.** detachOption: **ForceDetach** is applicable only for managed data disks. If a previous detachment attempt of the data disk did not complete due to an unexpected failure from the virtual machine and the disk is still not released then use force-detach as a last resort option to detach the disk forcibly from the VM. All writes might not have been flushed when using this detach behavior. **This feature is still in preview** mode and is not supported for VirtualMachineScaleSet. To force-detach a data disk update toBeDetached to 'true' along with setting detachOption: 'ForceDetach'. + /// Specifies the detach behavior to be used while detaching a disk or which is already in the process of detachment from the virtual machine. Supported values: **ForceDetach.** detachOption: **ForceDetach** is applicable only for managed data disks. If a previous detachment attempt of the data disk did not complete due to an unexpected failure from the virtual machine and the disk is still not released then use force-detach as a last resort option to detach the disk forcibly from the VM. All writes might not have been flushed when using this detach behavior. To force-detach a data disk update toBeDetached to 'true' along with setting detachOption: 'ForceDetach'. /// Specifies whether data disk should be deleted or detached upon VM deletion. Possible values are: **Delete.** If this value is used, the data disk is deleted when VM is deleted. **Detach.** If this value is used, the data disk is retained after VM is deleted. The default value is set to **Detach**. /// A new instance for mocking. public static VirtualMachineDataDisk VirtualMachineDataDisk(int lun = default, string name = null, Uri vhdUri = null, Uri imageUri = null, CachingType? caching = null, bool? writeAcceleratorEnabled = null, DiskCreateOptionType createOption = default, int? diskSizeGB = null, VirtualMachineManagedDisk managedDisk = null, ResourceIdentifier sourceResourceId = null, bool? toBeDetached = null, long? diskIopsReadWrite = null, long? diskMBpsReadWrite = null, DiskDetachOptionType? detachOption = null, DiskDeleteOptionType? deleteOption = null) @@ -3069,6 +3069,7 @@ public static ComputeResourceSkuRestrictionInfo ComputeResourceSkuRestrictionInf /// The systemData. /// The tags. /// The location. + /// The identity of the gallery, if configured. /// The description of this Shared Image Gallery resource. This property is updatable. /// Describes the gallery unique name. /// The provisioning state, which only appears in the response. @@ -3076,7 +3077,7 @@ public static ComputeResourceSkuRestrictionInfo ComputeResourceSkuRestrictionInf /// Contains information about the soft deletion policy of the gallery. /// Sharing status of current gallery. /// A new instance for mocking. - public static GalleryData GalleryData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, string description = null, string identifierUniqueName = null, GalleryProvisioningState? provisioningState = null, SharingProfile sharingProfile = null, bool? isSoftDeleteEnabled = null, SharingStatus sharingStatus = null) + public static GalleryData GalleryData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, ManagedServiceIdentity identity = null, string description = null, string identifierUniqueName = null, GalleryProvisioningState? provisioningState = null, SharingProfile sharingProfile = null, bool? isSoftDeleteEnabled = null, SharingStatus sharingStatus = null) { tags ??= new Dictionary(); @@ -3087,6 +3088,7 @@ public static GalleryData GalleryData(ResourceIdentifier id = null, string name systemData, tags, location, + identity, description, identifierUniqueName != null ? new GalleryIdentifier(identifierUniqueName, serializedAdditionalRawData: null) : null, provisioningState, @@ -3156,6 +3158,7 @@ public static RegionalSharingStatus RegionalSharingStatus(string region = null, /// The name. /// The resourceType. /// The systemData. + /// The identity of the gallery, if configured. /// The description of this Shared Image Gallery resource. This property is updatable. /// Describes the gallery unique name. /// The provisioning state, which only appears in the response. @@ -3164,7 +3167,7 @@ public static RegionalSharingStatus RegionalSharingStatus(string region = null, /// Sharing status of current gallery. /// Resource tags. /// A new instance for mocking. - public static GalleryPatch GalleryPatch(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, string description = null, string identifierUniqueName = null, GalleryProvisioningState? provisioningState = null, SharingProfile sharingProfile = null, bool? isSoftDeleteEnabled = null, SharingStatus sharingStatus = null, IDictionary tags = null) + public static GalleryPatch GalleryPatch(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, ManagedServiceIdentity identity = null, string description = null, string identifierUniqueName = null, GalleryProvisioningState? provisioningState = null, SharingProfile sharingProfile = null, bool? isSoftDeleteEnabled = null, SharingStatus sharingStatus = null, IDictionary tags = null) { tags ??= new Dictionary(); @@ -3173,6 +3176,7 @@ public static GalleryPatch GalleryPatch(ResourceIdentifier id = null, string nam name, resourceType, systemData, + identity, description, identifierUniqueName != null ? new GalleryIdentifier(identifierUniqueName, serializedAdditionalRawData: null) : null, provisioningState, @@ -3204,9 +3208,10 @@ public static GalleryPatch GalleryPatch(ResourceIdentifier id = null, string nam /// Describes the gallery image definition purchase plan. This is used by marketplace images. /// The provisioning state, which only appears in the response. /// A list of gallery image features. - /// The architecture of the image. Applicable to OS disks only. + /// CPU architecture supported by an OS disk. + /// Optional. Must be set to true if the gallery image features are being updated. /// A new instance for mocking. - public static GalleryImageData GalleryImageData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, string description = null, string eula = null, Uri privacyStatementUri = null, Uri releaseNoteUri = null, SupportedOperatingSystemType? osType = null, OperatingSystemStateType? osState = null, HyperVGeneration? hyperVGeneration = null, DateTimeOffset? endOfLifeOn = null, GalleryImageIdentifier identifier = null, RecommendedMachineConfiguration recommended = null, IEnumerable disallowedDiskTypes = null, ImagePurchasePlan purchasePlan = null, GalleryProvisioningState? provisioningState = null, IEnumerable features = null, ArchitectureType? architecture = null) + public static GalleryImageData GalleryImageData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, string description = null, string eula = null, Uri privacyStatementUri = null, Uri releaseNoteUri = null, SupportedOperatingSystemType? osType = null, OperatingSystemStateType? osState = null, HyperVGeneration? hyperVGeneration = null, DateTimeOffset? endOfLifeOn = null, GalleryImageIdentifier identifier = null, RecommendedMachineConfiguration recommended = null, IEnumerable disallowedDiskTypes = null, ImagePurchasePlan purchasePlan = null, GalleryProvisioningState? provisioningState = null, IEnumerable features = null, ArchitectureType? architecture = null, bool? allowUpdateImage = null) { tags ??= new Dictionary(); disallowedDiskTypes ??= new List(); @@ -3234,6 +3239,7 @@ public static GalleryImageData GalleryImageData(ResourceIdentifier id = null, st provisioningState, features?.ToList(), architecture, + allowUpdateImage, serializedAdditionalRawData: null); } @@ -3256,10 +3262,11 @@ public static GalleryImageData GalleryImageData(ResourceIdentifier id = null, st /// Describes the gallery image definition purchase plan. This is used by marketplace images. /// The provisioning state, which only appears in the response. /// A list of gallery image features. - /// The architecture of the image. Applicable to OS disks only. + /// CPU architecture supported by an OS disk. + /// Optional. Must be set to true if the gallery image features are being updated. /// Resource tags. /// A new instance for mocking. - public static GalleryImagePatch GalleryImagePatch(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, string description = null, string eula = null, Uri privacyStatementUri = null, Uri releaseNoteUri = null, SupportedOperatingSystemType? osType = null, OperatingSystemStateType? osState = null, HyperVGeneration? hyperVGeneration = null, DateTimeOffset? endOfLifeOn = null, GalleryImageIdentifier identifier = null, RecommendedMachineConfiguration recommended = null, IEnumerable disallowedDiskTypes = null, ImagePurchasePlan purchasePlan = null, GalleryProvisioningState? provisioningState = null, IEnumerable features = null, ArchitectureType? architecture = null, IDictionary tags = null) + public static GalleryImagePatch GalleryImagePatch(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, string description = null, string eula = null, Uri privacyStatementUri = null, Uri releaseNoteUri = null, SupportedOperatingSystemType? osType = null, OperatingSystemStateType? osState = null, HyperVGeneration? hyperVGeneration = null, DateTimeOffset? endOfLifeOn = null, GalleryImageIdentifier identifier = null, RecommendedMachineConfiguration recommended = null, IEnumerable disallowedDiskTypes = null, ImagePurchasePlan purchasePlan = null, GalleryProvisioningState? provisioningState = null, IEnumerable features = null, ArchitectureType? architecture = null, bool? allowUpdateImage = null, IDictionary tags = null) { disallowedDiskTypes ??= new List(); features ??= new List(); @@ -3285,6 +3292,7 @@ public static GalleryImagePatch GalleryImagePatch(ResourceIdentifier id = null, provisioningState, features?.ToList(), architecture, + allowUpdateImage, tags, serializedAdditionalRawData: null); } @@ -3302,8 +3310,10 @@ public static GalleryImagePatch GalleryImagePatch(ResourceIdentifier id = null, /// This is the safety profile of the Gallery Image Version. /// This is the replication status of the gallery image version. /// The security profile of a gallery image version. + /// Indicates if this is a soft-delete resource restoration request. + /// This is the validations profile of a Gallery Image Version. /// A new instance for mocking. - public static GalleryImageVersionData GalleryImageVersionData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, GalleryImageVersionPublishingProfile publishingProfile = null, GalleryProvisioningState? provisioningState = null, GalleryImageVersionStorageProfile storageProfile = null, GalleryImageVersionSafetyProfile safetyProfile = null, ReplicationStatus replicationStatus = null, GalleryImageVersionUefiSettings securityUefiSettings = null) + public static GalleryImageVersionData GalleryImageVersionData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, GalleryImageVersionPublishingProfile publishingProfile = null, GalleryProvisioningState? provisioningState = null, GalleryImageVersionStorageProfile storageProfile = null, GalleryImageVersionSafetyProfile safetyProfile = null, ReplicationStatus replicationStatus = null, GalleryImageVersionUefiSettings securityUefiSettings = null, bool? restore = null, ValidationsProfile validationsProfile = null) { tags ??= new Dictionary(); @@ -3320,6 +3330,8 @@ public static GalleryImageVersionData GalleryImageVersionData(ResourceIdentifier safetyProfile, replicationStatus, securityUefiSettings != null ? new ImageVersionSecurityProfile(securityUefiSettings, serializedAdditionalRawData: null) : null, + restore, + validationsProfile, serializedAdditionalRawData: null); } @@ -3412,12 +3424,13 @@ public static GalleryDataDiskImage GalleryDataDiskImage(int? sizeInGB = null, Ho /// Indicates whether or not removing this Gallery Image Version from replicated regions is allowed. /// Indicates whether this image has been reported as violating Microsoft's policies. /// A list of Policy Violations that have been reported for this Gallery Image Version. + /// Indicates whether or not the deletion is blocked for this Gallery Image Version if its End Of Life has not expired. /// A new instance for mocking. - public static GalleryImageVersionSafetyProfile GalleryImageVersionSafetyProfile(bool? allowDeletionOfReplicatedLocations = null, bool? isReportedForPolicyViolation = null, IEnumerable policyViolations = null) + public static GalleryImageVersionSafetyProfile GalleryImageVersionSafetyProfile(bool? allowDeletionOfReplicatedLocations = null, bool? isReportedForPolicyViolation = null, IEnumerable policyViolations = null, bool? blockDeletionBeforeEndOfLife = null) { policyViolations ??= new List(); - return new GalleryImageVersionSafetyProfile(allowDeletionOfReplicatedLocations, serializedAdditionalRawData: null, isReportedForPolicyViolation, policyViolations?.ToList()); + return new GalleryImageVersionSafetyProfile(allowDeletionOfReplicatedLocations, serializedAdditionalRawData: null, isReportedForPolicyViolation, policyViolations?.ToList(), blockDeletionBeforeEndOfLife); } /// Initializes a new instance of . @@ -3451,6 +3464,39 @@ public static RegionalReplicationStatus RegionalReplicationStatus(string region return new RegionalReplicationStatus(region, state, details, progress, serializedAdditionalRawData: null); } + /// Initializes a new instance of . + /// The published time of the image version. + /// + /// This specifies the pub, offer, sku and version of the image version metadata. + /// A new instance for mocking. + public static ValidationsProfile ValidationsProfile(string validationETag = null, IEnumerable executedValidations = null, IEnumerable platformAttributes = null) + { + executedValidations ??= new List(); + platformAttributes ??= new List(); + + return new ValidationsProfile(validationETag, executedValidations?.ToList(), platformAttributes?.ToList(), serializedAdditionalRawData: null); + } + + /// Initializes a new instance of . + /// This property specifies the type of image version validation. + /// This property specifies the status of the validationProfile of the image version. + /// This property specifies the valid version of the validation. + /// This property specifies the starting timestamp. + /// A new instance for mocking. + public static ExecutedValidation ExecutedValidation(string executedValidationType = null, ValidationStatus? status = null, string version = null, DateTimeOffset? executionOn = null) + { + return new ExecutedValidation(executedValidationType, status, version, executionOn, serializedAdditionalRawData: null); + } + + /// Initializes a new instance of . + /// This property specifies the name of the platformAttribute. It is read-only. + /// This property specifies the value of the corresponding name property. It is read-only. + /// A new instance for mocking. + public static PlatformAttribute PlatformAttribute(string name = null, string value = null) + { + return new PlatformAttribute(name, value, serializedAdditionalRawData: null); + } + /// Initializes a new instance of . /// The id. /// The name. @@ -3462,9 +3508,11 @@ public static RegionalReplicationStatus RegionalReplicationStatus(string region /// This is the safety profile of the Gallery Image Version. /// This is the replication status of the gallery image version. /// The security profile of a gallery image version. + /// Indicates if this is a soft-delete resource restoration request. + /// This is the validations profile of a Gallery Image Version. /// Resource tags. /// A new instance for mocking. - public static GalleryImageVersionPatch GalleryImageVersionPatch(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, GalleryImageVersionPublishingProfile publishingProfile = null, GalleryProvisioningState? provisioningState = null, GalleryImageVersionStorageProfile storageProfile = null, GalleryImageVersionSafetyProfile safetyProfile = null, ReplicationStatus replicationStatus = null, GalleryImageVersionUefiSettings securityUefiSettings = null, IDictionary tags = null) + public static GalleryImageVersionPatch GalleryImageVersionPatch(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, GalleryImageVersionPublishingProfile publishingProfile = null, GalleryProvisioningState? provisioningState = null, GalleryImageVersionStorageProfile storageProfile = null, GalleryImageVersionSafetyProfile safetyProfile = null, ReplicationStatus replicationStatus = null, GalleryImageVersionUefiSettings securityUefiSettings = null, bool? restore = null, ValidationsProfile validationsProfile = null, IDictionary tags = null) { tags ??= new Dictionary(); @@ -3479,6 +3527,8 @@ public static GalleryImageVersionPatch GalleryImageVersionPatch(ResourceIdentifi safetyProfile, replicationStatus, securityUefiSettings != null ? new ImageVersionSecurityProfile(securityUefiSettings, serializedAdditionalRawData: null) : null, + restore, + validationsProfile, tags, serializedAdditionalRawData: null); } @@ -3654,6 +3704,175 @@ public static GalleryApplicationVersionPatch GalleryApplicationVersionPatch(Reso serializedAdditionalRawData: null); } + /// Initializes a new instance of . + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// The tags. + /// The location. + /// arm id of the soft-deleted resource. + /// artifact type of the soft-deleted resource. + /// The timestamp for when the resource is soft-deleted. In dateTime offset format. + /// A new instance for mocking. + public static GallerySoftDeletedResource GallerySoftDeletedResource(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, ResourceIdentifier resourceArmId = null, SoftDeletedArtifactType? softDeletedArtifactType = null, string softDeletedTime = null) + { + tags ??= new Dictionary(); + + return new GallerySoftDeletedResource( + id, + name, + resourceType, + systemData, + tags, + location, + resourceArmId, + softDeletedArtifactType, + softDeletedTime, + serializedAdditionalRawData: null); + } + + /// Initializes a new instance of . + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// The tags. + /// The location. + /// Describes the properties of a gallery inVMAccessControlProfile. + /// A new instance for mocking. + public static GalleryInVmAccessControlProfileData GalleryInVmAccessControlProfileData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, GalleryInVmAccessControlProfileProperties properties = null) + { + tags ??= new Dictionary(); + + return new GalleryInVmAccessControlProfileData( + id, + name, + resourceType, + systemData, + tags, + location, + properties, + serializedAdditionalRawData: null); + } + + /// Initializes a new instance of . + /// The provisioning state, which only appears in the response. + /// The description of this gallery inVMAccessControlProfile resources. This property is updatable. + /// This property allows you to specify the OS type of the VMs/VMSS for which this profile can be used against. Possible values are: 'Windows' or 'Linux'. + /// This property allows you to specify the Endpoint type for which this profile is defining the access control for. Possible values are: 'WireServer' or 'IMDS'. + /// A new instance for mocking. + public static GalleryInVmAccessControlProfileProperties GalleryInVmAccessControlProfileProperties(GalleryProvisioningState? provisioningState = null, string description = null, SupportedOperatingSystemType osType = default, EndpointType applicableHostEndpoint = default) + { + return new GalleryInVmAccessControlProfileProperties(provisioningState, serializedAdditionalRawData: null, description, osType, applicableHostEndpoint); + } + + /// Initializes a new instance of . + /// The provisioning state, which only appears in the response. + /// A new instance for mocking. + public static GalleryResourceProfilePropertiesBase GalleryResourceProfilePropertiesBase(GalleryProvisioningState? provisioningState = null) + { + return new GalleryResourceProfilePropertiesBase(provisioningState, serializedAdditionalRawData: null); + } + + /// Initializes a new instance of . + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// Describes the properties of a gallery inVMAccessControlProfile. + /// Resource tags. + /// A new instance for mocking. + public static GalleryInVmAccessControlProfilePatch GalleryInVmAccessControlProfilePatch(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, GalleryInVmAccessControlProfileProperties properties = null, IDictionary tags = null) + { + tags ??= new Dictionary(); + + return new GalleryInVmAccessControlProfilePatch( + id, + name, + resourceType, + systemData, + properties, + tags, + serializedAdditionalRawData: null); + } + + /// Initializes a new instance of . + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// The tags. + /// The location. + /// The target regions where the Resource Profile version is going to be replicated to. This property is updatable. + /// If set to true, Virtual Machines deployed from the latest version of the Resource Profile won't use this Profile version. + /// The timestamp for when the Resource Profile Version is published. + /// The provisioning state, which only appears in the response. + /// This is the replication status of the gallery image version. + /// This property allows you to specify whether the access control rules are in Audit mode, in Enforce mode or Disabled. Possible values are: 'Audit', 'Enforce' or 'Disabled'. + /// This property allows you to specify if the requests will be allowed to access the host endpoints. Possible values are: 'Allow', 'Deny'. + /// This is the Access Control Rules specification for an inVMAccessControlProfile version. + /// A new instance for mocking. + public static GalleryInVmAccessControlProfileVersionData GalleryInVmAccessControlProfileVersionData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, IEnumerable targetLocations = null, bool? excludeFromLatest = null, DateTimeOffset? publishedOn = null, GalleryProvisioningState? provisioningState = null, ReplicationStatus replicationStatus = null, AccessControlRulesMode? mode = null, EndpointAccess? defaultAccess = null, AccessControlRules rules = null) + { + tags ??= new Dictionary(); + targetLocations ??= new List(); + + return new GalleryInVmAccessControlProfileVersionData( + id, + name, + resourceType, + systemData, + tags, + location, + targetLocations?.ToList(), + excludeFromLatest, + publishedOn, + provisioningState, + replicationStatus, + mode, + defaultAccess, + rules, + serializedAdditionalRawData: null); + } + + /// Initializes a new instance of . + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// The target regions where the Resource Profile version is going to be replicated to. This property is updatable. + /// If set to true, Virtual Machines deployed from the latest version of the Resource Profile won't use this Profile version. + /// The timestamp for when the Resource Profile Version is published. + /// The provisioning state, which only appears in the response. + /// This is the replication status of the gallery image version. + /// This property allows you to specify whether the access control rules are in Audit mode, in Enforce mode or Disabled. Possible values are: 'Audit', 'Enforce' or 'Disabled'. + /// This property allows you to specify if the requests will be allowed to access the host endpoints. Possible values are: 'Allow', 'Deny'. + /// This is the Access Control Rules specification for an inVMAccessControlProfile version. + /// Resource tags. + /// A new instance for mocking. + public static GalleryInVmAccessControlProfileVersionPatch GalleryInVmAccessControlProfileVersionPatch(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IEnumerable targetLocations = null, bool? excludeFromLatest = null, DateTimeOffset? publishedOn = null, GalleryProvisioningState? provisioningState = null, ReplicationStatus replicationStatus = null, AccessControlRulesMode? mode = null, EndpointAccess? defaultAccess = null, AccessControlRules rules = null, IDictionary tags = null) + { + targetLocations ??= new List(); + tags ??= new Dictionary(); + + return new GalleryInVmAccessControlProfileVersionPatch( + id, + name, + resourceType, + systemData, + targetLocations?.ToList(), + excludeFromLatest, + publishedOn, + provisioningState, + replicationStatus, + mode, + defaultAccess, + rules, + tags, + serializedAdditionalRawData: null); + } + /// Initializes a new instance of . /// Resource name. /// Resource location. @@ -3699,7 +3918,7 @@ public static PirResourceData PirResourceData(string name = null, AzureLocation? /// The hypervisor generation of the Virtual Machine. Applicable to OS disks only. /// A list of gallery image features. /// Describes the gallery image definition purchase plan. This is used by marketplace images. - /// The architecture of the image. Applicable to OS disks only. + /// CPU architecture supported by an OS disk. /// Privacy statement uri for the current community gallery image. /// End-user license agreement for the current community gallery image. /// The artifact tags of a shared gallery resource. @@ -3864,7 +4083,7 @@ public static PirCommunityGalleryResourceData PirCommunityGalleryResourceData(st /// The hypervisor generation of the Virtual Machine. Applicable to OS disks only. /// A list of gallery image features. /// Describes the gallery image definition purchase plan. This is used by marketplace images. - /// The architecture of the image. Applicable to OS disks only. + /// CPU architecture supported by an OS disk. /// Privacy statement URI for the current community gallery image. /// The end-user license agreement for the current community gallery image. /// The disclaimer for a community gallery resource. @@ -4237,6 +4456,152 @@ public static OSVersionPropertiesBase OSVersionPropertiesBase(string version = n return new OSVersionPropertiesBase(version, label, isDefault, isActive, serializedAdditionalRawData: null); } + /// Initializes a new instance of . + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// The tags. + /// The location. + /// The description of this Shared Image Gallery resource. This property is updatable. + /// Describes the gallery unique name. + /// The provisioning state, which only appears in the response. + /// Profile for gallery sharing to subscription or tenant. + /// Contains information about the soft deletion policy of the gallery. + /// Sharing status of current gallery. + /// A new instance for mocking. + [EditorBrowsable(EditorBrowsableState.Never)] + public static GalleryData GalleryData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary tags, AzureLocation location, string description, string identifierUniqueName, GalleryProvisioningState? provisioningState, SharingProfile sharingProfile, bool? isSoftDeleteEnabled, SharingStatus sharingStatus) + { + return GalleryData(id: id, name: name, resourceType: resourceType, systemData: systemData, tags: tags, location: location, identity: default, description: description, identifierUniqueName: identifierUniqueName, provisioningState: provisioningState, sharingProfile: sharingProfile, isSoftDeleteEnabled: isSoftDeleteEnabled, sharingStatus: sharingStatus); + } + + /// Initializes a new instance of . + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// The description of this Shared Image Gallery resource. This property is updatable. + /// Describes the gallery unique name. + /// The provisioning state, which only appears in the response. + /// Profile for gallery sharing to subscription or tenant. + /// Contains information about the soft deletion policy of the gallery. + /// Sharing status of current gallery. + /// Resource tags. + /// A new instance for mocking. + [EditorBrowsable(EditorBrowsableState.Never)] + public static GalleryPatch GalleryPatch(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, string description, string identifierUniqueName, GalleryProvisioningState? provisioningState, SharingProfile sharingProfile, bool? isSoftDeleteEnabled, SharingStatus sharingStatus, IDictionary tags) + { + return GalleryPatch(id: id, name: name, resourceType: resourceType, systemData: systemData, identity: default, description: description, identifierUniqueName: identifierUniqueName, provisioningState: provisioningState, sharingProfile: sharingProfile, isSoftDeleteEnabled: isSoftDeleteEnabled, sharingStatus: sharingStatus, tags: tags); + } + + /// Initializes a new instance of . + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// The tags. + /// The location. + /// The description of this gallery image definition resource. This property is updatable. + /// The Eula agreement for the gallery image definition. + /// The privacy statement uri. + /// The release note uri. + /// This property allows you to specify the type of the OS that is included in the disk when creating a VM from a managed image. Possible values are: **Windows,** **Linux.**. + /// This property allows the user to specify whether the virtual machines created under this image are 'Generalized' or 'Specialized'. + /// The hypervisor generation of the Virtual Machine. Applicable to OS disks only. + /// The end of life date of the gallery image definition. This property can be used for decommissioning purposes. This property is updatable. + /// This is the gallery image definition identifier. + /// The properties describe the recommended machine configuration for this Image Definition. These properties are updatable. + /// Describes the disallowed disk types. + /// Describes the gallery image definition purchase plan. This is used by marketplace images. + /// The provisioning state, which only appears in the response. + /// A list of gallery image features. + /// The architecture of the image. Applicable to OS disks only. + /// A new instance for mocking. + [EditorBrowsable(EditorBrowsableState.Never)] + public static GalleryImageData GalleryImageData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary tags, AzureLocation location, string description, string eula, Uri privacyStatementUri, Uri releaseNoteUri, SupportedOperatingSystemType? osType, OperatingSystemStateType? osState, HyperVGeneration? hyperVGeneration, DateTimeOffset? endOfLifeOn, GalleryImageIdentifier identifier, RecommendedMachineConfiguration recommended, IEnumerable disallowedDiskTypes, ImagePurchasePlan purchasePlan, GalleryProvisioningState? provisioningState, IEnumerable features, ArchitectureType? architecture) + { + return GalleryImageData(id: id, name: name, resourceType: resourceType, systemData: systemData, tags: tags, location: location, description: description, eula: eula, privacyStatementUri: privacyStatementUri, releaseNoteUri: releaseNoteUri, osType: osType, osState: osState, hyperVGeneration: hyperVGeneration, endOfLifeOn: endOfLifeOn, identifier: identifier, recommended: recommended, disallowedDiskTypes: disallowedDiskTypes, purchasePlan: purchasePlan, provisioningState: provisioningState, features: features, architecture: architecture, allowUpdateImage: default); + } + + /// Initializes a new instance of . + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// The description of this gallery image definition resource. This property is updatable. + /// The Eula agreement for the gallery image definition. + /// The privacy statement uri. + /// The release note uri. + /// This property allows you to specify the type of the OS that is included in the disk when creating a VM from a managed image. Possible values are: **Windows,** **Linux.**. + /// This property allows the user to specify whether the virtual machines created under this image are 'Generalized' or 'Specialized'. + /// The hypervisor generation of the Virtual Machine. Applicable to OS disks only. + /// The end of life date of the gallery image definition. This property can be used for decommissioning purposes. This property is updatable. + /// This is the gallery image definition identifier. + /// The properties describe the recommended machine configuration for this Image Definition. These properties are updatable. + /// Describes the disallowed disk types. + /// Describes the gallery image definition purchase plan. This is used by marketplace images. + /// The provisioning state, which only appears in the response. + /// A list of gallery image features. + /// The architecture of the image. Applicable to OS disks only. + /// Resource tags. + /// A new instance for mocking. + [EditorBrowsable(EditorBrowsableState.Never)] + public static GalleryImagePatch GalleryImagePatch(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, string description, string eula, Uri privacyStatementUri, Uri releaseNoteUri, SupportedOperatingSystemType? osType, OperatingSystemStateType? osState, HyperVGeneration? hyperVGeneration, DateTimeOffset? endOfLifeOn, GalleryImageIdentifier identifier, RecommendedMachineConfiguration recommended, IEnumerable disallowedDiskTypes, ImagePurchasePlan purchasePlan, GalleryProvisioningState? provisioningState, IEnumerable features, ArchitectureType? architecture, IDictionary tags) + { + return GalleryImagePatch(id: id, name: name, resourceType: resourceType, systemData: systemData, description: description, eula: eula, privacyStatementUri: privacyStatementUri, releaseNoteUri: releaseNoteUri, osType: osType, osState: osState, hyperVGeneration: hyperVGeneration, endOfLifeOn: endOfLifeOn, identifier: identifier, recommended: recommended, disallowedDiskTypes: disallowedDiskTypes, purchasePlan: purchasePlan, provisioningState: provisioningState, features: features, architecture: architecture, allowUpdateImage: default, tags: tags); + } + + /// Initializes a new instance of . + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// The tags. + /// The location. + /// The publishing profile of a gallery image Version. + /// The provisioning state, which only appears in the response. + /// This is the storage profile of a Gallery Image Version. + /// This is the safety profile of the Gallery Image Version. + /// This is the replication status of the gallery image version. + /// The security profile of a gallery image version. + /// A new instance for mocking. + [EditorBrowsable(EditorBrowsableState.Never)] + public static GalleryImageVersionData GalleryImageVersionData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary tags, AzureLocation location, GalleryImageVersionPublishingProfile publishingProfile, GalleryProvisioningState? provisioningState, GalleryImageVersionStorageProfile storageProfile, GalleryImageVersionSafetyProfile safetyProfile, ReplicationStatus replicationStatus, GalleryImageVersionUefiSettings securityUefiSettings) + { + return GalleryImageVersionData(id: id, name: name, resourceType: resourceType, systemData: systemData, tags: tags, location: location, publishingProfile: publishingProfile, provisioningState: provisioningState, storageProfile: storageProfile, safetyProfile: safetyProfile, replicationStatus: replicationStatus, securityUefiSettings: securityUefiSettings, restore: default, validationsProfile: default); + } + + /// Initializes a new instance of . + /// Indicates whether or not removing this Gallery Image Version from replicated regions is allowed. + /// Indicates whether this image has been reported as violating Microsoft's policies. + /// A list of Policy Violations that have been reported for this Gallery Image Version. + /// A new instance for mocking. + [EditorBrowsable(EditorBrowsableState.Never)] + public static GalleryImageVersionSafetyProfile GalleryImageVersionSafetyProfile(bool? allowDeletionOfReplicatedLocations, bool? isReportedForPolicyViolation, IEnumerable policyViolations) + { + return GalleryImageVersionSafetyProfile(allowDeletionOfReplicatedLocations: allowDeletionOfReplicatedLocations, isReportedForPolicyViolation: isReportedForPolicyViolation, policyViolations: policyViolations, blockDeletionBeforeEndOfLife: default); + } + + /// Initializes a new instance of . + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// The publishing profile of a gallery image Version. + /// The provisioning state, which only appears in the response. + /// This is the storage profile of a Gallery Image Version. + /// This is the safety profile of the Gallery Image Version. + /// This is the replication status of the gallery image version. + /// The security profile of a gallery image version. + /// Resource tags. + /// A new instance for mocking. + [EditorBrowsable(EditorBrowsableState.Never)] + public static GalleryImageVersionPatch GalleryImageVersionPatch(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, GalleryImageVersionPublishingProfile publishingProfile, GalleryProvisioningState? provisioningState, GalleryImageVersionStorageProfile storageProfile, GalleryImageVersionSafetyProfile safetyProfile, ReplicationStatus replicationStatus, GalleryImageVersionUefiSettings securityUefiSettings, IDictionary tags) + { + return GalleryImageVersionPatch(id: id, name: name, resourceType: resourceType, systemData: systemData, publishingProfile: publishingProfile, provisioningState: provisioningState, storageProfile: storageProfile, safetyProfile: safetyProfile, replicationStatus: replicationStatus, securityUefiSettings: securityUefiSettings, restore: default, validationsProfile: default, tags: tags); + } + /// Initializes a new instance of . /// The id. /// The name. diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/CommunityGalleryCollection.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/CommunityGalleryCollection.cs index 8e1074b52612..cb082ffcd421 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/CommunityGalleryCollection.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/CommunityGalleryCollection.cs @@ -62,7 +62,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -109,7 +109,7 @@ public virtual async Task> GetAsync(AzureLoca /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -156,7 +156,7 @@ public virtual Response Get(AzureLocation location, st /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -200,7 +200,7 @@ public virtual async Task> ExistsAsync(AzureLocation location, st /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -244,7 +244,7 @@ public virtual Response Exists(AzureLocation location, string publicGaller /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -291,7 +291,7 @@ public virtual async Task> GetIfExist /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/CommunityGalleryImageCollection.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/CommunityGalleryImageCollection.cs index e77a9d9d6719..5aa84254491c 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/CommunityGalleryImageCollection.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/CommunityGalleryImageCollection.cs @@ -64,7 +64,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -110,7 +110,7 @@ public virtual async Task> GetAsync(stri /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -156,7 +156,7 @@ public virtual Response Get(string galleryImageNa /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -186,7 +186,7 @@ public virtual AsyncPageable GetAllAsync(Cancella /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -216,7 +216,7 @@ public virtual Pageable GetAll(CancellationToken /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -259,7 +259,7 @@ public virtual async Task> ExistsAsync(string galleryImageName, C /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -302,7 +302,7 @@ public virtual Response Exists(string galleryImageName, CancellationToken /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -348,7 +348,7 @@ public virtual async Task> GetIf /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/CommunityGalleryImageData.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/CommunityGalleryImageData.cs index 66e447d24557..c9644f67f6e8 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/CommunityGalleryImageData.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/CommunityGalleryImageData.cs @@ -40,7 +40,7 @@ internal CommunityGalleryImageData() /// The hypervisor generation of the Virtual Machine. Applicable to OS disks only. /// A list of gallery image features. /// Describes the gallery image definition purchase plan. This is used by marketplace images. - /// The architecture of the image. Applicable to OS disks only. + /// CPU architecture supported by an OS disk. /// Privacy statement URI for the current community gallery image. /// The end-user license agreement for the current community gallery image. /// The disclaimer for a community gallery resource. @@ -87,7 +87,7 @@ public IList DisallowedDiskTypes public IReadOnlyList Features { get; } /// Describes the gallery image definition purchase plan. This is used by marketplace images. public ImagePurchasePlan PurchasePlan { get; } - /// The architecture of the image. Applicable to OS disks only. + /// CPU architecture supported by an OS disk. public ArchitectureType? Architecture { get; } /// Privacy statement URI for the current community gallery image. public Uri PrivacyStatementUri { get; } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/CommunityGalleryImageResource.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/CommunityGalleryImageResource.cs index 8b6b5ba3a45b..3ac20a0a33c0 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/CommunityGalleryImageResource.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/CommunityGalleryImageResource.cs @@ -108,7 +108,7 @@ public virtual CommunityGalleryImageVersionCollection GetCommunityGalleryImageVe /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -139,7 +139,7 @@ public virtual async Task> GetCom /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -170,7 +170,7 @@ public virtual Response GetCommunityGaller /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -211,7 +211,7 @@ public virtual async Task> GetAsync(Canc /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/CommunityGalleryImageVersionCollection.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/CommunityGalleryImageVersionCollection.cs index eaa8609d5b57..99a6cfc91b1f 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/CommunityGalleryImageVersionCollection.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/CommunityGalleryImageVersionCollection.cs @@ -64,7 +64,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -110,7 +110,7 @@ public virtual async Task> GetAsy /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -156,7 +156,7 @@ public virtual Response Get(string gallery /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -186,7 +186,7 @@ public virtual AsyncPageable GetAllAsync(C /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -216,7 +216,7 @@ public virtual Pageable GetAll(Cancellatio /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -259,7 +259,7 @@ public virtual async Task> ExistsAsync(string galleryImageVersion /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -302,7 +302,7 @@ public virtual Response Exists(string galleryImageVersionName, Cancellatio /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -348,7 +348,7 @@ public virtual async Task /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/CommunityGalleryImageVersionResource.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/CommunityGalleryImageVersionResource.cs index 6e0ca518ba16..300aecebd1b8 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/CommunityGalleryImageVersionResource.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/CommunityGalleryImageVersionResource.cs @@ -102,7 +102,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -143,7 +143,7 @@ public virtual async Task> GetAsy /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/CommunityGalleryResource.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/CommunityGalleryResource.cs index 7198bcd27cb3..75109ffee0b5 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/CommunityGalleryResource.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/CommunityGalleryResource.cs @@ -108,7 +108,7 @@ public virtual CommunityGalleryImageCollection GetCommunityGalleryImages() /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -139,7 +139,7 @@ public virtual async Task> GetCommunityG /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -170,7 +170,7 @@ public virtual Response GetCommunityGalleryImage( /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -211,7 +211,7 @@ public virtual async Task> GetAsync(Cancellat /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Extensions/ComputeExtensions.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Extensions/ComputeExtensions.cs index a33aaacea59e..1a797c9db6a8 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Extensions/ComputeExtensions.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Extensions/ComputeExtensions.cs @@ -622,6 +622,44 @@ public static GalleryApplicationVersionResource GetGalleryApplicationVersionReso return GetMockableComputeArmClient(client).GetGalleryApplicationVersionResource(id); } + /// + /// Gets an object representing a along with the instance operations that can be performed on it but with no data. + /// You can use to create a from its components. + /// + /// Mocking + /// To mock this method, please mock instead. + /// + /// + /// The instance the method will execute against. + /// The resource ID of the resource to get. + /// is null. + /// Returns a object. + public static GalleryInVmAccessControlProfileResource GetGalleryInVmAccessControlProfileResource(this ArmClient client, ResourceIdentifier id) + { + Argument.AssertNotNull(client, nameof(client)); + + return GetMockableComputeArmClient(client).GetGalleryInVmAccessControlProfileResource(id); + } + + /// + /// Gets an object representing a along with the instance operations that can be performed on it but with no data. + /// You can use to create a from its components. + /// + /// Mocking + /// To mock this method, please mock instead. + /// + /// + /// The instance the method will execute against. + /// The resource ID of the resource to get. + /// is null. + /// Returns a object. + public static GalleryInVmAccessControlProfileVersionResource GetGalleryInVmAccessControlProfileVersionResource(this ArmClient client, ResourceIdentifier id) + { + Argument.AssertNotNull(client, nameof(client)); + + return GetMockableComputeArmClient(client).GetGalleryInVmAccessControlProfileVersionResource(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. @@ -2084,7 +2122,7 @@ public static GalleryCollection GetGalleries(this ResourceGroupResource resource /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -2124,7 +2162,7 @@ public static async Task> GetGalleryAsync(this Resourc /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -2377,7 +2415,7 @@ public static SharedGalleryCollection GetSharedGalleries(this SubscriptionResour /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -2416,7 +2454,7 @@ public static async Task> GetSharedGalleryAsync( /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -2472,7 +2510,7 @@ public static CommunityGalleryCollection GetCommunityGalleries(this Subscription /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -2511,7 +2549,7 @@ public static async Task> GetCommunityGallery /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -3949,7 +3987,7 @@ public static Pageable GetVirtualMachineImageEdgeZoneSk /// /// /// The instance the method will execute against. - /// The expand expression to apply to the operation. Allowed values are 'instanceView'. + /// The expand expression to apply to the operation. Allowed values are 'virtualMachines/$ref'. /// The cancellation token to use. /// is null. /// An async collection of that may take multiple service requests to iterate over. @@ -3986,7 +4024,7 @@ public static AsyncPageable GetAvailabilitySetsAsync(th /// /// /// The instance the method will execute against. - /// The expand expression to apply to the operation. Allowed values are 'instanceView'. + /// The expand expression to apply to the operation. Allowed values are 'virtualMachines/$ref'. /// The cancellation token to use. /// is null. /// A collection of that may take multiple service requests to iterate over. @@ -5088,7 +5126,7 @@ public static Pageable GetComputeResourceSkus(this Subscript /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -5124,7 +5162,7 @@ public static AsyncPageable GetGalleriesAsync(this Subscription /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Extensions/MockableComputeArmClient.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Extensions/MockableComputeArmClient.cs index ad048d199e50..488486eb4afb 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Extensions/MockableComputeArmClient.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Extensions/MockableComputeArmClient.cs @@ -406,6 +406,30 @@ public virtual GalleryApplicationVersionResource GetGalleryApplicationVersionRes return new GalleryApplicationVersionResource(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 GalleryInVmAccessControlProfileResource GetGalleryInVmAccessControlProfileResource(ResourceIdentifier id) + { + GalleryInVmAccessControlProfileResource.ValidateResourceId(id); + return new GalleryInVmAccessControlProfileResource(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 GalleryInVmAccessControlProfileVersionResource GetGalleryInVmAccessControlProfileVersionResource(ResourceIdentifier id) + { + GalleryInVmAccessControlProfileVersionResource.ValidateResourceId(id); + return new GalleryInVmAccessControlProfileVersionResource(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. diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Extensions/MockableComputeResourceGroupResource.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Extensions/MockableComputeResourceGroupResource.cs index 1fc8bce46684..f79d11b147cc 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Extensions/MockableComputeResourceGroupResource.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Extensions/MockableComputeResourceGroupResource.cs @@ -965,7 +965,7 @@ public virtual GalleryCollection GetGalleries() /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -998,7 +998,7 @@ public virtual async Task> GetGalleryAsync(string gall /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Extensions/MockableComputeSubscriptionResource.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Extensions/MockableComputeSubscriptionResource.cs index 20cc6ff00ca7..2de05e3b67b1 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Extensions/MockableComputeSubscriptionResource.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Extensions/MockableComputeSubscriptionResource.cs @@ -226,7 +226,7 @@ public virtual SharedGalleryCollection GetSharedGalleries(AzureLocation location /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -258,7 +258,7 @@ public virtual async Task> GetSharedGalleryAsync /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -297,7 +297,7 @@ public virtual CommunityGalleryCollection GetCommunityGalleries() /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -329,7 +329,7 @@ public virtual async Task> GetCommunityGaller /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -1593,7 +1593,7 @@ public virtual Pageable GetVirtualMachineImageEdgeZoneS /// /// /// - /// The expand expression to apply to the operation. Allowed values are 'instanceView'. + /// The expand expression to apply to the operation. Allowed values are 'virtualMachines/$ref'. /// The cancellation token to use. /// An async collection of that may take multiple service requests to iterate over. public virtual AsyncPageable GetAvailabilitySetsAsync(string expand = null, CancellationToken cancellationToken = default) @@ -1624,7 +1624,7 @@ public virtual AsyncPageable GetAvailabilitySetsAsync(s /// /// /// - /// The expand expression to apply to the operation. Allowed values are 'instanceView'. + /// The expand expression to apply to the operation. Allowed values are 'virtualMachines/$ref'. /// The cancellation token to use. /// A collection of that may take multiple service requests to iterate over. public virtual Pageable GetAvailabilitySets(string expand = null, CancellationToken cancellationToken = default) @@ -2629,7 +2629,7 @@ public virtual Pageable GetComputeResourceSkus(string filter /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -2659,7 +2659,7 @@ public virtual AsyncPageable GetGalleriesAsync(CancellationToke /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/GalleryApplicationCollection.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/GalleryApplicationCollection.cs index 6c9ef2734dc2..5d6d9339b026 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/GalleryApplicationCollection.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/GalleryApplicationCollection.cs @@ -64,7 +64,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -113,7 +113,7 @@ public virtual async Task> CreateOrUpda /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -162,7 +162,7 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -207,7 +207,7 @@ public virtual async Task> GetAsync(string /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -252,7 +252,7 @@ public virtual Response Get(string galleryApplicatio /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -282,7 +282,7 @@ public virtual AsyncPageable GetAllAsync(Cancellatio /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -312,7 +312,7 @@ public virtual Pageable GetAll(CancellationToken can /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -355,7 +355,7 @@ public virtual async Task> ExistsAsync(string galleryApplicationN /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -398,7 +398,7 @@ public virtual Response Exists(string galleryApplicationName, Cancellation /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -443,7 +443,7 @@ public virtual async Task> GetIfExi /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/GalleryApplicationResource.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/GalleryApplicationResource.cs index cc7dbe4a4416..89e43d3fc49b 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/GalleryApplicationResource.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/GalleryApplicationResource.cs @@ -110,7 +110,7 @@ public virtual GalleryApplicationVersionCollection GetGalleryApplicationVersions /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -142,7 +142,7 @@ public virtual async Task> GetGaller /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -174,7 +174,7 @@ public virtual Response GetGalleryApplication /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -214,7 +214,7 @@ public virtual async Task> GetAsync(Cancell /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -254,7 +254,7 @@ public virtual Response Get(CancellationToken cancel /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -296,7 +296,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -338,7 +338,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -384,7 +384,7 @@ public virtual async Task> UpdateAsync( /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -430,7 +430,7 @@ public virtual ArmOperation Update(WaitUntil waitUnt /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -492,7 +492,7 @@ public virtual async Task> AddTagAsync(stri /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -554,7 +554,7 @@ public virtual Response AddTag(string key, string va /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -611,7 +611,7 @@ public virtual async Task> SetTagsAsync(IDi /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -668,7 +668,7 @@ public virtual Response SetTags(IDictionary /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -728,7 +728,7 @@ public virtual async Task> RemoveTagAsync(s /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/GalleryApplicationVersionCollection.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/GalleryApplicationVersionCollection.cs index 7ba3fd51adfa..e1b052be1314 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/GalleryApplicationVersionCollection.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/GalleryApplicationVersionCollection.cs @@ -65,7 +65,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -114,7 +114,7 @@ public virtual async Task> Creat /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -163,7 +163,7 @@ public virtual ArmOperation CreateOrUpdate(Wa /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -209,7 +209,7 @@ public virtual async Task> GetAsync( /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -255,7 +255,7 @@ public virtual Response Get(string galleryApp /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -285,7 +285,7 @@ public virtual AsyncPageable GetAllAsync(Canc /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -315,7 +315,7 @@ public virtual Pageable GetAll(CancellationTo /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -359,7 +359,7 @@ public virtual async Task> ExistsAsync(string galleryApplicationV /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -403,7 +403,7 @@ public virtual Response Exists(string galleryApplicationVersionName, Repli /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -449,7 +449,7 @@ public virtual async Task> G /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/GalleryApplicationVersionResource.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/GalleryApplicationVersionResource.cs index f76ff5865852..5a0907f1c2ef 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/GalleryApplicationVersionResource.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/GalleryApplicationVersionResource.cs @@ -104,7 +104,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -145,7 +145,7 @@ public virtual async Task> GetAsync( /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -186,7 +186,7 @@ public virtual Response Get(ReplicationStatus /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -228,7 +228,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -270,7 +270,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -316,7 +316,7 @@ public virtual async Task> Updat /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -362,7 +362,7 @@ public virtual ArmOperation Update(WaitUntil /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -424,7 +424,7 @@ public virtual async Task> AddTagAsy /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -486,7 +486,7 @@ public virtual Response AddTag(string key, st /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -543,7 +543,7 @@ public virtual async Task> SetTagsAs /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -600,7 +600,7 @@ public virtual Response SetTags(IDictionary /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -660,7 +660,7 @@ public virtual async Task> RemoveTag /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/GalleryCollection.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/GalleryCollection.cs index 87855d40f738..0089dc2ab54a 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/GalleryCollection.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/GalleryCollection.cs @@ -66,7 +66,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -115,7 +115,7 @@ public virtual async Task> CreateOrUpdateAsync(Wai /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -164,7 +164,7 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil waitUntil, /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -211,7 +211,7 @@ public virtual async Task> GetAsync(string galleryName /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -258,7 +258,7 @@ public virtual Response Get(string galleryName, SelectPermissio /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -288,7 +288,7 @@ public virtual AsyncPageable GetAllAsync(CancellationToken canc /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -318,7 +318,7 @@ public virtual Pageable GetAll(CancellationToken cancellationTo /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -363,7 +363,7 @@ public virtual async Task> ExistsAsync(string galleryName, Select /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -408,7 +408,7 @@ public virtual Response Exists(string galleryName, SelectPermission? selec /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -455,7 +455,7 @@ public virtual async Task> GetIfExistsAsync(st /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/GalleryData.Serialization.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/GalleryData.Serialization.cs index cd65f7919beb..6a69d71d5720 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/GalleryData.Serialization.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/GalleryData.Serialization.cs @@ -37,6 +37,11 @@ protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWri } base.JsonModelWriteCore(writer, options); + if (Optional.IsDefined(Identity)) + { + writer.WritePropertyName("identity"u8); + JsonSerializer.Serialize(writer, Identity); + } writer.WritePropertyName("properties"u8); writer.WriteStartObject(); if (Optional.IsDefined(Description)) @@ -92,6 +97,7 @@ internal static GalleryData DeserializeGalleryData(JsonElement element, ModelRea { return null; } + ManagedServiceIdentity identity = default; IDictionary tags = default; AzureLocation location = default; ResourceIdentifier id = default; @@ -108,6 +114,15 @@ internal static GalleryData DeserializeGalleryData(JsonElement element, ModelRea Dictionary rawDataDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) { + if (property.NameEquals("identity"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + identity = JsonSerializer.Deserialize(property.Value.GetRawText()); + continue; + } if (property.NameEquals("tags"u8)) { if (property.Value.ValueKind == JsonValueKind.Null) @@ -226,6 +241,7 @@ internal static GalleryData DeserializeGalleryData(JsonElement element, ModelRea systemData, tags ?? new ChangeTrackingDictionary(), location, + identity, description, identifier, provisioningState, diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/GalleryData.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/GalleryData.cs index 643d021269b0..ab759614b171 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/GalleryData.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/GalleryData.cs @@ -64,6 +64,7 @@ public GalleryData(AzureLocation location) : base(location) /// The systemData. /// The tags. /// The location. + /// The identity of the gallery, if configured. /// The description of this Shared Image Gallery resource. This property is updatable. /// Describes the gallery unique name. /// The provisioning state, which only appears in the response. @@ -71,8 +72,9 @@ public GalleryData(AzureLocation location) : base(location) /// Contains information about the soft deletion policy of the gallery. /// Sharing status of current gallery. /// Keeps track of any properties unknown to the library. - internal GalleryData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary tags, AzureLocation location, string description, GalleryIdentifier identifier, GalleryProvisioningState? provisioningState, SharingProfile sharingProfile, SoftDeletePolicy softDeletePolicy, SharingStatus sharingStatus, IDictionary serializedAdditionalRawData) : base(id, name, resourceType, systemData, tags, location) + internal GalleryData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary tags, AzureLocation location, ManagedServiceIdentity identity, string description, GalleryIdentifier identifier, GalleryProvisioningState? provisioningState, SharingProfile sharingProfile, SoftDeletePolicy softDeletePolicy, SharingStatus sharingStatus, IDictionary serializedAdditionalRawData) : base(id, name, resourceType, systemData, tags, location) { + Identity = identity; Description = description; Identifier = identifier; ProvisioningState = provisioningState; @@ -87,6 +89,8 @@ internal GalleryData() { } + /// The identity of the gallery, if configured. + public ManagedServiceIdentity Identity { get; set; } /// The description of this Shared Image Gallery resource. This property is updatable. public string Description { get; set; } /// Describes the gallery unique name. diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/GalleryImageCollection.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/GalleryImageCollection.cs index cb71d6f103c7..bc42a244894c 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/GalleryImageCollection.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/GalleryImageCollection.cs @@ -64,7 +64,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -113,7 +113,7 @@ public virtual async Task> CreateOrUpdateAsyn /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -162,7 +162,7 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil waitU /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -207,7 +207,7 @@ public virtual async Task> GetAsync(string galler /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -252,7 +252,7 @@ public virtual Response Get(string galleryImageName, Cance /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -282,7 +282,7 @@ public virtual AsyncPageable GetAllAsync(CancellationToken /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -312,7 +312,7 @@ public virtual Pageable GetAll(CancellationToken cancellat /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -355,7 +355,7 @@ public virtual async Task> ExistsAsync(string galleryImageName, C /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -398,7 +398,7 @@ public virtual Response Exists(string galleryImageName, CancellationToken /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -443,7 +443,7 @@ public virtual async Task> GetIfExistsAsy /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/GalleryImageData.Serialization.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/GalleryImageData.Serialization.cs index 0bf0dd1af374..a08e8a5131de 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/GalleryImageData.Serialization.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/GalleryImageData.Serialization.cs @@ -119,6 +119,11 @@ protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWri writer.WritePropertyName("architecture"u8); writer.WriteStringValue(Architecture.Value.ToString()); } + if (Optional.IsDefined(AllowUpdateImage)) + { + writer.WritePropertyName("allowUpdateImage"u8); + writer.WriteBooleanValue(AllowUpdateImage.Value); + } writer.WriteEndObject(); } @@ -163,6 +168,7 @@ internal static GalleryImageData DeserializeGalleryImageData(JsonElement element GalleryProvisioningState? provisioningState = default; IList features = default; ArchitectureType? architecture = default; + bool? allowUpdateImage = default; IDictionary serializedAdditionalRawData = default; Dictionary rawDataDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) @@ -351,6 +357,15 @@ internal static GalleryImageData DeserializeGalleryImageData(JsonElement element architecture = new ArchitectureType(property0.Value.GetString()); continue; } + if (property0.NameEquals("allowUpdateImage"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + allowUpdateImage = property0.Value.GetBoolean(); + continue; + } } continue; } @@ -382,6 +397,7 @@ internal static GalleryImageData DeserializeGalleryImageData(JsonElement element provisioningState, features ?? new ChangeTrackingList(), architecture, + allowUpdateImage, serializedAdditionalRawData); } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/GalleryImageData.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/GalleryImageData.cs index 7131a134d030..b3c19a268676 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/GalleryImageData.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/GalleryImageData.cs @@ -79,9 +79,10 @@ public GalleryImageData(AzureLocation location) : base(location) /// Describes the gallery image definition purchase plan. This is used by marketplace images. /// The provisioning state, which only appears in the response. /// A list of gallery image features. - /// The architecture of the image. Applicable to OS disks only. + /// CPU architecture supported by an OS disk. + /// Optional. Must be set to true if the gallery image features are being updated. /// Keeps track of any properties unknown to the library. - internal GalleryImageData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary tags, AzureLocation location, string description, string eula, Uri privacyStatementUri, Uri releaseNoteUri, SupportedOperatingSystemType? osType, OperatingSystemStateType? osState, HyperVGeneration? hyperVGeneration, DateTimeOffset? endOfLifeOn, GalleryImageIdentifier identifier, RecommendedMachineConfiguration recommended, Disallowed disallowed, ImagePurchasePlan purchasePlan, GalleryProvisioningState? provisioningState, IList features, ArchitectureType? architecture, IDictionary serializedAdditionalRawData) : base(id, name, resourceType, systemData, tags, location) + internal GalleryImageData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary tags, AzureLocation location, string description, string eula, Uri privacyStatementUri, Uri releaseNoteUri, SupportedOperatingSystemType? osType, OperatingSystemStateType? osState, HyperVGeneration? hyperVGeneration, DateTimeOffset? endOfLifeOn, GalleryImageIdentifier identifier, RecommendedMachineConfiguration recommended, Disallowed disallowed, ImagePurchasePlan purchasePlan, GalleryProvisioningState? provisioningState, IList features, ArchitectureType? architecture, bool? allowUpdateImage, IDictionary serializedAdditionalRawData) : base(id, name, resourceType, systemData, tags, location) { Description = description; Eula = eula; @@ -98,6 +99,7 @@ internal GalleryImageData(ResourceIdentifier id, string name, ResourceType resou ProvisioningState = provisioningState; Features = features; Architecture = architecture; + AllowUpdateImage = allowUpdateImage; _serializedAdditionalRawData = serializedAdditionalRawData; } @@ -145,7 +147,9 @@ public IList DisallowedDiskTypes public GalleryProvisioningState? ProvisioningState { get; } /// A list of gallery image features. public IList Features { get; } - /// The architecture of the image. Applicable to OS disks only. + /// CPU architecture supported by an OS disk. public ArchitectureType? Architecture { get; set; } + /// Optional. Must be set to true if the gallery image features are being updated. + public bool? AllowUpdateImage { get; set; } } } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/GalleryImageResource.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/GalleryImageResource.cs index 4e7c33489d47..220abcc87344 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/GalleryImageResource.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/GalleryImageResource.cs @@ -110,7 +110,7 @@ public virtual GalleryImageVersionCollection GetGalleryImageVersions() /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -142,7 +142,7 @@ public virtual async Task> GetGalleryImage /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -174,7 +174,7 @@ public virtual Response GetGalleryImageVersion(stri /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -214,7 +214,7 @@ public virtual async Task> GetAsync(CancellationT /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -254,7 +254,7 @@ public virtual Response Get(CancellationToken cancellation /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -296,7 +296,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -338,7 +338,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -384,7 +384,7 @@ public virtual async Task> UpdateAsync(WaitUn /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -430,7 +430,7 @@ public virtual ArmOperation Update(WaitUntil waitUntil, Ga /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -493,7 +493,7 @@ public virtual async Task> AddTagAsync(string key /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -556,7 +556,7 @@ public virtual Response AddTag(string key, string value, C /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -614,7 +614,7 @@ public virtual async Task> SetTagsAsync(IDictiona /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -672,7 +672,7 @@ public virtual Response SetTags(IDictionary /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -733,7 +733,7 @@ public virtual async Task> RemoveTagAsync(string /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/GalleryImageVersionCollection.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/GalleryImageVersionCollection.cs index b9965e7ea35e..4f56ebfd8cf3 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/GalleryImageVersionCollection.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/GalleryImageVersionCollection.cs @@ -65,7 +65,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -114,7 +114,7 @@ public virtual async Task> CreateOrUpd /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -163,7 +163,7 @@ public virtual ArmOperation CreateOrUpdate(WaitUnti /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -209,7 +209,7 @@ public virtual async Task> GetAsync(string /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -255,7 +255,7 @@ public virtual Response Get(string galleryImageVers /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -285,7 +285,7 @@ public virtual AsyncPageable GetAllAsync(Cancellati /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -315,7 +315,7 @@ public virtual Pageable GetAll(CancellationToken ca /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -359,7 +359,7 @@ public virtual async Task> ExistsAsync(string galleryImageVersion /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -403,7 +403,7 @@ public virtual Response Exists(string galleryImageVersionName, Replication /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -449,7 +449,7 @@ public virtual async Task> GetIfEx /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/GalleryImageVersionData.Serialization.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/GalleryImageVersionData.Serialization.cs index 11b9ea08a215..625b1c2d0e59 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/GalleryImageVersionData.Serialization.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/GalleryImageVersionData.Serialization.cs @@ -69,6 +69,16 @@ protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWri writer.WritePropertyName("securityProfile"u8); writer.WriteObjectValue(SecurityProfile, options); } + if (Optional.IsDefined(Restore)) + { + writer.WritePropertyName("restore"u8); + writer.WriteBooleanValue(Restore.Value); + } + if (options.Format != "W" && Optional.IsDefined(ValidationsProfile)) + { + writer.WritePropertyName("validationsProfile"u8); + writer.WriteObjectValue(ValidationsProfile, options); + } writer.WriteEndObject(); } @@ -104,6 +114,8 @@ internal static GalleryImageVersionData DeserializeGalleryImageVersionData(JsonE GalleryImageVersionSafetyProfile safetyProfile = default; ReplicationStatus replicationStatus = default; ImageVersionSecurityProfile securityProfile = default; + bool? restore = default; + ValidationsProfile validationsProfile = default; IDictionary serializedAdditionalRawData = default; Dictionary rawDataDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) @@ -214,6 +226,24 @@ internal static GalleryImageVersionData DeserializeGalleryImageVersionData(JsonE securityProfile = ImageVersionSecurityProfile.DeserializeImageVersionSecurityProfile(property0.Value, options); continue; } + if (property0.NameEquals("restore"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + restore = property0.Value.GetBoolean(); + continue; + } + if (property0.NameEquals("validationsProfile"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + validationsProfile = ValidationsProfile.DeserializeValidationsProfile(property0.Value, options); + continue; + } } continue; } @@ -236,6 +266,8 @@ internal static GalleryImageVersionData DeserializeGalleryImageVersionData(JsonE safetyProfile, replicationStatus, securityProfile, + restore, + validationsProfile, serializedAdditionalRawData); } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/GalleryImageVersionData.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/GalleryImageVersionData.cs index d5095c7eafea..d97f935a1c9c 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/GalleryImageVersionData.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/GalleryImageVersionData.cs @@ -70,8 +70,10 @@ public GalleryImageVersionData(AzureLocation location) : base(location) /// This is the safety profile of the Gallery Image Version. /// This is the replication status of the gallery image version. /// The security profile of a gallery image version. + /// Indicates if this is a soft-delete resource restoration request. + /// This is the validations profile of a Gallery Image Version. /// Keeps track of any properties unknown to the library. - internal GalleryImageVersionData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary tags, AzureLocation location, GalleryImageVersionPublishingProfile publishingProfile, GalleryProvisioningState? provisioningState, GalleryImageVersionStorageProfile storageProfile, GalleryImageVersionSafetyProfile safetyProfile, ReplicationStatus replicationStatus, ImageVersionSecurityProfile securityProfile, IDictionary serializedAdditionalRawData) : base(id, name, resourceType, systemData, tags, location) + internal GalleryImageVersionData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary tags, AzureLocation location, GalleryImageVersionPublishingProfile publishingProfile, GalleryProvisioningState? provisioningState, GalleryImageVersionStorageProfile storageProfile, GalleryImageVersionSafetyProfile safetyProfile, ReplicationStatus replicationStatus, ImageVersionSecurityProfile securityProfile, bool? restore, ValidationsProfile validationsProfile, IDictionary serializedAdditionalRawData) : base(id, name, resourceType, systemData, tags, location) { PublishingProfile = publishingProfile; ProvisioningState = provisioningState; @@ -79,6 +81,8 @@ internal GalleryImageVersionData(ResourceIdentifier id, string name, ResourceTyp SafetyProfile = safetyProfile; ReplicationStatus = replicationStatus; SecurityProfile = securityProfile; + Restore = restore; + ValidationsProfile = validationsProfile; _serializedAdditionalRawData = serializedAdditionalRawData; } @@ -110,5 +114,10 @@ public GalleryImageVersionUefiSettings SecurityUefiSettings SecurityProfile.UefiSettings = value; } } + + /// Indicates if this is a soft-delete resource restoration request. + public bool? Restore { get; set; } + /// This is the validations profile of a Gallery Image Version. + public ValidationsProfile ValidationsProfile { get; } } } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/GalleryImageVersionResource.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/GalleryImageVersionResource.cs index 5edeb4f7953e..ab04834e7e2e 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/GalleryImageVersionResource.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/GalleryImageVersionResource.cs @@ -104,7 +104,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -145,7 +145,7 @@ public virtual async Task> GetAsync(Replic /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -186,7 +186,7 @@ public virtual Response Get(ReplicationStatusType? /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -228,7 +228,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -270,7 +270,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -316,7 +316,7 @@ public virtual async Task> UpdateAsync /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -362,7 +362,7 @@ public virtual ArmOperation Update(WaitUntil waitUn /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -424,7 +424,7 @@ public virtual async Task> AddTagAsync(str /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -486,7 +486,7 @@ public virtual Response AddTag(string key, string v /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -543,7 +543,7 @@ public virtual async Task> SetTagsAsync(ID /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -600,7 +600,7 @@ public virtual Response SetTags(IDictionary /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -660,7 +660,7 @@ public virtual async Task> RemoveTagAsync( /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/GalleryInVmAccessControlProfileCollection.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/GalleryInVmAccessControlProfileCollection.cs new file mode 100644 index 000000000000..635abd422d8f --- /dev/null +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/GalleryInVmAccessControlProfileCollection.cs @@ -0,0 +1,493 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Globalization; +using System.Threading; +using System.Threading.Tasks; +using Autorest.CSharp.Core; +using Azure.Core; +using Azure.Core.Pipeline; + +namespace Azure.ResourceManager.Compute +{ + /// + /// A class representing a collection of and their operations. + /// Each in the collection will belong to the same instance of . + /// To get a instance call the GetGalleryInVmAccessControlProfiles method from an instance of . + /// + public partial class GalleryInVmAccessControlProfileCollection : ArmCollection, IEnumerable, IAsyncEnumerable + { + private readonly ClientDiagnostics _galleryInVmAccessControlProfileGalleryInVmAccessControlProfilesClientDiagnostics; + private readonly GalleryInVMAccessControlProfilesRestOperations _galleryInVmAccessControlProfileGalleryInVmAccessControlProfilesRestClient; + + /// Initializes a new instance of the class for mocking. + protected GalleryInVmAccessControlProfileCollection() + { + } + + /// 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 GalleryInVmAccessControlProfileCollection(ArmClient client, ResourceIdentifier id) : base(client, id) + { + _galleryInVmAccessControlProfileGalleryInVmAccessControlProfilesClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.Compute", GalleryInVmAccessControlProfileResource.ResourceType.Namespace, Diagnostics); + TryGetApiVersion(GalleryInVmAccessControlProfileResource.ResourceType, out string galleryInVmAccessControlProfileGalleryInVmAccessControlProfilesApiVersion); + _galleryInVmAccessControlProfileGalleryInVmAccessControlProfilesRestClient = new GalleryInVMAccessControlProfilesRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, galleryInVmAccessControlProfileGalleryInVmAccessControlProfilesApiVersion); +#if DEBUG + ValidateResourceId(Id); +#endif + } + + internal static void ValidateResourceId(ResourceIdentifier id) + { + if (id.ResourceType != GalleryResource.ResourceType) + throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "Invalid resource type {0} expected {1}", id.ResourceType, GalleryResource.ResourceType), nameof(id)); + } + + /// + /// Create or update a gallery inVMAccessControlProfile. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/inVMAccessControlProfiles/{inVMAccessControlProfileName} + /// + /// + /// Operation Id + /// GalleryInVMAccessControlProfiles_CreateOrUpdate + /// + /// + /// Default Api Version + /// 2024-03-03 + /// + /// + /// 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 the gallery inVMAccessControlProfile to be created or updated. The allowed characters are alphabets and numbers with dots, dashes, and periods allowed in the middle. The maximum length is 80 characters. + /// Parameters supplied to the create or update gallery inVMAccessControlProfile operation. + /// 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 inVmAccessControlProfileName, GalleryInVmAccessControlProfileData data, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(inVmAccessControlProfileName, nameof(inVmAccessControlProfileName)); + Argument.AssertNotNull(data, nameof(data)); + + using var scope = _galleryInVmAccessControlProfileGalleryInVmAccessControlProfilesClientDiagnostics.CreateScope("GalleryInVmAccessControlProfileCollection.CreateOrUpdate"); + scope.Start(); + try + { + var response = await _galleryInVmAccessControlProfileGalleryInVmAccessControlProfilesRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, inVmAccessControlProfileName, data, cancellationToken).ConfigureAwait(false); + var operation = new ComputeArmOperation(new GalleryInVmAccessControlProfileOperationSource(Client), _galleryInVmAccessControlProfileGalleryInVmAccessControlProfilesClientDiagnostics, Pipeline, _galleryInVmAccessControlProfileGalleryInVmAccessControlProfilesRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, inVmAccessControlProfileName, data).Request, response, OperationFinalStateVia.Location); + if (waitUntil == WaitUntil.Completed) + await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Create or update a gallery inVMAccessControlProfile. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/inVMAccessControlProfiles/{inVMAccessControlProfileName} + /// + /// + /// Operation Id + /// GalleryInVMAccessControlProfiles_CreateOrUpdate + /// + /// + /// Default Api Version + /// 2024-03-03 + /// + /// + /// 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 the gallery inVMAccessControlProfile to be created or updated. The allowed characters are alphabets and numbers with dots, dashes, and periods allowed in the middle. The maximum length is 80 characters. + /// Parameters supplied to the create or update gallery inVMAccessControlProfile operation. + /// 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 inVmAccessControlProfileName, GalleryInVmAccessControlProfileData data, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(inVmAccessControlProfileName, nameof(inVmAccessControlProfileName)); + Argument.AssertNotNull(data, nameof(data)); + + using var scope = _galleryInVmAccessControlProfileGalleryInVmAccessControlProfilesClientDiagnostics.CreateScope("GalleryInVmAccessControlProfileCollection.CreateOrUpdate"); + scope.Start(); + try + { + var response = _galleryInVmAccessControlProfileGalleryInVmAccessControlProfilesRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, inVmAccessControlProfileName, data, cancellationToken); + var operation = new ComputeArmOperation(new GalleryInVmAccessControlProfileOperationSource(Client), _galleryInVmAccessControlProfileGalleryInVmAccessControlProfilesClientDiagnostics, Pipeline, _galleryInVmAccessControlProfileGalleryInVmAccessControlProfilesRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, inVmAccessControlProfileName, data).Request, response, OperationFinalStateVia.Location); + if (waitUntil == WaitUntil.Completed) + operation.WaitForCompletion(cancellationToken); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Retrieves information about a gallery inVMAccessControlProfile. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/inVMAccessControlProfiles/{inVMAccessControlProfileName} + /// + /// + /// Operation Id + /// GalleryInVMAccessControlProfiles_Get + /// + /// + /// Default Api Version + /// 2024-03-03 + /// + /// + /// Resource + /// + /// + /// + /// + /// The name of the gallery inVMAccessControlProfile to be retrieved. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + public virtual async Task> GetAsync(string inVmAccessControlProfileName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(inVmAccessControlProfileName, nameof(inVmAccessControlProfileName)); + + using var scope = _galleryInVmAccessControlProfileGalleryInVmAccessControlProfilesClientDiagnostics.CreateScope("GalleryInVmAccessControlProfileCollection.Get"); + scope.Start(); + try + { + var response = await _galleryInVmAccessControlProfileGalleryInVmAccessControlProfilesRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, inVmAccessControlProfileName, cancellationToken).ConfigureAwait(false); + if (response.Value == null) + throw new RequestFailedException(response.GetRawResponse()); + return Response.FromValue(new GalleryInVmAccessControlProfileResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Retrieves information about a gallery inVMAccessControlProfile. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/inVMAccessControlProfiles/{inVMAccessControlProfileName} + /// + /// + /// Operation Id + /// GalleryInVMAccessControlProfiles_Get + /// + /// + /// Default Api Version + /// 2024-03-03 + /// + /// + /// Resource + /// + /// + /// + /// + /// The name of the gallery inVMAccessControlProfile to be retrieved. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + public virtual Response Get(string inVmAccessControlProfileName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(inVmAccessControlProfileName, nameof(inVmAccessControlProfileName)); + + using var scope = _galleryInVmAccessControlProfileGalleryInVmAccessControlProfilesClientDiagnostics.CreateScope("GalleryInVmAccessControlProfileCollection.Get"); + scope.Start(); + try + { + var response = _galleryInVmAccessControlProfileGalleryInVmAccessControlProfilesRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, inVmAccessControlProfileName, cancellationToken); + if (response.Value == null) + throw new RequestFailedException(response.GetRawResponse()); + return Response.FromValue(new GalleryInVmAccessControlProfileResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// List gallery inVMAccessControlProfiles in a gallery. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/inVMAccessControlProfiles + /// + /// + /// Operation Id + /// GalleryInVMAccessControlProfiles_ListByGallery + /// + /// + /// Default Api Version + /// 2024-03-03 + /// + /// + /// 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) => _galleryInVmAccessControlProfileGalleryInVmAccessControlProfilesRestClient.CreateListByGalleryRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _galleryInVmAccessControlProfileGalleryInVmAccessControlProfilesRestClient.CreateListByGalleryNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name); + return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => new GalleryInVmAccessControlProfileResource(Client, GalleryInVmAccessControlProfileData.DeserializeGalleryInVmAccessControlProfileData(e)), _galleryInVmAccessControlProfileGalleryInVmAccessControlProfilesClientDiagnostics, Pipeline, "GalleryInVmAccessControlProfileCollection.GetAll", "value", "nextLink", cancellationToken); + } + + /// + /// List gallery inVMAccessControlProfiles in a gallery. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/inVMAccessControlProfiles + /// + /// + /// Operation Id + /// GalleryInVMAccessControlProfiles_ListByGallery + /// + /// + /// Default Api Version + /// 2024-03-03 + /// + /// + /// 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) => _galleryInVmAccessControlProfileGalleryInVmAccessControlProfilesRestClient.CreateListByGalleryRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _galleryInVmAccessControlProfileGalleryInVmAccessControlProfilesRestClient.CreateListByGalleryNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name); + return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new GalleryInVmAccessControlProfileResource(Client, GalleryInVmAccessControlProfileData.DeserializeGalleryInVmAccessControlProfileData(e)), _galleryInVmAccessControlProfileGalleryInVmAccessControlProfilesClientDiagnostics, Pipeline, "GalleryInVmAccessControlProfileCollection.GetAll", "value", "nextLink", cancellationToken); + } + + /// + /// Checks to see if the resource exists in azure. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/inVMAccessControlProfiles/{inVMAccessControlProfileName} + /// + /// + /// Operation Id + /// GalleryInVMAccessControlProfiles_Get + /// + /// + /// Default Api Version + /// 2024-03-03 + /// + /// + /// Resource + /// + /// + /// + /// + /// The name of the gallery inVMAccessControlProfile to be retrieved. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + public virtual async Task> ExistsAsync(string inVmAccessControlProfileName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(inVmAccessControlProfileName, nameof(inVmAccessControlProfileName)); + + using var scope = _galleryInVmAccessControlProfileGalleryInVmAccessControlProfilesClientDiagnostics.CreateScope("GalleryInVmAccessControlProfileCollection.Exists"); + scope.Start(); + try + { + var response = await _galleryInVmAccessControlProfileGalleryInVmAccessControlProfilesRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, inVmAccessControlProfileName, 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.Compute/galleries/{galleryName}/inVMAccessControlProfiles/{inVMAccessControlProfileName} + /// + /// + /// Operation Id + /// GalleryInVMAccessControlProfiles_Get + /// + /// + /// Default Api Version + /// 2024-03-03 + /// + /// + /// Resource + /// + /// + /// + /// + /// The name of the gallery inVMAccessControlProfile to be retrieved. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + public virtual Response Exists(string inVmAccessControlProfileName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(inVmAccessControlProfileName, nameof(inVmAccessControlProfileName)); + + using var scope = _galleryInVmAccessControlProfileGalleryInVmAccessControlProfilesClientDiagnostics.CreateScope("GalleryInVmAccessControlProfileCollection.Exists"); + scope.Start(); + try + { + var response = _galleryInVmAccessControlProfileGalleryInVmAccessControlProfilesRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, inVmAccessControlProfileName, 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.Compute/galleries/{galleryName}/inVMAccessControlProfiles/{inVMAccessControlProfileName} + /// + /// + /// Operation Id + /// GalleryInVMAccessControlProfiles_Get + /// + /// + /// Default Api Version + /// 2024-03-03 + /// + /// + /// Resource + /// + /// + /// + /// + /// The name of the gallery inVMAccessControlProfile to be retrieved. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + public virtual async Task> GetIfExistsAsync(string inVmAccessControlProfileName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(inVmAccessControlProfileName, nameof(inVmAccessControlProfileName)); + + using var scope = _galleryInVmAccessControlProfileGalleryInVmAccessControlProfilesClientDiagnostics.CreateScope("GalleryInVmAccessControlProfileCollection.GetIfExists"); + scope.Start(); + try + { + var response = await _galleryInVmAccessControlProfileGalleryInVmAccessControlProfilesRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, inVmAccessControlProfileName, cancellationToken: cancellationToken).ConfigureAwait(false); + if (response.Value == null) + return new NoValueResponse(response.GetRawResponse()); + return Response.FromValue(new GalleryInVmAccessControlProfileResource(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.Compute/galleries/{galleryName}/inVMAccessControlProfiles/{inVMAccessControlProfileName} + /// + /// + /// Operation Id + /// GalleryInVMAccessControlProfiles_Get + /// + /// + /// Default Api Version + /// 2024-03-03 + /// + /// + /// Resource + /// + /// + /// + /// + /// The name of the gallery inVMAccessControlProfile to be retrieved. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + public virtual NullableResponse GetIfExists(string inVmAccessControlProfileName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(inVmAccessControlProfileName, nameof(inVmAccessControlProfileName)); + + using var scope = _galleryInVmAccessControlProfileGalleryInVmAccessControlProfilesClientDiagnostics.CreateScope("GalleryInVmAccessControlProfileCollection.GetIfExists"); + scope.Start(); + try + { + var response = _galleryInVmAccessControlProfileGalleryInVmAccessControlProfilesRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, inVmAccessControlProfileName, cancellationToken: cancellationToken); + if (response.Value == null) + return new NoValueResponse(response.GetRawResponse()); + return Response.FromValue(new GalleryInVmAccessControlProfileResource(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/compute/Azure.ResourceManager.Compute/src/Generated/GalleryInVmAccessControlProfileData.Serialization.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/GalleryInVmAccessControlProfileData.Serialization.cs new file mode 100644 index 000000000000..34e23c607d31 --- /dev/null +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/GalleryInVmAccessControlProfileData.Serialization.cs @@ -0,0 +1,178 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; +using Azure.ResourceManager.Compute.Models; +using Azure.ResourceManager.Models; + +namespace Azure.ResourceManager.Compute +{ + public partial class GalleryInVmAccessControlProfileData : IUtf8JsonSerializable, IJsonModel + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); + + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStartObject(); + JsonModelWriteCore(writer, options); + writer.WriteEndObject(); + } + + /// The JSON writer. + /// The client options for reading and writing models. + protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(GalleryInVmAccessControlProfileData)} does not support writing '{format}' format."); + } + + base.JsonModelWriteCore(writer, options); + if (Optional.IsDefined(Properties)) + { + writer.WritePropertyName("properties"u8); + writer.WriteObjectValue(Properties, options); + } + } + + GalleryInVmAccessControlProfileData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(GalleryInVmAccessControlProfileData)} does not support reading '{format}' format."); + } + + using JsonDocument document = JsonDocument.ParseValue(ref reader); + return DeserializeGalleryInVmAccessControlProfileData(document.RootElement, options); + } + + internal static GalleryInVmAccessControlProfileData DeserializeGalleryInVmAccessControlProfileData(JsonElement element, ModelReaderWriterOptions options = null) + { + options ??= ModelSerializationExtensions.WireOptions; + + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + GalleryInVmAccessControlProfileProperties properties = default; + IDictionary tags = default; + AzureLocation location = default; + ResourceIdentifier id = default; + string name = default; + ResourceType type = default; + SystemData systemData = default; + IDictionary serializedAdditionalRawData = default; + Dictionary rawDataDictionary = new Dictionary(); + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("properties"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + properties = GalleryInVmAccessControlProfileProperties.DeserializeGalleryInVmAccessControlProfileProperties(property.Value, options); + continue; + } + if (property.NameEquals("tags"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + Dictionary dictionary = new Dictionary(); + foreach (var property0 in property.Value.EnumerateObject()) + { + dictionary.Add(property0.Name, property0.Value.GetString()); + } + tags = dictionary; + continue; + } + if (property.NameEquals("location"u8)) + { + location = new AzureLocation(property.Value.GetString()); + continue; + } + if (property.NameEquals("id"u8)) + { + id = new ResourceIdentifier(property.Value.GetString()); + continue; + } + if (property.NameEquals("name"u8)) + { + name = property.Value.GetString(); + continue; + } + if (property.NameEquals("type"u8)) + { + type = new ResourceType(property.Value.GetString()); + continue; + } + if (property.NameEquals("systemData"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + systemData = JsonSerializer.Deserialize(property.Value.GetRawText()); + continue; + } + if (options.Format != "W") + { + rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); + } + } + serializedAdditionalRawData = rawDataDictionary; + return new GalleryInVmAccessControlProfileData( + id, + name, + type, + systemData, + tags ?? new ChangeTrackingDictionary(), + location, + properties, + serializedAdditionalRawData); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + return ModelReaderWriter.Write(this, options); + default: + throw new FormatException($"The model {nameof(GalleryInVmAccessControlProfileData)} does not support writing '{options.Format}' format."); + } + } + + GalleryInVmAccessControlProfileData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + { + using JsonDocument document = JsonDocument.Parse(data); + return DeserializeGalleryInVmAccessControlProfileData(document.RootElement, options); + } + default: + throw new FormatException($"The model {nameof(GalleryInVmAccessControlProfileData)} does not support reading '{options.Format}' format."); + } + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/GalleryInVmAccessControlProfileData.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/GalleryInVmAccessControlProfileData.cs new file mode 100644 index 000000000000..c8d2c436bbdb --- /dev/null +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/GalleryInVmAccessControlProfileData.cs @@ -0,0 +1,83 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; +using Azure.Core; +using Azure.ResourceManager.Compute.Models; +using Azure.ResourceManager.Models; + +namespace Azure.ResourceManager.Compute +{ + /// + /// A class representing the GalleryInVmAccessControlProfile data model. + /// Specifies information about the gallery inVMAccessControlProfile that you want to create or update. + /// + public partial class GalleryInVmAccessControlProfileData : TrackedResourceData + { + /// + /// Keeps track of any properties unknown to the library. + /// + /// To assign an object to the value of this property use . + /// + /// + /// To assign an already formatted json string to this property use . + /// + /// + /// Examples: + /// + /// + /// BinaryData.FromObjectAsJson("foo") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromString("\"foo\"") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromObjectAsJson(new { key = "value" }) + /// Creates a payload of { "key": "value" }. + /// + /// + /// BinaryData.FromString("{\"key\": \"value\"}") + /// Creates a payload of { "key": "value" }. + /// + /// + /// + /// + private IDictionary _serializedAdditionalRawData; + + /// Initializes a new instance of . + /// The location. + public GalleryInVmAccessControlProfileData(AzureLocation location) : base(location) + { + } + + /// Initializes a new instance of . + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// The tags. + /// The location. + /// Describes the properties of a gallery inVMAccessControlProfile. + /// Keeps track of any properties unknown to the library. + internal GalleryInVmAccessControlProfileData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary tags, AzureLocation location, GalleryInVmAccessControlProfileProperties properties, IDictionary serializedAdditionalRawData) : base(id, name, resourceType, systemData, tags, location) + { + Properties = properties; + _serializedAdditionalRawData = serializedAdditionalRawData; + } + + /// Initializes a new instance of for deserialization. + internal GalleryInVmAccessControlProfileData() + { + } + + /// Describes the properties of a gallery inVMAccessControlProfile. + public GalleryInVmAccessControlProfileProperties Properties { get; set; } + } +} diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/GalleryInVmAccessControlProfileResource.Serialization.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/GalleryInVmAccessControlProfileResource.Serialization.cs new file mode 100644 index 000000000000..3a2b9a1de1bc --- /dev/null +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/GalleryInVmAccessControlProfileResource.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.Compute +{ + public partial class GalleryInVmAccessControlProfileResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) => ((IJsonModel)Data).Write(writer, options); + + GalleryInVmAccessControlProfileData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => ((IJsonModel)Data).Create(ref reader, options); + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) => ModelReaderWriter.Write(Data, options); + + GalleryInVmAccessControlProfileData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => ModelReaderWriter.Read(data, options); + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => ((IPersistableModel)Data).GetFormatFromOptions(options); + } +} diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/GalleryInVmAccessControlProfileResource.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/GalleryInVmAccessControlProfileResource.cs new file mode 100644 index 000000000000..9f27b79be94c --- /dev/null +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/GalleryInVmAccessControlProfileResource.cs @@ -0,0 +1,776 @@ +// 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.Compute.Models; + +namespace Azure.ResourceManager.Compute +{ + /// + /// A Class representing a GalleryInVmAccessControlProfile along with the instance operations that can be performed on it. + /// If you have a you can construct a + /// from an instance of using the GetGalleryInVmAccessControlProfileResource method. + /// Otherwise you can get one from its parent resource using the GetGalleryInVmAccessControlProfile method. + /// + public partial class GalleryInVmAccessControlProfileResource : ArmResource + { + /// Generate the resource identifier of a instance. + /// The subscriptionId. + /// The resourceGroupName. + /// The galleryName. + /// The inVmAccessControlProfileName. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string galleryName, string inVmAccessControlProfileName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/inVMAccessControlProfiles/{inVmAccessControlProfileName}"; + return new ResourceIdentifier(resourceId); + } + + private readonly ClientDiagnostics _galleryInVmAccessControlProfileGalleryInVmAccessControlProfilesClientDiagnostics; + private readonly GalleryInVMAccessControlProfilesRestOperations _galleryInVmAccessControlProfileGalleryInVmAccessControlProfilesRestClient; + private readonly GalleryInVmAccessControlProfileData _data; + + /// Gets the resource type for the operations. + public static readonly ResourceType ResourceType = "Microsoft.Compute/galleries/inVMAccessControlProfiles"; + + /// Initializes a new instance of the class for mocking. + protected GalleryInVmAccessControlProfileResource() + { + } + + /// Initializes a new instance of the class. + /// The client parameters to use in these operations. + /// The resource that is the target of operations. + internal GalleryInVmAccessControlProfileResource(ArmClient client, GalleryInVmAccessControlProfileData 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 GalleryInVmAccessControlProfileResource(ArmClient client, ResourceIdentifier id) : base(client, id) + { + _galleryInVmAccessControlProfileGalleryInVmAccessControlProfilesClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.Compute", ResourceType.Namespace, Diagnostics); + TryGetApiVersion(ResourceType, out string galleryInVmAccessControlProfileGalleryInVmAccessControlProfilesApiVersion); + _galleryInVmAccessControlProfileGalleryInVmAccessControlProfilesRestClient = new GalleryInVMAccessControlProfilesRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, galleryInVmAccessControlProfileGalleryInVmAccessControlProfilesApiVersion); +#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 GalleryInVmAccessControlProfileData Data + { + get + { + if (!HasData) + throw new InvalidOperationException("The current instance does not have data, you must call Get first."); + return _data; + } + } + + internal static void ValidateResourceId(ResourceIdentifier id) + { + if (id.ResourceType != ResourceType) + throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "Invalid resource type {0} expected {1}", id.ResourceType, ResourceType), nameof(id)); + } + + /// Gets a collection of GalleryInVmAccessControlProfileVersionResources in the GalleryInVmAccessControlProfile. + /// An object representing collection of GalleryInVmAccessControlProfileVersionResources and their operations over a GalleryInVmAccessControlProfileVersionResource. + public virtual GalleryInVmAccessControlProfileVersionCollection GetGalleryInVmAccessControlProfileVersions() + { + return GetCachedClient(client => new GalleryInVmAccessControlProfileVersionCollection(client, Id)); + } + + /// + /// Retrieves information about a gallery inVMAccessControlProfile version. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/inVMAccessControlProfiles/{inVMAccessControlProfileName}/versions/{inVMAccessControlProfileVersionName} + /// + /// + /// Operation Id + /// GalleryInVMAccessControlProfileVersions_Get + /// + /// + /// Default Api Version + /// 2024-03-03 + /// + /// + /// Resource + /// + /// + /// + /// + /// The name of the gallery inVMAccessControlProfile version to be retrieved. + /// The cancellation token to use. + /// is null. + /// is an empty string, and was expected to be non-empty. + [ForwardsClientCalls] + public virtual async Task> GetGalleryInVmAccessControlProfileVersionAsync(string inVmAccessControlProfileVersionName, CancellationToken cancellationToken = default) + { + return await GetGalleryInVmAccessControlProfileVersions().GetAsync(inVmAccessControlProfileVersionName, cancellationToken).ConfigureAwait(false); + } + + /// + /// Retrieves information about a gallery inVMAccessControlProfile version. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/inVMAccessControlProfiles/{inVMAccessControlProfileName}/versions/{inVMAccessControlProfileVersionName} + /// + /// + /// Operation Id + /// GalleryInVMAccessControlProfileVersions_Get + /// + /// + /// Default Api Version + /// 2024-03-03 + /// + /// + /// Resource + /// + /// + /// + /// + /// The name of the gallery inVMAccessControlProfile version to be retrieved. + /// The cancellation token to use. + /// is null. + /// is an empty string, and was expected to be non-empty. + [ForwardsClientCalls] + public virtual Response GetGalleryInVmAccessControlProfileVersion(string inVmAccessControlProfileVersionName, CancellationToken cancellationToken = default) + { + return GetGalleryInVmAccessControlProfileVersions().Get(inVmAccessControlProfileVersionName, cancellationToken); + } + + /// + /// Retrieves information about a gallery inVMAccessControlProfile. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/inVMAccessControlProfiles/{inVMAccessControlProfileName} + /// + /// + /// Operation Id + /// GalleryInVMAccessControlProfiles_Get + /// + /// + /// Default Api Version + /// 2024-03-03 + /// + /// + /// Resource + /// + /// + /// + /// + /// The cancellation token to use. + public virtual async Task> GetAsync(CancellationToken cancellationToken = default) + { + using var scope = _galleryInVmAccessControlProfileGalleryInVmAccessControlProfilesClientDiagnostics.CreateScope("GalleryInVmAccessControlProfileResource.Get"); + scope.Start(); + try + { + var response = await _galleryInVmAccessControlProfileGalleryInVmAccessControlProfilesRestClient.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 GalleryInVmAccessControlProfileResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Retrieves information about a gallery inVMAccessControlProfile. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/inVMAccessControlProfiles/{inVMAccessControlProfileName} + /// + /// + /// Operation Id + /// GalleryInVMAccessControlProfiles_Get + /// + /// + /// Default Api Version + /// 2024-03-03 + /// + /// + /// Resource + /// + /// + /// + /// + /// The cancellation token to use. + public virtual Response Get(CancellationToken cancellationToken = default) + { + using var scope = _galleryInVmAccessControlProfileGalleryInVmAccessControlProfilesClientDiagnostics.CreateScope("GalleryInVmAccessControlProfileResource.Get"); + scope.Start(); + try + { + var response = _galleryInVmAccessControlProfileGalleryInVmAccessControlProfilesRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); + if (response.Value == null) + throw new RequestFailedException(response.GetRawResponse()); + return Response.FromValue(new GalleryInVmAccessControlProfileResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Delete a gallery inVMAccessControlProfile. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/inVMAccessControlProfiles/{inVMAccessControlProfileName} + /// + /// + /// Operation Id + /// GalleryInVMAccessControlProfiles_Delete + /// + /// + /// Default Api Version + /// 2024-03-03 + /// + /// + /// 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 = _galleryInVmAccessControlProfileGalleryInVmAccessControlProfilesClientDiagnostics.CreateScope("GalleryInVmAccessControlProfileResource.Delete"); + scope.Start(); + try + { + var response = await _galleryInVmAccessControlProfileGalleryInVmAccessControlProfilesRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); + var operation = new ComputeArmOperation(_galleryInVmAccessControlProfileGalleryInVmAccessControlProfilesClientDiagnostics, Pipeline, _galleryInVmAccessControlProfileGalleryInVmAccessControlProfilesRestClient.CreateDeleteRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name).Request, response, OperationFinalStateVia.Location); + if (waitUntil == WaitUntil.Completed) + await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Delete a gallery inVMAccessControlProfile. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/inVMAccessControlProfiles/{inVMAccessControlProfileName} + /// + /// + /// Operation Id + /// GalleryInVMAccessControlProfiles_Delete + /// + /// + /// Default Api Version + /// 2024-03-03 + /// + /// + /// 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 = _galleryInVmAccessControlProfileGalleryInVmAccessControlProfilesClientDiagnostics.CreateScope("GalleryInVmAccessControlProfileResource.Delete"); + scope.Start(); + try + { + var response = _galleryInVmAccessControlProfileGalleryInVmAccessControlProfilesRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); + var operation = new ComputeArmOperation(_galleryInVmAccessControlProfileGalleryInVmAccessControlProfilesClientDiagnostics, Pipeline, _galleryInVmAccessControlProfileGalleryInVmAccessControlProfilesRestClient.CreateDeleteRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name).Request, response, OperationFinalStateVia.Location); + if (waitUntil == WaitUntil.Completed) + operation.WaitForCompletionResponse(cancellationToken); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Update a gallery inVMAccessControlProfile. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/inVMAccessControlProfiles/{inVMAccessControlProfileName} + /// + /// + /// Operation Id + /// GalleryInVMAccessControlProfiles_Update + /// + /// + /// Default Api Version + /// 2024-03-03 + /// + /// + /// 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. + /// Parameters supplied to the update gallery inVMAccessControlProfile operation. + /// The cancellation token to use. + /// is null. + public virtual async Task> UpdateAsync(WaitUntil waitUntil, GalleryInVmAccessControlProfilePatch patch, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(patch, nameof(patch)); + + using var scope = _galleryInVmAccessControlProfileGalleryInVmAccessControlProfilesClientDiagnostics.CreateScope("GalleryInVmAccessControlProfileResource.Update"); + scope.Start(); + try + { + var response = await _galleryInVmAccessControlProfileGalleryInVmAccessControlProfilesRestClient.UpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, patch, cancellationToken).ConfigureAwait(false); + var operation = new ComputeArmOperation(new GalleryInVmAccessControlProfileOperationSource(Client), _galleryInVmAccessControlProfileGalleryInVmAccessControlProfilesClientDiagnostics, Pipeline, _galleryInVmAccessControlProfileGalleryInVmAccessControlProfilesRestClient.CreateUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, patch).Request, response, OperationFinalStateVia.Location); + if (waitUntil == WaitUntil.Completed) + await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Update a gallery inVMAccessControlProfile. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/inVMAccessControlProfiles/{inVMAccessControlProfileName} + /// + /// + /// Operation Id + /// GalleryInVMAccessControlProfiles_Update + /// + /// + /// Default Api Version + /// 2024-03-03 + /// + /// + /// 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. + /// Parameters supplied to the update gallery inVMAccessControlProfile operation. + /// The cancellation token to use. + /// is null. + public virtual ArmOperation Update(WaitUntil waitUntil, GalleryInVmAccessControlProfilePatch patch, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(patch, nameof(patch)); + + using var scope = _galleryInVmAccessControlProfileGalleryInVmAccessControlProfilesClientDiagnostics.CreateScope("GalleryInVmAccessControlProfileResource.Update"); + scope.Start(); + try + { + var response = _galleryInVmAccessControlProfileGalleryInVmAccessControlProfilesRestClient.Update(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, patch, cancellationToken); + var operation = new ComputeArmOperation(new GalleryInVmAccessControlProfileOperationSource(Client), _galleryInVmAccessControlProfileGalleryInVmAccessControlProfilesClientDiagnostics, Pipeline, _galleryInVmAccessControlProfileGalleryInVmAccessControlProfilesRestClient.CreateUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, patch).Request, response, OperationFinalStateVia.Location); + if (waitUntil == WaitUntil.Completed) + operation.WaitForCompletion(cancellationToken); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Add a tag to the current resource. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/inVMAccessControlProfiles/{inVMAccessControlProfileName} + /// + /// + /// Operation Id + /// GalleryInVMAccessControlProfiles_Get + /// + /// + /// Default Api Version + /// 2024-03-03 + /// + /// + /// 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 = _galleryInVmAccessControlProfileGalleryInVmAccessControlProfilesClientDiagnostics.CreateScope("GalleryInVmAccessControlProfileResource.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 _galleryInVmAccessControlProfileGalleryInVmAccessControlProfilesRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); + return Response.FromValue(new GalleryInVmAccessControlProfileResource(Client, originalResponse.Value), originalResponse.GetRawResponse()); + } + else + { + var current = (await GetAsync(cancellationToken: cancellationToken).ConfigureAwait(false)).Value.Data; + var patch = new GalleryInVmAccessControlProfilePatch(); + foreach (var tag in current.Tags) + { + patch.Tags.Add(tag); + } + patch.Tags[key] = value; + var result = await UpdateAsync(WaitUntil.Completed, patch, cancellationToken: cancellationToken).ConfigureAwait(false); + return Response.FromValue(result.Value, result.GetRawResponse()); + } + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Add a tag to the current resource. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/inVMAccessControlProfiles/{inVMAccessControlProfileName} + /// + /// + /// Operation Id + /// GalleryInVMAccessControlProfiles_Get + /// + /// + /// Default Api Version + /// 2024-03-03 + /// + /// + /// 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 = _galleryInVmAccessControlProfileGalleryInVmAccessControlProfilesClientDiagnostics.CreateScope("GalleryInVmAccessControlProfileResource.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 = _galleryInVmAccessControlProfileGalleryInVmAccessControlProfilesRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); + return Response.FromValue(new GalleryInVmAccessControlProfileResource(Client, originalResponse.Value), originalResponse.GetRawResponse()); + } + else + { + var current = Get(cancellationToken: cancellationToken).Value.Data; + var patch = new GalleryInVmAccessControlProfilePatch(); + foreach (var tag in current.Tags) + { + patch.Tags.Add(tag); + } + patch.Tags[key] = value; + var result = Update(WaitUntil.Completed, patch, cancellationToken: cancellationToken); + return Response.FromValue(result.Value, result.GetRawResponse()); + } + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Replace the tags on the resource with the given set. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/inVMAccessControlProfiles/{inVMAccessControlProfileName} + /// + /// + /// Operation Id + /// GalleryInVMAccessControlProfiles_Get + /// + /// + /// Default Api Version + /// 2024-03-03 + /// + /// + /// 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 = _galleryInVmAccessControlProfileGalleryInVmAccessControlProfilesClientDiagnostics.CreateScope("GalleryInVmAccessControlProfileResource.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 _galleryInVmAccessControlProfileGalleryInVmAccessControlProfilesRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); + return Response.FromValue(new GalleryInVmAccessControlProfileResource(Client, originalResponse.Value), originalResponse.GetRawResponse()); + } + else + { + var current = (await GetAsync(cancellationToken: cancellationToken).ConfigureAwait(false)).Value.Data; + var patch = new GalleryInVmAccessControlProfilePatch(); + patch.Tags.ReplaceWith(tags); + var result = await UpdateAsync(WaitUntil.Completed, patch, cancellationToken: cancellationToken).ConfigureAwait(false); + return Response.FromValue(result.Value, result.GetRawResponse()); + } + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Replace the tags on the resource with the given set. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/inVMAccessControlProfiles/{inVMAccessControlProfileName} + /// + /// + /// Operation Id + /// GalleryInVMAccessControlProfiles_Get + /// + /// + /// Default Api Version + /// 2024-03-03 + /// + /// + /// 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 = _galleryInVmAccessControlProfileGalleryInVmAccessControlProfilesClientDiagnostics.CreateScope("GalleryInVmAccessControlProfileResource.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 = _galleryInVmAccessControlProfileGalleryInVmAccessControlProfilesRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); + return Response.FromValue(new GalleryInVmAccessControlProfileResource(Client, originalResponse.Value), originalResponse.GetRawResponse()); + } + else + { + var current = Get(cancellationToken: cancellationToken).Value.Data; + var patch = new GalleryInVmAccessControlProfilePatch(); + patch.Tags.ReplaceWith(tags); + var result = Update(WaitUntil.Completed, patch, cancellationToken: cancellationToken); + return Response.FromValue(result.Value, result.GetRawResponse()); + } + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Removes a tag by key from the resource. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/inVMAccessControlProfiles/{inVMAccessControlProfileName} + /// + /// + /// Operation Id + /// GalleryInVMAccessControlProfiles_Get + /// + /// + /// Default Api Version + /// 2024-03-03 + /// + /// + /// 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 = _galleryInVmAccessControlProfileGalleryInVmAccessControlProfilesClientDiagnostics.CreateScope("GalleryInVmAccessControlProfileResource.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 _galleryInVmAccessControlProfileGalleryInVmAccessControlProfilesRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); + return Response.FromValue(new GalleryInVmAccessControlProfileResource(Client, originalResponse.Value), originalResponse.GetRawResponse()); + } + else + { + var current = (await GetAsync(cancellationToken: cancellationToken).ConfigureAwait(false)).Value.Data; + var patch = new GalleryInVmAccessControlProfilePatch(); + foreach (var tag in current.Tags) + { + patch.Tags.Add(tag); + } + patch.Tags.Remove(key); + var result = await UpdateAsync(WaitUntil.Completed, patch, cancellationToken: cancellationToken).ConfigureAwait(false); + return Response.FromValue(result.Value, result.GetRawResponse()); + } + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Removes a tag by key from the resource. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/inVMAccessControlProfiles/{inVMAccessControlProfileName} + /// + /// + /// Operation Id + /// GalleryInVMAccessControlProfiles_Get + /// + /// + /// Default Api Version + /// 2024-03-03 + /// + /// + /// 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 = _galleryInVmAccessControlProfileGalleryInVmAccessControlProfilesClientDiagnostics.CreateScope("GalleryInVmAccessControlProfileResource.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 = _galleryInVmAccessControlProfileGalleryInVmAccessControlProfilesRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); + return Response.FromValue(new GalleryInVmAccessControlProfileResource(Client, originalResponse.Value), originalResponse.GetRawResponse()); + } + else + { + var current = Get(cancellationToken: cancellationToken).Value.Data; + var patch = new GalleryInVmAccessControlProfilePatch(); + foreach (var tag in current.Tags) + { + patch.Tags.Add(tag); + } + patch.Tags.Remove(key); + var result = Update(WaitUntil.Completed, patch, cancellationToken: cancellationToken); + return Response.FromValue(result.Value, result.GetRawResponse()); + } + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + } +} diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/GalleryInVmAccessControlProfileVersionCollection.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/GalleryInVmAccessControlProfileVersionCollection.cs new file mode 100644 index 000000000000..5fb2555615e8 --- /dev/null +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/GalleryInVmAccessControlProfileVersionCollection.cs @@ -0,0 +1,493 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Globalization; +using System.Threading; +using System.Threading.Tasks; +using Autorest.CSharp.Core; +using Azure.Core; +using Azure.Core.Pipeline; + +namespace Azure.ResourceManager.Compute +{ + /// + /// A class representing a collection of and their operations. + /// Each in the collection will belong to the same instance of . + /// To get a instance call the GetGalleryInVmAccessControlProfileVersions method from an instance of . + /// + public partial class GalleryInVmAccessControlProfileVersionCollection : ArmCollection, IEnumerable, IAsyncEnumerable + { + private readonly ClientDiagnostics _galleryInVmAccessControlProfileVersionGalleryInVmAccessControlProfileVersionsClientDiagnostics; + private readonly GalleryInVMAccessControlProfileVersionsRestOperations _galleryInVmAccessControlProfileVersionGalleryInVmAccessControlProfileVersionsRestClient; + + /// Initializes a new instance of the class for mocking. + protected GalleryInVmAccessControlProfileVersionCollection() + { + } + + /// 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 GalleryInVmAccessControlProfileVersionCollection(ArmClient client, ResourceIdentifier id) : base(client, id) + { + _galleryInVmAccessControlProfileVersionGalleryInVmAccessControlProfileVersionsClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.Compute", GalleryInVmAccessControlProfileVersionResource.ResourceType.Namespace, Diagnostics); + TryGetApiVersion(GalleryInVmAccessControlProfileVersionResource.ResourceType, out string galleryInVmAccessControlProfileVersionGalleryInVmAccessControlProfileVersionsApiVersion); + _galleryInVmAccessControlProfileVersionGalleryInVmAccessControlProfileVersionsRestClient = new GalleryInVMAccessControlProfileVersionsRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, galleryInVmAccessControlProfileVersionGalleryInVmAccessControlProfileVersionsApiVersion); +#if DEBUG + ValidateResourceId(Id); +#endif + } + + internal static void ValidateResourceId(ResourceIdentifier id) + { + if (id.ResourceType != GalleryInVmAccessControlProfileResource.ResourceType) + throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "Invalid resource type {0} expected {1}", id.ResourceType, GalleryInVmAccessControlProfileResource.ResourceType), nameof(id)); + } + + /// + /// Create or update a gallery inVMAccessControlProfile version. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/inVMAccessControlProfiles/{inVMAccessControlProfileName}/versions/{inVMAccessControlProfileVersionName} + /// + /// + /// Operation Id + /// GalleryInVMAccessControlProfileVersions_CreateOrUpdate + /// + /// + /// Default Api Version + /// 2024-03-03 + /// + /// + /// 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 the gallery inVMAccessControlProfile version to be created. Needs to follow semantic version name pattern: The allowed characters are digit and period. Digits must be within the range of a 32-bit integer. Format: <MajorVersion>.<MinorVersion>.<Patch>. + /// Parameters supplied to the create or update gallery inVMAccessControlProfile version operation. + /// 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 inVmAccessControlProfileVersionName, GalleryInVmAccessControlProfileVersionData data, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(inVmAccessControlProfileVersionName, nameof(inVmAccessControlProfileVersionName)); + Argument.AssertNotNull(data, nameof(data)); + + using var scope = _galleryInVmAccessControlProfileVersionGalleryInVmAccessControlProfileVersionsClientDiagnostics.CreateScope("GalleryInVmAccessControlProfileVersionCollection.CreateOrUpdate"); + scope.Start(); + try + { + var response = await _galleryInVmAccessControlProfileVersionGalleryInVmAccessControlProfileVersionsRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, inVmAccessControlProfileVersionName, data, cancellationToken).ConfigureAwait(false); + var operation = new ComputeArmOperation(new GalleryInVmAccessControlProfileVersionOperationSource(Client), _galleryInVmAccessControlProfileVersionGalleryInVmAccessControlProfileVersionsClientDiagnostics, Pipeline, _galleryInVmAccessControlProfileVersionGalleryInVmAccessControlProfileVersionsRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, inVmAccessControlProfileVersionName, data).Request, response, OperationFinalStateVia.Location); + if (waitUntil == WaitUntil.Completed) + await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Create or update a gallery inVMAccessControlProfile version. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/inVMAccessControlProfiles/{inVMAccessControlProfileName}/versions/{inVMAccessControlProfileVersionName} + /// + /// + /// Operation Id + /// GalleryInVMAccessControlProfileVersions_CreateOrUpdate + /// + /// + /// Default Api Version + /// 2024-03-03 + /// + /// + /// 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 the gallery inVMAccessControlProfile version to be created. Needs to follow semantic version name pattern: The allowed characters are digit and period. Digits must be within the range of a 32-bit integer. Format: <MajorVersion>.<MinorVersion>.<Patch>. + /// Parameters supplied to the create or update gallery inVMAccessControlProfile version operation. + /// 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 inVmAccessControlProfileVersionName, GalleryInVmAccessControlProfileVersionData data, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(inVmAccessControlProfileVersionName, nameof(inVmAccessControlProfileVersionName)); + Argument.AssertNotNull(data, nameof(data)); + + using var scope = _galleryInVmAccessControlProfileVersionGalleryInVmAccessControlProfileVersionsClientDiagnostics.CreateScope("GalleryInVmAccessControlProfileVersionCollection.CreateOrUpdate"); + scope.Start(); + try + { + var response = _galleryInVmAccessControlProfileVersionGalleryInVmAccessControlProfileVersionsRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, inVmAccessControlProfileVersionName, data, cancellationToken); + var operation = new ComputeArmOperation(new GalleryInVmAccessControlProfileVersionOperationSource(Client), _galleryInVmAccessControlProfileVersionGalleryInVmAccessControlProfileVersionsClientDiagnostics, Pipeline, _galleryInVmAccessControlProfileVersionGalleryInVmAccessControlProfileVersionsRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, inVmAccessControlProfileVersionName, data).Request, response, OperationFinalStateVia.Location); + if (waitUntil == WaitUntil.Completed) + operation.WaitForCompletion(cancellationToken); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Retrieves information about a gallery inVMAccessControlProfile version. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/inVMAccessControlProfiles/{inVMAccessControlProfileName}/versions/{inVMAccessControlProfileVersionName} + /// + /// + /// Operation Id + /// GalleryInVMAccessControlProfileVersions_Get + /// + /// + /// Default Api Version + /// 2024-03-03 + /// + /// + /// Resource + /// + /// + /// + /// + /// The name of the gallery inVMAccessControlProfile version to be retrieved. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + public virtual async Task> GetAsync(string inVmAccessControlProfileVersionName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(inVmAccessControlProfileVersionName, nameof(inVmAccessControlProfileVersionName)); + + using var scope = _galleryInVmAccessControlProfileVersionGalleryInVmAccessControlProfileVersionsClientDiagnostics.CreateScope("GalleryInVmAccessControlProfileVersionCollection.Get"); + scope.Start(); + try + { + var response = await _galleryInVmAccessControlProfileVersionGalleryInVmAccessControlProfileVersionsRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, inVmAccessControlProfileVersionName, cancellationToken).ConfigureAwait(false); + if (response.Value == null) + throw new RequestFailedException(response.GetRawResponse()); + return Response.FromValue(new GalleryInVmAccessControlProfileVersionResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Retrieves information about a gallery inVMAccessControlProfile version. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/inVMAccessControlProfiles/{inVMAccessControlProfileName}/versions/{inVMAccessControlProfileVersionName} + /// + /// + /// Operation Id + /// GalleryInVMAccessControlProfileVersions_Get + /// + /// + /// Default Api Version + /// 2024-03-03 + /// + /// + /// Resource + /// + /// + /// + /// + /// The name of the gallery inVMAccessControlProfile version to be retrieved. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + public virtual Response Get(string inVmAccessControlProfileVersionName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(inVmAccessControlProfileVersionName, nameof(inVmAccessControlProfileVersionName)); + + using var scope = _galleryInVmAccessControlProfileVersionGalleryInVmAccessControlProfileVersionsClientDiagnostics.CreateScope("GalleryInVmAccessControlProfileVersionCollection.Get"); + scope.Start(); + try + { + var response = _galleryInVmAccessControlProfileVersionGalleryInVmAccessControlProfileVersionsRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, inVmAccessControlProfileVersionName, cancellationToken); + if (response.Value == null) + throw new RequestFailedException(response.GetRawResponse()); + return Response.FromValue(new GalleryInVmAccessControlProfileVersionResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// List gallery inVMAccessControlProfile versions in a gallery inVMAccessControlProfile + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/inVMAccessControlProfiles/{inVMAccessControlProfileName}/versions + /// + /// + /// Operation Id + /// GalleryInVMAccessControlProfileVersions_ListByGalleryInVmAccessControlProfile + /// + /// + /// Default Api Version + /// 2024-03-03 + /// + /// + /// 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) => _galleryInVmAccessControlProfileVersionGalleryInVmAccessControlProfileVersionsRestClient.CreateListByGalleryInVmAccessControlProfileRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _galleryInVmAccessControlProfileVersionGalleryInVmAccessControlProfileVersionsRestClient.CreateListByGalleryInVmAccessControlProfileNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => new GalleryInVmAccessControlProfileVersionResource(Client, GalleryInVmAccessControlProfileVersionData.DeserializeGalleryInVmAccessControlProfileVersionData(e)), _galleryInVmAccessControlProfileVersionGalleryInVmAccessControlProfileVersionsClientDiagnostics, Pipeline, "GalleryInVmAccessControlProfileVersionCollection.GetAll", "value", "nextLink", cancellationToken); + } + + /// + /// List gallery inVMAccessControlProfile versions in a gallery inVMAccessControlProfile + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/inVMAccessControlProfiles/{inVMAccessControlProfileName}/versions + /// + /// + /// Operation Id + /// GalleryInVMAccessControlProfileVersions_ListByGalleryInVmAccessControlProfile + /// + /// + /// Default Api Version + /// 2024-03-03 + /// + /// + /// 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) => _galleryInVmAccessControlProfileVersionGalleryInVmAccessControlProfileVersionsRestClient.CreateListByGalleryInVmAccessControlProfileRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _galleryInVmAccessControlProfileVersionGalleryInVmAccessControlProfileVersionsRestClient.CreateListByGalleryInVmAccessControlProfileNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new GalleryInVmAccessControlProfileVersionResource(Client, GalleryInVmAccessControlProfileVersionData.DeserializeGalleryInVmAccessControlProfileVersionData(e)), _galleryInVmAccessControlProfileVersionGalleryInVmAccessControlProfileVersionsClientDiagnostics, Pipeline, "GalleryInVmAccessControlProfileVersionCollection.GetAll", "value", "nextLink", cancellationToken); + } + + /// + /// Checks to see if the resource exists in azure. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/inVMAccessControlProfiles/{inVMAccessControlProfileName}/versions/{inVMAccessControlProfileVersionName} + /// + /// + /// Operation Id + /// GalleryInVMAccessControlProfileVersions_Get + /// + /// + /// Default Api Version + /// 2024-03-03 + /// + /// + /// Resource + /// + /// + /// + /// + /// The name of the gallery inVMAccessControlProfile version to be retrieved. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + public virtual async Task> ExistsAsync(string inVmAccessControlProfileVersionName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(inVmAccessControlProfileVersionName, nameof(inVmAccessControlProfileVersionName)); + + using var scope = _galleryInVmAccessControlProfileVersionGalleryInVmAccessControlProfileVersionsClientDiagnostics.CreateScope("GalleryInVmAccessControlProfileVersionCollection.Exists"); + scope.Start(); + try + { + var response = await _galleryInVmAccessControlProfileVersionGalleryInVmAccessControlProfileVersionsRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, inVmAccessControlProfileVersionName, 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.Compute/galleries/{galleryName}/inVMAccessControlProfiles/{inVMAccessControlProfileName}/versions/{inVMAccessControlProfileVersionName} + /// + /// + /// Operation Id + /// GalleryInVMAccessControlProfileVersions_Get + /// + /// + /// Default Api Version + /// 2024-03-03 + /// + /// + /// Resource + /// + /// + /// + /// + /// The name of the gallery inVMAccessControlProfile version to be retrieved. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + public virtual Response Exists(string inVmAccessControlProfileVersionName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(inVmAccessControlProfileVersionName, nameof(inVmAccessControlProfileVersionName)); + + using var scope = _galleryInVmAccessControlProfileVersionGalleryInVmAccessControlProfileVersionsClientDiagnostics.CreateScope("GalleryInVmAccessControlProfileVersionCollection.Exists"); + scope.Start(); + try + { + var response = _galleryInVmAccessControlProfileVersionGalleryInVmAccessControlProfileVersionsRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, inVmAccessControlProfileVersionName, 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.Compute/galleries/{galleryName}/inVMAccessControlProfiles/{inVMAccessControlProfileName}/versions/{inVMAccessControlProfileVersionName} + /// + /// + /// Operation Id + /// GalleryInVMAccessControlProfileVersions_Get + /// + /// + /// Default Api Version + /// 2024-03-03 + /// + /// + /// Resource + /// + /// + /// + /// + /// The name of the gallery inVMAccessControlProfile version to be retrieved. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + public virtual async Task> GetIfExistsAsync(string inVmAccessControlProfileVersionName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(inVmAccessControlProfileVersionName, nameof(inVmAccessControlProfileVersionName)); + + using var scope = _galleryInVmAccessControlProfileVersionGalleryInVmAccessControlProfileVersionsClientDiagnostics.CreateScope("GalleryInVmAccessControlProfileVersionCollection.GetIfExists"); + scope.Start(); + try + { + var response = await _galleryInVmAccessControlProfileVersionGalleryInVmAccessControlProfileVersionsRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, inVmAccessControlProfileVersionName, cancellationToken: cancellationToken).ConfigureAwait(false); + if (response.Value == null) + return new NoValueResponse(response.GetRawResponse()); + return Response.FromValue(new GalleryInVmAccessControlProfileVersionResource(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.Compute/galleries/{galleryName}/inVMAccessControlProfiles/{inVMAccessControlProfileName}/versions/{inVMAccessControlProfileVersionName} + /// + /// + /// Operation Id + /// GalleryInVMAccessControlProfileVersions_Get + /// + /// + /// Default Api Version + /// 2024-03-03 + /// + /// + /// Resource + /// + /// + /// + /// + /// The name of the gallery inVMAccessControlProfile version to be retrieved. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + public virtual NullableResponse GetIfExists(string inVmAccessControlProfileVersionName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(inVmAccessControlProfileVersionName, nameof(inVmAccessControlProfileVersionName)); + + using var scope = _galleryInVmAccessControlProfileVersionGalleryInVmAccessControlProfileVersionsClientDiagnostics.CreateScope("GalleryInVmAccessControlProfileVersionCollection.GetIfExists"); + scope.Start(); + try + { + var response = _galleryInVmAccessControlProfileVersionGalleryInVmAccessControlProfileVersionsRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, inVmAccessControlProfileVersionName, cancellationToken: cancellationToken); + if (response.Value == null) + return new NoValueResponse(response.GetRawResponse()); + return Response.FromValue(new GalleryInVmAccessControlProfileVersionResource(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/compute/Azure.ResourceManager.Compute/src/Generated/GalleryInVmAccessControlProfileVersionData.Serialization.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/GalleryInVmAccessControlProfileVersionData.Serialization.cs new file mode 100644 index 000000000000..a3a6d52a98fd --- /dev/null +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/GalleryInVmAccessControlProfileVersionData.Serialization.cs @@ -0,0 +1,315 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; +using Azure.ResourceManager.Compute.Models; +using Azure.ResourceManager.Models; + +namespace Azure.ResourceManager.Compute +{ + public partial class GalleryInVmAccessControlProfileVersionData : IUtf8JsonSerializable, IJsonModel + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); + + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStartObject(); + JsonModelWriteCore(writer, options); + writer.WriteEndObject(); + } + + /// The JSON writer. + /// The client options for reading and writing models. + protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(GalleryInVmAccessControlProfileVersionData)} does not support writing '{format}' format."); + } + + base.JsonModelWriteCore(writer, options); + writer.WritePropertyName("properties"u8); + writer.WriteStartObject(); + if (Optional.IsCollectionDefined(TargetLocations)) + { + writer.WritePropertyName("targetLocations"u8); + writer.WriteStartArray(); + foreach (var item in TargetLocations) + { + writer.WriteObjectValue(item, options); + } + writer.WriteEndArray(); + } + if (Optional.IsDefined(ExcludeFromLatest)) + { + writer.WritePropertyName("excludeFromLatest"u8); + writer.WriteBooleanValue(ExcludeFromLatest.Value); + } + if (options.Format != "W" && Optional.IsDefined(PublishedOn)) + { + writer.WritePropertyName("publishedDate"u8); + writer.WriteStringValue(PublishedOn.Value, "O"); + } + if (options.Format != "W" && Optional.IsDefined(ProvisioningState)) + { + writer.WritePropertyName("provisioningState"u8); + writer.WriteStringValue(ProvisioningState.Value.ToString()); + } + if (options.Format != "W" && Optional.IsDefined(ReplicationStatus)) + { + writer.WritePropertyName("replicationStatus"u8); + writer.WriteObjectValue(ReplicationStatus, options); + } + if (Optional.IsDefined(Mode)) + { + writer.WritePropertyName("mode"u8); + writer.WriteStringValue(Mode.Value.ToString()); + } + if (Optional.IsDefined(DefaultAccess)) + { + writer.WritePropertyName("defaultAccess"u8); + writer.WriteStringValue(DefaultAccess.Value.ToString()); + } + if (Optional.IsDefined(Rules)) + { + writer.WritePropertyName("rules"u8); + writer.WriteObjectValue(Rules, options); + } + writer.WriteEndObject(); + } + + GalleryInVmAccessControlProfileVersionData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(GalleryInVmAccessControlProfileVersionData)} does not support reading '{format}' format."); + } + + using JsonDocument document = JsonDocument.ParseValue(ref reader); + return DeserializeGalleryInVmAccessControlProfileVersionData(document.RootElement, options); + } + + internal static GalleryInVmAccessControlProfileVersionData DeserializeGalleryInVmAccessControlProfileVersionData(JsonElement element, ModelReaderWriterOptions options = null) + { + options ??= ModelSerializationExtensions.WireOptions; + + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + IDictionary tags = default; + AzureLocation location = default; + ResourceIdentifier id = default; + string name = default; + ResourceType type = default; + SystemData systemData = default; + IList targetLocations = default; + bool? excludeFromLatest = default; + DateTimeOffset? publishedDate = default; + GalleryProvisioningState? provisioningState = default; + ReplicationStatus replicationStatus = default; + AccessControlRulesMode? mode = default; + EndpointAccess? defaultAccess = default; + AccessControlRules rules = default; + IDictionary serializedAdditionalRawData = default; + Dictionary rawDataDictionary = new Dictionary(); + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("tags"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + Dictionary dictionary = new Dictionary(); + foreach (var property0 in property.Value.EnumerateObject()) + { + dictionary.Add(property0.Name, property0.Value.GetString()); + } + tags = dictionary; + continue; + } + if (property.NameEquals("location"u8)) + { + location = new AzureLocation(property.Value.GetString()); + continue; + } + if (property.NameEquals("id"u8)) + { + id = new ResourceIdentifier(property.Value.GetString()); + continue; + } + if (property.NameEquals("name"u8)) + { + name = property.Value.GetString(); + continue; + } + if (property.NameEquals("type"u8)) + { + type = new ResourceType(property.Value.GetString()); + continue; + } + if (property.NameEquals("systemData"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + systemData = JsonSerializer.Deserialize(property.Value.GetRawText()); + continue; + } + if (property.NameEquals("properties"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + foreach (var property0 in property.Value.EnumerateObject()) + { + if (property0.NameEquals("targetLocations"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List array = new List(); + foreach (var item in property0.Value.EnumerateArray()) + { + array.Add(TargetRegion.DeserializeTargetRegion(item, options)); + } + targetLocations = array; + continue; + } + if (property0.NameEquals("excludeFromLatest"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + excludeFromLatest = property0.Value.GetBoolean(); + continue; + } + if (property0.NameEquals("publishedDate"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + publishedDate = property0.Value.GetDateTimeOffset("O"); + continue; + } + if (property0.NameEquals("provisioningState"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + provisioningState = new GalleryProvisioningState(property0.Value.GetString()); + continue; + } + if (property0.NameEquals("replicationStatus"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + replicationStatus = ReplicationStatus.DeserializeReplicationStatus(property0.Value, options); + continue; + } + if (property0.NameEquals("mode"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + mode = new AccessControlRulesMode(property0.Value.GetString()); + continue; + } + if (property0.NameEquals("defaultAccess"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + defaultAccess = new EndpointAccess(property0.Value.GetString()); + continue; + } + if (property0.NameEquals("rules"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + rules = AccessControlRules.DeserializeAccessControlRules(property0.Value, options); + continue; + } + } + continue; + } + if (options.Format != "W") + { + rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); + } + } + serializedAdditionalRawData = rawDataDictionary; + return new GalleryInVmAccessControlProfileVersionData( + id, + name, + type, + systemData, + tags ?? new ChangeTrackingDictionary(), + location, + targetLocations ?? new ChangeTrackingList(), + excludeFromLatest, + publishedDate, + provisioningState, + replicationStatus, + mode, + defaultAccess, + rules, + serializedAdditionalRawData); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + return ModelReaderWriter.Write(this, options); + default: + throw new FormatException($"The model {nameof(GalleryInVmAccessControlProfileVersionData)} does not support writing '{options.Format}' format."); + } + } + + GalleryInVmAccessControlProfileVersionData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + { + using JsonDocument document = JsonDocument.Parse(data); + return DeserializeGalleryInVmAccessControlProfileVersionData(document.RootElement, options); + } + default: + throw new FormatException($"The model {nameof(GalleryInVmAccessControlProfileVersionData)} does not support reading '{options.Format}' format."); + } + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/GalleryInVmAccessControlProfileVersionData.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/GalleryInVmAccessControlProfileVersionData.cs new file mode 100644 index 000000000000..7e40cdec66ff --- /dev/null +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/GalleryInVmAccessControlProfileVersionData.cs @@ -0,0 +1,112 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; +using Azure.Core; +using Azure.ResourceManager.Compute.Models; +using Azure.ResourceManager.Models; + +namespace Azure.ResourceManager.Compute +{ + /// + /// A class representing the GalleryInVmAccessControlProfileVersion data model. + /// Specifies information about the gallery inVMAccessControlProfile version that you want to create or update. + /// + public partial class GalleryInVmAccessControlProfileVersionData : TrackedResourceData + { + /// + /// Keeps track of any properties unknown to the library. + /// + /// To assign an object to the value of this property use . + /// + /// + /// To assign an already formatted json string to this property use . + /// + /// + /// Examples: + /// + /// + /// BinaryData.FromObjectAsJson("foo") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromString("\"foo\"") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromObjectAsJson(new { key = "value" }) + /// Creates a payload of { "key": "value" }. + /// + /// + /// BinaryData.FromString("{\"key\": \"value\"}") + /// Creates a payload of { "key": "value" }. + /// + /// + /// + /// + private IDictionary _serializedAdditionalRawData; + + /// Initializes a new instance of . + /// The location. + public GalleryInVmAccessControlProfileVersionData(AzureLocation location) : base(location) + { + TargetLocations = new ChangeTrackingList(); + } + + /// Initializes a new instance of . + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// The tags. + /// The location. + /// The target regions where the Resource Profile version is going to be replicated to. This property is updatable. + /// If set to true, Virtual Machines deployed from the latest version of the Resource Profile won't use this Profile version. + /// The timestamp for when the Resource Profile Version is published. + /// The provisioning state, which only appears in the response. + /// This is the replication status of the gallery image version. + /// This property allows you to specify whether the access control rules are in Audit mode, in Enforce mode or Disabled. Possible values are: 'Audit', 'Enforce' or 'Disabled'. + /// This property allows you to specify if the requests will be allowed to access the host endpoints. Possible values are: 'Allow', 'Deny'. + /// This is the Access Control Rules specification for an inVMAccessControlProfile version. + /// Keeps track of any properties unknown to the library. + internal GalleryInVmAccessControlProfileVersionData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary tags, AzureLocation location, IList targetLocations, bool? excludeFromLatest, DateTimeOffset? publishedOn, GalleryProvisioningState? provisioningState, ReplicationStatus replicationStatus, AccessControlRulesMode? mode, EndpointAccess? defaultAccess, AccessControlRules rules, IDictionary serializedAdditionalRawData) : base(id, name, resourceType, systemData, tags, location) + { + TargetLocations = targetLocations; + ExcludeFromLatest = excludeFromLatest; + PublishedOn = publishedOn; + ProvisioningState = provisioningState; + ReplicationStatus = replicationStatus; + Mode = mode; + DefaultAccess = defaultAccess; + Rules = rules; + _serializedAdditionalRawData = serializedAdditionalRawData; + } + + /// Initializes a new instance of for deserialization. + internal GalleryInVmAccessControlProfileVersionData() + { + } + + /// The target regions where the Resource Profile version is going to be replicated to. This property is updatable. + public IList TargetLocations { get; } + /// If set to true, Virtual Machines deployed from the latest version of the Resource Profile won't use this Profile version. + public bool? ExcludeFromLatest { get; set; } + /// The timestamp for when the Resource Profile Version is published. + public DateTimeOffset? PublishedOn { get; } + /// The provisioning state, which only appears in the response. + public GalleryProvisioningState? ProvisioningState { get; } + /// This is the replication status of the gallery image version. + public ReplicationStatus ReplicationStatus { get; } + /// This property allows you to specify whether the access control rules are in Audit mode, in Enforce mode or Disabled. Possible values are: 'Audit', 'Enforce' or 'Disabled'. + public AccessControlRulesMode? Mode { get; set; } + /// This property allows you to specify if the requests will be allowed to access the host endpoints. Possible values are: 'Allow', 'Deny'. + public EndpointAccess? DefaultAccess { get; set; } + /// This is the Access Control Rules specification for an inVMAccessControlProfile version. + public AccessControlRules Rules { get; set; } + } +} diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/GalleryInVmAccessControlProfileVersionResource.Serialization.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/GalleryInVmAccessControlProfileVersionResource.Serialization.cs new file mode 100644 index 000000000000..96fba74516ff --- /dev/null +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/GalleryInVmAccessControlProfileVersionResource.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.Compute +{ + public partial class GalleryInVmAccessControlProfileVersionResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) => ((IJsonModel)Data).Write(writer, options); + + GalleryInVmAccessControlProfileVersionData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => ((IJsonModel)Data).Create(ref reader, options); + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) => ModelReaderWriter.Write(Data, options); + + GalleryInVmAccessControlProfileVersionData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => ModelReaderWriter.Read(data, options); + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => ((IPersistableModel)Data).GetFormatFromOptions(options); + } +} diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/GalleryInVmAccessControlProfileVersionResource.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/GalleryInVmAccessControlProfileVersionResource.cs new file mode 100644 index 000000000000..7aa8d282cb2e --- /dev/null +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/GalleryInVmAccessControlProfileVersionResource.cs @@ -0,0 +1,708 @@ +// 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.Compute.Models; + +namespace Azure.ResourceManager.Compute +{ + /// + /// A Class representing a GalleryInVmAccessControlProfileVersion along with the instance operations that can be performed on it. + /// If you have a you can construct a + /// from an instance of using the GetGalleryInVmAccessControlProfileVersionResource method. + /// Otherwise you can get one from its parent resource using the GetGalleryInVmAccessControlProfileVersion method. + /// + public partial class GalleryInVmAccessControlProfileVersionResource : ArmResource + { + /// Generate the resource identifier of a instance. + /// The subscriptionId. + /// The resourceGroupName. + /// The galleryName. + /// The inVmAccessControlProfileName. + /// The inVmAccessControlProfileVersionName. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string galleryName, string inVmAccessControlProfileName, string inVmAccessControlProfileVersionName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/inVMAccessControlProfiles/{inVmAccessControlProfileName}/versions/{inVmAccessControlProfileVersionName}"; + return new ResourceIdentifier(resourceId); + } + + private readonly ClientDiagnostics _galleryInVmAccessControlProfileVersionGalleryInVmAccessControlProfileVersionsClientDiagnostics; + private readonly GalleryInVMAccessControlProfileVersionsRestOperations _galleryInVmAccessControlProfileVersionGalleryInVmAccessControlProfileVersionsRestClient; + private readonly GalleryInVmAccessControlProfileVersionData _data; + + /// Gets the resource type for the operations. + public static readonly ResourceType ResourceType = "Microsoft.Compute/galleries/inVMAccessControlProfiles/versions"; + + /// Initializes a new instance of the class for mocking. + protected GalleryInVmAccessControlProfileVersionResource() + { + } + + /// Initializes a new instance of the class. + /// The client parameters to use in these operations. + /// The resource that is the target of operations. + internal GalleryInVmAccessControlProfileVersionResource(ArmClient client, GalleryInVmAccessControlProfileVersionData 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 GalleryInVmAccessControlProfileVersionResource(ArmClient client, ResourceIdentifier id) : base(client, id) + { + _galleryInVmAccessControlProfileVersionGalleryInVmAccessControlProfileVersionsClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.Compute", ResourceType.Namespace, Diagnostics); + TryGetApiVersion(ResourceType, out string galleryInVmAccessControlProfileVersionGalleryInVmAccessControlProfileVersionsApiVersion); + _galleryInVmAccessControlProfileVersionGalleryInVmAccessControlProfileVersionsRestClient = new GalleryInVMAccessControlProfileVersionsRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, galleryInVmAccessControlProfileVersionGalleryInVmAccessControlProfileVersionsApiVersion); +#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 GalleryInVmAccessControlProfileVersionData 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)); + } + + /// + /// Retrieves information about a gallery inVMAccessControlProfile version. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/inVMAccessControlProfiles/{inVMAccessControlProfileName}/versions/{inVMAccessControlProfileVersionName} + /// + /// + /// Operation Id + /// GalleryInVMAccessControlProfileVersions_Get + /// + /// + /// Default Api Version + /// 2024-03-03 + /// + /// + /// Resource + /// + /// + /// + /// + /// The cancellation token to use. + public virtual async Task> GetAsync(CancellationToken cancellationToken = default) + { + using var scope = _galleryInVmAccessControlProfileVersionGalleryInVmAccessControlProfileVersionsClientDiagnostics.CreateScope("GalleryInVmAccessControlProfileVersionResource.Get"); + scope.Start(); + try + { + var response = await _galleryInVmAccessControlProfileVersionGalleryInVmAccessControlProfileVersionsRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); + if (response.Value == null) + throw new RequestFailedException(response.GetRawResponse()); + return Response.FromValue(new GalleryInVmAccessControlProfileVersionResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Retrieves information about a gallery inVMAccessControlProfile version. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/inVMAccessControlProfiles/{inVMAccessControlProfileName}/versions/{inVMAccessControlProfileVersionName} + /// + /// + /// Operation Id + /// GalleryInVMAccessControlProfileVersions_Get + /// + /// + /// Default Api Version + /// 2024-03-03 + /// + /// + /// Resource + /// + /// + /// + /// + /// The cancellation token to use. + public virtual Response Get(CancellationToken cancellationToken = default) + { + using var scope = _galleryInVmAccessControlProfileVersionGalleryInVmAccessControlProfileVersionsClientDiagnostics.CreateScope("GalleryInVmAccessControlProfileVersionResource.Get"); + scope.Start(); + try + { + var response = _galleryInVmAccessControlProfileVersionGalleryInVmAccessControlProfileVersionsRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken); + if (response.Value == null) + throw new RequestFailedException(response.GetRawResponse()); + return Response.FromValue(new GalleryInVmAccessControlProfileVersionResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Delete a gallery inVMAccessControlProfile version. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/inVMAccessControlProfiles/{inVMAccessControlProfileName}/versions/{inVMAccessControlProfileVersionName} + /// + /// + /// Operation Id + /// GalleryInVMAccessControlProfileVersions_Delete + /// + /// + /// Default Api Version + /// 2024-03-03 + /// + /// + /// 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 = _galleryInVmAccessControlProfileVersionGalleryInVmAccessControlProfileVersionsClientDiagnostics.CreateScope("GalleryInVmAccessControlProfileVersionResource.Delete"); + scope.Start(); + try + { + var response = await _galleryInVmAccessControlProfileVersionGalleryInVmAccessControlProfileVersionsRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); + var operation = new ComputeArmOperation(_galleryInVmAccessControlProfileVersionGalleryInVmAccessControlProfileVersionsClientDiagnostics, Pipeline, _galleryInVmAccessControlProfileVersionGalleryInVmAccessControlProfileVersionsRestClient.CreateDeleteRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name).Request, response, OperationFinalStateVia.Location); + if (waitUntil == WaitUntil.Completed) + await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Delete a gallery inVMAccessControlProfile version. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/inVMAccessControlProfiles/{inVMAccessControlProfileName}/versions/{inVMAccessControlProfileVersionName} + /// + /// + /// Operation Id + /// GalleryInVMAccessControlProfileVersions_Delete + /// + /// + /// Default Api Version + /// 2024-03-03 + /// + /// + /// 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 = _galleryInVmAccessControlProfileVersionGalleryInVmAccessControlProfileVersionsClientDiagnostics.CreateScope("GalleryInVmAccessControlProfileVersionResource.Delete"); + scope.Start(); + try + { + var response = _galleryInVmAccessControlProfileVersionGalleryInVmAccessControlProfileVersionsRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken); + var operation = new ComputeArmOperation(_galleryInVmAccessControlProfileVersionGalleryInVmAccessControlProfileVersionsClientDiagnostics, Pipeline, _galleryInVmAccessControlProfileVersionGalleryInVmAccessControlProfileVersionsRestClient.CreateDeleteRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name).Request, response, OperationFinalStateVia.Location); + if (waitUntil == WaitUntil.Completed) + operation.WaitForCompletionResponse(cancellationToken); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Update a gallery inVMAccessControlProfile version. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/inVMAccessControlProfiles/{inVMAccessControlProfileName}/versions/{inVMAccessControlProfileVersionName} + /// + /// + /// Operation Id + /// GalleryInVMAccessControlProfileVersions_Update + /// + /// + /// Default Api Version + /// 2024-03-03 + /// + /// + /// 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. + /// Parameters supplied to the update gallery inVMAccessControlProfile version operation. + /// The cancellation token to use. + /// is null. + public virtual async Task> UpdateAsync(WaitUntil waitUntil, GalleryInVmAccessControlProfileVersionPatch patch, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(patch, nameof(patch)); + + using var scope = _galleryInVmAccessControlProfileVersionGalleryInVmAccessControlProfileVersionsClientDiagnostics.CreateScope("GalleryInVmAccessControlProfileVersionResource.Update"); + scope.Start(); + try + { + var response = await _galleryInVmAccessControlProfileVersionGalleryInVmAccessControlProfileVersionsRestClient.UpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, patch, cancellationToken).ConfigureAwait(false); + var operation = new ComputeArmOperation(new GalleryInVmAccessControlProfileVersionOperationSource(Client), _galleryInVmAccessControlProfileVersionGalleryInVmAccessControlProfileVersionsClientDiagnostics, Pipeline, _galleryInVmAccessControlProfileVersionGalleryInVmAccessControlProfileVersionsRestClient.CreateUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, patch).Request, response, OperationFinalStateVia.Location); + if (waitUntil == WaitUntil.Completed) + await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Update a gallery inVMAccessControlProfile version. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/inVMAccessControlProfiles/{inVMAccessControlProfileName}/versions/{inVMAccessControlProfileVersionName} + /// + /// + /// Operation Id + /// GalleryInVMAccessControlProfileVersions_Update + /// + /// + /// Default Api Version + /// 2024-03-03 + /// + /// + /// 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. + /// Parameters supplied to the update gallery inVMAccessControlProfile version operation. + /// The cancellation token to use. + /// is null. + public virtual ArmOperation Update(WaitUntil waitUntil, GalleryInVmAccessControlProfileVersionPatch patch, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(patch, nameof(patch)); + + using var scope = _galleryInVmAccessControlProfileVersionGalleryInVmAccessControlProfileVersionsClientDiagnostics.CreateScope("GalleryInVmAccessControlProfileVersionResource.Update"); + scope.Start(); + try + { + var response = _galleryInVmAccessControlProfileVersionGalleryInVmAccessControlProfileVersionsRestClient.Update(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, patch, cancellationToken); + var operation = new ComputeArmOperation(new GalleryInVmAccessControlProfileVersionOperationSource(Client), _galleryInVmAccessControlProfileVersionGalleryInVmAccessControlProfileVersionsClientDiagnostics, Pipeline, _galleryInVmAccessControlProfileVersionGalleryInVmAccessControlProfileVersionsRestClient.CreateUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, patch).Request, response, OperationFinalStateVia.Location); + if (waitUntil == WaitUntil.Completed) + operation.WaitForCompletion(cancellationToken); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Add a tag to the current resource. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/inVMAccessControlProfiles/{inVMAccessControlProfileName}/versions/{inVMAccessControlProfileVersionName} + /// + /// + /// Operation Id + /// GalleryInVMAccessControlProfileVersions_Get + /// + /// + /// Default Api Version + /// 2024-03-03 + /// + /// + /// 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 = _galleryInVmAccessControlProfileVersionGalleryInVmAccessControlProfileVersionsClientDiagnostics.CreateScope("GalleryInVmAccessControlProfileVersionResource.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 _galleryInVmAccessControlProfileVersionGalleryInVmAccessControlProfileVersionsRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); + return Response.FromValue(new GalleryInVmAccessControlProfileVersionResource(Client, originalResponse.Value), originalResponse.GetRawResponse()); + } + else + { + var current = (await GetAsync(cancellationToken: cancellationToken).ConfigureAwait(false)).Value.Data; + var patch = new GalleryInVmAccessControlProfileVersionPatch(); + foreach (var tag in current.Tags) + { + patch.Tags.Add(tag); + } + patch.Tags[key] = value; + var result = await UpdateAsync(WaitUntil.Completed, patch, cancellationToken: cancellationToken).ConfigureAwait(false); + return Response.FromValue(result.Value, result.GetRawResponse()); + } + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Add a tag to the current resource. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/inVMAccessControlProfiles/{inVMAccessControlProfileName}/versions/{inVMAccessControlProfileVersionName} + /// + /// + /// Operation Id + /// GalleryInVMAccessControlProfileVersions_Get + /// + /// + /// Default Api Version + /// 2024-03-03 + /// + /// + /// 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 = _galleryInVmAccessControlProfileVersionGalleryInVmAccessControlProfileVersionsClientDiagnostics.CreateScope("GalleryInVmAccessControlProfileVersionResource.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 = _galleryInVmAccessControlProfileVersionGalleryInVmAccessControlProfileVersionsRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken); + return Response.FromValue(new GalleryInVmAccessControlProfileVersionResource(Client, originalResponse.Value), originalResponse.GetRawResponse()); + } + else + { + var current = Get(cancellationToken: cancellationToken).Value.Data; + var patch = new GalleryInVmAccessControlProfileVersionPatch(); + foreach (var tag in current.Tags) + { + patch.Tags.Add(tag); + } + patch.Tags[key] = value; + var result = Update(WaitUntil.Completed, patch, cancellationToken: cancellationToken); + return Response.FromValue(result.Value, result.GetRawResponse()); + } + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Replace the tags on the resource with the given set. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/inVMAccessControlProfiles/{inVMAccessControlProfileName}/versions/{inVMAccessControlProfileVersionName} + /// + /// + /// Operation Id + /// GalleryInVMAccessControlProfileVersions_Get + /// + /// + /// Default Api Version + /// 2024-03-03 + /// + /// + /// 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 = _galleryInVmAccessControlProfileVersionGalleryInVmAccessControlProfileVersionsClientDiagnostics.CreateScope("GalleryInVmAccessControlProfileVersionResource.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 _galleryInVmAccessControlProfileVersionGalleryInVmAccessControlProfileVersionsRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); + return Response.FromValue(new GalleryInVmAccessControlProfileVersionResource(Client, originalResponse.Value), originalResponse.GetRawResponse()); + } + else + { + var current = (await GetAsync(cancellationToken: cancellationToken).ConfigureAwait(false)).Value.Data; + var patch = new GalleryInVmAccessControlProfileVersionPatch(); + patch.Tags.ReplaceWith(tags); + var result = await UpdateAsync(WaitUntil.Completed, patch, cancellationToken: cancellationToken).ConfigureAwait(false); + return Response.FromValue(result.Value, result.GetRawResponse()); + } + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Replace the tags on the resource with the given set. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/inVMAccessControlProfiles/{inVMAccessControlProfileName}/versions/{inVMAccessControlProfileVersionName} + /// + /// + /// Operation Id + /// GalleryInVMAccessControlProfileVersions_Get + /// + /// + /// Default Api Version + /// 2024-03-03 + /// + /// + /// 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 = _galleryInVmAccessControlProfileVersionGalleryInVmAccessControlProfileVersionsClientDiagnostics.CreateScope("GalleryInVmAccessControlProfileVersionResource.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 = _galleryInVmAccessControlProfileVersionGalleryInVmAccessControlProfileVersionsRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken); + return Response.FromValue(new GalleryInVmAccessControlProfileVersionResource(Client, originalResponse.Value), originalResponse.GetRawResponse()); + } + else + { + var current = Get(cancellationToken: cancellationToken).Value.Data; + var patch = new GalleryInVmAccessControlProfileVersionPatch(); + patch.Tags.ReplaceWith(tags); + var result = Update(WaitUntil.Completed, patch, cancellationToken: cancellationToken); + return Response.FromValue(result.Value, result.GetRawResponse()); + } + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Removes a tag by key from the resource. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/inVMAccessControlProfiles/{inVMAccessControlProfileName}/versions/{inVMAccessControlProfileVersionName} + /// + /// + /// Operation Id + /// GalleryInVMAccessControlProfileVersions_Get + /// + /// + /// Default Api Version + /// 2024-03-03 + /// + /// + /// 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 = _galleryInVmAccessControlProfileVersionGalleryInVmAccessControlProfileVersionsClientDiagnostics.CreateScope("GalleryInVmAccessControlProfileVersionResource.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 _galleryInVmAccessControlProfileVersionGalleryInVmAccessControlProfileVersionsRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); + return Response.FromValue(new GalleryInVmAccessControlProfileVersionResource(Client, originalResponse.Value), originalResponse.GetRawResponse()); + } + else + { + var current = (await GetAsync(cancellationToken: cancellationToken).ConfigureAwait(false)).Value.Data; + var patch = new GalleryInVmAccessControlProfileVersionPatch(); + foreach (var tag in current.Tags) + { + patch.Tags.Add(tag); + } + patch.Tags.Remove(key); + var result = await UpdateAsync(WaitUntil.Completed, patch, cancellationToken: cancellationToken).ConfigureAwait(false); + return Response.FromValue(result.Value, result.GetRawResponse()); + } + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Removes a tag by key from the resource. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/inVMAccessControlProfiles/{inVMAccessControlProfileName}/versions/{inVMAccessControlProfileVersionName} + /// + /// + /// Operation Id + /// GalleryInVMAccessControlProfileVersions_Get + /// + /// + /// Default Api Version + /// 2024-03-03 + /// + /// + /// 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 = _galleryInVmAccessControlProfileVersionGalleryInVmAccessControlProfileVersionsClientDiagnostics.CreateScope("GalleryInVmAccessControlProfileVersionResource.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 = _galleryInVmAccessControlProfileVersionGalleryInVmAccessControlProfileVersionsRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken); + return Response.FromValue(new GalleryInVmAccessControlProfileVersionResource(Client, originalResponse.Value), originalResponse.GetRawResponse()); + } + else + { + var current = Get(cancellationToken: cancellationToken).Value.Data; + var patch = new GalleryInVmAccessControlProfileVersionPatch(); + foreach (var tag in current.Tags) + { + patch.Tags.Add(tag); + } + patch.Tags.Remove(key); + var result = Update(WaitUntil.Completed, patch, cancellationToken: cancellationToken); + return Response.FromValue(result.Value, result.GetRawResponse()); + } + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + } +} diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/GalleryResource.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/GalleryResource.cs index 30c82380edf3..e3e3345c3780 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/GalleryResource.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/GalleryResource.cs @@ -10,6 +10,7 @@ using System.Globalization; using System.Threading; using System.Threading.Tasks; +using Autorest.CSharp.Core; using Azure.Core; using Azure.Core.Pipeline; using Azure.ResourceManager.Compute.Models; @@ -37,6 +38,8 @@ public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, private readonly ClientDiagnostics _galleryClientDiagnostics; private readonly GalleriesRestOperations _galleryRestClient; + private readonly ClientDiagnostics _softDeletedResourceClientDiagnostics; + private readonly SoftDeletedResourceRestOperations _softDeletedResourceRestClient; private readonly ClientDiagnostics _gallerySharingProfileClientDiagnostics; private readonly GallerySharingProfileRestOperations _gallerySharingProfileRestClient; private readonly GalleryData _data; @@ -66,6 +69,8 @@ internal GalleryResource(ArmClient client, ResourceIdentifier id) : base(client, _galleryClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.Compute", ResourceType.Namespace, Diagnostics); TryGetApiVersion(ResourceType, out string galleryApiVersion); _galleryRestClient = new GalleriesRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, galleryApiVersion); + _softDeletedResourceClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.Compute", ProviderConstants.DefaultProviderNamespace, Diagnostics); + _softDeletedResourceRestClient = new SoftDeletedResourceRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint); _gallerySharingProfileClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.Compute", ProviderConstants.DefaultProviderNamespace, Diagnostics); _gallerySharingProfileRestClient = new GallerySharingProfileRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint); #if DEBUG @@ -114,7 +119,7 @@ public virtual GalleryImageCollection GetGalleryImages() /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -145,7 +150,7 @@ public virtual async Task> GetGalleryImageAsync(s /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -183,7 +188,7 @@ public virtual GalleryApplicationCollection GetGalleryApplications() /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -214,7 +219,7 @@ public virtual async Task> GetGalleryApplic /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -232,6 +237,75 @@ public virtual Response GetGalleryApplication(string return GetGalleryApplications().Get(galleryApplicationName, cancellationToken); } + /// Gets a collection of GalleryInVmAccessControlProfileResources in the Gallery. + /// An object representing collection of GalleryInVmAccessControlProfileResources and their operations over a GalleryInVmAccessControlProfileResource. + public virtual GalleryInVmAccessControlProfileCollection GetGalleryInVmAccessControlProfiles() + { + return GetCachedClient(client => new GalleryInVmAccessControlProfileCollection(client, Id)); + } + + /// + /// Retrieves information about a gallery inVMAccessControlProfile. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/inVMAccessControlProfiles/{inVMAccessControlProfileName} + /// + /// + /// Operation Id + /// GalleryInVMAccessControlProfiles_Get + /// + /// + /// Default Api Version + /// 2024-03-03 + /// + /// + /// Resource + /// + /// + /// + /// + /// The name of the gallery inVMAccessControlProfile to be retrieved. + /// The cancellation token to use. + /// is null. + /// is an empty string, and was expected to be non-empty. + [ForwardsClientCalls] + public virtual async Task> GetGalleryInVmAccessControlProfileAsync(string inVmAccessControlProfileName, CancellationToken cancellationToken = default) + { + return await GetGalleryInVmAccessControlProfiles().GetAsync(inVmAccessControlProfileName, cancellationToken).ConfigureAwait(false); + } + + /// + /// Retrieves information about a gallery inVMAccessControlProfile. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/inVMAccessControlProfiles/{inVMAccessControlProfileName} + /// + /// + /// Operation Id + /// GalleryInVMAccessControlProfiles_Get + /// + /// + /// Default Api Version + /// 2024-03-03 + /// + /// + /// Resource + /// + /// + /// + /// + /// The name of the gallery inVMAccessControlProfile to be retrieved. + /// The cancellation token to use. + /// is null. + /// is an empty string, and was expected to be non-empty. + [ForwardsClientCalls] + public virtual Response GetGalleryInVmAccessControlProfile(string inVmAccessControlProfileName, CancellationToken cancellationToken = default) + { + return GetGalleryInVmAccessControlProfiles().Get(inVmAccessControlProfileName, cancellationToken); + } + /// /// Retrieves information about a Shared Image Gallery. /// @@ -245,7 +319,7 @@ public virtual Response GetGalleryApplication(string /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -287,7 +361,7 @@ public virtual async Task> GetAsync(SelectPermission? /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -329,7 +403,7 @@ public virtual Response Get(SelectPermission? select = null, Ga /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -371,7 +445,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -413,7 +487,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -459,7 +533,7 @@ public virtual async Task> UpdateAsync(WaitUntil w /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -492,6 +566,72 @@ public virtual ArmOperation Update(WaitUntil waitUntil, Gallery } } + /// + /// List soft-deleted resources of an artifact in the gallery, such as soft-deleted gallery image version of an image. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/softDeletedArtifactTypes/{artifactType}/artifacts/{artifactName}/versions + /// + /// + /// Operation Id + /// SoftDeletedResource_ListByArtifactName + /// + /// + /// Default Api Version + /// 2024-03-03 + /// + /// + /// + /// The type of the artifact to be listed, such as gallery image version. + /// The artifact name to be listed. If artifact type is Images, then the artifact name should be the gallery image name. + /// The cancellation token to use. + /// or is an empty string, and was expected to be non-empty. + /// or is null. + /// An async collection of that may take multiple service requests to iterate over. + public virtual AsyncPageable GetSoftDeletedResourcesByArtifactNameAsync(string artifactType, string artifactName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(artifactType, nameof(artifactType)); + Argument.AssertNotNullOrEmpty(artifactName, nameof(artifactName)); + + HttpMessage FirstPageRequest(int? pageSizeHint) => _softDeletedResourceRestClient.CreateListByArtifactNameRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, artifactType, artifactName); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _softDeletedResourceRestClient.CreateListByArtifactNameNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name, artifactType, artifactName); + return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => GallerySoftDeletedResource.DeserializeGallerySoftDeletedResource(e), _softDeletedResourceClientDiagnostics, Pipeline, "GalleryResource.GetSoftDeletedResourcesByArtifactName", "value", "nextLink", cancellationToken); + } + + /// + /// List soft-deleted resources of an artifact in the gallery, such as soft-deleted gallery image version of an image. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/softDeletedArtifactTypes/{artifactType}/artifacts/{artifactName}/versions + /// + /// + /// Operation Id + /// SoftDeletedResource_ListByArtifactName + /// + /// + /// Default Api Version + /// 2024-03-03 + /// + /// + /// + /// The type of the artifact to be listed, such as gallery image version. + /// The artifact name to be listed. If artifact type is Images, then the artifact name should be the gallery image name. + /// The cancellation token to use. + /// or is an empty string, and was expected to be non-empty. + /// or is null. + /// A collection of that may take multiple service requests to iterate over. + public virtual Pageable GetSoftDeletedResourcesByArtifactName(string artifactType, string artifactName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(artifactType, nameof(artifactType)); + Argument.AssertNotNullOrEmpty(artifactName, nameof(artifactName)); + + HttpMessage FirstPageRequest(int? pageSizeHint) => _softDeletedResourceRestClient.CreateListByArtifactNameRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, artifactType, artifactName); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _softDeletedResourceRestClient.CreateListByArtifactNameNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name, artifactType, artifactName); + return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => GallerySoftDeletedResource.DeserializeGallerySoftDeletedResource(e), _softDeletedResourceClientDiagnostics, Pipeline, "GalleryResource.GetSoftDeletedResourcesByArtifactName", "value", "nextLink", cancellationToken); + } + /// /// Update sharing profile of a gallery. /// @@ -505,7 +645,7 @@ public virtual ArmOperation Update(WaitUntil waitUntil, Gallery /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// @@ -547,7 +687,7 @@ public virtual async Task> UpdateSharingProfileAsync /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// @@ -589,7 +729,7 @@ public virtual ArmOperation UpdateSharingProfile(WaitUntil waitUn /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -651,7 +791,7 @@ public virtual async Task> AddTagAsync(string key, str /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -713,7 +853,7 @@ public virtual Response AddTag(string key, string value, Cancel /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -770,7 +910,7 @@ public virtual async Task> SetTagsAsync(IDictionary /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -827,7 +967,7 @@ public virtual Response SetTags(IDictionary tag /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -887,7 +1027,7 @@ public virtual async Task> RemoveTagAsync(string key, /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/LongRunningOperation/GalleryInVmAccessControlProfileOperationSource.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/LongRunningOperation/GalleryInVmAccessControlProfileOperationSource.cs new file mode 100644 index 000000000000..946495d7d415 --- /dev/null +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/LongRunningOperation/GalleryInVmAccessControlProfileOperationSource.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using System.Threading; +using System.Threading.Tasks; +using Azure.Core; + +namespace Azure.ResourceManager.Compute +{ + internal class GalleryInVmAccessControlProfileOperationSource : IOperationSource + { + private readonly ArmClient _client; + + internal GalleryInVmAccessControlProfileOperationSource(ArmClient client) + { + _client = client; + } + + GalleryInVmAccessControlProfileResource IOperationSource.CreateResult(Response response, CancellationToken cancellationToken) + { + using var document = JsonDocument.Parse(response.ContentStream); + var data = GalleryInVmAccessControlProfileData.DeserializeGalleryInVmAccessControlProfileData(document.RootElement); + return new GalleryInVmAccessControlProfileResource(_client, data); + } + + async ValueTask IOperationSource.CreateResultAsync(Response response, CancellationToken cancellationToken) + { + using var document = await JsonDocument.ParseAsync(response.ContentStream, default, cancellationToken).ConfigureAwait(false); + var data = GalleryInVmAccessControlProfileData.DeserializeGalleryInVmAccessControlProfileData(document.RootElement); + return new GalleryInVmAccessControlProfileResource(_client, data); + } + } +} diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/LongRunningOperation/GalleryInVmAccessControlProfileVersionOperationSource.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/LongRunningOperation/GalleryInVmAccessControlProfileVersionOperationSource.cs new file mode 100644 index 000000000000..6710b31af699 --- /dev/null +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/LongRunningOperation/GalleryInVmAccessControlProfileVersionOperationSource.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using System.Threading; +using System.Threading.Tasks; +using Azure.Core; + +namespace Azure.ResourceManager.Compute +{ + internal class GalleryInVmAccessControlProfileVersionOperationSource : IOperationSource + { + private readonly ArmClient _client; + + internal GalleryInVmAccessControlProfileVersionOperationSource(ArmClient client) + { + _client = client; + } + + GalleryInVmAccessControlProfileVersionResource IOperationSource.CreateResult(Response response, CancellationToken cancellationToken) + { + using var document = JsonDocument.Parse(response.ContentStream); + var data = GalleryInVmAccessControlProfileVersionData.DeserializeGalleryInVmAccessControlProfileVersionData(document.RootElement); + return new GalleryInVmAccessControlProfileVersionResource(_client, data); + } + + async ValueTask IOperationSource.CreateResultAsync(Response response, CancellationToken cancellationToken) + { + using var document = await JsonDocument.ParseAsync(response.ContentStream, default, cancellationToken).ConfigureAwait(false); + var data = GalleryInVmAccessControlProfileVersionData.DeserializeGalleryInVmAccessControlProfileVersionData(document.RootElement); + return new GalleryInVmAccessControlProfileVersionResource(_client, data); + } + } +} diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/AccessControlRules.Serialization.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/AccessControlRules.Serialization.cs new file mode 100644 index 000000000000..fe06c8504cf6 --- /dev/null +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/AccessControlRules.Serialization.cs @@ -0,0 +1,218 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.Compute.Models +{ + public partial class AccessControlRules : IUtf8JsonSerializable, IJsonModel + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); + + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStartObject(); + JsonModelWriteCore(writer, options); + writer.WriteEndObject(); + } + + /// The JSON writer. + /// The client options for reading and writing models. + protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(AccessControlRules)} does not support writing '{format}' format."); + } + + if (Optional.IsCollectionDefined(Privileges)) + { + writer.WritePropertyName("privileges"u8); + writer.WriteStartArray(); + foreach (var item in Privileges) + { + writer.WriteObjectValue(item, options); + } + writer.WriteEndArray(); + } + if (Optional.IsCollectionDefined(Roles)) + { + writer.WritePropertyName("roles"u8); + writer.WriteStartArray(); + foreach (var item in Roles) + { + writer.WriteObjectValue(item, options); + } + writer.WriteEndArray(); + } + if (Optional.IsCollectionDefined(Identities)) + { + writer.WritePropertyName("identities"u8); + writer.WriteStartArray(); + foreach (var item in Identities) + { + writer.WriteObjectValue(item, options); + } + writer.WriteEndArray(); + } + if (Optional.IsCollectionDefined(RoleAssignments)) + { + writer.WritePropertyName("roleAssignments"u8); + writer.WriteStartArray(); + foreach (var item in RoleAssignments) + { + writer.WriteObjectValue(item, options); + } + writer.WriteEndArray(); + } + if (options.Format != "W" && _serializedAdditionalRawData != null) + { + foreach (var item in _serializedAdditionalRawData) + { + writer.WritePropertyName(item.Key); +#if NET6_0_OR_GREATER + writer.WriteRawValue(item.Value); +#else + using (JsonDocument document = JsonDocument.Parse(item.Value)) + { + JsonSerializer.Serialize(writer, document.RootElement); + } +#endif + } + } + } + + AccessControlRules IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(AccessControlRules)} does not support reading '{format}' format."); + } + + using JsonDocument document = JsonDocument.ParseValue(ref reader); + return DeserializeAccessControlRules(document.RootElement, options); + } + + internal static AccessControlRules DeserializeAccessControlRules(JsonElement element, ModelReaderWriterOptions options = null) + { + options ??= ModelSerializationExtensions.WireOptions; + + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + IList privileges = default; + IList roles = default; + IList identities = default; + IList roleAssignments = default; + IDictionary serializedAdditionalRawData = default; + Dictionary rawDataDictionary = new Dictionary(); + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("privileges"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(AccessControlRulesPrivilege.DeserializeAccessControlRulesPrivilege(item, options)); + } + privileges = array; + continue; + } + if (property.NameEquals("roles"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(AccessControlRulesRole.DeserializeAccessControlRulesRole(item, options)); + } + roles = array; + continue; + } + if (property.NameEquals("identities"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(AccessControlRulesIdentity.DeserializeAccessControlRulesIdentity(item, options)); + } + identities = array; + continue; + } + if (property.NameEquals("roleAssignments"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(AccessControlRulesRoleAssignment.DeserializeAccessControlRulesRoleAssignment(item, options)); + } + roleAssignments = array; + continue; + } + if (options.Format != "W") + { + rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); + } + } + serializedAdditionalRawData = rawDataDictionary; + return new AccessControlRules(privileges ?? new ChangeTrackingList(), roles ?? new ChangeTrackingList(), identities ?? new ChangeTrackingList(), roleAssignments ?? new ChangeTrackingList(), serializedAdditionalRawData); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + return ModelReaderWriter.Write(this, options); + default: + throw new FormatException($"The model {nameof(AccessControlRules)} does not support writing '{options.Format}' format."); + } + } + + AccessControlRules IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + { + using JsonDocument document = JsonDocument.Parse(data); + return DeserializeAccessControlRules(document.RootElement, options); + } + default: + throw new FormatException($"The model {nameof(AccessControlRules)} does not support reading '{options.Format}' format."); + } + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/AccessControlRules.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/AccessControlRules.cs new file mode 100644 index 000000000000..5cb588a456b2 --- /dev/null +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/AccessControlRules.cs @@ -0,0 +1,81 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; + +namespace Azure.ResourceManager.Compute.Models +{ + /// This is the Access Control Rules specification for an inVMAccessControlProfile version. + public partial class AccessControlRules + { + /// + /// Keeps track of any properties unknown to the library. + /// + /// To assign an object to the value of this property use . + /// + /// + /// To assign an already formatted json string to this property use . + /// + /// + /// Examples: + /// + /// + /// BinaryData.FromObjectAsJson("foo") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromString("\"foo\"") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromObjectAsJson(new { key = "value" }) + /// Creates a payload of { "key": "value" }. + /// + /// + /// BinaryData.FromString("{\"key\": \"value\"}") + /// Creates a payload of { "key": "value" }. + /// + /// + /// + /// + private IDictionary _serializedAdditionalRawData; + + /// Initializes a new instance of . + public AccessControlRules() + { + Privileges = new ChangeTrackingList(); + Roles = new ChangeTrackingList(); + Identities = new ChangeTrackingList(); + RoleAssignments = new ChangeTrackingList(); + } + + /// Initializes a new instance of . + /// A list of privileges. + /// A list of roles. + /// A list of identities. + /// A list of role assignments. + /// Keeps track of any properties unknown to the library. + internal AccessControlRules(IList privileges, IList roles, IList identities, IList roleAssignments, IDictionary serializedAdditionalRawData) + { + Privileges = privileges; + Roles = roles; + Identities = identities; + RoleAssignments = roleAssignments; + _serializedAdditionalRawData = serializedAdditionalRawData; + } + + /// A list of privileges. + public IList Privileges { get; } + /// A list of roles. + public IList Roles { get; } + /// A list of identities. + public IList Identities { get; } + /// A list of role assignments. + public IList RoleAssignments { get; } + } +} diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/AccessControlRulesIdentity.Serialization.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/AccessControlRulesIdentity.Serialization.cs new file mode 100644 index 000000000000..bf974e645103 --- /dev/null +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/AccessControlRulesIdentity.Serialization.cs @@ -0,0 +1,176 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.Compute.Models +{ + public partial class AccessControlRulesIdentity : IUtf8JsonSerializable, IJsonModel + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); + + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStartObject(); + JsonModelWriteCore(writer, options); + writer.WriteEndObject(); + } + + /// The JSON writer. + /// The client options for reading and writing models. + protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(AccessControlRulesIdentity)} does not support writing '{format}' format."); + } + + writer.WritePropertyName("name"u8); + writer.WriteStringValue(Name); + if (Optional.IsDefined(UserName)) + { + writer.WritePropertyName("userName"u8); + writer.WriteStringValue(UserName); + } + if (Optional.IsDefined(GroupName)) + { + writer.WritePropertyName("groupName"u8); + writer.WriteStringValue(GroupName); + } + if (Optional.IsDefined(ExePath)) + { + writer.WritePropertyName("exePath"u8); + writer.WriteStringValue(ExePath); + } + if (Optional.IsDefined(ProcessName)) + { + writer.WritePropertyName("processName"u8); + writer.WriteStringValue(ProcessName); + } + if (options.Format != "W" && _serializedAdditionalRawData != null) + { + foreach (var item in _serializedAdditionalRawData) + { + writer.WritePropertyName(item.Key); +#if NET6_0_OR_GREATER + writer.WriteRawValue(item.Value); +#else + using (JsonDocument document = JsonDocument.Parse(item.Value)) + { + JsonSerializer.Serialize(writer, document.RootElement); + } +#endif + } + } + } + + AccessControlRulesIdentity IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(AccessControlRulesIdentity)} does not support reading '{format}' format."); + } + + using JsonDocument document = JsonDocument.ParseValue(ref reader); + return DeserializeAccessControlRulesIdentity(document.RootElement, options); + } + + internal static AccessControlRulesIdentity DeserializeAccessControlRulesIdentity(JsonElement element, ModelReaderWriterOptions options = null) + { + options ??= ModelSerializationExtensions.WireOptions; + + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + string name = default; + string userName = default; + string groupName = default; + string exePath = default; + string processName = default; + IDictionary serializedAdditionalRawData = default; + Dictionary rawDataDictionary = new Dictionary(); + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("name"u8)) + { + name = property.Value.GetString(); + continue; + } + if (property.NameEquals("userName"u8)) + { + userName = property.Value.GetString(); + continue; + } + if (property.NameEquals("groupName"u8)) + { + groupName = property.Value.GetString(); + continue; + } + if (property.NameEquals("exePath"u8)) + { + exePath = property.Value.GetString(); + continue; + } + if (property.NameEquals("processName"u8)) + { + processName = property.Value.GetString(); + continue; + } + if (options.Format != "W") + { + rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); + } + } + serializedAdditionalRawData = rawDataDictionary; + return new AccessControlRulesIdentity( + name, + userName, + groupName, + exePath, + processName, + serializedAdditionalRawData); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + return ModelReaderWriter.Write(this, options); + default: + throw new FormatException($"The model {nameof(AccessControlRulesIdentity)} does not support writing '{options.Format}' format."); + } + } + + AccessControlRulesIdentity IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + { + using JsonDocument document = JsonDocument.Parse(data); + return DeserializeAccessControlRulesIdentity(document.RootElement, options); + } + default: + throw new FormatException($"The model {nameof(AccessControlRulesIdentity)} does not support reading '{options.Format}' format."); + } + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/AccessControlRulesIdentity.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/AccessControlRulesIdentity.cs new file mode 100644 index 000000000000..40bd43bda11e --- /dev/null +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/AccessControlRulesIdentity.cs @@ -0,0 +1,91 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; + +namespace Azure.ResourceManager.Compute.Models +{ + /// The properties of an Access Control Rule Identity. + public partial class AccessControlRulesIdentity + { + /// + /// Keeps track of any properties unknown to the library. + /// + /// To assign an object to the value of this property use . + /// + /// + /// To assign an already formatted json string to this property use . + /// + /// + /// Examples: + /// + /// + /// BinaryData.FromObjectAsJson("foo") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromString("\"foo\"") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromObjectAsJson(new { key = "value" }) + /// Creates a payload of { "key": "value" }. + /// + /// + /// BinaryData.FromString("{\"key\": \"value\"}") + /// Creates a payload of { "key": "value" }. + /// + /// + /// + /// + private IDictionary _serializedAdditionalRawData; + + /// Initializes a new instance of . + /// The name of the identity. + /// is null. + public AccessControlRulesIdentity(string name) + { + Argument.AssertNotNull(name, nameof(name)); + + Name = name; + } + + /// Initializes a new instance of . + /// The name of the identity. + /// The username corresponding to this identity. + /// The groupName corresponding to this identity. + /// The path to the executable. + /// The process name of the executable. + /// Keeps track of any properties unknown to the library. + internal AccessControlRulesIdentity(string name, string userName, string groupName, string exePath, string processName, IDictionary serializedAdditionalRawData) + { + Name = name; + UserName = userName; + GroupName = groupName; + ExePath = exePath; + ProcessName = processName; + _serializedAdditionalRawData = serializedAdditionalRawData; + } + + /// Initializes a new instance of for deserialization. + internal AccessControlRulesIdentity() + { + } + + /// The name of the identity. + public string Name { get; set; } + /// The username corresponding to this identity. + public string UserName { get; set; } + /// The groupName corresponding to this identity. + public string GroupName { get; set; } + /// The path to the executable. + public string ExePath { get; set; } + /// The process name of the executable. + public string ProcessName { get; set; } + } +} diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/AccessControlRulesMode.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/AccessControlRulesMode.cs new file mode 100644 index 000000000000..834c64b7fe96 --- /dev/null +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/AccessControlRulesMode.cs @@ -0,0 +1,54 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.ResourceManager.Compute.Models +{ + /// This property allows you to specify whether the access control rules are in Audit mode, in Enforce mode or Disabled. Possible values are: 'Audit', 'Enforce' or 'Disabled'. + public readonly partial struct AccessControlRulesMode : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public AccessControlRulesMode(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string AuditValue = "Audit"; + private const string EnforceValue = "Enforce"; + private const string DisabledValue = "Disabled"; + + /// Audit. + public static AccessControlRulesMode Audit { get; } = new AccessControlRulesMode(AuditValue); + /// Enforce. + public static AccessControlRulesMode Enforce { get; } = new AccessControlRulesMode(EnforceValue); + /// Disabled. + public static AccessControlRulesMode Disabled { get; } = new AccessControlRulesMode(DisabledValue); + /// Determines if two values are the same. + public static bool operator ==(AccessControlRulesMode left, AccessControlRulesMode right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(AccessControlRulesMode left, AccessControlRulesMode right) => !left.Equals(right); + /// Converts a to a . + public static implicit operator AccessControlRulesMode(string value) => new AccessControlRulesMode(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is AccessControlRulesMode other && Equals(other); + /// + public bool Equals(AccessControlRulesMode 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/compute/Azure.ResourceManager.Compute/src/Generated/Models/AccessControlRulesPrivilege.Serialization.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/AccessControlRulesPrivilege.Serialization.cs new file mode 100644 index 000000000000..4e4ed585f09c --- /dev/null +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/AccessControlRulesPrivilege.Serialization.cs @@ -0,0 +1,160 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.Compute.Models +{ + public partial class AccessControlRulesPrivilege : IUtf8JsonSerializable, IJsonModel + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); + + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStartObject(); + JsonModelWriteCore(writer, options); + writer.WriteEndObject(); + } + + /// The JSON writer. + /// The client options for reading and writing models. + protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(AccessControlRulesPrivilege)} does not support writing '{format}' format."); + } + + writer.WritePropertyName("name"u8); + writer.WriteStringValue(Name); + writer.WritePropertyName("path"u8); + writer.WriteStringValue(Path); + if (Optional.IsCollectionDefined(QueryParameters)) + { + writer.WritePropertyName("queryParameters"u8); + writer.WriteStartObject(); + foreach (var item in QueryParameters) + { + writer.WritePropertyName(item.Key); + writer.WriteStringValue(item.Value); + } + writer.WriteEndObject(); + } + if (options.Format != "W" && _serializedAdditionalRawData != null) + { + foreach (var item in _serializedAdditionalRawData) + { + writer.WritePropertyName(item.Key); +#if NET6_0_OR_GREATER + writer.WriteRawValue(item.Value); +#else + using (JsonDocument document = JsonDocument.Parse(item.Value)) + { + JsonSerializer.Serialize(writer, document.RootElement); + } +#endif + } + } + } + + AccessControlRulesPrivilege IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(AccessControlRulesPrivilege)} does not support reading '{format}' format."); + } + + using JsonDocument document = JsonDocument.ParseValue(ref reader); + return DeserializeAccessControlRulesPrivilege(document.RootElement, options); + } + + internal static AccessControlRulesPrivilege DeserializeAccessControlRulesPrivilege(JsonElement element, ModelReaderWriterOptions options = null) + { + options ??= ModelSerializationExtensions.WireOptions; + + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + string name = default; + string path = default; + IDictionary queryParameters = default; + IDictionary serializedAdditionalRawData = default; + Dictionary rawDataDictionary = new Dictionary(); + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("name"u8)) + { + name = property.Value.GetString(); + continue; + } + if (property.NameEquals("path"u8)) + { + path = property.Value.GetString(); + continue; + } + if (property.NameEquals("queryParameters"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + Dictionary dictionary = new Dictionary(); + foreach (var property0 in property.Value.EnumerateObject()) + { + dictionary.Add(property0.Name, property0.Value.GetString()); + } + queryParameters = dictionary; + continue; + } + if (options.Format != "W") + { + rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); + } + } + serializedAdditionalRawData = rawDataDictionary; + return new AccessControlRulesPrivilege(name, path, queryParameters ?? new ChangeTrackingDictionary(), serializedAdditionalRawData); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + return ModelReaderWriter.Write(this, options); + default: + throw new FormatException($"The model {nameof(AccessControlRulesPrivilege)} does not support writing '{options.Format}' format."); + } + } + + AccessControlRulesPrivilege IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + { + using JsonDocument document = JsonDocument.Parse(data); + return DeserializeAccessControlRulesPrivilege(document.RootElement, options); + } + default: + throw new FormatException($"The model {nameof(AccessControlRulesPrivilege)} does not support reading '{options.Format}' format."); + } + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/AccessControlRulesPrivilege.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/AccessControlRulesPrivilege.cs new file mode 100644 index 000000000000..854fd4093b2b --- /dev/null +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/AccessControlRulesPrivilege.cs @@ -0,0 +1,87 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; + +namespace Azure.ResourceManager.Compute.Models +{ + /// The properties of an Access Control Rule Privilege. + public partial class AccessControlRulesPrivilege + { + /// + /// Keeps track of any properties unknown to the library. + /// + /// To assign an object to the value of this property use . + /// + /// + /// To assign an already formatted json string to this property use . + /// + /// + /// Examples: + /// + /// + /// BinaryData.FromObjectAsJson("foo") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromString("\"foo\"") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromObjectAsJson(new { key = "value" }) + /// Creates a payload of { "key": "value" }. + /// + /// + /// BinaryData.FromString("{\"key\": \"value\"}") + /// Creates a payload of { "key": "value" }. + /// + /// + /// + /// + private IDictionary _serializedAdditionalRawData; + + /// Initializes a new instance of . + /// The name of the privilege. + /// The HTTP path corresponding to the privilege. + /// or is null. + public AccessControlRulesPrivilege(string name, string path) + { + Argument.AssertNotNull(name, nameof(name)); + Argument.AssertNotNull(path, nameof(path)); + + Name = name; + Path = path; + QueryParameters = new ChangeTrackingDictionary(); + } + + /// Initializes a new instance of . + /// The name of the privilege. + /// The HTTP path corresponding to the privilege. + /// The query parameters to match in the path. + /// Keeps track of any properties unknown to the library. + internal AccessControlRulesPrivilege(string name, string path, IDictionary queryParameters, IDictionary serializedAdditionalRawData) + { + Name = name; + Path = path; + QueryParameters = queryParameters; + _serializedAdditionalRawData = serializedAdditionalRawData; + } + + /// Initializes a new instance of for deserialization. + internal AccessControlRulesPrivilege() + { + } + + /// The name of the privilege. + public string Name { get; set; } + /// The HTTP path corresponding to the privilege. + public string Path { get; set; } + /// The query parameters to match in the path. + public IDictionary QueryParameters { get; } + } +} diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/AccessControlRulesRole.Serialization.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/AccessControlRulesRole.Serialization.cs new file mode 100644 index 000000000000..e5d8c1c204a6 --- /dev/null +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/AccessControlRulesRole.Serialization.cs @@ -0,0 +1,144 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.Compute.Models +{ + public partial class AccessControlRulesRole : IUtf8JsonSerializable, IJsonModel + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); + + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStartObject(); + JsonModelWriteCore(writer, options); + writer.WriteEndObject(); + } + + /// The JSON writer. + /// The client options for reading and writing models. + protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(AccessControlRulesRole)} does not support writing '{format}' format."); + } + + writer.WritePropertyName("name"u8); + writer.WriteStringValue(Name); + writer.WritePropertyName("privileges"u8); + writer.WriteStartArray(); + foreach (var item in Privileges) + { + writer.WriteStringValue(item); + } + writer.WriteEndArray(); + if (options.Format != "W" && _serializedAdditionalRawData != null) + { + foreach (var item in _serializedAdditionalRawData) + { + writer.WritePropertyName(item.Key); +#if NET6_0_OR_GREATER + writer.WriteRawValue(item.Value); +#else + using (JsonDocument document = JsonDocument.Parse(item.Value)) + { + JsonSerializer.Serialize(writer, document.RootElement); + } +#endif + } + } + } + + AccessControlRulesRole IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(AccessControlRulesRole)} does not support reading '{format}' format."); + } + + using JsonDocument document = JsonDocument.ParseValue(ref reader); + return DeserializeAccessControlRulesRole(document.RootElement, options); + } + + internal static AccessControlRulesRole DeserializeAccessControlRulesRole(JsonElement element, ModelReaderWriterOptions options = null) + { + options ??= ModelSerializationExtensions.WireOptions; + + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + string name = default; + IList privileges = default; + IDictionary serializedAdditionalRawData = default; + Dictionary rawDataDictionary = new Dictionary(); + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("name"u8)) + { + name = property.Value.GetString(); + continue; + } + if (property.NameEquals("privileges"u8)) + { + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(item.GetString()); + } + privileges = array; + continue; + } + if (options.Format != "W") + { + rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); + } + } + serializedAdditionalRawData = rawDataDictionary; + return new AccessControlRulesRole(name, privileges, serializedAdditionalRawData); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + return ModelReaderWriter.Write(this, options); + default: + throw new FormatException($"The model {nameof(AccessControlRulesRole)} does not support writing '{options.Format}' format."); + } + } + + AccessControlRulesRole IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + { + using JsonDocument document = JsonDocument.Parse(data); + return DeserializeAccessControlRulesRole(document.RootElement, options); + } + default: + throw new FormatException($"The model {nameof(AccessControlRulesRole)} does not support reading '{options.Format}' format."); + } + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/AccessControlRulesRole.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/AccessControlRulesRole.cs new file mode 100644 index 000000000000..ae98505d6607 --- /dev/null +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/AccessControlRulesRole.cs @@ -0,0 +1,83 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; +using System.Linq; + +namespace Azure.ResourceManager.Compute.Models +{ + /// The properties of an Access Control Rule Role. + public partial class AccessControlRulesRole + { + /// + /// Keeps track of any properties unknown to the library. + /// + /// To assign an object to the value of this property use . + /// + /// + /// To assign an already formatted json string to this property use . + /// + /// + /// Examples: + /// + /// + /// BinaryData.FromObjectAsJson("foo") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromString("\"foo\"") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromObjectAsJson(new { key = "value" }) + /// Creates a payload of { "key": "value" }. + /// + /// + /// BinaryData.FromString("{\"key\": \"value\"}") + /// Creates a payload of { "key": "value" }. + /// + /// + /// + /// + private IDictionary _serializedAdditionalRawData; + + /// Initializes a new instance of . + /// The name of the role. + /// A list of privileges needed by this role. + /// or is null. + public AccessControlRulesRole(string name, IEnumerable privileges) + { + Argument.AssertNotNull(name, nameof(name)); + Argument.AssertNotNull(privileges, nameof(privileges)); + + Name = name; + Privileges = privileges.ToList(); + } + + /// Initializes a new instance of . + /// The name of the role. + /// A list of privileges needed by this role. + /// Keeps track of any properties unknown to the library. + internal AccessControlRulesRole(string name, IList privileges, IDictionary serializedAdditionalRawData) + { + Name = name; + Privileges = privileges; + _serializedAdditionalRawData = serializedAdditionalRawData; + } + + /// Initializes a new instance of for deserialization. + internal AccessControlRulesRole() + { + } + + /// The name of the role. + public string Name { get; set; } + /// A list of privileges needed by this role. + public IList Privileges { get; } + } +} diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/AccessControlRulesRoleAssignment.Serialization.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/AccessControlRulesRoleAssignment.Serialization.cs new file mode 100644 index 000000000000..fbc2059ba307 --- /dev/null +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/AccessControlRulesRoleAssignment.Serialization.cs @@ -0,0 +1,144 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.Compute.Models +{ + public partial class AccessControlRulesRoleAssignment : IUtf8JsonSerializable, IJsonModel + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); + + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStartObject(); + JsonModelWriteCore(writer, options); + writer.WriteEndObject(); + } + + /// The JSON writer. + /// The client options for reading and writing models. + protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(AccessControlRulesRoleAssignment)} does not support writing '{format}' format."); + } + + writer.WritePropertyName("role"u8); + writer.WriteStringValue(Role); + writer.WritePropertyName("identities"u8); + writer.WriteStartArray(); + foreach (var item in Identities) + { + writer.WriteStringValue(item); + } + writer.WriteEndArray(); + if (options.Format != "W" && _serializedAdditionalRawData != null) + { + foreach (var item in _serializedAdditionalRawData) + { + writer.WritePropertyName(item.Key); +#if NET6_0_OR_GREATER + writer.WriteRawValue(item.Value); +#else + using (JsonDocument document = JsonDocument.Parse(item.Value)) + { + JsonSerializer.Serialize(writer, document.RootElement); + } +#endif + } + } + } + + AccessControlRulesRoleAssignment IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(AccessControlRulesRoleAssignment)} does not support reading '{format}' format."); + } + + using JsonDocument document = JsonDocument.ParseValue(ref reader); + return DeserializeAccessControlRulesRoleAssignment(document.RootElement, options); + } + + internal static AccessControlRulesRoleAssignment DeserializeAccessControlRulesRoleAssignment(JsonElement element, ModelReaderWriterOptions options = null) + { + options ??= ModelSerializationExtensions.WireOptions; + + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + string role = default; + IList identities = default; + IDictionary serializedAdditionalRawData = default; + Dictionary rawDataDictionary = new Dictionary(); + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("role"u8)) + { + role = property.Value.GetString(); + continue; + } + if (property.NameEquals("identities"u8)) + { + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(item.GetString()); + } + identities = array; + continue; + } + if (options.Format != "W") + { + rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); + } + } + serializedAdditionalRawData = rawDataDictionary; + return new AccessControlRulesRoleAssignment(role, identities, serializedAdditionalRawData); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + return ModelReaderWriter.Write(this, options); + default: + throw new FormatException($"The model {nameof(AccessControlRulesRoleAssignment)} does not support writing '{options.Format}' format."); + } + } + + AccessControlRulesRoleAssignment IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + { + using JsonDocument document = JsonDocument.Parse(data); + return DeserializeAccessControlRulesRoleAssignment(document.RootElement, options); + } + default: + throw new FormatException($"The model {nameof(AccessControlRulesRoleAssignment)} does not support reading '{options.Format}' format."); + } + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/AccessControlRulesRoleAssignment.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/AccessControlRulesRoleAssignment.cs new file mode 100644 index 000000000000..252d7658b1bf --- /dev/null +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/AccessControlRulesRoleAssignment.cs @@ -0,0 +1,83 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; +using System.Linq; + +namespace Azure.ResourceManager.Compute.Models +{ + /// The properties of an Access Control Rule RoleAssignment. + public partial class AccessControlRulesRoleAssignment + { + /// + /// Keeps track of any properties unknown to the library. + /// + /// To assign an object to the value of this property use . + /// + /// + /// To assign an already formatted json string to this property use . + /// + /// + /// Examples: + /// + /// + /// BinaryData.FromObjectAsJson("foo") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromString("\"foo\"") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromObjectAsJson(new { key = "value" }) + /// Creates a payload of { "key": "value" }. + /// + /// + /// BinaryData.FromString("{\"key\": \"value\"}") + /// Creates a payload of { "key": "value" }. + /// + /// + /// + /// + private IDictionary _serializedAdditionalRawData; + + /// Initializes a new instance of . + /// The name of the role. + /// A list of identities that can access the privileges defined by the role. + /// or is null. + public AccessControlRulesRoleAssignment(string role, IEnumerable identities) + { + Argument.AssertNotNull(role, nameof(role)); + Argument.AssertNotNull(identities, nameof(identities)); + + Role = role; + Identities = identities.ToList(); + } + + /// Initializes a new instance of . + /// The name of the role. + /// A list of identities that can access the privileges defined by the role. + /// Keeps track of any properties unknown to the library. + internal AccessControlRulesRoleAssignment(string role, IList identities, IDictionary serializedAdditionalRawData) + { + Role = role; + Identities = identities; + _serializedAdditionalRawData = serializedAdditionalRawData; + } + + /// Initializes a new instance of for deserialization. + internal AccessControlRulesRoleAssignment() + { + } + + /// The name of the role. + public string Role { get; set; } + /// A list of identities that can access the privileges defined by the role. + public IList Identities { get; } + } +} diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/AdditionalReplicaSet.Serialization.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/AdditionalReplicaSet.Serialization.cs new file mode 100644 index 000000000000..54e6c316aa32 --- /dev/null +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/AdditionalReplicaSet.Serialization.cs @@ -0,0 +1,148 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.Compute.Models +{ + public partial class AdditionalReplicaSet : IUtf8JsonSerializable, IJsonModel + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); + + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStartObject(); + JsonModelWriteCore(writer, options); + writer.WriteEndObject(); + } + + /// The JSON writer. + /// The client options for reading and writing models. + protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(AdditionalReplicaSet)} does not support writing '{format}' format."); + } + + if (Optional.IsDefined(StorageAccountType)) + { + writer.WritePropertyName("storageAccountType"u8); + writer.WriteStringValue(StorageAccountType.Value.ToString()); + } + if (Optional.IsDefined(RegionalReplicaCount)) + { + writer.WritePropertyName("regionalReplicaCount"u8); + writer.WriteNumberValue(RegionalReplicaCount.Value); + } + if (options.Format != "W" && _serializedAdditionalRawData != null) + { + foreach (var item in _serializedAdditionalRawData) + { + writer.WritePropertyName(item.Key); +#if NET6_0_OR_GREATER + writer.WriteRawValue(item.Value); +#else + using (JsonDocument document = JsonDocument.Parse(item.Value)) + { + JsonSerializer.Serialize(writer, document.RootElement); + } +#endif + } + } + } + + AdditionalReplicaSet IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(AdditionalReplicaSet)} does not support reading '{format}' format."); + } + + using JsonDocument document = JsonDocument.ParseValue(ref reader); + return DeserializeAdditionalReplicaSet(document.RootElement, options); + } + + internal static AdditionalReplicaSet DeserializeAdditionalReplicaSet(JsonElement element, ModelReaderWriterOptions options = null) + { + options ??= ModelSerializationExtensions.WireOptions; + + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + ImageStorageAccountType? storageAccountType = default; + int? regionalReplicaCount = default; + IDictionary serializedAdditionalRawData = default; + Dictionary rawDataDictionary = new Dictionary(); + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("storageAccountType"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + storageAccountType = new ImageStorageAccountType(property.Value.GetString()); + continue; + } + if (property.NameEquals("regionalReplicaCount"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + regionalReplicaCount = property.Value.GetInt32(); + continue; + } + if (options.Format != "W") + { + rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); + } + } + serializedAdditionalRawData = rawDataDictionary; + return new AdditionalReplicaSet(storageAccountType, regionalReplicaCount, serializedAdditionalRawData); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + return ModelReaderWriter.Write(this, options); + default: + throw new FormatException($"The model {nameof(AdditionalReplicaSet)} does not support writing '{options.Format}' format."); + } + } + + AdditionalReplicaSet IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + { + using JsonDocument document = JsonDocument.Parse(data); + return DeserializeAdditionalReplicaSet(document.RootElement, options); + } + default: + throw new FormatException($"The model {nameof(AdditionalReplicaSet)} does not support reading '{options.Format}' format."); + } + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/AdditionalReplicaSet.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/AdditionalReplicaSet.cs new file mode 100644 index 000000000000..1cb16c84a7d4 --- /dev/null +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/AdditionalReplicaSet.cs @@ -0,0 +1,69 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; + +namespace Azure.ResourceManager.Compute.Models +{ + /// Describes the additional replica set information. + public partial class AdditionalReplicaSet + { + /// + /// Keeps track of any properties unknown to the library. + /// + /// To assign an object to the value of this property use . + /// + /// + /// To assign an already formatted json string to this property use . + /// + /// + /// Examples: + /// + /// + /// BinaryData.FromObjectAsJson("foo") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromString("\"foo\"") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromObjectAsJson(new { key = "value" }) + /// Creates a payload of { "key": "value" }. + /// + /// + /// BinaryData.FromString("{\"key\": \"value\"}") + /// Creates a payload of { "key": "value" }. + /// + /// + /// + /// + private IDictionary _serializedAdditionalRawData; + + /// Initializes a new instance of . + public AdditionalReplicaSet() + { + } + + /// Initializes a new instance of . + /// Specifies the storage account type to be used to create the direct drive replicas. + /// The number of direct drive replicas of the Image Version to be created.This Property is updatable. + /// Keeps track of any properties unknown to the library. + internal AdditionalReplicaSet(ImageStorageAccountType? storageAccountType, int? regionalReplicaCount, IDictionary serializedAdditionalRawData) + { + StorageAccountType = storageAccountType; + RegionalReplicaCount = regionalReplicaCount; + _serializedAdditionalRawData = serializedAdditionalRawData; + } + + /// Specifies the storage account type to be used to create the direct drive replicas. + public ImageStorageAccountType? StorageAccountType { get; set; } + /// The number of direct drive replicas of the Image Version to be created.This Property is updatable. + public int? RegionalReplicaCount { get; set; } + } +} diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/DiskDetachOptionType.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/DiskDetachOptionType.cs index c4ee7b0f6658..00dcd41b8649 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/DiskDetachOptionType.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/DiskDetachOptionType.cs @@ -10,7 +10,7 @@ namespace Azure.ResourceManager.Compute.Models { - /// Specifies the detach behavior to be used while detaching a disk or which is already in the process of detachment from the virtual machine. Supported values are: **ForceDetach.** detachOption: **ForceDetach** is applicable only for managed data disks. If a previous detachment attempt of the data disk did not complete due to an unexpected failure from the virtual machine and the disk is still not released then use force-detach as a last resort option to detach the disk forcibly from the VM. All writes might not have been flushed when using this detach behavior. **This feature is still in preview** mode. To force-detach a data disk update toBeDetached to 'true' along with setting detachOption: 'ForceDetach'. + /// Specifies the detach behavior to be used while detaching a disk or which is already in the process of detachment from the virtual machine. Supported values are: **ForceDetach.** detachOption: **ForceDetach** is applicable only for managed data disks. If a previous detachment attempt of the data disk did not complete due to an unexpected failure from the virtual machine and the disk is still not released then use force-detach as a last resort option to detach the disk forcibly from the VM. All writes might not have been flushed when using this detach behavior. To force-detach a data disk update toBeDetached to 'true' along with setting detachOption: 'ForceDetach'. public readonly partial struct DiskDetachOptionType : IEquatable { private readonly string _value; diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/EndpointAccess.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/EndpointAccess.cs new file mode 100644 index 000000000000..b634241f150a --- /dev/null +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/EndpointAccess.cs @@ -0,0 +1,51 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.ResourceManager.Compute.Models +{ + /// This property allows you to specify if the requests will be allowed to access the host endpoints. Possible values are: 'Allow', 'Deny'. + public readonly partial struct EndpointAccess : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public EndpointAccess(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string AllowValue = "Allow"; + private const string DenyValue = "Deny"; + + /// Allow. + public static EndpointAccess Allow { get; } = new EndpointAccess(AllowValue); + /// Deny. + public static EndpointAccess Deny { get; } = new EndpointAccess(DenyValue); + /// Determines if two values are the same. + public static bool operator ==(EndpointAccess left, EndpointAccess right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(EndpointAccess left, EndpointAccess right) => !left.Equals(right); + /// Converts a to a . + public static implicit operator EndpointAccess(string value) => new EndpointAccess(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is EndpointAccess other && Equals(other); + /// + public bool Equals(EndpointAccess 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/compute/Azure.ResourceManager.Compute/src/Generated/Models/EndpointType.Serialization.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/EndpointType.Serialization.cs new file mode 100644 index 000000000000..7290748c209b --- /dev/null +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/EndpointType.Serialization.cs @@ -0,0 +1,28 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; + +namespace Azure.ResourceManager.Compute.Models +{ + internal static partial class EndpointTypeExtensions + { + public static string ToSerialString(this EndpointType value) => value switch + { + EndpointType.WireServer => "WireServer", + EndpointType.Imds => "IMDS", + _ => throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown EndpointType value.") + }; + + public static EndpointType ToEndpointType(this string value) + { + if (StringComparer.OrdinalIgnoreCase.Equals(value, "WireServer")) return EndpointType.WireServer; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "IMDS")) return EndpointType.Imds; + throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown EndpointType value."); + } + } +} diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/EndpointType.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/EndpointType.cs new file mode 100644 index 000000000000..141e9cba9bf8 --- /dev/null +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/EndpointType.cs @@ -0,0 +1,18 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.ResourceManager.Compute.Models +{ + /// This property allows you to specify the Endpoint type for which this profile is defining the access control for. Possible values are: 'WireServer' or 'IMDS'. + public enum EndpointType + { + /// WireServer. + WireServer, + /// IMDS. + Imds + } +} diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/ExecutedValidation.Serialization.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/ExecutedValidation.Serialization.cs new file mode 100644 index 000000000000..bc1ff62f94e2 --- /dev/null +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/ExecutedValidation.Serialization.cs @@ -0,0 +1,170 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.Compute.Models +{ + public partial class ExecutedValidation : IUtf8JsonSerializable, IJsonModel + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); + + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStartObject(); + JsonModelWriteCore(writer, options); + writer.WriteEndObject(); + } + + /// The JSON writer. + /// The client options for reading and writing models. + protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(ExecutedValidation)} does not support writing '{format}' format."); + } + + if (Optional.IsDefined(ExecutedValidationType)) + { + writer.WritePropertyName("type"u8); + writer.WriteStringValue(ExecutedValidationType); + } + if (Optional.IsDefined(Status)) + { + writer.WritePropertyName("status"u8); + writer.WriteStringValue(Status.Value.ToString()); + } + if (Optional.IsDefined(Version)) + { + writer.WritePropertyName("version"u8); + writer.WriteStringValue(Version); + } + if (Optional.IsDefined(ExecutionOn)) + { + writer.WritePropertyName("executionTime"u8); + writer.WriteStringValue(ExecutionOn.Value, "O"); + } + if (options.Format != "W" && _serializedAdditionalRawData != null) + { + foreach (var item in _serializedAdditionalRawData) + { + writer.WritePropertyName(item.Key); +#if NET6_0_OR_GREATER + writer.WriteRawValue(item.Value); +#else + using (JsonDocument document = JsonDocument.Parse(item.Value)) + { + JsonSerializer.Serialize(writer, document.RootElement); + } +#endif + } + } + } + + ExecutedValidation IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(ExecutedValidation)} does not support reading '{format}' format."); + } + + using JsonDocument document = JsonDocument.ParseValue(ref reader); + return DeserializeExecutedValidation(document.RootElement, options); + } + + internal static ExecutedValidation DeserializeExecutedValidation(JsonElement element, ModelReaderWriterOptions options = null) + { + options ??= ModelSerializationExtensions.WireOptions; + + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + string type = default; + ValidationStatus? status = default; + string version = default; + DateTimeOffset? executionTime = default; + IDictionary serializedAdditionalRawData = default; + Dictionary rawDataDictionary = new Dictionary(); + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("type"u8)) + { + type = property.Value.GetString(); + continue; + } + if (property.NameEquals("status"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + status = new ValidationStatus(property.Value.GetString()); + continue; + } + if (property.NameEquals("version"u8)) + { + version = property.Value.GetString(); + continue; + } + if (property.NameEquals("executionTime"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + executionTime = property.Value.GetDateTimeOffset("O"); + continue; + } + if (options.Format != "W") + { + rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); + } + } + serializedAdditionalRawData = rawDataDictionary; + return new ExecutedValidation(type, status, version, executionTime, serializedAdditionalRawData); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + return ModelReaderWriter.Write(this, options); + default: + throw new FormatException($"The model {nameof(ExecutedValidation)} does not support writing '{options.Format}' format."); + } + } + + ExecutedValidation IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + { + using JsonDocument document = JsonDocument.Parse(data); + return DeserializeExecutedValidation(document.RootElement, options); + } + default: + throw new FormatException($"The model {nameof(ExecutedValidation)} does not support reading '{options.Format}' format."); + } + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/ExecutedValidation.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/ExecutedValidation.cs new file mode 100644 index 000000000000..39a5f45bab25 --- /dev/null +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/ExecutedValidation.cs @@ -0,0 +1,77 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; + +namespace Azure.ResourceManager.Compute.Models +{ + /// This is the executed Validation. + public partial class ExecutedValidation + { + /// + /// Keeps track of any properties unknown to the library. + /// + /// To assign an object to the value of this property use . + /// + /// + /// To assign an already formatted json string to this property use . + /// + /// + /// Examples: + /// + /// + /// BinaryData.FromObjectAsJson("foo") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromString("\"foo\"") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromObjectAsJson(new { key = "value" }) + /// Creates a payload of { "key": "value" }. + /// + /// + /// BinaryData.FromString("{\"key\": \"value\"}") + /// Creates a payload of { "key": "value" }. + /// + /// + /// + /// + private IDictionary _serializedAdditionalRawData; + + /// Initializes a new instance of . + internal ExecutedValidation() + { + } + + /// Initializes a new instance of . + /// This property specifies the type of image version validation. + /// This property specifies the status of the validationProfile of the image version. + /// This property specifies the valid version of the validation. + /// This property specifies the starting timestamp. + /// Keeps track of any properties unknown to the library. + internal ExecutedValidation(string executedValidationType, ValidationStatus? status, string version, DateTimeOffset? executionOn, IDictionary serializedAdditionalRawData) + { + ExecutedValidationType = executedValidationType; + Status = status; + Version = version; + ExecutionOn = executionOn; + _serializedAdditionalRawData = serializedAdditionalRawData; + } + + /// This property specifies the type of image version validation. + public string ExecutedValidationType { get; } + /// This property specifies the status of the validationProfile of the image version. + public ValidationStatus? Status { get; } + /// This property specifies the valid version of the validation. + public string Version { get; } + /// This property specifies the starting timestamp. + public DateTimeOffset? ExecutionOn { get; } + } +} diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryApplicationScriptRebootBehavior.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryApplicationScriptRebootBehavior.cs new file mode 100644 index 000000000000..d15e652ef06a --- /dev/null +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryApplicationScriptRebootBehavior.cs @@ -0,0 +1,51 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.ResourceManager.Compute.Models +{ + /// Optional. The action to be taken with regards to install/update/remove of the gallery application in the event of a reboot. + public readonly partial struct GalleryApplicationScriptRebootBehavior : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public GalleryApplicationScriptRebootBehavior(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string NoneValue = "None"; + private const string RerunValue = "Rerun"; + + /// None. + public static GalleryApplicationScriptRebootBehavior None { get; } = new GalleryApplicationScriptRebootBehavior(NoneValue); + /// Rerun. + public static GalleryApplicationScriptRebootBehavior Rerun { get; } = new GalleryApplicationScriptRebootBehavior(RerunValue); + /// Determines if two values are the same. + public static bool operator ==(GalleryApplicationScriptRebootBehavior left, GalleryApplicationScriptRebootBehavior right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(GalleryApplicationScriptRebootBehavior left, GalleryApplicationScriptRebootBehavior right) => !left.Equals(right); + /// Converts a to a . + public static implicit operator GalleryApplicationScriptRebootBehavior(string value) => new GalleryApplicationScriptRebootBehavior(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is GalleryApplicationScriptRebootBehavior other && Equals(other); + /// + public bool Equals(GalleryApplicationScriptRebootBehavior 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/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryImageFeature.Serialization.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryImageFeature.Serialization.cs index 8c1ebc69127e..59ad7c0ef1bd 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryImageFeature.Serialization.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryImageFeature.Serialization.cs @@ -44,6 +44,11 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit writer.WritePropertyName("value"u8); writer.WriteStringValue(Value); } + if (Optional.IsDefined(StartsAtVersion)) + { + writer.WritePropertyName("startsAtVersion"u8); + writer.WriteStringValue(StartsAtVersion); + } if (options.Format != "W" && _serializedAdditionalRawData != null) { foreach (var item in _serializedAdditionalRawData) @@ -83,6 +88,7 @@ internal static GalleryImageFeature DeserializeGalleryImageFeature(JsonElement e } string name = default; string value = default; + string startsAtVersion = default; IDictionary serializedAdditionalRawData = default; Dictionary rawDataDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) @@ -97,13 +103,18 @@ internal static GalleryImageFeature DeserializeGalleryImageFeature(JsonElement e value = property.Value.GetString(); continue; } + if (property.NameEquals("startsAtVersion"u8)) + { + startsAtVersion = property.Value.GetString(); + continue; + } if (options.Format != "W") { rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); } } serializedAdditionalRawData = rawDataDictionary; - return new GalleryImageFeature(name, value, serializedAdditionalRawData); + return new GalleryImageFeature(name, value, startsAtVersion, serializedAdditionalRawData); } BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryImageFeature.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryImageFeature.cs index 5bb767577493..c90f5165939d 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryImageFeature.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryImageFeature.cs @@ -53,11 +53,13 @@ public GalleryImageFeature() /// Initializes a new instance of . /// The name of the gallery image feature. /// The value of the gallery image feature. + /// The minimum gallery image version which supports this feature. /// Keeps track of any properties unknown to the library. - internal GalleryImageFeature(string name, string value, IDictionary serializedAdditionalRawData) + internal GalleryImageFeature(string name, string value, string startsAtVersion, IDictionary serializedAdditionalRawData) { Name = name; Value = value; + StartsAtVersion = startsAtVersion; _serializedAdditionalRawData = serializedAdditionalRawData; } @@ -65,5 +67,7 @@ internal GalleryImageFeature(string name, string value, IDictionary The value of the gallery image feature. public string Value { get; set; } + /// The minimum gallery image version which supports this feature. + public string StartsAtVersion { get; set; } } } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryImagePatch.Serialization.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryImagePatch.Serialization.cs index 250d13e90fd7..a820716dd3f4 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryImagePatch.Serialization.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryImagePatch.Serialization.cs @@ -129,6 +129,11 @@ protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWri writer.WritePropertyName("architecture"u8); writer.WriteStringValue(Architecture.Value.ToString()); } + if (Optional.IsDefined(AllowUpdateImage)) + { + writer.WritePropertyName("allowUpdateImage"u8); + writer.WriteBooleanValue(AllowUpdateImage.Value); + } writer.WriteEndObject(); } @@ -172,6 +177,7 @@ internal static GalleryImagePatch DeserializeGalleryImagePatch(JsonElement eleme GalleryProvisioningState? provisioningState = default; IList features = default; ArchitectureType? architecture = default; + bool? allowUpdateImage = default; IDictionary serializedAdditionalRawData = default; Dictionary rawDataDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) @@ -355,6 +361,15 @@ internal static GalleryImagePatch DeserializeGalleryImagePatch(JsonElement eleme architecture = new ArchitectureType(property0.Value.GetString()); continue; } + if (property0.NameEquals("allowUpdateImage"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + allowUpdateImage = property0.Value.GetBoolean(); + continue; + } } continue; } @@ -384,6 +399,7 @@ internal static GalleryImagePatch DeserializeGalleryImagePatch(JsonElement eleme provisioningState, features ?? new ChangeTrackingList(), architecture, + allowUpdateImage, tags ?? new ChangeTrackingDictionary(), serializedAdditionalRawData); } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryImagePatch.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryImagePatch.cs index e86ce6f003e2..a3332935cb45 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryImagePatch.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryImagePatch.cs @@ -73,10 +73,11 @@ public GalleryImagePatch() /// Describes the gallery image definition purchase plan. This is used by marketplace images. /// The provisioning state, which only appears in the response. /// A list of gallery image features. - /// The architecture of the image. Applicable to OS disks only. + /// CPU architecture supported by an OS disk. + /// Optional. Must be set to true if the gallery image features are being updated. /// Resource tags. /// Keeps track of any properties unknown to the library. - internal GalleryImagePatch(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, string description, string eula, Uri privacyStatementUri, Uri releaseNoteUri, SupportedOperatingSystemType? osType, OperatingSystemStateType? osState, HyperVGeneration? hyperVGeneration, DateTimeOffset? endOfLifeOn, GalleryImageIdentifier identifier, RecommendedMachineConfiguration recommended, Disallowed disallowed, ImagePurchasePlan purchasePlan, GalleryProvisioningState? provisioningState, IList features, ArchitectureType? architecture, IDictionary tags, IDictionary serializedAdditionalRawData) : base(id, name, resourceType, systemData) + internal GalleryImagePatch(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, string description, string eula, Uri privacyStatementUri, Uri releaseNoteUri, SupportedOperatingSystemType? osType, OperatingSystemStateType? osState, HyperVGeneration? hyperVGeneration, DateTimeOffset? endOfLifeOn, GalleryImageIdentifier identifier, RecommendedMachineConfiguration recommended, Disallowed disallowed, ImagePurchasePlan purchasePlan, GalleryProvisioningState? provisioningState, IList features, ArchitectureType? architecture, bool? allowUpdateImage, IDictionary tags, IDictionary serializedAdditionalRawData) : base(id, name, resourceType, systemData) { Description = description; Eula = eula; @@ -93,6 +94,7 @@ internal GalleryImagePatch(ResourceIdentifier id, string name, ResourceType reso ProvisioningState = provisioningState; Features = features; Architecture = architecture; + AllowUpdateImage = allowUpdateImage; Tags = tags; _serializedAdditionalRawData = serializedAdditionalRawData; } @@ -136,8 +138,10 @@ public IList DisallowedDiskTypes public GalleryProvisioningState? ProvisioningState { get; } /// A list of gallery image features. public IList Features { get; } - /// The architecture of the image. Applicable to OS disks only. + /// CPU architecture supported by an OS disk. public ArchitectureType? Architecture { get; set; } + /// Optional. Must be set to true if the gallery image features are being updated. + public bool? AllowUpdateImage { get; set; } /// Resource tags. public IDictionary Tags { get; } } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryImageVersionPatch.Serialization.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryImageVersionPatch.Serialization.cs index 4bb5712fbc25..c2d7b8f74783 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryImageVersionPatch.Serialization.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryImageVersionPatch.Serialization.cs @@ -79,6 +79,16 @@ protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWri writer.WritePropertyName("securityProfile"u8); writer.WriteObjectValue(SecurityProfile, options); } + if (Optional.IsDefined(Restore)) + { + writer.WritePropertyName("restore"u8); + writer.WriteBooleanValue(Restore.Value); + } + if (options.Format != "W" && Optional.IsDefined(ValidationsProfile)) + { + writer.WritePropertyName("validationsProfile"u8); + writer.WriteObjectValue(ValidationsProfile, options); + } writer.WriteEndObject(); } @@ -113,6 +123,8 @@ internal static GalleryImageVersionPatch DeserializeGalleryImageVersionPatch(Jso GalleryImageVersionSafetyProfile safetyProfile = default; ReplicationStatus replicationStatus = default; ImageVersionSecurityProfile securityProfile = default; + bool? restore = default; + ValidationsProfile validationsProfile = default; IDictionary serializedAdditionalRawData = default; Dictionary rawDataDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) @@ -218,6 +230,24 @@ internal static GalleryImageVersionPatch DeserializeGalleryImageVersionPatch(Jso securityProfile = ImageVersionSecurityProfile.DeserializeImageVersionSecurityProfile(property0.Value, options); continue; } + if (property0.NameEquals("restore"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + restore = property0.Value.GetBoolean(); + continue; + } + if (property0.NameEquals("validationsProfile"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + validationsProfile = ValidationsProfile.DeserializeValidationsProfile(property0.Value, options); + continue; + } } continue; } @@ -238,6 +268,8 @@ internal static GalleryImageVersionPatch DeserializeGalleryImageVersionPatch(Jso safetyProfile, replicationStatus, securityProfile, + restore, + validationsProfile, tags ?? new ChangeTrackingDictionary(), serializedAdditionalRawData); } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryImageVersionPatch.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryImageVersionPatch.cs index 301b1883bff0..8e5860f7e882 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryImageVersionPatch.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryImageVersionPatch.cs @@ -64,9 +64,11 @@ public GalleryImageVersionPatch() /// This is the safety profile of the Gallery Image Version. /// This is the replication status of the gallery image version. /// The security profile of a gallery image version. + /// Indicates if this is a soft-delete resource restoration request. + /// This is the validations profile of a Gallery Image Version. /// Resource tags. /// Keeps track of any properties unknown to the library. - internal GalleryImageVersionPatch(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, GalleryImageVersionPublishingProfile publishingProfile, GalleryProvisioningState? provisioningState, GalleryImageVersionStorageProfile storageProfile, GalleryImageVersionSafetyProfile safetyProfile, ReplicationStatus replicationStatus, ImageVersionSecurityProfile securityProfile, IDictionary tags, IDictionary serializedAdditionalRawData) : base(id, name, resourceType, systemData) + internal GalleryImageVersionPatch(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, GalleryImageVersionPublishingProfile publishingProfile, GalleryProvisioningState? provisioningState, GalleryImageVersionStorageProfile storageProfile, GalleryImageVersionSafetyProfile safetyProfile, ReplicationStatus replicationStatus, ImageVersionSecurityProfile securityProfile, bool? restore, ValidationsProfile validationsProfile, IDictionary tags, IDictionary serializedAdditionalRawData) : base(id, name, resourceType, systemData) { PublishingProfile = publishingProfile; ProvisioningState = provisioningState; @@ -74,6 +76,8 @@ internal GalleryImageVersionPatch(ResourceIdentifier id, string name, ResourceTy SafetyProfile = safetyProfile; ReplicationStatus = replicationStatus; SecurityProfile = securityProfile; + Restore = restore; + ValidationsProfile = validationsProfile; Tags = tags; _serializedAdditionalRawData = serializedAdditionalRawData; } @@ -102,6 +106,10 @@ public GalleryImageVersionUefiSettings SecurityUefiSettings } } + /// Indicates if this is a soft-delete resource restoration request. + public bool? Restore { get; set; } + /// This is the validations profile of a Gallery Image Version. + public ValidationsProfile ValidationsProfile { get; } /// Resource tags. public IDictionary Tags { get; } } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryImageVersionSafetyProfile.Serialization.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryImageVersionSafetyProfile.Serialization.cs index bdfb978234c2..53838775c9da 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryImageVersionSafetyProfile.Serialization.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryImageVersionSafetyProfile.Serialization.cs @@ -50,6 +50,11 @@ protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWri } writer.WriteEndArray(); } + if (Optional.IsDefined(BlockDeletionBeforeEndOfLife)) + { + writer.WritePropertyName("blockDeletionBeforeEndOfLife"u8); + writer.WriteBooleanValue(BlockDeletionBeforeEndOfLife.Value); + } } GalleryImageVersionSafetyProfile IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) @@ -74,6 +79,7 @@ internal static GalleryImageVersionSafetyProfile DeserializeGalleryImageVersionS } bool? reportedForPolicyViolation = default; IReadOnlyList policyViolations = default; + bool? blockDeletionBeforeEndOfLife = default; bool? allowDeletionOfReplicatedLocations = default; IDictionary serializedAdditionalRawData = default; Dictionary rawDataDictionary = new Dictionary(); @@ -102,6 +108,15 @@ internal static GalleryImageVersionSafetyProfile DeserializeGalleryImageVersionS policyViolations = array; continue; } + if (property.NameEquals("blockDeletionBeforeEndOfLife"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + blockDeletionBeforeEndOfLife = property.Value.GetBoolean(); + continue; + } if (property.NameEquals("allowDeletionOfReplicatedLocations"u8)) { if (property.Value.ValueKind == JsonValueKind.Null) @@ -117,7 +132,7 @@ internal static GalleryImageVersionSafetyProfile DeserializeGalleryImageVersionS } } serializedAdditionalRawData = rawDataDictionary; - return new GalleryImageVersionSafetyProfile(allowDeletionOfReplicatedLocations, serializedAdditionalRawData, reportedForPolicyViolation, policyViolations ?? new ChangeTrackingList()); + return new GalleryImageVersionSafetyProfile(allowDeletionOfReplicatedLocations, serializedAdditionalRawData, reportedForPolicyViolation, policyViolations ?? new ChangeTrackingList(), blockDeletionBeforeEndOfLife); } BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryImageVersionSafetyProfile.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryImageVersionSafetyProfile.cs index 2479a4d82bca..c2288445461e 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryImageVersionSafetyProfile.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryImageVersionSafetyProfile.cs @@ -24,15 +24,19 @@ public GalleryImageVersionSafetyProfile() /// Keeps track of any properties unknown to the library. /// Indicates whether this image has been reported as violating Microsoft's policies. /// A list of Policy Violations that have been reported for this Gallery Image Version. - internal GalleryImageVersionSafetyProfile(bool? allowDeletionOfReplicatedLocations, IDictionary serializedAdditionalRawData, bool? isReportedForPolicyViolation, IReadOnlyList policyViolations) : base(allowDeletionOfReplicatedLocations, serializedAdditionalRawData) + /// Indicates whether or not the deletion is blocked for this Gallery Image Version if its End Of Life has not expired. + internal GalleryImageVersionSafetyProfile(bool? allowDeletionOfReplicatedLocations, IDictionary serializedAdditionalRawData, bool? isReportedForPolicyViolation, IReadOnlyList policyViolations, bool? blockDeletionBeforeEndOfLife) : base(allowDeletionOfReplicatedLocations, serializedAdditionalRawData) { IsReportedForPolicyViolation = isReportedForPolicyViolation; PolicyViolations = policyViolations; + BlockDeletionBeforeEndOfLife = blockDeletionBeforeEndOfLife; } /// Indicates whether this image has been reported as violating Microsoft's policies. public bool? IsReportedForPolicyViolation { get; } /// A list of Policy Violations that have been reported for this Gallery Image Version. public IReadOnlyList PolicyViolations { get; } + /// Indicates whether or not the deletion is blocked for this Gallery Image Version if its End Of Life has not expired. + public bool? BlockDeletionBeforeEndOfLife { get; set; } } } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryInVmAccessControlProfileList.Serialization.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryInVmAccessControlProfileList.Serialization.cs new file mode 100644 index 000000000000..5d4077aea477 --- /dev/null +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryInVmAccessControlProfileList.Serialization.cs @@ -0,0 +1,147 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.Compute.Models +{ + internal partial class GalleryInVmAccessControlProfileList : IUtf8JsonSerializable, IJsonModel + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); + + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStartObject(); + JsonModelWriteCore(writer, options); + writer.WriteEndObject(); + } + + /// The JSON writer. + /// The client options for reading and writing models. + protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(GalleryInVmAccessControlProfileList)} does not support writing '{format}' format."); + } + + writer.WritePropertyName("value"u8); + writer.WriteStartArray(); + foreach (var item in Value) + { + writer.WriteObjectValue(item, options); + } + writer.WriteEndArray(); + if (Optional.IsDefined(NextLink)) + { + writer.WritePropertyName("nextLink"u8); + writer.WriteStringValue(NextLink); + } + if (options.Format != "W" && _serializedAdditionalRawData != null) + { + foreach (var item in _serializedAdditionalRawData) + { + writer.WritePropertyName(item.Key); +#if NET6_0_OR_GREATER + writer.WriteRawValue(item.Value); +#else + using (JsonDocument document = JsonDocument.Parse(item.Value)) + { + JsonSerializer.Serialize(writer, document.RootElement); + } +#endif + } + } + } + + GalleryInVmAccessControlProfileList IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(GalleryInVmAccessControlProfileList)} does not support reading '{format}' format."); + } + + using JsonDocument document = JsonDocument.ParseValue(ref reader); + return DeserializeGalleryInVmAccessControlProfileList(document.RootElement, options); + } + + internal static GalleryInVmAccessControlProfileList DeserializeGalleryInVmAccessControlProfileList(JsonElement element, ModelReaderWriterOptions options = null) + { + options ??= ModelSerializationExtensions.WireOptions; + + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + IReadOnlyList value = default; + string nextLink = default; + IDictionary serializedAdditionalRawData = default; + Dictionary rawDataDictionary = new Dictionary(); + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("value"u8)) + { + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(GalleryInVmAccessControlProfileData.DeserializeGalleryInVmAccessControlProfileData(item, options)); + } + value = array; + continue; + } + if (property.NameEquals("nextLink"u8)) + { + nextLink = property.Value.GetString(); + continue; + } + if (options.Format != "W") + { + rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); + } + } + serializedAdditionalRawData = rawDataDictionary; + return new GalleryInVmAccessControlProfileList(value, nextLink, serializedAdditionalRawData); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + return ModelReaderWriter.Write(this, options); + default: + throw new FormatException($"The model {nameof(GalleryInVmAccessControlProfileList)} does not support writing '{options.Format}' format."); + } + } + + GalleryInVmAccessControlProfileList IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + { + using JsonDocument document = JsonDocument.Parse(data); + return DeserializeGalleryInVmAccessControlProfileList(document.RootElement, options); + } + default: + throw new FormatException($"The model {nameof(GalleryInVmAccessControlProfileList)} does not support reading '{options.Format}' format."); + } + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryInVmAccessControlProfileList.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryInVmAccessControlProfileList.cs new file mode 100644 index 000000000000..9dc8a1349dda --- /dev/null +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryInVmAccessControlProfileList.cs @@ -0,0 +1,80 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; +using System.Linq; + +namespace Azure.ResourceManager.Compute.Models +{ + /// The List Gallery InVMAccessControlProfiles operation response. + internal partial class GalleryInVmAccessControlProfileList + { + /// + /// Keeps track of any properties unknown to the library. + /// + /// To assign an object to the value of this property use . + /// + /// + /// To assign an already formatted json string to this property use . + /// + /// + /// Examples: + /// + /// + /// BinaryData.FromObjectAsJson("foo") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromString("\"foo\"") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromObjectAsJson(new { key = "value" }) + /// Creates a payload of { "key": "value" }. + /// + /// + /// BinaryData.FromString("{\"key\": \"value\"}") + /// Creates a payload of { "key": "value" }. + /// + /// + /// + /// + private IDictionary _serializedAdditionalRawData; + + /// Initializes a new instance of . + /// A list of Gallery InVMAccessControlProfiles. + /// is null. + internal GalleryInVmAccessControlProfileList(IEnumerable value) + { + Argument.AssertNotNull(value, nameof(value)); + + Value = value.ToList(); + } + + /// Initializes a new instance of . + /// A list of Gallery InVMAccessControlProfiles. + /// The uri to fetch the next page of inVMAccessControlProfiles in the gallery. Call ListNext() with this to fetch the next page of gallery inVMAccessControlProfiles. + /// Keeps track of any properties unknown to the library. + internal GalleryInVmAccessControlProfileList(IReadOnlyList value, string nextLink, IDictionary serializedAdditionalRawData) + { + Value = value; + NextLink = nextLink; + _serializedAdditionalRawData = serializedAdditionalRawData; + } + + /// Initializes a new instance of for deserialization. + internal GalleryInVmAccessControlProfileList() + { + } + + /// A list of Gallery InVMAccessControlProfiles. + public IReadOnlyList Value { get; } + /// The uri to fetch the next page of inVMAccessControlProfiles in the gallery. Call ListNext() with this to fetch the next page of gallery inVMAccessControlProfiles. + public string NextLink { get; } + } +} diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryInVmAccessControlProfilePatch.Serialization.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryInVmAccessControlProfilePatch.Serialization.cs new file mode 100644 index 000000000000..d52a9d8b67ac --- /dev/null +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryInVmAccessControlProfilePatch.Serialization.cs @@ -0,0 +1,181 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; +using Azure.ResourceManager.Models; + +namespace Azure.ResourceManager.Compute.Models +{ + public partial class GalleryInVmAccessControlProfilePatch : IUtf8JsonSerializable, IJsonModel + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); + + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStartObject(); + JsonModelWriteCore(writer, options); + writer.WriteEndObject(); + } + + /// The JSON writer. + /// The client options for reading and writing models. + protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(GalleryInVmAccessControlProfilePatch)} does not support writing '{format}' format."); + } + + base.JsonModelWriteCore(writer, options); + if (Optional.IsDefined(Properties)) + { + writer.WritePropertyName("properties"u8); + writer.WriteObjectValue(Properties, options); + } + if (Optional.IsCollectionDefined(Tags)) + { + writer.WritePropertyName("tags"u8); + writer.WriteStartObject(); + foreach (var item in Tags) + { + writer.WritePropertyName(item.Key); + writer.WriteStringValue(item.Value); + } + writer.WriteEndObject(); + } + } + + GalleryInVmAccessControlProfilePatch IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(GalleryInVmAccessControlProfilePatch)} does not support reading '{format}' format."); + } + + using JsonDocument document = JsonDocument.ParseValue(ref reader); + return DeserializeGalleryInVmAccessControlProfilePatch(document.RootElement, options); + } + + internal static GalleryInVmAccessControlProfilePatch DeserializeGalleryInVmAccessControlProfilePatch(JsonElement element, ModelReaderWriterOptions options = null) + { + options ??= ModelSerializationExtensions.WireOptions; + + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + GalleryInVmAccessControlProfileProperties properties = default; + IDictionary tags = default; + ResourceIdentifier id = default; + string name = default; + ResourceType type = default; + SystemData systemData = default; + IDictionary serializedAdditionalRawData = default; + Dictionary rawDataDictionary = new Dictionary(); + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("properties"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + properties = GalleryInVmAccessControlProfileProperties.DeserializeGalleryInVmAccessControlProfileProperties(property.Value, options); + continue; + } + if (property.NameEquals("tags"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + Dictionary dictionary = new Dictionary(); + foreach (var property0 in property.Value.EnumerateObject()) + { + dictionary.Add(property0.Name, property0.Value.GetString()); + } + tags = dictionary; + continue; + } + if (property.NameEquals("id"u8)) + { + id = new ResourceIdentifier(property.Value.GetString()); + continue; + } + if (property.NameEquals("name"u8)) + { + name = property.Value.GetString(); + continue; + } + if (property.NameEquals("type"u8)) + { + type = new ResourceType(property.Value.GetString()); + continue; + } + if (property.NameEquals("systemData"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + systemData = JsonSerializer.Deserialize(property.Value.GetRawText()); + continue; + } + if (options.Format != "W") + { + rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); + } + } + serializedAdditionalRawData = rawDataDictionary; + return new GalleryInVmAccessControlProfilePatch( + id, + name, + type, + systemData, + properties, + tags ?? new ChangeTrackingDictionary(), + serializedAdditionalRawData); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + return ModelReaderWriter.Write(this, options); + default: + throw new FormatException($"The model {nameof(GalleryInVmAccessControlProfilePatch)} does not support writing '{options.Format}' format."); + } + } + + GalleryInVmAccessControlProfilePatch IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + { + using JsonDocument document = JsonDocument.Parse(data); + return DeserializeGalleryInVmAccessControlProfilePatch(document.RootElement, options); + } + default: + throw new FormatException($"The model {nameof(GalleryInVmAccessControlProfilePatch)} does not support reading '{options.Format}' format."); + } + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryInVmAccessControlProfilePatch.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryInVmAccessControlProfilePatch.cs new file mode 100644 index 000000000000..5c3cde2a262a --- /dev/null +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryInVmAccessControlProfilePatch.cs @@ -0,0 +1,76 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; +using Azure.Core; +using Azure.ResourceManager.Models; + +namespace Azure.ResourceManager.Compute.Models +{ + /// Specifies information about the gallery inVMAccessControlProfile that you want to update. + public partial class GalleryInVmAccessControlProfilePatch : ResourceData + { + /// + /// Keeps track of any properties unknown to the library. + /// + /// To assign an object to the value of this property use . + /// + /// + /// To assign an already formatted json string to this property use . + /// + /// + /// Examples: + /// + /// + /// BinaryData.FromObjectAsJson("foo") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromString("\"foo\"") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromObjectAsJson(new { key = "value" }) + /// Creates a payload of { "key": "value" }. + /// + /// + /// BinaryData.FromString("{\"key\": \"value\"}") + /// Creates a payload of { "key": "value" }. + /// + /// + /// + /// + private IDictionary _serializedAdditionalRawData; + + /// Initializes a new instance of . + public GalleryInVmAccessControlProfilePatch() + { + Tags = new ChangeTrackingDictionary(); + } + + /// Initializes a new instance of . + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// Describes the properties of a gallery inVMAccessControlProfile. + /// Resource tags. + /// Keeps track of any properties unknown to the library. + internal GalleryInVmAccessControlProfilePatch(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, GalleryInVmAccessControlProfileProperties properties, IDictionary tags, IDictionary serializedAdditionalRawData) : base(id, name, resourceType, systemData) + { + Properties = properties; + Tags = tags; + _serializedAdditionalRawData = serializedAdditionalRawData; + } + + /// Describes the properties of a gallery inVMAccessControlProfile. + public GalleryInVmAccessControlProfileProperties Properties { get; set; } + /// Resource tags. + public IDictionary Tags { get; } + } +} diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryInVmAccessControlProfileProperties.Serialization.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryInVmAccessControlProfileProperties.Serialization.cs new file mode 100644 index 000000000000..3d1f761935bb --- /dev/null +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryInVmAccessControlProfileProperties.Serialization.cs @@ -0,0 +1,141 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.Compute.Models +{ + public partial class GalleryInVmAccessControlProfileProperties : IUtf8JsonSerializable, IJsonModel + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); + + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStartObject(); + JsonModelWriteCore(writer, options); + writer.WriteEndObject(); + } + + /// The JSON writer. + /// The client options for reading and writing models. + protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(GalleryInVmAccessControlProfileProperties)} does not support writing '{format}' format."); + } + + base.JsonModelWriteCore(writer, options); + if (Optional.IsDefined(Description)) + { + writer.WritePropertyName("description"u8); + writer.WriteStringValue(Description); + } + writer.WritePropertyName("osType"u8); + writer.WriteStringValue(OSType.ToSerialString()); + writer.WritePropertyName("applicableHostEndpoint"u8); + writer.WriteStringValue(ApplicableHostEndpoint.ToSerialString()); + } + + GalleryInVmAccessControlProfileProperties IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(GalleryInVmAccessControlProfileProperties)} does not support reading '{format}' format."); + } + + using JsonDocument document = JsonDocument.ParseValue(ref reader); + return DeserializeGalleryInVmAccessControlProfileProperties(document.RootElement, options); + } + + internal static GalleryInVmAccessControlProfileProperties DeserializeGalleryInVmAccessControlProfileProperties(JsonElement element, ModelReaderWriterOptions options = null) + { + options ??= ModelSerializationExtensions.WireOptions; + + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + string description = default; + SupportedOperatingSystemType osType = default; + EndpointType applicableHostEndpoint = default; + GalleryProvisioningState? provisioningState = default; + IDictionary serializedAdditionalRawData = default; + Dictionary rawDataDictionary = new Dictionary(); + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("description"u8)) + { + description = property.Value.GetString(); + continue; + } + if (property.NameEquals("osType"u8)) + { + osType = property.Value.GetString().ToSupportedOperatingSystemType(); + continue; + } + if (property.NameEquals("applicableHostEndpoint"u8)) + { + applicableHostEndpoint = property.Value.GetString().ToEndpointType(); + continue; + } + if (property.NameEquals("provisioningState"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + provisioningState = new GalleryProvisioningState(property.Value.GetString()); + continue; + } + if (options.Format != "W") + { + rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); + } + } + serializedAdditionalRawData = rawDataDictionary; + return new GalleryInVmAccessControlProfileProperties(provisioningState, serializedAdditionalRawData, description, osType, applicableHostEndpoint); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + return ModelReaderWriter.Write(this, options); + default: + throw new FormatException($"The model {nameof(GalleryInVmAccessControlProfileProperties)} does not support writing '{options.Format}' format."); + } + } + + GalleryInVmAccessControlProfileProperties IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + { + using JsonDocument document = JsonDocument.Parse(data); + return DeserializeGalleryInVmAccessControlProfileProperties(document.RootElement, options); + } + default: + throw new FormatException($"The model {nameof(GalleryInVmAccessControlProfileProperties)} does not support reading '{options.Format}' format."); + } + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryInVmAccessControlProfileProperties.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryInVmAccessControlProfileProperties.cs new file mode 100644 index 000000000000..fc1f08a90249 --- /dev/null +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryInVmAccessControlProfileProperties.cs @@ -0,0 +1,50 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; + +namespace Azure.ResourceManager.Compute.Models +{ + /// Describes the properties of a gallery inVMAccessControlProfile. + public partial class GalleryInVmAccessControlProfileProperties : GalleryResourceProfilePropertiesBase + { + /// Initializes a new instance of . + /// This property allows you to specify the OS type of the VMs/VMSS for which this profile can be used against. Possible values are: 'Windows' or 'Linux'. + /// This property allows you to specify the Endpoint type for which this profile is defining the access control for. Possible values are: 'WireServer' or 'IMDS'. + public GalleryInVmAccessControlProfileProperties(SupportedOperatingSystemType osType, EndpointType applicableHostEndpoint) + { + OSType = osType; + ApplicableHostEndpoint = applicableHostEndpoint; + } + + /// Initializes a new instance of . + /// The provisioning state, which only appears in the response. + /// Keeps track of any properties unknown to the library. + /// The description of this gallery inVMAccessControlProfile resources. This property is updatable. + /// This property allows you to specify the OS type of the VMs/VMSS for which this profile can be used against. Possible values are: 'Windows' or 'Linux'. + /// This property allows you to specify the Endpoint type for which this profile is defining the access control for. Possible values are: 'WireServer' or 'IMDS'. + internal GalleryInVmAccessControlProfileProperties(GalleryProvisioningState? provisioningState, IDictionary serializedAdditionalRawData, string description, SupportedOperatingSystemType osType, EndpointType applicableHostEndpoint) : base(provisioningState, serializedAdditionalRawData) + { + Description = description; + OSType = osType; + ApplicableHostEndpoint = applicableHostEndpoint; + } + + /// Initializes a new instance of for deserialization. + internal GalleryInVmAccessControlProfileProperties() + { + } + + /// The description of this gallery inVMAccessControlProfile resources. This property is updatable. + public string Description { get; set; } + /// This property allows you to specify the OS type of the VMs/VMSS for which this profile can be used against. Possible values are: 'Windows' or 'Linux'. + public SupportedOperatingSystemType OSType { get; set; } + /// This property allows you to specify the Endpoint type for which this profile is defining the access control for. Possible values are: 'WireServer' or 'IMDS'. + public EndpointType ApplicableHostEndpoint { get; set; } + } +} diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryInVmAccessControlProfileVersionList.Serialization.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryInVmAccessControlProfileVersionList.Serialization.cs new file mode 100644 index 000000000000..1632c92b50c4 --- /dev/null +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryInVmAccessControlProfileVersionList.Serialization.cs @@ -0,0 +1,147 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.Compute.Models +{ + internal partial class GalleryInVmAccessControlProfileVersionList : IUtf8JsonSerializable, IJsonModel + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); + + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStartObject(); + JsonModelWriteCore(writer, options); + writer.WriteEndObject(); + } + + /// The JSON writer. + /// The client options for reading and writing models. + protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(GalleryInVmAccessControlProfileVersionList)} does not support writing '{format}' format."); + } + + writer.WritePropertyName("value"u8); + writer.WriteStartArray(); + foreach (var item in Value) + { + writer.WriteObjectValue(item, options); + } + writer.WriteEndArray(); + if (Optional.IsDefined(NextLink)) + { + writer.WritePropertyName("nextLink"u8); + writer.WriteStringValue(NextLink); + } + if (options.Format != "W" && _serializedAdditionalRawData != null) + { + foreach (var item in _serializedAdditionalRawData) + { + writer.WritePropertyName(item.Key); +#if NET6_0_OR_GREATER + writer.WriteRawValue(item.Value); +#else + using (JsonDocument document = JsonDocument.Parse(item.Value)) + { + JsonSerializer.Serialize(writer, document.RootElement); + } +#endif + } + } + } + + GalleryInVmAccessControlProfileVersionList IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(GalleryInVmAccessControlProfileVersionList)} does not support reading '{format}' format."); + } + + using JsonDocument document = JsonDocument.ParseValue(ref reader); + return DeserializeGalleryInVmAccessControlProfileVersionList(document.RootElement, options); + } + + internal static GalleryInVmAccessControlProfileVersionList DeserializeGalleryInVmAccessControlProfileVersionList(JsonElement element, ModelReaderWriterOptions options = null) + { + options ??= ModelSerializationExtensions.WireOptions; + + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + IReadOnlyList value = default; + string nextLink = default; + IDictionary serializedAdditionalRawData = default; + Dictionary rawDataDictionary = new Dictionary(); + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("value"u8)) + { + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(GalleryInVmAccessControlProfileVersionData.DeserializeGalleryInVmAccessControlProfileVersionData(item, options)); + } + value = array; + continue; + } + if (property.NameEquals("nextLink"u8)) + { + nextLink = property.Value.GetString(); + continue; + } + if (options.Format != "W") + { + rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); + } + } + serializedAdditionalRawData = rawDataDictionary; + return new GalleryInVmAccessControlProfileVersionList(value, nextLink, serializedAdditionalRawData); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + return ModelReaderWriter.Write(this, options); + default: + throw new FormatException($"The model {nameof(GalleryInVmAccessControlProfileVersionList)} does not support writing '{options.Format}' format."); + } + } + + GalleryInVmAccessControlProfileVersionList IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + { + using JsonDocument document = JsonDocument.Parse(data); + return DeserializeGalleryInVmAccessControlProfileVersionList(document.RootElement, options); + } + default: + throw new FormatException($"The model {nameof(GalleryInVmAccessControlProfileVersionList)} does not support reading '{options.Format}' format."); + } + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryInVmAccessControlProfileVersionList.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryInVmAccessControlProfileVersionList.cs new file mode 100644 index 000000000000..261421824263 --- /dev/null +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryInVmAccessControlProfileVersionList.cs @@ -0,0 +1,80 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; +using System.Linq; + +namespace Azure.ResourceManager.Compute.Models +{ + /// The List Gallery InVMAccessControlProfile Versions operation response. + internal partial class GalleryInVmAccessControlProfileVersionList + { + /// + /// Keeps track of any properties unknown to the library. + /// + /// To assign an object to the value of this property use . + /// + /// + /// To assign an already formatted json string to this property use . + /// + /// + /// Examples: + /// + /// + /// BinaryData.FromObjectAsJson("foo") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromString("\"foo\"") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromObjectAsJson(new { key = "value" }) + /// Creates a payload of { "key": "value" }. + /// + /// + /// BinaryData.FromString("{\"key\": \"value\"}") + /// Creates a payload of { "key": "value" }. + /// + /// + /// + /// + private IDictionary _serializedAdditionalRawData; + + /// Initializes a new instance of . + /// A list of Gallery InVMAccessControlProfile Versions. + /// is null. + internal GalleryInVmAccessControlProfileVersionList(IEnumerable value) + { + Argument.AssertNotNull(value, nameof(value)); + + Value = value.ToList(); + } + + /// Initializes a new instance of . + /// A list of Gallery InVMAccessControlProfile Versions. + /// The uri to fetch the next page of inVMAccessControlProfile versions. Call ListNext() with this to fetch the next page of gallery inVMAccessControlProfile versions. + /// Keeps track of any properties unknown to the library. + internal GalleryInVmAccessControlProfileVersionList(IReadOnlyList value, string nextLink, IDictionary serializedAdditionalRawData) + { + Value = value; + NextLink = nextLink; + _serializedAdditionalRawData = serializedAdditionalRawData; + } + + /// Initializes a new instance of for deserialization. + internal GalleryInVmAccessControlProfileVersionList() + { + } + + /// A list of Gallery InVMAccessControlProfile Versions. + public IReadOnlyList Value { get; } + /// The uri to fetch the next page of inVMAccessControlProfile versions. Call ListNext() with this to fetch the next page of gallery inVMAccessControlProfile versions. + public string NextLink { get; } + } +} diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryInVmAccessControlProfileVersionPatch.Serialization.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryInVmAccessControlProfileVersionPatch.Serialization.cs new file mode 100644 index 000000000000..f49c127b352e --- /dev/null +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryInVmAccessControlProfileVersionPatch.Serialization.cs @@ -0,0 +1,318 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; +using Azure.ResourceManager.Models; + +namespace Azure.ResourceManager.Compute.Models +{ + public partial class GalleryInVmAccessControlProfileVersionPatch : IUtf8JsonSerializable, IJsonModel + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); + + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStartObject(); + JsonModelWriteCore(writer, options); + writer.WriteEndObject(); + } + + /// The JSON writer. + /// The client options for reading and writing models. + protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(GalleryInVmAccessControlProfileVersionPatch)} does not support writing '{format}' format."); + } + + base.JsonModelWriteCore(writer, options); + if (Optional.IsCollectionDefined(Tags)) + { + writer.WritePropertyName("tags"u8); + writer.WriteStartObject(); + foreach (var item in Tags) + { + writer.WritePropertyName(item.Key); + writer.WriteStringValue(item.Value); + } + writer.WriteEndObject(); + } + writer.WritePropertyName("properties"u8); + writer.WriteStartObject(); + if (Optional.IsCollectionDefined(TargetLocations)) + { + writer.WritePropertyName("targetLocations"u8); + writer.WriteStartArray(); + foreach (var item in TargetLocations) + { + writer.WriteObjectValue(item, options); + } + writer.WriteEndArray(); + } + if (Optional.IsDefined(ExcludeFromLatest)) + { + writer.WritePropertyName("excludeFromLatest"u8); + writer.WriteBooleanValue(ExcludeFromLatest.Value); + } + if (options.Format != "W" && Optional.IsDefined(PublishedOn)) + { + writer.WritePropertyName("publishedDate"u8); + writer.WriteStringValue(PublishedOn.Value, "O"); + } + if (options.Format != "W" && Optional.IsDefined(ProvisioningState)) + { + writer.WritePropertyName("provisioningState"u8); + writer.WriteStringValue(ProvisioningState.Value.ToString()); + } + if (options.Format != "W" && Optional.IsDefined(ReplicationStatus)) + { + writer.WritePropertyName("replicationStatus"u8); + writer.WriteObjectValue(ReplicationStatus, options); + } + if (Optional.IsDefined(Mode)) + { + writer.WritePropertyName("mode"u8); + writer.WriteStringValue(Mode.Value.ToString()); + } + if (Optional.IsDefined(DefaultAccess)) + { + writer.WritePropertyName("defaultAccess"u8); + writer.WriteStringValue(DefaultAccess.Value.ToString()); + } + if (Optional.IsDefined(Rules)) + { + writer.WritePropertyName("rules"u8); + writer.WriteObjectValue(Rules, options); + } + writer.WriteEndObject(); + } + + GalleryInVmAccessControlProfileVersionPatch IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(GalleryInVmAccessControlProfileVersionPatch)} does not support reading '{format}' format."); + } + + using JsonDocument document = JsonDocument.ParseValue(ref reader); + return DeserializeGalleryInVmAccessControlProfileVersionPatch(document.RootElement, options); + } + + internal static GalleryInVmAccessControlProfileVersionPatch DeserializeGalleryInVmAccessControlProfileVersionPatch(JsonElement element, ModelReaderWriterOptions options = null) + { + options ??= ModelSerializationExtensions.WireOptions; + + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + IDictionary tags = default; + ResourceIdentifier id = default; + string name = default; + ResourceType type = default; + SystemData systemData = default; + IList targetLocations = default; + bool? excludeFromLatest = default; + DateTimeOffset? publishedDate = default; + GalleryProvisioningState? provisioningState = default; + ReplicationStatus replicationStatus = default; + AccessControlRulesMode? mode = default; + EndpointAccess? defaultAccess = default; + AccessControlRules rules = default; + IDictionary serializedAdditionalRawData = default; + Dictionary rawDataDictionary = new Dictionary(); + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("tags"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + Dictionary dictionary = new Dictionary(); + foreach (var property0 in property.Value.EnumerateObject()) + { + dictionary.Add(property0.Name, property0.Value.GetString()); + } + tags = dictionary; + continue; + } + if (property.NameEquals("id"u8)) + { + id = new ResourceIdentifier(property.Value.GetString()); + continue; + } + if (property.NameEquals("name"u8)) + { + name = property.Value.GetString(); + continue; + } + if (property.NameEquals("type"u8)) + { + type = new ResourceType(property.Value.GetString()); + continue; + } + if (property.NameEquals("systemData"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + systemData = JsonSerializer.Deserialize(property.Value.GetRawText()); + continue; + } + if (property.NameEquals("properties"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + foreach (var property0 in property.Value.EnumerateObject()) + { + if (property0.NameEquals("targetLocations"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List array = new List(); + foreach (var item in property0.Value.EnumerateArray()) + { + array.Add(TargetRegion.DeserializeTargetRegion(item, options)); + } + targetLocations = array; + continue; + } + if (property0.NameEquals("excludeFromLatest"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + excludeFromLatest = property0.Value.GetBoolean(); + continue; + } + if (property0.NameEquals("publishedDate"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + publishedDate = property0.Value.GetDateTimeOffset("O"); + continue; + } + if (property0.NameEquals("provisioningState"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + provisioningState = new GalleryProvisioningState(property0.Value.GetString()); + continue; + } + if (property0.NameEquals("replicationStatus"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + replicationStatus = ReplicationStatus.DeserializeReplicationStatus(property0.Value, options); + continue; + } + if (property0.NameEquals("mode"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + mode = new AccessControlRulesMode(property0.Value.GetString()); + continue; + } + if (property0.NameEquals("defaultAccess"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + defaultAccess = new EndpointAccess(property0.Value.GetString()); + continue; + } + if (property0.NameEquals("rules"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + rules = AccessControlRules.DeserializeAccessControlRules(property0.Value, options); + continue; + } + } + continue; + } + if (options.Format != "W") + { + rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); + } + } + serializedAdditionalRawData = rawDataDictionary; + return new GalleryInVmAccessControlProfileVersionPatch( + id, + name, + type, + systemData, + targetLocations ?? new ChangeTrackingList(), + excludeFromLatest, + publishedDate, + provisioningState, + replicationStatus, + mode, + defaultAccess, + rules, + tags ?? new ChangeTrackingDictionary(), + serializedAdditionalRawData); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + return ModelReaderWriter.Write(this, options); + default: + throw new FormatException($"The model {nameof(GalleryInVmAccessControlProfileVersionPatch)} does not support writing '{options.Format}' format."); + } + } + + GalleryInVmAccessControlProfileVersionPatch IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + { + using JsonDocument document = JsonDocument.Parse(data); + return DeserializeGalleryInVmAccessControlProfileVersionPatch(document.RootElement, options); + } + default: + throw new FormatException($"The model {nameof(GalleryInVmAccessControlProfileVersionPatch)} does not support reading '{options.Format}' format."); + } + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryInVmAccessControlProfileVersionPatch.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryInVmAccessControlProfileVersionPatch.cs new file mode 100644 index 000000000000..74686907267a --- /dev/null +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryInVmAccessControlProfileVersionPatch.cs @@ -0,0 +1,105 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; +using Azure.Core; +using Azure.ResourceManager.Models; + +namespace Azure.ResourceManager.Compute.Models +{ + /// Specifies information about the gallery inVMAccessControlProfile version that you want to update. + public partial class GalleryInVmAccessControlProfileVersionPatch : ResourceData + { + /// + /// Keeps track of any properties unknown to the library. + /// + /// To assign an object to the value of this property use . + /// + /// + /// To assign an already formatted json string to this property use . + /// + /// + /// Examples: + /// + /// + /// BinaryData.FromObjectAsJson("foo") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromString("\"foo\"") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromObjectAsJson(new { key = "value" }) + /// Creates a payload of { "key": "value" }. + /// + /// + /// BinaryData.FromString("{\"key\": \"value\"}") + /// Creates a payload of { "key": "value" }. + /// + /// + /// + /// + private IDictionary _serializedAdditionalRawData; + + /// Initializes a new instance of . + public GalleryInVmAccessControlProfileVersionPatch() + { + TargetLocations = new ChangeTrackingList(); + Tags = new ChangeTrackingDictionary(); + } + + /// Initializes a new instance of . + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// The target regions where the Resource Profile version is going to be replicated to. This property is updatable. + /// If set to true, Virtual Machines deployed from the latest version of the Resource Profile won't use this Profile version. + /// The timestamp for when the Resource Profile Version is published. + /// The provisioning state, which only appears in the response. + /// This is the replication status of the gallery image version. + /// This property allows you to specify whether the access control rules are in Audit mode, in Enforce mode or Disabled. Possible values are: 'Audit', 'Enforce' or 'Disabled'. + /// This property allows you to specify if the requests will be allowed to access the host endpoints. Possible values are: 'Allow', 'Deny'. + /// This is the Access Control Rules specification for an inVMAccessControlProfile version. + /// Resource tags. + /// Keeps track of any properties unknown to the library. + internal GalleryInVmAccessControlProfileVersionPatch(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IList targetLocations, bool? excludeFromLatest, DateTimeOffset? publishedOn, GalleryProvisioningState? provisioningState, ReplicationStatus replicationStatus, AccessControlRulesMode? mode, EndpointAccess? defaultAccess, AccessControlRules rules, IDictionary tags, IDictionary serializedAdditionalRawData) : base(id, name, resourceType, systemData) + { + TargetLocations = targetLocations; + ExcludeFromLatest = excludeFromLatest; + PublishedOn = publishedOn; + ProvisioningState = provisioningState; + ReplicationStatus = replicationStatus; + Mode = mode; + DefaultAccess = defaultAccess; + Rules = rules; + Tags = tags; + _serializedAdditionalRawData = serializedAdditionalRawData; + } + + /// The target regions where the Resource Profile version is going to be replicated to. This property is updatable. + public IList TargetLocations { get; } + /// If set to true, Virtual Machines deployed from the latest version of the Resource Profile won't use this Profile version. + public bool? ExcludeFromLatest { get; set; } + /// The timestamp for when the Resource Profile Version is published. + public DateTimeOffset? PublishedOn { get; } + /// The provisioning state, which only appears in the response. + public GalleryProvisioningState? ProvisioningState { get; } + /// This is the replication status of the gallery image version. + public ReplicationStatus ReplicationStatus { get; } + /// This property allows you to specify whether the access control rules are in Audit mode, in Enforce mode or Disabled. Possible values are: 'Audit', 'Enforce' or 'Disabled'. + public AccessControlRulesMode? Mode { get; set; } + /// This property allows you to specify if the requests will be allowed to access the host endpoints. Possible values are: 'Allow', 'Deny'. + public EndpointAccess? DefaultAccess { get; set; } + /// This is the Access Control Rules specification for an inVMAccessControlProfile version. + public AccessControlRules Rules { get; set; } + /// Resource tags. + public IDictionary Tags { get; } + } +} diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryList.Serialization.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryList.Serialization.cs index 51e673511a07..1b9eae481e12 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryList.Serialization.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryList.Serialization.cs @@ -46,6 +46,11 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit writer.WritePropertyName("nextLink"u8); writer.WriteStringValue(NextLink); } + if (Optional.IsDefined(SecurityProfile)) + { + writer.WritePropertyName("securityProfile"u8); + writer.WriteObjectValue(SecurityProfile, options); + } if (options.Format != "W" && _serializedAdditionalRawData != null) { foreach (var item in _serializedAdditionalRawData) @@ -85,6 +90,7 @@ internal static GalleryList DeserializeGalleryList(JsonElement element, ModelRea } IReadOnlyList value = default; string nextLink = default; + ImageVersionSecurityProfile securityProfile = default; IDictionary serializedAdditionalRawData = default; Dictionary rawDataDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) @@ -104,13 +110,22 @@ internal static GalleryList DeserializeGalleryList(JsonElement element, ModelRea nextLink = property.Value.GetString(); continue; } + if (property.NameEquals("securityProfile"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + securityProfile = ImageVersionSecurityProfile.DeserializeImageVersionSecurityProfile(property.Value, options); + continue; + } if (options.Format != "W") { rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); } } serializedAdditionalRawData = rawDataDictionary; - return new GalleryList(value, nextLink, serializedAdditionalRawData); + return new GalleryList(value, nextLink, securityProfile, serializedAdditionalRawData); } BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryList.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryList.cs index 2737ba127383..294038ea6ffe 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryList.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryList.cs @@ -59,11 +59,13 @@ internal GalleryList(IEnumerable value) /// Initializes a new instance of . /// A list of galleries. /// The uri to fetch the next page of galleries. Call ListNext() with this to fetch the next page of galleries. + /// The security profile of a gallery image version. /// Keeps track of any properties unknown to the library. - internal GalleryList(IReadOnlyList value, string nextLink, IDictionary serializedAdditionalRawData) + internal GalleryList(IReadOnlyList value, string nextLink, ImageVersionSecurityProfile securityProfile, IDictionary serializedAdditionalRawData) { Value = value; NextLink = nextLink; + SecurityProfile = securityProfile; _serializedAdditionalRawData = serializedAdditionalRawData; } @@ -76,5 +78,12 @@ internal GalleryList() public IReadOnlyList Value { get; } /// The uri to fetch the next page of galleries. Call ListNext() with this to fetch the next page of galleries. public string NextLink { get; } + /// The security profile of a gallery image version. + internal ImageVersionSecurityProfile SecurityProfile { get; } + /// Contains UEFI settings for the image version. + public GalleryImageVersionUefiSettings SecurityUefiSettings + { + get => SecurityProfile?.UefiSettings; + } } } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryPatch.Serialization.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryPatch.Serialization.cs index 6de50076e849..ccedf4bc4bef 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryPatch.Serialization.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryPatch.Serialization.cs @@ -36,6 +36,11 @@ protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWri } base.JsonModelWriteCore(writer, options); + if (Optional.IsDefined(Identity)) + { + writer.WritePropertyName("identity"u8); + JsonSerializer.Serialize(writer, Identity); + } if (Optional.IsCollectionDefined(Tags)) { writer.WritePropertyName("tags"u8); @@ -102,6 +107,7 @@ internal static GalleryPatch DeserializeGalleryPatch(JsonElement element, ModelR { return null; } + ManagedServiceIdentity identity = default; IDictionary tags = default; ResourceIdentifier id = default; string name = default; @@ -117,6 +123,15 @@ internal static GalleryPatch DeserializeGalleryPatch(JsonElement element, ModelR Dictionary rawDataDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) { + if (property.NameEquals("identity"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + identity = JsonSerializer.Deserialize(property.Value.GetRawText()); + continue; + } if (property.NameEquals("tags"u8)) { if (property.Value.ValueKind == JsonValueKind.Null) @@ -228,6 +243,7 @@ internal static GalleryPatch DeserializeGalleryPatch(JsonElement element, ModelR name, type, systemData, + identity, description, identifier, provisioningState, diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryPatch.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryPatch.cs index f120ba0a84eb..1771e244f69a 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryPatch.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryPatch.cs @@ -58,6 +58,7 @@ public GalleryPatch() /// The name. /// The resourceType. /// The systemData. + /// The identity of the gallery, if configured. /// The description of this Shared Image Gallery resource. This property is updatable. /// Describes the gallery unique name. /// The provisioning state, which only appears in the response. @@ -66,8 +67,9 @@ public GalleryPatch() /// Sharing status of current gallery. /// Resource tags. /// Keeps track of any properties unknown to the library. - internal GalleryPatch(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, string description, GalleryIdentifier identifier, GalleryProvisioningState? provisioningState, SharingProfile sharingProfile, SoftDeletePolicy softDeletePolicy, SharingStatus sharingStatus, IDictionary tags, IDictionary serializedAdditionalRawData) : base(id, name, resourceType, systemData) + internal GalleryPatch(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, ManagedServiceIdentity identity, string description, GalleryIdentifier identifier, GalleryProvisioningState? provisioningState, SharingProfile sharingProfile, SoftDeletePolicy softDeletePolicy, SharingStatus sharingStatus, IDictionary tags, IDictionary serializedAdditionalRawData) : base(id, name, resourceType, systemData) { + Identity = identity; Description = description; Identifier = identifier; ProvisioningState = provisioningState; @@ -78,6 +80,8 @@ internal GalleryPatch(ResourceIdentifier id, string name, ResourceType resourceT _serializedAdditionalRawData = serializedAdditionalRawData; } + /// The identity of the gallery, if configured. + public ManagedServiceIdentity Identity { get; set; } /// The description of this Shared Image Gallery resource. This property is updatable. public string Description { get; set; } /// Describes the gallery unique name. diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryResourceProfilePropertiesBase.Serialization.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryResourceProfilePropertiesBase.Serialization.cs new file mode 100644 index 000000000000..4de85dfa8fd0 --- /dev/null +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryResourceProfilePropertiesBase.Serialization.cs @@ -0,0 +1,133 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.Compute.Models +{ + public partial class GalleryResourceProfilePropertiesBase : IUtf8JsonSerializable, IJsonModel + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); + + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStartObject(); + JsonModelWriteCore(writer, options); + writer.WriteEndObject(); + } + + /// The JSON writer. + /// The client options for reading and writing models. + protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(GalleryResourceProfilePropertiesBase)} does not support writing '{format}' format."); + } + + if (options.Format != "W" && Optional.IsDefined(ProvisioningState)) + { + writer.WritePropertyName("provisioningState"u8); + writer.WriteStringValue(ProvisioningState.Value.ToString()); + } + if (options.Format != "W" && _serializedAdditionalRawData != null) + { + foreach (var item in _serializedAdditionalRawData) + { + writer.WritePropertyName(item.Key); +#if NET6_0_OR_GREATER + writer.WriteRawValue(item.Value); +#else + using (JsonDocument document = JsonDocument.Parse(item.Value)) + { + JsonSerializer.Serialize(writer, document.RootElement); + } +#endif + } + } + } + + GalleryResourceProfilePropertiesBase IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(GalleryResourceProfilePropertiesBase)} does not support reading '{format}' format."); + } + + using JsonDocument document = JsonDocument.ParseValue(ref reader); + return DeserializeGalleryResourceProfilePropertiesBase(document.RootElement, options); + } + + internal static GalleryResourceProfilePropertiesBase DeserializeGalleryResourceProfilePropertiesBase(JsonElement element, ModelReaderWriterOptions options = null) + { + options ??= ModelSerializationExtensions.WireOptions; + + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + GalleryProvisioningState? provisioningState = default; + IDictionary serializedAdditionalRawData = default; + Dictionary rawDataDictionary = new Dictionary(); + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("provisioningState"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + provisioningState = new GalleryProvisioningState(property.Value.GetString()); + continue; + } + if (options.Format != "W") + { + rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); + } + } + serializedAdditionalRawData = rawDataDictionary; + return new GalleryResourceProfilePropertiesBase(provisioningState, serializedAdditionalRawData); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + return ModelReaderWriter.Write(this, options); + default: + throw new FormatException($"The model {nameof(GalleryResourceProfilePropertiesBase)} does not support writing '{options.Format}' format."); + } + } + + GalleryResourceProfilePropertiesBase IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + { + using JsonDocument document = JsonDocument.Parse(data); + return DeserializeGalleryResourceProfilePropertiesBase(document.RootElement, options); + } + default: + throw new FormatException($"The model {nameof(GalleryResourceProfilePropertiesBase)} does not support reading '{options.Format}' format."); + } + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryResourceProfilePropertiesBase.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryResourceProfilePropertiesBase.cs new file mode 100644 index 000000000000..9973bf3bac33 --- /dev/null +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryResourceProfilePropertiesBase.cs @@ -0,0 +1,65 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; + +namespace Azure.ResourceManager.Compute.Models +{ + /// The properties of a gallery ResourceProfile. + public partial class GalleryResourceProfilePropertiesBase + { + /// + /// Keeps track of any properties unknown to the library. + /// + /// To assign an object to the value of this property use . + /// + /// + /// To assign an already formatted json string to this property use . + /// + /// + /// Examples: + /// + /// + /// BinaryData.FromObjectAsJson("foo") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromString("\"foo\"") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromObjectAsJson(new { key = "value" }) + /// Creates a payload of { "key": "value" }. + /// + /// + /// BinaryData.FromString("{\"key\": \"value\"}") + /// Creates a payload of { "key": "value" }. + /// + /// + /// + /// + private protected IDictionary _serializedAdditionalRawData; + + /// Initializes a new instance of . + public GalleryResourceProfilePropertiesBase() + { + } + + /// Initializes a new instance of . + /// The provisioning state, which only appears in the response. + /// Keeps track of any properties unknown to the library. + internal GalleryResourceProfilePropertiesBase(GalleryProvisioningState? provisioningState, IDictionary serializedAdditionalRawData) + { + ProvisioningState = provisioningState; + _serializedAdditionalRawData = serializedAdditionalRawData; + } + + /// The provisioning state, which only appears in the response. + public GalleryProvisioningState? ProvisioningState { get; } + } +} diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GallerySoftDeletedResource.Serialization.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GallerySoftDeletedResource.Serialization.cs new file mode 100644 index 000000000000..c86334a98756 --- /dev/null +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GallerySoftDeletedResource.Serialization.cs @@ -0,0 +1,220 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; +using Azure.ResourceManager.Models; + +namespace Azure.ResourceManager.Compute.Models +{ + public partial class GallerySoftDeletedResource : IUtf8JsonSerializable, IJsonModel + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); + + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStartObject(); + JsonModelWriteCore(writer, options); + writer.WriteEndObject(); + } + + /// The JSON writer. + /// The client options for reading and writing models. + protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(GallerySoftDeletedResource)} does not support writing '{format}' format."); + } + + base.JsonModelWriteCore(writer, options); + writer.WritePropertyName("properties"u8); + writer.WriteStartObject(); + if (Optional.IsDefined(ResourceArmId)) + { + writer.WritePropertyName("resourceArmId"u8); + writer.WriteStringValue(ResourceArmId); + } + if (Optional.IsDefined(SoftDeletedArtifactType)) + { + writer.WritePropertyName("softDeletedArtifactType"u8); + writer.WriteStringValue(SoftDeletedArtifactType.Value.ToString()); + } + if (Optional.IsDefined(SoftDeletedTime)) + { + writer.WritePropertyName("softDeletedTime"u8); + writer.WriteStringValue(SoftDeletedTime); + } + writer.WriteEndObject(); + } + + GallerySoftDeletedResource IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(GallerySoftDeletedResource)} does not support reading '{format}' format."); + } + + using JsonDocument document = JsonDocument.ParseValue(ref reader); + return DeserializeGallerySoftDeletedResource(document.RootElement, options); + } + + internal static GallerySoftDeletedResource DeserializeGallerySoftDeletedResource(JsonElement element, ModelReaderWriterOptions options = null) + { + options ??= ModelSerializationExtensions.WireOptions; + + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + IDictionary tags = default; + AzureLocation location = default; + ResourceIdentifier id = default; + string name = default; + ResourceType type = default; + SystemData systemData = default; + ResourceIdentifier resourceArmId = default; + SoftDeletedArtifactType? softDeletedArtifactType = default; + string softDeletedTime = default; + IDictionary serializedAdditionalRawData = default; + Dictionary rawDataDictionary = new Dictionary(); + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("tags"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + Dictionary dictionary = new Dictionary(); + foreach (var property0 in property.Value.EnumerateObject()) + { + dictionary.Add(property0.Name, property0.Value.GetString()); + } + tags = dictionary; + continue; + } + if (property.NameEquals("location"u8)) + { + location = new AzureLocation(property.Value.GetString()); + continue; + } + if (property.NameEquals("id"u8)) + { + id = new ResourceIdentifier(property.Value.GetString()); + continue; + } + if (property.NameEquals("name"u8)) + { + name = property.Value.GetString(); + continue; + } + if (property.NameEquals("type"u8)) + { + type = new ResourceType(property.Value.GetString()); + continue; + } + if (property.NameEquals("systemData"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + systemData = JsonSerializer.Deserialize(property.Value.GetRawText()); + continue; + } + if (property.NameEquals("properties"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + foreach (var property0 in property.Value.EnumerateObject()) + { + if (property0.NameEquals("resourceArmId"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + resourceArmId = new ResourceIdentifier(property0.Value.GetString()); + continue; + } + if (property0.NameEquals("softDeletedArtifactType"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + softDeletedArtifactType = new SoftDeletedArtifactType(property0.Value.GetString()); + continue; + } + if (property0.NameEquals("softDeletedTime"u8)) + { + softDeletedTime = property0.Value.GetString(); + continue; + } + } + continue; + } + if (options.Format != "W") + { + rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); + } + } + serializedAdditionalRawData = rawDataDictionary; + return new GallerySoftDeletedResource( + id, + name, + type, + systemData, + tags ?? new ChangeTrackingDictionary(), + location, + resourceArmId, + softDeletedArtifactType, + softDeletedTime, + serializedAdditionalRawData); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + return ModelReaderWriter.Write(this, options); + default: + throw new FormatException($"The model {nameof(GallerySoftDeletedResource)} does not support writing '{options.Format}' format."); + } + } + + GallerySoftDeletedResource IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + { + using JsonDocument document = JsonDocument.Parse(data); + return DeserializeGallerySoftDeletedResource(document.RootElement, options); + } + default: + throw new FormatException($"The model {nameof(GallerySoftDeletedResource)} does not support reading '{options.Format}' format."); + } + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GallerySoftDeletedResource.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GallerySoftDeletedResource.cs new file mode 100644 index 000000000000..9ea36d475596 --- /dev/null +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GallerySoftDeletedResource.cs @@ -0,0 +1,87 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; +using Azure.Core; +using Azure.ResourceManager.Models; + +namespace Azure.ResourceManager.Compute.Models +{ + /// The details information of soft-deleted resource. + public partial class GallerySoftDeletedResource : TrackedResourceData + { + /// + /// Keeps track of any properties unknown to the library. + /// + /// To assign an object to the value of this property use . + /// + /// + /// To assign an already formatted json string to this property use . + /// + /// + /// Examples: + /// + /// + /// BinaryData.FromObjectAsJson("foo") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromString("\"foo\"") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromObjectAsJson(new { key = "value" }) + /// Creates a payload of { "key": "value" }. + /// + /// + /// BinaryData.FromString("{\"key\": \"value\"}") + /// Creates a payload of { "key": "value" }. + /// + /// + /// + /// + private IDictionary _serializedAdditionalRawData; + + /// Initializes a new instance of . + /// The location. + public GallerySoftDeletedResource(AzureLocation location) : base(location) + { + } + + /// Initializes a new instance of . + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// The tags. + /// The location. + /// arm id of the soft-deleted resource. + /// artifact type of the soft-deleted resource. + /// The timestamp for when the resource is soft-deleted. In dateTime offset format. + /// Keeps track of any properties unknown to the library. + internal GallerySoftDeletedResource(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary tags, AzureLocation location, ResourceIdentifier resourceArmId, SoftDeletedArtifactType? softDeletedArtifactType, string softDeletedTime, IDictionary serializedAdditionalRawData) : base(id, name, resourceType, systemData, tags, location) + { + ResourceArmId = resourceArmId; + SoftDeletedArtifactType = softDeletedArtifactType; + SoftDeletedTime = softDeletedTime; + _serializedAdditionalRawData = serializedAdditionalRawData; + } + + /// Initializes a new instance of for deserialization. + internal GallerySoftDeletedResource() + { + } + + /// arm id of the soft-deleted resource. + public ResourceIdentifier ResourceArmId { get; set; } + /// artifact type of the soft-deleted resource. + public SoftDeletedArtifactType? SoftDeletedArtifactType { get; set; } + /// The timestamp for when the resource is soft-deleted. In dateTime offset format. + public string SoftDeletedTime { get; set; } + } +} diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GallerySoftDeletedResourceList.Serialization.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GallerySoftDeletedResourceList.Serialization.cs new file mode 100644 index 000000000000..c9da2576b44d --- /dev/null +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GallerySoftDeletedResourceList.Serialization.cs @@ -0,0 +1,147 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.Compute.Models +{ + internal partial class GallerySoftDeletedResourceList : IUtf8JsonSerializable, IJsonModel + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); + + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStartObject(); + JsonModelWriteCore(writer, options); + writer.WriteEndObject(); + } + + /// The JSON writer. + /// The client options for reading and writing models. + protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(GallerySoftDeletedResourceList)} does not support writing '{format}' format."); + } + + writer.WritePropertyName("value"u8); + writer.WriteStartArray(); + foreach (var item in Value) + { + writer.WriteObjectValue(item, options); + } + writer.WriteEndArray(); + if (Optional.IsDefined(NextLink)) + { + writer.WritePropertyName("nextLink"u8); + writer.WriteStringValue(NextLink); + } + if (options.Format != "W" && _serializedAdditionalRawData != null) + { + foreach (var item in _serializedAdditionalRawData) + { + writer.WritePropertyName(item.Key); +#if NET6_0_OR_GREATER + writer.WriteRawValue(item.Value); +#else + using (JsonDocument document = JsonDocument.Parse(item.Value)) + { + JsonSerializer.Serialize(writer, document.RootElement); + } +#endif + } + } + } + + GallerySoftDeletedResourceList IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(GallerySoftDeletedResourceList)} does not support reading '{format}' format."); + } + + using JsonDocument document = JsonDocument.ParseValue(ref reader); + return DeserializeGallerySoftDeletedResourceList(document.RootElement, options); + } + + internal static GallerySoftDeletedResourceList DeserializeGallerySoftDeletedResourceList(JsonElement element, ModelReaderWriterOptions options = null) + { + options ??= ModelSerializationExtensions.WireOptions; + + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + IReadOnlyList value = default; + string nextLink = default; + IDictionary serializedAdditionalRawData = default; + Dictionary rawDataDictionary = new Dictionary(); + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("value"u8)) + { + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(GallerySoftDeletedResource.DeserializeGallerySoftDeletedResource(item, options)); + } + value = array; + continue; + } + if (property.NameEquals("nextLink"u8)) + { + nextLink = property.Value.GetString(); + continue; + } + if (options.Format != "W") + { + rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); + } + } + serializedAdditionalRawData = rawDataDictionary; + return new GallerySoftDeletedResourceList(value, nextLink, serializedAdditionalRawData); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + return ModelReaderWriter.Write(this, options); + default: + throw new FormatException($"The model {nameof(GallerySoftDeletedResourceList)} does not support writing '{options.Format}' format."); + } + } + + GallerySoftDeletedResourceList IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + { + using JsonDocument document = JsonDocument.Parse(data); + return DeserializeGallerySoftDeletedResourceList(document.RootElement, options); + } + default: + throw new FormatException($"The model {nameof(GallerySoftDeletedResourceList)} does not support reading '{options.Format}' format."); + } + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GallerySoftDeletedResourceList.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GallerySoftDeletedResourceList.cs new file mode 100644 index 000000000000..f6432d40966f --- /dev/null +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GallerySoftDeletedResourceList.cs @@ -0,0 +1,80 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; +using System.Linq; + +namespace Azure.ResourceManager.Compute.Models +{ + /// The List Soft-deleted Resources operation response. + internal partial class GallerySoftDeletedResourceList + { + /// + /// Keeps track of any properties unknown to the library. + /// + /// To assign an object to the value of this property use . + /// + /// + /// To assign an already formatted json string to this property use . + /// + /// + /// Examples: + /// + /// + /// BinaryData.FromObjectAsJson("foo") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromString("\"foo\"") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromObjectAsJson(new { key = "value" }) + /// Creates a payload of { "key": "value" }. + /// + /// + /// BinaryData.FromString("{\"key\": \"value\"}") + /// Creates a payload of { "key": "value" }. + /// + /// + /// + /// + private IDictionary _serializedAdditionalRawData; + + /// Initializes a new instance of . + /// A list of soft-deleted resources. + /// is null. + internal GallerySoftDeletedResourceList(IEnumerable value) + { + Argument.AssertNotNull(value, nameof(value)); + + Value = value.ToList(); + } + + /// Initializes a new instance of . + /// A list of soft-deleted resources. + /// The uri to fetch the next page of soft-deleted resources. Call ListNext() with this to fetch the next page of soft-deleted resources. + /// Keeps track of any properties unknown to the library. + internal GallerySoftDeletedResourceList(IReadOnlyList value, string nextLink, IDictionary serializedAdditionalRawData) + { + Value = value; + NextLink = nextLink; + _serializedAdditionalRawData = serializedAdditionalRawData; + } + + /// Initializes a new instance of for deserialization. + internal GallerySoftDeletedResourceList() + { + } + + /// A list of soft-deleted resources. + public IReadOnlyList Value { get; } + /// The uri to fetch the next page of soft-deleted resources. Call ListNext() with this to fetch the next page of soft-deleted resources. + public string NextLink { get; } + } +} diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/ImageStorageAccountType.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/ImageStorageAccountType.cs index 70f823b49a1f..8722f1adea44 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/ImageStorageAccountType.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/ImageStorageAccountType.cs @@ -25,6 +25,7 @@ public ImageStorageAccountType(string value) private const string StandardLrsValue = "Standard_LRS"; private const string StandardZrsValue = "Standard_ZRS"; private const string PremiumLrsValue = "Premium_LRS"; + private const string PremiumV2LrsValue = "PremiumV2_LRS"; /// Standard_LRS. public static ImageStorageAccountType StandardLrs { get; } = new ImageStorageAccountType(StandardLrsValue); @@ -32,6 +33,8 @@ public ImageStorageAccountType(string value) public static ImageStorageAccountType StandardZrs { get; } = new ImageStorageAccountType(StandardZrsValue); /// Premium_LRS. public static ImageStorageAccountType PremiumLrs { get; } = new ImageStorageAccountType(PremiumLrsValue); + /// PremiumV2_LRS. + public static ImageStorageAccountType PremiumV2Lrs { get; } = new ImageStorageAccountType(PremiumV2LrsValue); /// Determines if two values are the same. public static bool operator ==(ImageStorageAccountType left, ImageStorageAccountType right) => left.Equals(right); /// Determines if two values are not the same. diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/PlatformAttribute.Serialization.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/PlatformAttribute.Serialization.cs new file mode 100644 index 000000000000..770eaac1fde1 --- /dev/null +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/PlatformAttribute.Serialization.cs @@ -0,0 +1,140 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.Compute.Models +{ + public partial class PlatformAttribute : IUtf8JsonSerializable, IJsonModel + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); + + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStartObject(); + JsonModelWriteCore(writer, options); + writer.WriteEndObject(); + } + + /// The JSON writer. + /// The client options for reading and writing models. + protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(PlatformAttribute)} does not support writing '{format}' format."); + } + + if (options.Format != "W" && Optional.IsDefined(Name)) + { + writer.WritePropertyName("name"u8); + writer.WriteStringValue(Name); + } + if (options.Format != "W" && Optional.IsDefined(Value)) + { + writer.WritePropertyName("value"u8); + writer.WriteStringValue(Value); + } + if (options.Format != "W" && _serializedAdditionalRawData != null) + { + foreach (var item in _serializedAdditionalRawData) + { + writer.WritePropertyName(item.Key); +#if NET6_0_OR_GREATER + writer.WriteRawValue(item.Value); +#else + using (JsonDocument document = JsonDocument.Parse(item.Value)) + { + JsonSerializer.Serialize(writer, document.RootElement); + } +#endif + } + } + } + + PlatformAttribute IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(PlatformAttribute)} does not support reading '{format}' format."); + } + + using JsonDocument document = JsonDocument.ParseValue(ref reader); + return DeserializePlatformAttribute(document.RootElement, options); + } + + internal static PlatformAttribute DeserializePlatformAttribute(JsonElement element, ModelReaderWriterOptions options = null) + { + options ??= ModelSerializationExtensions.WireOptions; + + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + string name = default; + string value = default; + IDictionary serializedAdditionalRawData = default; + Dictionary rawDataDictionary = new Dictionary(); + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("name"u8)) + { + name = property.Value.GetString(); + continue; + } + if (property.NameEquals("value"u8)) + { + value = property.Value.GetString(); + continue; + } + if (options.Format != "W") + { + rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); + } + } + serializedAdditionalRawData = rawDataDictionary; + return new PlatformAttribute(name, value, serializedAdditionalRawData); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + return ModelReaderWriter.Write(this, options); + default: + throw new FormatException($"The model {nameof(PlatformAttribute)} does not support writing '{options.Format}' format."); + } + } + + PlatformAttribute IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + { + using JsonDocument document = JsonDocument.Parse(data); + return DeserializePlatformAttribute(document.RootElement, options); + } + default: + throw new FormatException($"The model {nameof(PlatformAttribute)} does not support reading '{options.Format}' format."); + } + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/PlatformAttribute.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/PlatformAttribute.cs new file mode 100644 index 000000000000..864a930b57a1 --- /dev/null +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/PlatformAttribute.cs @@ -0,0 +1,69 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; + +namespace Azure.ResourceManager.Compute.Models +{ + /// This is the platform attribute of the image version. + public partial class PlatformAttribute + { + /// + /// Keeps track of any properties unknown to the library. + /// + /// To assign an object to the value of this property use . + /// + /// + /// To assign an already formatted json string to this property use . + /// + /// + /// Examples: + /// + /// + /// BinaryData.FromObjectAsJson("foo") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromString("\"foo\"") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromObjectAsJson(new { key = "value" }) + /// Creates a payload of { "key": "value" }. + /// + /// + /// BinaryData.FromString("{\"key\": \"value\"}") + /// Creates a payload of { "key": "value" }. + /// + /// + /// + /// + private IDictionary _serializedAdditionalRawData; + + /// Initializes a new instance of . + internal PlatformAttribute() + { + } + + /// Initializes a new instance of . + /// This property specifies the name of the platformAttribute. It is read-only. + /// This property specifies the value of the corresponding name property. It is read-only. + /// Keeps track of any properties unknown to the library. + internal PlatformAttribute(string name, string value, IDictionary serializedAdditionalRawData) + { + Name = name; + Value = value; + _serializedAdditionalRawData = serializedAdditionalRawData; + } + + /// This property specifies the name of the platformAttribute. It is read-only. + public string Name { get; } + /// This property specifies the value of the corresponding name property. It is read-only. + public string Value { get; } + } +} diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/SoftDeletedArtifactType.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/SoftDeletedArtifactType.cs new file mode 100644 index 000000000000..7b45414644ae --- /dev/null +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/SoftDeletedArtifactType.cs @@ -0,0 +1,48 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.ResourceManager.Compute.Models +{ + /// artifact type of the soft-deleted resource. + public readonly partial struct SoftDeletedArtifactType : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public SoftDeletedArtifactType(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string ImagesValue = "Images"; + + /// Images. + public static SoftDeletedArtifactType Images { get; } = new SoftDeletedArtifactType(ImagesValue); + /// Determines if two values are the same. + public static bool operator ==(SoftDeletedArtifactType left, SoftDeletedArtifactType right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(SoftDeletedArtifactType left, SoftDeletedArtifactType right) => !left.Equals(right); + /// Converts a to a . + public static implicit operator SoftDeletedArtifactType(string value) => new SoftDeletedArtifactType(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is SoftDeletedArtifactType other && Equals(other); + /// + public bool Equals(SoftDeletedArtifactType 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/compute/Azure.ResourceManager.Compute/src/Generated/Models/SupportedOperatingSystemType.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/SupportedOperatingSystemType.cs index d61b646253ec..ff8ffe0a8d7f 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/SupportedOperatingSystemType.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/SupportedOperatingSystemType.cs @@ -7,7 +7,7 @@ namespace Azure.ResourceManager.Compute.Models { - /// This property allows you to specify the supported type of the OS that application is built for. Possible values are: **Windows,** **Linux.**. + /// The Operating System type. public enum SupportedOperatingSystemType { /// Windows. diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/TargetRegion.Serialization.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/TargetRegion.Serialization.cs index 56a296db477a..eaaa0b3d036a 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/TargetRegion.Serialization.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/TargetRegion.Serialization.cs @@ -56,6 +56,16 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit writer.WritePropertyName("excludeFromLatest"u8); writer.WriteBooleanValue(IsExcludedFromLatest.Value); } + if (Optional.IsCollectionDefined(AdditionalReplicaSets)) + { + writer.WritePropertyName("additionalReplicaSets"u8); + writer.WriteStartArray(); + foreach (var item in AdditionalReplicaSets) + { + writer.WriteObjectValue(item, options); + } + writer.WriteEndArray(); + } if (options.Format != "W" && _serializedAdditionalRawData != null) { foreach (var item in _serializedAdditionalRawData) @@ -98,6 +108,7 @@ internal static TargetRegion DeserializeTargetRegion(JsonElement element, ModelR ImageStorageAccountType? storageAccountType = default; EncryptionImages encryption = default; bool? excludeFromLatest = default; + IList additionalReplicaSets = default; IDictionary serializedAdditionalRawData = default; Dictionary rawDataDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) @@ -143,6 +154,20 @@ internal static TargetRegion DeserializeTargetRegion(JsonElement element, ModelR excludeFromLatest = property.Value.GetBoolean(); continue; } + if (property.NameEquals("additionalReplicaSets"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(AdditionalReplicaSet.DeserializeAdditionalReplicaSet(item, options)); + } + additionalReplicaSets = array; + continue; + } if (options.Format != "W") { rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); @@ -155,6 +180,7 @@ internal static TargetRegion DeserializeTargetRegion(JsonElement element, ModelR storageAccountType, encryption, excludeFromLatest, + additionalReplicaSets ?? new ChangeTrackingList(), serializedAdditionalRawData); } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/TargetRegion.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/TargetRegion.cs index 09e0054dd4d4..7e42a69f0db0 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/TargetRegion.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/TargetRegion.cs @@ -53,6 +53,7 @@ public TargetRegion(string name) Argument.AssertNotNull(name, nameof(name)); Name = name; + AdditionalReplicaSets = new ChangeTrackingList(); } /// Initializes a new instance of . @@ -61,14 +62,16 @@ public TargetRegion(string name) /// Specifies the storage account type to be used to store the image. This property is not updatable. /// Optional. Allows users to provide customer managed keys for encrypting the OS and data disks in the gallery artifact. /// Contains the flag setting to hide an image when users specify version='latest'. + /// List of storage sku with replica count to create direct drive replicas. /// Keeps track of any properties unknown to the library. - internal TargetRegion(string name, int? regionalReplicaCount, ImageStorageAccountType? storageAccountType, EncryptionImages encryption, bool? isExcludedFromLatest, IDictionary serializedAdditionalRawData) + internal TargetRegion(string name, int? regionalReplicaCount, ImageStorageAccountType? storageAccountType, EncryptionImages encryption, bool? isExcludedFromLatest, IList additionalReplicaSets, IDictionary serializedAdditionalRawData) { Name = name; RegionalReplicaCount = regionalReplicaCount; StorageAccountType = storageAccountType; Encryption = encryption; IsExcludedFromLatest = isExcludedFromLatest; + AdditionalReplicaSets = additionalReplicaSets; _serializedAdditionalRawData = serializedAdditionalRawData; } @@ -87,5 +90,7 @@ internal TargetRegion() public EncryptionImages Encryption { get; set; } /// Contains the flag setting to hide an image when users specify version='latest'. public bool? IsExcludedFromLatest { get; set; } + /// List of storage sku with replica count to create direct drive replicas. + public IList AdditionalReplicaSets { get; } } } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/UserArtifactSettings.Serialization.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/UserArtifactSettings.Serialization.cs index 8a2daf5fb1fc..1cf44086721c 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/UserArtifactSettings.Serialization.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/UserArtifactSettings.Serialization.cs @@ -44,6 +44,11 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit writer.WritePropertyName("configFileName"u8); writer.WriteStringValue(ConfigFileName); } + if (Optional.IsDefined(ScriptBehaviorAfterReboot)) + { + writer.WritePropertyName("scriptBehaviorAfterReboot"u8); + writer.WriteStringValue(ScriptBehaviorAfterReboot.Value.ToString()); + } if (options.Format != "W" && _serializedAdditionalRawData != null) { foreach (var item in _serializedAdditionalRawData) @@ -83,6 +88,7 @@ internal static UserArtifactSettings DeserializeUserArtifactSettings(JsonElement } string packageFileName = default; string configFileName = default; + GalleryApplicationScriptRebootBehavior? scriptBehaviorAfterReboot = default; IDictionary serializedAdditionalRawData = default; Dictionary rawDataDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) @@ -97,13 +103,22 @@ internal static UserArtifactSettings DeserializeUserArtifactSettings(JsonElement configFileName = property.Value.GetString(); continue; } + if (property.NameEquals("scriptBehaviorAfterReboot"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + scriptBehaviorAfterReboot = new GalleryApplicationScriptRebootBehavior(property.Value.GetString()); + continue; + } if (options.Format != "W") { rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); } } serializedAdditionalRawData = rawDataDictionary; - return new UserArtifactSettings(packageFileName, configFileName, serializedAdditionalRawData); + return new UserArtifactSettings(packageFileName, configFileName, scriptBehaviorAfterReboot, serializedAdditionalRawData); } BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/UserArtifactSettings.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/UserArtifactSettings.cs index 01a1623a5a10..0de77c92adf5 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/UserArtifactSettings.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/UserArtifactSettings.cs @@ -53,11 +53,13 @@ public UserArtifactSettings() /// Initializes a new instance of . /// Optional. The name to assign the downloaded package file on the VM. This is limited to 4096 characters. If not specified, the package file will be named the same as the Gallery Application name. /// Optional. The name to assign the downloaded config file on the VM. This is limited to 4096 characters. If not specified, the config file will be named the Gallery Application name appended with "_config". + /// Optional. The action to be taken with regards to install/update/remove of the gallery application in the event of a reboot. /// Keeps track of any properties unknown to the library. - internal UserArtifactSettings(string packageFileName, string configFileName, IDictionary serializedAdditionalRawData) + internal UserArtifactSettings(string packageFileName, string configFileName, GalleryApplicationScriptRebootBehavior? scriptBehaviorAfterReboot, IDictionary serializedAdditionalRawData) { PackageFileName = packageFileName; ConfigFileName = configFileName; + ScriptBehaviorAfterReboot = scriptBehaviorAfterReboot; _serializedAdditionalRawData = serializedAdditionalRawData; } @@ -65,5 +67,7 @@ internal UserArtifactSettings(string packageFileName, string configFileName, IDi public string PackageFileName { get; set; } /// Optional. The name to assign the downloaded config file on the VM. This is limited to 4096 characters. If not specified, the config file will be named the Gallery Application name appended with "_config". public string ConfigFileName { get; set; } + /// Optional. The action to be taken with regards to install/update/remove of the gallery application in the event of a reboot. + public GalleryApplicationScriptRebootBehavior? ScriptBehaviorAfterReboot { get; set; } } } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/ValidationStatus.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/ValidationStatus.cs new file mode 100644 index 000000000000..34c74408ae78 --- /dev/null +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/ValidationStatus.cs @@ -0,0 +1,54 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.ResourceManager.Compute.Models +{ + /// This property specifies the status of the validationProfile of the image version. + public readonly partial struct ValidationStatus : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public ValidationStatus(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string UnknownValue = "Unknown"; + private const string FailedValue = "Failed"; + private const string SucceededValue = "Succeeded"; + + /// Unknown. + public static ValidationStatus Unknown { get; } = new ValidationStatus(UnknownValue); + /// Failed. + public static ValidationStatus Failed { get; } = new ValidationStatus(FailedValue); + /// Succeeded. + public static ValidationStatus Succeeded { get; } = new ValidationStatus(SucceededValue); + /// Determines if two values are the same. + public static bool operator ==(ValidationStatus left, ValidationStatus right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(ValidationStatus left, ValidationStatus right) => !left.Equals(right); + /// Converts a to a . + public static implicit operator ValidationStatus(string value) => new ValidationStatus(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is ValidationStatus other && Equals(other); + /// + public bool Equals(ValidationStatus 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/compute/Azure.ResourceManager.Compute/src/Generated/Models/ValidationsProfile.Serialization.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/ValidationsProfile.Serialization.cs new file mode 100644 index 000000000000..61e9d74fe435 --- /dev/null +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/ValidationsProfile.Serialization.cs @@ -0,0 +1,179 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.Compute.Models +{ + public partial class ValidationsProfile : IUtf8JsonSerializable, IJsonModel + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); + + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStartObject(); + JsonModelWriteCore(writer, options); + writer.WriteEndObject(); + } + + /// The JSON writer. + /// The client options for reading and writing models. + protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(ValidationsProfile)} does not support writing '{format}' format."); + } + + if (Optional.IsDefined(ValidationETag)) + { + writer.WritePropertyName("validationEtag"u8); + writer.WriteStringValue(ValidationETag); + } + if (Optional.IsCollectionDefined(ExecutedValidations)) + { + writer.WritePropertyName("executedValidations"u8); + writer.WriteStartArray(); + foreach (var item in ExecutedValidations) + { + writer.WriteObjectValue(item, options); + } + writer.WriteEndArray(); + } + if (Optional.IsCollectionDefined(PlatformAttributes)) + { + writer.WritePropertyName("platformAttributes"u8); + writer.WriteStartArray(); + foreach (var item in PlatformAttributes) + { + writer.WriteObjectValue(item, options); + } + writer.WriteEndArray(); + } + if (options.Format != "W" && _serializedAdditionalRawData != null) + { + foreach (var item in _serializedAdditionalRawData) + { + writer.WritePropertyName(item.Key); +#if NET6_0_OR_GREATER + writer.WriteRawValue(item.Value); +#else + using (JsonDocument document = JsonDocument.Parse(item.Value)) + { + JsonSerializer.Serialize(writer, document.RootElement); + } +#endif + } + } + } + + ValidationsProfile IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(ValidationsProfile)} does not support reading '{format}' format."); + } + + using JsonDocument document = JsonDocument.ParseValue(ref reader); + return DeserializeValidationsProfile(document.RootElement, options); + } + + internal static ValidationsProfile DeserializeValidationsProfile(JsonElement element, ModelReaderWriterOptions options = null) + { + options ??= ModelSerializationExtensions.WireOptions; + + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + string validationETag = default; + IReadOnlyList executedValidations = default; + IReadOnlyList platformAttributes = default; + IDictionary serializedAdditionalRawData = default; + Dictionary rawDataDictionary = new Dictionary(); + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("validationEtag"u8)) + { + validationETag = property.Value.GetString(); + continue; + } + if (property.NameEquals("executedValidations"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(ExecutedValidation.DeserializeExecutedValidation(item, options)); + } + executedValidations = array; + continue; + } + if (property.NameEquals("platformAttributes"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(PlatformAttribute.DeserializePlatformAttribute(item, options)); + } + platformAttributes = array; + continue; + } + if (options.Format != "W") + { + rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); + } + } + serializedAdditionalRawData = rawDataDictionary; + return new ValidationsProfile(validationETag, executedValidations ?? new ChangeTrackingList(), platformAttributes ?? new ChangeTrackingList(), serializedAdditionalRawData); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + return ModelReaderWriter.Write(this, options); + default: + throw new FormatException($"The model {nameof(ValidationsProfile)} does not support writing '{options.Format}' format."); + } + } + + ValidationsProfile IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + { + using JsonDocument document = JsonDocument.Parse(data); + return DeserializeValidationsProfile(document.RootElement, options); + } + default: + throw new FormatException($"The model {nameof(ValidationsProfile)} does not support reading '{options.Format}' format."); + } + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/ValidationsProfile.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/ValidationsProfile.cs new file mode 100644 index 000000000000..3e4754810bfd --- /dev/null +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/ValidationsProfile.cs @@ -0,0 +1,75 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; + +namespace Azure.ResourceManager.Compute.Models +{ + /// This is the validations profile of a Gallery Image Version. + public partial class ValidationsProfile + { + /// + /// Keeps track of any properties unknown to the library. + /// + /// To assign an object to the value of this property use . + /// + /// + /// To assign an already formatted json string to this property use . + /// + /// + /// Examples: + /// + /// + /// BinaryData.FromObjectAsJson("foo") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromString("\"foo\"") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromObjectAsJson(new { key = "value" }) + /// Creates a payload of { "key": "value" }. + /// + /// + /// BinaryData.FromString("{\"key\": \"value\"}") + /// Creates a payload of { "key": "value" }. + /// + /// + /// + /// + private IDictionary _serializedAdditionalRawData; + + /// Initializes a new instance of . + internal ValidationsProfile() + { + ExecutedValidations = new ChangeTrackingList(); + PlatformAttributes = new ChangeTrackingList(); + } + + /// Initializes a new instance of . + /// The published time of the image version. + /// + /// This specifies the pub, offer, sku and version of the image version metadata. + /// Keeps track of any properties unknown to the library. + internal ValidationsProfile(string validationETag, IReadOnlyList executedValidations, IReadOnlyList platformAttributes, IDictionary serializedAdditionalRawData) + { + ValidationETag = validationETag; + ExecutedValidations = executedValidations; + PlatformAttributes = platformAttributes; + _serializedAdditionalRawData = serializedAdditionalRawData; + } + + /// The published time of the image version. + public string ValidationETag { get; } + /// Gets the executed validations. + public IReadOnlyList ExecutedValidations { get; } + /// This specifies the pub, offer, sku and version of the image version metadata. + public IReadOnlyList PlatformAttributes { get; } + } +} diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineDataDisk.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineDataDisk.cs index 9be76cb9624b..af7e82ea8712 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineDataDisk.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineDataDisk.cs @@ -70,7 +70,7 @@ public VirtualMachineDataDisk(int lun, DiskCreateOptionType createOption) /// Specifies whether the data disk is in process of detachment from the VirtualMachine/VirtualMachineScaleset. /// Specifies the Read-Write IOPS for the managed disk when StorageAccountType is UltraSSD_LRS. Returned only for VirtualMachine ScaleSet VM disks. Can be updated only via updates to the VirtualMachine Scale Set. /// Specifies the bandwidth in MB per second for the managed disk when StorageAccountType is UltraSSD_LRS. Returned only for VirtualMachine ScaleSet VM disks. Can be updated only via updates to the VirtualMachine Scale Set. - /// Specifies the detach behavior to be used while detaching a disk or which is already in the process of detachment from the virtual machine. Supported values: **ForceDetach.** detachOption: **ForceDetach** is applicable only for managed data disks. If a previous detachment attempt of the data disk did not complete due to an unexpected failure from the virtual machine and the disk is still not released then use force-detach as a last resort option to detach the disk forcibly from the VM. All writes might not have been flushed when using this detach behavior. **This feature is still in preview** mode and is not supported for VirtualMachineScaleSet. To force-detach a data disk update toBeDetached to 'true' along with setting detachOption: 'ForceDetach'. + /// Specifies the detach behavior to be used while detaching a disk or which is already in the process of detachment from the virtual machine. Supported values: **ForceDetach.** detachOption: **ForceDetach** is applicable only for managed data disks. If a previous detachment attempt of the data disk did not complete due to an unexpected failure from the virtual machine and the disk is still not released then use force-detach as a last resort option to detach the disk forcibly from the VM. All writes might not have been flushed when using this detach behavior. To force-detach a data disk update toBeDetached to 'true' along with setting detachOption: 'ForceDetach'. /// Specifies whether data disk should be deleted or detached upon VM deletion. Possible values are: **Delete.** If this value is used, the data disk is deleted when VM is deleted. **Detach.** If this value is used, the data disk is retained after VM is deleted. The default value is set to **Detach**. /// Keeps track of any properties unknown to the library. internal VirtualMachineDataDisk(int lun, string name, VirtualHardDisk vhd, VirtualHardDisk image, CachingType? caching, bool? writeAcceleratorEnabled, DiskCreateOptionType createOption, int? diskSizeGB, VirtualMachineManagedDisk managedDisk, WritableSubResource sourceResource, bool? toBeDetached, long? diskIopsReadWrite, long? diskMBpsReadWrite, DiskDetachOptionType? detachOption, DiskDeleteOptionType? deleteOption, IDictionary serializedAdditionalRawData) @@ -160,7 +160,7 @@ public ResourceIdentifier SourceResourceId public long? DiskIopsReadWrite { get; } /// Specifies the bandwidth in MB per second for the managed disk when StorageAccountType is UltraSSD_LRS. Returned only for VirtualMachine ScaleSet VM disks. Can be updated only via updates to the VirtualMachine Scale Set. public long? DiskMBpsReadWrite { get; } - /// Specifies the detach behavior to be used while detaching a disk or which is already in the process of detachment from the virtual machine. Supported values: **ForceDetach.** detachOption: **ForceDetach** is applicable only for managed data disks. If a previous detachment attempt of the data disk did not complete due to an unexpected failure from the virtual machine and the disk is still not released then use force-detach as a last resort option to detach the disk forcibly from the VM. All writes might not have been flushed when using this detach behavior. **This feature is still in preview** mode and is not supported for VirtualMachineScaleSet. To force-detach a data disk update toBeDetached to 'true' along with setting detachOption: 'ForceDetach'. + /// Specifies the detach behavior to be used while detaching a disk or which is already in the process of detachment from the virtual machine. Supported values: **ForceDetach.** detachOption: **ForceDetach** is applicable only for managed data disks. If a previous detachment attempt of the data disk did not complete due to an unexpected failure from the virtual machine and the disk is still not released then use force-detach as a last resort option to detach the disk forcibly from the VM. All writes might not have been flushed when using this detach behavior. To force-detach a data disk update toBeDetached to 'true' along with setting detachOption: 'ForceDetach'. public DiskDetachOptionType? DetachOption { get; set; } /// Specifies whether data disk should be deleted or detached upon VM deletion. Possible values are: **Delete.** If this value is used, the data disk is deleted when VM is deleted. **Detach.** If this value is used, the data disk is retained after VM is deleted. The default value is set to **Detach**. public DiskDeleteOptionType? DeleteOption { get; set; } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/AvailabilitySetsRestOperations.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/AvailabilitySetsRestOperations.cs index b38415e8e3a3..e03610414f83 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/AvailabilitySetsRestOperations.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/AvailabilitySetsRestOperations.cs @@ -454,7 +454,7 @@ internal HttpMessage CreateListBySubscriptionRequest(string subscriptionId, stri /// Lists all availability sets in a subscription. /// Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. - /// The expand expression to apply to the operation. Allowed values are 'instanceView'. + /// The expand expression to apply to the operation. Allowed values are 'virtualMachines/$ref'. /// The cancellation token to use. /// is null. /// is an empty string, and was expected to be non-empty. @@ -480,7 +480,7 @@ public async Task> ListBySubscriptionAsync(s /// Lists all availability sets in a subscription. /// Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. - /// The expand expression to apply to the operation. Allowed values are 'instanceView'. + /// The expand expression to apply to the operation. Allowed values are 'virtualMachines/$ref'. /// The cancellation token to use. /// is null. /// is an empty string, and was expected to be non-empty. @@ -709,7 +709,7 @@ internal HttpMessage CreateListBySubscriptionNextPageRequest(string nextLink, st /// Lists all availability sets in a subscription. /// The URL to the next page of results. /// Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. - /// The expand expression to apply to the operation. Allowed values are 'instanceView'. + /// The expand expression to apply to the operation. Allowed values are 'virtualMachines/$ref'. /// The cancellation token to use. /// or is null. /// is an empty string, and was expected to be non-empty. @@ -737,7 +737,7 @@ public async Task> ListBySubscriptionNextPag /// Lists all availability sets in a subscription. /// The URL to the next page of results. /// Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. - /// The expand expression to apply to the operation. Allowed values are 'instanceView'. + /// The expand expression to apply to the operation. Allowed values are 'virtualMachines/$ref'. /// The cancellation token to use. /// or is null. /// is an empty string, and was expected to be non-empty. diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/CommunityGalleriesRestOperations.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/CommunityGalleriesRestOperations.cs index 775812e39cb8..a5eb8c6dc437 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/CommunityGalleriesRestOperations.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/CommunityGalleriesRestOperations.cs @@ -31,7 +31,7 @@ public CommunityGalleriesRestOperations(HttpPipeline pipeline, string applicatio { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-07-03"; + _apiVersion = apiVersion ?? "2024-03-03"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/CommunityGalleryImageVersionsRestOperations.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/CommunityGalleryImageVersionsRestOperations.cs index c31085d33dfb..ba8a6d28bd80 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/CommunityGalleryImageVersionsRestOperations.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/CommunityGalleryImageVersionsRestOperations.cs @@ -32,7 +32,7 @@ public CommunityGalleryImageVersionsRestOperations(HttpPipeline pipeline, string { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-07-03"; + _apiVersion = apiVersion ?? "2024-03-03"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/CommunityGalleryImagesRestOperations.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/CommunityGalleryImagesRestOperations.cs index 8e1dedceafed..20c784944c87 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/CommunityGalleryImagesRestOperations.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/CommunityGalleryImagesRestOperations.cs @@ -32,7 +32,7 @@ public CommunityGalleryImagesRestOperations(HttpPipeline pipeline, string applic { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-07-03"; + _apiVersion = apiVersion ?? "2024-03-03"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/GalleriesRestOperations.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/GalleriesRestOperations.cs index 532b035c9d0f..f199eacf143a 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/GalleriesRestOperations.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/GalleriesRestOperations.cs @@ -32,7 +32,7 @@ public GalleriesRestOperations(HttpPipeline pipeline, string applicationId, Uri { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-07-03"; + _apiVersion = apiVersion ?? "2024-03-03"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/GalleryApplicationVersionsRestOperations.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/GalleryApplicationVersionsRestOperations.cs index d2905c3efe9a..51861c713bfa 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/GalleryApplicationVersionsRestOperations.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/GalleryApplicationVersionsRestOperations.cs @@ -32,7 +32,7 @@ public GalleryApplicationVersionsRestOperations(HttpPipeline pipeline, string ap { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-07-03"; + _apiVersion = apiVersion ?? "2024-03-03"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/GalleryApplicationsRestOperations.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/GalleryApplicationsRestOperations.cs index 1a82adbfbadd..ee2337626726 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/GalleryApplicationsRestOperations.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/GalleryApplicationsRestOperations.cs @@ -32,7 +32,7 @@ public GalleryApplicationsRestOperations(HttpPipeline pipeline, string applicati { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-07-03"; + _apiVersion = apiVersion ?? "2024-03-03"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/GalleryImageVersionsRestOperations.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/GalleryImageVersionsRestOperations.cs index 509a1f3bf8de..1de91193079f 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/GalleryImageVersionsRestOperations.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/GalleryImageVersionsRestOperations.cs @@ -32,7 +32,7 @@ public GalleryImageVersionsRestOperations(HttpPipeline pipeline, string applicat { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-07-03"; + _apiVersion = apiVersion ?? "2024-03-03"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/GalleryImagesRestOperations.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/GalleryImagesRestOperations.cs index 4086f6f33df7..0ad941a56b08 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/GalleryImagesRestOperations.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/GalleryImagesRestOperations.cs @@ -32,7 +32,7 @@ public GalleryImagesRestOperations(HttpPipeline pipeline, string applicationId, { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-07-03"; + _apiVersion = apiVersion ?? "2024-03-03"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/GalleryInVMAccessControlProfileVersionsRestOperations.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/GalleryInVMAccessControlProfileVersionsRestOperations.cs new file mode 100644 index 000000000000..29bd79f8a9ad --- /dev/null +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/GalleryInVMAccessControlProfileVersionsRestOperations.cs @@ -0,0 +1,655 @@ +// 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.Compute.Models; + +namespace Azure.ResourceManager.Compute +{ + internal partial class GalleryInVMAccessControlProfileVersionsRestOperations + { + private readonly TelemetryDetails _userAgent; + private readonly HttpPipeline _pipeline; + private readonly Uri _endpoint; + private readonly string _apiVersion; + + /// Initializes a new instance of GalleryInVMAccessControlProfileVersionsRestOperations. + /// 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 GalleryInVMAccessControlProfileVersionsRestOperations(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 ?? "2024-03-03"; + _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); + } + + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string galleryName, string inVmAccessControlProfileName, string inVmAccessControlProfileVersionName, GalleryInVmAccessControlProfileVersionData data) + { + 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.Compute/galleries/", false); + uri.AppendPath(galleryName, true); + uri.AppendPath("/inVMAccessControlProfiles/", false); + uri.AppendPath(inVmAccessControlProfileName, true); + uri.AppendPath("/versions/", false); + uri.AppendPath(inVmAccessControlProfileVersionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string galleryName, string inVmAccessControlProfileName, string inVmAccessControlProfileVersionName, GalleryInVmAccessControlProfileVersionData data) + { + 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.Compute/galleries/", false); + uri.AppendPath(galleryName, true); + uri.AppendPath("/inVMAccessControlProfiles/", false); + uri.AppendPath(inVmAccessControlProfileName, true); + uri.AppendPath("/versions/", false); + uri.AppendPath(inVmAccessControlProfileVersionName, 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(data, ModelSerializationExtensions.WireOptions); + request.Content = content; + _userAgent.Apply(message); + return message; + } + + /// Create or update a gallery inVMAccessControlProfile version. + /// 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 of the Shared Image Gallery in which the inVMAccessControlProfile resides. + /// The name of the gallery inVMAccessControlProfile in which the inVMAccessControlProfile version is to be created. + /// The name of the gallery inVMAccessControlProfile version to be created. Needs to follow semantic version name pattern: The allowed characters are digit and period. Digits must be within the range of a 32-bit integer. Format: <MajorVersion>.<MinorVersion>.<Patch>. + /// Parameters supplied to the create or update gallery inVMAccessControlProfile version operation. + /// 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 galleryName, string inVmAccessControlProfileName, string inVmAccessControlProfileVersionName, GalleryInVmAccessControlProfileVersionData data, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(galleryName, nameof(galleryName)); + Argument.AssertNotNullOrEmpty(inVmAccessControlProfileName, nameof(inVmAccessControlProfileName)); + Argument.AssertNotNullOrEmpty(inVmAccessControlProfileVersionName, nameof(inVmAccessControlProfileVersionName)); + Argument.AssertNotNull(data, nameof(data)); + + using var message = CreateCreateOrUpdateRequest(subscriptionId, resourceGroupName, galleryName, inVmAccessControlProfileName, inVmAccessControlProfileVersionName, data); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + case 201: + return message.Response; + default: + throw new RequestFailedException(message.Response); + } + } + + /// Create or update a gallery inVMAccessControlProfile version. + /// 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 of the Shared Image Gallery in which the inVMAccessControlProfile resides. + /// The name of the gallery inVMAccessControlProfile in which the inVMAccessControlProfile version is to be created. + /// The name of the gallery inVMAccessControlProfile version to be created. Needs to follow semantic version name pattern: The allowed characters are digit and period. Digits must be within the range of a 32-bit integer. Format: <MajorVersion>.<MinorVersion>.<Patch>. + /// Parameters supplied to the create or update gallery inVMAccessControlProfile version operation. + /// 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 galleryName, string inVmAccessControlProfileName, string inVmAccessControlProfileVersionName, GalleryInVmAccessControlProfileVersionData data, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(galleryName, nameof(galleryName)); + Argument.AssertNotNullOrEmpty(inVmAccessControlProfileName, nameof(inVmAccessControlProfileName)); + Argument.AssertNotNullOrEmpty(inVmAccessControlProfileVersionName, nameof(inVmAccessControlProfileVersionName)); + Argument.AssertNotNull(data, nameof(data)); + + using var message = CreateCreateOrUpdateRequest(subscriptionId, resourceGroupName, galleryName, inVmAccessControlProfileName, inVmAccessControlProfileVersionName, data); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + case 201: + return message.Response; + default: + throw new RequestFailedException(message.Response); + } + } + + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string galleryName, string inVmAccessControlProfileName, string inVmAccessControlProfileVersionName, GalleryInVmAccessControlProfileVersionPatch 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.Compute/galleries/", false); + uri.AppendPath(galleryName, true); + uri.AppendPath("/inVMAccessControlProfiles/", false); + uri.AppendPath(inVmAccessControlProfileName, true); + uri.AppendPath("/versions/", false); + uri.AppendPath(inVmAccessControlProfileVersionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string galleryName, string inVmAccessControlProfileName, string inVmAccessControlProfileVersionName, GalleryInVmAccessControlProfileVersionPatch patch) + { + 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.Compute/galleries/", false); + uri.AppendPath(galleryName, true); + uri.AppendPath("/inVMAccessControlProfiles/", false); + uri.AppendPath(inVmAccessControlProfileName, true); + uri.AppendPath("/versions/", false); + uri.AppendPath(inVmAccessControlProfileVersionName, 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(patch, ModelSerializationExtensions.WireOptions); + request.Content = content; + _userAgent.Apply(message); + return message; + } + + /// Update a gallery inVMAccessControlProfile version. + /// 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 of the Shared Image Gallery in which the inVMAccessControlProfile resides. + /// The name of the gallery inVMAccessControlProfile in which the inVMAccessControlProfile version is to be updated. + /// The name of the gallery inVMAccessControlProfile version to be updated. Needs to follow semantic version name pattern: The allowed characters are digit and period. Digits must be within the range of a 32-bit integer. Format: <MajorVersion>.<MinorVersion>.<Patch>. + /// Parameters supplied to the update gallery inVMAccessControlProfile version operation. + /// 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 galleryName, string inVmAccessControlProfileName, string inVmAccessControlProfileVersionName, GalleryInVmAccessControlProfileVersionPatch patch, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(galleryName, nameof(galleryName)); + Argument.AssertNotNullOrEmpty(inVmAccessControlProfileName, nameof(inVmAccessControlProfileName)); + Argument.AssertNotNullOrEmpty(inVmAccessControlProfileVersionName, nameof(inVmAccessControlProfileVersionName)); + Argument.AssertNotNull(patch, nameof(patch)); + + using var message = CreateUpdateRequest(subscriptionId, resourceGroupName, galleryName, inVmAccessControlProfileName, inVmAccessControlProfileVersionName, patch); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + return message.Response; + default: + throw new RequestFailedException(message.Response); + } + } + + /// Update a gallery inVMAccessControlProfile version. + /// 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 of the Shared Image Gallery in which the inVMAccessControlProfile resides. + /// The name of the gallery inVMAccessControlProfile in which the inVMAccessControlProfile version is to be updated. + /// The name of the gallery inVMAccessControlProfile version to be updated. Needs to follow semantic version name pattern: The allowed characters are digit and period. Digits must be within the range of a 32-bit integer. Format: <MajorVersion>.<MinorVersion>.<Patch>. + /// Parameters supplied to the update gallery inVMAccessControlProfile version operation. + /// 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 galleryName, string inVmAccessControlProfileName, string inVmAccessControlProfileVersionName, GalleryInVmAccessControlProfileVersionPatch patch, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(galleryName, nameof(galleryName)); + Argument.AssertNotNullOrEmpty(inVmAccessControlProfileName, nameof(inVmAccessControlProfileName)); + Argument.AssertNotNullOrEmpty(inVmAccessControlProfileVersionName, nameof(inVmAccessControlProfileVersionName)); + Argument.AssertNotNull(patch, nameof(patch)); + + using var message = CreateUpdateRequest(subscriptionId, resourceGroupName, galleryName, inVmAccessControlProfileName, inVmAccessControlProfileVersionName, patch); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + return message.Response; + default: + throw new RequestFailedException(message.Response); + } + } + + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string galleryName, string inVmAccessControlProfileName, string inVmAccessControlProfileVersionName) + { + 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.Compute/galleries/", false); + uri.AppendPath(galleryName, true); + uri.AppendPath("/inVMAccessControlProfiles/", false); + uri.AppendPath(inVmAccessControlProfileName, true); + uri.AppendPath("/versions/", false); + uri.AppendPath(inVmAccessControlProfileVersionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string galleryName, string inVmAccessControlProfileName, string inVmAccessControlProfileVersionName) + { + 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.Compute/galleries/", false); + uri.AppendPath(galleryName, true); + uri.AppendPath("/inVMAccessControlProfiles/", false); + uri.AppendPath(inVmAccessControlProfileName, true); + uri.AppendPath("/versions/", false); + uri.AppendPath(inVmAccessControlProfileVersionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + _userAgent.Apply(message); + return message; + } + + /// Retrieves information about a gallery inVMAccessControlProfile version. + /// 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 of the Shared Image Gallery in which the inVMAccessControlProfile resides. + /// The name of the gallery inVMAccessControlProfile in which the inVMAccessControlProfile version resides. + /// The name of the gallery inVMAccessControlProfile version to be retrieved. + /// 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 galleryName, string inVmAccessControlProfileName, string inVmAccessControlProfileVersionName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(galleryName, nameof(galleryName)); + Argument.AssertNotNullOrEmpty(inVmAccessControlProfileName, nameof(inVmAccessControlProfileName)); + Argument.AssertNotNullOrEmpty(inVmAccessControlProfileVersionName, nameof(inVmAccessControlProfileVersionName)); + + using var message = CreateGetRequest(subscriptionId, resourceGroupName, galleryName, inVmAccessControlProfileName, inVmAccessControlProfileVersionName); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + GalleryInVmAccessControlProfileVersionData value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + value = GalleryInVmAccessControlProfileVersionData.DeserializeGalleryInVmAccessControlProfileVersionData(document.RootElement); + return Response.FromValue(value, message.Response); + } + case 404: + return Response.FromValue((GalleryInVmAccessControlProfileVersionData)null, message.Response); + default: + throw new RequestFailedException(message.Response); + } + } + + /// Retrieves information about a gallery inVMAccessControlProfile version. + /// 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 of the Shared Image Gallery in which the inVMAccessControlProfile resides. + /// The name of the gallery inVMAccessControlProfile in which the inVMAccessControlProfile version resides. + /// The name of the gallery inVMAccessControlProfile version to be retrieved. + /// 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 galleryName, string inVmAccessControlProfileName, string inVmAccessControlProfileVersionName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(galleryName, nameof(galleryName)); + Argument.AssertNotNullOrEmpty(inVmAccessControlProfileName, nameof(inVmAccessControlProfileName)); + Argument.AssertNotNullOrEmpty(inVmAccessControlProfileVersionName, nameof(inVmAccessControlProfileVersionName)); + + using var message = CreateGetRequest(subscriptionId, resourceGroupName, galleryName, inVmAccessControlProfileName, inVmAccessControlProfileVersionName); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + GalleryInVmAccessControlProfileVersionData value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + value = GalleryInVmAccessControlProfileVersionData.DeserializeGalleryInVmAccessControlProfileVersionData(document.RootElement); + return Response.FromValue(value, message.Response); + } + case 404: + return Response.FromValue((GalleryInVmAccessControlProfileVersionData)null, message.Response); + default: + throw new RequestFailedException(message.Response); + } + } + + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string galleryName, string inVmAccessControlProfileName, string inVmAccessControlProfileVersionName) + { + 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.Compute/galleries/", false); + uri.AppendPath(galleryName, true); + uri.AppendPath("/inVMAccessControlProfiles/", false); + uri.AppendPath(inVmAccessControlProfileName, true); + uri.AppendPath("/versions/", false); + uri.AppendPath(inVmAccessControlProfileVersionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string galleryName, string inVmAccessControlProfileName, string inVmAccessControlProfileVersionName) + { + 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.Compute/galleries/", false); + uri.AppendPath(galleryName, true); + uri.AppendPath("/inVMAccessControlProfiles/", false); + uri.AppendPath(inVmAccessControlProfileName, true); + uri.AppendPath("/versions/", false); + uri.AppendPath(inVmAccessControlProfileVersionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + _userAgent.Apply(message); + return message; + } + + /// Delete a gallery inVMAccessControlProfile version. + /// 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 of the Shared Image Gallery in which the inVMAccessControlProfile resides. + /// The name of the gallery inVMAccessControlProfile in which the inVMAccessControlProfile version resides. + /// The name of the gallery inVMAccessControlProfile version to be deleted. + /// 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 galleryName, string inVmAccessControlProfileName, string inVmAccessControlProfileVersionName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(galleryName, nameof(galleryName)); + Argument.AssertNotNullOrEmpty(inVmAccessControlProfileName, nameof(inVmAccessControlProfileName)); + Argument.AssertNotNullOrEmpty(inVmAccessControlProfileVersionName, nameof(inVmAccessControlProfileVersionName)); + + using var message = CreateDeleteRequest(subscriptionId, resourceGroupName, galleryName, inVmAccessControlProfileName, inVmAccessControlProfileVersionName); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 202: + case 204: + return message.Response; + default: + throw new RequestFailedException(message.Response); + } + } + + /// Delete a gallery inVMAccessControlProfile version. + /// 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 of the Shared Image Gallery in which the inVMAccessControlProfile resides. + /// The name of the gallery inVMAccessControlProfile in which the inVMAccessControlProfile version resides. + /// The name of the gallery inVMAccessControlProfile version to be deleted. + /// 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 galleryName, string inVmAccessControlProfileName, string inVmAccessControlProfileVersionName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(galleryName, nameof(galleryName)); + Argument.AssertNotNullOrEmpty(inVmAccessControlProfileName, nameof(inVmAccessControlProfileName)); + Argument.AssertNotNullOrEmpty(inVmAccessControlProfileVersionName, nameof(inVmAccessControlProfileVersionName)); + + using var message = CreateDeleteRequest(subscriptionId, resourceGroupName, galleryName, inVmAccessControlProfileName, inVmAccessControlProfileVersionName); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 202: + case 204: + return message.Response; + default: + throw new RequestFailedException(message.Response); + } + } + + internal RequestUriBuilder CreateListByGalleryInVmAccessControlProfileRequestUri(string subscriptionId, string resourceGroupName, string galleryName, string inVmAccessControlProfileName) + { + 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.Compute/galleries/", false); + uri.AppendPath(galleryName, true); + uri.AppendPath("/inVMAccessControlProfiles/", false); + uri.AppendPath(inVmAccessControlProfileName, true); + uri.AppendPath("/versions", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + + internal HttpMessage CreateListByGalleryInVmAccessControlProfileRequest(string subscriptionId, string resourceGroupName, string galleryName, string inVmAccessControlProfileName) + { + 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.Compute/galleries/", false); + uri.AppendPath(galleryName, true); + uri.AppendPath("/inVMAccessControlProfiles/", false); + uri.AppendPath(inVmAccessControlProfileName, true); + uri.AppendPath("/versions", false); + uri.AppendQuery("api-version", _apiVersion, true); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + _userAgent.Apply(message); + return message; + } + + /// List gallery inVMAccessControlProfile versions in a gallery inVMAccessControlProfile. + /// 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 of the Shared Image Gallery in which the inVMAccessControlProfile resides. + /// The name of the gallery inVMAccessControlProfile from which the inVMAccessControlProfile versions are to be listed. + /// The cancellation token to use. + /// , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public async Task> ListByGalleryInVmAccessControlProfileAsync(string subscriptionId, string resourceGroupName, string galleryName, string inVmAccessControlProfileName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(galleryName, nameof(galleryName)); + Argument.AssertNotNullOrEmpty(inVmAccessControlProfileName, nameof(inVmAccessControlProfileName)); + + using var message = CreateListByGalleryInVmAccessControlProfileRequest(subscriptionId, resourceGroupName, galleryName, inVmAccessControlProfileName); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + GalleryInVmAccessControlProfileVersionList value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + value = GalleryInVmAccessControlProfileVersionList.DeserializeGalleryInVmAccessControlProfileVersionList(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + /// List gallery inVMAccessControlProfile versions in a gallery inVMAccessControlProfile. + /// 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 of the Shared Image Gallery in which the inVMAccessControlProfile resides. + /// The name of the gallery inVMAccessControlProfile from which the inVMAccessControlProfile versions are to be listed. + /// The cancellation token to use. + /// , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public Response ListByGalleryInVmAccessControlProfile(string subscriptionId, string resourceGroupName, string galleryName, string inVmAccessControlProfileName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(galleryName, nameof(galleryName)); + Argument.AssertNotNullOrEmpty(inVmAccessControlProfileName, nameof(inVmAccessControlProfileName)); + + using var message = CreateListByGalleryInVmAccessControlProfileRequest(subscriptionId, resourceGroupName, galleryName, inVmAccessControlProfileName); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + GalleryInVmAccessControlProfileVersionList value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + value = GalleryInVmAccessControlProfileVersionList.DeserializeGalleryInVmAccessControlProfileVersionList(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + internal RequestUriBuilder CreateListByGalleryInVmAccessControlProfileNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string galleryName, string inVmAccessControlProfileName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + + internal HttpMessage CreateListByGalleryInVmAccessControlProfileNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string galleryName, string inVmAccessControlProfileName) + { + 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; + } + + /// List gallery inVMAccessControlProfile versions in a gallery inVMAccessControlProfile. + /// The URL to the next page of results. + /// 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 of the Shared Image Gallery in which the inVMAccessControlProfile resides. + /// The name of the gallery inVMAccessControlProfile from which the inVMAccessControlProfile versions are to be listed. + /// The cancellation token to use. + /// , , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public async Task> ListByGalleryInVmAccessControlProfileNextPageAsync(string nextLink, string subscriptionId, string resourceGroupName, string galleryName, string inVmAccessControlProfileName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(nextLink, nameof(nextLink)); + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(galleryName, nameof(galleryName)); + Argument.AssertNotNullOrEmpty(inVmAccessControlProfileName, nameof(inVmAccessControlProfileName)); + + using var message = CreateListByGalleryInVmAccessControlProfileNextPageRequest(nextLink, subscriptionId, resourceGroupName, galleryName, inVmAccessControlProfileName); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + GalleryInVmAccessControlProfileVersionList value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + value = GalleryInVmAccessControlProfileVersionList.DeserializeGalleryInVmAccessControlProfileVersionList(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + /// List gallery inVMAccessControlProfile versions in a gallery inVMAccessControlProfile. + /// The URL to the next page of results. + /// 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 of the Shared Image Gallery in which the inVMAccessControlProfile resides. + /// The name of the gallery inVMAccessControlProfile from which the inVMAccessControlProfile versions are to be listed. + /// The cancellation token to use. + /// , , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public Response ListByGalleryInVmAccessControlProfileNextPage(string nextLink, string subscriptionId, string resourceGroupName, string galleryName, string inVmAccessControlProfileName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(nextLink, nameof(nextLink)); + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(galleryName, nameof(galleryName)); + Argument.AssertNotNullOrEmpty(inVmAccessControlProfileName, nameof(inVmAccessControlProfileName)); + + using var message = CreateListByGalleryInVmAccessControlProfileNextPageRequest(nextLink, subscriptionId, resourceGroupName, galleryName, inVmAccessControlProfileName); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + GalleryInVmAccessControlProfileVersionList value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + value = GalleryInVmAccessControlProfileVersionList.DeserializeGalleryInVmAccessControlProfileVersionList(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + } +} diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/GalleryInVMAccessControlProfilesRestOperations.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/GalleryInVMAccessControlProfilesRestOperations.cs new file mode 100644 index 000000000000..71479413dfd4 --- /dev/null +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/GalleryInVMAccessControlProfilesRestOperations.cs @@ -0,0 +1,611 @@ +// 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.Compute.Models; + +namespace Azure.ResourceManager.Compute +{ + internal partial class GalleryInVMAccessControlProfilesRestOperations + { + private readonly TelemetryDetails _userAgent; + private readonly HttpPipeline _pipeline; + private readonly Uri _endpoint; + private readonly string _apiVersion; + + /// Initializes a new instance of GalleryInVMAccessControlProfilesRestOperations. + /// 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 GalleryInVMAccessControlProfilesRestOperations(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 ?? "2024-03-03"; + _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); + } + + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string galleryName, string inVmAccessControlProfileName, GalleryInVmAccessControlProfileData data) + { + 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.Compute/galleries/", false); + uri.AppendPath(galleryName, true); + uri.AppendPath("/inVMAccessControlProfiles/", false); + uri.AppendPath(inVmAccessControlProfileName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string galleryName, string inVmAccessControlProfileName, GalleryInVmAccessControlProfileData data) + { + 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.Compute/galleries/", false); + uri.AppendPath(galleryName, true); + uri.AppendPath("/inVMAccessControlProfiles/", false); + uri.AppendPath(inVmAccessControlProfileName, 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(data, ModelSerializationExtensions.WireOptions); + request.Content = content; + _userAgent.Apply(message); + return message; + } + + /// Create or update a gallery inVMAccessControlProfile. + /// 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 of the Shared Image Gallery in which the InVMAccessControlProfile is to be created. + /// The name of the gallery inVMAccessControlProfile to be created or updated. The allowed characters are alphabets and numbers with dots, dashes, and periods allowed in the middle. The maximum length is 80 characters. + /// Parameters supplied to the create or update gallery inVMAccessControlProfile operation. + /// 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 galleryName, string inVmAccessControlProfileName, GalleryInVmAccessControlProfileData data, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(galleryName, nameof(galleryName)); + Argument.AssertNotNullOrEmpty(inVmAccessControlProfileName, nameof(inVmAccessControlProfileName)); + Argument.AssertNotNull(data, nameof(data)); + + using var message = CreateCreateOrUpdateRequest(subscriptionId, resourceGroupName, galleryName, inVmAccessControlProfileName, data); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + case 201: + return message.Response; + default: + throw new RequestFailedException(message.Response); + } + } + + /// Create or update a gallery inVMAccessControlProfile. + /// 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 of the Shared Image Gallery in which the InVMAccessControlProfile is to be created. + /// The name of the gallery inVMAccessControlProfile to be created or updated. The allowed characters are alphabets and numbers with dots, dashes, and periods allowed in the middle. The maximum length is 80 characters. + /// Parameters supplied to the create or update gallery inVMAccessControlProfile operation. + /// 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 galleryName, string inVmAccessControlProfileName, GalleryInVmAccessControlProfileData data, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(galleryName, nameof(galleryName)); + Argument.AssertNotNullOrEmpty(inVmAccessControlProfileName, nameof(inVmAccessControlProfileName)); + Argument.AssertNotNull(data, nameof(data)); + + using var message = CreateCreateOrUpdateRequest(subscriptionId, resourceGroupName, galleryName, inVmAccessControlProfileName, data); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + case 201: + return message.Response; + default: + throw new RequestFailedException(message.Response); + } + } + + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string galleryName, string inVmAccessControlProfileName, GalleryInVmAccessControlProfilePatch 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.Compute/galleries/", false); + uri.AppendPath(galleryName, true); + uri.AppendPath("/inVMAccessControlProfiles/", false); + uri.AppendPath(inVmAccessControlProfileName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string galleryName, string inVmAccessControlProfileName, GalleryInVmAccessControlProfilePatch patch) + { + 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.Compute/galleries/", false); + uri.AppendPath(galleryName, true); + uri.AppendPath("/inVMAccessControlProfiles/", false); + uri.AppendPath(inVmAccessControlProfileName, 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(patch, ModelSerializationExtensions.WireOptions); + request.Content = content; + _userAgent.Apply(message); + return message; + } + + /// Update a gallery inVMAccessControlProfile. + /// 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 of the Shared Image Gallery in which the InVMAccessControlProfile is to be updated. + /// The name of the gallery inVMAccessControlProfile to be updated. The allowed characters are alphabets and numbers with dots, dashes, and periods allowed in the middle. The maximum length is 80 characters. + /// Parameters supplied to the update gallery inVMAccessControlProfile operation. + /// 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 galleryName, string inVmAccessControlProfileName, GalleryInVmAccessControlProfilePatch patch, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(galleryName, nameof(galleryName)); + Argument.AssertNotNullOrEmpty(inVmAccessControlProfileName, nameof(inVmAccessControlProfileName)); + Argument.AssertNotNull(patch, nameof(patch)); + + using var message = CreateUpdateRequest(subscriptionId, resourceGroupName, galleryName, inVmAccessControlProfileName, patch); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + return message.Response; + default: + throw new RequestFailedException(message.Response); + } + } + + /// Update a gallery inVMAccessControlProfile. + /// 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 of the Shared Image Gallery in which the InVMAccessControlProfile is to be updated. + /// The name of the gallery inVMAccessControlProfile to be updated. The allowed characters are alphabets and numbers with dots, dashes, and periods allowed in the middle. The maximum length is 80 characters. + /// Parameters supplied to the update gallery inVMAccessControlProfile operation. + /// 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 galleryName, string inVmAccessControlProfileName, GalleryInVmAccessControlProfilePatch patch, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(galleryName, nameof(galleryName)); + Argument.AssertNotNullOrEmpty(inVmAccessControlProfileName, nameof(inVmAccessControlProfileName)); + Argument.AssertNotNull(patch, nameof(patch)); + + using var message = CreateUpdateRequest(subscriptionId, resourceGroupName, galleryName, inVmAccessControlProfileName, patch); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + return message.Response; + default: + throw new RequestFailedException(message.Response); + } + } + + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string galleryName, string inVmAccessControlProfileName) + { + 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.Compute/galleries/", false); + uri.AppendPath(galleryName, true); + uri.AppendPath("/inVMAccessControlProfiles/", false); + uri.AppendPath(inVmAccessControlProfileName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string galleryName, string inVmAccessControlProfileName) + { + 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.Compute/galleries/", false); + uri.AppendPath(galleryName, true); + uri.AppendPath("/inVMAccessControlProfiles/", false); + uri.AppendPath(inVmAccessControlProfileName, true); + uri.AppendQuery("api-version", _apiVersion, true); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + _userAgent.Apply(message); + return message; + } + + /// Retrieves information about a gallery inVMAccessControlProfile. + /// 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 of the Shared Image Gallery from which the InVMAccessControlProfiles are to be retrieved. + /// The name of the gallery inVMAccessControlProfile to be retrieved. + /// 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 galleryName, string inVmAccessControlProfileName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(galleryName, nameof(galleryName)); + Argument.AssertNotNullOrEmpty(inVmAccessControlProfileName, nameof(inVmAccessControlProfileName)); + + using var message = CreateGetRequest(subscriptionId, resourceGroupName, galleryName, inVmAccessControlProfileName); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + GalleryInVmAccessControlProfileData value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + value = GalleryInVmAccessControlProfileData.DeserializeGalleryInVmAccessControlProfileData(document.RootElement); + return Response.FromValue(value, message.Response); + } + case 404: + return Response.FromValue((GalleryInVmAccessControlProfileData)null, message.Response); + default: + throw new RequestFailedException(message.Response); + } + } + + /// Retrieves information about a gallery inVMAccessControlProfile. + /// 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 of the Shared Image Gallery from which the InVMAccessControlProfiles are to be retrieved. + /// The name of the gallery inVMAccessControlProfile to be retrieved. + /// 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 galleryName, string inVmAccessControlProfileName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(galleryName, nameof(galleryName)); + Argument.AssertNotNullOrEmpty(inVmAccessControlProfileName, nameof(inVmAccessControlProfileName)); + + using var message = CreateGetRequest(subscriptionId, resourceGroupName, galleryName, inVmAccessControlProfileName); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + GalleryInVmAccessControlProfileData value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + value = GalleryInVmAccessControlProfileData.DeserializeGalleryInVmAccessControlProfileData(document.RootElement); + return Response.FromValue(value, message.Response); + } + case 404: + return Response.FromValue((GalleryInVmAccessControlProfileData)null, message.Response); + default: + throw new RequestFailedException(message.Response); + } + } + + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string galleryName, string inVmAccessControlProfileName) + { + 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.Compute/galleries/", false); + uri.AppendPath(galleryName, true); + uri.AppendPath("/inVMAccessControlProfiles/", false); + uri.AppendPath(inVmAccessControlProfileName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string galleryName, string inVmAccessControlProfileName) + { + 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.Compute/galleries/", false); + uri.AppendPath(galleryName, true); + uri.AppendPath("/inVMAccessControlProfiles/", false); + uri.AppendPath(inVmAccessControlProfileName, true); + uri.AppendQuery("api-version", _apiVersion, true); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + _userAgent.Apply(message); + return message; + } + + /// Delete a gallery inVMAccessControlProfile. + /// 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. + /// he name of the Shared Image Gallery in which the InVMAccessControlProfile resides. + /// The name of the gallery inVMAccessControlProfile to be deleted. + /// 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 galleryName, string inVmAccessControlProfileName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(galleryName, nameof(galleryName)); + Argument.AssertNotNullOrEmpty(inVmAccessControlProfileName, nameof(inVmAccessControlProfileName)); + + using var message = CreateDeleteRequest(subscriptionId, resourceGroupName, galleryName, inVmAccessControlProfileName); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 202: + case 204: + return message.Response; + default: + throw new RequestFailedException(message.Response); + } + } + + /// Delete a gallery inVMAccessControlProfile. + /// 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. + /// he name of the Shared Image Gallery in which the InVMAccessControlProfile resides. + /// The name of the gallery inVMAccessControlProfile to be deleted. + /// 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 galleryName, string inVmAccessControlProfileName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(galleryName, nameof(galleryName)); + Argument.AssertNotNullOrEmpty(inVmAccessControlProfileName, nameof(inVmAccessControlProfileName)); + + using var message = CreateDeleteRequest(subscriptionId, resourceGroupName, galleryName, inVmAccessControlProfileName); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 202: + case 204: + return message.Response; + default: + throw new RequestFailedException(message.Response); + } + } + + internal RequestUriBuilder CreateListByGalleryRequestUri(string subscriptionId, string resourceGroupName, string galleryName) + { + 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.Compute/galleries/", false); + uri.AppendPath(galleryName, true); + uri.AppendPath("/inVMAccessControlProfiles", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + + internal HttpMessage CreateListByGalleryRequest(string subscriptionId, string resourceGroupName, string galleryName) + { + 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.Compute/galleries/", false); + uri.AppendPath(galleryName, true); + uri.AppendPath("/inVMAccessControlProfiles", false); + uri.AppendQuery("api-version", _apiVersion, true); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + _userAgent.Apply(message); + return message; + } + + /// List gallery inVMAccessControlProfiles in a gallery. + /// 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 of the Shared Image Gallery from which the InVMAccessControlProfiles are to be listed. + /// The cancellation token to use. + /// , or is null. + /// , or is an empty string, and was expected to be non-empty. + public async Task> ListByGalleryAsync(string subscriptionId, string resourceGroupName, string galleryName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(galleryName, nameof(galleryName)); + + using var message = CreateListByGalleryRequest(subscriptionId, resourceGroupName, galleryName); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + GalleryInVmAccessControlProfileList value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + value = GalleryInVmAccessControlProfileList.DeserializeGalleryInVmAccessControlProfileList(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + /// List gallery inVMAccessControlProfiles in a gallery. + /// 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 of the Shared Image Gallery from which the InVMAccessControlProfiles are to be listed. + /// The cancellation token to use. + /// , or is null. + /// , or is an empty string, and was expected to be non-empty. + public Response ListByGallery(string subscriptionId, string resourceGroupName, string galleryName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(galleryName, nameof(galleryName)); + + using var message = CreateListByGalleryRequest(subscriptionId, resourceGroupName, galleryName); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + GalleryInVmAccessControlProfileList value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + value = GalleryInVmAccessControlProfileList.DeserializeGalleryInVmAccessControlProfileList(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + internal RequestUriBuilder CreateListByGalleryNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string galleryName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + + internal HttpMessage CreateListByGalleryNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string galleryName) + { + 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; + } + + /// List gallery inVMAccessControlProfiles in a gallery. + /// The URL to the next page of results. + /// 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 of the Shared Image Gallery from which the InVMAccessControlProfiles are to be listed. + /// The cancellation token to use. + /// , , or is null. + /// , or is an empty string, and was expected to be non-empty. + public async Task> ListByGalleryNextPageAsync(string nextLink, string subscriptionId, string resourceGroupName, string galleryName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(nextLink, nameof(nextLink)); + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(galleryName, nameof(galleryName)); + + using var message = CreateListByGalleryNextPageRequest(nextLink, subscriptionId, resourceGroupName, galleryName); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + GalleryInVmAccessControlProfileList value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + value = GalleryInVmAccessControlProfileList.DeserializeGalleryInVmAccessControlProfileList(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + /// List gallery inVMAccessControlProfiles in a gallery. + /// The URL to the next page of results. + /// 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 of the Shared Image Gallery from which the InVMAccessControlProfiles are to be listed. + /// The cancellation token to use. + /// , , or is null. + /// , or is an empty string, and was expected to be non-empty. + public Response ListByGalleryNextPage(string nextLink, string subscriptionId, string resourceGroupName, string galleryName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(nextLink, nameof(nextLink)); + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(galleryName, nameof(galleryName)); + + using var message = CreateListByGalleryNextPageRequest(nextLink, subscriptionId, resourceGroupName, galleryName); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + GalleryInVmAccessControlProfileList value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + value = GalleryInVmAccessControlProfileList.DeserializeGalleryInVmAccessControlProfileList(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + } +} diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/GallerySharingProfileRestOperations.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/GallerySharingProfileRestOperations.cs index 6a4966842bf2..df45713e8223 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/GallerySharingProfileRestOperations.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/GallerySharingProfileRestOperations.cs @@ -31,7 +31,7 @@ public GallerySharingProfileRestOperations(HttpPipeline pipeline, string applica { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-07-03"; + _apiVersion = apiVersion ?? "2024-03-03"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/SharedGalleriesRestOperations.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/SharedGalleriesRestOperations.cs index 71bf16f8b885..181d948437ae 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/SharedGalleriesRestOperations.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/SharedGalleriesRestOperations.cs @@ -32,7 +32,7 @@ public SharedGalleriesRestOperations(HttpPipeline pipeline, string applicationId { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-07-03"; + _apiVersion = apiVersion ?? "2024-03-03"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/SharedGalleryImageVersionsRestOperations.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/SharedGalleryImageVersionsRestOperations.cs index 9107ca44b316..c2cc3722cd09 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/SharedGalleryImageVersionsRestOperations.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/SharedGalleryImageVersionsRestOperations.cs @@ -32,7 +32,7 @@ public SharedGalleryImageVersionsRestOperations(HttpPipeline pipeline, string ap { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-07-03"; + _apiVersion = apiVersion ?? "2024-03-03"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/SharedGalleryImagesRestOperations.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/SharedGalleryImagesRestOperations.cs index e374e4286d23..44952eeca905 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/SharedGalleryImagesRestOperations.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/SharedGalleryImagesRestOperations.cs @@ -32,7 +32,7 @@ public SharedGalleryImagesRestOperations(HttpPipeline pipeline, string applicati { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-07-03"; + _apiVersion = apiVersion ?? "2024-03-03"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/SoftDeletedResourceRestOperations.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/SoftDeletedResourceRestOperations.cs new file mode 100644 index 000000000000..ad74e1294a7a --- /dev/null +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/SoftDeletedResourceRestOperations.cs @@ -0,0 +1,241 @@ +// 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.Compute.Models; + +namespace Azure.ResourceManager.Compute +{ + internal partial class SoftDeletedResourceRestOperations + { + private readonly TelemetryDetails _userAgent; + private readonly HttpPipeline _pipeline; + private readonly Uri _endpoint; + private readonly string _apiVersion; + + /// Initializes a new instance of SoftDeletedResourceRestOperations. + /// 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 SoftDeletedResourceRestOperations(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 ?? "2024-03-03"; + _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); + } + + internal RequestUriBuilder CreateListByArtifactNameRequestUri(string subscriptionId, string resourceGroupName, string galleryName, string artifactType, string artifactName) + { + 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.Compute/galleries/", false); + uri.AppendPath(galleryName, true); + uri.AppendPath("/softDeletedArtifactTypes/", false); + uri.AppendPath(artifactType, true); + uri.AppendPath("/artifacts/", false); + uri.AppendPath(artifactName, true); + uri.AppendPath("/versions", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + + internal HttpMessage CreateListByArtifactNameRequest(string subscriptionId, string resourceGroupName, string galleryName, string artifactType, string artifactName) + { + 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.Compute/galleries/", false); + uri.AppendPath(galleryName, true); + uri.AppendPath("/softDeletedArtifactTypes/", false); + uri.AppendPath(artifactType, true); + uri.AppendPath("/artifacts/", false); + uri.AppendPath(artifactName, true); + uri.AppendPath("/versions", false); + uri.AppendQuery("api-version", _apiVersion, true); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + _userAgent.Apply(message); + return message; + } + + /// List soft-deleted resources of an artifact in the gallery, such as soft-deleted gallery image version of an image. + /// 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 of the Gallery in which the soft-deleted resources resides. + /// The type of the artifact to be listed, such as gallery image version. + /// The artifact name to be listed. If artifact type is Images, then the artifact name should be the gallery image name. + /// The cancellation token to use. + /// , , , or is null. + /// , , , or is an empty string, and was expected to be non-empty. + public async Task> ListByArtifactNameAsync(string subscriptionId, string resourceGroupName, string galleryName, string artifactType, string artifactName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(galleryName, nameof(galleryName)); + Argument.AssertNotNullOrEmpty(artifactType, nameof(artifactType)); + Argument.AssertNotNullOrEmpty(artifactName, nameof(artifactName)); + + using var message = CreateListByArtifactNameRequest(subscriptionId, resourceGroupName, galleryName, artifactType, artifactName); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + GallerySoftDeletedResourceList value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + value = GallerySoftDeletedResourceList.DeserializeGallerySoftDeletedResourceList(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + /// List soft-deleted resources of an artifact in the gallery, such as soft-deleted gallery image version of an image. + /// 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 of the Gallery in which the soft-deleted resources resides. + /// The type of the artifact to be listed, such as gallery image version. + /// The artifact name to be listed. If artifact type is Images, then the artifact name should be the gallery image name. + /// The cancellation token to use. + /// , , , or is null. + /// , , , or is an empty string, and was expected to be non-empty. + public Response ListByArtifactName(string subscriptionId, string resourceGroupName, string galleryName, string artifactType, string artifactName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(galleryName, nameof(galleryName)); + Argument.AssertNotNullOrEmpty(artifactType, nameof(artifactType)); + Argument.AssertNotNullOrEmpty(artifactName, nameof(artifactName)); + + using var message = CreateListByArtifactNameRequest(subscriptionId, resourceGroupName, galleryName, artifactType, artifactName); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + GallerySoftDeletedResourceList value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + value = GallerySoftDeletedResourceList.DeserializeGallerySoftDeletedResourceList(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + internal RequestUriBuilder CreateListByArtifactNameNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string galleryName, string artifactType, string artifactName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + + internal HttpMessage CreateListByArtifactNameNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string galleryName, string artifactType, string artifactName) + { + 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; + } + + /// List soft-deleted resources of an artifact in the gallery, such as soft-deleted gallery image version of an image. + /// The URL to the next page of results. + /// 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 of the Gallery in which the soft-deleted resources resides. + /// The type of the artifact to be listed, such as gallery image version. + /// The artifact name to be listed. If artifact type is Images, then the artifact name should be the gallery image name. + /// The cancellation token to use. + /// , , , , or is null. + /// , , , or is an empty string, and was expected to be non-empty. + public async Task> ListByArtifactNameNextPageAsync(string nextLink, string subscriptionId, string resourceGroupName, string galleryName, string artifactType, string artifactName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(nextLink, nameof(nextLink)); + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(galleryName, nameof(galleryName)); + Argument.AssertNotNullOrEmpty(artifactType, nameof(artifactType)); + Argument.AssertNotNullOrEmpty(artifactName, nameof(artifactName)); + + using var message = CreateListByArtifactNameNextPageRequest(nextLink, subscriptionId, resourceGroupName, galleryName, artifactType, artifactName); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + GallerySoftDeletedResourceList value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + value = GallerySoftDeletedResourceList.DeserializeGallerySoftDeletedResourceList(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + /// List soft-deleted resources of an artifact in the gallery, such as soft-deleted gallery image version of an image. + /// The URL to the next page of results. + /// 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 of the Gallery in which the soft-deleted resources resides. + /// The type of the artifact to be listed, such as gallery image version. + /// The artifact name to be listed. If artifact type is Images, then the artifact name should be the gallery image name. + /// The cancellation token to use. + /// , , , , or is null. + /// , , , or is an empty string, and was expected to be non-empty. + public Response ListByArtifactNameNextPage(string nextLink, string subscriptionId, string resourceGroupName, string galleryName, string artifactType, string artifactName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(nextLink, nameof(nextLink)); + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(galleryName, nameof(galleryName)); + Argument.AssertNotNullOrEmpty(artifactType, nameof(artifactType)); + Argument.AssertNotNullOrEmpty(artifactName, nameof(artifactName)); + + using var message = CreateListByArtifactNameNextPageRequest(nextLink, subscriptionId, resourceGroupName, galleryName, artifactType, artifactName); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + GallerySoftDeletedResourceList value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + value = GallerySoftDeletedResourceList.DeserializeGallerySoftDeletedResourceList(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + } +} diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/VirtualMachineScaleSetVMsRestOperations.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/VirtualMachineScaleSetVMsRestOperations.cs index 11830c19b588..f2c1077f4747 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/VirtualMachineScaleSetVMsRestOperations.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/VirtualMachineScaleSetVMsRestOperations.cs @@ -1023,7 +1023,7 @@ internal HttpMessage CreatePowerOffRequest(string subscriptionId, string resourc return message; } - /// Power off (stop) a virtual machine in a VM scale set. Note that resources are still attached and you are getting charged for the resources. Instead, use deallocate to release resources and avoid charges. + /// Power off (stop) a virtual machine in a VM scale set. Note that resources are still attached and you are getting charged for the resources. Instead, use deallocate to release resources and avoid charges. Additionally, this operation is not allowed on a virtual machine that is being deallocated or already has been deallocated. /// 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 of the VM scale set. @@ -1051,7 +1051,7 @@ public async Task PowerOffAsync(string subscriptionId, string resource } } - /// Power off (stop) a virtual machine in a VM scale set. Note that resources are still attached and you are getting charged for the resources. Instead, use deallocate to release resources and avoid charges. + /// Power off (stop) a virtual machine in a VM scale set. Note that resources are still attached and you are getting charged for the resources. Instead, use deallocate to release resources and avoid charges. Additionally, this operation is not allowed on a virtual machine that is being deallocated or already has been deallocated. /// 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 of the VM scale set. diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/VirtualMachineScaleSetsRestOperations.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/VirtualMachineScaleSetsRestOperations.cs index aad3198cf2d5..448fa2aeed9b 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/VirtualMachineScaleSetsRestOperations.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/VirtualMachineScaleSetsRestOperations.cs @@ -1234,7 +1234,7 @@ internal HttpMessage CreatePowerOffRequest(string subscriptionId, string resourc return message; } - /// Power off (stop) one or more virtual machines in a VM scale set. Note that resources are still attached and you are getting charged for the resources. Instead, use deallocate to release resources and avoid charges. + /// Power off (stop) one or more virtual machines in a VM scale set. Note that resources are still attached and you are getting charged for the resources. Instead, use deallocate to release resources and avoid charges. Additionally, this operation is not allowed on virtual machines in a VM scale set that are being deallocated or have already been deallocated. /// 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 of the VM scale set. @@ -1261,7 +1261,7 @@ public async Task PowerOffAsync(string subscriptionId, string resource } } - /// Power off (stop) one or more virtual machines in a VM scale set. Note that resources are still attached and you are getting charged for the resources. Instead, use deallocate to release resources and avoid charges. + /// Power off (stop) one or more virtual machines in a VM scale set. Note that resources are still attached and you are getting charged for the resources. Instead, use deallocate to release resources and avoid charges. Additionally, this operation is not allowed on virtual machines in a VM scale set that are being deallocated or have already been deallocated. /// 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 of the VM scale set. diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/VirtualMachinesRestOperations.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/VirtualMachinesRestOperations.cs index b73fbaea9e2f..6a90c44565e4 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/VirtualMachinesRestOperations.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/VirtualMachinesRestOperations.cs @@ -1334,7 +1334,7 @@ internal HttpMessage CreatePowerOffRequest(string subscriptionId, string resourc return message; } - /// The operation to power off (stop) a virtual machine. The virtual machine can be restarted with the same provisioned resources. You are still charged for this virtual machine. + /// The operation to power off (stop) a virtual machine. The virtual machine can be restarted with the same provisioned resources. You are still charged for this virtual machine. NOTE: This operation is not allowed on a virtual machine that is being deallocated or has already been deallocated. /// 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 of the virtual machine. @@ -1360,7 +1360,7 @@ public async Task PowerOffAsync(string subscriptionId, string resource } } - /// The operation to power off (stop) a virtual machine. The virtual machine can be restarted with the same provisioned resources. You are still charged for this virtual machine. + /// The operation to power off (stop) a virtual machine. The virtual machine can be restarted with the same provisioned resources. You are still charged for this virtual machine. NOTE: This operation is not allowed on a virtual machine that is being deallocated or has already been deallocated. /// 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 of the virtual machine. diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/SharedGalleryCollection.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/SharedGalleryCollection.cs index e1d2e1858302..8076a0fc8286 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/SharedGalleryCollection.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/SharedGalleryCollection.cs @@ -69,7 +69,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -115,7 +115,7 @@ public virtual async Task> GetAsync(string galle /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -161,7 +161,7 @@ public virtual Response Get(string galleryUniqueName, Can /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -192,7 +192,7 @@ public virtual AsyncPageable GetAllAsync(SharedToValue? s /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -223,7 +223,7 @@ public virtual Pageable GetAll(SharedToValue? sharedTo = /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -266,7 +266,7 @@ public virtual async Task> ExistsAsync(string galleryUniqueName, /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -309,7 +309,7 @@ public virtual Response Exists(string galleryUniqueName, CancellationToken /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -355,7 +355,7 @@ public virtual async Task> GetIfExistsAs /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/SharedGalleryImageCollection.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/SharedGalleryImageCollection.cs index 3a8098109fdc..50825600431d 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/SharedGalleryImageCollection.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/SharedGalleryImageCollection.cs @@ -65,7 +65,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -111,7 +111,7 @@ public virtual async Task> GetAsync(string /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -157,7 +157,7 @@ public virtual Response Get(string galleryImageName, /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -188,7 +188,7 @@ public virtual AsyncPageable GetAllAsync(SharedToVal /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -219,7 +219,7 @@ public virtual Pageable GetAll(SharedToValue? shared /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -262,7 +262,7 @@ public virtual async Task> ExistsAsync(string galleryImageName, C /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -305,7 +305,7 @@ public virtual Response Exists(string galleryImageName, CancellationToken /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -351,7 +351,7 @@ public virtual async Task> GetIfExi /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/SharedGalleryImageData.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/SharedGalleryImageData.cs index 14de7ac2e572..9882dd1f716b 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/SharedGalleryImageData.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/SharedGalleryImageData.cs @@ -39,7 +39,7 @@ internal SharedGalleryImageData() /// The hypervisor generation of the Virtual Machine. Applicable to OS disks only. /// A list of gallery image features. /// Describes the gallery image definition purchase plan. This is used by marketplace images. - /// The architecture of the image. Applicable to OS disks only. + /// CPU architecture supported by an OS disk. /// Privacy statement uri for the current community gallery image. /// End-user license agreement for the current community gallery image. /// The artifact tags of a shared gallery resource. @@ -84,7 +84,7 @@ public IList DisallowedDiskTypes public IReadOnlyList Features { get; } /// Describes the gallery image definition purchase plan. This is used by marketplace images. public ImagePurchasePlan PurchasePlan { get; } - /// The architecture of the image. Applicable to OS disks only. + /// CPU architecture supported by an OS disk. public ArchitectureType? Architecture { get; } /// Privacy statement uri for the current community gallery image. public Uri PrivacyStatementUri { get; } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/SharedGalleryImageResource.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/SharedGalleryImageResource.cs index 002dc1472039..27f3a79062e4 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/SharedGalleryImageResource.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/SharedGalleryImageResource.cs @@ -108,7 +108,7 @@ public virtual SharedGalleryImageVersionCollection GetSharedGalleryImageVersions /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -139,7 +139,7 @@ public virtual async Task> GetShared /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -170,7 +170,7 @@ public virtual Response GetSharedGalleryImage /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -211,7 +211,7 @@ public virtual async Task> GetAsync(Cancell /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/SharedGalleryImageVersionCollection.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/SharedGalleryImageVersionCollection.cs index 37057c725bc9..d9ba86eb4f1a 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/SharedGalleryImageVersionCollection.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/SharedGalleryImageVersionCollection.cs @@ -65,7 +65,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -111,7 +111,7 @@ public virtual async Task> GetAsync( /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -157,7 +157,7 @@ public virtual Response Get(string galleryIma /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -188,7 +188,7 @@ public virtual AsyncPageable GetAllAsync(Shar /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -219,7 +219,7 @@ public virtual Pageable GetAll(SharedToValue? /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -262,7 +262,7 @@ public virtual async Task> ExistsAsync(string galleryImageVersion /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -305,7 +305,7 @@ public virtual Response Exists(string galleryImageVersionName, Cancellatio /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -351,7 +351,7 @@ public virtual async Task> G /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/SharedGalleryImageVersionResource.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/SharedGalleryImageVersionResource.cs index c2a02a259b6d..3f6f8af338d3 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/SharedGalleryImageVersionResource.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/SharedGalleryImageVersionResource.cs @@ -102,7 +102,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -143,7 +143,7 @@ public virtual async Task> GetAsync( /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/SharedGalleryResource.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/SharedGalleryResource.cs index 5c675d3499cd..1006ee85f337 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/SharedGalleryResource.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/SharedGalleryResource.cs @@ -108,7 +108,7 @@ public virtual SharedGalleryImageCollection GetSharedGalleryImages() /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -139,7 +139,7 @@ public virtual async Task> GetSharedGallery /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -170,7 +170,7 @@ public virtual Response GetSharedGalleryImage(string /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource @@ -211,7 +211,7 @@ public virtual async Task> GetAsync(Cancellation /// /// /// Default Api Version - /// 2023-07-03 + /// 2024-03-03 /// /// /// Resource diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/VirtualMachineResource.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/VirtualMachineResource.cs index 11582832989d..83ae60ae2914 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/VirtualMachineResource.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/VirtualMachineResource.cs @@ -970,7 +970,7 @@ public virtual Pageable GetAvailableSizes(CancellationToken } /// - /// The operation to power off (stop) a virtual machine. The virtual machine can be restarted with the same provisioned resources. You are still charged for this virtual machine. + /// The operation to power off (stop) a virtual machine. The virtual machine can be restarted with the same provisioned resources. You are still charged for this virtual machine. NOTE: This operation is not allowed on a virtual machine that is being deallocated or has already been deallocated. /// /// /// Request Path @@ -1013,7 +1013,7 @@ public virtual async Task PowerOffAsync(WaitUntil waitUntil, bool? } /// - /// The operation to power off (stop) a virtual machine. The virtual machine can be restarted with the same provisioned resources. You are still charged for this virtual machine. + /// The operation to power off (stop) a virtual machine. The virtual machine can be restarted with the same provisioned resources. You are still charged for this virtual machine. NOTE: This operation is not allowed on a virtual machine that is being deallocated or has already been deallocated. /// /// /// Request Path diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/VirtualMachineScaleSetResource.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/VirtualMachineScaleSetResource.cs index d242f8dfbbaa..e1cbb2f62a7b 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/VirtualMachineScaleSetResource.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/VirtualMachineScaleSetResource.cs @@ -888,7 +888,7 @@ public virtual Pageable GetOSUpgradeHistor } /// - /// Power off (stop) one or more virtual machines in a VM scale set. Note that resources are still attached and you are getting charged for the resources. Instead, use deallocate to release resources and avoid charges. + /// Power off (stop) one or more virtual machines in a VM scale set. Note that resources are still attached and you are getting charged for the resources. Instead, use deallocate to release resources and avoid charges. Additionally, this operation is not allowed on virtual machines in a VM scale set that are being deallocated or have already been deallocated. /// /// /// Request Path @@ -932,7 +932,7 @@ public virtual async Task PowerOffAsync(WaitUntil waitUntil, Virtu } /// - /// Power off (stop) one or more virtual machines in a VM scale set. Note that resources are still attached and you are getting charged for the resources. Instead, use deallocate to release resources and avoid charges. + /// Power off (stop) one or more virtual machines in a VM scale set. Note that resources are still attached and you are getting charged for the resources. Instead, use deallocate to release resources and avoid charges. Additionally, this operation is not allowed on virtual machines in a VM scale set that are being deallocated or have already been deallocated. /// /// /// Request Path diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/VirtualMachineScaleSetVmResource.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/VirtualMachineScaleSetVmResource.cs index 58ab3d17dd77..fba2808410c6 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/VirtualMachineScaleSetVmResource.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/VirtualMachineScaleSetVmResource.cs @@ -911,7 +911,7 @@ public virtual Response GetInstanceView(Ca } /// - /// Power off (stop) a virtual machine in a VM scale set. Note that resources are still attached and you are getting charged for the resources. Instead, use deallocate to release resources and avoid charges. + /// Power off (stop) a virtual machine in a VM scale set. Note that resources are still attached and you are getting charged for the resources. Instead, use deallocate to release resources and avoid charges. Additionally, this operation is not allowed on a virtual machine that is being deallocated or already has been deallocated. /// /// /// Request Path @@ -954,7 +954,7 @@ public virtual async Task PowerOffAsync(WaitUntil waitUntil, bool? } /// - /// Power off (stop) a virtual machine in a VM scale set. Note that resources are still attached and you are getting charged for the resources. Instead, use deallocate to release resources and avoid charges. + /// Power off (stop) a virtual machine in a VM scale set. Note that resources are still attached and you are getting charged for the resources. Instead, use deallocate to release resources and avoid charges. Additionally, this operation is not allowed on a virtual machine that is being deallocated or already has been deallocated. /// /// /// Request Path diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/autorest.md b/sdk/compute/Azure.ResourceManager.Compute/src/autorest.md index c2de89eba994..92b6835ee481 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/autorest.md +++ b/sdk/compute/Azure.ResourceManager.Compute/src/autorest.md @@ -10,7 +10,7 @@ Run `dotnet build /t:GenerateCode` to generate code. azure-arm: true library-name: Compute namespace: Azure.ResourceManager.Compute -require: https://github.com/Azure/azure-rest-api-specs/blob/4f68529971f845e8757c2b2a746d78ceb91854cd/specification/compute/resource-manager/readme.md +require: /mnt/vss/_work/1/s/azure-rest-api-specs/specification/compute/resource-manager/readme.md output-folder: $(this-folder)/Generated clear-output-folder: true sample-gen: 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/neonpostgres/ci.mgmt.yml b/sdk/neonpostgres/ci.mgmt.yml index 72d449fc7a16..00f734ba7230 100644 --- a/sdk/neonpostgres/ci.mgmt.yml +++ b/sdk/neonpostgres/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/neonpostgres/ci.mgmt.yml - sdk/neonpostgres/Azure.ResourceManager.NeonPostgres/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/neonpostgres/ci.mgmt.yml + - sdk/neonpostgres/Azure.ResourceManager.NeonPostgres/ + 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 960151044171..72d83a7bfacf 100644 --- a/sdk/resourcemanager/ci.mgmt.yml +++ b/sdk/resourcemanager/ci.mgmt.yml @@ -11,198 +11,198 @@ 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/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/arc-scvmm/Azure.ResourceManager.ScVmm - - 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/avs/Azure.ResourceManager.Avs - - sdk/azurelargeinstance/Azure.ResourceManager.LargeInstance - - sdk/azurestackhci/Azure.ResourceManager.Hci - - 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/containerorchestratorruntime/Azure.ResourceManager.ContainerOrchestratorRuntime - - sdk/containerregistry/Azure.ResourceManager.ContainerRegistry - - 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/databoxedge/Azure.ResourceManager.DataBoxEdge - - sdk/datadog/Azure.ResourceManager.Datadog - - sdk/datafactory/Azure.ResourceManager.DataFactory + - sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric + - sdk/recoveryservices/Azure.ResourceManager.RecoveryServices + - sdk/postgresql/Azure.ResourceManager.PostgreSql - 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/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization - - sdk/devcenter/Azure.ResourceManager.DevCenter + - sdk/quota/Azure.ResourceManager.Quota + - sdk/netapp/Azure.ResourceManager.NetApp - 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/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/edgezones/Azure.ResourceManager.EdgeZones + - sdk/iot/Azure.ResourceManager.IotFirmwareDefense + - sdk/informaticadatamanagement/Azure.ResourceManager.InformaticaDataManagement + - sdk/datamigration/Azure.ResourceManager.DataMigration + - sdk/iothub/Azure.ResourceManager.IotHub - sdk/elastic/Azure.ResourceManager.Elastic - - sdk/elasticsan/Azure.ResourceManager.ElasticSan - - sdk/eventgrid/Azure.ResourceManager.EventGrid - - sdk/eventhub/Azure.ResourceManager.EventHubs + - sdk/changeanalysis/Azure.ResourceManager.ChangeAnalysis + - sdk/storagemover/Azure.ResourceManager.StorageMover - sdk/extendedlocation/Azure.ResourceManager.ExtendedLocations + - sdk/selfhelp/Azure.ResourceManager.SelfHelp + - sdk/communication/Azure.ResourceManager.Communication + - sdk/databoxedge/Azure.ResourceManager.DataBoxEdge + - sdk/servicefabric/Azure.ResourceManager.ServiceFabric + - sdk/digitaltwins/Azure.ResourceManager.DigitalTwins + - sdk/batch/Azure.ResourceManager.Batch + - sdk/resourcegraph/Azure.ResourceManager.ResourceGraph - 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/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/deviceregistry/Azure.ResourceManager.DeviceRegistry + - sdk/labservices/Azure.ResourceManager.LabServices + - sdk/costmanagement/Azure.ResourceManager.CostManagement + - sdk/mixedreality/Azure.ResourceManager.MixedReality + - sdk/orbital/Azure.ResourceManager.Orbital - sdk/healthcareapis/Azure.ResourceManager.HealthcareApis - - sdk/healthdataaiservices/Azure.ResourceManager.HealthDataAIServices - - sdk/hybridaks/Azure.ResourceManager.HybridContainerService + - sdk/appconfiguration/Azure.ResourceManager.AppConfiguration + - sdk/storagecache/Azure.ResourceManager.StorageCache + - sdk/connectedvmwarevsphere/Azure.ResourceManager.ConnectedVMwarevSphere + - sdk/compute/Azure.ResourceManager.Compute - 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/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/devtestlabs/Azure.ResourceManager.DevTestLabs - sdk/managedserviceidentity/Azure.ResourceManager.ManagedServiceIdentities - - sdk/managedservices/Azure.ResourceManager.ManagedServices - - sdk/managementpartner/Azure.ResourceManager.ManagementPartner - - sdk/maps/Azure.ResourceManager.Maps - - sdk/marketplace/Azure.ResourceManager.Marketplace + - sdk/datafactory/Azure.ResourceManager.DataFactory + - sdk/fluidrelay/Azure.ResourceManager.FluidRelay + - sdk/appcomplianceautomation/Azure.ResourceManager.AppComplianceAutomation + - sdk/privatedns/Azure.ResourceManager.PrivateDns + - sdk/authorization/Azure.ResourceManager.Authorization + - sdk/trustedsigning/Azure.ResourceManager.TrustedSigning + - sdk/advisor/Azure.ResourceManager.Advisor - sdk/marketplaceordering/Azure.ResourceManager.MarketplaceOrdering - - sdk/mediaservices/Azure.ResourceManager.Media + - sdk/voiceservices/Azure.ResourceManager.VoiceServices + - sdk/securitycenter/Azure.ResourceManager.SecurityCenter + - sdk/confluent/Azure.ResourceManager.Confluent + - sdk/azurelargeinstance/Azure.ResourceManager.LargeInstance + - sdk/confidentialledger/Azure.ResourceManager.ConfidentialLedger + - sdk/reservations/Azure.ResourceManager.Reservations - 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/neonpostgres/Azure.ResourceManager.NeonPostgres - - sdk/netapp/Azure.ResourceManager.NetApp - - sdk/network/Azure.ResourceManager.Network + - sdk/trafficmanager/Azure.ResourceManager.TrafficManager + - sdk/computeschedule/Azure.ResourceManager.ComputeSchedule + - sdk/avs/Azure.ResourceManager.Avs + - sdk/keyvault/Azure.ResourceManager.KeyVault + - sdk/maps/Azure.ResourceManager.Maps + - sdk/powerbidedicated/Azure.ResourceManager.PowerBIDedicated + - sdk/hybridaks/Azure.ResourceManager.HybridContainerService + - sdk/qumulo/Azure.ResourceManager.Qumulo - sdk/networkanalytics/Azure.ResourceManager.NetworkAnalytics - - 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/openenergyplatform/Azure.ResourceManager.EnergyServices + - sdk/hybridkubernetes/Azure.ResourceManager.Kubernetes + - sdk/automation/Azure.ResourceManager.Automation + - sdk/network/Azure.ResourceManager.Network + - sdk/attestation/Azure.ResourceManager.Attestation + - sdk/graphservices/Azure.ResourceManager.GraphServices + - sdk/storage/Azure.ResourceManager.Storage + - sdk/managementpartner/Azure.ResourceManager.ManagementPartner + - sdk/devcenter/Azure.ResourceManager.DevCenter + - sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup + - sdk/kubernetesconfiguration/Azure.ResourceManager.KubernetesConfiguration + - sdk/appplatform/Azure.ResourceManager.AppPlatform + - sdk/cognitiveservices/Azure.ResourceManager.CognitiveServices - sdk/operationalinsights/Azure.ResourceManager.OperationalInsights - - sdk/oracle/Azure.ResourceManager.OracleDatabase - - sdk/orbital/Azure.ResourceManager.Orbital + - sdk/hybridnetwork/Azure.ResourceManager.HybridNetwork + - sdk/hdinsightcontainers/Azure.ResourceManager.HDInsight.Containers - sdk/paloaltonetworks.ngfw/Azure.ResourceManager.PaloAltoNetworks.Ngfw - - sdk/peering/Azure.ResourceManager.Peering - - sdk/playwrighttesting/Azure.ResourceManager.PlaywrightTesting + - sdk/cosmosdbforpostgresql/Azure.ResourceManager.CosmosDBForPostgreSql + - sdk/fleet/Azure.ResourceManager.ContainerServiceFleet + - sdk/networkfunction/Azure.ResourceManager.NetworkFunction + - sdk/healthdataaiservices/Azure.ResourceManager.HealthDataAIServices + - sdk/datashare/Azure.ResourceManager.DataShare + - sdk/storagesync/Azure.ResourceManager.StorageSync + - sdk/mongocluster/Azure.ResourceManager.MongoCluster + - sdk/openenergyplatform/Azure.ResourceManager.EnergyServices + - sdk/subscription/Azure.ResourceManager.Subscription + - sdk/loadtestservice/Azure.ResourceManager.LoadTesting + - sdk/sqlmanagement/Azure.ResourceManager.Sql + - sdk/dns/Azure.ResourceManager.Dns + - sdk/workloadmonitor/Azure.ResourceManager.WorkloadMonitor + - sdk/websites/Azure.ResourceManager.AppService + - sdk/streamanalytics/Azure.ResourceManager.StreamAnalytics - 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/mediaservices/Azure.ResourceManager.Media + - sdk/maintenance/Azure.ResourceManager.Maintenance + - sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise + - sdk/kusto/Azure.ResourceManager.Kusto + - sdk/workloads/Azure.ResourceManager.Workloads + - sdk/devopsinfrastructure/Azure.ResourceManager.DevOpsInfrastructure + - sdk/analysisservices/Azure.ResourceManager.Analysis + - sdk/eventgrid/Azure.ResourceManager.EventGrid + - sdk/containerservice/Azure.ResourceManager.ContainerService + - sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization + - sdk/apicenter/Azure.ResourceManager.ApiCenter + - sdk/deviceupdate/Azure.ResourceManager.DeviceUpdate + - sdk/guestconfiguration/Azure.ResourceManager.GuestConfiguration + - sdk/billing/Azure.ResourceManager.Billing + - sdk/securitydevops/Azure.ResourceManager.SecurityDevOps + - sdk/terraform/Azure.ResourceManager.Terraform + - sdk/webpubsub/Azure.ResourceManager.WebPubSub + - sdk/automanage/Azure.ResourceManager.Automanage + - sdk/sphere/Azure.ResourceManager.Sphere + - sdk/applicationinsights/Azure.ResourceManager.ApplicationInsights + - sdk/agrifood/Azure.ResourceManager.AgFoodPlatform + - sdk/containerorchestratorruntime/Azure.ResourceManager.ContainerOrchestratorRuntime + - sdk/eventhub/Azure.ResourceManager.EventHubs - sdk/recoveryservices-datareplication/Azure.ResourceManager.RecoveryServicesDataReplication - sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery - - sdk/redis/Azure.ResourceManager.Redis - - sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise + - sdk/alertsmanagement/Azure.ResourceManager.AlertsManagement + - sdk/botservice/Azure.ResourceManager.BotService + - sdk/synapse/Azure.ResourceManager.Synapse + - sdk/azurestackhci/Azure.ResourceManager.Hci + - sdk/purview/Azure.ResourceManager.Purview + - sdk/hardwaresecuritymodules/Azure.ResourceManager.HardwareSecurityModules + - sdk/servicebus/Azure.ResourceManager.ServiceBus + - sdk/standbypool/Azure.ResourceManager.StandbyPool + - sdk/dynatrace/Azure.ResourceManager.Dynatrace + - sdk/dnsresolver/Azure.ResourceManager.DnsResolver + - sdk/iotcentral/Azure.ResourceManager.IotCentral - 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/storagepool/Azure.ResourceManager.StoragePool + - sdk/playwrighttesting/Azure.ResourceManager.PlaywrightTesting + - sdk/neonpostgres/Azure.ResourceManager.NeonPostgres + - sdk/blueprint/Azure.ResourceManager.Blueprint + - sdk/healthbot/Azure.ResourceManager.HealthBot + - sdk/sqlvirtualmachine/Azure.ResourceManager.SqlVirtualMachine + - sdk/oracle/Azure.ResourceManager.OracleDatabase - sdk/resourcemover/Azure.ResourceManager.ResourceMover - - sdk/resources/Azure.ResourceManager.Resources + - sdk/dataprotection/Azure.ResourceManager.DataProtectionBackup + - sdk/managednetwork/Azure.ResourceManager.ManagedNetwork + - sdk/resourceconnector/Azure.ResourceManager.ResourceConnector + - sdk/nginx/Azure.ResourceManager.Nginx + - sdk/support/Azure.ResourceManager.Support - sdk/search/Azure.ResourceManager.Search - - sdk/securitycenter/Azure.ResourceManager.SecurityCenter - - sdk/securitydevops/Azure.ResourceManager.SecurityDevOps + - sdk/providerhub/Azure.ResourceManager.ProviderHub + - sdk/frontdoor/Azure.ResourceManager.FrontDoor + - sdk/customer-insights/Azure.ResourceManager.CustomerInsights + - sdk/monitor/Azure.ResourceManager.Monitor + - sdk/computefleet/Azure.ResourceManager.ComputeFleet + - sdk/edgezones/Azure.ResourceManager.EdgeZones + - sdk/grafana/Azure.ResourceManager.Grafana + - sdk/edgeorder/Azure.ResourceManager.EdgeOrder + - sdk/billingbenefits/Azure.ResourceManager.BillingBenefits + - sdk/cosmosdb/Azure.ResourceManager.CosmosDB + - sdk/servicenetworking/Azure.ResourceManager.ServiceNetworking + - sdk/storageactions/Azure.ResourceManager.StorageActions + - sdk/containerregistry/Azure.ResourceManager.ContainerRegistry + - sdk/astronomer/Azure.ResourceManager.Astro + - sdk/machinelearningservices/Azure.ResourceManager.MachineLearning + - sdk/apimanagement/Azure.ResourceManager.ApiManagement + - sdk/databox/Azure.ResourceManager.DataBox + - sdk/elasticsan/Azure.ResourceManager.ElasticSan + - sdk/chaos/Azure.ResourceManager.Chaos + - sdk/resources/Azure.ResourceManager.Resources + - sdk/containerinstance/Azure.ResourceManager.ContainerInstance + - sdk/peering/Azure.ResourceManager.Peering + - sdk/cdn/Azure.ResourceManager.Cdn - sdk/securityinsights/Azure.ResourceManager.SecurityInsights - - sdk/selfhelp/Azure.ResourceManager.SelfHelp - - sdk/servicebus/Azure.ResourceManager.ServiceBus - - sdk/servicefabric/Azure.ResourceManager.ServiceFabric - - sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters + - sdk/networkcloud/Azure.ResourceManager.NetworkCloud - sdk/servicelinker/Azure.ResourceManager.ServiceLinker - - sdk/servicenetworking/Azure.ResourceManager.ServiceNetworking - - sdk/signalr/Azure.ResourceManager.SignalR - - sdk/sphere/Azure.ResourceManager.Sphere + - sdk/mobilenetwork/Azure.ResourceManager.MobileNetwork + - sdk/machinelearningcompute/Azure.ResourceManager.MachineLearningCompute + - sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity + - sdk/marketplace/Azure.ResourceManager.Marketplace - 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/terraform/Azure.ResourceManager.Terraform - - 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/workloads/Azure.ResourceManager.Workloads + - sdk/logic/Azure.ResourceManager.Logic + - sdk/redis/Azure.ResourceManager.Redis + - sdk/datalake-store/Azure.ResourceManager.DataLakeStore + - sdk/consumption/Azure.ResourceManager.Consumption + - sdk/containerapps/Azure.ResourceManager.AppContainers + - sdk/hdinsight/Azure.ResourceManager.HDInsight + - sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability + - sdk/resourcehealth/Azure.ResourceManager.ResourceHealth + - sdk/defendereasm/Azure.ResourceManager.DefenderEasm + - sdk/quantum/Azure.ResourceManager.Quantum + - sdk/signalr/Azure.ResourceManager.SignalR + - sdk/managedservices/Azure.ResourceManager.ManagedServices + - sdk/datadog/Azure.ResourceManager.Datadog + - sdk/arc-scvmm/Azure.ResourceManager.ScVmm + - sdk/devspaces/Azure.ResourceManager.DevSpaces + - sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters + - sdk/notificationhubs/Azure.ResourceManager.NotificationHubs + - sdk/mysql/Azure.ResourceManager.MySql pr: branches: @@ -215,199 +215,199 @@ pr: include: - 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/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/arc-scvmm/Azure.ResourceManager.ScVmm - - 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/avs/Azure.ResourceManager.Avs - - sdk/azurelargeinstance/Azure.ResourceManager.LargeInstance - - sdk/azurestackhci/Azure.ResourceManager.Hci - - 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/containerorchestratorruntime/Azure.ResourceManager.ContainerOrchestratorRuntime - - sdk/containerregistry/Azure.ResourceManager.ContainerRegistry - - 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/databoxedge/Azure.ResourceManager.DataBoxEdge - - sdk/datadog/Azure.ResourceManager.Datadog - - sdk/datafactory/Azure.ResourceManager.DataFactory - - 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/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/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/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/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/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 + - common/ManagementCoreShared + - sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric + - sdk/recoveryservices/Azure.ResourceManager.RecoveryServices + - sdk/postgresql/Azure.ResourceManager.PostgreSql + - sdk/datalake-analytics/Azure.ResourceManager.DataLakeAnalytics + - sdk/quota/Azure.ResourceManager.Quota + - sdk/netapp/Azure.ResourceManager.NetApp + - sdk/deviceprovisioningservices/Azure.ResourceManager.DeviceProvisioningServices - sdk/iot/Azure.ResourceManager.IotFirmwareDefense - - sdk/iotcentral/Azure.ResourceManager.IotCentral + - sdk/informaticadatamanagement/Azure.ResourceManager.InformaticaDataManagement + - sdk/datamigration/Azure.ResourceManager.DataMigration - sdk/iothub/Azure.ResourceManager.IotHub - - sdk/keyvault/Azure.ResourceManager.KeyVault - - sdk/kubernetesconfiguration/Azure.ResourceManager.KubernetesConfiguration - - sdk/kusto/Azure.ResourceManager.Kusto + - sdk/elastic/Azure.ResourceManager.Elastic + - sdk/changeanalysis/Azure.ResourceManager.ChangeAnalysis + - sdk/storagemover/Azure.ResourceManager.StorageMover + - sdk/extendedlocation/Azure.ResourceManager.ExtendedLocations + - sdk/selfhelp/Azure.ResourceManager.SelfHelp + - sdk/communication/Azure.ResourceManager.Communication + - sdk/databoxedge/Azure.ResourceManager.DataBoxEdge + - sdk/servicefabric/Azure.ResourceManager.ServiceFabric + - sdk/digitaltwins/Azure.ResourceManager.DigitalTwins + - sdk/batch/Azure.ResourceManager.Batch + - sdk/resourcegraph/Azure.ResourceManager.ResourceGraph + - sdk/fabric/Azure.ResourceManager.Fabric + - sdk/deviceregistry/Azure.ResourceManager.DeviceRegistry - sdk/labservices/Azure.ResourceManager.LabServices - - sdk/loadtestservice/Azure.ResourceManager.LoadTesting - - 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/costmanagement/Azure.ResourceManager.CostManagement + - sdk/mixedreality/Azure.ResourceManager.MixedReality + - sdk/orbital/Azure.ResourceManager.Orbital + - sdk/healthcareapis/Azure.ResourceManager.HealthcareApis + - sdk/appconfiguration/Azure.ResourceManager.AppConfiguration + - sdk/storagecache/Azure.ResourceManager.StorageCache + - sdk/connectedvmwarevsphere/Azure.ResourceManager.ConnectedVMwarevSphere + - sdk/compute/Azure.ResourceManager.Compute + - sdk/hybridcompute/Azure.ResourceManager.HybridCompute + - sdk/devtestlabs/Azure.ResourceManager.DevTestLabs - sdk/managedserviceidentity/Azure.ResourceManager.ManagedServiceIdentities - - sdk/managedservices/Azure.ResourceManager.ManagedServices - - sdk/managementpartner/Azure.ResourceManager.ManagementPartner - - sdk/maps/Azure.ResourceManager.Maps - - sdk/marketplace/Azure.ResourceManager.Marketplace + - sdk/datafactory/Azure.ResourceManager.DataFactory + - sdk/fluidrelay/Azure.ResourceManager.FluidRelay + - sdk/appcomplianceautomation/Azure.ResourceManager.AppComplianceAutomation + - sdk/privatedns/Azure.ResourceManager.PrivateDns + - sdk/authorization/Azure.ResourceManager.Authorization + - sdk/trustedsigning/Azure.ResourceManager.TrustedSigning + - sdk/advisor/Azure.ResourceManager.Advisor - sdk/marketplaceordering/Azure.ResourceManager.MarketplaceOrdering - - sdk/mediaservices/Azure.ResourceManager.Media + - sdk/voiceservices/Azure.ResourceManager.VoiceServices + - sdk/securitycenter/Azure.ResourceManager.SecurityCenter + - sdk/confluent/Azure.ResourceManager.Confluent + - sdk/azurelargeinstance/Azure.ResourceManager.LargeInstance + - sdk/confidentialledger/Azure.ResourceManager.ConfidentialLedger + - sdk/reservations/Azure.ResourceManager.Reservations - 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/neonpostgres/Azure.ResourceManager.NeonPostgres - - sdk/netapp/Azure.ResourceManager.NetApp - - sdk/network/Azure.ResourceManager.Network + - sdk/trafficmanager/Azure.ResourceManager.TrafficManager + - sdk/computeschedule/Azure.ResourceManager.ComputeSchedule + - sdk/avs/Azure.ResourceManager.Avs + - sdk/keyvault/Azure.ResourceManager.KeyVault + - sdk/maps/Azure.ResourceManager.Maps + - sdk/powerbidedicated/Azure.ResourceManager.PowerBIDedicated + - sdk/hybridaks/Azure.ResourceManager.HybridContainerService + - sdk/qumulo/Azure.ResourceManager.Qumulo - sdk/networkanalytics/Azure.ResourceManager.NetworkAnalytics - - 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/openenergyplatform/Azure.ResourceManager.EnergyServices + - sdk/hybridkubernetes/Azure.ResourceManager.Kubernetes + - sdk/automation/Azure.ResourceManager.Automation + - sdk/network/Azure.ResourceManager.Network + - sdk/attestation/Azure.ResourceManager.Attestation + - sdk/graphservices/Azure.ResourceManager.GraphServices + - sdk/storage/Azure.ResourceManager.Storage + - sdk/managementpartner/Azure.ResourceManager.ManagementPartner + - sdk/devcenter/Azure.ResourceManager.DevCenter + - sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup + - sdk/kubernetesconfiguration/Azure.ResourceManager.KubernetesConfiguration + - sdk/appplatform/Azure.ResourceManager.AppPlatform + - sdk/cognitiveservices/Azure.ResourceManager.CognitiveServices - sdk/operationalinsights/Azure.ResourceManager.OperationalInsights - - sdk/oracle/Azure.ResourceManager.OracleDatabase - - sdk/orbital/Azure.ResourceManager.Orbital + - sdk/hybridnetwork/Azure.ResourceManager.HybridNetwork + - sdk/hdinsightcontainers/Azure.ResourceManager.HDInsight.Containers - sdk/paloaltonetworks.ngfw/Azure.ResourceManager.PaloAltoNetworks.Ngfw - - sdk/peering/Azure.ResourceManager.Peering - - sdk/playwrighttesting/Azure.ResourceManager.PlaywrightTesting + - sdk/cosmosdbforpostgresql/Azure.ResourceManager.CosmosDBForPostgreSql + - sdk/fleet/Azure.ResourceManager.ContainerServiceFleet + - sdk/networkfunction/Azure.ResourceManager.NetworkFunction + - sdk/healthdataaiservices/Azure.ResourceManager.HealthDataAIServices + - sdk/datashare/Azure.ResourceManager.DataShare + - sdk/storagesync/Azure.ResourceManager.StorageSync + - sdk/mongocluster/Azure.ResourceManager.MongoCluster + - sdk/openenergyplatform/Azure.ResourceManager.EnergyServices + - sdk/subscription/Azure.ResourceManager.Subscription + - sdk/loadtestservice/Azure.ResourceManager.LoadTesting + - sdk/sqlmanagement/Azure.ResourceManager.Sql + - sdk/dns/Azure.ResourceManager.Dns + - sdk/workloadmonitor/Azure.ResourceManager.WorkloadMonitor + - sdk/websites/Azure.ResourceManager.AppService + - sdk/streamanalytics/Azure.ResourceManager.StreamAnalytics - 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/mediaservices/Azure.ResourceManager.Media + - sdk/maintenance/Azure.ResourceManager.Maintenance + - sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise + - sdk/kusto/Azure.ResourceManager.Kusto + - sdk/workloads/Azure.ResourceManager.Workloads + - sdk/devopsinfrastructure/Azure.ResourceManager.DevOpsInfrastructure + - sdk/analysisservices/Azure.ResourceManager.Analysis + - sdk/eventgrid/Azure.ResourceManager.EventGrid + - sdk/containerservice/Azure.ResourceManager.ContainerService + - sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization + - sdk/apicenter/Azure.ResourceManager.ApiCenter + - sdk/deviceupdate/Azure.ResourceManager.DeviceUpdate + - sdk/guestconfiguration/Azure.ResourceManager.GuestConfiguration + - sdk/billing/Azure.ResourceManager.Billing + - sdk/securitydevops/Azure.ResourceManager.SecurityDevOps + - sdk/terraform/Azure.ResourceManager.Terraform + - sdk/webpubsub/Azure.ResourceManager.WebPubSub + - sdk/automanage/Azure.ResourceManager.Automanage + - sdk/sphere/Azure.ResourceManager.Sphere + - sdk/applicationinsights/Azure.ResourceManager.ApplicationInsights + - sdk/agrifood/Azure.ResourceManager.AgFoodPlatform + - sdk/containerorchestratorruntime/Azure.ResourceManager.ContainerOrchestratorRuntime + - sdk/eventhub/Azure.ResourceManager.EventHubs - sdk/recoveryservices-datareplication/Azure.ResourceManager.RecoveryServicesDataReplication - sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery - - sdk/redis/Azure.ResourceManager.Redis - - sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise + - sdk/alertsmanagement/Azure.ResourceManager.AlertsManagement + - sdk/botservice/Azure.ResourceManager.BotService + - sdk/synapse/Azure.ResourceManager.Synapse + - sdk/azurestackhci/Azure.ResourceManager.Hci + - sdk/purview/Azure.ResourceManager.Purview + - sdk/hardwaresecuritymodules/Azure.ResourceManager.HardwareSecurityModules + - sdk/servicebus/Azure.ResourceManager.ServiceBus + - sdk/standbypool/Azure.ResourceManager.StandbyPool + - sdk/dynatrace/Azure.ResourceManager.Dynatrace + - sdk/dnsresolver/Azure.ResourceManager.DnsResolver + - sdk/iotcentral/Azure.ResourceManager.IotCentral - 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/storagepool/Azure.ResourceManager.StoragePool + - sdk/playwrighttesting/Azure.ResourceManager.PlaywrightTesting + - sdk/neonpostgres/Azure.ResourceManager.NeonPostgres + - sdk/blueprint/Azure.ResourceManager.Blueprint + - sdk/healthbot/Azure.ResourceManager.HealthBot + - sdk/sqlvirtualmachine/Azure.ResourceManager.SqlVirtualMachine + - sdk/oracle/Azure.ResourceManager.OracleDatabase - sdk/resourcemover/Azure.ResourceManager.ResourceMover - - sdk/resources/Azure.ResourceManager.Resources + - sdk/dataprotection/Azure.ResourceManager.DataProtectionBackup + - sdk/managednetwork/Azure.ResourceManager.ManagedNetwork + - sdk/resourceconnector/Azure.ResourceManager.ResourceConnector + - sdk/nginx/Azure.ResourceManager.Nginx + - sdk/support/Azure.ResourceManager.Support - sdk/search/Azure.ResourceManager.Search - - sdk/securitycenter/Azure.ResourceManager.SecurityCenter - - sdk/securitydevops/Azure.ResourceManager.SecurityDevOps + - sdk/providerhub/Azure.ResourceManager.ProviderHub + - sdk/frontdoor/Azure.ResourceManager.FrontDoor + - sdk/customer-insights/Azure.ResourceManager.CustomerInsights + - sdk/monitor/Azure.ResourceManager.Monitor + - sdk/computefleet/Azure.ResourceManager.ComputeFleet + - sdk/edgezones/Azure.ResourceManager.EdgeZones + - sdk/grafana/Azure.ResourceManager.Grafana + - sdk/edgeorder/Azure.ResourceManager.EdgeOrder + - sdk/billingbenefits/Azure.ResourceManager.BillingBenefits + - sdk/cosmosdb/Azure.ResourceManager.CosmosDB + - sdk/servicenetworking/Azure.ResourceManager.ServiceNetworking + - sdk/storageactions/Azure.ResourceManager.StorageActions + - sdk/containerregistry/Azure.ResourceManager.ContainerRegistry + - sdk/astronomer/Azure.ResourceManager.Astro + - sdk/machinelearningservices/Azure.ResourceManager.MachineLearning + - sdk/apimanagement/Azure.ResourceManager.ApiManagement + - sdk/databox/Azure.ResourceManager.DataBox + - sdk/elasticsan/Azure.ResourceManager.ElasticSan + - sdk/chaos/Azure.ResourceManager.Chaos + - sdk/resources/Azure.ResourceManager.Resources + - sdk/containerinstance/Azure.ResourceManager.ContainerInstance + - sdk/peering/Azure.ResourceManager.Peering + - sdk/cdn/Azure.ResourceManager.Cdn - sdk/securityinsights/Azure.ResourceManager.SecurityInsights - - sdk/selfhelp/Azure.ResourceManager.SelfHelp - - sdk/servicebus/Azure.ResourceManager.ServiceBus - - sdk/servicefabric/Azure.ResourceManager.ServiceFabric - - sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters + - sdk/networkcloud/Azure.ResourceManager.NetworkCloud - sdk/servicelinker/Azure.ResourceManager.ServiceLinker - - sdk/servicenetworking/Azure.ResourceManager.ServiceNetworking - - sdk/signalr/Azure.ResourceManager.SignalR - - sdk/sphere/Azure.ResourceManager.Sphere + - sdk/mobilenetwork/Azure.ResourceManager.MobileNetwork + - sdk/machinelearningcompute/Azure.ResourceManager.MachineLearningCompute + - sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity + - sdk/marketplace/Azure.ResourceManager.Marketplace - 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/terraform/Azure.ResourceManager.Terraform - - 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/workloads/Azure.ResourceManager.Workloads + - sdk/logic/Azure.ResourceManager.Logic + - sdk/redis/Azure.ResourceManager.Redis + - sdk/datalake-store/Azure.ResourceManager.DataLakeStore + - sdk/consumption/Azure.ResourceManager.Consumption + - sdk/containerapps/Azure.ResourceManager.AppContainers + - sdk/hdinsight/Azure.ResourceManager.HDInsight + - sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability + - sdk/resourcehealth/Azure.ResourceManager.ResourceHealth + - sdk/defendereasm/Azure.ResourceManager.DefenderEasm + - sdk/quantum/Azure.ResourceManager.Quantum + - sdk/signalr/Azure.ResourceManager.SignalR + - sdk/managedservices/Azure.ResourceManager.ManagedServices + - sdk/datadog/Azure.ResourceManager.Datadog + - sdk/arc-scvmm/Azure.ResourceManager.ScVmm + - sdk/devspaces/Azure.ResourceManager.DevSpaces + - sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters + - sdk/notificationhubs/Azure.ResourceManager.NotificationHubs + - sdk/mysql/Azure.ResourceManager.MySql 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/terraform/ci.mgmt.yml b/sdk/terraform/ci.mgmt.yml index 82c4c1f05a4c..5f7b3d41fb27 100644 --- a/sdk/terraform/ci.mgmt.yml +++ b/sdk/terraform/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/terraform/ci.mgmt.yml - sdk/terraform/Azure.ResourceManager.Terraform/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/terraform/ci.mgmt.yml + - sdk/terraform/Azure.ResourceManager.Terraform/ + 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: