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/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/impact/Azure.ResourceManager.Impact/Azure.ResourceManager.Impact.sln b/sdk/impact/Azure.ResourceManager.Impact/Azure.ResourceManager.Impact.sln
new file mode 100644
index 000000000000..0f168fc32e2b
--- /dev/null
+++ b/sdk/impact/Azure.ResourceManager.Impact/Azure.ResourceManager.Impact.sln
@@ -0,0 +1,56 @@
+Microsoft Visual Studio Solution File, Format Version 12.00
+# Visual Studio Version 16
+VisualStudioVersion = 16.0.29709.97
+MinimumVisualStudioVersion = 10.0.40219.1
+Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Azure.Core.TestFramework", "..\..\core\Azure.Core.TestFramework\src\Azure.Core.TestFramework.csproj", "{ECC730C1-4AEA-420C-916A-66B19B79E4DC}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Azure.ResourceManager.Impact", "src\Azure.ResourceManager.Impact.csproj", "{28FF4005-4467-4E36-92E7-DEA27DEB1519}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Azure.ResourceManager.Impact.Tests", "tests\Azure.ResourceManager.Impact.Tests.csproj", "{1F1CD1D4-9932-4B73-99D8-C252A67D4B46}"
+EndProject
+Global
+ GlobalSection(SolutionConfigurationPlatforms) = preSolution
+ Debug|Any CPU = Debug|Any CPU
+ Release|Any CPU = Release|Any CPU
+ EndGlobalSection
+ GlobalSection(ProjectConfigurationPlatforms) = postSolution
+ {B0C276D1-2930-4887-B29A-D1A33E7009A2}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {B0C276D1-2930-4887-B29A-D1A33E7009A2}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {B0C276D1-2930-4887-B29A-D1A33E7009A2}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {B0C276D1-2930-4887-B29A-D1A33E7009A2}.Release|Any CPU.Build.0 = Release|Any CPU
+ {8E9A77AC-792A-4432-8320-ACFD46730401}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {8E9A77AC-792A-4432-8320-ACFD46730401}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {8E9A77AC-792A-4432-8320-ACFD46730401}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {8E9A77AC-792A-4432-8320-ACFD46730401}.Release|Any CPU.Build.0 = Release|Any CPU
+ {ECC730C1-4AEA-420C-916A-66B19B79E4DC}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {ECC730C1-4AEA-420C-916A-66B19B79E4DC}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {ECC730C1-4AEA-420C-916A-66B19B79E4DC}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {ECC730C1-4AEA-420C-916A-66B19B79E4DC}.Release|Any CPU.Build.0 = Release|Any CPU
+ {A4241C1F-A53D-474C-9E4E-075054407E74}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {A4241C1F-A53D-474C-9E4E-075054407E74}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {A4241C1F-A53D-474C-9E4E-075054407E74}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {A4241C1F-A53D-474C-9E4E-075054407E74}.Release|Any CPU.Build.0 = Release|Any CPU
+ {FA8BD3F1-8616-47B6-974C-7576CDF4717E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {FA8BD3F1-8616-47B6-974C-7576CDF4717E}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {FA8BD3F1-8616-47B6-974C-7576CDF4717E}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {FA8BD3F1-8616-47B6-974C-7576CDF4717E}.Release|Any CPU.Build.0 = Release|Any CPU
+ {85677AD3-C214-42FA-AE6E-49B956CAC8DC}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {85677AD3-C214-42FA-AE6E-49B956CAC8DC}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {85677AD3-C214-42FA-AE6E-49B956CAC8DC}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {85677AD3-C214-42FA-AE6E-49B956CAC8DC}.Release|Any CPU.Build.0 = Release|Any CPU
+ {28FF4005-4467-4E36-92E7-DEA27DEB1519}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {28FF4005-4467-4E36-92E7-DEA27DEB1519}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {28FF4005-4467-4E36-92E7-DEA27DEB1519}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {28FF4005-4467-4E36-92E7-DEA27DEB1519}.Release|Any CPU.Build.0 = Release|Any CPU
+ {1F1CD1D4-9932-4B73-99D8-C252A67D4B46}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {1F1CD1D4-9932-4B73-99D8-C252A67D4B46}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {1F1CD1D4-9932-4B73-99D8-C252A67D4B46}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {1F1CD1D4-9932-4B73-99D8-C252A67D4B46}.Release|Any CPU.Build.0 = Release|Any CPU
+ EndGlobalSection
+ GlobalSection(SolutionProperties) = preSolution
+ HideSolutionNode = FALSE
+ EndGlobalSection
+ GlobalSection(ExtensibilityGlobals) = postSolution
+ SolutionGuid = {A97F4B90-2591-4689-B1F8-5F21FE6D6CAE}
+ EndGlobalSection
+EndGlobal
diff --git a/sdk/impact/Azure.ResourceManager.Impact/CHANGELOG.md b/sdk/impact/Azure.ResourceManager.Impact/CHANGELOG.md
new file mode 100644
index 000000000000..13dd08af78ab
--- /dev/null
+++ b/sdk/impact/Azure.ResourceManager.Impact/CHANGELOG.md
@@ -0,0 +1,11 @@
+# Release History
+
+## 1.0.0-beta.1 (Unreleased)
+
+### Features Added
+
+### Breaking Changes
+
+### Bugs Fixed
+
+### Other Changes
diff --git a/sdk/impact/Azure.ResourceManager.Impact/Directory.Build.props b/sdk/impact/Azure.ResourceManager.Impact/Directory.Build.props
new file mode 100644
index 000000000000..63bd836ad44b
--- /dev/null
+++ b/sdk/impact/Azure.ResourceManager.Impact/Directory.Build.props
@@ -0,0 +1,6 @@
+
+
+
+
diff --git a/sdk/impact/Azure.ResourceManager.Impact/README.md b/sdk/impact/Azure.ResourceManager.Impact/README.md
new file mode 100644
index 000000000000..1b4c2a023c44
--- /dev/null
+++ b/sdk/impact/Azure.ResourceManager.Impact/README.md
@@ -0,0 +1,86 @@
+# Azure.ResourceManager.Impact client library for .NET
+
+Azure.ResourceManager.Impact is a managed service that helps developers get secret simply and securely.
+
+Use the client library for to:
+
+* [Get secret](https://docs.microsoft.com/azure)
+
+[Source code][source_root] | [Package (NuGet)][package] | [API reference documentation][reference_docs] | [Product documentation][azconfig_docs] | [Samples][source_samples]
+
+ [Source code](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/impact/Azure.ResourceManager.Impact/src) | [Package (NuGet)](https://www.nuget.org/packages) | [API reference documentation](https://azure.github.io/azure-sdk-for-net) | [Product documentation](https://docs.microsoft.com/azure)
+
+## Getting started
+
+This section should include everything a developer needs to do to install and create their first client connection *very quickly*.
+
+### Install the package
+
+First, provide instruction for obtaining and installing the package or library. This section might include only a single line of code, like `dotnet add package package-name`, but should enable a developer to successfully install the package from NuGet, npm, or even cloning a GitHub repository.
+
+Install the client library for .NET with [NuGet](https://www.nuget.org/ ):
+
+```dotnetcli
+dotnet add package Azure.ResourceManager.Impact --prerelease
+```
+
+### Prerequisites
+
+Include a section after the install command that details any requirements that must be satisfied before a developer can [authenticate](#authenticate-the-client) and test all of the snippets in the [Examples](#examples) section. For example, for Cosmos DB:
+
+> You must have an [Azure subscription](https://azure.microsoft.com/free/dotnet/) and [Cosmos DB account](https://docs.microsoft.com/azure/cosmos-db/account-overview) (SQL API). In order to take advantage of the C# 8.0 syntax, it is recommended that you compile using the [.NET Core SDK](https://dotnet.microsoft.com/download) 3.0 or higher with a [language version](https://docs.microsoft.com/dotnet/csharp/language-reference/configure-language-version#override-a-default) of `latest`. It is also possible to compile with the .NET Core SDK 2.1.x using a language version of `preview`.
+
+### Authenticate the client
+
+If your library requires authentication for use, such as for Azure services, include instructions and example code needed for initializing and authenticating.
+
+For example, include details on obtaining an account key and endpoint URI, setting environment variables for each, and initializing the client object.
+
+## Key concepts
+
+The *Key concepts* section should describe the functionality of the main classes. Point out the most important and useful classes in the package (with links to their reference pages) and explain how those classes work together. Feel free to use bulleted lists, tables, code blocks, or even diagrams for clarity.
+
+Include the *Thread safety* and *Additional concepts* sections below at the end of your *Key concepts* section. You may remove or add links depending on what your library makes use of:
+
+### Thread safety
+
+We guarantee that all client instance methods are thread-safe and independent of each other ([guideline](https://azure.github.io/azure-sdk/dotnet_introduction.html#dotnet-service-methods-thread-safety)). This ensures that the recommendation of reusing client instances is always safe, even across threads.
+
+### Additional concepts
+
+[Client options](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/README.md#configuring-service-clients-using-clientoptions) |
+[Accessing the response](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/README.md#accessing-http-response-details-using-responset) |
+[Long-running operations](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/README.md#consuming-long-running-operations-using-operationt) |
+[Handling failures](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/README.md#reporting-errors-requestfailedexception) |
+[Diagnostics](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/samples/Diagnostics.md) |
+[Mocking](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/README.md#mocking) |
+[Client lifetime](https://devblogs.microsoft.com/azure-sdk/lifetime-management-and-thread-safety-guarantees-of-azure-sdk-net-clients/)
+
+
+## Examples
+
+You can familiarize yourself with different APIs using [Samples](https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/impact/Azure.ResourceManager.Impact/samples).
+
+## Troubleshooting
+
+Describe common errors and exceptions, how to "unpack" them if necessary, and include guidance for graceful handling and recovery.
+
+Provide information to help developers avoid throttling or other service-enforced errors they might encounter. For example, provide guidance and examples for using retry or connection policies in the API.
+
+If the package or a related package supports it, include tips for logging or enabling instrumentation to help them debug their code.
+
+## Next steps
+
+* Provide a link to additional code examples, ideally to those sitting alongside the README in the package's `/samples` directory.
+* If appropriate, point users to other packages that might be useful.
+* If you think there's a good chance that developers might stumble across your package in error (because they're searching for specific functionality and mistakenly think the package provides that functionality), point them to the packages they might be looking for.
+
+## Contributing
+
+This is a template, but your SDK readme should include details on how to contribute code to the repo/package.
+
+
+[style-guide-msft]: https://docs.microsoft.com/style-guide/capitalization
+[style-guide-cloud]: https://aka.ms/azsdk/cloud-style-guide
+
+
diff --git a/sdk/impact/Azure.ResourceManager.Impact/samples/Generated/Samples/Sample_ConnectorCollection.cs b/sdk/impact/Azure.ResourceManager.Impact/samples/Generated/Samples/Sample_ConnectorCollection.cs
new file mode 100644
index 000000000000..168964f5786e
--- /dev/null
+++ b/sdk/impact/Azure.ResourceManager.Impact/samples/Generated/Samples/Sample_ConnectorCollection.cs
@@ -0,0 +1,191 @@
+// 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.Impact.Models;
+using Azure.ResourceManager.Resources;
+using NUnit.Framework;
+
+namespace Azure.ResourceManager.Impact.Samples
+{
+ public partial class Sample_ConnectorCollection
+ {
+ [Test]
+ [Ignore("Only validating compilation of examples")]
+ public async Task CreateOrUpdate_ConnectorsCreateOrUpdate()
+ {
+ // Generated from example definition: 2025-02-01-preview/Connectors_CreateOrUpdate.json
+ // this example is just showing the usage of "Connector_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 SubscriptionResource created on azure
+ // for more information of creating SubscriptionResource, please refer to the document of SubscriptionResource
+ string subscriptionId = "74f5e23f-d4d9-410a-bb4d-8f0608adb10d";
+ ResourceIdentifier subscriptionResourceId = SubscriptionResource.CreateResourceIdentifier(subscriptionId);
+ SubscriptionResource subscriptionResource = client.GetSubscriptionResource(subscriptionResourceId);
+
+ // get the collection of this ConnectorResource
+ ConnectorCollection collection = subscriptionResource.GetConnectors();
+
+ // invoke the operation
+ string connectorName = "testconnector1";
+ ConnectorData data = new ConnectorData
+ {
+ Properties = new ConnectorProperties(null, null, Platform.AzureMonitor, default),
+ };
+ ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, connectorName, data);
+ ConnectorResource 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
+ ConnectorData 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_ConnectorsGet()
+ {
+ // Generated from example definition: 2025-02-01-preview/Connectors_Get.json
+ // this example is just showing the usage of "Connector_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 SubscriptionResource created on azure
+ // for more information of creating SubscriptionResource, please refer to the document of SubscriptionResource
+ string subscriptionId = "74f5e23f-d4d9-410a-bb4d-8f0608adb10d";
+ ResourceIdentifier subscriptionResourceId = SubscriptionResource.CreateResourceIdentifier(subscriptionId);
+ SubscriptionResource subscriptionResource = client.GetSubscriptionResource(subscriptionResourceId);
+
+ // get the collection of this ConnectorResource
+ ConnectorCollection collection = subscriptionResource.GetConnectors();
+
+ // invoke the operation
+ string connectorName = "testconnector1";
+ ConnectorResource result = await collection.GetAsync(connectorName);
+
+ // 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
+ ConnectorData 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_ConnectorsListBySubscription()
+ {
+ // Generated from example definition: 2025-02-01-preview/Connectors_ListBySubscription.json
+ // this example is just showing the usage of "Connector_ListBySubscription" operation, for the dependent resources, they will have to be created separately.
+
+ // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this SubscriptionResource created on azure
+ // for more information of creating SubscriptionResource, please refer to the document of SubscriptionResource
+ string subscriptionId = "74f5e23f-d4d9-410a-bb4d-8f0608adb10d";
+ ResourceIdentifier subscriptionResourceId = SubscriptionResource.CreateResourceIdentifier(subscriptionId);
+ SubscriptionResource subscriptionResource = client.GetSubscriptionResource(subscriptionResourceId);
+
+ // get the collection of this ConnectorResource
+ ConnectorCollection collection = subscriptionResource.GetConnectors();
+
+ // invoke the operation and iterate over the result
+ await foreach (ConnectorResource 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
+ ConnectorData resourceData = item.Data;
+ // for demo we just print out the id
+ Console.WriteLine($"Succeeded on id: {resourceData.Id}");
+ }
+
+ Console.WriteLine("Succeeded");
+ }
+
+ [Test]
+ [Ignore("Only validating compilation of examples")]
+ public async Task Exists_ConnectorsGet()
+ {
+ // Generated from example definition: 2025-02-01-preview/Connectors_Get.json
+ // this example is just showing the usage of "Connector_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 SubscriptionResource created on azure
+ // for more information of creating SubscriptionResource, please refer to the document of SubscriptionResource
+ string subscriptionId = "74f5e23f-d4d9-410a-bb4d-8f0608adb10d";
+ ResourceIdentifier subscriptionResourceId = SubscriptionResource.CreateResourceIdentifier(subscriptionId);
+ SubscriptionResource subscriptionResource = client.GetSubscriptionResource(subscriptionResourceId);
+
+ // get the collection of this ConnectorResource
+ ConnectorCollection collection = subscriptionResource.GetConnectors();
+
+ // invoke the operation
+ string connectorName = "testconnector1";
+ bool result = await collection.ExistsAsync(connectorName);
+
+ Console.WriteLine($"Succeeded: {result}");
+ }
+
+ [Test]
+ [Ignore("Only validating compilation of examples")]
+ public async Task GetIfExists_ConnectorsGet()
+ {
+ // Generated from example definition: 2025-02-01-preview/Connectors_Get.json
+ // this example is just showing the usage of "Connector_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 SubscriptionResource created on azure
+ // for more information of creating SubscriptionResource, please refer to the document of SubscriptionResource
+ string subscriptionId = "74f5e23f-d4d9-410a-bb4d-8f0608adb10d";
+ ResourceIdentifier subscriptionResourceId = SubscriptionResource.CreateResourceIdentifier(subscriptionId);
+ SubscriptionResource subscriptionResource = client.GetSubscriptionResource(subscriptionResourceId);
+
+ // get the collection of this ConnectorResource
+ ConnectorCollection collection = subscriptionResource.GetConnectors();
+
+ // invoke the operation
+ string connectorName = "testconnector1";
+ NullableResponse response = await collection.GetIfExistsAsync(connectorName);
+ ConnectorResource 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
+ ConnectorData resourceData = result.Data;
+ // for demo we just print out the id
+ Console.WriteLine($"Succeeded on id: {resourceData.Id}");
+ }
+ }
+ }
+}
diff --git a/sdk/impact/Azure.ResourceManager.Impact/samples/Generated/Samples/Sample_ConnectorResource.cs b/sdk/impact/Azure.ResourceManager.Impact/samples/Generated/Samples/Sample_ConnectorResource.cs
new file mode 100644
index 000000000000..fa78b50c5340
--- /dev/null
+++ b/sdk/impact/Azure.ResourceManager.Impact/samples/Generated/Samples/Sample_ConnectorResource.cs
@@ -0,0 +1,106 @@
+// 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.Impact.Models;
+using NUnit.Framework;
+
+namespace Azure.ResourceManager.Impact.Samples
+{
+ public partial class Sample_ConnectorResource
+ {
+ [Test]
+ [Ignore("Only validating compilation of examples")]
+ public async Task Get_ConnectorsGet()
+ {
+ // Generated from example definition: 2025-02-01-preview/Connectors_Get.json
+ // this example is just showing the usage of "Connector_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 ConnectorResource created on azure
+ // for more information of creating ConnectorResource, please refer to the document of ConnectorResource
+ string subscriptionId = "74f5e23f-d4d9-410a-bb4d-8f0608adb10d";
+ string connectorName = "testconnector1";
+ ResourceIdentifier connectorResourceId = ConnectorResource.CreateResourceIdentifier(subscriptionId, connectorName);
+ ConnectorResource connector = client.GetConnectorResource(connectorResourceId);
+
+ // invoke the operation
+ ConnectorResource result = await connector.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
+ ConnectorData 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_ConnectorsDelete()
+ {
+ // Generated from example definition: 2025-02-01-preview/Connectors_Delete.json
+ // this example is just showing the usage of "Connector_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 ConnectorResource created on azure
+ // for more information of creating ConnectorResource, please refer to the document of ConnectorResource
+ string subscriptionId = "8F74B371-8573-4773-9BDA-D546505BDB3A";
+ string connectorName = "testconnector1";
+ ResourceIdentifier connectorResourceId = ConnectorResource.CreateResourceIdentifier(subscriptionId, connectorName);
+ ConnectorResource connector = client.GetConnectorResource(connectorResourceId);
+
+ // invoke the operation
+ await connector.DeleteAsync(WaitUntil.Completed);
+
+ Console.WriteLine("Succeeded");
+ }
+
+ [Test]
+ [Ignore("Only validating compilation of examples")]
+ public async Task Update_ConnectorsUpdate()
+ {
+ // Generated from example definition: 2025-02-01-preview/Connectors_Update.json
+ // this example is just showing the usage of "Connector_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 ConnectorResource created on azure
+ // for more information of creating ConnectorResource, please refer to the document of ConnectorResource
+ string subscriptionId = "74f5e23f-d4d9-410a-bb4d-8f0608adb10d";
+ string connectorName = "testconnector1";
+ ResourceIdentifier connectorResourceId = ConnectorResource.CreateResourceIdentifier(subscriptionId, connectorName);
+ ConnectorResource connector = client.GetConnectorResource(connectorResourceId);
+
+ // invoke the operation
+ ConnectorData data = new ConnectorData
+ {
+ Properties = new ConnectorProperties(null, null, Platform.AzureMonitor, default),
+ };
+ ConnectorResource result = await connector.UpdateAsync(data);
+
+ // 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
+ ConnectorData resourceData = result.Data;
+ // for demo we just print out the id
+ Console.WriteLine($"Succeeded on id: {resourceData.Id}");
+ }
+ }
+}
diff --git a/sdk/impact/Azure.ResourceManager.Impact/samples/Generated/Samples/Sample_ImpactCategoryCollection.cs b/sdk/impact/Azure.ResourceManager.Impact/samples/Generated/Samples/Sample_ImpactCategoryCollection.cs
new file mode 100644
index 000000000000..ce8199c16464
--- /dev/null
+++ b/sdk/impact/Azure.ResourceManager.Impact/samples/Generated/Samples/Sample_ImpactCategoryCollection.cs
@@ -0,0 +1,154 @@
+// 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.Resources;
+using NUnit.Framework;
+
+namespace Azure.ResourceManager.Impact.Samples
+{
+ public partial class Sample_ImpactCategoryCollection
+ {
+ [Test]
+ [Ignore("Only validating compilation of examples")]
+ public async Task Get_GetWorkloadImpactResourceByName()
+ {
+ // Generated from example definition: 2025-02-01-preview/ImpactCategories_Get.json
+ // this example is just showing the usage of "ImpactCategory_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 SubscriptionResource created on azure
+ // for more information of creating SubscriptionResource, please refer to the document of SubscriptionResource
+ string subscriptionId = "00000000-0000-0000-0000-000000000000";
+ ResourceIdentifier subscriptionResourceId = SubscriptionResource.CreateResourceIdentifier(subscriptionId);
+ SubscriptionResource subscriptionResource = client.GetSubscriptionResource(subscriptionResourceId);
+
+ // get the collection of this ImpactCategoryResource
+ ImpactCategoryCollection collection = subscriptionResource.GetImpactCategories();
+
+ // invoke the operation
+ string impactCategoryName = "ARMOperation.Create";
+ ImpactCategoryResource result = await collection.GetAsync(impactCategoryName);
+
+ // 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
+ ImpactCategoryData 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_GetImpactCategoriesListBySubscription()
+ {
+ // Generated from example definition: 2025-02-01-preview/ImpactCategories_ListBySubscription.json
+ // this example is just showing the usage of "ImpactCategory_ListBySubscription" operation, for the dependent resources, they will have to be created separately.
+
+ // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this SubscriptionResource created on azure
+ // for more information of creating SubscriptionResource, please refer to the document of SubscriptionResource
+ string subscriptionId = "00000000-0000-0000-0000-000000000000";
+ ResourceIdentifier subscriptionResourceId = SubscriptionResource.CreateResourceIdentifier(subscriptionId);
+ SubscriptionResource subscriptionResource = client.GetSubscriptionResource(subscriptionResourceId);
+
+ // get the collection of this ImpactCategoryResource
+ ImpactCategoryCollection collection = subscriptionResource.GetImpactCategories();
+
+ // invoke the operation and iterate over the result
+ string resourceType = "microsoft.compute/virtualmachines";
+ await foreach (ImpactCategoryResource item in collection.GetAllAsync(resourceType: resourceType))
+ {
+ // 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
+ ImpactCategoryData resourceData = item.Data;
+ // for demo we just print out the id
+ Console.WriteLine($"Succeeded on id: {resourceData.Id}");
+ }
+
+ Console.WriteLine("Succeeded");
+ }
+
+ [Test]
+ [Ignore("Only validating compilation of examples")]
+ public async Task Exists_GetWorkloadImpactResourceByName()
+ {
+ // Generated from example definition: 2025-02-01-preview/ImpactCategories_Get.json
+ // this example is just showing the usage of "ImpactCategory_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 SubscriptionResource created on azure
+ // for more information of creating SubscriptionResource, please refer to the document of SubscriptionResource
+ string subscriptionId = "00000000-0000-0000-0000-000000000000";
+ ResourceIdentifier subscriptionResourceId = SubscriptionResource.CreateResourceIdentifier(subscriptionId);
+ SubscriptionResource subscriptionResource = client.GetSubscriptionResource(subscriptionResourceId);
+
+ // get the collection of this ImpactCategoryResource
+ ImpactCategoryCollection collection = subscriptionResource.GetImpactCategories();
+
+ // invoke the operation
+ string impactCategoryName = "ARMOperation.Create";
+ bool result = await collection.ExistsAsync(impactCategoryName);
+
+ Console.WriteLine($"Succeeded: {result}");
+ }
+
+ [Test]
+ [Ignore("Only validating compilation of examples")]
+ public async Task GetIfExists_GetWorkloadImpactResourceByName()
+ {
+ // Generated from example definition: 2025-02-01-preview/ImpactCategories_Get.json
+ // this example is just showing the usage of "ImpactCategory_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 SubscriptionResource created on azure
+ // for more information of creating SubscriptionResource, please refer to the document of SubscriptionResource
+ string subscriptionId = "00000000-0000-0000-0000-000000000000";
+ ResourceIdentifier subscriptionResourceId = SubscriptionResource.CreateResourceIdentifier(subscriptionId);
+ SubscriptionResource subscriptionResource = client.GetSubscriptionResource(subscriptionResourceId);
+
+ // get the collection of this ImpactCategoryResource
+ ImpactCategoryCollection collection = subscriptionResource.GetImpactCategories();
+
+ // invoke the operation
+ string impactCategoryName = "ARMOperation.Create";
+ NullableResponse response = await collection.GetIfExistsAsync(impactCategoryName);
+ ImpactCategoryResource 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
+ ImpactCategoryData resourceData = result.Data;
+ // for demo we just print out the id
+ Console.WriteLine($"Succeeded on id: {resourceData.Id}");
+ }
+ }
+ }
+}
diff --git a/sdk/impact/Azure.ResourceManager.Impact/samples/Generated/Samples/Sample_ImpactCategoryResource.cs b/sdk/impact/Azure.ResourceManager.Impact/samples/Generated/Samples/Sample_ImpactCategoryResource.cs
new file mode 100644
index 000000000000..0dc58d5d45d9
--- /dev/null
+++ b/sdk/impact/Azure.ResourceManager.Impact/samples/Generated/Samples/Sample_ImpactCategoryResource.cs
@@ -0,0 +1,47 @@
+// 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 NUnit.Framework;
+
+namespace Azure.ResourceManager.Impact.Samples
+{
+ public partial class Sample_ImpactCategoryResource
+ {
+ [Test]
+ [Ignore("Only validating compilation of examples")]
+ public async Task Get_GetWorkloadImpactResourceByName()
+ {
+ // Generated from example definition: 2025-02-01-preview/ImpactCategories_Get.json
+ // this example is just showing the usage of "ImpactCategory_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 ImpactCategoryResource created on azure
+ // for more information of creating ImpactCategoryResource, please refer to the document of ImpactCategoryResource
+ string subscriptionId = "00000000-0000-0000-0000-000000000000";
+ string impactCategoryName = "ARMOperation.Create";
+ ResourceIdentifier impactCategoryResourceId = ImpactCategoryResource.CreateResourceIdentifier(subscriptionId, impactCategoryName);
+ ImpactCategoryResource impactCategory = client.GetImpactCategoryResource(impactCategoryResourceId);
+
+ // invoke the operation
+ ImpactCategoryResource result = await impactCategory.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
+ ImpactCategoryData resourceData = result.Data;
+ // for demo we just print out the id
+ Console.WriteLine($"Succeeded on id: {resourceData.Id}");
+ }
+ }
+}
diff --git a/sdk/impact/Azure.ResourceManager.Impact/samples/Generated/Samples/Sample_InsightCollection.cs b/sdk/impact/Azure.ResourceManager.Impact/samples/Generated/Samples/Sample_InsightCollection.cs
new file mode 100644
index 000000000000..bda98519841d
--- /dev/null
+++ b/sdk/impact/Azure.ResourceManager.Impact/samples/Generated/Samples/Sample_InsightCollection.cs
@@ -0,0 +1,405 @@
+// 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.Impact.Models;
+using NUnit.Framework;
+
+namespace Azure.ResourceManager.Impact.Samples
+{
+ public partial class Sample_InsightCollection
+ {
+ [Test]
+ [Ignore("Only validating compilation of examples")]
+ public async Task CreateOrUpdate_CreatingAnInsight()
+ {
+ // Generated from example definition: 2025-02-01-preview/Insights_Create.json
+ // this example is just showing the usage of "Insight_Create" operation, for the dependent resources, they will have to be created separately.
+
+ // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this WorkloadImpactResource created on azure
+ // for more information of creating WorkloadImpactResource, please refer to the document of WorkloadImpactResource
+ string subscriptionId = "00000000-0000-0000-0000-000000000000";
+ string workloadImpactName = "impactid22";
+ ResourceIdentifier workloadImpactResourceId = WorkloadImpactResource.CreateResourceIdentifier(subscriptionId, workloadImpactName);
+ WorkloadImpactResource workloadImpact = client.GetWorkloadImpactResource(workloadImpactResourceId);
+
+ // get the collection of this InsightResource
+ InsightCollection collection = workloadImpact.GetInsights();
+
+ // invoke the operation
+ string insightName = "insightId12";
+ InsightData data = new InsightData
+ {
+ Properties = new InsightProperties("repair", new Content("Impact Has been correlated to an outage", "At 2018-11-08T00:00:00Z UTC, your services dependent on these resources VM1 may have experienced an issue.
We have identified an outage that affected these resources(s). You can look at outage information on NL2W-VCZ link.
"), "00000000-0000-0000-0000-000000000000", new ImpactDetails("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/resource-rg/providers/Microsoft.Sql/sqlserver/dbservername", DateTimeOffset.Parse("2023-06-15T01:00:00.009223Z"), "/subscriptions/00000000-0000-0000-0000-000000000000/providers/microsoft.Impact/workloadImpacts/impactid22"))
+ {
+ Status = "resolved",
+ EventOn = DateTimeOffset.Parse("2023-06-15T04:00:00.009223Z"),
+ },
+ };
+ ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, insightName, data);
+ InsightResource 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
+ InsightData 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_GetInsightSampleForDiagnosticsCategory()
+ {
+ // Generated from example definition: 2025-02-01-preview/Insights_Get_diagnostics.json
+ // this example is just showing the usage of "Insight_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 WorkloadImpactResource created on azure
+ // for more information of creating WorkloadImpactResource, please refer to the document of WorkloadImpactResource
+ string subscriptionId = "00000000-0000-0000-0000-000000000000";
+ string workloadImpactName = "impactid";
+ ResourceIdentifier workloadImpactResourceId = WorkloadImpactResource.CreateResourceIdentifier(subscriptionId, workloadImpactName);
+ WorkloadImpactResource workloadImpact = client.GetWorkloadImpactResource(workloadImpactResourceId);
+
+ // get the collection of this InsightResource
+ InsightCollection collection = workloadImpact.GetInsights();
+
+ // invoke the operation
+ string insightName = "insight1";
+ InsightResource result = await collection.GetAsync(insightName);
+
+ // 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
+ InsightData 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_GetInsightSampleForMitigationActionCategory()
+ {
+ // Generated from example definition: 2025-02-01-preview/Insights_Get_mitigationAction.json
+ // this example is just showing the usage of "Insight_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 WorkloadImpactResource created on azure
+ // for more information of creating WorkloadImpactResource, please refer to the document of WorkloadImpactResource
+ string subscriptionId = "00000000-0000-0000-0000-000000000000";
+ string workloadImpactName = "impactId";
+ ResourceIdentifier workloadImpactResourceId = WorkloadImpactResource.CreateResourceIdentifier(subscriptionId, workloadImpactName);
+ WorkloadImpactResource workloadImpact = client.GetWorkloadImpactResource(workloadImpactResourceId);
+
+ // get the collection of this InsightResource
+ InsightCollection collection = workloadImpact.GetInsights();
+
+ // invoke the operation
+ string insightName = "HPCUASucceeded";
+ InsightResource result = await collection.GetAsync(insightName);
+
+ // 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
+ InsightData 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_GetInsightSampleForServiceHealthCategory()
+ {
+ // Generated from example definition: 2025-02-01-preview/Insights_Get_servicehealth.json
+ // this example is just showing the usage of "Insight_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 WorkloadImpactResource created on azure
+ // for more information of creating WorkloadImpactResource, please refer to the document of WorkloadImpactResource
+ string subscriptionId = "00000000-0000-0000-0000-000000000000";
+ string workloadImpactName = "impactid";
+ ResourceIdentifier workloadImpactResourceId = WorkloadImpactResource.CreateResourceIdentifier(subscriptionId, workloadImpactName);
+ WorkloadImpactResource workloadImpact = client.GetWorkloadImpactResource(workloadImpactResourceId);
+
+ // get the collection of this InsightResource
+ InsightCollection collection = workloadImpact.GetInsights();
+
+ // invoke the operation
+ string insightName = "insightname";
+ InsightResource result = await collection.GetAsync(insightName);
+
+ // 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
+ InsightData 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_ListInsightResourcesByWorkloadImpactName()
+ {
+ // Generated from example definition: 2025-02-01-preview/Insights_ListBySubscription.json
+ // this example is just showing the usage of "Insight_ListBySubscription" operation, for the dependent resources, they will have to be created separately.
+
+ // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this WorkloadImpactResource created on azure
+ // for more information of creating WorkloadImpactResource, please refer to the document of WorkloadImpactResource
+ string subscriptionId = "00000000-0000-0000-0000-000000000000";
+ string workloadImpactName = "impactid22";
+ ResourceIdentifier workloadImpactResourceId = WorkloadImpactResource.CreateResourceIdentifier(subscriptionId, workloadImpactName);
+ WorkloadImpactResource workloadImpact = client.GetWorkloadImpactResource(workloadImpactResourceId);
+
+ // get the collection of this InsightResource
+ InsightCollection collection = workloadImpact.GetInsights();
+
+ // invoke the operation and iterate over the result
+ await foreach (InsightResource 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
+ InsightData resourceData = item.Data;
+ // for demo we just print out the id
+ Console.WriteLine($"Succeeded on id: {resourceData.Id}");
+ }
+
+ Console.WriteLine("Succeeded");
+ }
+
+ [Test]
+ [Ignore("Only validating compilation of examples")]
+ public async Task Exists_GetInsightSampleForDiagnosticsCategory()
+ {
+ // Generated from example definition: 2025-02-01-preview/Insights_Get_diagnostics.json
+ // this example is just showing the usage of "Insight_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 WorkloadImpactResource created on azure
+ // for more information of creating WorkloadImpactResource, please refer to the document of WorkloadImpactResource
+ string subscriptionId = "00000000-0000-0000-0000-000000000000";
+ string workloadImpactName = "impactid";
+ ResourceIdentifier workloadImpactResourceId = WorkloadImpactResource.CreateResourceIdentifier(subscriptionId, workloadImpactName);
+ WorkloadImpactResource workloadImpact = client.GetWorkloadImpactResource(workloadImpactResourceId);
+
+ // get the collection of this InsightResource
+ InsightCollection collection = workloadImpact.GetInsights();
+
+ // invoke the operation
+ string insightName = "insight1";
+ bool result = await collection.ExistsAsync(insightName);
+
+ Console.WriteLine($"Succeeded: {result}");
+ }
+
+ [Test]
+ [Ignore("Only validating compilation of examples")]
+ public async Task Exists_GetInsightSampleForMitigationActionCategory()
+ {
+ // Generated from example definition: 2025-02-01-preview/Insights_Get_mitigationAction.json
+ // this example is just showing the usage of "Insight_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 WorkloadImpactResource created on azure
+ // for more information of creating WorkloadImpactResource, please refer to the document of WorkloadImpactResource
+ string subscriptionId = "00000000-0000-0000-0000-000000000000";
+ string workloadImpactName = "impactId";
+ ResourceIdentifier workloadImpactResourceId = WorkloadImpactResource.CreateResourceIdentifier(subscriptionId, workloadImpactName);
+ WorkloadImpactResource workloadImpact = client.GetWorkloadImpactResource(workloadImpactResourceId);
+
+ // get the collection of this InsightResource
+ InsightCollection collection = workloadImpact.GetInsights();
+
+ // invoke the operation
+ string insightName = "HPCUASucceeded";
+ bool result = await collection.ExistsAsync(insightName);
+
+ Console.WriteLine($"Succeeded: {result}");
+ }
+
+ [Test]
+ [Ignore("Only validating compilation of examples")]
+ public async Task Exists_GetInsightSampleForServiceHealthCategory()
+ {
+ // Generated from example definition: 2025-02-01-preview/Insights_Get_servicehealth.json
+ // this example is just showing the usage of "Insight_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 WorkloadImpactResource created on azure
+ // for more information of creating WorkloadImpactResource, please refer to the document of WorkloadImpactResource
+ string subscriptionId = "00000000-0000-0000-0000-000000000000";
+ string workloadImpactName = "impactid";
+ ResourceIdentifier workloadImpactResourceId = WorkloadImpactResource.CreateResourceIdentifier(subscriptionId, workloadImpactName);
+ WorkloadImpactResource workloadImpact = client.GetWorkloadImpactResource(workloadImpactResourceId);
+
+ // get the collection of this InsightResource
+ InsightCollection collection = workloadImpact.GetInsights();
+
+ // invoke the operation
+ string insightName = "insightname";
+ bool result = await collection.ExistsAsync(insightName);
+
+ Console.WriteLine($"Succeeded: {result}");
+ }
+
+ [Test]
+ [Ignore("Only validating compilation of examples")]
+ public async Task GetIfExists_GetInsightSampleForDiagnosticsCategory()
+ {
+ // Generated from example definition: 2025-02-01-preview/Insights_Get_diagnostics.json
+ // this example is just showing the usage of "Insight_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 WorkloadImpactResource created on azure
+ // for more information of creating WorkloadImpactResource, please refer to the document of WorkloadImpactResource
+ string subscriptionId = "00000000-0000-0000-0000-000000000000";
+ string workloadImpactName = "impactid";
+ ResourceIdentifier workloadImpactResourceId = WorkloadImpactResource.CreateResourceIdentifier(subscriptionId, workloadImpactName);
+ WorkloadImpactResource workloadImpact = client.GetWorkloadImpactResource(workloadImpactResourceId);
+
+ // get the collection of this InsightResource
+ InsightCollection collection = workloadImpact.GetInsights();
+
+ // invoke the operation
+ string insightName = "insight1";
+ NullableResponse response = await collection.GetIfExistsAsync(insightName);
+ InsightResource 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
+ InsightData 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 GetIfExists_GetInsightSampleForMitigationActionCategory()
+ {
+ // Generated from example definition: 2025-02-01-preview/Insights_Get_mitigationAction.json
+ // this example is just showing the usage of "Insight_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 WorkloadImpactResource created on azure
+ // for more information of creating WorkloadImpactResource, please refer to the document of WorkloadImpactResource
+ string subscriptionId = "00000000-0000-0000-0000-000000000000";
+ string workloadImpactName = "impactId";
+ ResourceIdentifier workloadImpactResourceId = WorkloadImpactResource.CreateResourceIdentifier(subscriptionId, workloadImpactName);
+ WorkloadImpactResource workloadImpact = client.GetWorkloadImpactResource(workloadImpactResourceId);
+
+ // get the collection of this InsightResource
+ InsightCollection collection = workloadImpact.GetInsights();
+
+ // invoke the operation
+ string insightName = "HPCUASucceeded";
+ NullableResponse response = await collection.GetIfExistsAsync(insightName);
+ InsightResource 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
+ InsightData 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 GetIfExists_GetInsightSampleForServiceHealthCategory()
+ {
+ // Generated from example definition: 2025-02-01-preview/Insights_Get_servicehealth.json
+ // this example is just showing the usage of "Insight_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 WorkloadImpactResource created on azure
+ // for more information of creating WorkloadImpactResource, please refer to the document of WorkloadImpactResource
+ string subscriptionId = "00000000-0000-0000-0000-000000000000";
+ string workloadImpactName = "impactid";
+ ResourceIdentifier workloadImpactResourceId = WorkloadImpactResource.CreateResourceIdentifier(subscriptionId, workloadImpactName);
+ WorkloadImpactResource workloadImpact = client.GetWorkloadImpactResource(workloadImpactResourceId);
+
+ // get the collection of this InsightResource
+ InsightCollection collection = workloadImpact.GetInsights();
+
+ // invoke the operation
+ string insightName = "insightname";
+ NullableResponse response = await collection.GetIfExistsAsync(insightName);
+ InsightResource 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
+ InsightData resourceData = result.Data;
+ // for demo we just print out the id
+ Console.WriteLine($"Succeeded on id: {resourceData.Id}");
+ }
+ }
+ }
+}
diff --git a/sdk/impact/Azure.ResourceManager.Impact/samples/Generated/Samples/Sample_InsightResource.cs b/sdk/impact/Azure.ResourceManager.Impact/samples/Generated/Samples/Sample_InsightResource.cs
new file mode 100644
index 000000000000..e21c89e8add7
--- /dev/null
+++ b/sdk/impact/Azure.ResourceManager.Impact/samples/Generated/Samples/Sample_InsightResource.cs
@@ -0,0 +1,174 @@
+// 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.Impact.Models;
+using NUnit.Framework;
+
+namespace Azure.ResourceManager.Impact.Samples
+{
+ public partial class Sample_InsightResource
+ {
+ [Test]
+ [Ignore("Only validating compilation of examples")]
+ public async Task Get_GetInsightSampleForDiagnosticsCategory()
+ {
+ // Generated from example definition: 2025-02-01-preview/Insights_Get_diagnostics.json
+ // this example is just showing the usage of "Insight_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 InsightResource created on azure
+ // for more information of creating InsightResource, please refer to the document of InsightResource
+ string subscriptionId = "00000000-0000-0000-0000-000000000000";
+ string workloadImpactName = "impactid";
+ string insightName = "insight1";
+ ResourceIdentifier insightResourceId = InsightResource.CreateResourceIdentifier(subscriptionId, workloadImpactName, insightName);
+ InsightResource insight = client.GetInsightResource(insightResourceId);
+
+ // invoke the operation
+ InsightResource result = await insight.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
+ InsightData 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_GetInsightSampleForMitigationActionCategory()
+ {
+ // Generated from example definition: 2025-02-01-preview/Insights_Get_mitigationAction.json
+ // this example is just showing the usage of "Insight_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 InsightResource created on azure
+ // for more information of creating InsightResource, please refer to the document of InsightResource
+ string subscriptionId = "00000000-0000-0000-0000-000000000000";
+ string workloadImpactName = "impactId";
+ string insightName = "HPCUASucceeded";
+ ResourceIdentifier insightResourceId = InsightResource.CreateResourceIdentifier(subscriptionId, workloadImpactName, insightName);
+ InsightResource insight = client.GetInsightResource(insightResourceId);
+
+ // invoke the operation
+ InsightResource result = await insight.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
+ InsightData 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_GetInsightSampleForServiceHealthCategory()
+ {
+ // Generated from example definition: 2025-02-01-preview/Insights_Get_servicehealth.json
+ // this example is just showing the usage of "Insight_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 InsightResource created on azure
+ // for more information of creating InsightResource, please refer to the document of InsightResource
+ string subscriptionId = "00000000-0000-0000-0000-000000000000";
+ string workloadImpactName = "impactid";
+ string insightName = "insightname";
+ ResourceIdentifier insightResourceId = InsightResource.CreateResourceIdentifier(subscriptionId, workloadImpactName, insightName);
+ InsightResource insight = client.GetInsightResource(insightResourceId);
+
+ // invoke the operation
+ InsightResource result = await insight.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
+ InsightData 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_DeleteAnInsight()
+ {
+ // Generated from example definition: 2025-02-01-preview/Insights_Delete.json
+ // this example is just showing the usage of "Insight_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 InsightResource created on azure
+ // for more information of creating InsightResource, please refer to the document of InsightResource
+ string subscriptionId = "00000000-0000-0000-0000-000000000000";
+ string workloadImpactName = "impactid22";
+ string insightName = "insightId12";
+ ResourceIdentifier insightResourceId = InsightResource.CreateResourceIdentifier(subscriptionId, workloadImpactName, insightName);
+ InsightResource insight = client.GetInsightResource(insightResourceId);
+
+ // invoke the operation
+ await insight.DeleteAsync(WaitUntil.Completed);
+
+ Console.WriteLine("Succeeded");
+ }
+
+ [Test]
+ [Ignore("Only validating compilation of examples")]
+ public async Task Update_CreatingAnInsight()
+ {
+ // Generated from example definition: 2025-02-01-preview/Insights_Create.json
+ // this example is just showing the usage of "Insight_Create" operation, for the dependent resources, they will have to be created separately.
+
+ // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this InsightResource created on azure
+ // for more information of creating InsightResource, please refer to the document of InsightResource
+ string subscriptionId = "00000000-0000-0000-0000-000000000000";
+ string workloadImpactName = "impactid22";
+ string insightName = "insightId12";
+ ResourceIdentifier insightResourceId = InsightResource.CreateResourceIdentifier(subscriptionId, workloadImpactName, insightName);
+ InsightResource insight = client.GetInsightResource(insightResourceId);
+
+ // invoke the operation
+ InsightData data = new InsightData
+ {
+ Properties = new InsightProperties("repair", new Content("Impact Has been correlated to an outage", "At 2018-11-08T00:00:00Z UTC, your services dependent on these resources VM1 may have experienced an issue.
We have identified an outage that affected these resources(s). You can look at outage information on NL2W-VCZ link.
"), "00000000-0000-0000-0000-000000000000", new ImpactDetails("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/resource-rg/providers/Microsoft.Sql/sqlserver/dbservername", DateTimeOffset.Parse("2023-06-15T01:00:00.009223Z"), "/subscriptions/00000000-0000-0000-0000-000000000000/providers/microsoft.Impact/workloadImpacts/impactid22"))
+ {
+ Status = "resolved",
+ EventOn = DateTimeOffset.Parse("2023-06-15T04:00:00.009223Z"),
+ },
+ };
+ ArmOperation lro = await insight.UpdateAsync(WaitUntil.Completed, data);
+ InsightResource 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
+ InsightData resourceData = result.Data;
+ // for demo we just print out the id
+ Console.WriteLine($"Succeeded on id: {resourceData.Id}");
+ }
+ }
+}
diff --git a/sdk/impact/Azure.ResourceManager.Impact/samples/Generated/Samples/Sample_SubscriptionResourceExtensions.cs b/sdk/impact/Azure.ResourceManager.Impact/samples/Generated/Samples/Sample_SubscriptionResourceExtensions.cs
new file mode 100644
index 000000000000..e0840a867a6a
--- /dev/null
+++ b/sdk/impact/Azure.ResourceManager.Impact/samples/Generated/Samples/Sample_SubscriptionResourceExtensions.cs
@@ -0,0 +1,44 @@
+// 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.Impact.Models;
+using Azure.ResourceManager.Resources;
+using NUnit.Framework;
+
+namespace Azure.ResourceManager.Impact.Samples
+{
+ public partial class Sample_SubscriptionResourceExtensions
+ {
+ [Test]
+ [Ignore("Only validating compilation of examples")]
+ public async Task GetUploadTokenUploadService_GetUploadTokenToUseForLogUpload()
+ {
+ // Generated from example definition: 2025-02-01-preview/UploadService_GetUploadToken.json
+ // this example is just showing the usage of "UploadService_GetUploadToken" operation, for the dependent resources, they will have to be created separately.
+
+ // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this SubscriptionResource created on azure
+ // for more information of creating SubscriptionResource, please refer to the document of SubscriptionResource
+ string subscriptionId = "00000000-0000-0000-0000-000000000000";
+ ResourceIdentifier subscriptionResourceId = SubscriptionResource.CreateResourceIdentifier(subscriptionId);
+ SubscriptionResource subscriptionResource = client.GetSubscriptionResource(subscriptionResourceId);
+
+ // invoke the operation
+ UploadTokenResponse result = await subscriptionResource.GetUploadTokenUploadServiceAsync();
+
+ Console.WriteLine($"Succeeded: {result}");
+ }
+ }
+}
diff --git a/sdk/impact/Azure.ResourceManager.Impact/samples/Generated/Samples/Sample_WorkloadImpactCollection.cs b/sdk/impact/Azure.ResourceManager.Impact/samples/Generated/Samples/Sample_WorkloadImpactCollection.cs
new file mode 100644
index 000000000000..97ef9597c8ab
--- /dev/null
+++ b/sdk/impact/Azure.ResourceManager.Impact/samples/Generated/Samples/Sample_WorkloadImpactCollection.cs
@@ -0,0 +1,368 @@
+// 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.Impact.Models;
+using Azure.ResourceManager.Resources;
+using NUnit.Framework;
+
+namespace Azure.ResourceManager.Impact.Samples
+{
+ public partial class Sample_WorkloadImpactCollection
+ {
+ [Test]
+ [Ignore("Only validating compilation of examples")]
+ public async Task CreateOrUpdate_ReportingArmOperationFailure()
+ {
+ // Generated from example definition: 2025-02-01-preview/WorkloadArmOperation_create.json
+ // this example is just showing the usage of "WorkloadImpact_Create" operation, for the dependent resources, they will have to be created separately.
+
+ // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this SubscriptionResource created on azure
+ // for more information of creating SubscriptionResource, please refer to the document of SubscriptionResource
+ string subscriptionId = "00000000-0000-0000-0000-000000000000";
+ ResourceIdentifier subscriptionResourceId = SubscriptionResource.CreateResourceIdentifier(subscriptionId);
+ SubscriptionResource subscriptionResource = client.GetSubscriptionResource(subscriptionResourceId);
+
+ // get the collection of this WorkloadImpactResource
+ WorkloadImpactCollection collection = subscriptionResource.GetWorkloadImpacts();
+
+ // invoke the operation
+ string workloadImpactName = "impact-002";
+ WorkloadImpactData data = new WorkloadImpactData
+ {
+ Properties = new WorkloadImpactProperties(DateTimeOffset.Parse("2022-06-15T05:59:46.6517821Z"), "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/resource-rg/providers/Microsoft.Sql/sqlserver/dbservercontext", "ArmOperation")
+ {
+ ImpactDescription = "deletion of resource failed",
+ ArmCorrelationIds = { "00000000-0000-0000-0000-000000000000" },
+ Workload = new Workload
+ {
+ Context = "webapp/scenario1",
+ Toolset = Toolset.Other,
+ },
+ ClientIncidentDetails = new ClientIncidentDetails
+ {
+ ClientIncidentId = "AA123",
+ ClientIncidentSource = IncidentSource.Jira,
+ },
+ },
+ };
+ ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, workloadImpactName, data);
+ WorkloadImpactResource 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
+ WorkloadImpactData 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_ReportingAvailabilityRelatedImpact()
+ {
+ // Generated from example definition: 2025-02-01-preview/WorkloadAvailability_Create.json
+ // this example is just showing the usage of "WorkloadImpact_Create" operation, for the dependent resources, they will have to be created separately.
+
+ // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this SubscriptionResource created on azure
+ // for more information of creating SubscriptionResource, please refer to the document of SubscriptionResource
+ string subscriptionId = "00000000-0000-0000-0000-000000000000";
+ ResourceIdentifier subscriptionResourceId = SubscriptionResource.CreateResourceIdentifier(subscriptionId);
+ SubscriptionResource subscriptionResource = client.GetSubscriptionResource(subscriptionResourceId);
+
+ // get the collection of this WorkloadImpactResource
+ WorkloadImpactCollection collection = subscriptionResource.GetWorkloadImpacts();
+
+ // invoke the operation
+ string workloadImpactName = "impact-002";
+ WorkloadImpactData data = new WorkloadImpactData
+ {
+ Properties = new WorkloadImpactProperties(DateTimeOffset.Parse("2022-06-15T05:59:46.6517821Z"), "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/resource-rg/providers/Microsoft.Sql/sqlserver/dbservercontext", "Availability")
+ {
+ ImpactDescription = "read calls failed",
+ Workload = new Workload
+ {
+ Context = "webapp/scenario1",
+ Toolset = Toolset.Other,
+ },
+ ClientIncidentDetails = new ClientIncidentDetails
+ {
+ ClientIncidentId = "AA123",
+ ClientIncidentSource = IncidentSource.Jira,
+ },
+ },
+ };
+ ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, workloadImpactName, data);
+ WorkloadImpactResource 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
+ WorkloadImpactData 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_ReportingAConnectivityImpact()
+ {
+ // Generated from example definition: 2025-02-01-preview/WorkloadConnectivityImpact_Create.json
+ // this example is just showing the usage of "WorkloadImpact_Create" operation, for the dependent resources, they will have to be created separately.
+
+ // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this SubscriptionResource created on azure
+ // for more information of creating SubscriptionResource, please refer to the document of SubscriptionResource
+ string subscriptionId = "00000000-0000-0000-0000-000000000000";
+ ResourceIdentifier subscriptionResourceId = SubscriptionResource.CreateResourceIdentifier(subscriptionId);
+ SubscriptionResource subscriptionResource = client.GetSubscriptionResource(subscriptionResourceId);
+
+ // get the collection of this WorkloadImpactResource
+ WorkloadImpactCollection collection = subscriptionResource.GetWorkloadImpacts();
+
+ // invoke the operation
+ string workloadImpactName = "impact-001";
+ WorkloadImpactData data = new WorkloadImpactData
+ {
+ Properties = new WorkloadImpactProperties(DateTimeOffset.Parse("2022-06-15T05:59:46.6517821Z"), "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/resource-rg/providers/Microsoft.Sql/sqlserver/dbservercontext", "Resource.Connectivity")
+ {
+ ImpactDescription = "conection failure",
+ Connectivity = new Connectivity
+ {
+ Protocol = Protocol.TCP,
+ Port = 1443,
+ SourceAzureResourceId = "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/resourceSub/providers/Microsoft.compute/virtualmachines/vm1",
+ TargetAzureResourceId = "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/resourceSub/providers/Microsoft.compute/virtualmachines/vm2",
+ },
+ Workload = new Workload
+ {
+ Context = "webapp/scenario1",
+ Toolset = Toolset.Other,
+ },
+ ClientIncidentDetails = new ClientIncidentDetails
+ {
+ ClientIncidentId = "AA123",
+ ClientIncidentSource = IncidentSource.Jira,
+ },
+ },
+ };
+ ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, workloadImpactName, data);
+ WorkloadImpactResource 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
+ WorkloadImpactData 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_ReportingPerformanceRelatedImpact()
+ {
+ // Generated from example definition: 2025-02-01-preview/WorkloadPerformance_Create.json
+ // this example is just showing the usage of "WorkloadImpact_Create" operation, for the dependent resources, they will have to be created separately.
+
+ // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this SubscriptionResource created on azure
+ // for more information of creating SubscriptionResource, please refer to the document of SubscriptionResource
+ string subscriptionId = "00000000-0000-0000-0000-000000000000";
+ ResourceIdentifier subscriptionResourceId = SubscriptionResource.CreateResourceIdentifier(subscriptionId);
+ SubscriptionResource subscriptionResource = client.GetSubscriptionResource(subscriptionResourceId);
+
+ // get the collection of this WorkloadImpactResource
+ WorkloadImpactCollection collection = subscriptionResource.GetWorkloadImpacts();
+
+ // invoke the operation
+ string workloadImpactName = "impact-002";
+ WorkloadImpactData data = new WorkloadImpactData
+ {
+ Properties = new WorkloadImpactProperties(DateTimeOffset.Parse("2022-06-15T05:59:46.6517821Z"), "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/resource-rg/providers/Microsoft.Sql/sqlserver/dbservercontext", "Resource.Performance")
+ {
+ ImpactDescription = "high cpu utilization",
+ Performance = {new Performance
+{
+MetricName = "CPU",
+Expected = 60,
+Actual = 90,
+}},
+ Workload = new Workload
+ {
+ Context = "webapp/scenario1",
+ Toolset = Toolset.Other,
+ },
+ ClientIncidentDetails = new ClientIncidentDetails
+ {
+ ClientIncidentId = "AA123",
+ ClientIncidentSource = IncidentSource.Jira,
+ },
+ },
+ };
+ ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, workloadImpactName, data);
+ WorkloadImpactResource 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
+ WorkloadImpactData 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_GetWorkloadImpactResourceByNameExample()
+ {
+ // Generated from example definition: 2025-02-01-preview/WorkloadImpact_Get.json
+ // this example is just showing the usage of "WorkloadImpact_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 SubscriptionResource created on azure
+ // for more information of creating SubscriptionResource, please refer to the document of SubscriptionResource
+ string subscriptionId = "00000000-0000-0000-0000-000000000000";
+ ResourceIdentifier subscriptionResourceId = SubscriptionResource.CreateResourceIdentifier(subscriptionId);
+ SubscriptionResource subscriptionResource = client.GetSubscriptionResource(subscriptionResourceId);
+
+ // get the collection of this WorkloadImpactResource
+ WorkloadImpactCollection collection = subscriptionResource.GetWorkloadImpacts();
+
+ // invoke the operation
+ string workloadImpactName = "impact-001";
+ WorkloadImpactResource result = await collection.GetAsync(workloadImpactName);
+
+ // 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
+ WorkloadImpactData 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_ListWorkloadImpactResourcesBySubscription()
+ {
+ // Generated from example definition: 2025-02-01-preview/WorkloadImpacts_ListBySubscription.json
+ // this example is just showing the usage of "WorkloadImpact_ListBySubscription" operation, for the dependent resources, they will have to be created separately.
+
+ // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this SubscriptionResource created on azure
+ // for more information of creating SubscriptionResource, please refer to the document of SubscriptionResource
+ string subscriptionId = "00000000-0000-0000-0000-000000000000";
+ ResourceIdentifier subscriptionResourceId = SubscriptionResource.CreateResourceIdentifier(subscriptionId);
+ SubscriptionResource subscriptionResource = client.GetSubscriptionResource(subscriptionResourceId);
+
+ // get the collection of this WorkloadImpactResource
+ WorkloadImpactCollection collection = subscriptionResource.GetWorkloadImpacts();
+
+ // invoke the operation and iterate over the result
+ await foreach (WorkloadImpactResource 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
+ WorkloadImpactData resourceData = item.Data;
+ // for demo we just print out the id
+ Console.WriteLine($"Succeeded on id: {resourceData.Id}");
+ }
+
+ Console.WriteLine("Succeeded");
+ }
+
+ [Test]
+ [Ignore("Only validating compilation of examples")]
+ public async Task Exists_GetWorkloadImpactResourceByNameExample()
+ {
+ // Generated from example definition: 2025-02-01-preview/WorkloadImpact_Get.json
+ // this example is just showing the usage of "WorkloadImpact_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 SubscriptionResource created on azure
+ // for more information of creating SubscriptionResource, please refer to the document of SubscriptionResource
+ string subscriptionId = "00000000-0000-0000-0000-000000000000";
+ ResourceIdentifier subscriptionResourceId = SubscriptionResource.CreateResourceIdentifier(subscriptionId);
+ SubscriptionResource subscriptionResource = client.GetSubscriptionResource(subscriptionResourceId);
+
+ // get the collection of this WorkloadImpactResource
+ WorkloadImpactCollection collection = subscriptionResource.GetWorkloadImpacts();
+
+ // invoke the operation
+ string workloadImpactName = "impact-001";
+ bool result = await collection.ExistsAsync(workloadImpactName);
+
+ Console.WriteLine($"Succeeded: {result}");
+ }
+
+ [Test]
+ [Ignore("Only validating compilation of examples")]
+ public async Task GetIfExists_GetWorkloadImpactResourceByNameExample()
+ {
+ // Generated from example definition: 2025-02-01-preview/WorkloadImpact_Get.json
+ // this example is just showing the usage of "WorkloadImpact_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 SubscriptionResource created on azure
+ // for more information of creating SubscriptionResource, please refer to the document of SubscriptionResource
+ string subscriptionId = "00000000-0000-0000-0000-000000000000";
+ ResourceIdentifier subscriptionResourceId = SubscriptionResource.CreateResourceIdentifier(subscriptionId);
+ SubscriptionResource subscriptionResource = client.GetSubscriptionResource(subscriptionResourceId);
+
+ // get the collection of this WorkloadImpactResource
+ WorkloadImpactCollection collection = subscriptionResource.GetWorkloadImpacts();
+
+ // invoke the operation
+ string workloadImpactName = "impact-001";
+ NullableResponse response = await collection.GetIfExistsAsync(workloadImpactName);
+ WorkloadImpactResource 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
+ WorkloadImpactData resourceData = result.Data;
+ // for demo we just print out the id
+ Console.WriteLine($"Succeeded on id: {resourceData.Id}");
+ }
+ }
+ }
+}
diff --git a/sdk/impact/Azure.ResourceManager.Impact/samples/Generated/Samples/Sample_WorkloadImpactResource.cs b/sdk/impact/Azure.ResourceManager.Impact/samples/Generated/Samples/Sample_WorkloadImpactResource.cs
new file mode 100644
index 000000000000..8d9d21b2e963
--- /dev/null
+++ b/sdk/impact/Azure.ResourceManager.Impact/samples/Generated/Samples/Sample_WorkloadImpactResource.cs
@@ -0,0 +1,275 @@
+// 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.Impact.Models;
+using NUnit.Framework;
+
+namespace Azure.ResourceManager.Impact.Samples
+{
+ public partial class Sample_WorkloadImpactResource
+ {
+ [Test]
+ [Ignore("Only validating compilation of examples")]
+ public async Task Get_GetWorkloadImpactResourceByNameExample()
+ {
+ // Generated from example definition: 2025-02-01-preview/WorkloadImpact_Get.json
+ // this example is just showing the usage of "WorkloadImpact_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 WorkloadImpactResource created on azure
+ // for more information of creating WorkloadImpactResource, please refer to the document of WorkloadImpactResource
+ string subscriptionId = "00000000-0000-0000-0000-000000000000";
+ string workloadImpactName = "impact-001";
+ ResourceIdentifier workloadImpactResourceId = WorkloadImpactResource.CreateResourceIdentifier(subscriptionId, workloadImpactName);
+ WorkloadImpactResource workloadImpact = client.GetWorkloadImpactResource(workloadImpactResourceId);
+
+ // invoke the operation
+ WorkloadImpactResource result = await workloadImpact.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
+ WorkloadImpactData 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_DeleteWorkloadImpactResourceByNameExample()
+ {
+ // Generated from example definition: 2025-02-01-preview/WorkloadImpact_Delete.json
+ // this example is just showing the usage of "WorkloadImpact_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 WorkloadImpactResource created on azure
+ // for more information of creating WorkloadImpactResource, please refer to the document of WorkloadImpactResource
+ string subscriptionId = "00000000-0000-0000-0000-000000000000";
+ string workloadImpactName = "impact-001";
+ ResourceIdentifier workloadImpactResourceId = WorkloadImpactResource.CreateResourceIdentifier(subscriptionId, workloadImpactName);
+ WorkloadImpactResource workloadImpact = client.GetWorkloadImpactResource(workloadImpactResourceId);
+
+ // invoke the operation
+ await workloadImpact.DeleteAsync(WaitUntil.Completed);
+
+ Console.WriteLine("Succeeded");
+ }
+
+ [Test]
+ [Ignore("Only validating compilation of examples")]
+ public async Task Update_ReportingArmOperationFailure()
+ {
+ // Generated from example definition: 2025-02-01-preview/WorkloadArmOperation_create.json
+ // this example is just showing the usage of "WorkloadImpact_Create" operation, for the dependent resources, they will have to be created separately.
+
+ // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this WorkloadImpactResource created on azure
+ // for more information of creating WorkloadImpactResource, please refer to the document of WorkloadImpactResource
+ string subscriptionId = "00000000-0000-0000-0000-000000000000";
+ string workloadImpactName = "impact-002";
+ ResourceIdentifier workloadImpactResourceId = WorkloadImpactResource.CreateResourceIdentifier(subscriptionId, workloadImpactName);
+ WorkloadImpactResource workloadImpact = client.GetWorkloadImpactResource(workloadImpactResourceId);
+
+ // invoke the operation
+ WorkloadImpactData data = new WorkloadImpactData
+ {
+ Properties = new WorkloadImpactProperties(DateTimeOffset.Parse("2022-06-15T05:59:46.6517821Z"), "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/resource-rg/providers/Microsoft.Sql/sqlserver/dbservercontext", "ArmOperation")
+ {
+ ImpactDescription = "deletion of resource failed",
+ ArmCorrelationIds = { "00000000-0000-0000-0000-000000000000" },
+ Workload = new Workload
+ {
+ Context = "webapp/scenario1",
+ Toolset = Toolset.Other,
+ },
+ ClientIncidentDetails = new ClientIncidentDetails
+ {
+ ClientIncidentId = "AA123",
+ ClientIncidentSource = IncidentSource.Jira,
+ },
+ },
+ };
+ ArmOperation lro = await workloadImpact.UpdateAsync(WaitUntil.Completed, data);
+ WorkloadImpactResource 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
+ WorkloadImpactData 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_ReportingAvailabilityRelatedImpact()
+ {
+ // Generated from example definition: 2025-02-01-preview/WorkloadAvailability_Create.json
+ // this example is just showing the usage of "WorkloadImpact_Create" operation, for the dependent resources, they will have to be created separately.
+
+ // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this WorkloadImpactResource created on azure
+ // for more information of creating WorkloadImpactResource, please refer to the document of WorkloadImpactResource
+ string subscriptionId = "00000000-0000-0000-0000-000000000000";
+ string workloadImpactName = "impact-002";
+ ResourceIdentifier workloadImpactResourceId = WorkloadImpactResource.CreateResourceIdentifier(subscriptionId, workloadImpactName);
+ WorkloadImpactResource workloadImpact = client.GetWorkloadImpactResource(workloadImpactResourceId);
+
+ // invoke the operation
+ WorkloadImpactData data = new WorkloadImpactData
+ {
+ Properties = new WorkloadImpactProperties(DateTimeOffset.Parse("2022-06-15T05:59:46.6517821Z"), "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/resource-rg/providers/Microsoft.Sql/sqlserver/dbservercontext", "Availability")
+ {
+ ImpactDescription = "read calls failed",
+ Workload = new Workload
+ {
+ Context = "webapp/scenario1",
+ Toolset = Toolset.Other,
+ },
+ ClientIncidentDetails = new ClientIncidentDetails
+ {
+ ClientIncidentId = "AA123",
+ ClientIncidentSource = IncidentSource.Jira,
+ },
+ },
+ };
+ ArmOperation lro = await workloadImpact.UpdateAsync(WaitUntil.Completed, data);
+ WorkloadImpactResource 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
+ WorkloadImpactData 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_ReportingAConnectivityImpact()
+ {
+ // Generated from example definition: 2025-02-01-preview/WorkloadConnectivityImpact_Create.json
+ // this example is just showing the usage of "WorkloadImpact_Create" operation, for the dependent resources, they will have to be created separately.
+
+ // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this WorkloadImpactResource created on azure
+ // for more information of creating WorkloadImpactResource, please refer to the document of WorkloadImpactResource
+ string subscriptionId = "00000000-0000-0000-0000-000000000000";
+ string workloadImpactName = "impact-001";
+ ResourceIdentifier workloadImpactResourceId = WorkloadImpactResource.CreateResourceIdentifier(subscriptionId, workloadImpactName);
+ WorkloadImpactResource workloadImpact = client.GetWorkloadImpactResource(workloadImpactResourceId);
+
+ // invoke the operation
+ WorkloadImpactData data = new WorkloadImpactData
+ {
+ Properties = new WorkloadImpactProperties(DateTimeOffset.Parse("2022-06-15T05:59:46.6517821Z"), "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/resource-rg/providers/Microsoft.Sql/sqlserver/dbservercontext", "Resource.Connectivity")
+ {
+ ImpactDescription = "conection failure",
+ Connectivity = new Connectivity
+ {
+ Protocol = Protocol.TCP,
+ Port = 1443,
+ SourceAzureResourceId = "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/resourceSub/providers/Microsoft.compute/virtualmachines/vm1",
+ TargetAzureResourceId = "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/resourceSub/providers/Microsoft.compute/virtualmachines/vm2",
+ },
+ Workload = new Workload
+ {
+ Context = "webapp/scenario1",
+ Toolset = Toolset.Other,
+ },
+ ClientIncidentDetails = new ClientIncidentDetails
+ {
+ ClientIncidentId = "AA123",
+ ClientIncidentSource = IncidentSource.Jira,
+ },
+ },
+ };
+ ArmOperation lro = await workloadImpact.UpdateAsync(WaitUntil.Completed, data);
+ WorkloadImpactResource 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
+ WorkloadImpactData 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_ReportingPerformanceRelatedImpact()
+ {
+ // Generated from example definition: 2025-02-01-preview/WorkloadPerformance_Create.json
+ // this example is just showing the usage of "WorkloadImpact_Create" operation, for the dependent resources, they will have to be created separately.
+
+ // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this WorkloadImpactResource created on azure
+ // for more information of creating WorkloadImpactResource, please refer to the document of WorkloadImpactResource
+ string subscriptionId = "00000000-0000-0000-0000-000000000000";
+ string workloadImpactName = "impact-002";
+ ResourceIdentifier workloadImpactResourceId = WorkloadImpactResource.CreateResourceIdentifier(subscriptionId, workloadImpactName);
+ WorkloadImpactResource workloadImpact = client.GetWorkloadImpactResource(workloadImpactResourceId);
+
+ // invoke the operation
+ WorkloadImpactData data = new WorkloadImpactData
+ {
+ Properties = new WorkloadImpactProperties(DateTimeOffset.Parse("2022-06-15T05:59:46.6517821Z"), "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/resource-rg/providers/Microsoft.Sql/sqlserver/dbservercontext", "Resource.Performance")
+ {
+ ImpactDescription = "high cpu utilization",
+ Performance = {new Performance
+{
+MetricName = "CPU",
+Expected = 60,
+Actual = 90,
+}},
+ Workload = new Workload
+ {
+ Context = "webapp/scenario1",
+ Toolset = Toolset.Other,
+ },
+ ClientIncidentDetails = new ClientIncidentDetails
+ {
+ ClientIncidentId = "AA123",
+ ClientIncidentSource = IncidentSource.Jira,
+ },
+ },
+ };
+ ArmOperation lro = await workloadImpact.UpdateAsync(WaitUntil.Completed, data);
+ WorkloadImpactResource 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
+ WorkloadImpactData resourceData = result.Data;
+ // for demo we just print out the id
+ Console.WriteLine($"Succeeded on id: {resourceData.Id}");
+ }
+ }
+}
diff --git a/sdk/impact/Azure.ResourceManager.Impact/src/Azure.ResourceManager.Impact.csproj b/sdk/impact/Azure.ResourceManager.Impact/src/Azure.ResourceManager.Impact.csproj
new file mode 100644
index 000000000000..92d73ca58b7f
--- /dev/null
+++ b/sdk/impact/Azure.ResourceManager.Impact/src/Azure.ResourceManager.Impact.csproj
@@ -0,0 +1,10 @@
+
+
+ This is the Azure.ResourceManager.Impact client library for developing .NET applications with rich experience.
+ Azure SDK Code Generation Azure.ResourceManager.Impact for Azure Data Plane
+ 1.0.0-beta.1
+ Azure.ResourceManager.Impact
+ $(RequiredTargetFrameworks)
+ true
+
+
diff --git a/sdk/impact/Azure.ResourceManager.Impact/src/Generated/ArmImpactModelFactory.cs b/sdk/impact/Azure.ResourceManager.Impact/src/Generated/ArmImpactModelFactory.cs
new file mode 100644
index 000000000000..2a129cf86c5a
--- /dev/null
+++ b/sdk/impact/Azure.ResourceManager.Impact/src/Generated/ArmImpactModelFactory.cs
@@ -0,0 +1,221 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using Azure.Core;
+using Azure.ResourceManager.Models;
+
+namespace Azure.ResourceManager.Impact.Models
+{
+ /// Model factory for models.
+ public static partial class ArmImpactModelFactory
+ {
+ /// Initializes a new instance of .
+ /// The id.
+ /// The name.
+ /// The resourceType.
+ /// The systemData.
+ /// The resource-specific properties for this resource.
+ /// A new instance for mocking.
+ public static ConnectorData ConnectorData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, ConnectorProperties properties = null)
+ {
+ return new ConnectorData(
+ id,
+ name,
+ resourceType,
+ systemData,
+ properties,
+ serializedAdditionalRawData: null);
+ }
+
+ /// Initializes a new instance of .
+ /// Resource provisioning state.
+ /// unique id of the connector.
+ /// tenant id of this connector.
+ /// connector type.
+ /// last run time stamp of this connector in UTC time zone.
+ /// A new instance for mocking.
+ public static ConnectorProperties ConnectorProperties(ProvisioningState? provisioningState = null, string connectorId = null, string tenantId = null, Platform connectorType = default, DateTimeOffset lastRunTimeStamp = default)
+ {
+ return new ConnectorProperties(
+ provisioningState,
+ connectorId,
+ tenantId,
+ connectorType,
+ lastRunTimeStamp,
+ serializedAdditionalRawData: null);
+ }
+
+ /// Initializes a new instance of .
+ /// The id.
+ /// The name.
+ /// The resourceType.
+ /// The systemData.
+ /// The resource-specific properties for this resource.
+ /// A new instance for mocking.
+ public static InsightData InsightData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, InsightProperties properties = null)
+ {
+ return new InsightData(
+ id,
+ name,
+ resourceType,
+ systemData,
+ properties,
+ serializedAdditionalRawData: null);
+ }
+
+ /// Initializes a new instance of .
+ /// Resource provisioning state.
+ /// category of the insight.
+ /// status of the insight. example resolved, repaired, other.
+ /// Identifier of the event that has been correlated with this insight. This can be used to aggregate insights for the same event.
+ /// Identifier that can be used to group similar insights.
+ /// Contains title & description for the insight.
+ /// Time of the event, which has been correlated the impact.
+ /// unique id of the insight.
+ /// details of of the impact for which insight has been generated.
+ /// additional details of the insight.
+ /// A new instance for mocking.
+ public static InsightProperties InsightProperties(ProvisioningState? provisioningState = null, string category = null, string status = null, string eventId = null, string groupId = null, Content content = null, DateTimeOffset? eventOn = null, string insightUniqueId = null, ImpactDetails impact = null, InsightPropertiesAdditionalDetails additionalDetails = null)
+ {
+ return new InsightProperties(
+ provisioningState,
+ category,
+ status,
+ eventId,
+ groupId,
+ content,
+ eventOn,
+ insightUniqueId,
+ impact,
+ additionalDetails,
+ serializedAdditionalRawData: null);
+ }
+
+ /// Initializes a new instance of .
+ /// The id.
+ /// The name.
+ /// The resourceType.
+ /// The systemData.
+ /// The resource-specific properties for this resource.
+ /// A new instance for mocking.
+ public static ImpactCategoryData ImpactCategoryData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, ImpactCategoryProperties properties = null)
+ {
+ return new ImpactCategoryData(
+ id,
+ name,
+ resourceType,
+ systemData,
+ properties,
+ serializedAdditionalRawData: null);
+ }
+
+ /// Initializes a new instance of .
+ /// Resource provisioning state.
+ /// Unique ID of the category.
+ /// Unique ID of the parent category.
+ /// Description of the category.
+ /// The workloadImpact properties which are required when reporting with the impact category.
+ /// A new instance for mocking.
+ public static ImpactCategoryProperties ImpactCategoryProperties(ProvisioningState? provisioningState = null, string categoryId = null, string parentCategoryId = null, string description = null, IEnumerable requiredImpactProperties = null)
+ {
+ requiredImpactProperties ??= new List();
+
+ return new ImpactCategoryProperties(
+ provisioningState,
+ categoryId,
+ parentCategoryId,
+ description,
+ requiredImpactProperties?.ToList(),
+ serializedAdditionalRawData: null);
+ }
+
+ /// Initializes a new instance of .
+ /// Name of the property.
+ /// Allowed values values for the property.
+ /// A new instance for mocking.
+ public static RequiredImpactProperties RequiredImpactProperties(string name = null, IEnumerable allowedValues = null)
+ {
+ allowedValues ??= new List();
+
+ return new RequiredImpactProperties(name, allowedValues?.ToList(), serializedAdditionalRawData: null);
+ }
+
+ /// Initializes a new instance of .
+ /// The id.
+ /// The name.
+ /// The resourceType.
+ /// The systemData.
+ /// The resource-specific properties for this resource.
+ /// A new instance for mocking.
+ public static WorkloadImpactData WorkloadImpactData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, WorkloadImpactProperties properties = null)
+ {
+ return new WorkloadImpactData(
+ id,
+ name,
+ resourceType,
+ systemData,
+ properties,
+ serializedAdditionalRawData: null);
+ }
+
+ /// Initializes a new instance of .
+ /// Resource provisioning state.
+ /// Time at which impact was observed.
+ /// Time at which impact has ended.
+ /// Azure resource id of the impacted resource.
+ /// Unique ID of the impact (UUID).
+ /// Time at which impact is reported.
+ /// Category of the impact, details can found from /impactCategories API.
+ /// A detailed description of the impact.
+ /// The ARM correlation ids, this is important field for control plane related impacts.
+ /// Details about performance issue. Applicable for performance impacts.
+ /// Details about connectivity issue. Applicable when root resource causing the issue is not identified. For example, when a VM is impacted due to a network issue, the impacted resource is identified as the VM, but the root cause is the network. In such cases, the connectivity field will have the details about the network issue.
+ /// Additional fields related to impact, applicable fields per resource type are list under /impactCategories API.
+ /// ARM error code and error message associated with the impact.
+ /// Information about the impacted workload.
+ /// Use this field to group impacts.
+ /// Degree of confidence on the impact being a platform issue.
+ /// Client incident details ex: incidentId , incident source.
+ /// A new instance for mocking.
+ public static WorkloadImpactProperties WorkloadImpactProperties(ProvisioningState? provisioningState = null, DateTimeOffset startOn = default, DateTimeOffset? endOn = null, string impactedResourceId = null, string impactUniqueId = null, DateTimeOffset? reportedTimeUtc = null, string impactCategory = null, string impactDescription = null, IEnumerable armCorrelationIds = null, IEnumerable performance = null, Connectivity connectivity = null, WorkloadImpactPropertiesAdditionalProperties additionalProperties = null, ErrorDetailProperties errorDetails = null, Workload workload = null, string impactGroupId = null, ConfidenceLevel? confidenceLevel = null, ClientIncidentDetails clientIncidentDetails = null)
+ {
+ armCorrelationIds ??= new List();
+ performance ??= new List();
+
+ return new WorkloadImpactProperties(
+ provisioningState,
+ startOn,
+ endOn,
+ impactedResourceId,
+ impactUniqueId,
+ reportedTimeUtc,
+ impactCategory,
+ impactDescription,
+ armCorrelationIds?.ToList(),
+ performance?.ToList(),
+ connectivity,
+ additionalProperties,
+ errorDetails,
+ workload,
+ impactGroupId,
+ confidenceLevel,
+ clientIncidentDetails,
+ serializedAdditionalRawData: null);
+ }
+
+ /// Initializes a new instance of .
+ /// The SAS token URL for uploading.
+ /// A new instance for mocking.
+ public static UploadTokenResponse UploadTokenResponse(string uploadUri = null)
+ {
+ return new UploadTokenResponse(uploadUri, serializedAdditionalRawData: null);
+ }
+ }
+}
diff --git a/sdk/impact/Azure.ResourceManager.Impact/src/Generated/ConnectorCollection.cs b/sdk/impact/Azure.ResourceManager.Impact/src/Generated/ConnectorCollection.cs
new file mode 100644
index 000000000000..0c099c1be011
--- /dev/null
+++ b/sdk/impact/Azure.ResourceManager.Impact/src/Generated/ConnectorCollection.cs
@@ -0,0 +1,494 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.Collections;
+using System.Collections.Generic;
+using System.Globalization;
+using System.Threading;
+using System.Threading.Tasks;
+using Autorest.CSharp.Core;
+using Azure.Core;
+using Azure.Core.Pipeline;
+using Azure.ResourceManager.Resources;
+
+namespace Azure.ResourceManager.Impact
+{
+ ///
+ /// 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 GetConnectors method from an instance of .
+ ///
+ public partial class ConnectorCollection : ArmCollection, IEnumerable, IAsyncEnumerable
+ {
+ private readonly ClientDiagnostics _connectorClientDiagnostics;
+ private readonly ConnectorsRestOperations _connectorRestClient;
+
+ /// Initializes a new instance of the class for mocking.
+ protected ConnectorCollection()
+ {
+ }
+
+ /// 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 ConnectorCollection(ArmClient client, ResourceIdentifier id) : base(client, id)
+ {
+ _connectorClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.Impact", ConnectorResource.ResourceType.Namespace, Diagnostics);
+ TryGetApiVersion(ConnectorResource.ResourceType, out string connectorApiVersion);
+ _connectorRestClient = new ConnectorsRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, connectorApiVersion);
+#if DEBUG
+ ValidateResourceId(Id);
+#endif
+ }
+
+ internal static void ValidateResourceId(ResourceIdentifier id)
+ {
+ if (id.ResourceType != SubscriptionResource.ResourceType)
+ throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "Invalid resource type {0} expected {1}", id.ResourceType, SubscriptionResource.ResourceType), nameof(id));
+ }
+
+ ///
+ /// Create a Connector
+ ///
+ ///
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/providers/Microsoft.Impact/connectors/{connectorName}
+ ///
+ ///
+ /// Operation Id
+ /// Connector_CreateOrUpdate
+ ///
+ ///
+ /// Default Api Version
+ /// 2025-02-01-preview
+ ///
+ ///
+ /// 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 connector.
+ /// Resource create parameters.
+ /// The cancellation token to use.
+ /// is an empty string, and was expected to be non-empty.
+ /// or is null.
+ public virtual async Task> CreateOrUpdateAsync(WaitUntil waitUntil, string connectorName, ConnectorData data, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNullOrEmpty(connectorName, nameof(connectorName));
+ Argument.AssertNotNull(data, nameof(data));
+
+ using var scope = _connectorClientDiagnostics.CreateScope("ConnectorCollection.CreateOrUpdate");
+ scope.Start();
+ try
+ {
+ var response = await _connectorRestClient.CreateOrUpdateAsync(Id.SubscriptionId, connectorName, data, cancellationToken).ConfigureAwait(false);
+ var operation = new ImpactArmOperation(new ConnectorOperationSource(Client), _connectorClientDiagnostics, Pipeline, _connectorRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, connectorName, data).Request, response, OperationFinalStateVia.AzureAsyncOperation);
+ if (waitUntil == WaitUntil.Completed)
+ await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false);
+ return operation;
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+
+ ///
+ /// Create a Connector
+ ///
+ ///
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/providers/Microsoft.Impact/connectors/{connectorName}
+ ///
+ ///
+ /// Operation Id
+ /// Connector_CreateOrUpdate
+ ///
+ ///
+ /// Default Api Version
+ /// 2025-02-01-preview
+ ///
+ ///
+ /// 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 connector.
+ /// Resource create parameters.
+ /// The cancellation token to use.
+ /// is an empty string, and was expected to be non-empty.
+ /// or is null.
+ public virtual ArmOperation CreateOrUpdate(WaitUntil waitUntil, string connectorName, ConnectorData data, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNullOrEmpty(connectorName, nameof(connectorName));
+ Argument.AssertNotNull(data, nameof(data));
+
+ using var scope = _connectorClientDiagnostics.CreateScope("ConnectorCollection.CreateOrUpdate");
+ scope.Start();
+ try
+ {
+ var response = _connectorRestClient.CreateOrUpdate(Id.SubscriptionId, connectorName, data, cancellationToken);
+ var operation = new ImpactArmOperation(new ConnectorOperationSource(Client), _connectorClientDiagnostics, Pipeline, _connectorRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, connectorName, data).Request, response, OperationFinalStateVia.AzureAsyncOperation);
+ if (waitUntil == WaitUntil.Completed)
+ operation.WaitForCompletion(cancellationToken);
+ return operation;
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+
+ ///
+ /// Get a Connector
+ ///
+ ///
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/providers/Microsoft.Impact/connectors/{connectorName}
+ ///
+ ///
+ /// Operation Id
+ /// Connector_Get
+ ///
+ ///
+ /// Default Api Version
+ /// 2025-02-01-preview
+ ///
+ ///
+ /// Resource
+ ///
+ ///
+ ///
+ ///
+ /// The name of the connector.
+ /// The cancellation token to use.
+ /// is an empty string, and was expected to be non-empty.
+ /// is null.
+ public virtual async Task> GetAsync(string connectorName, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNullOrEmpty(connectorName, nameof(connectorName));
+
+ using var scope = _connectorClientDiagnostics.CreateScope("ConnectorCollection.Get");
+ scope.Start();
+ try
+ {
+ var response = await _connectorRestClient.GetAsync(Id.SubscriptionId, connectorName, cancellationToken).ConfigureAwait(false);
+ if (response.Value == null)
+ throw new RequestFailedException(response.GetRawResponse());
+ return Response.FromValue(new ConnectorResource(Client, response.Value), response.GetRawResponse());
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+
+ ///
+ /// Get a Connector
+ ///
+ ///
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/providers/Microsoft.Impact/connectors/{connectorName}
+ ///
+ ///
+ /// Operation Id
+ /// Connector_Get
+ ///
+ ///
+ /// Default Api Version
+ /// 2025-02-01-preview
+ ///
+ ///
+ /// Resource
+ ///
+ ///
+ ///
+ ///
+ /// The name of the connector.
+ /// The cancellation token to use.
+ /// is an empty string, and was expected to be non-empty.
+ /// is null.
+ public virtual Response Get(string connectorName, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNullOrEmpty(connectorName, nameof(connectorName));
+
+ using var scope = _connectorClientDiagnostics.CreateScope("ConnectorCollection.Get");
+ scope.Start();
+ try
+ {
+ var response = _connectorRestClient.Get(Id.SubscriptionId, connectorName, cancellationToken);
+ if (response.Value == null)
+ throw new RequestFailedException(response.GetRawResponse());
+ return Response.FromValue(new ConnectorResource(Client, response.Value), response.GetRawResponse());
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+
+ ///
+ /// List Connector resources by subscription ID
+ ///
+ ///
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/providers/Microsoft.Impact/connectors
+ ///
+ ///
+ /// Operation Id
+ /// Connector_ListBySubscription
+ ///
+ ///
+ /// Default Api Version
+ /// 2025-02-01-preview
+ ///
+ ///
+ /// 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) => _connectorRestClient.CreateListBySubscriptionRequest(Id.SubscriptionId);
+ HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _connectorRestClient.CreateListBySubscriptionNextPageRequest(nextLink, Id.SubscriptionId);
+ return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => new ConnectorResource(Client, ConnectorData.DeserializeConnectorData(e)), _connectorClientDiagnostics, Pipeline, "ConnectorCollection.GetAll", "value", "nextLink", cancellationToken);
+ }
+
+ ///
+ /// List Connector resources by subscription ID
+ ///
+ ///
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/providers/Microsoft.Impact/connectors
+ ///
+ ///
+ /// Operation Id
+ /// Connector_ListBySubscription
+ ///
+ ///
+ /// Default Api Version
+ /// 2025-02-01-preview
+ ///
+ ///
+ /// 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) => _connectorRestClient.CreateListBySubscriptionRequest(Id.SubscriptionId);
+ HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _connectorRestClient.CreateListBySubscriptionNextPageRequest(nextLink, Id.SubscriptionId);
+ return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new ConnectorResource(Client, ConnectorData.DeserializeConnectorData(e)), _connectorClientDiagnostics, Pipeline, "ConnectorCollection.GetAll", "value", "nextLink", cancellationToken);
+ }
+
+ ///
+ /// Checks to see if the resource exists in azure.
+ ///
+ ///
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/providers/Microsoft.Impact/connectors/{connectorName}
+ ///
+ ///
+ /// Operation Id
+ /// Connector_Get
+ ///
+ ///
+ /// Default Api Version
+ /// 2025-02-01-preview
+ ///
+ ///
+ /// Resource
+ ///
+ ///
+ ///
+ ///
+ /// The name of the connector.
+ /// The cancellation token to use.
+ /// is an empty string, and was expected to be non-empty.
+ /// is null.
+ public virtual async Task> ExistsAsync(string connectorName, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNullOrEmpty(connectorName, nameof(connectorName));
+
+ using var scope = _connectorClientDiagnostics.CreateScope("ConnectorCollection.Exists");
+ scope.Start();
+ try
+ {
+ var response = await _connectorRestClient.GetAsync(Id.SubscriptionId, connectorName, 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}/providers/Microsoft.Impact/connectors/{connectorName}
+ ///
+ ///
+ /// Operation Id
+ /// Connector_Get
+ ///
+ ///
+ /// Default Api Version
+ /// 2025-02-01-preview
+ ///
+ ///
+ /// Resource
+ ///
+ ///
+ ///
+ ///
+ /// The name of the connector.
+ /// The cancellation token to use.
+ /// is an empty string, and was expected to be non-empty.
+ /// is null.
+ public virtual Response Exists(string connectorName, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNullOrEmpty(connectorName, nameof(connectorName));
+
+ using var scope = _connectorClientDiagnostics.CreateScope("ConnectorCollection.Exists");
+ scope.Start();
+ try
+ {
+ var response = _connectorRestClient.Get(Id.SubscriptionId, connectorName, 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}/providers/Microsoft.Impact/connectors/{connectorName}
+ ///
+ ///
+ /// Operation Id
+ /// Connector_Get
+ ///
+ ///
+ /// Default Api Version
+ /// 2025-02-01-preview
+ ///
+ ///
+ /// Resource
+ ///
+ ///
+ ///
+ ///
+ /// The name of the connector.
+ /// The cancellation token to use.
+ /// is an empty string, and was expected to be non-empty.
+ /// is null.
+ public virtual async Task> GetIfExistsAsync(string connectorName, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNullOrEmpty(connectorName, nameof(connectorName));
+
+ using var scope = _connectorClientDiagnostics.CreateScope("ConnectorCollection.GetIfExists");
+ scope.Start();
+ try
+ {
+ var response = await _connectorRestClient.GetAsync(Id.SubscriptionId, connectorName, cancellationToken: cancellationToken).ConfigureAwait(false);
+ if (response.Value == null)
+ return new NoValueResponse(response.GetRawResponse());
+ return Response.FromValue(new ConnectorResource(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}/providers/Microsoft.Impact/connectors/{connectorName}
+ ///
+ ///
+ /// Operation Id
+ /// Connector_Get
+ ///
+ ///
+ /// Default Api Version
+ /// 2025-02-01-preview
+ ///
+ ///
+ /// Resource
+ ///
+ ///
+ ///
+ ///
+ /// The name of the connector.
+ /// The cancellation token to use.
+ /// is an empty string, and was expected to be non-empty.
+ /// is null.
+ public virtual NullableResponse GetIfExists(string connectorName, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNullOrEmpty(connectorName, nameof(connectorName));
+
+ using var scope = _connectorClientDiagnostics.CreateScope("ConnectorCollection.GetIfExists");
+ scope.Start();
+ try
+ {
+ var response = _connectorRestClient.Get(Id.SubscriptionId, connectorName, cancellationToken: cancellationToken);
+ if (response.Value == null)
+ return new NoValueResponse(response.GetRawResponse());
+ return Response.FromValue(new ConnectorResource(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/impact/Azure.ResourceManager.Impact/src/Generated/ConnectorData.Serialization.cs b/sdk/impact/Azure.ResourceManager.Impact/src/Generated/ConnectorData.Serialization.cs
new file mode 100644
index 000000000000..58d7d8050827
--- /dev/null
+++ b/sdk/impact/Azure.ResourceManager.Impact/src/Generated/ConnectorData.Serialization.cs
@@ -0,0 +1,155 @@
+// 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.Impact.Models;
+using Azure.ResourceManager.Models;
+
+namespace Azure.ResourceManager.Impact
+{
+ public partial class ConnectorData : 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(ConnectorData)} does not support writing '{format}' format.");
+ }
+
+ base.JsonModelWriteCore(writer, options);
+ if (Optional.IsDefined(Properties))
+ {
+ writer.WritePropertyName("properties"u8);
+ writer.WriteObjectValue(Properties, options);
+ }
+ }
+
+ ConnectorData 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(ConnectorData)} does not support reading '{format}' format.");
+ }
+
+ using JsonDocument document = JsonDocument.ParseValue(ref reader);
+ return DeserializeConnectorData(document.RootElement, options);
+ }
+
+ internal static ConnectorData DeserializeConnectorData(JsonElement element, ModelReaderWriterOptions options = null)
+ {
+ options ??= ModelSerializationExtensions.WireOptions;
+
+ if (element.ValueKind == JsonValueKind.Null)
+ {
+ return null;
+ }
+ ConnectorProperties properties = 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 = ConnectorProperties.DeserializeConnectorProperties(property.Value, options);
+ 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 ConnectorData(
+ id,
+ name,
+ type,
+ systemData,
+ 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(ConnectorData)} does not support writing '{options.Format}' format.");
+ }
+ }
+
+ ConnectorData 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 DeserializeConnectorData(document.RootElement, options);
+ }
+ default:
+ throw new FormatException($"The model {nameof(ConnectorData)} does not support reading '{options.Format}' format.");
+ }
+ }
+
+ string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J";
+ }
+}
diff --git a/sdk/impact/Azure.ResourceManager.Impact/src/Generated/ConnectorData.cs b/sdk/impact/Azure.ResourceManager.Impact/src/Generated/ConnectorData.cs
new file mode 100644
index 000000000000..3b1de33efdfb
--- /dev/null
+++ b/sdk/impact/Azure.ResourceManager.Impact/src/Generated/ConnectorData.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;
+using Azure.Core;
+using Azure.ResourceManager.Impact.Models;
+using Azure.ResourceManager.Models;
+
+namespace Azure.ResourceManager.Impact
+{
+ ///
+ /// A class representing the Connector data model.
+ /// A connector is a resource that can be used to proactively report impacts against workloads in Azure to Microsoft.
+ ///
+ public partial class ConnectorData : 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 ConnectorData()
+ {
+ }
+
+ /// Initializes a new instance of .
+ /// The id.
+ /// The name.
+ /// The resourceType.
+ /// The systemData.
+ /// The resource-specific properties for this resource.
+ /// Keeps track of any properties unknown to the library.
+ internal ConnectorData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, ConnectorProperties properties, IDictionary serializedAdditionalRawData) : base(id, name, resourceType, systemData)
+ {
+ Properties = properties;
+ _serializedAdditionalRawData = serializedAdditionalRawData;
+ }
+
+ /// The resource-specific properties for this resource.
+ public ConnectorProperties Properties { get; set; }
+ }
+}
diff --git a/sdk/impact/Azure.ResourceManager.Impact/src/Generated/ConnectorResource.Serialization.cs b/sdk/impact/Azure.ResourceManager.Impact/src/Generated/ConnectorResource.Serialization.cs
new file mode 100644
index 000000000000..43320c77d8ff
--- /dev/null
+++ b/sdk/impact/Azure.ResourceManager.Impact/src/Generated/ConnectorResource.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.Impact
+{
+ public partial class ConnectorResource : IJsonModel
+ {
+ void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) => ((IJsonModel)Data).Write(writer, options);
+
+ ConnectorData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => ((IJsonModel)Data).Create(ref reader, options);
+
+ BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) => ModelReaderWriter.Write(Data, options);
+
+ ConnectorData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => ModelReaderWriter.Read(data, options);
+
+ string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => ((IPersistableModel)Data).GetFormatFromOptions(options);
+ }
+}
diff --git a/sdk/impact/Azure.ResourceManager.Impact/src/Generated/ConnectorResource.cs b/sdk/impact/Azure.ResourceManager.Impact/src/Generated/ConnectorResource.cs
new file mode 100644
index 000000000000..e6202b63eda8
--- /dev/null
+++ b/sdk/impact/Azure.ResourceManager.Impact/src/Generated/ConnectorResource.cs
@@ -0,0 +1,342 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.Globalization;
+using System.Threading;
+using System.Threading.Tasks;
+using Azure.Core;
+using Azure.Core.Pipeline;
+using Azure.ResourceManager.Resources;
+
+namespace Azure.ResourceManager.Impact
+{
+ ///
+ /// A Class representing a Connector 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 GetConnectorResource method.
+ /// Otherwise you can get one from its parent resource using the GetConnector method.
+ ///
+ public partial class ConnectorResource : ArmResource
+ {
+ /// Generate the resource identifier of a instance.
+ /// The subscriptionId.
+ /// The connectorName.
+ public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string connectorName)
+ {
+ var resourceId = $"/subscriptions/{subscriptionId}/providers/Microsoft.Impact/connectors/{connectorName}";
+ return new ResourceIdentifier(resourceId);
+ }
+
+ private readonly ClientDiagnostics _connectorClientDiagnostics;
+ private readonly ConnectorsRestOperations _connectorRestClient;
+ private readonly ConnectorData _data;
+
+ /// Gets the resource type for the operations.
+ public static readonly ResourceType ResourceType = "Microsoft.Impact/connectors";
+
+ /// Initializes a new instance of the class for mocking.
+ protected ConnectorResource()
+ {
+ }
+
+ /// Initializes a new instance of the class.
+ /// The client parameters to use in these operations.
+ /// The resource that is the target of operations.
+ internal ConnectorResource(ArmClient client, ConnectorData 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 ConnectorResource(ArmClient client, ResourceIdentifier id) : base(client, id)
+ {
+ _connectorClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.Impact", ResourceType.Namespace, Diagnostics);
+ TryGetApiVersion(ResourceType, out string connectorApiVersion);
+ _connectorRestClient = new ConnectorsRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, connectorApiVersion);
+#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 ConnectorData 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));
+ }
+
+ ///
+ /// Get a Connector
+ ///
+ ///
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/providers/Microsoft.Impact/connectors/{connectorName}
+ ///
+ ///
+ /// Operation Id
+ /// Connector_Get
+ ///
+ ///
+ /// Default Api Version
+ /// 2025-02-01-preview
+ ///
+ ///
+ /// Resource
+ ///
+ ///
+ ///
+ ///
+ /// The cancellation token to use.
+ public virtual async Task> GetAsync(CancellationToken cancellationToken = default)
+ {
+ using var scope = _connectorClientDiagnostics.CreateScope("ConnectorResource.Get");
+ scope.Start();
+ try
+ {
+ var response = await _connectorRestClient.GetAsync(Id.SubscriptionId, Id.Name, cancellationToken).ConfigureAwait(false);
+ if (response.Value == null)
+ throw new RequestFailedException(response.GetRawResponse());
+ return Response.FromValue(new ConnectorResource(Client, response.Value), response.GetRawResponse());
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+
+ ///
+ /// Get a Connector
+ ///
+ ///
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/providers/Microsoft.Impact/connectors/{connectorName}
+ ///
+ ///
+ /// Operation Id
+ /// Connector_Get
+ ///
+ ///
+ /// Default Api Version
+ /// 2025-02-01-preview
+ ///
+ ///
+ /// Resource
+ ///
+ ///
+ ///
+ ///
+ /// The cancellation token to use.
+ public virtual Response Get(CancellationToken cancellationToken = default)
+ {
+ using var scope = _connectorClientDiagnostics.CreateScope("ConnectorResource.Get");
+ scope.Start();
+ try
+ {
+ var response = _connectorRestClient.Get(Id.SubscriptionId, Id.Name, cancellationToken);
+ if (response.Value == null)
+ throw new RequestFailedException(response.GetRawResponse());
+ return Response.FromValue(new ConnectorResource(Client, response.Value), response.GetRawResponse());
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+
+ ///
+ /// Delete a Connector
+ ///
+ ///
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/providers/Microsoft.Impact/connectors/{connectorName}
+ ///
+ ///
+ /// Operation Id
+ /// Connector_Delete
+ ///
+ ///
+ /// Default Api Version
+ /// 2025-02-01-preview
+ ///
+ ///
+ /// 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 = _connectorClientDiagnostics.CreateScope("ConnectorResource.Delete");
+ scope.Start();
+ try
+ {
+ var response = await _connectorRestClient.DeleteAsync(Id.SubscriptionId, Id.Name, cancellationToken).ConfigureAwait(false);
+ var uri = _connectorRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.Name);
+ var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), "None", null, OperationFinalStateVia.OriginalUri.ToString());
+ var operation = new ImpactArmOperation(response, rehydrationToken);
+ if (waitUntil == WaitUntil.Completed)
+ await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false);
+ return operation;
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+
+ ///
+ /// Delete a Connector
+ ///
+ ///
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/providers/Microsoft.Impact/connectors/{connectorName}
+ ///
+ ///
+ /// Operation Id
+ /// Connector_Delete
+ ///
+ ///
+ /// Default Api Version
+ /// 2025-02-01-preview
+ ///
+ ///
+ /// 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 = _connectorClientDiagnostics.CreateScope("ConnectorResource.Delete");
+ scope.Start();
+ try
+ {
+ var response = _connectorRestClient.Delete(Id.SubscriptionId, Id.Name, cancellationToken);
+ var uri = _connectorRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.Name);
+ var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), "None", null, OperationFinalStateVia.OriginalUri.ToString());
+ var operation = new ImpactArmOperation(response, rehydrationToken);
+ if (waitUntil == WaitUntil.Completed)
+ operation.WaitForCompletionResponse(cancellationToken);
+ return operation;
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+
+ ///
+ /// Update a Connector
+ ///
+ ///
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/providers/Microsoft.Impact/connectors/{connectorName}
+ ///
+ ///
+ /// Operation Id
+ /// Connector_Update
+ ///
+ ///
+ /// Default Api Version
+ /// 2025-02-01-preview
+ ///
+ ///
+ /// Resource
+ ///
+ ///
+ ///
+ ///
+ /// The resource properties to be updated.
+ /// The cancellation token to use.
+ /// is null.
+ public virtual async Task> UpdateAsync(ConnectorData data, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNull(data, nameof(data));
+
+ using var scope = _connectorClientDiagnostics.CreateScope("ConnectorResource.Update");
+ scope.Start();
+ try
+ {
+ var response = await _connectorRestClient.UpdateAsync(Id.SubscriptionId, Id.Name, data, cancellationToken).ConfigureAwait(false);
+ return Response.FromValue(new ConnectorResource(Client, response.Value), response.GetRawResponse());
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+
+ ///
+ /// Update a Connector
+ ///
+ ///
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/providers/Microsoft.Impact/connectors/{connectorName}
+ ///
+ ///
+ /// Operation Id
+ /// Connector_Update
+ ///
+ ///
+ /// Default Api Version
+ /// 2025-02-01-preview
+ ///
+ ///
+ /// Resource
+ ///
+ ///
+ ///
+ ///
+ /// The resource properties to be updated.
+ /// The cancellation token to use.
+ /// is null.
+ public virtual Response Update(ConnectorData data, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNull(data, nameof(data));
+
+ using var scope = _connectorClientDiagnostics.CreateScope("ConnectorResource.Update");
+ scope.Start();
+ try
+ {
+ var response = _connectorRestClient.Update(Id.SubscriptionId, Id.Name, data, cancellationToken);
+ return Response.FromValue(new ConnectorResource(Client, response.Value), response.GetRawResponse());
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+ }
+}
diff --git a/sdk/impact/Azure.ResourceManager.Impact/src/Generated/Extensions/ImpactExtensions.cs b/sdk/impact/Azure.ResourceManager.Impact/src/Generated/Extensions/ImpactExtensions.cs
new file mode 100644
index 000000000000..d1f6e5c56003
--- /dev/null
+++ b/sdk/impact/Azure.ResourceManager.Impact/src/Generated/Extensions/ImpactExtensions.cs
@@ -0,0 +1,448 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.Threading;
+using System.Threading.Tasks;
+using Azure.Core;
+using Azure.ResourceManager.Impact.Mocking;
+using Azure.ResourceManager.Impact.Models;
+using Azure.ResourceManager.Resources;
+
+namespace Azure.ResourceManager.Impact
+{
+ /// A class to add extension methods to Azure.ResourceManager.Impact.
+ public static partial class ImpactExtensions
+ {
+ private static MockableImpactArmClient GetMockableImpactArmClient(ArmClient client)
+ {
+ return client.GetCachedClient(client0 => new MockableImpactArmClient(client0));
+ }
+
+ private static MockableImpactSubscriptionResource GetMockableImpactSubscriptionResource(ArmResource resource)
+ {
+ return resource.GetCachedClient(client => new MockableImpactSubscriptionResource(client, resource.Id));
+ }
+
+ ///
+ /// Gets an object representing a along with the instance operations that can be performed on it but with no data.
+ /// You can use to create a from its components.
+ ///
+ /// Mocking
+ /// To mock this method, please mock instead.
+ ///
+ ///
+ /// The instance the method will execute against.
+ /// The resource ID of the resource to get.
+ /// is null.
+ /// Returns a object.
+ public static WorkloadImpactResource GetWorkloadImpactResource(this ArmClient client, ResourceIdentifier id)
+ {
+ Argument.AssertNotNull(client, nameof(client));
+
+ return GetMockableImpactArmClient(client).GetWorkloadImpactResource(id);
+ }
+
+ ///
+ /// Gets an object representing an along with the instance operations that can be performed on it but with no data.
+ /// You can use to create an from its components.
+ ///
+ /// Mocking
+ /// To mock this method, please mock instead.
+ ///
+ ///
+ /// The instance the method will execute against.
+ /// The resource ID of the resource to get.
+ /// is null.
+ /// Returns a object.
+ public static ImpactCategoryResource GetImpactCategoryResource(this ArmClient client, ResourceIdentifier id)
+ {
+ Argument.AssertNotNull(client, nameof(client));
+
+ return GetMockableImpactArmClient(client).GetImpactCategoryResource(id);
+ }
+
+ ///
+ /// Gets an object representing an along with the instance operations that can be performed on it but with no data.
+ /// You can use to create an from its components.
+ ///
+ /// Mocking
+ /// To mock this method, please mock instead.
+ ///
+ ///
+ /// The instance the method will execute against.
+ /// The resource ID of the resource to get.
+ /// is null.
+ /// Returns a object.
+ public static InsightResource GetInsightResource(this ArmClient client, ResourceIdentifier id)
+ {
+ Argument.AssertNotNull(client, nameof(client));
+
+ return GetMockableImpactArmClient(client).GetInsightResource(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 ConnectorResource GetConnectorResource(this ArmClient client, ResourceIdentifier id)
+ {
+ Argument.AssertNotNull(client, nameof(client));
+
+ return GetMockableImpactArmClient(client).GetConnectorResource(id);
+ }
+
+ ///
+ /// Gets a collection of WorkloadImpactResources in the SubscriptionResource.
+ ///
+ /// Mocking
+ /// To mock this method, please mock instead.
+ ///
+ ///
+ /// The instance the method will execute against.
+ /// is null.
+ /// An object representing collection of WorkloadImpactResources and their operations over a WorkloadImpactResource.
+ public static WorkloadImpactCollection GetWorkloadImpacts(this SubscriptionResource subscriptionResource)
+ {
+ Argument.AssertNotNull(subscriptionResource, nameof(subscriptionResource));
+
+ return GetMockableImpactSubscriptionResource(subscriptionResource).GetWorkloadImpacts();
+ }
+
+ ///
+ /// Get a WorkloadImpact
+ ///
+ ///
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/providers/Microsoft.Impact/workloadImpacts/{workloadImpactName}
+ ///
+ ///
+ /// Operation Id
+ /// WorkloadImpact_Get
+ ///
+ ///
+ /// Default Api Version
+ /// 2025-02-01-preview
+ ///
+ ///
+ /// Resource
+ ///
+ ///
+ ///
+ ///
+ /// Mocking
+ /// To mock this method, please mock instead.
+ ///
+ ///
+ /// The instance the method will execute against.
+ /// workloadImpact resource.
+ /// The cancellation token to use.
+ /// or is null.
+ /// is an empty string, and was expected to be non-empty.
+ [ForwardsClientCalls]
+ public static async Task> GetWorkloadImpactAsync(this SubscriptionResource subscriptionResource, string workloadImpactName, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNull(subscriptionResource, nameof(subscriptionResource));
+
+ return await GetMockableImpactSubscriptionResource(subscriptionResource).GetWorkloadImpactAsync(workloadImpactName, cancellationToken).ConfigureAwait(false);
+ }
+
+ ///
+ /// Get a WorkloadImpact
+ ///
+ ///
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/providers/Microsoft.Impact/workloadImpacts/{workloadImpactName}
+ ///
+ ///
+ /// Operation Id
+ /// WorkloadImpact_Get
+ ///
+ ///
+ /// Default Api Version
+ /// 2025-02-01-preview
+ ///
+ ///
+ /// Resource
+ ///
+ ///
+ ///
+ ///
+ /// Mocking
+ /// To mock this method, please mock instead.
+ ///
+ ///
+ /// The instance the method will execute against.
+ /// workloadImpact resource.
+ /// The cancellation token to use.
+ /// or is null.
+ /// is an empty string, and was expected to be non-empty.
+ [ForwardsClientCalls]
+ public static Response GetWorkloadImpact(this SubscriptionResource subscriptionResource, string workloadImpactName, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNull(subscriptionResource, nameof(subscriptionResource));
+
+ return GetMockableImpactSubscriptionResource(subscriptionResource).GetWorkloadImpact(workloadImpactName, cancellationToken);
+ }
+
+ ///
+ /// Gets a collection of ImpactCategoryResources in the SubscriptionResource.
+ ///
+ /// Mocking
+ /// To mock this method, please mock instead.
+ ///
+ ///
+ /// The instance the method will execute against.
+ /// is null.
+ /// An object representing collection of ImpactCategoryResources and their operations over a ImpactCategoryResource.
+ public static ImpactCategoryCollection GetImpactCategories(this SubscriptionResource subscriptionResource)
+ {
+ Argument.AssertNotNull(subscriptionResource, nameof(subscriptionResource));
+
+ return GetMockableImpactSubscriptionResource(subscriptionResource).GetImpactCategories();
+ }
+
+ ///
+ /// Get a ImpactCategory
+ ///
+ ///
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/providers/Microsoft.Impact/impactCategories/{impactCategoryName}
+ ///
+ ///
+ /// Operation Id
+ /// ImpactCategory_Get
+ ///
+ ///
+ /// Default Api Version
+ /// 2025-02-01-preview
+ ///
+ ///
+ /// Resource
+ ///
+ ///
+ ///
+ ///
+ /// Mocking
+ /// To mock this method, please mock instead.
+ ///
+ ///
+ /// The instance the method will execute against.
+ /// Name of the impact category.
+ /// The cancellation token to use.
+ /// or is null.
+ /// is an empty string, and was expected to be non-empty.
+ [ForwardsClientCalls]
+ public static async Task> GetImpactCategoryAsync(this SubscriptionResource subscriptionResource, string impactCategoryName, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNull(subscriptionResource, nameof(subscriptionResource));
+
+ return await GetMockableImpactSubscriptionResource(subscriptionResource).GetImpactCategoryAsync(impactCategoryName, cancellationToken).ConfigureAwait(false);
+ }
+
+ ///
+ /// Get a ImpactCategory
+ ///
+ ///
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/providers/Microsoft.Impact/impactCategories/{impactCategoryName}
+ ///
+ ///
+ /// Operation Id
+ /// ImpactCategory_Get
+ ///
+ ///
+ /// Default Api Version
+ /// 2025-02-01-preview
+ ///
+ ///
+ /// Resource
+ ///
+ ///
+ ///
+ ///
+ /// Mocking
+ /// To mock this method, please mock instead.
+ ///
+ ///
+ /// The instance the method will execute against.
+ /// Name of the impact category.
+ /// The cancellation token to use.
+ /// or is null.
+ /// is an empty string, and was expected to be non-empty.
+ [ForwardsClientCalls]
+ public static Response GetImpactCategory(this SubscriptionResource subscriptionResource, string impactCategoryName, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNull(subscriptionResource, nameof(subscriptionResource));
+
+ return GetMockableImpactSubscriptionResource(subscriptionResource).GetImpactCategory(impactCategoryName, cancellationToken);
+ }
+
+ ///
+ /// Gets a collection of ConnectorResources in the SubscriptionResource.
+ ///
+ /// Mocking
+ /// To mock this method, please mock instead.
+ ///
+ ///
+ /// The instance the method will execute against.
+ /// is null.
+ /// An object representing collection of ConnectorResources and their operations over a ConnectorResource.
+ public static ConnectorCollection GetConnectors(this SubscriptionResource subscriptionResource)
+ {
+ Argument.AssertNotNull(subscriptionResource, nameof(subscriptionResource));
+
+ return GetMockableImpactSubscriptionResource(subscriptionResource).GetConnectors();
+ }
+
+ ///
+ /// Get a Connector
+ ///
+ ///
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/providers/Microsoft.Impact/connectors/{connectorName}
+ ///
+ ///
+ /// Operation Id
+ /// Connector_Get
+ ///
+ ///
+ /// Default Api Version
+ /// 2025-02-01-preview
+ ///
+ ///
+ /// Resource
+ ///
+ ///
+ ///
+ ///
+ /// Mocking
+ /// To mock this method, please mock instead.
+ ///
+ ///
+ /// The instance the method will execute against.
+ /// The name of the connector.
+ /// The cancellation token to use.
+ /// or is null.
+ /// is an empty string, and was expected to be non-empty.
+ [ForwardsClientCalls]
+ public static async Task> GetConnectorAsync(this SubscriptionResource subscriptionResource, string connectorName, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNull(subscriptionResource, nameof(subscriptionResource));
+
+ return await GetMockableImpactSubscriptionResource(subscriptionResource).GetConnectorAsync(connectorName, cancellationToken).ConfigureAwait(false);
+ }
+
+ ///
+ /// Get a Connector
+ ///
+ ///
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/providers/Microsoft.Impact/connectors/{connectorName}
+ ///
+ ///
+ /// Operation Id
+ /// Connector_Get
+ ///
+ ///
+ /// Default Api Version
+ /// 2025-02-01-preview
+ ///
+ ///
+ /// Resource
+ ///
+ ///
+ ///
+ ///
+ /// Mocking
+ /// To mock this method, please mock instead.
+ ///
+ ///
+ /// The instance the method will execute against.
+ /// The name of the connector.
+ /// The cancellation token to use.
+ /// or is null.
+ /// is an empty string, and was expected to be non-empty.
+ [ForwardsClientCalls]
+ public static Response GetConnector(this SubscriptionResource subscriptionResource, string connectorName, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNull(subscriptionResource, nameof(subscriptionResource));
+
+ return GetMockableImpactSubscriptionResource(subscriptionResource).GetConnector(connectorName, cancellationToken);
+ }
+
+ ///
+ /// Customer can use this POST endpoint to trigger an action, where the UserRP/AzImpactRP service creates and returns a user-delegate SAS token for the storage account/container unique to the customer (identified by subscription ID).
+ ///
+ ///
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/providers/Microsoft.Impact/getUploadToken
+ ///
+ ///
+ /// Operation Id
+ /// UploadService_GetUploadToken
+ ///
+ ///
+ /// Default Api Version
+ /// 2025-02-01-preview
+ ///
+ ///
+ ///
+ /// Mocking
+ /// To mock this method, please mock instead.
+ ///
+ ///
+ /// The instance the method will execute against.
+ /// The cancellation token to use.
+ /// is null.
+ public static async Task> GetUploadTokenUploadServiceAsync(this SubscriptionResource subscriptionResource, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNull(subscriptionResource, nameof(subscriptionResource));
+
+ return await GetMockableImpactSubscriptionResource(subscriptionResource).GetUploadTokenUploadServiceAsync(cancellationToken).ConfigureAwait(false);
+ }
+
+ ///
+ /// Customer can use this POST endpoint to trigger an action, where the UserRP/AzImpactRP service creates and returns a user-delegate SAS token for the storage account/container unique to the customer (identified by subscription ID).
+ ///
+ ///
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/providers/Microsoft.Impact/getUploadToken
+ ///
+ ///
+ /// Operation Id
+ /// UploadService_GetUploadToken
+ ///
+ ///
+ /// Default Api Version
+ /// 2025-02-01-preview
+ ///
+ ///
+ ///
+ /// Mocking
+ /// To mock this method, please mock instead.
+ ///
+ ///
+ /// The instance the method will execute against.
+ /// The cancellation token to use.
+ /// is null.
+ public static Response GetUploadTokenUploadService(this SubscriptionResource subscriptionResource, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNull(subscriptionResource, nameof(subscriptionResource));
+
+ return GetMockableImpactSubscriptionResource(subscriptionResource).GetUploadTokenUploadService(cancellationToken);
+ }
+ }
+}
diff --git a/sdk/impact/Azure.ResourceManager.Impact/src/Generated/Extensions/MockableImpactArmClient.cs b/sdk/impact/Azure.ResourceManager.Impact/src/Generated/Extensions/MockableImpactArmClient.cs
new file mode 100644
index 000000000000..2e56e12a7199
--- /dev/null
+++ b/sdk/impact/Azure.ResourceManager.Impact/src/Generated/Extensions/MockableImpactArmClient.cs
@@ -0,0 +1,85 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using Azure.Core;
+
+namespace Azure.ResourceManager.Impact.Mocking
+{
+ /// A class to add extension methods to ArmClient.
+ public partial class MockableImpactArmClient : ArmResource
+ {
+ /// Initializes a new instance of the class for mocking.
+ protected MockableImpactArmClient()
+ {
+ }
+
+ /// 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 MockableImpactArmClient(ArmClient client, ResourceIdentifier id) : base(client, id)
+ {
+ }
+
+ internal MockableImpactArmClient(ArmClient client) : this(client, ResourceIdentifier.Root)
+ {
+ }
+
+ private string GetApiVersionOrNull(ResourceType resourceType)
+ {
+ TryGetApiVersion(resourceType, out string apiVersion);
+ return apiVersion;
+ }
+
+ ///
+ /// Gets an object representing a along with the instance operations that can be performed on it but with no data.
+ /// You can use to create a from its components.
+ ///
+ /// The resource ID of the resource to get.
+ /// Returns a object.
+ public virtual WorkloadImpactResource GetWorkloadImpactResource(ResourceIdentifier id)
+ {
+ WorkloadImpactResource.ValidateResourceId(id);
+ return new WorkloadImpactResource(Client, id);
+ }
+
+ ///
+ /// Gets an object representing an along with the instance operations that can be performed on it but with no data.
+ /// You can use to create an from its components.
+ ///
+ /// The resource ID of the resource to get.
+ /// Returns a object.
+ public virtual ImpactCategoryResource GetImpactCategoryResource(ResourceIdentifier id)
+ {
+ ImpactCategoryResource.ValidateResourceId(id);
+ return new ImpactCategoryResource(Client, id);
+ }
+
+ ///
+ /// Gets an object representing an along with the instance operations that can be performed on it but with no data.
+ /// You can use to create an from its components.
+ ///
+ /// The resource ID of the resource to get.
+ /// Returns a object.
+ public virtual InsightResource GetInsightResource(ResourceIdentifier id)
+ {
+ InsightResource.ValidateResourceId(id);
+ return new InsightResource(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 ConnectorResource GetConnectorResource(ResourceIdentifier id)
+ {
+ ConnectorResource.ValidateResourceId(id);
+ return new ConnectorResource(Client, id);
+ }
+ }
+}
diff --git a/sdk/impact/Azure.ResourceManager.Impact/src/Generated/Extensions/MockableImpactSubscriptionResource.cs b/sdk/impact/Azure.ResourceManager.Impact/src/Generated/Extensions/MockableImpactSubscriptionResource.cs
new file mode 100644
index 000000000000..e76c29aa33a2
--- /dev/null
+++ b/sdk/impact/Azure.ResourceManager.Impact/src/Generated/Extensions/MockableImpactSubscriptionResource.cs
@@ -0,0 +1,319 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.Threading;
+using System.Threading.Tasks;
+using Azure.Core;
+using Azure.Core.Pipeline;
+using Azure.ResourceManager.Impact.Models;
+
+namespace Azure.ResourceManager.Impact.Mocking
+{
+ /// A class to add extension methods to SubscriptionResource.
+ public partial class MockableImpactSubscriptionResource : ArmResource
+ {
+ private ClientDiagnostics _uploadServiceClientDiagnostics;
+ private UploadServiceRestOperations _uploadServiceRestClient;
+
+ /// Initializes a new instance of the class for mocking.
+ protected MockableImpactSubscriptionResource()
+ {
+ }
+
+ /// 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 MockableImpactSubscriptionResource(ArmClient client, ResourceIdentifier id) : base(client, id)
+ {
+ }
+
+ private ClientDiagnostics UploadServiceClientDiagnostics => _uploadServiceClientDiagnostics ??= new ClientDiagnostics("Azure.ResourceManager.Impact", ProviderConstants.DefaultProviderNamespace, Diagnostics);
+ private UploadServiceRestOperations UploadServiceRestClient => _uploadServiceRestClient ??= new UploadServiceRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint);
+
+ private string GetApiVersionOrNull(ResourceType resourceType)
+ {
+ TryGetApiVersion(resourceType, out string apiVersion);
+ return apiVersion;
+ }
+
+ /// Gets a collection of WorkloadImpactResources in the SubscriptionResource.
+ /// An object representing collection of WorkloadImpactResources and their operations over a WorkloadImpactResource.
+ public virtual WorkloadImpactCollection GetWorkloadImpacts()
+ {
+ return GetCachedClient(client => new WorkloadImpactCollection(client, Id));
+ }
+
+ ///
+ /// Get a WorkloadImpact
+ ///
+ ///
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/providers/Microsoft.Impact/workloadImpacts/{workloadImpactName}
+ ///
+ ///
+ /// Operation Id
+ /// WorkloadImpact_Get
+ ///
+ ///
+ /// Default Api Version
+ /// 2025-02-01-preview
+ ///
+ ///
+ /// Resource
+ ///
+ ///
+ ///
+ ///
+ /// workloadImpact resource.
+ /// The cancellation token to use.
+ /// is null.
+ /// is an empty string, and was expected to be non-empty.
+ [ForwardsClientCalls]
+ public virtual async Task> GetWorkloadImpactAsync(string workloadImpactName, CancellationToken cancellationToken = default)
+ {
+ return await GetWorkloadImpacts().GetAsync(workloadImpactName, cancellationToken).ConfigureAwait(false);
+ }
+
+ ///
+ /// Get a WorkloadImpact
+ ///
+ ///
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/providers/Microsoft.Impact/workloadImpacts/{workloadImpactName}
+ ///
+ ///
+ /// Operation Id
+ /// WorkloadImpact_Get
+ ///
+ ///
+ /// Default Api Version
+ /// 2025-02-01-preview
+ ///
+ ///
+ /// Resource
+ ///
+ ///
+ ///
+ ///
+ /// workloadImpact resource.
+ /// The cancellation token to use.
+ /// is null.
+ /// is an empty string, and was expected to be non-empty.
+ [ForwardsClientCalls]
+ public virtual Response GetWorkloadImpact(string workloadImpactName, CancellationToken cancellationToken = default)
+ {
+ return GetWorkloadImpacts().Get(workloadImpactName, cancellationToken);
+ }
+
+ /// Gets a collection of ImpactCategoryResources in the SubscriptionResource.
+ /// An object representing collection of ImpactCategoryResources and their operations over a ImpactCategoryResource.
+ public virtual ImpactCategoryCollection GetImpactCategories()
+ {
+ return GetCachedClient(client => new ImpactCategoryCollection(client, Id));
+ }
+
+ ///
+ /// Get a ImpactCategory
+ ///
+ ///
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/providers/Microsoft.Impact/impactCategories/{impactCategoryName}
+ ///
+ ///
+ /// Operation Id
+ /// ImpactCategory_Get
+ ///
+ ///
+ /// Default Api Version
+ /// 2025-02-01-preview
+ ///
+ ///
+ /// Resource
+ ///
+ ///
+ ///
+ ///
+ /// Name of the impact category.
+ /// The cancellation token to use.
+ /// is null.
+ /// is an empty string, and was expected to be non-empty.
+ [ForwardsClientCalls]
+ public virtual async Task> GetImpactCategoryAsync(string impactCategoryName, CancellationToken cancellationToken = default)
+ {
+ return await GetImpactCategories().GetAsync(impactCategoryName, cancellationToken).ConfigureAwait(false);
+ }
+
+ ///
+ /// Get a ImpactCategory
+ ///
+ ///
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/providers/Microsoft.Impact/impactCategories/{impactCategoryName}
+ ///
+ ///
+ /// Operation Id
+ /// ImpactCategory_Get
+ ///
+ ///
+ /// Default Api Version
+ /// 2025-02-01-preview
+ ///
+ ///
+ /// Resource
+ ///
+ ///
+ ///
+ ///
+ /// Name of the impact category.
+ /// The cancellation token to use.
+ /// is null.
+ /// is an empty string, and was expected to be non-empty.
+ [ForwardsClientCalls]
+ public virtual Response GetImpactCategory(string impactCategoryName, CancellationToken cancellationToken = default)
+ {
+ return GetImpactCategories().Get(impactCategoryName, cancellationToken);
+ }
+
+ /// Gets a collection of ConnectorResources in the SubscriptionResource.
+ /// An object representing collection of ConnectorResources and their operations over a ConnectorResource.
+ public virtual ConnectorCollection GetConnectors()
+ {
+ return GetCachedClient(client => new ConnectorCollection(client, Id));
+ }
+
+ ///
+ /// Get a Connector
+ ///
+ ///
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/providers/Microsoft.Impact/connectors/{connectorName}
+ ///
+ ///
+ /// Operation Id
+ /// Connector_Get
+ ///
+ ///
+ /// Default Api Version
+ /// 2025-02-01-preview
+ ///
+ ///
+ /// Resource
+ ///
+ ///
+ ///
+ ///
+ /// The name of the connector.
+ /// The cancellation token to use.
+ /// is null.
+ /// is an empty string, and was expected to be non-empty.
+ [ForwardsClientCalls]
+ public virtual async Task> GetConnectorAsync(string connectorName, CancellationToken cancellationToken = default)
+ {
+ return await GetConnectors().GetAsync(connectorName, cancellationToken).ConfigureAwait(false);
+ }
+
+ ///
+ /// Get a Connector
+ ///
+ ///
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/providers/Microsoft.Impact/connectors/{connectorName}
+ ///
+ ///
+ /// Operation Id
+ /// Connector_Get
+ ///
+ ///
+ /// Default Api Version
+ /// 2025-02-01-preview
+ ///
+ ///
+ /// Resource
+ ///
+ ///
+ ///
+ ///
+ /// The name of the connector.
+ /// The cancellation token to use.
+ /// is null.
+ /// is an empty string, and was expected to be non-empty.
+ [ForwardsClientCalls]
+ public virtual Response GetConnector(string connectorName, CancellationToken cancellationToken = default)
+ {
+ return GetConnectors().Get(connectorName, cancellationToken);
+ }
+
+ ///
+ /// Customer can use this POST endpoint to trigger an action, where the UserRP/AzImpactRP service creates and returns a user-delegate SAS token for the storage account/container unique to the customer (identified by subscription ID).
+ ///
+ ///
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/providers/Microsoft.Impact/getUploadToken
+ ///
+ ///
+ /// Operation Id
+ /// UploadService_GetUploadToken
+ ///
+ ///
+ /// Default Api Version
+ /// 2025-02-01-preview
+ ///
+ ///
+ ///
+ /// The cancellation token to use.
+ public virtual async Task> GetUploadTokenUploadServiceAsync(CancellationToken cancellationToken = default)
+ {
+ using var scope = UploadServiceClientDiagnostics.CreateScope("MockableImpactSubscriptionResource.GetUploadTokenUploadService");
+ scope.Start();
+ try
+ {
+ var response = await UploadServiceRestClient.GetUploadTokenAsync(Id.SubscriptionId, cancellationToken).ConfigureAwait(false);
+ return response;
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+
+ ///
+ /// Customer can use this POST endpoint to trigger an action, where the UserRP/AzImpactRP service creates and returns a user-delegate SAS token for the storage account/container unique to the customer (identified by subscription ID).
+ ///
+ ///
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/providers/Microsoft.Impact/getUploadToken
+ ///
+ ///
+ /// Operation Id
+ /// UploadService_GetUploadToken
+ ///
+ ///
+ /// Default Api Version
+ /// 2025-02-01-preview
+ ///
+ ///
+ ///
+ /// The cancellation token to use.
+ public virtual Response GetUploadTokenUploadService(CancellationToken cancellationToken = default)
+ {
+ using var scope = UploadServiceClientDiagnostics.CreateScope("MockableImpactSubscriptionResource.GetUploadTokenUploadService");
+ scope.Start();
+ try
+ {
+ var response = UploadServiceRestClient.GetUploadToken(Id.SubscriptionId, cancellationToken);
+ return response;
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+ }
+}
diff --git a/sdk/impact/Azure.ResourceManager.Impact/src/Generated/ImpactCategoryCollection.cs b/sdk/impact/Azure.ResourceManager.Impact/src/Generated/ImpactCategoryCollection.cs
new file mode 100644
index 000000000000..6f119e98aada
--- /dev/null
+++ b/sdk/impact/Azure.ResourceManager.Impact/src/Generated/ImpactCategoryCollection.cs
@@ -0,0 +1,400 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.Collections;
+using System.Collections.Generic;
+using System.Globalization;
+using System.Threading;
+using System.Threading.Tasks;
+using Autorest.CSharp.Core;
+using Azure.Core;
+using Azure.Core.Pipeline;
+using Azure.ResourceManager.Resources;
+
+namespace Azure.ResourceManager.Impact
+{
+ ///
+ /// A class representing a collection of and their operations.
+ /// Each in the collection will belong to the same instance of .
+ /// To get an instance call the GetImpactCategories method from an instance of .
+ ///
+ public partial class ImpactCategoryCollection : ArmCollection, IEnumerable, IAsyncEnumerable
+ {
+ private readonly ClientDiagnostics _impactCategoryClientDiagnostics;
+ private readonly ImpactCategoriesRestOperations _impactCategoryRestClient;
+
+ /// Initializes a new instance of the class for mocking.
+ protected ImpactCategoryCollection()
+ {
+ }
+
+ /// 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 ImpactCategoryCollection(ArmClient client, ResourceIdentifier id) : base(client, id)
+ {
+ _impactCategoryClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.Impact", ImpactCategoryResource.ResourceType.Namespace, Diagnostics);
+ TryGetApiVersion(ImpactCategoryResource.ResourceType, out string impactCategoryApiVersion);
+ _impactCategoryRestClient = new ImpactCategoriesRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, impactCategoryApiVersion);
+#if DEBUG
+ ValidateResourceId(Id);
+#endif
+ }
+
+ internal static void ValidateResourceId(ResourceIdentifier id)
+ {
+ if (id.ResourceType != SubscriptionResource.ResourceType)
+ throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "Invalid resource type {0} expected {1}", id.ResourceType, SubscriptionResource.ResourceType), nameof(id));
+ }
+
+ ///
+ /// Get a ImpactCategory
+ ///
+ ///
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/providers/Microsoft.Impact/impactCategories/{impactCategoryName}
+ ///
+ ///
+ /// Operation Id
+ /// ImpactCategory_Get
+ ///
+ ///
+ /// Default Api Version
+ /// 2025-02-01-preview
+ ///
+ ///
+ /// Resource
+ ///
+ ///
+ ///
+ ///
+ /// Name of the impact category.
+ /// The cancellation token to use.
+ /// is an empty string, and was expected to be non-empty.
+ /// is null.
+ public virtual async Task> GetAsync(string impactCategoryName, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNullOrEmpty(impactCategoryName, nameof(impactCategoryName));
+
+ using var scope = _impactCategoryClientDiagnostics.CreateScope("ImpactCategoryCollection.Get");
+ scope.Start();
+ try
+ {
+ var response = await _impactCategoryRestClient.GetAsync(Id.SubscriptionId, impactCategoryName, cancellationToken).ConfigureAwait(false);
+ if (response.Value == null)
+ throw new RequestFailedException(response.GetRawResponse());
+ return Response.FromValue(new ImpactCategoryResource(Client, response.Value), response.GetRawResponse());
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+
+ ///
+ /// Get a ImpactCategory
+ ///
+ ///
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/providers/Microsoft.Impact/impactCategories/{impactCategoryName}
+ ///
+ ///
+ /// Operation Id
+ /// ImpactCategory_Get
+ ///
+ ///
+ /// Default Api Version
+ /// 2025-02-01-preview
+ ///
+ ///
+ /// Resource
+ ///
+ ///
+ ///
+ ///
+ /// Name of the impact category.
+ /// The cancellation token to use.
+ /// is an empty string, and was expected to be non-empty.
+ /// is null.
+ public virtual Response Get(string impactCategoryName, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNullOrEmpty(impactCategoryName, nameof(impactCategoryName));
+
+ using var scope = _impactCategoryClientDiagnostics.CreateScope("ImpactCategoryCollection.Get");
+ scope.Start();
+ try
+ {
+ var response = _impactCategoryRestClient.Get(Id.SubscriptionId, impactCategoryName, cancellationToken);
+ if (response.Value == null)
+ throw new RequestFailedException(response.GetRawResponse());
+ return Response.FromValue(new ImpactCategoryResource(Client, response.Value), response.GetRawResponse());
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+
+ ///
+ /// List ImpactCategory resources by subscription
+ ///
+ ///
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/providers/Microsoft.Impact/impactCategories
+ ///
+ ///
+ /// Operation Id
+ /// ImpactCategory_ListBySubscription
+ ///
+ ///
+ /// Default Api Version
+ /// 2025-02-01-preview
+ ///
+ ///
+ /// Resource
+ ///
+ ///
+ ///
+ ///
+ /// Filter by category name.
+ /// Filter by resource type.
+ /// The cancellation token to use.
+ /// An async collection of that may take multiple service requests to iterate over.
+ public virtual AsyncPageable GetAllAsync(string categoryName = null, string resourceType = null, CancellationToken cancellationToken = default)
+ {
+ HttpMessage FirstPageRequest(int? pageSizeHint) => _impactCategoryRestClient.CreateListBySubscriptionRequest(Id.SubscriptionId, categoryName, resourceType);
+ HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _impactCategoryRestClient.CreateListBySubscriptionNextPageRequest(nextLink, Id.SubscriptionId, categoryName, resourceType);
+ return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => new ImpactCategoryResource(Client, ImpactCategoryData.DeserializeImpactCategoryData(e)), _impactCategoryClientDiagnostics, Pipeline, "ImpactCategoryCollection.GetAll", "value", "nextLink", cancellationToken);
+ }
+
+ ///
+ /// List ImpactCategory resources by subscription
+ ///
+ ///
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/providers/Microsoft.Impact/impactCategories
+ ///
+ ///
+ /// Operation Id
+ /// ImpactCategory_ListBySubscription
+ ///
+ ///
+ /// Default Api Version
+ /// 2025-02-01-preview
+ ///
+ ///
+ /// Resource
+ ///
+ ///
+ ///
+ ///
+ /// Filter by category name.
+ /// Filter by resource type.
+ /// The cancellation token to use.
+ /// A collection of that may take multiple service requests to iterate over.
+ public virtual Pageable GetAll(string categoryName = null, string resourceType = null, CancellationToken cancellationToken = default)
+ {
+ HttpMessage FirstPageRequest(int? pageSizeHint) => _impactCategoryRestClient.CreateListBySubscriptionRequest(Id.SubscriptionId, categoryName, resourceType);
+ HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _impactCategoryRestClient.CreateListBySubscriptionNextPageRequest(nextLink, Id.SubscriptionId, categoryName, resourceType);
+ return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new ImpactCategoryResource(Client, ImpactCategoryData.DeserializeImpactCategoryData(e)), _impactCategoryClientDiagnostics, Pipeline, "ImpactCategoryCollection.GetAll", "value", "nextLink", cancellationToken);
+ }
+
+ ///
+ /// Checks to see if the resource exists in azure.
+ ///
+ ///
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/providers/Microsoft.Impact/impactCategories/{impactCategoryName}
+ ///
+ ///
+ /// Operation Id
+ /// ImpactCategory_Get
+ ///
+ ///
+ /// Default Api Version
+ /// 2025-02-01-preview
+ ///
+ ///
+ /// Resource
+ ///
+ ///
+ ///
+ ///
+ /// Name of the impact category.
+ /// The cancellation token to use.
+ /// is an empty string, and was expected to be non-empty.
+ /// is null.
+ public virtual async Task> ExistsAsync(string impactCategoryName, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNullOrEmpty(impactCategoryName, nameof(impactCategoryName));
+
+ using var scope = _impactCategoryClientDiagnostics.CreateScope("ImpactCategoryCollection.Exists");
+ scope.Start();
+ try
+ {
+ var response = await _impactCategoryRestClient.GetAsync(Id.SubscriptionId, impactCategoryName, 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}/providers/Microsoft.Impact/impactCategories/{impactCategoryName}
+ ///
+ ///
+ /// Operation Id
+ /// ImpactCategory_Get
+ ///
+ ///
+ /// Default Api Version
+ /// 2025-02-01-preview
+ ///
+ ///
+ /// Resource
+ ///
+ ///
+ ///
+ ///
+ /// Name of the impact category.
+ /// The cancellation token to use.
+ /// is an empty string, and was expected to be non-empty.
+ /// is null.
+ public virtual Response Exists(string impactCategoryName, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNullOrEmpty(impactCategoryName, nameof(impactCategoryName));
+
+ using var scope = _impactCategoryClientDiagnostics.CreateScope("ImpactCategoryCollection.Exists");
+ scope.Start();
+ try
+ {
+ var response = _impactCategoryRestClient.Get(Id.SubscriptionId, impactCategoryName, 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}/providers/Microsoft.Impact/impactCategories/{impactCategoryName}
+ ///
+ ///
+ /// Operation Id
+ /// ImpactCategory_Get
+ ///
+ ///
+ /// Default Api Version
+ /// 2025-02-01-preview
+ ///
+ ///
+ /// Resource
+ ///
+ ///
+ ///
+ ///
+ /// Name of the impact category.
+ /// The cancellation token to use.
+ /// is an empty string, and was expected to be non-empty.
+ /// is null.
+ public virtual async Task> GetIfExistsAsync(string impactCategoryName, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNullOrEmpty(impactCategoryName, nameof(impactCategoryName));
+
+ using var scope = _impactCategoryClientDiagnostics.CreateScope("ImpactCategoryCollection.GetIfExists");
+ scope.Start();
+ try
+ {
+ var response = await _impactCategoryRestClient.GetAsync(Id.SubscriptionId, impactCategoryName, cancellationToken: cancellationToken).ConfigureAwait(false);
+ if (response.Value == null)
+ return new NoValueResponse(response.GetRawResponse());
+ return Response.FromValue(new ImpactCategoryResource(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}/providers/Microsoft.Impact/impactCategories/{impactCategoryName}
+ ///
+ ///
+ /// Operation Id
+ /// ImpactCategory_Get
+ ///
+ ///
+ /// Default Api Version
+ /// 2025-02-01-preview
+ ///
+ ///
+ /// Resource
+ ///
+ ///
+ ///
+ ///
+ /// Name of the impact category.
+ /// The cancellation token to use.
+ /// is an empty string, and was expected to be non-empty.
+ /// is null.
+ public virtual NullableResponse GetIfExists(string impactCategoryName, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNullOrEmpty(impactCategoryName, nameof(impactCategoryName));
+
+ using var scope = _impactCategoryClientDiagnostics.CreateScope("ImpactCategoryCollection.GetIfExists");
+ scope.Start();
+ try
+ {
+ var response = _impactCategoryRestClient.Get(Id.SubscriptionId, impactCategoryName, cancellationToken: cancellationToken);
+ if (response.Value == null)
+ return new NoValueResponse(response.GetRawResponse());
+ return Response.FromValue(new ImpactCategoryResource(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/impact/Azure.ResourceManager.Impact/src/Generated/ImpactCategoryData.Serialization.cs b/sdk/impact/Azure.ResourceManager.Impact/src/Generated/ImpactCategoryData.Serialization.cs
new file mode 100644
index 000000000000..fd0a0fc166a5
--- /dev/null
+++ b/sdk/impact/Azure.ResourceManager.Impact/src/Generated/ImpactCategoryData.Serialization.cs
@@ -0,0 +1,155 @@
+// 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.Impact.Models;
+using Azure.ResourceManager.Models;
+
+namespace Azure.ResourceManager.Impact
+{
+ public partial class ImpactCategoryData : 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(ImpactCategoryData)} does not support writing '{format}' format.");
+ }
+
+ base.JsonModelWriteCore(writer, options);
+ if (Optional.IsDefined(Properties))
+ {
+ writer.WritePropertyName("properties"u8);
+ writer.WriteObjectValue(Properties, options);
+ }
+ }
+
+ ImpactCategoryData 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(ImpactCategoryData)} does not support reading '{format}' format.");
+ }
+
+ using JsonDocument document = JsonDocument.ParseValue(ref reader);
+ return DeserializeImpactCategoryData(document.RootElement, options);
+ }
+
+ internal static ImpactCategoryData DeserializeImpactCategoryData(JsonElement element, ModelReaderWriterOptions options = null)
+ {
+ options ??= ModelSerializationExtensions.WireOptions;
+
+ if (element.ValueKind == JsonValueKind.Null)
+ {
+ return null;
+ }
+ ImpactCategoryProperties properties = 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 = ImpactCategoryProperties.DeserializeImpactCategoryProperties(property.Value, options);
+ 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 ImpactCategoryData(
+ id,
+ name,
+ type,
+ systemData,
+ 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(ImpactCategoryData)} does not support writing '{options.Format}' format.");
+ }
+ }
+
+ ImpactCategoryData 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 DeserializeImpactCategoryData(document.RootElement, options);
+ }
+ default:
+ throw new FormatException($"The model {nameof(ImpactCategoryData)} does not support reading '{options.Format}' format.");
+ }
+ }
+
+ string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J";
+ }
+}
diff --git a/sdk/impact/Azure.ResourceManager.Impact/src/Generated/ImpactCategoryData.cs b/sdk/impact/Azure.ResourceManager.Impact/src/Generated/ImpactCategoryData.cs
new file mode 100644
index 000000000000..4aa994ebe861
--- /dev/null
+++ b/sdk/impact/Azure.ResourceManager.Impact/src/Generated/ImpactCategoryData.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;
+using Azure.Core;
+using Azure.ResourceManager.Impact.Models;
+using Azure.ResourceManager.Models;
+
+namespace Azure.ResourceManager.Impact
+{
+ ///
+ /// A class representing the ImpactCategory data model.
+ /// ImpactCategory resource
+ ///
+ public partial class ImpactCategoryData : 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 .
+ internal ImpactCategoryData()
+ {
+ }
+
+ /// Initializes a new instance of .
+ /// The id.
+ /// The name.
+ /// The resourceType.
+ /// The systemData.
+ /// The resource-specific properties for this resource.
+ /// Keeps track of any properties unknown to the library.
+ internal ImpactCategoryData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, ImpactCategoryProperties properties, IDictionary serializedAdditionalRawData) : base(id, name, resourceType, systemData)
+ {
+ Properties = properties;
+ _serializedAdditionalRawData = serializedAdditionalRawData;
+ }
+
+ /// The resource-specific properties for this resource.
+ public ImpactCategoryProperties Properties { get; }
+ }
+}
diff --git a/sdk/impact/Azure.ResourceManager.Impact/src/Generated/ImpactCategoryResource.Serialization.cs b/sdk/impact/Azure.ResourceManager.Impact/src/Generated/ImpactCategoryResource.Serialization.cs
new file mode 100644
index 000000000000..e0702dae041a
--- /dev/null
+++ b/sdk/impact/Azure.ResourceManager.Impact/src/Generated/ImpactCategoryResource.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.Impact
+{
+ public partial class ImpactCategoryResource : IJsonModel
+ {
+ void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) => ((IJsonModel)Data).Write(writer, options);
+
+ ImpactCategoryData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => ((IJsonModel)Data).Create(ref reader, options);
+
+ BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) => ModelReaderWriter.Write(Data, options);
+
+ ImpactCategoryData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => ModelReaderWriter.Read(data, options);
+
+ string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => ((IPersistableModel)Data).GetFormatFromOptions(options);
+ }
+}
diff --git a/sdk/impact/Azure.ResourceManager.Impact/src/Generated/ImpactCategoryResource.cs b/sdk/impact/Azure.ResourceManager.Impact/src/Generated/ImpactCategoryResource.cs
new file mode 100644
index 000000000000..0692f0b3e608
--- /dev/null
+++ b/sdk/impact/Azure.ResourceManager.Impact/src/Generated/ImpactCategoryResource.cs
@@ -0,0 +1,170 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.Globalization;
+using System.Threading;
+using System.Threading.Tasks;
+using Azure.Core;
+using Azure.Core.Pipeline;
+using Azure.ResourceManager.Resources;
+
+namespace Azure.ResourceManager.Impact
+{
+ ///
+ /// A Class representing an ImpactCategory along with the instance operations that can be performed on it.
+ /// If you have a you can construct an
+ /// from an instance of using the GetImpactCategoryResource method.
+ /// Otherwise you can get one from its parent resource using the GetImpactCategory method.
+ ///
+ public partial class ImpactCategoryResource : ArmResource
+ {
+ /// Generate the resource identifier of a instance.
+ /// The subscriptionId.
+ /// The impactCategoryName.
+ public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string impactCategoryName)
+ {
+ var resourceId = $"/subscriptions/{subscriptionId}/providers/Microsoft.Impact/impactCategories/{impactCategoryName}";
+ return new ResourceIdentifier(resourceId);
+ }
+
+ private readonly ClientDiagnostics _impactCategoryClientDiagnostics;
+ private readonly ImpactCategoriesRestOperations _impactCategoryRestClient;
+ private readonly ImpactCategoryData _data;
+
+ /// Gets the resource type for the operations.
+ public static readonly ResourceType ResourceType = "Microsoft.Impact/impactCategories";
+
+ /// Initializes a new instance of the class for mocking.
+ protected ImpactCategoryResource()
+ {
+ }
+
+ /// Initializes a new instance of the class.
+ /// The client parameters to use in these operations.
+ /// The resource that is the target of operations.
+ internal ImpactCategoryResource(ArmClient client, ImpactCategoryData 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 ImpactCategoryResource(ArmClient client, ResourceIdentifier id) : base(client, id)
+ {
+ _impactCategoryClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.Impact", ResourceType.Namespace, Diagnostics);
+ TryGetApiVersion(ResourceType, out string impactCategoryApiVersion);
+ _impactCategoryRestClient = new ImpactCategoriesRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, impactCategoryApiVersion);
+#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 ImpactCategoryData 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));
+ }
+
+ ///
+ /// Get a ImpactCategory
+ ///
+ ///
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/providers/Microsoft.Impact/impactCategories/{impactCategoryName}
+ ///
+ ///
+ /// Operation Id
+ /// ImpactCategory_Get
+ ///
+ ///
+ /// Default Api Version
+ /// 2025-02-01-preview
+ ///
+ ///
+ /// Resource
+ ///
+ ///
+ ///
+ ///
+ /// The cancellation token to use.
+ public virtual async Task> GetAsync(CancellationToken cancellationToken = default)
+ {
+ using var scope = _impactCategoryClientDiagnostics.CreateScope("ImpactCategoryResource.Get");
+ scope.Start();
+ try
+ {
+ var response = await _impactCategoryRestClient.GetAsync(Id.SubscriptionId, Id.Name, cancellationToken).ConfigureAwait(false);
+ if (response.Value == null)
+ throw new RequestFailedException(response.GetRawResponse());
+ return Response.FromValue(new ImpactCategoryResource(Client, response.Value), response.GetRawResponse());
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+
+ ///
+ /// Get a ImpactCategory
+ ///
+ ///
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/providers/Microsoft.Impact/impactCategories/{impactCategoryName}
+ ///
+ ///
+ /// Operation Id
+ /// ImpactCategory_Get
+ ///
+ ///
+ /// Default Api Version
+ /// 2025-02-01-preview
+ ///
+ ///
+ /// Resource
+ ///
+ ///
+ ///
+ ///
+ /// The cancellation token to use.
+ public virtual Response Get(CancellationToken cancellationToken = default)
+ {
+ using var scope = _impactCategoryClientDiagnostics.CreateScope("ImpactCategoryResource.Get");
+ scope.Start();
+ try
+ {
+ var response = _impactCategoryRestClient.Get(Id.SubscriptionId, Id.Name, cancellationToken);
+ if (response.Value == null)
+ throw new RequestFailedException(response.GetRawResponse());
+ return Response.FromValue(new ImpactCategoryResource(Client, response.Value), response.GetRawResponse());
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+ }
+}
diff --git a/sdk/impact/Azure.ResourceManager.Impact/src/Generated/InsightCollection.cs b/sdk/impact/Azure.ResourceManager.Impact/src/Generated/InsightCollection.cs
new file mode 100644
index 000000000000..e54fbf189791
--- /dev/null
+++ b/sdk/impact/Azure.ResourceManager.Impact/src/Generated/InsightCollection.cs
@@ -0,0 +1,497 @@
+// 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.Impact
+{
+ ///
+ /// A class representing a collection of and their operations.
+ /// Each in the collection will belong to the same instance of .
+ /// To get an instance call the GetInsights method from an instance of .
+ ///
+ public partial class InsightCollection : ArmCollection, IEnumerable, IAsyncEnumerable
+ {
+ private readonly ClientDiagnostics _insightClientDiagnostics;
+ private readonly InsightsRestOperations _insightRestClient;
+
+ /// Initializes a new instance of the class for mocking.
+ protected InsightCollection()
+ {
+ }
+
+ /// 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 InsightCollection(ArmClient client, ResourceIdentifier id) : base(client, id)
+ {
+ _insightClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.Impact", InsightResource.ResourceType.Namespace, Diagnostics);
+ TryGetApiVersion(InsightResource.ResourceType, out string insightApiVersion);
+ _insightRestClient = new InsightsRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, insightApiVersion);
+#if DEBUG
+ ValidateResourceId(Id);
+#endif
+ }
+
+ internal static void ValidateResourceId(ResourceIdentifier id)
+ {
+ if (id.ResourceType != WorkloadImpactResource.ResourceType)
+ throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "Invalid resource type {0} expected {1}", id.ResourceType, WorkloadImpactResource.ResourceType), nameof(id));
+ }
+
+ ///
+ /// Create Insight resource, This is Admin only operation
+ ///
+ ///
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/providers/Microsoft.Impact/workloadImpacts/{workloadImpactName}/insights/{insightName}
+ ///
+ ///
+ /// Operation Id
+ /// Insight_Create
+ ///
+ ///
+ /// Default Api Version
+ /// 2025-02-01-preview
+ ///
+ ///
+ /// 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.
+ /// Name of the insight.
+ /// Resource create parameters.
+ /// The cancellation token to use.
+ /// is an empty string, and was expected to be non-empty.
+ /// or is null.
+ public virtual async Task> CreateOrUpdateAsync(WaitUntil waitUntil, string insightName, InsightData data, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNullOrEmpty(insightName, nameof(insightName));
+ Argument.AssertNotNull(data, nameof(data));
+
+ using var scope = _insightClientDiagnostics.CreateScope("InsightCollection.CreateOrUpdate");
+ scope.Start();
+ try
+ {
+ var response = await _insightRestClient.CreateAsync(Id.SubscriptionId, Id.Name, insightName, data, cancellationToken).ConfigureAwait(false);
+ var uri = _insightRestClient.CreateCreateRequestUri(Id.SubscriptionId, Id.Name, insightName, data);
+ var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), "None", null, OperationFinalStateVia.OriginalUri.ToString());
+ var operation = new ImpactArmOperation(Response.FromValue(new InsightResource(Client, response), response.GetRawResponse()), rehydrationToken);
+ if (waitUntil == WaitUntil.Completed)
+ await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false);
+ return operation;
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+
+ ///
+ /// Create Insight resource, This is Admin only operation
+ ///
+ ///
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/providers/Microsoft.Impact/workloadImpacts/{workloadImpactName}/insights/{insightName}
+ ///
+ ///
+ /// Operation Id
+ /// Insight_Create
+ ///
+ ///
+ /// Default Api Version
+ /// 2025-02-01-preview
+ ///
+ ///
+ /// 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.
+ /// Name of the insight.
+ /// Resource create parameters.
+ /// The cancellation token to use.
+ /// is an empty string, and was expected to be non-empty.
+ /// or is null.
+ public virtual ArmOperation CreateOrUpdate(WaitUntil waitUntil, string insightName, InsightData data, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNullOrEmpty(insightName, nameof(insightName));
+ Argument.AssertNotNull(data, nameof(data));
+
+ using var scope = _insightClientDiagnostics.CreateScope("InsightCollection.CreateOrUpdate");
+ scope.Start();
+ try
+ {
+ var response = _insightRestClient.Create(Id.SubscriptionId, Id.Name, insightName, data, cancellationToken);
+ var uri = _insightRestClient.CreateCreateRequestUri(Id.SubscriptionId, Id.Name, insightName, data);
+ var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), "None", null, OperationFinalStateVia.OriginalUri.ToString());
+ var operation = new ImpactArmOperation(Response.FromValue(new InsightResource(Client, response), response.GetRawResponse()), rehydrationToken);
+ if (waitUntil == WaitUntil.Completed)
+ operation.WaitForCompletion(cancellationToken);
+ return operation;
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+
+ ///
+ /// Get Insight resources by workloadImpactName and insightName
+ ///
+ ///
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/providers/Microsoft.Impact/workloadImpacts/{workloadImpactName}/insights/{insightName}
+ ///
+ ///
+ /// Operation Id
+ /// Insight_Get
+ ///
+ ///
+ /// Default Api Version
+ /// 2025-02-01-preview
+ ///
+ ///
+ /// Resource
+ ///
+ ///
+ ///
+ ///
+ /// Name of the insight.
+ /// The cancellation token to use.
+ /// is an empty string, and was expected to be non-empty.
+ /// is null.
+ public virtual async Task> GetAsync(string insightName, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNullOrEmpty(insightName, nameof(insightName));
+
+ using var scope = _insightClientDiagnostics.CreateScope("InsightCollection.Get");
+ scope.Start();
+ try
+ {
+ var response = await _insightRestClient.GetAsync(Id.SubscriptionId, Id.Name, insightName, cancellationToken).ConfigureAwait(false);
+ if (response.Value == null)
+ throw new RequestFailedException(response.GetRawResponse());
+ return Response.FromValue(new InsightResource(Client, response.Value), response.GetRawResponse());
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+
+ ///
+ /// Get Insight resources by workloadImpactName and insightName
+ ///
+ ///
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/providers/Microsoft.Impact/workloadImpacts/{workloadImpactName}/insights/{insightName}
+ ///
+ ///
+ /// Operation Id
+ /// Insight_Get
+ ///
+ ///
+ /// Default Api Version
+ /// 2025-02-01-preview
+ ///
+ ///
+ /// Resource
+ ///
+ ///
+ ///
+ ///
+ /// Name of the insight.
+ /// The cancellation token to use.
+ /// is an empty string, and was expected to be non-empty.
+ /// is null.
+ public virtual Response Get(string insightName, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNullOrEmpty(insightName, nameof(insightName));
+
+ using var scope = _insightClientDiagnostics.CreateScope("InsightCollection.Get");
+ scope.Start();
+ try
+ {
+ var response = _insightRestClient.Get(Id.SubscriptionId, Id.Name, insightName, cancellationToken);
+ if (response.Value == null)
+ throw new RequestFailedException(response.GetRawResponse());
+ return Response.FromValue(new InsightResource(Client, response.Value), response.GetRawResponse());
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+
+ ///
+ /// List Insight resources by workloadImpactName
+ ///
+ ///
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/providers/Microsoft.Impact/workloadImpacts/{workloadImpactName}/insights
+ ///
+ ///
+ /// Operation Id
+ /// Insight_ListBySubscription
+ ///
+ ///
+ /// Default Api Version
+ /// 2025-02-01-preview
+ ///
+ ///
+ /// 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) => _insightRestClient.CreateListBySubscriptionRequest(Id.SubscriptionId, Id.Name);
+ HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _insightRestClient.CreateListBySubscriptionNextPageRequest(nextLink, Id.SubscriptionId, Id.Name);
+ return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => new InsightResource(Client, InsightData.DeserializeInsightData(e)), _insightClientDiagnostics, Pipeline, "InsightCollection.GetAll", "value", "nextLink", cancellationToken);
+ }
+
+ ///
+ /// List Insight resources by workloadImpactName
+ ///
+ ///
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/providers/Microsoft.Impact/workloadImpacts/{workloadImpactName}/insights
+ ///
+ ///
+ /// Operation Id
+ /// Insight_ListBySubscription
+ ///
+ ///
+ /// Default Api Version
+ /// 2025-02-01-preview
+ ///
+ ///
+ /// 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) => _insightRestClient.CreateListBySubscriptionRequest(Id.SubscriptionId, Id.Name);
+ HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _insightRestClient.CreateListBySubscriptionNextPageRequest(nextLink, Id.SubscriptionId, Id.Name);
+ return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new InsightResource(Client, InsightData.DeserializeInsightData(e)), _insightClientDiagnostics, Pipeline, "InsightCollection.GetAll", "value", "nextLink", cancellationToken);
+ }
+
+ ///
+ /// Checks to see if the resource exists in azure.
+ ///
+ ///
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/providers/Microsoft.Impact/workloadImpacts/{workloadImpactName}/insights/{insightName}
+ ///
+ ///
+ /// Operation Id
+ /// Insight_Get
+ ///
+ ///
+ /// Default Api Version
+ /// 2025-02-01-preview
+ ///
+ ///
+ /// Resource
+ ///
+ ///
+ ///
+ ///
+ /// Name of the insight.
+ /// The cancellation token to use.
+ /// is an empty string, and was expected to be non-empty.
+ /// is null.
+ public virtual async Task> ExistsAsync(string insightName, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNullOrEmpty(insightName, nameof(insightName));
+
+ using var scope = _insightClientDiagnostics.CreateScope("InsightCollection.Exists");
+ scope.Start();
+ try
+ {
+ var response = await _insightRestClient.GetAsync(Id.SubscriptionId, Id.Name, insightName, 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}/providers/Microsoft.Impact/workloadImpacts/{workloadImpactName}/insights/{insightName}
+ ///
+ ///
+ /// Operation Id
+ /// Insight_Get
+ ///
+ ///
+ /// Default Api Version
+ /// 2025-02-01-preview
+ ///
+ ///
+ /// Resource
+ ///
+ ///
+ ///
+ ///
+ /// Name of the insight.
+ /// The cancellation token to use.
+ /// is an empty string, and was expected to be non-empty.
+ /// is null.
+ public virtual Response Exists(string insightName, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNullOrEmpty(insightName, nameof(insightName));
+
+ using var scope = _insightClientDiagnostics.CreateScope("InsightCollection.Exists");
+ scope.Start();
+ try
+ {
+ var response = _insightRestClient.Get(Id.SubscriptionId, Id.Name, insightName, 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}/providers/Microsoft.Impact/workloadImpacts/{workloadImpactName}/insights/{insightName}
+ ///
+ ///
+ /// Operation Id
+ /// Insight_Get
+ ///
+ ///
+ /// Default Api Version
+ /// 2025-02-01-preview
+ ///
+ ///
+ /// Resource
+ ///
+ ///
+ ///
+ ///
+ /// Name of the insight.
+ /// The cancellation token to use.
+ /// is an empty string, and was expected to be non-empty.
+ /// is null.
+ public virtual async Task> GetIfExistsAsync(string insightName, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNullOrEmpty(insightName, nameof(insightName));
+
+ using var scope = _insightClientDiagnostics.CreateScope("InsightCollection.GetIfExists");
+ scope.Start();
+ try
+ {
+ var response = await _insightRestClient.GetAsync(Id.SubscriptionId, Id.Name, insightName, cancellationToken: cancellationToken).ConfigureAwait(false);
+ if (response.Value == null)
+ return new NoValueResponse(response.GetRawResponse());
+ return Response.FromValue(new InsightResource(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}/providers/Microsoft.Impact/workloadImpacts/{workloadImpactName}/insights/{insightName}
+ ///
+ ///
+ /// Operation Id
+ /// Insight_Get
+ ///
+ ///
+ /// Default Api Version
+ /// 2025-02-01-preview
+ ///
+ ///
+ /// Resource
+ ///
+ ///
+ ///
+ ///
+ /// Name of the insight.
+ /// The cancellation token to use.
+ /// is an empty string, and was expected to be non-empty.
+ /// is null.
+ public virtual NullableResponse GetIfExists(string insightName, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNullOrEmpty(insightName, nameof(insightName));
+
+ using var scope = _insightClientDiagnostics.CreateScope("InsightCollection.GetIfExists");
+ scope.Start();
+ try
+ {
+ var response = _insightRestClient.Get(Id.SubscriptionId, Id.Name, insightName, cancellationToken: cancellationToken);
+ if (response.Value == null)
+ return new NoValueResponse(response.GetRawResponse());
+ return Response.FromValue(new InsightResource(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/impact/Azure.ResourceManager.Impact/src/Generated/InsightData.Serialization.cs b/sdk/impact/Azure.ResourceManager.Impact/src/Generated/InsightData.Serialization.cs
new file mode 100644
index 000000000000..f4d1d161cc6b
--- /dev/null
+++ b/sdk/impact/Azure.ResourceManager.Impact/src/Generated/InsightData.Serialization.cs
@@ -0,0 +1,155 @@
+// 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.Impact.Models;
+using Azure.ResourceManager.Models;
+
+namespace Azure.ResourceManager.Impact
+{
+ public partial class InsightData : 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(InsightData)} does not support writing '{format}' format.");
+ }
+
+ base.JsonModelWriteCore(writer, options);
+ if (Optional.IsDefined(Properties))
+ {
+ writer.WritePropertyName("properties"u8);
+ writer.WriteObjectValue(Properties, options);
+ }
+ }
+
+ InsightData 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(InsightData)} does not support reading '{format}' format.");
+ }
+
+ using JsonDocument document = JsonDocument.ParseValue(ref reader);
+ return DeserializeInsightData(document.RootElement, options);
+ }
+
+ internal static InsightData DeserializeInsightData(JsonElement element, ModelReaderWriterOptions options = null)
+ {
+ options ??= ModelSerializationExtensions.WireOptions;
+
+ if (element.ValueKind == JsonValueKind.Null)
+ {
+ return null;
+ }
+ InsightProperties properties = 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 = InsightProperties.DeserializeInsightProperties(property.Value, options);
+ 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 InsightData(
+ id,
+ name,
+ type,
+ systemData,
+ 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(InsightData)} does not support writing '{options.Format}' format.");
+ }
+ }
+
+ InsightData 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 DeserializeInsightData(document.RootElement, options);
+ }
+ default:
+ throw new FormatException($"The model {nameof(InsightData)} does not support reading '{options.Format}' format.");
+ }
+ }
+
+ string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J";
+ }
+}
diff --git a/sdk/impact/Azure.ResourceManager.Impact/src/Generated/InsightData.cs b/sdk/impact/Azure.ResourceManager.Impact/src/Generated/InsightData.cs
new file mode 100644
index 000000000000..2673af771de8
--- /dev/null
+++ b/sdk/impact/Azure.ResourceManager.Impact/src/Generated/InsightData.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;
+using Azure.Core;
+using Azure.ResourceManager.Impact.Models;
+using Azure.ResourceManager.Models;
+
+namespace Azure.ResourceManager.Impact
+{
+ ///
+ /// A class representing the Insight data model.
+ /// Insight resource
+ ///
+ public partial class InsightData : 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 InsightData()
+ {
+ }
+
+ /// Initializes a new instance of .
+ /// The id.
+ /// The name.
+ /// The resourceType.
+ /// The systemData.
+ /// The resource-specific properties for this resource.
+ /// Keeps track of any properties unknown to the library.
+ internal InsightData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, InsightProperties properties, IDictionary serializedAdditionalRawData) : base(id, name, resourceType, systemData)
+ {
+ Properties = properties;
+ _serializedAdditionalRawData = serializedAdditionalRawData;
+ }
+
+ /// The resource-specific properties for this resource.
+ public InsightProperties Properties { get; set; }
+ }
+}
diff --git a/sdk/impact/Azure.ResourceManager.Impact/src/Generated/InsightResource.Serialization.cs b/sdk/impact/Azure.ResourceManager.Impact/src/Generated/InsightResource.Serialization.cs
new file mode 100644
index 000000000000..85b523c0e1c6
--- /dev/null
+++ b/sdk/impact/Azure.ResourceManager.Impact/src/Generated/InsightResource.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.Impact
+{
+ public partial class InsightResource : IJsonModel
+ {
+ void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) => ((IJsonModel)Data).Write(writer, options);
+
+ InsightData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => ((IJsonModel)Data).Create(ref reader, options);
+
+ BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) => ModelReaderWriter.Write(Data, options);
+
+ InsightData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => ModelReaderWriter.Read(data, options);
+
+ string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => ((IPersistableModel)Data).GetFormatFromOptions(options);
+ }
+}
diff --git a/sdk/impact/Azure.ResourceManager.Impact/src/Generated/InsightResource.cs b/sdk/impact/Azure.ResourceManager.Impact/src/Generated/InsightResource.cs
new file mode 100644
index 000000000000..cab7fac82e5d
--- /dev/null
+++ b/sdk/impact/Azure.ResourceManager.Impact/src/Generated/InsightResource.cs
@@ -0,0 +1,354 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.Globalization;
+using System.Threading;
+using System.Threading.Tasks;
+using Azure.Core;
+using Azure.Core.Pipeline;
+
+namespace Azure.ResourceManager.Impact
+{
+ ///
+ /// A Class representing an Insight along with the instance operations that can be performed on it.
+ /// If you have a you can construct an
+ /// from an instance of using the GetInsightResource method.
+ /// Otherwise you can get one from its parent resource using the GetInsight method.
+ ///
+ public partial class InsightResource : ArmResource
+ {
+ /// Generate the resource identifier of a instance.
+ /// The subscriptionId.
+ /// The workloadImpactName.
+ /// The insightName.
+ public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string workloadImpactName, string insightName)
+ {
+ var resourceId = $"/subscriptions/{subscriptionId}/providers/Microsoft.Impact/workloadImpacts/{workloadImpactName}/insights/{insightName}";
+ return new ResourceIdentifier(resourceId);
+ }
+
+ private readonly ClientDiagnostics _insightClientDiagnostics;
+ private readonly InsightsRestOperations _insightRestClient;
+ private readonly InsightData _data;
+
+ /// Gets the resource type for the operations.
+ public static readonly ResourceType ResourceType = "Microsoft.Impact/workloadImpacts/insights";
+
+ /// Initializes a new instance of the class for mocking.
+ protected InsightResource()
+ {
+ }
+
+ /// Initializes a new instance of the class.
+ /// The client parameters to use in these operations.
+ /// The resource that is the target of operations.
+ internal InsightResource(ArmClient client, InsightData 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 InsightResource(ArmClient client, ResourceIdentifier id) : base(client, id)
+ {
+ _insightClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.Impact", ResourceType.Namespace, Diagnostics);
+ TryGetApiVersion(ResourceType, out string insightApiVersion);
+ _insightRestClient = new InsightsRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, insightApiVersion);
+#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 InsightData 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));
+ }
+
+ ///
+ /// Get Insight resources by workloadImpactName and insightName
+ ///
+ ///
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/providers/Microsoft.Impact/workloadImpacts/{workloadImpactName}/insights/{insightName}
+ ///
+ ///
+ /// Operation Id
+ /// Insight_Get
+ ///
+ ///
+ /// Default Api Version
+ /// 2025-02-01-preview
+ ///
+ ///
+ /// Resource
+ ///
+ ///
+ ///
+ ///
+ /// The cancellation token to use.
+ public virtual async Task> GetAsync(CancellationToken cancellationToken = default)
+ {
+ using var scope = _insightClientDiagnostics.CreateScope("InsightResource.Get");
+ scope.Start();
+ try
+ {
+ var response = await _insightRestClient.GetAsync(Id.SubscriptionId, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false);
+ if (response.Value == null)
+ throw new RequestFailedException(response.GetRawResponse());
+ return Response.FromValue(new InsightResource(Client, response.Value), response.GetRawResponse());
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+
+ ///
+ /// Get Insight resources by workloadImpactName and insightName
+ ///
+ ///
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/providers/Microsoft.Impact/workloadImpacts/{workloadImpactName}/insights/{insightName}
+ ///
+ ///
+ /// Operation Id
+ /// Insight_Get
+ ///
+ ///
+ /// Default Api Version
+ /// 2025-02-01-preview
+ ///
+ ///
+ /// Resource
+ ///
+ ///
+ ///
+ ///
+ /// The cancellation token to use.
+ public virtual Response Get(CancellationToken cancellationToken = default)
+ {
+ using var scope = _insightClientDiagnostics.CreateScope("InsightResource.Get");
+ scope.Start();
+ try
+ {
+ var response = _insightRestClient.Get(Id.SubscriptionId, Id.Parent.Name, Id.Name, cancellationToken);
+ if (response.Value == null)
+ throw new RequestFailedException(response.GetRawResponse());
+ return Response.FromValue(new InsightResource(Client, response.Value), response.GetRawResponse());
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+
+ ///
+ /// Delete Insight resource, This is Admin only operation
+ ///
+ ///
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/providers/Microsoft.Impact/workloadImpacts/{workloadImpactName}/insights/{insightName}
+ ///
+ ///
+ /// Operation Id
+ /// Insight_Delete
+ ///
+ ///
+ /// Default Api Version
+ /// 2025-02-01-preview
+ ///
+ ///
+ /// 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 = _insightClientDiagnostics.CreateScope("InsightResource.Delete");
+ scope.Start();
+ try
+ {
+ var response = await _insightRestClient.DeleteAsync(Id.SubscriptionId, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false);
+ var uri = _insightRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.Parent.Name, Id.Name);
+ var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), "None", null, OperationFinalStateVia.OriginalUri.ToString());
+ var operation = new ImpactArmOperation(response, rehydrationToken);
+ if (waitUntil == WaitUntil.Completed)
+ await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false);
+ return operation;
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+
+ ///
+ /// Delete Insight resource, This is Admin only operation
+ ///
+ ///
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/providers/Microsoft.Impact/workloadImpacts/{workloadImpactName}/insights/{insightName}
+ ///
+ ///
+ /// Operation Id
+ /// Insight_Delete
+ ///
+ ///
+ /// Default Api Version
+ /// 2025-02-01-preview
+ ///
+ ///
+ /// 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 = _insightClientDiagnostics.CreateScope("InsightResource.Delete");
+ scope.Start();
+ try
+ {
+ var response = _insightRestClient.Delete(Id.SubscriptionId, Id.Parent.Name, Id.Name, cancellationToken);
+ var uri = _insightRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.Parent.Name, Id.Name);
+ var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), "None", null, OperationFinalStateVia.OriginalUri.ToString());
+ var operation = new ImpactArmOperation(response, rehydrationToken);
+ if (waitUntil == WaitUntil.Completed)
+ operation.WaitForCompletionResponse(cancellationToken);
+ return operation;
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+
+ ///
+ /// Create Insight resource, This is Admin only operation
+ ///
+ ///
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/providers/Microsoft.Impact/workloadImpacts/{workloadImpactName}/insights/{insightName}
+ ///
+ ///
+ /// Operation Id
+ /// Insight_Create
+ ///
+ ///
+ /// Default Api Version
+ /// 2025-02-01-preview
+ ///
+ ///
+ /// 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.
+ /// Resource create parameters.
+ /// The cancellation token to use.
+ /// is null.
+ public virtual async Task> UpdateAsync(WaitUntil waitUntil, InsightData data, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNull(data, nameof(data));
+
+ using var scope = _insightClientDiagnostics.CreateScope("InsightResource.Update");
+ scope.Start();
+ try
+ {
+ var response = await _insightRestClient.CreateAsync(Id.SubscriptionId, Id.Parent.Name, Id.Name, data, cancellationToken).ConfigureAwait(false);
+ var uri = _insightRestClient.CreateCreateRequestUri(Id.SubscriptionId, Id.Parent.Name, Id.Name, data);
+ var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), "None", null, OperationFinalStateVia.OriginalUri.ToString());
+ var operation = new ImpactArmOperation(Response.FromValue(new InsightResource(Client, response), response.GetRawResponse()), rehydrationToken);
+ if (waitUntil == WaitUntil.Completed)
+ await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false);
+ return operation;
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+
+ ///
+ /// Create Insight resource, This is Admin only operation
+ ///
+ ///
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/providers/Microsoft.Impact/workloadImpacts/{workloadImpactName}/insights/{insightName}
+ ///
+ ///
+ /// Operation Id
+ /// Insight_Create
+ ///
+ ///
+ /// Default Api Version
+ /// 2025-02-01-preview
+ ///
+ ///
+ /// 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.
+ /// Resource create parameters.
+ /// The cancellation token to use.
+ /// is null.
+ public virtual ArmOperation Update(WaitUntil waitUntil, InsightData data, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNull(data, nameof(data));
+
+ using var scope = _insightClientDiagnostics.CreateScope("InsightResource.Update");
+ scope.Start();
+ try
+ {
+ var response = _insightRestClient.Create(Id.SubscriptionId, Id.Parent.Name, Id.Name, data, cancellationToken);
+ var uri = _insightRestClient.CreateCreateRequestUri(Id.SubscriptionId, Id.Parent.Name, Id.Name, data);
+ var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), "None", null, OperationFinalStateVia.OriginalUri.ToString());
+ var operation = new ImpactArmOperation(Response.FromValue(new InsightResource(Client, response), response.GetRawResponse()), rehydrationToken);
+ if (waitUntil == WaitUntil.Completed)
+ operation.WaitForCompletion(cancellationToken);
+ return operation;
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+ }
+}
diff --git a/sdk/impact/Azure.ResourceManager.Impact/src/Generated/Internal/Argument.cs b/sdk/impact/Azure.ResourceManager.Impact/src/Generated/Internal/Argument.cs
new file mode 100644
index 000000000000..13f9c5410ea1
--- /dev/null
+++ b/sdk/impact/Azure.ResourceManager.Impact/src/Generated/Internal/Argument.cs
@@ -0,0 +1,129 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.Collections;
+using System.Collections.Generic;
+
+namespace Azure.ResourceManager.Impact
+{
+ internal static class Argument
+ {
+ public static void AssertNotNull(T value, string name)
+ {
+ if (value is null)
+ {
+ throw new ArgumentNullException(name);
+ }
+ }
+
+ public static void AssertNotNull(T? value, string name)
+ where T : struct
+ {
+ if (!value.HasValue)
+ {
+ throw new ArgumentNullException(name);
+ }
+ }
+
+ public static void AssertNotNullOrEmpty(IEnumerable value, string name)
+ {
+ if (value is null)
+ {
+ throw new ArgumentNullException(name);
+ }
+ if (value is ICollection collectionOfT && collectionOfT.Count == 0)
+ {
+ throw new ArgumentException("Value cannot be an empty collection.", name);
+ }
+ if (value is ICollection collection && collection.Count == 0)
+ {
+ throw new ArgumentException("Value cannot be an empty collection.", name);
+ }
+ using IEnumerator e = value.GetEnumerator();
+ if (!e.MoveNext())
+ {
+ throw new ArgumentException("Value cannot be an empty collection.", name);
+ }
+ }
+
+ public static void AssertNotNullOrEmpty(string value, string name)
+ {
+ if (value is null)
+ {
+ throw new ArgumentNullException(name);
+ }
+ if (value.Length == 0)
+ {
+ throw new ArgumentException("Value cannot be an empty string.", name);
+ }
+ }
+
+ public static void AssertNotNullOrWhiteSpace(string value, string name)
+ {
+ if (value is null)
+ {
+ throw new ArgumentNullException(name);
+ }
+ if (string.IsNullOrWhiteSpace(value))
+ {
+ throw new ArgumentException("Value cannot be empty or contain only white-space characters.", name);
+ }
+ }
+
+ public static void AssertNotDefault(ref T value, string name)
+ where T : struct, IEquatable
+ {
+ if (value.Equals(default))
+ {
+ throw new ArgumentException("Value cannot be empty.", name);
+ }
+ }
+
+ public static void AssertInRange(T value, T minimum, T maximum, string name)
+ where T : notnull, IComparable
+ {
+ if (minimum.CompareTo(value) > 0)
+ {
+ throw new ArgumentOutOfRangeException(name, "Value is less than the minimum allowed.");
+ }
+ if (maximum.CompareTo(value) < 0)
+ {
+ throw new ArgumentOutOfRangeException(name, "Value is greater than the maximum allowed.");
+ }
+ }
+
+ public static void AssertEnumDefined(Type enumType, object value, string name)
+ {
+ if (!Enum.IsDefined(enumType, value))
+ {
+ throw new ArgumentException($"Value not defined for {enumType.FullName}.", name);
+ }
+ }
+
+ public static T CheckNotNull(T value, string name)
+ where T : class
+ {
+ AssertNotNull(value, name);
+ return value;
+ }
+
+ public static string CheckNotNullOrEmpty(string value, string name)
+ {
+ AssertNotNullOrEmpty(value, name);
+ return value;
+ }
+
+ public static void AssertNull(T value, string name, string message = null)
+ {
+ if (value != null)
+ {
+ throw new ArgumentException(message ?? "Value must be null.", name);
+ }
+ }
+ }
+}
diff --git a/sdk/impact/Azure.ResourceManager.Impact/src/Generated/Internal/ChangeTrackingDictionary.cs b/sdk/impact/Azure.ResourceManager.Impact/src/Generated/Internal/ChangeTrackingDictionary.cs
new file mode 100644
index 000000000000..e39ce81e8330
--- /dev/null
+++ b/sdk/impact/Azure.ResourceManager.Impact/src/Generated/Internal/ChangeTrackingDictionary.cs
@@ -0,0 +1,167 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.Collections;
+using System.Collections.Generic;
+
+namespace Azure.ResourceManager.Impact
+{
+ internal class ChangeTrackingDictionary : IDictionary, IReadOnlyDictionary where TKey : notnull
+ {
+ private IDictionary _innerDictionary;
+
+ public ChangeTrackingDictionary()
+ {
+ }
+
+ public ChangeTrackingDictionary(IDictionary dictionary)
+ {
+ if (dictionary == null)
+ {
+ return;
+ }
+ _innerDictionary = new Dictionary(dictionary);
+ }
+
+ public ChangeTrackingDictionary(IReadOnlyDictionary dictionary)
+ {
+ if (dictionary == null)
+ {
+ return;
+ }
+ _innerDictionary = new Dictionary();
+ foreach (var pair in dictionary)
+ {
+ _innerDictionary.Add(pair);
+ }
+ }
+
+ public bool IsUndefined => _innerDictionary == null;
+
+ public int Count => IsUndefined ? 0 : EnsureDictionary().Count;
+
+ public bool IsReadOnly => IsUndefined ? false : EnsureDictionary().IsReadOnly;
+
+ public ICollection Keys => IsUndefined ? Array.Empty() : EnsureDictionary().Keys;
+
+ public ICollection Values => IsUndefined ? Array.Empty() : EnsureDictionary().Values;
+
+ public TValue this[TKey key]
+ {
+ get
+ {
+ if (IsUndefined)
+ {
+ throw new KeyNotFoundException(nameof(key));
+ }
+ return EnsureDictionary()[key];
+ }
+ set
+ {
+ EnsureDictionary()[key] = value;
+ }
+ }
+
+ IEnumerable IReadOnlyDictionary.Keys => Keys;
+
+ IEnumerable IReadOnlyDictionary.Values => Values;
+
+ public IEnumerator> GetEnumerator()
+ {
+ if (IsUndefined)
+ {
+ IEnumerator> enumerateEmpty()
+ {
+ yield break;
+ }
+ return enumerateEmpty();
+ }
+ return EnsureDictionary().GetEnumerator();
+ }
+
+ IEnumerator IEnumerable.GetEnumerator()
+ {
+ return GetEnumerator();
+ }
+
+ public void Add(KeyValuePair item)
+ {
+ EnsureDictionary().Add(item);
+ }
+
+ public void Clear()
+ {
+ EnsureDictionary().Clear();
+ }
+
+ public bool Contains(KeyValuePair item)
+ {
+ if (IsUndefined)
+ {
+ return false;
+ }
+ return EnsureDictionary().Contains(item);
+ }
+
+ public void CopyTo(KeyValuePair[] array, int index)
+ {
+ if (IsUndefined)
+ {
+ return;
+ }
+ EnsureDictionary().CopyTo(array, index);
+ }
+
+ public bool Remove(KeyValuePair item)
+ {
+ if (IsUndefined)
+ {
+ return false;
+ }
+ return EnsureDictionary().Remove(item);
+ }
+
+ public void Add(TKey key, TValue value)
+ {
+ EnsureDictionary().Add(key, value);
+ }
+
+ public bool ContainsKey(TKey key)
+ {
+ if (IsUndefined)
+ {
+ return false;
+ }
+ return EnsureDictionary().ContainsKey(key);
+ }
+
+ public bool Remove(TKey key)
+ {
+ if (IsUndefined)
+ {
+ return false;
+ }
+ return EnsureDictionary().Remove(key);
+ }
+
+ public bool TryGetValue(TKey key, out TValue value)
+ {
+ if (IsUndefined)
+ {
+ value = default;
+ return false;
+ }
+ return EnsureDictionary().TryGetValue(key, out value);
+ }
+
+ public IDictionary EnsureDictionary()
+ {
+ return _innerDictionary ??= new Dictionary();
+ }
+ }
+}
diff --git a/sdk/impact/Azure.ResourceManager.Impact/src/Generated/Internal/ChangeTrackingList.cs b/sdk/impact/Azure.ResourceManager.Impact/src/Generated/Internal/ChangeTrackingList.cs
new file mode 100644
index 000000000000..8f5f803a95b1
--- /dev/null
+++ b/sdk/impact/Azure.ResourceManager.Impact/src/Generated/Internal/ChangeTrackingList.cs
@@ -0,0 +1,153 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.Collections;
+using System.Collections.Generic;
+using System.Linq;
+
+namespace Azure.ResourceManager.Impact
+{
+ internal class ChangeTrackingList : IList, IReadOnlyList
+ {
+ private IList _innerList;
+
+ public ChangeTrackingList()
+ {
+ }
+
+ public ChangeTrackingList(IList innerList)
+ {
+ if (innerList != null)
+ {
+ _innerList = innerList;
+ }
+ }
+
+ public ChangeTrackingList(IReadOnlyList innerList)
+ {
+ if (innerList != null)
+ {
+ _innerList = innerList.ToList();
+ }
+ }
+
+ public bool IsUndefined => _innerList == null;
+
+ public int Count => IsUndefined ? 0 : EnsureList().Count;
+
+ public bool IsReadOnly => IsUndefined ? false : EnsureList().IsReadOnly;
+
+ public T this[int index]
+ {
+ get
+ {
+ if (IsUndefined)
+ {
+ throw new ArgumentOutOfRangeException(nameof(index));
+ }
+ return EnsureList()[index];
+ }
+ set
+ {
+ if (IsUndefined)
+ {
+ throw new ArgumentOutOfRangeException(nameof(index));
+ }
+ EnsureList()[index] = value;
+ }
+ }
+
+ public void Reset()
+ {
+ _innerList = null;
+ }
+
+ public IEnumerator GetEnumerator()
+ {
+ if (IsUndefined)
+ {
+ IEnumerator enumerateEmpty()
+ {
+ yield break;
+ }
+ return enumerateEmpty();
+ }
+ return EnsureList().GetEnumerator();
+ }
+
+ IEnumerator IEnumerable.GetEnumerator()
+ {
+ return GetEnumerator();
+ }
+
+ public void Add(T item)
+ {
+ EnsureList().Add(item);
+ }
+
+ public void Clear()
+ {
+ EnsureList().Clear();
+ }
+
+ public bool Contains(T item)
+ {
+ if (IsUndefined)
+ {
+ return false;
+ }
+ return EnsureList().Contains(item);
+ }
+
+ public void CopyTo(T[] array, int arrayIndex)
+ {
+ if (IsUndefined)
+ {
+ return;
+ }
+ EnsureList().CopyTo(array, arrayIndex);
+ }
+
+ public bool Remove(T item)
+ {
+ if (IsUndefined)
+ {
+ return false;
+ }
+ return EnsureList().Remove(item);
+ }
+
+ public int IndexOf(T item)
+ {
+ if (IsUndefined)
+ {
+ return -1;
+ }
+ return EnsureList().IndexOf(item);
+ }
+
+ public void Insert(int index, T item)
+ {
+ EnsureList().Insert(index, item);
+ }
+
+ public void RemoveAt(int index)
+ {
+ if (IsUndefined)
+ {
+ throw new ArgumentOutOfRangeException(nameof(index));
+ }
+ EnsureList().RemoveAt(index);
+ }
+
+ public IList EnsureList()
+ {
+ return _innerList ??= new List();
+ }
+ }
+}
diff --git a/sdk/impact/Azure.ResourceManager.Impact/src/Generated/Internal/ModelSerializationExtensions.cs b/sdk/impact/Azure.ResourceManager.Impact/src/Generated/Internal/ModelSerializationExtensions.cs
new file mode 100644
index 000000000000..fc447bcd1f19
--- /dev/null
+++ b/sdk/impact/Azure.ResourceManager.Impact/src/Generated/Internal/ModelSerializationExtensions.cs
@@ -0,0 +1,398 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.ClientModel.Primitives;
+using System.Collections.Generic;
+using System.Diagnostics;
+using System.Globalization;
+using System.Text.Json;
+using System.Xml;
+using Azure.Core;
+
+namespace Azure.ResourceManager.Impact
+{
+ internal static class ModelSerializationExtensions
+ {
+ internal static readonly ModelReaderWriterOptions WireOptions = new ModelReaderWriterOptions("W");
+
+ public static object GetObject(this JsonElement element)
+ {
+ switch (element.ValueKind)
+ {
+ case JsonValueKind.String:
+ return element.GetString();
+ case JsonValueKind.Number:
+ if (element.TryGetInt32(out int intValue))
+ {
+ return intValue;
+ }
+ if (element.TryGetInt64(out long longValue))
+ {
+ return longValue;
+ }
+ return element.GetDouble();
+ case JsonValueKind.True:
+ return true;
+ case JsonValueKind.False:
+ return false;
+ case JsonValueKind.Undefined:
+ case JsonValueKind.Null:
+ return null;
+ case JsonValueKind.Object:
+ var dictionary = new Dictionary();
+ foreach (var jsonProperty in element.EnumerateObject())
+ {
+ dictionary.Add(jsonProperty.Name, jsonProperty.Value.GetObject());
+ }
+ return dictionary;
+ case JsonValueKind.Array:
+ var list = new List