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/informaticadatamanagement/ci.mgmt.yml b/sdk/informaticadatamanagement/ci.mgmt.yml
index 03013cc9c90b..82d3bafd3f7f 100644
--- a/sdk/informaticadatamanagement/ci.mgmt.yml
+++ b/sdk/informaticadatamanagement/ci.mgmt.yml
@@ -1,6 +1,7 @@
# NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file.
trigger: none
+
pr:
branches:
include:
@@ -13,6 +14,18 @@ pr:
- sdk/informaticadatamanagement/ci.mgmt.yml
- sdk/informaticadatamanagement/Azure.ResourceManager.InformaticaDataManagement/
+
+ branches:
+ include:
+ - main
+ - feature/*
+ - hotfix/*
+ - release/*
+ paths:
+ include:
+ - sdk/informaticadatamanagement/ci.mgmt.yml
+ - sdk/informaticadatamanagement/Azure.ResourceManager.InformaticaDataManagement/
+
extends:
template: /eng/pipelines/templates/stages/archetype-sdk-client.yml
parameters:
diff --git a/sdk/iot/ci.mgmt.yml b/sdk/iot/ci.mgmt.yml
index 6260cd0d71f2..199578b03331 100644
--- a/sdk/iot/ci.mgmt.yml
+++ b/sdk/iot/ci.mgmt.yml
@@ -1,6 +1,7 @@
# NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file.
trigger: none
+
pr:
branches:
include:
@@ -13,6 +14,18 @@ pr:
- sdk/iot/ci.mgmt.yml
- sdk/iot/Azure.ResourceManager.IotFirmwareDefense/
+
+ branches:
+ include:
+ - main
+ - feature/*
+ - hotfix/*
+ - release/*
+ paths:
+ include:
+ - sdk/iot/ci.mgmt.yml
+ - sdk/iot/Azure.ResourceManager.IotFirmwareDefense/
+
extends:
template: /eng/pipelines/templates/stages/archetype-sdk-client.yml
parameters:
diff --git a/sdk/iotcentral/ci.mgmt.yml b/sdk/iotcentral/ci.mgmt.yml
index 1702fd71c6dd..1225f99c37fd 100644
--- a/sdk/iotcentral/ci.mgmt.yml
+++ b/sdk/iotcentral/ci.mgmt.yml
@@ -1,6 +1,7 @@
# NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file.
trigger: none
+
pr:
branches:
include:
@@ -13,6 +14,18 @@ pr:
- sdk/iotcentral/ci.mgmt.yml
- sdk/iotcentral/Azure.ResourceManager.IotCentral/
+
+ branches:
+ include:
+ - main
+ - feature/*
+ - hotfix/*
+ - release/*
+ paths:
+ include:
+ - sdk/iotcentral/ci.mgmt.yml
+ - sdk/iotcentral/Azure.ResourceManager.IotCentral/
+
extends:
template: /eng/pipelines/templates/stages/archetype-sdk-client.yml
parameters:
diff --git a/sdk/iothub/ci.mgmt.yml b/sdk/iothub/ci.mgmt.yml
index 5eb9e999a89c..63fb10994eac 100644
--- a/sdk/iothub/ci.mgmt.yml
+++ b/sdk/iothub/ci.mgmt.yml
@@ -1,6 +1,7 @@
# NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file.
trigger: none
+
pr:
branches:
include:
@@ -13,6 +14,18 @@ pr:
- sdk/iothub/ci.mgmt.yml
- sdk/iothub/Azure.ResourceManager.IotHub/
+
+ branches:
+ include:
+ - main
+ - feature/*
+ - hotfix/*
+ - release/*
+ paths:
+ include:
+ - sdk/iothub/ci.mgmt.yml
+ - sdk/iothub/Azure.ResourceManager.IotHub/
+
extends:
template: /eng/pipelines/templates/stages/archetype-sdk-client.yml
parameters:
diff --git a/sdk/iotoperations/Azure.ResourceManager.IoTOperations/Azure.ResourceManager.IoTOperations.sln b/sdk/iotoperations/Azure.ResourceManager.IoTOperations/Azure.ResourceManager.IoTOperations.sln
new file mode 100644
index 000000000000..3528878c41ce
--- /dev/null
+++ b/sdk/iotoperations/Azure.ResourceManager.IoTOperations/Azure.ResourceManager.IoTOperations.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.IoTOperations", "src\Azure.ResourceManager.IoTOperations.csproj", "{28FF4005-4467-4E36-92E7-DEA27DEB1519}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Azure.ResourceManager.IoTOperations.Tests", "tests\Azure.ResourceManager.IoTOperations.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/iotoperations/Azure.ResourceManager.IoTOperations/CHANGELOG.md b/sdk/iotoperations/Azure.ResourceManager.IoTOperations/CHANGELOG.md
new file mode 100644
index 000000000000..13dd08af78ab
--- /dev/null
+++ b/sdk/iotoperations/Azure.ResourceManager.IoTOperations/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/iotoperations/Azure.ResourceManager.IoTOperations/Directory.Build.props b/sdk/iotoperations/Azure.ResourceManager.IoTOperations/Directory.Build.props
new file mode 100644
index 000000000000..63bd836ad44b
--- /dev/null
+++ b/sdk/iotoperations/Azure.ResourceManager.IoTOperations/Directory.Build.props
@@ -0,0 +1,6 @@
+
+
+
+
diff --git a/sdk/iotoperations/Azure.ResourceManager.IoTOperations/README.md b/sdk/iotoperations/Azure.ResourceManager.IoTOperations/README.md
new file mode 100644
index 000000000000..92abdc4c0f4c
--- /dev/null
+++ b/sdk/iotoperations/Azure.ResourceManager.IoTOperations/README.md
@@ -0,0 +1,86 @@
+# Azure.ResourceManager.IoTOperations client library for .NET
+
+Azure.ResourceManager.IoTOperations 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/iotoperations/Azure.ResourceManager.IoTOperations/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.IoTOperations --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/iotoperations/Azure.ResourceManager.IoTOperations/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/iotoperations/Azure.ResourceManager.IoTOperations/samples/Generated/Samples/Sample_BrokerAuthenticationResource.cs b/sdk/iotoperations/Azure.ResourceManager.IoTOperations/samples/Generated/Samples/Sample_BrokerAuthenticationResource.cs
new file mode 100644
index 000000000000..3c1967edca87
--- /dev/null
+++ b/sdk/iotoperations/Azure.ResourceManager.IoTOperations/samples/Generated/Samples/Sample_BrokerAuthenticationResource.cs
@@ -0,0 +1,209 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.Collections.Generic;
+using System.Threading.Tasks;
+using Azure.Core;
+using Azure.Identity;
+using Azure.ResourceManager.IoTOperations.Models;
+using NUnit.Framework;
+
+namespace Azure.ResourceManager.IoTOperations.Samples
+{
+ public partial class Sample_BrokerAuthenticationResource
+ {
+ [Test]
+ [Ignore("Only validating compilation of examples")]
+ public async Task Get_BrokerAuthenticationGet()
+ {
+ // Generated from example definition: 2024-11-01/BrokerAuthentication_Get_MaximumSet_Gen.json
+ // this example is just showing the usage of "BrokerAuthenticationResource_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 BrokerAuthenticationResource created on azure
+ // for more information of creating BrokerAuthenticationResource, please refer to the document of BrokerAuthenticationResource
+ string subscriptionId = "F8C729F9-DF9C-4743-848F-96EE433D8E53";
+ string resourceGroupName = "rgiotoperations";
+ string instanceName = "resource-name123";
+ string brokerName = "resource-name123";
+ string authenticationName = "resource-name123";
+ ResourceIdentifier brokerAuthenticationResourceId = BrokerAuthenticationResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, instanceName, brokerName, authenticationName);
+ BrokerAuthenticationResource brokerAuthenticationResource = client.GetBrokerAuthenticationResource(brokerAuthenticationResourceId);
+
+ // invoke the operation
+ BrokerAuthenticationResource result = await brokerAuthenticationResource.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
+ BrokerAuthenticationResourceData 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_BrokerAuthenticationDelete()
+ {
+ // Generated from example definition: 2024-11-01/BrokerAuthentication_Delete_MaximumSet_Gen.json
+ // this example is just showing the usage of "BrokerAuthenticationResource_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 BrokerAuthenticationResource created on azure
+ // for more information of creating BrokerAuthenticationResource, please refer to the document of BrokerAuthenticationResource
+ string subscriptionId = "F8C729F9-DF9C-4743-848F-96EE433D8E53";
+ string resourceGroupName = "rgiotoperations";
+ string instanceName = "resource-name123";
+ string brokerName = "resource-name123";
+ string authenticationName = "resource-name123";
+ ResourceIdentifier brokerAuthenticationResourceId = BrokerAuthenticationResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, instanceName, brokerName, authenticationName);
+ BrokerAuthenticationResource brokerAuthenticationResource = client.GetBrokerAuthenticationResource(brokerAuthenticationResourceId);
+
+ // invoke the operation
+ await brokerAuthenticationResource.DeleteAsync(WaitUntil.Completed);
+
+ Console.WriteLine("Succeeded");
+ }
+
+ [Test]
+ [Ignore("Only validating compilation of examples")]
+ public async Task Update_BrokerAuthenticationCreateOrUpdateComplex()
+ {
+ // Generated from example definition: 2024-11-01/BrokerAuthentication_CreateOrUpdate_Complex.json
+ // this example is just showing the usage of "BrokerAuthenticationResource_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 BrokerAuthenticationResource created on azure
+ // for more information of creating BrokerAuthenticationResource, please refer to the document of BrokerAuthenticationResource
+ string subscriptionId = "F8C729F9-DF9C-4743-848F-96EE433D8E53";
+ string resourceGroupName = "rgiotoperations";
+ string instanceName = "resource-name123";
+ string brokerName = "resource-name123";
+ string authenticationName = "resource-name123";
+ ResourceIdentifier brokerAuthenticationResourceId = BrokerAuthenticationResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, instanceName, brokerName, authenticationName);
+ BrokerAuthenticationResource brokerAuthenticationResource = client.GetBrokerAuthenticationResource(brokerAuthenticationResourceId);
+
+ // invoke the operation
+ BrokerAuthenticationResourceData data = new BrokerAuthenticationResourceData(new ExtendedLocation("qmbrfwcpwwhggszhrdjv", ExtendedLocationType.CustomLocation))
+ {
+ Properties = new BrokerAuthenticationProperties(new BrokerAuthenticatorMethods[]
+ {
+new BrokerAuthenticatorMethods(BrokerAuthenticationMethod.ServiceAccountToken)
+{
+ServiceAccountTokenAudiences = {"aio-internal"},
+},
+new BrokerAuthenticatorMethods(BrokerAuthenticationMethod.X509)
+{
+X509Settings = new BrokerAuthenticatorMethodX509
+{
+AuthorizationAttributes =
+{
+["root"] = new BrokerAuthenticatorMethodX509Attributes(new Dictionary
+{
+["organization"] = "contoso"
+}, "CN = Contoso Root CA Cert, OU = Engineering, C = US"),
+["intermediate"] = new BrokerAuthenticatorMethodX509Attributes(new Dictionary
+{
+["city"] = "seattle",
+["foo"] = "bar"
+}, "CN = Contoso Intermediate CA"),
+["smart-fan"] = new BrokerAuthenticatorMethodX509Attributes(new Dictionary
+{
+["building"] = "17"
+}, "CN = smart-fan")
+},
+TrustedClientCaCert = "my-ca",
+},
+}
+ }),
+ };
+ ArmOperation lro = await brokerAuthenticationResource.UpdateAsync(WaitUntil.Completed, data);
+ BrokerAuthenticationResource 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
+ BrokerAuthenticationResourceData 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_BrokerAuthenticationCreateOrUpdate()
+ {
+ // Generated from example definition: 2024-11-01/BrokerAuthentication_CreateOrUpdate_MaximumSet_Gen.json
+ // this example is just showing the usage of "BrokerAuthenticationResource_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 BrokerAuthenticationResource created on azure
+ // for more information of creating BrokerAuthenticationResource, please refer to the document of BrokerAuthenticationResource
+ string subscriptionId = "F8C729F9-DF9C-4743-848F-96EE433D8E53";
+ string resourceGroupName = "rgiotoperations";
+ string instanceName = "resource-name123";
+ string brokerName = "resource-name123";
+ string authenticationName = "resource-name123";
+ ResourceIdentifier brokerAuthenticationResourceId = BrokerAuthenticationResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, instanceName, brokerName, authenticationName);
+ BrokerAuthenticationResource brokerAuthenticationResource = client.GetBrokerAuthenticationResource(brokerAuthenticationResourceId);
+
+ // invoke the operation
+ BrokerAuthenticationResourceData data = new BrokerAuthenticationResourceData(new ExtendedLocation("qmbrfwcpwwhggszhrdjv", ExtendedLocationType.CustomLocation))
+ {
+ Properties = new BrokerAuthenticationProperties(new BrokerAuthenticatorMethods[]
+ {
+new BrokerAuthenticatorMethods(BrokerAuthenticationMethod.Custom)
+{
+CustomSettings = new BrokerAuthenticatorMethodCustom(new Uri("https://www.example.com"))
+{
+X509SecretRef = "secret-name",
+CaCertConfigMap = "pdecudefqyolvncbus",
+Headers =
+{
+["key8518"] = "bwityjy"
+},
+},
+ServiceAccountTokenAudiences = {"jqyhyqatuydg"},
+X509Settings = new BrokerAuthenticatorMethodX509
+{
+AuthorizationAttributes =
+{
+["key3384"] = new BrokerAuthenticatorMethodX509Attributes(new Dictionary
+{
+["key186"] = "ucpajramsz"
+}, "jpgwctfeixitptfgfnqhua")
+},
+TrustedClientCaCert = "vlctsqddl",
+},
+}
+ }),
+ };
+ ArmOperation lro = await brokerAuthenticationResource.UpdateAsync(WaitUntil.Completed, data);
+ BrokerAuthenticationResource 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
+ BrokerAuthenticationResourceData resourceData = result.Data;
+ // for demo we just print out the id
+ Console.WriteLine($"Succeeded on id: {resourceData.Id}");
+ }
+ }
+}
diff --git a/sdk/iotoperations/Azure.ResourceManager.IoTOperations/samples/Generated/Samples/Sample_BrokerAuthenticationResourceCollection.cs b/sdk/iotoperations/Azure.ResourceManager.IoTOperations/samples/Generated/Samples/Sample_BrokerAuthenticationResourceCollection.cs
new file mode 100644
index 000000000000..ea03e1901a21
--- /dev/null
+++ b/sdk/iotoperations/Azure.ResourceManager.IoTOperations/samples/Generated/Samples/Sample_BrokerAuthenticationResourceCollection.cs
@@ -0,0 +1,301 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.Collections.Generic;
+using System.Threading.Tasks;
+using Azure.Core;
+using Azure.Identity;
+using Azure.ResourceManager.IoTOperations.Models;
+using NUnit.Framework;
+
+namespace Azure.ResourceManager.IoTOperations.Samples
+{
+ public partial class Sample_BrokerAuthenticationResourceCollection
+ {
+ [Test]
+ [Ignore("Only validating compilation of examples")]
+ public async Task CreateOrUpdate_BrokerAuthenticationCreateOrUpdateComplex()
+ {
+ // Generated from example definition: 2024-11-01/BrokerAuthentication_CreateOrUpdate_Complex.json
+ // this example is just showing the usage of "BrokerAuthenticationResource_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 BrokerResource created on azure
+ // for more information of creating BrokerResource, please refer to the document of BrokerResource
+ string subscriptionId = "F8C729F9-DF9C-4743-848F-96EE433D8E53";
+ string resourceGroupName = "rgiotoperations";
+ string instanceName = "resource-name123";
+ string brokerName = "resource-name123";
+ ResourceIdentifier brokerResourceId = BrokerResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, instanceName, brokerName);
+ BrokerResource brokerResource = client.GetBrokerResource(brokerResourceId);
+
+ // get the collection of this BrokerAuthenticationResource
+ BrokerAuthenticationResourceCollection collection = brokerResource.GetBrokerAuthenticationResources();
+
+ // invoke the operation
+ string authenticationName = "resource-name123";
+ BrokerAuthenticationResourceData data = new BrokerAuthenticationResourceData(new ExtendedLocation("qmbrfwcpwwhggszhrdjv", ExtendedLocationType.CustomLocation))
+ {
+ Properties = new BrokerAuthenticationProperties(new BrokerAuthenticatorMethods[]
+ {
+new BrokerAuthenticatorMethods(BrokerAuthenticationMethod.ServiceAccountToken)
+{
+ServiceAccountTokenAudiences = {"aio-internal"},
+},
+new BrokerAuthenticatorMethods(BrokerAuthenticationMethod.X509)
+{
+X509Settings = new BrokerAuthenticatorMethodX509
+{
+AuthorizationAttributes =
+{
+["root"] = new BrokerAuthenticatorMethodX509Attributes(new Dictionary
+{
+["organization"] = "contoso"
+}, "CN = Contoso Root CA Cert, OU = Engineering, C = US"),
+["intermediate"] = new BrokerAuthenticatorMethodX509Attributes(new Dictionary
+{
+["city"] = "seattle",
+["foo"] = "bar"
+}, "CN = Contoso Intermediate CA"),
+["smart-fan"] = new BrokerAuthenticatorMethodX509Attributes(new Dictionary
+{
+["building"] = "17"
+}, "CN = smart-fan")
+},
+TrustedClientCaCert = "my-ca",
+},
+}
+ }),
+ };
+ ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, authenticationName, data);
+ BrokerAuthenticationResource 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
+ BrokerAuthenticationResourceData 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_BrokerAuthenticationCreateOrUpdate()
+ {
+ // Generated from example definition: 2024-11-01/BrokerAuthentication_CreateOrUpdate_MaximumSet_Gen.json
+ // this example is just showing the usage of "BrokerAuthenticationResource_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 BrokerResource created on azure
+ // for more information of creating BrokerResource, please refer to the document of BrokerResource
+ string subscriptionId = "F8C729F9-DF9C-4743-848F-96EE433D8E53";
+ string resourceGroupName = "rgiotoperations";
+ string instanceName = "resource-name123";
+ string brokerName = "resource-name123";
+ ResourceIdentifier brokerResourceId = BrokerResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, instanceName, brokerName);
+ BrokerResource brokerResource = client.GetBrokerResource(brokerResourceId);
+
+ // get the collection of this BrokerAuthenticationResource
+ BrokerAuthenticationResourceCollection collection = brokerResource.GetBrokerAuthenticationResources();
+
+ // invoke the operation
+ string authenticationName = "resource-name123";
+ BrokerAuthenticationResourceData data = new BrokerAuthenticationResourceData(new ExtendedLocation("qmbrfwcpwwhggszhrdjv", ExtendedLocationType.CustomLocation))
+ {
+ Properties = new BrokerAuthenticationProperties(new BrokerAuthenticatorMethods[]
+ {
+new BrokerAuthenticatorMethods(BrokerAuthenticationMethod.Custom)
+{
+CustomSettings = new BrokerAuthenticatorMethodCustom(new Uri("https://www.example.com"))
+{
+X509SecretRef = "secret-name",
+CaCertConfigMap = "pdecudefqyolvncbus",
+Headers =
+{
+["key8518"] = "bwityjy"
+},
+},
+ServiceAccountTokenAudiences = {"jqyhyqatuydg"},
+X509Settings = new BrokerAuthenticatorMethodX509
+{
+AuthorizationAttributes =
+{
+["key3384"] = new BrokerAuthenticatorMethodX509Attributes(new Dictionary
+{
+["key186"] = "ucpajramsz"
+}, "jpgwctfeixitptfgfnqhua")
+},
+TrustedClientCaCert = "vlctsqddl",
+},
+}
+ }),
+ };
+ ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, authenticationName, data);
+ BrokerAuthenticationResource 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
+ BrokerAuthenticationResourceData 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_BrokerAuthenticationGet()
+ {
+ // Generated from example definition: 2024-11-01/BrokerAuthentication_Get_MaximumSet_Gen.json
+ // this example is just showing the usage of "BrokerAuthenticationResource_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 BrokerResource created on azure
+ // for more information of creating BrokerResource, please refer to the document of BrokerResource
+ string subscriptionId = "F8C729F9-DF9C-4743-848F-96EE433D8E53";
+ string resourceGroupName = "rgiotoperations";
+ string instanceName = "resource-name123";
+ string brokerName = "resource-name123";
+ ResourceIdentifier brokerResourceId = BrokerResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, instanceName, brokerName);
+ BrokerResource brokerResource = client.GetBrokerResource(brokerResourceId);
+
+ // get the collection of this BrokerAuthenticationResource
+ BrokerAuthenticationResourceCollection collection = brokerResource.GetBrokerAuthenticationResources();
+
+ // invoke the operation
+ string authenticationName = "resource-name123";
+ BrokerAuthenticationResource result = await collection.GetAsync(authenticationName);
+
+ // 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
+ BrokerAuthenticationResourceData 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_BrokerAuthenticationListByResourceGroup()
+ {
+ // Generated from example definition: 2024-11-01/BrokerAuthentication_ListByResourceGroup_MaximumSet_Gen.json
+ // this example is just showing the usage of "BrokerAuthenticationResource_ListByResourceGroup" operation, for the dependent resources, they will have to be created separately.
+
+ // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this BrokerResource created on azure
+ // for more information of creating BrokerResource, please refer to the document of BrokerResource
+ string subscriptionId = "F8C729F9-DF9C-4743-848F-96EE433D8E53";
+ string resourceGroupName = "rgiotoperations";
+ string instanceName = "resource-name123";
+ string brokerName = "resource-name123";
+ ResourceIdentifier brokerResourceId = BrokerResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, instanceName, brokerName);
+ BrokerResource brokerResource = client.GetBrokerResource(brokerResourceId);
+
+ // get the collection of this BrokerAuthenticationResource
+ BrokerAuthenticationResourceCollection collection = brokerResource.GetBrokerAuthenticationResources();
+
+ // invoke the operation and iterate over the result
+ await foreach (BrokerAuthenticationResource 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
+ BrokerAuthenticationResourceData 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_BrokerAuthenticationGet()
+ {
+ // Generated from example definition: 2024-11-01/BrokerAuthentication_Get_MaximumSet_Gen.json
+ // this example is just showing the usage of "BrokerAuthenticationResource_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 BrokerResource created on azure
+ // for more information of creating BrokerResource, please refer to the document of BrokerResource
+ string subscriptionId = "F8C729F9-DF9C-4743-848F-96EE433D8E53";
+ string resourceGroupName = "rgiotoperations";
+ string instanceName = "resource-name123";
+ string brokerName = "resource-name123";
+ ResourceIdentifier brokerResourceId = BrokerResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, instanceName, brokerName);
+ BrokerResource brokerResource = client.GetBrokerResource(brokerResourceId);
+
+ // get the collection of this BrokerAuthenticationResource
+ BrokerAuthenticationResourceCollection collection = brokerResource.GetBrokerAuthenticationResources();
+
+ // invoke the operation
+ string authenticationName = "resource-name123";
+ bool result = await collection.ExistsAsync(authenticationName);
+
+ Console.WriteLine($"Succeeded: {result}");
+ }
+
+ [Test]
+ [Ignore("Only validating compilation of examples")]
+ public async Task GetIfExists_BrokerAuthenticationGet()
+ {
+ // Generated from example definition: 2024-11-01/BrokerAuthentication_Get_MaximumSet_Gen.json
+ // this example is just showing the usage of "BrokerAuthenticationResource_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 BrokerResource created on azure
+ // for more information of creating BrokerResource, please refer to the document of BrokerResource
+ string subscriptionId = "F8C729F9-DF9C-4743-848F-96EE433D8E53";
+ string resourceGroupName = "rgiotoperations";
+ string instanceName = "resource-name123";
+ string brokerName = "resource-name123";
+ ResourceIdentifier brokerResourceId = BrokerResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, instanceName, brokerName);
+ BrokerResource brokerResource = client.GetBrokerResource(brokerResourceId);
+
+ // get the collection of this BrokerAuthenticationResource
+ BrokerAuthenticationResourceCollection collection = brokerResource.GetBrokerAuthenticationResources();
+
+ // invoke the operation
+ string authenticationName = "resource-name123";
+ NullableResponse response = await collection.GetIfExistsAsync(authenticationName);
+ BrokerAuthenticationResource 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
+ BrokerAuthenticationResourceData resourceData = result.Data;
+ // for demo we just print out the id
+ Console.WriteLine($"Succeeded on id: {resourceData.Id}");
+ }
+ }
+ }
+}
diff --git a/sdk/iotoperations/Azure.ResourceManager.IoTOperations/samples/Generated/Samples/Sample_BrokerAuthorizationResource.cs b/sdk/iotoperations/Azure.ResourceManager.IoTOperations/samples/Generated/Samples/Sample_BrokerAuthorizationResource.cs
new file mode 100644
index 000000000000..2155febeb979
--- /dev/null
+++ b/sdk/iotoperations/Azure.ResourceManager.IoTOperations/samples/Generated/Samples/Sample_BrokerAuthorizationResource.cs
@@ -0,0 +1,266 @@
+// 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.IoTOperations.Models;
+using NUnit.Framework;
+
+namespace Azure.ResourceManager.IoTOperations.Samples
+{
+ public partial class Sample_BrokerAuthorizationResource
+ {
+ [Test]
+ [Ignore("Only validating compilation of examples")]
+ public async Task Get_BrokerAuthorizationGet()
+ {
+ // Generated from example definition: 2024-11-01/BrokerAuthorization_Get_MaximumSet_Gen.json
+ // this example is just showing the usage of "BrokerAuthorizationResource_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 BrokerAuthorizationResource created on azure
+ // for more information of creating BrokerAuthorizationResource, please refer to the document of BrokerAuthorizationResource
+ string subscriptionId = "F8C729F9-DF9C-4743-848F-96EE433D8E53";
+ string resourceGroupName = "rgiotoperations";
+ string instanceName = "resource-name123";
+ string brokerName = "resource-name123";
+ string authorizationName = "resource-name123";
+ ResourceIdentifier brokerAuthorizationResourceId = BrokerAuthorizationResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, instanceName, brokerName, authorizationName);
+ BrokerAuthorizationResource brokerAuthorizationResource = client.GetBrokerAuthorizationResource(brokerAuthorizationResourceId);
+
+ // invoke the operation
+ BrokerAuthorizationResource result = await brokerAuthorizationResource.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
+ BrokerAuthorizationResourceData 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_BrokerAuthorizationDelete()
+ {
+ // Generated from example definition: 2024-11-01/BrokerAuthorization_Delete_MaximumSet_Gen.json
+ // this example is just showing the usage of "BrokerAuthorizationResource_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 BrokerAuthorizationResource created on azure
+ // for more information of creating BrokerAuthorizationResource, please refer to the document of BrokerAuthorizationResource
+ string subscriptionId = "F8C729F9-DF9C-4743-848F-96EE433D8E53";
+ string resourceGroupName = "rgiotoperations";
+ string instanceName = "resource-name123";
+ string brokerName = "resource-name123";
+ string authorizationName = "resource-name123";
+ ResourceIdentifier brokerAuthorizationResourceId = BrokerAuthorizationResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, instanceName, brokerName, authorizationName);
+ BrokerAuthorizationResource brokerAuthorizationResource = client.GetBrokerAuthorizationResource(brokerAuthorizationResourceId);
+
+ // invoke the operation
+ await brokerAuthorizationResource.DeleteAsync(WaitUntil.Completed);
+
+ Console.WriteLine("Succeeded");
+ }
+
+ [Test]
+ [Ignore("Only validating compilation of examples")]
+ public async Task Update_BrokerAuthorizationCreateOrUpdateComplex()
+ {
+ // Generated from example definition: 2024-11-01/BrokerAuthorization_CreateOrUpdate_Complex.json
+ // this example is just showing the usage of "BrokerAuthorizationResource_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 BrokerAuthorizationResource created on azure
+ // for more information of creating BrokerAuthorizationResource, please refer to the document of BrokerAuthorizationResource
+ string subscriptionId = "F8C729F9-DF9C-4743-848F-96EE433D8E53";
+ string resourceGroupName = "rgiotoperations";
+ string instanceName = "resource-name123";
+ string brokerName = "resource-name123";
+ string authorizationName = "resource-name123";
+ ResourceIdentifier brokerAuthorizationResourceId = BrokerAuthorizationResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, instanceName, brokerName, authorizationName);
+ BrokerAuthorizationResource brokerAuthorizationResource = client.GetBrokerAuthorizationResource(brokerAuthorizationResourceId);
+
+ // invoke the operation
+ BrokerAuthorizationResourceData data = new BrokerAuthorizationResourceData(new ExtendedLocation("qmbrfwcpwwhggszhrdjv", ExtendedLocationType.CustomLocation))
+ {
+ Properties = new BrokerAuthorizationProperties(new AuthorizationConfig
+ {
+ Cache = OperationalMode.Enabled,
+ Rules = {new AuthorizationRule(new BrokerResourceRule[]
+{
+new BrokerResourceRule(BrokerResourceDefinitionMethod.Connect)
+{
+ClientIds = {"{principal.attributes.building}*"},
+},
+new BrokerResourceRule(BrokerResourceDefinitionMethod.Publish)
+{
+Topics = {"sensors/{principal.attributes.building}/{principal.clientId}/telemetry/*"},
+},
+new BrokerResourceRule(BrokerResourceDefinitionMethod.Subscribe)
+{
+Topics = {"commands/{principal.attributes.organization}"},
+}
+}, new PrincipalDefinition
+{
+Attributes = {
+{
+["building"] = "17",
+["organization"] = "contoso"
+}},
+Usernames = {"temperature-sensor", "humidity-sensor"},
+})
+ {
+ StateStoreResources = { new StateStoreResourceRule(StateStoreResourceKeyType.Pattern, new string[] { "myreadkey", "myotherkey?", "mynumerickeysuffix[0-9]", "clients:{principal.clientId}:*" }, StateStoreResourceDefinitionMethod.Read), new StateStoreResourceRule(StateStoreResourceKeyType.Binary, new string[] { "MTE2IDEwMSAxMTUgMTE2" }, StateStoreResourceDefinitionMethod.ReadWrite) },
+ }
+ },
+ }),
+};
+ ArmOperation lro = await brokerAuthorizationResource.UpdateAsync(WaitUntil.Completed, data);
+ BrokerAuthorizationResource 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
+ BrokerAuthorizationResourceData 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_BrokerAuthorizationCreateOrUpdate()
+{
+ // Generated from example definition: 2024-11-01/BrokerAuthorization_CreateOrUpdate_MaximumSet_Gen.json
+ // this example is just showing the usage of "BrokerAuthorizationResource_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
+ Azure.ResourceManager.ArmClient client = new Azure.ResourceManager.ArmClient(cred);
+
+ // this example assumes you already have this BrokerAuthorizationResource created on azure
+ // for more information of creating BrokerAuthorizationResource, please refer to the document of BrokerAuthorizationResource
+ string subscriptionId = "F8C729F9-DF9C-4743-848F-96EE433D8E53";
+ string resourceGroupName = "rgiotoperations";
+ string instanceName = "resource-name123";
+ string brokerName = "resource-name123";
+ string authorizationName = "resource-name123";
+ ResourceIdentifier brokerAuthorizationResourceId = Azure.ResourceManager.IoTOperations.BrokerAuthorizationResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, instanceName, brokerName, authorizationName);
+ Azure.ResourceManager.IoTOperations.BrokerAuthorizationResource brokerAuthorizationResource = client.GetBrokerAuthorizationResource(brokerAuthorizationResourceId);
+
+ // invoke the operation
+ Azure.ResourceManager.IoTOperations.BrokerAuthorizationResourceData data = new Azure.ResourceManager.IoTOperations.BrokerAuthorizationResourceData(new ExtendedLocation("qmbrfwcpwwhggszhrdjv", ExtendedLocationType.CustomLocation))
+ {
+ Properties = new BrokerAuthorizationProperties(new AuthorizationConfig
+ {
+ Cache = OperationalMode.Enabled,
+ Rules = {new AuthorizationRule(new BrokerResourceRule[]
+{
+new BrokerResourceRule(BrokerResourceDefinitionMethod.Connect)
+{
+ClientIds = {"nlc"},
+Topics = {"wvuca"},
+}
+}, new PrincipalDefinition
+{
+Attributes = {
+{
+["key5526"] = "nydhzdhbldygqcn"
+}},
+ClientIds = {"smopeaeddsygz"},
+Usernames = {"iozngyqndrteikszkbasinzdjtm"},
+})
+ {
+ StateStoreResources = { new StateStoreResourceRule(StateStoreResourceKeyType.Pattern, new string[] { "tkounsqtwvzyaklxjqoerpu" }, StateStoreResourceDefinitionMethod.Read) },
+ }
+ },
+}),
+};
+Azure.ResourceManager.ArmOperation lro = await brokerAuthorizationResource.UpdateAsync(Azure.WaitUntil.Completed, data);
+Azure.ResourceManager.IoTOperations.BrokerAuthorizationResource 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
+Azure.ResourceManager.IoTOperations.BrokerAuthorizationResourceData 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_BrokerAuthorizationCreateOrUpdateSimple()
+{
+ // Generated from example definition: 2024-11-01/BrokerAuthorization_CreateOrUpdate_Simple.json
+ // this example is just showing the usage of "BrokerAuthorizationResource_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
+ Azure.ResourceManager.ArmClient client = new Azure.ResourceManager.ArmClient(cred);
+
+ // this example assumes you already have this BrokerAuthorizationResource created on azure
+ // for more information of creating BrokerAuthorizationResource, please refer to the document of BrokerAuthorizationResource
+ string subscriptionId = "F8C729F9-DF9C-4743-848F-96EE433D8E53";
+ string resourceGroupName = "rgiotoperations";
+ string instanceName = "resource-name123";
+ string brokerName = "resource-name123";
+ string authorizationName = "resource-name123";
+ ResourceIdentifier brokerAuthorizationResourceId = Azure.ResourceManager.IoTOperations.BrokerAuthorizationResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, instanceName, brokerName, authorizationName);
+ Azure.ResourceManager.IoTOperations.BrokerAuthorizationResource brokerAuthorizationResource = client.GetBrokerAuthorizationResource(brokerAuthorizationResourceId);
+
+ // invoke the operation
+ Azure.ResourceManager.IoTOperations.BrokerAuthorizationResourceData data = new Azure.ResourceManager.IoTOperations.BrokerAuthorizationResourceData(new ExtendedLocation("qmbrfwcpwwhggszhrdjv", ExtendedLocationType.CustomLocation))
+ {
+ Properties = new BrokerAuthorizationProperties(new AuthorizationConfig
+ {
+ Cache = OperationalMode.Enabled,
+ Rules = {new AuthorizationRule(new BrokerResourceRule[]
+{
+new BrokerResourceRule(BrokerResourceDefinitionMethod.Connect),
+new BrokerResourceRule(BrokerResourceDefinitionMethod.Subscribe)
+{
+Topics = {"topic", "topic/with/wildcard/#"},
+}
+}, new PrincipalDefinition
+{
+Attributes = {
+{
+["floor"] = "floor1",
+["site"] = "site1"
+}},
+ClientIds = {"my-client-id"},
+})
+ {
+ StateStoreResources = { new StateStoreResourceRule(StateStoreResourceKeyType.Pattern, new string[] { "*" }, StateStoreResourceDefinitionMethod.ReadWrite) },
+ }
+ },
+}),
+};
+Azure.ResourceManager.ArmOperation lro = await brokerAuthorizationResource.UpdateAsync(Azure.WaitUntil.Completed, data);
+Azure.ResourceManager.IoTOperations.BrokerAuthorizationResource 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
+Azure.ResourceManager.IoTOperations.BrokerAuthorizationResourceData resourceData = result.Data;
+// for demo we just print out the id
+Console.WriteLine($"Succeeded on id: {resourceData.Id}");
+}
+}
+}
diff --git a/sdk/iotoperations/Azure.ResourceManager.IoTOperations/samples/Generated/Samples/Sample_BrokerAuthorizationResourceCollection.cs b/sdk/iotoperations/Azure.ResourceManager.IoTOperations/samples/Generated/Samples/Sample_BrokerAuthorizationResourceCollection.cs
new file mode 100644
index 000000000000..51f9c6ef6f5a
--- /dev/null
+++ b/sdk/iotoperations/Azure.ResourceManager.IoTOperations/samples/Generated/Samples/Sample_BrokerAuthorizationResourceCollection.cs
@@ -0,0 +1,361 @@
+// 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.IoTOperations.Models;
+using NUnit.Framework;
+
+namespace Azure.ResourceManager.IoTOperations.Samples
+{
+ public partial class Sample_BrokerAuthorizationResourceCollection
+ {
+ [Test]
+ [Ignore("Only validating compilation of examples")]
+ public async Task CreateOrUpdate_BrokerAuthorizationCreateOrUpdateComplex()
+ {
+ // Generated from example definition: 2024-11-01/BrokerAuthorization_CreateOrUpdate_Complex.json
+ // this example is just showing the usage of "BrokerAuthorizationResource_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 BrokerResource created on azure
+ // for more information of creating BrokerResource, please refer to the document of BrokerResource
+ string subscriptionId = "F8C729F9-DF9C-4743-848F-96EE433D8E53";
+ string resourceGroupName = "rgiotoperations";
+ string instanceName = "resource-name123";
+ string brokerName = "resource-name123";
+ ResourceIdentifier brokerResourceId = BrokerResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, instanceName, brokerName);
+ BrokerResource brokerResource = client.GetBrokerResource(brokerResourceId);
+
+ // get the collection of this BrokerAuthorizationResource
+ BrokerAuthorizationResourceCollection collection = brokerResource.GetBrokerAuthorizationResources();
+
+ // invoke the operation
+ string authorizationName = "resource-name123";
+ BrokerAuthorizationResourceData data = new BrokerAuthorizationResourceData(new ExtendedLocation("qmbrfwcpwwhggszhrdjv", ExtendedLocationType.CustomLocation))
+ {
+ Properties = new BrokerAuthorizationProperties(new AuthorizationConfig
+ {
+ Cache = OperationalMode.Enabled,
+ Rules = {new AuthorizationRule(new BrokerResourceRule[]
+{
+new BrokerResourceRule(BrokerResourceDefinitionMethod.Connect)
+{
+ClientIds = {"{principal.attributes.building}*"},
+},
+new BrokerResourceRule(BrokerResourceDefinitionMethod.Publish)
+{
+Topics = {"sensors/{principal.attributes.building}/{principal.clientId}/telemetry/*"},
+},
+new BrokerResourceRule(BrokerResourceDefinitionMethod.Subscribe)
+{
+Topics = {"commands/{principal.attributes.organization}"},
+}
+}, new PrincipalDefinition
+{
+Attributes = {
+{
+["building"] = "17",
+["organization"] = "contoso"
+}},
+Usernames = {"temperature-sensor", "humidity-sensor"},
+})
+ {
+ StateStoreResources = { new StateStoreResourceRule(StateStoreResourceKeyType.Pattern, new string[] { "myreadkey", "myotherkey?", "mynumerickeysuffix[0-9]", "clients:{principal.clientId}:*" }, StateStoreResourceDefinitionMethod.Read), new StateStoreResourceRule(StateStoreResourceKeyType.Binary, new string[] { "MTE2IDEwMSAxMTUgMTE2" }, StateStoreResourceDefinitionMethod.ReadWrite) },
+ }
+ },
+ }),
+};
+ ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, authorizationName, data);
+ BrokerAuthorizationResource 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
+ BrokerAuthorizationResourceData 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_BrokerAuthorizationCreateOrUpdate()
+{
+ // Generated from example definition: 2024-11-01/BrokerAuthorization_CreateOrUpdate_MaximumSet_Gen.json
+ // this example is just showing the usage of "BrokerAuthorizationResource_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
+ Azure.ResourceManager.ArmClient client = new Azure.ResourceManager.ArmClient(cred);
+
+ // this example assumes you already have this BrokerResource created on azure
+ // for more information of creating BrokerResource, please refer to the document of BrokerResource
+ string subscriptionId = "F8C729F9-DF9C-4743-848F-96EE433D8E53";
+ string resourceGroupName = "rgiotoperations";
+ string instanceName = "resource-name123";
+ string brokerName = "resource-name123";
+ ResourceIdentifier brokerResourceId = Azure.ResourceManager.IoTOperations.BrokerResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, instanceName, brokerName);
+ Azure.ResourceManager.IoTOperations.BrokerResource brokerResource = client.GetBrokerResource(brokerResourceId);
+
+ // get the collection of this BrokerAuthorizationResource
+ Azure.ResourceManager.IoTOperations.BrokerAuthorizationResourceCollection collection = brokerResource.GetBrokerAuthorizationResources();
+
+ // invoke the operation
+ string authorizationName = "resource-name123";
+ Azure.ResourceManager.IoTOperations.BrokerAuthorizationResourceData data = new Azure.ResourceManager.IoTOperations.BrokerAuthorizationResourceData(new ExtendedLocation("qmbrfwcpwwhggszhrdjv", ExtendedLocationType.CustomLocation))
+ {
+ Properties = new BrokerAuthorizationProperties(new AuthorizationConfig
+ {
+ Cache = OperationalMode.Enabled,
+ Rules = {new AuthorizationRule(new BrokerResourceRule[]
+{
+new BrokerResourceRule(BrokerResourceDefinitionMethod.Connect)
+{
+ClientIds = {"nlc"},
+Topics = {"wvuca"},
+}
+}, new PrincipalDefinition
+{
+Attributes = {
+{
+["key5526"] = "nydhzdhbldygqcn"
+}},
+ClientIds = {"smopeaeddsygz"},
+Usernames = {"iozngyqndrteikszkbasinzdjtm"},
+})
+ {
+ StateStoreResources = { new StateStoreResourceRule(StateStoreResourceKeyType.Pattern, new string[] { "tkounsqtwvzyaklxjqoerpu" }, StateStoreResourceDefinitionMethod.Read) },
+ }
+ },
+}),
+};
+Azure.ResourceManager.ArmOperation lro = await collection.CreateOrUpdateAsync(Azure.WaitUntil.Completed, authorizationName, data);
+Azure.ResourceManager.IoTOperations.BrokerAuthorizationResource 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
+Azure.ResourceManager.IoTOperations.BrokerAuthorizationResourceData 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_BrokerAuthorizationCreateOrUpdateSimple()
+{
+ // Generated from example definition: 2024-11-01/BrokerAuthorization_CreateOrUpdate_Simple.json
+ // this example is just showing the usage of "BrokerAuthorizationResource_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
+ Azure.ResourceManager.ArmClient client = new Azure.ResourceManager.ArmClient(cred);
+
+ // this example assumes you already have this BrokerResource created on azure
+ // for more information of creating BrokerResource, please refer to the document of BrokerResource
+ string subscriptionId = "F8C729F9-DF9C-4743-848F-96EE433D8E53";
+ string resourceGroupName = "rgiotoperations";
+ string instanceName = "resource-name123";
+ string brokerName = "resource-name123";
+ ResourceIdentifier brokerResourceId = Azure.ResourceManager.IoTOperations.BrokerResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, instanceName, brokerName);
+ Azure.ResourceManager.IoTOperations.BrokerResource brokerResource = client.GetBrokerResource(brokerResourceId);
+
+ // get the collection of this BrokerAuthorizationResource
+ Azure.ResourceManager.IoTOperations.BrokerAuthorizationResourceCollection collection = brokerResource.GetBrokerAuthorizationResources();
+
+ // invoke the operation
+ string authorizationName = "resource-name123";
+ Azure.ResourceManager.IoTOperations.BrokerAuthorizationResourceData data = new Azure.ResourceManager.IoTOperations.BrokerAuthorizationResourceData(new ExtendedLocation("qmbrfwcpwwhggszhrdjv", ExtendedLocationType.CustomLocation))
+ {
+ Properties = new BrokerAuthorizationProperties(new AuthorizationConfig
+ {
+ Cache = OperationalMode.Enabled,
+ Rules = {new AuthorizationRule(new BrokerResourceRule[]
+{
+new BrokerResourceRule(BrokerResourceDefinitionMethod.Connect),
+new BrokerResourceRule(BrokerResourceDefinitionMethod.Subscribe)
+{
+Topics = {"topic", "topic/with/wildcard/#"},
+}
+}, new PrincipalDefinition
+{
+Attributes = {
+{
+["floor"] = "floor1",
+["site"] = "site1"
+}},
+ClientIds = {"my-client-id"},
+})
+ {
+ StateStoreResources = { new StateStoreResourceRule(StateStoreResourceKeyType.Pattern, new string[] { "*" }, StateStoreResourceDefinitionMethod.ReadWrite) },
+ }
+ },
+}),
+};
+Azure.ResourceManager.ArmOperation lro = await collection.CreateOrUpdateAsync(Azure.WaitUntil.Completed, authorizationName, data);
+Azure.ResourceManager.IoTOperations.BrokerAuthorizationResource 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
+Azure.ResourceManager.IoTOperations.BrokerAuthorizationResourceData 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_BrokerAuthorizationGet()
+{
+ // Generated from example definition: 2024-11-01/BrokerAuthorization_Get_MaximumSet_Gen.json
+ // this example is just showing the usage of "BrokerAuthorizationResource_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
+ Azure.ResourceManager.ArmClient client = new Azure.ResourceManager.ArmClient(cred);
+
+ // this example assumes you already have this BrokerResource created on azure
+ // for more information of creating BrokerResource, please refer to the document of BrokerResource
+ string subscriptionId = "F8C729F9-DF9C-4743-848F-96EE433D8E53";
+ string resourceGroupName = "rgiotoperations";
+ string instanceName = "resource-name123";
+ string brokerName = "resource-name123";
+ ResourceIdentifier brokerResourceId = Azure.ResourceManager.IoTOperations.BrokerResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, instanceName, brokerName);
+ Azure.ResourceManager.IoTOperations.BrokerResource brokerResource = client.GetBrokerResource(brokerResourceId);
+
+ // get the collection of this BrokerAuthorizationResource
+ Azure.ResourceManager.IoTOperations.BrokerAuthorizationResourceCollection collection = brokerResource.GetBrokerAuthorizationResources();
+
+ // invoke the operation
+ string authorizationName = "resource-name123";
+ Azure.ResourceManager.IoTOperations.BrokerAuthorizationResource result = await collection.GetAsync(authorizationName);
+
+ // 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
+ Azure.ResourceManager.IoTOperations.BrokerAuthorizationResourceData 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_BrokerAuthorizationListByResourceGroup()
+{
+ // Generated from example definition: 2024-11-01/BrokerAuthorization_ListByResourceGroup_MaximumSet_Gen.json
+ // this example is just showing the usage of "BrokerAuthorizationResource_ListByResourceGroup" operation, for the dependent resources, they will have to be created separately.
+
+ // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ Azure.ResourceManager.ArmClient client = new Azure.ResourceManager.ArmClient(cred);
+
+ // this example assumes you already have this BrokerResource created on azure
+ // for more information of creating BrokerResource, please refer to the document of BrokerResource
+ string subscriptionId = "F8C729F9-DF9C-4743-848F-96EE433D8E53";
+ string resourceGroupName = "rgiotoperations";
+ string instanceName = "resource-name123";
+ string brokerName = "resource-name123";
+ ResourceIdentifier brokerResourceId = Azure.ResourceManager.IoTOperations.BrokerResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, instanceName, brokerName);
+ Azure.ResourceManager.IoTOperations.BrokerResource brokerResource = client.GetBrokerResource(brokerResourceId);
+
+ // get the collection of this BrokerAuthorizationResource
+ Azure.ResourceManager.IoTOperations.BrokerAuthorizationResourceCollection collection = brokerResource.GetBrokerAuthorizationResources();
+
+ // invoke the operation and iterate over the result
+ await foreach (Azure.ResourceManager.IoTOperations.BrokerAuthorizationResource 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
+ Azure.ResourceManager.IoTOperations.BrokerAuthorizationResourceData 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_BrokerAuthorizationGet()
+{
+ // Generated from example definition: 2024-11-01/BrokerAuthorization_Get_MaximumSet_Gen.json
+ // this example is just showing the usage of "BrokerAuthorizationResource_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
+ Azure.ResourceManager.ArmClient client = new Azure.ResourceManager.ArmClient(cred);
+
+ // this example assumes you already have this BrokerResource created on azure
+ // for more information of creating BrokerResource, please refer to the document of BrokerResource
+ string subscriptionId = "F8C729F9-DF9C-4743-848F-96EE433D8E53";
+ string resourceGroupName = "rgiotoperations";
+ string instanceName = "resource-name123";
+ string brokerName = "resource-name123";
+ ResourceIdentifier brokerResourceId = Azure.ResourceManager.IoTOperations.BrokerResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, instanceName, brokerName);
+ Azure.ResourceManager.IoTOperations.BrokerResource brokerResource = client.GetBrokerResource(brokerResourceId);
+
+ // get the collection of this BrokerAuthorizationResource
+ Azure.ResourceManager.IoTOperations.BrokerAuthorizationResourceCollection collection = brokerResource.GetBrokerAuthorizationResources();
+
+ // invoke the operation
+ string authorizationName = "resource-name123";
+ bool result = await collection.ExistsAsync(authorizationName);
+
+ Console.WriteLine($"Succeeded: {result}");
+}
+
+[Test]
+[Ignore("Only validating compilation of examples")]
+public async Task GetIfExists_BrokerAuthorizationGet()
+{
+ // Generated from example definition: 2024-11-01/BrokerAuthorization_Get_MaximumSet_Gen.json
+ // this example is just showing the usage of "BrokerAuthorizationResource_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
+ Azure.ResourceManager.ArmClient client = new Azure.ResourceManager.ArmClient(cred);
+
+ // this example assumes you already have this BrokerResource created on azure
+ // for more information of creating BrokerResource, please refer to the document of BrokerResource
+ string subscriptionId = "F8C729F9-DF9C-4743-848F-96EE433D8E53";
+ string resourceGroupName = "rgiotoperations";
+ string instanceName = "resource-name123";
+ string brokerName = "resource-name123";
+ ResourceIdentifier brokerResourceId = Azure.ResourceManager.IoTOperations.BrokerResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, instanceName, brokerName);
+ Azure.ResourceManager.IoTOperations.BrokerResource brokerResource = client.GetBrokerResource(brokerResourceId);
+
+ // get the collection of this BrokerAuthorizationResource
+ Azure.ResourceManager.IoTOperations.BrokerAuthorizationResourceCollection collection = brokerResource.GetBrokerAuthorizationResources();
+
+ // invoke the operation
+ string authorizationName = "resource-name123";
+ Azure.NullableResponse response = await collection.GetIfExistsAsync(authorizationName);
+ Azure.ResourceManager.IoTOperations.BrokerAuthorizationResource 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
+ Azure.ResourceManager.IoTOperations.BrokerAuthorizationResourceData resourceData = result.Data;
+ // for demo we just print out the id
+ Console.WriteLine($"Succeeded on id: {resourceData.Id}");
+ }
+}
+}
+}
diff --git a/sdk/iotoperations/Azure.ResourceManager.IoTOperations/samples/Generated/Samples/Sample_BrokerListenerResource.cs b/sdk/iotoperations/Azure.ResourceManager.IoTOperations/samples/Generated/Samples/Sample_BrokerListenerResource.cs
new file mode 100644
index 000000000000..52405ffd98a3
--- /dev/null
+++ b/sdk/iotoperations/Azure.ResourceManager.IoTOperations/samples/Generated/Samples/Sample_BrokerListenerResource.cs
@@ -0,0 +1,249 @@
+// 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.IoTOperations.Models;
+using NUnit.Framework;
+
+namespace Azure.ResourceManager.IoTOperations.Samples
+{
+ public partial class Sample_BrokerListenerResource
+ {
+ [Test]
+ [Ignore("Only validating compilation of examples")]
+ public async Task Get_BrokerListenerGet()
+ {
+ // Generated from example definition: 2024-11-01/BrokerListener_Get_MaximumSet_Gen.json
+ // this example is just showing the usage of "BrokerListenerResource_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 BrokerListenerResource created on azure
+ // for more information of creating BrokerListenerResource, please refer to the document of BrokerListenerResource
+ string subscriptionId = "F8C729F9-DF9C-4743-848F-96EE433D8E53";
+ string resourceGroupName = "rgiotoperations";
+ string instanceName = "resource-name123";
+ string brokerName = "resource-name123";
+ string listenerName = "resource-name123";
+ ResourceIdentifier brokerListenerResourceId = BrokerListenerResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, instanceName, brokerName, listenerName);
+ BrokerListenerResource brokerListenerResource = client.GetBrokerListenerResource(brokerListenerResourceId);
+
+ // invoke the operation
+ BrokerListenerResource result = await brokerListenerResource.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
+ BrokerListenerResourceData 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_BrokerListenerDelete()
+ {
+ // Generated from example definition: 2024-11-01/BrokerListener_Delete_MaximumSet_Gen.json
+ // this example is just showing the usage of "BrokerListenerResource_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 BrokerListenerResource created on azure
+ // for more information of creating BrokerListenerResource, please refer to the document of BrokerListenerResource
+ string subscriptionId = "F8C729F9-DF9C-4743-848F-96EE433D8E53";
+ string resourceGroupName = "rgiotoperations";
+ string instanceName = "resource-name123";
+ string brokerName = "resource-name123";
+ string listenerName = "resource-name123";
+ ResourceIdentifier brokerListenerResourceId = BrokerListenerResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, instanceName, brokerName, listenerName);
+ BrokerListenerResource brokerListenerResource = client.GetBrokerListenerResource(brokerListenerResourceId);
+
+ // invoke the operation
+ await brokerListenerResource.DeleteAsync(WaitUntil.Completed);
+
+ Console.WriteLine("Succeeded");
+ }
+
+ [Test]
+ [Ignore("Only validating compilation of examples")]
+ public async Task Update_BrokerListenerCreateOrUpdateComplex()
+ {
+ // Generated from example definition: 2024-11-01/BrokerListener_CreateOrUpdate_Complex.json
+ // this example is just showing the usage of "BrokerListenerResource_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 BrokerListenerResource created on azure
+ // for more information of creating BrokerListenerResource, please refer to the document of BrokerListenerResource
+ string subscriptionId = "F8C729F9-DF9C-4743-848F-96EE433D8E53";
+ string resourceGroupName = "rgiotoperations";
+ string instanceName = "resource-name123";
+ string brokerName = "resource-name123";
+ string listenerName = "resource-name123";
+ ResourceIdentifier brokerListenerResourceId = BrokerListenerResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, instanceName, brokerName, listenerName);
+ BrokerListenerResource brokerListenerResource = client.GetBrokerListenerResource(brokerListenerResourceId);
+
+ // invoke the operation
+ BrokerListenerResourceData data = new BrokerListenerResourceData(new ExtendedLocation("qmbrfwcpwwhggszhrdjv", ExtendedLocationType.CustomLocation))
+ {
+ Properties = new BrokerListenerProperties(new ListenerPort[]
+ {
+new ListenerPort(8080)
+{
+AuthenticationRef = "example-authentication",
+Protocol = BrokerProtocolType.WebSockets,
+},
+new ListenerPort(8443)
+{
+AuthenticationRef = "example-authentication",
+Protocol = BrokerProtocolType.WebSockets,
+Tls = new TlsCertMethod(TlsCertMethodMode.Automatic)
+{
+CertManagerCertificateSpec = new CertManagerCertificateSpec(new CertManagerIssuerRef("jtmuladdkpasfpoyvewekmiy", CertManagerIssuerKind.Issuer, "example-issuer")),
+},
+},
+new ListenerPort(1883)
+{
+AuthenticationRef = "example-authentication",
+},
+new ListenerPort(8883)
+{
+AuthenticationRef = "example-authentication",
+Tls = new TlsCertMethod(TlsCertMethodMode.Manual)
+{
+ManualSecretRef = "example-secret",
+},
+}
+ })
+ {
+ ServiceType = ServiceType.LoadBalancer,
+ },
+ };
+ ArmOperation lro = await brokerListenerResource.UpdateAsync(WaitUntil.Completed, data);
+ BrokerListenerResource 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
+ BrokerListenerResourceData 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_BrokerListenerCreateOrUpdate()
+ {
+ // Generated from example definition: 2024-11-01/BrokerListener_CreateOrUpdate_MaximumSet_Gen.json
+ // this example is just showing the usage of "BrokerListenerResource_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 BrokerListenerResource created on azure
+ // for more information of creating BrokerListenerResource, please refer to the document of BrokerListenerResource
+ string subscriptionId = "F8C729F9-DF9C-4743-848F-96EE433D8E53";
+ string resourceGroupName = "rgiotoperations";
+ string instanceName = "resource-name123";
+ string brokerName = "resource-name123";
+ string listenerName = "resource-name123";
+ ResourceIdentifier brokerListenerResourceId = BrokerListenerResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, instanceName, brokerName, listenerName);
+ BrokerListenerResource brokerListenerResource = client.GetBrokerListenerResource(brokerListenerResourceId);
+
+ // invoke the operation
+ BrokerListenerResourceData data = new BrokerListenerResourceData(new ExtendedLocation("qmbrfwcpwwhggszhrdjv", ExtendedLocationType.CustomLocation))
+ {
+ Properties = new BrokerListenerProperties(new ListenerPort[]
+ {
+new ListenerPort(1268)
+{
+AuthenticationRef = "tjvdroaqqy",
+AuthorizationRef = "inxhvxnwswyrvt",
+NodePort = 7281,
+Protocol = BrokerProtocolType.Mqtt,
+Tls = new TlsCertMethod(TlsCertMethodMode.Automatic)
+{
+CertManagerCertificateSpec = new CertManagerCertificateSpec(new CertManagerIssuerRef("jtmuladdkpasfpoyvewekmiy", CertManagerIssuerKind.Issuer, "ocwoqpgucvjrsuudtjhb"))
+{
+Duration = "qmpeffoksron",
+SecretName = "oagi",
+RenewBefore = "hutno",
+PrivateKey = new CertManagerPrivateKey(PrivateKeyAlgorithm.Ec256, PrivateKeyRotationPolicy.Always),
+San = new SanForCert(new string[]{"xhvmhrrhgfsapocjeebqtnzarlj"}, new string[]{"zbgugfzcgsmegevzktsnibyuyp"}),
+},
+ManualSecretRef = "secret-name",
+},
+}
+ })
+ {
+ ServiceName = "tpfiszlapdpxktx",
+ ServiceType = ServiceType.ClusterIP,
+ },
+ };
+ ArmOperation lro = await brokerListenerResource.UpdateAsync(WaitUntil.Completed, data);
+ BrokerListenerResource 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
+ BrokerListenerResourceData 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_BrokerListenerCreateOrUpdateSimple()
+ {
+ // Generated from example definition: 2024-11-01/BrokerListener_CreateOrUpdate_Simple.json
+ // this example is just showing the usage of "BrokerListenerResource_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 BrokerListenerResource created on azure
+ // for more information of creating BrokerListenerResource, please refer to the document of BrokerListenerResource
+ string subscriptionId = "F8C729F9-DF9C-4743-848F-96EE433D8E53";
+ string resourceGroupName = "rgiotoperations";
+ string instanceName = "resource-name123";
+ string brokerName = "resource-name123";
+ string listenerName = "resource-name123";
+ ResourceIdentifier brokerListenerResourceId = BrokerListenerResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, instanceName, brokerName, listenerName);
+ BrokerListenerResource brokerListenerResource = client.GetBrokerListenerResource(brokerListenerResourceId);
+
+ // invoke the operation
+ BrokerListenerResourceData data = new BrokerListenerResourceData(new ExtendedLocation("qmbrfwcpwwhggszhrdjv", ExtendedLocationType.CustomLocation))
+ {
+ Properties = new BrokerListenerProperties(new ListenerPort[]
+ {
+new ListenerPort(1883)
+ }),
+ };
+ ArmOperation lro = await brokerListenerResource.UpdateAsync(WaitUntil.Completed, data);
+ BrokerListenerResource 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
+ BrokerListenerResourceData resourceData = result.Data;
+ // for demo we just print out the id
+ Console.WriteLine($"Succeeded on id: {resourceData.Id}");
+ }
+ }
+}
diff --git a/sdk/iotoperations/Azure.ResourceManager.IoTOperations/samples/Generated/Samples/Sample_BrokerListenerResourceCollection.cs b/sdk/iotoperations/Azure.ResourceManager.IoTOperations/samples/Generated/Samples/Sample_BrokerListenerResourceCollection.cs
new file mode 100644
index 000000000000..9f78d8b1c2f5
--- /dev/null
+++ b/sdk/iotoperations/Azure.ResourceManager.IoTOperations/samples/Generated/Samples/Sample_BrokerListenerResourceCollection.cs
@@ -0,0 +1,344 @@
+// 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.IoTOperations.Models;
+using NUnit.Framework;
+
+namespace Azure.ResourceManager.IoTOperations.Samples
+{
+ public partial class Sample_BrokerListenerResourceCollection
+ {
+ [Test]
+ [Ignore("Only validating compilation of examples")]
+ public async Task CreateOrUpdate_BrokerListenerCreateOrUpdateComplex()
+ {
+ // Generated from example definition: 2024-11-01/BrokerListener_CreateOrUpdate_Complex.json
+ // this example is just showing the usage of "BrokerListenerResource_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 BrokerResource created on azure
+ // for more information of creating BrokerResource, please refer to the document of BrokerResource
+ string subscriptionId = "F8C729F9-DF9C-4743-848F-96EE433D8E53";
+ string resourceGroupName = "rgiotoperations";
+ string instanceName = "resource-name123";
+ string brokerName = "resource-name123";
+ ResourceIdentifier brokerResourceId = BrokerResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, instanceName, brokerName);
+ BrokerResource brokerResource = client.GetBrokerResource(brokerResourceId);
+
+ // get the collection of this BrokerListenerResource
+ BrokerListenerResourceCollection collection = brokerResource.GetBrokerListenerResources();
+
+ // invoke the operation
+ string listenerName = "resource-name123";
+ BrokerListenerResourceData data = new BrokerListenerResourceData(new ExtendedLocation("qmbrfwcpwwhggszhrdjv", ExtendedLocationType.CustomLocation))
+ {
+ Properties = new BrokerListenerProperties(new ListenerPort[]
+ {
+new ListenerPort(8080)
+{
+AuthenticationRef = "example-authentication",
+Protocol = BrokerProtocolType.WebSockets,
+},
+new ListenerPort(8443)
+{
+AuthenticationRef = "example-authentication",
+Protocol = BrokerProtocolType.WebSockets,
+Tls = new TlsCertMethod(TlsCertMethodMode.Automatic)
+{
+CertManagerCertificateSpec = new CertManagerCertificateSpec(new CertManagerIssuerRef("jtmuladdkpasfpoyvewekmiy", CertManagerIssuerKind.Issuer, "example-issuer")),
+},
+},
+new ListenerPort(1883)
+{
+AuthenticationRef = "example-authentication",
+},
+new ListenerPort(8883)
+{
+AuthenticationRef = "example-authentication",
+Tls = new TlsCertMethod(TlsCertMethodMode.Manual)
+{
+ManualSecretRef = "example-secret",
+},
+}
+ })
+ {
+ ServiceType = ServiceType.LoadBalancer,
+ },
+ };
+ ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, listenerName, data);
+ BrokerListenerResource 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
+ BrokerListenerResourceData 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_BrokerListenerCreateOrUpdate()
+ {
+ // Generated from example definition: 2024-11-01/BrokerListener_CreateOrUpdate_MaximumSet_Gen.json
+ // this example is just showing the usage of "BrokerListenerResource_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 BrokerResource created on azure
+ // for more information of creating BrokerResource, please refer to the document of BrokerResource
+ string subscriptionId = "F8C729F9-DF9C-4743-848F-96EE433D8E53";
+ string resourceGroupName = "rgiotoperations";
+ string instanceName = "resource-name123";
+ string brokerName = "resource-name123";
+ ResourceIdentifier brokerResourceId = BrokerResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, instanceName, brokerName);
+ BrokerResource brokerResource = client.GetBrokerResource(brokerResourceId);
+
+ // get the collection of this BrokerListenerResource
+ BrokerListenerResourceCollection collection = brokerResource.GetBrokerListenerResources();
+
+ // invoke the operation
+ string listenerName = "resource-name123";
+ BrokerListenerResourceData data = new BrokerListenerResourceData(new ExtendedLocation("qmbrfwcpwwhggszhrdjv", ExtendedLocationType.CustomLocation))
+ {
+ Properties = new BrokerListenerProperties(new ListenerPort[]
+ {
+new ListenerPort(1268)
+{
+AuthenticationRef = "tjvdroaqqy",
+AuthorizationRef = "inxhvxnwswyrvt",
+NodePort = 7281,
+Protocol = BrokerProtocolType.Mqtt,
+Tls = new TlsCertMethod(TlsCertMethodMode.Automatic)
+{
+CertManagerCertificateSpec = new CertManagerCertificateSpec(new CertManagerIssuerRef("jtmuladdkpasfpoyvewekmiy", CertManagerIssuerKind.Issuer, "ocwoqpgucvjrsuudtjhb"))
+{
+Duration = "qmpeffoksron",
+SecretName = "oagi",
+RenewBefore = "hutno",
+PrivateKey = new CertManagerPrivateKey(PrivateKeyAlgorithm.Ec256, PrivateKeyRotationPolicy.Always),
+San = new SanForCert(new string[]{"xhvmhrrhgfsapocjeebqtnzarlj"}, new string[]{"zbgugfzcgsmegevzktsnibyuyp"}),
+},
+ManualSecretRef = "secret-name",
+},
+}
+ })
+ {
+ ServiceName = "tpfiszlapdpxktx",
+ ServiceType = ServiceType.ClusterIP,
+ },
+ };
+ ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, listenerName, data);
+ BrokerListenerResource 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
+ BrokerListenerResourceData 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_BrokerListenerCreateOrUpdateSimple()
+ {
+ // Generated from example definition: 2024-11-01/BrokerListener_CreateOrUpdate_Simple.json
+ // this example is just showing the usage of "BrokerListenerResource_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 BrokerResource created on azure
+ // for more information of creating BrokerResource, please refer to the document of BrokerResource
+ string subscriptionId = "F8C729F9-DF9C-4743-848F-96EE433D8E53";
+ string resourceGroupName = "rgiotoperations";
+ string instanceName = "resource-name123";
+ string brokerName = "resource-name123";
+ ResourceIdentifier brokerResourceId = BrokerResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, instanceName, brokerName);
+ BrokerResource brokerResource = client.GetBrokerResource(brokerResourceId);
+
+ // get the collection of this BrokerListenerResource
+ BrokerListenerResourceCollection collection = brokerResource.GetBrokerListenerResources();
+
+ // invoke the operation
+ string listenerName = "resource-name123";
+ BrokerListenerResourceData data = new BrokerListenerResourceData(new ExtendedLocation("qmbrfwcpwwhggszhrdjv", ExtendedLocationType.CustomLocation))
+ {
+ Properties = new BrokerListenerProperties(new ListenerPort[]
+ {
+new ListenerPort(1883)
+ }),
+ };
+ ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, listenerName, data);
+ BrokerListenerResource 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
+ BrokerListenerResourceData 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_BrokerListenerGet()
+ {
+ // Generated from example definition: 2024-11-01/BrokerListener_Get_MaximumSet_Gen.json
+ // this example is just showing the usage of "BrokerListenerResource_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 BrokerResource created on azure
+ // for more information of creating BrokerResource, please refer to the document of BrokerResource
+ string subscriptionId = "F8C729F9-DF9C-4743-848F-96EE433D8E53";
+ string resourceGroupName = "rgiotoperations";
+ string instanceName = "resource-name123";
+ string brokerName = "resource-name123";
+ ResourceIdentifier brokerResourceId = BrokerResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, instanceName, brokerName);
+ BrokerResource brokerResource = client.GetBrokerResource(brokerResourceId);
+
+ // get the collection of this BrokerListenerResource
+ BrokerListenerResourceCollection collection = brokerResource.GetBrokerListenerResources();
+
+ // invoke the operation
+ string listenerName = "resource-name123";
+ BrokerListenerResource result = await collection.GetAsync(listenerName);
+
+ // 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
+ BrokerListenerResourceData 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_BrokerListenerListByResourceGroup()
+ {
+ // Generated from example definition: 2024-11-01/BrokerListener_ListByResourceGroup_MaximumSet_Gen.json
+ // this example is just showing the usage of "BrokerListenerResource_ListByResourceGroup" operation, for the dependent resources, they will have to be created separately.
+
+ // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this BrokerResource created on azure
+ // for more information of creating BrokerResource, please refer to the document of BrokerResource
+ string subscriptionId = "F8C729F9-DF9C-4743-848F-96EE433D8E53";
+ string resourceGroupName = "rgiotoperations";
+ string instanceName = "resource-name123";
+ string brokerName = "resource-name123";
+ ResourceIdentifier brokerResourceId = BrokerResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, instanceName, brokerName);
+ BrokerResource brokerResource = client.GetBrokerResource(brokerResourceId);
+
+ // get the collection of this BrokerListenerResource
+ BrokerListenerResourceCollection collection = brokerResource.GetBrokerListenerResources();
+
+ // invoke the operation and iterate over the result
+ await foreach (BrokerListenerResource 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
+ BrokerListenerResourceData 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_BrokerListenerGet()
+ {
+ // Generated from example definition: 2024-11-01/BrokerListener_Get_MaximumSet_Gen.json
+ // this example is just showing the usage of "BrokerListenerResource_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 BrokerResource created on azure
+ // for more information of creating BrokerResource, please refer to the document of BrokerResource
+ string subscriptionId = "F8C729F9-DF9C-4743-848F-96EE433D8E53";
+ string resourceGroupName = "rgiotoperations";
+ string instanceName = "resource-name123";
+ string brokerName = "resource-name123";
+ ResourceIdentifier brokerResourceId = BrokerResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, instanceName, brokerName);
+ BrokerResource brokerResource = client.GetBrokerResource(brokerResourceId);
+
+ // get the collection of this BrokerListenerResource
+ BrokerListenerResourceCollection collection = brokerResource.GetBrokerListenerResources();
+
+ // invoke the operation
+ string listenerName = "resource-name123";
+ bool result = await collection.ExistsAsync(listenerName);
+
+ Console.WriteLine($"Succeeded: {result}");
+ }
+
+ [Test]
+ [Ignore("Only validating compilation of examples")]
+ public async Task GetIfExists_BrokerListenerGet()
+ {
+ // Generated from example definition: 2024-11-01/BrokerListener_Get_MaximumSet_Gen.json
+ // this example is just showing the usage of "BrokerListenerResource_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 BrokerResource created on azure
+ // for more information of creating BrokerResource, please refer to the document of BrokerResource
+ string subscriptionId = "F8C729F9-DF9C-4743-848F-96EE433D8E53";
+ string resourceGroupName = "rgiotoperations";
+ string instanceName = "resource-name123";
+ string brokerName = "resource-name123";
+ ResourceIdentifier brokerResourceId = BrokerResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, instanceName, brokerName);
+ BrokerResource brokerResource = client.GetBrokerResource(brokerResourceId);
+
+ // get the collection of this BrokerListenerResource
+ BrokerListenerResourceCollection collection = brokerResource.GetBrokerListenerResources();
+
+ // invoke the operation
+ string listenerName = "resource-name123";
+ NullableResponse response = await collection.GetIfExistsAsync(listenerName);
+ BrokerListenerResource 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
+ BrokerListenerResourceData resourceData = result.Data;
+ // for demo we just print out the id
+ Console.WriteLine($"Succeeded on id: {resourceData.Id}");
+ }
+ }
+ }
+}
diff --git a/sdk/iotoperations/Azure.ResourceManager.IoTOperations/samples/Generated/Samples/Sample_BrokerResource.cs b/sdk/iotoperations/Azure.ResourceManager.IoTOperations/samples/Generated/Samples/Sample_BrokerResource.cs
new file mode 100644
index 000000000000..a8655a9335b4
--- /dev/null
+++ b/sdk/iotoperations/Azure.ResourceManager.IoTOperations/samples/Generated/Samples/Sample_BrokerResource.cs
@@ -0,0 +1,377 @@
+// 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.IoTOperations.Models;
+using NUnit.Framework;
+
+namespace Azure.ResourceManager.IoTOperations.Samples
+{
+ public partial class Sample_BrokerResource
+ {
+ [Test]
+ [Ignore("Only validating compilation of examples")]
+ public async Task Get_BrokerGet()
+ {
+ // Generated from example definition: 2024-11-01/Broker_Get_MaximumSet_Gen.json
+ // this example is just showing the usage of "BrokerResource_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 BrokerResource created on azure
+ // for more information of creating BrokerResource, please refer to the document of BrokerResource
+ string subscriptionId = "F8C729F9-DF9C-4743-848F-96EE433D8E53";
+ string resourceGroupName = "rgiotoperations";
+ string instanceName = "resource-name123";
+ string brokerName = "resource-name123";
+ ResourceIdentifier brokerResourceId = BrokerResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, instanceName, brokerName);
+ BrokerResource brokerResource = client.GetBrokerResource(brokerResourceId);
+
+ // invoke the operation
+ BrokerResource result = await brokerResource.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
+ BrokerResourceData 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_BrokerDelete()
+ {
+ // Generated from example definition: 2024-11-01/Broker_Delete_MaximumSet_Gen.json
+ // this example is just showing the usage of "BrokerResource_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 BrokerResource created on azure
+ // for more information of creating BrokerResource, please refer to the document of BrokerResource
+ string subscriptionId = "F8C729F9-DF9C-4743-848F-96EE433D8E53";
+ string resourceGroupName = "rgiotoperations";
+ string instanceName = "resource-name123";
+ string brokerName = "resource-name123";
+ ResourceIdentifier brokerResourceId = BrokerResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, instanceName, brokerName);
+ BrokerResource brokerResource = client.GetBrokerResource(brokerResourceId);
+
+ // invoke the operation
+ await brokerResource.DeleteAsync(WaitUntil.Completed);
+
+ Console.WriteLine("Succeeded");
+ }
+
+ [Test]
+ [Ignore("Only validating compilation of examples")]
+ public async Task Update_BrokerCreateOrUpdateComplex()
+ {
+ // Generated from example definition: 2024-11-01/Broker_CreateOrUpdate_Complex.json
+ // this example is just showing the usage of "BrokerResource_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 BrokerResource created on azure
+ // for more information of creating BrokerResource, please refer to the document of BrokerResource
+ string subscriptionId = "F8C729F9-DF9C-4743-848F-96EE433D8E53";
+ string resourceGroupName = "rgiotoperations";
+ string instanceName = "resource-name123";
+ string brokerName = "resource-name123";
+ ResourceIdentifier brokerResourceId = BrokerResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, instanceName, brokerName);
+ BrokerResource brokerResource = client.GetBrokerResource(brokerResourceId);
+
+ // invoke the operation
+ BrokerResourceData data = new BrokerResourceData(new ExtendedLocation("qmbrfwcpwwhggszhrdjv", ExtendedLocationType.CustomLocation))
+ {
+ Properties = new BrokerProperties
+ {
+ Cardinality = new Cardinality(new BackendChain(2, 2)
+ {
+ Workers = 2,
+ }, new Frontend(2)
+ {
+ Workers = 2,
+ }),
+ DiskBackedMessageBuffer = new DiskBackedMessageBuffer("50M"),
+ GenerateResourceLimitsCpu = OperationalMode.Enabled,
+ MemoryProfile = BrokerMemoryProfile.Medium,
+ },
+ };
+ ArmOperation lro = await brokerResource.UpdateAsync(WaitUntil.Completed, data);
+ BrokerResource 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
+ BrokerResourceData 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_BrokerCreateOrUpdate()
+ {
+ // Generated from example definition: 2024-11-01/Broker_CreateOrUpdate_MaximumSet_Gen.json
+ // this example is just showing the usage of "BrokerResource_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 BrokerResource created on azure
+ // for more information of creating BrokerResource, please refer to the document of BrokerResource
+ string subscriptionId = "F8C729F9-DF9C-4743-848F-96EE433D8E53";
+ string resourceGroupName = "rgiotoperations";
+ string instanceName = "resource-name123";
+ string brokerName = "resource-name123";
+ ResourceIdentifier brokerResourceId = BrokerResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, instanceName, brokerName);
+ BrokerResource brokerResource = client.GetBrokerResource(brokerResourceId);
+
+ // invoke the operation
+ BrokerResourceData data = new BrokerResourceData(new ExtendedLocation("qmbrfwcpwwhggszhrdjv", ExtendedLocationType.CustomLocation))
+ {
+ Properties = new BrokerProperties
+ {
+ Advanced = new AdvancedSettings
+ {
+ Clients = new ClientConfig
+ {
+ MaxSessionExpirySeconds = 3859,
+ MaxMessageExpirySeconds = 3263,
+ MaxPacketSizeBytes = 3029,
+ SubscriberQueueLimit = new SubscriberQueueLimit
+ {
+ Length = 6L,
+ Strategy = SubscriberMessageDropStrategy.None,
+ },
+ MaxReceiveMaximum = 2365,
+ MaxKeepAliveSeconds = 3744,
+ },
+ EncryptInternalTraffic = OperationalMode.Enabled,
+ InternalCerts = new CertManagerCertOptions("bchrc", "xkafmpgjfifkwwrhkswtopdnne", new CertManagerPrivateKey(PrivateKeyAlgorithm.Ec256, PrivateKeyRotationPolicy.Always)),
+ },
+ Cardinality = new Cardinality(new BackendChain(11, 5)
+ {
+ Workers = 15,
+ }, new Frontend(2)
+ {
+ Workers = 6,
+ }),
+ Diagnostics = new BrokerDiagnostics
+ {
+ LogsLevel = "rnmwokumdmebpmfxxxzvvjfdywotav",
+ MetricsPrometheusPort = 7581,
+ SelfCheck = new SelfCheck
+ {
+ Mode = OperationalMode.Enabled,
+ IntervalSeconds = 158,
+ TimeoutSeconds = 14,
+ },
+ Traces = new Traces
+ {
+ Mode = OperationalMode.Enabled,
+ CacheSizeMegabytes = 28,
+ SelfTracing = new SelfTracing
+ {
+ Mode = OperationalMode.Enabled,
+ IntervalSeconds = 22,
+ },
+ SpanChannelCapacity = 1000,
+ },
+ },
+ DiskBackedMessageBuffer = new DiskBackedMessageBuffer("500M")
+ {
+ EphemeralVolumeClaimSpec = new VolumeClaimSpec
+ {
+ VolumeName = "c",
+ VolumeMode = "rxvpksjuuugqnqzeiprocknbn",
+ StorageClassName = "sseyhrjptkhrqvpdpjmornkqvon",
+ AccessModes = { "nuluhigrbb" },
+ DataSource = new LocalKubernetesReference("wazgyb", "cwhsgxxcxsyppoefm")
+ {
+ ApiGroup = "npqapyksvvpkohujx",
+ },
+ DataSourceRef = new KubernetesReference("odynqzekfzsnawrctaxg", "envszivbbmixbyddzg")
+ {
+ ApiGroup = "mnfnykznjjsoqpfsgdqioupt",
+ Namespace = "etcfzvxqd",
+ },
+ Resources = new VolumeClaimResourceRequirements
+ {
+ Limits =
+{
+["key2719"] = "hmphcrgctu"
+},
+ Requests =
+{
+["key2909"] = "txocprnyrsgvhfrg"
+},
+ },
+ Selector = new VolumeClaimSpecSelector
+ {
+ MatchExpressions = {new VolumeClaimSpecSelectorMatchExpressions("e", OperatorValue.In)
+{
+Values = {"slmpajlywqvuyknipgztsonqyybt"},
+}},
+ MatchLabels =
+{
+["key6673"] = "wlngfalznwxnurzpgxomcxhbqefpr"
+},
+ },
+ },
+ PersistentVolumeClaimSpec = new VolumeClaimSpec
+ {
+ VolumeName = "c",
+ VolumeMode = "rxvpksjuuugqnqzeiprocknbn",
+ StorageClassName = "sseyhrjptkhrqvpdpjmornkqvon",
+ AccessModes = { "nuluhigrbb" },
+ DataSource = new LocalKubernetesReference("wazgyb", "cwhsgxxcxsyppoefm")
+ {
+ ApiGroup = "npqapyksvvpkohujx",
+ },
+ DataSourceRef = new KubernetesReference("odynqzekfzsnawrctaxg", "envszivbbmixbyddzg")
+ {
+ ApiGroup = "mnfnykznjjsoqpfsgdqioupt",
+ Namespace = "etcfzvxqd",
+ },
+ Resources = new VolumeClaimResourceRequirements
+ {
+ Limits =
+{
+["key2719"] = "hmphcrgctu"
+},
+ Requests =
+{
+["key2909"] = "txocprnyrsgvhfrg"
+},
+ },
+ Selector = new VolumeClaimSpecSelector
+ {
+ MatchExpressions = {new VolumeClaimSpecSelectorMatchExpressions("e", OperatorValue.In)
+{
+Values = {"slmpajlywqvuyknipgztsonqyybt"},
+}},
+ MatchLabels =
+{
+["key6673"] = "wlngfalznwxnurzpgxomcxhbqefpr"
+},
+ },
+ },
+ },
+ GenerateResourceLimitsCpu = OperationalMode.Enabled,
+ MemoryProfile = BrokerMemoryProfile.Tiny,
+ },
+ };
+ ArmOperation lro = await brokerResource.UpdateAsync(WaitUntil.Completed, data);
+ BrokerResource 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
+ BrokerResourceData 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_BrokerCreateOrUpdateMinimal()
+ {
+ // Generated from example definition: 2024-11-01/Broker_CreateOrUpdate_Minimal.json
+ // this example is just showing the usage of "BrokerResource_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 BrokerResource created on azure
+ // for more information of creating BrokerResource, please refer to the document of BrokerResource
+ string subscriptionId = "F8C729F9-DF9C-4743-848F-96EE433D8E53";
+ string resourceGroupName = "rgiotoperations";
+ string instanceName = "resource-name123";
+ string brokerName = "resource-name123";
+ ResourceIdentifier brokerResourceId = BrokerResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, instanceName, brokerName);
+ BrokerResource brokerResource = client.GetBrokerResource(brokerResourceId);
+
+ // invoke the operation
+ BrokerResourceData data = new BrokerResourceData(new ExtendedLocation("qmbrfwcpwwhggszhrdjv", ExtendedLocationType.CustomLocation))
+ {
+ Properties = new BrokerProperties
+ {
+ MemoryProfile = BrokerMemoryProfile.Tiny,
+ },
+ };
+ ArmOperation lro = await brokerResource.UpdateAsync(WaitUntil.Completed, data);
+ BrokerResource 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
+ BrokerResourceData 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_BrokerCreateOrUpdateSimple()
+ {
+ // Generated from example definition: 2024-11-01/Broker_CreateOrUpdate_Simple.json
+ // this example is just showing the usage of "BrokerResource_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 BrokerResource created on azure
+ // for more information of creating BrokerResource, please refer to the document of BrokerResource
+ string subscriptionId = "F8C729F9-DF9C-4743-848F-96EE433D8E53";
+ string resourceGroupName = "rgiotoperations";
+ string instanceName = "resource-name123";
+ string brokerName = "resource-name123";
+ ResourceIdentifier brokerResourceId = BrokerResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, instanceName, brokerName);
+ BrokerResource brokerResource = client.GetBrokerResource(brokerResourceId);
+
+ // invoke the operation
+ BrokerResourceData data = new BrokerResourceData(new ExtendedLocation("qmbrfwcpwwhggszhrdjv", ExtendedLocationType.CustomLocation))
+ {
+ Properties = new BrokerProperties
+ {
+ Cardinality = new Cardinality(new BackendChain(2, 2)
+ {
+ Workers = 2,
+ }, new Frontend(2)
+ {
+ Workers = 2,
+ }),
+ GenerateResourceLimitsCpu = OperationalMode.Enabled,
+ MemoryProfile = BrokerMemoryProfile.Low,
+ },
+ };
+ ArmOperation lro = await brokerResource.UpdateAsync(WaitUntil.Completed, data);
+ BrokerResource 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
+ BrokerResourceData resourceData = result.Data;
+ // for demo we just print out the id
+ Console.WriteLine($"Succeeded on id: {resourceData.Id}");
+ }
+ }
+}
diff --git a/sdk/iotoperations/Azure.ResourceManager.IoTOperations/samples/Generated/Samples/Sample_BrokerResourceCollection.cs b/sdk/iotoperations/Azure.ResourceManager.IoTOperations/samples/Generated/Samples/Sample_BrokerResourceCollection.cs
new file mode 100644
index 000000000000..2f97e8785a88
--- /dev/null
+++ b/sdk/iotoperations/Azure.ResourceManager.IoTOperations/samples/Generated/Samples/Sample_BrokerResourceCollection.cs
@@ -0,0 +1,473 @@
+// 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.IoTOperations.Models;
+using NUnit.Framework;
+
+namespace Azure.ResourceManager.IoTOperations.Samples
+{
+ public partial class Sample_BrokerResourceCollection
+ {
+ [Test]
+ [Ignore("Only validating compilation of examples")]
+ public async Task CreateOrUpdate_BrokerCreateOrUpdateComplex()
+ {
+ // Generated from example definition: 2024-11-01/Broker_CreateOrUpdate_Complex.json
+ // this example is just showing the usage of "BrokerResource_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 InstanceResource created on azure
+ // for more information of creating InstanceResource, please refer to the document of InstanceResource
+ string subscriptionId = "F8C729F9-DF9C-4743-848F-96EE433D8E53";
+ string resourceGroupName = "rgiotoperations";
+ string instanceName = "resource-name123";
+ ResourceIdentifier instanceResourceId = InstanceResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, instanceName);
+ InstanceResource instanceResource = client.GetInstanceResource(instanceResourceId);
+
+ // get the collection of this BrokerResource
+ BrokerResourceCollection collection = instanceResource.GetBrokerResources();
+
+ // invoke the operation
+ string brokerName = "resource-name123";
+ BrokerResourceData data = new BrokerResourceData(new ExtendedLocation("qmbrfwcpwwhggszhrdjv", ExtendedLocationType.CustomLocation))
+ {
+ Properties = new BrokerProperties
+ {
+ Cardinality = new Cardinality(new BackendChain(2, 2)
+ {
+ Workers = 2,
+ }, new Frontend(2)
+ {
+ Workers = 2,
+ }),
+ DiskBackedMessageBuffer = new DiskBackedMessageBuffer("50M"),
+ GenerateResourceLimitsCpu = OperationalMode.Enabled,
+ MemoryProfile = BrokerMemoryProfile.Medium,
+ },
+ };
+ ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, brokerName, data);
+ BrokerResource 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
+ BrokerResourceData 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_BrokerCreateOrUpdate()
+ {
+ // Generated from example definition: 2024-11-01/Broker_CreateOrUpdate_MaximumSet_Gen.json
+ // this example is just showing the usage of "BrokerResource_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 InstanceResource created on azure
+ // for more information of creating InstanceResource, please refer to the document of InstanceResource
+ string subscriptionId = "F8C729F9-DF9C-4743-848F-96EE433D8E53";
+ string resourceGroupName = "rgiotoperations";
+ string instanceName = "resource-name123";
+ ResourceIdentifier instanceResourceId = InstanceResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, instanceName);
+ InstanceResource instanceResource = client.GetInstanceResource(instanceResourceId);
+
+ // get the collection of this BrokerResource
+ BrokerResourceCollection collection = instanceResource.GetBrokerResources();
+
+ // invoke the operation
+ string brokerName = "resource-name123";
+ BrokerResourceData data = new BrokerResourceData(new ExtendedLocation("qmbrfwcpwwhggszhrdjv", ExtendedLocationType.CustomLocation))
+ {
+ Properties = new BrokerProperties
+ {
+ Advanced = new AdvancedSettings
+ {
+ Clients = new ClientConfig
+ {
+ MaxSessionExpirySeconds = 3859,
+ MaxMessageExpirySeconds = 3263,
+ MaxPacketSizeBytes = 3029,
+ SubscriberQueueLimit = new SubscriberQueueLimit
+ {
+ Length = 6L,
+ Strategy = SubscriberMessageDropStrategy.None,
+ },
+ MaxReceiveMaximum = 2365,
+ MaxKeepAliveSeconds = 3744,
+ },
+ EncryptInternalTraffic = OperationalMode.Enabled,
+ InternalCerts = new CertManagerCertOptions("bchrc", "xkafmpgjfifkwwrhkswtopdnne", new CertManagerPrivateKey(PrivateKeyAlgorithm.Ec256, PrivateKeyRotationPolicy.Always)),
+ },
+ Cardinality = new Cardinality(new BackendChain(11, 5)
+ {
+ Workers = 15,
+ }, new Frontend(2)
+ {
+ Workers = 6,
+ }),
+ Diagnostics = new BrokerDiagnostics
+ {
+ LogsLevel = "rnmwokumdmebpmfxxxzvvjfdywotav",
+ MetricsPrometheusPort = 7581,
+ SelfCheck = new SelfCheck
+ {
+ Mode = OperationalMode.Enabled,
+ IntervalSeconds = 158,
+ TimeoutSeconds = 14,
+ },
+ Traces = new Traces
+ {
+ Mode = OperationalMode.Enabled,
+ CacheSizeMegabytes = 28,
+ SelfTracing = new SelfTracing
+ {
+ Mode = OperationalMode.Enabled,
+ IntervalSeconds = 22,
+ },
+ SpanChannelCapacity = 1000,
+ },
+ },
+ DiskBackedMessageBuffer = new DiskBackedMessageBuffer("500M")
+ {
+ EphemeralVolumeClaimSpec = new VolumeClaimSpec
+ {
+ VolumeName = "c",
+ VolumeMode = "rxvpksjuuugqnqzeiprocknbn",
+ StorageClassName = "sseyhrjptkhrqvpdpjmornkqvon",
+ AccessModes = { "nuluhigrbb" },
+ DataSource = new LocalKubernetesReference("wazgyb", "cwhsgxxcxsyppoefm")
+ {
+ ApiGroup = "npqapyksvvpkohujx",
+ },
+ DataSourceRef = new KubernetesReference("odynqzekfzsnawrctaxg", "envszivbbmixbyddzg")
+ {
+ ApiGroup = "mnfnykznjjsoqpfsgdqioupt",
+ Namespace = "etcfzvxqd",
+ },
+ Resources = new VolumeClaimResourceRequirements
+ {
+ Limits =
+{
+["key2719"] = "hmphcrgctu"
+},
+ Requests =
+{
+["key2909"] = "txocprnyrsgvhfrg"
+},
+ },
+ Selector = new VolumeClaimSpecSelector
+ {
+ MatchExpressions = {new VolumeClaimSpecSelectorMatchExpressions("e", OperatorValue.In)
+{
+Values = {"slmpajlywqvuyknipgztsonqyybt"},
+}},
+ MatchLabels =
+{
+["key6673"] = "wlngfalznwxnurzpgxomcxhbqefpr"
+},
+ },
+ },
+ PersistentVolumeClaimSpec = new VolumeClaimSpec
+ {
+ VolumeName = "c",
+ VolumeMode = "rxvpksjuuugqnqzeiprocknbn",
+ StorageClassName = "sseyhrjptkhrqvpdpjmornkqvon",
+ AccessModes = { "nuluhigrbb" },
+ DataSource = new LocalKubernetesReference("wazgyb", "cwhsgxxcxsyppoefm")
+ {
+ ApiGroup = "npqapyksvvpkohujx",
+ },
+ DataSourceRef = new KubernetesReference("odynqzekfzsnawrctaxg", "envszivbbmixbyddzg")
+ {
+ ApiGroup = "mnfnykznjjsoqpfsgdqioupt",
+ Namespace = "etcfzvxqd",
+ },
+ Resources = new VolumeClaimResourceRequirements
+ {
+ Limits =
+{
+["key2719"] = "hmphcrgctu"
+},
+ Requests =
+{
+["key2909"] = "txocprnyrsgvhfrg"
+},
+ },
+ Selector = new VolumeClaimSpecSelector
+ {
+ MatchExpressions = {new VolumeClaimSpecSelectorMatchExpressions("e", OperatorValue.In)
+{
+Values = {"slmpajlywqvuyknipgztsonqyybt"},
+}},
+ MatchLabels =
+{
+["key6673"] = "wlngfalznwxnurzpgxomcxhbqefpr"
+},
+ },
+ },
+ },
+ GenerateResourceLimitsCpu = OperationalMode.Enabled,
+ MemoryProfile = BrokerMemoryProfile.Tiny,
+ },
+ };
+ ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, brokerName, data);
+ BrokerResource 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
+ BrokerResourceData 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_BrokerCreateOrUpdateMinimal()
+ {
+ // Generated from example definition: 2024-11-01/Broker_CreateOrUpdate_Minimal.json
+ // this example is just showing the usage of "BrokerResource_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 InstanceResource created on azure
+ // for more information of creating InstanceResource, please refer to the document of InstanceResource
+ string subscriptionId = "F8C729F9-DF9C-4743-848F-96EE433D8E53";
+ string resourceGroupName = "rgiotoperations";
+ string instanceName = "resource-name123";
+ ResourceIdentifier instanceResourceId = InstanceResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, instanceName);
+ InstanceResource instanceResource = client.GetInstanceResource(instanceResourceId);
+
+ // get the collection of this BrokerResource
+ BrokerResourceCollection collection = instanceResource.GetBrokerResources();
+
+ // invoke the operation
+ string brokerName = "resource-name123";
+ BrokerResourceData data = new BrokerResourceData(new ExtendedLocation("qmbrfwcpwwhggszhrdjv", ExtendedLocationType.CustomLocation))
+ {
+ Properties = new BrokerProperties
+ {
+ MemoryProfile = BrokerMemoryProfile.Tiny,
+ },
+ };
+ ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, brokerName, data);
+ BrokerResource 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
+ BrokerResourceData 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_BrokerCreateOrUpdateSimple()
+ {
+ // Generated from example definition: 2024-11-01/Broker_CreateOrUpdate_Simple.json
+ // this example is just showing the usage of "BrokerResource_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 InstanceResource created on azure
+ // for more information of creating InstanceResource, please refer to the document of InstanceResource
+ string subscriptionId = "F8C729F9-DF9C-4743-848F-96EE433D8E53";
+ string resourceGroupName = "rgiotoperations";
+ string instanceName = "resource-name123";
+ ResourceIdentifier instanceResourceId = InstanceResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, instanceName);
+ InstanceResource instanceResource = client.GetInstanceResource(instanceResourceId);
+
+ // get the collection of this BrokerResource
+ BrokerResourceCollection collection = instanceResource.GetBrokerResources();
+
+ // invoke the operation
+ string brokerName = "resource-name123";
+ BrokerResourceData data = new BrokerResourceData(new ExtendedLocation("qmbrfwcpwwhggszhrdjv", ExtendedLocationType.CustomLocation))
+ {
+ Properties = new BrokerProperties
+ {
+ Cardinality = new Cardinality(new BackendChain(2, 2)
+ {
+ Workers = 2,
+ }, new Frontend(2)
+ {
+ Workers = 2,
+ }),
+ GenerateResourceLimitsCpu = OperationalMode.Enabled,
+ MemoryProfile = BrokerMemoryProfile.Low,
+ },
+ };
+ ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, brokerName, data);
+ BrokerResource 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
+ BrokerResourceData 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_BrokerGet()
+ {
+ // Generated from example definition: 2024-11-01/Broker_Get_MaximumSet_Gen.json
+ // this example is just showing the usage of "BrokerResource_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 InstanceResource created on azure
+ // for more information of creating InstanceResource, please refer to the document of InstanceResource
+ string subscriptionId = "F8C729F9-DF9C-4743-848F-96EE433D8E53";
+ string resourceGroupName = "rgiotoperations";
+ string instanceName = "resource-name123";
+ ResourceIdentifier instanceResourceId = InstanceResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, instanceName);
+ InstanceResource instanceResource = client.GetInstanceResource(instanceResourceId);
+
+ // get the collection of this BrokerResource
+ BrokerResourceCollection collection = instanceResource.GetBrokerResources();
+
+ // invoke the operation
+ string brokerName = "resource-name123";
+ BrokerResource result = await collection.GetAsync(brokerName);
+
+ // 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
+ BrokerResourceData 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_BrokerListByResourceGroup()
+ {
+ // Generated from example definition: 2024-11-01/Broker_ListByResourceGroup_MaximumSet_Gen.json
+ // this example is just showing the usage of "BrokerResource_ListByResourceGroup" operation, for the dependent resources, they will have to be created separately.
+
+ // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this InstanceResource created on azure
+ // for more information of creating InstanceResource, please refer to the document of InstanceResource
+ string subscriptionId = "F8C729F9-DF9C-4743-848F-96EE433D8E53";
+ string resourceGroupName = "rgiotoperations";
+ string instanceName = "resource-name123";
+ ResourceIdentifier instanceResourceId = InstanceResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, instanceName);
+ InstanceResource instanceResource = client.GetInstanceResource(instanceResourceId);
+
+ // get the collection of this BrokerResource
+ BrokerResourceCollection collection = instanceResource.GetBrokerResources();
+
+ // invoke the operation and iterate over the result
+ await foreach (BrokerResource 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
+ BrokerResourceData 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_BrokerGet()
+ {
+ // Generated from example definition: 2024-11-01/Broker_Get_MaximumSet_Gen.json
+ // this example is just showing the usage of "BrokerResource_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 InstanceResource created on azure
+ // for more information of creating InstanceResource, please refer to the document of InstanceResource
+ string subscriptionId = "F8C729F9-DF9C-4743-848F-96EE433D8E53";
+ string resourceGroupName = "rgiotoperations";
+ string instanceName = "resource-name123";
+ ResourceIdentifier instanceResourceId = InstanceResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, instanceName);
+ InstanceResource instanceResource = client.GetInstanceResource(instanceResourceId);
+
+ // get the collection of this BrokerResource
+ BrokerResourceCollection collection = instanceResource.GetBrokerResources();
+
+ // invoke the operation
+ string brokerName = "resource-name123";
+ bool result = await collection.ExistsAsync(brokerName);
+
+ Console.WriteLine($"Succeeded: {result}");
+ }
+
+ [Test]
+ [Ignore("Only validating compilation of examples")]
+ public async Task GetIfExists_BrokerGet()
+ {
+ // Generated from example definition: 2024-11-01/Broker_Get_MaximumSet_Gen.json
+ // this example is just showing the usage of "BrokerResource_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 InstanceResource created on azure
+ // for more information of creating InstanceResource, please refer to the document of InstanceResource
+ string subscriptionId = "F8C729F9-DF9C-4743-848F-96EE433D8E53";
+ string resourceGroupName = "rgiotoperations";
+ string instanceName = "resource-name123";
+ ResourceIdentifier instanceResourceId = InstanceResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, instanceName);
+ InstanceResource instanceResource = client.GetInstanceResource(instanceResourceId);
+
+ // get the collection of this BrokerResource
+ BrokerResourceCollection collection = instanceResource.GetBrokerResources();
+
+ // invoke the operation
+ string brokerName = "resource-name123";
+ NullableResponse response = await collection.GetIfExistsAsync(brokerName);
+ BrokerResource 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
+ BrokerResourceData resourceData = result.Data;
+ // for demo we just print out the id
+ Console.WriteLine($"Succeeded on id: {resourceData.Id}");
+ }
+ }
+ }
+}
diff --git a/sdk/iotoperations/Azure.ResourceManager.IoTOperations/samples/Generated/Samples/Sample_DataflowEndpointResource.cs b/sdk/iotoperations/Azure.ResourceManager.IoTOperations/samples/Generated/Samples/Sample_DataflowEndpointResource.cs
new file mode 100644
index 000000000000..8208963516f3
--- /dev/null
+++ b/sdk/iotoperations/Azure.ResourceManager.IoTOperations/samples/Generated/Samples/Sample_DataflowEndpointResource.cs
@@ -0,0 +1,642 @@
+// 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.IoTOperations.Models;
+using NUnit.Framework;
+
+namespace Azure.ResourceManager.IoTOperations.Samples
+{
+ public partial class Sample_DataflowEndpointResource
+ {
+ [Test]
+ [Ignore("Only validating compilation of examples")]
+ public async Task Get_DataflowEndpointGet()
+ {
+ // Generated from example definition: 2024-11-01/DataflowEndpoint_Get_MaximumSet_Gen.json
+ // this example is just showing the usage of "DataflowEndpointResource_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 DataflowEndpointResource created on azure
+ // for more information of creating DataflowEndpointResource, please refer to the document of DataflowEndpointResource
+ string subscriptionId = "F8C729F9-DF9C-4743-848F-96EE433D8E53";
+ string resourceGroupName = "rgiotoperations";
+ string instanceName = "resource-name123";
+ string dataflowEndpointName = "resource-name123";
+ ResourceIdentifier dataflowEndpointResourceId = DataflowEndpointResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, instanceName, dataflowEndpointName);
+ DataflowEndpointResource dataflowEndpointResource = client.GetDataflowEndpointResource(dataflowEndpointResourceId);
+
+ // invoke the operation
+ DataflowEndpointResource result = await dataflowEndpointResource.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
+ DataflowEndpointResourceData 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_DataflowEndpointDelete()
+ {
+ // Generated from example definition: 2024-11-01/DataflowEndpoint_Delete_MaximumSet_Gen.json
+ // this example is just showing the usage of "DataflowEndpointResource_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 DataflowEndpointResource created on azure
+ // for more information of creating DataflowEndpointResource, please refer to the document of DataflowEndpointResource
+ string subscriptionId = "F8C729F9-DF9C-4743-848F-96EE433D8E53";
+ string resourceGroupName = "rgiotoperations";
+ string instanceName = "resource-name123";
+ string dataflowEndpointName = "resource-name123";
+ ResourceIdentifier dataflowEndpointResourceId = DataflowEndpointResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, instanceName, dataflowEndpointName);
+ DataflowEndpointResource dataflowEndpointResource = client.GetDataflowEndpointResource(dataflowEndpointResourceId);
+
+ // invoke the operation
+ await dataflowEndpointResource.DeleteAsync(WaitUntil.Completed);
+
+ Console.WriteLine("Succeeded");
+ }
+
+ [Test]
+ [Ignore("Only validating compilation of examples")]
+ public async Task Update_DataflowEndpointCreateOrUpdateADLSv2()
+ {
+ // Generated from example definition: 2024-11-01/DataflowEndpoint_CreateOrUpdate_ADLSv2.json
+ // this example is just showing the usage of "DataflowEndpointResource_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 DataflowEndpointResource created on azure
+ // for more information of creating DataflowEndpointResource, please refer to the document of DataflowEndpointResource
+ string subscriptionId = "F8C729F9-DF9C-4743-848F-96EE433D8E53";
+ string resourceGroupName = "rgiotoperations";
+ string instanceName = "resource-name123";
+ string dataflowEndpointName = "adlsv2-endpoint";
+ ResourceIdentifier dataflowEndpointResourceId = DataflowEndpointResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, instanceName, dataflowEndpointName);
+ DataflowEndpointResource dataflowEndpointResource = client.GetDataflowEndpointResource(dataflowEndpointResourceId);
+
+ // invoke the operation
+ DataflowEndpointResourceData data = new DataflowEndpointResourceData(new ExtendedLocation("qmbrfwcpwwhggszhrdjv", ExtendedLocationType.CustomLocation))
+ {
+ Properties = new DataflowEndpointProperties(EndpointType.DataLakeStorage)
+ {
+ DataLakeStorageSettings = new DataflowEndpointDataLakeStorage(new DataflowEndpointDataLakeStorageAuthentication(DataLakeStorageAuthMethod.AccessToken)
+ {
+ AccessTokenSecretRef = "my-secret",
+ }, "example.blob.core.windows.net"),
+ },
+ };
+ ArmOperation lro = await dataflowEndpointResource.UpdateAsync(WaitUntil.Completed, data);
+ DataflowEndpointResource 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
+ DataflowEndpointResourceData 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_DataflowEndpointCreateOrUpdateADX()
+ {
+ // Generated from example definition: 2024-11-01/DataflowEndpoint_CreateOrUpdate_ADX.json
+ // this example is just showing the usage of "DataflowEndpointResource_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 DataflowEndpointResource created on azure
+ // for more information of creating DataflowEndpointResource, please refer to the document of DataflowEndpointResource
+ string subscriptionId = "F8C729F9-DF9C-4743-848F-96EE433D8E53";
+ string resourceGroupName = "rgiotoperations";
+ string instanceName = "resource-name123";
+ string dataflowEndpointName = "adx-endpoint";
+ ResourceIdentifier dataflowEndpointResourceId = DataflowEndpointResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, instanceName, dataflowEndpointName);
+ DataflowEndpointResource dataflowEndpointResource = client.GetDataflowEndpointResource(dataflowEndpointResourceId);
+
+ // invoke the operation
+ DataflowEndpointResourceData data = new DataflowEndpointResourceData(new ExtendedLocation("qmbrfwcpwwhggszhrdjv", ExtendedLocationType.CustomLocation))
+ {
+ Properties = new DataflowEndpointProperties(EndpointType.DataExplorer)
+ {
+ DataExplorerSettings = new DataflowEndpointDataExplorer(new DataflowEndpointDataExplorerAuthentication(DataExplorerAuthMethod.SystemAssignedManagedIdentity), "example-database", "example.westeurope.kusto.windows.net")
+ {
+ Batching = new BatchingConfiguration
+ {
+ LatencySeconds = 9312,
+ MaxMessages = 9028,
+ },
+ },
+ },
+ };
+ ArmOperation lro = await dataflowEndpointResource.UpdateAsync(WaitUntil.Completed, data);
+ DataflowEndpointResource 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
+ DataflowEndpointResourceData 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_DataflowEndpointCreateOrUpdateAIO()
+ {
+ // Generated from example definition: 2024-11-01/DataflowEndpoint_CreateOrUpdate_AIO.json
+ // this example is just showing the usage of "DataflowEndpointResource_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 DataflowEndpointResource created on azure
+ // for more information of creating DataflowEndpointResource, please refer to the document of DataflowEndpointResource
+ string subscriptionId = "F8C729F9-DF9C-4743-848F-96EE433D8E53";
+ string resourceGroupName = "rgiotoperations";
+ string instanceName = "resource-name123";
+ string dataflowEndpointName = "aio-builtin-broker-endpoint";
+ ResourceIdentifier dataflowEndpointResourceId = DataflowEndpointResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, instanceName, dataflowEndpointName);
+ DataflowEndpointResource dataflowEndpointResource = client.GetDataflowEndpointResource(dataflowEndpointResourceId);
+
+ // invoke the operation
+ DataflowEndpointResourceData data = new DataflowEndpointResourceData(new ExtendedLocation("qmbrfwcpwwhggszhrdjv", ExtendedLocationType.CustomLocation))
+ {
+ Properties = new DataflowEndpointProperties(EndpointType.Mqtt)
+ {
+ MqttSettings = new DataflowEndpointMqtt(new DataflowEndpointMqttAuthentication(default)
+ {
+ ServiceAccountTokenAudience = "aio-internal",
+ })
+ {
+ Host = "aio-broker:18883",
+ Tls = new TlsProperties
+ {
+ Mode = OperationalMode.Enabled,
+ TrustedCaCertificateConfigMapRef = "aio-ca-trust-bundle-test-only",
+ },
+ },
+ },
+ };
+ ArmOperation lro = await dataflowEndpointResource.UpdateAsync(WaitUntil.Completed, data);
+ DataflowEndpointResource 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
+ DataflowEndpointResourceData 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_DataflowEndpointCreateOrUpdateEventGrid()
+ {
+ // Generated from example definition: 2024-11-01/DataflowEndpoint_CreateOrUpdate_EventGrid.json
+ // this example is just showing the usage of "DataflowEndpointResource_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 DataflowEndpointResource created on azure
+ // for more information of creating DataflowEndpointResource, please refer to the document of DataflowEndpointResource
+ string subscriptionId = "F8C729F9-DF9C-4743-848F-96EE433D8E53";
+ string resourceGroupName = "rgiotoperations";
+ string instanceName = "resource-name123";
+ string dataflowEndpointName = "event-grid-endpoint";
+ ResourceIdentifier dataflowEndpointResourceId = DataflowEndpointResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, instanceName, dataflowEndpointName);
+ DataflowEndpointResource dataflowEndpointResource = client.GetDataflowEndpointResource(dataflowEndpointResourceId);
+
+ // invoke the operation
+ DataflowEndpointResourceData data = new DataflowEndpointResourceData(new ExtendedLocation("qmbrfwcpwwhggszhrdjv", ExtendedLocationType.CustomLocation))
+ {
+ Properties = new DataflowEndpointProperties(EndpointType.Mqtt)
+ {
+ MqttSettings = new DataflowEndpointMqtt(new DataflowEndpointMqttAuthentication(MqttAuthMethod.SystemAssignedManagedIdentity))
+ {
+ Host = "example.westeurope-1.ts.eventgrid.azure.net:8883",
+ Tls = new TlsProperties
+ {
+ Mode = OperationalMode.Enabled,
+ },
+ },
+ },
+ };
+ ArmOperation lro = await dataflowEndpointResource.UpdateAsync(WaitUntil.Completed, data);
+ DataflowEndpointResource 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
+ DataflowEndpointResourceData 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_DataflowEndpointCreateOrUpdateEventHub()
+ {
+ // Generated from example definition: 2024-11-01/DataflowEndpoint_CreateOrUpdate_EventHub.json
+ // this example is just showing the usage of "DataflowEndpointResource_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 DataflowEndpointResource created on azure
+ // for more information of creating DataflowEndpointResource, please refer to the document of DataflowEndpointResource
+ string subscriptionId = "F8C729F9-DF9C-4743-848F-96EE433D8E53";
+ string resourceGroupName = "rgiotoperations";
+ string instanceName = "resource-name123";
+ string dataflowEndpointName = "event-hub-endpoint";
+ ResourceIdentifier dataflowEndpointResourceId = DataflowEndpointResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, instanceName, dataflowEndpointName);
+ DataflowEndpointResource dataflowEndpointResource = client.GetDataflowEndpointResource(dataflowEndpointResourceId);
+
+ // invoke the operation
+ DataflowEndpointResourceData data = new DataflowEndpointResourceData(new ExtendedLocation("qmbrfwcpwwhggszhrdjv", ExtendedLocationType.CustomLocation))
+ {
+ Properties = new DataflowEndpointProperties(EndpointType.Kafka)
+ {
+ KafkaSettings = new DataflowEndpointKafka(new DataflowEndpointKafkaAuthentication(KafkaAuthMethod.SystemAssignedManagedIdentity), "example.servicebus.windows.net:9093")
+ {
+ ConsumerGroupId = "aiodataflows",
+ Tls = new TlsProperties
+ {
+ Mode = OperationalMode.Enabled,
+ },
+ },
+ },
+ };
+ ArmOperation lro = await dataflowEndpointResource.UpdateAsync(WaitUntil.Completed, data);
+ DataflowEndpointResource 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
+ DataflowEndpointResourceData 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_DataflowEndpointCreateOrUpdateFabric()
+ {
+ // Generated from example definition: 2024-11-01/DataflowEndpoint_CreateOrUpdate_Fabric.json
+ // this example is just showing the usage of "DataflowEndpointResource_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 DataflowEndpointResource created on azure
+ // for more information of creating DataflowEndpointResource, please refer to the document of DataflowEndpointResource
+ string subscriptionId = "F8C729F9-DF9C-4743-848F-96EE433D8E53";
+ string resourceGroupName = "rgiotoperations";
+ string instanceName = "resource-name123";
+ string dataflowEndpointName = "fabric-endpoint";
+ ResourceIdentifier dataflowEndpointResourceId = DataflowEndpointResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, instanceName, dataflowEndpointName);
+ DataflowEndpointResource dataflowEndpointResource = client.GetDataflowEndpointResource(dataflowEndpointResourceId);
+
+ // invoke the operation
+ DataflowEndpointResourceData data = new DataflowEndpointResourceData(new ExtendedLocation("qmbrfwcpwwhggszhrdjv", ExtendedLocationType.CustomLocation))
+ {
+ Properties = new DataflowEndpointProperties(EndpointType.FabricOneLake)
+ {
+ FabricOneLakeSettings = new DataflowEndpointFabricOneLake(new DataflowEndpointFabricOneLakeAuthentication(FabricOneLakeAuthMethod.SystemAssignedManagedIdentity), new DataflowEndpointFabricOneLakeNames("example-lakehouse", "example-workspace"), DataflowEndpointFabricPathType.Tables, "onelake.dfs.fabric.microsoft.com"),
+ },
+ };
+ ArmOperation lro = await dataflowEndpointResource.UpdateAsync(WaitUntil.Completed, data);
+ DataflowEndpointResource 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
+ DataflowEndpointResourceData 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_DataflowEndpointCreateOrUpdateKafka()
+ {
+ // Generated from example definition: 2024-11-01/DataflowEndpoint_CreateOrUpdate_Kafka.json
+ // this example is just showing the usage of "DataflowEndpointResource_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 DataflowEndpointResource created on azure
+ // for more information of creating DataflowEndpointResource, please refer to the document of DataflowEndpointResource
+ string subscriptionId = "F8C729F9-DF9C-4743-848F-96EE433D8E53";
+ string resourceGroupName = "rgiotoperations";
+ string instanceName = "resource-name123";
+ string dataflowEndpointName = "generic-kafka-endpoint";
+ ResourceIdentifier dataflowEndpointResourceId = DataflowEndpointResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, instanceName, dataflowEndpointName);
+ DataflowEndpointResource dataflowEndpointResource = client.GetDataflowEndpointResource(dataflowEndpointResourceId);
+
+ // invoke the operation
+ DataflowEndpointResourceData data = new DataflowEndpointResourceData(new ExtendedLocation("qmbrfwcpwwhggszhrdjv", ExtendedLocationType.CustomLocation))
+ {
+ Properties = new DataflowEndpointProperties(EndpointType.Kafka)
+ {
+ KafkaSettings = new DataflowEndpointKafka(new DataflowEndpointKafkaAuthentication(KafkaAuthMethod.Sasl)
+ {
+ SaslSettings = new DataflowEndpointAuthenticationSasl(DataflowEndpointAuthenticationSaslType.Plain, "my-secret"),
+ }, "example.kafka.local:9093")
+ {
+ ConsumerGroupId = "dataflows",
+ Batching = new DataflowEndpointKafkaBatching
+ {
+ Mode = OperationalMode.Enabled,
+ LatencyMs = 5,
+ MaxBytes = 1000000,
+ MaxMessages = 100000,
+ },
+ CopyMqttProperties = OperationalMode.Enabled,
+ Compression = DataflowEndpointKafkaCompression.Gzip,
+ KafkaAcks = DataflowEndpointKafkaAck.All,
+ PartitionStrategy = DataflowEndpointKafkaPartitionStrategy.Default,
+ Tls = new TlsProperties
+ {
+ Mode = OperationalMode.Enabled,
+ TrustedCaCertificateConfigMapRef = "ca-certificates",
+ },
+ CloudEventAttributes = CloudEventAttributeType.Propagate,
+ },
+ },
+ };
+ ArmOperation lro = await dataflowEndpointResource.UpdateAsync(WaitUntil.Completed, data);
+ DataflowEndpointResource 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
+ DataflowEndpointResourceData 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_DataflowEndpointCreateOrUpdateLocalStorage()
+ {
+ // Generated from example definition: 2024-11-01/DataflowEndpoint_CreateOrUpdate_LocalStorage.json
+ // this example is just showing the usage of "DataflowEndpointResource_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 DataflowEndpointResource created on azure
+ // for more information of creating DataflowEndpointResource, please refer to the document of DataflowEndpointResource
+ string subscriptionId = "F8C729F9-DF9C-4743-848F-96EE433D8E53";
+ string resourceGroupName = "rgiotoperations";
+ string instanceName = "resource-name123";
+ string dataflowEndpointName = "local-storage-endpoint";
+ ResourceIdentifier dataflowEndpointResourceId = DataflowEndpointResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, instanceName, dataflowEndpointName);
+ DataflowEndpointResource dataflowEndpointResource = client.GetDataflowEndpointResource(dataflowEndpointResourceId);
+
+ // invoke the operation
+ DataflowEndpointResourceData data = new DataflowEndpointResourceData(new ExtendedLocation("qmbrfwcpwwhggszhrdjv", ExtendedLocationType.CustomLocation))
+ {
+ Properties = new DataflowEndpointProperties(EndpointType.LocalStorage)
+ {
+ LocalStoragePersistentVolumeClaimRef = "example-pvc",
+ },
+ };
+ ArmOperation lro = await dataflowEndpointResource.UpdateAsync(WaitUntil.Completed, data);
+ DataflowEndpointResource 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
+ DataflowEndpointResourceData 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_DataflowEndpointCreateOrUpdateMQTT()
+ {
+ // Generated from example definition: 2024-11-01/DataflowEndpoint_CreateOrUpdate_MQTT.json
+ // this example is just showing the usage of "DataflowEndpointResource_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 DataflowEndpointResource created on azure
+ // for more information of creating DataflowEndpointResource, please refer to the document of DataflowEndpointResource
+ string subscriptionId = "F8C729F9-DF9C-4743-848F-96EE433D8E53";
+ string resourceGroupName = "rgiotoperations";
+ string instanceName = "resource-name123";
+ string dataflowEndpointName = "generic-mqtt-broker-endpoint";
+ ResourceIdentifier dataflowEndpointResourceId = DataflowEndpointResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, instanceName, dataflowEndpointName);
+ DataflowEndpointResource dataflowEndpointResource = client.GetDataflowEndpointResource(dataflowEndpointResourceId);
+
+ // invoke the operation
+ DataflowEndpointResourceData data = new DataflowEndpointResourceData(new ExtendedLocation("qmbrfwcpwwhggszhrdjv", ExtendedLocationType.CustomLocation))
+ {
+ Properties = new DataflowEndpointProperties(EndpointType.Mqtt)
+ {
+ MqttSettings = new DataflowEndpointMqtt(new DataflowEndpointMqttAuthentication(MqttAuthMethod.X509Certificate)
+ {
+ X509CertificateSecretRef = "example-secret",
+ })
+ {
+ ClientIdPrefix = "factory-gateway",
+ Host = "example.broker.local:1883",
+ Protocol = BrokerProtocolType.WebSockets,
+ KeepAliveSeconds = 60,
+ Retain = MqttRetainType.Keep,
+ MaxInflightMessages = 100,
+ Qos = 1,
+ SessionExpirySeconds = 3600,
+ Tls = new TlsProperties
+ {
+ Mode = OperationalMode.Disabled,
+ },
+ },
+ },
+ };
+ ArmOperation lro = await dataflowEndpointResource.UpdateAsync(WaitUntil.Completed, data);
+ DataflowEndpointResource 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
+ DataflowEndpointResourceData 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_DataflowEndpointCreateOrUpdate()
+ {
+ // Generated from example definition: 2024-11-01/DataflowEndpoint_CreateOrUpdate_MaximumSet_Gen.json
+ // this example is just showing the usage of "DataflowEndpointResource_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 DataflowEndpointResource created on azure
+ // for more information of creating DataflowEndpointResource, please refer to the document of DataflowEndpointResource
+ string subscriptionId = "F8C729F9-DF9C-4743-848F-96EE433D8E53";
+ string resourceGroupName = "rgiotoperations";
+ string instanceName = "resource-name123";
+ string dataflowEndpointName = "resource-name123";
+ ResourceIdentifier dataflowEndpointResourceId = DataflowEndpointResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, instanceName, dataflowEndpointName);
+ DataflowEndpointResource dataflowEndpointResource = client.GetDataflowEndpointResource(dataflowEndpointResourceId);
+
+ // invoke the operation
+ DataflowEndpointResourceData data = new DataflowEndpointResourceData(new ExtendedLocation("qmbrfwcpwwhggszhrdjv", ExtendedLocationType.CustomLocation))
+ {
+ Properties = new DataflowEndpointProperties(EndpointType.DataExplorer)
+ {
+ DataExplorerSettings = new DataflowEndpointDataExplorer(new DataflowEndpointDataExplorerAuthentication(DataExplorerAuthMethod.SystemAssignedManagedIdentity)
+ {
+ SystemAssignedManagedIdentityAudience = "psxomrfbhoflycm",
+ UserAssignedManagedIdentitySettings = new DataflowEndpointAuthenticationUserAssignedManagedIdentity("fb90f267-8872-431a-a76a-a1cec5d3c4d2", "ed060aa2-71ff-4d3f-99c4-a9138356fdec")
+ {
+ Scope = "zop",
+ },
+ }, "yqcdpjsifm", "..kusto.windows.net")
+ {
+ Batching = new BatchingConfiguration
+ {
+ LatencySeconds = 9312,
+ MaxMessages = 9028,
+ },
+ },
+ DataLakeStorageSettings = new DataflowEndpointDataLakeStorage(new DataflowEndpointDataLakeStorageAuthentication(DataLakeStorageAuthMethod.SystemAssignedManagedIdentity)
+ {
+ AccessTokenSecretRef = "sevriyphcvnlrnfudqzejecwa",
+ SystemAssignedManagedIdentityAudience = "psxomrfbhoflycm",
+ UserAssignedManagedIdentitySettings = new DataflowEndpointAuthenticationUserAssignedManagedIdentity("fb90f267-8872-431a-a76a-a1cec5d3c4d2", "ed060aa2-71ff-4d3f-99c4-a9138356fdec")
+ {
+ Scope = "zop",
+ },
+ }, ".blob.core.windows.net")
+ {
+ Batching = new BatchingConfiguration
+ {
+ LatencySeconds = 9312,
+ MaxMessages = 9028,
+ },
+ },
+ FabricOneLakeSettings = new DataflowEndpointFabricOneLake(new DataflowEndpointFabricOneLakeAuthentication(FabricOneLakeAuthMethod.SystemAssignedManagedIdentity)
+ {
+ SystemAssignedManagedIdentityAudience = "psxomrfbhoflycm",
+ UserAssignedManagedIdentitySettings = new DataflowEndpointAuthenticationUserAssignedManagedIdentity("fb90f267-8872-431a-a76a-a1cec5d3c4d2", "ed060aa2-71ff-4d3f-99c4-a9138356fdec")
+ {
+ Scope = "zop",
+ },
+ }, new DataflowEndpointFabricOneLakeNames("wpeathi", "nwgmitkbljztgms"), DataflowEndpointFabricPathType.Files, "https://.fabric.microsoft.com")
+ {
+ Batching = new BatchingConfiguration
+ {
+ LatencySeconds = 9312,
+ MaxMessages = 9028,
+ },
+ },
+ KafkaSettings = new DataflowEndpointKafka(new DataflowEndpointKafkaAuthentication(KafkaAuthMethod.SystemAssignedManagedIdentity)
+ {
+ SystemAssignedManagedIdentityAudience = "psxomrfbhoflycm",
+ UserAssignedManagedIdentitySettings = new DataflowEndpointAuthenticationUserAssignedManagedIdentity("fb90f267-8872-431a-a76a-a1cec5d3c4d2", "ed060aa2-71ff-4d3f-99c4-a9138356fdec")
+ {
+ Scope = "zop",
+ },
+ SaslSettings = new DataflowEndpointAuthenticationSasl(DataflowEndpointAuthenticationSaslType.Plain, "visyxoztqnylvbyokhtmpdkwes"),
+ X509CertificateSecretRef = "afwizrystfslkfqd",
+ }, "pwcqfiqclcgneolpewnyavoulbip")
+ {
+ ConsumerGroupId = "ukkzcjiyenhxokat",
+ Batching = new DataflowEndpointKafkaBatching
+ {
+ Mode = OperationalMode.Enabled,
+ LatencyMs = 3679,
+ MaxBytes = 8887,
+ MaxMessages = 2174,
+ },
+ CopyMqttProperties = OperationalMode.Enabled,
+ Compression = DataflowEndpointKafkaCompression.None,
+ KafkaAcks = DataflowEndpointKafkaAck.Zero,
+ PartitionStrategy = DataflowEndpointKafkaPartitionStrategy.Default,
+ Tls = new TlsProperties
+ {
+ Mode = OperationalMode.Enabled,
+ TrustedCaCertificateConfigMapRef = "tectjjvukvelsreihwadh",
+ },
+ },
+ LocalStoragePersistentVolumeClaimRef = "jjwqwvd",
+ MqttSettings = new DataflowEndpointMqtt(new DataflowEndpointMqttAuthentication(MqttAuthMethod.SystemAssignedManagedIdentity)
+ {
+ SystemAssignedManagedIdentityAudience = "psxomrfbhoflycm",
+ UserAssignedManagedIdentitySettings = new DataflowEndpointAuthenticationUserAssignedManagedIdentity("fb90f267-8872-431a-a76a-a1cec5d3c4d2", "ed060aa2-71ff-4d3f-99c4-a9138356fdec")
+ {
+ Scope = "zop",
+ },
+ ServiceAccountTokenAudience = "ejbklrbxgjaqleoycgpje",
+ X509CertificateSecretRef = "afwizrystfslkfqd",
+ })
+ {
+ ClientIdPrefix = "kkljsdxdirfhwxtkavldekeqhv",
+ Host = "nyhnxqnbspstctl",
+ Protocol = BrokerProtocolType.Mqtt,
+ KeepAliveSeconds = 0,
+ Retain = MqttRetainType.Keep,
+ MaxInflightMessages = 0,
+ Qos = 1,
+ SessionExpirySeconds = 0,
+ Tls = new TlsProperties
+ {
+ Mode = OperationalMode.Enabled,
+ TrustedCaCertificateConfigMapRef = "tectjjvukvelsreihwadh",
+ },
+ },
+ },
+ };
+ ArmOperation lro = await dataflowEndpointResource.UpdateAsync(WaitUntil.Completed, data);
+ DataflowEndpointResource 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
+ DataflowEndpointResourceData resourceData = result.Data;
+ // for demo we just print out the id
+ Console.WriteLine($"Succeeded on id: {resourceData.Id}");
+ }
+ }
+}
diff --git a/sdk/iotoperations/Azure.ResourceManager.IoTOperations/samples/Generated/Samples/Sample_DataflowEndpointResourceCollection.cs b/sdk/iotoperations/Azure.ResourceManager.IoTOperations/samples/Generated/Samples/Sample_DataflowEndpointResourceCollection.cs
new file mode 100644
index 000000000000..b8d75a220bc9
--- /dev/null
+++ b/sdk/iotoperations/Azure.ResourceManager.IoTOperations/samples/Generated/Samples/Sample_DataflowEndpointResourceCollection.cs
@@ -0,0 +1,756 @@
+// 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.IoTOperations.Models;
+using NUnit.Framework;
+
+namespace Azure.ResourceManager.IoTOperations.Samples
+{
+ public partial class Sample_DataflowEndpointResourceCollection
+ {
+ [Test]
+ [Ignore("Only validating compilation of examples")]
+ public async Task CreateOrUpdate_DataflowEndpointCreateOrUpdateADLSv2()
+ {
+ // Generated from example definition: 2024-11-01/DataflowEndpoint_CreateOrUpdate_ADLSv2.json
+ // this example is just showing the usage of "DataflowEndpointResource_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 InstanceResource created on azure
+ // for more information of creating InstanceResource, please refer to the document of InstanceResource
+ string subscriptionId = "F8C729F9-DF9C-4743-848F-96EE433D8E53";
+ string resourceGroupName = "rgiotoperations";
+ string instanceName = "resource-name123";
+ ResourceIdentifier instanceResourceId = InstanceResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, instanceName);
+ InstanceResource instanceResource = client.GetInstanceResource(instanceResourceId);
+
+ // get the collection of this DataflowEndpointResource
+ DataflowEndpointResourceCollection collection = instanceResource.GetDataflowEndpointResources();
+
+ // invoke the operation
+ string dataflowEndpointName = "adlsv2-endpoint";
+ DataflowEndpointResourceData data = new DataflowEndpointResourceData(new ExtendedLocation("qmbrfwcpwwhggszhrdjv", ExtendedLocationType.CustomLocation))
+ {
+ Properties = new DataflowEndpointProperties(EndpointType.DataLakeStorage)
+ {
+ DataLakeStorageSettings = new DataflowEndpointDataLakeStorage(new DataflowEndpointDataLakeStorageAuthentication(DataLakeStorageAuthMethod.AccessToken)
+ {
+ AccessTokenSecretRef = "my-secret",
+ }, "example.blob.core.windows.net"),
+ },
+ };
+ ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, dataflowEndpointName, data);
+ DataflowEndpointResource 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
+ DataflowEndpointResourceData 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_DataflowEndpointCreateOrUpdateADX()
+ {
+ // Generated from example definition: 2024-11-01/DataflowEndpoint_CreateOrUpdate_ADX.json
+ // this example is just showing the usage of "DataflowEndpointResource_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 InstanceResource created on azure
+ // for more information of creating InstanceResource, please refer to the document of InstanceResource
+ string subscriptionId = "F8C729F9-DF9C-4743-848F-96EE433D8E53";
+ string resourceGroupName = "rgiotoperations";
+ string instanceName = "resource-name123";
+ ResourceIdentifier instanceResourceId = InstanceResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, instanceName);
+ InstanceResource instanceResource = client.GetInstanceResource(instanceResourceId);
+
+ // get the collection of this DataflowEndpointResource
+ DataflowEndpointResourceCollection collection = instanceResource.GetDataflowEndpointResources();
+
+ // invoke the operation
+ string dataflowEndpointName = "adx-endpoint";
+ DataflowEndpointResourceData data = new DataflowEndpointResourceData(new ExtendedLocation("qmbrfwcpwwhggszhrdjv", ExtendedLocationType.CustomLocation))
+ {
+ Properties = new DataflowEndpointProperties(EndpointType.DataExplorer)
+ {
+ DataExplorerSettings = new DataflowEndpointDataExplorer(new DataflowEndpointDataExplorerAuthentication(DataExplorerAuthMethod.SystemAssignedManagedIdentity), "example-database", "example.westeurope.kusto.windows.net")
+ {
+ Batching = new BatchingConfiguration
+ {
+ LatencySeconds = 9312,
+ MaxMessages = 9028,
+ },
+ },
+ },
+ };
+ ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, dataflowEndpointName, data);
+ DataflowEndpointResource 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
+ DataflowEndpointResourceData 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_DataflowEndpointCreateOrUpdateAIO()
+ {
+ // Generated from example definition: 2024-11-01/DataflowEndpoint_CreateOrUpdate_AIO.json
+ // this example is just showing the usage of "DataflowEndpointResource_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 InstanceResource created on azure
+ // for more information of creating InstanceResource, please refer to the document of InstanceResource
+ string subscriptionId = "F8C729F9-DF9C-4743-848F-96EE433D8E53";
+ string resourceGroupName = "rgiotoperations";
+ string instanceName = "resource-name123";
+ ResourceIdentifier instanceResourceId = InstanceResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, instanceName);
+ InstanceResource instanceResource = client.GetInstanceResource(instanceResourceId);
+
+ // get the collection of this DataflowEndpointResource
+ DataflowEndpointResourceCollection collection = instanceResource.GetDataflowEndpointResources();
+
+ // invoke the operation
+ string dataflowEndpointName = "aio-builtin-broker-endpoint";
+ DataflowEndpointResourceData data = new DataflowEndpointResourceData(new ExtendedLocation("qmbrfwcpwwhggszhrdjv", ExtendedLocationType.CustomLocation))
+ {
+ Properties = new DataflowEndpointProperties(EndpointType.Mqtt)
+ {
+ MqttSettings = new DataflowEndpointMqtt(new DataflowEndpointMqttAuthentication(default)
+ {
+ ServiceAccountTokenAudience = "aio-internal",
+ })
+ {
+ Host = "aio-broker:18883",
+ Tls = new TlsProperties
+ {
+ Mode = OperationalMode.Enabled,
+ TrustedCaCertificateConfigMapRef = "aio-ca-trust-bundle-test-only",
+ },
+ },
+ },
+ };
+ ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, dataflowEndpointName, data);
+ DataflowEndpointResource 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
+ DataflowEndpointResourceData 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_DataflowEndpointCreateOrUpdateEventGrid()
+ {
+ // Generated from example definition: 2024-11-01/DataflowEndpoint_CreateOrUpdate_EventGrid.json
+ // this example is just showing the usage of "DataflowEndpointResource_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 InstanceResource created on azure
+ // for more information of creating InstanceResource, please refer to the document of InstanceResource
+ string subscriptionId = "F8C729F9-DF9C-4743-848F-96EE433D8E53";
+ string resourceGroupName = "rgiotoperations";
+ string instanceName = "resource-name123";
+ ResourceIdentifier instanceResourceId = InstanceResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, instanceName);
+ InstanceResource instanceResource = client.GetInstanceResource(instanceResourceId);
+
+ // get the collection of this DataflowEndpointResource
+ DataflowEndpointResourceCollection collection = instanceResource.GetDataflowEndpointResources();
+
+ // invoke the operation
+ string dataflowEndpointName = "event-grid-endpoint";
+ DataflowEndpointResourceData data = new DataflowEndpointResourceData(new ExtendedLocation("qmbrfwcpwwhggszhrdjv", ExtendedLocationType.CustomLocation))
+ {
+ Properties = new DataflowEndpointProperties(EndpointType.Mqtt)
+ {
+ MqttSettings = new DataflowEndpointMqtt(new DataflowEndpointMqttAuthentication(MqttAuthMethod.SystemAssignedManagedIdentity))
+ {
+ Host = "example.westeurope-1.ts.eventgrid.azure.net:8883",
+ Tls = new TlsProperties
+ {
+ Mode = OperationalMode.Enabled,
+ },
+ },
+ },
+ };
+ ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, dataflowEndpointName, data);
+ DataflowEndpointResource 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
+ DataflowEndpointResourceData 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_DataflowEndpointCreateOrUpdateEventHub()
+ {
+ // Generated from example definition: 2024-11-01/DataflowEndpoint_CreateOrUpdate_EventHub.json
+ // this example is just showing the usage of "DataflowEndpointResource_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 InstanceResource created on azure
+ // for more information of creating InstanceResource, please refer to the document of InstanceResource
+ string subscriptionId = "F8C729F9-DF9C-4743-848F-96EE433D8E53";
+ string resourceGroupName = "rgiotoperations";
+ string instanceName = "resource-name123";
+ ResourceIdentifier instanceResourceId = InstanceResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, instanceName);
+ InstanceResource instanceResource = client.GetInstanceResource(instanceResourceId);
+
+ // get the collection of this DataflowEndpointResource
+ DataflowEndpointResourceCollection collection = instanceResource.GetDataflowEndpointResources();
+
+ // invoke the operation
+ string dataflowEndpointName = "event-hub-endpoint";
+ DataflowEndpointResourceData data = new DataflowEndpointResourceData(new ExtendedLocation("qmbrfwcpwwhggszhrdjv", ExtendedLocationType.CustomLocation))
+ {
+ Properties = new DataflowEndpointProperties(EndpointType.Kafka)
+ {
+ KafkaSettings = new DataflowEndpointKafka(new DataflowEndpointKafkaAuthentication(KafkaAuthMethod.SystemAssignedManagedIdentity), "example.servicebus.windows.net:9093")
+ {
+ ConsumerGroupId = "aiodataflows",
+ Tls = new TlsProperties
+ {
+ Mode = OperationalMode.Enabled,
+ },
+ },
+ },
+ };
+ ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, dataflowEndpointName, data);
+ DataflowEndpointResource 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
+ DataflowEndpointResourceData 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_DataflowEndpointCreateOrUpdateFabric()
+ {
+ // Generated from example definition: 2024-11-01/DataflowEndpoint_CreateOrUpdate_Fabric.json
+ // this example is just showing the usage of "DataflowEndpointResource_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 InstanceResource created on azure
+ // for more information of creating InstanceResource, please refer to the document of InstanceResource
+ string subscriptionId = "F8C729F9-DF9C-4743-848F-96EE433D8E53";
+ string resourceGroupName = "rgiotoperations";
+ string instanceName = "resource-name123";
+ ResourceIdentifier instanceResourceId = InstanceResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, instanceName);
+ InstanceResource instanceResource = client.GetInstanceResource(instanceResourceId);
+
+ // get the collection of this DataflowEndpointResource
+ DataflowEndpointResourceCollection collection = instanceResource.GetDataflowEndpointResources();
+
+ // invoke the operation
+ string dataflowEndpointName = "fabric-endpoint";
+ DataflowEndpointResourceData data = new DataflowEndpointResourceData(new ExtendedLocation("qmbrfwcpwwhggszhrdjv", ExtendedLocationType.CustomLocation))
+ {
+ Properties = new DataflowEndpointProperties(EndpointType.FabricOneLake)
+ {
+ FabricOneLakeSettings = new DataflowEndpointFabricOneLake(new DataflowEndpointFabricOneLakeAuthentication(FabricOneLakeAuthMethod.SystemAssignedManagedIdentity), new DataflowEndpointFabricOneLakeNames("example-lakehouse", "example-workspace"), DataflowEndpointFabricPathType.Tables, "onelake.dfs.fabric.microsoft.com"),
+ },
+ };
+ ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, dataflowEndpointName, data);
+ DataflowEndpointResource 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
+ DataflowEndpointResourceData 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_DataflowEndpointCreateOrUpdateKafka()
+ {
+ // Generated from example definition: 2024-11-01/DataflowEndpoint_CreateOrUpdate_Kafka.json
+ // this example is just showing the usage of "DataflowEndpointResource_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 InstanceResource created on azure
+ // for more information of creating InstanceResource, please refer to the document of InstanceResource
+ string subscriptionId = "F8C729F9-DF9C-4743-848F-96EE433D8E53";
+ string resourceGroupName = "rgiotoperations";
+ string instanceName = "resource-name123";
+ ResourceIdentifier instanceResourceId = InstanceResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, instanceName);
+ InstanceResource instanceResource = client.GetInstanceResource(instanceResourceId);
+
+ // get the collection of this DataflowEndpointResource
+ DataflowEndpointResourceCollection collection = instanceResource.GetDataflowEndpointResources();
+
+ // invoke the operation
+ string dataflowEndpointName = "generic-kafka-endpoint";
+ DataflowEndpointResourceData data = new DataflowEndpointResourceData(new ExtendedLocation("qmbrfwcpwwhggszhrdjv", ExtendedLocationType.CustomLocation))
+ {
+ Properties = new DataflowEndpointProperties(EndpointType.Kafka)
+ {
+ KafkaSettings = new DataflowEndpointKafka(new DataflowEndpointKafkaAuthentication(KafkaAuthMethod.Sasl)
+ {
+ SaslSettings = new DataflowEndpointAuthenticationSasl(DataflowEndpointAuthenticationSaslType.Plain, "my-secret"),
+ }, "example.kafka.local:9093")
+ {
+ ConsumerGroupId = "dataflows",
+ Batching = new DataflowEndpointKafkaBatching
+ {
+ Mode = OperationalMode.Enabled,
+ LatencyMs = 5,
+ MaxBytes = 1000000,
+ MaxMessages = 100000,
+ },
+ CopyMqttProperties = OperationalMode.Enabled,
+ Compression = DataflowEndpointKafkaCompression.Gzip,
+ KafkaAcks = DataflowEndpointKafkaAck.All,
+ PartitionStrategy = DataflowEndpointKafkaPartitionStrategy.Default,
+ Tls = new TlsProperties
+ {
+ Mode = OperationalMode.Enabled,
+ TrustedCaCertificateConfigMapRef = "ca-certificates",
+ },
+ CloudEventAttributes = CloudEventAttributeType.Propagate,
+ },
+ },
+ };
+ ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, dataflowEndpointName, data);
+ DataflowEndpointResource 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
+ DataflowEndpointResourceData 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_DataflowEndpointCreateOrUpdateLocalStorage()
+ {
+ // Generated from example definition: 2024-11-01/DataflowEndpoint_CreateOrUpdate_LocalStorage.json
+ // this example is just showing the usage of "DataflowEndpointResource_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 InstanceResource created on azure
+ // for more information of creating InstanceResource, please refer to the document of InstanceResource
+ string subscriptionId = "F8C729F9-DF9C-4743-848F-96EE433D8E53";
+ string resourceGroupName = "rgiotoperations";
+ string instanceName = "resource-name123";
+ ResourceIdentifier instanceResourceId = InstanceResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, instanceName);
+ InstanceResource instanceResource = client.GetInstanceResource(instanceResourceId);
+
+ // get the collection of this DataflowEndpointResource
+ DataflowEndpointResourceCollection collection = instanceResource.GetDataflowEndpointResources();
+
+ // invoke the operation
+ string dataflowEndpointName = "local-storage-endpoint";
+ DataflowEndpointResourceData data = new DataflowEndpointResourceData(new ExtendedLocation("qmbrfwcpwwhggszhrdjv", ExtendedLocationType.CustomLocation))
+ {
+ Properties = new DataflowEndpointProperties(EndpointType.LocalStorage)
+ {
+ LocalStoragePersistentVolumeClaimRef = "example-pvc",
+ },
+ };
+ ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, dataflowEndpointName, data);
+ DataflowEndpointResource 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
+ DataflowEndpointResourceData 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_DataflowEndpointCreateOrUpdateMQTT()
+ {
+ // Generated from example definition: 2024-11-01/DataflowEndpoint_CreateOrUpdate_MQTT.json
+ // this example is just showing the usage of "DataflowEndpointResource_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 InstanceResource created on azure
+ // for more information of creating InstanceResource, please refer to the document of InstanceResource
+ string subscriptionId = "F8C729F9-DF9C-4743-848F-96EE433D8E53";
+ string resourceGroupName = "rgiotoperations";
+ string instanceName = "resource-name123";
+ ResourceIdentifier instanceResourceId = InstanceResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, instanceName);
+ InstanceResource instanceResource = client.GetInstanceResource(instanceResourceId);
+
+ // get the collection of this DataflowEndpointResource
+ DataflowEndpointResourceCollection collection = instanceResource.GetDataflowEndpointResources();
+
+ // invoke the operation
+ string dataflowEndpointName = "generic-mqtt-broker-endpoint";
+ DataflowEndpointResourceData data = new DataflowEndpointResourceData(new ExtendedLocation("qmbrfwcpwwhggszhrdjv", ExtendedLocationType.CustomLocation))
+ {
+ Properties = new DataflowEndpointProperties(EndpointType.Mqtt)
+ {
+ MqttSettings = new DataflowEndpointMqtt(new DataflowEndpointMqttAuthentication(MqttAuthMethod.X509Certificate)
+ {
+ X509CertificateSecretRef = "example-secret",
+ })
+ {
+ ClientIdPrefix = "factory-gateway",
+ Host = "example.broker.local:1883",
+ Protocol = BrokerProtocolType.WebSockets,
+ KeepAliveSeconds = 60,
+ Retain = MqttRetainType.Keep,
+ MaxInflightMessages = 100,
+ Qos = 1,
+ SessionExpirySeconds = 3600,
+ Tls = new TlsProperties
+ {
+ Mode = OperationalMode.Disabled,
+ },
+ },
+ },
+ };
+ ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, dataflowEndpointName, data);
+ DataflowEndpointResource 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
+ DataflowEndpointResourceData 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_DataflowEndpointCreateOrUpdate()
+ {
+ // Generated from example definition: 2024-11-01/DataflowEndpoint_CreateOrUpdate_MaximumSet_Gen.json
+ // this example is just showing the usage of "DataflowEndpointResource_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 InstanceResource created on azure
+ // for more information of creating InstanceResource, please refer to the document of InstanceResource
+ string subscriptionId = "F8C729F9-DF9C-4743-848F-96EE433D8E53";
+ string resourceGroupName = "rgiotoperations";
+ string instanceName = "resource-name123";
+ ResourceIdentifier instanceResourceId = InstanceResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, instanceName);
+ InstanceResource instanceResource = client.GetInstanceResource(instanceResourceId);
+
+ // get the collection of this DataflowEndpointResource
+ DataflowEndpointResourceCollection collection = instanceResource.GetDataflowEndpointResources();
+
+ // invoke the operation
+ string dataflowEndpointName = "resource-name123";
+ DataflowEndpointResourceData data = new DataflowEndpointResourceData(new ExtendedLocation("qmbrfwcpwwhggszhrdjv", ExtendedLocationType.CustomLocation))
+ {
+ Properties = new DataflowEndpointProperties(EndpointType.DataExplorer)
+ {
+ DataExplorerSettings = new DataflowEndpointDataExplorer(new DataflowEndpointDataExplorerAuthentication(DataExplorerAuthMethod.SystemAssignedManagedIdentity)
+ {
+ SystemAssignedManagedIdentityAudience = "psxomrfbhoflycm",
+ UserAssignedManagedIdentitySettings = new DataflowEndpointAuthenticationUserAssignedManagedIdentity("fb90f267-8872-431a-a76a-a1cec5d3c4d2", "ed060aa2-71ff-4d3f-99c4-a9138356fdec")
+ {
+ Scope = "zop",
+ },
+ }, "yqcdpjsifm", "..kusto.windows.net")
+ {
+ Batching = new BatchingConfiguration
+ {
+ LatencySeconds = 9312,
+ MaxMessages = 9028,
+ },
+ },
+ DataLakeStorageSettings = new DataflowEndpointDataLakeStorage(new DataflowEndpointDataLakeStorageAuthentication(DataLakeStorageAuthMethod.SystemAssignedManagedIdentity)
+ {
+ AccessTokenSecretRef = "sevriyphcvnlrnfudqzejecwa",
+ SystemAssignedManagedIdentityAudience = "psxomrfbhoflycm",
+ UserAssignedManagedIdentitySettings = new DataflowEndpointAuthenticationUserAssignedManagedIdentity("fb90f267-8872-431a-a76a-a1cec5d3c4d2", "ed060aa2-71ff-4d3f-99c4-a9138356fdec")
+ {
+ Scope = "zop",
+ },
+ }, ".blob.core.windows.net")
+ {
+ Batching = new BatchingConfiguration
+ {
+ LatencySeconds = 9312,
+ MaxMessages = 9028,
+ },
+ },
+ FabricOneLakeSettings = new DataflowEndpointFabricOneLake(new DataflowEndpointFabricOneLakeAuthentication(FabricOneLakeAuthMethod.SystemAssignedManagedIdentity)
+ {
+ SystemAssignedManagedIdentityAudience = "psxomrfbhoflycm",
+ UserAssignedManagedIdentitySettings = new DataflowEndpointAuthenticationUserAssignedManagedIdentity("fb90f267-8872-431a-a76a-a1cec5d3c4d2", "ed060aa2-71ff-4d3f-99c4-a9138356fdec")
+ {
+ Scope = "zop",
+ },
+ }, new DataflowEndpointFabricOneLakeNames("wpeathi", "nwgmitkbljztgms"), DataflowEndpointFabricPathType.Files, "https://.fabric.microsoft.com")
+ {
+ Batching = new BatchingConfiguration
+ {
+ LatencySeconds = 9312,
+ MaxMessages = 9028,
+ },
+ },
+ KafkaSettings = new DataflowEndpointKafka(new DataflowEndpointKafkaAuthentication(KafkaAuthMethod.SystemAssignedManagedIdentity)
+ {
+ SystemAssignedManagedIdentityAudience = "psxomrfbhoflycm",
+ UserAssignedManagedIdentitySettings = new DataflowEndpointAuthenticationUserAssignedManagedIdentity("fb90f267-8872-431a-a76a-a1cec5d3c4d2", "ed060aa2-71ff-4d3f-99c4-a9138356fdec")
+ {
+ Scope = "zop",
+ },
+ SaslSettings = new DataflowEndpointAuthenticationSasl(DataflowEndpointAuthenticationSaslType.Plain, "visyxoztqnylvbyokhtmpdkwes"),
+ X509CertificateSecretRef = "afwizrystfslkfqd",
+ }, "pwcqfiqclcgneolpewnyavoulbip")
+ {
+ ConsumerGroupId = "ukkzcjiyenhxokat",
+ Batching = new DataflowEndpointKafkaBatching
+ {
+ Mode = OperationalMode.Enabled,
+ LatencyMs = 3679,
+ MaxBytes = 8887,
+ MaxMessages = 2174,
+ },
+ CopyMqttProperties = OperationalMode.Enabled,
+ Compression = DataflowEndpointKafkaCompression.None,
+ KafkaAcks = DataflowEndpointKafkaAck.Zero,
+ PartitionStrategy = DataflowEndpointKafkaPartitionStrategy.Default,
+ Tls = new TlsProperties
+ {
+ Mode = OperationalMode.Enabled,
+ TrustedCaCertificateConfigMapRef = "tectjjvukvelsreihwadh",
+ },
+ },
+ LocalStoragePersistentVolumeClaimRef = "jjwqwvd",
+ MqttSettings = new DataflowEndpointMqtt(new DataflowEndpointMqttAuthentication(MqttAuthMethod.SystemAssignedManagedIdentity)
+ {
+ SystemAssignedManagedIdentityAudience = "psxomrfbhoflycm",
+ UserAssignedManagedIdentitySettings = new DataflowEndpointAuthenticationUserAssignedManagedIdentity("fb90f267-8872-431a-a76a-a1cec5d3c4d2", "ed060aa2-71ff-4d3f-99c4-a9138356fdec")
+ {
+ Scope = "zop",
+ },
+ ServiceAccountTokenAudience = "ejbklrbxgjaqleoycgpje",
+ X509CertificateSecretRef = "afwizrystfslkfqd",
+ })
+ {
+ ClientIdPrefix = "kkljsdxdirfhwxtkavldekeqhv",
+ Host = "nyhnxqnbspstctl",
+ Protocol = BrokerProtocolType.Mqtt,
+ KeepAliveSeconds = 0,
+ Retain = MqttRetainType.Keep,
+ MaxInflightMessages = 0,
+ Qos = 1,
+ SessionExpirySeconds = 0,
+ Tls = new TlsProperties
+ {
+ Mode = OperationalMode.Enabled,
+ TrustedCaCertificateConfigMapRef = "tectjjvukvelsreihwadh",
+ },
+ },
+ },
+ };
+ ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, dataflowEndpointName, data);
+ DataflowEndpointResource 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
+ DataflowEndpointResourceData 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_DataflowEndpointGet()
+ {
+ // Generated from example definition: 2024-11-01/DataflowEndpoint_Get_MaximumSet_Gen.json
+ // this example is just showing the usage of "DataflowEndpointResource_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 InstanceResource created on azure
+ // for more information of creating InstanceResource, please refer to the document of InstanceResource
+ string subscriptionId = "F8C729F9-DF9C-4743-848F-96EE433D8E53";
+ string resourceGroupName = "rgiotoperations";
+ string instanceName = "resource-name123";
+ ResourceIdentifier instanceResourceId = InstanceResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, instanceName);
+ InstanceResource instanceResource = client.GetInstanceResource(instanceResourceId);
+
+ // get the collection of this DataflowEndpointResource
+ DataflowEndpointResourceCollection collection = instanceResource.GetDataflowEndpointResources();
+
+ // invoke the operation
+ string dataflowEndpointName = "resource-name123";
+ DataflowEndpointResource result = await collection.GetAsync(dataflowEndpointName);
+
+ // 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
+ DataflowEndpointResourceData 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_DataflowEndpointListByResourceGroup()
+ {
+ // Generated from example definition: 2024-11-01/DataflowEndpoint_ListByResourceGroup_MaximumSet_Gen.json
+ // this example is just showing the usage of "DataflowEndpointResource_ListByResourceGroup" operation, for the dependent resources, they will have to be created separately.
+
+ // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this InstanceResource created on azure
+ // for more information of creating InstanceResource, please refer to the document of InstanceResource
+ string subscriptionId = "F8C729F9-DF9C-4743-848F-96EE433D8E53";
+ string resourceGroupName = "rgiotoperations";
+ string instanceName = "resource-name123";
+ ResourceIdentifier instanceResourceId = InstanceResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, instanceName);
+ InstanceResource instanceResource = client.GetInstanceResource(instanceResourceId);
+
+ // get the collection of this DataflowEndpointResource
+ DataflowEndpointResourceCollection collection = instanceResource.GetDataflowEndpointResources();
+
+ // invoke the operation and iterate over the result
+ await foreach (DataflowEndpointResource 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
+ DataflowEndpointResourceData 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_DataflowEndpointGet()
+ {
+ // Generated from example definition: 2024-11-01/DataflowEndpoint_Get_MaximumSet_Gen.json
+ // this example is just showing the usage of "DataflowEndpointResource_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 InstanceResource created on azure
+ // for more information of creating InstanceResource, please refer to the document of InstanceResource
+ string subscriptionId = "F8C729F9-DF9C-4743-848F-96EE433D8E53";
+ string resourceGroupName = "rgiotoperations";
+ string instanceName = "resource-name123";
+ ResourceIdentifier instanceResourceId = InstanceResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, instanceName);
+ InstanceResource instanceResource = client.GetInstanceResource(instanceResourceId);
+
+ // get the collection of this DataflowEndpointResource
+ DataflowEndpointResourceCollection collection = instanceResource.GetDataflowEndpointResources();
+
+ // invoke the operation
+ string dataflowEndpointName = "resource-name123";
+ bool result = await collection.ExistsAsync(dataflowEndpointName);
+
+ Console.WriteLine($"Succeeded: {result}");
+ }
+
+ [Test]
+ [Ignore("Only validating compilation of examples")]
+ public async Task GetIfExists_DataflowEndpointGet()
+ {
+ // Generated from example definition: 2024-11-01/DataflowEndpoint_Get_MaximumSet_Gen.json
+ // this example is just showing the usage of "DataflowEndpointResource_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 InstanceResource created on azure
+ // for more information of creating InstanceResource, please refer to the document of InstanceResource
+ string subscriptionId = "F8C729F9-DF9C-4743-848F-96EE433D8E53";
+ string resourceGroupName = "rgiotoperations";
+ string instanceName = "resource-name123";
+ ResourceIdentifier instanceResourceId = InstanceResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, instanceName);
+ InstanceResource instanceResource = client.GetInstanceResource(instanceResourceId);
+
+ // get the collection of this DataflowEndpointResource
+ DataflowEndpointResourceCollection collection = instanceResource.GetDataflowEndpointResources();
+
+ // invoke the operation
+ string dataflowEndpointName = "resource-name123";
+ NullableResponse response = await collection.GetIfExistsAsync(dataflowEndpointName);
+ DataflowEndpointResource 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
+ DataflowEndpointResourceData resourceData = result.Data;
+ // for demo we just print out the id
+ Console.WriteLine($"Succeeded on id: {resourceData.Id}");
+ }
+ }
+ }
+}
diff --git a/sdk/iotoperations/Azure.ResourceManager.IoTOperations/samples/Generated/Samples/Sample_DataflowProfileResource.cs b/sdk/iotoperations/Azure.ResourceManager.IoTOperations/samples/Generated/Samples/Sample_DataflowProfileResource.cs
new file mode 100644
index 000000000000..a511c9a04891
--- /dev/null
+++ b/sdk/iotoperations/Azure.ResourceManager.IoTOperations/samples/Generated/Samples/Sample_DataflowProfileResource.cs
@@ -0,0 +1,199 @@
+// 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.IoTOperations.Models;
+using NUnit.Framework;
+
+namespace Azure.ResourceManager.IoTOperations.Samples
+{
+ public partial class Sample_DataflowProfileResource
+ {
+ [Test]
+ [Ignore("Only validating compilation of examples")]
+ public async Task Get_DataflowProfileGet()
+ {
+ // Generated from example definition: 2024-11-01/DataflowProfile_Get_MaximumSet_Gen.json
+ // this example is just showing the usage of "DataflowProfileResource_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 DataflowProfileResource created on azure
+ // for more information of creating DataflowProfileResource, please refer to the document of DataflowProfileResource
+ string subscriptionId = "F8C729F9-DF9C-4743-848F-96EE433D8E53";
+ string resourceGroupName = "rgiotoperations";
+ string instanceName = "resource-name123";
+ string dataflowProfileName = "resource-name123";
+ ResourceIdentifier dataflowProfileResourceId = DataflowProfileResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, instanceName, dataflowProfileName);
+ DataflowProfileResource dataflowProfileResource = client.GetDataflowProfileResource(dataflowProfileResourceId);
+
+ // invoke the operation
+ DataflowProfileResource result = await dataflowProfileResource.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
+ DataflowProfileResourceData 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_DataflowProfileDelete()
+ {
+ // Generated from example definition: 2024-11-01/DataflowProfile_Delete_MaximumSet_Gen.json
+ // this example is just showing the usage of "DataflowProfileResource_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 DataflowProfileResource created on azure
+ // for more information of creating DataflowProfileResource, please refer to the document of DataflowProfileResource
+ string subscriptionId = "F8C729F9-DF9C-4743-848F-96EE433D8E53";
+ string resourceGroupName = "rgiotoperations";
+ string instanceName = "resource-name123";
+ string dataflowProfileName = "resource-name123";
+ ResourceIdentifier dataflowProfileResourceId = DataflowProfileResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, instanceName, dataflowProfileName);
+ DataflowProfileResource dataflowProfileResource = client.GetDataflowProfileResource(dataflowProfileResourceId);
+
+ // invoke the operation
+ await dataflowProfileResource.DeleteAsync(WaitUntil.Completed);
+
+ Console.WriteLine("Succeeded");
+ }
+
+ [Test]
+ [Ignore("Only validating compilation of examples")]
+ public async Task Update_DataflowProfileCreateOrUpdate()
+ {
+ // Generated from example definition: 2024-11-01/DataflowProfile_CreateOrUpdate_MaximumSet_Gen.json
+ // this example is just showing the usage of "DataflowProfileResource_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 DataflowProfileResource created on azure
+ // for more information of creating DataflowProfileResource, please refer to the document of DataflowProfileResource
+ string subscriptionId = "F8C729F9-DF9C-4743-848F-96EE433D8E53";
+ string resourceGroupName = "rgiotoperations";
+ string instanceName = "resource-name123";
+ string dataflowProfileName = "resource-name123";
+ ResourceIdentifier dataflowProfileResourceId = DataflowProfileResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, instanceName, dataflowProfileName);
+ DataflowProfileResource dataflowProfileResource = client.GetDataflowProfileResource(dataflowProfileResourceId);
+
+ // invoke the operation
+ DataflowProfileResourceData data = new DataflowProfileResourceData(new ExtendedLocation("qmbrfwcpwwhggszhrdjv", ExtendedLocationType.CustomLocation))
+ {
+ Properties = new DataflowProfileProperties
+ {
+ Diagnostics = new ProfileDiagnostics
+ {
+ LogsLevel = "rnmwokumdmebpmfxxxzvvjfdywotav",
+ MetricsPrometheusPort = 7581,
+ },
+ InstanceCount = 14,
+ },
+ };
+ ArmOperation lro = await dataflowProfileResource.UpdateAsync(WaitUntil.Completed, data);
+ DataflowProfileResource 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
+ DataflowProfileResourceData 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_DataflowProfileCreateOrUpdateMinimal()
+ {
+ // Generated from example definition: 2024-11-01/DataflowProfile_CreateOrUpdate_Minimal.json
+ // this example is just showing the usage of "DataflowProfileResource_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 DataflowProfileResource created on azure
+ // for more information of creating DataflowProfileResource, please refer to the document of DataflowProfileResource
+ string subscriptionId = "F8C729F9-DF9C-4743-848F-96EE433D8E53";
+ string resourceGroupName = "rgiotoperations";
+ string instanceName = "resource-name123";
+ string dataflowProfileName = "aio-dataflowprofile";
+ ResourceIdentifier dataflowProfileResourceId = DataflowProfileResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, instanceName, dataflowProfileName);
+ DataflowProfileResource dataflowProfileResource = client.GetDataflowProfileResource(dataflowProfileResourceId);
+
+ // invoke the operation
+ DataflowProfileResourceData data = new DataflowProfileResourceData(new ExtendedLocation("qmbrfwcpwwhggszhrdjv", ExtendedLocationType.CustomLocation))
+ {
+ Properties = new DataflowProfileProperties
+ {
+ InstanceCount = 1,
+ },
+ };
+ ArmOperation lro = await dataflowProfileResource.UpdateAsync(WaitUntil.Completed, data);
+ DataflowProfileResource 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
+ DataflowProfileResourceData 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_DataflowProfileCreateOrUpdateMulti()
+ {
+ // Generated from example definition: 2024-11-01/DataflowProfile_CreateOrUpdate_Multi.json
+ // this example is just showing the usage of "DataflowProfileResource_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 DataflowProfileResource created on azure
+ // for more information of creating DataflowProfileResource, please refer to the document of DataflowProfileResource
+ string subscriptionId = "F8C729F9-DF9C-4743-848F-96EE433D8E53";
+ string resourceGroupName = "rgiotoperations";
+ string instanceName = "resource-name123";
+ string dataflowProfileName = "aio-dataflowprofile";
+ ResourceIdentifier dataflowProfileResourceId = DataflowProfileResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, instanceName, dataflowProfileName);
+ DataflowProfileResource dataflowProfileResource = client.GetDataflowProfileResource(dataflowProfileResourceId);
+
+ // invoke the operation
+ DataflowProfileResourceData data = new DataflowProfileResourceData(new ExtendedLocation("qmbrfwcpwwhggszhrdjv", ExtendedLocationType.CustomLocation))
+ {
+ Properties = new DataflowProfileProperties
+ {
+ InstanceCount = 3,
+ },
+ };
+ ArmOperation lro = await dataflowProfileResource.UpdateAsync(WaitUntil.Completed, data);
+ DataflowProfileResource 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
+ DataflowProfileResourceData resourceData = result.Data;
+ // for demo we just print out the id
+ Console.WriteLine($"Succeeded on id: {resourceData.Id}");
+ }
+ }
+}
diff --git a/sdk/iotoperations/Azure.ResourceManager.IoTOperations/samples/Generated/Samples/Sample_DataflowProfileResourceCollection.cs b/sdk/iotoperations/Azure.ResourceManager.IoTOperations/samples/Generated/Samples/Sample_DataflowProfileResourceCollection.cs
new file mode 100644
index 000000000000..643a0d2032fd
--- /dev/null
+++ b/sdk/iotoperations/Azure.ResourceManager.IoTOperations/samples/Generated/Samples/Sample_DataflowProfileResourceCollection.cs
@@ -0,0 +1,292 @@
+// 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.IoTOperations.Models;
+using NUnit.Framework;
+
+namespace Azure.ResourceManager.IoTOperations.Samples
+{
+ public partial class Sample_DataflowProfileResourceCollection
+ {
+ [Test]
+ [Ignore("Only validating compilation of examples")]
+ public async Task CreateOrUpdate_DataflowProfileCreateOrUpdate()
+ {
+ // Generated from example definition: 2024-11-01/DataflowProfile_CreateOrUpdate_MaximumSet_Gen.json
+ // this example is just showing the usage of "DataflowProfileResource_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 InstanceResource created on azure
+ // for more information of creating InstanceResource, please refer to the document of InstanceResource
+ string subscriptionId = "F8C729F9-DF9C-4743-848F-96EE433D8E53";
+ string resourceGroupName = "rgiotoperations";
+ string instanceName = "resource-name123";
+ ResourceIdentifier instanceResourceId = InstanceResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, instanceName);
+ InstanceResource instanceResource = client.GetInstanceResource(instanceResourceId);
+
+ // get the collection of this DataflowProfileResource
+ DataflowProfileResourceCollection collection = instanceResource.GetDataflowProfileResources();
+
+ // invoke the operation
+ string dataflowProfileName = "resource-name123";
+ DataflowProfileResourceData data = new DataflowProfileResourceData(new ExtendedLocation("qmbrfwcpwwhggszhrdjv", ExtendedLocationType.CustomLocation))
+ {
+ Properties = new DataflowProfileProperties
+ {
+ Diagnostics = new ProfileDiagnostics
+ {
+ LogsLevel = "rnmwokumdmebpmfxxxzvvjfdywotav",
+ MetricsPrometheusPort = 7581,
+ },
+ InstanceCount = 14,
+ },
+ };
+ ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, dataflowProfileName, data);
+ DataflowProfileResource 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
+ DataflowProfileResourceData 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_DataflowProfileCreateOrUpdateMinimal()
+ {
+ // Generated from example definition: 2024-11-01/DataflowProfile_CreateOrUpdate_Minimal.json
+ // this example is just showing the usage of "DataflowProfileResource_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 InstanceResource created on azure
+ // for more information of creating InstanceResource, please refer to the document of InstanceResource
+ string subscriptionId = "F8C729F9-DF9C-4743-848F-96EE433D8E53";
+ string resourceGroupName = "rgiotoperations";
+ string instanceName = "resource-name123";
+ ResourceIdentifier instanceResourceId = InstanceResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, instanceName);
+ InstanceResource instanceResource = client.GetInstanceResource(instanceResourceId);
+
+ // get the collection of this DataflowProfileResource
+ DataflowProfileResourceCollection collection = instanceResource.GetDataflowProfileResources();
+
+ // invoke the operation
+ string dataflowProfileName = "aio-dataflowprofile";
+ DataflowProfileResourceData data = new DataflowProfileResourceData(new ExtendedLocation("qmbrfwcpwwhggszhrdjv", ExtendedLocationType.CustomLocation))
+ {
+ Properties = new DataflowProfileProperties
+ {
+ InstanceCount = 1,
+ },
+ };
+ ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, dataflowProfileName, data);
+ DataflowProfileResource 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
+ DataflowProfileResourceData 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_DataflowProfileCreateOrUpdateMulti()
+ {
+ // Generated from example definition: 2024-11-01/DataflowProfile_CreateOrUpdate_Multi.json
+ // this example is just showing the usage of "DataflowProfileResource_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 InstanceResource created on azure
+ // for more information of creating InstanceResource, please refer to the document of InstanceResource
+ string subscriptionId = "F8C729F9-DF9C-4743-848F-96EE433D8E53";
+ string resourceGroupName = "rgiotoperations";
+ string instanceName = "resource-name123";
+ ResourceIdentifier instanceResourceId = InstanceResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, instanceName);
+ InstanceResource instanceResource = client.GetInstanceResource(instanceResourceId);
+
+ // get the collection of this DataflowProfileResource
+ DataflowProfileResourceCollection collection = instanceResource.GetDataflowProfileResources();
+
+ // invoke the operation
+ string dataflowProfileName = "aio-dataflowprofile";
+ DataflowProfileResourceData data = new DataflowProfileResourceData(new ExtendedLocation("qmbrfwcpwwhggszhrdjv", ExtendedLocationType.CustomLocation))
+ {
+ Properties = new DataflowProfileProperties
+ {
+ InstanceCount = 3,
+ },
+ };
+ ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, dataflowProfileName, data);
+ DataflowProfileResource 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
+ DataflowProfileResourceData 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_DataflowProfileGet()
+ {
+ // Generated from example definition: 2024-11-01/DataflowProfile_Get_MaximumSet_Gen.json
+ // this example is just showing the usage of "DataflowProfileResource_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 InstanceResource created on azure
+ // for more information of creating InstanceResource, please refer to the document of InstanceResource
+ string subscriptionId = "F8C729F9-DF9C-4743-848F-96EE433D8E53";
+ string resourceGroupName = "rgiotoperations";
+ string instanceName = "resource-name123";
+ ResourceIdentifier instanceResourceId = InstanceResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, instanceName);
+ InstanceResource instanceResource = client.GetInstanceResource(instanceResourceId);
+
+ // get the collection of this DataflowProfileResource
+ DataflowProfileResourceCollection collection = instanceResource.GetDataflowProfileResources();
+
+ // invoke the operation
+ string dataflowProfileName = "resource-name123";
+ DataflowProfileResource result = await collection.GetAsync(dataflowProfileName);
+
+ // 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
+ DataflowProfileResourceData 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_DataflowProfileListByResourceGroup()
+ {
+ // Generated from example definition: 2024-11-01/DataflowProfile_ListByResourceGroup_MaximumSet_Gen.json
+ // this example is just showing the usage of "DataflowProfileResource_ListByResourceGroup" operation, for the dependent resources, they will have to be created separately.
+
+ // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this InstanceResource created on azure
+ // for more information of creating InstanceResource, please refer to the document of InstanceResource
+ string subscriptionId = "F8C729F9-DF9C-4743-848F-96EE433D8E53";
+ string resourceGroupName = "rgiotoperations";
+ string instanceName = "resource-name123";
+ ResourceIdentifier instanceResourceId = InstanceResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, instanceName);
+ InstanceResource instanceResource = client.GetInstanceResource(instanceResourceId);
+
+ // get the collection of this DataflowProfileResource
+ DataflowProfileResourceCollection collection = instanceResource.GetDataflowProfileResources();
+
+ // invoke the operation and iterate over the result
+ await foreach (DataflowProfileResource 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
+ DataflowProfileResourceData 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_DataflowProfileGet()
+ {
+ // Generated from example definition: 2024-11-01/DataflowProfile_Get_MaximumSet_Gen.json
+ // this example is just showing the usage of "DataflowProfileResource_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 InstanceResource created on azure
+ // for more information of creating InstanceResource, please refer to the document of InstanceResource
+ string subscriptionId = "F8C729F9-DF9C-4743-848F-96EE433D8E53";
+ string resourceGroupName = "rgiotoperations";
+ string instanceName = "resource-name123";
+ ResourceIdentifier instanceResourceId = InstanceResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, instanceName);
+ InstanceResource instanceResource = client.GetInstanceResource(instanceResourceId);
+
+ // get the collection of this DataflowProfileResource
+ DataflowProfileResourceCollection collection = instanceResource.GetDataflowProfileResources();
+
+ // invoke the operation
+ string dataflowProfileName = "resource-name123";
+ bool result = await collection.ExistsAsync(dataflowProfileName);
+
+ Console.WriteLine($"Succeeded: {result}");
+ }
+
+ [Test]
+ [Ignore("Only validating compilation of examples")]
+ public async Task GetIfExists_DataflowProfileGet()
+ {
+ // Generated from example definition: 2024-11-01/DataflowProfile_Get_MaximumSet_Gen.json
+ // this example is just showing the usage of "DataflowProfileResource_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 InstanceResource created on azure
+ // for more information of creating InstanceResource, please refer to the document of InstanceResource
+ string subscriptionId = "F8C729F9-DF9C-4743-848F-96EE433D8E53";
+ string resourceGroupName = "rgiotoperations";
+ string instanceName = "resource-name123";
+ ResourceIdentifier instanceResourceId = InstanceResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, instanceName);
+ InstanceResource instanceResource = client.GetInstanceResource(instanceResourceId);
+
+ // get the collection of this DataflowProfileResource
+ DataflowProfileResourceCollection collection = instanceResource.GetDataflowProfileResources();
+
+ // invoke the operation
+ string dataflowProfileName = "resource-name123";
+ NullableResponse response = await collection.GetIfExistsAsync(dataflowProfileName);
+ DataflowProfileResource 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
+ DataflowProfileResourceData resourceData = result.Data;
+ // for demo we just print out the id
+ Console.WriteLine($"Succeeded on id: {resourceData.Id}");
+ }
+ }
+ }
+}
diff --git a/sdk/iotoperations/Azure.ResourceManager.IoTOperations/samples/Generated/Samples/Sample_DataflowResource.cs b/sdk/iotoperations/Azure.ResourceManager.IoTOperations/samples/Generated/Samples/Sample_DataflowResource.cs
new file mode 100644
index 000000000000..81fe4022720c
--- /dev/null
+++ b/sdk/iotoperations/Azure.ResourceManager.IoTOperations/samples/Generated/Samples/Sample_DataflowResource.cs
@@ -0,0 +1,476 @@
+// 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.IoTOperations.Models;
+using NUnit.Framework;
+
+namespace Azure.ResourceManager.IoTOperations.Samples
+{
+ public partial class Sample_DataflowResource
+ {
+ [Test]
+ [Ignore("Only validating compilation of examples")]
+ public async Task Get_DataflowGet()
+ {
+ // Generated from example definition: 2024-11-01/Dataflow_Get_MaximumSet_Gen.json
+ // this example is just showing the usage of "DataflowResource_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 DataflowResource created on azure
+ // for more information of creating DataflowResource, please refer to the document of DataflowResource
+ string subscriptionId = "F8C729F9-DF9C-4743-848F-96EE433D8E53";
+ string resourceGroupName = "rgiotoperations";
+ string instanceName = "resource-name123";
+ string dataflowProfileName = "resource-name123";
+ string dataflowName = "resource-name123";
+ ResourceIdentifier dataflowResourceId = DataflowResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, instanceName, dataflowProfileName, dataflowName);
+ DataflowResource dataflowResource = client.GetDataflowResource(dataflowResourceId);
+
+ // invoke the operation
+ DataflowResource result = await dataflowResource.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
+ DataflowResourceData 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_DataflowDelete()
+ {
+ // Generated from example definition: 2024-11-01/Dataflow_Delete_MaximumSet_Gen.json
+ // this example is just showing the usage of "DataflowResource_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 DataflowResource created on azure
+ // for more information of creating DataflowResource, please refer to the document of DataflowResource
+ string subscriptionId = "F8C729F9-DF9C-4743-848F-96EE433D8E53";
+ string resourceGroupName = "rgiotoperations";
+ string instanceName = "resource-name123";
+ string dataflowProfileName = "resource-name123";
+ string dataflowName = "resource-name123";
+ ResourceIdentifier dataflowResourceId = DataflowResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, instanceName, dataflowProfileName, dataflowName);
+ DataflowResource dataflowResource = client.GetDataflowResource(dataflowResourceId);
+
+ // invoke the operation
+ await dataflowResource.DeleteAsync(WaitUntil.Completed);
+
+ Console.WriteLine("Succeeded");
+ }
+
+ [Test]
+ [Ignore("Only validating compilation of examples")]
+ public async Task Update_DataflowCreateOrUpdateComplexContextualization()
+ {
+ // Generated from example definition: 2024-11-01/Dataflow_CreateOrUpdate_ComplexContextualization.json
+ // this example is just showing the usage of "DataflowResource_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 DataflowResource created on azure
+ // for more information of creating DataflowResource, please refer to the document of DataflowResource
+ string subscriptionId = "F8C729F9-DF9C-4743-848F-96EE433D8E53";
+ string resourceGroupName = "rgiotoperations";
+ string instanceName = "resource-name123";
+ string dataflowProfileName = "resource-name123";
+ string dataflowName = "aio-to-adx-contexualized";
+ ResourceIdentifier dataflowResourceId = DataflowResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, instanceName, dataflowProfileName, dataflowName);
+ DataflowResource dataflowResource = client.GetDataflowResource(dataflowResourceId);
+
+ // invoke the operation
+ DataflowResourceData data = new DataflowResourceData(new ExtendedLocation("qmbrfwcpwwhggszhrdjv", ExtendedLocationType.CustomLocation))
+ {
+ Properties = new DataflowProperties(new DataflowOperation[]
+ {
+new DataflowOperation(OperationType.Source)
+{
+Name = "source1",
+SourceSettings = new DataflowSourceOperationSettings("aio-builtin-broker-endpoint", new string[]{"azure-iot-operations/data/thermostat"}),
+},
+new DataflowOperation(OperationType.BuiltInTransformation)
+{
+Name = "transformation1",
+BuiltInTransformationSettings = new DataflowBuiltInTransformationSettings
+{
+Datasets = {new DataflowBuiltInTransformationDataset("quality", new string[]{"$source.country", "$context.country"})
+{
+Expression = "$1 == $2",
+}},
+Map = {new DataflowBuiltInTransformationMap(new string[]{"*"}, "*"), new DataflowBuiltInTransformationMap(new string[]{"$context(quality).*"}, "enriched.*")},
+},
+},
+new DataflowOperation(OperationType.Destination)
+{
+Name = "destination1",
+DestinationSettings = new DataflowDestinationOperationSettings("adx-endpoint", "mytable"),
+}
+ })
+ {
+ Mode = OperationalMode.Enabled,
+ },
+ };
+ ArmOperation lro = await dataflowResource.UpdateAsync(WaitUntil.Completed, data);
+ DataflowResource 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
+ DataflowResourceData 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_DataflowCreateOrUpdateComplexEventHub()
+ {
+ // Generated from example definition: 2024-11-01/Dataflow_CreateOrUpdate_ComplexEventHub.json
+ // this example is just showing the usage of "DataflowResource_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 DataflowResource created on azure
+ // for more information of creating DataflowResource, please refer to the document of DataflowResource
+ string subscriptionId = "F8C729F9-DF9C-4743-848F-96EE433D8E53";
+ string resourceGroupName = "rgiotoperations";
+ string instanceName = "resource-name123";
+ string dataflowProfileName = "resource-name123";
+ string dataflowName = "aio-to-event-hub-transformed";
+ ResourceIdentifier dataflowResourceId = DataflowResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, instanceName, dataflowProfileName, dataflowName);
+ DataflowResource dataflowResource = client.GetDataflowResource(dataflowResourceId);
+
+ // invoke the operation
+ DataflowResourceData data = new DataflowResourceData(new ExtendedLocation("qmbrfwcpwwhggszhrdjv", ExtendedLocationType.CustomLocation))
+ {
+ Properties = new DataflowProperties(new DataflowOperation[]
+ {
+new DataflowOperation(OperationType.Source)
+{
+Name = "source1",
+SourceSettings = new DataflowSourceOperationSettings("aio-builtin-broker-endpoint", new string[]{"azure-iot-operations/data/thermostat"}),
+},
+new DataflowOperation(OperationType.BuiltInTransformation)
+{
+BuiltInTransformationSettings = new DataflowBuiltInTransformationSettings
+{
+Filter = {new DataflowBuiltInTransformationFilter(new string[]{"temperature.Value", "\"Tag 10\".Value"}, "$1 > 9000 && $2 >= 8000")},
+Map = {new DataflowBuiltInTransformationMap(new string[]{"*"}, "*"), new DataflowBuiltInTransformationMap(new string[]{"temperature.Value", "\"Tag 10\".Value"}, "AvgTemp.Value")
+{
+Expression = "($1+$2)/2",
+}, new DataflowBuiltInTransformationMap(Array.Empty(), "dataflow-processed")
+{
+Expression = "true",
+}, new DataflowBuiltInTransformationMap(new string[]{"temperature.SourceTimestamp"}, "")
+{
+Expression = "",
+}, new DataflowBuiltInTransformationMap(new string[]{"\"Tag 10\""}, "pressure")
+{
+Expression = "",
+}, new DataflowBuiltInTransformationMap(new string[]{"temperature.Value"}, "temperatureF.Value")
+{
+Expression = "cToF($1)",
+}, new DataflowBuiltInTransformationMap(new string[]{"\"Tag 10\".Value"}, "\"Scale Tag 10\".Value")
+{
+Expression = "scale ($1,0,10,0,100)",
+}},
+},
+},
+new DataflowOperation(OperationType.Destination)
+{
+Name = "destination1",
+DestinationSettings = new DataflowDestinationOperationSettings("event-hub-endpoint", "myuniqueeventhub"),
+}
+ })
+ {
+ Mode = OperationalMode.Enabled,
+ },
+ };
+ ArmOperation lro = await dataflowResource.UpdateAsync(WaitUntil.Completed, data);
+ DataflowResource 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
+ DataflowResourceData 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_DataflowCreateOrUpdateFilterToTopic()
+ {
+ // Generated from example definition: 2024-11-01/Dataflow_CreateOrUpdate_FilterToTopic.json
+ // this example is just showing the usage of "DataflowResource_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 DataflowResource created on azure
+ // for more information of creating DataflowResource, please refer to the document of DataflowResource
+ string subscriptionId = "F8C729F9-DF9C-4743-848F-96EE433D8E53";
+ string resourceGroupName = "rgiotoperations";
+ string instanceName = "resource-name123";
+ string dataflowProfileName = "resource-name123";
+ string dataflowName = "mqtt-filter-to-topic";
+ ResourceIdentifier dataflowResourceId = DataflowResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, instanceName, dataflowProfileName, dataflowName);
+ DataflowResource dataflowResource = client.GetDataflowResource(dataflowResourceId);
+
+ // invoke the operation
+ DataflowResourceData data = new DataflowResourceData(new ExtendedLocation("qmbrfwcpwwhggszhrdjv", ExtendedLocationType.CustomLocation))
+ {
+ Properties = new DataflowProperties(new DataflowOperation[]
+ {
+new DataflowOperation(OperationType.Source)
+{
+Name = "source1",
+SourceSettings = new DataflowSourceOperationSettings("aio-builtin-broker-endpoint", new string[]{"azure-iot-operations/data/thermostat"}),
+},
+new DataflowOperation(OperationType.BuiltInTransformation)
+{
+Name = "transformation1",
+BuiltInTransformationSettings = new DataflowBuiltInTransformationSettings
+{
+Filter = {new DataflowBuiltInTransformationFilter(new string[]{"temperature.Value", "\"Tag 10\".Value"}, "$1 > 9000 && $2 >= 8000")
+{
+Type = FilterType.Filter,
+Description = "filter-datapoint",
+}},
+Map = {new DataflowBuiltInTransformationMap(new string[]{"*"}, "*")
+{
+Type = DataflowMappingType.PassThrough,
+}},
+},
+},
+new DataflowOperation(OperationType.Destination)
+{
+Name = "destination1",
+DestinationSettings = new DataflowDestinationOperationSettings("aio-builtin-broker-endpoint", "data/filtered/thermostat"),
+}
+ })
+ {
+ Mode = OperationalMode.Enabled,
+ },
+ };
+ ArmOperation lro = await dataflowResource.UpdateAsync(WaitUntil.Completed, data);
+ DataflowResource 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
+ DataflowResourceData 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_DataflowCreateOrUpdate()
+ {
+ // Generated from example definition: 2024-11-01/Dataflow_CreateOrUpdate_MaximumSet_Gen.json
+ // this example is just showing the usage of "DataflowResource_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 DataflowResource created on azure
+ // for more information of creating DataflowResource, please refer to the document of DataflowResource
+ string subscriptionId = "F8C729F9-DF9C-4743-848F-96EE433D8E53";
+ string resourceGroupName = "rgiotoperations";
+ string instanceName = "resource-name123";
+ string dataflowProfileName = "resource-name123";
+ string dataflowName = "resource-name123";
+ ResourceIdentifier dataflowResourceId = DataflowResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, instanceName, dataflowProfileName, dataflowName);
+ DataflowResource dataflowResource = client.GetDataflowResource(dataflowResourceId);
+
+ // invoke the operation
+ DataflowResourceData data = new DataflowResourceData(new ExtendedLocation("qmbrfwcpwwhggszhrdjv", ExtendedLocationType.CustomLocation))
+ {
+ Properties = new DataflowProperties(new DataflowOperation[]
+ {
+new DataflowOperation(OperationType.Source)
+{
+Name = "knnafvkwoeakm",
+SourceSettings = new DataflowSourceOperationSettings("iixotodhvhkkfcfyrkoveslqig", new string[]{"chkkpymxhp"})
+{
+AssetRef = "zayyykwmckaocywdkohmu",
+SerializationFormat = SourceSerializationFormat.Json,
+SchemaRef = "pknmdzqll",
+},
+BuiltInTransformationSettings = new DataflowBuiltInTransformationSettings
+{
+SerializationFormat = TransformationSerializationFormat.Delta,
+SchemaRef = "mcdc",
+Datasets = {new DataflowBuiltInTransformationDataset("qsfqcgxaxnhfumrsdsokwyv", new string[]{"mosffpsslifkq"})
+{
+Description = "Lorem ipsum odor amet, consectetuer adipiscing elit.",
+SchemaRef = "n",
+Expression = "aatbwomvflemsxialv",
+}},
+Filter = {new DataflowBuiltInTransformationFilter(new string[]{"sxmjkbntgb"}, "n")
+{
+Type = FilterType.Filter,
+Description = "Lorem ipsum odor amet, consectetuer adipiscing elit.",
+}},
+Map = {new DataflowBuiltInTransformationMap(new string[]{"xsbxuk"}, "nvgtmkfl")
+{
+Type = DataflowMappingType.NewProperties,
+Description = "Lorem ipsum odor amet, consectetuer adipiscing elit.",
+Expression = "txoiltogsarwkzalsphvlmt",
+}},
+},
+DestinationSettings = new DataflowDestinationOperationSettings("kybkchnzimerguekuvqlqiqdvvrt", "cbrh"),
+}
+ })
+ {
+ Mode = OperationalMode.Enabled,
+ },
+ };
+ ArmOperation lro = await dataflowResource.UpdateAsync(WaitUntil.Completed, data);
+ DataflowResource 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
+ DataflowResourceData 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_DataflowCreateOrUpdateSimpleEventGrid()
+ {
+ // Generated from example definition: 2024-11-01/Dataflow_CreateOrUpdate_SimpleEventGrid.json
+ // this example is just showing the usage of "DataflowResource_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 DataflowResource created on azure
+ // for more information of creating DataflowResource, please refer to the document of DataflowResource
+ string subscriptionId = "F8C729F9-DF9C-4743-848F-96EE433D8E53";
+ string resourceGroupName = "rgiotoperations";
+ string instanceName = "resource-name123";
+ string dataflowProfileName = "resource-name123";
+ string dataflowName = "aio-to-event-grid";
+ ResourceIdentifier dataflowResourceId = DataflowResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, instanceName, dataflowProfileName, dataflowName);
+ DataflowResource dataflowResource = client.GetDataflowResource(dataflowResourceId);
+
+ // invoke the operation
+ DataflowResourceData data = new DataflowResourceData(new ExtendedLocation("qmbrfwcpwwhggszhrdjv", ExtendedLocationType.CustomLocation))
+ {
+ Properties = new DataflowProperties(new DataflowOperation[]
+ {
+new DataflowOperation(OperationType.Source)
+{
+Name = "source1",
+SourceSettings = new DataflowSourceOperationSettings("aio-builtin-broker-endpoint", new string[]{"thermostats/+/telemetry/temperature/#"}),
+},
+new DataflowOperation(OperationType.Destination)
+{
+Name = "destination1",
+DestinationSettings = new DataflowDestinationOperationSettings("event-grid-endpoint", "factory/telemetry"),
+}
+ })
+ {
+ Mode = OperationalMode.Enabled,
+ },
+ };
+ ArmOperation lro = await dataflowResource.UpdateAsync(WaitUntil.Completed, data);
+ DataflowResource 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
+ DataflowResourceData 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_DataflowCreateOrUpdateSimpleFabric()
+ {
+ // Generated from example definition: 2024-11-01/Dataflow_CreateOrUpdate_SimpleFabric.json
+ // this example is just showing the usage of "DataflowResource_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 DataflowResource created on azure
+ // for more information of creating DataflowResource, please refer to the document of DataflowResource
+ string subscriptionId = "F8C729F9-DF9C-4743-848F-96EE433D8E53";
+ string resourceGroupName = "rgiotoperations";
+ string instanceName = "resource-name123";
+ string dataflowProfileName = "resource-name123";
+ string dataflowName = "aio-to-fabric";
+ ResourceIdentifier dataflowResourceId = DataflowResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, instanceName, dataflowProfileName, dataflowName);
+ DataflowResource dataflowResource = client.GetDataflowResource(dataflowResourceId);
+
+ // invoke the operation
+ DataflowResourceData data = new DataflowResourceData(new ExtendedLocation("qmbrfwcpwwhggszhrdjv", ExtendedLocationType.CustomLocation))
+ {
+ Properties = new DataflowProperties(new DataflowOperation[]
+ {
+new DataflowOperation(OperationType.Source)
+{
+Name = "source1",
+SourceSettings = new DataflowSourceOperationSettings("aio-builtin-broker-endpoint", new string[]{"azure-iot-operations/data/thermostat"}),
+},
+new DataflowOperation(OperationType.BuiltInTransformation)
+{
+BuiltInTransformationSettings = new DataflowBuiltInTransformationSettings
+{
+SerializationFormat = TransformationSerializationFormat.Parquet,
+SchemaRef = "aio-sr://exampleNamespace/exmapleParquetSchema:1.0.0",
+},
+},
+new DataflowOperation(OperationType.Destination)
+{
+Name = "destination1",
+DestinationSettings = new DataflowDestinationOperationSettings("fabric-endpoint", "telemetryTable"),
+}
+ })
+ {
+ Mode = OperationalMode.Enabled,
+ },
+ };
+ ArmOperation lro = await dataflowResource.UpdateAsync(WaitUntil.Completed, data);
+ DataflowResource 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
+ DataflowResourceData resourceData = result.Data;
+ // for demo we just print out the id
+ Console.WriteLine($"Succeeded on id: {resourceData.Id}");
+ }
+ }
+}
diff --git a/sdk/iotoperations/Azure.ResourceManager.IoTOperations/samples/Generated/Samples/Sample_DataflowResourceCollection.cs b/sdk/iotoperations/Azure.ResourceManager.IoTOperations/samples/Generated/Samples/Sample_DataflowResourceCollection.cs
new file mode 100644
index 000000000000..fa1b6d162009
--- /dev/null
+++ b/sdk/iotoperations/Azure.ResourceManager.IoTOperations/samples/Generated/Samples/Sample_DataflowResourceCollection.cs
@@ -0,0 +1,580 @@
+// 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.IoTOperations.Models;
+using NUnit.Framework;
+
+namespace Azure.ResourceManager.IoTOperations.Samples
+{
+ public partial class Sample_DataflowResourceCollection
+ {
+ [Test]
+ [Ignore("Only validating compilation of examples")]
+ public async Task CreateOrUpdate_DataflowCreateOrUpdateComplexContextualization()
+ {
+ // Generated from example definition: 2024-11-01/Dataflow_CreateOrUpdate_ComplexContextualization.json
+ // this example is just showing the usage of "DataflowResource_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 DataflowProfileResource created on azure
+ // for more information of creating DataflowProfileResource, please refer to the document of DataflowProfileResource
+ string subscriptionId = "F8C729F9-DF9C-4743-848F-96EE433D8E53";
+ string resourceGroupName = "rgiotoperations";
+ string instanceName = "resource-name123";
+ string dataflowProfileName = "resource-name123";
+ ResourceIdentifier dataflowProfileResourceId = DataflowProfileResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, instanceName, dataflowProfileName);
+ DataflowProfileResource dataflowProfileResource = client.GetDataflowProfileResource(dataflowProfileResourceId);
+
+ // get the collection of this DataflowResource
+ DataflowResourceCollection collection = dataflowProfileResource.GetDataflowResources();
+
+ // invoke the operation
+ string dataflowName = "aio-to-adx-contexualized";
+ DataflowResourceData data = new DataflowResourceData(new ExtendedLocation("qmbrfwcpwwhggszhrdjv", ExtendedLocationType.CustomLocation))
+ {
+ Properties = new DataflowProperties(new DataflowOperation[]
+ {
+new DataflowOperation(OperationType.Source)
+{
+Name = "source1",
+SourceSettings = new DataflowSourceOperationSettings("aio-builtin-broker-endpoint", new string[]{"azure-iot-operations/data/thermostat"}),
+},
+new DataflowOperation(OperationType.BuiltInTransformation)
+{
+Name = "transformation1",
+BuiltInTransformationSettings = new DataflowBuiltInTransformationSettings
+{
+Datasets = {new DataflowBuiltInTransformationDataset("quality", new string[]{"$source.country", "$context.country"})
+{
+Expression = "$1 == $2",
+}},
+Map = {new DataflowBuiltInTransformationMap(new string[]{"*"}, "*"), new DataflowBuiltInTransformationMap(new string[]{"$context(quality).*"}, "enriched.*")},
+},
+},
+new DataflowOperation(OperationType.Destination)
+{
+Name = "destination1",
+DestinationSettings = new DataflowDestinationOperationSettings("adx-endpoint", "mytable"),
+}
+ })
+ {
+ Mode = OperationalMode.Enabled,
+ },
+ };
+ ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, dataflowName, data);
+ DataflowResource 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
+ DataflowResourceData 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_DataflowCreateOrUpdateComplexEventHub()
+ {
+ // Generated from example definition: 2024-11-01/Dataflow_CreateOrUpdate_ComplexEventHub.json
+ // this example is just showing the usage of "DataflowResource_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 DataflowProfileResource created on azure
+ // for more information of creating DataflowProfileResource, please refer to the document of DataflowProfileResource
+ string subscriptionId = "F8C729F9-DF9C-4743-848F-96EE433D8E53";
+ string resourceGroupName = "rgiotoperations";
+ string instanceName = "resource-name123";
+ string dataflowProfileName = "resource-name123";
+ ResourceIdentifier dataflowProfileResourceId = DataflowProfileResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, instanceName, dataflowProfileName);
+ DataflowProfileResource dataflowProfileResource = client.GetDataflowProfileResource(dataflowProfileResourceId);
+
+ // get the collection of this DataflowResource
+ DataflowResourceCollection collection = dataflowProfileResource.GetDataflowResources();
+
+ // invoke the operation
+ string dataflowName = "aio-to-event-hub-transformed";
+ DataflowResourceData data = new DataflowResourceData(new ExtendedLocation("qmbrfwcpwwhggszhrdjv", ExtendedLocationType.CustomLocation))
+ {
+ Properties = new DataflowProperties(new DataflowOperation[]
+ {
+new DataflowOperation(OperationType.Source)
+{
+Name = "source1",
+SourceSettings = new DataflowSourceOperationSettings("aio-builtin-broker-endpoint", new string[]{"azure-iot-operations/data/thermostat"}),
+},
+new DataflowOperation(OperationType.BuiltInTransformation)
+{
+BuiltInTransformationSettings = new DataflowBuiltInTransformationSettings
+{
+Filter = {new DataflowBuiltInTransformationFilter(new string[]{"temperature.Value", "\"Tag 10\".Value"}, "$1 > 9000 && $2 >= 8000")},
+Map = {new DataflowBuiltInTransformationMap(new string[]{"*"}, "*"), new DataflowBuiltInTransformationMap(new string[]{"temperature.Value", "\"Tag 10\".Value"}, "AvgTemp.Value")
+{
+Expression = "($1+$2)/2",
+}, new DataflowBuiltInTransformationMap(Array.Empty(), "dataflow-processed")
+{
+Expression = "true",
+}, new DataflowBuiltInTransformationMap(new string[]{"temperature.SourceTimestamp"}, "")
+{
+Expression = "",
+}, new DataflowBuiltInTransformationMap(new string[]{"\"Tag 10\""}, "pressure")
+{
+Expression = "",
+}, new DataflowBuiltInTransformationMap(new string[]{"temperature.Value"}, "temperatureF.Value")
+{
+Expression = "cToF($1)",
+}, new DataflowBuiltInTransformationMap(new string[]{"\"Tag 10\".Value"}, "\"Scale Tag 10\".Value")
+{
+Expression = "scale ($1,0,10,0,100)",
+}},
+},
+},
+new DataflowOperation(OperationType.Destination)
+{
+Name = "destination1",
+DestinationSettings = new DataflowDestinationOperationSettings("event-hub-endpoint", "myuniqueeventhub"),
+}
+ })
+ {
+ Mode = OperationalMode.Enabled,
+ },
+ };
+ ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, dataflowName, data);
+ DataflowResource 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
+ DataflowResourceData 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_DataflowCreateOrUpdateFilterToTopic()
+ {
+ // Generated from example definition: 2024-11-01/Dataflow_CreateOrUpdate_FilterToTopic.json
+ // this example is just showing the usage of "DataflowResource_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 DataflowProfileResource created on azure
+ // for more information of creating DataflowProfileResource, please refer to the document of DataflowProfileResource
+ string subscriptionId = "F8C729F9-DF9C-4743-848F-96EE433D8E53";
+ string resourceGroupName = "rgiotoperations";
+ string instanceName = "resource-name123";
+ string dataflowProfileName = "resource-name123";
+ ResourceIdentifier dataflowProfileResourceId = DataflowProfileResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, instanceName, dataflowProfileName);
+ DataflowProfileResource dataflowProfileResource = client.GetDataflowProfileResource(dataflowProfileResourceId);
+
+ // get the collection of this DataflowResource
+ DataflowResourceCollection collection = dataflowProfileResource.GetDataflowResources();
+
+ // invoke the operation
+ string dataflowName = "mqtt-filter-to-topic";
+ DataflowResourceData data = new DataflowResourceData(new ExtendedLocation("qmbrfwcpwwhggszhrdjv", ExtendedLocationType.CustomLocation))
+ {
+ Properties = new DataflowProperties(new DataflowOperation[]
+ {
+new DataflowOperation(OperationType.Source)
+{
+Name = "source1",
+SourceSettings = new DataflowSourceOperationSettings("aio-builtin-broker-endpoint", new string[]{"azure-iot-operations/data/thermostat"}),
+},
+new DataflowOperation(OperationType.BuiltInTransformation)
+{
+Name = "transformation1",
+BuiltInTransformationSettings = new DataflowBuiltInTransformationSettings
+{
+Filter = {new DataflowBuiltInTransformationFilter(new string[]{"temperature.Value", "\"Tag 10\".Value"}, "$1 > 9000 && $2 >= 8000")
+{
+Type = FilterType.Filter,
+Description = "filter-datapoint",
+}},
+Map = {new DataflowBuiltInTransformationMap(new string[]{"*"}, "*")
+{
+Type = DataflowMappingType.PassThrough,
+}},
+},
+},
+new DataflowOperation(OperationType.Destination)
+{
+Name = "destination1",
+DestinationSettings = new DataflowDestinationOperationSettings("aio-builtin-broker-endpoint", "data/filtered/thermostat"),
+}
+ })
+ {
+ Mode = OperationalMode.Enabled,
+ },
+ };
+ ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, dataflowName, data);
+ DataflowResource 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
+ DataflowResourceData 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_DataflowCreateOrUpdate()
+ {
+ // Generated from example definition: 2024-11-01/Dataflow_CreateOrUpdate_MaximumSet_Gen.json
+ // this example is just showing the usage of "DataflowResource_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 DataflowProfileResource created on azure
+ // for more information of creating DataflowProfileResource, please refer to the document of DataflowProfileResource
+ string subscriptionId = "F8C729F9-DF9C-4743-848F-96EE433D8E53";
+ string resourceGroupName = "rgiotoperations";
+ string instanceName = "resource-name123";
+ string dataflowProfileName = "resource-name123";
+ ResourceIdentifier dataflowProfileResourceId = DataflowProfileResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, instanceName, dataflowProfileName);
+ DataflowProfileResource dataflowProfileResource = client.GetDataflowProfileResource(dataflowProfileResourceId);
+
+ // get the collection of this DataflowResource
+ DataflowResourceCollection collection = dataflowProfileResource.GetDataflowResources();
+
+ // invoke the operation
+ string dataflowName = "resource-name123";
+ DataflowResourceData data = new DataflowResourceData(new ExtendedLocation("qmbrfwcpwwhggszhrdjv", ExtendedLocationType.CustomLocation))
+ {
+ Properties = new DataflowProperties(new DataflowOperation[]
+ {
+new DataflowOperation(OperationType.Source)
+{
+Name = "knnafvkwoeakm",
+SourceSettings = new DataflowSourceOperationSettings("iixotodhvhkkfcfyrkoveslqig", new string[]{"chkkpymxhp"})
+{
+AssetRef = "zayyykwmckaocywdkohmu",
+SerializationFormat = SourceSerializationFormat.Json,
+SchemaRef = "pknmdzqll",
+},
+BuiltInTransformationSettings = new DataflowBuiltInTransformationSettings
+{
+SerializationFormat = TransformationSerializationFormat.Delta,
+SchemaRef = "mcdc",
+Datasets = {new DataflowBuiltInTransformationDataset("qsfqcgxaxnhfumrsdsokwyv", new string[]{"mosffpsslifkq"})
+{
+Description = "Lorem ipsum odor amet, consectetuer adipiscing elit.",
+SchemaRef = "n",
+Expression = "aatbwomvflemsxialv",
+}},
+Filter = {new DataflowBuiltInTransformationFilter(new string[]{"sxmjkbntgb"}, "n")
+{
+Type = FilterType.Filter,
+Description = "Lorem ipsum odor amet, consectetuer adipiscing elit.",
+}},
+Map = {new DataflowBuiltInTransformationMap(new string[]{"xsbxuk"}, "nvgtmkfl")
+{
+Type = DataflowMappingType.NewProperties,
+Description = "Lorem ipsum odor amet, consectetuer adipiscing elit.",
+Expression = "txoiltogsarwkzalsphvlmt",
+}},
+},
+DestinationSettings = new DataflowDestinationOperationSettings("kybkchnzimerguekuvqlqiqdvvrt", "cbrh"),
+}
+ })
+ {
+ Mode = OperationalMode.Enabled,
+ },
+ };
+ ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, dataflowName, data);
+ DataflowResource 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
+ DataflowResourceData 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_DataflowCreateOrUpdateSimpleEventGrid()
+ {
+ // Generated from example definition: 2024-11-01/Dataflow_CreateOrUpdate_SimpleEventGrid.json
+ // this example is just showing the usage of "DataflowResource_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 DataflowProfileResource created on azure
+ // for more information of creating DataflowProfileResource, please refer to the document of DataflowProfileResource
+ string subscriptionId = "F8C729F9-DF9C-4743-848F-96EE433D8E53";
+ string resourceGroupName = "rgiotoperations";
+ string instanceName = "resource-name123";
+ string dataflowProfileName = "resource-name123";
+ ResourceIdentifier dataflowProfileResourceId = DataflowProfileResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, instanceName, dataflowProfileName);
+ DataflowProfileResource dataflowProfileResource = client.GetDataflowProfileResource(dataflowProfileResourceId);
+
+ // get the collection of this DataflowResource
+ DataflowResourceCollection collection = dataflowProfileResource.GetDataflowResources();
+
+ // invoke the operation
+ string dataflowName = "aio-to-event-grid";
+ DataflowResourceData data = new DataflowResourceData(new ExtendedLocation("qmbrfwcpwwhggszhrdjv", ExtendedLocationType.CustomLocation))
+ {
+ Properties = new DataflowProperties(new DataflowOperation[]
+ {
+new DataflowOperation(OperationType.Source)
+{
+Name = "source1",
+SourceSettings = new DataflowSourceOperationSettings("aio-builtin-broker-endpoint", new string[]{"thermostats/+/telemetry/temperature/#"}),
+},
+new DataflowOperation(OperationType.Destination)
+{
+Name = "destination1",
+DestinationSettings = new DataflowDestinationOperationSettings("event-grid-endpoint", "factory/telemetry"),
+}
+ })
+ {
+ Mode = OperationalMode.Enabled,
+ },
+ };
+ ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, dataflowName, data);
+ DataflowResource 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
+ DataflowResourceData 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_DataflowCreateOrUpdateSimpleFabric()
+ {
+ // Generated from example definition: 2024-11-01/Dataflow_CreateOrUpdate_SimpleFabric.json
+ // this example is just showing the usage of "DataflowResource_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 DataflowProfileResource created on azure
+ // for more information of creating DataflowProfileResource, please refer to the document of DataflowProfileResource
+ string subscriptionId = "F8C729F9-DF9C-4743-848F-96EE433D8E53";
+ string resourceGroupName = "rgiotoperations";
+ string instanceName = "resource-name123";
+ string dataflowProfileName = "resource-name123";
+ ResourceIdentifier dataflowProfileResourceId = DataflowProfileResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, instanceName, dataflowProfileName);
+ DataflowProfileResource dataflowProfileResource = client.GetDataflowProfileResource(dataflowProfileResourceId);
+
+ // get the collection of this DataflowResource
+ DataflowResourceCollection collection = dataflowProfileResource.GetDataflowResources();
+
+ // invoke the operation
+ string dataflowName = "aio-to-fabric";
+ DataflowResourceData data = new DataflowResourceData(new ExtendedLocation("qmbrfwcpwwhggszhrdjv", ExtendedLocationType.CustomLocation))
+ {
+ Properties = new DataflowProperties(new DataflowOperation[]
+ {
+new DataflowOperation(OperationType.Source)
+{
+Name = "source1",
+SourceSettings = new DataflowSourceOperationSettings("aio-builtin-broker-endpoint", new string[]{"azure-iot-operations/data/thermostat"}),
+},
+new DataflowOperation(OperationType.BuiltInTransformation)
+{
+BuiltInTransformationSettings = new DataflowBuiltInTransformationSettings
+{
+SerializationFormat = TransformationSerializationFormat.Parquet,
+SchemaRef = "aio-sr://exampleNamespace/exmapleParquetSchema:1.0.0",
+},
+},
+new DataflowOperation(OperationType.Destination)
+{
+Name = "destination1",
+DestinationSettings = new DataflowDestinationOperationSettings("fabric-endpoint", "telemetryTable"),
+}
+ })
+ {
+ Mode = OperationalMode.Enabled,
+ },
+ };
+ ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, dataflowName, data);
+ DataflowResource 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
+ DataflowResourceData 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_DataflowGet()
+ {
+ // Generated from example definition: 2024-11-01/Dataflow_Get_MaximumSet_Gen.json
+ // this example is just showing the usage of "DataflowResource_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 DataflowProfileResource created on azure
+ // for more information of creating DataflowProfileResource, please refer to the document of DataflowProfileResource
+ string subscriptionId = "F8C729F9-DF9C-4743-848F-96EE433D8E53";
+ string resourceGroupName = "rgiotoperations";
+ string instanceName = "resource-name123";
+ string dataflowProfileName = "resource-name123";
+ ResourceIdentifier dataflowProfileResourceId = DataflowProfileResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, instanceName, dataflowProfileName);
+ DataflowProfileResource dataflowProfileResource = client.GetDataflowProfileResource(dataflowProfileResourceId);
+
+ // get the collection of this DataflowResource
+ DataflowResourceCollection collection = dataflowProfileResource.GetDataflowResources();
+
+ // invoke the operation
+ string dataflowName = "resource-name123";
+ DataflowResource result = await collection.GetAsync(dataflowName);
+
+ // 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
+ DataflowResourceData 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_DataflowListByProfileResource()
+ {
+ // Generated from example definition: 2024-11-01/Dataflow_ListByProfileResource_MaximumSet_Gen.json
+ // this example is just showing the usage of "DataflowResource_ListByResourceGroup" operation, for the dependent resources, they will have to be created separately.
+
+ // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this DataflowProfileResource created on azure
+ // for more information of creating DataflowProfileResource, please refer to the document of DataflowProfileResource
+ string subscriptionId = "F8C729F9-DF9C-4743-848F-96EE433D8E53";
+ string resourceGroupName = "rgiotoperations";
+ string instanceName = "resource-name123";
+ string dataflowProfileName = "resource-name123";
+ ResourceIdentifier dataflowProfileResourceId = DataflowProfileResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, instanceName, dataflowProfileName);
+ DataflowProfileResource dataflowProfileResource = client.GetDataflowProfileResource(dataflowProfileResourceId);
+
+ // get the collection of this DataflowResource
+ DataflowResourceCollection collection = dataflowProfileResource.GetDataflowResources();
+
+ // invoke the operation and iterate over the result
+ await foreach (DataflowResource 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
+ DataflowResourceData 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_DataflowGet()
+ {
+ // Generated from example definition: 2024-11-01/Dataflow_Get_MaximumSet_Gen.json
+ // this example is just showing the usage of "DataflowResource_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 DataflowProfileResource created on azure
+ // for more information of creating DataflowProfileResource, please refer to the document of DataflowProfileResource
+ string subscriptionId = "F8C729F9-DF9C-4743-848F-96EE433D8E53";
+ string resourceGroupName = "rgiotoperations";
+ string instanceName = "resource-name123";
+ string dataflowProfileName = "resource-name123";
+ ResourceIdentifier dataflowProfileResourceId = DataflowProfileResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, instanceName, dataflowProfileName);
+ DataflowProfileResource dataflowProfileResource = client.GetDataflowProfileResource(dataflowProfileResourceId);
+
+ // get the collection of this DataflowResource
+ DataflowResourceCollection collection = dataflowProfileResource.GetDataflowResources();
+
+ // invoke the operation
+ string dataflowName = "resource-name123";
+ bool result = await collection.ExistsAsync(dataflowName);
+
+ Console.WriteLine($"Succeeded: {result}");
+ }
+
+ [Test]
+ [Ignore("Only validating compilation of examples")]
+ public async Task GetIfExists_DataflowGet()
+ {
+ // Generated from example definition: 2024-11-01/Dataflow_Get_MaximumSet_Gen.json
+ // this example is just showing the usage of "DataflowResource_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 DataflowProfileResource created on azure
+ // for more information of creating DataflowProfileResource, please refer to the document of DataflowProfileResource
+ string subscriptionId = "F8C729F9-DF9C-4743-848F-96EE433D8E53";
+ string resourceGroupName = "rgiotoperations";
+ string instanceName = "resource-name123";
+ string dataflowProfileName = "resource-name123";
+ ResourceIdentifier dataflowProfileResourceId = DataflowProfileResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, instanceName, dataflowProfileName);
+ DataflowProfileResource dataflowProfileResource = client.GetDataflowProfileResource(dataflowProfileResourceId);
+
+ // get the collection of this DataflowResource
+ DataflowResourceCollection collection = dataflowProfileResource.GetDataflowResources();
+
+ // invoke the operation
+ string dataflowName = "resource-name123";
+ NullableResponse response = await collection.GetIfExistsAsync(dataflowName);
+ DataflowResource 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
+ DataflowResourceData resourceData = result.Data;
+ // for demo we just print out the id
+ Console.WriteLine($"Succeeded on id: {resourceData.Id}");
+ }
+ }
+ }
+}
diff --git a/sdk/iotoperations/Azure.ResourceManager.IoTOperations/samples/Generated/Samples/Sample_InstanceResource.cs b/sdk/iotoperations/Azure.ResourceManager.IoTOperations/samples/Generated/Samples/Sample_InstanceResource.cs
new file mode 100644
index 000000000000..83313b99e954
--- /dev/null
+++ b/sdk/iotoperations/Azure.ResourceManager.IoTOperations/samples/Generated/Samples/Sample_InstanceResource.cs
@@ -0,0 +1,114 @@
+// 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.IoTOperations.Models;
+using Azure.ResourceManager.Models;
+using NUnit.Framework;
+
+namespace Azure.ResourceManager.IoTOperations.Samples
+{
+ public partial class Sample_InstanceResource
+ {
+ [Test]
+ [Ignore("Only validating compilation of examples")]
+ public async Task Get_InstanceGet()
+ {
+ // Generated from example definition: 2024-11-01/Instance_Get_MaximumSet_Gen.json
+ // this example is just showing the usage of "InstanceResource_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 InstanceResource created on azure
+ // for more information of creating InstanceResource, please refer to the document of InstanceResource
+ string subscriptionId = "F8C729F9-DF9C-4743-848F-96EE433D8E53";
+ string resourceGroupName = "rgiotoperations";
+ string instanceName = "aio-instance";
+ ResourceIdentifier instanceResourceId = InstanceResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, instanceName);
+ InstanceResource instanceResource = client.GetInstanceResource(instanceResourceId);
+
+ // invoke the operation
+ InstanceResource result = await instanceResource.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
+ InstanceResourceData 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_InstanceDelete()
+ {
+ // Generated from example definition: 2024-11-01/Instance_Delete_MaximumSet_Gen.json
+ // this example is just showing the usage of "InstanceResource_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 InstanceResource created on azure
+ // for more information of creating InstanceResource, please refer to the document of InstanceResource
+ string subscriptionId = "F8C729F9-DF9C-4743-848F-96EE433D8E53";
+ string resourceGroupName = "rgiotoperations";
+ string instanceName = "aio-instance";
+ ResourceIdentifier instanceResourceId = InstanceResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, instanceName);
+ InstanceResource instanceResource = client.GetInstanceResource(instanceResourceId);
+
+ // invoke the operation
+ await instanceResource.DeleteAsync(WaitUntil.Completed);
+
+ Console.WriteLine("Succeeded");
+ }
+
+ [Test]
+ [Ignore("Only validating compilation of examples")]
+ public async Task Update_InstanceUpdate()
+ {
+ // Generated from example definition: 2024-11-01/Instance_Update_MaximumSet_Gen.json
+ // this example is just showing the usage of "InstanceResource_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 InstanceResource created on azure
+ // for more information of creating InstanceResource, please refer to the document of InstanceResource
+ string subscriptionId = "F8C729F9-DF9C-4743-848F-96EE433D8E53";
+ string resourceGroupName = "rgiotoperations";
+ string instanceName = "aio-instance";
+ ResourceIdentifier instanceResourceId = InstanceResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, instanceName);
+ InstanceResource instanceResource = client.GetInstanceResource(instanceResourceId);
+
+ // invoke the operation
+ InstanceResourcePatch patch = new InstanceResourcePatch
+ {
+ Tags = { },
+ Identity = new ManagedServiceIdentity("None")
+ {
+ UserAssignedIdentities = { },
+ },
+ };
+ InstanceResource result = await instanceResource.UpdateAsync(patch);
+
+ // 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
+ InstanceResourceData resourceData = result.Data;
+ // for demo we just print out the id
+ Console.WriteLine($"Succeeded on id: {resourceData.Id}");
+ }
+ }
+}
diff --git a/sdk/iotoperations/Azure.ResourceManager.IoTOperations/samples/Generated/Samples/Sample_InstanceResourceCollection.cs b/sdk/iotoperations/Azure.ResourceManager.IoTOperations/samples/Generated/Samples/Sample_InstanceResourceCollection.cs
new file mode 100644
index 000000000000..61f119d172c7
--- /dev/null
+++ b/sdk/iotoperations/Azure.ResourceManager.IoTOperations/samples/Generated/Samples/Sample_InstanceResourceCollection.cs
@@ -0,0 +1,205 @@
+// 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.IoTOperations.Models;
+using Azure.ResourceManager.Models;
+using Azure.ResourceManager.Resources;
+using NUnit.Framework;
+
+namespace Azure.ResourceManager.IoTOperations.Samples
+{
+ public partial class Sample_InstanceResourceCollection
+ {
+ [Test]
+ [Ignore("Only validating compilation of examples")]
+ public async Task CreateOrUpdate_InstanceCreateOrUpdate()
+ {
+ // Generated from example definition: 2024-11-01/Instance_CreateOrUpdate_MaximumSet_Gen.json
+ // this example is just showing the usage of "InstanceResource_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately.
+
+ // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this ResourceGroupResource created on azure
+ // for more information of creating ResourceGroupResource, please refer to the document of ResourceGroupResource
+ string subscriptionId = "F8C729F9-DF9C-4743-848F-96EE433D8E53";
+ string resourceGroupName = "rgiotoperations";
+ ResourceIdentifier resourceGroupResourceId = ResourceGroupResource.CreateResourceIdentifier(subscriptionId, resourceGroupName);
+ ResourceGroupResource resourceGroupResource = client.GetResourceGroupResource(resourceGroupResourceId);
+
+ // get the collection of this InstanceResource
+ InstanceResourceCollection collection = resourceGroupResource.GetInstanceResources();
+
+ // invoke the operation
+ string instanceName = "aio-instance";
+ InstanceResourceData data = new InstanceResourceData(new AzureLocation("xvewadyhycrjpu"), new ExtendedLocation("qmbrfwcpwwhggszhrdjv", ExtendedLocationType.CustomLocation))
+ {
+ Properties = new InstanceProperties(new SchemaRegistryRef(new ResourceIdentifier("/subscriptions/0000000-0000-0000-0000-000000000000/resourceGroups/resourceGroup123/providers/Microsoft.DeviceRegistry/schemaRegistries/resource-name123")))
+ {
+ Description = "kpqtgocs",
+ },
+ Identity = new ManagedServiceIdentity("None")
+ {
+ UserAssignedIdentities = { },
+ },
+ Tags = { },
+ };
+ ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, instanceName, data);
+ InstanceResource 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
+ InstanceResourceData 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_InstanceGet()
+ {
+ // Generated from example definition: 2024-11-01/Instance_Get_MaximumSet_Gen.json
+ // this example is just showing the usage of "InstanceResource_Get" operation, for the dependent resources, they will have to be created separately.
+
+ // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this ResourceGroupResource created on azure
+ // for more information of creating ResourceGroupResource, please refer to the document of ResourceGroupResource
+ string subscriptionId = "F8C729F9-DF9C-4743-848F-96EE433D8E53";
+ string resourceGroupName = "rgiotoperations";
+ ResourceIdentifier resourceGroupResourceId = ResourceGroupResource.CreateResourceIdentifier(subscriptionId, resourceGroupName);
+ ResourceGroupResource resourceGroupResource = client.GetResourceGroupResource(resourceGroupResourceId);
+
+ // get the collection of this InstanceResource
+ InstanceResourceCollection collection = resourceGroupResource.GetInstanceResources();
+
+ // invoke the operation
+ string instanceName = "aio-instance";
+ InstanceResource result = await collection.GetAsync(instanceName);
+
+ // 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
+ InstanceResourceData 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_InstanceListByResourceGroup()
+ {
+ // Generated from example definition: 2024-11-01/Instance_ListByResourceGroup_MaximumSet_Gen.json
+ // this example is just showing the usage of "InstanceResource_ListByResourceGroup" operation, for the dependent resources, they will have to be created separately.
+
+ // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this ResourceGroupResource created on azure
+ // for more information of creating ResourceGroupResource, please refer to the document of ResourceGroupResource
+ string subscriptionId = "F8C729F9-DF9C-4743-848F-96EE433D8E53";
+ string resourceGroupName = "rgiotoperations";
+ ResourceIdentifier resourceGroupResourceId = ResourceGroupResource.CreateResourceIdentifier(subscriptionId, resourceGroupName);
+ ResourceGroupResource resourceGroupResource = client.GetResourceGroupResource(resourceGroupResourceId);
+
+ // get the collection of this InstanceResource
+ InstanceResourceCollection collection = resourceGroupResource.GetInstanceResources();
+
+ // invoke the operation and iterate over the result
+ await foreach (InstanceResource 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
+ InstanceResourceData 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_InstanceGet()
+ {
+ // Generated from example definition: 2024-11-01/Instance_Get_MaximumSet_Gen.json
+ // this example is just showing the usage of "InstanceResource_Get" operation, for the dependent resources, they will have to be created separately.
+
+ // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this ResourceGroupResource created on azure
+ // for more information of creating ResourceGroupResource, please refer to the document of ResourceGroupResource
+ string subscriptionId = "F8C729F9-DF9C-4743-848F-96EE433D8E53";
+ string resourceGroupName = "rgiotoperations";
+ ResourceIdentifier resourceGroupResourceId = ResourceGroupResource.CreateResourceIdentifier(subscriptionId, resourceGroupName);
+ ResourceGroupResource resourceGroupResource = client.GetResourceGroupResource(resourceGroupResourceId);
+
+ // get the collection of this InstanceResource
+ InstanceResourceCollection collection = resourceGroupResource.GetInstanceResources();
+
+ // invoke the operation
+ string instanceName = "aio-instance";
+ bool result = await collection.ExistsAsync(instanceName);
+
+ Console.WriteLine($"Succeeded: {result}");
+ }
+
+ [Test]
+ [Ignore("Only validating compilation of examples")]
+ public async Task GetIfExists_InstanceGet()
+ {
+ // Generated from example definition: 2024-11-01/Instance_Get_MaximumSet_Gen.json
+ // this example is just showing the usage of "InstanceResource_Get" operation, for the dependent resources, they will have to be created separately.
+
+ // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this ResourceGroupResource created on azure
+ // for more information of creating ResourceGroupResource, please refer to the document of ResourceGroupResource
+ string subscriptionId = "F8C729F9-DF9C-4743-848F-96EE433D8E53";
+ string resourceGroupName = "rgiotoperations";
+ ResourceIdentifier resourceGroupResourceId = ResourceGroupResource.CreateResourceIdentifier(subscriptionId, resourceGroupName);
+ ResourceGroupResource resourceGroupResource = client.GetResourceGroupResource(resourceGroupResourceId);
+
+ // get the collection of this InstanceResource
+ InstanceResourceCollection collection = resourceGroupResource.GetInstanceResources();
+
+ // invoke the operation
+ string instanceName = "aio-instance";
+ NullableResponse response = await collection.GetIfExistsAsync(instanceName);
+ InstanceResource 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
+ InstanceResourceData resourceData = result.Data;
+ // for demo we just print out the id
+ Console.WriteLine($"Succeeded on id: {resourceData.Id}");
+ }
+ }
+ }
+}
diff --git a/sdk/iotoperations/Azure.ResourceManager.IoTOperations/samples/Generated/Samples/Sample_SubscriptionResourceExtensions.cs b/sdk/iotoperations/Azure.ResourceManager.IoTOperations/samples/Generated/Samples/Sample_SubscriptionResourceExtensions.cs
new file mode 100644
index 000000000000..93f8bfdc7d44
--- /dev/null
+++ b/sdk/iotoperations/Azure.ResourceManager.IoTOperations/samples/Generated/Samples/Sample_SubscriptionResourceExtensions.cs
@@ -0,0 +1,50 @@
+// 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.IoTOperations.Samples
+{
+ public partial class Sample_SubscriptionResourceExtensions
+ {
+ [Test]
+ [Ignore("Only validating compilation of examples")]
+ public async Task GetInstanceResources_InstanceListBySubscription()
+ {
+ // Generated from example definition: 2024-11-01/Instance_ListBySubscription_MaximumSet_Gen.json
+ // this example is just showing the usage of "InstanceResource_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 = "F8C729F9-DF9C-4743-848F-96EE433D8E53";
+ ResourceIdentifier subscriptionResourceId = SubscriptionResource.CreateResourceIdentifier(subscriptionId);
+ SubscriptionResource subscriptionResource = client.GetSubscriptionResource(subscriptionResourceId);
+
+ // invoke the operation and iterate over the result
+ await foreach (InstanceResource item in subscriptionResource.GetInstanceResourcesAsync())
+ {
+ // 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
+ InstanceResourceData resourceData = item.Data;
+ // for demo we just print out the id
+ Console.WriteLine($"Succeeded on id: {resourceData.Id}");
+ }
+
+ Console.WriteLine("Succeeded");
+ }
+ }
+}
diff --git a/sdk/iotoperations/Azure.ResourceManager.IoTOperations/src/Azure.ResourceManager.IoTOperations.csproj b/sdk/iotoperations/Azure.ResourceManager.IoTOperations/src/Azure.ResourceManager.IoTOperations.csproj
new file mode 100644
index 000000000000..f35cdf07bb01
--- /dev/null
+++ b/sdk/iotoperations/Azure.ResourceManager.IoTOperations/src/Azure.ResourceManager.IoTOperations.csproj
@@ -0,0 +1,10 @@
+
+
+ This is the Azure.ResourceManager.IoTOperations client library for developing .NET applications with rich experience.
+ Azure SDK Code Generation Azure.ResourceManager.IoTOperations for Azure Data Plane
+ 1.0.0-beta.1
+ Azure.ResourceManager.IoTOperations
+ $(RequiredTargetFrameworks)
+ true
+
+
diff --git a/sdk/iotoperations/Azure.ResourceManager.IoTOperations/src/Generated/ArmIoTOperationsModelFactory.cs b/sdk/iotoperations/Azure.ResourceManager.IoTOperations/src/Generated/ArmIoTOperationsModelFactory.cs
new file mode 100644
index 000000000000..be165eee33a7
--- /dev/null
+++ b/sdk/iotoperations/Azure.ResourceManager.IoTOperations/src/Generated/ArmIoTOperationsModelFactory.cs
@@ -0,0 +1,299 @@
+// 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.IoTOperations.Models
+{
+ /// Model factory for models.
+ public static partial class ArmIoTOperationsModelFactory
+ {
+ /// Initializes a new instance of .
+ /// The id.
+ /// The name.
+ /// The resourceType.
+ /// The systemData.
+ /// The resource-specific properties for this resource.
+ /// Edge location of the resource.
+ /// A new instance for mocking.
+ public static DataflowEndpointResourceData DataflowEndpointResourceData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, DataflowEndpointProperties properties = null, ExtendedLocation extendedLocation = null)
+ {
+ return new DataflowEndpointResourceData(
+ id,
+ name,
+ resourceType,
+ systemData,
+ properties,
+ extendedLocation,
+ serializedAdditionalRawData: null);
+ }
+
+ /// Initializes a new instance of .
+ /// Endpoint Type.
+ /// Azure Data Explorer endpoint.
+ /// Azure Data Lake endpoint.
+ /// Microsoft Fabric endpoint.
+ /// Kafka endpoint.
+ /// Local persistent volume endpoint.
+ /// Broker endpoint.
+ /// The status of the last operation.
+ /// A new instance for mocking.
+ public static DataflowEndpointProperties DataflowEndpointProperties(EndpointType endpointType = default, DataflowEndpointDataExplorer dataExplorerSettings = null, DataflowEndpointDataLakeStorage dataLakeStorageSettings = null, DataflowEndpointFabricOneLake fabricOneLakeSettings = null, DataflowEndpointKafka kafkaSettings = null, string localStoragePersistentVolumeClaimRef = null, DataflowEndpointMqtt mqttSettings = null, ProvisioningState? provisioningState = null)
+ {
+ return new DataflowEndpointProperties(
+ endpointType,
+ dataExplorerSettings,
+ dataLakeStorageSettings,
+ fabricOneLakeSettings,
+ kafkaSettings,
+ localStoragePersistentVolumeClaimRef != null ? new DataflowEndpointLocalStorage(localStoragePersistentVolumeClaimRef, serializedAdditionalRawData: null) : null,
+ mqttSettings,
+ provisioningState,
+ serializedAdditionalRawData: null);
+ }
+
+ /// Initializes a new instance of .
+ /// The id.
+ /// The name.
+ /// The resourceType.
+ /// The systemData.
+ /// The resource-specific properties for this resource.
+ /// Edge location of the resource.
+ /// A new instance for mocking.
+ public static DataflowResourceData DataflowResourceData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, DataflowProperties properties = null, ExtendedLocation extendedLocation = null)
+ {
+ return new DataflowResourceData(
+ id,
+ name,
+ resourceType,
+ systemData,
+ properties,
+ extendedLocation,
+ serializedAdditionalRawData: null);
+ }
+
+ /// Initializes a new instance of .
+ /// Mode for Dataflow. Optional; defaults to Enabled.
+ /// List of operations including source and destination references as well as transformation.
+ /// The status of the last operation.
+ /// A new instance for mocking.
+ public static DataflowProperties DataflowProperties(OperationalMode? mode = null, IEnumerable operations = null, ProvisioningState? provisioningState = null)
+ {
+ operations ??= new List();
+
+ return new DataflowProperties(mode, operations?.ToList(), provisioningState, serializedAdditionalRawData: null);
+ }
+
+ /// Initializes a new instance of .
+ /// The id.
+ /// The name.
+ /// The resourceType.
+ /// The systemData.
+ /// The resource-specific properties for this resource.
+ /// Edge location of the resource.
+ /// A new instance for mocking.
+ public static DataflowProfileResourceData DataflowProfileResourceData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, DataflowProfileProperties properties = null, ExtendedLocation extendedLocation = null)
+ {
+ return new DataflowProfileResourceData(
+ id,
+ name,
+ resourceType,
+ systemData,
+ properties,
+ extendedLocation,
+ serializedAdditionalRawData: null);
+ }
+
+ /// Initializes a new instance of .
+ /// Spec defines the desired identities of NBC diagnostics settings.
+ /// To manually scale the dataflow profile, specify the maximum number of instances you want to run.
+ /// The status of the last operation.
+ /// A new instance for mocking.
+ public static DataflowProfileProperties DataflowProfileProperties(ProfileDiagnostics diagnostics = null, int? instanceCount = null, ProvisioningState? provisioningState = null)
+ {
+ return new DataflowProfileProperties(diagnostics, instanceCount, provisioningState, serializedAdditionalRawData: null);
+ }
+
+ /// Initializes a new instance of .
+ /// The id.
+ /// The name.
+ /// The resourceType.
+ /// The systemData.
+ /// The resource-specific properties for this resource.
+ /// Edge location of the resource.
+ /// A new instance for mocking.
+ public static BrokerAuthorizationResourceData BrokerAuthorizationResourceData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, BrokerAuthorizationProperties properties = null, ExtendedLocation extendedLocation = null)
+ {
+ return new BrokerAuthorizationResourceData(
+ id,
+ name,
+ resourceType,
+ systemData,
+ properties,
+ extendedLocation,
+ serializedAdditionalRawData: null);
+ }
+
+ /// Initializes a new instance of .
+ /// The list of authorization policies supported by the Authorization Resource.
+ /// The status of the last operation.
+ /// A new instance for mocking.
+ public static BrokerAuthorizationProperties BrokerAuthorizationProperties(AuthorizationConfig authorizationPolicies = null, ProvisioningState? provisioningState = null)
+ {
+ return new BrokerAuthorizationProperties(authorizationPolicies, provisioningState, serializedAdditionalRawData: null);
+ }
+
+ /// Initializes a new instance of .
+ /// The id.
+ /// The name.
+ /// The resourceType.
+ /// The systemData.
+ /// The resource-specific properties for this resource.
+ /// Edge location of the resource.
+ /// A new instance for mocking.
+ public static BrokerAuthenticationResourceData BrokerAuthenticationResourceData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, BrokerAuthenticationProperties properties = null, ExtendedLocation extendedLocation = null)
+ {
+ return new BrokerAuthenticationResourceData(
+ id,
+ name,
+ resourceType,
+ systemData,
+ properties,
+ extendedLocation,
+ serializedAdditionalRawData: null);
+ }
+
+ /// Initializes a new instance of .
+ /// Defines a set of Broker authentication methods to be used on `BrokerListeners`. For each array element one authenticator type supported.
+ /// The status of the last operation.
+ /// A new instance for mocking.
+ public static BrokerAuthenticationProperties BrokerAuthenticationProperties(IEnumerable authenticationMethods = null, ProvisioningState? provisioningState = null)
+ {
+ authenticationMethods ??= new List();
+
+ return new BrokerAuthenticationProperties(authenticationMethods?.ToList(), provisioningState, serializedAdditionalRawData: null);
+ }
+
+ /// Initializes a new instance of .
+ /// The id.
+ /// The name.
+ /// The resourceType.
+ /// The systemData.
+ /// The resource-specific properties for this resource.
+ /// Edge location of the resource.
+ /// A new instance for mocking.
+ public static BrokerListenerResourceData BrokerListenerResourceData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, BrokerListenerProperties properties = null, ExtendedLocation extendedLocation = null)
+ {
+ return new BrokerListenerResourceData(
+ id,
+ name,
+ resourceType,
+ systemData,
+ properties,
+ extendedLocation,
+ serializedAdditionalRawData: null);
+ }
+
+ /// Initializes a new instance of .
+ /// Kubernetes Service name of this listener.
+ /// Ports on which this listener accepts client connections.
+ /// Kubernetes Service type of this listener.
+ /// The status of the last operation.
+ /// A new instance for mocking.
+ public static BrokerListenerProperties BrokerListenerProperties(string serviceName = null, IEnumerable ports = null, ServiceType? serviceType = null, ProvisioningState? provisioningState = null)
+ {
+ ports ??= new List();
+
+ return new BrokerListenerProperties(serviceName, ports?.ToList(), serviceType, provisioningState, serializedAdditionalRawData: null);
+ }
+
+ /// Initializes a new instance of .
+ /// The id.
+ /// The name.
+ /// The resourceType.
+ /// The systemData.
+ /// The resource-specific properties for this resource.
+ /// Edge location of the resource.
+ /// A new instance for mocking.
+ public static BrokerResourceData BrokerResourceData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, BrokerProperties properties = null, ExtendedLocation extendedLocation = null)
+ {
+ return new BrokerResourceData(
+ id,
+ name,
+ resourceType,
+ systemData,
+ properties,
+ extendedLocation,
+ serializedAdditionalRawData: null);
+ }
+
+ /// Initializes a new instance of .
+ /// Advanced settings of Broker.
+ /// The cardinality details of the broker.
+ /// Spec defines the desired identities of Broker diagnostics settings.
+ /// Settings of Disk Backed Message Buffer.
+ /// This setting controls whether Kubernetes CPU resource limits are requested. Increasing the number of replicas or workers proportionally increases the amount of CPU resources requested. If this setting is enabled and there are insufficient CPU resources, an error will be emitted.
+ /// Memory profile of Broker.
+ /// The status of the last operation.
+ /// A new instance for mocking.
+ public static BrokerProperties BrokerProperties(AdvancedSettings advanced = null, Cardinality cardinality = null, BrokerDiagnostics diagnostics = null, DiskBackedMessageBuffer diskBackedMessageBuffer = null, OperationalMode? generateResourceLimitsCpu = null, BrokerMemoryProfile? memoryProfile = null, ProvisioningState? provisioningState = null)
+ {
+ return new BrokerProperties(
+ advanced,
+ cardinality,
+ diagnostics,
+ diskBackedMessageBuffer,
+ generateResourceLimitsCpu != null ? new GenerateResourceLimits(generateResourceLimitsCpu, serializedAdditionalRawData: null) : null,
+ memoryProfile,
+ provisioningState,
+ serializedAdditionalRawData: null);
+ }
+
+ /// Initializes a new instance of .
+ /// The id.
+ /// The name.
+ /// The resourceType.
+ /// The systemData.
+ /// The tags.
+ /// The location.
+ /// The resource-specific properties for this resource.
+ /// Edge location of the resource.
+ /// The managed service identities assigned to this resource.
+ /// A new instance for mocking.
+ public static InstanceResourceData InstanceResourceData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, InstanceProperties properties = null, ExtendedLocation extendedLocation = null, ManagedServiceIdentity identity = null)
+ {
+ tags ??= new Dictionary();
+
+ return new InstanceResourceData(
+ id,
+ name,
+ resourceType,
+ systemData,
+ tags,
+ location,
+ properties,
+ extendedLocation,
+ identity,
+ serializedAdditionalRawData: null);
+ }
+
+ /// Initializes a new instance of .
+ /// Detailed description of the Instance.
+ /// The status of the last operation.
+ /// The Azure IoT Operations version.
+ /// The reference to the Schema Registry for this AIO Instance.
+ /// A new instance for mocking.
+ public static InstanceProperties InstanceProperties(string description = null, ProvisioningState? provisioningState = null, string version = null, ResourceIdentifier schemaRegistryRefResourceId = null)
+ {
+ return new InstanceProperties(description, provisioningState, version, schemaRegistryRefResourceId != null ? new SchemaRegistryRef(schemaRegistryRefResourceId, serializedAdditionalRawData: null) : null, serializedAdditionalRawData: null);
+ }
+ }
+}
diff --git a/sdk/iotoperations/Azure.ResourceManager.IoTOperations/src/Generated/BrokerAuthenticationResource.Serialization.cs b/sdk/iotoperations/Azure.ResourceManager.IoTOperations/src/Generated/BrokerAuthenticationResource.Serialization.cs
new file mode 100644
index 000000000000..d5475abe9159
--- /dev/null
+++ b/sdk/iotoperations/Azure.ResourceManager.IoTOperations/src/Generated/BrokerAuthenticationResource.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.IoTOperations
+{
+ public partial class BrokerAuthenticationResource : IJsonModel
+ {
+ void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) => ((IJsonModel)Data).Write(writer, options);
+
+ BrokerAuthenticationResourceData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => ((IJsonModel)Data).Create(ref reader, options);
+
+ BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) => ModelReaderWriter.Write(Data, options);
+
+ BrokerAuthenticationResourceData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => ModelReaderWriter.Read(data, options);
+
+ string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => ((IPersistableModel)Data).GetFormatFromOptions(options);
+ }
+}
diff --git a/sdk/iotoperations/Azure.ResourceManager.IoTOperations/src/Generated/BrokerAuthenticationResource.cs b/sdk/iotoperations/Azure.ResourceManager.IoTOperations/src/Generated/BrokerAuthenticationResource.cs
new file mode 100644
index 000000000000..591b603fc5cc
--- /dev/null
+++ b/sdk/iotoperations/Azure.ResourceManager.IoTOperations/src/Generated/BrokerAuthenticationResource.cs
@@ -0,0 +1,348 @@
+// 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.IoTOperations
+{
+ ///
+ /// A Class representing a BrokerAuthenticationResource 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 GetBrokerAuthenticationResource method.
+ /// Otherwise you can get one from its parent resource using the GetBrokerAuthenticationResource method.
+ ///
+ public partial class BrokerAuthenticationResource : ArmResource
+ {
+ /// Generate the resource identifier of a instance.
+ /// The subscriptionId.
+ /// The resourceGroupName.
+ /// The instanceName.
+ /// The brokerName.
+ /// The authenticationName.
+ public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string instanceName, string brokerName, string authenticationName)
+ {
+ var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTOperations/instances/{instanceName}/brokers/{brokerName}/authentications/{authenticationName}";
+ return new ResourceIdentifier(resourceId);
+ }
+
+ private readonly ClientDiagnostics _brokerAuthenticationResourceBrokerAuthenticationClientDiagnostics;
+ private readonly BrokerAuthenticationRestOperations _brokerAuthenticationResourceBrokerAuthenticationRestClient;
+ private readonly BrokerAuthenticationResourceData _data;
+
+ /// Gets the resource type for the operations.
+ public static readonly ResourceType ResourceType = "Microsoft.IoTOperations/instances/brokers/authentications";
+
+ /// Initializes a new instance of the class for mocking.
+ protected BrokerAuthenticationResource()
+ {
+ }
+
+ /// Initializes a new instance of the class.
+ /// The client parameters to use in these operations.
+ /// The resource that is the target of operations.
+ internal BrokerAuthenticationResource(ArmClient client, BrokerAuthenticationResourceData 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 BrokerAuthenticationResource(ArmClient client, ResourceIdentifier id) : base(client, id)
+ {
+ _brokerAuthenticationResourceBrokerAuthenticationClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.IoTOperations", ResourceType.Namespace, Diagnostics);
+ TryGetApiVersion(ResourceType, out string brokerAuthenticationResourceBrokerAuthenticationApiVersion);
+ _brokerAuthenticationResourceBrokerAuthenticationRestClient = new BrokerAuthenticationRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, brokerAuthenticationResourceBrokerAuthenticationApiVersion);
+#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 BrokerAuthenticationResourceData 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 BrokerAuthenticationResource
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTOperations/instances/{instanceName}/brokers/{brokerName}/authentications/{authenticationName}
+ ///
+ /// -
+ /// Operation Id
+ /// BrokerAuthenticationResource_Get
+ ///
+ /// -
+ /// Default Api Version
+ /// 2024-11-01
+ ///
+ /// -
+ /// Resource
+ ///
+ ///
+ ///
+ ///
+ /// The cancellation token to use.
+ public virtual async Task> GetAsync(CancellationToken cancellationToken = default)
+ {
+ using var scope = _brokerAuthenticationResourceBrokerAuthenticationClientDiagnostics.CreateScope("BrokerAuthenticationResource.Get");
+ scope.Start();
+ try
+ {
+ var response = await _brokerAuthenticationResourceBrokerAuthenticationRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false);
+ if (response.Value == null)
+ throw new RequestFailedException(response.GetRawResponse());
+ return Response.FromValue(new BrokerAuthenticationResource(Client, response.Value), response.GetRawResponse());
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+
+ ///
+ /// Get a BrokerAuthenticationResource
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTOperations/instances/{instanceName}/brokers/{brokerName}/authentications/{authenticationName}
+ ///
+ /// -
+ /// Operation Id
+ /// BrokerAuthenticationResource_Get
+ ///
+ /// -
+ /// Default Api Version
+ /// 2024-11-01
+ ///
+ /// -
+ /// Resource
+ ///
+ ///
+ ///
+ ///
+ /// The cancellation token to use.
+ public virtual Response Get(CancellationToken cancellationToken = default)
+ {
+ using var scope = _brokerAuthenticationResourceBrokerAuthenticationClientDiagnostics.CreateScope("BrokerAuthenticationResource.Get");
+ scope.Start();
+ try
+ {
+ var response = _brokerAuthenticationResourceBrokerAuthenticationRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken);
+ if (response.Value == null)
+ throw new RequestFailedException(response.GetRawResponse());
+ return Response.FromValue(new BrokerAuthenticationResource(Client, response.Value), response.GetRawResponse());
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+
+ ///
+ /// Delete a BrokerAuthenticationResource
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTOperations/instances/{instanceName}/brokers/{brokerName}/authentications/{authenticationName}
+ ///
+ /// -
+ /// Operation Id
+ /// BrokerAuthenticationResource_Delete
+ ///
+ /// -
+ /// Default Api Version
+ /// 2024-11-01
+ ///
+ /// -
+ /// Resource
+ ///
+ ///
+ ///
+ ///
+ /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples.
+ /// The cancellation token to use.
+ public virtual async Task DeleteAsync(WaitUntil waitUntil, CancellationToken cancellationToken = default)
+ {
+ using var scope = _brokerAuthenticationResourceBrokerAuthenticationClientDiagnostics.CreateScope("BrokerAuthenticationResource.Delete");
+ scope.Start();
+ try
+ {
+ var response = await _brokerAuthenticationResourceBrokerAuthenticationRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false);
+ var operation = new IoTOperationsArmOperation(_brokerAuthenticationResourceBrokerAuthenticationClientDiagnostics, Pipeline, _brokerAuthenticationResourceBrokerAuthenticationRestClient.CreateDeleteRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name).Request, response, OperationFinalStateVia.Location);
+ if (waitUntil == WaitUntil.Completed)
+ await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false);
+ return operation;
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+
+ ///
+ /// Delete a BrokerAuthenticationResource
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTOperations/instances/{instanceName}/brokers/{brokerName}/authentications/{authenticationName}
+ ///
+ /// -
+ /// Operation Id
+ /// BrokerAuthenticationResource_Delete
+ ///
+ /// -
+ /// Default Api Version
+ /// 2024-11-01
+ ///
+ /// -
+ /// Resource
+ ///
+ ///
+ ///
+ ///
+ /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples.
+ /// The cancellation token to use.
+ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancellationToken = default)
+ {
+ using var scope = _brokerAuthenticationResourceBrokerAuthenticationClientDiagnostics.CreateScope("BrokerAuthenticationResource.Delete");
+ scope.Start();
+ try
+ {
+ var response = _brokerAuthenticationResourceBrokerAuthenticationRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken);
+ var operation = new IoTOperationsArmOperation(_brokerAuthenticationResourceBrokerAuthenticationClientDiagnostics, Pipeline, _brokerAuthenticationResourceBrokerAuthenticationRestClient.CreateDeleteRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name).Request, response, OperationFinalStateVia.Location);
+ if (waitUntil == WaitUntil.Completed)
+ operation.WaitForCompletionResponse(cancellationToken);
+ return operation;
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+
+ ///
+ /// Create a BrokerAuthenticationResource
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTOperations/instances/{instanceName}/brokers/{brokerName}/authentications/{authenticationName}
+ ///
+ /// -
+ /// Operation Id
+ /// BrokerAuthenticationResource_CreateOrUpdate
+ ///
+ /// -
+ /// Default Api Version
+ /// 2024-11-01
+ ///
+ /// -
+ /// Resource
+ ///
+ ///
+ ///
+ ///
+ /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples.
+ /// Resource create parameters.
+ /// The cancellation token to use.
+ /// is null.
+ public virtual async Task> UpdateAsync(WaitUntil waitUntil, BrokerAuthenticationResourceData data, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNull(data, nameof(data));
+
+ using var scope = _brokerAuthenticationResourceBrokerAuthenticationClientDiagnostics.CreateScope("BrokerAuthenticationResource.Update");
+ scope.Start();
+ try
+ {
+ var response = await _brokerAuthenticationResourceBrokerAuthenticationRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data, cancellationToken).ConfigureAwait(false);
+ var operation = new IoTOperationsArmOperation(new BrokerAuthenticationResourceOperationSource(Client), _brokerAuthenticationResourceBrokerAuthenticationClientDiagnostics, Pipeline, _brokerAuthenticationResourceBrokerAuthenticationRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, 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 BrokerAuthenticationResource
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTOperations/instances/{instanceName}/brokers/{brokerName}/authentications/{authenticationName}
+ ///
+ /// -
+ /// Operation Id
+ /// BrokerAuthenticationResource_CreateOrUpdate
+ ///
+ /// -
+ /// Default Api Version
+ /// 2024-11-01
+ ///
+ /// -
+ /// Resource
+ ///
+ ///
+ ///
+ ///
+ /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples.
+ /// Resource create parameters.
+ /// The cancellation token to use.
+ /// is null.
+ public virtual ArmOperation Update(WaitUntil waitUntil, BrokerAuthenticationResourceData data, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNull(data, nameof(data));
+
+ using var scope = _brokerAuthenticationResourceBrokerAuthenticationClientDiagnostics.CreateScope("BrokerAuthenticationResource.Update");
+ scope.Start();
+ try
+ {
+ var response = _brokerAuthenticationResourceBrokerAuthenticationRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data, cancellationToken);
+ var operation = new IoTOperationsArmOperation(new BrokerAuthenticationResourceOperationSource(Client), _brokerAuthenticationResourceBrokerAuthenticationClientDiagnostics, Pipeline, _brokerAuthenticationResourceBrokerAuthenticationRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data).Request, response, OperationFinalStateVia.AzureAsyncOperation);
+ if (waitUntil == WaitUntil.Completed)
+ operation.WaitForCompletion(cancellationToken);
+ return operation;
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+ }
+}
diff --git a/sdk/iotoperations/Azure.ResourceManager.IoTOperations/src/Generated/BrokerAuthenticationResourceCollection.cs b/sdk/iotoperations/Azure.ResourceManager.IoTOperations/src/Generated/BrokerAuthenticationResourceCollection.cs
new file mode 100644
index 000000000000..94848cfa4f33
--- /dev/null
+++ b/sdk/iotoperations/Azure.ResourceManager.IoTOperations/src/Generated/BrokerAuthenticationResourceCollection.cs
@@ -0,0 +1,493 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.Collections;
+using System.Collections.Generic;
+using System.Globalization;
+using System.Threading;
+using System.Threading.Tasks;
+using Autorest.CSharp.Core;
+using Azure.Core;
+using Azure.Core.Pipeline;
+
+namespace Azure.ResourceManager.IoTOperations
+{
+ ///
+ /// 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 GetBrokerAuthenticationResources method from an instance of .
+ ///
+ public partial class BrokerAuthenticationResourceCollection : ArmCollection, IEnumerable, IAsyncEnumerable
+ {
+ private readonly ClientDiagnostics _brokerAuthenticationResourceBrokerAuthenticationClientDiagnostics;
+ private readonly BrokerAuthenticationRestOperations _brokerAuthenticationResourceBrokerAuthenticationRestClient;
+
+ /// Initializes a new instance of the class for mocking.
+ protected BrokerAuthenticationResourceCollection()
+ {
+ }
+
+ /// 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 BrokerAuthenticationResourceCollection(ArmClient client, ResourceIdentifier id) : base(client, id)
+ {
+ _brokerAuthenticationResourceBrokerAuthenticationClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.IoTOperations", BrokerAuthenticationResource.ResourceType.Namespace, Diagnostics);
+ TryGetApiVersion(BrokerAuthenticationResource.ResourceType, out string brokerAuthenticationResourceBrokerAuthenticationApiVersion);
+ _brokerAuthenticationResourceBrokerAuthenticationRestClient = new BrokerAuthenticationRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, brokerAuthenticationResourceBrokerAuthenticationApiVersion);
+#if DEBUG
+ ValidateResourceId(Id);
+#endif
+ }
+
+ internal static void ValidateResourceId(ResourceIdentifier id)
+ {
+ if (id.ResourceType != BrokerResource.ResourceType)
+ throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "Invalid resource type {0} expected {1}", id.ResourceType, BrokerResource.ResourceType), nameof(id));
+ }
+
+ ///
+ /// Create a BrokerAuthenticationResource
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTOperations/instances/{instanceName}/brokers/{brokerName}/authentications/{authenticationName}
+ ///
+ /// -
+ /// Operation Id
+ /// BrokerAuthenticationResource_CreateOrUpdate
+ ///
+ /// -
+ /// Default Api Version
+ /// 2024-11-01
+ ///
+ /// -
+ /// Resource
+ ///
+ ///
+ ///
+ ///
+ /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples.
+ /// Name of Instance broker authentication resource.
+ /// 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 authenticationName, BrokerAuthenticationResourceData data, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNullOrEmpty(authenticationName, nameof(authenticationName));
+ Argument.AssertNotNull(data, nameof(data));
+
+ using var scope = _brokerAuthenticationResourceBrokerAuthenticationClientDiagnostics.CreateScope("BrokerAuthenticationResourceCollection.CreateOrUpdate");
+ scope.Start();
+ try
+ {
+ var response = await _brokerAuthenticationResourceBrokerAuthenticationRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, authenticationName, data, cancellationToken).ConfigureAwait(false);
+ var operation = new IoTOperationsArmOperation(new BrokerAuthenticationResourceOperationSource(Client), _brokerAuthenticationResourceBrokerAuthenticationClientDiagnostics, Pipeline, _brokerAuthenticationResourceBrokerAuthenticationRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, authenticationName, 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 BrokerAuthenticationResource
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTOperations/instances/{instanceName}/brokers/{brokerName}/authentications/{authenticationName}
+ ///
+ /// -
+ /// Operation Id
+ /// BrokerAuthenticationResource_CreateOrUpdate
+ ///
+ /// -
+ /// Default Api Version
+ /// 2024-11-01
+ ///
+ /// -
+ /// Resource
+ ///
+ ///
+ ///
+ ///
+ /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples.
+ /// Name of Instance broker authentication resource.
+ /// 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 authenticationName, BrokerAuthenticationResourceData data, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNullOrEmpty(authenticationName, nameof(authenticationName));
+ Argument.AssertNotNull(data, nameof(data));
+
+ using var scope = _brokerAuthenticationResourceBrokerAuthenticationClientDiagnostics.CreateScope("BrokerAuthenticationResourceCollection.CreateOrUpdate");
+ scope.Start();
+ try
+ {
+ var response = _brokerAuthenticationResourceBrokerAuthenticationRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, authenticationName, data, cancellationToken);
+ var operation = new IoTOperationsArmOperation(new BrokerAuthenticationResourceOperationSource(Client), _brokerAuthenticationResourceBrokerAuthenticationClientDiagnostics, Pipeline, _brokerAuthenticationResourceBrokerAuthenticationRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, authenticationName, data).Request, response, OperationFinalStateVia.AzureAsyncOperation);
+ if (waitUntil == WaitUntil.Completed)
+ operation.WaitForCompletion(cancellationToken);
+ return operation;
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+
+ ///
+ /// Get a BrokerAuthenticationResource
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTOperations/instances/{instanceName}/brokers/{brokerName}/authentications/{authenticationName}
+ ///
+ /// -
+ /// Operation Id
+ /// BrokerAuthenticationResource_Get
+ ///
+ /// -
+ /// Default Api Version
+ /// 2024-11-01
+ ///
+ /// -
+ /// Resource
+ ///
+ ///
+ ///
+ ///
+ /// Name of Instance broker authentication resource.
+ /// The cancellation token to use.
+ /// is an empty string, and was expected to be non-empty.
+ /// is null.
+ public virtual async Task> GetAsync(string authenticationName, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNullOrEmpty(authenticationName, nameof(authenticationName));
+
+ using var scope = _brokerAuthenticationResourceBrokerAuthenticationClientDiagnostics.CreateScope("BrokerAuthenticationResourceCollection.Get");
+ scope.Start();
+ try
+ {
+ var response = await _brokerAuthenticationResourceBrokerAuthenticationRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, authenticationName, cancellationToken).ConfigureAwait(false);
+ if (response.Value == null)
+ throw new RequestFailedException(response.GetRawResponse());
+ return Response.FromValue(new BrokerAuthenticationResource(Client, response.Value), response.GetRawResponse());
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+
+ ///
+ /// Get a BrokerAuthenticationResource
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTOperations/instances/{instanceName}/brokers/{brokerName}/authentications/{authenticationName}
+ ///
+ /// -
+ /// Operation Id
+ /// BrokerAuthenticationResource_Get
+ ///
+ /// -
+ /// Default Api Version
+ /// 2024-11-01
+ ///
+ /// -
+ /// Resource
+ ///
+ ///
+ ///
+ ///
+ /// Name of Instance broker authentication resource.
+ /// The cancellation token to use.
+ /// is an empty string, and was expected to be non-empty.
+ /// is null.
+ public virtual Response Get(string authenticationName, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNullOrEmpty(authenticationName, nameof(authenticationName));
+
+ using var scope = _brokerAuthenticationResourceBrokerAuthenticationClientDiagnostics.CreateScope("BrokerAuthenticationResourceCollection.Get");
+ scope.Start();
+ try
+ {
+ var response = _brokerAuthenticationResourceBrokerAuthenticationRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, authenticationName, cancellationToken);
+ if (response.Value == null)
+ throw new RequestFailedException(response.GetRawResponse());
+ return Response.FromValue(new BrokerAuthenticationResource(Client, response.Value), response.GetRawResponse());
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+
+ ///
+ /// List BrokerAuthenticationResource resources by BrokerResource
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTOperations/instances/{instanceName}/brokers/{brokerName}/authentications
+ ///
+ /// -
+ /// Operation Id
+ /// BrokerAuthenticationResource_ListByResourceGroup
+ ///
+ /// -
+ /// Default Api Version
+ /// 2024-11-01
+ ///
+ /// -
+ /// Resource
+ ///
+ ///
+ ///
+ ///
+ /// The cancellation token to use.
+ /// An async collection of that may take multiple service requests to iterate over.
+ public virtual AsyncPageable GetAllAsync(CancellationToken cancellationToken = default)
+ {
+ HttpMessage FirstPageRequest(int? pageSizeHint) => _brokerAuthenticationResourceBrokerAuthenticationRestClient.CreateListByResourceGroupRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name);
+ HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _brokerAuthenticationResourceBrokerAuthenticationRestClient.CreateListByResourceGroupNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name);
+ return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => new BrokerAuthenticationResource(Client, BrokerAuthenticationResourceData.DeserializeBrokerAuthenticationResourceData(e)), _brokerAuthenticationResourceBrokerAuthenticationClientDiagnostics, Pipeline, "BrokerAuthenticationResourceCollection.GetAll", "value", "nextLink", cancellationToken);
+ }
+
+ ///
+ /// List BrokerAuthenticationResource resources by BrokerResource
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTOperations/instances/{instanceName}/brokers/{brokerName}/authentications
+ ///
+ /// -
+ /// Operation Id
+ /// BrokerAuthenticationResource_ListByResourceGroup
+ ///
+ /// -
+ /// Default Api Version
+ /// 2024-11-01
+ ///
+ /// -
+ /// Resource
+ ///
+ ///
+ ///
+ ///
+ /// The cancellation token to use.
+ /// A collection of that may take multiple service requests to iterate over.
+ public virtual Pageable GetAll(CancellationToken cancellationToken = default)
+ {
+ HttpMessage FirstPageRequest(int? pageSizeHint) => _brokerAuthenticationResourceBrokerAuthenticationRestClient.CreateListByResourceGroupRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name);
+ HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _brokerAuthenticationResourceBrokerAuthenticationRestClient.CreateListByResourceGroupNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name);
+ return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new BrokerAuthenticationResource(Client, BrokerAuthenticationResourceData.DeserializeBrokerAuthenticationResourceData(e)), _brokerAuthenticationResourceBrokerAuthenticationClientDiagnostics, Pipeline, "BrokerAuthenticationResourceCollection.GetAll", "value", "nextLink", cancellationToken);
+ }
+
+ ///
+ /// Checks to see if the resource exists in azure.
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTOperations/instances/{instanceName}/brokers/{brokerName}/authentications/{authenticationName}
+ ///
+ /// -
+ /// Operation Id
+ /// BrokerAuthenticationResource_Get
+ ///
+ /// -
+ /// Default Api Version
+ /// 2024-11-01
+ ///
+ /// -
+ /// Resource
+ ///
+ ///
+ ///
+ ///
+ /// Name of Instance broker authentication resource.
+ /// The cancellation token to use.
+ /// is an empty string, and was expected to be non-empty.
+ /// is null.
+ public virtual async Task> ExistsAsync(string authenticationName, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNullOrEmpty(authenticationName, nameof(authenticationName));
+
+ using var scope = _brokerAuthenticationResourceBrokerAuthenticationClientDiagnostics.CreateScope("BrokerAuthenticationResourceCollection.Exists");
+ scope.Start();
+ try
+ {
+ var response = await _brokerAuthenticationResourceBrokerAuthenticationRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, authenticationName, cancellationToken: cancellationToken).ConfigureAwait(false);
+ return Response.FromValue(response.Value != null, response.GetRawResponse());
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+
+ ///
+ /// Checks to see if the resource exists in azure.
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTOperations/instances/{instanceName}/brokers/{brokerName}/authentications/{authenticationName}
+ ///
+ /// -
+ /// Operation Id
+ /// BrokerAuthenticationResource_Get
+ ///
+ /// -
+ /// Default Api Version
+ /// 2024-11-01
+ ///
+ /// -
+ /// Resource
+ ///
+ ///
+ ///
+ ///
+ /// Name of Instance broker authentication resource.
+ /// The cancellation token to use.
+ /// is an empty string, and was expected to be non-empty.
+ /// is null.
+ public virtual Response Exists(string authenticationName, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNullOrEmpty(authenticationName, nameof(authenticationName));
+
+ using var scope = _brokerAuthenticationResourceBrokerAuthenticationClientDiagnostics.CreateScope("BrokerAuthenticationResourceCollection.Exists");
+ scope.Start();
+ try
+ {
+ var response = _brokerAuthenticationResourceBrokerAuthenticationRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, authenticationName, cancellationToken: cancellationToken);
+ return Response.FromValue(response.Value != null, response.GetRawResponse());
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+
+ ///
+ /// Tries to get details for this resource from the service.
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTOperations/instances/{instanceName}/brokers/{brokerName}/authentications/{authenticationName}
+ ///
+ /// -
+ /// Operation Id
+ /// BrokerAuthenticationResource_Get
+ ///
+ /// -
+ /// Default Api Version
+ /// 2024-11-01
+ ///
+ /// -
+ /// Resource
+ ///
+ ///
+ ///
+ ///
+ /// Name of Instance broker authentication resource.
+ /// The cancellation token to use.
+ /// is an empty string, and was expected to be non-empty.
+ /// is null.
+ public virtual async Task> GetIfExistsAsync(string authenticationName, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNullOrEmpty(authenticationName, nameof(authenticationName));
+
+ using var scope = _brokerAuthenticationResourceBrokerAuthenticationClientDiagnostics.CreateScope("BrokerAuthenticationResourceCollection.GetIfExists");
+ scope.Start();
+ try
+ {
+ var response = await _brokerAuthenticationResourceBrokerAuthenticationRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, authenticationName, cancellationToken: cancellationToken).ConfigureAwait(false);
+ if (response.Value == null)
+ return new NoValueResponse(response.GetRawResponse());
+ return Response.FromValue(new BrokerAuthenticationResource(Client, response.Value), response.GetRawResponse());
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+
+ ///
+ /// Tries to get details for this resource from the service.
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTOperations/instances/{instanceName}/brokers/{brokerName}/authentications/{authenticationName}
+ ///
+ /// -
+ /// Operation Id
+ /// BrokerAuthenticationResource_Get
+ ///
+ /// -
+ /// Default Api Version
+ /// 2024-11-01
+ ///
+ /// -
+ /// Resource
+ ///
+ ///
+ ///
+ ///
+ /// Name of Instance broker authentication resource.
+ /// The cancellation token to use.
+ /// is an empty string, and was expected to be non-empty.
+ /// is null.
+ public virtual NullableResponse GetIfExists(string authenticationName, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNullOrEmpty(authenticationName, nameof(authenticationName));
+
+ using var scope = _brokerAuthenticationResourceBrokerAuthenticationClientDiagnostics.CreateScope("BrokerAuthenticationResourceCollection.GetIfExists");
+ scope.Start();
+ try
+ {
+ var response = _brokerAuthenticationResourceBrokerAuthenticationRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, authenticationName, cancellationToken: cancellationToken);
+ if (response.Value == null)
+ return new NoValueResponse(response.GetRawResponse());
+ return Response.FromValue(new BrokerAuthenticationResource(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/iotoperations/Azure.ResourceManager.IoTOperations/src/Generated/BrokerAuthenticationResourceData.Serialization.cs b/sdk/iotoperations/Azure.ResourceManager.IoTOperations/src/Generated/BrokerAuthenticationResourceData.Serialization.cs
new file mode 100644
index 000000000000..c5a83019543b
--- /dev/null
+++ b/sdk/iotoperations/Azure.ResourceManager.IoTOperations/src/Generated/BrokerAuthenticationResourceData.Serialization.cs
@@ -0,0 +1,164 @@
+// 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.IoTOperations.Models;
+using Azure.ResourceManager.Models;
+
+namespace Azure.ResourceManager.IoTOperations
+{
+ public partial class BrokerAuthenticationResourceData : 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(BrokerAuthenticationResourceData)} does not support writing '{format}' format.");
+ }
+
+ base.JsonModelWriteCore(writer, options);
+ if (Optional.IsDefined(Properties))
+ {
+ writer.WritePropertyName("properties"u8);
+ writer.WriteObjectValue(Properties, options);
+ }
+ writer.WritePropertyName("extendedLocation"u8);
+ writer.WriteObjectValue(ExtendedLocation, options);
+ }
+
+ BrokerAuthenticationResourceData 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(BrokerAuthenticationResourceData)} does not support reading '{format}' format.");
+ }
+
+ using JsonDocument document = JsonDocument.ParseValue(ref reader);
+ return DeserializeBrokerAuthenticationResourceData(document.RootElement, options);
+ }
+
+ internal static BrokerAuthenticationResourceData DeserializeBrokerAuthenticationResourceData(JsonElement element, ModelReaderWriterOptions options = null)
+ {
+ options ??= ModelSerializationExtensions.WireOptions;
+
+ if (element.ValueKind == JsonValueKind.Null)
+ {
+ return null;
+ }
+ BrokerAuthenticationProperties properties = default;
+ ExtendedLocation extendedLocation = 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 = BrokerAuthenticationProperties.DeserializeBrokerAuthenticationProperties(property.Value, options);
+ continue;
+ }
+ if (property.NameEquals("extendedLocation"u8))
+ {
+ extendedLocation = ExtendedLocation.DeserializeExtendedLocation(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 BrokerAuthenticationResourceData(
+ id,
+ name,
+ type,
+ systemData,
+ properties,
+ extendedLocation,
+ 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(BrokerAuthenticationResourceData)} does not support writing '{options.Format}' format.");
+ }
+ }
+
+ BrokerAuthenticationResourceData 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 DeserializeBrokerAuthenticationResourceData(document.RootElement, options);
+ }
+ default:
+ throw new FormatException($"The model {nameof(BrokerAuthenticationResourceData)} does not support reading '{options.Format}' format.");
+ }
+ }
+
+ string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J";
+ }
+}
diff --git a/sdk/iotoperations/Azure.ResourceManager.IoTOperations/src/Generated/BrokerAuthenticationResourceData.cs b/sdk/iotoperations/Azure.ResourceManager.IoTOperations/src/Generated/BrokerAuthenticationResourceData.cs
new file mode 100644
index 000000000000..7b6ef1b609e1
--- /dev/null
+++ b/sdk/iotoperations/Azure.ResourceManager.IoTOperations/src/Generated/BrokerAuthenticationResourceData.cs
@@ -0,0 +1,89 @@
+// 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.IoTOperations.Models;
+using Azure.ResourceManager.Models;
+
+namespace Azure.ResourceManager.IoTOperations
+{
+ ///
+ /// A class representing the BrokerAuthenticationResource data model.
+ /// Instance broker authentication resource
+ ///
+ public partial class BrokerAuthenticationResourceData : 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 .
+ /// Edge location of the resource.
+ /// is null.
+ public BrokerAuthenticationResourceData(ExtendedLocation extendedLocation)
+ {
+ Argument.AssertNotNull(extendedLocation, nameof(extendedLocation));
+
+ ExtendedLocation = extendedLocation;
+ }
+
+ /// Initializes a new instance of .
+ /// The id.
+ /// The name.
+ /// The resourceType.
+ /// The systemData.
+ /// The resource-specific properties for this resource.
+ /// Edge location of the resource.
+ /// Keeps track of any properties unknown to the library.
+ internal BrokerAuthenticationResourceData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, BrokerAuthenticationProperties properties, ExtendedLocation extendedLocation, IDictionary serializedAdditionalRawData) : base(id, name, resourceType, systemData)
+ {
+ Properties = properties;
+ ExtendedLocation = extendedLocation;
+ _serializedAdditionalRawData = serializedAdditionalRawData;
+ }
+
+ /// Initializes a new instance of for deserialization.
+ internal BrokerAuthenticationResourceData()
+ {
+ }
+
+ /// The resource-specific properties for this resource.
+ public BrokerAuthenticationProperties Properties { get; set; }
+ /// Edge location of the resource.
+ public ExtendedLocation ExtendedLocation { get; set; }
+ }
+}
diff --git a/sdk/iotoperations/Azure.ResourceManager.IoTOperations/src/Generated/BrokerAuthorizationResource.Serialization.cs b/sdk/iotoperations/Azure.ResourceManager.IoTOperations/src/Generated/BrokerAuthorizationResource.Serialization.cs
new file mode 100644
index 000000000000..ee32487ae044
--- /dev/null
+++ b/sdk/iotoperations/Azure.ResourceManager.IoTOperations/src/Generated/BrokerAuthorizationResource.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.IoTOperations
+{
+ public partial class BrokerAuthorizationResource : IJsonModel
+ {
+ void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) => ((IJsonModel)Data).Write(writer, options);
+
+ BrokerAuthorizationResourceData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => ((IJsonModel)Data).Create(ref reader, options);
+
+ BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) => ModelReaderWriter.Write(Data, options);
+
+ BrokerAuthorizationResourceData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => ModelReaderWriter.Read(data, options);
+
+ string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => ((IPersistableModel)Data).GetFormatFromOptions(options);
+ }
+}
diff --git a/sdk/iotoperations/Azure.ResourceManager.IoTOperations/src/Generated/BrokerAuthorizationResource.cs b/sdk/iotoperations/Azure.ResourceManager.IoTOperations/src/Generated/BrokerAuthorizationResource.cs
new file mode 100644
index 000000000000..58610983e2c1
--- /dev/null
+++ b/sdk/iotoperations/Azure.ResourceManager.IoTOperations/src/Generated/BrokerAuthorizationResource.cs
@@ -0,0 +1,348 @@
+// 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.IoTOperations
+{
+ ///
+ /// A Class representing a BrokerAuthorizationResource 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 GetBrokerAuthorizationResource method.
+ /// Otherwise you can get one from its parent resource using the GetBrokerAuthorizationResource method.
+ ///
+ public partial class BrokerAuthorizationResource : ArmResource
+ {
+ /// Generate the resource identifier of a instance.
+ /// The subscriptionId.
+ /// The resourceGroupName.
+ /// The instanceName.
+ /// The brokerName.
+ /// The authorizationName.
+ public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string instanceName, string brokerName, string authorizationName)
+ {
+ var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTOperations/instances/{instanceName}/brokers/{brokerName}/authorizations/{authorizationName}";
+ return new ResourceIdentifier(resourceId);
+ }
+
+ private readonly ClientDiagnostics _brokerAuthorizationResourceBrokerAuthorizationClientDiagnostics;
+ private readonly BrokerAuthorizationRestOperations _brokerAuthorizationResourceBrokerAuthorizationRestClient;
+ private readonly BrokerAuthorizationResourceData _data;
+
+ /// Gets the resource type for the operations.
+ public static readonly ResourceType ResourceType = "Microsoft.IoTOperations/instances/brokers/authorizations";
+
+ /// Initializes a new instance of the class for mocking.
+ protected BrokerAuthorizationResource()
+ {
+ }
+
+ /// Initializes a new instance of the class.
+ /// The client parameters to use in these operations.
+ /// The resource that is the target of operations.
+ internal BrokerAuthorizationResource(ArmClient client, BrokerAuthorizationResourceData 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 BrokerAuthorizationResource(ArmClient client, ResourceIdentifier id) : base(client, id)
+ {
+ _brokerAuthorizationResourceBrokerAuthorizationClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.IoTOperations", ResourceType.Namespace, Diagnostics);
+ TryGetApiVersion(ResourceType, out string brokerAuthorizationResourceBrokerAuthorizationApiVersion);
+ _brokerAuthorizationResourceBrokerAuthorizationRestClient = new BrokerAuthorizationRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, brokerAuthorizationResourceBrokerAuthorizationApiVersion);
+#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 BrokerAuthorizationResourceData 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 BrokerAuthorizationResource
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTOperations/instances/{instanceName}/brokers/{brokerName}/authorizations/{authorizationName}
+ ///
+ /// -
+ /// Operation Id
+ /// BrokerAuthorizationResource_Get
+ ///
+ /// -
+ /// Default Api Version
+ /// 2024-11-01
+ ///
+ /// -
+ /// Resource
+ ///
+ ///
+ ///
+ ///
+ /// The cancellation token to use.
+ public virtual async Task> GetAsync(CancellationToken cancellationToken = default)
+ {
+ using var scope = _brokerAuthorizationResourceBrokerAuthorizationClientDiagnostics.CreateScope("BrokerAuthorizationResource.Get");
+ scope.Start();
+ try
+ {
+ var response = await _brokerAuthorizationResourceBrokerAuthorizationRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false);
+ if (response.Value == null)
+ throw new RequestFailedException(response.GetRawResponse());
+ return Response.FromValue(new BrokerAuthorizationResource(Client, response.Value), response.GetRawResponse());
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+
+ ///
+ /// Get a BrokerAuthorizationResource
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTOperations/instances/{instanceName}/brokers/{brokerName}/authorizations/{authorizationName}
+ ///
+ /// -
+ /// Operation Id
+ /// BrokerAuthorizationResource_Get
+ ///
+ /// -
+ /// Default Api Version
+ /// 2024-11-01
+ ///
+ /// -
+ /// Resource
+ ///
+ ///
+ ///
+ ///
+ /// The cancellation token to use.
+ public virtual Response Get(CancellationToken cancellationToken = default)
+ {
+ using var scope = _brokerAuthorizationResourceBrokerAuthorizationClientDiagnostics.CreateScope("BrokerAuthorizationResource.Get");
+ scope.Start();
+ try
+ {
+ var response = _brokerAuthorizationResourceBrokerAuthorizationRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken);
+ if (response.Value == null)
+ throw new RequestFailedException(response.GetRawResponse());
+ return Response.FromValue(new BrokerAuthorizationResource(Client, response.Value), response.GetRawResponse());
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+
+ ///
+ /// Delete a BrokerAuthorizationResource
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTOperations/instances/{instanceName}/brokers/{brokerName}/authorizations/{authorizationName}
+ ///
+ /// -
+ /// Operation Id
+ /// BrokerAuthorizationResource_Delete
+ ///
+ /// -
+ /// Default Api Version
+ /// 2024-11-01
+ ///
+ /// -
+ /// Resource
+ ///
+ ///
+ ///
+ ///
+ /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples.
+ /// The cancellation token to use.
+ public virtual async Task DeleteAsync(WaitUntil waitUntil, CancellationToken cancellationToken = default)
+ {
+ using var scope = _brokerAuthorizationResourceBrokerAuthorizationClientDiagnostics.CreateScope("BrokerAuthorizationResource.Delete");
+ scope.Start();
+ try
+ {
+ var response = await _brokerAuthorizationResourceBrokerAuthorizationRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false);
+ var operation = new IoTOperationsArmOperation(_brokerAuthorizationResourceBrokerAuthorizationClientDiagnostics, Pipeline, _brokerAuthorizationResourceBrokerAuthorizationRestClient.CreateDeleteRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name).Request, response, OperationFinalStateVia.Location);
+ if (waitUntil == WaitUntil.Completed)
+ await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false);
+ return operation;
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+
+ ///
+ /// Delete a BrokerAuthorizationResource
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTOperations/instances/{instanceName}/brokers/{brokerName}/authorizations/{authorizationName}
+ ///
+ /// -
+ /// Operation Id
+ /// BrokerAuthorizationResource_Delete
+ ///
+ /// -
+ /// Default Api Version
+ /// 2024-11-01
+ ///
+ /// -
+ /// Resource
+ ///
+ ///
+ ///
+ ///
+ /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples.
+ /// The cancellation token to use.
+ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancellationToken = default)
+ {
+ using var scope = _brokerAuthorizationResourceBrokerAuthorizationClientDiagnostics.CreateScope("BrokerAuthorizationResource.Delete");
+ scope.Start();
+ try
+ {
+ var response = _brokerAuthorizationResourceBrokerAuthorizationRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken);
+ var operation = new IoTOperationsArmOperation(_brokerAuthorizationResourceBrokerAuthorizationClientDiagnostics, Pipeline, _brokerAuthorizationResourceBrokerAuthorizationRestClient.CreateDeleteRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name).Request, response, OperationFinalStateVia.Location);
+ if (waitUntil == WaitUntil.Completed)
+ operation.WaitForCompletionResponse(cancellationToken);
+ return operation;
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+
+ ///
+ /// Create a BrokerAuthorizationResource
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTOperations/instances/{instanceName}/brokers/{brokerName}/authorizations/{authorizationName}
+ ///
+ /// -
+ /// Operation Id
+ /// BrokerAuthorizationResource_CreateOrUpdate
+ ///
+ /// -
+ /// Default Api Version
+ /// 2024-11-01
+ ///
+ /// -
+ /// Resource
+ ///
+ ///
+ ///
+ ///
+ /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples.
+ /// Resource create parameters.
+ /// The cancellation token to use.
+ /// is null.
+ public virtual async Task> UpdateAsync(WaitUntil waitUntil, BrokerAuthorizationResourceData data, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNull(data, nameof(data));
+
+ using var scope = _brokerAuthorizationResourceBrokerAuthorizationClientDiagnostics.CreateScope("BrokerAuthorizationResource.Update");
+ scope.Start();
+ try
+ {
+ var response = await _brokerAuthorizationResourceBrokerAuthorizationRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data, cancellationToken).ConfigureAwait(false);
+ var operation = new IoTOperationsArmOperation(new BrokerAuthorizationResourceOperationSource(Client), _brokerAuthorizationResourceBrokerAuthorizationClientDiagnostics, Pipeline, _brokerAuthorizationResourceBrokerAuthorizationRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, 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 BrokerAuthorizationResource
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTOperations/instances/{instanceName}/brokers/{brokerName}/authorizations/{authorizationName}
+ ///
+ /// -
+ /// Operation Id
+ /// BrokerAuthorizationResource_CreateOrUpdate
+ ///
+ /// -
+ /// Default Api Version
+ /// 2024-11-01
+ ///
+ /// -
+ /// Resource
+ ///
+ ///
+ ///
+ ///
+ /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples.
+ /// Resource create parameters.
+ /// The cancellation token to use.
+ /// is null.
+ public virtual ArmOperation Update(WaitUntil waitUntil, BrokerAuthorizationResourceData data, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNull(data, nameof(data));
+
+ using var scope = _brokerAuthorizationResourceBrokerAuthorizationClientDiagnostics.CreateScope("BrokerAuthorizationResource.Update");
+ scope.Start();
+ try
+ {
+ var response = _brokerAuthorizationResourceBrokerAuthorizationRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data, cancellationToken);
+ var operation = new IoTOperationsArmOperation(new BrokerAuthorizationResourceOperationSource(Client), _brokerAuthorizationResourceBrokerAuthorizationClientDiagnostics, Pipeline, _brokerAuthorizationResourceBrokerAuthorizationRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data).Request, response, OperationFinalStateVia.AzureAsyncOperation);
+ if (waitUntil == WaitUntil.Completed)
+ operation.WaitForCompletion(cancellationToken);
+ return operation;
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+ }
+}
diff --git a/sdk/iotoperations/Azure.ResourceManager.IoTOperations/src/Generated/BrokerAuthorizationResourceCollection.cs b/sdk/iotoperations/Azure.ResourceManager.IoTOperations/src/Generated/BrokerAuthorizationResourceCollection.cs
new file mode 100644
index 000000000000..ebd5264c0151
--- /dev/null
+++ b/sdk/iotoperations/Azure.ResourceManager.IoTOperations/src/Generated/BrokerAuthorizationResourceCollection.cs
@@ -0,0 +1,493 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.Collections;
+using System.Collections.Generic;
+using System.Globalization;
+using System.Threading;
+using System.Threading.Tasks;
+using Autorest.CSharp.Core;
+using Azure.Core;
+using Azure.Core.Pipeline;
+
+namespace Azure.ResourceManager.IoTOperations
+{
+ ///
+ /// 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 GetBrokerAuthorizationResources method from an instance of .
+ ///
+ public partial class BrokerAuthorizationResourceCollection : ArmCollection, IEnumerable, IAsyncEnumerable
+ {
+ private readonly ClientDiagnostics _brokerAuthorizationResourceBrokerAuthorizationClientDiagnostics;
+ private readonly BrokerAuthorizationRestOperations _brokerAuthorizationResourceBrokerAuthorizationRestClient;
+
+ /// Initializes a new instance of the class for mocking.
+ protected BrokerAuthorizationResourceCollection()
+ {
+ }
+
+ /// 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 BrokerAuthorizationResourceCollection(ArmClient client, ResourceIdentifier id) : base(client, id)
+ {
+ _brokerAuthorizationResourceBrokerAuthorizationClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.IoTOperations", BrokerAuthorizationResource.ResourceType.Namespace, Diagnostics);
+ TryGetApiVersion(BrokerAuthorizationResource.ResourceType, out string brokerAuthorizationResourceBrokerAuthorizationApiVersion);
+ _brokerAuthorizationResourceBrokerAuthorizationRestClient = new BrokerAuthorizationRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, brokerAuthorizationResourceBrokerAuthorizationApiVersion);
+#if DEBUG
+ ValidateResourceId(Id);
+#endif
+ }
+
+ internal static void ValidateResourceId(ResourceIdentifier id)
+ {
+ if (id.ResourceType != BrokerResource.ResourceType)
+ throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "Invalid resource type {0} expected {1}", id.ResourceType, BrokerResource.ResourceType), nameof(id));
+ }
+
+ ///
+ /// Create a BrokerAuthorizationResource
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTOperations/instances/{instanceName}/brokers/{brokerName}/authorizations/{authorizationName}
+ ///
+ /// -
+ /// Operation Id
+ /// BrokerAuthorizationResource_CreateOrUpdate
+ ///
+ /// -
+ /// Default Api Version
+ /// 2024-11-01
+ ///
+ /// -
+ /// Resource
+ ///
+ ///
+ ///
+ ///
+ /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples.
+ /// Name of Instance broker authorization resource.
+ /// 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 authorizationName, BrokerAuthorizationResourceData data, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNullOrEmpty(authorizationName, nameof(authorizationName));
+ Argument.AssertNotNull(data, nameof(data));
+
+ using var scope = _brokerAuthorizationResourceBrokerAuthorizationClientDiagnostics.CreateScope("BrokerAuthorizationResourceCollection.CreateOrUpdate");
+ scope.Start();
+ try
+ {
+ var response = await _brokerAuthorizationResourceBrokerAuthorizationRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, authorizationName, data, cancellationToken).ConfigureAwait(false);
+ var operation = new IoTOperationsArmOperation(new BrokerAuthorizationResourceOperationSource(Client), _brokerAuthorizationResourceBrokerAuthorizationClientDiagnostics, Pipeline, _brokerAuthorizationResourceBrokerAuthorizationRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, authorizationName, 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 BrokerAuthorizationResource
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTOperations/instances/{instanceName}/brokers/{brokerName}/authorizations/{authorizationName}
+ ///
+ /// -
+ /// Operation Id
+ /// BrokerAuthorizationResource_CreateOrUpdate
+ ///
+ /// -
+ /// Default Api Version
+ /// 2024-11-01
+ ///
+ /// -
+ /// Resource
+ ///
+ ///
+ ///
+ ///
+ /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples.
+ /// Name of Instance broker authorization resource.
+ /// 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 authorizationName, BrokerAuthorizationResourceData data, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNullOrEmpty(authorizationName, nameof(authorizationName));
+ Argument.AssertNotNull(data, nameof(data));
+
+ using var scope = _brokerAuthorizationResourceBrokerAuthorizationClientDiagnostics.CreateScope("BrokerAuthorizationResourceCollection.CreateOrUpdate");
+ scope.Start();
+ try
+ {
+ var response = _brokerAuthorizationResourceBrokerAuthorizationRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, authorizationName, data, cancellationToken);
+ var operation = new IoTOperationsArmOperation(new BrokerAuthorizationResourceOperationSource(Client), _brokerAuthorizationResourceBrokerAuthorizationClientDiagnostics, Pipeline, _brokerAuthorizationResourceBrokerAuthorizationRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, authorizationName, data).Request, response, OperationFinalStateVia.AzureAsyncOperation);
+ if (waitUntil == WaitUntil.Completed)
+ operation.WaitForCompletion(cancellationToken);
+ return operation;
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+
+ ///
+ /// Get a BrokerAuthorizationResource
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTOperations/instances/{instanceName}/brokers/{brokerName}/authorizations/{authorizationName}
+ ///
+ /// -
+ /// Operation Id
+ /// BrokerAuthorizationResource_Get
+ ///
+ /// -
+ /// Default Api Version
+ /// 2024-11-01
+ ///
+ /// -
+ /// Resource
+ ///
+ ///
+ ///
+ ///
+ /// Name of Instance broker authorization resource.
+ /// The cancellation token to use.
+ /// is an empty string, and was expected to be non-empty.
+ /// is null.
+ public virtual async Task> GetAsync(string authorizationName, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNullOrEmpty(authorizationName, nameof(authorizationName));
+
+ using var scope = _brokerAuthorizationResourceBrokerAuthorizationClientDiagnostics.CreateScope("BrokerAuthorizationResourceCollection.Get");
+ scope.Start();
+ try
+ {
+ var response = await _brokerAuthorizationResourceBrokerAuthorizationRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, authorizationName, cancellationToken).ConfigureAwait(false);
+ if (response.Value == null)
+ throw new RequestFailedException(response.GetRawResponse());
+ return Response.FromValue(new BrokerAuthorizationResource(Client, response.Value), response.GetRawResponse());
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+
+ ///
+ /// Get a BrokerAuthorizationResource
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTOperations/instances/{instanceName}/brokers/{brokerName}/authorizations/{authorizationName}
+ ///
+ /// -
+ /// Operation Id
+ /// BrokerAuthorizationResource_Get
+ ///
+ /// -
+ /// Default Api Version
+ /// 2024-11-01
+ ///
+ /// -
+ /// Resource
+ ///
+ ///
+ ///
+ ///
+ /// Name of Instance broker authorization resource.
+ /// The cancellation token to use.
+ /// is an empty string, and was expected to be non-empty.
+ /// is null.
+ public virtual Response Get(string authorizationName, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNullOrEmpty(authorizationName, nameof(authorizationName));
+
+ using var scope = _brokerAuthorizationResourceBrokerAuthorizationClientDiagnostics.CreateScope("BrokerAuthorizationResourceCollection.Get");
+ scope.Start();
+ try
+ {
+ var response = _brokerAuthorizationResourceBrokerAuthorizationRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, authorizationName, cancellationToken);
+ if (response.Value == null)
+ throw new RequestFailedException(response.GetRawResponse());
+ return Response.FromValue(new BrokerAuthorizationResource(Client, response.Value), response.GetRawResponse());
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+
+ ///
+ /// List BrokerAuthorizationResource resources by BrokerResource
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTOperations/instances/{instanceName}/brokers/{brokerName}/authorizations
+ ///
+ /// -
+ /// Operation Id
+ /// BrokerAuthorizationResource_ListByResourceGroup
+ ///
+ /// -
+ /// Default Api Version
+ /// 2024-11-01
+ ///
+ /// -
+ /// Resource
+ ///
+ ///
+ ///
+ ///
+ /// The cancellation token to use.
+ /// An async collection of that may take multiple service requests to iterate over.
+ public virtual AsyncPageable GetAllAsync(CancellationToken cancellationToken = default)
+ {
+ HttpMessage FirstPageRequest(int? pageSizeHint) => _brokerAuthorizationResourceBrokerAuthorizationRestClient.CreateListByResourceGroupRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name);
+ HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _brokerAuthorizationResourceBrokerAuthorizationRestClient.CreateListByResourceGroupNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name);
+ return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => new BrokerAuthorizationResource(Client, BrokerAuthorizationResourceData.DeserializeBrokerAuthorizationResourceData(e)), _brokerAuthorizationResourceBrokerAuthorizationClientDiagnostics, Pipeline, "BrokerAuthorizationResourceCollection.GetAll", "value", "nextLink", cancellationToken);
+ }
+
+ ///
+ /// List BrokerAuthorizationResource resources by BrokerResource
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTOperations/instances/{instanceName}/brokers/{brokerName}/authorizations
+ ///
+ /// -
+ /// Operation Id
+ /// BrokerAuthorizationResource_ListByResourceGroup
+ ///
+ /// -
+ /// Default Api Version
+ /// 2024-11-01
+ ///
+ /// -
+ /// Resource
+ ///
+ ///
+ ///
+ ///
+ /// The cancellation token to use.
+ /// A collection of that may take multiple service requests to iterate over.
+ public virtual Pageable GetAll(CancellationToken cancellationToken = default)
+ {
+ HttpMessage FirstPageRequest(int? pageSizeHint) => _brokerAuthorizationResourceBrokerAuthorizationRestClient.CreateListByResourceGroupRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name);
+ HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _brokerAuthorizationResourceBrokerAuthorizationRestClient.CreateListByResourceGroupNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name);
+ return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new BrokerAuthorizationResource(Client, BrokerAuthorizationResourceData.DeserializeBrokerAuthorizationResourceData(e)), _brokerAuthorizationResourceBrokerAuthorizationClientDiagnostics, Pipeline, "BrokerAuthorizationResourceCollection.GetAll", "value", "nextLink", cancellationToken);
+ }
+
+ ///
+ /// Checks to see if the resource exists in azure.
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTOperations/instances/{instanceName}/brokers/{brokerName}/authorizations/{authorizationName}
+ ///
+ /// -
+ /// Operation Id
+ /// BrokerAuthorizationResource_Get
+ ///
+ /// -
+ /// Default Api Version
+ /// 2024-11-01
+ ///
+ /// -
+ /// Resource
+ ///
+ ///
+ ///
+ ///
+ /// Name of Instance broker authorization resource.
+ /// The cancellation token to use.
+ /// is an empty string, and was expected to be non-empty.
+ /// is null.
+ public virtual async Task> ExistsAsync(string authorizationName, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNullOrEmpty(authorizationName, nameof(authorizationName));
+
+ using var scope = _brokerAuthorizationResourceBrokerAuthorizationClientDiagnostics.CreateScope("BrokerAuthorizationResourceCollection.Exists");
+ scope.Start();
+ try
+ {
+ var response = await _brokerAuthorizationResourceBrokerAuthorizationRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, authorizationName, cancellationToken: cancellationToken).ConfigureAwait(false);
+ return Response.FromValue(response.Value != null, response.GetRawResponse());
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+
+ ///
+ /// Checks to see if the resource exists in azure.
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTOperations/instances/{instanceName}/brokers/{brokerName}/authorizations/{authorizationName}
+ ///
+ /// -
+ /// Operation Id
+ /// BrokerAuthorizationResource_Get
+ ///
+ /// -
+ /// Default Api Version
+ /// 2024-11-01
+ ///
+ /// -
+ /// Resource
+ ///
+ ///
+ ///
+ ///
+ /// Name of Instance broker authorization resource.
+ /// The cancellation token to use.
+ /// is an empty string, and was expected to be non-empty.
+ /// is null.
+ public virtual Response Exists(string authorizationName, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNullOrEmpty(authorizationName, nameof(authorizationName));
+
+ using var scope = _brokerAuthorizationResourceBrokerAuthorizationClientDiagnostics.CreateScope("BrokerAuthorizationResourceCollection.Exists");
+ scope.Start();
+ try
+ {
+ var response = _brokerAuthorizationResourceBrokerAuthorizationRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, authorizationName, cancellationToken: cancellationToken);
+ return Response.FromValue(response.Value != null, response.GetRawResponse());
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+
+ ///
+ /// Tries to get details for this resource from the service.
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTOperations/instances/{instanceName}/brokers/{brokerName}/authorizations/{authorizationName}
+ ///
+ /// -
+ /// Operation Id
+ /// BrokerAuthorizationResource_Get
+ ///
+ /// -
+ /// Default Api Version
+ /// 2024-11-01
+ ///
+ /// -
+ /// Resource
+ ///
+ ///
+ ///
+ ///
+ /// Name of Instance broker authorization resource.
+ /// The cancellation token to use.
+ /// is an empty string, and was expected to be non-empty.
+ /// is null.
+ public virtual async Task> GetIfExistsAsync(string authorizationName, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNullOrEmpty(authorizationName, nameof(authorizationName));
+
+ using var scope = _brokerAuthorizationResourceBrokerAuthorizationClientDiagnostics.CreateScope("BrokerAuthorizationResourceCollection.GetIfExists");
+ scope.Start();
+ try
+ {
+ var response = await _brokerAuthorizationResourceBrokerAuthorizationRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, authorizationName, cancellationToken: cancellationToken).ConfigureAwait(false);
+ if (response.Value == null)
+ return new NoValueResponse(response.GetRawResponse());
+ return Response.FromValue(new BrokerAuthorizationResource(Client, response.Value), response.GetRawResponse());
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+
+ ///
+ /// Tries to get details for this resource from the service.
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTOperations/instances/{instanceName}/brokers/{brokerName}/authorizations/{authorizationName}
+ ///
+ /// -
+ /// Operation Id
+ /// BrokerAuthorizationResource_Get
+ ///
+ /// -
+ /// Default Api Version
+ /// 2024-11-01
+ ///
+ /// -
+ /// Resource
+ ///
+ ///
+ ///
+ ///
+ /// Name of Instance broker authorization resource.
+ /// The cancellation token to use.
+ /// is an empty string, and was expected to be non-empty.
+ /// is null.
+ public virtual NullableResponse GetIfExists(string authorizationName, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNullOrEmpty(authorizationName, nameof(authorizationName));
+
+ using var scope = _brokerAuthorizationResourceBrokerAuthorizationClientDiagnostics.CreateScope("BrokerAuthorizationResourceCollection.GetIfExists");
+ scope.Start();
+ try
+ {
+ var response = _brokerAuthorizationResourceBrokerAuthorizationRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, authorizationName, cancellationToken: cancellationToken);
+ if (response.Value == null)
+ return new NoValueResponse(response.GetRawResponse());
+ return Response.FromValue(new BrokerAuthorizationResource(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/iotoperations/Azure.ResourceManager.IoTOperations/src/Generated/BrokerAuthorizationResourceData.Serialization.cs b/sdk/iotoperations/Azure.ResourceManager.IoTOperations/src/Generated/BrokerAuthorizationResourceData.Serialization.cs
new file mode 100644
index 000000000000..58c713cf6349
--- /dev/null
+++ b/sdk/iotoperations/Azure.ResourceManager.IoTOperations/src/Generated/BrokerAuthorizationResourceData.Serialization.cs
@@ -0,0 +1,164 @@
+// 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.IoTOperations.Models;
+using Azure.ResourceManager.Models;
+
+namespace Azure.ResourceManager.IoTOperations
+{
+ public partial class BrokerAuthorizationResourceData : 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(BrokerAuthorizationResourceData)} does not support writing '{format}' format.");
+ }
+
+ base.JsonModelWriteCore(writer, options);
+ if (Optional.IsDefined(Properties))
+ {
+ writer.WritePropertyName("properties"u8);
+ writer.WriteObjectValue(Properties, options);
+ }
+ writer.WritePropertyName("extendedLocation"u8);
+ writer.WriteObjectValue(ExtendedLocation, options);
+ }
+
+ BrokerAuthorizationResourceData 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(BrokerAuthorizationResourceData)} does not support reading '{format}' format.");
+ }
+
+ using JsonDocument document = JsonDocument.ParseValue(ref reader);
+ return DeserializeBrokerAuthorizationResourceData(document.RootElement, options);
+ }
+
+ internal static BrokerAuthorizationResourceData DeserializeBrokerAuthorizationResourceData(JsonElement element, ModelReaderWriterOptions options = null)
+ {
+ options ??= ModelSerializationExtensions.WireOptions;
+
+ if (element.ValueKind == JsonValueKind.Null)
+ {
+ return null;
+ }
+ BrokerAuthorizationProperties properties = default;
+ ExtendedLocation extendedLocation = 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 = BrokerAuthorizationProperties.DeserializeBrokerAuthorizationProperties(property.Value, options);
+ continue;
+ }
+ if (property.NameEquals("extendedLocation"u8))
+ {
+ extendedLocation = ExtendedLocation.DeserializeExtendedLocation(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 BrokerAuthorizationResourceData(
+ id,
+ name,
+ type,
+ systemData,
+ properties,
+ extendedLocation,
+ 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(BrokerAuthorizationResourceData)} does not support writing '{options.Format}' format.");
+ }
+ }
+
+ BrokerAuthorizationResourceData 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 DeserializeBrokerAuthorizationResourceData(document.RootElement, options);
+ }
+ default:
+ throw new FormatException($"The model {nameof(BrokerAuthorizationResourceData)} does not support reading '{options.Format}' format.");
+ }
+ }
+
+ string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J";
+ }
+}
diff --git a/sdk/iotoperations/Azure.ResourceManager.IoTOperations/src/Generated/BrokerAuthorizationResourceData.cs b/sdk/iotoperations/Azure.ResourceManager.IoTOperations/src/Generated/BrokerAuthorizationResourceData.cs
new file mode 100644
index 000000000000..006a048e3b06
--- /dev/null
+++ b/sdk/iotoperations/Azure.ResourceManager.IoTOperations/src/Generated/BrokerAuthorizationResourceData.cs
@@ -0,0 +1,89 @@
+// 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.IoTOperations.Models;
+using Azure.ResourceManager.Models;
+
+namespace Azure.ResourceManager.IoTOperations
+{
+ ///
+ /// A class representing the BrokerAuthorizationResource data model.
+ /// Instance broker authorizations resource
+ ///
+ public partial class BrokerAuthorizationResourceData : 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 .
+ /// Edge location of the resource.
+ /// is null.
+ public BrokerAuthorizationResourceData(ExtendedLocation extendedLocation)
+ {
+ Argument.AssertNotNull(extendedLocation, nameof(extendedLocation));
+
+ ExtendedLocation = extendedLocation;
+ }
+
+ /// Initializes a new instance of .
+ /// The id.
+ /// The name.
+ /// The resourceType.
+ /// The systemData.
+ /// The resource-specific properties for this resource.
+ /// Edge location of the resource.
+ /// Keeps track of any properties unknown to the library.
+ internal BrokerAuthorizationResourceData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, BrokerAuthorizationProperties properties, ExtendedLocation extendedLocation, IDictionary serializedAdditionalRawData) : base(id, name, resourceType, systemData)
+ {
+ Properties = properties;
+ ExtendedLocation = extendedLocation;
+ _serializedAdditionalRawData = serializedAdditionalRawData;
+ }
+
+ /// Initializes a new instance of for deserialization.
+ internal BrokerAuthorizationResourceData()
+ {
+ }
+
+ /// The resource-specific properties for this resource.
+ public BrokerAuthorizationProperties Properties { get; set; }
+ /// Edge location of the resource.
+ public ExtendedLocation ExtendedLocation { get; set; }
+ }
+}
diff --git a/sdk/iotoperations/Azure.ResourceManager.IoTOperations/src/Generated/BrokerListenerResource.Serialization.cs b/sdk/iotoperations/Azure.ResourceManager.IoTOperations/src/Generated/BrokerListenerResource.Serialization.cs
new file mode 100644
index 000000000000..e2cf75c6f20f
--- /dev/null
+++ b/sdk/iotoperations/Azure.ResourceManager.IoTOperations/src/Generated/BrokerListenerResource.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.IoTOperations
+{
+ public partial class BrokerListenerResource : IJsonModel
+ {
+ void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) => ((IJsonModel)Data).Write(writer, options);
+
+ BrokerListenerResourceData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => ((IJsonModel)Data).Create(ref reader, options);
+
+ BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) => ModelReaderWriter.Write(Data, options);
+
+ BrokerListenerResourceData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => ModelReaderWriter.Read(data, options);
+
+ string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => ((IPersistableModel)Data).GetFormatFromOptions(options);
+ }
+}
diff --git a/sdk/iotoperations/Azure.ResourceManager.IoTOperations/src/Generated/BrokerListenerResource.cs b/sdk/iotoperations/Azure.ResourceManager.IoTOperations/src/Generated/BrokerListenerResource.cs
new file mode 100644
index 000000000000..8fed3027791e
--- /dev/null
+++ b/sdk/iotoperations/Azure.ResourceManager.IoTOperations/src/Generated/BrokerListenerResource.cs
@@ -0,0 +1,348 @@
+// 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.IoTOperations
+{
+ ///
+ /// A Class representing a BrokerListenerResource 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 GetBrokerListenerResource method.
+ /// Otherwise you can get one from its parent resource using the GetBrokerListenerResource method.
+ ///
+ public partial class BrokerListenerResource : ArmResource
+ {
+ /// Generate the resource identifier of a instance.
+ /// The subscriptionId.
+ /// The resourceGroupName.
+ /// The instanceName.
+ /// The brokerName.
+ /// The listenerName.
+ public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string instanceName, string brokerName, string listenerName)
+ {
+ var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTOperations/instances/{instanceName}/brokers/{brokerName}/listeners/{listenerName}";
+ return new ResourceIdentifier(resourceId);
+ }
+
+ private readonly ClientDiagnostics _brokerListenerResourceBrokerListenerClientDiagnostics;
+ private readonly BrokerListenerRestOperations _brokerListenerResourceBrokerListenerRestClient;
+ private readonly BrokerListenerResourceData _data;
+
+ /// Gets the resource type for the operations.
+ public static readonly ResourceType ResourceType = "Microsoft.IoTOperations/instances/brokers/listeners";
+
+ /// Initializes a new instance of the class for mocking.
+ protected BrokerListenerResource()
+ {
+ }
+
+ /// Initializes a new instance of the class.
+ /// The client parameters to use in these operations.
+ /// The resource that is the target of operations.
+ internal BrokerListenerResource(ArmClient client, BrokerListenerResourceData 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 BrokerListenerResource(ArmClient client, ResourceIdentifier id) : base(client, id)
+ {
+ _brokerListenerResourceBrokerListenerClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.IoTOperations", ResourceType.Namespace, Diagnostics);
+ TryGetApiVersion(ResourceType, out string brokerListenerResourceBrokerListenerApiVersion);
+ _brokerListenerResourceBrokerListenerRestClient = new BrokerListenerRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, brokerListenerResourceBrokerListenerApiVersion);
+#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 BrokerListenerResourceData 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 BrokerListenerResource
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTOperations/instances/{instanceName}/brokers/{brokerName}/listeners/{listenerName}
+ ///
+ /// -
+ /// Operation Id
+ /// BrokerListenerResource_Get
+ ///
+ /// -
+ /// Default Api Version
+ /// 2024-11-01
+ ///
+ /// -
+ /// Resource
+ ///
+ ///
+ ///
+ ///
+ /// The cancellation token to use.
+ public virtual async Task> GetAsync(CancellationToken cancellationToken = default)
+ {
+ using var scope = _brokerListenerResourceBrokerListenerClientDiagnostics.CreateScope("BrokerListenerResource.Get");
+ scope.Start();
+ try
+ {
+ var response = await _brokerListenerResourceBrokerListenerRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false);
+ if (response.Value == null)
+ throw new RequestFailedException(response.GetRawResponse());
+ return Response.FromValue(new BrokerListenerResource(Client, response.Value), response.GetRawResponse());
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+
+ ///
+ /// Get a BrokerListenerResource
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTOperations/instances/{instanceName}/brokers/{brokerName}/listeners/{listenerName}
+ ///
+ /// -
+ /// Operation Id
+ /// BrokerListenerResource_Get
+ ///
+ /// -
+ /// Default Api Version
+ /// 2024-11-01
+ ///
+ /// -
+ /// Resource
+ ///
+ ///
+ ///
+ ///
+ /// The cancellation token to use.
+ public virtual Response Get(CancellationToken cancellationToken = default)
+ {
+ using var scope = _brokerListenerResourceBrokerListenerClientDiagnostics.CreateScope("BrokerListenerResource.Get");
+ scope.Start();
+ try
+ {
+ var response = _brokerListenerResourceBrokerListenerRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken);
+ if (response.Value == null)
+ throw new RequestFailedException(response.GetRawResponse());
+ return Response.FromValue(new BrokerListenerResource(Client, response.Value), response.GetRawResponse());
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+
+ ///
+ /// Delete a BrokerListenerResource
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTOperations/instances/{instanceName}/brokers/{brokerName}/listeners/{listenerName}
+ ///
+ /// -
+ /// Operation Id
+ /// BrokerListenerResource_Delete
+ ///
+ /// -
+ /// Default Api Version
+ /// 2024-11-01
+ ///
+ /// -
+ /// Resource
+ ///
+ ///
+ ///
+ ///
+ /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples.
+ /// The cancellation token to use.
+ public virtual async Task DeleteAsync(WaitUntil waitUntil, CancellationToken cancellationToken = default)
+ {
+ using var scope = _brokerListenerResourceBrokerListenerClientDiagnostics.CreateScope("BrokerListenerResource.Delete");
+ scope.Start();
+ try
+ {
+ var response = await _brokerListenerResourceBrokerListenerRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false);
+ var operation = new IoTOperationsArmOperation(_brokerListenerResourceBrokerListenerClientDiagnostics, Pipeline, _brokerListenerResourceBrokerListenerRestClient.CreateDeleteRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name).Request, response, OperationFinalStateVia.Location);
+ if (waitUntil == WaitUntil.Completed)
+ await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false);
+ return operation;
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+
+ ///
+ /// Delete a BrokerListenerResource
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTOperations/instances/{instanceName}/brokers/{brokerName}/listeners/{listenerName}
+ ///
+ /// -
+ /// Operation Id
+ /// BrokerListenerResource_Delete
+ ///
+ /// -
+ /// Default Api Version
+ /// 2024-11-01
+ ///
+ /// -
+ /// Resource
+ ///
+ ///
+ ///
+ ///
+ /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples.
+ /// The cancellation token to use.
+ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancellationToken = default)
+ {
+ using var scope = _brokerListenerResourceBrokerListenerClientDiagnostics.CreateScope("BrokerListenerResource.Delete");
+ scope.Start();
+ try
+ {
+ var response = _brokerListenerResourceBrokerListenerRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken);
+ var operation = new IoTOperationsArmOperation(_brokerListenerResourceBrokerListenerClientDiagnostics, Pipeline, _brokerListenerResourceBrokerListenerRestClient.CreateDeleteRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name).Request, response, OperationFinalStateVia.Location);
+ if (waitUntil == WaitUntil.Completed)
+ operation.WaitForCompletionResponse(cancellationToken);
+ return operation;
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+
+ ///
+ /// Create a BrokerListenerResource
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTOperations/instances/{instanceName}/brokers/{brokerName}/listeners/{listenerName}
+ ///
+ /// -
+ /// Operation Id
+ /// BrokerListenerResource_CreateOrUpdate
+ ///
+ /// -
+ /// Default Api Version
+ /// 2024-11-01
+ ///
+ /// -
+ /// Resource
+ ///
+ ///
+ ///
+ ///
+ /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples.
+ /// Resource create parameters.
+ /// The cancellation token to use.
+ /// is null.
+ public virtual async Task> UpdateAsync(WaitUntil waitUntil, BrokerListenerResourceData data, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNull(data, nameof(data));
+
+ using var scope = _brokerListenerResourceBrokerListenerClientDiagnostics.CreateScope("BrokerListenerResource.Update");
+ scope.Start();
+ try
+ {
+ var response = await _brokerListenerResourceBrokerListenerRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data, cancellationToken).ConfigureAwait(false);
+ var operation = new IoTOperationsArmOperation(new BrokerListenerResourceOperationSource(Client), _brokerListenerResourceBrokerListenerClientDiagnostics, Pipeline, _brokerListenerResourceBrokerListenerRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, 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 BrokerListenerResource
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTOperations/instances/{instanceName}/brokers/{brokerName}/listeners/{listenerName}
+ ///
+ /// -
+ /// Operation Id
+ /// BrokerListenerResource_CreateOrUpdate
+ ///
+ /// -
+ /// Default Api Version
+ /// 2024-11-01
+ ///
+ /// -
+ /// Resource
+ ///
+ ///
+ ///
+ ///
+ /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples.
+ /// Resource create parameters.
+ /// The cancellation token to use.
+ /// is null.
+ public virtual ArmOperation Update(WaitUntil waitUntil, BrokerListenerResourceData data, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNull(data, nameof(data));
+
+ using var scope = _brokerListenerResourceBrokerListenerClientDiagnostics.CreateScope("BrokerListenerResource.Update");
+ scope.Start();
+ try
+ {
+ var response = _brokerListenerResourceBrokerListenerRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data, cancellationToken);
+ var operation = new IoTOperationsArmOperation(new BrokerListenerResourceOperationSource(Client), _brokerListenerResourceBrokerListenerClientDiagnostics, Pipeline, _brokerListenerResourceBrokerListenerRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data).Request, response, OperationFinalStateVia.AzureAsyncOperation);
+ if (waitUntil == WaitUntil.Completed)
+ operation.WaitForCompletion(cancellationToken);
+ return operation;
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+ }
+}
diff --git a/sdk/iotoperations/Azure.ResourceManager.IoTOperations/src/Generated/BrokerListenerResourceCollection.cs b/sdk/iotoperations/Azure.ResourceManager.IoTOperations/src/Generated/BrokerListenerResourceCollection.cs
new file mode 100644
index 000000000000..487cfe41b51a
--- /dev/null
+++ b/sdk/iotoperations/Azure.ResourceManager.IoTOperations/src/Generated/BrokerListenerResourceCollection.cs
@@ -0,0 +1,493 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.Collections;
+using System.Collections.Generic;
+using System.Globalization;
+using System.Threading;
+using System.Threading.Tasks;
+using Autorest.CSharp.Core;
+using Azure.Core;
+using Azure.Core.Pipeline;
+
+namespace Azure.ResourceManager.IoTOperations
+{
+ ///
+ /// 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 GetBrokerListenerResources method from an instance of .
+ ///
+ public partial class BrokerListenerResourceCollection : ArmCollection, IEnumerable, IAsyncEnumerable
+ {
+ private readonly ClientDiagnostics _brokerListenerResourceBrokerListenerClientDiagnostics;
+ private readonly BrokerListenerRestOperations _brokerListenerResourceBrokerListenerRestClient;
+
+ /// Initializes a new instance of the class for mocking.
+ protected BrokerListenerResourceCollection()
+ {
+ }
+
+ /// 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 BrokerListenerResourceCollection(ArmClient client, ResourceIdentifier id) : base(client, id)
+ {
+ _brokerListenerResourceBrokerListenerClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.IoTOperations", BrokerListenerResource.ResourceType.Namespace, Diagnostics);
+ TryGetApiVersion(BrokerListenerResource.ResourceType, out string brokerListenerResourceBrokerListenerApiVersion);
+ _brokerListenerResourceBrokerListenerRestClient = new BrokerListenerRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, brokerListenerResourceBrokerListenerApiVersion);
+#if DEBUG
+ ValidateResourceId(Id);
+#endif
+ }
+
+ internal static void ValidateResourceId(ResourceIdentifier id)
+ {
+ if (id.ResourceType != BrokerResource.ResourceType)
+ throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "Invalid resource type {0} expected {1}", id.ResourceType, BrokerResource.ResourceType), nameof(id));
+ }
+
+ ///
+ /// Create a BrokerListenerResource
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTOperations/instances/{instanceName}/brokers/{brokerName}/listeners/{listenerName}
+ ///
+ /// -
+ /// Operation Id
+ /// BrokerListenerResource_CreateOrUpdate
+ ///
+ /// -
+ /// Default Api Version
+ /// 2024-11-01
+ ///
+ /// -
+ /// Resource
+ ///
+ ///
+ ///
+ ///
+ /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples.
+ /// Name of Instance broker listener resource.
+ /// 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 listenerName, BrokerListenerResourceData data, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNullOrEmpty(listenerName, nameof(listenerName));
+ Argument.AssertNotNull(data, nameof(data));
+
+ using var scope = _brokerListenerResourceBrokerListenerClientDiagnostics.CreateScope("BrokerListenerResourceCollection.CreateOrUpdate");
+ scope.Start();
+ try
+ {
+ var response = await _brokerListenerResourceBrokerListenerRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, listenerName, data, cancellationToken).ConfigureAwait(false);
+ var operation = new IoTOperationsArmOperation(new BrokerListenerResourceOperationSource(Client), _brokerListenerResourceBrokerListenerClientDiagnostics, Pipeline, _brokerListenerResourceBrokerListenerRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, listenerName, 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 BrokerListenerResource
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTOperations/instances/{instanceName}/brokers/{brokerName}/listeners/{listenerName}
+ ///
+ /// -
+ /// Operation Id
+ /// BrokerListenerResource_CreateOrUpdate
+ ///
+ /// -
+ /// Default Api Version
+ /// 2024-11-01
+ ///
+ /// -
+ /// Resource
+ ///
+ ///
+ ///
+ ///
+ /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples.
+ /// Name of Instance broker listener resource.
+ /// 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 listenerName, BrokerListenerResourceData data, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNullOrEmpty(listenerName, nameof(listenerName));
+ Argument.AssertNotNull(data, nameof(data));
+
+ using var scope = _brokerListenerResourceBrokerListenerClientDiagnostics.CreateScope("BrokerListenerResourceCollection.CreateOrUpdate");
+ scope.Start();
+ try
+ {
+ var response = _brokerListenerResourceBrokerListenerRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, listenerName, data, cancellationToken);
+ var operation = new IoTOperationsArmOperation(new BrokerListenerResourceOperationSource(Client), _brokerListenerResourceBrokerListenerClientDiagnostics, Pipeline, _brokerListenerResourceBrokerListenerRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, listenerName, data).Request, response, OperationFinalStateVia.AzureAsyncOperation);
+ if (waitUntil == WaitUntil.Completed)
+ operation.WaitForCompletion(cancellationToken);
+ return operation;
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+
+ ///
+ /// Get a BrokerListenerResource
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTOperations/instances/{instanceName}/brokers/{brokerName}/listeners/{listenerName}
+ ///
+ /// -
+ /// Operation Id
+ /// BrokerListenerResource_Get
+ ///
+ /// -
+ /// Default Api Version
+ /// 2024-11-01
+ ///
+ /// -
+ /// Resource
+ ///
+ ///
+ ///
+ ///
+ /// Name of Instance broker listener resource.
+ /// The cancellation token to use.
+ /// is an empty string, and was expected to be non-empty.
+ /// is null.
+ public virtual async Task> GetAsync(string listenerName, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNullOrEmpty(listenerName, nameof(listenerName));
+
+ using var scope = _brokerListenerResourceBrokerListenerClientDiagnostics.CreateScope("BrokerListenerResourceCollection.Get");
+ scope.Start();
+ try
+ {
+ var response = await _brokerListenerResourceBrokerListenerRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, listenerName, cancellationToken).ConfigureAwait(false);
+ if (response.Value == null)
+ throw new RequestFailedException(response.GetRawResponse());
+ return Response.FromValue(new BrokerListenerResource(Client, response.Value), response.GetRawResponse());
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+
+ ///
+ /// Get a BrokerListenerResource
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTOperations/instances/{instanceName}/brokers/{brokerName}/listeners/{listenerName}
+ ///
+ /// -
+ /// Operation Id
+ /// BrokerListenerResource_Get
+ ///
+ /// -
+ /// Default Api Version
+ /// 2024-11-01
+ ///
+ /// -
+ /// Resource
+ ///
+ ///
+ ///
+ ///
+ /// Name of Instance broker listener resource.
+ /// The cancellation token to use.
+ /// is an empty string, and was expected to be non-empty.
+ /// is null.
+ public virtual Response Get(string listenerName, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNullOrEmpty(listenerName, nameof(listenerName));
+
+ using var scope = _brokerListenerResourceBrokerListenerClientDiagnostics.CreateScope("BrokerListenerResourceCollection.Get");
+ scope.Start();
+ try
+ {
+ var response = _brokerListenerResourceBrokerListenerRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, listenerName, cancellationToken);
+ if (response.Value == null)
+ throw new RequestFailedException(response.GetRawResponse());
+ return Response.FromValue(new BrokerListenerResource(Client, response.Value), response.GetRawResponse());
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+
+ ///
+ /// List BrokerListenerResource resources by BrokerResource
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTOperations/instances/{instanceName}/brokers/{brokerName}/listeners
+ ///
+ /// -
+ /// Operation Id
+ /// BrokerListenerResource_ListByResourceGroup
+ ///
+ /// -
+ /// Default Api Version
+ /// 2024-11-01
+ ///
+ /// -
+ /// Resource
+ ///
+ ///
+ ///
+ ///
+ /// The cancellation token to use.
+ /// An async collection of that may take multiple service requests to iterate over.
+ public virtual AsyncPageable GetAllAsync(CancellationToken cancellationToken = default)
+ {
+ HttpMessage FirstPageRequest(int? pageSizeHint) => _brokerListenerResourceBrokerListenerRestClient.CreateListByResourceGroupRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name);
+ HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _brokerListenerResourceBrokerListenerRestClient.CreateListByResourceGroupNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name);
+ return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => new BrokerListenerResource(Client, BrokerListenerResourceData.DeserializeBrokerListenerResourceData(e)), _brokerListenerResourceBrokerListenerClientDiagnostics, Pipeline, "BrokerListenerResourceCollection.GetAll", "value", "nextLink", cancellationToken);
+ }
+
+ ///
+ /// List BrokerListenerResource resources by BrokerResource
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTOperations/instances/{instanceName}/brokers/{brokerName}/listeners
+ ///
+ /// -
+ /// Operation Id
+ /// BrokerListenerResource_ListByResourceGroup
+ ///
+ /// -
+ /// Default Api Version
+ /// 2024-11-01
+ ///
+ /// -
+ /// Resource
+ ///
+ ///
+ ///
+ ///
+ /// The cancellation token to use.
+ /// A collection of that may take multiple service requests to iterate over.
+ public virtual Pageable GetAll(CancellationToken cancellationToken = default)
+ {
+ HttpMessage FirstPageRequest(int? pageSizeHint) => _brokerListenerResourceBrokerListenerRestClient.CreateListByResourceGroupRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name);
+ HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _brokerListenerResourceBrokerListenerRestClient.CreateListByResourceGroupNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name);
+ return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new BrokerListenerResource(Client, BrokerListenerResourceData.DeserializeBrokerListenerResourceData(e)), _brokerListenerResourceBrokerListenerClientDiagnostics, Pipeline, "BrokerListenerResourceCollection.GetAll", "value", "nextLink", cancellationToken);
+ }
+
+ ///
+ /// Checks to see if the resource exists in azure.
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTOperations/instances/{instanceName}/brokers/{brokerName}/listeners/{listenerName}
+ ///
+ /// -
+ /// Operation Id
+ /// BrokerListenerResource_Get
+ ///
+ /// -
+ /// Default Api Version
+ /// 2024-11-01
+ ///
+ /// -
+ /// Resource
+ ///
+ ///
+ ///
+ ///
+ /// Name of Instance broker listener resource.
+ /// The cancellation token to use.
+ /// is an empty string, and was expected to be non-empty.
+ /// is null.
+ public virtual async Task> ExistsAsync(string listenerName, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNullOrEmpty(listenerName, nameof(listenerName));
+
+ using var scope = _brokerListenerResourceBrokerListenerClientDiagnostics.CreateScope("BrokerListenerResourceCollection.Exists");
+ scope.Start();
+ try
+ {
+ var response = await _brokerListenerResourceBrokerListenerRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, listenerName, cancellationToken: cancellationToken).ConfigureAwait(false);
+ return Response.FromValue(response.Value != null, response.GetRawResponse());
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+
+ ///
+ /// Checks to see if the resource exists in azure.
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTOperations/instances/{instanceName}/brokers/{brokerName}/listeners/{listenerName}
+ ///
+ /// -
+ /// Operation Id
+ /// BrokerListenerResource_Get
+ ///
+ /// -
+ /// Default Api Version
+ /// 2024-11-01
+ ///
+ /// -
+ /// Resource
+ ///
+ ///
+ ///
+ ///
+ /// Name of Instance broker listener resource.
+ /// The cancellation token to use.
+ /// is an empty string, and was expected to be non-empty.
+ /// is null.
+ public virtual Response Exists(string listenerName, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNullOrEmpty(listenerName, nameof(listenerName));
+
+ using var scope = _brokerListenerResourceBrokerListenerClientDiagnostics.CreateScope("BrokerListenerResourceCollection.Exists");
+ scope.Start();
+ try
+ {
+ var response = _brokerListenerResourceBrokerListenerRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, listenerName, cancellationToken: cancellationToken);
+ return Response.FromValue(response.Value != null, response.GetRawResponse());
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+
+ ///
+ /// Tries to get details for this resource from the service.
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTOperations/instances/{instanceName}/brokers/{brokerName}/listeners/{listenerName}
+ ///
+ /// -
+ /// Operation Id
+ /// BrokerListenerResource_Get
+ ///
+ /// -
+ /// Default Api Version
+ /// 2024-11-01
+ ///
+ /// -
+ /// Resource
+ ///
+ ///
+ ///
+ ///
+ /// Name of Instance broker listener resource.
+ /// The cancellation token to use.
+ /// is an empty string, and was expected to be non-empty.
+ /// is null.
+ public virtual async Task> GetIfExistsAsync(string listenerName, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNullOrEmpty(listenerName, nameof(listenerName));
+
+ using var scope = _brokerListenerResourceBrokerListenerClientDiagnostics.CreateScope("BrokerListenerResourceCollection.GetIfExists");
+ scope.Start();
+ try
+ {
+ var response = await _brokerListenerResourceBrokerListenerRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, listenerName, cancellationToken: cancellationToken).ConfigureAwait(false);
+ if (response.Value == null)
+ return new NoValueResponse(response.GetRawResponse());
+ return Response.FromValue(new BrokerListenerResource(Client, response.Value), response.GetRawResponse());
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+
+ ///
+ /// Tries to get details for this resource from the service.
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTOperations/instances/{instanceName}/brokers/{brokerName}/listeners/{listenerName}
+ ///
+ /// -
+ /// Operation Id
+ /// BrokerListenerResource_Get
+ ///
+ /// -
+ /// Default Api Version
+ /// 2024-11-01
+ ///
+ /// -
+ /// Resource
+ ///
+ ///
+ ///
+ ///
+ /// Name of Instance broker listener resource.
+ /// The cancellation token to use.
+ /// is an empty string, and was expected to be non-empty.
+ /// is null.
+ public virtual NullableResponse GetIfExists(string listenerName, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNullOrEmpty(listenerName, nameof(listenerName));
+
+ using var scope = _brokerListenerResourceBrokerListenerClientDiagnostics.CreateScope("BrokerListenerResourceCollection.GetIfExists");
+ scope.Start();
+ try
+ {
+ var response = _brokerListenerResourceBrokerListenerRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, listenerName, cancellationToken: cancellationToken);
+ if (response.Value == null)
+ return new NoValueResponse(response.GetRawResponse());
+ return Response.FromValue(new BrokerListenerResource(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/iotoperations/Azure.ResourceManager.IoTOperations/src/Generated/BrokerListenerResourceData.Serialization.cs b/sdk/iotoperations/Azure.ResourceManager.IoTOperations/src/Generated/BrokerListenerResourceData.Serialization.cs
new file mode 100644
index 000000000000..25188c8896ac
--- /dev/null
+++ b/sdk/iotoperations/Azure.ResourceManager.IoTOperations/src/Generated/BrokerListenerResourceData.Serialization.cs
@@ -0,0 +1,164 @@
+// 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.IoTOperations.Models;
+using Azure.ResourceManager.Models;
+
+namespace Azure.ResourceManager.IoTOperations
+{
+ public partial class BrokerListenerResourceData : 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(BrokerListenerResourceData)} does not support writing '{format}' format.");
+ }
+
+ base.JsonModelWriteCore(writer, options);
+ if (Optional.IsDefined(Properties))
+ {
+ writer.WritePropertyName("properties"u8);
+ writer.WriteObjectValue(Properties, options);
+ }
+ writer.WritePropertyName("extendedLocation"u8);
+ writer.WriteObjectValue(ExtendedLocation, options);
+ }
+
+ BrokerListenerResourceData 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(BrokerListenerResourceData)} does not support reading '{format}' format.");
+ }
+
+ using JsonDocument document = JsonDocument.ParseValue(ref reader);
+ return DeserializeBrokerListenerResourceData(document.RootElement, options);
+ }
+
+ internal static BrokerListenerResourceData DeserializeBrokerListenerResourceData(JsonElement element, ModelReaderWriterOptions options = null)
+ {
+ options ??= ModelSerializationExtensions.WireOptions;
+
+ if (element.ValueKind == JsonValueKind.Null)
+ {
+ return null;
+ }
+ BrokerListenerProperties properties = default;
+ ExtendedLocation extendedLocation = 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 = BrokerListenerProperties.DeserializeBrokerListenerProperties(property.Value, options);
+ continue;
+ }
+ if (property.NameEquals("extendedLocation"u8))
+ {
+ extendedLocation = ExtendedLocation.DeserializeExtendedLocation(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 BrokerListenerResourceData(
+ id,
+ name,
+ type,
+ systemData,
+ properties,
+ extendedLocation,
+ 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(BrokerListenerResourceData)} does not support writing '{options.Format}' format.");
+ }
+ }
+
+ BrokerListenerResourceData IPersistableModel